123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- const rae=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerpolicy&&(o.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?o.credentials="include":n.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(n){if(n.ep)return;n.ep=!0;const o=r(n);fetch(n.href,o)}};rae();function IL(e,t){const r=Object.create(null),i=e.split(",");for(let n=0;n<i.length;n++)r[i[n]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}function St(e){if(wt(e)){const t={};for(let r=0;r<e.length;r++){const i=e[r],n=Kt(i)?sae(i):St(i);if(n)for(const o in n)t[o]=n[o]}return t}else{if(Kt(e))return e;if(yr(e))return e}}const iae=/;(?![^(]*\))/g,nae=/:([^]+)/,oae=/\/\*.*?\*\//gs;function sae(e){const t={};return e.replace(oae,"").split(iae).forEach(r=>{if(r){const i=r.split(nae);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function N(e){let t="";if(Kt(e))t=e;else if(wt(e))for(let r=0;r<e.length;r++){const i=N(e[r]);i&&(t+=i+" ")}else if(yr(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Ya(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Kt(t)&&(e.class=N(t)),r&&(e.style=St(r)),e}const lae="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aae=IL(lae);function yH(e){return!!e||e===""}function cae(e,t){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Cv(e[i],t[i]);return r}function Cv(e,t){if(e===t)return!0;let r=Zm(e),i=Zm(t);if(r||i)return r&&i?e.getTime()===t.getTime():!1;if(r=_w(e),i=_w(t),r||i)return e===t;if(r=wt(e),i=wt(t),r||i)return r&&i?cae(e,t):!1;if(r=yr(e),i=yr(t),r||i){if(!r||!i)return!1;const n=Object.keys(e).length,o=Object.keys(t).length;if(n!==o)return!1;for(const s in e){const l=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(l&&!a||!l&&a||!Cv(e[s],t[s]))return!1}}return String(e)===String(t)}function vH(e,t){return e.findIndex(r=>Cv(r,t))}const rt=e=>Kt(e)?e:e==null?"":wt(e)||yr(e)&&(e.toString===_H||!qt(e.toString))?JSON.stringify(e,bH,2):String(e),bH=(e,t)=>t&&t.__v_isRef?bH(e,t.value):Xy(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,n])=>(r[`${i} =>`]=n,r),{})}:DE(t)?{[`Set(${t.size})`]:[...t.values()]}:yr(t)&&!wt(t)&&!wH(t)?String(t):t,Ji={},Jy=[],ti=()=>{},uae=()=>!1,dae=/^on[^a-z]/,RE=e=>dae.test(e),PL=e=>e.startsWith("onUpdate:"),Xn=Object.assign,$L=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},pae=Object.prototype.hasOwnProperty,Mr=(e,t)=>pae.call(e,t),wt=Array.isArray,Xy=e=>L1(e)==="[object Map]",DE=e=>L1(e)==="[object Set]",Zm=e=>L1(e)==="[object Date]",qt=e=>typeof e=="function",Kt=e=>typeof e=="string",_w=e=>typeof e=="symbol",yr=e=>e!==null&&typeof e=="object",ww=e=>yr(e)&&qt(e.then)&&qt(e.catch),_H=Object.prototype.toString,L1=e=>_H.call(e),aC=e=>L1(e).slice(8,-1),wH=e=>L1(e)==="[object Object]",OL=e=>Kt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cC=IL(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NE=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},hae=/-(\w)/g,is=NE(e=>e.replace(hae,(t,r)=>r?r.toUpperCase():"")),fae=/\B([A-Z])/g,hl=NE(e=>e.replace(fae,"-$1").toLowerCase()),R1=NE(e=>e.charAt(0).toUpperCase()+e.slice(1)),uC=NE(e=>e?`on${R1(e)}`:""),xw=(e,t)=>!Object.is(e,t),dC=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Zk=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Qm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let GF;const mae=()=>GF||(GF=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let ul;class xH{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ul,!t&&ul&&(this.index=(ul.scopes||(ul.scopes=[])).push(this)-1)}run(t){if(this.active){const r=ul;try{return ul=this,t()}finally{ul=r}}}on(){ul=this}off(){ul=this.parent}stop(t){if(this.active){let r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.scopes)for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this.active=!1}}}function gae(e){return new xH(e)}function yae(e,t=ul){t&&t.active&&t.effects.push(e)}function vae(){return ul}function CH(e){ul&&ul.cleanups.push(e)}const LL=e=>{const t=new Set(e);return t.w=0,t.n=0,t},kH=e=>(e.w&xh)>0,SH=e=>(e.n&xh)>0,bae=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=xh},_ae=e=>{const{deps:t}=e;if(t.length){let r=0;for(let i=0;i<t.length;i++){const n=t[i];kH(n)&&!SH(n)?n.delete(e):t[r++]=n,n.w&=~xh,n.n&=~xh}t.length=r}},WI=new WeakMap;let Lb=0,xh=1;const HI=30;let Ha;const Nm=Symbol(""),GI=Symbol("");class RL{constructor(t,r=null,i){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,yae(this,i)}run(){if(!this.active)return this.fn();let t=Ha,r=ph;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ha,Ha=this,ph=!0,xh=1<<++Lb,Lb<=HI?bae(this):qF(this),this.fn()}finally{Lb<=HI&&_ae(this),xh=1<<--Lb,Ha=this.parent,ph=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ha===this?this.deferStop=!0:this.active&&(qF(this),this.onStop&&this.onStop(),this.active=!1)}}function qF(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let ph=!0;const EH=[];function c0(){EH.push(ph),ph=!1}function u0(){const e=EH.pop();ph=e===void 0?!0:e}function wl(e,t,r){if(ph&&Ha){let i=WI.get(e);i||WI.set(e,i=new Map);let n=i.get(r);n||i.set(r,n=LL()),TH(n)}}function TH(e,t){let r=!1;Lb<=HI?SH(e)||(e.n|=xh,r=!kH(e)):r=!e.has(Ha),r&&(e.add(Ha),Ha.deps.push(e))}function hd(e,t,r,i,n,o){const s=WI.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(r==="length"&&wt(e)){const a=Qm(i);s.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(r!==void 0&&l.push(s.get(r)),t){case"add":wt(e)?OL(r)&&l.push(s.get("length")):(l.push(s.get(Nm)),Xy(e)&&l.push(s.get(GI)));break;case"delete":wt(e)||(l.push(s.get(Nm)),Xy(e)&&l.push(s.get(GI)));break;case"set":Xy(e)&&l.push(s.get(Nm));break}if(l.length===1)l[0]&&qI(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);qI(LL(a))}}function qI(e,t){const r=wt(e)?e:[...e];for(const i of r)i.computed&&YF(i);for(const i of r)i.computed||YF(i)}function YF(e,t){(e!==Ha||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wae=IL("__proto__,__v_isRef,__isVue"),AH=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_w)),xae=DL(),Cae=DL(!1,!0),kae=DL(!0),KF=Sae();function Sae(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const i=ei(this);for(let o=0,s=this.length;o<s;o++)wl(i,"get",o+"");const n=i[t](...r);return n===-1||n===!1?i[t](...r.map(ei)):n}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){c0();const i=ei(this)[t].apply(this,r);return u0(),i}}),e}function DL(e=!1,t=!1){return function(i,n,o){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_isShallow")return t;if(n==="__v_raw"&&o===(e?t?Vae:OH:t?$H:PH).get(i))return i;const s=wt(i);if(!e&&s&&Mr(KF,n))return Reflect.get(KF,n,o);const l=Reflect.get(i,n,o);return(_w(n)?AH.has(n):wae(n))||(e||wl(i,"get",n),t)?l:hi(l)?s&&OL(n)?l:l.value:yr(l)?e?D1(l):kr(l):l}}const Eae=MH(),Tae=MH(!0);function MH(e=!1){return function(r,i,n,o){let s=r[i];if(kv(s)&&hi(s)&&!hi(n))return!1;if(!e&&(!Qk(n)&&!kv(n)&&(s=ei(s),n=ei(n)),!wt(r)&&hi(s)&&!hi(n)))return s.value=n,!0;const l=wt(r)&&OL(i)?Number(i)<r.length:Mr(r,i),a=Reflect.set(r,i,n,o);return r===ei(o)&&(l?xw(n,s)&&hd(r,"set",i,n):hd(r,"add",i,n)),a}}function Aae(e,t){const r=Mr(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&r&&hd(e,"delete",t,void 0),i}function Mae(e,t){const r=Reflect.has(e,t);return(!_w(t)||!AH.has(t))&&wl(e,"has",t),r}function Iae(e){return wl(e,"iterate",wt(e)?"length":Nm),Reflect.ownKeys(e)}const IH={get:xae,set:Eae,deleteProperty:Aae,has:Mae,ownKeys:Iae},Pae={get:kae,set(e,t){return!0},deleteProperty(e,t){return!0}},$ae=Xn({},IH,{get:Cae,set:Tae}),NL=e=>e,FE=e=>Reflect.getPrototypeOf(e);function Bx(e,t,r=!1,i=!1){e=e.__v_raw;const n=ei(e),o=ei(t);r||(t!==o&&wl(n,"get",t),wl(n,"get",o));const{has:s}=FE(n),l=i?NL:r?jL:Cw;if(s.call(n,t))return l(e.get(t));if(s.call(n,o))return l(e.get(o));e!==n&&e.get(t)}function Ux(e,t=!1){const r=this.__v_raw,i=ei(r),n=ei(e);return t||(e!==n&&wl(i,"has",e),wl(i,"has",n)),e===n?r.has(e):r.has(e)||r.has(n)}function Wx(e,t=!1){return e=e.__v_raw,!t&&wl(ei(e),"iterate",Nm),Reflect.get(e,"size",e)}function ZF(e){e=ei(e);const t=ei(this);return FE(t).has.call(t,e)||(t.add(e),hd(t,"add",e,e)),this}function QF(e,t){t=ei(t);const r=ei(this),{has:i,get:n}=FE(r);let o=i.call(r,e);o||(e=ei(e),o=i.call(r,e));const s=n.call(r,e);return r.set(e,t),o?xw(t,s)&&hd(r,"set",e,t):hd(r,"add",e,t),this}function JF(e){const t=ei(this),{has:r,get:i}=FE(t);let n=r.call(t,e);n||(e=ei(e),n=r.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return n&&hd(t,"delete",e,void 0),o}function XF(){const e=ei(this),t=e.size!==0,r=e.clear();return t&&hd(e,"clear",void 0,void 0),r}function Hx(e,t){return function(i,n){const o=this,s=o.__v_raw,l=ei(s),a=t?NL:e?jL:Cw;return!e&&wl(l,"iterate",Nm),s.forEach((c,u)=>i.call(n,a(c),a(u),o))}}function Gx(e,t,r){return function(...i){const n=this.__v_raw,o=ei(n),s=Xy(o),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=n[e](...i),u=r?NL:t?jL:Cw;return!t&&wl(o,"iterate",a?GI:Nm),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:l?[u(p[0]),u(p[1])]:u(p),done:h}},[Symbol.iterator](){return this}}}}function Gd(e){return function(...t){return e==="delete"?!1:this}}function Oae(){const e={get(o){return Bx(this,o)},get size(){return Wx(this)},has:Ux,add:ZF,set:QF,delete:JF,clear:XF,forEach:Hx(!1,!1)},t={get(o){return Bx(this,o,!1,!0)},get size(){return Wx(this)},has:Ux,add:ZF,set:QF,delete:JF,clear:XF,forEach:Hx(!1,!0)},r={get(o){return Bx(this,o,!0)},get size(){return Wx(this,!0)},has(o){return Ux.call(this,o,!0)},add:Gd("add"),set:Gd("set"),delete:Gd("delete"),clear:Gd("clear"),forEach:Hx(!0,!1)},i={get(o){return Bx(this,o,!0,!0)},get size(){return Wx(this,!0)},has(o){return Ux.call(this,o,!0)},add:Gd("add"),set:Gd("set"),delete:Gd("delete"),clear:Gd("clear"),forEach:Hx(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Gx(o,!1,!1),r[o]=Gx(o,!0,!1),t[o]=Gx(o,!1,!0),i[o]=Gx(o,!0,!0)}),[e,r,t,i]}const[Lae,Rae,Dae,Nae]=Oae();function FL(e,t){const r=t?e?Nae:Dae:e?Rae:Lae;return(i,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(Mr(r,n)&&n in i?r:i,n,o)}const Fae={get:FL(!1,!1)},zae={get:FL(!1,!0)},jae={get:FL(!0,!1)},PH=new WeakMap,$H=new WeakMap,OH=new WeakMap,Vae=new WeakMap;function Bae(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Uae(e){return e.__v_skip||!Object.isExtensible(e)?0:Bae(aC(e))}function kr(e){return kv(e)?e:zL(e,!1,IH,Fae,PH)}function LH(e){return zL(e,!1,$ae,zae,$H)}function D1(e){return zL(e,!0,Pae,jae,OH)}function zL(e,t,r,i,n){if(!yr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=n.get(e);if(o)return o;const s=Uae(e);if(s===0)return e;const l=new Proxy(e,s===2?i:r);return n.set(e,l),l}function ev(e){return kv(e)?ev(e.__v_raw):!!(e&&e.__v_isReactive)}function kv(e){return!!(e&&e.__v_isReadonly)}function Qk(e){return!!(e&&e.__v_isShallow)}function RH(e){return ev(e)||kv(e)}function ei(e){const t=e&&e.__v_raw;return t?ei(t):e}function Fm(e){return Zk(e,"__v_skip",!0),e}const Cw=e=>yr(e)?kr(e):e,jL=e=>yr(e)?D1(e):e;function DH(e){ph&&Ha&&(e=ei(e),TH(e.dep||(e.dep=LL())))}function VL(e,t){e=ei(e),e.dep&&qI(e.dep)}function hi(e){return!!(e&&e.__v_isRef===!0)}function F(e){return NH(e,!1)}function gi(e){return NH(e,!0)}function NH(e,t){return hi(e)?e:new Wae(e,t)}class Wae{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ei(t),this._value=r?t:Cw(t)}get value(){return DH(this),this._value}set value(t){const r=this.__v_isShallow||Qk(t)||kv(t);t=r?t:ei(t),xw(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Cw(t),VL(this))}}function X0(e){VL(e)}function g(e){return hi(e)?e.value:e}const Hae={get:(e,t,r)=>g(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const n=e[t];return hi(n)&&!hi(r)?(n.value=r,!0):Reflect.set(e,t,r,i)}};function FH(e){return ev(e)?e:new Proxy(e,Hae)}function Fn(e){const t=wt(e)?new Array(e.length):{};for(const r in e)t[r]=Ni(e,r);return t}class Gae{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Ni(e,t,r){const i=e[t];return hi(i)?i:new Gae(e,t,r)}var zH;class qae{constructor(t,r,i,n){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[zH]=!1,this._dirty=!0,this.effect=new RL(t,()=>{this._dirty||(this._dirty=!0,VL(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=i}get value(){const t=ei(this);return DH(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}zH="__v_isReadonly";function jH(e,t,r=!1){let i,n;const o=qt(e);return o?(i=e,n=ti):(i=e.get,n=e.set),new qae(i,n,o||!n,r)}function Yae(e,...t){}function hh(e,t,r,i){let n;try{n=i?e(...i):e()}catch(o){zE(o,t,r)}return n}function Zl(e,t,r,i){if(qt(e)){const o=hh(e,t,r,i);return o&&ww(o)&&o.catch(s=>{zE(s,t,r)}),o}const n=[];for(let o=0;o<e.length;o++)n.push(Zl(e[o],t,r,i));return n}function zE(e,t,r,i=!0){const n=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,l=r;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){hh(a,null,10,[e,s,l]);return}}Kae(e,r,n,i)}function Kae(e,t,r,i=!0){console.error(e)}let kw=!1,YI=!1;const jo=[];let qc=0;const tv=[];let Yu=null,tm=0;const VH=Promise.resolve();let BL=null;function Ct(e){const t=BL||VH;return e?t.then(this?e.bind(this):e):t}function Zae(e){let t=qc+1,r=jo.length;for(;t<r;){const i=t+r>>>1;Sw(jo[i])<e?t=i+1:r=i}return t}function UL(e){(!jo.length||!jo.includes(e,kw&&e.allowRecurse?qc+1:qc))&&(e.id==null?jo.push(e):jo.splice(Zae(e.id),0,e),BH())}function BH(){!kw&&!YI&&(YI=!0,BL=VH.then(WH))}function Qae(e){const t=jo.indexOf(e);t>qc&&jo.splice(t,1)}function Jae(e){wt(e)?tv.push(...e):(!Yu||!Yu.includes(e,e.allowRecurse?tm+1:tm))&&tv.push(e),BH()}function e8(e,t=kw?qc+1:0){for(;t<jo.length;t++){const r=jo[t];r&&r.pre&&(jo.splice(t,1),t--,r())}}function UH(e){if(tv.length){const t=[...new Set(tv)];if(tv.length=0,Yu){Yu.push(...t);return}for(Yu=t,Yu.sort((r,i)=>Sw(r)-Sw(i)),tm=0;tm<Yu.length;tm++)Yu[tm]();Yu=null,tm=0}}const Sw=e=>e.id==null?1/0:e.id,Xae=(e,t)=>{const r=Sw(e)-Sw(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function WH(e){YI=!1,kw=!0,jo.sort(Xae);const t=ti;try{for(qc=0;qc<jo.length;qc++){const r=jo[qc];r&&r.active!==!1&&hh(r,null,14)}}finally{qc=0,jo.length=0,UH(),kw=!1,BL=null,(jo.length||tv.length)&&WH()}}function ece(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||Ji;let n=r;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in i){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=i[u]||Ji;h&&(n=r.map(m=>Kt(m)?m.trim():m)),p&&(n=r.map(Qm))}let l,a=i[l=uC(t)]||i[l=uC(is(t))];!a&&o&&(a=i[l=uC(hl(t))]),a&&Zl(a,e,6,n);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Zl(c,e,6,n)}}function HH(e,t,r=!1){const i=t.emitsCache,n=i.get(e);if(n!==void 0)return n;const o=e.emits;let s={},l=!1;if(!qt(e)){const a=c=>{const u=HH(c,t,!0);u&&(l=!0,Xn(s,u))};!r&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(yr(e)&&i.set(e,null),null):(wt(o)?o.forEach(a=>s[a]=null):Xn(s,o),yr(e)&&i.set(e,s),s)}function jE(e,t){return!e||!RE(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mr(e,t[0].toLowerCase()+t.slice(1))||Mr(e,hl(t))||Mr(e,t))}let Co=null,VE=null;function Jk(e){const t=Co;return Co=e,VE=e&&e.type.__scopeId||null,t}function tce(e){VE=e}function rce(){VE=null}function me(e,t=Co,r){if(!t||e._n)return e;const i=(...n)=>{i._d&&d8(-1);const o=Jk(t);let s;try{s=e(...n)}finally{Jk(o),i._d&&d8(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function mA(e){const{type:t,vnode:r,proxy:i,withProxy:n,props:o,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:h,setupState:m,ctx:y,inheritAttrs:v}=e;let _,x;const S=Jk(e);try{if(r.shapeFlag&4){const E=n||i;_=Hc(u.call(E,E,p,o,m,h,y)),x=a}else{const E=t;_=Hc(E.length>1?E(o,{attrs:a,slots:l,emit:c}):E(o,null)),x=t.props?a:ice(a)}}catch(E){D_.length=0,zE(E,e,1),_=Y(ns)}let C=_;if(x&&v!==!1){const E=Object.keys(x),{shapeFlag:T}=C;E.length&&T&7&&(s&&E.some(PL)&&(x=nce(x,s)),C=md(C,x))}return r.dirs&&(C=md(C),C.dirs=C.dirs?C.dirs.concat(r.dirs):r.dirs),r.transition&&(C.transition=r.transition),_=C,Jk(S),_}const ice=e=>{let t;for(const r in e)(r==="class"||r==="style"||RE(r))&&((t||(t={}))[r]=e[r]);return t},nce=(e,t)=>{const r={};for(const i in e)(!PL(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function oce(e,t,r){const{props:i,children:n,component:o}=e,{props:s,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&a>=0){if(a&1024)return!0;if(a&16)return i?t8(i,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const h=u[p];if(s[h]!==i[h]&&!jE(c,h))return!0}}}else return(n||l)&&(!l||!l.$stable)?!0:i===s?!1:i?s?t8(i,s,c):!0:!!s;return!1}function t8(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let n=0;n<i.length;n++){const o=i[n];if(t[o]!==e[o]&&!jE(r,o))return!0}return!1}function sce({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const lce=e=>e.__isSuspense;function ace(e,t){t&&t.pendingBranch?wt(e)?t.effects.push(...e):t.effects.push(e):Jae(e)}function cr(e,t){if(uo){let r=uo.provides;const i=uo.parent&&uo.parent.provides;i===r&&(r=uo.provides=Object.create(i)),r[e]=t}}function _t(e,t,r=!1){const i=uo||Co;if(i){const n=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&qt(t)?t.call(i.proxy):t}}function Ds(e,t){return WL(e,null,t)}const qx={};function Ve(e,t,r){return WL(e,t,r)}function WL(e,t,{immediate:r,deep:i,flush:n,onTrack:o,onTrigger:s}=Ji){const l=uo;let a,c=!1,u=!1;if(hi(e)?(a=()=>e.value,c=Qk(e)):ev(e)?(a=()=>e,i=!0):wt(e)?(u=!0,c=e.some(C=>ev(C)||Qk(C)),a=()=>e.map(C=>{if(hi(C))return C.value;if(ev(C))return gm(C);if(qt(C))return hh(C,l,2)})):qt(e)?t?a=()=>hh(e,l,2):a=()=>{if(!(l&&l.isUnmounted))return p&&p(),Zl(e,l,3,[h])}:a=ti,t&&i){const C=a;a=()=>gm(C())}let p,h=C=>{p=x.onStop=()=>{hh(C,l,4)}},m;if(Mw)if(h=ti,t?r&&Zl(t,l,3,[a(),u?[]:void 0,h]):a(),n==="sync"){const C=Yce();m=C.__watcherHandles||(C.__watcherHandles=[])}else return ti;let y=u?new Array(e.length).fill(qx):qx;const v=()=>{if(!!x.active)if(t){const C=x.run();(i||c||(u?C.some((E,T)=>xw(E,y[T])):xw(C,y)))&&(p&&p(),Zl(t,l,3,[C,y===qx?void 0:u&&y[0]===qx?[]:y,h]),y=C)}else x.run()};v.allowRecurse=!!t;let _;n==="sync"?_=v:n==="post"?_=()=>Ms(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),_=()=>UL(v));const x=new RL(a,_);t?r?v():y=x.run():n==="post"?Ms(x.run.bind(x),l&&l.suspense):x.run();const S=()=>{x.stop(),l&&l.scope&&$L(l.scope.effects,x)};return m&&m.push(S),S}function cce(e,t,r){const i=this.proxy,n=Kt(e)?e.includes(".")?GH(i,e):()=>i[e]:e.bind(i,i);let o;qt(t)?o=t:(o=t.handler,r=t);const s=uo;Ev(this);const l=WL(n,o.bind(i),r);return s?Ev(s):zm(),l}function GH(e,t){const r=t.split(".");return()=>{let i=e;for(let n=0;n<r.length&&i;n++)i=i[r[n]];return i}}function gm(e,t){if(!yr(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),hi(e))gm(e.value,t);else if(wt(e))for(let r=0;r<e.length;r++)gm(e[r],t);else if(DE(e)||Xy(e))e.forEach(r=>{gm(r,t)});else if(wH(e))for(const r in e)gm(e[r],t);return e}function qH(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return er(()=>{e.isMounted=!0}),Ii(()=>{e.isUnmounting=!0}),e}const Al=[Function,Array],uce={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Al,onEnter:Al,onAfterEnter:Al,onEnterCancelled:Al,onBeforeLeave:Al,onLeave:Al,onAfterLeave:Al,onLeaveCancelled:Al,onBeforeAppear:Al,onAppear:Al,onAfterAppear:Al,onAppearCancelled:Al},setup(e,{slots:t}){const r=Xt(),i=qH();let n;return()=>{const o=t.default&&HL(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const v of o)if(v.type!==ns){s=v;break}}const l=ei(e),{mode:a}=l;if(i.isLeaving)return gA(s);const c=r8(s);if(!c)return gA(s);const u=Ew(c,l,i,r);Tw(c,u);const p=r.subTree,h=p&&r8(p);let m=!1;const{getTransitionKey:y}=c.type;if(y){const v=y();n===void 0?n=v:v!==n&&(n=v,m=!0)}if(h&&h.type!==ns&&(!rm(c,h)||m)){const v=Ew(h,l,i,r);if(Tw(h,v),a==="out-in")return i.isLeaving=!0,v.afterLeave=()=>{i.isLeaving=!1,r.update.active!==!1&&r.update()},gA(s);a==="in-out"&&c.type!==ns&&(v.delayLeave=(_,x,S)=>{const C=KH(i,h);C[String(h.key)]=h,_._leaveCb=()=>{x(),_._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},YH=uce;function KH(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function Ew(e,t,r,i){const{appear:n,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:v,onAppear:_,onAfterAppear:x,onAppearCancelled:S}=t,C=String(e.key),E=KH(r,e),T=(M,L)=>{M&&Zl(M,i,9,L)},w=(M,L)=>{const R=L[1];T(M,L),wt(M)?M.every(W=>W.length<=1)&&R():M.length<=1&&R()},I={mode:o,persisted:s,beforeEnter(M){let L=l;if(!r.isMounted)if(n)L=v||l;else return;M._leaveCb&&M._leaveCb(!0);const R=E[C];R&&rm(e,R)&&R.el._leaveCb&&R.el._leaveCb(),T(L,[M])},enter(M){let L=a,R=c,W=u;if(!r.isMounted)if(n)L=_||a,R=x||c,W=S||u;else return;let z=!1;const j=M._enterCb=U=>{z||(z=!0,U?T(W,[M]):T(R,[M]),I.delayedLeave&&I.delayedLeave(),M._enterCb=void 0)};L?w(L,[M,j]):j()},leave(M,L){const R=String(e.key);if(M._enterCb&&M._enterCb(!0),r.isUnmounting)return L();T(p,[M]);let W=!1;const z=M._leaveCb=j=>{W||(W=!0,L(),j?T(y,[M]):T(m,[M]),M._leaveCb=void 0,E[R]===e&&delete E[R])};E[R]=e,h?w(h,[M,z]):z()},clone(M){return Ew(M,t,r,i)}};return I}function gA(e){if(BE(e))return e=md(e),e.children=null,e}function r8(e){return BE(e)?e.children?e.children[0]:void 0:e}function Tw(e,t){e.shapeFlag&6&&e.component?Tw(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function HL(e,t=!1,r){let i=[],n=0;for(let o=0;o<e.length;o++){let s=e[o];const l=r==null?s.key:String(r)+String(s.key!=null?s.key:o);s.type===bt?(s.patchFlag&128&&n++,i=i.concat(HL(s.children,t,l))):(t||s.type!==ns)&&i.push(l!=null?md(s,{key:l}):s)}if(n>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function ye(e){return qt(e)?{setup:e,name:e.name}:e}const O_=e=>!!e.type.__asyncLoader,BE=e=>e.type.__isKeepAlive;function GL(e,t){ZH(e,"a",t)}function N1(e,t){ZH(e,"da",t)}function ZH(e,t,r=uo){const i=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(UE(t,i,r),r){let n=r.parent;for(;n&&n.parent;)BE(n.parent.vnode)&&dce(i,t,r,n),n=n.parent}}function dce(e,t,r,i){const n=UE(t,e,i,!0);pu(()=>{$L(i[t],n)},r)}function UE(e,t,r=uo,i=!1){if(r){const n=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;c0(),Ev(r);const l=Zl(t,r,e,s);return zm(),u0(),l});return i?n.unshift(o):n.push(o),o}}const Ed=e=>(t,r=uo)=>(!Mw||e==="sp")&&UE(e,(...i)=>t(...i),r),WE=Ed("bm"),er=Ed("m"),QH=Ed("bu"),Td=Ed("u"),Ii=Ed("bum"),pu=Ed("um"),pce=Ed("sp"),hce=Ed("rtg"),fce=Ed("rtc");function mce(e,t=uo){UE("ec",e,t)}function kt(e,t){const r=Co;if(r===null)return e;const i=qE(r)||r.proxy,n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,l,a,c=Ji]=t[o];s&&(qt(s)&&(s={mounted:s,updated:s}),s.deep&&gm(l),n.push({dir:s,instance:i,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function sf(e,t,r,i){const n=e.dirs,o=t&&t.dirs;for(let s=0;s<n.length;s++){const l=n[s];o&&(l.oldValue=o[s].value);let a=l.dir[i];a&&(c0(),Zl(a,r,8,[e.el,l,e,t]),u0())}}const qL="components",gce="directives";function Ft(e,t){return YL(qL,e,!0,t)||e}const JH=Symbol();function br(e){return Kt(e)?YL(qL,e,!1)||e:e||JH}function Sv(e){return YL(gce,e)}function YL(e,t,r=!0,i=!1){const n=Co||uo;if(n){const o=n.type;if(e===qL){const l=Hce(o,!1);if(l&&(l===t||l===is(t)||l===R1(is(t))))return o}const s=i8(n[e]||o[e],t)||i8(n.appContext[e],t);return!s&&i?o:s}}function i8(e,t){return e&&(e[t]||e[is(t)]||e[R1(is(t))])}function or(e,t,r,i){let n;const o=r&&r[i];if(wt(e)||Kt(e)){n=new Array(e.length);for(let s=0,l=e.length;s<l;s++)n[s]=t(e[s],s,void 0,o&&o[s])}else if(typeof e=="number"){n=new Array(e);for(let s=0;s<e;s++)n[s]=t(s+1,s,void 0,o&&o[s])}else if(yr(e))if(e[Symbol.iterator])n=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);n=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];n[l]=t(e[c],c,l,o&&o[l])}}else n=[];return r&&(r[i]=n),n}function fd(e,t){for(let r=0;r<t.length;r++){const i=t[r];if(wt(i))for(let n=0;n<i.length;n++)e[i[n].name]=i[n].fn;else i&&(e[i.name]=i.key?(...n)=>{const o=i.fn(...n);return o&&(o.key=i.key),o}:i.fn)}return e}function Be(e,t,r={},i,n){if(Co.isCE||Co.parent&&O_(Co.parent)&&Co.parent.isCE)return t!=="default"&&(r.name=t),Y("slot",r,i&&i());let o=e[t];o&&o._c&&(o._d=!1),$();const s=o&&XH(o(r)),l=Te(bt,{key:r.key||s&&s.key||`_${t}`},s||(i?i():[]),s&&e._===1?64:-2);return!n&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function XH(e){return e.some(t=>Ei(t)?!(t.type===ns||t.type===bt&&!XH(t.children)):!0)?e:null}function yce(e,t){const r={};for(const i in e)r[t&&/[A-Z]/.test(i)?`on:${i}`:uC(i)]=e[i];return r}const KI=e=>e?uG(e)?qE(e)||e.proxy:KI(e.parent):null,L_=Xn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>KI(e.parent),$root:e=>KI(e.root),$emit:e=>e.emit,$options:e=>KL(e),$forceUpdate:e=>e.f||(e.f=()=>UL(e.update)),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>cce.bind(e)}),yA=(e,t)=>e!==Ji&&!e.__isScriptSetup&&Mr(e,t),vce={get({_:e},t){const{ctx:r,setupState:i,data:n,props:o,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=s[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return n[t];case 4:return r[t];case 3:return o[t]}else{if(yA(i,t))return s[t]=1,i[t];if(n!==Ji&&Mr(n,t))return s[t]=2,n[t];if((c=e.propsOptions[0])&&Mr(c,t))return s[t]=3,o[t];if(r!==Ji&&Mr(r,t))return s[t]=4,r[t];ZI&&(s[t]=0)}}const u=L_[t];let p,h;if(u)return t==="$attrs"&&wl(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(r!==Ji&&Mr(r,t))return s[t]=4,r[t];if(h=a.config.globalProperties,Mr(h,t))return h[t]},set({_:e},t,r){const{data:i,setupState:n,ctx:o}=e;return yA(n,t)?(n[t]=r,!0):i!==Ji&&Mr(i,t)?(i[t]=r,!0):Mr(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:n,propsOptions:o}},s){let l;return!!r[s]||e!==Ji&&Mr(e,s)||yA(t,s)||(l=o[0])&&Mr(l,s)||Mr(i,s)||Mr(L_,s)||Mr(n.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Mr(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let ZI=!0;function bce(e){const t=KL(e),r=e.proxy,i=e.ctx;ZI=!1,t.beforeCreate&&n8(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:h,beforeUpdate:m,updated:y,activated:v,deactivated:_,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:E,render:T,renderTracked:w,renderTriggered:I,errorCaptured:M,serverPrefetch:L,expose:R,inheritAttrs:W,components:z,directives:j,filters:U}=t;if(c&&_ce(c,i,null,e.appContext.config.unwrapInjectedRef),s)for(const B in s){const V=s[B];qt(V)&&(i[B]=V.bind(r))}if(n){const B=n.call(r,r);yr(B)&&(e.data=kr(B))}if(ZI=!0,o)for(const B in o){const V=o[B],H=qt(V)?V.bind(r,r):qt(V.get)?V.get.bind(r,r):ti,ee=!qt(V)&&qt(V.set)?V.set.bind(r):ti,ce=O({get:H,set:ee});Object.defineProperty(i,B,{enumerable:!0,configurable:!0,get:()=>ce.value,set:re=>ce.value=re})}if(l)for(const B in l)eG(l[B],i,r,B);if(a){const B=qt(a)?a.call(r):a;Reflect.ownKeys(B).forEach(V=>{cr(V,B[V])})}u&&n8(u,e,"c");function Q(B,V){wt(V)?V.forEach(H=>B(H.bind(r))):V&&B(V.bind(r))}if(Q(WE,p),Q(er,h),Q(QH,m),Q(Td,y),Q(GL,v),Q(N1,_),Q(mce,M),Q(fce,w),Q(hce,I),Q(Ii,S),Q(pu,E),Q(pce,L),wt(R))if(R.length){const B=e.exposed||(e.exposed={});R.forEach(V=>{Object.defineProperty(B,V,{get:()=>r[V],set:H=>r[V]=H})})}else e.exposed||(e.exposed={});T&&e.render===ti&&(e.render=T),W!=null&&(e.inheritAttrs=W),z&&(e.components=z),j&&(e.directives=j)}function _ce(e,t,r=ti,i=!1){wt(e)&&(e=QI(e));for(const n in e){const o=e[n];let s;yr(o)?"default"in o?s=_t(o.from||n,o.default,!0):s=_t(o.from||n):s=_t(o),hi(s)&&i?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[n]=s}}function n8(e,t,r){Zl(wt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function eG(e,t,r,i){const n=i.includes(".")?GH(r,i):()=>r[i];if(Kt(e)){const o=t[e];qt(o)&&Ve(n,o)}else if(qt(e))Ve(n,e.bind(r));else if(yr(e))if(wt(e))e.forEach(o=>eG(o,t,r,i));else{const o=qt(e.handler)?e.handler.bind(r):t[e.handler];qt(o)&&Ve(n,o,e)}}function KL(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let a;return l?a=l:!n.length&&!r&&!i?a=t:(a={},n.length&&n.forEach(c=>Xk(a,c,s,!0)),Xk(a,t,s)),yr(t)&&o.set(t,a),a}function Xk(e,t,r,i=!1){const{mixins:n,extends:o}=t;o&&Xk(e,o,r,!0),n&&n.forEach(s=>Xk(e,s,r,!0));for(const s in t)if(!(i&&s==="expose")){const l=wce[s]||r&&r[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const wce={data:o8,props:yf,emits:yf,methods:yf,computed:yf,beforeCreate:Zo,created:Zo,beforeMount:Zo,mounted:Zo,beforeUpdate:Zo,updated:Zo,beforeDestroy:Zo,beforeUnmount:Zo,destroyed:Zo,unmounted:Zo,activated:Zo,deactivated:Zo,errorCaptured:Zo,serverPrefetch:Zo,components:yf,directives:yf,watch:Cce,provide:o8,inject:xce};function o8(e,t){return t?e?function(){return Xn(qt(e)?e.call(this,this):e,qt(t)?t.call(this,this):t)}:t:e}function xce(e,t){return yf(QI(e),QI(t))}function QI(e){if(wt(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Zo(e,t){return e?[...new Set([].concat(e,t))]:t}function yf(e,t){return e?Xn(Xn(Object.create(null),e),t):t}function Cce(e,t){if(!e)return t;if(!t)return e;const r=Xn(Object.create(null),e);for(const i in t)r[i]=Zo(e[i],t[i]);return r}function kce(e,t,r,i=!1){const n={},o={};Zk(o,HE,1),e.propsDefaults=Object.create(null),tG(e,t,n,o);for(const s in e.propsOptions[0])s in n||(n[s]=void 0);r?e.props=i?n:LH(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function Sce(e,t,r,i){const{props:n,attrs:o,vnode:{patchFlag:s}}=e,l=ei(n),[a]=e.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let h=u[p];if(jE(e.emitsOptions,h))continue;const m=t[h];if(a)if(Mr(o,h))m!==o[h]&&(o[h]=m,c=!0);else{const y=is(h);n[y]=JI(a,l,y,m,e,!1)}else m!==o[h]&&(o[h]=m,c=!0)}}}else{tG(e,t,n,o)&&(c=!0);let u;for(const p in l)(!t||!Mr(t,p)&&((u=hl(p))===p||!Mr(t,u)))&&(a?r&&(r[p]!==void 0||r[u]!==void 0)&&(n[p]=JI(a,l,p,void 0,e,!0)):delete n[p]);if(o!==l)for(const p in o)(!t||!Mr(t,p)&&!0)&&(delete o[p],c=!0)}c&&hd(e,"set","$attrs")}function tG(e,t,r,i){const[n,o]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(cC(a))continue;const c=t[a];let u;n&&Mr(n,u=is(a))?!o||!o.includes(u)?r[u]=c:(l||(l={}))[u]=c:jE(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,s=!0)}if(o){const a=ei(r),c=l||Ji;for(let u=0;u<o.length;u++){const p=o[u];r[p]=JI(n,a,p,c[p],e,!Mr(c,p))}}return s}function JI(e,t,r,i,n,o){const s=e[r];if(s!=null){const l=Mr(s,"default");if(l&&i===void 0){const a=s.default;if(s.type!==Function&&qt(a)){const{propsDefaults:c}=n;r in c?i=c[r]:(Ev(n),i=c[r]=a.call(null,t),zm())}else i=a}s[0]&&(o&&!l?i=!1:s[1]&&(i===""||i===hl(r))&&(i=!0))}return i}function rG(e,t,r=!1){const i=t.propsCache,n=i.get(e);if(n)return n;const o=e.props,s={},l=[];let a=!1;if(!qt(e)){const u=p=>{a=!0;const[h,m]=rG(p,t,!0);Xn(s,h),m&&l.push(...m)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return yr(e)&&i.set(e,Jy),Jy;if(wt(o))for(let u=0;u<o.length;u++){const p=is(o[u]);s8(p)&&(s[p]=Ji)}else if(o)for(const u in o){const p=is(u);if(s8(p)){const h=o[u],m=s[p]=wt(h)||qt(h)?{type:h}:Object.assign({},h);if(m){const y=c8(Boolean,m.type),v=c8(String,m.type);m[0]=y>-1,m[1]=v<0||y<v,(y>-1||Mr(m,"default"))&&l.push(p)}}}const c=[s,l];return yr(e)&&i.set(e,c),c}function s8(e){return e[0]!=="$"}function l8(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function a8(e,t){return l8(e)===l8(t)}function c8(e,t){return wt(t)?t.findIndex(r=>a8(r,e)):qt(t)&&a8(t,e)?0:-1}const iG=e=>e[0]==="_"||e==="$stable",ZL=e=>wt(e)?e.map(Hc):[Hc(e)],Ece=(e,t,r)=>{if(t._n)return t;const i=me((...n)=>ZL(t(...n)),r);return i._c=!1,i},nG=(e,t,r)=>{const i=e._ctx;for(const n in e){if(iG(n))continue;const o=e[n];if(qt(o))t[n]=Ece(n,o,i);else if(o!=null){const s=ZL(o);t[n]=()=>s}}},oG=(e,t)=>{const r=ZL(t);e.slots.default=()=>r},Tce=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ei(t),Zk(t,"_",r)):nG(t,e.slots={})}else e.slots={},t&&oG(e,t);Zk(e.slots,HE,1)},Ace=(e,t,r)=>{const{vnode:i,slots:n}=e;let o=!0,s=Ji;if(i.shapeFlag&32){const l=t._;l?r&&l===1?o=!1:(Xn(n,t),!r&&l===1&&delete n._):(o=!t.$stable,nG(t,n)),s=t}else t&&(oG(e,t),s={default:1});if(o)for(const l in n)!iG(l)&&!(l in s)&&delete n[l]};function sG(){return{app:null,config:{isNativeTag:uae,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Mce=0;function Ice(e,t){return function(i,n=null){qt(i)||(i=Object.assign({},i)),n!=null&&!yr(n)&&(n=null);const o=sG(),s=new Set;let l=!1;const a=o.app={_uid:Mce++,_component:i,_props:n,_container:null,_context:o,_instance:null,version:Kce,get config(){return o.config},set config(c){},use(c,...u){return s.has(c)||(c&&qt(c.install)?(s.add(c),c.install(a,...u)):qt(c)&&(s.add(c),c(a,...u))),a},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),a},component(c,u){return u?(o.components[c]=u,a):o.components[c]},directive(c,u){return u?(o.directives[c]=u,a):o.directives[c]},mount(c,u,p){if(!l){const h=Y(i,n);return h.appContext=o,u&&t?t(h,c):e(h,c,p),l=!0,a._container=c,c.__vue_app__=a,qE(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return o.provides[c]=u,a}};return a}}function XI(e,t,r,i,n=!1){if(wt(e)){e.forEach((h,m)=>XI(h,t&&(wt(t)?t[m]:t),r,i,n));return}if(O_(i)&&!n)return;const o=i.shapeFlag&4?qE(i.component)||i.component.proxy:i.el,s=n?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Ji?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(Kt(c)?(u[c]=null,Mr(p,c)&&(p[c]=null)):hi(c)&&(c.value=null)),qt(a))hh(a,l,12,[s,u]);else{const h=Kt(a),m=hi(a);if(h||m){const y=()=>{if(e.f){const v=h?Mr(p,a)?p[a]:u[a]:a.value;n?wt(v)&&$L(v,o):wt(v)?v.includes(o)||v.push(o):h?(u[a]=[o],Mr(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,Mr(p,a)&&(p[a]=s)):m&&(a.value=s,e.k&&(u[e.k]=s))};s?(y.id=-1,Ms(y,r)):y()}}}const Ms=ace;function Pce(e){return $ce(e)}function $ce(e,t){const r=mae();r.__VUE__=!0;const{insert:i,remove:n,patchProp:o,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:h,setScopeId:m=ti,insertStaticContent:y}=e,v=(ne,pe,ge,Se=null,xe=null,be=null,Qe=!1,Fe=null,Me=!!pe.dynamicChildren)=>{if(ne===pe)return;ne&&!rm(ne,pe)&&(Se=ae(ne),re(ne,xe,be,!0),ne=null),pe.patchFlag===-2&&(Me=!1,pe.dynamicChildren=null);const{type:Ie,ref:Pe,shapeFlag:Xe}=pe;switch(Ie){case p0:_(ne,pe,ge,Se);break;case ns:x(ne,pe,ge,Se);break;case vA:ne==null&&S(pe,ge,Se,Qe);break;case bt:z(ne,pe,ge,Se,xe,be,Qe,Fe,Me);break;default:Xe&1?T(ne,pe,ge,Se,xe,be,Qe,Fe,Me):Xe&6?j(ne,pe,ge,Se,xe,be,Qe,Fe,Me):(Xe&64||Xe&128)&&Ie.process(ne,pe,ge,Se,xe,be,Qe,Fe,Me,he)}Pe!=null&&xe&&XI(Pe,ne&&ne.ref,be,pe||ne,!pe)},_=(ne,pe,ge,Se)=>{if(ne==null)i(pe.el=l(pe.children),ge,Se);else{const xe=pe.el=ne.el;pe.children!==ne.children&&c(xe,pe.children)}},x=(ne,pe,ge,Se)=>{ne==null?i(pe.el=a(pe.children||""),ge,Se):pe.el=ne.el},S=(ne,pe,ge,Se)=>{[ne.el,ne.anchor]=y(ne.children,pe,ge,Se,ne.el,ne.anchor)},C=({el:ne,anchor:pe},ge,Se)=>{let xe;for(;ne&&ne!==pe;)xe=h(ne),i(ne,ge,Se),ne=xe;i(pe,ge,Se)},E=({el:ne,anchor:pe})=>{let ge;for(;ne&&ne!==pe;)ge=h(ne),n(ne),ne=ge;n(pe)},T=(ne,pe,ge,Se,xe,be,Qe,Fe,Me)=>{Qe=Qe||pe.type==="svg",ne==null?w(pe,ge,Se,xe,be,Qe,Fe,Me):L(ne,pe,xe,be,Qe,Fe,Me)},w=(ne,pe,ge,Se,xe,be,Qe,Fe)=>{let Me,Ie;const{type:Pe,props:Xe,shapeFlag:dt,transition:gt,dirs:Dt}=ne;if(Me=ne.el=s(ne.type,be,Xe&&Xe.is,Xe),dt&8?u(Me,ne.children):dt&16&&M(ne.children,Me,null,Se,xe,be&&Pe!=="foreignObject",Qe,Fe),Dt&&sf(ne,null,Se,"created"),Xe){for(const Bt in Xe)Bt!=="value"&&!cC(Bt)&&o(Me,Bt,null,Xe[Bt],be,ne.children,Se,xe,_e);"value"in Xe&&o(Me,"value",null,Xe.value),(Ie=Xe.onVnodeBeforeMount)&&_c(Ie,Se,ne)}I(Me,ne,ne.scopeId,Qe,Se),Dt&&sf(ne,null,Se,"beforeMount");const Jt=(!xe||xe&&!xe.pendingBranch)&>&&!gt.persisted;Jt&>.beforeEnter(Me),i(Me,pe,ge),((Ie=Xe&&Xe.onVnodeMounted)||Jt||Dt)&&Ms(()=>{Ie&&_c(Ie,Se,ne),Jt&>.enter(Me),Dt&&sf(ne,null,Se,"mounted")},xe)},I=(ne,pe,ge,Se,xe)=>{if(ge&&m(ne,ge),Se)for(let be=0;be<Se.length;be++)m(ne,Se[be]);if(xe){let be=xe.subTree;if(pe===be){const Qe=xe.vnode;I(ne,Qe,Qe.scopeId,Qe.slotScopeIds,xe.parent)}}},M=(ne,pe,ge,Se,xe,be,Qe,Fe,Me=0)=>{for(let Ie=Me;Ie<ne.length;Ie++){const Pe=ne[Ie]=Fe?Wp(ne[Ie]):Hc(ne[Ie]);v(null,Pe,pe,ge,Se,xe,be,Qe,Fe)}},L=(ne,pe,ge,Se,xe,be,Qe)=>{const Fe=pe.el=ne.el;let{patchFlag:Me,dynamicChildren:Ie,dirs:Pe}=pe;Me|=ne.patchFlag&16;const Xe=ne.props||Ji,dt=pe.props||Ji;let gt;ge&&lf(ge,!1),(gt=dt.onVnodeBeforeUpdate)&&_c(gt,ge,pe,ne),Pe&&sf(pe,ne,ge,"beforeUpdate"),ge&&lf(ge,!0);const Dt=xe&&pe.type!=="foreignObject";if(Ie?R(ne.dynamicChildren,Ie,Fe,ge,Se,Dt,be):Qe||V(ne,pe,Fe,null,ge,Se,Dt,be,!1),Me>0){if(Me&16)W(Fe,pe,Xe,dt,ge,Se,xe);else if(Me&2&&Xe.class!==dt.class&&o(Fe,"class",null,dt.class,xe),Me&4&&o(Fe,"style",Xe.style,dt.style,xe),Me&8){const Jt=pe.dynamicProps;for(let Bt=0;Bt<Jt.length;Bt++){const Le=Jt[Bt],st=Xe[Le],It=dt[Le];(It!==st||Le==="value")&&o(Fe,Le,st,It,xe,ne.children,ge,Se,_e)}}Me&1&&ne.children!==pe.children&&u(Fe,pe.children)}else!Qe&&Ie==null&&W(Fe,pe,Xe,dt,ge,Se,xe);((gt=dt.onVnodeUpdated)||Pe)&&Ms(()=>{gt&&_c(gt,ge,pe,ne),Pe&&sf(pe,ne,ge,"updated")},Se)},R=(ne,pe,ge,Se,xe,be,Qe)=>{for(let Fe=0;Fe<pe.length;Fe++){const Me=ne[Fe],Ie=pe[Fe],Pe=Me.el&&(Me.type===bt||!rm(Me,Ie)||Me.shapeFlag&70)?p(Me.el):ge;v(Me,Ie,Pe,null,Se,xe,be,Qe,!0)}},W=(ne,pe,ge,Se,xe,be,Qe)=>{if(ge!==Se){if(ge!==Ji)for(const Fe in ge)!cC(Fe)&&!(Fe in Se)&&o(ne,Fe,ge[Fe],null,Qe,pe.children,xe,be,_e);for(const Fe in Se){if(cC(Fe))continue;const Me=Se[Fe],Ie=ge[Fe];Me!==Ie&&Fe!=="value"&&o(ne,Fe,Ie,Me,Qe,pe.children,xe,be,_e)}"value"in Se&&o(ne,"value",ge.value,Se.value)}},z=(ne,pe,ge,Se,xe,be,Qe,Fe,Me)=>{const Ie=pe.el=ne?ne.el:l(""),Pe=pe.anchor=ne?ne.anchor:l("");let{patchFlag:Xe,dynamicChildren:dt,slotScopeIds:gt}=pe;gt&&(Fe=Fe?Fe.concat(gt):gt),ne==null?(i(Ie,ge,Se),i(Pe,ge,Se),M(pe.children,ge,Pe,xe,be,Qe,Fe,Me)):Xe>0&&Xe&64&&dt&&ne.dynamicChildren?(R(ne.dynamicChildren,dt,ge,xe,be,Qe,Fe),(pe.key!=null||xe&&pe===xe.subTree)&&QL(ne,pe,!0)):V(ne,pe,ge,Pe,xe,be,Qe,Fe,Me)},j=(ne,pe,ge,Se,xe,be,Qe,Fe,Me)=>{pe.slotScopeIds=Fe,ne==null?pe.shapeFlag&512?xe.ctx.activate(pe,ge,Se,Qe,Me):U(pe,ge,Se,xe,be,Qe,Me):Z(ne,pe,Me)},U=(ne,pe,ge,Se,xe,be,Qe)=>{const Fe=ne.component=Vce(ne,Se,xe);if(BE(ne)&&(Fe.ctx.renderer=he),Bce(Fe),Fe.asyncDep){if(xe&&xe.registerDep(Fe,Q),!ne.el){const Me=Fe.subTree=Y(ns);x(null,Me,pe,ge)}return}Q(Fe,ne,pe,ge,xe,be,Qe)},Z=(ne,pe,ge)=>{const Se=pe.component=ne.component;if(oce(ne,pe,ge))if(Se.asyncDep&&!Se.asyncResolved){B(Se,pe,ge);return}else Se.next=pe,Qae(Se.update),Se.update();else pe.el=ne.el,Se.vnode=pe},Q=(ne,pe,ge,Se,xe,be,Qe)=>{const Fe=()=>{if(ne.isMounted){let{next:Pe,bu:Xe,u:dt,parent:gt,vnode:Dt}=ne,Jt=Pe,Bt;lf(ne,!1),Pe?(Pe.el=Dt.el,B(ne,Pe,Qe)):Pe=Dt,Xe&&dC(Xe),(Bt=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&_c(Bt,gt,Pe,Dt),lf(ne,!0);const Le=mA(ne),st=ne.subTree;ne.subTree=Le,v(st,Le,p(st.el),ae(st),ne,xe,be),Pe.el=Le.el,Jt===null&&sce(ne,Le.el),dt&&Ms(dt,xe),(Bt=Pe.props&&Pe.props.onVnodeUpdated)&&Ms(()=>_c(Bt,gt,Pe,Dt),xe)}else{let Pe;const{el:Xe,props:dt}=pe,{bm:gt,m:Dt,parent:Jt}=ne,Bt=O_(pe);if(lf(ne,!1),gt&&dC(gt),!Bt&&(Pe=dt&&dt.onVnodeBeforeMount)&&_c(Pe,Jt,pe),lf(ne,!0),Xe&&Je){const Le=()=>{ne.subTree=mA(ne),Je(Xe,ne.subTree,ne,xe,null)};Bt?pe.type.__asyncLoader().then(()=>!ne.isUnmounted&&Le()):Le()}else{const Le=ne.subTree=mA(ne);v(null,Le,ge,Se,ne,xe,be),pe.el=Le.el}if(Dt&&Ms(Dt,xe),!Bt&&(Pe=dt&&dt.onVnodeMounted)){const Le=pe;Ms(()=>_c(Pe,Jt,Le),xe)}(pe.shapeFlag&256||Jt&&O_(Jt.vnode)&&Jt.vnode.shapeFlag&256)&&ne.a&&Ms(ne.a,xe),ne.isMounted=!0,pe=ge=Se=null}},Me=ne.effect=new RL(Fe,()=>UL(Ie),ne.scope),Ie=ne.update=()=>Me.run();Ie.id=ne.uid,lf(ne,!0),Ie()},B=(ne,pe,ge)=>{pe.component=ne;const Se=ne.vnode.props;ne.vnode=pe,ne.next=null,Sce(ne,pe.props,Se,ge),Ace(ne,pe.children,ge),c0(),e8(),u0()},V=(ne,pe,ge,Se,xe,be,Qe,Fe,Me=!1)=>{const Ie=ne&&ne.children,Pe=ne?ne.shapeFlag:0,Xe=pe.children,{patchFlag:dt,shapeFlag:gt}=pe;if(dt>0){if(dt&128){ee(Ie,Xe,ge,Se,xe,be,Qe,Fe,Me);return}else if(dt&256){H(Ie,Xe,ge,Se,xe,be,Qe,Fe,Me);return}}gt&8?(Pe&16&&_e(Ie,xe,be),Xe!==Ie&&u(ge,Xe)):Pe&16?gt&16?ee(Ie,Xe,ge,Se,xe,be,Qe,Fe,Me):_e(Ie,xe,be,!0):(Pe&8&&u(ge,""),gt&16&&M(Xe,ge,Se,xe,be,Qe,Fe,Me))},H=(ne,pe,ge,Se,xe,be,Qe,Fe,Me)=>{ne=ne||Jy,pe=pe||Jy;const Ie=ne.length,Pe=pe.length,Xe=Math.min(Ie,Pe);let dt;for(dt=0;dt<Xe;dt++){const gt=pe[dt]=Me?Wp(pe[dt]):Hc(pe[dt]);v(ne[dt],gt,ge,null,xe,be,Qe,Fe,Me)}Ie>Pe?_e(ne,xe,be,!0,!1,Xe):M(pe,ge,Se,xe,be,Qe,Fe,Me,Xe)},ee=(ne,pe,ge,Se,xe,be,Qe,Fe,Me)=>{let Ie=0;const Pe=pe.length;let Xe=ne.length-1,dt=Pe-1;for(;Ie<=Xe&&Ie<=dt;){const gt=ne[Ie],Dt=pe[Ie]=Me?Wp(pe[Ie]):Hc(pe[Ie]);if(rm(gt,Dt))v(gt,Dt,ge,null,xe,be,Qe,Fe,Me);else break;Ie++}for(;Ie<=Xe&&Ie<=dt;){const gt=ne[Xe],Dt=pe[dt]=Me?Wp(pe[dt]):Hc(pe[dt]);if(rm(gt,Dt))v(gt,Dt,ge,null,xe,be,Qe,Fe,Me);else break;Xe--,dt--}if(Ie>Xe){if(Ie<=dt){const gt=dt+1,Dt=gt<Pe?pe[gt].el:Se;for(;Ie<=dt;)v(null,pe[Ie]=Me?Wp(pe[Ie]):Hc(pe[Ie]),ge,Dt,xe,be,Qe,Fe,Me),Ie++}}else if(Ie>dt)for(;Ie<=Xe;)re(ne[Ie],xe,be,!0),Ie++;else{const gt=Ie,Dt=Ie,Jt=new Map;for(Ie=Dt;Ie<=dt;Ie++){const it=pe[Ie]=Me?Wp(pe[Ie]):Hc(pe[Ie]);it.key!=null&&Jt.set(it.key,Ie)}let Bt,Le=0;const st=dt-Dt+1;let It=!1,ie=0;const we=new Array(st);for(Ie=0;Ie<st;Ie++)we[Ie]=0;for(Ie=gt;Ie<=Xe;Ie++){const it=ne[Ie];if(Le>=st){re(it,xe,be,!0);continue}let Zt;if(it.key!=null)Zt=Jt.get(it.key);else for(Bt=Dt;Bt<=dt;Bt++)if(we[Bt-Dt]===0&&rm(it,pe[Bt])){Zt=Bt;break}Zt===void 0?re(it,xe,be,!0):(we[Zt-Dt]=Ie+1,Zt>=ie?ie=Zt:It=!0,v(it,pe[Zt],ge,null,xe,be,Qe,Fe,Me),Le++)}const qe=It?Oce(we):Jy;for(Bt=qe.length-1,Ie=st-1;Ie>=0;Ie--){const it=Dt+Ie,Zt=pe[it],Cr=it+1<Pe?pe[it+1].el:Se;we[Ie]===0?v(null,Zt,ge,Cr,xe,be,Qe,Fe,Me):It&&(Bt<0||Ie!==qe[Bt]?ce(Zt,ge,Cr,2):Bt--)}}},ce=(ne,pe,ge,Se,xe=null)=>{const{el:be,type:Qe,transition:Fe,children:Me,shapeFlag:Ie}=ne;if(Ie&6){ce(ne.component.subTree,pe,ge,Se);return}if(Ie&128){ne.suspense.move(pe,ge,Se);return}if(Ie&64){Qe.move(ne,pe,ge,he);return}if(Qe===bt){i(be,pe,ge);for(let Xe=0;Xe<Me.length;Xe++)ce(Me[Xe],pe,ge,Se);i(ne.anchor,pe,ge);return}if(Qe===vA){C(ne,pe,ge);return}if(Se!==2&&Ie&1&&Fe)if(Se===0)Fe.beforeEnter(be),i(be,pe,ge),Ms(()=>Fe.enter(be),xe);else{const{leave:Xe,delayLeave:dt,afterLeave:gt}=Fe,Dt=()=>i(be,pe,ge),Jt=()=>{Xe(be,()=>{Dt(),gt&>()})};dt?dt(be,Dt,Jt):Jt()}else i(be,pe,ge)},re=(ne,pe,ge,Se=!1,xe=!1)=>{const{type:be,props:Qe,ref:Fe,children:Me,dynamicChildren:Ie,shapeFlag:Pe,patchFlag:Xe,dirs:dt}=ne;if(Fe!=null&&XI(Fe,null,ge,ne,!0),Pe&256){pe.ctx.deactivate(ne);return}const gt=Pe&1&&dt,Dt=!O_(ne);let Jt;if(Dt&&(Jt=Qe&&Qe.onVnodeBeforeUnmount)&&_c(Jt,pe,ne),Pe&6)de(ne.component,ge,Se);else{if(Pe&128){ne.suspense.unmount(ge,Se);return}gt&&sf(ne,null,pe,"beforeUnmount"),Pe&64?ne.type.remove(ne,pe,ge,xe,he,Se):Ie&&(be!==bt||Xe>0&&Xe&64)?_e(Ie,pe,ge,!1,!0):(be===bt&&Xe&384||!xe&&Pe&16)&&_e(Me,pe,ge),Se&&fe(ne)}(Dt&&(Jt=Qe&&Qe.onVnodeUnmounted)||gt)&&Ms(()=>{Jt&&_c(Jt,pe,ne),gt&&sf(ne,null,pe,"unmounted")},ge)},fe=ne=>{const{type:pe,el:ge,anchor:Se,transition:xe}=ne;if(pe===bt){Ne(ge,Se);return}if(pe===vA){E(ne);return}const be=()=>{n(ge),xe&&!xe.persisted&&xe.afterLeave&&xe.afterLeave()};if(ne.shapeFlag&1&&xe&&!xe.persisted){const{leave:Qe,delayLeave:Fe}=xe,Me=()=>Qe(ge,be);Fe?Fe(ne.el,be,Me):Me()}else be()},Ne=(ne,pe)=>{let ge;for(;ne!==pe;)ge=h(ne),n(ne),ne=ge;n(pe)},de=(ne,pe,ge)=>{const{bum:Se,scope:xe,update:be,subTree:Qe,um:Fe}=ne;Se&&dC(Se),xe.stop(),be&&(be.active=!1,re(Qe,ne,pe,ge)),Fe&&Ms(Fe,pe),Ms(()=>{ne.isUnmounted=!0},pe),pe&&pe.pendingBranch&&!pe.isUnmounted&&ne.asyncDep&&!ne.asyncResolved&&ne.suspenseId===pe.pendingId&&(pe.deps--,pe.deps===0&&pe.resolve())},_e=(ne,pe,ge,Se=!1,xe=!1,be=0)=>{for(let Qe=be;Qe<ne.length;Qe++)re(ne[Qe],pe,ge,Se,xe)},ae=ne=>ne.shapeFlag&6?ae(ne.component.subTree):ne.shapeFlag&128?ne.suspense.next():h(ne.anchor||ne.el),X=(ne,pe,ge)=>{ne==null?pe._vnode&&re(pe._vnode,null,null,!0):v(pe._vnode||null,ne,pe,null,null,null,ge),e8(),UH(),pe._vnode=ne},he={p:v,um:re,m:ce,r:fe,mt:U,mc:M,pc:V,pbc:R,n:ae,o:e};let $e,Je;return t&&([$e,Je]=t(he)),{render:X,hydrate:$e,createApp:Ice(X,$e)}}function lf({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function QL(e,t,r=!1){const i=e.children,n=t.children;if(wt(i)&&wt(n))for(let o=0;o<i.length;o++){const s=i[o];let l=n[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=n[o]=Wp(n[o]),l.el=s.el),r||QL(s,l)),l.type===p0&&(l.el=s.el)}}function Oce(e){const t=e.slice(),r=[0];let i,n,o,s,l;const a=e.length;for(i=0;i<a;i++){const c=e[i];if(c!==0){if(n=r[r.length-1],e[n]<c){t[i]=n,r.push(i);continue}for(o=0,s=r.length-1;o<s;)l=o+s>>1,e[r[l]]<c?o=l+1:s=l;c<e[r[o]]&&(o>0&&(t[i]=r[o-1]),r[o]=i)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}const Lce=e=>e.__isTeleport,R_=e=>e&&(e.disabled||e.disabled===""),u8=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,eP=(e,t)=>{const r=e&&e.to;return Kt(r)?t?t(r):null:r},Rce={__isTeleport:!0,process(e,t,r,i,n,o,s,l,a,c){const{mc:u,pc:p,pbc:h,o:{insert:m,querySelector:y,createText:v,createComment:_}}=c,x=R_(t.props);let{shapeFlag:S,children:C,dynamicChildren:E}=t;if(e==null){const T=t.el=v(""),w=t.anchor=v("");m(T,r,i),m(w,r,i);const I=t.target=eP(t.props,y),M=t.targetAnchor=v("");I&&(m(M,I),s=s||u8(I));const L=(R,W)=>{S&16&&u(C,R,W,n,o,s,l,a)};x?L(r,w):I&&L(I,M)}else{t.el=e.el;const T=t.anchor=e.anchor,w=t.target=e.target,I=t.targetAnchor=e.targetAnchor,M=R_(e.props),L=M?r:w,R=M?T:I;if(s=s||u8(w),E?(h(e.dynamicChildren,E,L,n,o,s,l),QL(e,t,!0)):a||p(e,t,L,R,n,o,s,l,!1),x)M||Yx(t,r,T,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=eP(t.props,y);W&&Yx(t,W,null,c,0)}else M&&Yx(t,w,I,c,1)}lG(t)},remove(e,t,r,i,{um:n,o:{remove:o}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:p,props:h}=e;if(p&&o(u),(s||!R_(h))&&(o(c),l&16))for(let m=0;m<a.length;m++){const y=a[m];n(y,t,r,!0,!!y.dynamicChildren)}},move:Yx,hydrate:Dce};function Yx(e,t,r,{o:{insert:i},m:n},o=2){o===0&&i(e.targetAnchor,t,r);const{el:s,anchor:l,shapeFlag:a,children:c,props:u}=e,p=o===2;if(p&&i(s,t,r),(!p||R_(u))&&a&16)for(let h=0;h<c.length;h++)n(c[h],t,r,2);p&&i(l,t,r)}function Dce(e,t,r,i,n,o,{o:{nextSibling:s,parentNode:l,querySelector:a}},c){const u=t.target=eP(t.props,a);if(u){const p=u._lpa||u.firstChild;if(t.shapeFlag&16)if(R_(t.props))t.anchor=c(s(e),t,l(e),r,i,n,o),t.targetAnchor=p;else{t.anchor=s(e);let h=p;for(;h;)if(h=s(h),h&&h.nodeType===8&&h.data==="teleport anchor"){t.targetAnchor=h,u._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(p,t,u,r,i,n,o)}lG(t)}return t.anchor&&s(t.anchor)}const d0=Rce;function lG(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const bt=Symbol(void 0),p0=Symbol(void 0),ns=Symbol(void 0),vA=Symbol(void 0),D_=[];let Ka=null;function $(e=!1){D_.push(Ka=e?null:[])}function Nce(){D_.pop(),Ka=D_[D_.length-1]||null}let Aw=1;function d8(e){Aw+=e}function aG(e){return e.dynamicChildren=Aw>0?Ka||Jy:null,Nce(),Aw>0&&Ka&&Ka.push(e),e}function K(e,t,r,i,n,o){return aG(G(e,t,r,i,n,o,!0))}function Te(e,t,r,i,n){return aG(Y(e,t,r,i,n,!0))}function Ei(e){return e?e.__v_isVNode===!0:!1}function rm(e,t){return e.type===t.type&&e.key===t.key}const HE="__vInternal",cG=({key:e})=>e!=null?e:null,pC=({ref:e,ref_key:t,ref_for:r})=>e!=null?Kt(e)||hi(e)||qt(e)?{i:Co,r:e,k:t,f:!!r}:e:null;function G(e,t=null,r=null,i=0,n=null,o=e===bt?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cG(t),ref:t&&pC(t),scopeId:VE,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Co};return l?(JL(a,r),o&128&&e.normalize(a)):r&&(a.shapeFlag|=Kt(r)?8:16),Aw>0&&!s&&Ka&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ka.push(a),a}const Y=Fce;function Fce(e,t=null,r=null,i=0,n=null,o=!1){if((!e||e===JH)&&(e=ns),Ei(e)){const l=md(e,t,!0);return r&&JL(l,r),Aw>0&&!o&&Ka&&(l.shapeFlag&6?Ka[Ka.indexOf(e)]=l:Ka.push(l)),l.patchFlag|=-2,l}if(Gce(e)&&(e=e.__vccOpts),t){t=GE(t);let{class:l,style:a}=t;l&&!Kt(l)&&(t.class=N(l)),yr(a)&&(RH(a)&&!wt(a)&&(a=Xn({},a)),t.style=St(a))}const s=Kt(e)?1:lce(e)?128:Lce(e)?64:yr(e)?4:qt(e)?2:0;return G(e,t,r,i,n,s,o,!0)}function GE(e){return e?RH(e)||HE in e?Xn({},e):e:null}function md(e,t,r=!1){const{props:i,ref:n,patchFlag:o,children:s}=e,l=t?sr(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&cG(l),ref:t&&t.ref?r&&n?wt(n)?n.concat(pC(t)):[n,pC(t)]:pC(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&md(e.ssContent),ssFallback:e.ssFallback&&md(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Ir(e=" ",t=0){return Y(p0,null,e,t)}function ke(e="",t=!1){return t?($(),Te(ns,null,e)):Y(ns,null,e)}function Hc(e){return e==null||typeof e=="boolean"?Y(ns):wt(e)?Y(bt,null,e.slice()):typeof e=="object"?Wp(e):Y(p0,null,String(e))}function Wp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:md(e)}function JL(e,t){let r=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(wt(t))r=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),JL(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!(HE in t)?t._ctx=Co:n===3&&Co&&(Co.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qt(t)?(t={default:t,_ctx:Co},r=32):(t=String(t),i&64?(r=16,t=[Ir(t)]):r=8);e.children=t,e.shapeFlag|=r}function sr(...e){const t={};for(let r=0;r<e.length;r++){const i=e[r];for(const n in i)if(n==="class")t.class!==i.class&&(t.class=N([t.class,i.class]));else if(n==="style")t.style=St([t.style,i.style]);else if(RE(n)){const o=t[n],s=i[n];s&&o!==s&&!(wt(o)&&o.includes(s))&&(t[n]=o?[].concat(o,s):s)}else n!==""&&(t[n]=i[n])}return t}function _c(e,t,r,i=null){Zl(e,t,7,[r,i])}const zce=sG();let jce=0;function Vce(e,t,r){const i=e.type,n=(t?t.appContext:e.appContext)||zce,o={uid:jce++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,scope:new xH(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rG(i,n),emitsOptions:HH(i,n),emit:null,emitted:null,propsDefaults:Ji,inheritAttrs:i.inheritAttrs,ctx:Ji,data:Ji,props:Ji,attrs:Ji,slots:Ji,refs:Ji,setupState:Ji,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ece.bind(null,o),e.ce&&e.ce(o),o}let uo=null;const Xt=()=>uo||Co,Ev=e=>{uo=e,e.scope.on()},zm=()=>{uo&&uo.scope.off(),uo=null};function uG(e){return e.vnode.shapeFlag&4}let Mw=!1;function Bce(e,t=!1){Mw=t;const{props:r,children:i}=e.vnode,n=uG(e);kce(e,r,n,t),Tce(e,i);const o=n?Uce(e,t):void 0;return Mw=!1,o}function Uce(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Fm(new Proxy(e.ctx,vce));const{setup:i}=r;if(i){const n=e.setupContext=i.length>1?pG(e):null;Ev(e),c0();const o=hh(i,e,0,[e.props,n]);if(u0(),zm(),ww(o)){if(o.then(zm,zm),t)return o.then(s=>{p8(e,s,t)}).catch(s=>{zE(s,e,0)});e.asyncDep=o}else p8(e,o,t)}else dG(e,t)}function p8(e,t,r){qt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:yr(t)&&(e.setupState=FH(t)),dG(e,r)}let h8;function dG(e,t,r){const i=e.type;if(!e.render){if(!t&&h8&&!i.render){const n=i.template||KL(e).template;if(n){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,c=Xn(Xn({isCustomElement:o,delimiters:l},s),a);i.render=h8(n,c)}}e.render=i.render||ti}Ev(e),c0(),bce(e),u0(),zm()}function Wce(e){return new Proxy(e.attrs,{get(t,r){return wl(e,"get","$attrs"),t[r]}})}function pG(e){const t=i=>{e.exposed=i||{}};let r;return{get attrs(){return r||(r=Wce(e))},slots:e.slots,emit:e.emit,expose:t}}function qE(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(FH(Fm(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in L_)return L_[r](e)},has(t,r){return r in t||r in L_}}))}function Hce(e,t=!0){return qt(e)?e.displayName||e.name:e.name||t&&e.__name}function Gce(e){return qt(e)&&"__vccOpts"in e}const O=(e,t)=>jH(e,t,Mw);function go(){return hG().slots}function F1(){return hG().attrs}function hG(){const e=Xt();return e.setupContext||(e.setupContext=pG(e))}function Lt(e,t,r){const i=arguments.length;return i===2?yr(t)&&!wt(t)?Ei(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Ei(r)&&(r=[r]),Y(e,t,r))}const qce=Symbol(""),Yce=()=>_t(qce),Kce="3.2.45",Zce="http://www.w3.org/2000/svg",im=typeof document!="undefined"?document:null,f8=im&&im.createElement("template"),Qce={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const n=t?im.createElementNS(Zce,e):im.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>im.createTextNode(e),createComment:e=>im.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>im.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,i,n,o){const s=r?r.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===o||!(n=n.nextSibling)););else{f8.innerHTML=i?`<svg>${e}</svg>`:e;const l=f8.content;if(i){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Jce(e,t,r){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Xce(e,t,r){const i=e.style,n=Kt(r);if(r&&!n){for(const o in r)tP(i,o,r[o]);if(t&&!Kt(t))for(const o in t)r[o]==null&&tP(i,o,"")}else{const o=i.display;n?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=o)}}const m8=/\s*!important$/;function tP(e,t,r){if(wt(r))r.forEach(i=>tP(e,t,i));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const i=eue(e,t);m8.test(r)?e.setProperty(hl(i),r.replace(m8,""),"important"):e[i]=r}}const g8=["Webkit","Moz","ms"],bA={};function eue(e,t){const r=bA[t];if(r)return r;let i=is(t);if(i!=="filter"&&i in e)return bA[t]=i;i=R1(i);for(let n=0;n<g8.length;n++){const o=g8[n]+i;if(o in e)return bA[t]=o}return t}const y8="http://www.w3.org/1999/xlink";function tue(e,t,r,i,n){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(y8,t.slice(6,t.length)):e.setAttributeNS(y8,t,r);else{const o=aae(t);r==null||o&&!yH(r)?e.removeAttribute(t):e.setAttribute(t,o?"":r)}}function rue(e,t,r,i,n,o,s){if(t==="innerHTML"||t==="textContent"){i&&s(i,n,o),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const a=r==null?"":r;(e.value!==a||e.tagName==="OPTION")&&(e.value=a),r==null&&e.removeAttribute(t);return}let l=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=yH(r):r==null&&a==="string"?(r="",l=!0):a==="number"&&(r=0,l=!0)}try{e[t]=r}catch{}l&&e.removeAttribute(t)}function Xp(e,t,r,i){e.addEventListener(t,r,i)}function iue(e,t,r,i){e.removeEventListener(t,r,i)}function nue(e,t,r,i,n=null){const o=e._vei||(e._vei={}),s=o[t];if(i&&s)s.value=i;else{const[l,a]=oue(t);if(i){const c=o[t]=aue(i,n);Xp(e,l,c,a)}else s&&(iue(e,l,s,a),o[t]=void 0)}}const v8=/(?:Once|Passive|Capture)$/;function oue(e){let t;if(v8.test(e)){t={};let i;for(;i=e.match(v8);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hl(e.slice(2)),t]}let _A=0;const sue=Promise.resolve(),lue=()=>_A||(sue.then(()=>_A=0),_A=Date.now());function aue(e,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;Zl(cue(i,r.value),t,5,[i])};return r.value=e,r.attached=lue(),r}function cue(e,t){if(wt(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i&&i(n))}else return t}const b8=/^on[a-z]/,uue=(e,t,r,i,n=!1,o,s,l,a)=>{t==="class"?Jce(e,i,n):t==="style"?Xce(e,r,i):RE(t)?PL(t)||nue(e,t,r,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):due(e,t,i,n))?rue(e,t,i,o,s,l,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),tue(e,t,i,n))};function due(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&b8.test(t)&&qt(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||b8.test(t)&&Kt(r)?!1:t in e}function pue(e,t){const r=ye(e);class i extends XL{constructor(o){super(r,o,t)}}return i.def=r,i}const hue=typeof HTMLElement!="undefined"?HTMLElement:class{};class XL extends hue{constructor(t,r={},i){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ct(()=>{this._connected||(Ch(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);new MutationObserver(i=>{for(const n of i)this._setAttr(n.attributeName)}).observe(this,{attributes:!0});const t=(i,n=!1)=>{const{props:o,styles:s}=i;let l;if(o&&!wt(o))for(const a in o){const c=o[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Qm(this._props[a])),(l||(l=Object.create(null)))[is(a)]=!0)}this._numberProps=l,n&&this._resolveProps(i),this._applyStyles(s),this._update()},r=this._def.__asyncLoader;r?r().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,i=wt(r)?r:Object.keys(r||{});for(const n of Object.keys(this))n[0]!=="_"&&i.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of i.map(is))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(o){this._setProp(n,o)}})}_setAttr(t){let r=this.getAttribute(t);const i=is(t);this._numberProps&&this._numberProps[i]&&(r=Qm(r)),this._setProp(i,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,i=!0,n=!0){r!==this._props[t]&&(this._props[t]=r,n&&this._instance&&this._update(),i&&(r===!0?this.setAttribute(hl(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(hl(t),r+""):r||this.removeAttribute(hl(t))))}_update(){Ch(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Y(this._def,Xn({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0;const i=(o,s)=>{this.dispatchEvent(new CustomEvent(o,{detail:s}))};r.emit=(o,...s)=>{i(o,s),hl(o)!==o&&i(hl(o),s)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof XL){r.parent=n._instance,r.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const i=document.createElement("style");i.textContent=r,this.shadowRoot.appendChild(i)})}}const qd="transition",eb="animation",Xi=(e,{slots:t})=>Lt(YH,mG(e),t);Xi.displayName="Transition";const fG={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},fue=Xi.props=Xn({},YH.props,fG),af=(e,t=[])=>{wt(e)?e.forEach(r=>r(...t)):e&&e(...t)},_8=e=>e?wt(e)?e.some(t=>t.length>1):e.length>1:!1;function mG(e){const t={};for(const z in e)z in fG||(t[z]=e[z]);if(e.css===!1)return t;const{name:r="v",type:i,duration:n,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:a=o,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:m=`${r}-leave-to`}=e,y=mue(n),v=y&&y[0],_=y&&y[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:C,onLeave:E,onLeaveCancelled:T,onBeforeAppear:w=x,onAppear:I=S,onAppearCancelled:M=C}=t,L=(z,j,U)=>{pp(z,j?u:l),pp(z,j?c:s),U&&U()},R=(z,j)=>{z._isLeaving=!1,pp(z,p),pp(z,m),pp(z,h),j&&j()},W=z=>(j,U)=>{const Z=z?I:S,Q=()=>L(j,z,U);af(Z,[j,Q]),w8(()=>{pp(j,z?a:o),Tu(j,z?u:l),_8(Z)||x8(j,i,v,Q)})};return Xn(t,{onBeforeEnter(z){af(x,[z]),Tu(z,o),Tu(z,s)},onBeforeAppear(z){af(w,[z]),Tu(z,a),Tu(z,c)},onEnter:W(!1),onAppear:W(!0),onLeave(z,j){z._isLeaving=!0;const U=()=>R(z,j);Tu(z,p),yG(),Tu(z,h),w8(()=>{!z._isLeaving||(pp(z,p),Tu(z,m),_8(E)||x8(z,i,_,U))}),af(E,[z,U])},onEnterCancelled(z){L(z,!1),af(C,[z])},onAppearCancelled(z){L(z,!0),af(M,[z])},onLeaveCancelled(z){R(z),af(T,[z])}})}function mue(e){if(e==null)return null;if(yr(e))return[wA(e.enter),wA(e.leave)];{const t=wA(e);return[t,t]}}function wA(e){return Qm(e)}function Tu(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function pp(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function w8(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gue=0;function x8(e,t,r,i){const n=e._endId=++gue,o=()=>{n===e._endId&&i()};if(r)return setTimeout(o,r);const{type:s,timeout:l,propCount:a}=gG(e,t);if(!s)return i();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,h),o()},h=m=>{m.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,h)}function gG(e,t){const r=window.getComputedStyle(e),i=y=>(r[y]||"").split(", "),n=i(`${qd}Delay`),o=i(`${qd}Duration`),s=C8(n,o),l=i(`${eb}Delay`),a=i(`${eb}Duration`),c=C8(l,a);let u=null,p=0,h=0;t===qd?s>0&&(u=qd,p=s,h=o.length):t===eb?c>0&&(u=eb,p=c,h=a.length):(p=Math.max(s,c),u=p>0?s>c?qd:eb:null,h=u?u===qd?o.length:a.length:0);const m=u===qd&&/\b(transform|all)(,|$)/.test(i(`${qd}Property`).toString());return{type:u,timeout:p,propCount:h,hasTransform:m}}function C8(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,i)=>k8(r)+k8(e[i])))}function k8(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function yG(){return document.body.offsetHeight}const vG=new WeakMap,bG=new WeakMap,yue={name:"TransitionGroup",props:Xn({},fue,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Xt(),i=qH();let n,o;return Td(()=>{if(!n.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!xue(n[0].el,r.vnode.el,s))return;n.forEach(bue),n.forEach(_ue);const l=n.filter(wue);yG(),l.forEach(a=>{const c=a.el,u=c.style;Tu(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const p=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",p),c._moveCb=null,pp(c,s))};c.addEventListener("transitionend",p)})}),()=>{const s=ei(e),l=mG(s);let a=s.tag||bt;n=o,o=t.default?HL(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&Tw(u,Ew(u,l,i,r))}if(n)for(let c=0;c<n.length;c++){const u=n[c];Tw(u,Ew(u,l,i,r)),vG.set(u,u.el.getBoundingClientRect())}return Y(a,null,o)}}},vue=yue;function bue(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function _ue(e){bG.set(e,e.el.getBoundingClientRect())}function wue(e){const t=vG.get(e),r=bG.get(e),i=t.left-r.left,n=t.top-r.top;if(i||n){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${i}px,${n}px)`,o.transitionDuration="0s",e}}function xue(e,t,r){const i=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(i);const{hasTransform:o}=gG(i);return n.removeChild(i),o}const Tv=e=>{const t=e.props["onUpdate:modelValue"]||!1;return wt(t)?r=>dC(t,r):t};function Cue(e){e.target.composing=!0}function S8(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const eR={created(e,{modifiers:{lazy:t,trim:r,number:i}},n){e._assign=Tv(n);const o=i||n.props&&n.props.type==="number";Xp(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;r&&(l=l.trim()),o&&(l=Qm(l)),e._assign(l)}),r&&Xp(e,"change",()=>{e.value=e.value.trim()}),t||(Xp(e,"compositionstart",Cue),Xp(e,"compositionend",S8),Xp(e,"change",S8))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:i,number:n}},o){if(e._assign=Tv(o),e.composing||document.activeElement===e&&e.type!=="range"&&(r||i&&e.value.trim()===t||(n||e.type==="number")&&Qm(e.value)===t))return;const s=t==null?"":t;e.value!==s&&(e.value=s)}},eS={deep:!0,created(e,t,r){e._assign=Tv(r),Xp(e,"change",()=>{const i=e._modelValue,n=wG(e),o=e.checked,s=e._assign;if(wt(i)){const l=vH(i,n),a=l!==-1;if(o&&!a)s(i.concat(n));else if(!o&&a){const c=[...i];c.splice(l,1),s(c)}}else if(DE(i)){const l=new Set(i);o?l.add(n):l.delete(n),s(l)}else s(xG(e,o))})},mounted:E8,beforeUpdate(e,t,r){e._assign=Tv(r),E8(e,t,r)}};function E8(e,{value:t,oldValue:r},i){e._modelValue=t,wt(t)?e.checked=vH(t,i.props.value)>-1:DE(t)?e.checked=t.has(i.props.value):t!==r&&(e.checked=Cv(t,xG(e,!0)))}const _G={created(e,{value:t},r){e.checked=Cv(t,r.props.value),e._assign=Tv(r),Xp(e,"change",()=>{e._assign(wG(e))})},beforeUpdate(e,{value:t,oldValue:r},i){e._assign=Tv(i),t!==r&&(e.checked=Cv(t,i.props.value))}};function wG(e){return"_value"in e?e._value:e.value}function xG(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const kue=["ctrl","shift","alt","meta"],Sue={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kue.some(r=>e[`${r}Key`]&&!t.includes(r))},Yt=(e,t)=>(r,...i)=>{for(let n=0;n<t.length;n++){const o=Sue[t[n]];if(o&&o(r,t))return}return e(r,...i)},Eue={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Lr=(e,t)=>r=>{if(!("key"in r))return;const i=hl(r.key);if(t.some(n=>n===i||Eue[n]===i))return e(r)},Vt={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):tb(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),tb(e,!0),i.enter(e)):i.leave(e,()=>{tb(e,!1)}):tb(e,t))},beforeUnmount(e,{value:t}){tb(e,t)}};function tb(e,t){e.style.display=t?e._vod:"none"}const Tue=Xn({patchProp:uue},Qce);let T8;function CG(){return T8||(T8=Pce(Tue))}const Ch=(...e)=>{CG().render(...e)},tR=(...e)=>{const t=CG().createApp(...e),{mount:r}=t;return t.mount=i=>{const n=Aue(i);if(!n)return;const o=t._component;!qt(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.innerHTML="";const s=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),s},t};function Aue(e){return Kt(e)?document.querySelector(e):e}const ou=e=>e!=null,tS=e=>typeof e=="function",YE=e=>e!==null&&typeof e=="object",Mue=e=>YE(e)&&tS(e.then)&&tS(e.catch),kG=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),Iue=()=>rR?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function rP(){}const yo=Object.assign,rR=typeof window!="undefined";function A8(e,t){const r=t.split(".");let i=e;return r.forEach(n=>{var o;i=YE(i)&&(o=i[n])!=null?o:""}),i}function SG(e,t,r){return t.reduce((i,n)=>((!r||e[n]!==void 0)&&(i[n]=e[n]),i),{})}const fh=null,mo=[Number,String],Kc={type:Boolean,default:!0},Pue=e=>({type:Number,default:e}),$ue=e=>({type:mo,default:e}),wo=e=>({type:String,default:e});var KE=typeof window!="undefined",Oue=e=>e===window,M8=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),EG=e=>{const t=g(e);if(Oue(t)){const r=t.innerWidth,i=t.innerHeight;return M8(r,i)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():M8(0,0)};function Lue(e){const t=_t(e,null);if(t){const r=Xt(),{link:i,unlink:n,internalChildren:o}=t;i(r),pu(()=>n(r));const s=O(()=>o.indexOf(r));return{parent:t,index:s}}return{parent:null,index:F(-1)}}function Rue(e){const t=[],r=i=>{Array.isArray(i)&&i.forEach(n=>{var o;Ei(n)&&(t.push(n),(o=n.component)!=null&&o.subTree&&(t.push(n.component.subTree),r(n.component.subTree.children)),n.children&&r(n.children))})};return r(e),t}function Due(e,t,r){const i=Rue(e.subTree.children);r.sort((o,s)=>i.indexOf(o.vnode)-i.indexOf(s.vnode));const n=r.map(o=>o.proxy);t.sort((o,s)=>{const l=n.indexOf(o),a=n.indexOf(s);return l-a})}function Nue(e){const t=kr([]),r=kr([]),i=Xt();return{children:t,linkChildren:o=>{cr(e,Object.assign({link:a=>{a.proxy&&(r.push(a),t.push(a.proxy),Due(i,t,r))},unlink:a=>{const c=r.indexOf(a);t.splice(c,1),r.splice(c,1)},children:t,internalChildren:r},o))}}}function TG(e){let t;er(()=>{e(),Ct(()=>{t=!0})}),GL(()=>{t&&e()})}function ZE(e,t,r={}){if(!KE)return;const{target:i=window,passive:n=!1,capture:o=!1}=r;let s;const l=c=>{const u=g(c);u&&!s&&(u.addEventListener(e,t,{capture:o,passive:n}),s=!0)},a=c=>{const u=g(c);u&&s&&(u.removeEventListener(e,t,o),s=!1)};pu(()=>a(i)),N1(()=>a(i)),TG(()=>l(i)),hi(i)&&Ve(i,(c,u)=>{a(u),l(c)})}function Fue(e,t,r={}){if(!KE)return;const{eventName:i="click"}=r;ZE(i,o=>{(Array.isArray(e)?e:[e]).every(a=>{const c=g(a);return c&&!c.contains(o.target)})&&t(o)},{target:document})}var Kx,xA;function zue(){if(!Kx&&(Kx=F(0),xA=F(0),KE)){const e=()=>{Kx.value=window.innerWidth,xA.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Kx,height:xA}}var jue=/scroll|auto|overlay/i,Vue=KE?window:void 0;function Bue(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Uue(e,t=Vue){let r=e;for(;r&&r!==t&&Bue(r);){const{overflowY:i}=window.getComputedStyle(r);if(jue.test(i))return r;r=r.parentNode}return t}var Wue=Symbol("van-field");function Hue(e){const t=_t(Wue,null);t&&!t.customValue.value&&(t.customValue.value=e,Ve(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}Iue();const Gue=e=>e.stopPropagation();function QE(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Gue(e)}zue();function Za(e){if(ou(e))return kG(e)?`${e}px`:String(e)}function que(e){if(ou(e)){if(Array.isArray(e))return{width:Za(e[0]),height:Za(e[1])};const t=Za(e);return{width:t,height:t}}}function Yue(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const Kue=/-(\w)/g,AG=e=>e.replace(Kue,(t,r)=>r.toUpperCase()),Zue=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Que=(e,t,r)=>Math.min(Math.max(e,t),r),{hasOwnProperty:Jue}=Object.prototype;function Xue(e,t,r){const i=t[r];!ou(i)||(!Jue.call(e,r)||!YE(i)?e[r]=i:e[r]=MG(Object(e[r]),i))}function MG(e,t){return Object.keys(t).forEach(r=>{Xue(e,t,r)}),e}var ede={name:"\u59D3\u540D",tel:"\u7535\u8BDD",save:"\u4FDD\u5B58",confirm:"\u786E\u8BA4",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",loading:"\u52A0\u8F7D\u4E2D...",noCoupon:"\u6682\u65E0\u4F18\u60E0\u5238",nameEmpty:"\u8BF7\u586B\u5199\u59D3\u540D",addContact:"\u6DFB\u52A0\u8054\u7CFB\u4EBA",telInvalid:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",vanCalendar:{end:"\u7ED3\u675F",start:"\u5F00\u59CB",title:"\u65E5\u671F\u9009\u62E9",weekdays:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],monthTitle:(e,t)=>`${e}\u5E74${t}\u6708`,rangePrompt:e=>`\u6700\u591A\u9009\u62E9 ${e} \u5929`},vanCascader:{select:"\u8BF7\u9009\u62E9"},vanPagination:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875"},vanPullRefresh:{pulling:"\u4E0B\u62C9\u5373\u53EF\u5237\u65B0...",loosing:"\u91CA\u653E\u5373\u53EF\u5237\u65B0..."},vanSubmitBar:{label:"\u5408\u8BA1:"},vanCoupon:{unlimited:"\u65E0\u95E8\u69DB",discount:e=>`${e}\u6298`,condition:e=>`\u6EE1${e}\u5143\u53EF\u7528`},vanCouponCell:{title:"\u4F18\u60E0\u5238",count:e=>`${e}\u5F20\u53EF\u7528`},vanCouponList:{exchange:"\u5151\u6362",close:"\u4E0D\u4F7F\u7528",enable:"\u53EF\u7528",disabled:"\u4E0D\u53EF\u7528",placeholder:"\u8F93\u5165\u4F18\u60E0\u7801"},vanAddressEdit:{area:"\u5730\u533A",postal:"\u90AE\u653F\u7F16\u7801",areaEmpty:"\u8BF7\u9009\u62E9\u5730\u533A",addressEmpty:"\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",postalEmpty:"\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",addressDetail:"\u8BE6\u7EC6\u5730\u5740",defaultAddress:"\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"},vanAddressList:{add:"\u65B0\u589E\u5730\u5740"}};const I8=F("zh-CN"),P8=kr({"zh-CN":ede}),tde={messages(){return P8[I8.value]},use(e,t){I8.value=e,this.add({[e]:t})},add(e={}){MG(P8,e)}};var rde=tde;function ide(e){const t=AG(e)+".";return(r,...i)=>{const n=rde.messages(),o=A8(n,t+r)||A8(n,r);return tS(o)?o(...i):o}}function iP(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,i)=>r+iP(e,i),""):Object.keys(t).reduce((r,i)=>r+(t[i]?iP(e,i):""),""):""}function nde(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${iP(t,r)}`)}function kl(e){const t=`van-${e}`;return[t,nde(t),ide(t)]}const iR="van-hairline",ode=`${iR}--top`,sde=`${iR}--left`,lde=`${iR}--surround`,ade="van-haptics-feedback";function nR(e,{args:t=[],done:r,canceled:i}){if(e){const n=e.apply(null,t);Mue(n)?n.then(o=>{o?r():i&&i()}).catch(rP):n?r():i&&i()}else r()}function ua(e){return e.install=t=>{const{name:r}=e;r&&(t.component(r,e),t.component(AG(`-${r}`),e))},e}const IG=Symbol();function cde(e){const t=_t(IG,null);t&&Ve(t,r=>{r&&e()})}const ude=(e,t)=>{const r=F(),i=()=>{r.value=EG(e).height};return er(()=>{if(Ct(i),t)for(let n=1;n<=3;n++)setTimeout(i,100*n)}),cde(()=>Ct(i)),r};function dde(e,t){const r=ude(e,!0);return i=>Y("div",{class:t("placeholder"),style:{height:r.value?`${r.value}px`:void 0}},[i()])}const[PG,$8]=kl("action-bar"),$G=Symbol(PG),pde={placeholder:Boolean,safeAreaInsetBottom:Kc};var hde=ye({name:PG,props:pde,setup(e,{slots:t}){const r=F(),i=dde(r,$8),{linkChildren:n}=Nue($G);n();const o=()=>{var s;return Y("div",{ref:r,class:[$8(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(s=t.default)==null?void 0:s.call(t)])};return()=>e.placeholder?i(o):o()}});const fde=ua(hde);function JE(e){const t=Xt();t&&yo(t.proxy,e)}const OG={to:[String,Object],url:String,replace:Boolean};function mde({to:e,url:t,replace:r,$router:i}){e&&i?i[r?"replace":"push"](e):t&&(r?location.replace(t):location.href=t)}function LG(){const e=Xt().proxy;return()=>mde(e)}const[gde,O8]=kl("badge"),yde={dot:Boolean,max:mo,tag:wo("div"),color:String,offset:Array,content:mo,showZero:Kc,position:wo("top-right")};var vde=ye({name:gde,props:yde,setup(e,{slots:t}){const r=()=>{if(t.content)return!0;const{content:s,showZero:l}=e;return ou(s)&&s!==""&&(l||s!==0&&s!=="0")},i=()=>{const{dot:s,max:l,content:a}=e;if(!s&&r())return t.content?t.content():ou(l)&&kG(a)&&+a>l?`${l}+`:a},n=O(()=>{const s={background:e.color};if(e.offset){const[l,a]=e.offset;t.default?(s.top=Za(a),typeof l=="number"?s.right=Za(-l):s.right=l.startsWith("-")?l.replace("-",""):`-${l}`):(s.marginTop=Za(a),s.marginLeft=Za(l))}return s}),o=()=>{if(r()||e.dot)return Y("div",{class:O8([e.position,{dot:e.dot,fixed:!!t.default}]),style:n.value},[i()])};return()=>{if(t.default){const{tag:s}=e;return Y(s,{class:O8("wrapper")},{default:()=>[t.default(),o()]})}return o()}}});const bde=ua(vde);let RG=2e3;const _de=()=>++RG,wde=e=>{RG=e},[DG,xde]=kl("config-provider"),NG=Symbol(DG),Cde={tag:wo("div"),zIndex:Number,themeVars:Object,iconPrefix:String};function kde(e){const t={};return Object.keys(e).forEach(r=>{t[`--van-${Zue(r)}`]=e[r]}),t}ye({name:DG,props:Cde,setup(e,{slots:t}){const r=O(()=>{if(e.themeVars)return kde(e.themeVars)});return cr(NG,e),Ds(()=>{e.zIndex!==void 0&&wde(e.zIndex)}),()=>Y(e.tag,{class:xde(),style:r.value},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t)]}})}});const[Sde,L8]=kl("icon"),Ede=e=>e==null?void 0:e.includes("/"),Tde={dot:Boolean,tag:wo("i"),name:String,size:mo,badge:mo,color:String,badgeProps:Object,classPrefix:String};var Ade=ye({name:Sde,props:Tde,setup(e,{slots:t}){const r=_t(NG,null),i=O(()=>e.classPrefix||(r==null?void 0:r.iconPrefix)||L8());return()=>{const{tag:n,dot:o,name:s,size:l,badge:a,color:c}=e,u=Ede(s);return Y(bde,sr({dot:o,tag:n,class:[i.value,u?"":`${i.value}-${s}`],style:{color:c,fontSize:Za(l)},content:a},e.badgeProps),{default:()=>{var p;return[(p=t.default)==null?void 0:p.call(t),u&&Y("img",{class:L8("image"),src:s},null)]}})}}});const oR=ua(Ade),[Mde,N_]=kl("loading"),Ide=Array(12).fill(null).map((e,t)=>Y("i",{class:N_("line",String(t+1))},null)),Pde=Y("svg",{class:N_("circular"),viewBox:"25 25 50 50"},[Y("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),$de={size:mo,type:wo("circular"),color:String,vertical:Boolean,textSize:mo,textColor:String};var Ode=ye({name:Mde,props:$de,setup(e,{slots:t}){const r=O(()=>yo({color:e.color},que(e.size))),i=()=>{var n;if(t.default)return Y("span",{class:N_("text"),style:{fontSize:Za(e.textSize),color:(n=e.textColor)!=null?n:e.color}},[t.default()])};return()=>{const{type:n,vertical:o}=e;return Y("div",{class:N_([n,{vertical:o}]),"aria-live":"polite","aria-busy":!0},[Y("span",{class:N_("spinner",n),style:r.value},[n==="spinner"?Ide:Pde]),i()])}}});const sR=ua(Ode),[Lde,Ng]=kl("button"),Rde=yo({},OG,{tag:wo("button"),text:String,icon:String,type:wo("default"),size:wo("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:wo("button"),loadingSize:mo,loadingText:String,loadingType:String,iconPosition:wo("left")});var Dde=ye({name:Lde,props:Rde,emits:["click"],setup(e,{emit:t,slots:r}){const i=LG(),n=()=>r.loading?r.loading():Y(sR,{size:e.loadingSize,type:e.loadingType,class:Ng("loading")},null),o=()=>{if(e.loading)return n();if(r.icon)return Y("div",{class:Ng("icon")},[r.icon()]);if(e.icon)return Y(oR,{name:e.icon,class:Ng("icon"),classPrefix:e.iconPrefix},null)},s=()=>{let c;if(e.loading?c=e.loadingText:c=r.default?r.default():e.text,c)return Y("span",{class:Ng("text")},[c])},l=()=>{const{color:c,plain:u}=e;if(c){const p={color:u?c:"white"};return u||(p.background=c),c.includes("gradient")?p.border=0:p.borderColor=c,p}},a=c=>{e.loading?QE(c):e.disabled||(t("click",c),i())};return()=>{const{tag:c,type:u,size:p,block:h,round:m,plain:y,square:v,loading:_,disabled:x,hairline:S,nativeType:C,iconPosition:E}=e,T=[Ng([u,p,{plain:y,block:h,round:m,square:v,loading:_,disabled:x,hairline:S}]),{[lde]:S}];return Y(c,{type:C,class:T,style:l(),disabled:x,onClick:a},{default:()=>[Y("div",{class:Ng("content")},[E==="left"&&o(),s(),E==="right"&&o()])]})}}});const rS=ua(Dde),[Nde,Fde]=kl("action-bar-button"),zde=yo({},OG,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var jde=ye({name:Nde,props:zde,setup(e,{slots:t}){const r=LG(),{parent:i,index:n}=Lue($G),o=O(()=>{if(i){const l=i.children[n.value-1];return!(l&&"isButton"in l)}}),s=O(()=>{if(i){const l=i.children[n.value+1];return!(l&&"isButton"in l)}});return JE({isButton:!0}),()=>{const{type:l,icon:a,text:c,color:u,loading:p,disabled:h}=e;return Y(rS,{class:Fde([l,{last:s.value,first:o.value}]),size:"large",type:l,icon:a,color:u,loading:p,disabled:h,onClick:r},{default:()=>[t.default?t.default():c]})}}});const R8=ua(jde),lR={show:Boolean,zIndex:mo,overlay:Kc,duration:mo,teleport:[String,Object],lockScroll:Kc,lazyRender:Kc,beforeClose:Function,overlayStyle:Object,overlayClass:fh,transitionAppear:Boolean,closeOnClickOverlay:Kc},Vde=Object.keys(lR);function Bde(e,t){return e>t?"horizontal":t>e?"vertical":""}function FG(){const e=F(0),t=F(0),r=F(0),i=F(0),n=F(0),o=F(0),s=F(""),l=()=>s.value==="vertical",a=()=>s.value==="horizontal",c=()=>{r.value=0,i.value=0,n.value=0,o.value=0,s.value=""};return{move:h=>{const m=h.touches[0];r.value=(m.clientX<0?0:m.clientX)-e.value,i.value=m.clientY-t.value,n.value=Math.abs(r.value),o.value=Math.abs(i.value);const y=10;(!s.value||n.value<y&&o.value<y)&&(s.value=Bde(n.value,o.value))},start:h=>{c(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:c,startX:e,startY:t,deltaX:r,deltaY:i,offsetX:n,offsetY:o,direction:s,isVertical:l,isHorizontal:a}}let rb=0;const D8="van-overflow-hidden";function Ude(e,t){const r=FG(),i="01",n="10",o=u=>{r.move(u);const p=r.deltaY.value>0?n:i,h=Uue(u.target,e.value),{scrollHeight:m,offsetHeight:y,scrollTop:v}=h;let _="11";v===0?_=y>=m?"00":"01":v+y>=m&&(_="10"),_!=="11"&&r.isVertical()&&!(parseInt(_,2)&parseInt(p,2))&&QE(u,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",o,{passive:!1}),rb||document.body.classList.add(D8),rb++},l=()=>{rb&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",o),rb--,rb||document.body.classList.remove(D8))},a=()=>t()&&s(),c=()=>t()&&l();TG(a),N1(c),Ii(c),Ve(t,u=>{u?s():l()})}function zG(e){const t=F(!1);return Ve(e,r=>{r&&(t.value=r)},{immediate:!0}),r=>()=>t.value?r():null}const[Wde,Hde]=kl("overlay"),Gde={show:Boolean,zIndex:mo,duration:mo,className:fh,lockScroll:Kc,lazyRender:Kc,customStyle:Object};var qde=ye({name:Wde,props:Gde,setup(e,{slots:t}){const r=F(),i=zG(()=>e.show||!e.lazyRender),n=s=>{e.lockScroll&&QE(s,!0)},o=i(()=>{var s;const l=yo(Yue(e.zIndex),e.customStyle);return ou(e.duration)&&(l.animationDuration=`${e.duration}s`),kt(Y("div",{ref:r,style:l,class:[Hde(),e.className]},[(s=t.default)==null?void 0:s.call(t)]),[[Vt,e.show]])});return ZE("touchmove",n,{target:r}),()=>Y(Xi,{name:"van-fade",appear:!0},{default:o})}});const Yde=ua(qde),Kde=yo({},lR,{round:Boolean,position:wo("center"),closeIcon:wo("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:wo("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Zde,N8]=kl("popup");var Qde=ye({name:Zde,inheritAttrs:!1,props:Kde,emits:["open","close","opened","closed","keydown","update:show","click-overlay","click-close-icon"],setup(e,{emit:t,attrs:r,slots:i}){let n,o;const s=F(),l=F(),a=zG(()=>e.show||!e.lazyRender),c=O(()=>{const T={zIndex:s.value};if(ou(e.duration)){const w=e.position==="center"?"animationDuration":"transitionDuration";T[w]=`${e.duration}s`}return T}),u=()=>{n||(n=!0,s.value=e.zIndex!==void 0?+e.zIndex:_de(),t("open"))},p=()=>{n&&nR(e.beforeClose,{done(){n=!1,t("close"),t("update:show",!1)}})},h=T=>{t("click-overlay",T),e.closeOnClickOverlay&&p()},m=()=>{if(e.overlay)return Y(Yde,{show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0,onClick:h},{default:i["overlay-content"]})},y=T=>{t("click-close-icon",T),p()},v=()=>{if(e.closeable)return Y(oR,{role:"button",tabindex:0,name:e.closeIcon,class:[N8("close-icon",e.closeIconPosition),ade],classPrefix:e.iconPrefix,onClick:y},null)},_=()=>t("opened"),x=()=>t("closed"),S=T=>t("keydown",T),C=a(()=>{var T;const{round:w,position:I,safeAreaInsetTop:M,safeAreaInsetBottom:L}=e;return kt(Y("div",sr({ref:l,style:c.value,role:"dialog",tabindex:0,class:[N8({round:w,[I]:I}),{"van-safe-area-top":M,"van-safe-area-bottom":L}],onKeydown:S},r),[(T=i.default)==null?void 0:T.call(i),v()]),[[Vt,e.show]])}),E=()=>{const{position:T,transition:w,transitionAppear:I}=e,M=T==="center"?"van-fade":`van-popup-slide-${T}`;return Y(Xi,{name:w||M,appear:I,onAfterEnter:_,onAfterLeave:x},{default:C})};return Ve(()=>e.show,T=>{T&&!n&&(u(),r.tabindex===0&&Ct(()=>{var w;(w=l.value)==null||w.focus()})),!T&&n&&(n=!1,t("close"))}),JE({popupRef:l}),Ude(l,()=>e.show&&e.lockScroll),ZE("popstate",()=>{e.closeOnPopstate&&(p(),o=!1)}),er(()=>{e.show&&u()}),GL(()=>{o&&(t("update:show",!0),o=!1)}),N1(()=>{e.show&&e.teleport&&(p(),o=!0)}),cr(IG,()=>e.show),()=>e.teleport?Y(d0,{to:e.teleport},{default:()=>[m(),E()]}):Y(bt,null,[m(),E()])}});const aR=ua(Qde);function jG(){const e=kr({show:!1}),t=n=>{e.show=n},r=n=>{yo(e,n,{transitionAppear:!0}),t(!0)},i=()=>t(!1);return JE({open:r,close:i,toggle:t}),{open:r,close:i,state:e,toggle:t}}function VG(e){const t=tR(e),r=document.createElement("div");return document.body.appendChild(r),{instance:t.mount(r),unmount(){t.unmount(),document.body.removeChild(r)}}}let ib=0;function Jde(e){e?(ib||document.body.classList.add("van-toast--unclickable"),ib++):ib&&(ib--,ib||document.body.classList.remove("van-toast--unclickable"))}const[Xde,nb]=kl("toast"),epe=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],tpe={icon:String,show:Boolean,type:wo("text"),overlay:Boolean,message:mo,iconSize:mo,duration:Pue(2e3),position:wo("middle"),teleport:[String,Object],className:fh,iconPrefix:String,transition:wo("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:fh,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean};var BG=ye({name:Xde,props:tpe,emits:["update:show"],setup(e,{emit:t}){let r,i=!1;const n=()=>{const u=e.show&&e.forbidClick;i!==u&&(i=u,Jde(i))},o=u=>t("update:show",u),s=()=>{e.closeOnClick&&o(!1)},l=()=>clearTimeout(r),a=()=>{const{icon:u,type:p,iconSize:h,iconPrefix:m,loadingType:y}=e;if(u||p==="success"||p==="fail")return Y(oR,{name:u||p,size:h,class:nb("icon"),classPrefix:m},null);if(p==="loading")return Y(sR,{class:nb("loading"),size:h,type:y},null)},c=()=>{const{type:u,message:p}=e;if(ou(p)&&p!=="")return u==="html"?Y("div",{key:0,class:nb("text"),innerHTML:String(p)},null):Y("div",{class:nb("text")},[p])};return Ve(()=>[e.show,e.forbidClick],n),Ve(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(r=setTimeout(()=>{o(!1)},e.duration))}),er(n),pu(n),()=>Y(aR,sr({class:[nb([e.position,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":o},SG(e,epe)),{default:()=>[a(),c()]})}});const UG={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Ga=[],XE=!1,iS=yo({},UG);const nS=new Map;function WG(e){return YE(e)?e:{message:e}}function rpe(){const{instance:e,unmount:t}=VG({setup(){const r=F(""),{open:i,state:n,close:o,toggle:s}=jG(),l=()=>{XE&&(Ga=Ga.filter(c=>c!==e),t())},a=()=>Y(BG,sr(n,{onClosed:l,"onUpdate:show":s}),null);return Ve(r,c=>{n.message=c}),Xt().render=a,{open:i,clear:o,message:r}}});return e}function ipe(){if(!Ga.length||XE){const e=rpe();Ga.push(e)}return Ga[Ga.length-1]}function sc(e={}){if(!rR)return{};const t=ipe(),r=WG(e);return t.open(yo({},iS,nS.get(r.type||iS.type),r)),t}const cR=e=>t=>sc(yo({type:e},WG(t)));sc.loading=cR("loading");sc.success=cR("success");sc.fail=cR("fail");sc.clear=e=>{var t;Ga.length&&(e?(Ga.forEach(r=>{r.clear()}),Ga=[]):XE?(t=Ga.shift())==null||t.clear():Ga[0].clear())};function npe(e,t){typeof e=="string"?nS.set(e,t):yo(iS,e)}sc.setDefaultOptions=npe;sc.resetDefaultOptions=e=>{typeof e=="string"?nS.delete(e):(iS=yo({},UG),nS.clear())};sc.allowMultiple=(e=!0)=>{XE=e};sc.install=e=>{e.use(ua(BG)),e.config.globalProperties.$toast=sc};const[ope,CA]=kl("switch"),spe={size:mo,loading:Boolean,disabled:Boolean,modelValue:fh,activeColor:String,inactiveColor:String,activeValue:{type:fh,default:!0},inactiveValue:{type:fh,default:!1}};var lpe=ye({name:ope,props:spe,emits:["change","update:modelValue"],setup(e,{emit:t,slots:r}){const i=()=>e.modelValue===e.activeValue,n=()=>{if(!e.disabled&&!e.loading){const s=i()?e.inactiveValue:e.activeValue;t("update:modelValue",s),t("change",s)}},o=()=>{if(e.loading){const s=i()?e.activeColor:e.inactiveColor;return Y(sR,{class:CA("loading"),color:s},null)}if(r.node)return r.node()};return Hue(()=>e.modelValue),()=>{var s;const{size:l,loading:a,disabled:c,activeColor:u,inactiveColor:p}=e,h=i(),m={fontSize:Za(l),backgroundColor:h?u:p};return Y("div",{role:"switch",class:CA({on:h,loading:a,disabled:c}),style:m,tabindex:c?void 0:0,"aria-checked":h,onClick:n},[Y("div",{class:CA("node")},[o()]),(s=r.background)==null?void 0:s.call(r)])}}});const ape=ua(lpe),[cpe,ga,Zx]=kl("dialog"),upe=yo({},lR,{title:String,theme:String,width:mo,message:[String,Function],callback:Function,allowHtml:Boolean,className:fh,transition:wo("van-dialog-bounce"),messageAlign:String,closeOnPopstate:Kc,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:Kc,closeOnClickOverlay:Boolean}),dpe=[...Vde,"transition","closeOnPopstate"];var HG=ye({name:cpe,props:upe,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:r}){const i=F(),n=kr({confirm:!1,cancel:!1}),o=x=>t("update:show",x),s=x=>{var S;o(!1),(S=e.callback)==null||S.call(e,x)},l=x=>()=>{!e.show||(t(x),e.beforeClose?(n[x]=!0,nR(e.beforeClose,{args:[x],done(){s(x),n[x]=!1},canceled(){n[x]=!1}})):s(x))},a=l("cancel"),c=l("confirm"),u=Lr(x=>{var S,C;if(x.target!==((C=(S=i.value)==null?void 0:S.popupRef)==null?void 0:C.value))return;({Enter:e.showConfirmButton?c:rP,Escape:e.showCancelButton?a:rP})[x.key](),t("keydown",x)},["enter","esc"]),p=()=>{const x=r.title?r.title():e.title;if(x)return Y("div",{class:ga("header",{isolated:!e.message&&!r.default})},[x])},h=x=>{const{message:S,allowHtml:C,messageAlign:E}=e,T=ga("message",{"has-title":x,[E]:E}),w=tS(S)?S():S;return C&&typeof w=="string"?Y("div",{class:T,innerHTML:w},null):Y("div",{class:T},[w])},m=()=>{if(r.default)return Y("div",{class:ga("content")},[r.default()]);const{title:x,message:S,allowHtml:C}=e;if(S){const E=!!(x||r.title);return Y("div",{key:C?1:0,class:ga("content",{isolated:!E})},[h(E)])}},y=()=>Y("div",{class:[ode,ga("footer")]},[e.showCancelButton&&Y(rS,{size:"large",text:e.cancelButtonText||Zx("cancel"),class:ga("cancel"),style:{color:e.cancelButtonColor},loading:n.cancel,disabled:e.cancelButtonDisabled,onClick:a},null),e.showConfirmButton&&Y(rS,{size:"large",text:e.confirmButtonText||Zx("confirm"),class:[ga("confirm"),{[sde]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:n.confirm,disabled:e.confirmButtonDisabled,onClick:c},null)]),v=()=>Y(fde,{class:ga("footer")},{default:()=>[e.showCancelButton&&Y(R8,{type:"warning",text:e.cancelButtonText||Zx("cancel"),class:ga("cancel"),color:e.cancelButtonColor,loading:n.cancel,disabled:e.cancelButtonDisabled,onClick:a},null),e.showConfirmButton&&Y(R8,{type:"danger",text:e.confirmButtonText||Zx("confirm"),class:ga("confirm"),color:e.confirmButtonColor,loading:n.confirm,disabled:e.confirmButtonDisabled,onClick:c},null)]}),_=()=>r.footer?r.footer():e.theme==="round-button"?v():y();return()=>{const{width:x,title:S,theme:C,message:E,className:T}=e;return Y(aR,sr({ref:i,role:"dialog",class:[ga([C]),T],style:{width:Za(x)},tabindex:0,"aria-labelledby":S||E,onKeydown:u,"onUpdate:show":o},SG(e,dpe)),{default:()=>[p(),m(),_()]})}}});let Iw;function ppe(){({instance:Iw}=VG({setup(){const{state:t,toggle:r}=jG();return()=>Y(HG,sr(t,{"onUpdate:show":r}),null)}}))}function En(e){return rR?new Promise((t,r)=>{Iw||ppe(),Iw.open(yo({},En.currentOptions,e,{callback:i=>{(i==="confirm"?t:r)(i)}}))}):Promise.resolve()}En.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1};En.currentOptions=yo({},En.defaultOptions);En.alert=En;En.confirm=e=>En(yo({showCancelButton:!0},e));En.close=()=>{Iw&&Iw.toggle(!1)};En.setDefaultOptions=e=>{yo(En.currentOptions,e)};En.resetDefaultOptions=()=>{En.currentOptions=yo({},En.defaultOptions)};En.Component=ua(HG);En.install=e=>{e.use(En.Component),e.config.globalProperties.$dialog=En};const[hpe,kA]=kl("swipe-cell"),fpe={name:$ue(""),disabled:Boolean,leftWidth:mo,rightWidth:mo,beforeClose:Function,stopPropagation:Boolean};var mpe=ye({name:hpe,props:fpe,emits:["open","close","click"],setup(e,{emit:t,slots:r}){let i,n,o;const s=F(),l=F(),a=F(),c=kr({offset:0,dragging:!1}),u=FG(),p=I=>I.value?EG(I).width:0,h=O(()=>ou(e.leftWidth)?+e.leftWidth:p(l)),m=O(()=>ou(e.rightWidth)?+e.rightWidth:p(a)),y=I=>{c.offset=I==="left"?h.value:-m.value,i||(i=!0,t("open",{name:e.name,position:I}))},v=I=>{c.offset=0,i&&(i=!1,t("close",{name:e.name,position:I}))},_=I=>{const M=Math.abs(c.offset),L=.15,R=i?1-L:L,W=I==="left"?h.value:m.value;W&&M>W*R?y(I):v(I)},x=I=>{e.disabled||(o=c.offset,u.start(I))},S=I=>{if(e.disabled)return;const{deltaX:M}=u;u.move(I),u.isHorizontal()&&(n=!0,c.dragging=!0,(!i||M.value*o<0)&&QE(I,e.stopPropagation),c.offset=Que(M.value+o,-m.value,h.value))},C=()=>{c.dragging&&(c.dragging=!1,_(c.offset>0?"left":"right"),setTimeout(()=>{n=!1},0))},E=(I="outside")=>{t("click",I),i&&!n&&nR(e.beforeClose,{args:[{name:e.name,position:I}],done:()=>v(I)})},T=(I,M)=>L=>{M&&L.stopPropagation(),E(I)},w=(I,M)=>{const L=r[I];if(L)return Y("div",{ref:M,class:kA(I),onClick:T(I,!0)},[L()])};return JE({open:y,close:v}),Fue(s,()=>E("outside"),{eventName:"touchstart"}),ZE("touchmove",S,{target:s}),()=>{var I;const M={transform:`translate3d(${c.offset}px, 0, 0)`,transitionDuration:c.dragging?"0s":".6s"};return Y("div",{ref:s,class:kA(),onClick:T("cell",n),onTouchstartPassive:x,onTouchend:C,onTouchcancel:C},[Y("div",{class:kA("wrapper"),style:M},[w("left",l),(I=r.default)==null?void 0:I.call(r),w("right",a)])])}}});const gpe=ua(mpe);var Dh=(e,t)=>{const r=e.__vccOpts||e;for(const[i,n]of t)r[i]=n;return r};const ype={name:"ToolButton",props:["title","describe","icon","id"],data(){return{iconClass:""}},mounted(){console.log(this.icon),this.iconClass="cr-normal-btn-icon app-icon "+this.icon},beforeDestroy(){clearTimeout(this.timeOut)},methods:{onClick(){this.$emit("onclick",this.id)},onTouchStart(){let e=this;this.isClick=!0,this.timeOut=setTimeout(function(){e.isClick=!1,En.alert({title:"\u5DE5\u5177\u64CD\u4F5C\u63D0\u793A",message:e.describe})},500)},onTouchMove(){this.isClick&&this._clearTimeOut()},onTouchEnd(){this.isClick&&(this._clearTimeOut(),this.onClick())},_clearTimeOut(){clearTimeout(this.timeOut)}}},vpe={class:"cr-normal-btn-title"};function bpe(e,t,r,i,n,o){return $(),K("button",{class:"cr-normal-btn",onClick:t[0]||(t[0]=s=>o.onClick())},[G("span",{class:N(n.iconClass)},null,2),G("span",vpe,rt(r.title),1)])}var _pe=Dh(ype,[["render",bpe]]);const wpe={name:"ToolsButton",props:["title","describe","icon","id"],data(){return{iconClass:""}},mounted(){this.iconClass="cr-tools-btn-icon app-icon "+this.icon},beforeDestroy(){clearTimeout(this.timeOut)},methods:{onClick(){this.$emit("onclick",this.id)},onTouchStart(){let e=this;this.isClick=!0,this.timeOut=setTimeout(function(){e.isClick=!1,En.alert({title:"\u5DE5\u5177\u64CD\u4F5C\u63D0\u793A",message:e.describe})},500)},onTouchMove(){this.isClick&&this._clearTimeOut()},onTouchEnd(){this.isClick&&(this._clearTimeOut(),this.onClick())},_clearTimeOut(){clearTimeout(this.timeOut)}}},xpe={class:"cr-tools-btn-title"};function Cpe(e,t,r,i,n,o){return $(),K("button",{class:"cr-tools-btn",onClick:t[0]||(t[0]=s=>o.onClick())},[G("span",{class:N(n.iconClass)},null,2),G("span",xpe,rt(r.title),1)])}var GG=Dh(wpe,[["render",Cpe]]),kpe=typeof global=="object"&&global&&global.Object===Object&&global,qG=kpe,Spe=typeof self=="object"&&self&&self.Object===Object&&self,Epe=qG||Spe||Function("return this")(),mc=Epe,Tpe=mc.Symbol,ta=Tpe,YG=Object.prototype,Ape=YG.hasOwnProperty,Mpe=YG.toString,ob=ta?ta.toStringTag:void 0;function Ipe(e){var t=Ape.call(e,ob),r=e[ob];try{e[ob]=void 0;var i=!0}catch{}var n=Mpe.call(e);return i&&(t?e[ob]=r:delete e[ob]),n}var Ppe=Object.prototype,$pe=Ppe.toString;function Ope(e){return $pe.call(e)}var Lpe="[object Null]",Rpe="[object Undefined]",F8=ta?ta.toStringTag:void 0;function h0(e){return e==null?e===void 0?Rpe:Lpe:F8&&F8 in Object(e)?Ipe(e):Ope(e)}function gd(e){return e!=null&&typeof e=="object"}var Dpe="[object Symbol]";function e3(e){return typeof e=="symbol"||gd(e)&&h0(e)==Dpe}function KG(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}var Npe=Array.isArray,xl=Npe,Fpe=1/0,z8=ta?ta.prototype:void 0,j8=z8?z8.toString:void 0;function ZG(e){if(typeof e=="string")return e;if(xl(e))return KG(e,ZG)+"";if(e3(e))return j8?j8.call(e):"";var t=e+"";return t=="0"&&1/e==-Fpe?"-0":t}var zpe=/\s/;function jpe(e){for(var t=e.length;t--&&zpe.test(e.charAt(t)););return t}var Vpe=/^\s+/;function Bpe(e){return e&&e.slice(0,jpe(e)+1).replace(Vpe,"")}function ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var V8=0/0,Upe=/^[-+]0x[0-9a-f]+$/i,Wpe=/^0b[01]+$/i,Hpe=/^0o[0-7]+$/i,Gpe=parseInt;function B8(e){if(typeof e=="number")return e;if(e3(e))return V8;if(ra(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ra(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Bpe(e);var r=Wpe.test(e);return r||Hpe.test(e)?Gpe(e.slice(2),r?2:8):Upe.test(e)?V8:+e}function uR(e){return e}var qpe="[object AsyncFunction]",Ype="[object Function]",Kpe="[object GeneratorFunction]",Zpe="[object Proxy]";function QG(e){if(!ra(e))return!1;var t=h0(e);return t==Ype||t==Kpe||t==qpe||t==Zpe}var Qpe=mc["__core-js_shared__"],SA=Qpe,U8=function(){var e=/[^.]+$/.exec(SA&&SA.keys&&SA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jpe(e){return!!U8&&U8 in e}var Xpe=Function.prototype,ehe=Xpe.toString;function xg(e){if(e!=null){try{return ehe.call(e)}catch{}try{return e+""}catch{}}return""}var the=/[\\^$.*+?()[\]{}|]/g,rhe=/^\[object .+?Constructor\]$/,ihe=Function.prototype,nhe=Object.prototype,ohe=ihe.toString,she=nhe.hasOwnProperty,lhe=RegExp("^"+ohe.call(she).replace(the,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ahe(e){if(!ra(e)||Jpe(e))return!1;var t=QG(e)?lhe:rhe;return t.test(xg(e))}function che(e,t){return e==null?void 0:e[t]}function Cg(e,t){var r=che(e,t);return ahe(r)?r:void 0}var uhe=Cg(mc,"WeakMap"),nP=uhe,W8=Object.create,dhe=function(){function e(){}return function(t){if(!ra(t))return{};if(W8)return W8(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),phe=dhe;function hhe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function fhe(){}function mhe(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var ghe=800,yhe=16,vhe=Date.now;function bhe(e){var t=0,r=0;return function(){var i=vhe(),n=yhe-(i-r);if(r=i,n>0){if(++t>=ghe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _he(e){return function(){return e}}var whe=function(){try{var e=Cg(Object,"defineProperty");return e({},"",{}),e}catch{}}(),oS=whe,xhe=oS?function(e,t){return oS(e,"toString",{configurable:!0,enumerable:!1,value:_he(t),writable:!0})}:uR,Che=xhe,khe=bhe(Che),JG=khe;function She(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function Ehe(e,t,r,i){for(var n=e.length,o=r+(i?1:-1);i?o--:++o<n;)if(t(e[o],o,e))return o;return-1}function The(e){return e!==e}function Ahe(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function Mhe(e,t,r){return t===t?Ahe(e,t,r):Ehe(e,The,r)}function Ihe(e,t){var r=e==null?0:e.length;return!!r&&Mhe(e,t,0)>-1}var Phe=9007199254740991,$he=/^(?:0|[1-9]\d*)$/;function dR(e,t){var r=typeof e;return t=t==null?Phe:t,!!t&&(r=="number"||r!="symbol"&&$he.test(e))&&e>-1&&e%1==0&&e<t}function XG(e,t,r){t=="__proto__"&&oS?oS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function pR(e,t){return e===t||e!==e&&t!==t}var Ohe=Object.prototype,Lhe=Ohe.hasOwnProperty;function hR(e,t,r){var i=e[t];(!(Lhe.call(e,t)&&pR(i,r))||r===void 0&&!(t in e))&&XG(e,t,r)}function t3(e,t,r,i){var n=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],a=i?i(r[l],e[l],l,r,e):void 0;a===void 0&&(a=e[l]),n?XG(r,l,a):hR(r,l,a)}return r}var H8=Math.max;function eq(e,t,r){return t=H8(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,o=H8(i.length-t,0),s=Array(o);++n<o;)s[n]=i[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=i[n];return l[t]=r(s),hhe(e,this,l)}}function Rhe(e,t){return JG(eq(e,t,uR),e+"")}var Dhe=9007199254740991;function fR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dhe}function z1(e){return e!=null&&fR(e.length)&&!QG(e)}var Nhe=Object.prototype;function mR(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nhe;return e===r}function Fhe(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var zhe="[object Arguments]";function G8(e){return gd(e)&&h0(e)==zhe}var tq=Object.prototype,jhe=tq.hasOwnProperty,Vhe=tq.propertyIsEnumerable,Bhe=G8(function(){return arguments}())?G8:function(e){return gd(e)&&jhe.call(e,"callee")&&!Vhe.call(e,"callee")},gR=Bhe;function Uhe(){return!1}var rq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,q8=rq&&typeof module=="object"&&module&&!module.nodeType&&module,Whe=q8&&q8.exports===rq,Y8=Whe?mc.Buffer:void 0,Hhe=Y8?Y8.isBuffer:void 0,Ghe=Hhe||Uhe,sS=Ghe,qhe="[object Arguments]",Yhe="[object Array]",Khe="[object Boolean]",Zhe="[object Date]",Qhe="[object Error]",Jhe="[object Function]",Xhe="[object Map]",efe="[object Number]",tfe="[object Object]",rfe="[object RegExp]",ife="[object Set]",nfe="[object String]",ofe="[object WeakMap]",sfe="[object ArrayBuffer]",lfe="[object DataView]",afe="[object Float32Array]",cfe="[object Float64Array]",ufe="[object Int8Array]",dfe="[object Int16Array]",pfe="[object Int32Array]",hfe="[object Uint8Array]",ffe="[object Uint8ClampedArray]",mfe="[object Uint16Array]",gfe="[object Uint32Array]",Ki={};Ki[afe]=Ki[cfe]=Ki[ufe]=Ki[dfe]=Ki[pfe]=Ki[hfe]=Ki[ffe]=Ki[mfe]=Ki[gfe]=!0;Ki[qhe]=Ki[Yhe]=Ki[sfe]=Ki[Khe]=Ki[lfe]=Ki[Zhe]=Ki[Qhe]=Ki[Jhe]=Ki[Xhe]=Ki[efe]=Ki[tfe]=Ki[rfe]=Ki[ife]=Ki[nfe]=Ki[ofe]=!1;function yfe(e){return gd(e)&&fR(e.length)&&!!Ki[h0(e)]}function yR(e){return function(t){return e(t)}}var iq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,F_=iq&&typeof module=="object"&&module&&!module.nodeType&&module,vfe=F_&&F_.exports===iq,EA=vfe&&qG.process,bfe=function(){try{var e=F_&&F_.require&&F_.require("util").types;return e||EA&&EA.binding&&EA.binding("util")}catch{}}(),Av=bfe,K8=Av&&Av.isTypedArray,_fe=K8?yR(K8):yfe,nq=_fe,wfe=Object.prototype,xfe=wfe.hasOwnProperty;function oq(e,t){var r=xl(e),i=!r&&gR(e),n=!r&&!i&&sS(e),o=!r&&!i&&!n&&nq(e),s=r||i||n||o,l=s?Fhe(e.length,String):[],a=l.length;for(var c in e)(t||xfe.call(e,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||dR(c,a)))&&l.push(c);return l}function sq(e,t){return function(r){return e(t(r))}}var Cfe=sq(Object.keys,Object),kfe=Cfe,Sfe=Object.prototype,Efe=Sfe.hasOwnProperty;function Tfe(e){if(!mR(e))return kfe(e);var t=[];for(var r in Object(e))Efe.call(e,r)&&r!="constructor"&&t.push(r);return t}function j1(e){return z1(e)?oq(e):Tfe(e)}function Afe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Mfe=Object.prototype,Ife=Mfe.hasOwnProperty;function Pfe(e){if(!ra(e))return Afe(e);var t=mR(e),r=[];for(var i in e)i=="constructor"&&(t||!Ife.call(e,i))||r.push(i);return r}function vR(e){return z1(e)?oq(e,!0):Pfe(e)}var $fe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ofe=/^\w*$/;function bR(e,t){if(xl(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||e3(e)?!0:Ofe.test(e)||!$fe.test(e)||t!=null&&e in Object(t)}var Lfe=Cg(Object,"create"),Pw=Lfe;function Rfe(){this.__data__=Pw?Pw(null):{},this.size=0}function Dfe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nfe="__lodash_hash_undefined__",Ffe=Object.prototype,zfe=Ffe.hasOwnProperty;function jfe(e){var t=this.__data__;if(Pw){var r=t[e];return r===Nfe?void 0:r}return zfe.call(t,e)?t[e]:void 0}var Vfe=Object.prototype,Bfe=Vfe.hasOwnProperty;function Ufe(e){var t=this.__data__;return Pw?t[e]!==void 0:Bfe.call(t,e)}var Wfe="__lodash_hash_undefined__";function Hfe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pw&&t===void 0?Wfe:t,this}function Jm(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Jm.prototype.clear=Rfe;Jm.prototype.delete=Dfe;Jm.prototype.get=jfe;Jm.prototype.has=Ufe;Jm.prototype.set=Hfe;function Gfe(){this.__data__=[],this.size=0}function r3(e,t){for(var r=e.length;r--;)if(pR(e[r][0],t))return r;return-1}var qfe=Array.prototype,Yfe=qfe.splice;function Kfe(e){var t=this.__data__,r=r3(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Yfe.call(t,r,1),--this.size,!0}function Zfe(e){var t=this.__data__,r=r3(t,e);return r<0?void 0:t[r][1]}function Qfe(e){return r3(this.__data__,e)>-1}function Jfe(e,t){var r=this.__data__,i=r3(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Ad(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ad.prototype.clear=Gfe;Ad.prototype.delete=Kfe;Ad.prototype.get=Zfe;Ad.prototype.has=Qfe;Ad.prototype.set=Jfe;var Xfe=Cg(mc,"Map"),$w=Xfe;function eme(){this.size=0,this.__data__={hash:new Jm,map:new($w||Ad),string:new Jm}}function tme(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function i3(e,t){var r=e.__data__;return tme(t)?r[typeof t=="string"?"string":"hash"]:r.map}function rme(e){var t=i3(this,e).delete(e);return this.size-=t?1:0,t}function ime(e){return i3(this,e).get(e)}function nme(e){return i3(this,e).has(e)}function ome(e,t){var r=i3(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Md(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Md.prototype.clear=eme;Md.prototype.delete=rme;Md.prototype.get=ime;Md.prototype.has=nme;Md.prototype.set=ome;var sme="Expected a function";function n3(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sme);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(n3.Cache||Md),r}n3.Cache=Md;var lme=500;function ame(e){var t=n3(e,function(i){return r.size===lme&&r.clear(),i}),r=t.cache;return t}var cme=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ume=/\\(\\)?/g,dme=ame(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cme,function(r,i,n,o){t.push(n?o.replace(ume,"$1"):i||r)}),t}),pme=dme;function hme(e){return e==null?"":ZG(e)}function o3(e,t){return xl(e)?e:bR(e,t)?[e]:pme(hme(e))}var fme=1/0;function V1(e){if(typeof e=="string"||e3(e))return e;var t=e+"";return t=="0"&&1/e==-fme?"-0":t}function _R(e,t){t=o3(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[V1(t[r++])];return r&&r==i?e:void 0}function Ai(e,t,r){var i=e==null?void 0:_R(e,t);return i===void 0?r:i}function wR(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}var Z8=ta?ta.isConcatSpreadable:void 0;function mme(e){return xl(e)||gR(e)||!!(Z8&&e&&e[Z8])}function B1(e,t,r,i,n){var o=-1,s=e.length;for(r||(r=mme),n||(n=[]);++o<s;){var l=e[o];t>0&&r(l)?t>1?B1(l,t-1,r,i,n):wR(n,l):i||(n[n.length]=l)}return n}function lq(e){var t=e==null?0:e.length;return t?B1(e,1):[]}function gme(e){return JG(eq(e,void 0,lq),e+"")}var yme=sq(Object.getPrototypeOf,Object),aq=yme;function Mv(){if(!arguments.length)return[];var e=arguments[0];return xl(e)?e:[e]}function vme(){this.__data__=new Ad,this.size=0}function bme(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function _me(e){return this.__data__.get(e)}function wme(e){return this.__data__.has(e)}var xme=200;function Cme(e,t){var r=this.__data__;if(r instanceof Ad){var i=r.__data__;if(!$w||i.length<xme-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Md(i)}return r.set(e,t),this.size=r.size,this}function ru(e){var t=this.__data__=new Ad(e);this.size=t.size}ru.prototype.clear=vme;ru.prototype.delete=bme;ru.prototype.get=_me;ru.prototype.has=wme;ru.prototype.set=Cme;function kme(e,t){return e&&t3(t,j1(t),e)}function Sme(e,t){return e&&t3(t,vR(t),e)}var cq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Q8=cq&&typeof module=="object"&&module&&!module.nodeType&&module,Eme=Q8&&Q8.exports===cq,J8=Eme?mc.Buffer:void 0,X8=J8?J8.allocUnsafe:void 0;function Tme(e,t){if(t)return e.slice();var r=e.length,i=X8?X8(r):new e.constructor(r);return e.copy(i),i}function Ame(e,t){for(var r=-1,i=e==null?0:e.length,n=0,o=[];++r<i;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}function uq(){return[]}var Mme=Object.prototype,Ime=Mme.propertyIsEnumerable,ez=Object.getOwnPropertySymbols,Pme=ez?function(e){return e==null?[]:(e=Object(e),Ame(ez(e),function(t){return Ime.call(e,t)}))}:uq,xR=Pme;function $me(e,t){return t3(e,xR(e),t)}var Ome=Object.getOwnPropertySymbols,Lme=Ome?function(e){for(var t=[];e;)wR(t,xR(e)),e=aq(e);return t}:uq,dq=Lme;function Rme(e,t){return t3(e,dq(e),t)}function pq(e,t,r){var i=t(e);return xl(e)?i:wR(i,r(e))}function oP(e){return pq(e,j1,xR)}function Dme(e){return pq(e,vR,dq)}var Nme=Cg(mc,"DataView"),sP=Nme,Fme=Cg(mc,"Promise"),lP=Fme,zme=Cg(mc,"Set"),rv=zme,tz="[object Map]",jme="[object Object]",rz="[object Promise]",iz="[object Set]",nz="[object WeakMap]",oz="[object DataView]",Vme=xg(sP),Bme=xg($w),Ume=xg(lP),Wme=xg(rv),Hme=xg(nP),vf=h0;(sP&&vf(new sP(new ArrayBuffer(1)))!=oz||$w&&vf(new $w)!=tz||lP&&vf(lP.resolve())!=rz||rv&&vf(new rv)!=iz||nP&&vf(new nP)!=nz)&&(vf=function(e){var t=h0(e),r=t==jme?e.constructor:void 0,i=r?xg(r):"";if(i)switch(i){case Vme:return oz;case Bme:return tz;case Ume:return rz;case Wme:return iz;case Hme:return nz}return t});var Ow=vf,Gme=Object.prototype,qme=Gme.hasOwnProperty;function Yme(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&qme.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Kme=mc.Uint8Array,lS=Kme;function CR(e){var t=new e.constructor(e.byteLength);return new lS(t).set(new lS(e)),t}function Zme(e,t){var r=t?CR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Qme=/\w*$/;function Jme(e){var t=new e.constructor(e.source,Qme.exec(e));return t.lastIndex=e.lastIndex,t}var sz=ta?ta.prototype:void 0,lz=sz?sz.valueOf:void 0;function Xme(e){return lz?Object(lz.call(e)):{}}function ege(e,t){var r=t?CR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var tge="[object Boolean]",rge="[object Date]",ige="[object Map]",nge="[object Number]",oge="[object RegExp]",sge="[object Set]",lge="[object String]",age="[object Symbol]",cge="[object ArrayBuffer]",uge="[object DataView]",dge="[object Float32Array]",pge="[object Float64Array]",hge="[object Int8Array]",fge="[object Int16Array]",mge="[object Int32Array]",gge="[object Uint8Array]",yge="[object Uint8ClampedArray]",vge="[object Uint16Array]",bge="[object Uint32Array]";function _ge(e,t,r){var i=e.constructor;switch(t){case cge:return CR(e);case tge:case rge:return new i(+e);case uge:return Zme(e,r);case dge:case pge:case hge:case fge:case mge:case gge:case yge:case vge:case bge:return ege(e,r);case ige:return new i;case nge:case lge:return new i(e);case oge:return Jme(e);case sge:return new i;case age:return Xme(e)}}function wge(e){return typeof e.constructor=="function"&&!mR(e)?phe(aq(e)):{}}var xge="[object Map]";function Cge(e){return gd(e)&&Ow(e)==xge}var az=Av&&Av.isMap,kge=az?yR(az):Cge,Sge=kge,Ege="[object Set]";function Tge(e){return gd(e)&&Ow(e)==Ege}var cz=Av&&Av.isSet,Age=cz?yR(cz):Tge,Mge=Age,Ige=1,Pge=2,$ge=4,hq="[object Arguments]",Oge="[object Array]",Lge="[object Boolean]",Rge="[object Date]",Dge="[object Error]",fq="[object Function]",Nge="[object GeneratorFunction]",Fge="[object Map]",zge="[object Number]",mq="[object Object]",jge="[object RegExp]",Vge="[object Set]",Bge="[object String]",Uge="[object Symbol]",Wge="[object WeakMap]",Hge="[object ArrayBuffer]",Gge="[object DataView]",qge="[object Float32Array]",Yge="[object Float64Array]",Kge="[object Int8Array]",Zge="[object Int16Array]",Qge="[object Int32Array]",Jge="[object Uint8Array]",Xge="[object Uint8ClampedArray]",eye="[object Uint16Array]",tye="[object Uint32Array]",Bi={};Bi[hq]=Bi[Oge]=Bi[Hge]=Bi[Gge]=Bi[Lge]=Bi[Rge]=Bi[qge]=Bi[Yge]=Bi[Kge]=Bi[Zge]=Bi[Qge]=Bi[Fge]=Bi[zge]=Bi[mq]=Bi[jge]=Bi[Vge]=Bi[Bge]=Bi[Uge]=Bi[Jge]=Bi[Xge]=Bi[eye]=Bi[tye]=!0;Bi[Dge]=Bi[fq]=Bi[Wge]=!1;function z_(e,t,r,i,n,o){var s,l=t&Ige,a=t&Pge,c=t&$ge;if(r&&(s=n?r(e,i,n,o):r(e)),s!==void 0)return s;if(!ra(e))return e;var u=xl(e);if(u){if(s=Yme(e),!l)return mhe(e,s)}else{var p=Ow(e),h=p==fq||p==Nge;if(sS(e))return Tme(e,l);if(p==mq||p==hq||h&&!n){if(s=a||h?{}:wge(e),!l)return a?Rme(e,Sme(s,e)):$me(e,kme(s,e))}else{if(!Bi[p])return n?e:{};s=_ge(e,p,l)}}o||(o=new ru);var m=o.get(e);if(m)return m;o.set(e,s),Mge(e)?e.forEach(function(_){s.add(z_(_,t,r,_,e,o))}):Sge(e)&&e.forEach(function(_,x){s.set(x,z_(_,t,r,x,e,o))});var y=c?a?Dme:oP:a?vR:j1,v=u?void 0:y(e);return She(v||e,function(_,x){v&&(x=_,_=e[x]),hR(s,x,z_(_,t,r,x,e,o))}),s}var rye=4;function uz(e){return z_(e,rye)}var iye=1,nye=4;function gq(e){return z_(e,iye|nye)}var oye="__lodash_hash_undefined__";function sye(e){return this.__data__.set(e,oye),this}function lye(e){return this.__data__.has(e)}function Lw(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Md;++t<r;)this.add(e[t])}Lw.prototype.add=Lw.prototype.push=sye;Lw.prototype.has=lye;function aye(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function yq(e,t){return e.has(t)}var cye=1,uye=2;function vq(e,t,r,i,n,o){var s=r&cye,l=e.length,a=t.length;if(l!=a&&!(s&&a>l))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var p=-1,h=!0,m=r&uye?new Lw:void 0;for(o.set(e,t),o.set(t,e);++p<l;){var y=e[p],v=t[p];if(i)var _=s?i(v,y,p,t,e,o):i(y,v,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(m){if(!aye(t,function(x,S){if(!yq(m,S)&&(y===x||n(y,x,r,i,o)))return m.push(S)})){h=!1;break}}else if(!(y===v||n(y,v,r,i,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function dye(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}function kR(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var pye=1,hye=2,fye="[object Boolean]",mye="[object Date]",gye="[object Error]",yye="[object Map]",vye="[object Number]",bye="[object RegExp]",_ye="[object Set]",wye="[object String]",xye="[object Symbol]",Cye="[object ArrayBuffer]",kye="[object DataView]",dz=ta?ta.prototype:void 0,TA=dz?dz.valueOf:void 0;function Sye(e,t,r,i,n,o,s){switch(r){case kye:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Cye:return!(e.byteLength!=t.byteLength||!o(new lS(e),new lS(t)));case fye:case mye:case vye:return pR(+e,+t);case gye:return e.name==t.name&&e.message==t.message;case bye:case wye:return e==t+"";case yye:var l=dye;case _ye:var a=i&pye;if(l||(l=kR),e.size!=t.size&&!a)return!1;var c=s.get(e);if(c)return c==t;i|=hye,s.set(e,t);var u=vq(l(e),l(t),i,n,o,s);return s.delete(e),u;case xye:if(TA)return TA.call(e)==TA.call(t)}return!1}var Eye=1,Tye=Object.prototype,Aye=Tye.hasOwnProperty;function Mye(e,t,r,i,n,o){var s=r&Eye,l=oP(e),a=l.length,c=oP(t),u=c.length;if(a!=u&&!s)return!1;for(var p=a;p--;){var h=l[p];if(!(s?h in t:Aye.call(t,h)))return!1}var m=o.get(e),y=o.get(t);if(m&&y)return m==t&&y==e;var v=!0;o.set(e,t),o.set(t,e);for(var _=s;++p<a;){h=l[p];var x=e[h],S=t[h];if(i)var C=s?i(S,x,h,t,e,o):i(x,S,h,e,t,o);if(!(C===void 0?x===S||n(x,S,r,i,o):C)){v=!1;break}_||(_=h=="constructor")}if(v&&!_){var E=e.constructor,T=t.constructor;E!=T&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof T=="function"&&T instanceof T)&&(v=!1)}return o.delete(e),o.delete(t),v}var Iye=1,pz="[object Arguments]",hz="[object Array]",Qx="[object Object]",Pye=Object.prototype,fz=Pye.hasOwnProperty;function $ye(e,t,r,i,n,o){var s=xl(e),l=xl(t),a=s?hz:Ow(e),c=l?hz:Ow(t);a=a==pz?Qx:a,c=c==pz?Qx:c;var u=a==Qx,p=c==Qx,h=a==c;if(h&&sS(e)){if(!sS(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new ru),s||nq(e)?vq(e,t,r,i,n,o):Sye(e,t,a,r,i,n,o);if(!(r&Iye)){var m=u&&fz.call(e,"__wrapped__"),y=p&&fz.call(t,"__wrapped__");if(m||y){var v=m?e.value():e,_=y?t.value():t;return o||(o=new ru),n(v,_,r,i,o)}}return h?(o||(o=new ru),Mye(e,t,r,i,n,o)):!1}function s3(e,t,r,i,n){return e===t?!0:e==null||t==null||!gd(e)&&!gd(t)?e!==e&&t!==t:$ye(e,t,r,i,s3,n)}var Oye=1,Lye=2;function Rye(e,t,r,i){var n=r.length,o=n,s=!i;if(e==null)return!o;for(e=Object(e);n--;){var l=r[n];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<o;){l=r[n];var a=l[0],c=e[a],u=l[1];if(s&&l[2]){if(c===void 0&&!(a in e))return!1}else{var p=new ru;if(i)var h=i(c,u,a,e,t,p);if(!(h===void 0?s3(u,c,Oye|Lye,i,p):h))return!1}}return!0}function bq(e){return e===e&&!ra(e)}function Dye(e){for(var t=j1(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,bq(n)]}return t}function _q(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Nye(e){var t=Dye(e);return t.length==1&&t[0][2]?_q(t[0][0],t[0][1]):function(r){return r===e||Rye(r,e,t)}}function Fye(e,t){return e!=null&&t in Object(e)}function zye(e,t,r){t=o3(t,e);for(var i=-1,n=t.length,o=!1;++i<n;){var s=V1(t[i]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++i!=n?o:(n=e==null?0:e.length,!!n&&fR(n)&&dR(s,n)&&(xl(e)||gR(e)))}function wq(e,t){return e!=null&&zye(e,t,Fye)}var jye=1,Vye=2;function Bye(e,t){return bR(e)&&bq(t)?_q(V1(e),t):function(r){var i=Ai(r,e);return i===void 0&&i===t?wq(r,e):s3(t,i,jye|Vye)}}function Uye(e){return function(t){return t==null?void 0:t[e]}}function Wye(e){return function(t){return _R(t,e)}}function Hye(e){return bR(e)?Uye(V1(e)):Wye(e)}function Gye(e){return typeof e=="function"?e:e==null?uR:typeof e=="object"?xl(e)?Bye(e[0],e[1]):Nye(e):Hye(e)}function qye(e){return function(t,r,i){for(var n=-1,o=Object(t),s=i(t),l=s.length;l--;){var a=s[e?l:++n];if(r(o[a],a,o)===!1)break}return t}}var Yye=qye(),Kye=Yye;function Zye(e,t){return e&&Kye(e,t,j1)}function Qye(e,t){return function(r,i){if(r==null)return r;if(!z1(r))return e(r,i);for(var n=r.length,o=t?n:-1,s=Object(r);(t?o--:++o<n)&&i(s[o],o,s)!==!1;);return r}}var Jye=Qye(Zye),Xye=Jye,eve=function(){return mc.Date.now()},AA=eve,tve="Expected a function",rve=Math.max,ive=Math.min;function as(e,t,r){var i,n,o,s,l,a,c=0,u=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(tve);t=B8(t)||0,ra(r)&&(u=!!r.leading,p="maxWait"in r,o=p?rve(B8(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function m(w){var I=i,M=n;return i=n=void 0,c=w,s=e.apply(M,I),s}function y(w){return c=w,l=setTimeout(x,t),u?m(w):s}function v(w){var I=w-a,M=w-c,L=t-I;return p?ive(L,o-M):L}function _(w){var I=w-a,M=w-c;return a===void 0||I>=t||I<0||p&&M>=o}function x(){var w=AA();if(_(w))return S(w);l=setTimeout(x,v(w))}function S(w){return l=void 0,h&&i?m(w):(i=n=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,i=a=n=l=void 0}function E(){return l===void 0?s:S(AA())}function T(){var w=AA(),I=_(w);if(i=arguments,n=this,a=w,I){if(l===void 0)return y(a);if(p)return clearTimeout(l),l=setTimeout(x,t),m(a)}return l===void 0&&(l=setTimeout(x,t)),s}return T.cancel=C,T.flush=E,T}function nve(e){return gd(e)&&z1(e)}function ove(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}function sve(e,t){var r=-1,i=z1(e)?Array(e.length):[];return Xye(e,function(n,o,s){i[++r]=t(n,o,s)}),i}function lve(e,t){var r=xl(e)?KG:sve;return r(e,Gye(t))}function ave(e,t){return B1(lve(e,t),1)}var cve=1/0;function uve(e){var t=e==null?0:e.length;return t?B1(e,cve):[]}function xq(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var n=e[t];i[n[0]]=n[1]}return i}function yl(e,t){return s3(e,t)}function fo(e){return e==null}function Cq(e,t,r,i){if(!ra(e))return e;t=o3(t,e);for(var n=-1,o=t.length,s=o-1,l=e;l!=null&&++n<o;){var a=V1(t[n]),c=r;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(n!=s){var u=l[a];c=i?i(u,a,l):void 0,c===void 0&&(c=ra(u)?u:dR(t[n+1])?[]:{})}hR(l,a,c),l=l[a]}return e}function dve(e,t,r){for(var i=-1,n=t.length,o={};++i<n;){var s=t[i],l=_R(e,s);r(l,s)&&Cq(o,o3(s,e),l)}return o}function pve(e,t){return dve(e,t,function(r,i){return wq(e,i)})}var hve=gme(function(e,t){return e==null?{}:pve(e,t)}),nd=hve;function fve(e,t,r){return e==null?e:Cq(e,t,r)}var mve="Expected a function";function jm(e,t,r){var i=!0,n=!0;if(typeof e!="function")throw new TypeError(mve);return ra(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),as(e,t,{leading:i,maxWait:t,trailing:n})}var gve=1/0,yve=rv&&1/kR(new rv([,-0]))[1]==gve?function(e){return new rv(e)}:fhe,vve=yve,bve=200;function _ve(e,t,r){var i=-1,n=Ihe,o=e.length,s=!0,l=[],a=l;if(r)s=!1,n=ove;else if(o>=bve){var c=t?null:vve(e);if(c)return kR(c);s=!1,n=yq,a=new Lw}else a=t?[]:l;e:for(;++i<o;){var u=e[i],p=t?t(u):u;if(u=r||u!==0?u:0,s&&p===p){for(var h=a.length;h--;)if(a[h]===p)continue e;t&&a.push(p),l.push(u)}else n(a,p,r)||(a!==l&&a.push(p),l.push(u))}return l}var wve=Rhe(function(e){return _ve(B1(e,1,nve,!0))}),MA=wve;const xve='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Cve=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,mz=e=>Array.from(e.querySelectorAll(xve)).filter(t=>kve(t)&&Cve(t)),kve=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},hC=function(e,t,...r){let i;t.includes("mouse")||t.includes("click")?i="MouseEvents":t.includes("key")?i="KeyboardEvent":i="HTMLEvents";const n=document.createEvent(i);return n.initEvent(t,...r),e.dispatchEvent(n),e},kq=e=>!e.getAttribute("aria-owns"),Sq=(e,t,r)=>{const{parentNode:i}=e;if(!i)return null;const n=i.querySelectorAll(r),o=Array.prototype.indexOf.call(n,e);return n[o+t]||null},fC=e=>{!e||(e.focus(),!kq(e)&&e.click())},Ui=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const o=e==null?void 0:e(n);if(r===!1||!o)return t==null?void 0:t(n)},gz=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Sve=Object.defineProperty,Eve=Object.defineProperties,Tve=Object.getOwnPropertyDescriptors,yz=Object.getOwnPropertySymbols,Ave=Object.prototype.hasOwnProperty,Mve=Object.prototype.propertyIsEnumerable,vz=(e,t,r)=>t in e?Sve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ive=(e,t)=>{for(var r in t||(t={}))Ave.call(t,r)&&vz(e,r,t[r]);if(yz)for(var r of yz(t))Mve.call(t,r)&&vz(e,r,t[r]);return e},Pve=(e,t)=>Eve(e,Tve(t));function bz(e,t){var r;const i=gi();return Ds(()=>{i.value=e()},Pve(Ive({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),D1(i)}var _z;const Rr=typeof window!="undefined",$ve=e=>typeof e!="undefined",Ln=e=>typeof e=="boolean",Ove=e=>typeof e=="function",Gt=e=>typeof e=="number",Lve=e=>typeof e=="string",Rve=()=>{};Rr&&((_z=window==null?void 0:window.navigator)==null?void 0:_z.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xm(e){return typeof e=="function"?e():g(e)}function Eq(e,t){function r(...i){e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})}return r}function Dve(e,t={}){let r,i;return o=>{const s=Xm(e),l=Xm(t.maxWait);if(r&&clearTimeout(r),s<=0||l!==void 0&&l<=0)return i&&(clearTimeout(i),i=null),o();l&&!i&&(i=setTimeout(()=>{r&&clearTimeout(r),i=null,o()},l)),r=setTimeout(()=>{i&&clearTimeout(i),i=null,o()},s)}}function Nve(e,t=!0,r=!0){let i=0,n,o=!0;const s=()=>{n&&(clearTimeout(n),n=void 0)};return a=>{const c=Xm(e),u=Date.now()-i;if(s(),c<=0)return i=Date.now(),a();u>c&&(r||!o)?(i=Date.now(),a()):t&&(n=setTimeout(()=>{i=Date.now(),o=!0,s(),a()},c-u)),!r&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1}}function Fve(e){return e}function l3(e){return vae()?(CH(e),!0):!1}function zve(e,t=200,r={}){return Eq(Dve(t,r),e)}function jve(e,t=200,r={}){const i=F(e.value),n=zve(()=>{i.value=e.value},t,r);return Ve(e,()=>n()),i}function Tq(e,t=200,r=!1,i=!0){return Eq(Nve(t,r,i),e)}function SR(e,t=!0){Xt()?er(e):t?e():Ct(e)}function eg(e,t,r={}){const{immediate:i=!0}=r,n=F(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function l(){n.value=!1,s()}function a(...c){s(),n.value=!0,o=setTimeout(()=>{n.value=!1,o=null,e(...c)},Xm(t))}return i&&(n.value=!0,Rr&&a()),l3(l),{isPending:n,start:a,stop:l}}function ml(e){var t;const r=Xm(e);return(t=r==null?void 0:r.$el)!=null?t:r}const f0=Rr?window:void 0,Vve=Rr?window.document:void 0;function Si(...e){let t,r,i,n;if(Lve(e[0])||Array.isArray(e[0])?([r,i,n]=e,t=f0):[t,r,i,n]=e,!t)return Rve;Array.isArray(r)||(r=[r]),Array.isArray(i)||(i=[i]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},l=(u,p,h)=>(u.addEventListener(p,h,n),()=>u.removeEventListener(p,h,n)),a=Ve(()=>ml(t),u=>{s(),u&&o.push(...r.flatMap(p=>i.map(h=>l(u,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return l3(c),c}function ER(e,t,r={}){const{window:i=f0,ignore:n=[],capture:o=!0,detectIframe:s=!1}=r;if(!i)return;let l=!0,a;const c=m=>n.some(y=>{if(typeof y=="string")return Array.from(i.document.querySelectorAll(y)).some(v=>v===m.target||m.composedPath().includes(v));{const v=ml(y);return v&&(m.target===v||m.composedPath().includes(v))}}),u=m=>{i.clearTimeout(a);const y=ml(e);if(!(!y||y===m.target||m.composedPath().includes(y))){if(m.detail===0&&(l=!c(m)),!l){l=!0;return}t(m)}},p=[Si(i,"click",u,{passive:!0,capture:o}),Si(i,"pointerdown",m=>{const y=ml(e);y&&(l=!m.composedPath().includes(y)&&!c(m))},{passive:!0}),Si(i,"pointerup",m=>{if(m.button===0){const y=m.composedPath();m.composedPath=()=>y,a=i.setTimeout(()=>u(m),50)}},{passive:!0}),s&&Si(i,"blur",m=>{var y;const v=ml(e);((y=i.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(v!=null&&v.contains(i.document.activeElement))&&t(m)})].filter(Boolean);return()=>p.forEach(m=>m())}function Bve(e,t=!1){const r=F(),i=()=>r.value=Boolean(e());return i(),SR(i,t),r}function Uve(e){return JSON.parse(JSON.stringify(e))}const aP=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},cP="__vueuse_ssr_handlers__";aP[cP]=aP[cP]||{};aP[cP];function Wve(e,t,{window:r=f0,initialValue:i=""}={}){const n=F(i),o=O(()=>{var s;return ml(t)||((s=r==null?void 0:r.document)==null?void 0:s.documentElement)});return Ve([o,()=>Xm(e)],([s,l])=>{var a;if(s&&r){const c=(a=r.getComputedStyle(s).getPropertyValue(l))==null?void 0:a.trim();n.value=c||i}},{immediate:!0}),Ve(n,s=>{var l;(l=o.value)!=null&&l.style&&o.value.style.setProperty(Xm(e),s)}),n}function Hve({document:e=Vve}={}){if(!e)return F("visible");const t=F(e.visibilityState);return Si(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var wz=Object.getOwnPropertySymbols,Gve=Object.prototype.hasOwnProperty,qve=Object.prototype.propertyIsEnumerable,Yve=(e,t)=>{var r={};for(var i in e)Gve.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&wz)for(var i of wz(e))t.indexOf(i)<0&&qve.call(e,i)&&(r[i]=e[i]);return r};function Uo(e,t,r={}){const i=r,{window:n=f0}=i,o=Yve(i,["window"]);let s;const l=Bve(()=>n&&"ResizeObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},c=Ve(()=>ml(e),p=>{a(),l.value&&n&&p&&(s=new ResizeObserver(t),s.observe(p,o))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return l3(u),{isSupported:l,stop:u}}function xz(e,t={}){const{reset:r=!0,windowResize:i=!0,windowScroll:n=!0,immediate:o=!0}=t,s=F(0),l=F(0),a=F(0),c=F(0),u=F(0),p=F(0),h=F(0),m=F(0);function y(){const v=ml(e);if(!v){r&&(s.value=0,l.value=0,a.value=0,c.value=0,u.value=0,p.value=0,h.value=0,m.value=0);return}const _=v.getBoundingClientRect();s.value=_.height,l.value=_.bottom,a.value=_.left,c.value=_.right,u.value=_.top,p.value=_.width,h.value=_.x,m.value=_.y}return Uo(e,y),Ve(()=>ml(e),v=>!v&&y()),n&&Si("scroll",y,{passive:!0}),i&&Si("resize",y,{passive:!0}),SR(()=>{o&&y()}),{height:s,bottom:l,left:a,right:c,top:u,width:p,x:h,y:m,update:y}}var Cz;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Cz||(Cz={}));var Kve=Object.defineProperty,kz=Object.getOwnPropertySymbols,Zve=Object.prototype.hasOwnProperty,Qve=Object.prototype.propertyIsEnumerable,Sz=(e,t,r)=>t in e?Kve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jve=(e,t)=>{for(var r in t||(t={}))Zve.call(t,r)&&Sz(e,r,t[r]);if(kz)for(var r of kz(t))Qve.call(t,r)&&Sz(e,r,t[r]);return e};const Xve={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Jve({linear:Fve},Xve);function e0e(e,t,r,i={}){var n,o,s;const{clone:l=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:p}=i,h=Xt(),m=r||(h==null?void 0:h.emit)||((n=h==null?void 0:h.$emit)==null?void 0:n.bind(h))||((s=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let y=c;t||(t="modelValue"),y=c||y||`update:${t.toString()}`;const v=x=>l?Ove(l)?l(x):Uve(x):x,_=()=>$ve(e[t])?v(e[t]):p;if(a){const x=_(),S=F(x);return Ve(()=>e[t],C=>S.value=v(C)),Ve(S,C=>{(C!==e[t]||u)&&m(y,C)},{deep:u}),S}else return O({get(){return _()},set(x){m(y,x)}})}function t0e({window:e=f0}={}){if(!e)return F(!1);const t=F(e.document.hasFocus());return Si(e,"blur",()=>{t.value=!1}),Si(e,"focus",()=>{t.value=!0}),t}function r0e(e={}){const{window:t=f0,initialWidth:r=1/0,initialHeight:i=1/0,listenOrientation:n=!0,includeScrollbar:o=!0}=e,s=F(r),l=F(i),a=()=>{t&&(o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),SR(a),Si("resize",a,{passive:!0}),n&&Si("orientationchange",a,{passive:!0}),{width:s,height:l}}const i0e=(e,t)=>{if(!Rr||!e||!t)return!1;const r=e.getBoundingClientRect();let i;return t instanceof Element?i=t.getBoundingClientRect():i={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},r.top<i.bottom&&r.bottom>i.top&&r.right>i.left&&r.left<i.right},Ez=e=>{let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},n0e=(e,t)=>Math.abs(Ez(e)-Ez(t)),TR=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}},po=e=>e===void 0,ql=e=>!e&&e!==0||wt(e)&&e.length===0||yr(e)&&!Object.keys(e).length,lc=e=>typeof Element=="undefined"?!1:e instanceof Element,o0e=e=>fo(e),s0e=e=>Kt(e)?!Number.isNaN(Number(e)):!1,Aq=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Yc=e=>R1(e),Rw=e=>Object.keys(e),l0e=e=>Object.entries(e),mC=(e,t,r)=>({get value(){return Ai(e,t,r)},set value(i){fve(e,t,i)}});class a0e extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function zn(e,t){throw new a0e(`[${e}] ${t}`)}const Mq=(e="")=>e.split(" ").filter(t=>!!t.trim()),tc=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Zc=(e,t)=>{!e||!t.trim()||e.classList.add(...Mq(t))},Ns=(e,t)=>{!e||!t.trim()||e.classList.remove(...Mq(t))},Xu=(e,t)=>{var r;if(!Rr||!e||!t)return"";let i=is(t);i==="float"&&(i="cssFloat");try{const n=e.style[i];if(n)return n;const o=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return o?o[i]:""}catch{return e.style[i]}};function Tn(e,t="px"){if(!e)return"";if(Gt(e)||s0e(e))return`${e}${t}`;if(Kt(e))return e}const c0e=(e,t)=>{if(!Rr)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],i=Xu(e,r);return["scroll","auto","overlay"].some(n=>i.includes(n))},AR=(e,t)=>{if(!Rr)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(c0e(r,t))return r;r=r.parentNode}return r};let Jx;const Iq=e=>{var t;if(!Rr)return 0;if(Jx!==void 0)return Jx;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const i=r.offsetWidth;r.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",r.appendChild(n);const o=n.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),Jx=i-o,Jx};function Pq(e,t){if(!Rr)return;if(!t){e.scrollTop=0;return}const r=[];let i=t.offsetParent;for(;i!==null&&e!==i&&e.contains(i);)r.push(i),i=i.offsetParent;const n=t.offsetTop+r.reduce((a,c)=>a+c.offsetTop,0),o=n+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;n<s?e.scrollTop=n:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.0.10 */var Wr=(e,t)=>{let r=e.__vccOpts||e;for(let[i,n]of t)r[i]=n;return r},u0e={name:"ArrowDown"},d0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},p0e=G("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),h0e=[p0e];function f0e(e,t,r,i,n,o){return $(),K("svg",d0e,h0e)}var Nh=Wr(u0e,[["render",f0e],["__file","arrow-down.vue"]]),m0e={name:"ArrowLeft"},g0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y0e=G("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),v0e=[y0e];function b0e(e,t,r,i,n,o){return $(),K("svg",g0e,v0e)}var kh=Wr(m0e,[["render",b0e],["__file","arrow-left.vue"]]),_0e={name:"ArrowRight"},w0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x0e=G("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),C0e=[x0e];function k0e(e,t,r,i,n,o){return $(),K("svg",w0e,C0e)}var os=Wr(_0e,[["render",k0e],["__file","arrow-right.vue"]]),S0e={name:"ArrowUp"},E0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T0e=G("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),A0e=[T0e];function M0e(e,t,r,i,n,o){return $(),K("svg",E0e,A0e)}var a3=Wr(S0e,[["render",M0e],["__file","arrow-up.vue"]]),I0e={name:"Back"},P0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$0e=G("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),O0e=G("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),L0e=[$0e,O0e];function R0e(e,t,r,i,n,o){return $(),K("svg",P0e,L0e)}var D0e=Wr(I0e,[["render",R0e],["__file","back.vue"]]),N0e={name:"Calendar"},F0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},z0e=G("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),j0e=[z0e];function V0e(e,t,r,i,n,o){return $(),K("svg",F0e,j0e)}var B0e=Wr(N0e,[["render",V0e],["__file","calendar.vue"]]),U0e={name:"CaretRight"},W0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},H0e=G("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),G0e=[H0e];function q0e(e,t,r,i,n,o){return $(),K("svg",W0e,G0e)}var $q=Wr(U0e,[["render",q0e],["__file","caret-right.vue"]]),Y0e={name:"CaretTop"},K0e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z0e=G("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),Q0e=[Z0e];function J0e(e,t,r,i,n,o){return $(),K("svg",K0e,Q0e)}var X0e=Wr(Y0e,[["render",J0e],["__file","caret-top.vue"]]),ebe={name:"Check"},tbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rbe=G("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),ibe=[rbe];function nbe(e,t,r,i,n,o){return $(),K("svg",tbe,ibe)}var U1=Wr(ebe,[["render",nbe],["__file","check.vue"]]),obe={name:"CircleCheckFilled"},sbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lbe=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),abe=[lbe];function cbe(e,t,r,i,n,o){return $(),K("svg",sbe,abe)}var ube=Wr(obe,[["render",cbe],["__file","circle-check-filled.vue"]]),dbe={name:"CircleCheck"},pbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hbe=G("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),fbe=G("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),mbe=[hbe,fbe];function gbe(e,t,r,i,n,o){return $(),K("svg",pbe,mbe)}var MR=Wr(dbe,[["render",gbe],["__file","circle-check.vue"]]),ybe={name:"CircleCloseFilled"},vbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bbe=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_be=[bbe];function wbe(e,t,r,i,n,o){return $(),K("svg",vbe,_be)}var IR=Wr(ybe,[["render",wbe],["__file","circle-close-filled.vue"]]),xbe={name:"CircleClose"},Cbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kbe=G("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Sbe=G("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ebe=[kbe,Sbe];function Tbe(e,t,r,i,n,o){return $(),K("svg",Cbe,Ebe)}var Fh=Wr(xbe,[["render",Tbe],["__file","circle-close.vue"]]),Abe={name:"Clock"},Mbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ibe=G("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Pbe=G("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),$be=G("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Obe=[Ibe,Pbe,$be];function Lbe(e,t,r,i,n,o){return $(),K("svg",Mbe,Obe)}var Oq=Wr(Abe,[["render",Lbe],["__file","clock.vue"]]),Rbe={name:"Close"},Dbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nbe=G("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Fbe=[Nbe];function zbe(e,t,r,i,n,o){return $(),K("svg",Dbe,Fbe)}var ia=Wr(Rbe,[["render",zbe],["__file","close.vue"]]),jbe={name:"DArrowLeft"},Vbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bbe=G("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Ube=[Bbe];function Wbe(e,t,r,i,n,o){return $(),K("svg",Vbe,Ube)}var Iv=Wr(jbe,[["render",Wbe],["__file","d-arrow-left.vue"]]),Hbe={name:"DArrowRight"},Gbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qbe=G("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Ybe=[qbe];function Kbe(e,t,r,i,n,o){return $(),K("svg",Gbe,Ybe)}var Pv=Wr(Hbe,[["render",Kbe],["__file","d-arrow-right.vue"]]),Zbe={name:"Delete"},Qbe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Jbe=G("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Xbe=[Jbe];function e_e(e,t,r,i,n,o){return $(),K("svg",Qbe,Xbe)}var PR=Wr(Zbe,[["render",e_e],["__file","delete.vue"]]),t_e={name:"Document"},r_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},i_e=G("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),n_e=[i_e];function o_e(e,t,r,i,n,o){return $(),K("svg",r_e,n_e)}var s_e=Wr(t_e,[["render",o_e],["__file","document.vue"]]),l_e={name:"Edit"},a_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},c_e=G("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),u_e=G("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),d_e=[c_e,u_e];function p_e(e,t,r,i,n,o){return $(),K("svg",a_e,d_e)}var Lq=Wr(l_e,[["render",p_e],["__file","edit.vue"]]),h_e={name:"FullScreen"},f_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m_e=G("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),g_e=[m_e];function y_e(e,t,r,i,n,o){return $(),K("svg",f_e,g_e)}var v_e=Wr(h_e,[["render",y_e],["__file","full-screen.vue"]]),b_e={name:"Hide"},__e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},w_e=G("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),x_e=G("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),C_e=[w_e,x_e];function k_e(e,t,r,i,n,o){return $(),K("svg",__e,C_e)}var S_e=Wr(b_e,[["render",k_e],["__file","hide.vue"]]),E_e={name:"InfoFilled"},T_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},A_e=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),M_e=[A_e];function I_e(e,t,r,i,n,o){return $(),K("svg",T_e,M_e)}var $R=Wr(E_e,[["render",I_e],["__file","info-filled.vue"]]),P_e={name:"Loading"},$_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},O_e=G("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),L_e=[O_e];function R_e(e,t,r,i,n,o){return $(),K("svg",$_e,L_e)}var zh=Wr(P_e,[["render",R_e],["__file","loading.vue"]]),D_e={name:"Minus"},N_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F_e=G("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),z_e=[F_e];function j_e(e,t,r,i,n,o){return $(),K("svg",N_e,z_e)}var V_e=Wr(D_e,[["render",j_e],["__file","minus.vue"]]),B_e={name:"MoreFilled"},U_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},W_e=G("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),H_e=[W_e];function G_e(e,t,r,i,n,o){return $(),K("svg",U_e,H_e)}var Tz=Wr(B_e,[["render",G_e],["__file","more-filled.vue"]]),q_e={name:"More"},Y_e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K_e=G("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),Z_e=[K_e];function Q_e(e,t,r,i,n,o){return $(),K("svg",Y_e,Z_e)}var J_e=Wr(q_e,[["render",Q_e],["__file","more.vue"]]),X_e={name:"PictureFilled"},ewe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},twe=G("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),rwe=[twe];function iwe(e,t,r,i,n,o){return $(),K("svg",ewe,rwe)}var nwe=Wr(X_e,[["render",iwe],["__file","picture-filled.vue"]]),owe={name:"Plus"},swe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lwe=G("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),awe=[lwe];function cwe(e,t,r,i,n,o){return $(),K("svg",swe,awe)}var Rq=Wr(owe,[["render",cwe],["__file","plus.vue"]]),uwe={name:"QuestionFilled"},dwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pwe=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),hwe=[pwe];function fwe(e,t,r,i,n,o){return $(),K("svg",dwe,hwe)}var mwe=Wr(uwe,[["render",fwe],["__file","question-filled.vue"]]),gwe={name:"RefreshLeft"},ywe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vwe=G("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),bwe=[vwe];function _we(e,t,r,i,n,o){return $(),K("svg",ywe,bwe)}var wwe=Wr(gwe,[["render",_we],["__file","refresh-left.vue"]]),xwe={name:"RefreshRight"},Cwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kwe=G("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),Swe=[kwe];function Ewe(e,t,r,i,n,o){return $(),K("svg",Cwe,Swe)}var Twe=Wr(xwe,[["render",Ewe],["__file","refresh-right.vue"]]),Awe={name:"ScaleToOriginal"},Mwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Iwe=G("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),Pwe=[Iwe];function $we(e,t,r,i,n,o){return $(),K("svg",Mwe,Pwe)}var Owe=Wr(Awe,[["render",$we],["__file","scale-to-original.vue"]]),Lwe={name:"Search"},Rwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Dwe=G("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),Nwe=[Dwe];function Fwe(e,t,r,i,n,o){return $(),K("svg",Rwe,Nwe)}var zwe=Wr(Lwe,[["render",Fwe],["__file","search.vue"]]),jwe={name:"SortDown"},Vwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bwe=G("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),Uwe=[Bwe];function Wwe(e,t,r,i,n,o){return $(),K("svg",Vwe,Uwe)}var Hwe=Wr(jwe,[["render",Wwe],["__file","sort-down.vue"]]),Gwe={name:"SortUp"},qwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ywe=G("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),Kwe=[Ywe];function Zwe(e,t,r,i,n,o){return $(),K("svg",qwe,Kwe)}var Qwe=Wr(Gwe,[["render",Zwe],["__file","sort-up.vue"]]),Jwe={name:"StarFilled"},Xwe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e1e=G("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),t1e=[e1e];function r1e(e,t,r,i,n,o){return $(),K("svg",Xwe,t1e)}var Xx=Wr(Jwe,[["render",r1e],["__file","star-filled.vue"]]),i1e={name:"Star"},n1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o1e=G("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),s1e=[o1e];function l1e(e,t,r,i,n,o){return $(),K("svg",n1e,s1e)}var a1e=Wr(i1e,[["render",l1e],["__file","star.vue"]]),c1e={name:"SuccessFilled"},u1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d1e=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),p1e=[d1e];function h1e(e,t,r,i,n,o){return $(),K("svg",u1e,p1e)}var Dq=Wr(c1e,[["render",h1e],["__file","success-filled.vue"]]),f1e={name:"View"},m1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},g1e=G("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),y1e=[g1e];function v1e(e,t,r,i,n,o){return $(),K("svg",m1e,y1e)}var b1e=Wr(f1e,[["render",v1e],["__file","view.vue"]]),_1e={name:"WarningFilled"},w1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x1e=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),C1e=[x1e];function k1e(e,t,r,i,n,o){return $(),K("svg",w1e,C1e)}var c3=Wr(_1e,[["render",k1e],["__file","warning-filled.vue"]]),S1e={name:"ZoomIn"},E1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T1e=G("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),A1e=[T1e];function M1e(e,t,r,i,n,o){return $(),K("svg",E1e,A1e)}var Nq=Wr(S1e,[["render",M1e],["__file","zoom-in.vue"]]),I1e={name:"ZoomOut"},P1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$1e=G("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),O1e=[$1e];function L1e(e,t,r,i,n,o){return $(),K("svg",P1e,O1e)}var R1e=Wr(I1e,[["render",L1e],["__file","zoom-out.vue"]]);const Fq="__epPropKey",Oe=e=>e,D1e=e=>yr(e)&&!!e[Fq],gc=(e,t)=>{if(!yr(e)||D1e(e))return e;const{values:r,required:i,default:n,type:o,validator:s}=e,a={type:o,required:!!i,validator:r||s?c=>{let u=!1,p=[];if(r&&(p=Array.from(r),Mr(e,"default")&&p.push(n),u||(u=p.includes(c))),s&&(u||(u=s(c))),!u&&p.length>0){const h=[...new Set(p)].map(m=>JSON.stringify(m)).join(", ");Yae(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Fq]:!0};return Mr(e,"default")&&(a.default=n),a},ct=e=>xq(Object.entries(e).map(([t,r])=>[t,gc(r,t)])),yi=Oe([String,Object,Function]),zq={Close:ia},OR={Close:ia,SuccessFilled:Dq,InfoFilled:$R,WarningFilled:c3,CircleCloseFilled:IR},Sh={success:Dq,warning:c3,error:IR,info:$R},jq={validating:zh,success:MR,error:Fh},lr=(e,t)=>{if(e.install=r=>{for(const i of[e,...Object.values(t!=null?t:{})])r.component(i.name,i)},t)for(const[r,i]of Object.entries(t))e[r]=i;return e},Vq=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),N1e=(e,t)=>(e.install=r=>{r.directive(t,e)},e),Hi=e=>(e.install=ti,e),u3=(...e)=>t=>{e.forEach(r=>{qt(r)?r(t):r.value=t})},Rt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},F1e=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],IA=["sun","mon","tue","wed","thu","fri","sat"],ar="update:modelValue",_i="change",ss="input",Az=Symbol("INSTALLED_KEY"),Id=["","default","small","large"],z1e={large:40,default:32,small:24},j1e=e=>z1e[e||"default"],m0=e=>["",...Id].includes(e);var Bl=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Bl||{});function uP(e){return Ei(e)&&e.type===bt}function V1e(e){return Ei(e)&&e.type===ns}function B1e(e){return Ei(e)&&!uP(e)&&!V1e(e)}const U1e=e=>{if(!Ei(e))return{};const t=e.props||{},r=(Ei(e.type)?e.type.props:void 0)||{},i={};return Object.keys(r).forEach(n=>{Mr(r[n],"default")&&(i[n]=r[n].default)}),Object.keys(t).forEach(n=>{i[is(n)]=t[n]}),i},W1e=e=>{if(!wt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},iv=e=>{const t=wt(e)?e:[e],r=[];return t.forEach(i=>{var n;wt(i)?r.push(...iv(i)):Ei(i)&&wt(i.children)?r.push(...iv(i.children)):(r.push(i),Ei(i)&&((n=i.component)==null?void 0:n.subTree)&&r.push(...iv(i.component.subTree)))}),r},Mz=e=>e**3,H1e=e=>e<.5?Mz(e*2)/2:1-Mz((1-e)*2)/2,Iz=e=>[...new Set(e)],sd=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],LR=()=>Rr&&/firefox/i.test(window.navigator.userAgent),d3=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Dw=e=>Rr?window.requestAnimationFrame(e):setTimeout(e,16),p3=e=>Rr?window.cancelAnimationFrame(e):clearTimeout(e),h3=()=>Math.floor(Math.random()*1e4),Mi=e=>e,G1e=["class","style"],q1e=/^on[A-Z]/,RR=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,i=O(()=>((r==null?void 0:r.value)||[]).concat(G1e)),n=Xt();return O(n?()=>{var o;return xq(Object.entries((o=n.proxy)==null?void 0:o.$attrs).filter(([s])=>!i.value.includes(s)&&!(t&&q1e.test(s))))}:()=>({}))},Bq=Symbol("breadcrumbKey"),Uq=Symbol("buttonGroupContextKey"),Wq=Symbol("carouselContextKey"),g0=Symbol("checkboxGroupContextKey"),Hq=Symbol("collapseContextKey"),Gq=Symbol(),qq=Symbol("dialogInjectionKey"),kg=Symbol("formContextKey"),su=Symbol("formItemContextKey"),Yq=Symbol("elPaginationKey"),Kq=Symbol("radioGroupKey"),Zq=Symbol("rowContextKey"),Qq=Symbol("scrollbarContextKey"),Jq=Symbol("sliderContextKey"),f3=Symbol("tabsRootContextKey"),Xq=Symbol("uploadContextKey"),DR=Symbol("popper"),eY=Symbol("popperContent"),m3=Symbol("elTooltip"),g3=Symbol("tooltipV2"),tY=Symbol("tooltipV2Content"),PA="tooltip_v2.open",NR=Symbol(),rY=e=>{const t=Xt();return O(()=>{var r,i;return(i=((r=t.proxy)==null?void 0:r.$props)[e])!=null?i:void 0})},aS=F();function Pd(e,t=void 0){const r=Xt()?_t(Gq,aS):aS;return e?O(()=>{var i,n;return(n=(i=r.value)==null?void 0:i[e])!=null?n:t}):r}const iY=(e,t,r=!1)=>{var i;const n=!!Xt(),o=n?Pd():void 0,s=(i=t==null?void 0:t.provide)!=null?i:n?cr:void 0;if(!s)return;const l=O(()=>{const a=g(e);return o!=null&&o.value?Y1e(o.value,a):a});return s(Gq,l),(r||!aS.value)&&(aS.value=l.value),l},Y1e=(e,t)=>{var r;const i=[...new Set([...Rw(e),...Rw(t)])],n={};for(const o of i)n[o]=(r=t[o])!=null?r:e[o];return n},Vs=gc({type:String,values:Id,required:!1}),An=(e,t={})=>{const r=F(void 0),i=t.prop?r:rY("size"),n=t.global?r:Pd("size"),o=t.form?{size:void 0}:_t(kg,void 0),s=t.formItem?{size:void 0}:_t(su,void 0);return O(()=>i.value||g(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||n.value||"")},Gs=e=>{const t=rY("disabled"),r=_t(kg,void 0);return O(()=>t.value||g(e)||(r==null?void 0:r.disabled)||!1)},yd=({from:e,replacement:t,scope:r,version:i,ref:n,type:o="API"},s)=>{Ve(()=>g(s),l=>{},{immediate:!0})},nY=(e,t,r)=>{let i={offsetX:0,offsetY:0};const n=l=>{const a=l.clientX,c=l.clientY,{offsetX:u,offsetY:p}=i,h=e.value.getBoundingClientRect(),m=h.left,y=h.top,v=h.width,_=h.height,x=document.documentElement.clientWidth,S=document.documentElement.clientHeight,C=-m+u,E=-y+p,T=x-m-v+u,w=S-y-_+p,I=L=>{const R=Math.min(Math.max(u+L.clientX-a,C),T),W=Math.min(Math.max(p+L.clientY-c,E),w);i={offsetX:R,offsetY:W},e.value.style.transform=`translate(${Tn(R)}, ${Tn(W)})`},M=()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",M)},o=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",n)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",n)};er(()=>{Ds(()=>{r.value?o():s()})}),Ii(()=>{s()})},K1e=e=>({focus:()=>{var t,r;(r=(t=e.value)==null?void 0:t.focus)==null||r.call(t)}}),y3="el",Z1e="is-",cf=(e,t,r,i,n)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),i&&(o+=`__${i}`),n&&(o+=`--${n}`),o},He=e=>{const t=Pd("namespace",y3);return{namespace:t,b:(y="")=>cf(t.value,e,y,"",""),e:y=>y?cf(t.value,e,"",y,""):"",m:y=>y?cf(t.value,e,"","",y):"",be:(y,v)=>y&&v?cf(t.value,e,y,v,""):"",em:(y,v)=>y&&v?cf(t.value,e,"",y,v):"",bm:(y,v)=>y&&v?cf(t.value,e,y,"",v):"",bem:(y,v,_)=>y&&v&&_?cf(t.value,e,y,v,_):"",is:(y,...v)=>{const _=v.length>=1?v[0]:!0;return y&&_?`${Z1e}${y}`:""},cssVar:y=>{const v={};for(const _ in y)y[_]&&(v[`--${t.value}-${_}`]=y[_]);return v},cssVarName:y=>`--${t.value}-${y}`,cssVarBlock:y=>{const v={};for(const _ in y)y[_]&&(v[`--${t.value}-${e}-${_}`]=y[_]);return v},cssVarBlockName:y=>`--${t.value}-${e}-${y}`}},Pz={prefix:Math.floor(Math.random()*1e4),current:0},Q1e=Symbol("elIdInjection"),oY=()=>Xt()?_t(Q1e,Pz):Pz,ac=e=>{const t=oY(),r=Pd("namespace",y3);return O(()=>g(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},ps=()=>{const e=_t(kg,void 0),t=_t(su,void 0);return{form:e,formItem:t}},jh=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:i})=>{r||(r=F(!1)),i||(i=F(!1));const n=F();let o;const s=O(()=>{var l;return!!(!e.label&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return er(()=>{o=Ve([Ni(e,"id"),r],([l,a])=>{const c=l!=null?l:a?void 0:ac().value;c!==n.value&&(t!=null&&t.removeInputId&&(n.value&&t.removeInputId(n.value),!(i!=null&&i.value)&&!a&&c&&t.addInputId(c)),n.value=c)},{immediate:!0})}),pu(()=>{o&&o(),t!=null&&t.removeInputId&&n.value&&t.removeInputId(n.value)}),{isLabeledByFormItem:s,inputId:n}};var J1e={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const X1e=e=>(t,r)=>exe(t,r,g(e)),exe=(e,t,r)=>Ai(r,e,e).replace(/\{(\w+)\}/g,(i,n)=>{var o;return`${(o=t==null?void 0:t[n])!=null?o:`{${n}}`}`}),txe=e=>{const t=O(()=>g(e).name),r=hi(e)?e:F(e);return{lang:t,locale:r,t:X1e(e)}},Hr=()=>{const e=Pd("locale");return txe(O(()=>e.value||J1e))},sY=e=>{hi(e)||zn("[useLockscreen]","You need to pass a ref param to this function");const t=He("popup"),r=jH(()=>t.bm("parent","hidden"));if(!Rr||tc(document.body,r.value))return;let i=0,n=!1,o="0";const s=()=>{setTimeout(()=>{Ns(document.body,r.value),n&&(document.body.style.width=o)},200)};Ve(e,l=>{if(!l){s();return}n=!tc(document.body,r.value),n&&(o=document.body.style.width),i=Iq(t.namespace.value);const a=document.documentElement.clientHeight<document.body.scrollHeight,c=Xu(document.body,"overflowY");i>0&&(a||c==="scroll")&&n&&(document.body.style.width=`calc(100% - ${i}px)`),Zc(document.body,r.value)}),CH(()=>s())},rxe=gc({type:Oe(Boolean),default:null}),ixe=gc({type:Oe(Function)}),nxe=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,i=[t],n={[e]:rxe,[r]:ixe};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:u,onHide:p})=>{const h=Xt(),{emit:m}=h,y=h.props,v=O(()=>qt(y[r])),_=O(()=>y[e]===null),x=I=>{s.value!==!0&&(s.value=!0,l&&(l.value=I),qt(u)&&u(I))},S=I=>{s.value!==!1&&(s.value=!1,l&&(l.value=I),qt(p)&&p(I))},C=I=>{if(y.disabled===!0||qt(c)&&!c())return;const M=v.value&&Rr;M&&m(t,!0),(_.value||!M)&&x(I)},E=I=>{if(y.disabled===!0||!Rr)return;const M=v.value&&Rr;M&&m(t,!1),(_.value||!M)&&S(I)},T=I=>{!Ln(I)||(y.disabled&&I?v.value&&m(t,!1):s.value!==I&&(I?x():S()))},w=()=>{s.value?E():C()};return Ve(()=>y[e],T),a&&h.appContext.config.globalProperties.$route!==void 0&&Ve(()=>({...h.proxy.$route}),()=>{a.value&&s.value&&E()}),er(()=>{T(y[e])}),{hide:E,show:C,toggle:w,hasUpdateHandler:v}},useModelToggleProps:n,useModelToggleEmits:i}},oxe=(e,t)=>{let r;Ve(()=>e.value,i=>{var n,o;i?(r=document.activeElement,hi(t)&&((o=(n=t.value).focus)==null||o.call(n))):r.focus()})},FR=e=>{if(!e)return{onClick:ti,onMousedown:ti,onMouseup:ti};let t=!1,r=!1;return{onClick:s=>{t&&r&&e(s),t=r=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{r=s.target===s.currentTarget}}},sxe=(e,t=0)=>{if(t===0)return e;const r=F(!1);let i=0;const n=()=>{i&&clearTimeout(i),i=window.setTimeout(()=>{r.value=e.value},t)};return er(n),Ve(()=>e.value,o=>{o?n():r.value=o}),r};function lxe(){let e;const t=(i,n)=>{r(),e=window.setTimeout(i,n)},r=()=>window.clearTimeout(e);return l3(()=>r()),{registerTimeout:t,cancelTimeout:r}}let Jg=[];const $z=e=>{const t=e;t.key===Rt.esc&&Jg.forEach(r=>r(t))},axe=e=>{er(()=>{Jg.length===0&&document.addEventListener("keydown",$z),Rr&&Jg.push(e)}),Ii(()=>{Jg=Jg.filter(t=>t!==e),Jg.length===0&&Rr&&document.removeEventListener("keydown",$z)})};let Oz;const lY=()=>{const e=Pd("namespace",y3),t=oY(),r=O(()=>`${e.value}-popper-container-${t.prefix}`),i=O(()=>`#${r.value}`);return{id:r,selector:i}},cxe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},uxe=()=>{WE(()=>{if(!Rr)return;const{id:e,selector:t}=lY();!Oz&&!document.body.querySelector(t.value)&&(Oz=cxe(e.value))})},dxe=ct({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),pxe=({showAfter:e,hideAfter:t,open:r,close:i})=>{const{registerTimeout:n}=lxe();return{onOpen:l=>{n(()=>{r(l)},g(e))},onClose:l=>{n(()=>{i(l)},g(t))}}},aY=Symbol("elForwardRef"),hxe=e=>{cr(aY,{setForwardRef:r=>{e.value=r}})},fxe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Lz=F(0),$d=()=>{const e=Pd("zIndex",2e3),t=O(()=>e.value+Lz.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Lz.value++,t.value)}};function zR(e){return e.split("-")[0]}function jR(e){return e.split("-")[1]}function VR(e){return["top","bottom"].includes(zR(e))?"x":"y"}function cY(e){return e==="y"?"height":"width"}function Rz(e,t,r){let{reference:i,floating:n}=e;const o=i.x+i.width/2-n.width/2,s=i.y+i.height/2-n.height/2,l=VR(t),a=cY(l),c=i[a]/2-n[a]/2,u=zR(t),p=l==="x";let h;switch(u){case"top":h={x:o,y:i.y-n.height};break;case"bottom":h={x:o,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:s};break;case"left":h={x:i.x-n.width,y:s};break;default:h={x:i.x,y:i.y}}switch(jR(t)){case"start":h[l]-=c*(r&&p?-1:1);break;case"end":h[l]+=c*(r&&p?-1:1);break}return h}const mxe=async(e,t,r)=>{const{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:p}=Rz(c,i,a),h=i,m={},y=0;for(let v=0;v<l.length;v++){const{name:_,fn:x}=l[v],{x:S,y:C,data:E,reset:T}=await x({x:u,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=S!=null?S:u,p=C!=null?C:p,m={...m,[_]:{...m[_],...E}},T&&y<=50){y++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(c=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:u,y:p}=Rz(c,h,a)),v=-1;continue}}return{x:u,y:p,placement:h,strategy:n,middlewareData:m}};function gxe(e){return{top:0,right:0,bottom:0,left:0,...e}}function yxe(e){return typeof e!="number"?gxe(e):{top:e,right:e,bottom:e,left:e}}function Dz(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const vxe=Math.min,bxe=Math.max;function _xe(e,t,r){return bxe(e,vxe(t,r))}const wxe=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:i=0}=e!=null?e:{},{x:n,y:o,placement:s,rects:l,platform:a}=t;if(r==null)return{};const c=yxe(i),u={x:n,y:o},p=VR(s),h=jR(s),m=cY(p),y=await a.getDimensions(r),v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=l.reference[m]+l.reference[p]-u[p]-l.floating[m],S=u[p]-l.reference[p],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(r));let E=C?p==="y"?C.clientHeight||0:C.clientWidth||0:0;E===0&&(E=l.floating[m]);const T=x/2-S/2,w=c[v],I=E-y[m]-c[_],M=E/2-y[m]/2+T,L=_xe(w,M,I),z=(h==="start"?c[v]:c[_])>0&&M!==L&&l.reference[m]<=l.floating[m]?M<w?w-M:I-M:0;return{[p]:u[p]-z,data:{[p]:L,centerOffset:M-L}}}});async function xxe(e,t){const{placement:r,platform:i,elements:n}=e,o=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=zR(r),l=jR(r),a=VR(r)==="x",c=["left","top"].includes(s)?-1:1,u=o&&a?-1:1,p=typeof t=="function"?t(e):t;let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof y=="number"&&(m=l==="end"?y*-1:y),a?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const Cxe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:i}=t,n=await xxe(t,e);return{x:r+n.x,y:i+n.y,data:n}}}};function uY(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Od(e){if(e==null)return window;if(!uY(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Eh(e){return Od(e).getComputedStyle(e)}function Th(e){return uY(e)?"":e?(e.nodeName||"").toLowerCase():""}function dY(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function cc(e){return e instanceof Od(e).HTMLElement}function tg(e){return e instanceof Od(e).Element}function kxe(e){return e instanceof Od(e).Node}function Nw(e){if(typeof ShadowRoot=="undefined")return!1;const t=Od(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function W1(e){const{overflow:t,overflowX:r,overflowY:i,display:n}=Eh(e);return/auto|scroll|overlay|hidden/.test(t+i+r)&&!["inline","contents"].includes(n)}function Sxe(e){return["table","td","th"].includes(Th(e))}function pY(e){const t=/firefox/i.test(dY()),r=Eh(e);return r.transform!=="none"||r.perspective!=="none"||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)||["transform","perspective"].some(i=>r.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const n=r.contain;return n!=null?n.includes(i):!1})}function hY(){return!/^((?!chrome|android).)*safari/i.test(dY())}function BR(e){return["html","body","#document"].includes(Th(e))}const Nz=Math.min,j_=Math.max,cS=Math.round;function rg(e,t,r){var i,n,o,s;t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect();let a=1,c=1;t&&cc(e)&&(a=e.offsetWidth>0&&cS(l.width)/e.offsetWidth||1,c=e.offsetHeight>0&&cS(l.height)/e.offsetHeight||1);const u=tg(e)?Od(e):window,p=!hY()&&r,h=(l.left+(p&&(i=(n=u.visualViewport)==null?void 0:n.offsetLeft)!=null?i:0))/a,m=(l.top+(p&&(o=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?o:0))/c,y=l.width/a,v=l.height/c;return{width:y,height:v,top:m,right:h+y,bottom:m+v,left:h,x:h,y:m}}function Vh(e){return((kxe(e)?e.ownerDocument:e.document)||window.document).documentElement}function v3(e){return tg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fY(e){return rg(Vh(e)).left+v3(e).scrollLeft}function Exe(e){const t=rg(e);return cS(t.width)!==e.offsetWidth||cS(t.height)!==e.offsetHeight}function Txe(e,t,r){const i=cc(t),n=Vh(t),o=rg(e,i&&Exe(t),r==="fixed");let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&r!=="fixed")if((Th(t)!=="body"||W1(n))&&(s=v3(t)),cc(t)){const a=rg(t,!0);l.x=a.x+t.clientLeft,l.y=a.y+t.clientTop}else n&&(l.x=fY(n));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function UR(e){return Th(e)==="html"?e:e.assignedSlot||e.parentNode||(Nw(e)?e.host:null)||Vh(e)}function Fz(e){return!cc(e)||Eh(e).position==="fixed"?null:e.offsetParent}function Axe(e){let t=UR(e);for(Nw(t)&&(t=t.host);cc(t)&&!BR(t);){if(pY(t))return t;{const r=t.parentNode;t=Nw(r)?r.host:r}}return null}function dP(e){const t=Od(e);let r=Fz(e);for(;r&&Sxe(r)&&Eh(r).position==="static";)r=Fz(r);return r&&(Th(r)==="html"||Th(r)==="body"&&Eh(r).position==="static"&&!pY(r))?t:r||Axe(e)||t}function zz(e){if(cc(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=rg(e);return{width:t.width,height:t.height}}function Mxe(e){let{rect:t,offsetParent:r,strategy:i}=e;const n=cc(r),o=Vh(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((n||!n&&i!=="fixed")&&((Th(r)!=="body"||W1(o))&&(s=v3(r)),cc(r))){const a=rg(r,!0);l.x=a.x+r.clientLeft,l.y=a.y+r.clientTop}return{...t,x:t.x-s.scrollLeft+l.x,y:t.y-s.scrollTop+l.y}}function Ixe(e,t){const r=Od(e),i=Vh(e),n=r.visualViewport;let o=i.clientWidth,s=i.clientHeight,l=0,a=0;if(n){o=n.width,s=n.height;const c=hY();(c||!c&&t==="fixed")&&(l=n.offsetLeft,a=n.offsetTop)}return{width:o,height:s,x:l,y:a}}function Pxe(e){var t;const r=Vh(e),i=v3(e),n=(t=e.ownerDocument)==null?void 0:t.body,o=j_(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=j_(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let l=-i.scrollLeft+fY(e);const a=-i.scrollTop;return Eh(n||r).direction==="rtl"&&(l+=j_(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:s,x:l,y:a}}function mY(e){const t=UR(e);return BR(t)?e.ownerDocument.body:cc(t)&&W1(t)?t:mY(t)}function gY(e,t){var r;t===void 0&&(t=[]);const i=mY(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),o=Od(i),s=n?[o].concat(o.visualViewport||[],W1(i)?i:[]):i,l=t.concat(s);return n?l:l.concat(gY(s))}function $xe(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Nw(r)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function Oxe(e,t){let r=e;for(;r&&!BR(r)&&!t.includes(r)&&!(tg(r)&&["absolute","fixed"].includes(Eh(r).position));){const i=UR(r);r=Nw(i)?i.host:i}return r}function Lxe(e,t){const r=rg(e,!1,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft;return{top:i,left:n,x:n,y:i,right:n+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function jz(e,t,r){return t==="viewport"?Dz(Ixe(e,r)):tg(t)?Lxe(t,r):Dz(Pxe(Vh(e)))}function Rxe(e){const t=gY(e),r=Oxe(e,t);let i=null;if(r&&cc(r)){const n=dP(r);W1(r)?i=r:cc(n)&&(i=n)}return tg(i)?t.filter(n=>i&&tg(n)&&$xe(n,i)&&Th(n)!=="body"):[]}function Dxe(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e;const s=[...r==="clippingAncestors"?Rxe(t):[].concat(r),i],l=s[0],a=s.reduce((c,u)=>{const p=jz(t,u,n);return c.top=j_(p.top,c.top),c.right=Nz(p.right,c.right),c.bottom=Nz(p.bottom,c.bottom),c.left=j_(p.left,c.left),c},jz(t,l,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const Nxe={getClippingRect:Dxe,convertOffsetParentRelativeRectToViewportRelativeRect:Mxe,isElement:tg,getDimensions:zz,getOffsetParent:dP,getDocumentElement:Vh,getElementRects:e=>{let{reference:t,floating:r,strategy:i}=e;return{reference:Txe(t,dP(r),i),floating:{...zz(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Eh(e).direction==="rtl"},Fxe=(e,t,r)=>mxe(e,t,{platform:Nxe,...r});ct({});const zxe=e=>{if(!Rr)return;if(!e)return e;const t=ml(e);return t||(hi(e)?t:e)},jxe=({middleware:e,placement:t,strategy:r})=>{const i=F(),n=F(),o=F(),s=F(),l=F({}),a={x:o,y:s,placement:t,strategy:r,middlewareData:l},c=async()=>{if(!Rr)return;const u=zxe(i),p=ml(n);if(!u||!p)return;const h=await Fxe(u,p,{placement:g(t),strategy:g(r),middleware:g(e)});Rw(a).forEach(m=>{a[m].value=h[m]})};return er(()=>{Ds(()=>{c()})}),{...a,update:c,referenceRef:i,contentRef:n}},Vxe=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(r){const i=g(e);return i?wxe({element:i,padding:t}).fn(r):{}}});function Bxe(e){const t=F();function r(){if(e.value==null)return;const{selectionStart:n,selectionEnd:o,value:s}=e.value;if(n==null||o==null)return;const l=s.slice(0,Math.max(0,n)),a=s.slice(Math.max(0,o));t.value={selectionStart:n,selectionEnd:o,value:s,beforeTxt:l,afterTxt:a}}function i(){if(e.value==null||t.value==null)return;const{value:n}=e.value,{beforeTxt:o,afterTxt:s,selectionStart:l}=t.value;if(o==null||s==null||l==null)return;let a=n.length;if(n.endsWith(s))a=n.length-s.length;else if(n.startsWith(o))a=o.length;else{const c=o[l-1],u=n.indexOf(c,l-1);u!==-1&&(a=u+1)}e.value.setSelectionRange(a,a)}return[r,i]}const Uxe=(e,t,r)=>iv(e.subTree).filter(o=>{var s;return Ei(o)&&((s=o.type)==null?void 0:s.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>r[o]).filter(o=>!!o),yY=(e,t)=>{const r={},i=gi([]);return{children:i,addChild:s=>{r[s.uid]=s,i.value=Uxe(e,t,r)},removeChild:s=>{delete r[s],i.value=i.value.filter(l=>l.uid!==s)}}},Wxe="2.2.27",Hxe=(e=[])=>({version:Wxe,install:(r,i)=>{r[Az]||(r[Az]=!0,e.forEach(n=>r.use(n)),i&&iY(i,r,!0))}}),Gxe=ct({zIndex:{type:Oe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),qxe={scroll:({scrollTop:e,fixed:t})=>Gt(e)&&Ln(t),[_i]:e=>Ln(e)};var ot=(e,t)=>{const r=e.__vccOpts||e;for(const[i,n]of t)r[i]=n;return r};const vY="ElAffix",Yxe=ye({name:vY}),Kxe=ye({...Yxe,props:Gxe,emits:qxe,setup(e,{expose:t,emit:r}){const i=e,n=He("affix"),o=gi(),s=gi(),l=gi(),{height:a}=r0e(),{height:c,width:u,top:p,bottom:h,update:m}=xz(s,{windowScroll:!1}),y=xz(o),v=F(!1),_=F(0),x=F(0),S=O(()=>({height:v.value?`${c.value}px`:"",width:v.value?`${u.value}px`:""})),C=O(()=>{if(!v.value)return{};const w=i.offset?Tn(i.offset):0;return{height:`${c.value}px`,width:`${u.value}px`,top:i.position==="top"?w:"",bottom:i.position==="bottom"?w:"",transform:x.value?`translateY(${x.value}px)`:"",zIndex:i.zIndex}}),E=()=>{if(!!l.value)if(_.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0,i.position==="top")if(i.target){const w=y.bottom.value-i.offset-c.value;v.value=i.offset>p.value&&y.bottom.value>0,x.value=w<0?w:0}else v.value=i.offset>p.value;else if(i.target){const w=a.value-y.top.value-i.offset-c.value;v.value=a.value-i.offset<h.value&&a.value>y.top.value,x.value=w<0?-w:0}else v.value=a.value-i.offset<h.value},T=()=>{m(),r("scroll",{scrollTop:_.value,fixed:v.value})};return Ve(v,w=>r("change",w)),er(()=>{var w;i.target?(o.value=(w=document.querySelector(i.target))!=null?w:void 0,o.value||zn(vY,`Target is not existed: ${i.target}`)):o.value=document.documentElement,l.value=AR(s.value,!0),m()}),Si(l,"scroll",T),Ds(E),t({update:E,updateRoot:m}),(w,I)=>($(),K("div",{ref_key:"root",ref:s,class:N(g(n).b()),style:St(g(S))},[G("div",{class:N({[g(n).m("fixed")]:v.value}),style:St(g(C))},[Be(w.$slots,"default")],6)],6))}});var Zxe=ot(Kxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const Qxe=lr(Zxe),Jxe=ct({size:{type:Oe([Number,String])},color:{type:String}}),Xxe=ye({name:"ElIcon",inheritAttrs:!1}),e2e=ye({...Xxe,props:Jxe,setup(e){const t=e,r=He("icon"),i=O(()=>{const{size:n,color:o}=t;return!n&&!o?{}:{fontSize:po(n)?void 0:Tn(n),"--color":o}});return(n,o)=>($(),K("i",sr({class:g(r).b(),style:g(i)},n.$attrs),[Be(n.$slots,"default")],16))}});var t2e=ot(e2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const At=lr(t2e),r2e=["light","dark"],i2e=ct({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Rw(Sh),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:r2e,default:"light"}}),n2e={close:e=>e instanceof MouseEvent},o2e=ye({name:"ElAlert"}),s2e=ye({...o2e,props:i2e,emits:n2e,setup(e,{emit:t}){const r=e,{Close:i}=OR,n=go(),o=He("alert"),s=F(!0),l=O(()=>Sh[r.type]),a=O(()=>[o.e("icon"),{[o.is("big")]:!!r.description||!!n.default}]),c=O(()=>({[o.is("bold")]:r.description||n.default})),u=p=>{s.value=!1,t("close",p)};return(p,h)=>($(),Te(Xi,{name:g(o).b("fade"),persisted:""},{default:me(()=>[kt(G("div",{class:N([g(o).b(),g(o).m(p.type),g(o).is("center",p.center),g(o).is(p.effect)]),role:"alert"},[p.showIcon&&g(l)?($(),Te(g(At),{key:0,class:N(g(a))},{default:me(()=>[($(),Te(br(g(l))))]),_:1},8,["class"])):ke("v-if",!0),G("div",{class:N(g(o).e("content"))},[p.title||p.$slots.title?($(),K("span",{key:0,class:N([g(o).e("title"),g(c)])},[Be(p.$slots,"title",{},()=>[Ir(rt(p.title),1)])],2)):ke("v-if",!0),p.$slots.default||p.description?($(),K("p",{key:1,class:N(g(o).e("description"))},[Be(p.$slots,"default",{},()=>[Ir(rt(p.description),1)])],2)):ke("v-if",!0),p.closable?($(),K(bt,{key:2},[p.closeText?($(),K("div",{key:0,class:N([g(o).e("close-btn"),g(o).is("customed")]),onClick:u},rt(p.closeText),3)):($(),Te(g(At),{key:1,class:N(g(o).e("close-btn")),onClick:u},{default:me(()=>[Y(g(i))]),_:1},8,["class"]))],64)):ke("v-if",!0)],2)],2),[[Vt,s.value]])]),_:3},8,["name"]))}});var l2e=ot(s2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const a2e=lr(l2e);let ya;const c2e=`
- height:0 !important;
- visibility:hidden !important;
- overflow:hidden !important;
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `,u2e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function d2e(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),i=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),n=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:u2e.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:i,borderSize:n,boxSizing:r}}function Vz(e,t=1,r){var i;ya||(ya=document.createElement("textarea"),document.body.appendChild(ya));const{paddingSize:n,borderSize:o,boxSizing:s,contextStyle:l}=d2e(e);ya.setAttribute("style",`${l};${c2e}`),ya.value=e.value||e.placeholder||"";let a=ya.scrollHeight;const c={};s==="border-box"?a=a+o:s==="content-box"&&(a=a-n),ya.value="";const u=ya.scrollHeight-n;if(Gt(t)){let p=u*t;s==="border-box"&&(p=p+n+o),a=Math.max(p,a),c.minHeight=`${p}px`}if(Gt(r)){let p=u*r;s==="border-box"&&(p=p+n+o),a=Math.min(p,a)}return c.height=`${a}px`,(i=ya.parentNode)==null||i.removeChild(ya),ya=void 0,c}const p2e=ct({id:{type:String,default:void 0},size:Vs,disabled:Boolean,modelValue:{type:Oe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Oe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:yi},prefixIcon:{type:yi},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Oe([Object,Array,String]),default:()=>Mi({})}}),h2e={[ar]:e=>Kt(e),input:e=>Kt(e),change:e=>Kt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},f2e=["role"],m2e=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],g2e=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],y2e=ye({name:"ElInput",inheritAttrs:!1}),v2e=ye({...y2e,props:p2e,emits:h2e,setup(e,{expose:t,emit:r}){const i=e,n=F1(),o=go(),s=O(()=>{const Pe={};return i.containerRole==="combobox"&&(Pe["aria-haspopup"]=n["aria-haspopup"],Pe["aria-owns"]=n["aria-owns"],Pe["aria-expanded"]=n["aria-expanded"]),Pe}),l=O(()=>[i.type==="textarea"?_.b():v.b(),v.m(m.value),v.is("disabled",y.value),v.is("exceed",ce.value),{[v.b("group")]:o.prepend||o.append,[v.bm("group","append")]:o.append,[v.bm("group","prepend")]:o.prepend,[v.m("prefix")]:o.prefix||i.prefixIcon,[v.m("suffix")]:o.suffix||i.suffixIcon||i.clearable||i.showPassword,[v.bm("suffix","password-clear")]:B.value&&V.value},n.class]),a=O(()=>[v.e("wrapper"),v.is("focus",C.value)]),c=RR({excludeKeys:O(()=>Object.keys(s.value))}),{form:u,formItem:p}=ps(),{inputId:h}=jh(i,{formItemContext:p}),m=An(),y=Gs(),v=He("input"),_=He("textarea"),x=gi(),S=gi(),C=F(!1),E=F(!1),T=F(!1),w=F(!1),I=F(),M=gi(i.inputStyle),L=O(()=>x.value||S.value),R=O(()=>{var Pe;return(Pe=u==null?void 0:u.statusIcon)!=null?Pe:!1}),W=O(()=>(p==null?void 0:p.validateState)||""),z=O(()=>W.value&&jq[W.value]),j=O(()=>w.value?b1e:S_e),U=O(()=>[n.style,i.inputStyle]),Z=O(()=>[i.inputStyle,M.value,{resize:i.resize}]),Q=O(()=>fo(i.modelValue)?"":String(i.modelValue)),B=O(()=>i.clearable&&!y.value&&!i.readonly&&!!Q.value&&(C.value||E.value)),V=O(()=>i.showPassword&&!y.value&&!i.readonly&&!!Q.value&&(!!Q.value||C.value)),H=O(()=>i.showWordLimit&&!!c.value.maxlength&&(i.type==="text"||i.type==="textarea")&&!y.value&&!i.readonly&&!i.showPassword),ee=O(()=>Array.from(Q.value).length),ce=O(()=>!!H.value&&ee.value>Number(c.value.maxlength)),re=O(()=>!!o.suffix||!!i.suffixIcon||B.value||i.showPassword||H.value||!!W.value&&R.value),[fe,Ne]=Bxe(x);Uo(S,Pe=>{if(!H.value||i.resize!=="both")return;const Xe=Pe[0],{width:dt}=Xe.contentRect;I.value={right:`calc(100% - ${dt+15+6}px)`}});const de=()=>{const{type:Pe,autosize:Xe}=i;if(!(!Rr||Pe!=="textarea"))if(Xe){const dt=yr(Xe)?Xe.minRows:void 0,gt=yr(Xe)?Xe.maxRows:void 0;M.value={...Vz(S.value,dt,gt)}}else M.value={minHeight:Vz(S.value).minHeight}},_e=()=>{const Pe=L.value;!Pe||Pe.value===Q.value||(Pe.value=Q.value)},ae=async Pe=>{fe();let{value:Xe}=Pe.target;if(i.formatter&&(Xe=i.parser?i.parser(Xe):Xe,Xe=i.formatter(Xe)),!T.value){if(Xe===Q.value){_e();return}r(ar,Xe),r("input",Xe),await Ct(),_e(),Ne()}},X=Pe=>{r("change",Pe.target.value)},he=Pe=>{r("compositionstart",Pe),T.value=!0},$e=Pe=>{var Xe;r("compositionupdate",Pe);const dt=(Xe=Pe.target)==null?void 0:Xe.value,gt=dt[dt.length-1]||"";T.value=!d3(gt)},Je=Pe=>{r("compositionend",Pe),T.value&&(T.value=!1,ae(Pe))},ne=()=>{w.value=!w.value,pe()},pe=async()=>{var Pe;await Ct(),(Pe=L.value)==null||Pe.focus()},ge=()=>{var Pe;return(Pe=L.value)==null?void 0:Pe.blur()},Se=Pe=>{C.value=!0,r("focus",Pe)},xe=Pe=>{var Xe;C.value=!1,r("blur",Pe),i.validateEvent&&((Xe=p==null?void 0:p.validate)==null||Xe.call(p,"blur").catch(dt=>void 0))},be=Pe=>{E.value=!1,r("mouseleave",Pe)},Qe=Pe=>{E.value=!0,r("mouseenter",Pe)},Fe=Pe=>{r("keydown",Pe)},Me=()=>{var Pe;(Pe=L.value)==null||Pe.select()},Ie=()=>{r(ar,""),r("change",""),r("clear"),r("input","")};return Ve(()=>i.modelValue,()=>{var Pe;Ct(()=>de()),i.validateEvent&&((Pe=p==null?void 0:p.validate)==null||Pe.call(p,"change").catch(Xe=>void 0))}),Ve(Q,()=>_e()),Ve(()=>i.type,async()=>{await Ct(),_e(),de()}),er(()=>{!i.formatter&&i.parser,_e(),Ct(de)}),t({input:x,textarea:S,ref:L,textareaStyle:Z,autosize:Ni(i,"autosize"),focus:pe,blur:ge,select:Me,clear:Ie,resizeTextarea:de}),(Pe,Xe)=>kt(($(),K("div",sr(g(s),{class:g(l),style:g(U),role:Pe.containerRole,onMouseenter:Qe,onMouseleave:be}),[ke(" input "),Pe.type!=="textarea"?($(),K(bt,{key:0},[ke(" prepend slot "),Pe.$slots.prepend?($(),K("div",{key:0,class:N(g(v).be("group","prepend"))},[Be(Pe.$slots,"prepend")],2)):ke("v-if",!0),G("div",{class:N(g(a))},[ke(" prefix slot "),Pe.$slots.prefix||Pe.prefixIcon?($(),K("span",{key:0,class:N(g(v).e("prefix"))},[G("span",{class:N(g(v).e("prefix-inner")),onClick:pe},[Be(Pe.$slots,"prefix"),Pe.prefixIcon?($(),Te(g(At),{key:0,class:N(g(v).e("icon"))},{default:me(()=>[($(),Te(br(Pe.prefixIcon)))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)):ke("v-if",!0),G("input",sr({id:g(h),ref_key:"input",ref:x,class:g(v).e("inner")},g(c),{type:Pe.showPassword?w.value?"text":"password":Pe.type,disabled:g(y),formatter:Pe.formatter,parser:Pe.parser,readonly:Pe.readonly,autocomplete:Pe.autocomplete,tabindex:Pe.tabindex,"aria-label":Pe.label,placeholder:Pe.placeholder,style:Pe.inputStyle,form:i.form,onCompositionstart:he,onCompositionupdate:$e,onCompositionend:Je,onInput:ae,onFocus:Se,onBlur:xe,onChange:X,onKeydown:Fe}),null,16,m2e),ke(" suffix slot "),g(re)?($(),K("span",{key:1,class:N(g(v).e("suffix"))},[G("span",{class:N(g(v).e("suffix-inner")),onClick:pe},[!g(B)||!g(V)||!g(H)?($(),K(bt,{key:0},[Be(Pe.$slots,"suffix"),Pe.suffixIcon?($(),Te(g(At),{key:0,class:N(g(v).e("icon"))},{default:me(()=>[($(),Te(br(Pe.suffixIcon)))]),_:1},8,["class"])):ke("v-if",!0)],64)):ke("v-if",!0),g(B)?($(),Te(g(At),{key:1,class:N([g(v).e("icon"),g(v).e("clear")]),onMousedown:Yt(g(ti),["prevent"]),onClick:Ie},{default:me(()=>[Y(g(Fh))]),_:1},8,["class","onMousedown"])):ke("v-if",!0),g(V)?($(),Te(g(At),{key:2,class:N([g(v).e("icon"),g(v).e("password")]),onClick:ne},{default:me(()=>[($(),Te(br(g(j))))]),_:1},8,["class"])):ke("v-if",!0),g(H)?($(),K("span",{key:3,class:N(g(v).e("count"))},[G("span",{class:N(g(v).e("count-inner"))},rt(g(ee))+" / "+rt(g(c).maxlength),3)],2)):ke("v-if",!0),g(W)&&g(z)&&g(R)?($(),Te(g(At),{key:4,class:N([g(v).e("icon"),g(v).e("validateIcon"),g(v).is("loading",g(W)==="validating")])},{default:me(()=>[($(),Te(br(g(z))))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)):ke("v-if",!0)],2),ke(" append slot "),Pe.$slots.append?($(),K("div",{key:1,class:N(g(v).be("group","append"))},[Be(Pe.$slots,"append")],2)):ke("v-if",!0)],64)):($(),K(bt,{key:1},[ke(" textarea "),G("textarea",sr({id:g(h),ref_key:"textarea",ref:S,class:g(_).e("inner")},g(c),{tabindex:Pe.tabindex,disabled:g(y),readonly:Pe.readonly,autocomplete:Pe.autocomplete,style:g(Z),"aria-label":Pe.label,placeholder:Pe.placeholder,form:i.form,onCompositionstart:he,onCompositionupdate:$e,onCompositionend:Je,onInput:ae,onFocus:Se,onBlur:xe,onChange:X,onKeydown:Fe}),null,16,g2e),g(H)?($(),K("span",{key:0,style:St(I.value),class:N(g(v).e("count"))},rt(g(ee))+" / "+rt(g(c).maxlength),7)):ke("v-if",!0)],64))],16,f2e)),[[Vt,Pe.type!=="hidden"]])}});var b2e=ot(v2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Qi=lr(b2e),zy=4,bY={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},_2e=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),w2e=ct({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),x2e="Thumb",C2e=ye({__name:"thumb",props:w2e,setup(e){const t=e,r=_t(Qq),i=He("scrollbar");r||zn(x2e,"can not inject scrollbar context");const n=F(),o=F(),s=F({}),l=F(!1);let a=!1,c=!1,u=Rr?document.onselectstart:null;const p=O(()=>bY[t.vertical?"vertical":"horizontal"]),h=O(()=>_2e({size:t.size,move:t.move,bar:p.value})),m=O(()=>n.value[p.value.offset]**2/r.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),y=w=>{var I;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(I=window.getSelection())==null||I.removeAllRanges(),_(w);const M=w.currentTarget;!M||(s.value[p.value.axis]=M[p.value.offset]-(w[p.value.client]-M.getBoundingClientRect()[p.value.direction]))},v=w=>{if(!o.value||!n.value||!r.wrapElement)return;const I=Math.abs(w.target.getBoundingClientRect()[p.value.direction]-w[p.value.client]),M=o.value[p.value.offset]/2,L=(I-M)*100*m.value/n.value[p.value.offset];r.wrapElement[p.value.scroll]=L*r.wrapElement[p.value.scrollSize]/100},_=w=>{w.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",x),document.addEventListener("mouseup",S),u=document.onselectstart,document.onselectstart=()=>!1},x=w=>{if(!n.value||!o.value||a===!1)return;const I=s.value[p.value.axis];if(!I)return;const M=(n.value.getBoundingClientRect()[p.value.direction]-w[p.value.client])*-1,L=o.value[p.value.offset]-I,R=(M-L)*100*m.value/n.value[p.value.offset];r.wrapElement[p.value.scroll]=R*r.wrapElement[p.value.scrollSize]/100},S=()=>{a=!1,s.value[p.value.axis]=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",S),T(),c&&(l.value=!1)},C=()=>{c=!1,l.value=!!t.size},E=()=>{c=!0,l.value=a};Ii(()=>{T(),document.removeEventListener("mouseup",S)});const T=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return Si(Ni(r,"scrollbarElement"),"mousemove",C),Si(Ni(r,"scrollbarElement"),"mouseleave",E),(w,I)=>($(),Te(Xi,{name:g(i).b("fade"),persisted:""},{default:me(()=>[kt(G("div",{ref_key:"instance",ref:n,class:N([g(i).e("bar"),g(i).is(g(p).key)]),onMousedown:v},[G("div",{ref_key:"thumb",ref:o,class:N(g(i).e("thumb")),style:St(g(h)),onMousedown:y},null,38)],34),[[Vt,w.always||l.value]])]),_:1},8,["name"]))}});var Bz=ot(C2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const k2e=ct({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),S2e=ye({__name:"bar",props:k2e,setup(e,{expose:t}){const r=e,i=F(0),n=F(0);return t({handleScroll:s=>{if(s){const l=s.offsetHeight-zy,a=s.offsetWidth-zy;n.value=s.scrollTop*100/l*r.ratioY,i.value=s.scrollLeft*100/a*r.ratioX}}}),(s,l)=>($(),K(bt,null,[Y(Bz,{move:i.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),Y(Bz,{move:n.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}});var E2e=ot(S2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const T2e=ct({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Oe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),A2e={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Gt)},M2e="ElScrollbar",I2e=ye({name:M2e}),P2e=ye({...I2e,props:T2e,emits:A2e,setup(e,{expose:t,emit:r}){const i=e,n=He("scrollbar");let o,s;const l=F(),a=F(),c=F(),u=F("0"),p=F("0"),h=F(),m=F(1),y=F(1),v=O(()=>{const I={};return i.height&&(I.height=Tn(i.height)),i.maxHeight&&(I.maxHeight=Tn(i.maxHeight)),[i.wrapStyle,I]}),_=O(()=>[i.wrapClass,n.e("wrap"),{[n.em("wrap","hidden-default")]:!i.native}]),x=O(()=>[n.e("view"),i.viewClass]),S=()=>{var I;a.value&&((I=h.value)==null||I.handleScroll(a.value),r("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function C(I,M){yr(I)?a.value.scrollTo(I):Gt(I)&&Gt(M)&&a.value.scrollTo(I,M)}const E=I=>{!Gt(I)||(a.value.scrollTop=I)},T=I=>{!Gt(I)||(a.value.scrollLeft=I)},w=()=>{if(!a.value)return;const I=a.value.offsetHeight-zy,M=a.value.offsetWidth-zy,L=I**2/a.value.scrollHeight,R=M**2/a.value.scrollWidth,W=Math.max(L,i.minSize),z=Math.max(R,i.minSize);m.value=L/(I-L)/(W/(I-W)),y.value=R/(M-R)/(z/(M-z)),p.value=W+zy<I?`${W}px`:"",u.value=z+zy<M?`${z}px`:""};return Ve(()=>i.noresize,I=>{I?(o==null||o(),s==null||s()):({stop:o}=Uo(c,w),s=Si("resize",w))},{immediate:!0}),Ve(()=>[i.maxHeight,i.height],()=>{i.native||Ct(()=>{var I;w(),a.value&&((I=h.value)==null||I.handleScroll(a.value))})}),cr(Qq,kr({scrollbarElement:l,wrapElement:a})),er(()=>{i.native||Ct(()=>{w()})}),Td(()=>w()),t({wrapRef:a,update:w,scrollTo:C,setScrollTop:E,setScrollLeft:T,handleScroll:S}),(I,M)=>($(),K("div",{ref_key:"scrollbarRef",ref:l,class:N(g(n).b())},[G("div",{ref_key:"wrapRef",ref:a,class:N(g(_)),style:St(g(v)),onScroll:S},[($(),Te(br(I.tag),{ref_key:"resizeRef",ref:c,class:N(g(x)),style:St(I.viewStyle)},{default:me(()=>[Be(I.$slots,"default")]),_:3},8,["class","style"]))],38),I.native?ke("v-if",!0):($(),Te(E2e,{key:0,ref_key:"barRef",ref:h,height:p.value,width:u.value,always:I.always,"ratio-x":y.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var $2e=ot(P2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ld=lr($2e),O2e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],_Y=ct({role:{type:String,values:O2e,default:"tooltip"}}),L2e=ye({name:"ElPopperRoot",inheritAttrs:!1}),R2e=ye({...L2e,props:_Y,setup(e,{expose:t}){const r=e,i=F(),n=F(),o=F(),s=F(),l=O(()=>r.role),a={triggerRef:i,popperInstanceRef:n,contentRef:o,referenceRef:s,role:l};return t(a),cr(DR,a),(c,u)=>Be(c.$slots,"default")}});var D2e=ot(R2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const wY=ct({arrowOffset:{type:Number,default:5}}),N2e=ye({name:"ElPopperArrow",inheritAttrs:!1}),F2e=ye({...N2e,props:wY,setup(e,{expose:t}){const r=e,i=He("popper"),{arrowOffset:n,arrowRef:o}=_t(eY,void 0);return Ve(()=>r.arrowOffset,s=>{n.value=s}),Ii(()=>{o.value=void 0}),t({arrowRef:o}),(s,l)=>($(),K("span",{ref_key:"arrowRef",ref:o,class:N(g(i).e("arrow")),"data-popper-arrow":""},null,2))}});var z2e=ot(F2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const j2e="ElOnlyChild",xY=ye({name:j2e,setup(e,{slots:t,attrs:r}){var i;const n=_t(aY),o=fxe((i=n==null?void 0:n.setForwardRef)!=null?i:ti);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,r);if(!l||l.length>1)return null;const a=CY(l);return a?kt(md(a,r),[[o]]):null}}});function CY(e){if(!e)return null;const t=e;for(const r of t){if(yr(r))switch(r.type){case ns:continue;case p0:case"svg":return Uz(r);case bt:return CY(r.children);default:return r}return Uz(r)}return null}function Uz(e){const t=He("only-child");return Y("span",{class:t.e("content")},[e])}const kY=ct({virtualRef:{type:Oe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Oe(Function)},onMouseleave:{type:Oe(Function)},onClick:{type:Oe(Function)},onKeydown:{type:Oe(Function)},onFocus:{type:Oe(Function)},onBlur:{type:Oe(Function)},onContextmenu:{type:Oe(Function)},id:String,open:Boolean}),V2e=ye({name:"ElPopperTrigger",inheritAttrs:!1}),B2e=ye({...V2e,props:kY,setup(e,{expose:t}){const r=e,{role:i,triggerRef:n}=_t(DR,void 0);hxe(n);const o=O(()=>l.value?r.id:void 0),s=O(()=>{if(i&&i.value==="tooltip")return r.open&&r.id?r.id:void 0}),l=O(()=>{if(i&&i.value!=="tooltip")return i.value}),a=O(()=>l.value?`${r.open}`:void 0);let c;return er(()=>{Ve(()=>r.virtualRef,u=>{u&&(n.value=ml(u))},{immediate:!0}),Ve(n,(u,p)=>{c==null||c(),c=void 0,lc(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var m;const y=r[h];y&&(u.addEventListener(h.slice(2).toLowerCase(),y),(m=p==null?void 0:p.removeEventListener)==null||m.call(p,h.slice(2).toLowerCase(),y))}),c=Ve([o,s,l,a],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,y)=>{fo(h[y])?u.removeAttribute(m):u.setAttribute(m,h[y])})},{immediate:!0})),lc(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>p.removeAttribute(h))},{immediate:!0})}),Ii(()=>{c==null||c(),c=void 0}),t({triggerRef:n}),(u,p)=>u.virtualTriggering?ke("v-if",!0):($(),Te(g(xY),sr({key:0},u.$attrs,{"aria-controls":g(o),"aria-describedby":g(s),"aria-expanded":g(a),"aria-haspopup":g(l)}),{default:me(()=>[Be(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var U2e=ot(B2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Fs="top",na="bottom",oa="right",zs="left",WR="auto",H1=[Fs,na,oa,zs],$v="start",Fw="end",W2e="clippingParents",SY="viewport",sb="popper",H2e="reference",Wz=H1.reduce(function(e,t){return e.concat([t+"-"+$v,t+"-"+Fw])},[]),Sg=[].concat(H1,[WR]).reduce(function(e,t){return e.concat([t,t+"-"+$v,t+"-"+Fw])},[]),G2e="beforeRead",q2e="read",Y2e="afterRead",K2e="beforeMain",Z2e="main",Q2e="afterMain",J2e="beforeWrite",X2e="write",eCe="afterWrite",tCe=[G2e,q2e,Y2e,K2e,Z2e,Q2e,J2e,X2e,eCe];function lu(e){return e?(e.nodeName||"").toLowerCase():null}function yc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ov(e){var t=yc(e).Element;return e instanceof t||e instanceof Element}function Ql(e){var t=yc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HR(e){if(typeof ShadowRoot=="undefined")return!1;var t=yc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rCe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},n=t.attributes[r]||{},o=t.elements[r];!Ql(o)||!lu(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(s){var l=n[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function iCe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var n=t.elements[i],o=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),l=s.reduce(function(a,c){return a[c]="",a},{});!Ql(n)||!lu(n)||(Object.assign(n.style,l),Object.keys(o).forEach(function(a){n.removeAttribute(a)}))})}}var EY={name:"applyStyles",enabled:!0,phase:"write",fn:rCe,effect:iCe,requires:["computeStyles"]};function iu(e){return e.split("-")[0]}var Vm=Math.max,uS=Math.min,Lv=Math.round;function Rv(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),i=1,n=1;if(Ql(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Lv(r.width)/s||1),o>0&&(n=Lv(r.height)/o||1)}return{width:r.width/i,height:r.height/n,top:r.top/n,right:r.right/i,bottom:r.bottom/n,left:r.left/i,x:r.left/i,y:r.top/n}}function GR(e){var t=Rv(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function TY(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&HR(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vd(e){return yc(e).getComputedStyle(e)}function nCe(e){return["table","td","th"].indexOf(lu(e))>=0}function Bh(e){return((Ov(e)?e.ownerDocument:e.document)||window.document).documentElement}function b3(e){return lu(e)==="html"?e:e.assignedSlot||e.parentNode||(HR(e)?e.host:null)||Bh(e)}function Hz(e){return!Ql(e)||vd(e).position==="fixed"?null:e.offsetParent}function oCe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&Ql(e)){var i=vd(e);if(i.position==="fixed")return null}var n=b3(e);for(HR(n)&&(n=n.host);Ql(n)&&["html","body"].indexOf(lu(n))<0;){var o=vd(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function G1(e){for(var t=yc(e),r=Hz(e);r&&nCe(r)&&vd(r).position==="static";)r=Hz(r);return r&&(lu(r)==="html"||lu(r)==="body"&&vd(r).position==="static")?t:r||oCe(e)||t}function qR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function V_(e,t,r){return Vm(e,uS(t,r))}function sCe(e,t,r){var i=V_(e,t,r);return i>r?r:i}function AY(){return{top:0,right:0,bottom:0,left:0}}function MY(e){return Object.assign({},AY(),e)}function IY(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var lCe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,MY(typeof e!="number"?e:IY(e,H1))};function aCe(e){var t,r=e.state,i=e.name,n=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=iu(r.placement),a=qR(l),c=[zs,oa].indexOf(l)>=0,u=c?"height":"width";if(!(!o||!s)){var p=lCe(n.padding,r),h=GR(o),m=a==="y"?Fs:zs,y=a==="y"?na:oa,v=r.rects.reference[u]+r.rects.reference[a]-s[a]-r.rects.popper[u],_=s[a]-r.rects.reference[a],x=G1(o),S=x?a==="y"?x.clientHeight||0:x.clientWidth||0:0,C=v/2-_/2,E=p[m],T=S-h[u]-p[y],w=S/2-h[u]/2+C,I=V_(E,w,T),M=a;r.modifiersData[i]=(t={},t[M]=I,t.centerOffset=I-w,t)}}function cCe(e){var t=e.state,r=e.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||!TY(t.elements.popper,n)||(t.elements.arrow=n))}var uCe={name:"arrow",enabled:!0,phase:"main",fn:aCe,effect:cCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dv(e){return e.split("-")[1]}var dCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pCe(e){var t=e.x,r=e.y,i=window,n=i.devicePixelRatio||1;return{x:Lv(t*n)/n||0,y:Lv(r*n)/n||0}}function Gz(e){var t,r=e.popper,i=e.popperRect,n=e.placement,o=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,h=s.x,m=h===void 0?0:h,y=s.y,v=y===void 0?0:y,_=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=_.x,v=_.y;var x=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),C=zs,E=Fs,T=window;if(c){var w=G1(r),I="clientHeight",M="clientWidth";if(w===yc(r)&&(w=Bh(r),vd(w).position!=="static"&&l==="absolute"&&(I="scrollHeight",M="scrollWidth")),w=w,n===Fs||(n===zs||n===oa)&&o===Fw){E=na;var L=p&&w===T&&T.visualViewport?T.visualViewport.height:w[I];v-=L-i.height,v*=a?1:-1}if(n===zs||(n===Fs||n===na)&&o===Fw){C=oa;var R=p&&w===T&&T.visualViewport?T.visualViewport.width:w[M];m-=R-i.width,m*=a?1:-1}}var W=Object.assign({position:l},c&&dCe),z=u===!0?pCe({x:m,y:v}):{x:m,y:v};if(m=z.x,v=z.y,a){var j;return Object.assign({},W,(j={},j[E]=S?"0":"",j[C]=x?"0":"",j.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",j))}return Object.assign({},W,(t={},t[E]=S?v+"px":"",t[C]=x?m+"px":"",t.transform="",t))}function hCe(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=i===void 0?!0:i,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,a=l===void 0?!0:l,c={placement:iu(t.placement),variation:Dv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Gz(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gz(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var PY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hCe,data:{}},e2={passive:!0};function fCe(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,o=n===void 0?!0:n,s=i.resize,l=s===void 0?!0:s,a=yc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",r.update,e2)}),l&&a.addEventListener("resize",r.update,e2),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",r.update,e2)}),l&&a.removeEventListener("resize",r.update,e2)}}var $Y={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fCe,data:{}},mCe={left:"right",right:"left",bottom:"top",top:"bottom"};function gC(e){return e.replace(/left|right|bottom|top/g,function(t){return mCe[t]})}var gCe={start:"end",end:"start"};function qz(e){return e.replace(/start|end/g,function(t){return gCe[t]})}function YR(e){var t=yc(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function KR(e){return Rv(Bh(e)).left+YR(e).scrollLeft}function yCe(e){var t=yc(e),r=Bh(e),i=t.visualViewport,n=r.clientWidth,o=r.clientHeight,s=0,l=0;return i&&(n=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:n,height:o,x:s+KR(e),y:l}}function vCe(e){var t,r=Bh(e),i=YR(e),n=(t=e.ownerDocument)==null?void 0:t.body,o=Vm(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Vm(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-i.scrollLeft+KR(e),a=-i.scrollTop;return vd(n||r).direction==="rtl"&&(l+=Vm(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:s,x:l,y:a}}function ZR(e){var t=vd(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function OY(e){return["html","body","#document"].indexOf(lu(e))>=0?e.ownerDocument.body:Ql(e)&&ZR(e)?e:OY(b3(e))}function B_(e,t){var r;t===void 0&&(t=[]);var i=OY(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),o=yc(i),s=n?[o].concat(o.visualViewport||[],ZR(i)?i:[]):i,l=t.concat(s);return n?l:l.concat(B_(b3(s)))}function pP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bCe(e){var t=Rv(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Yz(e,t){return t===SY?pP(yCe(e)):Ov(t)?bCe(t):pP(vCe(Bh(e)))}function _Ce(e){var t=B_(b3(e)),r=["absolute","fixed"].indexOf(vd(e).position)>=0,i=r&&Ql(e)?G1(e):e;return Ov(i)?t.filter(function(n){return Ov(n)&&TY(n,i)&&lu(n)!=="body"}):[]}function wCe(e,t,r){var i=t==="clippingParents"?_Ce(e):[].concat(t),n=[].concat(i,[r]),o=n[0],s=n.reduce(function(l,a){var c=Yz(e,a);return l.top=Vm(c.top,l.top),l.right=uS(c.right,l.right),l.bottom=uS(c.bottom,l.bottom),l.left=Vm(c.left,l.left),l},Yz(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function LY(e){var t=e.reference,r=e.element,i=e.placement,n=i?iu(i):null,o=i?Dv(i):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,a;switch(n){case Fs:a={x:s,y:t.y-r.height};break;case na:a={x:s,y:t.y+t.height};break;case oa:a={x:t.x+t.width,y:l};break;case zs:a={x:t.x-r.width,y:l};break;default:a={x:t.x,y:t.y}}var c=n?qR(n):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case $v:a[c]=a[c]-(t[u]/2-r[u]/2);break;case Fw:a[c]=a[c]+(t[u]/2-r[u]/2);break}}return a}function zw(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=i===void 0?e.placement:i,o=r.boundary,s=o===void 0?W2e:o,l=r.rootBoundary,a=l===void 0?SY:l,c=r.elementContext,u=c===void 0?sb:c,p=r.altBoundary,h=p===void 0?!1:p,m=r.padding,y=m===void 0?0:m,v=MY(typeof y!="number"?y:IY(y,H1)),_=u===sb?H2e:sb,x=e.rects.popper,S=e.elements[h?_:u],C=wCe(Ov(S)?S:S.contextElement||Bh(e.elements.popper),s,a),E=Rv(e.elements.reference),T=LY({reference:E,element:x,strategy:"absolute",placement:n}),w=pP(Object.assign({},x,T)),I=u===sb?w:E,M={top:C.top-I.top+v.top,bottom:I.bottom-C.bottom+v.bottom,left:C.left-I.left+v.left,right:I.right-C.right+v.right},L=e.modifiersData.offset;if(u===sb&&L){var R=L[n];Object.keys(M).forEach(function(W){var z=[oa,na].indexOf(W)>=0?1:-1,j=[Fs,na].indexOf(W)>=0?"y":"x";M[W]+=R[j]*z})}return M}function xCe(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,a=r.allowedAutoPlacements,c=a===void 0?Sg:a,u=Dv(i),p=u?l?Wz:Wz.filter(function(y){return Dv(y)===u}):H1,h=p.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=p);var m=h.reduce(function(y,v){return y[v]=zw(e,{placement:v,boundary:n,rootBoundary:o,padding:s})[iu(v)],y},{});return Object.keys(m).sort(function(y,v){return m[y]-m[v]})}function CCe(e){if(iu(e)===WR)return[];var t=gC(e);return[qz(e),t,qz(t)]}function kCe(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,o=n===void 0?!0:n,s=r.altAxis,l=s===void 0?!0:s,a=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,h=r.altBoundary,m=r.flipVariations,y=m===void 0?!0:m,v=r.allowedAutoPlacements,_=t.options.placement,x=iu(_),S=x===_,C=a||(S||!y?[gC(_)]:CCe(_)),E=[_].concat(C).reduce(function(Ne,de){return Ne.concat(iu(de)===WR?xCe(t,{placement:de,boundary:u,rootBoundary:p,padding:c,flipVariations:y,allowedAutoPlacements:v}):de)},[]),T=t.rects.reference,w=t.rects.popper,I=new Map,M=!0,L=E[0],R=0;R<E.length;R++){var W=E[R],z=iu(W),j=Dv(W)===$v,U=[Fs,na].indexOf(z)>=0,Z=U?"width":"height",Q=zw(t,{placement:W,boundary:u,rootBoundary:p,altBoundary:h,padding:c}),B=U?j?oa:zs:j?na:Fs;T[Z]>w[Z]&&(B=gC(B));var V=gC(B),H=[];if(o&&H.push(Q[z]<=0),l&&H.push(Q[B]<=0,Q[V]<=0),H.every(function(Ne){return Ne})){L=W,M=!1;break}I.set(W,H)}if(M)for(var ee=y?3:1,ce=function(Ne){var de=E.find(function(_e){var ae=I.get(_e);if(ae)return ae.slice(0,Ne).every(function(X){return X})});if(de)return L=de,"break"},re=ee;re>0;re--){var fe=ce(re);if(fe==="break")break}t.placement!==L&&(t.modifiersData[i]._skip=!0,t.placement=L,t.reset=!0)}}var SCe={name:"flip",enabled:!0,phase:"main",fn:kCe,requiresIfExists:["offset"],data:{_skip:!1}};function Kz(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Zz(e){return[Fs,oa,na,zs].some(function(t){return e[t]>=0})}function ECe(e){var t=e.state,r=e.name,i=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,s=zw(t,{elementContext:"reference"}),l=zw(t,{altBoundary:!0}),a=Kz(s,i),c=Kz(l,n,o),u=Zz(a),p=Zz(c);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}var TCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ECe};function ACe(e,t,r){var i=iu(e),n=[zs,Fs].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*n,[zs,oa].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function MCe(e){var t=e.state,r=e.options,i=e.name,n=r.offset,o=n===void 0?[0,0]:n,s=Sg.reduce(function(u,p){return u[p]=ACe(p,t.rects,o),u},{}),l=s[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}var ICe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MCe};function PCe(e){var t=e.state,r=e.name;t.modifiersData[r]=LY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var RY={name:"popperOffsets",enabled:!0,phase:"read",fn:PCe,data:{}};function $Ce(e){return e==="x"?"y":"x"}function OCe(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,o=n===void 0?!0:n,s=r.altAxis,l=s===void 0?!1:s,a=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,h=r.tether,m=h===void 0?!0:h,y=r.tetherOffset,v=y===void 0?0:y,_=zw(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:u}),x=iu(t.placement),S=Dv(t.placement),C=!S,E=qR(x),T=$Ce(E),w=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,L=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(w){if(o){var j,U=E==="y"?Fs:zs,Z=E==="y"?na:oa,Q=E==="y"?"height":"width",B=w[E],V=B+_[U],H=B-_[Z],ee=m?-M[Q]/2:0,ce=S===$v?I[Q]:M[Q],re=S===$v?-M[Q]:-I[Q],fe=t.elements.arrow,Ne=m&&fe?GR(fe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AY(),_e=de[U],ae=de[Z],X=V_(0,I[Q],Ne[Q]),he=C?I[Q]/2-ee-X-_e-R.mainAxis:ce-X-_e-R.mainAxis,$e=C?-I[Q]/2+ee+X+ae+R.mainAxis:re+X+ae+R.mainAxis,Je=t.elements.arrow&&G1(t.elements.arrow),ne=Je?E==="y"?Je.clientTop||0:Je.clientLeft||0:0,pe=(j=W==null?void 0:W[E])!=null?j:0,ge=B+he-pe-ne,Se=B+$e-pe,xe=V_(m?uS(V,ge):V,B,m?Vm(H,Se):H);w[E]=xe,z[E]=xe-B}if(l){var be,Qe=E==="x"?Fs:zs,Fe=E==="x"?na:oa,Me=w[T],Ie=T==="y"?"height":"width",Pe=Me+_[Qe],Xe=Me-_[Fe],dt=[Fs,zs].indexOf(x)!==-1,gt=(be=W==null?void 0:W[T])!=null?be:0,Dt=dt?Pe:Me-I[Ie]-M[Ie]-gt+R.altAxis,Jt=dt?Me+I[Ie]+M[Ie]-gt-R.altAxis:Xe,Bt=m&&dt?sCe(Dt,Me,Jt):V_(m?Dt:Pe,Me,m?Jt:Xe);w[T]=Bt,z[T]=Bt-Me}t.modifiersData[i]=z}}var LCe={name:"preventOverflow",enabled:!0,phase:"main",fn:OCe,requiresIfExists:["offset"]};function RCe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DCe(e){return e===yc(e)||!Ql(e)?YR(e):RCe(e)}function NCe(e){var t=e.getBoundingClientRect(),r=Lv(t.width)/e.offsetWidth||1,i=Lv(t.height)/e.offsetHeight||1;return r!==1||i!==1}function FCe(e,t,r){r===void 0&&(r=!1);var i=Ql(t),n=Ql(t)&&NCe(t),o=Bh(t),s=Rv(e,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(i||!i&&!r)&&((lu(t)!=="body"||ZR(o))&&(l=DCe(t)),Ql(t)?(a=Rv(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=KR(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function zCe(e){var t=new Map,r=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function n(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var a=t.get(l);a&&n(a)}}),i.push(o)}return e.forEach(function(o){r.has(o.name)||n(o)}),i}function jCe(e){var t=zCe(e);return tCe.reduce(function(r,i){return r.concat(t.filter(function(n){return n.phase===i}))},[])}function VCe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function BCe(e){var t=e.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Qz={placement:"bottom",modifiers:[],strategy:"absolute"};function Jz(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function QR(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,n=t.defaultOptions,o=n===void 0?Qz:n;return function(s,l,a){a===void 0&&(a=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qz,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},u=[],p=!1,h={state:c,setOptions:function(v){var _=typeof v=="function"?v(c.options):v;y(),c.options=Object.assign({},o,c.options,_),c.scrollParents={reference:Ov(s)?B_(s):s.contextElement?B_(s.contextElement):[],popper:B_(l)};var x=jCe(BCe([].concat(i,c.options.modifiers)));return c.orderedModifiers=x.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=c.elements,_=v.reference,x=v.popper;if(Jz(_,x)){c.rects={reference:FCe(_,G1(x),c.options.strategy==="fixed"),popper:GR(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],E=C.fn,T=C.options,w=T===void 0?{}:T,I=C.name;typeof E=="function"&&(c=E({state:c,options:w,name:I,instance:h})||c)}}}},update:VCe(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){y(),p=!0}};if(!Jz(s,l))return h;h.setOptions(a).then(function(v){!p&&a.onFirstUpdate&&a.onFirstUpdate(v)});function m(){c.orderedModifiers.forEach(function(v){var _=v.name,x=v.options,S=x===void 0?{}:x,C=v.effect;if(typeof C=="function"){var E=C({state:c,name:_,instance:h,options:S}),T=function(){};u.push(E||T)}})}function y(){u.forEach(function(v){return v()}),u=[]}return h}}QR();var UCe=[$Y,RY,PY,EY];QR({defaultModifiers:UCe});var WCe=[$Y,RY,PY,EY,ICe,SCe,LCe,uCe,TCe],DY=QR({defaultModifiers:WCe});const $A="focus-trap.focus-after-trapped",OA="focus-trap.focus-after-released",HCe="focus-trap.focusout-prevented",Xz={cancelable:!0,bubbles:!1},GCe={cancelable:!0,bubbles:!1},ej="focusAfterTrapped",tj="focusAfterReleased",JR=Symbol("elFocusTrap"),XR=F(),_3=F(0),e4=F(0);let t2=0;const NY=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const n=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||n?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},rj=(e,t)=>{for(const r of e)if(!qCe(r,t))return r},qCe=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},YCe=e=>{const t=NY(e),r=rj(t,e),i=rj(t.reverse(),e);return[r,i]},KCe=e=>e instanceof HTMLInputElement&&"select"in e,hp=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e4.value=window.performance.now(),e!==r&&KCe(e)&&t&&e.select()}};function ij(e,t){const r=[...e],i=e.indexOf(t);return i!==-1&&r.splice(i,1),r}const ZCe=()=>{let e=[];return{push:i=>{const n=e[0];n&&i!==n&&n.pause(),e=ij(e,i),e.unshift(i)},remove:i=>{var n,o;e=ij(e,i),(o=(n=e[0])==null?void 0:n.resume)==null||o.call(n)}}},QCe=(e,t=!1)=>{const r=document.activeElement;for(const i of e)if(hp(i,t),document.activeElement!==r)return},nj=ZCe(),JCe=()=>_3.value>e4.value,r2=()=>{XR.value="pointer",_3.value=window.performance.now()},oj=()=>{XR.value="keyboard",_3.value=window.performance.now()},XCe=()=>(er(()=>{t2===0&&(document.addEventListener("mousedown",r2),document.addEventListener("touchstart",r2),document.addEventListener("keydown",oj)),t2++}),Ii(()=>{t2--,t2<=0&&(document.removeEventListener("mousedown",r2),document.removeEventListener("touchstart",r2),document.removeEventListener("keydown",oj))}),{focusReason:XR,lastUserFocusTimestamp:_3,lastAutomatedFocusTimestamp:e4}),i2=e=>new CustomEvent(HCe,{...GCe,detail:e}),eke=ye({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ej,tj,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=F();let i,n;const{focusReason:o}=XCe();axe(y=>{e.trapped&&!s.paused&&t("release-requested",y)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=y=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:v,altKey:_,ctrlKey:x,metaKey:S,currentTarget:C,shiftKey:E}=y,{loop:T}=e,w=v===Rt.tab&&!_&&!x&&!S,I=document.activeElement;if(w&&I){const M=C,[L,R]=YCe(M);if(L&&R){if(!E&&I===R){const z=i2({focusReason:o.value});t("focusout-prevented",z),z.defaultPrevented||(y.preventDefault(),T&&hp(L,!0))}else if(E&&[L,M].includes(I)){const z=i2({focusReason:o.value});t("focusout-prevented",z),z.defaultPrevented||(y.preventDefault(),T&&hp(R,!0))}}else if(I===M){const z=i2({focusReason:o.value});t("focusout-prevented",z),z.defaultPrevented||y.preventDefault()}}};cr(JR,{focusTrapRef:r,onKeydown:l}),Ve(()=>e.focusTrapEl,y=>{y&&(r.value=y)},{immediate:!0}),Ve([r],([y],[v])=>{y&&(y.addEventListener("keydown",l),y.addEventListener("focusin",u),y.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",l),v.removeEventListener("focusin",u),v.removeEventListener("focusout",p))});const a=y=>{t(ej,y)},c=y=>t(tj,y),u=y=>{const v=g(r);if(!v)return;const _=y.target,x=y.relatedTarget,S=_&&v.contains(_);e.trapped||x&&v.contains(x)||(i=x),S&&t("focusin",y),!s.paused&&e.trapped&&(S?n=_:hp(n,!0))},p=y=>{const v=g(r);if(!(s.paused||!v))if(e.trapped){const _=y.relatedTarget;!fo(_)&&!v.contains(_)&&setTimeout(()=>{if(!s.paused&&e.trapped){const x=i2({focusReason:o.value});t("focusout-prevented",x),x.defaultPrevented||hp(n,!0)}},0)}else{const _=y.target;_&&v.contains(_)||t("focusout",y)}};async function h(){await Ct();const y=g(r);if(y){nj.push(s);const v=y.contains(document.activeElement)?i:document.activeElement;if(i=v,!y.contains(v)){const x=new Event($A,Xz);y.addEventListener($A,a),y.dispatchEvent(x),x.defaultPrevented||Ct(()=>{let S=e.focusStartEl;Kt(S)||(hp(S),document.activeElement!==S&&(S="first")),S==="first"&&QCe(NY(y),!0),(document.activeElement===v||S==="container")&&hp(y)})}}}function m(){const y=g(r);if(y){y.removeEventListener($A,a);const v=new CustomEvent(OA,{...Xz,detail:{focusReason:o.value}});y.addEventListener(OA,c),y.dispatchEvent(v),!v.defaultPrevented&&(o.value=="keyboard"||!JCe())&&hp(i!=null?i:document.body),y.removeEventListener(OA,a),nj.remove(s)}}return er(()=>{e.trapped&&h(),Ve(()=>e.trapped,y=>{y?h():m()})}),Ii(()=>{e.trapped&&m()}),{onKeydown:l}}});function tke(e,t,r,i,n,o){return Be(e.$slots,"default",{handleKeydown:e.onKeydown})}var w3=ot(eke,[["render",tke],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const rke=["fixed","absolute"],ike=ct({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Oe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Sg,default:"bottom"},popperOptions:{type:Oe(Object),default:()=>({})},strategy:{type:String,values:rke,default:"absolute"}}),FY=ct({...ike,id:String,style:{type:Oe([String,Array,Object])},className:{type:Oe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Oe([String,Array,Object])},popperStyle:{type:Oe([String,Array,Object])},referenceEl:{type:Oe(Object)},triggerTargetEl:{type:Oe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),nke={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},sj=(e,t)=>{const{placement:r,strategy:i,popperOptions:n}=e,o={placement:r,strategy:i,...n,modifiers:ske(e)};return lke(o,t),ake(o,n==null?void 0:n.modifiers),o},oke=e=>{if(!!Rr)return ml(e)};function ske(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:i}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:i}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function lke(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r!=null?r:5}})}function ake(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const cke=ye({name:"ElPopperContent"}),uke=ye({...cke,props:FY,emits:nke,setup(e,{expose:t,emit:r}){const i=e,{popperInstanceRef:n,contentRef:o,triggerRef:s,role:l}=_t(DR,void 0),a=_t(su,void 0),{nextZIndex:c}=$d(),u=He("popper"),p=F(),h=F("first"),m=F(),y=F();cr(eY,{arrowRef:m,arrowOffset:y}),a&&(a.addInputId||a.removeInputId)&&cr(su,{...a,addInputId:ti,removeInputId:ti});const v=F(i.zIndex||c()),_=F(!1);let x;const S=O(()=>oke(i.referenceEl)||g(s)),C=O(()=>[{zIndex:g(v)},i.popperStyle]),E=O(()=>[u.b(),u.is("pure",i.pure),u.is(i.effect),i.popperClass]),T=O(()=>l&&l.value==="dialog"?"false":void 0),w=({referenceEl:U,popperContentEl:Z,arrowEl:Q})=>{const B=sj(i,{arrowEl:Q,arrowOffset:g(y)});return DY(U,Z,B)},I=(U=!0)=>{var Z;(Z=g(n))==null||Z.update(),U&&(v.value=i.zIndex||c())},M=()=>{var U,Z;const Q={name:"eventListeners",enabled:i.visible};(Z=(U=g(n))==null?void 0:U.setOptions)==null||Z.call(U,B=>({...B,modifiers:[...B.modifiers||[],Q]})),I(!1),i.visible&&i.focusOnShow?_.value=!0:i.visible===!1&&(_.value=!1)},L=()=>{r("focus")},R=U=>{var Z;((Z=U.detail)==null?void 0:Z.focusReason)!=="pointer"&&(h.value="first",r("blur"))},W=U=>{i.visible&&!_.value&&(U.target&&(h.value=U.target),_.value=!0)},z=U=>{i.trapping||(U.detail.focusReason==="pointer"&&U.preventDefault(),_.value=!1)},j=()=>{_.value=!1,r("close")};return er(()=>{let U;Ve(S,Z=>{var Q;U==null||U();const B=g(n);if((Q=B==null?void 0:B.destroy)==null||Q.call(B),Z){const V=g(p);o.value=V,n.value=w({referenceEl:Z,popperContentEl:V,arrowEl:g(m)}),U=Ve(()=>Z.getBoundingClientRect(),()=>I(),{immediate:!0})}else n.value=void 0},{immediate:!0}),Ve(()=>i.triggerTargetEl,(Z,Q)=>{x==null||x(),x=void 0;const B=g(Z||p.value),V=g(Q||p.value);lc(B)&&(x=Ve([l,()=>i.ariaLabel,T,()=>i.id],H=>{["role","aria-label","aria-modal","id"].forEach((ee,ce)=>{fo(H[ce])?B.removeAttribute(ee):B.setAttribute(ee,H[ce])})},{immediate:!0})),V!==B&&lc(V)&&["role","aria-label","aria-modal","id"].forEach(H=>{V.removeAttribute(H)})},{immediate:!0}),Ve(()=>i.visible,M,{immediate:!0}),Ve(()=>sj(i,{arrowEl:g(m),arrowOffset:g(y)}),Z=>{var Q;return(Q=n.value)==null?void 0:Q.setOptions(Z)})}),Ii(()=>{x==null||x(),x=void 0}),t({popperContentRef:p,popperInstanceRef:n,updatePopper:I,contentStyle:C}),(U,Z)=>($(),K("div",{ref_key:"popperContentRef",ref:p,style:St(g(C)),class:N(g(E)),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=Q=>U.$emit("mouseenter",Q)),onMouseleave:Z[1]||(Z[1]=Q=>U.$emit("mouseleave",Q))},[Y(g(w3),{trapped:_.value,"trap-on-focus-in":!0,"focus-trap-el":p.value,"focus-start-el":h.value,onFocusAfterTrapped:L,onFocusAfterReleased:R,onFocusin:W,onFocusoutPrevented:z,onReleaseRequested:j},{default:me(()=>[Be(U.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var dke=ot(uke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const zY=lr(D2e),pke=He("tooltip"),ao=ct({...dxe,...FY,appendTo:{type:Oe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Oe(Boolean),default:null},transition:{type:String,default:`${pke.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),jw=ct({...kY,disabled:Boolean,trigger:{type:Oe([String,Array]),default:"hover"},triggerKeys:{type:Oe(Array),default:()=>[Rt.enter,Rt.space]}}),{useModelToggleProps:hke,useModelToggleEmits:fke,useModelToggle:mke}=nxe("visible"),gke=ct({..._Y,...hke,...ao,...jw,...wY,showArrow:{type:Boolean,default:!0}}),yke=[...fke,"before-show","before-hide","show","hide","open","close"],vke=(e,t)=>wt(e)?e.includes(t):e===t,Fg=(e,t,r)=>i=>{vke(g(e),t)&&r(i)},bke=ye({name:"ElTooltipTrigger"}),_ke=ye({...bke,props:jw,setup(e,{expose:t}){const r=e,i=He("tooltip"),{controlled:n,id:o,open:s,onOpen:l,onClose:a,onToggle:c}=_t(m3,void 0),u=F(null),p=()=>{if(g(n)||r.disabled)return!0},h=Ni(r,"trigger"),m=Ui(p,Fg(h,"hover",l)),y=Ui(p,Fg(h,"hover",a)),v=Ui(p,Fg(h,"click",E=>{E.button===0&&c(E)})),_=Ui(p,Fg(h,"focus",l)),x=Ui(p,Fg(h,"focus",a)),S=Ui(p,Fg(h,"contextmenu",E=>{E.preventDefault(),c(E)})),C=Ui(p,E=>{const{code:T}=E;r.triggerKeys.includes(T)&&(E.preventDefault(),c(E))});return t({triggerRef:u}),(E,T)=>($(),Te(g(U2e),{id:g(o),"virtual-ref":E.virtualRef,open:g(s),"virtual-triggering":E.virtualTriggering,class:N(g(i).e("trigger")),onBlur:g(x),onClick:g(v),onContextmenu:g(S),onFocus:g(_),onMouseenter:g(m),onMouseleave:g(y),onKeydown:g(C)},{default:me(()=>[Be(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var wke=ot(_ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const xke=ye({name:"ElTooltipContent",inheritAttrs:!1}),Cke=ye({...xke,props:ao,setup(e,{expose:t}){const r=e,{selector:i}=lY(),n=F(null),o=F(!1),{controlled:s,id:l,open:a,trigger:c,onClose:u,onOpen:p,onShow:h,onHide:m,onBeforeShow:y,onBeforeHide:v}=_t(m3,void 0),_=O(()=>r.persistent);Ii(()=>{o.value=!0});const x=O(()=>g(_)?!0:g(a)),S=O(()=>r.disabled?!1:g(a)),C=O(()=>r.appendTo||i.value),E=O(()=>{var Z;return(Z=r.style)!=null?Z:{}}),T=O(()=>!g(a)),w=()=>{m()},I=()=>{if(g(s))return!0},M=Ui(I,()=>{r.enterable&&g(c)==="hover"&&p()}),L=Ui(I,()=>{g(c)==="hover"&&u()}),R=()=>{var Z,Q;(Q=(Z=n.value)==null?void 0:Z.updatePopper)==null||Q.call(Z),y==null||y()},W=()=>{v==null||v()},z=()=>{h(),U=ER(O(()=>{var Z;return(Z=n.value)==null?void 0:Z.popperContentRef}),()=>{if(g(s))return;g(c)!=="hover"&&u()})},j=()=>{r.virtualTriggering||u()};let U;return Ve(()=>g(a),Z=>{Z||U==null||U()},{flush:"post"}),Ve(()=>r.content,()=>{var Z,Q;(Q=(Z=n.value)==null?void 0:Z.updatePopper)==null||Q.call(Z)}),t({contentRef:n}),(Z,Q)=>($(),Te(d0,{disabled:!Z.teleported,to:g(C)},[Y(Xi,{name:Z.transition,onAfterLeave:w,onBeforeEnter:R,onAfterEnter:z,onBeforeLeave:W},{default:me(()=>[g(x)?kt(($(),Te(g(dke),sr({key:0,id:g(l),ref_key:"contentRef",ref:n},Z.$attrs,{"aria-label":Z.ariaLabel,"aria-hidden":g(T),"boundaries-padding":Z.boundariesPadding,"fallback-placements":Z.fallbackPlacements,"gpu-acceleration":Z.gpuAcceleration,offset:Z.offset,placement:Z.placement,"popper-options":Z.popperOptions,strategy:Z.strategy,effect:Z.effect,enterable:Z.enterable,pure:Z.pure,"popper-class":Z.popperClass,"popper-style":[Z.popperStyle,g(E)],"reference-el":Z.referenceEl,"trigger-target-el":Z.triggerTargetEl,visible:g(S),"z-index":Z.zIndex,onMouseenter:g(M),onMouseleave:g(L),onBlur:j,onClose:g(u)}),{default:me(()=>[o.value?ke("v-if",!0):Be(Z.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Vt,g(S)]]):ke("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var kke=ot(Cke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Ske=["innerHTML"],Eke={key:1},Tke=ye({name:"ElTooltip"}),Ake=ye({...Tke,props:gke,emits:yke,setup(e,{expose:t,emit:r}){const i=e;uxe();const n=ac(),o=F(),s=F(),l=()=>{var x;const S=g(o);S&&((x=S.popperInstanceRef)==null||x.update())},a=F(!1),c=F(),{show:u,hide:p,hasUpdateHandler:h}=mke({indicator:a,toggleReason:c}),{onOpen:m,onClose:y}=pxe({showAfter:Ni(i,"showAfter"),hideAfter:Ni(i,"hideAfter"),open:u,close:p}),v=O(()=>Ln(i.visible)&&!h.value);cr(m3,{controlled:v,id:n,open:D1(a),trigger:Ni(i,"trigger"),onOpen:x=>{m(x)},onClose:x=>{y(x)},onToggle:x=>{g(a)?y(x):m(x)},onShow:()=>{r("show",c.value)},onHide:()=>{r("hide",c.value)},onBeforeShow:()=>{r("before-show",c.value)},onBeforeHide:()=>{r("before-hide",c.value)},updatePopper:l}),Ve(()=>i.disabled,x=>{x&&a.value&&(a.value=!1)});const _=()=>{var x,S;const C=(S=(x=s.value)==null?void 0:x.contentRef)==null?void 0:S.popperContentRef;return C&&C.contains(document.activeElement)};return N1(()=>a.value&&p()),t({popperRef:o,contentRef:s,isFocusInsideContent:_,updatePopper:l,onOpen:m,onClose:y,hide:p}),(x,S)=>($(),Te(g(zY),{ref_key:"popperRef",ref:o,role:x.role},{default:me(()=>[Y(wke,{disabled:x.disabled,trigger:x.trigger,"trigger-keys":x.triggerKeys,"virtual-ref":x.virtualRef,"virtual-triggering":x.virtualTriggering},{default:me(()=>[x.$slots.default?Be(x.$slots,"default",{key:0}):ke("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Y(kke,{ref_key:"contentRef",ref:s,"aria-label":x.ariaLabel,"boundaries-padding":x.boundariesPadding,content:x.content,disabled:x.disabled,effect:x.effect,enterable:x.enterable,"fallback-placements":x.fallbackPlacements,"hide-after":x.hideAfter,"gpu-acceleration":x.gpuAcceleration,offset:x.offset,persistent:x.persistent,"popper-class":x.popperClass,"popper-style":x.popperStyle,placement:x.placement,"popper-options":x.popperOptions,pure:x.pure,"raw-content":x.rawContent,"reference-el":x.referenceEl,"trigger-target-el":x.triggerTargetEl,"show-after":x.showAfter,strategy:x.strategy,teleported:x.teleported,transition:x.transition,"virtual-triggering":x.virtualTriggering,"z-index":x.zIndex,"append-to":x.appendTo},{default:me(()=>[Be(x.$slots,"content",{},()=>[x.rawContent?($(),K("span",{key:0,innerHTML:x.content},null,8,Ske)):($(),K("span",Eke,rt(x.content),1))]),x.showArrow?($(),Te(g(z2e),{key:0,"arrow-offset":x.arrowOffset},null,8,["arrow-offset"])):ke("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Mke=ot(Ake,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const qs=lr(Mke),Ike=ct({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Oe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Oe([Function,Array]),default:ti},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:ao.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1}}),Pke={[ar]:e=>Kt(e),[ss]:e=>Kt(e),[_i]:e=>Kt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>yr(e)},$ke=["aria-expanded","aria-owns"],Oke={key:0},Lke=["id","aria-selected","onClick"],jY="ElAutocomplete",Rke=ye({name:jY,inheritAttrs:!1}),Dke=ye({...Rke,props:Ike,emits:Pke,setup(e,{expose:t,emit:r}){const i=e,n=RR(),o=F1(),s=Gs(),l=He("autocomplete"),a=F(),c=F(),u=F(),p=F();let h=!1,m=!1;const y=F([]),v=F(-1),_=F(""),x=F(!1),S=F(!1),C=F(!1),E=O(()=>l.b(String(h3()))),T=O(()=>o.style),w=O(()=>(y.value.length>0||C.value)&&x.value),I=O(()=>!i.hideLoading&&C.value),M=O(()=>a.value?Array.from(a.value.$el.querySelectorAll("input")):[]),L=async()=>{await Ct(),w.value&&(_.value=`${a.value.$el.offsetWidth}px`)},R=()=>{m=!0},W=()=>{m=!1,v.value=-1},j=as(async ae=>{if(S.value)return;const X=he=>{C.value=!1,!S.value&&(wt(he)?(y.value=he,v.value=i.highlightFirstItem?0:-1):zn(jY,"autocomplete suggestions must be an array"))};if(C.value=!0,wt(i.fetchSuggestions))X(i.fetchSuggestions);else{const he=await i.fetchSuggestions(ae,X);wt(he)&&X(he)}},i.debounce),U=ae=>{const X=!!ae;if(r(ss,ae),r(ar,ae),S.value=!1,x.value||(x.value=X),!i.triggerOnFocus&&!ae){S.value=!0,y.value=[];return}j(ae)},Z=ae=>{var X;s.value||(((X=ae.target)==null?void 0:X.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(x.value=!0)},Q=ae=>{r(_i,ae)},B=ae=>{m||(x.value=!0,r("focus",ae),i.triggerOnFocus&&!h&&j(String(i.modelValue)))},V=ae=>{m||r("blur",ae)},H=()=>{x.value=!1,r(ar,""),r("clear")},ee=async()=>{w.value&&v.value>=0&&v.value<y.value.length?de(y.value[v.value]):i.selectWhenUnmatched&&(r("select",{value:i.modelValue}),y.value=[],v.value=-1)},ce=ae=>{w.value&&(ae.preventDefault(),ae.stopPropagation(),re())},re=()=>{x.value=!1},fe=()=>{var ae;(ae=a.value)==null||ae.focus()},Ne=()=>{var ae;(ae=a.value)==null||ae.blur()},de=async ae=>{r(ss,ae[i.valueKey]),r(ar,ae[i.valueKey]),r("select",ae),y.value=[],v.value=-1},_e=ae=>{if(!w.value||C.value)return;if(ae<0){v.value=-1;return}ae>=y.value.length&&(ae=y.value.length-1);const X=c.value.querySelector(`.${l.be("suggestion","wrap")}`),$e=X.querySelectorAll(`.${l.be("suggestion","list")} li`)[ae],Je=X.scrollTop,{offsetTop:ne,scrollHeight:pe}=$e;ne+pe>Je+X.clientHeight&&(X.scrollTop+=pe),ne<Je&&(X.scrollTop-=pe),v.value=ae,a.value.ref.setAttribute("aria-activedescendant",`${E.value}-item-${v.value}`)};return ER(p,()=>{w.value&&re()}),er(()=>{a.value.ref.setAttribute("role","textbox"),a.value.ref.setAttribute("aria-autocomplete","list"),a.value.ref.setAttribute("aria-controls","id"),a.value.ref.setAttribute("aria-activedescendant",`${E.value}-item-${v.value}`),h=a.value.ref.hasAttribute("readonly")}),t({highlightedIndex:v,activated:x,loading:C,inputRef:a,popperRef:u,suggestions:y,handleSelect:de,handleKeyEnter:ee,focus:fe,blur:Ne,close:re,highlight:_e}),(ae,X)=>($(),Te(g(qs),{ref_key:"popperRef",ref:u,visible:g(w),placement:ae.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[g(l).e("popper"),ae.popperClass],teleported:ae.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${g(l).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:L,onShow:R,onHide:W},{content:me(()=>[G("div",{ref_key:"regionRef",ref:c,class:N([g(l).b("suggestion"),g(l).is("loading",g(I))]),style:St({[ae.fitInputWidth?"width":"minWidth"]:_.value,outline:"none"}),role:"region"},[Y(g(Ld),{id:g(E),tag:"ul","wrap-class":g(l).be("suggestion","wrap"),"view-class":g(l).be("suggestion","list"),role:"listbox"},{default:me(()=>[g(I)?($(),K("li",Oke,[Y(g(At),{class:N(g(l).is("loading"))},{default:me(()=>[Y(g(zh))]),_:1},8,["class"])])):($(!0),K(bt,{key:1},or(y.value,(he,$e)=>($(),K("li",{id:`${g(E)}-item-${$e}`,key:$e,class:N({highlighted:v.value===$e}),role:"option","aria-selected":v.value===$e,onClick:Je=>de(he)},[Be(ae.$slots,"default",{item:he},()=>[Ir(rt(he[ae.valueKey]),1)])],10,Lke))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:me(()=>[G("div",{ref_key:"listboxRef",ref:p,class:N([g(l).b(),ae.$attrs.class]),style:St(g(T)),role:"combobox","aria-haspopup":"listbox","aria-expanded":g(w),"aria-owns":g(E)},[Y(g(Qi),sr({ref_key:"inputRef",ref:a},g(n),{"model-value":ae.modelValue,onInput:U,onChange:Q,onFocus:B,onBlur:V,onClear:H,onKeydown:[X[0]||(X[0]=Lr(Yt(he=>_e(v.value-1),["prevent"]),["up"])),X[1]||(X[1]=Lr(Yt(he=>_e(v.value+1),["prevent"]),["down"])),Lr(ee,["enter"]),Lr(re,["tab"]),Lr(ce,["esc"])],onMousedown:Z}),fd({_:2},[ae.$slots.prepend?{name:"prepend",fn:me(()=>[Be(ae.$slots,"prepend")])}:void 0,ae.$slots.append?{name:"append",fn:me(()=>[Be(ae.$slots,"append")])}:void 0,ae.$slots.prefix?{name:"prefix",fn:me(()=>[Be(ae.$slots,"prefix")])}:void 0,ae.$slots.suffix?{name:"suffix",fn:me(()=>[Be(ae.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,$ke)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Nke=ot(Dke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const Fke=lr(Nke),zke=ct({size:{type:[Number,String],values:Id,default:"",validator:e=>Gt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:yi},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Oe(String),default:"cover"}}),jke={error:e=>e instanceof Event},Vke=["src","alt","srcset"],Bke=ye({name:"ElAvatar"}),Uke=ye({...Bke,props:zke,emits:jke,setup(e,{emit:t}){const r=e,i=He("avatar"),n=F(!1),o=O(()=>{const{size:c,icon:u,shape:p}=r,h=[i.b()];return Kt(c)&&h.push(i.m(c)),u&&h.push(i.m("icon")),p&&h.push(i.m(p)),h}),s=O(()=>{const{size:c}=r;return Gt(c)?i.cssVarBlock({size:Tn(c)||""}):void 0}),l=O(()=>({objectFit:r.fit}));Ve(()=>r.src,()=>n.value=!1);function a(c){n.value=!0,t("error",c)}return(c,u)=>($(),K("span",{class:N(g(o)),style:St(g(s))},[(c.src||c.srcSet)&&!n.value?($(),K("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:St(g(l)),onError:a},null,44,Vke)):c.icon?($(),Te(g(At),{key:1},{default:me(()=>[($(),Te(br(c.icon)))]),_:1})):Be(c.$slots,"default",{key:2})],6))}});var Wke=ot(Uke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const Hke=lr(Wke),Gke={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},qke={click:e=>e instanceof MouseEvent},Yke=(e,t,r)=>{const i=gi(),n=gi(),o=F(!1),s=()=>{if(!i.value)return;const u=Date.now(),p=i.value.scrollTop,h=()=>{if(!i.value)return;const m=(Date.now()-u)/500;m<1?(i.value.scrollTop=p*(1-H1e(m)),requestAnimationFrame(h)):i.value.scrollTop=0};requestAnimationFrame(h)},l=()=>{i.value&&(o.value=i.value.scrollTop>=e.visibilityHeight)},a=u=>{s(),t("click",u)},c=Tq(l,300,!0);return Si(n,"scroll",c),er(()=>{var u;n.value=document,i.value=document.documentElement,e.target&&(i.value=(u=document.querySelector(e.target))!=null?u:void 0,i.value||zn(r,`target does not exist: ${e.target}`),n.value=i.value)}),{visible:o,handleClick:a}},VY="ElBacktop",Kke=ye({name:VY}),Zke=ye({...Kke,props:Gke,emits:qke,setup(e,{emit:t}){const r=e,i=He("backtop"),{handleClick:n,visible:o}=Yke(r,t,VY),s=O(()=>({right:`${r.right}px`,bottom:`${r.bottom}px`}));return(l,a)=>($(),Te(Xi,{name:`${g(i).namespace.value}-fade-in`},{default:me(()=>[g(o)?($(),K("div",{key:0,style:St(g(s)),class:N(g(i).b()),onClick:a[0]||(a[0]=Yt((...c)=>g(n)&&g(n)(...c),["stop"]))},[Be(l.$slots,"default",{},()=>[Y(g(At),{class:N(g(i).e("icon"))},{default:me(()=>[Y(g(X0e))]),_:1},8,["class"])])],6)):ke("v-if",!0)]),_:3},8,["name"]))}});var Qke=ot(Zke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Jke=lr(Qke),Xke=ct({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),eSe=["textContent"],tSe=ye({name:"ElBadge"}),rSe=ye({...tSe,props:Xke,setup(e,{expose:t}){const r=e,i=He("badge"),n=O(()=>r.isDot?"":Gt(r.value)&&Gt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:n}),(o,s)=>($(),K("div",{class:N(g(i).b())},[Be(o.$slots,"default"),Y(Xi,{name:`${g(i).namespace.value}-zoom-in-center`,persisted:""},{default:me(()=>[kt(G("sup",{class:N([g(i).e("content"),g(i).em("content",o.type),g(i).is("fixed",!!o.$slots.default),g(i).is("dot",o.isDot)]),textContent:rt(g(n))},null,10,eSe),[[Vt,!o.hidden&&(g(n)||o.isDot)]])]),_:1},8,["name"])],2))}});var iSe=ot(rSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const BY=lr(iSe),nSe=ct({separator:{type:String,default:"/"},separatorIcon:{type:yi}}),oSe=ye({name:"ElBreadcrumb"}),sSe=ye({...oSe,props:nSe,setup(e){const t=e,r=He("breadcrumb"),i=F();return cr(Bq,t),er(()=>{const n=i.value.querySelectorAll(`.${r.e("item")}`);n.length&&n[n.length-1].setAttribute("aria-current","page")}),(n,o)=>($(),K("div",{ref_key:"breadcrumb",ref:i,class:N(g(r).b()),"aria-label":"Breadcrumb",role:"navigation"},[Be(n.$slots,"default")],2))}});var lSe=ot(sSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const aSe=ct({to:{type:Oe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),cSe=ye({name:"ElBreadcrumbItem"}),uSe=ye({...cSe,props:aSe,setup(e){const t=e,r=Xt(),i=_t(Bq,void 0),n=He("breadcrumb"),{separator:o,separatorIcon:s}=Fn(i),l=r.appContext.config.globalProperties.$router,a=F(),c=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(u,p)=>($(),K("span",{class:N(g(n).e("item"))},[G("span",{ref_key:"link",ref:a,class:N([g(n).e("inner"),g(n).is("link",!!u.to)]),role:"link",onClick:c},[Be(u.$slots,"default")],2),g(s)?($(),Te(g(At),{key:0,class:N(g(n).e("separator"))},{default:me(()=>[($(),Te(br(g(s))))]),_:1},8,["class"])):($(),K("span",{key:1,class:N(g(n).e("separator")),role:"presentation"},rt(g(o)),3))],2))}});var UY=ot(uSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const dSe=lr(lSe,{BreadcrumbItem:UY}),pSe=Hi(UY),hSe=(e,t)=>{yd({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},O(()=>e.type==="text"));const r=_t(Uq,void 0),i=Pd("button"),{form:n}=ps(),o=An(O(()=>r==null?void 0:r.size)),s=Gs(),l=F(),a=go(),c=O(()=>e.type||(r==null?void 0:r.type)||""),u=O(()=>{var m,y,v;return(v=(y=e.autoInsertSpace)!=null?y:(m=i.value)==null?void 0:m.autoInsertSpace)!=null?v:!1}),p=O(()=>{var m;const y=(m=a.default)==null?void 0:m.call(a);if(u.value&&(y==null?void 0:y.length)===1){const v=y[0];if((v==null?void 0:v.type)===p0){const _=v.children;return/^\p{Unified_Ideograph}{2}$/u.test(_.trim())}}return!1});return{_disabled:s,_size:o,_type:c,_ref:l,shouldAddSpace:p,handleClick:m=>{e.nativeType==="reset"&&(n==null||n.resetFields()),t("click",m)}}},hP=["default","primary","success","warning","info","danger","text",""],fSe=["button","submit","reset"],fP=ct({size:Vs,disabled:Boolean,type:{type:String,values:hP,default:""},icon:{type:yi},nativeType:{type:String,values:fSe,default:"button"},loading:Boolean,loadingIcon:{type:yi,default:()=>zh},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),mSe={click:e=>e instanceof MouseEvent};function ko(e,t){gSe(e)&&(e="100%");var r=ySe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function n2(e){return Math.min(1,Math.max(0,e))}function gSe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ySe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function WY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function o2(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ym(e){return e.length===1?"0"+e:String(e)}function vSe(e,t,r){return{r:ko(e,255)*255,g:ko(t,255)*255,b:ko(r,255)*255}}function lj(e,t,r){e=ko(e,255),t=ko(t,255),r=ko(r,255);var i=Math.max(e,t,r),n=Math.min(e,t,r),o=0,s=0,l=(i+n)/2;if(i===n)s=0,o=0;else{var a=i-n;switch(s=l>.5?a/(2-i-n):a/(i+n),i){case e:o=(t-r)/a+(t<r?6:0);break;case t:o=(r-e)/a+2;break;case r:o=(e-t)/a+4;break}o/=6}return{h:o,s,l}}function LA(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bSe(e,t,r){var i,n,o;if(e=ko(e,360),t=ko(t,100),r=ko(r,100),t===0)n=r,o=r,i=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;i=LA(l,s,e+1/3),n=LA(l,s,e),o=LA(l,s,e-1/3)}return{r:i*255,g:n*255,b:o*255}}function aj(e,t,r){e=ko(e,255),t=ko(t,255),r=ko(r,255);var i=Math.max(e,t,r),n=Math.min(e,t,r),o=0,s=i,l=i-n,a=i===0?0:l/i;if(i===n)o=0;else{switch(i){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,v:s}}function _Se(e,t,r){e=ko(e,360)*6,t=ko(t,100),r=ko(r,100);var i=Math.floor(e),n=e-i,o=r*(1-t),s=r*(1-n*t),l=r*(1-(1-n)*t),a=i%6,c=[r,s,o,o,l,r][a],u=[l,r,r,s,o,o][a],p=[o,o,l,r,r,s][a];return{r:c*255,g:u*255,b:p*255}}function cj(e,t,r,i){var n=[ym(Math.round(e).toString(16)),ym(Math.round(t).toString(16)),ym(Math.round(r).toString(16))];return i&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function wSe(e,t,r,i,n){var o=[ym(Math.round(e).toString(16)),ym(Math.round(t).toString(16)),ym(Math.round(r).toString(16)),ym(xSe(i))];return n&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function xSe(e){return Math.round(parseFloat(e)*255).toString(16)}function uj(e){return tl(e)/255}function tl(e){return parseInt(e,16)}function CSe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var mP={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function kSe(e){var t={r:0,g:0,b:0},r=1,i=null,n=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=TSe(e)),typeof e=="object"&&(bu(e.r)&&bu(e.g)&&bu(e.b)?(t=vSe(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):bu(e.h)&&bu(e.s)&&bu(e.v)?(i=o2(e.s),n=o2(e.v),t=_Se(e.h,i,n),s=!0,l="hsv"):bu(e.h)&&bu(e.s)&&bu(e.l)&&(i=o2(e.s),o=o2(e.l),t=bSe(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=WY(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var SSe="[-\\+]?\\d+%?",ESe="[-\\+]?\\d*\\.\\d+%?",th="(?:".concat(ESe,")|(?:").concat(SSe,")"),RA="[\\s|\\(]+(".concat(th,")[,|\\s]+(").concat(th,")[,|\\s]+(").concat(th,")\\s*\\)?"),DA="[\\s|\\(]+(".concat(th,")[,|\\s]+(").concat(th,")[,|\\s]+(").concat(th,")[,|\\s]+(").concat(th,")\\s*\\)?"),Ca={CSS_UNIT:new RegExp(th),rgb:new RegExp("rgb"+RA),rgba:new RegExp("rgba"+DA),hsl:new RegExp("hsl"+RA),hsla:new RegExp("hsla"+DA),hsv:new RegExp("hsv"+RA),hsva:new RegExp("hsva"+DA),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function TSe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mP[e])e=mP[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Ca.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Ca.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ca.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Ca.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ca.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Ca.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ca.hex8.exec(e),r?{r:tl(r[1]),g:tl(r[2]),b:tl(r[3]),a:uj(r[4]),format:t?"name":"hex8"}:(r=Ca.hex6.exec(e),r?{r:tl(r[1]),g:tl(r[2]),b:tl(r[3]),format:t?"name":"hex"}:(r=Ca.hex4.exec(e),r?{r:tl(r[1]+r[1]),g:tl(r[2]+r[2]),b:tl(r[3]+r[3]),a:uj(r[4]+r[4]),format:t?"name":"hex8"}:(r=Ca.hex3.exec(e),r?{r:tl(r[1]+r[1]),g:tl(r[2]+r[2]),b:tl(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function bu(e){return Boolean(Ca.CSS_UNIT.exec(String(e)))}var HY=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=CSe(t)),this.originalInput=t;var n=kSe(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:n.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,i,n,o=t.r/255,s=t.g/255,l=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*i+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=WY(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=aj(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=aj(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(n,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=lj(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=lj(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(n,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(n,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),cj(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),wSe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(i,")"):"rgba(".concat(t,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ko(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(ko(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+cj(this.r,this.g,this.b,!1),r=0,i=Object.entries(mP);r<i.length;r++){var n=i[r],o=n[0],s=n[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t!=null?t:this.format;var i=!1,n=this.a<1&&this.a>=0,o=!r&&n&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=n2(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=n2(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=n2(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=n2(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var i=this.toRgb(),n=new e(t).toRgb(),o=r/100,s={r:(n.r-i.r)*o+i.r,g:(n.g-i.g)*o+i.g,b:(n.b-i.b)*o+i.b,a:(n.a-i.a)*o+i.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var i=this.toHsl(),n=360/r,o=[this];for(i.h=(i.h-(n*t>>1)+720)%360;--t;)i.h=(i.h+n)%360,o.push(new e(i));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),i=r.h,n=r.s,o=r.v,s=[],l=1/t;t--;)s.push(new e({h:i,s:n,v:o})),o=(o+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(r.r-i.r)*r.a,g:i.g+(r.g-i.g)*r.a,b:i.b+(r.b-i.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,n=[this],o=360/t,s=1;s<t;s++)n.push(new e({h:(i+s*o)%360,s:r.s,l:r.l}));return n},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Yd(e,t=20){return e.mix("#141414",t).toString()}function ASe(e){const t=Gs(),r=He("button");return O(()=>{let i={};const n=e.color;if(n){const o=new HY(n),s=e.dark?o.tint(20).toString():Yd(o,20);if(e.plain)i=r.cssVarBlock({"bg-color":e.dark?Yd(o,90):o.tint(90).toString(),"text-color":n,"border-color":e.dark?Yd(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":n,"hover-border-color":n,"active-bg-color":s,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(i[r.cssVarBlockName("disabled-bg-color")]=e.dark?Yd(o,90):o.tint(90).toString(),i[r.cssVarBlockName("disabled-text-color")]=e.dark?Yd(o,50):o.tint(50).toString(),i[r.cssVarBlockName("disabled-border-color")]=e.dark?Yd(o,80):o.tint(80).toString());else{const l=e.dark?Yd(o,30):o.tint(30).toString(),a=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(i=r.cssVarBlock({"bg-color":n,"text-color":a,"border-color":n,"hover-bg-color":l,"hover-text-color":a,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?Yd(o,50):o.tint(50).toString();i[r.cssVarBlockName("disabled-bg-color")]=c,i[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,i[r.cssVarBlockName("disabled-border-color")]=c}}}return i})}const MSe=["aria-disabled","disabled","autofocus","type"],ISe=ye({name:"ElButton"}),PSe=ye({...ISe,props:fP,emits:mSe,setup(e,{expose:t,emit:r}){const i=e,n=ASe(i),o=He("button"),{_ref:s,_size:l,_type:a,_disabled:c,shouldAddSpace:u,handleClick:p}=hSe(i,r);return t({ref:s,size:l,type:a,disabled:c,shouldAddSpace:u}),(h,m)=>($(),K("button",{ref_key:"_ref",ref:s,class:N([g(o).b(),g(o).m(g(a)),g(o).m(g(l)),g(o).is("disabled",g(c)),g(o).is("loading",h.loading),g(o).is("plain",h.plain),g(o).is("round",h.round),g(o).is("circle",h.circle),g(o).is("text",h.text),g(o).is("link",h.link),g(o).is("has-bg",h.bg)]),"aria-disabled":g(c)||h.loading,disabled:g(c)||h.loading,autofocus:h.autofocus,type:h.nativeType,style:St(g(n)),onClick:m[0]||(m[0]=(...y)=>g(p)&&g(p)(...y))},[h.loading?($(),K(bt,{key:0},[h.$slots.loading?Be(h.$slots,"loading",{key:0}):($(),Te(g(At),{key:1,class:N(g(o).is("loading"))},{default:me(()=>[($(),Te(br(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?($(),Te(g(At),{key:1},{default:me(()=>[h.icon?($(),Te(br(h.icon),{key:0})):Be(h.$slots,"icon",{key:1})]),_:3})):ke("v-if",!0),h.$slots.default?($(),K("span",{key:2,class:N({[g(o).em("text","expand")]:g(u)})},[Be(h.$slots,"default")],2)):ke("v-if",!0)],14,MSe))}});var $Se=ot(PSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const OSe={size:fP.size,type:fP.type},LSe=ye({name:"ElButtonGroup"}),RSe=ye({...LSe,props:OSe,setup(e){const t=e;cr(Uq,kr({size:Ni(t,"size"),type:Ni(t,"type")}));const r=He("button");return(i,n)=>($(),K("div",{class:N(`${g(r).b("group")}`)},[Be(i.$slots,"default")],2))}});var GY=ot(RSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Rn=lr($Se,{ButtonGroup:GY}),t4=Hi(GY);var da=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function DSe(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}var qY={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",l="minute",a="hour",c="day",u="week",p="month",h="quarter",m="year",y="date",v="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var U=["th","st","nd","rd"],Z=j%100;return"["+j+(U[(Z-20)%10]||U[Z]||U[0])+"]"}},C=function(j,U,Z){var Q=String(j);return!Q||Q.length>=U?j:""+Array(U+1-Q.length).join(Z)+j},E={s:C,z:function(j){var U=-j.utcOffset(),Z=Math.abs(U),Q=Math.floor(Z/60),B=Z%60;return(U<=0?"+":"-")+C(Q,2,"0")+":"+C(B,2,"0")},m:function j(U,Z){if(U.date()<Z.date())return-j(Z,U);var Q=12*(Z.year()-U.year())+(Z.month()-U.month()),B=U.clone().add(Q,p),V=Z-B<0,H=U.clone().add(Q+(V?-1:1),p);return+(-(Q+(Z-B)/(V?B-H:H-B))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:p,y:m,w:u,d:c,D:y,h:a,m:l,s,ms:o,Q:h}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},T="en",w={};w[T]=S;var I=function(j){return j instanceof W},M=function j(U,Z,Q){var B;if(!U)return T;if(typeof U=="string"){var V=U.toLowerCase();w[V]&&(B=V),Z&&(w[V]=Z,B=V);var H=U.split("-");if(!B&&H.length>1)return j(H[0])}else{var ee=U.name;w[ee]=U,B=ee}return!Q&&B&&(T=B),B||!Q&&T},L=function(j,U){if(I(j))return j.clone();var Z=typeof U=="object"?U:{};return Z.date=j,Z.args=arguments,new W(Z)},R=E;R.l=M,R.i=I,R.w=function(j,U){return L(j,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var W=function(){function j(Z){this.$L=M(Z.locale,null,!0),this.parse(Z)}var U=j.prototype;return U.parse=function(Z){this.$d=function(Q){var B=Q.date,V=Q.utc;if(B===null)return new Date(NaN);if(R.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var H=B.match(_);if(H){var ee=H[2]-1||0,ce=(H[7]||"0").substring(0,3);return V?new Date(Date.UTC(H[1],ee,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ce)):new Date(H[1],ee,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ce)}}return new Date(B)}(Z),this.$x=Z.x||{},this.init()},U.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},U.$utils=function(){return R},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(Z,Q){var B=L(Z);return this.startOf(Q)<=B&&B<=this.endOf(Q)},U.isAfter=function(Z,Q){return L(Z)<this.startOf(Q)},U.isBefore=function(Z,Q){return this.endOf(Q)<L(Z)},U.$g=function(Z,Q,B){return R.u(Z)?this[Q]:this.set(B,Z)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(Z,Q){var B=this,V=!!R.u(Q)||Q,H=R.p(Z),ee=function(X,he){var $e=R.w(B.$u?Date.UTC(B.$y,he,X):new Date(B.$y,he,X),B);return V?$e:$e.endOf(c)},ce=function(X,he){return R.w(B.toDate()[X].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(he)),B)},re=this.$W,fe=this.$M,Ne=this.$D,de="set"+(this.$u?"UTC":"");switch(H){case m:return V?ee(1,0):ee(31,11);case p:return V?ee(1,fe):ee(0,fe+1);case u:var _e=this.$locale().weekStart||0,ae=(re<_e?re+7:re)-_e;return ee(V?Ne-ae:Ne+(6-ae),fe);case c:case y:return ce(de+"Hours",0);case a:return ce(de+"Minutes",1);case l:return ce(de+"Seconds",2);case s:return ce(de+"Milliseconds",3);default:return this.clone()}},U.endOf=function(Z){return this.startOf(Z,!1)},U.$set=function(Z,Q){var B,V=R.p(Z),H="set"+(this.$u?"UTC":""),ee=(B={},B[c]=H+"Date",B[y]=H+"Date",B[p]=H+"Month",B[m]=H+"FullYear",B[a]=H+"Hours",B[l]=H+"Minutes",B[s]=H+"Seconds",B[o]=H+"Milliseconds",B)[V],ce=V===c?this.$D+(Q-this.$W):Q;if(V===p||V===m){var re=this.clone().set(y,1);re.$d[ee](ce),re.init(),this.$d=re.set(y,Math.min(this.$D,re.daysInMonth())).$d}else ee&&this.$d[ee](ce);return this.init(),this},U.set=function(Z,Q){return this.clone().$set(Z,Q)},U.get=function(Z){return this[R.p(Z)]()},U.add=function(Z,Q){var B,V=this;Z=Number(Z);var H=R.p(Q),ee=function(fe){var Ne=L(V);return R.w(Ne.date(Ne.date()+Math.round(fe*Z)),V)};if(H===p)return this.set(p,this.$M+Z);if(H===m)return this.set(m,this.$y+Z);if(H===c)return ee(1);if(H===u)return ee(7);var ce=(B={},B[l]=i,B[a]=n,B[s]=r,B)[H]||1,re=this.$d.getTime()+Z*ce;return R.w(re,this)},U.subtract=function(Z,Q){return this.add(-1*Z,Q)},U.format=function(Z){var Q=this,B=this.$locale();if(!this.isValid())return B.invalidDate||v;var V=Z||"YYYY-MM-DDTHH:mm:ssZ",H=R.z(this),ee=this.$H,ce=this.$m,re=this.$M,fe=B.weekdays,Ne=B.months,de=function(he,$e,Je,ne){return he&&(he[$e]||he(Q,V))||Je[$e].slice(0,ne)},_e=function(he){return R.s(ee%12||12,he,"0")},ae=B.meridiem||function(he,$e,Je){var ne=he<12?"AM":"PM";return Je?ne.toLowerCase():ne},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:re+1,MM:R.s(re+1,2,"0"),MMM:de(B.monthsShort,re,Ne,3),MMMM:de(Ne,re),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:de(B.weekdaysMin,this.$W,fe,2),ddd:de(B.weekdaysShort,this.$W,fe,3),dddd:fe[this.$W],H:String(ee),HH:R.s(ee,2,"0"),h:_e(1),hh:_e(2),a:ae(ee,ce,!0),A:ae(ee,ce,!1),m:String(ce),mm:R.s(ce,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:H};return V.replace(x,function(he,$e){return $e||X[he]||H.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(Z,Q,B){var V,H=R.p(Q),ee=L(Z),ce=(ee.utcOffset()-this.utcOffset())*i,re=this-ee,fe=R.m(this,ee);return fe=(V={},V[m]=fe/12,V[p]=fe,V[h]=fe/3,V[u]=(re-ce)/6048e5,V[c]=(re-ce)/864e5,V[a]=re/n,V[l]=re/i,V[s]=re/r,V)[H]||re,B?fe:R.a(fe)},U.daysInMonth=function(){return this.endOf(p).$D},U.$locale=function(){return w[this.$L]},U.locale=function(Z,Q){if(!Z)return this.$L;var B=this.clone(),V=M(Z,Q,!0);return V&&(B.$L=V),B},U.clone=function(){return R.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},j}(),z=W.prototype;return L.prototype=z,[["$ms",o],["$s",s],["$m",l],["$H",a],["$W",c],["$M",p],["$y",m],["$D",y]].forEach(function(j){z[j[1]]=function(U){return this.$g(U,j[0],j[1])}}),L.extend=function(j,U){return j.$i||(j(U,W,L),j.$i=!0),L},L.locale=M,L.isDayjs=I,L.unix=function(j){return L(1e3*j)},L.en=w[T],L.Ls=w,L.p={},L})})(qY);var nr=qY.exports,YY={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},a=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(_){this[v]=+_}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var x=_.match(/([+-]|\d\d)/g),S=60*x[1]+(+x[2]||0);return S===0?0:x[0]==="+"?-S:S}(v)}],p=function(v){var _=l[v];return _&&(_.indexOf?_:_.s.concat(_.f))},h=function(v,_){var x,S=l.meridiem;if(S){for(var C=1;C<=24;C+=1)if(v.indexOf(S(C,0,_))>-1){x=C>12;break}}else x=v===(_?"pm":"PM");return x},m={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[n,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[n,c("day")],Do:[s,function(v){var _=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],_)for(var S=1;S<=31;S+=1)_(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],M:[o,c("month")],MM:[n,c("month")],MMM:[s,function(v){var _=p("months"),x=(p("monthsShort")||_.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(v){var _=p("months").indexOf(v)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,c("year")],YY:[n,function(v){this.year=a(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function y(v){var _,x;_=v,x=l&&l.formats;for(var S=(v=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,R,W){var z=W&&W.toUpperCase();return R||x[W]||r[W]||x[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,U,Z){return U||Z.slice(1)})})).match(i),C=S.length,E=0;E<C;E+=1){var T=S[E],w=m[T],I=w&&w[0],M=w&&w[1];S[E]=M?{regex:I,parser:M}:T.replace(/^\[|\]$/g,"")}return function(L){for(var R={},W=0,z=0;W<C;W+=1){var j=S[W];if(typeof j=="string")z+=j.length;else{var U=j.regex,Z=j.parser,Q=L.slice(z),B=U.exec(Q)[0];Z.call(R,B),L=L.replace(B,"")}}return function(V){var H=V.afternoon;if(H!==void 0){var ee=V.hours;H?ee<12&&(V.hours+=12):ee===12&&(V.hours=0),delete V.afternoon}}(R),R}}return function(v,_,x){x.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(a=v.parseTwoDigitYear);var S=_.prototype,C=S.parse;S.parse=function(E){var T=E.date,w=E.utc,I=E.args;this.$u=w;var M=I[1];if(typeof M=="string"){var L=I[2]===!0,R=I[3]===!0,W=L||R,z=I[2];R&&(z=I[2]),l=this.$locale(),!L&&z&&(l=x.Ls[z]),this.$d=function(Q,B,V){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*Q);var H=y(B)(Q),ee=H.year,ce=H.month,re=H.day,fe=H.hours,Ne=H.minutes,de=H.seconds,_e=H.milliseconds,ae=H.zone,X=new Date,he=re||(ee||ce?1:X.getDate()),$e=ee||X.getFullYear(),Je=0;ee&&!ce||(Je=ce>0?ce-1:X.getMonth());var ne=fe||0,pe=Ne||0,ge=de||0,Se=_e||0;return ae?new Date(Date.UTC($e,Je,he,ne,pe,ge,Se+60*ae.offset*1e3)):V?new Date(Date.UTC($e,Je,he,ne,pe,ge,Se)):new Date($e,Je,he,ne,pe,ge,Se)}catch{return new Date("")}}(T,M,w),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),W&&T!=this.format(M)&&(this.$d=new Date("")),l={}}else if(M instanceof Array)for(var j=M.length,U=1;U<=j;U+=1){I[1]=M[U-1];var Z=x.apply(this,I);if(Z.isValid()){this.$d=Z.$d,this.$L=Z.$L,this.init();break}U===j&&(this.$d=new Date(""))}else C.call(this,E)}}})})(YY);var r4=YY.exports;const dj=["hours","minutes","seconds"],gP="HH:mm:ss",Xg="YYYY-MM-DD",NSe={date:Xg,dates:Xg,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Xg} ${gP}`,monthrange:"YYYY-MM",daterange:Xg,datetimerange:`${Xg} ${gP}`},NA=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],mh=e=>Array.from(Array.from({length:e}).keys()),KY=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),ZY=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),pj=function(e,t){const r=Zm(e),i=Zm(t);return r&&i?e.getTime()===t.getTime():!r&&!i?e===t:!1},hj=function(e,t){const r=wt(e),i=wt(t);return r&&i?e.length!==t.length?!1:e.every((n,o)=>pj(n,t[o])):!r&&!i?pj(e,t):!1},fj=function(e,t,r){const i=ql(t)||t==="x"?nr(e).locale(r):nr(e,t).locale(r);return i.isValid()?i:void 0},mj=function(e,t,r){return ql(t)?e:t==="x"?+e:nr(e).locale(r).format(t)},FA=(e,t)=>{var r;const i=[],n=t==null?void 0:t();for(let o=0;o<e;o++)i.push((r=n==null?void 0:n.includes(o))!=null?r:!1);return i},QY=ct({disabledHours:{type:Oe(Function)},disabledMinutes:{type:Oe(Function)},disabledSeconds:{type:Oe(Function)}}),JY=ct({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),i4=ct({id:{type:Oe([Array,String])},name:{type:Oe([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Oe([String,Object]),default:Fh},editable:{type:Boolean,default:!0},prefixIcon:{type:Oe([String,Object]),default:""},size:Vs,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:Oe(Object),default:()=>({})},modelValue:{type:Oe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:Oe([Date,Array])},defaultTime:{type:Oe([Date,Array])},isRange:{type:Boolean,default:!1},...QY,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:Oe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),FSe=["id","name","placeholder","value","disabled","readonly"],zSe=["id","name","placeholder","value","disabled","readonly"],jSe=ye({name:"Picker"}),VSe=ye({...jSe,props:i4,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:r}){const i=e,{lang:n}=Hr(),o=He("date"),s=He("input"),l=He("range"),{form:a,formItem:c}=ps(),u=_t("ElPopperOptions",{}),p=F(),h=F(),m=F(!1),y=F(!1),v=F(null);let _=!1,x=!1;Ve(m,ie=>{ie?Ct(()=>{ie&&(v.value=i.modelValue)}):(be.value=null,Ct(()=>{S(i.modelValue)}))});const S=(ie,we)=>{(we||!hj(ie,v.value))&&(r("change",ie),i.validateEvent&&(c==null||c.validate("change").catch(qe=>void 0)))},C=ie=>{if(!hj(i.modelValue,ie)){let we;wt(ie)?we=ie.map(qe=>mj(qe,i.valueFormat,n.value)):ie&&(we=mj(ie,i.valueFormat,n.value)),r("update:modelValue",ie&&we,n.value)}},E=ie=>{r("keydown",ie)},T=O(()=>{if(h.value){const ie=pe.value?h.value:h.value.$el;return Array.from(ie.querySelectorAll("input"))}return[]}),w=(ie,we,qe)=>{const it=T.value;!it.length||(!qe||qe==="min"?(it[0].setSelectionRange(ie,we),it[0].focus()):qe==="max"&&(it[1].setSelectionRange(ie,we),it[1].focus()))},I=()=>{Z(!0,!0),Ct(()=>{x=!1})},M=(ie="",we=!1)=>{we||(x=!0),m.value=we;let qe;wt(ie)?qe=ie.map(it=>it.toDate()):qe=ie&&ie.toDate(),be.value=null,C(qe)},L=()=>{y.value=!0},R=()=>{r("visible-change",!0)},W=ie=>{(ie==null?void 0:ie.key)===Rt.esc&&Z(!0,!0)},z=()=>{y.value=!1,m.value=!1,x=!1,r("visible-change",!1)},j=()=>{m.value=!0},U=()=>{m.value=!1},Z=(ie=!0,we=!1)=>{x=we;const[qe,it]=g(T);let Zt=qe;!ie&&pe.value&&(Zt=it),Zt&&Zt.focus()},Q=ie=>{i.readonly||H.value||m.value||x||(m.value=!0,r("focus",ie))};let B;const V=ie=>{const we=async()=>{setTimeout(()=>{var qe;B===we&&(!(((qe=p.value)==null?void 0:qe.isFocusInsideContent())&&!_)&&T.value.filter(it=>it.contains(document.activeElement)).length===0&&(Qe(),m.value=!1,r("blur",ie),i.validateEvent&&(c==null||c.validate("blur").catch(it=>void 0))),_=!1)},0)};B=we,we()},H=O(()=>i.disabled||(a==null?void 0:a.disabled)),ee=O(()=>{let ie;if(X.value?Bt.value.getDefaultValue&&(ie=Bt.value.getDefaultValue()):wt(i.modelValue)?ie=i.modelValue.map(we=>fj(we,i.valueFormat,n.value)):ie=fj(i.modelValue,i.valueFormat,n.value),Bt.value.getRangeAvailableTime){const we=Bt.value.getRangeAvailableTime(ie);yl(we,ie)||(ie=we,C(wt(ie)?ie.map(qe=>qe.toDate()):ie.toDate()))}return wt(ie)&&ie.some(we=>!we)&&(ie=[]),ie}),ce=O(()=>{if(!Bt.value.panelReady)return"";const ie=Me(ee.value);return wt(be.value)?[be.value[0]||ie&&ie[0]||"",be.value[1]||ie&&ie[1]||""]:be.value!==null?be.value:!fe.value&&X.value||!m.value&&X.value?"":ie?Ne.value?ie.join(", "):ie:""}),re=O(()=>i.type.includes("time")),fe=O(()=>i.type.startsWith("time")),Ne=O(()=>i.type==="dates"),de=O(()=>i.prefixIcon||(re.value?Oq:B0e)),_e=F(!1),ae=ie=>{i.readonly||H.value||_e.value&&(ie.stopPropagation(),I(),C(null),S(null,!0),_e.value=!1,m.value=!1,Bt.value.handleClear&&Bt.value.handleClear())},X=O(()=>{const{modelValue:ie}=i;return!ie||wt(ie)&&!ie.filter(Boolean).length}),he=async ie=>{var we;i.readonly||H.value||(((we=ie.target)==null?void 0:we.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},$e=()=>{i.readonly||H.value||!X.value&&i.clearable&&(_e.value=!0)},Je=()=>{_e.value=!1},ne=ie=>{var we;i.readonly||H.value||(((we=ie.touches[0].target)==null?void 0:we.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},pe=O(()=>i.type.includes("range")),ge=An(),Se=O(()=>{var ie,we;return(we=(ie=g(p))==null?void 0:ie.popperRef)==null?void 0:we.contentRef}),xe=O(()=>{var ie;return g(pe)?g(h):(ie=g(h))==null?void 0:ie.$el});ER(xe,ie=>{const we=g(Se),qe=g(xe);we&&(ie.target===we||ie.composedPath().includes(we))||ie.target===qe||ie.composedPath().includes(qe)||(m.value=!1)});const be=F(null),Qe=()=>{if(be.value){const ie=Fe(ce.value);ie&&Ie(ie)&&(C(wt(ie)?ie.map(we=>we.toDate()):ie.toDate()),be.value=null)}be.value===""&&(C(null),S(null),be.value=null)},Fe=ie=>ie?Bt.value.parseUserInput(ie):null,Me=ie=>ie?Bt.value.formatToString(ie):null,Ie=ie=>Bt.value.isValidValue(ie),Pe=async ie=>{if(i.readonly||H.value)return;const{code:we}=ie;if(E(ie),we===Rt.esc){m.value===!0&&(m.value=!1,ie.preventDefault(),ie.stopPropagation());return}if(we===Rt.down&&(Bt.value.handleFocusPicker&&(ie.preventDefault(),ie.stopPropagation()),m.value===!1&&(m.value=!0,await Ct()),Bt.value.handleFocusPicker)){Bt.value.handleFocusPicker();return}if(we===Rt.tab){_=!0;return}if(we===Rt.enter||we===Rt.numpadEnter){(be.value===null||be.value===""||Ie(Fe(ce.value)))&&(Qe(),m.value=!1),ie.stopPropagation();return}if(be.value){ie.stopPropagation();return}Bt.value.handleKeydownInput&&Bt.value.handleKeydownInput(ie)},Xe=ie=>{be.value=ie,m.value||(m.value=!0)},dt=ie=>{const we=ie.target;be.value?be.value=[we.value,be.value[1]]:be.value=[we.value,null]},gt=ie=>{const we=ie.target;be.value?be.value=[be.value[0],we.value]:be.value=[null,we.value]},Dt=()=>{var ie;const we=be.value,qe=Fe(we&&we[0]),it=g(ee);if(qe&&qe.isValid()){be.value=[Me(qe),((ie=ce.value)==null?void 0:ie[1])||null];const Zt=[qe,it&&(it[1]||null)];Ie(Zt)&&(C(Zt),be.value=null)}},Jt=()=>{var ie;const we=g(be),qe=Fe(we&&we[1]),it=g(ee);if(qe&&qe.isValid()){be.value=[((ie=g(ce))==null?void 0:ie[0])||null,Me(qe)];const Zt=[it&&it[0],qe];Ie(Zt)&&(C(Zt),be.value=null)}},Bt=F({}),Le=ie=>{Bt.value[ie[0]]=ie[1],Bt.value.panelReady=!0},st=ie=>{r("calendar-change",ie)},It=(ie,we,qe)=>{r("panel-change",ie,we,qe)};return cr("EP_PICKER_BASE",{props:i}),t({focus:Z,handleFocusInput:Q,handleBlurInput:V,handleOpen:j,handleClose:U,onPick:M}),(ie,we)=>($(),Te(g(qs),sr({ref_key:"refPopper",ref:p,visible:m.value,effect:"light",pure:"",trigger:"click"},ie.$attrs,{role:"dialog",teleported:"",transition:`${g(o).namespace.value}-zoom-in-top`,"popper-class":[`${g(o).namespace.value}-picker__popper`,ie.popperClass],"popper-options":g(u),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:L,onShow:R,onHide:z}),{default:me(()=>[g(pe)?($(),K("div",{key:1,ref_key:"inputRef",ref:h,class:N([g(o).b("editor"),g(o).bm("editor",ie.type),g(s).e("wrapper"),g(o).is("disabled",g(H)),g(o).is("active",m.value),g(l).b("editor"),g(ge)?g(l).bm("editor",g(ge)):"",ie.$attrs.class]),style:St(ie.$attrs.style),onClick:Q,onMouseenter:$e,onMouseleave:Je,onTouchstart:ne,onKeydown:Pe},[g(de)?($(),Te(g(At),{key:0,class:N([g(s).e("icon"),g(l).e("icon")]),onMousedown:Yt(he,["prevent"]),onTouchstart:ne},{default:me(()=>[($(),Te(br(g(de))))]),_:1},8,["class","onMousedown"])):ke("v-if",!0),G("input",{id:ie.id&&ie.id[0],autocomplete:"off",name:ie.name&&ie.name[0],placeholder:ie.startPlaceholder,value:g(ce)&&g(ce)[0],disabled:g(H),readonly:!ie.editable||ie.readonly,class:N(g(l).b("input")),onMousedown:he,onInput:dt,onChange:Dt,onFocus:Q,onBlur:V},null,42,FSe),Be(ie.$slots,"range-separator",{},()=>[G("span",{class:N(g(l).b("separator"))},rt(ie.rangeSeparator),3)]),G("input",{id:ie.id&&ie.id[1],autocomplete:"off",name:ie.name&&ie.name[1],placeholder:ie.endPlaceholder,value:g(ce)&&g(ce)[1],disabled:g(H),readonly:!ie.editable||ie.readonly,class:N(g(l).b("input")),onMousedown:he,onFocus:Q,onBlur:V,onInput:gt,onChange:Jt},null,42,zSe),ie.clearIcon?($(),Te(g(At),{key:1,class:N([g(s).e("icon"),g(l).e("close-icon"),{[g(l).e("close-icon--hidden")]:!_e.value}]),onClick:ae},{default:me(()=>[($(),Te(br(ie.clearIcon)))]),_:1},8,["class"])):ke("v-if",!0)],38)):($(),Te(g(Qi),{key:0,id:ie.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":g(ce),name:ie.name,size:g(ge),disabled:g(H),placeholder:ie.placeholder,class:N([g(o).b("editor"),g(o).bm("editor",ie.type),ie.$attrs.class]),style:St(ie.$attrs.style),readonly:!ie.editable||ie.readonly||g(Ne)||ie.type==="week",label:ie.label,tabindex:ie.tabindex,"validate-event":!1,onInput:Xe,onFocus:Q,onBlur:V,onKeydown:Pe,onChange:Qe,onMousedown:he,onMouseenter:$e,onMouseleave:Je,onTouchstart:ne,onClick:we[0]||(we[0]=Yt(()=>{},["stop"]))},{prefix:me(()=>[g(de)?($(),Te(g(At),{key:0,class:N(g(s).e("icon")),onMousedown:Yt(he,["prevent"]),onTouchstart:ne},{default:me(()=>[($(),Te(br(g(de))))]),_:1},8,["class","onMousedown"])):ke("v-if",!0)]),suffix:me(()=>[_e.value&&ie.clearIcon?($(),Te(g(At),{key:0,class:N(`${g(s).e("icon")} clear-icon`),onClick:Yt(ae,["stop"])},{default:me(()=>[($(),Te(br(ie.clearIcon)))]),_:1},8,["class","onClick"])):ke("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:me(()=>[Be(ie.$slots,"default",{visible:m.value,actualVisible:y.value,parsedValue:g(ee),format:ie.format,unlinkPanels:ie.unlinkPanels,type:ie.type,defaultValue:ie.defaultValue,onPick:M,onSelectRange:w,onSetPickerOption:Le,onCalendarChange:st,onPanelChange:It,onKeydown:W,onMousedown:we[1]||(we[1]=Yt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var XY=ot(VSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const BSe=ct({...JY,datetimeRole:String,parsedValue:{type:Oe(Object)}}),eK=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:r})=>{const i=(s,l,a,c)=>{const u={hour:e,minute:t,second:r};let p=s;return["hour","minute","second"].forEach(h=>{if(u[h]){let m;const y=u[h];switch(h){case"minute":{m=y(p.hour(),l,c);break}case"second":{m=y(p.hour(),p.minute(),l,c);break}default:{m=y(l,c);break}}if((m==null?void 0:m.length)&&!m.includes(p[h]())){const v=a?0:m.length-1;p=p[h](m[v])}}}),p},n={};return{timePickerOptions:n,getAvailableTime:i,onSetOption:([s,l])=>{n[s]=l}}},zA=e=>{const t=(i,n)=>i||n,r=i=>i!==!0;return e.map(t).filter(r)},tK=(e,t,r)=>({getHoursList:(s,l)=>FA(24,e&&(()=>e==null?void 0:e(s,l))),getMinutesList:(s,l,a)=>FA(60,t&&(()=>t==null?void 0:t(s,l,a))),getSecondsList:(s,l,a,c)=>FA(60,r&&(()=>r==null?void 0:r(s,l,a,c)))}),rK=(e,t,r)=>{const{getHoursList:i,getMinutesList:n,getSecondsList:o}=tK(e,t,r);return{getAvailableHours:(c,u)=>zA(i(c,u)),getAvailableMinutes:(c,u,p)=>zA(n(c,u,p)),getAvailableSeconds:(c,u,p,h)=>zA(o(c,u,p,h))}},iK=e=>{const t=F(e.parsedValue);return Ve(()=>e.visible,r=>{r||(t.value=e.parsedValue)}),t},fp=new Map;let gj;Rr&&(document.addEventListener("mousedown",e=>gj=e),document.addEventListener("mouseup",e=>{for(const t of fp.values())for(const{documentHandler:r}of t)r(e,gj)}));function yj(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:lc(t.arg)&&r.push(t.arg),function(i,n){const o=t.instance.popperRef,s=i.target,l=n==null?void 0:n.target,a=!t||!t.instance,c=!s||!l,u=e.contains(s)||e.contains(l),p=e===s,h=r.length&&r.some(y=>y==null?void 0:y.contains(s))||r.length&&r.includes(l),m=o&&(o.contains(s)||o.contains(l));a||c||u||p||h||m||t.value(i,n)}}const Ah={beforeMount(e,t){fp.has(e)||fp.set(e,[]),fp.get(e).push({documentHandler:yj(e,t),bindingFn:t.value})},updated(e,t){fp.has(e)||fp.set(e,[]);const r=fp.get(e),i=r.findIndex(o=>o.bindingFn===t.oldValue),n={documentHandler:yj(e,t),bindingFn:t.value};i>=0?r.splice(i,1,n):r.push(n)},unmounted(e){fp.delete(e)}},USe=100,WSe=600,dS={beforeMount(e,t){const r=t.value,{interval:i=USe,delay:n=WSe}=qt(r)?{}:r;let o,s;const l=()=>qt(r)?r():r.handler(),a=()=>{s&&(clearTimeout(s),s=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(a(),l(),document.addEventListener("mouseup",()=>a(),{once:!0}),s=setTimeout(()=>{o=setInterval(()=>{l()},i)},n))})}},yP="_trap-focus-children",vm=[],vj=e=>{if(vm.length===0)return;const t=vm[vm.length-1][yP];if(t.length>0&&e.code===Rt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const r=e.shiftKey,i=e.target===t[0],n=e.target===t[t.length-1];i&&r&&(e.preventDefault(),t[t.length-1].focus()),n&&!r&&(e.preventDefault(),t[0].focus())}},HSe={beforeMount(e){e[yP]=mz(e),vm.push(e),vm.length<=1&&document.addEventListener("keydown",vj)},updated(e){Ct(()=>{e[yP]=mz(e)})},unmounted(){vm.shift(),vm.length===0&&document.removeEventListener("keydown",vj)}};var bj=!1,nm,vP,bP,yC,vC,nK,bC,_P,wP,xP,oK,CP,kP,sK,lK;function ys(){if(!bj){bj=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(CP=/\b(iPhone|iP[ao]d)/.exec(e),kP=/\b(iP[ao]d)/.exec(e),xP=/Android/i.exec(e),sK=/FBAN\/\w+;/i.exec(e),lK=/Mobile/i.exec(e),oK=!!/Win64/.exec(e),t){nm=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,nm&&document&&document.documentMode&&(nm=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(e);nK=i?parseFloat(i[1])+4:nm,vP=t[2]?parseFloat(t[2]):NaN,bP=t[3]?parseFloat(t[3]):NaN,yC=t[4]?parseFloat(t[4]):NaN,yC?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),vC=t&&t[1]?parseFloat(t[1]):NaN):vC=NaN}else nm=vP=bP=vC=yC=NaN;if(r){if(r[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);bC=n?parseFloat(n[1].replace("_",".")):!0}else bC=!1;_P=!!r[2],wP=!!r[3]}else bC=_P=wP=!1}}var SP={ie:function(){return ys()||nm},ieCompatibilityMode:function(){return ys()||nK>nm},ie64:function(){return SP.ie()&&oK},firefox:function(){return ys()||vP},opera:function(){return ys()||bP},webkit:function(){return ys()||yC},safari:function(){return SP.webkit()},chrome:function(){return ys()||vC},windows:function(){return ys()||_P},osx:function(){return ys()||bC},linux:function(){return ys()||wP},iphone:function(){return ys()||CP},mobile:function(){return ys()||CP||kP||xP||lK},nativeApp:function(){return ys()||sK},android:function(){return ys()||xP},ipad:function(){return ys()||kP}},GSe=SP,s2=!!(typeof window<"u"&&window.document&&window.document.createElement),qSe={canUseDOM:s2,canUseWorkers:typeof Worker<"u",canUseEventListeners:s2&&!!(window.addEventListener||window.attachEvent),canUseViewport:s2&&!!window.screen,isInWorker:!s2},aK=qSe,cK;aK.canUseDOM&&(cK=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function YSe(e,t){if(!aK.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,i=r in document;if(!i){var n=document.createElement("div");n.setAttribute(r,"return;"),i=typeof n[r]=="function"}return!i&&cK&&e==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var KSe=YSe,_j=10,wj=40,xj=800;function uK(e){var t=0,r=0,i=0,n=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),i=t*_j,n=r*_j,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||n)&&e.deltaMode&&(e.deltaMode==1?(i*=wj,n*=wj):(i*=xj,n*=xj)),i&&!t&&(t=i<1?-1:1),n&&!r&&(r=n<1?-1:1),{spinX:t,spinY:r,pixelX:i,pixelY:n}}uK.getEventType=function(){return GSe.firefox()?"DOMMouseScroll":KSe("wheel")?"wheel":"mousewheel"};var ZSe=uK;/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */const QSe=function(e,t){if(e&&e.addEventListener){const r=function(i){const n=ZSe(i);t&&Reflect.apply(t,this,[i,n])};e.addEventListener("wheel",r,{passive:!0})}},JSe={beforeMount(e,t){QSe(e,t.value)}},XSe=ct({role:{type:String,required:!0},spinnerDate:{type:Oe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Oe(String),default:""},...QY}),eEe=["onClick"],tEe=["onMouseenter"],rEe=ye({__name:"basic-time-spinner",props:XSe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const r=e,i=He("time"),{getHoursList:n,getMinutesList:o,getSecondsList:s}=tK(r.disabledHours,r.disabledMinutes,r.disabledSeconds);let l=!1;const a=F(),c=F(),u=F(),p=F(),h={hours:c,minutes:u,seconds:p},m=O(()=>r.showSeconds?dj:dj.slice(0,2)),y=O(()=>{const{spinnerDate:H}=r,ee=H.hour(),ce=H.minute(),re=H.second();return{hours:ee,minutes:ce,seconds:re}}),v=O(()=>{const{hours:H,minutes:ee}=g(y);return{hours:n(r.role),minutes:o(H,r.role),seconds:s(H,ee,r.role)}}),_=O(()=>{const{hours:H,minutes:ee,seconds:ce}=g(y);return{hours:NA(H,23),minutes:NA(ee,59),seconds:NA(ce,59)}}),x=as(H=>{l=!1,E(H)},200),S=H=>{if(!!!r.amPmMode)return"";const ce=r.amPmMode==="A";let re=H<12?" am":" pm";return ce&&(re=re.toUpperCase()),re},C=H=>{let ee;switch(H){case"hours":ee=[0,2];break;case"minutes":ee=[3,5];break;case"seconds":ee=[6,8];break}const[ce,re]=ee;t("select-range",ce,re),a.value=H},E=H=>{I(H,g(y)[H])},T=()=>{E("hours"),E("minutes"),E("seconds")},w=H=>H.querySelector(`.${i.namespace.value}-scrollbar__wrap`),I=(H,ee)=>{if(r.arrowControl)return;const ce=g(h[H]);ce&&ce.$el&&(w(ce.$el).scrollTop=Math.max(0,ee*M(H)))},M=H=>{const ee=g(h[H]);return(ee==null?void 0:ee.$el.querySelector("li").offsetHeight)||0},L=()=>{W(1)},R=()=>{W(-1)},W=H=>{a.value||C("hours");const ee=a.value,ce=g(y)[ee],re=a.value==="hours"?24:60,fe=z(ee,ce,H,re);j(ee,fe),I(ee,fe),Ct(()=>C(ee))},z=(H,ee,ce,re)=>{let fe=(ee+ce+re)%re;const Ne=g(v)[H];for(;Ne[fe]&&fe!==ee;)fe=(fe+ce+re)%re;return fe},j=(H,ee)=>{if(g(v)[H][ee])return;const{hours:fe,minutes:Ne,seconds:de}=g(y);let _e;switch(H){case"hours":_e=r.spinnerDate.hour(ee).minute(Ne).second(de);break;case"minutes":_e=r.spinnerDate.hour(fe).minute(ee).second(de);break;case"seconds":_e=r.spinnerDate.hour(fe).minute(Ne).second(ee);break}t("change",_e)},U=(H,{value:ee,disabled:ce})=>{ce||(j(H,ee),C(H),I(H,ee))},Z=H=>{l=!0,x(H);const ee=Math.min(Math.round((w(g(h[H]).$el).scrollTop-(Q(H)*.5-10)/M(H)+3)/M(H)),H==="hours"?23:59);j(H,ee)},Q=H=>g(h[H]).$el.offsetHeight,B=()=>{const H=ee=>{const ce=g(h[ee]);ce&&ce.$el&&(w(ce.$el).onscroll=()=>{Z(ee)})};H("hours"),H("minutes"),H("seconds")};er(()=>{Ct(()=>{!r.arrowControl&&B(),T(),r.role==="start"&&C("hours")})});const V=(H,ee)=>{h[ee].value=H};return t("set-option",[`${r.role}_scrollDown`,W]),t("set-option",[`${r.role}_emitSelectRange`,C]),Ve(()=>r.spinnerDate,()=>{l||T()}),(H,ee)=>($(),K("div",{class:N([g(i).b("spinner"),{"has-seconds":H.showSeconds}])},[H.arrowControl?ke("v-if",!0):($(!0),K(bt,{key:0},or(g(m),ce=>($(),Te(g(Ld),{key:ce,ref_for:!0,ref:re=>V(re,ce),class:N(g(i).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":g(i).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:re=>C(ce),onMousemove:re=>E(ce)},{default:me(()=>[($(!0),K(bt,null,or(g(v)[ce],(re,fe)=>($(),K("li",{key:fe,class:N([g(i).be("spinner","item"),g(i).is("active",fe===g(y)[ce]),g(i).is("disabled",re)]),onClick:Ne=>U(ce,{value:fe,disabled:re})},[ce==="hours"?($(),K(bt,{key:0},[Ir(rt(("0"+(H.amPmMode?fe%12||12:fe)).slice(-2))+rt(S(fe)),1)],64)):($(),K(bt,{key:1},[Ir(rt(("0"+fe).slice(-2)),1)],64))],10,eEe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),H.arrowControl?($(!0),K(bt,{key:1},or(g(m),ce=>($(),K("div",{key:ce,class:N([g(i).be("spinner","wrapper"),g(i).is("arrow")]),onMouseenter:re=>C(ce)},[kt(($(),Te(g(At),{class:N(["arrow-up",g(i).be("spinner","arrow")])},{default:me(()=>[Y(g(a3))]),_:1},8,["class"])),[[g(dS),R]]),kt(($(),Te(g(At),{class:N(["arrow-down",g(i).be("spinner","arrow")])},{default:me(()=>[Y(g(Nh))]),_:1},8,["class"])),[[g(dS),L]]),G("ul",{class:N(g(i).be("spinner","list"))},[($(!0),K(bt,null,or(g(_)[ce],(re,fe)=>($(),K("li",{key:fe,class:N([g(i).be("spinner","item"),g(i).is("active",re===g(y)[ce]),g(i).is("disabled",g(v)[ce][re])])},[typeof re=="number"?($(),K(bt,{key:0},[ce==="hours"?($(),K(bt,{key:0},[Ir(rt(("0"+(H.amPmMode?re%12||12:re)).slice(-2))+rt(S(re)),1)],64)):($(),K(bt,{key:1},[Ir(rt(("0"+re).slice(-2)),1)],64))],64)):ke("v-if",!0)],2))),128))],2)],42,tEe))),128)):ke("v-if",!0)],2))}});var EP=ot(rEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const iEe=ye({__name:"panel-time-pick",props:BSe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const r=e,i=_t("EP_PICKER_BASE"),{arrowControl:n,disabledHours:o,disabledMinutes:s,disabledSeconds:l,defaultValue:a}=i.props,{getAvailableHours:c,getAvailableMinutes:u,getAvailableSeconds:p}=rK(o,s,l),h=He("time"),{t:m,lang:y}=Hr(),v=F([0,2]),_=iK(r),x=O(()=>po(r.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),S=O(()=>r.format.includes("ss")),C=O(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),E=V=>{const H=nr(V).locale(y.value),ee=U(H);return H.isSame(ee)},T=()=>{t("pick",_.value,!1)},w=(V=!1,H=!1)=>{H||t("pick",r.parsedValue,V)},I=V=>{if(!r.visible)return;const H=U(V).millisecond(0);t("pick",H,!0)},M=(V,H)=>{t("select-range",V,H),v.value=[V,H]},L=V=>{const H=[0,3].concat(S.value?[6]:[]),ee=["hours","minutes"].concat(S.value?["seconds"]:[]),re=(H.indexOf(v.value[0])+V+H.length)%H.length;W.start_emitSelectRange(ee[re])},R=V=>{const H=V.code,{left:ee,right:ce,up:re,down:fe}=Rt;if([ee,ce].includes(H)){L(H===ee?-1:1),V.preventDefault();return}if([re,fe].includes(H)){const Ne=H===re?-1:1;W.start_scrollDown(Ne),V.preventDefault();return}},{timePickerOptions:W,onSetOption:z,getAvailableTime:j}=eK({getAvailableHours:c,getAvailableMinutes:u,getAvailableSeconds:p}),U=V=>j(V,r.datetimeRole||"",!0),Z=V=>V?nr(V,r.format).locale(y.value):null,Q=V=>V?V.format(r.format):null,B=()=>nr(a).locale(y.value);return t("set-picker-option",["isValidValue",E]),t("set-picker-option",["formatToString",Q]),t("set-picker-option",["parseUserInput",Z]),t("set-picker-option",["handleKeydownInput",R]),t("set-picker-option",["getRangeAvailableTime",U]),t("set-picker-option",["getDefaultValue",B]),(V,H)=>($(),Te(Xi,{name:g(x)},{default:me(()=>[V.actualVisible||V.visible?($(),K("div",{key:0,class:N(g(h).b("panel"))},[G("div",{class:N([g(h).be("panel","content"),{"has-seconds":g(S)}])},[Y(EP,{ref:"spinner",role:V.datetimeRole||"start","arrow-control":g(n),"show-seconds":g(S),"am-pm-mode":g(C),"spinner-date":V.parsedValue,"disabled-hours":g(o),"disabled-minutes":g(s),"disabled-seconds":g(l),onChange:I,onSetOption:g(z),onSelectRange:M},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),G("div",{class:N(g(h).be("panel","footer"))},[G("button",{type:"button",class:N([g(h).be("panel","btn"),"cancel"]),onClick:T},rt(g(m)("el.datepicker.cancel")),3),G("button",{type:"button",class:N([g(h).be("panel","btn"),"confirm"]),onClick:H[0]||(H[0]=ee=>w())},rt(g(m)("el.datepicker.confirm")),3)],2)],2)):ke("v-if",!0)]),_:1},8,["name"]))}});var pS=ot(iEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const nEe=ct({...JY,parsedValue:{type:Oe(Array)}}),oEe=["disabled"],sEe=ye({__name:"panel-time-range",props:nEe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const r=e,i=(he,$e)=>{const Je=[];for(let ne=he;ne<=$e;ne++)Je.push(ne);return Je},{t:n,lang:o}=Hr(),s=He("time"),l=He("picker"),a=_t("EP_PICKER_BASE"),{arrowControl:c,disabledHours:u,disabledMinutes:p,disabledSeconds:h,defaultValue:m}=a.props,y=O(()=>r.parsedValue[0]),v=O(()=>r.parsedValue[1]),_=iK(r),x=()=>{t("pick",_.value,!1)},S=O(()=>r.format.includes("ss")),C=O(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),E=(he=!1)=>{t("pick",[y.value,v.value],he)},T=he=>{M(he.millisecond(0),v.value)},w=he=>{M(y.value,he.millisecond(0))},I=he=>{const $e=he.map(ne=>nr(ne).locale(o.value)),Je=H($e);return $e[0].isSame(Je[0])&&$e[1].isSame(Je[1])},M=(he,$e)=>{t("pick",[he,$e],!0)},L=O(()=>y.value>v.value),R=F([0,2]),W=(he,$e)=>{t("select-range",he,$e,"min"),R.value=[he,$e]},z=O(()=>S.value?11:8),j=(he,$e)=>{t("select-range",he,$e,"max");const Je=g(z);R.value=[he+Je,$e+Je]},U=he=>{const $e=S.value?[0,3,6,11,14,17]:[0,3,8,11],Je=["hours","minutes"].concat(S.value?["seconds"]:[]),pe=($e.indexOf(R.value[0])+he+$e.length)%$e.length,ge=$e.length/2;pe<ge?fe.start_emitSelectRange(Je[pe]):fe.end_emitSelectRange(Je[pe-ge])},Z=he=>{const $e=he.code,{left:Je,right:ne,up:pe,down:ge}=Rt;if([Je,ne].includes($e)){U($e===Je?-1:1),he.preventDefault();return}if([pe,ge].includes($e)){const Se=$e===pe?-1:1,xe=R.value[0]<z.value?"start":"end";fe[`${xe}_scrollDown`](Se),he.preventDefault();return}},Q=(he,$e)=>{const Je=u?u(he):[],ne=he==="start",ge=($e||(ne?v.value:y.value)).hour(),Se=ne?i(ge+1,23):i(0,ge-1);return MA(Je,Se)},B=(he,$e,Je)=>{const ne=p?p(he,$e):[],pe=$e==="start",ge=Je||(pe?v.value:y.value),Se=ge.hour();if(he!==Se)return ne;const xe=ge.minute(),be=pe?i(xe+1,59):i(0,xe-1);return MA(ne,be)},V=(he,$e,Je,ne)=>{const pe=h?h(he,$e,Je):[],ge=Je==="start",Se=ne||(ge?v.value:y.value),xe=Se.hour(),be=Se.minute();if(he!==xe||$e!==be)return pe;const Qe=Se.second(),Fe=ge?i(Qe+1,59):i(0,Qe-1);return MA(pe,Fe)},H=([he,$e])=>[Ne(he,"start",!0,$e),Ne($e,"end",!1,he)],{getAvailableHours:ee,getAvailableMinutes:ce,getAvailableSeconds:re}=rK(Q,B,V),{timePickerOptions:fe,getAvailableTime:Ne,onSetOption:de}=eK({getAvailableHours:ee,getAvailableMinutes:ce,getAvailableSeconds:re}),_e=he=>he?wt(he)?he.map($e=>nr($e,r.format).locale(o.value)):nr(he,r.format).locale(o.value):null,ae=he=>he?wt(he)?he.map($e=>$e.format(r.format)):he.format(r.format):null,X=()=>{if(wt(m))return m.map($e=>nr($e).locale(o.value));const he=nr(m).locale(o.value);return[he,he.add(60,"m")]};return t("set-picker-option",["formatToString",ae]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["isValidValue",I]),t("set-picker-option",["handleKeydownInput",Z]),t("set-picker-option",["getDefaultValue",X]),t("set-picker-option",["getRangeAvailableTime",H]),(he,$e)=>he.actualVisible?($(),K("div",{key:0,class:N([g(s).b("range-picker"),g(l).b("panel")])},[G("div",{class:N(g(s).be("range-picker","content"))},[G("div",{class:N(g(s).be("range-picker","cell"))},[G("div",{class:N(g(s).be("range-picker","header"))},rt(g(n)("el.datepicker.startTime")),3),G("div",{class:N([g(s).be("range-picker","body"),g(s).be("panel","content"),g(s).is("arrow",g(c)),{"has-seconds":g(S)}])},[Y(EP,{ref:"minSpinner",role:"start","show-seconds":g(S),"am-pm-mode":g(C),"arrow-control":g(c),"spinner-date":g(y),"disabled-hours":Q,"disabled-minutes":B,"disabled-seconds":V,onChange:T,onSetOption:g(de),onSelectRange:W},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),G("div",{class:N(g(s).be("range-picker","cell"))},[G("div",{class:N(g(s).be("range-picker","header"))},rt(g(n)("el.datepicker.endTime")),3),G("div",{class:N([g(s).be("range-picker","body"),g(s).be("panel","content"),g(s).is("arrow",g(c)),{"has-seconds":g(S)}])},[Y(EP,{ref:"maxSpinner",role:"end","show-seconds":g(S),"am-pm-mode":g(C),"arrow-control":g(c),"spinner-date":g(v),"disabled-hours":Q,"disabled-minutes":B,"disabled-seconds":V,onChange:w,onSetOption:g(de),onSelectRange:j},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),G("div",{class:N(g(s).be("panel","footer"))},[G("button",{type:"button",class:N([g(s).be("panel","btn"),"cancel"]),onClick:$e[0]||($e[0]=Je=>x())},rt(g(n)("el.datepicker.cancel")),3),G("button",{type:"button",class:N([g(s).be("panel","btn"),"confirm"]),disabled:g(L),onClick:$e[1]||($e[1]=Je=>E())},rt(g(n)("el.datepicker.confirm")),11,oEe)],2)],2)):ke("v-if",!0)}});var lEe=ot(sEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);nr.extend(r4);var aEe=ye({name:"ElTimePicker",install:null,props:{...i4,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const r=F(),[i,n]=e.isRange?["timerange",lEe]:["time",pS],o=s=>t.emit("update:modelValue",s);return cr("ElPopperOptions",e.popperOptions),t.expose({focus:s=>{var l;(l=r.value)==null||l.handleFocusInput(s)},blur:s=>{var l;(l=r.value)==null||l.handleBlurInput(s)},handleOpen:()=>{var s;(s=r.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=r.value)==null||s.handleClose()}}),()=>{var s;const l=(s=e.format)!=null?s:gP;return Y(XY,sr(e,{ref:r,type:i,format:l,"onUpdate:modelValue":o}),{default:a=>Y(n,a,null)})}}});const _C=aEe;_C.install=e=>{e.component(_C.name,_C)};const cEe=_C,uEe=(e,t)=>{const r=e.subtract(1,"month").endOf("month").date();return mh(t).map((i,n)=>r-(t-n-1))},dEe=e=>{const t=e.daysInMonth();return mh(t).map((r,i)=>i+1)},pEe=e=>mh(e.length/7).map(t=>{const r=t*7;return e.slice(r,r+7)}),hEe=ct({selectedDay:{type:Oe(Object)},range:{type:Oe(Array)},date:{type:Oe(Object),required:!0},hideHeader:{type:Boolean}}),fEe={pick:e=>yr(e)};var dK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){return function(r,i,n){var o=i.prototype,s=function(p){return p&&(p.indexOf?p:p.s)},l=function(p,h,m,y,v){var _=p.name?p:p.$locale(),x=s(_[h]),S=s(_[m]),C=x||S.map(function(T){return T.slice(0,y)});if(!v)return C;var E=_.weekStart;return C.map(function(T,w){return C[(w+(E||0))%7]})},a=function(){return n.Ls[n.locale()]},c=function(p,h){return p.formats[h]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,v,_){return v||_.slice(1)})}(p.formats[h.toUpperCase()])},u=function(){var p=this;return{months:function(h){return h?h.format("MMMM"):l(p,"months")},monthsShort:function(h){return h?h.format("MMM"):l(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):l(p,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):l(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):l(p,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(p.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},n.localeData=function(){var p=a();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(h){return c(p,h)},meridiem:p.meridiem,ordinal:p.ordinal}},n.months=function(){return l(a(),"months")},n.monthsShort=function(){return l(a(),"monthsShort","months",3)},n.weekdays=function(p){return l(a(),"weekdays",null,null,p)},n.weekdaysShort=function(p){return l(a(),"weekdaysShort","weekdays",3,p)},n.weekdaysMin=function(p){return l(a(),"weekdaysMin","weekdays",2,p)}}})})(dK);var pK=dK.exports;const mEe=(e,t)=>{nr.extend(pK);const r=nr.localeData().firstDayOfWeek(),{t:i,lang:n}=Hr(),o=nr().locale(n.value),s=O(()=>!!e.range&&!!e.range.length),l=O(()=>{let h=[];if(s.value){const[m,y]=e.range,v=mh(y.date()-m.date()+1).map(S=>({text:m.date()+S,type:"current"}));let _=v.length%7;_=_===0?0:7-_;const x=mh(_).map((S,C)=>({text:C+1,type:"next"}));h=v.concat(x)}else{const m=e.date.startOf("month").day(),y=uEe(e.date,(m-r+7)%7).map(S=>({text:S,type:"prev"})),v=dEe(e.date).map(S=>({text:S,type:"current"}));h=[...y,...v];const _=7-(h.length%7||7),x=mh(_).map((S,C)=>({text:C+1,type:"next"}));h=h.concat(x)}return pEe(h)}),a=O(()=>{const h=r;return h===0?IA.map(m=>i(`el.datepicker.weeks.${m}`)):IA.slice(h).concat(IA.slice(0,h)).map(m=>i(`el.datepicker.weeks.${m}`))}),c=(h,m)=>{switch(m){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:o,isInRange:s,rows:l,weekDays:a,getFormattedDate:c,handlePickDay:({text:h,type:m})=>{const y=c(h,m);t("pick",y)},getSlotData:({text:h,type:m})=>{const y=c(h,m);return{isSelected:y.isSame(e.selectedDay),type:`${m}-month`,day:y.format("YYYY-MM-DD"),date:y.toDate()}}}},gEe={key:0},yEe=["onClick"],vEe=ye({name:"DateTable"}),bEe=ye({...vEe,props:hEe,emits:fEe,setup(e,{expose:t,emit:r}){const i=e,{isInRange:n,now:o,rows:s,weekDays:l,getFormattedDate:a,handlePickDay:c,getSlotData:u}=mEe(i,r),p=He("calendar-table"),h=He("calendar-day"),m=({text:y,type:v})=>{const _=[v];if(v==="current"){const x=a(y,v);x.isSame(i.selectedDay,"day")&&_.push(h.is("selected")),x.isSame(o,"day")&&_.push(h.is("today"))}return _};return t({getFormattedDate:a}),(y,v)=>($(),K("table",{class:N([g(p).b(),g(p).is("range",g(n))]),cellspacing:"0",cellpadding:"0"},[y.hideHeader?ke("v-if",!0):($(),K("thead",gEe,[($(!0),K(bt,null,or(g(l),_=>($(),K("th",{key:_},rt(_),1))),128))])),G("tbody",null,[($(!0),K(bt,null,or(g(s),(_,x)=>($(),K("tr",{key:x,class:N({[g(p).e("row")]:!0,[g(p).em("row","hide-border")]:x===0&&y.hideHeader})},[($(!0),K(bt,null,or(_,(S,C)=>($(),K("td",{key:C,class:N(m(S)),onClick:E=>g(c)(S)},[G("div",{class:N(g(h).b())},[Be(y.$slots,"date-cell",{data:g(u)(S)},()=>[G("span",null,rt(S.text),1)])],2)],10,yEe))),128))],2))),128))])],2))}});var Cj=ot(bEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const _Ee=(e,t)=>{const r=e.endOf("month"),i=t.startOf("month"),o=r.isSame(i,"week")?i.add(1,"week"):i;return[[e,r],[o.startOf("week"),t]]},wEe=(e,t)=>{const r=e.endOf("month"),i=e.add(1,"month").startOf("month"),n=r.isSame(i,"week")?i.add(1,"week"):i,o=n.endOf("month"),s=t.startOf("month"),l=o.isSame(s,"week")?s.add(1,"week"):s;return[[e,r],[n.startOf("week"),o],[l.startOf("week"),t]]},xEe=(e,t,r)=>{const i=go(),{lang:n}=Hr(),o=F(),s=nr().locale(n.value),l=O({get(){return e.modelValue?c.value:o.value},set(x){if(!x)return;o.value=x;const S=x.toDate();t(ss,S),t(ar,S)}}),a=O(()=>{if(!e.range)return[];const x=e.range.map(E=>nr(E).locale(n.value)),[S,C]=x;return S.isAfter(C)?[]:S.isSame(C,"month")?y(S,C):S.add(1,"month").month()!==C.month()?[]:y(S,C)}),c=O(()=>e.modelValue?nr(e.modelValue).locale(n.value):l.value||(a.value.length?a.value[0][0]:s)),u=O(()=>c.value.subtract(1,"month").date(1)),p=O(()=>c.value.add(1,"month").date(1)),h=O(()=>c.value.subtract(1,"year").date(1)),m=O(()=>c.value.add(1,"year").date(1)),y=(x,S)=>{const C=x.startOf("week"),E=S.endOf("week"),T=C.get("month"),w=E.get("month");return T===w?[[C,E]]:(T+1)%12===w?_Ee(C,E):T+2===w||(T+1)%11===w?wEe(C,E):[]},v=x=>{l.value=x},_=x=>{const C={"prev-month":u.value,"next-month":p.value,"prev-year":h.value,"next-year":m.value,today:s}[x];C.isSame(c.value,"day")||v(C)};return yd({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},O(()=>!!i.dateCell)),{calculateValidatedDateRange:y,date:c,realSelectedDay:l,pickDay:v,selectDate:_,validatedRange:a}},CEe=e=>wt(e)&&e.length===2&&e.every(t=>Zm(t)),kEe=ct({modelValue:{type:Date},range:{type:Oe(Array),validator:CEe}}),SEe={[ar]:e=>Zm(e),[ss]:e=>Zm(e)},EEe="ElCalendar",TEe=ye({name:EEe}),AEe=ye({...TEe,props:kEe,emits:SEe,setup(e,{expose:t,emit:r}){const i=e,n=He("calendar"),{calculateValidatedDateRange:o,date:s,pickDay:l,realSelectedDay:a,selectDate:c,validatedRange:u}=xEe(i,r),{t:p}=Hr(),h=O(()=>{const m=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${p("el.datepicker.year")} ${p(m)}`});return t({selectedDay:a,pickDay:l,selectDate:c,calculateValidatedDateRange:o}),(m,y)=>($(),K("div",{class:N(g(n).b())},[G("div",{class:N(g(n).e("header"))},[Be(m.$slots,"header",{date:g(h)},()=>[G("div",{class:N(g(n).e("title"))},rt(g(h)),3),g(u).length===0?($(),K("div",{key:0,class:N(g(n).e("button-group"))},[Y(g(t4),null,{default:me(()=>[Y(g(Rn),{size:"small",onClick:y[0]||(y[0]=v=>g(c)("prev-month"))},{default:me(()=>[Ir(rt(g(p)("el.datepicker.prevMonth")),1)]),_:1}),Y(g(Rn),{size:"small",onClick:y[1]||(y[1]=v=>g(c)("today"))},{default:me(()=>[Ir(rt(g(p)("el.datepicker.today")),1)]),_:1}),Y(g(Rn),{size:"small",onClick:y[2]||(y[2]=v=>g(c)("next-month"))},{default:me(()=>[Ir(rt(g(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ke("v-if",!0)])],2),g(u).length===0?($(),K("div",{key:0,class:N(g(n).e("body"))},[Y(Cj,{date:g(s),"selected-day":g(a),onPick:g(l)},fd({_:2},[m.$slots["date-cell"]||m.$slots.dateCell?{name:"date-cell",fn:me(v=>[m.$slots["date-cell"]?Be(m.$slots,"date-cell",Ya(sr({key:0},v))):Be(m.$slots,"dateCell",Ya(sr({key:1},v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):($(),K("div",{key:1,class:N(g(n).e("body"))},[($(!0),K(bt,null,or(g(u),(v,_)=>($(),Te(Cj,{key:_,date:v[0],"selected-day":g(a),range:v,"hide-header":_!==0,onPick:g(l)},fd({_:2},[m.$slots["date-cell"]||m.$slots.dateCell?{name:"date-cell",fn:me(x=>[m.$slots["date-cell"]?Be(m.$slots,"date-cell",Ya(sr({key:0},x))):Be(m.$slots,"dateCell",Ya(sr({key:1},x)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var MEe=ot(AEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const IEe=lr(MEe),PEe=ct({header:{type:String,default:""},bodyStyle:{type:Oe([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),$Ee=ye({name:"ElCard"}),OEe=ye({...$Ee,props:PEe,setup(e){const t=He("card");return(r,i)=>($(),K("div",{class:N([g(t).b(),g(t).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?($(),K("div",{key:0,class:N(g(t).e("header"))},[Be(r.$slots,"header",{},()=>[Ir(rt(r.header),1)])],2)):ke("v-if",!0),G("div",{class:N(g(t).e("body")),style:St(r.bodyStyle)},[Be(r.$slots,"default")],6)],2))}});var LEe=ot(OEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const REe=lr(LEe),DEe=ct({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),NEe={change:(e,t)=>[e,t].every(Gt)},kj=300,FEe=(e,t,r)=>{const{children:i,addChild:n,removeChild:o}=yY(Xt(),"ElCarouselItem"),s=F(-1),l=F(null),a=F(!1),c=F(),u=O(()=>e.arrow!=="never"&&!g(m)),p=O(()=>i.value.some(Q=>Q.props.label.toString().length>0)),h=O(()=>e.type==="card"),m=O(()=>e.direction==="vertical"),y=jm(Q=>{C(Q)},kj,{trailing:!0}),v=jm(Q=>{W(Q)},kj);function _(){l.value&&(clearInterval(l.value),l.value=null)}function x(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>S(),e.interval))}const S=()=>{s.value<i.value.length-1?s.value=s.value+1:e.loop&&(s.value=0)};function C(Q){if(Kt(Q)){const H=i.value.filter(ee=>ee.props.name===Q);H.length>0&&(Q=i.value.indexOf(H[0]))}if(Q=Number(Q),Number.isNaN(Q)||Q!==Math.floor(Q))return;const B=i.value.length,V=s.value;Q<0?s.value=e.loop?B-1:0:Q>=B?s.value=e.loop?0:B-1:s.value=Q,V===s.value&&E(V),U()}function E(Q){i.value.forEach((B,V)=>{B.translateItem(V,s.value,Q)})}function T(Q,B){var V,H,ee,ce;const re=g(i),fe=re.length;if(fe===0||!Q.states.inStage)return!1;const Ne=B+1,de=B-1,_e=fe-1,ae=re[_e].states.active,X=re[0].states.active,he=(H=(V=re[Ne])==null?void 0:V.states)==null?void 0:H.active,$e=(ce=(ee=re[de])==null?void 0:ee.states)==null?void 0:ce.active;return B===_e&&X||he?"left":B===0&&ae||$e?"right":!1}function w(){a.value=!0,e.pauseOnHover&&_()}function I(){a.value=!1,x()}function M(Q){g(m)||i.value.forEach((B,V)=>{Q===T(B,V)&&(B.states.hover=!0)})}function L(){g(m)||i.value.forEach(Q=>{Q.states.hover=!1})}function R(Q){s.value=Q}function W(Q){e.trigger==="hover"&&Q!==s.value&&(s.value=Q)}function z(){C(s.value-1)}function j(){C(s.value+1)}function U(){_(),x()}Ve(()=>s.value,(Q,B)=>{E(B),B>-1&&t("change",Q,B)}),Ve(()=>e.autoplay,Q=>{Q?x():_()}),Ve(()=>e.loop,()=>{C(s.value)}),Ve(()=>e.interval,()=>{U()}),Ve(()=>i.value,()=>{i.value.length>0&&C(e.initialIndex)});const Z=gi();return er(()=>{Z.value=Uo(c.value,()=>{E()}),x()}),Ii(()=>{_(),c.value&&Z.value&&Z.value.stop()}),cr(Wq,{root:c,isCardType:h,isVertical:m,items:i,loop:e.loop,addItem:n,removeItem:o,setActiveItem:C}),{root:c,activeIndex:s,arrowDisplay:u,hasLabel:p,hover:a,isCardType:h,items:i,handleButtonEnter:M,handleButtonLeave:L,handleIndicatorClick:R,handleMouseEnter:w,handleMouseLeave:I,setActiveItem:C,prev:z,next:j,throttledArrowClick:y,throttledIndicatorHover:v}},zEe=["onMouseenter","onClick"],jEe={key:0},VEe="ElCarousel",BEe=ye({name:VEe}),UEe=ye({...BEe,props:DEe,emits:NEe,setup(e,{expose:t,emit:r}){const i=e,{root:n,activeIndex:o,arrowDisplay:s,hasLabel:l,hover:a,isCardType:c,items:u,handleButtonEnter:p,handleButtonLeave:h,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:v,setActiveItem:_,prev:x,next:S,throttledArrowClick:C,throttledIndicatorHover:E}=FEe(i,r),T=He("carousel"),w=O(()=>{const M=[T.b(),T.m(i.direction)];return g(c)&&M.push(T.m("card")),M}),I=O(()=>{const M=[T.e("indicators"),T.em("indicators",i.direction)];return g(l)&&M.push(T.em("indicators","labels")),(i.indicatorPosition==="outside"||g(c))&&M.push(T.em("indicators","outside")),M});return t({setActiveItem:_,prev:x,next:S}),(M,L)=>($(),K("div",{ref_key:"root",ref:n,class:N(g(w)),onMouseenter:L[6]||(L[6]=Yt((...R)=>g(y)&&g(y)(...R),["stop"])),onMouseleave:L[7]||(L[7]=Yt((...R)=>g(v)&&g(v)(...R),["stop"]))},[G("div",{class:N(g(T).e("container")),style:St({height:M.height})},[g(s)?($(),Te(Xi,{key:0,name:"carousel-arrow-left",persisted:""},{default:me(()=>[kt(G("button",{type:"button",class:N([g(T).e("arrow"),g(T).em("arrow","left")]),onMouseenter:L[0]||(L[0]=R=>g(p)("left")),onMouseleave:L[1]||(L[1]=(...R)=>g(h)&&g(h)(...R)),onClick:L[2]||(L[2]=Yt(R=>g(C)(g(o)-1),["stop"]))},[Y(g(At),null,{default:me(()=>[Y(g(kh))]),_:1})],34),[[Vt,(M.arrow==="always"||g(a))&&(i.loop||g(o)>0)]])]),_:1})):ke("v-if",!0),g(s)?($(),Te(Xi,{key:1,name:"carousel-arrow-right",persisted:""},{default:me(()=>[kt(G("button",{type:"button",class:N([g(T).e("arrow"),g(T).em("arrow","right")]),onMouseenter:L[3]||(L[3]=R=>g(p)("right")),onMouseleave:L[4]||(L[4]=(...R)=>g(h)&&g(h)(...R)),onClick:L[5]||(L[5]=Yt(R=>g(C)(g(o)+1),["stop"]))},[Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})],34),[[Vt,(M.arrow==="always"||g(a))&&(i.loop||g(o)<g(u).length-1)]])]),_:1})):ke("v-if",!0),Be(M.$slots,"default")],6),M.indicatorPosition!=="none"?($(),K("ul",{key:0,class:N(g(I))},[($(!0),K(bt,null,or(g(u),(R,W)=>($(),K("li",{key:W,class:N([g(T).e("indicator"),g(T).em("indicator",M.direction),g(T).is("active",W===g(o))]),onMouseenter:z=>g(E)(W),onClick:Yt(z=>g(m)(W),["stop"])},[G("button",{class:N(g(T).e("button"))},[g(l)?($(),K("span",jEe,rt(R.props.label),1)):ke("v-if",!0)],2)],42,zEe))),128))],2)):ke("v-if",!0)],34))}});var WEe=ot(UEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const HEe=ct({name:{type:String,default:""},label:{type:[String,Number],default:""}}),GEe=(e,t)=>{const r=_t(Wq),i=Xt(),n=.83,o=F(!1),s=F(0),l=F(1),a=F(!1),c=F(!1),u=F(!1),p=F(!1),{isCardType:h,isVertical:m}=r;function y(C,E,T){const w=T-1,I=E-1,M=E+1,L=T/2;return E===0&&C===w?-1:E===w&&C===0?T:C<I&&E-C>=L?T+1:C>M&&C-E>=L?-2:C}function v(C,E){var T;const w=((T=r.root.value)==null?void 0:T.offsetWidth)||0;return u.value?w*((2-n)*(C-E)+1)/4:C<E?-(1+n)*w/4:(3+n)*w/4}function _(C,E,T){const w=r.root.value;return w?((T?w.offsetHeight:w.offsetWidth)||0)*(C-E):0}const x=(C,E,T)=>{var w;const I=g(h),M=(w=r.items.value.length)!=null?w:Number.NaN,L=C===E;!I&&!po(T)&&(p.value=L||C===T),!L&&M>2&&r.loop&&(C=y(C,E,M));const R=g(m);a.value=L,I?(u.value=Math.round(Math.abs(C-E))<=1,s.value=v(C,E),l.value=g(a)?1:n):s.value=_(C,E,R),c.value=!0};function S(){if(r&&g(h)){const C=r.items.value.findIndex(({uid:E})=>E===i.uid);r.setActiveItem(C)}}return er(()=>{r.addItem({props:e,states:kr({hover:o,translate:s,scale:l,active:a,ready:c,inStage:u,animating:p}),uid:i.uid,translateItem:x})}),pu(()=>{r.removeItem(i.uid)}),{active:a,animating:p,hover:o,inStage:u,isVertical:m,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:S}},qEe=ye({name:"ElCarouselItem"}),YEe=ye({...qEe,props:HEe,setup(e){const t=e,r=He("carousel"),{active:i,animating:n,hover:o,inStage:s,isVertical:l,translate:a,isCardType:c,scale:u,ready:p,handleItemClick:h}=GEe(t),m=O(()=>{const v=`${`translate${g(l)?"Y":"X"}`}(${g(a)}px)`,_=`scale(${g(u)})`;return{transform:[v,_].join(" ")}});return(y,v)=>kt(($(),K("div",{class:N([g(r).e("item"),g(r).is("active",g(i)),g(r).is("in-stage",g(s)),g(r).is("hover",g(o)),g(r).is("animating",g(n)),{[g(r).em("item","card")]:g(c)}]),style:St(g(m)),onClick:v[0]||(v[0]=(..._)=>g(h)&&g(h)(..._))},[g(c)?kt(($(),K("div",{key:0,class:N(g(r).e("mask"))},null,2)),[[Vt,!g(i)]]):ke("v-if",!0),Be(y.$slots,"default")],6)),[[Vt,g(p)]])}});var hK=ot(YEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const KEe=lr(WEe,{CarouselItem:hK}),ZEe=Hi(hK),fK={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Vs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},mK={[ar]:e=>Kt(e)||Gt(e)||Ln(e),change:e=>Kt(e)||Gt(e)||Ln(e)},QEe=({model:e,isChecked:t})=>{const r=_t(g0,void 0),i=O(()=>{var o,s;const l=(o=r==null?void 0:r.max)==null?void 0:o.value,a=(s=r==null?void 0:r.min)==null?void 0:s.value;return!po(l)&&e.value.length>=l&&!t.value||!po(a)&&e.value.length<=a&&t.value});return{isDisabled:Gs(O(()=>(r==null?void 0:r.disabled.value)||i.value)),isLimitDisabled:i}},JEe=(e,{model:t,isLimitExceeded:r,hasOwnLabel:i,isDisabled:n,isLabeledByFormItem:o})=>{const s=_t(g0,void 0),{formItem:l}=ps(),{emit:a}=Xt();function c(y){var v,_;return y===e.trueLabel||y===!0?(v=e.trueLabel)!=null?v:!0:(_=e.falseLabel)!=null?_:!1}function u(y,v){a("change",c(y),v)}function p(y){if(r.value)return;const v=y.target;a("change",c(v.checked),y)}async function h(y){r.value||!i.value&&!n.value&&o.value&&(y.composedPath().some(x=>x.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await Ct(),u(t.value,y)))}const m=O(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return Ve(()=>e.modelValue,()=>{m.value&&(l==null||l.validate("change").catch(y=>void 0))}),{handleChange:p,onClickRoot:h}},XEe=e=>{const t=F(!1),{emit:r}=Xt(),i=_t(g0,void 0),n=O(()=>po(i)===!1),o=F(!1);return{model:O({get(){var l,a;return n.value?(l=i==null?void 0:i.modelValue)==null?void 0:l.value:(a=e.modelValue)!=null?a:t.value},set(l){var a,c;n.value&&wt(l)?(o.value=((a=i==null?void 0:i.max)==null?void 0:a.value)!==void 0&&l.length>(i==null?void 0:i.max.value),o.value===!1&&((c=i==null?void 0:i.changeEvent)==null||c.call(i,l))):(r(ar,l),t.value=l)}}),isGroup:n,isLimitExceeded:o}},e3e=(e,t,{model:r})=>{const i=_t(g0,void 0),n=F(!1),o=O(()=>{const c=r.value;return Ln(c)?c:wt(c)?yr(e.label)?c.map(ei).some(u=>yl(u,e.label)):c.map(ei).includes(e.label):c!=null?c===e.trueLabel:!!c}),s=An(O(()=>{var c;return(c=i==null?void 0:i.size)==null?void 0:c.value}),{prop:!0}),l=An(O(()=>{var c;return(c=i==null?void 0:i.size)==null?void 0:c.value})),a=O(()=>!!(t.default||e.label));return{checkboxButtonSize:s,isChecked:o,isFocused:n,checkboxSize:l,hasOwnLabel:a}},t3e=(e,{model:t})=>{function r(){wt(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},gK=(e,t)=>{const{formItem:r}=ps(),{model:i,isGroup:n,isLimitExceeded:o}=XEe(e),{isFocused:s,isChecked:l,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u}=e3e(e,t,{model:i}),{isDisabled:p}=QEe({model:i,isChecked:l}),{inputId:h,isLabeledByFormItem:m}=jh(e,{formItemContext:r,disableIdGeneration:u,disableIdManagement:n}),{handleChange:y,onClickRoot:v}=JEe(e,{model:i,isLimitExceeded:o,hasOwnLabel:u,isDisabled:p,isLabeledByFormItem:m});return t3e(e,{model:i}),{inputId:h,isLabeledByFormItem:m,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,model:i,handleChange:y,onClickRoot:v}},r3e=["tabindex","role","aria-checked"],i3e=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],n3e=["id","aria-hidden","disabled","value","name","tabindex"],o3e=ye({name:"ElCheckbox"}),s3e=ye({...o3e,props:fK,emits:mK,setup(e){const t=e,r=go(),{inputId:i,isLabeledByFormItem:n,isChecked:o,isDisabled:s,isFocused:l,checkboxSize:a,hasOwnLabel:c,model:u,handleChange:p,onClickRoot:h}=gK(t,r),m=He("checkbox"),y=O(()=>[m.b(),m.m(a.value),m.is("disabled",s.value),m.is("bordered",t.border),m.is("checked",o.value)]),v=O(()=>[m.e("input"),m.is("disabled",s.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",l.value)]);return(_,x)=>($(),Te(br(!g(c)&&g(n)?"span":"label"),{class:N(g(y)),"aria-controls":_.indeterminate?_.controls:null,onClick:g(h)},{default:me(()=>[G("span",{class:N(g(v)),tabindex:_.indeterminate?0:void 0,role:_.indeterminate?"checkbox":void 0,"aria-checked":_.indeterminate?"mixed":void 0},[_.trueLabel||_.falseLabel?kt(($(),K("input",{key:0,id:g(i),"onUpdate:modelValue":x[0]||(x[0]=S=>hi(u)?u.value=S:null),class:N(g(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",name:_.name,tabindex:_.tabindex,disabled:g(s),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:x[1]||(x[1]=(...S)=>g(p)&&g(p)(...S)),onFocus:x[2]||(x[2]=S=>l.value=!0),onBlur:x[3]||(x[3]=S=>l.value=!1)},null,42,i3e)),[[eS,g(u)]]):kt(($(),K("input",{key:1,id:g(i),"onUpdate:modelValue":x[4]||(x[4]=S=>hi(u)?u.value=S:null),class:N(g(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",disabled:g(s),value:_.label,name:_.name,tabindex:_.tabindex,onChange:x[5]||(x[5]=(...S)=>g(p)&&g(p)(...S)),onFocus:x[6]||(x[6]=S=>l.value=!0),onBlur:x[7]||(x[7]=S=>l.value=!1)},null,42,n3e)),[[eS,g(u)]]),G("span",{class:N(g(m).e("inner"))},null,2)],10,r3e),g(c)?($(),K("span",{key:0,class:N(g(m).e("label"))},[Be(_.$slots,"default"),_.$slots.default?ke("v-if",!0):($(),K(bt,{key:0},[Ir(rt(_.label),1)],64))],2)):ke("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var l3e=ot(s3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const a3e=["name","tabindex","disabled","true-value","false-value"],c3e=["name","tabindex","disabled","value"],u3e=ye({name:"ElCheckboxButton"}),d3e=ye({...u3e,props:fK,emits:mK,setup(e){const t=e,r=go(),{isFocused:i,isChecked:n,isDisabled:o,checkboxButtonSize:s,model:l,handleChange:a}=gK(t,r),c=_t(g0,void 0),u=He("checkbox"),p=O(()=>{var m,y,v,_;const x=(y=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?y:"";return{backgroundColor:x,borderColor:x,color:(_=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?_:"",boxShadow:x?`-1px 0 0 0 ${x}`:void 0}}),h=O(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",o.value),u.is("checked",n.value),u.is("focus",i.value)]);return(m,y)=>($(),K("label",{class:N(g(h))},[m.trueLabel||m.falseLabel?kt(($(),K("input",{key:0,"onUpdate:modelValue":y[0]||(y[0]=v=>hi(l)?l.value=v:null),class:N(g(u).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:g(o),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:y[1]||(y[1]=(...v)=>g(a)&&g(a)(...v)),onFocus:y[2]||(y[2]=v=>i.value=!0),onBlur:y[3]||(y[3]=v=>i.value=!1)},null,42,a3e)),[[eS,g(l)]]):kt(($(),K("input",{key:1,"onUpdate:modelValue":y[4]||(y[4]=v=>hi(l)?l.value=v:null),class:N(g(u).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:g(o),value:m.label,onChange:y[5]||(y[5]=(...v)=>g(a)&&g(a)(...v)),onFocus:y[6]||(y[6]=v=>i.value=!0),onBlur:y[7]||(y[7]=v=>i.value=!1)},null,42,c3e)),[[eS,g(l)]]),m.$slots.default||m.label?($(),K("span",{key:2,class:N(g(u).be("button","inner")),style:St(g(n)?g(p):void 0)},[Be(m.$slots,"default",{},()=>[Ir(rt(m.label),1)])],6)):ke("v-if",!0)],2))}});var yK=ot(d3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const p3e=ct({modelValue:{type:Oe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Vs,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),h3e={[ar]:e=>wt(e),change:e=>wt(e)},f3e=ye({name:"ElCheckboxGroup"}),m3e=ye({...f3e,props:p3e,emits:h3e,setup(e,{emit:t}){const r=e,i=He("checkbox"),{formItem:n}=ps(),{inputId:o,isLabeledByFormItem:s}=jh(r,{formItemContext:n}),l=async c=>{t(ar,c),await Ct(),t("change",c)},a=O({get(){return r.modelValue},set(c){l(c)}});return cr(g0,{...nd(Fn(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:a,changeEvent:l}),Ve(()=>r.modelValue,()=>{r.validateEvent&&(n==null||n.validate("change").catch(c=>void 0))}),(c,u)=>{var p;return $(),Te(br(c.tag),{id:g(o),class:N(g(i).b("group")),role:"group","aria-label":g(s)?void 0:c.label||"checkbox-group","aria-labelledby":g(s)?(p=g(n))==null?void 0:p.labelId:void 0},{default:me(()=>[Be(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var vK=ot(m3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const sa=lr(l3e,{CheckboxButton:yK,CheckboxGroup:vK}),g3e=Hi(yK),bK=Hi(vK),_K=ct({size:Vs,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),y3e=ct({..._K,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),wK={[ar]:e=>Kt(e)||Gt(e)||Ln(e),[_i]:e=>Kt(e)||Gt(e)||Ln(e)},xK=(e,t)=>{const r=F(),i=_t(Kq,void 0),n=O(()=>!!i),o=O({get(){return n.value?i.modelValue:e.modelValue},set(u){n.value?i.changeEvent(u):t&&t(ar,u),r.value.checked=e.modelValue===e.label}}),s=An(O(()=>i==null?void 0:i.size)),l=Gs(O(()=>i==null?void 0:i.disabled)),a=F(!1),c=O(()=>l.value||n.value&&o.value!==e.label?-1:0);return{radioRef:r,isGroup:n,radioGroup:i,focus:a,size:s,disabled:l,tabIndex:c,modelValue:o}},v3e=["value","name","disabled"],b3e=ye({name:"ElRadio"}),_3e=ye({...b3e,props:y3e,emits:wK,setup(e,{emit:t}){const r=e,i=He("radio"),{radioRef:n,radioGroup:o,focus:s,size:l,disabled:a,modelValue:c}=xK(r,t);function u(){Ct(()=>t("change",c.value))}return(p,h)=>{var m;return $(),K("label",{class:N([g(i).b(),g(i).is("disabled",g(a)),g(i).is("focus",g(s)),g(i).is("bordered",p.border),g(i).is("checked",g(c)===p.label),g(i).m(g(l))])},[G("span",{class:N([g(i).e("input"),g(i).is("disabled",g(a)),g(i).is("checked",g(c)===p.label)])},[kt(G("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":h[0]||(h[0]=y=>hi(c)?c.value=y:null),class:N(g(i).e("original")),value:p.label,name:p.name||((m=g(o))==null?void 0:m.name),disabled:g(a),type:"radio",onFocus:h[1]||(h[1]=y=>s.value=!0),onBlur:h[2]||(h[2]=y=>s.value=!1),onChange:u},null,42,v3e),[[_G,g(c)]]),G("span",{class:N(g(i).e("inner"))},null,2)],2),G("span",{class:N(g(i).e("label")),onKeydown:h[3]||(h[3]=Yt(()=>{},["stop"]))},[Be(p.$slots,"default",{},()=>[Ir(rt(p.label),1)])],34)],2)}}});var w3e=ot(_3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const x3e=ct({..._K,name:{type:String,default:""}}),C3e=["value","name","disabled"],k3e=ye({name:"ElRadioButton"}),S3e=ye({...k3e,props:x3e,setup(e){const t=e,r=He("radio"),{radioRef:i,focus:n,size:o,disabled:s,modelValue:l,radioGroup:a}=xK(t),c=O(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(u,p)=>{var h;return $(),K("label",{class:N([g(r).b("button"),g(r).is("active",g(l)===u.label),g(r).is("disabled",g(s)),g(r).is("focus",g(n)),g(r).bm("button",g(o))])},[kt(G("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":p[0]||(p[0]=m=>hi(l)?l.value=m:null),class:N(g(r).be("button","original-radio")),value:u.label,type:"radio",name:u.name||((h=g(a))==null?void 0:h.name),disabled:g(s),onFocus:p[1]||(p[1]=m=>n.value=!0),onBlur:p[2]||(p[2]=m=>n.value=!1)},null,42,C3e),[[_G,g(l)]]),G("span",{class:N(g(r).be("button","inner")),style:St(g(l)===u.label?g(c):{}),onKeydown:p[3]||(p[3]=Yt(()=>{},["stop"]))},[Be(u.$slots,"default",{},()=>[Ir(rt(u.label),1)])],38)],2)}}});var CK=ot(S3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const E3e=ct({id:{type:String,default:void 0},size:Vs,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),T3e=wK,A3e=["id","aria-label","aria-labelledby"],M3e=ye({name:"ElRadioGroup"}),I3e=ye({...M3e,props:E3e,emits:T3e,setup(e,{emit:t}){const r=e,i=He("radio"),n=ac(),o=F(),{formItem:s}=ps(),{inputId:l,isLabeledByFormItem:a}=jh(r,{formItemContext:s}),c=p=>{t(ar,p),Ct(()=>t("change",p))};er(()=>{const p=o.value.querySelectorAll("[type=radio]"),h=p[0];!Array.from(p).some(m=>m.checked)&&h&&(h.tabIndex=0)});const u=O(()=>r.name||n.value);return cr(Kq,kr({...Fn(r),changeEvent:c,name:u})),Ve(()=>r.modelValue,()=>{r.validateEvent&&(s==null||s.validate("change").catch(p=>void 0))}),(p,h)=>($(),K("div",{id:g(l),ref_key:"radioGroupRef",ref:o,class:N(g(i).b("group")),role:"radiogroup","aria-label":g(a)?void 0:p.label||"radio-group","aria-labelledby":g(a)?g(s).labelId:void 0},[Be(p.$slots,"default")],10,A3e))}});var kK=ot(I3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const SK=lr(w3e,{RadioButton:CK,RadioGroup:kK}),TP=Hi(kK),AP=Hi(CK);var P3e=ye({name:"NodeContent",setup(){return{ns:He("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:r}=this.$parent,{data:i,label:n}=t,{renderLabelFn:o}=r;return Lt("span",{class:e.e("label")},o?o({node:t,data:i}):n)}});const n4=Symbol(),$3e=ye({name:"ElCascaderNode",components:{ElCheckbox:sa,ElRadio:SK,NodeContent:P3e,ElIcon:At,Check:U1,Loading:zh,ArrowRight:os},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const r=_t(n4),i=He("cascader-node"),n=O(()=>r.isHoverMenu),o=O(()=>r.config.multiple),s=O(()=>r.config.checkStrictly),l=O(()=>{var w;return(w=r.checkedNodes[0])==null?void 0:w.uid}),a=O(()=>e.node.isDisabled),c=O(()=>e.node.isLeaf),u=O(()=>s.value&&!c.value||!a.value),p=O(()=>m(r.expandingNode)),h=O(()=>s.value&&r.checkedNodes.some(m)),m=w=>{var I;const{level:M,uid:L}=e.node;return((I=w==null?void 0:w.pathNodes[M-1])==null?void 0:I.uid)===L},y=()=>{p.value||r.expandNode(e.node)},v=w=>{const{node:I}=e;w!==I.checked&&r.handleCheckChange(I,w)},_=()=>{r.lazyLoad(e.node,()=>{c.value||y()})},x=w=>{!n.value||(S(),!c.value&&t("expand",w))},S=()=>{const{node:w}=e;!u.value||w.loading||(w.loaded?y():_())},C=()=>{n.value&&!c.value||(c.value&&!a.value&&!s.value&&!o.value?T(!0):S())},E=w=>{s.value?(v(w),e.node.loaded&&y()):T(w)},T=w=>{e.node.loaded?(v(w),!s.value&&y()):_()};return{panel:r,isHoverMenu:n,multiple:o,checkStrictly:s,checkedNodeId:l,isDisabled:a,isLeaf:c,expandable:u,inExpandingPath:p,inCheckedPath:h,ns:i,handleHoverExpand:x,handleExpand:S,handleClick:C,handleCheck:T,handleSelectCheck:E}}}),O3e=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],L3e=G("span",null,null,-1);function R3e(e,t,r,i,n,o){const s=Ft("el-checkbox"),l=Ft("el-radio"),a=Ft("check"),c=Ft("el-icon"),u=Ft("node-content"),p=Ft("loading"),h=Ft("arrow-right");return $(),K("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:N([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...m)=>e.handleHoverExpand&&e.handleHoverExpand(...m)),onFocus:t[3]||(t[3]=(...m)=>e.handleHoverExpand&&e.handleHoverExpand(...m)),onClick:t[4]||(t[4]=(...m)=>e.handleClick&&e.handleClick(...m))},[ke(" prefix "),e.multiple?($(),Te(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=Yt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?($(),Te(l,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=Yt(()=>{},["stop"]))},{default:me(()=>[ke(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),L3e]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?($(),Te(c,{key:2,class:N(e.ns.e("prefix"))},{default:me(()=>[Y(a)]),_:1},8,["class"])):ke("v-if",!0),ke(" content "),Y(u),ke(" postfix "),e.isLeaf?ke("v-if",!0):($(),K(bt,{key:3},[e.node.loading?($(),Te(c,{key:0,class:N([e.ns.is("loading"),e.ns.e("postfix")])},{default:me(()=>[Y(p)]),_:1},8,["class"])):($(),Te(c,{key:1,class:N(["arrow-right",e.ns.e("postfix")])},{default:me(()=>[Y(h)]),_:1},8,["class"]))],64))],42,O3e)}var D3e=ot($3e,[["render",R3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const N3e=ye({name:"ElCascaderMenu",components:{Loading:zh,ElIcon:At,ElScrollbar:Ld,ElCascaderNode:D3e},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Xt(),r=He("cascader-menu"),{t:i}=Hr(),n=h3();let o=null,s=null;const l=_t(n4),a=F(null),c=O(()=>!e.nodes.length),u=O(()=>!l.initialLoaded),p=O(()=>`cascader-menu-${n}-${e.index}`),h=_=>{o=_.target},m=_=>{if(!(!l.isHoverMenu||!o||!a.value))if(o.contains(_.target)){y();const x=t.vnode.el,{left:S}=x.getBoundingClientRect(),{offsetWidth:C,offsetHeight:E}=x,T=_.clientX-S,w=o.offsetTop,I=w+o.offsetHeight;a.value.innerHTML=`
- <path style="pointer-events: auto;" fill="transparent" d="M${T} ${w} L${C} 0 V${w} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${C} ${E} V${I} Z" />
- `}else s||(s=window.setTimeout(v,l.config.hoverThreshold))},y=()=>{!s||(clearTimeout(s),s=null)},v=()=>{!a.value||(a.value.innerHTML="",y())};return{ns:r,panel:l,hoverZone:a,isEmpty:c,isLoading:u,menuId:p,t:i,handleExpand:h,handleMouseMove:m,clearHoverZone:v}}});function F3e(e,t,r,i,n,o){const s=Ft("el-cascader-node"),l=Ft("loading"),a=Ft("el-icon"),c=Ft("el-scrollbar");return $(),Te(c,{key:e.menuId,tag:"ul",role:"menu",class:N(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:me(()=>{var u;return[($(!0),K(bt,null,or(e.nodes,p=>($(),Te(s,{key:p.uid,node:p,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?($(),K("div",{key:0,class:N(e.ns.e("empty-text"))},[Y(a,{size:"14",class:N(e.ns.is("loading"))},{default:me(()=>[Y(l)]),_:1},8,["class"]),Ir(" "+rt(e.t("el.cascader.loading")),1)],2)):e.isEmpty?($(),K("div",{key:1,class:N(e.ns.e("empty-text"))},rt(e.t("el.cascader.noData")),3)):(u=e.panel)!=null&&u.isHoverMenu?($(),K("svg",{key:2,ref:"hoverZone",class:N(e.ns.e("hover-zone"))},null,2)):ke("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var z3e=ot(N3e,[["render",F3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let j3e=0;const V3e=e=>{const t=[e];let{parent:r}=e;for(;r;)t.unshift(r),r=r.parent;return t};class Nv{constructor(t,r,i,n=!1){this.data=t,this.config=r,this.parent=i,this.root=n,this.uid=j3e++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:s,children:l}=r,a=t[l],c=V3e(this);this.level=n?0:i?i.level+1:1,this.value=t[o],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(u=>u.value),this.pathLabels=c.map(u=>u.label),this.childrenData=a,this.children=(a||[]).map(u=>new Nv(u,r,this)),this.loaded=!r.lazy||this.isLeaf||!ql(a)}get isDisabled(){const{data:t,parent:r,config:i}=this,{disabled:n,checkStrictly:o}=i;return(qt(n)?n(t,this):!!t[n])||!o&&(r==null?void 0:r.isDisabled)}get isLeaf(){const{data:t,config:r,childrenData:i,loaded:n}=this,{lazy:o,leaf:s}=r,l=qt(s)?s(t,this):t[s];return po(l)?o&&!n?!1:!(Array.isArray(i)&&i.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:r,children:i}=this,n=new Nv(t,this.config,this);return Array.isArray(r)?r.push(t):this.childrenData=[t],i.push(n),n}calcText(t,r){const i=t?this.pathLabels.join(r):this.label;return this.text=i,i}broadcast(t,...r){const i=`onParent${Yc(t)}`;this.children.forEach(n=>{n&&(n.broadcast(t,...r),n[i]&&n[i](...r))})}emit(t,...r){const{parent:i}=this,n=`onChild${Yc(t)}`;i&&(i[n]&&i[n](...r),i.emit(t,...r))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,r=t.filter(n=>!n.isDisabled),i=r.length?r.every(n=>n.checked):!1;this.setCheckState(i)}setCheckState(t){const r=this.children.length,i=this.children.reduce((n,o)=>{const s=o.checked?1:o.indeterminate?.5:0;return n+s},0);this.checked=this.loaded&&this.children.filter(n=>!n.isDisabled).every(n=>n.loaded&&n.checked)&&t,this.indeterminate=this.loaded&&i!==r&&i>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:r,multiple:i}=this.config;r||!i?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const MP=(e,t)=>e.reduce((r,i)=>(i.isLeaf?r.push(i):(!t&&r.push(i),r=r.concat(MP(i.children,t))),r),[]);class Sj{constructor(t,r){this.config=r;const i=(t||[]).map(n=>new Nv(n,this.config));this.nodes=i,this.allNodes=MP(i,!1),this.leafNodes=MP(i,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,r){const i=r?r.appendChild(t):new Nv(t,this.config);r||this.nodes.push(i),this.allNodes.push(i),i.isLeaf&&this.leafNodes.push(i)}appendNodes(t,r){t.forEach(i=>this.appendNode(i,r))}getNodeByValue(t,r=!1){return!t&&t!==0?null:this.getFlattedNodes(r).find(n=>yl(n.value,t)||yl(n.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:i,level:n})=>yl(t.value,i)&&t.level===n)||null}}const EK={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},B3e={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:ti,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},U3e=e=>O(()=>({...B3e,...e.props})),Ej=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},W3e=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():kq(e)&&e.click()},H3e=(e,t)=>{const r=t.slice(0),i=r.map(o=>o.uid),n=e.reduce((o,s)=>{const l=i.indexOf(s.uid);return l>-1&&(o.push(s),r.splice(l,1),i.splice(l,1)),o},[]);return n.push(...r),n},G3e=ye({name:"ElCascaderPanel",components:{ElCascaderMenu:z3e},props:{...EK,border:{type:Boolean,default:!0},renderLabel:Function},emits:[ar,_i,"close","expand-change"],setup(e,{emit:t,slots:r}){let i=!1;const n=He("cascader"),o=U3e(e);let s=null;const l=F(!0),a=F([]),c=F(null),u=F([]),p=F(null),h=F([]),m=O(()=>o.value.expandTrigger==="hover"),y=O(()=>e.renderLabel||r.default),v=()=>{const{options:z}=e,j=o.value;i=!1,s=new Sj(z,j),u.value=[s.getNodes()],j.lazy&&ql(e.options)?(l.value=!1,_(void 0,U=>{U&&(s=new Sj(U,j),u.value=[s.getNodes()]),l.value=!0,M(!1,!0)})):M(!1,!0)},_=(z,j)=>{const U=o.value;z=z||new Nv({},U,void 0,!0),z.loading=!0;const Z=Q=>{const B=z,V=B.root?null:B;Q&&(s==null||s.appendNodes(Q,V)),B.loading=!1,B.loaded=!0,B.childrenData=B.childrenData||[],j&&j(Q)};U.lazyLoad(z,Z)},x=(z,j)=>{var U;const{level:Z}=z,Q=u.value.slice(0,Z);let B;z.isLeaf?B=z.pathNodes[Z-2]:(B=z,Q.push(z.children)),((U=p.value)==null?void 0:U.uid)!==(B==null?void 0:B.uid)&&(p.value=z,u.value=Q,!j&&t("expand-change",(z==null?void 0:z.pathValues)||[]))},S=(z,j,U=!0)=>{const{checkStrictly:Z,multiple:Q}=o.value,B=h.value[0];i=!0,!Q&&(B==null||B.doCheck(!1)),z.doCheck(j),I(),U&&!Q&&!Z&&t("close"),!U&&!Q&&!Z&&C(z)},C=z=>{!z||(z=z.parent,C(z),z&&x(z))},E=z=>s==null?void 0:s.getFlattedNodes(z),T=z=>{var j;return(j=E(z))==null?void 0:j.filter(U=>U.checked!==!1)},w=()=>{h.value.forEach(z=>z.doCheck(!1)),I()},I=()=>{var z;const{checkStrictly:j,multiple:U}=o.value,Z=h.value,Q=T(!j),B=H3e(Z,Q),V=B.map(H=>H.valueByOption);h.value=B,c.value=U?V:(z=V[0])!=null?z:null},M=(z=!1,j=!1)=>{const{modelValue:U}=e,{lazy:Z,multiple:Q,checkStrictly:B}=o.value,V=!B;if(!(!l.value||i||!j&&yl(U,c.value)))if(Z&&!z){const ee=Iz(uve(sd(U))).map(ce=>s==null?void 0:s.getNodeByValue(ce)).filter(ce=>!!ce&&!ce.loaded&&!ce.loading);ee.length?ee.forEach(ce=>{_(ce,()=>M(!1,j))}):M(!0,j)}else{const H=Q?sd(U):[U],ee=Iz(H.map(ce=>s==null?void 0:s.getNodeByValue(ce,V)));L(ee,j),c.value=gq(U)}},L=(z,j=!0)=>{const{checkStrictly:U}=o.value,Z=h.value,Q=z.filter(H=>!!H&&(U||H.isLeaf)),B=s==null?void 0:s.getSameNode(p.value),V=j&&B||Q[0];V?V.pathNodes.forEach(H=>x(H,!0)):p.value=null,Z.forEach(H=>H.doCheck(!1)),Q.forEach(H=>H.doCheck(!0)),h.value=Q,Ct(R)},R=()=>{!Rr||a.value.forEach(z=>{const j=z==null?void 0:z.$el;if(j){const U=j.querySelector(`.${n.namespace.value}-scrollbar__wrap`),Z=j.querySelector(`.${n.b("node")}.${n.is("active")}`)||j.querySelector(`.${n.b("node")}.in-active-path`);Pq(U,Z)}})},W=z=>{const j=z.target,{code:U}=z;switch(U){case Rt.up:case Rt.down:{z.preventDefault();const Z=U===Rt.up?-1:1;fC(Sq(j,Z,`.${n.b("node")}[tabindex="-1"]`));break}case Rt.left:{z.preventDefault();const Z=a.value[Ej(j)-1],Q=Z==null?void 0:Z.$el.querySelector(`.${n.b("node")}[aria-expanded="true"]`);fC(Q);break}case Rt.right:{z.preventDefault();const Z=a.value[Ej(j)+1],Q=Z==null?void 0:Z.$el.querySelector(`.${n.b("node")}[tabindex="-1"]`);fC(Q);break}case Rt.enter:W3e(j);break}};return cr(n4,kr({config:o,expandingNode:p,checkedNodes:h,isHoverMenu:m,initialLoaded:l,renderLabelFn:y,lazyLoad:_,expandNode:x,handleCheckChange:S})),Ve([o,()=>e.options],v,{deep:!0,immediate:!0}),Ve(()=>e.modelValue,()=>{i=!1,M()},{deep:!0}),Ve(()=>c.value,z=>{yl(z,e.modelValue)||(t(ar,z),t(_i,z))}),QH(()=>a.value=[]),er(()=>!ql(e.modelValue)&&M()),{ns:n,menuList:a,menus:u,checkedNodes:h,handleKeyDown:W,handleCheckChange:S,getFlattedNodes:E,getCheckedNodes:T,clearCheckedNodes:w,calculateCheckedValue:I,scrollToExpandingNode:R}}});function q3e(e,t,r,i,n,o){const s=Ft("el-cascader-menu");return $(),K("div",{class:N([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...l)=>e.handleKeyDown&&e.handleKeyDown(...l))},[($(!0),K(bt,null,or(e.menus,(l,a)=>($(),Te(s,{key:a,ref_for:!0,ref:c=>e.menuList[a]=c,index:a,nodes:[...l]},null,8,["index","nodes"]))),128))],34)}var wC=ot(G3e,[["render",q3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);wC.install=e=>{e.component(wC.name,wC)};const TK=wC,Y3e=TK,o4=ct({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Id,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),K3e={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Z3e=ye({name:"ElTag"}),Q3e=ye({...Z3e,props:o4,emits:K3e,setup(e,{emit:t}){const r=e,i=An(),n=He("tag"),o=O(()=>{const{type:a,hit:c,effect:u,closable:p,round:h}=r;return[n.b(),n.is("closable",p),n.m(a),n.m(i.value),n.m(u),n.is("hit",c),n.is("round",h)]}),s=a=>{t("close",a)},l=a=>{t("click",a)};return(a,c)=>a.disableTransitions?($(),K("span",{key:0,class:N(g(o)),style:St({backgroundColor:a.color}),onClick:l},[G("span",{class:N(g(n).e("content"))},[Be(a.$slots,"default")],2),a.closable?($(),Te(g(At),{key:0,class:N(g(n).e("close")),onClick:Yt(s,["stop"])},{default:me(()=>[Y(g(ia))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)):($(),Te(Xi,{key:1,name:`${g(n).namespace.value}-zoom-in-center`,appear:""},{default:me(()=>[G("span",{class:N(g(o)),style:St({backgroundColor:a.color}),onClick:l},[G("span",{class:N(g(n).e("content"))},[Be(a.$slots,"default")],2),a.closable?($(),Te(g(At),{key:0,class:N(g(n).e("close")),onClick:Yt(s,["stop"])},{default:me(()=>[Y(g(ia))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)]),_:3},8,["name"]))}});var J3e=ot(Q3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const x3=lr(J3e),X3e={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:r}=e;["right","left","bottom","top"].includes(r)||(t.arrow.x=35)},requires:["arrow"]}]},eTe="ElCascader",tTe=ye({name:eTe,components:{ElCascaderPanel:TK,ElInput:Qi,ElTooltip:qs,ElScrollbar:Ld,ElTag:x3,ElIcon:At,CircleClose:Fh,Check:U1,ArrowDown:Nh},directives:{Clickoutside:Ah},props:{...EK,size:{type:String,validator:m0},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:ao.teleported,tagType:{...o4.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[ar,_i,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:t}){let r=0,i=0;const n=He("cascader"),o=He("input"),{t:s}=Hr(),{form:l,formItem:a}=ps(),c=F(null),u=F(null),p=F(null),h=F(null),m=F(null),y=F(!1),v=F(!1),_=F(!1),x=F(""),S=F(""),C=F([]),E=F([]),T=F([]),w=F(!1),I=O(()=>e.disabled||(l==null?void 0:l.disabled)),M=O(()=>e.placeholder||s("el.cascader.placeholder")),L=O(()=>S.value||C.value.length>0?"":M.value),R=An(),W=O(()=>["small"].includes(R.value)?"small":"default"),z=O(()=>!!e.props.multiple),j=O(()=>!e.filterable||z.value),U=O(()=>z.value?S.value:x.value),Z=O(()=>{var Me;return((Me=h.value)==null?void 0:Me.checkedNodes)||[]}),Q=O(()=>!e.clearable||I.value||_.value||!v.value?!1:!!Z.value.length),B=O(()=>{const{showAllLevels:Me,separator:Ie}=e,Pe=Z.value;return Pe.length?z.value?"":Pe[0].calcText(Me,Ie):""}),V=O({get(){return gq(e.modelValue)},set(Me){t(ar,Me),t(_i,Me),e.validateEvent&&(a==null||a.validate("change").catch(Ie=>void 0))}}),H=O(()=>{var Me,Ie;return(Ie=(Me=c.value)==null?void 0:Me.popperRef)==null?void 0:Ie.contentRef}),ee=Me=>{var Ie,Pe,Xe;I.value||(Me=Me!=null?Me:!y.value,Me!==y.value&&(y.value=Me,(Pe=(Ie=u.value)==null?void 0:Ie.input)==null||Pe.setAttribute("aria-expanded",`${Me}`),Me?(ce(),Ct((Xe=h.value)==null?void 0:Xe.scrollToExpandingNode)):e.filterable&&ge(),t("visible-change",Me)))},ce=()=>{Ct(()=>{var Me;(Me=c.value)==null||Me.updatePopper()})},re=()=>{_.value=!1},fe=Me=>{const{showAllLevels:Ie,separator:Pe}=e;return{node:Me,key:Me.uid,text:Me.calcText(Ie,Pe),hitState:!1,closable:!I.value&&!Me.isDisabled,isCollapseTag:!1}},Ne=Me=>{var Ie;const Pe=Me.node;Pe.doCheck(!1),(Ie=h.value)==null||Ie.calculateCheckedValue(),t("remove-tag",Pe.valueByOption)},de=()=>{if(!z.value)return;const Me=Z.value,Ie=[],Pe=[];if(Me.forEach(Xe=>Pe.push(fe(Xe))),E.value=Pe,Me.length){const[Xe,...dt]=Me,gt=dt.length;Ie.push(fe(Xe)),gt&&(e.collapseTags?Ie.push({key:-1,text:`+ ${gt}`,closable:!1,isCollapseTag:!0}):dt.forEach(Dt=>Ie.push(fe(Dt))))}C.value=Ie},_e=()=>{var Me,Ie;const{filterMethod:Pe,showAllLevels:Xe,separator:dt}=e,gt=(Ie=(Me=h.value)==null?void 0:Me.getFlattedNodes(!e.props.checkStrictly))==null?void 0:Ie.filter(Dt=>Dt.isDisabled?!1:(Dt.calcText(Xe,dt),Pe(Dt,U.value)));z.value&&(C.value.forEach(Dt=>{Dt.hitState=!1}),E.value.forEach(Dt=>{Dt.hitState=!1})),_.value=!0,T.value=gt,ce()},ae=()=>{var Me;let Ie;_.value&&m.value?Ie=m.value.$el.querySelector(`.${n.e("suggestion-item")}`):Ie=(Me=h.value)==null?void 0:Me.$el.querySelector(`.${n.b("node")}[tabindex="-1"]`),Ie&&(Ie.focus(),!_.value&&Ie.click())},X=()=>{var Me,Ie;const Pe=(Me=u.value)==null?void 0:Me.input,Xe=p.value,dt=(Ie=m.value)==null?void 0:Ie.$el;if(!(!Rr||!Pe)){if(dt){const gt=dt.querySelector(`.${n.e("suggestion-list")}`);gt.style.minWidth=`${Pe.offsetWidth}px`}if(Xe){const{offsetHeight:gt}=Xe,Dt=C.value.length>0?`${Math.max(gt+6,r)}px`:`${r}px`;Pe.style.height=Dt,ce()}}},he=Me=>{var Ie;return(Ie=h.value)==null?void 0:Ie.getCheckedNodes(Me)},$e=Me=>{ce(),t("expand-change",Me)},Je=Me=>{var Ie;const Pe=(Ie=Me.target)==null?void 0:Ie.value;if(Me.type==="compositionend")w.value=!1,Ct(()=>Fe(Pe));else{const Xe=Pe[Pe.length-1]||"";w.value=!d3(Xe)}},ne=Me=>{if(!w.value)switch(Me.code){case Rt.enter:ee();break;case Rt.down:ee(!0),Ct(ae),Me.preventDefault();break;case Rt.esc:y.value===!0&&(Me.preventDefault(),Me.stopPropagation(),ee(!1));break;case Rt.tab:ee(!1);break}},pe=()=>{var Me;(Me=h.value)==null||Me.clearCheckedNodes(),!y.value&&e.filterable&&ge(),ee(!1)},ge=()=>{const{value:Me}=B;x.value=Me,S.value=Me},Se=Me=>{var Ie,Pe;const{checked:Xe}=Me;z.value?(Ie=h.value)==null||Ie.handleCheckChange(Me,!Xe,!1):(!Xe&&((Pe=h.value)==null||Pe.handleCheckChange(Me,!0,!1)),ee(!1))},xe=Me=>{const Ie=Me.target,{code:Pe}=Me;switch(Pe){case Rt.up:case Rt.down:{const Xe=Pe===Rt.up?-1:1;fC(Sq(Ie,Xe,`.${n.e("suggestion-item")}[tabindex="-1"]`));break}case Rt.enter:Ie.click();break}},be=()=>{const Me=C.value,Ie=Me[Me.length-1];i=S.value?0:i+1,!(!Ie||!i||e.collapseTags&&Me.length>1)&&(Ie.hitState?Ne(Ie):Ie.hitState=!0)},Qe=as(()=>{const{value:Me}=U;if(!Me)return;const Ie=e.beforeFilter(Me);ww(Ie)?Ie.then(_e).catch(()=>{}):Ie!==!1?_e():re()},e.debounce),Fe=(Me,Ie)=>{!y.value&&ee(!0),!(Ie!=null&&Ie.isComposing)&&(Me?Qe():re())};return Ve(_,ce),Ve([Z,I],de),Ve(C,()=>{Ct(()=>X())}),Ve(B,ge,{immediate:!0}),er(()=>{const Me=u.value.input,Ie=Number.parseFloat(Wve(o.cssVarName("input-height"),Me).value)-2;r=Me.offsetHeight||Ie,Uo(Me,X)}),{popperOptions:X3e,tooltipRef:c,popperPaneRef:H,input:u,tagWrapper:p,panel:h,suggestionPanel:m,popperVisible:y,inputHover:v,inputPlaceholder:M,currentPlaceholder:L,filtering:_,presentText:B,checkedValue:V,inputValue:x,searchInputValue:S,presentTags:C,allPresentTags:E,suggestions:T,isDisabled:I,isOnComposition:w,realSize:R,tagSize:W,multiple:z,readonly:j,clearBtnVisible:Q,nsCascader:n,nsInput:o,t:s,togglePopperVisible:ee,hideSuggestionPanel:re,deleteTag:Ne,focusFirstNode:ae,getCheckedNodes:he,handleExpandChange:$e,handleKeyDown:ne,handleComposition:Je,handleClear:pe,handleSuggestionClick:Se,handleSuggestionKeyDown:xe,handleDelete:be,handleInput:Fe}}}),rTe={key:0},iTe=["placeholder"],nTe=["onClick"];function oTe(e,t,r,i,n,o){const s=Ft("circle-close"),l=Ft("el-icon"),a=Ft("arrow-down"),c=Ft("el-input"),u=Ft("el-tag"),p=Ft("el-tooltip"),h=Ft("el-cascader-panel"),m=Ft("check"),y=Ft("el-scrollbar"),v=Sv("clickoutside");return $(),Te(p,{ref:"tooltipRef",visible:e.popperVisible,teleported:e.teleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:me(()=>[kt(($(),K("div",{class:N([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:St(e.$attrs.style),onClick:t[11]||(t[11]=()=>e.togglePopperVisible(e.readonly?void 0:!0)),onKeydown:t[12]||(t[12]=(..._)=>e.handleKeyDown&&e.handleKeyDown(..._)),onMouseenter:t[13]||(t[13]=_=>e.inputHover=!0),onMouseleave:t[14]||(t[14]=_=>e.inputHover=!1)},[Y(c,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=_=>e.inputValue=_),placeholder:e.currentPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:N(e.nsCascader.is("focus",e.popperVisible)),onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:t[2]||(t[2]=_=>e.$emit("focus",_)),onBlur:t[3]||(t[3]=_=>e.$emit("blur",_)),onInput:e.handleInput},{suffix:me(()=>[e.clearBtnVisible?($(),Te(l,{key:"clear",class:N([e.nsInput.e("icon"),"icon-circle-close"]),onClick:Yt(e.handleClear,["stop"])},{default:me(()=>[Y(s)]),_:1},8,["class","onClick"])):($(),Te(l,{key:"arrow-down",class:N([e.nsInput.e("icon"),"icon-arrow-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:t[0]||(t[0]=Yt(_=>e.togglePopperVisible(),["stop"]))},{default:me(()=>[Y(a)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?($(),K("div",{key:0,ref:"tagWrapper",class:N(e.nsCascader.e("tags"))},[($(!0),K(bt,null,or(e.presentTags,_=>($(),Te(u,{key:_.key,type:e.tagType,size:e.tagSize,hit:_.hitState,closable:_.closable,"disable-transitions":"",onClose:x=>e.deleteTag(_)},{default:me(()=>[_.isCollapseTag===!1?($(),K("span",rTe,rt(_.text),1)):($(),Te(p,{key:1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:me(()=>[G("span",null,rt(_.text),1)]),content:me(()=>[G("div",{class:N(e.nsCascader.e("collapse-tags"))},[($(!0),K(bt,null,or(e.allPresentTags.slice(1),(x,S)=>($(),K("div",{key:S,class:N(e.nsCascader.e("collapse-tag"))},[($(),Te(u,{key:x.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:x.hitState,closable:x.closable,"disable-transitions":"",onClose:C=>e.deleteTag(x)},{default:me(()=>[G("span",null,rt(x.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!e.isDisabled?kt(($(),K("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=_=>e.searchInputValue=_),type:"text",class:N(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:t[5]||(t[5]=_=>e.handleInput(e.searchInputValue,_)),onClick:t[6]||(t[6]=Yt(_=>e.togglePopperVisible(!0),["stop"])),onKeydown:t[7]||(t[7]=Lr((..._)=>e.handleDelete&&e.handleDelete(..._),["delete"])),onCompositionstart:t[8]||(t[8]=(..._)=>e.handleComposition&&e.handleComposition(..._)),onCompositionupdate:t[9]||(t[9]=(..._)=>e.handleComposition&&e.handleComposition(..._)),onCompositionend:t[10]||(t[10]=(..._)=>e.handleComposition&&e.handleComposition(..._))},null,42,iTe)),[[eR,e.searchInputValue]]):ke("v-if",!0)],2)):ke("v-if",!0)],38)),[[v,()=>e.togglePopperVisible(!1),e.popperPaneRef]])]),content:me(()=>[kt(Y(h,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":t[15]||(t[15]=_=>e.checkedValue=_),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:t[16]||(t[16]=_=>e.$nextTick(()=>e.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[Vt,!e.filtering]]),e.filterable?kt(($(),Te(y,{key:0,ref:"suggestionPanel",tag:"ul",class:N(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:me(()=>[e.suggestions.length?($(!0),K(bt,{key:0},or(e.suggestions,_=>($(),K("li",{key:_.uid,class:N([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",_.checked)]),tabindex:-1,onClick:x=>e.handleSuggestionClick(_)},[G("span",null,rt(_.text),1),_.checked?($(),Te(l,{key:0},{default:me(()=>[Y(m)]),_:1})):ke("v-if",!0)],10,nTe))),128)):Be(e.$slots,"empty",{key:1},()=>[G("li",{class:N(e.nsCascader.e("empty-text"))},rt(e.t("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[Vt,e.filtering]]):ke("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var xC=ot(tTe,[["render",oTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);xC.install=e=>{e.component(xC.name,xC)};const sTe=xC,lTe=sTe,aTe=ct({checked:{type:Boolean,default:!1}}),cTe={"update:checked":e=>Ln(e),[_i]:e=>Ln(e)},uTe=ye({name:"ElCheckTag"}),dTe=ye({...uTe,props:aTe,emits:cTe,setup(e,{emit:t}){const r=e,i=He("check-tag"),n=()=>{const o=!r.checked;t(_i,o),t("update:checked",o)};return(o,s)=>($(),K("span",{class:N([g(i).b(),g(i).is("checked",o.checked)]),onClick:n},[Be(o.$slots,"default")],2))}});var pTe=ot(dTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const hTe=lr(pTe),fTe=ct({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Oe([Number,Object]),default:()=>Mi({})},sm:{type:Oe([Number,Object]),default:()=>Mi({})},md:{type:Oe([Number,Object]),default:()=>Mi({})},lg:{type:Oe([Number,Object]),default:()=>Mi({})},xl:{type:Oe([Number,Object]),default:()=>Mi({})}}),mTe=ye({name:"ElCol"}),gTe=ye({...mTe,props:fTe,setup(e){const t=e,{gutter:r}=_t(Zq,{gutter:O(()=>0)}),i=He("col"),n=O(()=>{const s={};return r.value&&(s.paddingLeft=s.paddingRight=`${r.value/2}px`),s}),o=O(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];Gt(u)&&(c==="span"?s.push(i.b(`${t[c]}`)):u>0&&s.push(i.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Gt(t[c])?s.push(i.b(`${c}-${t[c]}`)):yr(t[c])&&Object.entries(t[c]).forEach(([u,p])=>{s.push(u!=="span"?i.b(`${c}-${u}-${p}`):i.b(`${c}-${p}`))})}),r.value&&s.push(i.is("guttered")),[i.b(),s]});return(s,l)=>($(),Te(br(s.tag),{class:N(g(o)),style:St(g(n))},{default:me(()=>[Be(s.$slots,"default")]),_:3},8,["class","style"]))}});var yTe=ot(gTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const vTe=lr(yTe),Tj=e=>typeof Gt(e),bTe=ct({accordion:Boolean,modelValue:{type:Oe([Array,String,Number]),default:()=>Mi([])}}),_Te={[ar]:Tj,[_i]:Tj},wTe=(e,t)=>{const r=F(Mv(e.modelValue)),i=o=>{r.value=o;const s=e.accordion?r.value[0]:r.value;t(ar,s),t(_i,s)},n=o=>{if(e.accordion)i([r.value[0]===o?"":o]);else{const s=[...r.value],l=s.indexOf(o);l>-1?s.splice(l,1):s.push(o),i(s)}};return Ve(()=>e.modelValue,()=>r.value=Mv(e.modelValue),{deep:!0}),cr(Hq,{activeNames:r,handleItemClick:n}),{activeNames:r,setActiveNames:i}},xTe=()=>{const e=He("collapse");return{rootKls:O(()=>e.b())}},CTe=ye({name:"ElCollapse"}),kTe=ye({...CTe,props:bTe,emits:_Te,setup(e,{expose:t,emit:r}){const i=e,{activeNames:n,setActiveNames:o}=wTe(i,r),{rootKls:s}=xTe();return t({activeNames:n,setActiveNames:o}),(l,a)=>($(),K("div",{class:N(g(s)),role:"tablist","aria-multiselectable":"true"},[Be(l.$slots,"default")],2))}});var STe=ot(kTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const ETe=ye({name:"ElCollapseTransition"}),TTe=ye({...ETe,setup(e){const t=He("collapse-transition"),r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){i.dataset.oldOverflow=i.style.overflow,i.scrollHeight!==0?(i.style.maxHeight=`${i.scrollHeight}px`,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom):(i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom),i.style.overflow="hidden"},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom}};return(i,n)=>($(),Te(Xi,sr({name:g(t).b()},yce(r)),{default:me(()=>[Be(i.$slots,"default")]),_:3},16,["name"]))}});var CC=ot(TTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CC.install=e=>{e.component(CC.name,CC)};const C3=CC,ATe=C3,MTe=ct({title:{type:String,default:""},name:{type:Oe([String,Number]),default:()=>h3()},disabled:Boolean}),ITe=e=>{const t=_t(Hq),r=F(!1),i=F(!1),n=F(h3()),o=O(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:r,id:n,isActive:o,handleFocus:()=>{setTimeout(()=>{i.value?i.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),r.value=!1,i.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},PTe=(e,{focusing:t,isActive:r,id:i})=>{const n=He("collapse"),o=O(()=>[n.b("item"),n.is("active",g(r)),n.is("disabled",e.disabled)]),s=O(()=>[n.be("item","header"),n.is("active",g(r)),{focusing:g(t)&&!e.disabled}]),l=O(()=>[n.be("item","arrow"),n.is("active",g(r))]),a=O(()=>n.be("item","wrap")),c=O(()=>n.be("item","content")),u=O(()=>n.b(`content-${g(i)}`)),p=O(()=>n.b(`head-${g(i)}`));return{arrowKls:l,headKls:s,rootKls:o,itemWrapperKls:a,itemContentKls:c,scopedContentId:u,scopedHeadId:p}},$Te=["aria-expanded","aria-controls","aria-describedby"],OTe=["id","tabindex"],LTe=["id","aria-hidden","aria-labelledby"],RTe=ye({name:"ElCollapseItem"}),DTe=ye({...RTe,props:MTe,setup(e,{expose:t}){const r=e,{focusing:i,id:n,isActive:o,handleFocus:s,handleHeaderClick:l,handleEnterClick:a}=ITe(r),{arrowKls:c,headKls:u,rootKls:p,itemWrapperKls:h,itemContentKls:m,scopedContentId:y,scopedHeadId:v}=PTe(r,{focusing:i,isActive:o,id:n});return t({isActive:o}),(_,x)=>($(),K("div",{class:N(g(p))},[G("div",{role:"tab","aria-expanded":g(o),"aria-controls":g(y),"aria-describedby":g(y)},[G("div",{id:g(v),class:N(g(u)),role:"button",tabindex:_.disabled?-1:0,onClick:x[0]||(x[0]=(...S)=>g(l)&&g(l)(...S)),onKeypress:x[1]||(x[1]=Lr(Yt((...S)=>g(a)&&g(a)(...S),["stop","prevent"]),["space","enter"])),onFocus:x[2]||(x[2]=(...S)=>g(s)&&g(s)(...S)),onBlur:x[3]||(x[3]=S=>i.value=!1)},[Be(_.$slots,"title",{},()=>[Ir(rt(_.title),1)]),Y(g(At),{class:N(g(c))},{default:me(()=>[Y(g(os))]),_:1},8,["class"])],42,OTe)],8,$Te),Y(g(C3),null,{default:me(()=>[kt(G("div",{id:g(y),class:N(g(h)),role:"tabpanel","aria-hidden":!g(o),"aria-labelledby":g(v)},[G("div",{class:N(g(m))},[Be(_.$slots,"default")],2)],10,LTe),[[Vt,g(o)]])]),_:3})],2))}});var AK=ot(DTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const NTe=lr(STe,{CollapseItem:AK}),FTe=Hi(AK);let jA=!1;function Vw(e,t){if(!Rr)return;const r=function(o){var s;(s=t.drag)==null||s.call(t,o)},i=function(o){var s;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",i),document.onselectstart=null,document.ondragstart=null,jA=!1,(s=t.end)==null||s.call(t,o)},n=function(o){var s;jA||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),jA=!0,(s=t.start)==null||s.call(t,o))};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n)}const zTe=ye({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=He("color-alpha-slider"),r=Xt(),i=gi(),n=gi(),o=F(0),s=F(0),l=F();Ve(()=>e.color.get("alpha"),()=>{m()}),Ve(()=>e.color.value,()=>{m()});function a(){if(!i.value||e.vertical)return 0;const y=r.vnode.el,v=e.color.get("alpha");return y?Math.round(v*(y.offsetWidth-i.value.offsetWidth/2)/100):0}function c(){if(!i.value)return 0;const y=r.vnode.el;if(!e.vertical)return 0;const v=e.color.get("alpha");return y?Math.round(v*(y.offsetHeight-i.value.offsetHeight/2)/100):0}function u(){if(e.color&&e.color.value){const{r:y,g:v,b:_}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${v}, ${_}, 0) 0%, rgba(${y}, ${v}, ${_}, 1) 100%)`}return""}function p(y){y.target!==i.value&&h(y)}function h(y){if(!n.value||!i.value)return;const _=r.vnode.el.getBoundingClientRect(),{clientX:x,clientY:S}=TR(y);if(e.vertical){let C=S-_.top;C=Math.max(i.value.offsetHeight/2,C),C=Math.min(C,_.height-i.value.offsetHeight/2),e.color.set("alpha",Math.round((C-i.value.offsetHeight/2)/(_.height-i.value.offsetHeight)*100))}else{let C=x-_.left;C=Math.max(i.value.offsetWidth/2,C),C=Math.min(C,_.width-i.value.offsetWidth/2),e.color.set("alpha",Math.round((C-i.value.offsetWidth/2)/(_.width-i.value.offsetWidth)*100))}}function m(){o.value=a(),s.value=c(),l.value=u()}return er(()=>{if(!n.value||!i.value)return;const y={drag:v=>{h(v)},end:v=>{h(v)}};Vw(n.value,y),Vw(i.value,y),m()}),{thumb:i,bar:n,thumbLeft:o,thumbTop:s,background:l,handleClick:p,update:m,ns:t}}});function jTe(e,t,r,i,n,o){return $(),K("div",{class:N([e.ns.b(),e.ns.is("vertical",e.vertical)])},[G("div",{ref:"bar",class:N(e.ns.e("bar")),style:St({background:e.background}),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,6),G("div",{ref:"thumb",class:N(e.ns.e("thumb")),style:St({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var VTe=ot(zTe,[["render",jTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const BTe=ye({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=He("color-hue-slider"),r=Xt(),i=F(),n=F(),o=F(0),s=F(0),l=O(()=>e.color.get("hue"));Ve(()=>l.value,()=>{h()});function a(m){m.target!==i.value&&c(m)}function c(m){if(!n.value||!i.value)return;const v=r.vnode.el.getBoundingClientRect(),{clientX:_,clientY:x}=TR(m);let S;if(e.vertical){let C=x-v.top;C=Math.min(C,v.height-i.value.offsetHeight/2),C=Math.max(i.value.offsetHeight/2,C),S=Math.round((C-i.value.offsetHeight/2)/(v.height-i.value.offsetHeight)*360)}else{let C=_-v.left;C=Math.min(C,v.width-i.value.offsetWidth/2),C=Math.max(i.value.offsetWidth/2,C),S=Math.round((C-i.value.offsetWidth/2)/(v.width-i.value.offsetWidth)*360)}e.color.set("hue",S)}function u(){if(!i.value)return 0;const m=r.vnode.el;if(e.vertical)return 0;const y=e.color.get("hue");return m?Math.round(y*(m.offsetWidth-i.value.offsetWidth/2)/360):0}function p(){if(!i.value)return 0;const m=r.vnode.el;if(!e.vertical)return 0;const y=e.color.get("hue");return m?Math.round(y*(m.offsetHeight-i.value.offsetHeight/2)/360):0}function h(){o.value=u(),s.value=p()}return er(()=>{if(!n.value||!i.value)return;const m={drag:y=>{c(y)},end:y=>{c(y)}};Vw(n.value,m),Vw(i.value,m),h()}),{bar:n,thumb:i,thumbLeft:o,thumbTop:s,hueValue:l,handleClick:a,update:h,ns:t}}});function UTe(e,t,r,i,n,o){return $(),K("div",{class:N([e.ns.b(),e.ns.is("vertical",e.vertical)])},[G("div",{ref:"bar",class:N(e.ns.e("bar")),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,2),G("div",{ref:"thumb",class:N(e.ns.e("thumb")),style:St({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var WTe=ot(BTe,[["render",UTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const HTe=ct({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Vs,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:Oe(Array)},validateEvent:{type:Boolean,default:!0}}),GTe={[ar]:e=>Kt(e)||fo(e),[_i]:e=>Kt(e)||fo(e),activeChange:e=>Kt(e)||fo(e)},MK=Symbol("colorPickerContextKey"),Aj=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},qTe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},YTe=function(e){return typeof e=="string"&&e.includes("%")},nv=function(e,t){qTe(e)&&(e="100%");const r=YTe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Mj={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},kC=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${Mj[t]||t}${Mj[r]||r}`},Ij=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${kC(e)}${kC(t)}${kC(r)}`},VA={A:10,B:11,C:12,D:13,E:14,F:15},uf=function(e){return e.length===2?(VA[e[0].toUpperCase()]||+e[0])*16+(VA[e[1].toUpperCase()]||+e[1]):VA[e[1].toUpperCase()]||+e[1]},KTe=function(e,t,r){t=t/100,r=r/100;let i=t;const n=Math.max(r,.01);r*=2,t*=r<=1?r:2-r,i*=n<=1?n:2-n;const o=(r+t)/2,s=r===0?2*i/(n+i):2*t/(r+t);return{h:e,s:s*100,v:o*100}},Pj=(e,t,r)=>{e=nv(e,255),t=nv(t,255),r=nv(r,255);const i=Math.max(e,t,r),n=Math.min(e,t,r);let o;const s=i,l=i-n,a=i===0?0:l/i;if(i===n)o=0;else{switch(i){case e:{o=(t-r)/l+(t<r?6:0);break}case t:{o=(r-e)/l+2;break}case r:{o=(e-t)/l+4;break}}o/=6}return{h:o*360,s:a*100,v:s*100}},lb=function(e,t,r){e=nv(e,360)*6,t=nv(t,100),r=nv(r,100);const i=Math.floor(e),n=e-i,o=r*(1-t),s=r*(1-n*t),l=r*(1-(1-n)*t),a=i%6,c=[r,s,o,o,l,r][a],u=[l,r,r,s,o,o][a],p=[o,o,l,r,r,s][a];return{r:Math.round(c*255),g:Math.round(u*255),b:Math.round(p*255)}};class U_{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const r in t)Mr(t,r)&&(this[r]=t[r]);t.value?this.fromString(t.value):this.doOnChange()}set(t,r){if(arguments.length===1&&typeof t=="object"){for(const i in t)Mr(t,i)&&this.set(i,t[i]);return}this[`_${t}`]=r,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return lb(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const r=(i,n,o)=>{this._hue=Math.max(0,Math.min(360,i)),this._saturation=Math.max(0,Math.min(100,n)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(t.includes("hsl")){const i=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(n=>n!=="").map((n,o)=>o>2?Number.parseFloat(n):Number.parseInt(n,10));if(i.length===4?this._alpha=Number.parseFloat(i[3])*100:i.length===3&&(this._alpha=100),i.length>=3){const{h:n,s:o,v:s}=KTe(i[0],i[1],i[2]);r(n,o,s)}}else if(t.includes("hsv")){const i=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(n=>n!=="").map((n,o)=>o>2?Number.parseFloat(n):Number.parseInt(n,10));i.length===4?this._alpha=Number.parseFloat(i[3])*100:i.length===3&&(this._alpha=100),i.length>=3&&r(i[0],i[1],i[2])}else if(t.includes("rgb")){const i=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(n=>n!=="").map((n,o)=>o>2?Number.parseFloat(n):Number.parseInt(n,10));if(i.length===4?this._alpha=Number.parseFloat(i[3])*100:i.length===3&&(this._alpha=100),i.length>=3){const{h:n,s:o,v:s}=Pj(i[0],i[1],i[2]);r(n,o,s)}}else if(t.includes("#")){const i=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(i))return;let n,o,s;i.length===3?(n=uf(i[0]+i[0]),o=uf(i[1]+i[1]),s=uf(i[2]+i[2])):(i.length===6||i.length===8)&&(n=uf(i.slice(0,2)),o=uf(i.slice(2,4)),s=uf(i.slice(4,6))),i.length===8?this._alpha=uf(i.slice(6))/255*100:(i.length===3||i.length===6)&&(this._alpha=100);const{h:l,s:a,v:c}=Pj(n,o,s);r(l,a,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:r,_value:i,_alpha:n,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const s=Aj(t,r/100,i/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(r)}%, ${Math.round(i)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Ij(lb(t,r,i))}${kC(n*255/100)}`;break}default:{const{r:s,g:l,b:a}=lb(t,r,i);this.value=`rgba(${s}, ${l}, ${a}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const s=Aj(t,r/100,i/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(r)}%, ${Math.round(i)}%)`;break}case"rgb":{const{r:s,g:l,b:a}=lb(t,r,i);this.value=`rgb(${s}, ${l}, ${a})`;break}default:this.value=Ij(lb(t,r,i))}}}const ZTe=ye({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=He("color-predefine"),{currentColor:r}=_t(MK),i=F(o(e.colors,e.color));Ve(()=>r.value,s=>{const l=new U_;l.fromString(s),i.value.forEach(a=>{a.selected=l.compare(a)})}),Ds(()=>{i.value=o(e.colors,e.color)});function n(s){e.color.fromString(e.colors[s])}function o(s,l){return s.map(a=>{const c=new U_;return c.enableAlpha=!0,c.format="rgba",c.fromString(a),c.selected=c.value===l.value,c})}return{rgbaColors:i,handleSelect:n,ns:t}}}),QTe=["onClick"];function JTe(e,t,r,i,n,o){return $(),K("div",{class:N(e.ns.b())},[G("div",{class:N(e.ns.e("colors"))},[($(!0),K(bt,null,or(e.rgbaColors,(s,l)=>($(),K("div",{key:e.colors[l],class:N([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:a=>e.handleSelect(l)},[G("div",{style:St({backgroundColor:s.value})},null,4)],10,QTe))),128))],2)],2)}var XTe=ot(ZTe,[["render",JTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const eAe=ye({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=He("color-svpanel"),r=Xt(),i=F(0),n=F(0),o=F("hsl(0, 100%, 50%)"),s=O(()=>{const c=e.color.get("hue"),u=e.color.get("value");return{hue:c,value:u}});function l(){const c=e.color.get("saturation"),u=e.color.get("value"),p=r.vnode.el,{clientWidth:h,clientHeight:m}=p;n.value=c*h/100,i.value=(100-u)*m/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function a(c){const p=r.vnode.el.getBoundingClientRect(),{clientX:h,clientY:m}=TR(c);let y=h-p.left,v=m-p.top;y=Math.max(0,y),y=Math.min(y,p.width),v=Math.max(0,v),v=Math.min(v,p.height),n.value=y,i.value=v,e.color.set({saturation:y/p.width*100,value:100-v/p.height*100})}return Ve(()=>s.value,()=>{l()}),er(()=>{Vw(r.vnode.el,{drag:c=>{a(c)},end:c=>{a(c)}}),l()}),{cursorTop:i,cursorLeft:n,background:o,colorValue:s,handleDrag:a,update:l,ns:t}}}),tAe=G("div",null,null,-1),rAe=[tAe];function iAe(e,t,r,i,n,o){return $(),K("div",{class:N(e.ns.b()),style:St({backgroundColor:e.background})},[G("div",{class:N(e.ns.e("white"))},null,2),G("div",{class:N(e.ns.e("black"))},null,2),G("div",{class:N(e.ns.e("cursor")),style:St({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},rAe,6)],6)}var nAe=ot(eAe,[["render",iAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const oAe=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],sAe=ye({name:"ElColorPicker"}),lAe=ye({...sAe,props:HTe,emits:GTe,setup(e,{expose:t,emit:r}){const i=e,{t:n}=Hr(),o=He("color"),{formItem:s}=ps(),l=An(),a=Gs(),{inputId:c,isLabeledByFormItem:u}=jh(i,{formItemContext:s}),p=F(),h=F(),m=F(),y=F();let v=!0;const _=kr(new U_({enableAlpha:i.showAlpha,format:i.colorFormat||"",value:i.modelValue})),x=F(!1),S=F(!1),C=F(""),E=O(()=>!i.modelValue&&!S.value?"transparent":L(_,i.showAlpha)),T=O(()=>!i.modelValue&&!S.value?"":_.value),w=O(()=>u.value?void 0:i.label||n("el.colorpicker.defaultLabel")),I=O(()=>u.value?s==null?void 0:s.labelId:void 0),M=O(()=>[o.b("picker"),o.is("disabled",a.value),o.bm("picker",l.value)]);function L(V,H){if(!(V instanceof U_))throw new TypeError("color should be instance of _color Class");const{r:ee,g:ce,b:re}=V.toRgb();return H?`rgba(${ee}, ${ce}, ${re}, ${V.get("alpha")/100})`:`rgb(${ee}, ${ce}, ${re})`}function R(V){x.value=V}const W=as(R,100);function z(){W(!1),j()}function j(){Ct(()=>{i.modelValue?_.fromString(i.modelValue):(_.value="",Ct(()=>{S.value=!1}))})}function U(){a.value||W(!x.value)}function Z(){_.fromString(C.value)}function Q(){const V=_.value;r(ar,V),r("change",V),i.validateEvent&&(s==null||s.validate("change").catch(H=>void 0)),W(!1),Ct(()=>{const H=new U_({enableAlpha:i.showAlpha,format:i.colorFormat||"",value:i.modelValue});_.compare(H)||j()})}function B(){W(!1),r(ar,null),r("change",null),i.modelValue!==null&&i.validateEvent&&(s==null||s.validate("change").catch(V=>void 0)),j()}return er(()=>{i.modelValue&&(C.value=T.value)}),Ve(()=>i.modelValue,V=>{V?V&&V!==_.value&&(v=!1,_.fromString(V)):S.value=!1}),Ve(()=>T.value,V=>{C.value=V,v&&r("activeChange",V),v=!0}),Ve(()=>_.value,()=>{!i.modelValue&&!S.value&&(S.value=!0)}),Ve(()=>x.value,()=>{Ct(()=>{var V,H,ee;(V=p.value)==null||V.update(),(H=h.value)==null||H.update(),(ee=m.value)==null||ee.update()})}),cr(MK,{currentColor:T}),t({color:_}),(V,H)=>($(),Te(g(qs),{ref_key:"popper",ref:y,visible:x.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[g(o).be("picker","panel"),g(o).b("dropdown"),V.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${g(o).namespace.value}-zoom-in-top`,persistent:""},{content:me(()=>[kt(($(),K("div",null,[G("div",{class:N(g(o).be("dropdown","main-wrapper"))},[Y(WTe,{ref_key:"hue",ref:p,class:"hue-slider",color:g(_),vertical:""},null,8,["color"]),Y(nAe,{ref:"svPanel",color:g(_)},null,8,["color"])],2),V.showAlpha?($(),Te(VTe,{key:0,ref_key:"alpha",ref:m,color:g(_)},null,8,["color"])):ke("v-if",!0),V.predefine?($(),Te(XTe,{key:1,ref:"predefine",color:g(_),colors:V.predefine},null,8,["color","colors"])):ke("v-if",!0),G("div",{class:N(g(o).be("dropdown","btns"))},[G("span",{class:N(g(o).be("dropdown","value"))},[Y(g(Qi),{modelValue:C.value,"onUpdate:modelValue":H[0]||(H[0]=ee=>C.value=ee),"validate-event":!1,size:"small",onKeyup:Lr(Z,["enter"]),onBlur:Z},null,8,["modelValue","onKeyup"])],2),Y(g(Rn),{class:N(g(o).be("dropdown","link-btn")),text:"",size:"small",onClick:B},{default:me(()=>[Ir(rt(g(n)("el.colorpicker.clear")),1)]),_:1},8,["class"]),Y(g(Rn),{plain:"",size:"small",class:N(g(o).be("dropdown","btn")),onClick:Q},{default:me(()=>[Ir(rt(g(n)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[g(Ah),z]])]),default:me(()=>[G("div",{id:g(c),class:N(g(M)),role:"button","aria-label":g(w),"aria-labelledby":g(I),"aria-description":g(n)("el.colorpicker.description",{color:V.modelValue||""}),tabindex:V.tabindex,onKeydown:Lr(U,["enter"])},[g(a)?($(),K("div",{key:0,class:N(g(o).be("picker","mask"))},null,2)):ke("v-if",!0),G("div",{class:N(g(o).be("picker","trigger")),onClick:U},[G("span",{class:N([g(o).be("picker","color"),g(o).is("alpha",V.showAlpha)])},[G("span",{class:N(g(o).be("picker","color-inner")),style:St({backgroundColor:g(E)})},[kt(Y(g(At),{class:N([g(o).be("picker","icon"),g(o).is("icon-arrow-down")])},{default:me(()=>[Y(g(Nh))]),_:1},8,["class"]),[[Vt,V.modelValue||S.value]]),!V.modelValue&&!S.value?($(),Te(g(At),{key:0,class:N([g(o).be("picker","empty"),g(o).is("icon-close")])},{default:me(()=>[Y(g(ia))]),_:1},8,["class"])):ke("v-if",!0)],6)],2)],2)],42,oAe)]),_:1},8,["visible","popper-class","transition"]))}});var aAe=ot(lAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const IP=lr(aAe),PP={},cAe=ct({a11y:{type:Boolean,default:!0},locale:{type:Oe(Object)},size:Vs,button:{type:Oe(Object)},experimentalFeatures:{type:Oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),uAe=ye({name:"ElConfigProvider",props:cAe,setup(e,{slots:t}){Ve(()=>e.message,i=>{Object.assign(PP,i!=null?i:{})},{immediate:!0,deep:!0});const r=iY(e);return()=>Be(t,"default",{config:r==null?void 0:r.value})}}),$P=lr(uAe),dAe=ye({name:"ElContainer"}),pAe=ye({...dAe,props:{direction:{type:String}},setup(e){const t=e,r=go(),i=He("container"),n=O(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:r&&r.default?r.default().some(s=>{const l=s.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(o,s)=>($(),K("section",{class:N([g(i).b(),g(i).is("vertical",g(n))])},[Be(o.$slots,"default")],2))}});var hAe=ot(pAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const fAe=ye({name:"ElAside"}),mAe=ye({...fAe,props:{width:{type:String,default:null}},setup(e){const t=e,r=He("aside"),i=O(()=>t.width?r.cssVarBlock({width:t.width}):{});return(n,o)=>($(),K("aside",{class:N(g(r).b()),style:St(g(i))},[Be(n.$slots,"default")],6))}});var IK=ot(mAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const gAe=ye({name:"ElFooter"}),yAe=ye({...gAe,props:{height:{type:String,default:null}},setup(e){const t=e,r=He("footer"),i=O(()=>t.height?r.cssVarBlock({height:t.height}):{});return(n,o)=>($(),K("footer",{class:N(g(r).b()),style:St(g(i))},[Be(n.$slots,"default")],6))}});var PK=ot(yAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const vAe=ye({name:"ElHeader"}),bAe=ye({...vAe,props:{height:{type:String,default:null}},setup(e){const t=e,r=He("header"),i=O(()=>t.height?r.cssVarBlock({height:t.height}):{});return(n,o)=>($(),K("header",{class:N(g(r).b()),style:St(g(i))},[Be(n.$slots,"default")],6))}});var $K=ot(bAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const _Ae=ye({name:"ElMain"}),wAe=ye({..._Ae,setup(e){const t=He("main");return(r,i)=>($(),K("main",{class:N(g(t).b())},[Be(r.$slots,"default")],2))}});var OK=ot(wAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const xAe=lr(hAe,{Aside:IK,Footer:PK,Header:$K,Main:OK}),CAe=Hi(IK),kAe=Hi(PK),SAe=Hi($K),EAe=Hi(OK);var LK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){return function(r,i){var n=i.prototype,o=n.format;n.format=function(s){var l=this,a=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return a.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return a.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}});return o.bind(this)(u)}}})})(LK);var TAe=LK.exports,RK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){var r="week",i="year";return function(n,o,s){var l=o.prototype;l.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(i).add(1,i).date(c),p=s(this).endOf(r);if(u.isBefore(p))return 1}var h=s(this).startOf(i).date(c).startOf(r).subtract(1,"millisecond"),m=this.diff(h,r,!0);return m<0?s(this).startOf("week").week():Math.ceil(m)},l.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(RK);var AAe=RK.exports,DK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){return function(r,i){i.prototype.weekYear=function(){var n=this.month(),o=this.week(),s=this.year();return o===1&&n===11?s+1:n===0&&o>=52?s-1:s}}})})(DK);var MAe=DK.exports,NK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){return function(r,i,n){i.prototype.dayOfYear=function(o){var s=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(NK);var IAe=NK.exports,FK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){return function(r,i){i.prototype.isSameOrAfter=function(n,o){return this.isSame(n,o)||this.isAfter(n,o)}}})})(FK);var PAe=FK.exports,zK={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){return function(r,i){i.prototype.isSameOrBefore=function(n,o){return this.isSame(n,o)||this.isBefore(n,o)}}})})(zK);var $Ae=zK.exports;const OAe=ct({type:{type:Oe(String),default:"date"}}),LAe=["date","dates","year","month","week","range"],s4=ct({disabledDate:{type:Oe(Function)},date:{type:Oe(Object),required:!0},minDate:{type:Oe(Object)},maxDate:{type:Oe(Object)},parsedValue:{type:Oe([Object,Array])},rangeState:{type:Oe(Object),default:()=>({endDate:null,selecting:!1})}}),jK=ct({type:{type:Oe(String),required:!0,values:F1e}}),VK=ct({unlinkPanels:Boolean,parsedValue:{type:Oe(Array)}}),BK=e=>({type:String,values:LAe,default:e}),RAe=ct({...jK,parsedValue:{type:Oe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),DAe=ct({...s4,cellClassName:{type:Oe(Function)},showWeekNumber:Boolean,selectionMode:BK("date")}),OP=e=>{if(!wt(e))return!1;const[t,r]=e;return nr.isDayjs(t)&&nr.isDayjs(r)&&t.isSameOrBefore(r)},UK=(e,{lang:t,unit:r,unlinkPanels:i})=>{let n;if(wt(e)){let[o,s]=e.map(l=>nr(l).locale(t));return i||(s=o.add(1,r)),[o,s]}else e?n=nr(e):n=nr();return n=n.locale(t),[n,n.add(1,r)]},NAe=(e,t,{columnIndexOffset:r,startDate:i,nextEndDate:n,now:o,unit:s,relativeDateGetter:l,setCellMetadata:a,setRowMetadata:c})=>{for(let u=0;u<e.row;u++){const p=t[u];for(let h=0;h<e.column;h++){let m=p[h+r];m||(m={row:u,column:h,type:"normal",inRange:!1,start:!1,end:!1});const y=u*e.column+h,v=l(y);m.dayjs=v,m.date=v.toDate(),m.timestamp=v.valueOf(),m.type="normal",m.inRange=!!(i&&v.isSameOrAfter(i,s)&&n&&v.isSameOrBefore(n,s))||!!(i&&v.isSameOrBefore(i,s)&&n&&v.isSameOrAfter(n,s)),i!=null&&i.isSameOrAfter(n)?(m.start=!!n&&v.isSame(n,s),m.end=i&&v.isSame(i,s)):(m.start=!!i&&v.isSame(i,s),m.end=!!n&&v.isSame(n,s)),v.isSame(o,s)&&(m.type="today"),a==null||a(m,{rowIndex:u,columnIndex:h}),p[h+r]=m}c==null||c(p)}},FAe=ct({cell:{type:Oe(Object)}});var zAe=ye({name:"ElDatePickerCell",props:FAe,setup(e){const t=He("date-table-cell"),{slots:r}=_t(NR);return()=>{const{cell:i}=e;if(r.default){const n=r.default(i).filter(o=>o.patchFlag!==-2&&o.type.toString()!=="Symbol(Comment)");if(n.length)return n}return Y("div",{class:t.b()},[Y("span",{class:t.e("text")},[i==null?void 0:i.text])])}}});const jAe=["aria-label","onMousedown"],VAe={key:0,scope:"col"},BAe=["aria-label"],UAe=["aria-current","aria-selected","tabindex"],WAe=ye({__name:"basic-date-table",props:DAe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:r}){const i=e,n=He("date-table"),{t:o,lang:s}=Hr(),l=F(),a=F(),c=F(),u=F(),p=F([[],[],[],[],[],[]]);let h=!1;const m=i.date.$locale().weekStart||7,y=i.date.locale("en").localeData().weekdaysShort().map(re=>re.toLowerCase()),v=O(()=>m>3?7-m:-m),_=O(()=>{const re=i.date.startOf("month");return re.subtract(re.day()||7,"day")}),x=O(()=>y.concat(y).slice(m,m+7)),S=O(()=>lq(M.value).some(re=>re.isCurrent)),C=O(()=>{const re=i.date.startOf("month"),fe=re.day()||7,Ne=re.daysInMonth(),de=re.subtract(1,"month").daysInMonth();return{startOfMonthDay:fe,dateCountOfMonth:Ne,dateCountOfLastMonth:de}}),E=O(()=>i.selectionMode==="dates"?sd(i.parsedValue):[]),T=(re,{count:fe,rowIndex:Ne,columnIndex:de})=>{const{startOfMonthDay:_e,dateCountOfMonth:ae,dateCountOfLastMonth:X}=g(C),he=g(v);if(Ne>=0&&Ne<=1){const $e=_e+he<0?7+_e+he:_e+he;if(de+Ne*7>=$e)return re.text=fe,!0;re.text=X-($e-de%7)+1+Ne*7,re.type="prev-month"}else return fe<=ae?re.text=fe:(re.text=fe-ae,re.type="next-month"),!0;return!1},w=(re,{columnIndex:fe,rowIndex:Ne},de)=>{const{disabledDate:_e,cellClassName:ae}=i,X=g(E),he=T(re,{count:de,rowIndex:Ne,columnIndex:fe}),$e=re.dayjs.toDate();return re.selected=X.find(Je=>Je.valueOf()===re.dayjs.valueOf()),re.isSelected=!!re.selected,re.isCurrent=W(re),re.disabled=_e==null?void 0:_e($e),re.customClass=ae==null?void 0:ae($e),he},I=re=>{if(i.selectionMode==="week"){const[fe,Ne]=i.showWeekNumber?[1,7]:[0,6],de=ce(re[fe+1]);re[fe].inRange=de,re[fe].start=de,re[Ne].inRange=de,re[Ne].end=de}},M=O(()=>{const{minDate:re,maxDate:fe,rangeState:Ne,showWeekNumber:de}=i,_e=v.value,ae=p.value,X="day";let he=1;if(de)for(let $e=0;$e<6;$e++)ae[$e][0]||(ae[$e][0]={type:"week",text:_.value.add($e*7+1,X).week()});return NAe({row:6,column:7},ae,{startDate:re,columnIndexOffset:de?1:0,nextEndDate:Ne.endDate||fe||Ne.selecting&&re||null,now:nr().locale(g(s)).startOf(X),unit:X,relativeDateGetter:$e=>_.value.add($e-_e,X),setCellMetadata:(...$e)=>{w(...$e,he)&&(he+=1)},setRowMetadata:I}),ae});Ve(()=>i.date,async()=>{var re,fe;(re=l.value)!=null&&re.contains(document.activeElement)&&(await Ct(),(fe=a.value)==null||fe.focus())});const L=async()=>{var re;(re=a.value)==null||re.focus()},R=(re="")=>["normal","today"].includes(re),W=re=>i.selectionMode==="date"&&R(re.type)&&z(re,i.parsedValue),z=(re,fe)=>fe?nr(fe).locale(s.value).isSame(i.date.date(Number(re.text)),"day"):!1,j=re=>{const fe=[];return R(re.type)&&!re.disabled?(fe.push("available"),re.type==="today"&&fe.push("today")):fe.push(re.type),W(re)&&fe.push("current"),re.inRange&&(R(re.type)||i.selectionMode==="week")&&(fe.push("in-range"),re.start&&fe.push("start-date"),re.end&&fe.push("end-date")),re.disabled&&fe.push("disabled"),re.selected&&fe.push("selected"),re.customClass&&fe.push(re.customClass),fe.join(" ")},U=(re,fe)=>{const Ne=re*7+(fe-(i.showWeekNumber?1:0))-v.value;return _.value.add(Ne,"day")},Z=re=>{var fe;if(!i.rangeState.selecting)return;let Ne=re.target;if(Ne.tagName==="SPAN"&&(Ne=(fe=Ne.parentNode)==null?void 0:fe.parentNode),Ne.tagName==="DIV"&&(Ne=Ne.parentNode),Ne.tagName!=="TD")return;const de=Ne.parentNode.rowIndex-1,_e=Ne.cellIndex;M.value[de][_e].disabled||(de!==c.value||_e!==u.value)&&(c.value=de,u.value=_e,r("changerange",{selecting:!0,endDate:U(de,_e)}))},Q=re=>!S.value&&(re==null?void 0:re.text)===1&&re.type==="normal"||re.isCurrent,B=re=>{h||S.value||i.selectionMode!=="date"||ee(re,!0)},V=re=>{!re.target.closest("td")||(h=!0)},H=re=>{!re.target.closest("td")||(h=!1)},ee=(re,fe=!1)=>{const Ne=re.target.closest("td");if(!Ne)return;const de=Ne.parentNode.rowIndex-1,_e=Ne.cellIndex,ae=M.value[de][_e];if(ae.disabled||ae.type==="week")return;const X=U(de,_e);if(i.selectionMode==="range")!i.rangeState.selecting||!i.minDate?(r("pick",{minDate:X,maxDate:null}),r("select",!0)):(X>=i.minDate?r("pick",{minDate:i.minDate,maxDate:X}):r("pick",{minDate:X,maxDate:i.minDate}),r("select",!1));else if(i.selectionMode==="date")r("pick",X,fe);else if(i.selectionMode==="week"){const he=X.week(),$e=`${X.year()}w${he}`;r("pick",{year:X.year(),week:he,value:$e,date:X.startOf("week")})}else if(i.selectionMode==="dates"){const he=ae.selected?sd(i.parsedValue).filter($e=>($e==null?void 0:$e.valueOf())!==X.valueOf()):sd(i.parsedValue).concat([X]);r("pick",he)}},ce=re=>{if(i.selectionMode!=="week")return!1;let fe=i.date.startOf("day");if(re.type==="prev-month"&&(fe=fe.subtract(1,"month")),re.type==="next-month"&&(fe=fe.add(1,"month")),fe=fe.date(Number.parseInt(re.text,10)),i.parsedValue&&!Array.isArray(i.parsedValue)){const Ne=(i.parsedValue.day()-m+7)%7-1;return i.parsedValue.subtract(Ne,"day").isSame(fe,"day")}return!1};return t({focus:L}),(re,fe)=>($(),K("table",{role:"grid","aria-label":g(o)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:N([g(n).b(),{"is-week-mode":re.selectionMode==="week"}]),onClick:ee,onMousemove:Z,onMousedown:Yt(V,["prevent"]),onMouseup:H},[G("tbody",{ref_key:"tbodyRef",ref:l},[G("tr",null,[re.showWeekNumber?($(),K("th",VAe,rt(g(o)("el.datepicker.week")),1)):ke("v-if",!0),($(!0),K(bt,null,or(g(x),(Ne,de)=>($(),K("th",{key:de,scope:"col","aria-label":g(o)("el.datepicker.weeksFull."+Ne)},rt(g(o)("el.datepicker.weeks."+Ne)),9,BAe))),128))]),($(!0),K(bt,null,or(g(M),(Ne,de)=>($(),K("tr",{key:de,class:N([g(n).e("row"),{current:ce(Ne[1])}])},[($(!0),K(bt,null,or(Ne,(_e,ae)=>($(),K("td",{key:`${de}.${ae}`,ref_for:!0,ref:X=>Q(_e)&&(a.value=X),class:N(j(_e)),"aria-current":_e.isCurrent?"date":void 0,"aria-selected":_e.isCurrent,tabindex:Q(_e)?0:-1,onFocus:B},[Y(g(zAe),{cell:_e},null,8,["cell"])],42,UAe))),128))],2))),128))],512)],42,jAe))}});var LP=ot(WAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const HAe=ct({...s4,selectionMode:BK("month")}),GAe=["aria-label"],qAe=["aria-selected","aria-label","tabindex","onKeydown"],YAe={class:"cell"},KAe=ye({__name:"basic-month-table",props:HAe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:r}){const i=e,n=(E,T,w)=>{const I=nr().locale(w).startOf("month").month(T).year(E),M=I.daysInMonth();return mh(M).map(L=>I.add(L,"day").toDate())},o=He("month-table"),{t:s,lang:l}=Hr(),a=F(),c=F(),u=F(i.date.locale("en").localeData().monthsShort().map(E=>E.toLowerCase())),p=F([[],[],[]]),h=F(),m=F(),y=O(()=>{var E,T;const w=p.value,I=nr().locale(l.value).startOf("month");for(let M=0;M<3;M++){const L=w[M];for(let R=0;R<4;R++){const W=L[R]||(L[R]={row:M,column:R,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});W.type="normal";const z=M*4+R,j=i.date.startOf("year").month(z),U=i.rangeState.endDate||i.maxDate||i.rangeState.selecting&&i.minDate||null;W.inRange=!!(i.minDate&&j.isSameOrAfter(i.minDate,"month")&&U&&j.isSameOrBefore(U,"month"))||!!(i.minDate&&j.isSameOrBefore(i.minDate,"month")&&U&&j.isSameOrAfter(U,"month")),(E=i.minDate)!=null&&E.isSameOrAfter(U)?(W.start=!!(U&&j.isSame(U,"month")),W.end=i.minDate&&j.isSame(i.minDate,"month")):(W.start=!!(i.minDate&&j.isSame(i.minDate,"month")),W.end=!!(U&&j.isSame(U,"month"))),I.isSame(j)&&(W.type="today"),W.text=z,W.disabled=((T=i.disabledDate)==null?void 0:T.call(i,j.toDate()))||!1}}return w}),v=()=>{var E;(E=c.value)==null||E.focus()},_=E=>{const T={},w=i.date.year(),I=new Date,M=E.text;return T.disabled=i.disabledDate?n(w,M,l.value).every(i.disabledDate):!1,T.current=sd(i.parsedValue).findIndex(L=>nr.isDayjs(L)&&L.year()===w&&L.month()===M)>=0,T.today=I.getFullYear()===w&&I.getMonth()===M,E.inRange&&(T["in-range"]=!0,E.start&&(T["start-date"]=!0),E.end&&(T["end-date"]=!0)),T},x=E=>{const T=i.date.year(),w=E.text;return sd(i.date).findIndex(I=>I.year()===T&&I.month()===w)>=0},S=E=>{var T;if(!i.rangeState.selecting)return;let w=E.target;if(w.tagName==="A"&&(w=(T=w.parentNode)==null?void 0:T.parentNode),w.tagName==="DIV"&&(w=w.parentNode),w.tagName!=="TD")return;const I=w.parentNode.rowIndex,M=w.cellIndex;y.value[I][M].disabled||(I!==h.value||M!==m.value)&&(h.value=I,m.value=M,r("changerange",{selecting:!0,endDate:i.date.startOf("year").month(I*4+M)}))},C=E=>{var T;const w=(T=E.target)==null?void 0:T.closest("td");if((w==null?void 0:w.tagName)!=="TD"||tc(w,"disabled"))return;const I=w.cellIndex,L=w.parentNode.rowIndex*4+I,R=i.date.startOf("year").month(L);i.selectionMode==="range"?i.rangeState.selecting?(i.minDate&&R>=i.minDate?r("pick",{minDate:i.minDate,maxDate:R}):r("pick",{minDate:R,maxDate:i.minDate}),r("select",!1)):(r("pick",{minDate:R,maxDate:null}),r("select",!0)):r("pick",L)};return Ve(()=>i.date,async()=>{var E,T;(E=a.value)!=null&&E.contains(document.activeElement)&&(await Ct(),(T=c.value)==null||T.focus())}),t({focus:v}),(E,T)=>($(),K("table",{role:"grid","aria-label":g(s)("el.datepicker.monthTablePrompt"),class:N(g(o).b()),onClick:C,onMousemove:S},[G("tbody",{ref_key:"tbodyRef",ref:a},[($(!0),K(bt,null,or(g(y),(w,I)=>($(),K("tr",{key:I},[($(!0),K(bt,null,or(w,(M,L)=>($(),K("td",{key:L,ref_for:!0,ref:R=>x(M)&&(c.value=R),class:N(_(M)),"aria-selected":`${x(M)}`,"aria-label":g(s)(`el.datepicker.month${+M.text+1}`),tabindex:x(M)?0:-1,onKeydown:[Lr(Yt(C,["prevent","stop"]),["space"]),Lr(Yt(C,["prevent","stop"]),["enter"])]},[G("div",null,[G("span",YAe,rt(g(s)("el.datepicker.months."+u.value[M.text])),1)])],42,qAe))),128))]))),128))],512)],42,GAe))}});var RP=ot(KAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:ZAe,disabledDate:QAe,parsedValue:JAe}=s4,XAe=ct({date:ZAe,disabledDate:QAe,parsedValue:JAe}),eMe=["aria-label"],tMe=["aria-selected","tabindex","onKeydown"],rMe={class:"cell"},iMe={key:1},nMe=ye({__name:"basic-year-table",props:XAe,emits:["pick"],setup(e,{expose:t,emit:r}){const i=e,n=(v,_)=>{const x=nr(String(v)).locale(_).startOf("year"),C=x.endOf("year").dayOfYear();return mh(C).map(E=>x.add(E,"day").toDate())},o=He("year-table"),{t:s,lang:l}=Hr(),a=F(),c=F(),u=O(()=>Math.floor(i.date.year()/10)*10),p=()=>{var v;(v=c.value)==null||v.focus()},h=v=>{const _={},x=nr().locale(l.value);return _.disabled=i.disabledDate?n(v,l.value).every(i.disabledDate):!1,_.current=sd(i.parsedValue).findIndex(S=>S.year()===v)>=0,_.today=x.year()===v,_},m=v=>v===u.value&&i.date.year()<u.value&&i.date.year()>u.value+9||sd(i.date).findIndex(_=>_.year()===v)>=0,y=v=>{const x=v.target.closest("td");if(x&&x.textContent){if(tc(x,"disabled"))return;const S=x.textContent||x.innerText;r("pick",Number(S))}};return Ve(()=>i.date,async()=>{var v,_;(v=a.value)!=null&&v.contains(document.activeElement)&&(await Ct(),(_=c.value)==null||_.focus())}),t({focus:p}),(v,_)=>($(),K("table",{role:"grid","aria-label":g(s)("el.datepicker.yearTablePrompt"),class:N(g(o).b()),onClick:y},[G("tbody",{ref_key:"tbodyRef",ref:a},[($(),K(bt,null,or(3,(x,S)=>G("tr",{key:S},[($(),K(bt,null,or(4,(C,E)=>($(),K(bt,{key:S+"_"+E},[S*4+E<10?($(),K("td",{key:0,ref_for:!0,ref:T=>m(g(u)+S*4+E)&&(c.value=T),class:N(["available",h(g(u)+S*4+E)]),"aria-selected":`${m(g(u)+S*4+E)}`,tabindex:m(g(u)+S*4+E)?0:-1,onKeydown:[Lr(Yt(y,["prevent","stop"]),["space"]),Lr(Yt(y,["prevent","stop"]),["enter"])]},[G("span",rMe,rt(g(u)+S*4+E),1)],42,tMe)):($(),K("td",iMe))],64))),64))])),64))],512)],10,eMe))}});var oMe=ot(nMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const sMe=["onClick"],lMe=["aria-label"],aMe=["aria-label"],cMe=["aria-label"],uMe=["aria-label"],dMe=ye({__name:"panel-date-pick",props:RAe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const r=e,i=(Le,st,It)=>!0,n=He("picker-panel"),o=He("date-picker"),s=F1(),l=go(),{t:a,lang:c}=Hr(),u=_t("EP_PICKER_BASE"),p=_t(m3),{shortcuts:h,disabledDate:m,cellClassName:y,defaultTime:v,arrowControl:_}=u.props,x=Ni(u.props,"defaultValue"),S=F(),C=F(nr().locale(c.value)),E=F(!1),T=O(()=>nr(v).locale(c.value)),w=O(()=>C.value.month()),I=O(()=>C.value.year()),M=F([]),L=F(null),R=F(null),W=Le=>M.value.length>0?i(Le,M.value,r.format||"HH:mm:ss"):!0,z=Le=>v&&!ne.value&&!E.value?T.value.year(Le.year()).month(Le.month()).date(Le.date()):_e.value?Le.millisecond(0):Le.startOf("day"),j=(Le,...st)=>{if(!Le)t("pick",Le,...st);else if(wt(Le)){const It=Le.map(z);t("pick",It,...st)}else t("pick",z(Le),...st);L.value=null,R.value=null,E.value=!1},U=(Le,st)=>{if(ee.value==="date"){Le=Le;let It=r.parsedValue?r.parsedValue.year(Le.year()).month(Le.month()).date(Le.date()):Le;W(It)||(It=M.value[0][0].year(Le.year()).month(Le.month()).date(Le.date())),C.value=It,j(It,_e.value||st)}else ee.value==="week"?j(Le.date):ee.value==="dates"&&j(Le,!0)},Z=Le=>{const st=Le?"add":"subtract";C.value=C.value[st](1,"month"),Bt("month")},Q=Le=>{const st=C.value,It=Le?"add":"subtract";C.value=B.value==="year"?st[It](10,"year"):st[It](1,"year"),Bt("year")},B=F("date"),V=O(()=>{const Le=a("el.datepicker.year");if(B.value==="year"){const st=Math.floor(I.value/10)*10;return Le?`${st} ${Le} - ${st+9} ${Le}`:`${st} - ${st+9}`}return`${I.value} ${Le}`}),H=Le=>{const st=qt(Le.value)?Le.value():Le.value;if(st){j(nr(st).locale(c.value));return}Le.onClick&&Le.onClick({attrs:s,slots:l,emit:t})},ee=O(()=>{const{type:Le}=r;return["week","month","year","dates"].includes(Le)?Le:"date"}),ce=O(()=>ee.value==="date"?B.value:ee.value),re=O(()=>!!h.length),fe=async Le=>{C.value=C.value.startOf("month").month(Le),ee.value==="month"?j(C.value,!1):(B.value="date",["month","year","date","week"].includes(ee.value)&&(j(C.value,!0),await Ct(),gt())),Bt("month")},Ne=async Le=>{ee.value==="year"?(C.value=C.value.startOf("year").year(Le),j(C.value,!1)):(C.value=C.value.year(Le),B.value="month",["month","year","date","week"].includes(ee.value)&&(j(C.value,!0),await Ct(),gt())),Bt("year")},de=async Le=>{B.value=Le,await Ct(),gt()},_e=O(()=>r.type==="datetime"||r.type==="datetimerange"),ae=O(()=>_e.value||ee.value==="dates"),X=()=>{if(ee.value==="dates")j(r.parsedValue);else{let Le=r.parsedValue;if(!Le){const st=nr(v).locale(c.value),It=dt();Le=st.year(It.year()).month(It.month()).date(It.date())}C.value=Le,j(Le)}},he=()=>{const st=nr().locale(c.value).toDate();E.value=!0,(!m||!m(st))&&W(st)&&(C.value=nr().locale(c.value),j(C.value))},$e=O(()=>ZY(r.format)),Je=O(()=>KY(r.format)),ne=O(()=>{if(R.value)return R.value;if(!(!r.parsedValue&&!x.value))return(r.parsedValue||C.value).format($e.value)}),pe=O(()=>{if(L.value)return L.value;if(!(!r.parsedValue&&!x.value))return(r.parsedValue||C.value).format(Je.value)}),ge=F(!1),Se=()=>{ge.value=!0},xe=()=>{ge.value=!1},be=Le=>({hour:Le.hour(),minute:Le.minute(),second:Le.second(),year:Le.year(),month:Le.month(),date:Le.date()}),Qe=(Le,st,It)=>{const{hour:ie,minute:we,second:qe}=be(Le),it=r.parsedValue?r.parsedValue.hour(ie).minute(we).second(qe):Le;C.value=it,j(C.value,!0),It||(ge.value=st)},Fe=Le=>{const st=nr(Le,$e.value).locale(c.value);if(st.isValid()&&W(st)){const{year:It,month:ie,date:we}=be(C.value);C.value=st.year(It).month(ie).date(we),R.value=null,ge.value=!1,j(C.value,!0)}},Me=Le=>{const st=nr(Le,Je.value).locale(c.value);if(st.isValid()){if(m&&m(st.toDate()))return;const{hour:It,minute:ie,second:we}=be(C.value);C.value=st.hour(It).minute(ie).second(we),L.value=null,j(C.value,!0)}},Ie=Le=>nr.isDayjs(Le)&&Le.isValid()&&(m?!m(Le.toDate()):!0),Pe=Le=>ee.value==="dates"?Le.map(st=>st.format(r.format)):Le.format(r.format),Xe=Le=>nr(Le,r.format).locale(c.value),dt=()=>{const Le=nr(x.value).locale(c.value);if(!x.value){const st=T.value;return nr().hour(st.hour()).minute(st.minute()).second(st.second()).locale(c.value)}return Le},gt=async()=>{var Le;["week","month","year","date"].includes(ee.value)&&((Le=S.value)==null||Le.focus(),ee.value==="week"&&Jt(Rt.down))},Dt=Le=>{const{code:st}=Le;[Rt.up,Rt.down,Rt.left,Rt.right,Rt.home,Rt.end,Rt.pageUp,Rt.pageDown].includes(st)&&(Jt(st),Le.stopPropagation(),Le.preventDefault()),[Rt.enter,Rt.space].includes(st)&&L.value===null&&R.value===null&&(Le.preventDefault(),j(C.value,!1))},Jt=Le=>{var st;const{up:It,down:ie,left:we,right:qe,home:it,end:Zt,pageUp:Cr,pageDown:Pi}=Rt,fn={year:{[It]:-4,[ie]:4,[we]:-1,[qe]:1,offset:(Dr,Ze)=>Dr.setFullYear(Dr.getFullYear()+Ze)},month:{[It]:-4,[ie]:4,[we]:-1,[qe]:1,offset:(Dr,Ze)=>Dr.setMonth(Dr.getMonth()+Ze)},week:{[It]:-1,[ie]:1,[we]:-1,[qe]:1,offset:(Dr,Ze)=>Dr.setDate(Dr.getDate()+Ze*7)},date:{[It]:-7,[ie]:7,[we]:-1,[qe]:1,[it]:Dr=>-Dr.getDay(),[Zt]:Dr=>-Dr.getDay()+6,[Cr]:Dr=>-new Date(Dr.getFullYear(),Dr.getMonth(),0).getDate(),[Pi]:Dr=>new Date(Dr.getFullYear(),Dr.getMonth()+1,0).getDate(),offset:(Dr,Ze)=>Dr.setDate(Dr.getDate()+Ze)}},Kr=C.value.toDate();for(;Math.abs(C.value.diff(Kr,"year",!0))<1;){const Dr=fn[ce.value];if(!Dr)return;if(Dr.offset(Kr,qt(Dr[Le])?Dr[Le](Kr):(st=Dr[Le])!=null?st:0),m&&m(Kr))break;const Ze=nr(Kr).locale(c.value);C.value=Ze,t("pick",Ze,!0);break}},Bt=Le=>{t("panel-change",C.value.toDate(),Le,B.value)};return Ve(()=>ee.value,Le=>{if(["month","year"].includes(Le)){B.value=Le;return}B.value="date"},{immediate:!0}),Ve(()=>B.value,()=>{p==null||p.updatePopper()}),Ve(()=>x.value,Le=>{Le&&(C.value=dt())},{immediate:!0}),Ve(()=>r.parsedValue,Le=>{if(Le){if(ee.value==="dates"||Array.isArray(Le))return;C.value=Le}else C.value=dt()},{immediate:!0}),t("set-picker-option",["isValidValue",Ie]),t("set-picker-option",["formatToString",Pe]),t("set-picker-option",["parseUserInput",Xe]),t("set-picker-option",["handleFocusPicker",gt]),(Le,st)=>($(),K("div",{class:N([g(n).b(),g(o).b(),{"has-sidebar":Le.$slots.sidebar||g(re),"has-time":g(_e)}])},[G("div",{class:N(g(n).e("body-wrapper"))},[Be(Le.$slots,"sidebar",{class:N(g(n).e("sidebar"))}),g(re)?($(),K("div",{key:0,class:N(g(n).e("sidebar"))},[($(!0),K(bt,null,or(g(h),(It,ie)=>($(),K("button",{key:ie,type:"button",class:N(g(n).e("shortcut")),onClick:we=>H(It)},rt(It.text),11,sMe))),128))],2)):ke("v-if",!0),G("div",{class:N(g(n).e("body"))},[g(_e)?($(),K("div",{key:0,class:N(g(o).e("time-header"))},[G("span",{class:N(g(o).e("editor-wrap"))},[Y(g(Qi),{placeholder:g(a)("el.datepicker.selectDate"),"model-value":g(pe),size:"small","validate-event":!1,onInput:st[0]||(st[0]=It=>L.value=It),onChange:Me},null,8,["placeholder","model-value"])],2),kt(($(),K("span",{class:N(g(o).e("editor-wrap"))},[Y(g(Qi),{placeholder:g(a)("el.datepicker.selectTime"),"model-value":g(ne),size:"small","validate-event":!1,onFocus:Se,onInput:st[1]||(st[1]=It=>R.value=It),onChange:Fe},null,8,["placeholder","model-value"]),Y(g(pS),{visible:ge.value,format:g($e),"time-arrow-control":g(_),"parsed-value":C.value,onPick:Qe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[g(Ah),xe]])],2)):ke("v-if",!0),kt(G("div",{class:N([g(o).e("header"),(B.value==="year"||B.value==="month")&&g(o).e("header--bordered")])},[G("span",{class:N(g(o).e("prev-btn"))},[G("button",{type:"button","aria-label":g(a)("el.datepicker.prevYear"),class:N(["d-arrow-left",g(n).e("icon-btn")]),onClick:st[2]||(st[2]=It=>Q(!1))},[Y(g(At),null,{default:me(()=>[Y(g(Iv))]),_:1})],10,lMe),kt(G("button",{type:"button","aria-label":g(a)("el.datepicker.prevMonth"),class:N([g(n).e("icon-btn"),"arrow-left"]),onClick:st[3]||(st[3]=It=>Z(!1))},[Y(g(At),null,{default:me(()=>[Y(g(kh))]),_:1})],10,aMe),[[Vt,B.value==="date"]])],2),G("span",{role:"button",class:N(g(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:st[4]||(st[4]=Lr(It=>de("year"),["enter"])),onClick:st[5]||(st[5]=It=>de("year"))},rt(g(V)),35),kt(G("span",{role:"button","aria-live":"polite",tabindex:"0",class:N([g(o).e("header-label"),{active:B.value==="month"}]),onKeydown:st[6]||(st[6]=Lr(It=>de("month"),["enter"])),onClick:st[7]||(st[7]=It=>de("month"))},rt(g(a)(`el.datepicker.month${g(w)+1}`)),35),[[Vt,B.value==="date"]]),G("span",{class:N(g(o).e("next-btn"))},[kt(G("button",{type:"button","aria-label":g(a)("el.datepicker.nextMonth"),class:N([g(n).e("icon-btn"),"arrow-right"]),onClick:st[8]||(st[8]=It=>Z(!0))},[Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})],10,cMe),[[Vt,B.value==="date"]]),G("button",{type:"button","aria-label":g(a)("el.datepicker.nextYear"),class:N([g(n).e("icon-btn"),"d-arrow-right"]),onClick:st[9]||(st[9]=It=>Q(!0))},[Y(g(At),null,{default:me(()=>[Y(g(Pv))]),_:1})],10,uMe)],2)],2),[[Vt,B.value!=="time"]]),G("div",{class:N(g(n).e("content")),onKeydown:Dt},[B.value==="date"?($(),Te(LP,{key:0,ref_key:"currentViewRef",ref:S,"selection-mode":g(ee),date:C.value,"parsed-value":Le.parsedValue,"disabled-date":g(m),"cell-class-name":g(y),onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ke("v-if",!0),B.value==="year"?($(),Te(oMe,{key:1,ref_key:"currentViewRef",ref:S,date:C.value,"disabled-date":g(m),"parsed-value":Le.parsedValue,onPick:Ne},null,8,["date","disabled-date","parsed-value"])):ke("v-if",!0),B.value==="month"?($(),Te(RP,{key:2,ref_key:"currentViewRef",ref:S,date:C.value,"parsed-value":Le.parsedValue,"disabled-date":g(m),onPick:fe},null,8,["date","parsed-value","disabled-date"])):ke("v-if",!0)],34)],2)],2),kt(G("div",{class:N(g(n).e("footer"))},[kt(Y(g(Rn),{text:"",size:"small",class:N(g(n).e("link-btn")),onClick:he},{default:me(()=>[Ir(rt(g(a)("el.datepicker.now")),1)]),_:1},8,["class"]),[[Vt,g(ee)!=="dates"]]),Y(g(Rn),{plain:"",size:"small",class:N(g(n).e("link-btn")),onClick:X},{default:me(()=>[Ir(rt(g(a)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[Vt,g(ae)&&B.value==="date"]])],2))}});var pMe=ot(dMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const hMe=ct({...jK,...VK}),fMe=e=>{const{emit:t}=Xt(),r=F1(),i=go();return o=>{const s=qt(o.value)?o.value():o.value;if(s){t("pick",[nr(s[0]).locale(e.value),nr(s[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:r,slots:i,emit:t})}},WK=(e,{defaultValue:t,leftDate:r,rightDate:i,unit:n,onParsedValueChanged:o})=>{const{emit:s}=Xt(),{pickerNs:l}=_t(NR),a=He("date-range-picker"),{t:c,lang:u}=Hr(),p=fMe(u),h=F(),m=F(),y=F({endDate:null,selecting:!1}),v=C=>{y.value=C},_=(C=!1)=>{const E=g(h),T=g(m);OP([E,T])&&s("pick",[E,T],C)},x=C=>{y.value.selecting=C,C||(y.value.endDate=null)},S=()=>{const[C,E]=UK(g(t),{lang:g(u),unit:n,unlinkPanels:e.unlinkPanels});h.value=void 0,m.value=void 0,r.value=C,i.value=E};return Ve(t,C=>{C&&S()},{immediate:!0}),Ve(()=>e.parsedValue,C=>{if(wt(C)&&C.length===2){const[E,T]=C;h.value=E,r.value=E,m.value=T,o(g(h),g(m))}else S()},{immediate:!0}),{minDate:h,maxDate:m,rangeState:y,lang:u,ppNs:l,drpNs:a,handleChangeRange:v,handleRangeConfirm:_,handleShortcutClick:p,onSelect:x,t:c}},mMe=["onClick"],gMe=["disabled"],yMe=["disabled"],vMe=["disabled"],bMe=["disabled"],l2="month",_Me=ye({__name:"panel-date-range",props:hMe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const r=e,i=_t("EP_PICKER_BASE"),{disabledDate:n,cellClassName:o,format:s,defaultTime:l,arrowControl:a,clearable:c}=i.props,u=Ni(i.props,"shortcuts"),p=Ni(i.props,"defaultValue"),{lang:h}=Hr(),m=F(nr().locale(h.value)),y=F(nr().locale(h.value).add(1,l2)),{minDate:v,maxDate:_,rangeState:x,ppNs:S,drpNs:C,handleChangeRange:E,handleRangeConfirm:T,handleShortcutClick:w,onSelect:I,t:M}=WK(r,{defaultValue:p,leftDate:m,rightDate:y,unit:l2,onParsedValueChanged:ie}),L=F({min:null,max:null}),R=F({min:null,max:null}),W=O(()=>`${m.value.year()} ${M("el.datepicker.year")} ${M(`el.datepicker.month${m.value.month()+1}`)}`),z=O(()=>`${y.value.year()} ${M("el.datepicker.year")} ${M(`el.datepicker.month${y.value.month()+1}`)}`),j=O(()=>m.value.year()),U=O(()=>m.value.month()),Z=O(()=>y.value.year()),Q=O(()=>y.value.month()),B=O(()=>!!u.value.length),V=O(()=>L.value.min!==null?L.value.min:v.value?v.value.format(fe.value):""),H=O(()=>L.value.max!==null?L.value.max:_.value||v.value?(_.value||v.value).format(fe.value):""),ee=O(()=>R.value.min!==null?R.value.min:v.value?v.value.format(re.value):""),ce=O(()=>R.value.max!==null?R.value.max:_.value||v.value?(_.value||v.value).format(re.value):""),re=O(()=>ZY(s)),fe=O(()=>KY(s)),Ne=()=>{m.value=m.value.subtract(1,"year"),r.unlinkPanels||(y.value=m.value.add(1,"month")),ne("year")},de=()=>{m.value=m.value.subtract(1,"month"),r.unlinkPanels||(y.value=m.value.add(1,"month")),ne("month")},_e=()=>{r.unlinkPanels?y.value=y.value.add(1,"year"):(m.value=m.value.add(1,"year"),y.value=m.value.add(1,"month")),ne("year")},ae=()=>{r.unlinkPanels?y.value=y.value.add(1,"month"):(m.value=m.value.add(1,"month"),y.value=m.value.add(1,"month")),ne("month")},X=()=>{m.value=m.value.add(1,"year"),ne("year")},he=()=>{m.value=m.value.add(1,"month"),ne("month")},$e=()=>{y.value=y.value.subtract(1,"year"),ne("year")},Je=()=>{y.value=y.value.subtract(1,"month"),ne("month")},ne=we=>{t("panel-change",[m.value.toDate(),y.value.toDate()],we)},pe=O(()=>{const we=(U.value+1)%12,qe=U.value+1>=12?1:0;return r.unlinkPanels&&new Date(j.value+qe,we)<new Date(Z.value,Q.value)}),ge=O(()=>r.unlinkPanels&&Z.value*12+Q.value-(j.value*12+U.value+1)>=12),Se=O(()=>!(v.value&&_.value&&!x.value.selecting&&OP([v.value,_.value]))),xe=O(()=>r.type==="datetime"||r.type==="datetimerange"),be=(we,qe)=>{if(!!we)return l?nr(l[qe]||l).locale(h.value).year(we.year()).month(we.month()).date(we.date()):we},Qe=(we,qe=!0)=>{const it=we.minDate,Zt=we.maxDate,Cr=be(it,0),Pi=be(Zt,1);_.value===Pi&&v.value===Cr||(t("calendar-change",[it.toDate(),Zt&&Zt.toDate()]),_.value=Pi,v.value=Cr,!(!qe||xe.value)&&T())},Fe=F(!1),Me=F(!1),Ie=()=>{Fe.value=!1},Pe=()=>{Me.value=!1},Xe=(we,qe)=>{L.value[qe]=we;const it=nr(we,fe.value).locale(h.value);if(it.isValid()){if(n&&n(it.toDate()))return;qe==="min"?(m.value=it,v.value=(v.value||m.value).year(it.year()).month(it.month()).date(it.date()),r.unlinkPanels||(y.value=it.add(1,"month"),_.value=v.value.add(1,"month"))):(y.value=it,_.value=(_.value||y.value).year(it.year()).month(it.month()).date(it.date()),r.unlinkPanels||(m.value=it.subtract(1,"month"),v.value=_.value.subtract(1,"month")))}},dt=(we,qe)=>{L.value[qe]=null},gt=(we,qe)=>{R.value[qe]=we;const it=nr(we,re.value).locale(h.value);it.isValid()&&(qe==="min"?(Fe.value=!0,v.value=(v.value||m.value).hour(it.hour()).minute(it.minute()).second(it.second()),(!_.value||_.value.isBefore(v.value))&&(_.value=v.value)):(Me.value=!0,_.value=(_.value||y.value).hour(it.hour()).minute(it.minute()).second(it.second()),y.value=_.value,_.value&&_.value.isBefore(v.value)&&(v.value=_.value)))},Dt=(we,qe)=>{R.value[qe]=null,qe==="min"?(m.value=v.value,Fe.value=!1):(y.value=_.value,Me.value=!1)},Jt=(we,qe,it)=>{R.value.min||(we&&(m.value=we,v.value=(v.value||m.value).hour(we.hour()).minute(we.minute()).second(we.second())),it||(Fe.value=qe),(!_.value||_.value.isBefore(v.value))&&(_.value=v.value,y.value=we))},Bt=(we,qe,it)=>{R.value.max||(we&&(y.value=we,_.value=(_.value||y.value).hour(we.hour()).minute(we.minute()).second(we.second())),it||(Me.value=qe),_.value&&_.value.isBefore(v.value)&&(v.value=_.value))},Le=()=>{m.value=UK(g(p),{lang:g(h),unit:"month",unlinkPanels:r.unlinkPanels})[0],y.value=m.value.add(1,"month"),t("pick",null)},st=we=>wt(we)?we.map(qe=>qe.format(s)):we.format(s),It=we=>wt(we)?we.map(qe=>nr(qe,s).locale(h.value)):nr(we,s).locale(h.value);function ie(we,qe){if(r.unlinkPanels&&qe){const it=(we==null?void 0:we.year())||0,Zt=(we==null?void 0:we.month())||0,Cr=qe.year(),Pi=qe.month();y.value=it===Cr&&Zt===Pi?qe.add(1,l2):qe}else y.value=m.value.add(1,l2),qe&&(y.value=y.value.hour(qe.hour()).minute(qe.minute()).second(qe.second()))}return t("set-picker-option",["isValidValue",OP]),t("set-picker-option",["parseUserInput",It]),t("set-picker-option",["formatToString",st]),t("set-picker-option",["handleClear",Le]),(we,qe)=>($(),K("div",{class:N([g(S).b(),g(C).b(),{"has-sidebar":we.$slots.sidebar||g(B),"has-time":g(xe)}])},[G("div",{class:N(g(S).e("body-wrapper"))},[Be(we.$slots,"sidebar",{class:N(g(S).e("sidebar"))}),g(B)?($(),K("div",{key:0,class:N(g(S).e("sidebar"))},[($(!0),K(bt,null,or(g(u),(it,Zt)=>($(),K("button",{key:Zt,type:"button",class:N(g(S).e("shortcut")),onClick:Cr=>g(w)(it)},rt(it.text),11,mMe))),128))],2)):ke("v-if",!0),G("div",{class:N(g(S).e("body"))},[g(xe)?($(),K("div",{key:0,class:N(g(C).e("time-header"))},[G("span",{class:N(g(C).e("editors-wrap"))},[G("span",{class:N(g(C).e("time-picker-wrap"))},[Y(g(Qi),{size:"small",disabled:g(x).selecting,placeholder:g(M)("el.datepicker.startDate"),class:N(g(C).e("editor")),"model-value":g(V),"validate-event":!1,onInput:qe[0]||(qe[0]=it=>Xe(it,"min")),onChange:qe[1]||(qe[1]=it=>dt(it,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),kt(($(),K("span",{class:N(g(C).e("time-picker-wrap"))},[Y(g(Qi),{size:"small",class:N(g(C).e("editor")),disabled:g(x).selecting,placeholder:g(M)("el.datepicker.startTime"),"model-value":g(ee),"validate-event":!1,onFocus:qe[2]||(qe[2]=it=>Fe.value=!0),onInput:qe[3]||(qe[3]=it=>gt(it,"min")),onChange:qe[4]||(qe[4]=it=>Dt(it,"min"))},null,8,["class","disabled","placeholder","model-value"]),Y(g(pS),{visible:Fe.value,format:g(re),"datetime-role":"start","time-arrow-control":g(a),"parsed-value":m.value,onPick:Jt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[g(Ah),Ie]])],2),G("span",null,[Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})]),G("span",{class:N([g(C).e("editors-wrap"),"is-right"])},[G("span",{class:N(g(C).e("time-picker-wrap"))},[Y(g(Qi),{size:"small",class:N(g(C).e("editor")),disabled:g(x).selecting,placeholder:g(M)("el.datepicker.endDate"),"model-value":g(H),readonly:!g(v),"validate-event":!1,onInput:qe[5]||(qe[5]=it=>Xe(it,"max")),onChange:qe[6]||(qe[6]=it=>dt(it,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),kt(($(),K("span",{class:N(g(C).e("time-picker-wrap"))},[Y(g(Qi),{size:"small",class:N(g(C).e("editor")),disabled:g(x).selecting,placeholder:g(M)("el.datepicker.endTime"),"model-value":g(ce),readonly:!g(v),"validate-event":!1,onFocus:qe[7]||(qe[7]=it=>g(v)&&(Me.value=!0)),onInput:qe[8]||(qe[8]=it=>gt(it,"max")),onChange:qe[9]||(qe[9]=it=>Dt(it,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Y(g(pS),{"datetime-role":"end",visible:Me.value,format:g(re),"time-arrow-control":g(a),"parsed-value":y.value,onPick:Bt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[g(Ah),Pe]])],2)],2)):ke("v-if",!0),G("div",{class:N([[g(S).e("content"),g(C).e("content")],"is-left"])},[G("div",{class:N(g(C).e("header"))},[G("button",{type:"button",class:N([g(S).e("icon-btn"),"d-arrow-left"]),onClick:Ne},[Y(g(At),null,{default:me(()=>[Y(g(Iv))]),_:1})],2),G("button",{type:"button",class:N([g(S).e("icon-btn"),"arrow-left"]),onClick:de},[Y(g(At),null,{default:me(()=>[Y(g(kh))]),_:1})],2),we.unlinkPanels?($(),K("button",{key:0,type:"button",disabled:!g(ge),class:N([[g(S).e("icon-btn"),{"is-disabled":!g(ge)}],"d-arrow-right"]),onClick:X},[Y(g(At),null,{default:me(()=>[Y(g(Pv))]),_:1})],10,gMe)):ke("v-if",!0),we.unlinkPanels?($(),K("button",{key:1,type:"button",disabled:!g(pe),class:N([[g(S).e("icon-btn"),{"is-disabled":!g(pe)}],"arrow-right"]),onClick:he},[Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})],10,yMe)):ke("v-if",!0),G("div",null,rt(g(W)),1)],2),Y(LP,{"selection-mode":"range",date:m.value,"min-date":g(v),"max-date":g(_),"range-state":g(x),"disabled-date":g(n),"cell-class-name":g(o),onChangerange:g(E),onPick:Qe,onSelect:g(I)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),G("div",{class:N([[g(S).e("content"),g(C).e("content")],"is-right"])},[G("div",{class:N(g(C).e("header"))},[we.unlinkPanels?($(),K("button",{key:0,type:"button",disabled:!g(ge),class:N([[g(S).e("icon-btn"),{"is-disabled":!g(ge)}],"d-arrow-left"]),onClick:$e},[Y(g(At),null,{default:me(()=>[Y(g(Iv))]),_:1})],10,vMe)):ke("v-if",!0),we.unlinkPanels?($(),K("button",{key:1,type:"button",disabled:!g(pe),class:N([[g(S).e("icon-btn"),{"is-disabled":!g(pe)}],"arrow-left"]),onClick:Je},[Y(g(At),null,{default:me(()=>[Y(g(kh))]),_:1})],10,bMe)):ke("v-if",!0),G("button",{type:"button",class:N([g(S).e("icon-btn"),"d-arrow-right"]),onClick:_e},[Y(g(At),null,{default:me(()=>[Y(g(Pv))]),_:1})],2),G("button",{type:"button",class:N([g(S).e("icon-btn"),"arrow-right"]),onClick:ae},[Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})],2),G("div",null,rt(g(z)),1)],2),Y(LP,{"selection-mode":"range",date:y.value,"min-date":g(v),"max-date":g(_),"range-state":g(x),"disabled-date":g(n),"cell-class-name":g(o),onChangerange:g(E),onPick:Qe,onSelect:g(I)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),g(xe)?($(),K("div",{key:0,class:N(g(S).e("footer"))},[g(c)?($(),Te(g(Rn),{key:0,text:"",size:"small",class:N(g(S).e("link-btn")),onClick:Le},{default:me(()=>[Ir(rt(g(M)("el.datepicker.clear")),1)]),_:1},8,["class"])):ke("v-if",!0),Y(g(Rn),{plain:"",size:"small",class:N(g(S).e("link-btn")),disabled:g(Se),onClick:qe[10]||(qe[10]=it=>g(T)(!1))},{default:me(()=>[Ir(rt(g(M)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ke("v-if",!0)],2))}});var wMe=ot(_Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const xMe=ct({...VK}),CMe=["pick","set-picker-option"],kMe=({unlinkPanels:e,leftDate:t,rightDate:r})=>{const{t:i}=Hr(),n=()=>{t.value=t.value.subtract(1,"year"),e.value||(r.value=r.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),r.value=r.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},l=()=>{r.value=r.value.subtract(1,"year")},a=O(()=>`${t.value.year()} ${i("el.datepicker.year")}`),c=O(()=>`${r.value.year()} ${i("el.datepicker.year")}`),u=O(()=>t.value.year()),p=O(()=>r.value.year()===t.value.year()?t.value.year()+1:r.value.year());return{leftPrevYear:n,rightNextYear:o,leftNextYear:s,rightPrevYear:l,leftLabel:a,rightLabel:c,leftYear:u,rightYear:p}},SMe=["onClick"],EMe=["disabled"],TMe=["disabled"],a2="year",AMe=ye({name:"DatePickerMonthRange"}),MMe=ye({...AMe,props:xMe,emits:CMe,setup(e,{emit:t}){const r=e,{lang:i}=Hr(),n=_t("EP_PICKER_BASE"),{shortcuts:o,disabledDate:s,format:l}=n.props,a=Ni(n.props,"defaultValue"),c=F(nr().locale(i.value)),u=F(nr().locale(i.value).add(1,a2)),{minDate:p,maxDate:h,rangeState:m,ppNs:y,drpNs:v,handleChangeRange:_,handleRangeConfirm:x,handleShortcutClick:S,onSelect:C}=WK(r,{defaultValue:a,leftDate:c,rightDate:u,unit:a2,onParsedValueChanged:Q}),E=O(()=>!!o.length),{leftPrevYear:T,rightNextYear:w,leftNextYear:I,rightPrevYear:M,leftLabel:L,rightLabel:R,leftYear:W,rightYear:z}=kMe({unlinkPanels:Ni(r,"unlinkPanels"),leftDate:c,rightDate:u}),j=O(()=>r.unlinkPanels&&z.value>W.value+1),U=(B,V=!0)=>{const H=B.minDate,ee=B.maxDate;h.value===ee&&p.value===H||(h.value=ee,p.value=H,V&&x())},Z=B=>B.map(V=>V.format(l));function Q(B,V){if(r.unlinkPanels&&V){const H=(B==null?void 0:B.year())||0,ee=V.year();u.value=H===ee?V.add(1,a2):V}else u.value=c.value.add(1,a2)}return t("set-picker-option",["formatToString",Z]),(B,V)=>($(),K("div",{class:N([g(y).b(),g(v).b(),{"has-sidebar":Boolean(B.$slots.sidebar)||g(E)}])},[G("div",{class:N(g(y).e("body-wrapper"))},[Be(B.$slots,"sidebar",{class:N(g(y).e("sidebar"))}),g(E)?($(),K("div",{key:0,class:N(g(y).e("sidebar"))},[($(!0),K(bt,null,or(g(o),(H,ee)=>($(),K("button",{key:ee,type:"button",class:N(g(y).e("shortcut")),onClick:ce=>g(S)(H)},rt(H.text),11,SMe))),128))],2)):ke("v-if",!0),G("div",{class:N(g(y).e("body"))},[G("div",{class:N([[g(y).e("content"),g(v).e("content")],"is-left"])},[G("div",{class:N(g(v).e("header"))},[G("button",{type:"button",class:N([g(y).e("icon-btn"),"d-arrow-left"]),onClick:V[0]||(V[0]=(...H)=>g(T)&&g(T)(...H))},[Y(g(At),null,{default:me(()=>[Y(g(Iv))]),_:1})],2),B.unlinkPanels?($(),K("button",{key:0,type:"button",disabled:!g(j),class:N([[g(y).e("icon-btn"),{[g(y).is("disabled")]:!g(j)}],"d-arrow-right"]),onClick:V[1]||(V[1]=(...H)=>g(I)&&g(I)(...H))},[Y(g(At),null,{default:me(()=>[Y(g(Pv))]),_:1})],10,EMe)):ke("v-if",!0),G("div",null,rt(g(L)),1)],2),Y(RP,{"selection-mode":"range",date:c.value,"min-date":g(p),"max-date":g(h),"range-state":g(m),"disabled-date":g(s),onChangerange:g(_),onPick:U,onSelect:g(C)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),G("div",{class:N([[g(y).e("content"),g(v).e("content")],"is-right"])},[G("div",{class:N(g(v).e("header"))},[B.unlinkPanels?($(),K("button",{key:0,type:"button",disabled:!g(j),class:N([[g(y).e("icon-btn"),{"is-disabled":!g(j)}],"d-arrow-left"]),onClick:V[2]||(V[2]=(...H)=>g(M)&&g(M)(...H))},[Y(g(At),null,{default:me(()=>[Y(g(Iv))]),_:1})],10,TMe)):ke("v-if",!0),G("button",{type:"button",class:N([g(y).e("icon-btn"),"d-arrow-right"]),onClick:V[3]||(V[3]=(...H)=>g(w)&&g(w)(...H))},[Y(g(At),null,{default:me(()=>[Y(g(Pv))]),_:1})],2),G("div",null,rt(g(R)),1)],2),Y(RP,{"selection-mode":"range",date:u.value,"min-date":g(p),"max-date":g(h),"range-state":g(m),"disabled-date":g(s),onChangerange:g(_),onPick:U,onSelect:g(C)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var IMe=ot(MMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const PMe=function(e){switch(e){case"daterange":case"datetimerange":return wMe;case"monthrange":return IMe;default:return pMe}};nr.extend(pK);nr.extend(TAe);nr.extend(r4);nr.extend(AAe);nr.extend(MAe);nr.extend(IAe);nr.extend(PAe);nr.extend($Ae);var $Me=ye({name:"ElDatePicker",install:null,props:{...i4,...OAe},emits:["update:modelValue"],setup(e,{expose:t,emit:r,slots:i}){const n=He("picker-panel");cr("ElPopperOptions",kr(Ni(e,"popperOptions"))),cr(NR,{slots:i,pickerNs:n});const o=F();t({focus:(a=!0)=>{var c;(c=o.value)==null||c.focus(a)},handleOpen:()=>{var a;(a=o.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=o.value)==null||a.handleClose()}});const l=a=>{r("update:modelValue",a)};return()=>{var a;const c=(a=e.format)!=null?a:NSe[e.type]||Xg,u=PMe(e.type);return Y(XY,sr(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:p=>Y(u,p,null),"range-separator":i["range-separator"]})}}});const SC=$Me;SC.install=e=>{e.component(SC.name,SC)};const OMe=SC,l4="elDescriptions";var ab=ye({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:_t(l4,{})}},render(){var e,t,r,i,n,o;const s=U1e(this.cell),{border:l,direction:a}=this.descriptions,c=a==="vertical",u=((r=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:r.call(t))||s.label,p=(o=(n=(i=this.cell)==null?void 0:i.children)==null?void 0:n.default)==null?void 0:o.call(n),h=s.span,m=s.align?`is-${s.align}`:"",y=s.labelAlign?`is-${s.labelAlign}`:m,v=s.className,_=s.labelClassName,x={width:Tn(s.width),minWidth:Tn(s.minWidth)},S=He("descriptions");switch(this.type){case"label":return Lt(this.tag,{style:x,class:[S.e("cell"),S.e("label"),S.is("bordered-label",l),S.is("vertical-label",c),y,_],colSpan:c?h:1},u);case"content":return Lt(this.tag,{style:x,class:[S.e("cell"),S.e("content"),S.is("bordered-content",l),S.is("vertical-content",c),m,v],colSpan:c?h:h*2-1},p);default:return Lt("td",{style:x,class:[S.e("cell"),m],colSpan:h},[Lt("span",{class:[S.e("label"),_]},u),Lt("span",{class:[S.e("content"),v]},p)])}}});const LMe=ct({row:{type:Array,default:()=>[]}}),RMe={key:1},DMe=ye({name:"ElDescriptionsRow"}),NMe=ye({...DMe,props:LMe,setup(e){const t=_t(l4,{});return(r,i)=>g(t).direction==="vertical"?($(),K(bt,{key:0},[G("tr",null,[($(!0),K(bt,null,or(r.row,(n,o)=>($(),Te(g(ab),{key:`tr1-${o}`,cell:n,tag:"th",type:"label"},null,8,["cell"]))),128))]),G("tr",null,[($(!0),K(bt,null,or(r.row,(n,o)=>($(),Te(g(ab),{key:`tr2-${o}`,cell:n,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):($(),K("tr",RMe,[($(!0),K(bt,null,or(r.row,(n,o)=>($(),K(bt,{key:`tr3-${o}`},[g(t).border?($(),K(bt,{key:0},[Y(g(ab),{cell:n,tag:"td",type:"label"},null,8,["cell"]),Y(g(ab),{cell:n,tag:"td",type:"content"},null,8,["cell"])],64)):($(),Te(g(ab),{key:1,cell:n,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var FMe=ot(NMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const zMe=ct({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Vs,title:{type:String,default:""},extra:{type:String,default:""}}),jMe=ye({name:"ElDescriptions"}),VMe=ye({...jMe,props:zMe,setup(e){const t=e,r=He("descriptions"),i=An(),n=go();cr(l4,t);const o=O(()=>[r.b(),r.m(i.value)]),s=(a,c,u,p=!1)=>(a.props||(a.props={}),c>u&&(a.props.span=u),p&&(a.props.span=c),a),l=()=>{var a;const c=iv((a=n.default)==null?void 0:a.call(n)).filter(y=>{var v;return((v=y==null?void 0:y.type)==null?void 0:v.name)==="ElDescriptionsItem"}),u=[];let p=[],h=t.column,m=0;return c.forEach((y,v)=>{var _;const x=((_=y.props)==null?void 0:_.span)||1;if(v<c.length-1&&(m+=x>h?h:x),v===c.length-1){const S=t.column-m%t.column;p.push(s(y,S,h,!0)),u.push(p);return}x<h?(h-=x,p.push(y)):(p.push(s(y,x,h)),u.push(p),h=t.column,p=[])}),u};return(a,c)=>($(),K("div",{class:N(g(o))},[a.title||a.extra||a.$slots.title||a.$slots.extra?($(),K("div",{key:0,class:N(g(r).e("header"))},[G("div",{class:N(g(r).e("title"))},[Be(a.$slots,"title",{},()=>[Ir(rt(a.title),1)])],2),G("div",{class:N(g(r).e("extra"))},[Be(a.$slots,"extra",{},()=>[Ir(rt(a.extra),1)])],2)],2)):ke("v-if",!0),G("div",{class:N(g(r).e("body"))},[G("table",{class:N([g(r).e("table"),g(r).is("bordered",a.border)])},[G("tbody",null,[($(!0),K(bt,null,or(l(),(u,p)=>($(),Te(FMe,{key:p,row:u},null,8,["row"]))),128))])],2)],2)],2))}});var BMe=ot(VMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),HK=ye({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const UMe=lr(BMe,{DescriptionsItem:HK}),WMe=Hi(HK),HMe=ct({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Oe([String,Array,Object])},zIndex:{type:Oe([String,Number])}}),GMe={click:e=>e instanceof MouseEvent};var qMe=ye({name:"ElOverlay",props:HMe,emits:GMe,setup(e,{slots:t,emit:r}){const i=He("overlay"),n=a=>{r("click",a)},{onClick:o,onMousedown:s,onMouseup:l}=FR(e.customMaskEvent?void 0:n);return()=>e.mask?Y("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:s,onMouseup:l},[Be(t,"default")],Bl.STYLE|Bl.CLASS|Bl.PROPS,["onClick","onMouseup","onMousedown"]):Lt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Be(t,"default")])}});const a4=qMe,GK=ct({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:yi},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),YMe={close:()=>!0},KMe=["aria-label"],ZMe=["id"],QMe=ye({name:"ElDialogContent"}),JMe=ye({...QMe,props:GK,emits:YMe,setup(e){const t=e,{t:r}=Hr(),{Close:i}=zq,{dialogRef:n,headerRef:o,bodyId:s,ns:l,style:a}=_t(qq),{focusTrapRef:c}=_t(JR),u=u3(c,n),p=O(()=>t.draggable);return nY(n,o,p),(h,m)=>($(),K("div",{ref:g(u),class:N([g(l).b(),g(l).is("fullscreen",h.fullscreen),g(l).is("draggable",g(p)),g(l).is("align-center",h.alignCenter),{[g(l).m("center")]:h.center},h.customClass]),style:St(g(a)),tabindex:"-1"},[G("header",{ref_key:"headerRef",ref:o,class:N(g(l).e("header"))},[Be(h.$slots,"header",{},()=>[G("span",{role:"heading",class:N(g(l).e("title"))},rt(h.title),3)]),h.showClose?($(),K("button",{key:0,"aria-label":g(r)("el.dialog.close"),class:N(g(l).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=y=>h.$emit("close"))},[Y(g(At),{class:N(g(l).e("close"))},{default:me(()=>[($(),Te(br(h.closeIcon||g(i))))]),_:1},8,["class"])],10,KMe)):ke("v-if",!0)],2),G("div",{id:g(s),class:N(g(l).e("body"))},[Be(h.$slots,"default")],10,ZMe),h.$slots.footer?($(),K("footer",{key:0,class:N(g(l).e("footer"))},[Be(h.$slots,"footer")],2)):ke("v-if",!0)],6))}});var XMe=ot(JMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const qK=ct({...GK,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Oe(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),YK={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ar]:e=>Ln(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},KK=(e,t)=>{const i=Xt().emit,{nextZIndex:n}=$d();let o="";const s=ac(),l=ac(),a=F(!1),c=F(!1),u=F(!1),p=F(e.zIndex||n());let h,m;const y=Pd("namespace",y3),v=O(()=>{const U={},Z=`--${y.value}-dialog`;return e.fullscreen||(e.top&&(U[`${Z}-margin-top`]=e.top),e.width&&(U[`${Z}-width`]=Tn(e.width))),U}),_=O(()=>e.alignCenter?{display:"flex"}:{});function x(){i("opened")}function S(){i("closed"),i(ar,!1),e.destroyOnClose&&(u.value=!1)}function C(){i("close")}function E(){m==null||m(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=eg(()=>M(),e.openDelay):M()}function T(){h==null||h(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=eg(()=>L(),e.closeDelay):L()}function w(){function U(Z){Z||(c.value=!0,a.value=!1)}e.beforeClose?e.beforeClose(U):T()}function I(){e.closeOnClickModal&&w()}function M(){!Rr||(a.value=!0)}function L(){a.value=!1}function R(){i("openAutoFocus")}function W(){i("closeAutoFocus")}function z(U){var Z;((Z=U.detail)==null?void 0:Z.focusReason)==="pointer"&&U.preventDefault()}e.lockScroll&&sY(a);function j(){e.closeOnPressEscape&&w()}return Ve(()=>e.modelValue,U=>{U?(c.value=!1,E(),u.value=!0,p.value=e.zIndex?p.value++:n(),Ct(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):a.value&&T()}),Ve(()=>e.fullscreen,U=>{!t.value||(U?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),er(()=>{e.modelValue&&(a.value=!0,u.value=!0,E())}),{afterEnter:x,afterLeave:S,beforeLeave:C,handleClose:w,onModalClick:I,close:T,doClose:L,onOpenAutoFocus:R,onCloseAutoFocus:W,onCloseRequested:j,onFocusoutPrevented:z,titleId:s,bodyId:l,closed:c,style:v,overlayDialogStyle:_,rendered:u,visible:a,zIndex:p}},eIe=["aria-label","aria-labelledby","aria-describedby"],tIe=ye({name:"ElDialog",inheritAttrs:!1}),rIe=ye({...tIe,props:qK,emits:YK,setup(e,{expose:t}){const r=e,i=go();yd({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},O(()=>!!i.title)),yd({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},O(()=>!!r.customClass));const n=He("dialog"),o=F(),s=F(),l=F(),{visible:a,titleId:c,bodyId:u,style:p,overlayDialogStyle:h,rendered:m,zIndex:y,afterEnter:v,afterLeave:_,beforeLeave:x,handleClose:S,onModalClick:C,onOpenAutoFocus:E,onCloseAutoFocus:T,onCloseRequested:w,onFocusoutPrevented:I}=KK(r,o);cr(qq,{dialogRef:o,headerRef:s,bodyId:u,ns:n,rendered:m,style:p});const M=FR(C),L=O(()=>r.draggable&&!r.fullscreen);return t({visible:a,dialogContentRef:l}),(R,W)=>($(),Te(d0,{to:"body",disabled:!R.appendToBody},[Y(Xi,{name:"dialog-fade",onAfterEnter:g(v),onAfterLeave:g(_),onBeforeLeave:g(x),persisted:""},{default:me(()=>[kt(Y(g(a4),{"custom-mask-event":"",mask:R.modal,"overlay-class":R.modalClass,"z-index":g(y)},{default:me(()=>[G("div",{role:"dialog","aria-modal":"true","aria-label":R.title||void 0,"aria-labelledby":R.title?void 0:g(c),"aria-describedby":g(u),class:N(`${g(n).namespace.value}-overlay-dialog`),style:St(g(h)),onClick:W[0]||(W[0]=(...z)=>g(M).onClick&&g(M).onClick(...z)),onMousedown:W[1]||(W[1]=(...z)=>g(M).onMousedown&&g(M).onMousedown(...z)),onMouseup:W[2]||(W[2]=(...z)=>g(M).onMouseup&&g(M).onMouseup(...z))},[Y(g(w3),{loop:"",trapped:g(a),"focus-start-el":"container",onFocusAfterTrapped:g(E),onFocusAfterReleased:g(T),onFocusoutPrevented:g(I),onReleaseRequested:g(w)},{default:me(()=>[g(m)?($(),Te(XMe,sr({key:0,ref_key:"dialogContentRef",ref:l},R.$attrs,{"custom-class":R.customClass,center:R.center,"align-center":R.alignCenter,"close-icon":R.closeIcon,draggable:g(L),fullscreen:R.fullscreen,"show-close":R.showClose,title:R.title,onClose:g(S)}),fd({header:me(()=>[R.$slots.title?Be(R.$slots,"title",{key:1}):Be(R.$slots,"header",{key:0,close:g(S),titleId:g(c),titleClass:g(n).e("title")})]),default:me(()=>[Be(R.$slots,"default")]),_:2},[R.$slots.footer?{name:"footer",fn:me(()=>[Be(R.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ke("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,eIe)]),_:3},8,["mask","overlay-class","z-index"]),[[Vt,g(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var iIe=ot(rIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const k3=lr(iIe),nIe=ct({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Oe(String),default:"solid"}}),oIe=ye({name:"ElDivider"}),sIe=ye({...oIe,props:nIe,setup(e){const t=e,r=He("divider"),i=O(()=>r.cssVar({"border-style":t.borderStyle}));return(n,o)=>($(),K("div",{class:N([g(r).b(),g(r).m(n.direction)]),style:St(g(i)),role:"separator"},[n.$slots.default&&n.direction!=="vertical"?($(),K("div",{key:0,class:N([g(r).e("text"),g(r).is(n.contentPosition)])},[Be(n.$slots,"default")],2)):ke("v-if",!0)],6))}});var lIe=ot(sIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ZK=lr(lIe),aIe=ct({...qK,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),cIe=YK,uIe=ye({name:"ElDrawer",components:{ElOverlay:a4,ElFocusTrap:w3,ElIcon:At,Close:ia},inheritAttrs:!1,props:aIe,emits:cIe,setup(e,{slots:t}){yd({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},O(()=>!!t.title)),yd({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},O(()=>!!e.customClass));const r=F(),i=F(),n=He("drawer"),{t:o}=Hr(),s=O(()=>e.direction==="rtl"||e.direction==="ltr"),l=O(()=>Tn(e.size));return{...KK(e,r),drawerRef:r,focusStartRef:i,isHorizontal:s,drawerSize:l,ns:n,t:o}}}),dIe=["aria-label","aria-labelledby","aria-describedby"],pIe=["id"],hIe=["aria-label"],fIe=["id"];function mIe(e,t,r,i,n,o){const s=Ft("close"),l=Ft("el-icon"),a=Ft("el-focus-trap"),c=Ft("el-overlay");return $(),Te(d0,{to:"body",disabled:!e.appendToBody},[Y(Xi,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:me(()=>[kt(Y(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:me(()=>[Y(a,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:me(()=>[G("div",sr({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Yt(()=>{},["stop"]))}),[G("span",{ref:"focusStartRef",class:N(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?($(),K("header",{key:0,class:N(e.ns.e("header"))},[e.$slots.title?Be(e.$slots,"title",{key:1},()=>[ke(" DEPRECATED SLOT ")]):Be(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ke("v-if",!0):($(),K("span",{key:0,id:e.titleId,role:"heading",class:N(e.ns.e("title"))},rt(e.title),11,pIe))]),e.showClose?($(),K("button",{key:2,"aria-label":e.t("el.drawer.close"),class:N(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...u)=>e.handleClose&&e.handleClose(...u))},[Y(l,{class:N(e.ns.e("close"))},{default:me(()=>[Y(s)]),_:1},8,["class"])],10,hIe)):ke("v-if",!0)],2)):ke("v-if",!0),e.rendered?($(),K("div",{key:1,id:e.bodyId,class:N(e.ns.e("body"))},[Be(e.$slots,"default")],10,fIe)):ke("v-if",!0),e.$slots.footer?($(),K("div",{key:2,class:N(e.ns.e("footer"))},[Be(e.$slots,"footer")],2)):ke("v-if",!0)],16,dIe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Vt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var gIe=ot(uIe,[["render",mIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const yIe=lr(gIe),vIe=ye({inheritAttrs:!1});function bIe(e,t,r,i,n,o){return Be(e.$slots,"default")}var _Ie=ot(vIe,[["render",bIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const wIe=ye({name:"ElCollectionItem",inheritAttrs:!1});function xIe(e,t,r,i,n,o){return Be(e.$slots,"default")}var CIe=ot(wIe,[["render",xIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const QK="data-el-collection-item",JK=e=>{const t=`El${e}Collection`,r=`${t}Item`,i=Symbol(t),n=Symbol(r),o={..._Ie,name:t,setup(){const l=F(null),a=new Map;cr(i,{itemMap:a,getItems:()=>{const u=g(l);if(!u)return[];const p=Array.from(u.querySelectorAll(`[${QK}]`));return[...a.values()].sort((m,y)=>p.indexOf(m.ref)-p.indexOf(y.ref))},collectionRef:l})}},s={...CIe,name:r,setup(l,{attrs:a}){const c=F(null),u=_t(i,void 0);cr(n,{collectionItemRef:c}),er(()=>{const p=g(c);p&&u.itemMap.set(p,{ref:p,...a})}),Ii(()=>{const p=g(c);u.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:n,ElCollection:o,ElCollectionItem:s}},kIe=ct({style:{type:Oe([String,Array,Object])},currentTabId:{type:Oe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Oe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:SIe,ElCollectionItem:EIe,COLLECTION_INJECTION_KEY:c4,COLLECTION_ITEM_INJECTION_KEY:TIe}=JK("RovingFocusGroup"),u4=Symbol("elRovingFocusGroup"),XK=Symbol("elRovingFocusGroupItem"),AIe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},MIe=(e,t)=>{if(t!=="rtl")return e;switch(e){case Rt.right:return Rt.left;case Rt.left:return Rt.right;default:return e}},IIe=(e,t,r)=>{const i=MIe(e.key,r);if(!(t==="vertical"&&[Rt.left,Rt.right].includes(i))&&!(t==="horizontal"&&[Rt.up,Rt.down].includes(i)))return AIe[i]},PIe=(e,t)=>e.map((r,i)=>e[(i+t)%e.length]),d4=e=>{const{activeElement:t}=document;for(const r of e)if(r===t||(r.focus(),t!==document.activeElement))return},$j="currentTabIdChange",Oj="rovingFocusGroup.entryFocus",$Ie={bubbles:!1,cancelable:!0},OIe=ye({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:kIe,emits:[$j,"entryFocus"],setup(e,{emit:t}){var r;const i=F((r=e.currentTabId||e.defaultCurrentTabId)!=null?r:null),n=F(!1),o=F(!1),s=F(null),{getItems:l}=_t(c4,void 0),a=O(()=>[{outline:"none"},e.style]),c=v=>{t($j,v)},u=()=>{n.value=!0},p=Ui(v=>{var _;(_=e.onMousedown)==null||_.call(e,v)},()=>{o.value=!0}),h=Ui(v=>{var _;(_=e.onFocus)==null||_.call(e,v)},v=>{const _=!g(o),{target:x,currentTarget:S}=v;if(x===S&&_&&!g(n)){const C=new Event(Oj,$Ie);if(S==null||S.dispatchEvent(C),!C.defaultPrevented){const E=l().filter(L=>L.focusable),T=E.find(L=>L.active),w=E.find(L=>L.id===g(i)),M=[T,w,...E].filter(Boolean).map(L=>L.ref);d4(M)}}o.value=!1}),m=Ui(v=>{var _;(_=e.onBlur)==null||_.call(e,v)},()=>{n.value=!1}),y=(...v)=>{t("entryFocus",...v)};cr(u4,{currentTabbedId:D1(i),loop:Ni(e,"loop"),tabIndex:O(()=>g(n)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:a,orientation:Ni(e,"orientation"),dir:Ni(e,"dir"),onItemFocus:c,onItemShiftTab:u,onBlur:m,onFocus:h,onMousedown:p}),Ve(()=>e.currentTabId,v=>{i.value=v!=null?v:null}),Si(s,Oj,y)}});function LIe(e,t,r,i,n,o){return Be(e.$slots,"default")}var RIe=ot(OIe,[["render",LIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const DIe=ye({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:SIe,ElRovingFocusGroupImpl:RIe}});function NIe(e,t,r,i,n,o){const s=Ft("el-roving-focus-group-impl"),l=Ft("el-focus-group-collection");return $(),Te(l,null,{default:me(()=>[Y(s,Ya(GE(e.$attrs)),{default:me(()=>[Be(e.$slots,"default")]),_:3},16)]),_:3})}var FIe=ot(DIe,[["render",NIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const zIe=ye({components:{ElRovingFocusCollectionItem:EIe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:r,loop:i,onItemFocus:n,onItemShiftTab:o}=_t(u4,void 0),{getItems:s}=_t(c4,void 0),l=ac(),a=F(null),c=Ui(m=>{t("mousedown",m)},m=>{e.focusable?n(g(l)):m.preventDefault()}),u=Ui(m=>{t("focus",m)},()=>{n(g(l))}),p=Ui(m=>{t("keydown",m)},m=>{const{key:y,shiftKey:v,target:_,currentTarget:x}=m;if(y===Rt.tab&&v){o();return}if(_!==x)return;const S=IIe(m);if(S){m.preventDefault();let E=s().filter(T=>T.focusable).map(T=>T.ref);switch(S){case"last":{E.reverse();break}case"prev":case"next":{S==="prev"&&E.reverse();const T=E.indexOf(x);E=i.value?PIe(E,T+1):E.slice(T+1);break}}Ct(()=>{d4(E)})}}),h=O(()=>r.value===g(l));return cr(XK,{rovingFocusGroupItemRef:a,tabIndex:O(()=>g(h)?0:-1),handleMousedown:c,handleFocus:u,handleKeydown:p}),{id:l,handleKeydown:p,handleFocus:u,handleMousedown:c}}});function jIe(e,t,r,i,n,o){const s=Ft("el-roving-focus-collection-item");return $(),Te(s,{id:e.id,focusable:e.focusable,active:e.active},{default:me(()=>[Be(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var VIe=ot(zIe,[["render",jIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const EC=ct({trigger:jw.trigger,effect:{...ao.effect,default:"light"},type:{type:Oe(String)},placement:{type:Oe(String),default:"bottom"},popperOptions:{type:Oe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Oe([Number,String]),default:0},maxHeight:{type:Oe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Oe(Object)},teleported:ao.teleported}),eZ=ct({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:yi}}),BIe=ct({onKeydown:{type:Oe(Function)}}),UIe=[Rt.down,Rt.pageDown,Rt.home],tZ=[Rt.up,Rt.pageUp,Rt.end],WIe=[...UIe,...tZ],{ElCollection:HIe,ElCollectionItem:GIe,COLLECTION_INJECTION_KEY:qIe,COLLECTION_ITEM_INJECTION_KEY:YIe}=JK("Dropdown"),S3=Symbol("elDropdown"),{ButtonGroup:KIe}=Rn,ZIe=ye({name:"ElDropdown",components:{ElButton:Rn,ElButtonGroup:KIe,ElScrollbar:Ld,ElDropdownCollection:HIe,ElTooltip:qs,ElRovingFocusGroup:FIe,ElOnlyChild:xY,ElIcon:At,ArrowDown:Nh},props:EC,emits:["visible-change","click","command"],setup(e,{emit:t}){const r=Xt(),i=He("dropdown"),{t:n}=Hr(),o=F(),s=F(),l=F(null),a=F(null),c=F(null),u=F(null),p=F(!1),h=[Rt.enter,Rt.space,Rt.down],m=O(()=>({maxHeight:Tn(e.maxHeight)})),y=O(()=>[i.m(E.value)]),v=ac().value,_=O(()=>e.id||v);function x(){S()}function S(){var Z;(Z=l.value)==null||Z.onClose()}function C(){var Z;(Z=l.value)==null||Z.onOpen()}const E=An();function T(...Z){t("command",...Z)}function w(){}function I(){const Z=g(a);Z==null||Z.focus(),u.value=null}function M(Z){u.value=Z}function L(Z){p.value||(Z.preventDefault(),Z.stopImmediatePropagation())}function R(){t("visible-change",!0)}function W(Z){(Z==null?void 0:Z.type)==="keydown"&&a.value.focus()}function z(){t("visible-change",!1)}return cr(S3,{contentRef:a,role:O(()=>e.role),triggerId:_,isUsingKeyboard:p,onItemEnter:w,onItemLeave:I}),cr("elDropdown",{instance:r,dropdownSize:E,handleClick:x,commandHandler:T,trigger:Ni(e,"trigger"),hideOnClick:Ni(e,"hideOnClick")}),{t:n,ns:i,scrollbar:c,wrapStyle:m,dropdownTriggerKls:y,dropdownSize:E,triggerId:_,triggerKeys:h,currentTabId:u,handleCurrentTabIdChange:M,handlerMainButtonClick:Z=>{t("click",Z)},handleEntryFocus:L,handleClose:S,handleOpen:C,handleBeforeShowTooltip:R,handleShowTooltip:W,handleBeforeHideTooltip:z,onFocusAfterTrapped:Z=>{var Q,B;Z.preventDefault(),(B=(Q=a.value)==null?void 0:Q.focus)==null||B.call(Q,{preventScroll:!0})},popperRef:l,contentRef:a,triggeringElementRef:o,referenceElementRef:s}}});function QIe(e,t,r,i,n,o){var s;const l=Ft("el-dropdown-collection"),a=Ft("el-roving-focus-group"),c=Ft("el-scrollbar"),u=Ft("el-only-child"),p=Ft("el-tooltip"),h=Ft("el-button"),m=Ft("arrow-down"),y=Ft("el-icon"),v=Ft("el-button-group");return $(),K("div",{class:N([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Y(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},fd({content:me(()=>[Y(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:me(()=>[Y(a,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:me(()=>[Y(l,null,{default:me(()=>[Be(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:me(()=>[Y(u,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:me(()=>[Be(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?($(),Te(v,{key:0},{default:me(()=>[Y(h,sr({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:me(()=>[Be(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Y(h,sr({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:me(()=>[Y(y,{class:N(e.ns.e("icon"))},{default:me(()=>[Y(m)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ke("v-if",!0)],2)}var JIe=ot(ZIe,[["render",QIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const XIe=ye({name:"DropdownItemImpl",components:{ElIcon:At},props:eZ,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const r=He("dropdown"),{role:i}=_t(S3,void 0),{collectionItemRef:n}=_t(YIe,void 0),{collectionItemRef:o}=_t(TIe,void 0),{rovingFocusGroupItemRef:s,tabIndex:l,handleFocus:a,handleKeydown:c,handleMousedown:u}=_t(XK,void 0),p=u3(n,o,s),h=O(()=>i.value==="menu"?"menuitem":i.value==="navigation"?"link":"button"),m=Ui(y=>{const{code:v}=y;if(v===Rt.enter||v===Rt.space)return y.preventDefault(),y.stopImmediatePropagation(),t("clickimpl",y),!0},c);return{ns:r,itemRef:p,dataset:{[QK]:""},role:h,tabIndex:l,handleFocus:a,handleKeydown:m,handleMousedown:u}}}),ePe=["aria-disabled","tabindex","role"];function tPe(e,t,r,i,n,o){const s=Ft("el-icon");return $(),K(bt,null,[e.divided?($(),K("li",sr({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ke("v-if",!0),G("li",sr({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon?($(),Te(s,{key:0},{default:me(()=>[($(),Te(br(e.icon)))]),_:1})):ke("v-if",!0),Be(e.$slots,"default")],16,ePe)],64)}var rPe=ot(XIe,[["render",tPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const rZ=()=>{const e=_t("elDropdown",{}),t=O(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},iPe=ye({name:"ElDropdownItem",components:{ElDropdownCollectionItem:GIe,ElRovingFocusItem:VIe,ElDropdownItemImpl:rPe},inheritAttrs:!1,props:eZ,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:r}){const{elDropdown:i}=rZ(),n=Xt(),o=F(null),s=O(()=>{var m,y;return(y=(m=g(o))==null?void 0:m.textContent)!=null?y:""}),{onItemEnter:l,onItemLeave:a}=_t(S3,void 0),c=Ui(m=>(t("pointermove",m),m.defaultPrevented),gz(m=>{var y;e.disabled?a(m):(l(m),m.defaultPrevented||(y=m.currentTarget)==null||y.focus())})),u=Ui(m=>(t("pointerleave",m),m.defaultPrevented),gz(m=>{a(m)})),p=Ui(m=>{if(!e.disabled)return t("click",m),m.type!=="keydown"&&m.defaultPrevented},m=>{var y,v,_;if(e.disabled){m.stopImmediatePropagation();return}(y=i==null?void 0:i.hideOnClick)!=null&&y.value&&((v=i.handleClick)==null||v.call(i)),(_=i.commandHandler)==null||_.call(i,e.command,n,m)}),h=O(()=>({...e,...r}));return{handleClick:p,handlePointerMove:c,handlePointerLeave:u,textContent:s,propsAndAttrs:h}}});function nPe(e,t,r,i,n,o){var s;const l=Ft("el-dropdown-item-impl"),a=Ft("el-roving-focus-item"),c=Ft("el-dropdown-collection-item");return $(),Te(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:me(()=>[Y(a,{focusable:!e.disabled},{default:me(()=>[Y(l,sr(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:me(()=>[Be(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var iZ=ot(iPe,[["render",nPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const oPe=ye({name:"ElDropdownMenu",props:BIe,setup(e){const t=He("dropdown"),{_elDropdownSize:r}=rZ(),i=r.value,{focusTrapRef:n,onKeydown:o}=_t(JR,void 0),{contentRef:s,role:l,triggerId:a}=_t(S3,void 0),{collectionRef:c,getItems:u}=_t(qIe,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:h,tabIndex:m,onBlur:y,onFocus:v,onMousedown:_}=_t(u4,void 0),{collectionRef:x}=_t(c4,void 0),S=O(()=>[t.b("menu"),t.bm("menu",i==null?void 0:i.value)]),C=u3(s,c,n,p,x),E=Ui(w=>{var I;(I=e.onKeydown)==null||I.call(e,w)},w=>{const{currentTarget:I,code:M,target:L}=w;if(I.contains(L),Rt.tab===M&&w.stopImmediatePropagation(),w.preventDefault(),L!==g(s)||!WIe.includes(M))return;const W=u().filter(z=>!z.disabled).map(z=>z.ref);tZ.includes(M)&&W.reverse(),d4(W)});return{size:i,rovingFocusGroupRootStyle:h,tabIndex:m,dropdownKls:S,role:l,triggerId:a,dropdownListWrapperRef:C,handleKeydown:w=>{E(w),o(w)},onBlur:y,onFocus:v,onMousedown:_}}}),sPe=["role","aria-labelledby"];function lPe(e,t,r,i,n,o){return $(),K("ul",{ref:e.dropdownListWrapperRef,class:N(e.dropdownKls),style:St(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=(...s)=>e.handleKeydown&&e.handleKeydown(...s)),onMousedown:t[3]||(t[3]=(...s)=>e.onMousedown&&e.onMousedown(...s))},[Be(e.$slots,"default")],46,sPe)}var nZ=ot(oPe,[["render",lPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const aPe=lr(JIe,{DropdownItem:iZ,DropdownMenu:nZ}),cPe=Hi(iZ),uPe=Hi(nZ);let dPe=0;const pPe=ye({name:"ImgEmpty",setup(){return{ns:He("empty"),id:++dPe}}}),hPe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},fPe=["id"],mPe=["stop-color"],gPe=["stop-color"],yPe=["id"],vPe=["stop-color"],bPe=["stop-color"],_Pe=["id"],wPe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},xPe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},CPe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},kPe=["fill"],SPe=["fill"],EPe={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},TPe=["fill"],APe=["fill"],MPe=["fill"],IPe=["fill"],PPe=["fill"],$Pe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},OPe=["fill","xlink:href"],LPe=["fill","mask"],RPe=["fill"];function DPe(e,t,r,i,n,o){return $(),K("svg",hPe,[G("defs",null,[G("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[G("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,mPe),G("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,gPe)],8,fPe),G("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[G("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,vPe),G("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,bPe)],8,yPe),G("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,_Pe)]),G("g",wPe,[G("g",xPe,[G("g",CPe,[G("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,kPe),G("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,SPe),G("g",EPe,[G("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,TPe),G("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,APe),G("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,MPe),G("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,IPe)]),G("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,PPe),G("g",$Pe,[G("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,OPe),G("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,LPe)]),G("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,RPe)])])])])}var NPe=ot(pPe,[["render",DPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const FPe={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},zPe=["src"],jPe={key:1},VPe=ye({name:"ElEmpty"}),BPe=ye({...VPe,props:FPe,setup(e){const t=e,{t:r}=Hr(),i=He("empty"),n=O(()=>t.description||r("el.table.emptyText")),o=O(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(s,l)=>($(),K("div",{class:N(g(i).b())},[G("div",{class:N(g(i).e("image")),style:St(g(o))},[s.image?($(),K("img",{key:0,src:s.image,ondragstart:"return false"},null,8,zPe)):Be(s.$slots,"image",{key:1},()=>[Y(NPe)])],6),G("div",{class:N(g(i).e("description"))},[s.$slots.description?Be(s.$slots,"description",{key:0}):($(),K("p",jPe,rt(g(n)),1))],2),s.$slots.default?($(),K("div",{key:0,class:N(g(i).e("bottom"))},[Be(s.$slots,"default")],2)):ke("v-if",!0)],2))}});var UPe=ot(BPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const oZ=lr(UPe),WPe=ct({model:Object,rules:{type:Oe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Id},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),HPe={validate:(e,t,r)=>(wt(e)||Kt(e))&&Ln(t)&&Kt(r)};function GPe(){const e=F([]),t=O(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function r(o){const s=e.value.indexOf(o);return s===-1&&t.value,s}function i(o,s){if(o&&s){const l=r(s);e.value.splice(l,1,o)}else o&&e.value.push(o)}function n(o){const s=r(o);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:i,deregisterLabelWidth:n}}const c2=(e,t)=>{const r=Mv(t);return r.length>0?e.filter(i=>i.prop&&r.includes(i.prop)):e},qPe="ElForm",YPe=ye({name:qPe}),KPe=ye({...YPe,props:WPe,emits:HPe,setup(e,{expose:t,emit:r}){const i=e,n=[],o=An(),s=He("form"),l=O(()=>{const{labelPosition:S,inline:C}=i;return[s.b(),s.m(o.value||"default"),{[s.m(`label-${S}`)]:S,[s.m("inline")]:C}]}),a=S=>{n.push(S)},c=S=>{S.prop&&n.splice(n.indexOf(S),1)},u=(S=[])=>{!i.model||c2(n,S).forEach(C=>C.resetField())},p=(S=[])=>{c2(n,S).forEach(C=>C.clearValidate())},h=O(()=>!!i.model),m=S=>{if(n.length===0)return[];const C=c2(n,S);return C.length?C:[]},y=async S=>_(void 0,S),v=async(S=[])=>{if(!h.value)return!1;const C=m(S);if(C.length===0)return!0;let E={};for(const T of C)try{await T.validate("")}catch(w){E={...E,...w}}return Object.keys(E).length===0?!0:Promise.reject(E)},_=async(S=[],C)=>{const E=!qt(C);try{const T=await v(S);return T===!0&&(C==null||C(T)),T}catch(T){if(T instanceof Error)throw T;const w=T;return i.scrollToError&&x(Object.keys(w)[0]),C==null||C(!1,w),E&&Promise.reject(w)}},x=S=>{var C;const E=c2(n,S)[0];E&&((C=E.$el)==null||C.scrollIntoView())};return Ve(()=>i.rules,()=>{i.validateOnRuleChange&&y().catch(S=>void 0)},{deep:!0}),cr(kg,kr({...Fn(i),emit:r,resetFields:u,clearValidate:p,validateField:_,addField:a,removeField:c,...GPe()})),t({validate:y,validateField:_,resetFields:u,clearValidate:p,scrollToField:x}),(S,C)=>($(),K("form",{class:N(g(l))},[Be(S.$slots,"default")],2))}});var ZPe=ot(KPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function bm(){return bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},bm.apply(this,arguments)}function QPe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bw(e,t)}function DP(e){return DP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},DP(e)}function Bw(e,t){return Bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Bw(e,t)}function JPe(){if(typeof Reflect=="undefined"||!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}}function TC(e,t,r){return JPe()?TC=Reflect.construct.bind():TC=function(n,o,s){var l=[null];l.push.apply(l,o);var a=Function.bind.apply(n,l),c=new a;return s&&Bw(c,s.prototype),c},TC.apply(null,arguments)}function XPe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function NP(e){var t=typeof Map=="function"?new Map:void 0;return NP=function(i){if(i===null||!XPe(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return TC(i,arguments,DP(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Bw(n,i)},NP(e)}var e$e=/%[sdj%]/g,t$e=function(){};typeof process!="undefined"&&process.env;function FP(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var i=r.field;t[i]=t[i]||[],t[i].push(r)}),t}function gl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var n=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(e$e,function(l){if(l==="%%")return"%";if(n>=o)return l;switch(l){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function r$e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function eo(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||r$e(t)&&typeof e=="string"&&!e)}function i$e(e,t,r){var i=[],n=0,o=e.length;function s(l){i.push.apply(i,l||[]),n++,n===o&&r(i)}e.forEach(function(l){t(l,s)})}function Lj(e,t,r){var i=0,n=e.length;function o(s){if(s&&s.length){r(s);return}var l=i;i=i+1,l<n?t(e[l],o):r([])}o([])}function n$e(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Rj=function(e){QPe(t,e);function t(r,i){var n;return n=e.call(this,"Async Validation Error")||this,n.errors=r,n.fields=i,n}return t}(NP(Error));function o$e(e,t,r,i,n){if(t.first){var o=new Promise(function(h,m){var y=function(x){return i(x),x.length?m(new Rj(x,FP(x))):h(n)},v=n$e(e);Lj(v,r,y)});return o.catch(function(h){return h}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),a=l.length,c=0,u=[],p=new Promise(function(h,m){var y=function(_){if(u.push.apply(u,_),c++,c===a)return i(u),u.length?m(new Rj(u,FP(u))):h(n)};l.length||(i(u),h(n)),l.forEach(function(v){var _=e[v];s.indexOf(v)!==-1?Lj(_,r,y):i$e(_,r,y)})});return p.catch(function(h){return h}),p}function s$e(e){return!!(e&&e.message!==void 0)}function l$e(e,t){for(var r=e,i=0;i<t.length;i++){if(r==null)return r;r=r[t[i]]}return r}function Dj(e,t){return function(r){var i;return e.fullFields?i=l$e(t,e.fullFields):i=t[r.field||e.fullField],s$e(r)?(r.field=r.field||e.fullField,r.fieldValue=i,r):{message:typeof r=="function"?r():r,fieldValue:i,field:r.field||e.fullField}}}function Nj(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];typeof i=="object"&&typeof e[r]=="object"?e[r]=bm({},e[r],i):e[r]=i}}return e}var sZ=function(t,r,i,n,o,s){t.required&&(!i.hasOwnProperty(t.field)||eo(r,s||t.type))&&n.push(gl(o.messages.required,t.fullField))},a$e=function(t,r,i,n,o){(/^\s+$/.test(r)||r==="")&&n.push(gl(o.messages.whitespace,t.fullField))},u2,c$e=function(){if(u2)return u2;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=(`
- (?:
- (?:`+i+":){7}(?:"+i+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:`+i+":){6}(?:"+r+"|:"+i+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:`+i+":){5}(?::"+r+"|(?::"+i+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:`+i+":){4}(?:(?::"+i+"){0,1}:"+r+"|(?::"+i+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:`+i+":){3}(?:(?::"+i+"){0,2}:"+r+"|(?::"+i+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:`+i+":){2}(?:(?::"+i+"){0,3}:"+r+"|(?::"+i+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:`+i+":){1}(?:(?::"+i+"){0,4}:"+r+"|(?::"+i+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::`+i+"){0,5}:"+r+"|(?::"+i+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+r+"$)|(?:^"+n+"$)"),s=new RegExp("^"+r+"$"),l=new RegExp("^"+n+"$"),a=function(E){return E&&E.exact?o:new RegExp("(?:"+t(E)+r+t(E)+")|(?:"+t(E)+n+t(E)+")","g")};a.v4=function(C){return C&&C.exact?s:new RegExp(""+t(C)+r+t(C),"g")},a.v6=function(C){return C&&C.exact?l:new RegExp(""+t(C)+n+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",p=a.v4().source,h=a.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:"+c+"|www\\.)"+u+"(?:localhost|"+p+"|"+h+"|"+m+y+v+")"+_+x;return u2=new RegExp("(?:^"+S+"$)","i"),u2},Fj={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Rb={integer:function(t){return Rb.number(t)&&parseInt(t,10)===t},float:function(t){return Rb.number(t)&&!Rb.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Rb.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Fj.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(c$e())},hex:function(t){return typeof t=="string"&&!!t.match(Fj.hex)}},u$e=function(t,r,i,n,o){if(t.required&&r===void 0){sZ(t,r,i,n,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?Rb[l](r)||n.push(gl(o.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&n.push(gl(o.messages.types[l],t.fullField,t.type))},d$e=function(t,r,i,n,o){var s=typeof t.len=="number",l=typeof t.min=="number",a=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,p=null,h=typeof r=="number",m=typeof r=="string",y=Array.isArray(r);if(h?p="number":m?p="string":y&&(p="array"),!p)return!1;y&&(u=r.length),m&&(u=r.replace(c,"_").length),s?u!==t.len&&n.push(gl(o.messages[p].len,t.fullField,t.len)):l&&!a&&u<t.min?n.push(gl(o.messages[p].min,t.fullField,t.min)):a&&!l&&u>t.max?n.push(gl(o.messages[p].max,t.fullField,t.max)):l&&a&&(u<t.min||u>t.max)&&n.push(gl(o.messages[p].range,t.fullField,t.min,t.max))},zg="enum",p$e=function(t,r,i,n,o){t[zg]=Array.isArray(t[zg])?t[zg]:[],t[zg].indexOf(r)===-1&&n.push(gl(o.messages[zg],t.fullField,t[zg].join(", ")))},h$e=function(t,r,i,n,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(gl(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||n.push(gl(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ii={required:sZ,whitespace:a$e,type:u$e,range:d$e,enum:p$e,pattern:h$e},f$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r,"string")&&!t.required)return i();ii.required(t,r,n,s,o,"string"),eo(r,"string")||(ii.type(t,r,n,s,o),ii.range(t,r,n,s,o),ii.pattern(t,r,n,s,o),t.whitespace===!0&&ii.whitespace(t,r,n,s,o))}i(s)},m$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&ii.type(t,r,n,s,o)}i(s)},g$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&(ii.type(t,r,n,s,o),ii.range(t,r,n,s,o))}i(s)},y$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&ii.type(t,r,n,s,o)}i(s)},v$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),eo(r)||ii.type(t,r,n,s,o)}i(s)},b$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&(ii.type(t,r,n,s,o),ii.range(t,r,n,s,o))}i(s)},_$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&(ii.type(t,r,n,s,o),ii.range(t,r,n,s,o))}i(s)},w$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return i();ii.required(t,r,n,s,o,"array"),r!=null&&(ii.type(t,r,n,s,o),ii.range(t,r,n,s,o))}i(s)},x$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&ii.type(t,r,n,s,o)}i(s)},C$e="enum",k$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o),r!==void 0&&ii[C$e](t,r,n,s,o)}i(s)},S$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r,"string")&&!t.required)return i();ii.required(t,r,n,s,o),eo(r,"string")||ii.pattern(t,r,n,s,o)}i(s)},E$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r,"date")&&!t.required)return i();if(ii.required(t,r,n,s,o),!eo(r,"date")){var a;r instanceof Date?a=r:a=new Date(r),ii.type(t,a,n,s,o),a&&ii.range(t,a.getTime(),n,s,o)}}i(s)},T$e=function(t,r,i,n,o){var s=[],l=Array.isArray(r)?"array":typeof r;ii.required(t,r,n,s,o,l),i(s)},BA=function(t,r,i,n,o){var s=t.type,l=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(eo(r,s)&&!t.required)return i();ii.required(t,r,n,l,o,s),eo(r,s)||ii.type(t,r,n,l,o)}i(l)},A$e=function(t,r,i,n,o){var s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(eo(r)&&!t.required)return i();ii.required(t,r,n,s,o)}i(s)},W_={string:f$e,method:m$e,number:g$e,boolean:y$e,regexp:v$e,integer:b$e,float:_$e,array:w$e,object:x$e,enum:k$e,pattern:S$e,date:E$e,url:BA,hex:BA,email:BA,required:T$e,any:A$e};function zP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var jP=zP(),q1=function(){function e(r){this.rules=null,this._messages=jP,this.define(r)}var t=e.prototype;return t.define=function(i){var n=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(o){var s=i[o];n.rules[o]=Array.isArray(s)?s:[s]})},t.messages=function(i){return i&&(this._messages=Nj(zP(),i)),this._messages},t.validate=function(i,n,o){var s=this;n===void 0&&(n={}),o===void 0&&(o=function(){});var l=i,a=n,c=o;if(typeof a=="function"&&(c=a,a={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(v){var _=[],x={};function S(E){if(Array.isArray(E)){var T;_=(T=_).concat.apply(T,E)}else _.push(E)}for(var C=0;C<v.length;C++)S(v[C]);_.length?(x=FP(_),c(_,x)):c(null,l)}if(a.messages){var p=this.messages();p===jP&&(p=zP()),Nj(p,a.messages),a.messages=p}else a.messages=this.messages();var h={},m=a.keys||Object.keys(this.rules);m.forEach(function(v){var _=s.rules[v],x=l[v];_.forEach(function(S){var C=S;typeof C.transform=="function"&&(l===i&&(l=bm({},l)),x=l[v]=C.transform(x)),typeof C=="function"?C={validator:C}:C=bm({},C),C.validator=s.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=s.getType(C),h[v]=h[v]||[],h[v].push({rule:C,value:x,source:l,field:v}))})});var y={};return o$e(h,a,function(v,_){var x=v.rule,S=(x.type==="object"||x.type==="array")&&(typeof x.fields=="object"||typeof x.defaultField=="object");S=S&&(x.required||!x.required&&v.value),x.field=v.field;function C(w,I){return bm({},I,{fullField:x.fullField+"."+w,fullFields:x.fullFields?[].concat(x.fullFields,[w]):[w]})}function E(w){w===void 0&&(w=[]);var I=Array.isArray(w)?w:[w];!a.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&x.message!==void 0&&(I=[].concat(x.message));var M=I.map(Dj(x,l));if(a.first&&M.length)return y[x.field]=1,_(M);if(!S)_(M);else{if(x.required&&!v.value)return x.message!==void 0?M=[].concat(x.message).map(Dj(x,l)):a.error&&(M=[a.error(x,gl(a.messages.required,x.field))]),_(M);var L={};x.defaultField&&Object.keys(v.value).map(function(z){L[z]=x.defaultField}),L=bm({},L,v.rule.fields);var R={};Object.keys(L).forEach(function(z){var j=L[z],U=Array.isArray(j)?j:[j];R[z]=U.map(C.bind(null,z))});var W=new e(R);W.messages(a.messages),v.rule.options&&(v.rule.options.messages=a.messages,v.rule.options.error=a.error),W.validate(v.value,v.rule.options||a,function(z){var j=[];M&&M.length&&j.push.apply(j,M),z&&z.length&&j.push.apply(j,z),_(j.length?j:null)})}}var T;if(x.asyncValidator)T=x.asyncValidator(x,v.value,E,v.source,a);else if(x.validator){try{T=x.validator(x,v.value,E,v.source,a)}catch(w){console.error==null||console.error(w),a.suppressValidatorError||setTimeout(function(){throw w},0),E(w.message)}T===!0?E():T===!1?E(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||(x.fullField||x.field)+" fails"):T instanceof Array?E(T):T instanceof Error&&E(T.message)}T&&T.then&&T.then(function(){return E()},function(w){return E(w)})},function(v){u(v)},l)},t.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!W_.hasOwnProperty(i.type))throw new Error(gl("Unknown rule type %s",i.type));return i.type||"string"},t.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var n=Object.keys(i),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?W_.required:W_[this.getType(i)]||void 0},e}();q1.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");W_[t]=r};q1.warning=t$e;q1.messages=jP;q1.validators=W_;const M$e=["","error","validating","success"],I$e=ct({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Oe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Oe([Object,Array])},error:String,validateStatus:{type:String,values:M$e},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Id}}),zj="ElLabelWrap";var P$e=ye({name:zj,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=_t(kg,void 0),i=_t(su);i||zn(zj,"usage: <el-form-item><label-wrap /></el-form-item>");const n=He("form"),o=F(),s=F(0),l=()=>{var u;if((u=o.value)!=null&&u.firstElementChild){const p=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},a=(u="update")=>{Ct(()=>{t.default&&e.isAutoWidth&&(u==="update"?s.value=l():u==="remove"&&(r==null||r.deregisterLabelWidth(s.value)))})},c=()=>a("update");return er(()=>{c()}),Ii(()=>{a("remove")}),Td(()=>c()),Ve(s,(u,p)=>{e.updateAll&&(r==null||r.registerLabelWidth(u,p))}),Uo(O(()=>{var u,p;return(p=(u=o.value)==null?void 0:u.firstElementChild)!=null?p:null}),c),()=>{var u,p;if(!t)return null;const{isAutoWidth:h}=e;if(h){const m=r==null?void 0:r.autoLabelWidth,y=i==null?void 0:i.hasLabel,v={};if(y&&m&&m!=="auto"){const _=Math.max(0,Number.parseInt(m,10)-s.value),x=r.labelPosition==="left"?"marginRight":"marginLeft";_&&(v[x]=`${_}px`)}return Y("div",{ref:o,class:[n.be("item","label-wrap")],style:v},[(u=t.default)==null?void 0:u.call(t)])}else return Y(bt,{ref:o},[(p=t.default)==null?void 0:p.call(t)])}}});const $$e=["role","aria-labelledby"],O$e=ye({name:"ElFormItem"}),L$e=ye({...O$e,props:I$e,setup(e,{expose:t}){const r=e,i=go(),n=_t(kg,void 0),o=_t(su,void 0),s=An(void 0,{formItem:!1}),l=He("form-item"),a=ac().value,c=F([]),u=F(""),p=jve(u,100),h=F(""),m=F();let y,v=!1;const _=O(()=>{if((n==null?void 0:n.labelPosition)==="top")return{};const ae=Tn(r.labelWidth||(n==null?void 0:n.labelWidth)||"");return ae?{width:ae}:{}}),x=O(()=>{if((n==null?void 0:n.labelPosition)==="top"||(n==null?void 0:n.inline))return{};if(!r.label&&!r.labelWidth&&L)return{};const ae=Tn(r.labelWidth||(n==null?void 0:n.labelWidth)||"");return!r.label&&!i.label?{marginLeft:ae}:{}}),S=O(()=>[l.b(),l.m(s.value),l.is("error",u.value==="error"),l.is("validating",u.value==="validating"),l.is("success",u.value==="success"),l.is("required",U.value||r.required),l.is("no-asterisk",n==null?void 0:n.hideRequiredAsterisk),(n==null?void 0:n.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:n==null?void 0:n.statusIcon}]),C=O(()=>Ln(r.inlineMessage)?r.inlineMessage:(n==null?void 0:n.inlineMessage)||!1),E=O(()=>[l.e("error"),{[l.em("error","inline")]:C.value}]),T=O(()=>r.prop?Kt(r.prop)?r.prop:r.prop.join("."):""),w=O(()=>!!(r.label||i.label)),I=O(()=>r.for||c.value.length===1?c.value[0]:void 0),M=O(()=>!I.value&&w.value),L=!!o,R=O(()=>{const ae=n==null?void 0:n.model;if(!(!ae||!r.prop))return mC(ae,r.prop).value}),W=O(()=>{const{required:ae}=r,X=[];r.rules&&X.push(...Mv(r.rules));const he=n==null?void 0:n.rules;if(he&&r.prop){const $e=mC(he,r.prop).value;$e&&X.push(...Mv($e))}if(ae!==void 0){const $e=X.map((Je,ne)=>[Je,ne]).filter(([Je])=>Object.keys(Je).includes("required"));if($e.length>0)for(const[Je,ne]of $e)Je.required!==ae&&(X[ne]={...Je,required:ae});else X.push({required:ae})}return X}),z=O(()=>W.value.length>0),j=ae=>W.value.filter(he=>!he.trigger||!ae?!0:Array.isArray(he.trigger)?he.trigger.includes(ae):he.trigger===ae).map(({trigger:he,...$e})=>$e),U=O(()=>W.value.some(ae=>ae.required)),Z=O(()=>{var ae;return p.value==="error"&&r.showMessage&&((ae=n==null?void 0:n.showMessage)!=null?ae:!0)}),Q=O(()=>`${r.label||""}${(n==null?void 0:n.labelSuffix)||""}`),B=ae=>{u.value=ae},V=ae=>{var X,he;const{errors:$e,fields:Je}=ae;(!$e||!Je)&&console.error(ae),B("error"),h.value=$e?(he=(X=$e==null?void 0:$e[0])==null?void 0:X.message)!=null?he:`${r.prop} is required`:"",n==null||n.emit("validate",r.prop,!1,h.value)},H=()=>{B("success"),n==null||n.emit("validate",r.prop,!0,"")},ee=async ae=>{const X=T.value;return new q1({[X]:ae}).validate({[X]:R.value},{firstFields:!0}).then(()=>(H(),!0)).catch($e=>(V($e),Promise.reject($e)))},ce=async(ae,X)=>{if(v||!r.prop)return!1;const he=qt(X);if(!z.value)return X==null||X(!1),!1;const $e=j(ae);return $e.length===0?(X==null||X(!0),!0):(B("validating"),ee($e).then(()=>(X==null||X(!0),!0)).catch(Je=>{const{fields:ne}=Je;return X==null||X(!1,ne),he?!1:Promise.reject(ne)}))},re=()=>{B(""),h.value="",v=!1},fe=async()=>{const ae=n==null?void 0:n.model;if(!ae||!r.prop)return;const X=mC(ae,r.prop);v=!0,X.value=uz(y),await Ct(),re(),v=!1},Ne=ae=>{c.value.includes(ae)||c.value.push(ae)},de=ae=>{c.value=c.value.filter(X=>X!==ae)};Ve(()=>r.error,ae=>{h.value=ae||"",B(ae?"error":"")},{immediate:!0}),Ve(()=>r.validateStatus,ae=>B(ae||""));const _e=kr({...Fn(r),$el:m,size:s,validateState:u,labelId:a,inputIds:c,isGroup:M,hasLabel:w,addInputId:Ne,removeInputId:de,resetField:fe,clearValidate:re,validate:ce});return cr(su,_e),er(()=>{r.prop&&(n==null||n.addField(_e),y=uz(R.value))}),Ii(()=>{n==null||n.removeField(_e)}),t({size:s,validateMessage:h,validateState:u,validate:ce,clearValidate:re,resetField:fe}),(ae,X)=>{var he;return $(),K("div",{ref_key:"formItemRef",ref:m,class:N(g(S)),role:g(M)?"group":void 0,"aria-labelledby":g(M)?g(a):void 0},[Y(g(P$e),{"is-auto-width":g(_).width==="auto","update-all":((he=g(n))==null?void 0:he.labelWidth)==="auto"},{default:me(()=>[g(w)?($(),Te(br(g(I)?"label":"div"),{key:0,id:g(a),for:g(I),class:N(g(l).e("label")),style:St(g(_))},{default:me(()=>[Be(ae.$slots,"label",{label:g(Q)},()=>[Ir(rt(g(Q)),1)])]),_:3},8,["id","for","class","style"])):ke("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),G("div",{class:N(g(l).e("content")),style:St(g(x))},[Be(ae.$slots,"default"),Y(Xi,{name:`${g(l).namespace.value}-zoom-in-top`},{default:me(()=>[g(Z)?Be(ae.$slots,"error",{key:0,error:h.value},()=>[G("div",{class:N(g(E))},rt(h.value),3)]):ke("v-if",!0)]),_:3},8,["name"])],6)],10,$$e)}}});var lZ=ot(L$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const R$e=lr(ZPe,{FormItem:lZ}),D$e=Hi(lZ),N$e=ct({urlList:{type:Oe(Array),default:()=>Mi([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),F$e={close:()=>!0,switch:e=>Gt(e)},z$e=["src"],j$e=ye({name:"ElImageViewer"}),V$e=ye({...j$e,props:N$e,emits:F$e,setup(e,{expose:t,emit:r}){const i=e,n={CONTAIN:{name:"contain",icon:Fm(v_e)},ORIGINAL:{name:"original",icon:Fm(Owe)}},o=LR()?"DOMMouseScroll":"mousewheel",{t:s}=Hr(),l=He("image-viewer"),{nextZIndex:a}=$d(),c=F(),u=F([]),p=gae(),h=F(!0),m=F(i.initialIndex),y=gi(n.CONTAIN),v=F({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),_=O(()=>{const{urlList:V}=i;return V.length<=1}),x=O(()=>m.value===0),S=O(()=>m.value===i.urlList.length-1),C=O(()=>i.urlList[m.value]),E=O(()=>{const{scale:V,deg:H,offsetX:ee,offsetY:ce,enableTransition:re}=v.value;let fe=ee/V,Ne=ce/V;switch(H%360){case 90:case-270:[fe,Ne]=[Ne,-fe];break;case 180:case-180:[fe,Ne]=[-fe,-Ne];break;case 270:case-90:[fe,Ne]=[-Ne,fe];break}const de={transform:`scale(${V}) rotate(${H}deg) translate(${fe}px, ${Ne}px)`,transition:re?"transform .3s":""};return y.value.name===n.CONTAIN.name&&(de.maxWidth=de.maxHeight="100%"),de}),T=O(()=>Gt(i.zIndex)?i.zIndex:a());function w(){M(),r("close")}function I(){const V=jm(ee=>{switch(ee.code){case Rt.esc:i.closeOnPressEscape&&w();break;case Rt.space:j();break;case Rt.left:Z();break;case Rt.up:B("zoomIn");break;case Rt.right:Q();break;case Rt.down:B("zoomOut");break}}),H=jm(ee=>{(ee.wheelDelta?ee.wheelDelta:-ee.detail)>0?B("zoomIn",{zoomRate:i.zoomRate,enableTransition:!1}):B("zoomOut",{zoomRate:i.zoomRate,enableTransition:!1})});p.run(()=>{Si(document,"keydown",V),Si(document,o,H)})}function M(){p.stop()}function L(){h.value=!1}function R(V){h.value=!1,V.target.alt=s("el.image.error")}function W(V){if(h.value||V.button!==0||!c.value)return;v.value.enableTransition=!1;const{offsetX:H,offsetY:ee}=v.value,ce=V.pageX,re=V.pageY,fe=jm(de=>{v.value={...v.value,offsetX:H+de.pageX-ce,offsetY:ee+de.pageY-re}}),Ne=Si(document,"mousemove",fe);Si(document,"mouseup",()=>{Ne()}),V.preventDefault()}function z(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function j(){if(h.value)return;const V=Rw(n),H=Object.values(n),ee=y.value.name,re=(H.findIndex(fe=>fe.name===ee)+1)%V.length;y.value=n[V[re]],z()}function U(V){const H=i.urlList.length;m.value=(V+H)%H}function Z(){x.value&&!i.infinite||U(m.value-1)}function Q(){S.value&&!i.infinite||U(m.value+1)}function B(V,H={}){if(h.value)return;const{zoomRate:ee,rotateDeg:ce,enableTransition:re}={zoomRate:i.zoomRate,rotateDeg:90,enableTransition:!0,...H};switch(V){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/ee).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*ee).toFixed(3)));break;case"clockwise":v.value.deg+=ce;break;case"anticlockwise":v.value.deg-=ce;break}v.value.enableTransition=re}return Ve(C,()=>{Ct(()=>{const V=u.value[0];V!=null&&V.complete||(h.value=!0)})}),Ve(m,V=>{z(),r("switch",V)}),er(()=>{var V,H;I(),(H=(V=c.value)==null?void 0:V.focus)==null||H.call(V)}),t({setActiveItem:U}),(V,H)=>($(),Te(d0,{to:"body",disabled:!V.teleported},[Y(Xi,{name:"viewer-fade",appear:""},{default:me(()=>[G("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:N(g(l).e("wrapper")),style:St({zIndex:g(T)})},[G("div",{class:N(g(l).e("mask")),onClick:H[0]||(H[0]=Yt(ee=>V.hideOnClickModal&&w(),["self"]))},null,2),ke(" CLOSE "),G("span",{class:N([g(l).e("btn"),g(l).e("close")]),onClick:w},[Y(g(At),null,{default:me(()=>[Y(g(ia))]),_:1})],2),ke(" ARROW "),g(_)?ke("v-if",!0):($(),K(bt,{key:0},[G("span",{class:N([g(l).e("btn"),g(l).e("prev"),g(l).is("disabled",!V.infinite&&g(x))]),onClick:Z},[Y(g(At),null,{default:me(()=>[Y(g(kh))]),_:1})],2),G("span",{class:N([g(l).e("btn"),g(l).e("next"),g(l).is("disabled",!V.infinite&&g(S))]),onClick:Q},[Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})],2)],64)),ke(" ACTIONS "),G("div",{class:N([g(l).e("btn"),g(l).e("actions")])},[G("div",{class:N(g(l).e("actions__inner"))},[Y(g(At),{onClick:H[1]||(H[1]=ee=>B("zoomOut"))},{default:me(()=>[Y(g(R1e))]),_:1}),Y(g(At),{onClick:H[2]||(H[2]=ee=>B("zoomIn"))},{default:me(()=>[Y(g(Nq))]),_:1}),G("i",{class:N(g(l).e("actions__divider"))},null,2),Y(g(At),{onClick:j},{default:me(()=>[($(),Te(br(g(y).icon)))]),_:1}),G("i",{class:N(g(l).e("actions__divider"))},null,2),Y(g(At),{onClick:H[3]||(H[3]=ee=>B("anticlockwise"))},{default:me(()=>[Y(g(wwe))]),_:1}),Y(g(At),{onClick:H[4]||(H[4]=ee=>B("clockwise"))},{default:me(()=>[Y(g(Twe))]),_:1})],2)],2),ke(" CANVAS "),G("div",{class:N(g(l).e("canvas"))},[($(!0),K(bt,null,or(V.urlList,(ee,ce)=>kt(($(),K("img",{ref_for:!0,ref:re=>u.value[ce]=re,key:ee,src:ee,style:St(g(E)),class:N(g(l).e("img")),onLoad:L,onError:R,onMousedown:W},null,46,z$e)),[[Vt,ce===m.value]])),128))],2),Be(V.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var B$e=ot(V$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const aZ=lr(B$e),U$e=ct({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:Oe([String,Object])},previewSrcList:{type:Oe(Array),default:()=>Mi([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),W$e={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Gt(e),close:()=>!0,show:()=>!0},H$e=["src","loading"],G$e={key:0},q$e=ye({name:"ElImage",inheritAttrs:!1}),Y$e=ye({...q$e,props:U$e,emits:W$e,setup(e,{emit:t}){const r=e;let i="";const{t:n}=Hr(),o=He("image"),s=F1(),l=RR(),a=F(),c=F(!1),u=F(!0),p=F(!1),h=F(),m=F(),y=Rr&&"loading"in HTMLImageElement.prototype;let v,_;const x=O(()=>s.style),S=O(()=>{const{fit:B}=r;return Rr&&B?{objectFit:B}:{}}),C=O(()=>{const{previewSrcList:B}=r;return Array.isArray(B)&&B.length>0}),E=O(()=>{const{previewSrcList:B,initialIndex:V}=r;let H=V;return V>B.length-1&&(H=0),H}),T=O(()=>r.loading==="eager"?!1:!y&&r.loading==="lazy"||r.lazy),w=()=>{!Rr||(u.value=!0,c.value=!1,a.value=r.src)};function I(B){u.value=!1,c.value=!1,t("load",B)}function M(B){u.value=!1,c.value=!0,t("error",B)}function L(){i0e(h.value,m.value)&&(w(),z())}const R=Tq(L,200);async function W(){var B;if(!Rr)return;await Ct();const{scrollContainer:V}=r;lc(V)?m.value=V:Kt(V)&&V!==""?m.value=(B=document.querySelector(V))!=null?B:void 0:h.value&&(m.value=AR(h.value)),m.value&&(v=Si(m,"scroll",R),setTimeout(()=>L(),100))}function z(){!Rr||!m.value||!R||(v==null||v(),m.value=void 0)}function j(B){if(!!B.ctrlKey){if(B.deltaY<0)return B.preventDefault(),!1;if(B.deltaY>0)return B.preventDefault(),!1}}function U(){!C.value||(_=Si("wheel",j,{passive:!1}),i=document.body.style.overflow,document.body.style.overflow="hidden",p.value=!0,t("show"))}function Z(){_==null||_(),document.body.style.overflow=i,p.value=!1,t("close")}function Q(B){t("switch",B)}return Ve(()=>r.src,()=>{T.value?(u.value=!0,c.value=!1,z(),W()):w()}),er(()=>{T.value?W():w()}),(B,V)=>($(),K("div",{ref_key:"container",ref:h,class:N([g(o).b(),B.$attrs.class]),style:St(g(x))},[a.value!==void 0&&!c.value?($(),K("img",sr({key:0},g(l),{src:a.value,loading:B.loading,style:g(S),class:[g(o).e("inner"),g(C)&&g(o).e("preview"),u.value&&g(o).is("loading")],onClick:U,onLoad:I,onError:M}),null,16,H$e)):ke("v-if",!0),u.value||c.value?($(),K("div",{key:1,class:N(g(o).e("wrapper"))},[u.value?Be(B.$slots,"placeholder",{key:0},()=>[G("div",{class:N(g(o).e("placeholder"))},null,2)]):c.value?Be(B.$slots,"error",{key:1},()=>[G("div",{class:N(g(o).e("error"))},rt(g(n)("el.image.error")),3)]):ke("v-if",!0)],2)):ke("v-if",!0),g(C)?($(),K(bt,{key:2},[p.value?($(),Te(g(aZ),{key:0,"z-index":B.zIndex,"initial-index":g(E),infinite:B.infinite,"zoom-rate":B.zoomRate,"url-list":B.previewSrcList,"hide-on-click-modal":B.hideOnClickModal,teleported:B.previewTeleported,"close-on-press-escape":B.closeOnPressEscape,onClose:Z,onSwitch:Q},{default:me(()=>[B.$slots.viewer?($(),K("div",G$e,[Be(B.$slots,"viewer")])):ke("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ke("v-if",!0)],64)):ke("v-if",!0)],6))}});var K$e=ot(Y$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Z$e=lr(K$e),Q$e=ct({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Vs,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Gt(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),J$e={[_i]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ss]:e=>Gt(e)||fo(e),[ar]:e=>Gt(e)||fo(e)},X$e=["aria-label","onKeydown"],e6e=["aria-label","onKeydown"],t6e=ye({name:"ElInputNumber"}),r6e=ye({...t6e,props:Q$e,emits:J$e,setup(e,{expose:t,emit:r}){const i=e,{t:n}=Hr(),o=He("input-number"),s=F(),l=kr({currentValue:i.modelValue,userInput:null}),{formItem:a}=ps(),c=O(()=>Gt(i.modelValue)&&i.modelValue<=i.min),u=O(()=>Gt(i.modelValue)&&i.modelValue>=i.max),p=O(()=>{const j=x(i.step);return po(i.precision)?Math.max(x(i.modelValue),j):(j>i.precision,i.precision)}),h=O(()=>i.controls&&i.controlsPosition==="right"),m=An(),y=Gs(),v=O(()=>{if(l.userInput!==null)return l.userInput;let j=l.currentValue;if(fo(j))return"";if(Gt(j)){if(Number.isNaN(j))return"";po(i.precision)||(j=j.toFixed(i.precision))}return j}),_=(j,U)=>{if(po(U)&&(U=p.value),U===0)return Math.round(j);let Z=String(j);const Q=Z.indexOf(".");if(Q===-1||!Z.replace(".","").split("")[Q+U])return j;const H=Z.length;return Z.charAt(H-1)==="5"&&(Z=`${Z.slice(0,Math.max(0,H-1))}6`),Number.parseFloat(Number(Z).toFixed(U))},x=j=>{if(fo(j))return 0;const U=j.toString(),Z=U.indexOf(".");let Q=0;return Z!==-1&&(Q=U.length-Z-1),Q},S=(j,U=1)=>Gt(j)?_(j+i.step*U):l.currentValue,C=()=>{if(i.readonly||y.value||u.value)return;const j=Number(v.value)||0,U=S(j);w(U),r(ss,l.currentValue)},E=()=>{if(i.readonly||y.value||c.value)return;const j=Number(v.value)||0,U=S(j,-1);w(U),r(ss,l.currentValue)},T=(j,U)=>{const{max:Z,min:Q,step:B,precision:V,stepStrictly:H,valueOnClear:ee}=i;let ce=Number(j);if(fo(j)||Number.isNaN(ce))return null;if(j===""){if(ee===null)return null;ce=Kt(ee)?{min:Q,max:Z}[ee]:ee}return H&&(ce=_(Math.round(ce/B)*B,V)),po(V)||(ce=_(ce,V)),(ce>Z||ce<Q)&&(ce=ce>Z?Z:Q,U&&r(ar,ce)),ce},w=(j,U=!0)=>{var Z;const Q=l.currentValue,B=T(j);if(Q!==B){if(!U){r(ar,B);return}l.userInput=null,r(ar,B),r(_i,B,Q),i.validateEvent&&((Z=a==null?void 0:a.validate)==null||Z.call(a,"change").catch(V=>void 0)),l.currentValue=B}},I=j=>{l.userInput=j;const U=j===""?null:Number(j);r(ss,U),w(U,!1)},M=j=>{const U=j!==""?Number(j):"";(Gt(U)&&!Number.isNaN(U)||j==="")&&w(U),l.userInput=null},L=()=>{var j,U;(U=(j=s.value)==null?void 0:j.focus)==null||U.call(j)},R=()=>{var j,U;(U=(j=s.value)==null?void 0:j.blur)==null||U.call(j)},W=j=>{r("focus",j)},z=j=>{var U;r("blur",j),i.validateEvent&&((U=a==null?void 0:a.validate)==null||U.call(a,"blur").catch(Z=>void 0))};return Ve(()=>i.modelValue,j=>{const U=T(l.userInput),Z=T(j,!0);!Gt(U)&&(!U||U!==Z)&&(l.currentValue=Z,l.userInput=null)},{immediate:!0}),er(()=>{var j;const{min:U,max:Z,modelValue:Q}=i,B=(j=s.value)==null?void 0:j.input;if(B.setAttribute("role","spinbutton"),Number.isFinite(Z)?B.setAttribute("aria-valuemax",String(Z)):B.removeAttribute("aria-valuemax"),Number.isFinite(U)?B.setAttribute("aria-valuemin",String(U)):B.removeAttribute("aria-valuemin"),B.setAttribute("aria-valuenow",String(l.currentValue)),B.setAttribute("aria-disabled",String(y.value)),!Gt(Q)&&Q!=null){let V=Number(Q);Number.isNaN(V)&&(V=null),r(ar,V)}}),Td(()=>{var j;const U=(j=s.value)==null?void 0:j.input;U==null||U.setAttribute("aria-valuenow",`${l.currentValue}`)}),t({focus:L,blur:R}),(j,U)=>($(),K("div",{class:N([g(o).b(),g(o).m(g(m)),g(o).is("disabled",g(y)),g(o).is("without-controls",!j.controls),g(o).is("controls-right",g(h))]),onDragstart:U[0]||(U[0]=Yt(()=>{},["prevent"]))},[j.controls?kt(($(),K("span",{key:0,role:"button","aria-label":g(n)("el.inputNumber.decrease"),class:N([g(o).e("decrease"),g(o).is("disabled",g(c))]),onKeydown:Lr(E,["enter"])},[Y(g(At),null,{default:me(()=>[g(h)?($(),Te(g(Nh),{key:0})):($(),Te(g(V_e),{key:1}))]),_:1})],42,X$e)),[[g(dS),E]]):ke("v-if",!0),j.controls?kt(($(),K("span",{key:1,role:"button","aria-label":g(n)("el.inputNumber.increase"),class:N([g(o).e("increase"),g(o).is("disabled",g(u))]),onKeydown:Lr(C,["enter"])},[Y(g(At),null,{default:me(()=>[g(h)?($(),Te(g(a3),{key:0})):($(),Te(g(Rq),{key:1}))]),_:1})],42,e6e)),[[g(dS),C]]):ke("v-if",!0),Y(g(Qi),{id:j.id,ref_key:"input",ref:s,type:"number",step:j.step,"model-value":g(v),placeholder:j.placeholder,readonly:j.readonly,disabled:g(y),size:g(m),max:j.max,min:j.min,name:j.name,label:j.label,"validate-event":!1,onKeydown:[Lr(Yt(C,["prevent"]),["up"]),Lr(Yt(E,["prevent"]),["down"])],onBlur:z,onFocus:W,onInput:I,onChange:M},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var i6e=ot(r6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const H_=lr(i6e),n6e=ct({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:yi}}),o6e={click:e=>e instanceof MouseEvent},s6e=["href"],l6e=ye({name:"ElLink"}),a6e=ye({...l6e,props:n6e,emits:o6e,setup(e,{emit:t}){const r=e,i=He("link"),n=O(()=>[i.b(),i.m(r.type),i.is("disabled",r.disabled),i.is("underline",r.underline&&!r.disabled)]);function o(s){r.disabled||t("click",s)}return(s,l)=>($(),K("a",{class:N(g(n)),href:s.disabled||!s.href?void 0:s.href,onClick:o},[s.icon?($(),Te(g(At),{key:0},{default:me(()=>[($(),Te(br(s.icon)))]),_:1})):ke("v-if",!0),s.$slots.default?($(),K("span",{key:1,class:N(g(i).e("inner"))},[Be(s.$slots,"default")],2)):ke("v-if",!0),s.$slots.icon?Be(s.$slots,"icon",{key:2}):ke("v-if",!0)],10,s6e))}});var c6e=ot(a6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const u6e=lr(c6e);class d6e{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",i=>{let n=!1;switch(i.code){case Rt.down:{this.gotoSubIndex(this.subIndex+1),n=!0;break}case Rt.up:{this.gotoSubIndex(this.subIndex-1),n=!0;break}case Rt.tab:{hC(t,"mouseleave");break}case Rt.enter:case Rt.space:{n=!0,i.currentTarget.click();break}}return n&&(i.preventDefault(),i.stopPropagation()),!1})})}}class p6e{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new d6e(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Rt.down:{hC(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Rt.up:{hC(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Rt.tab:{hC(t.currentTarget,"mouseleave");break}case Rt.enter:case Rt.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}}class h6e{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(i=>{i.nodeType===1&&new p6e(i,t)})}}const f6e=ye({name:"ElMenuCollapseTransition",setup(){const e=He("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,i){Zc(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",i()},onAfterEnter(r){Ns(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),tc(r,e.m("collapse"))?(Ns(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Zc(r,e.m("collapse"))):(Zc(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ns(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Zc(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function m6e(e,t,r,i,n,o){return $(),Te(Xi,sr({mode:"out-in"},e.listeners),{default:me(()=>[Be(e.$slots,"default")]),_:3},16)}var g6e=ot(f6e,[["render",m6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function cZ(e,t){const r=O(()=>{let n=e.parent;const o=[t.value];for(;n.type.name!=="ElMenu";)n.props.index&&o.unshift(n.props.index),n=n.parent;return o});return{parentMenu:O(()=>{let n=e.parent;for(;n&&!["ElMenu","ElSubMenu"].includes(n.type.name);)n=n.parent;return n}),indexPath:r}}function y6e(e){return O(()=>{const r=e.backgroundColor;return r?new HY(r).shade(20).toString():""})}const uZ=(e,t)=>{const r=He("menu");return O(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":y6e(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},v6e=ct({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:yi},expandOpenIcon:{type:yi},collapseCloseIcon:{type:yi},collapseOpenIcon:{type:yi}}),UA="ElSubMenu";var p4=ye({name:UA,props:v6e,setup(e,{slots:t,expose:r}){const i=Xt(),{indexPath:n,parentMenu:o}=cZ(i,O(()=>e.index)),s=He("menu"),l=He("sub-menu"),a=_t("rootMenu");a||zn(UA,"can not inject root menu");const c=_t(`subMenu:${o.value.uid}`);c||zn(UA,"can not inject sub menu");const u=F({}),p=F({});let h;const m=F(!1),y=F(),v=F(null),_=O(()=>W.value==="horizontal"&&S.value?"bottom-start":"right-start"),x=O(()=>W.value==="horizontal"&&S.value||W.value==="vertical"&&!a.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:Nh:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:os),S=O(()=>c.level===0),C=O(()=>e.popperAppendToBody===void 0?S.value:Boolean(e.popperAppendToBody)),E=O(()=>a.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),T=O(()=>W.value==="horizontal"&&S.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),w=O(()=>a.openedMenus.includes(e.index)),I=O(()=>{let H=!1;return Object.values(u.value).forEach(ee=>{ee.active&&(H=!0)}),Object.values(p.value).forEach(ee=>{ee.active&&(H=!0)}),H}),M=O(()=>a.props.backgroundColor||""),L=O(()=>a.props.activeTextColor||""),R=O(()=>a.props.textColor||""),W=O(()=>a.props.mode),z=kr({index:e.index,indexPath:n,active:I}),j=O(()=>W.value!=="horizontal"?{color:R.value}:{borderBottomColor:I.value?a.props.activeTextColor?L.value:"":"transparent",color:I.value?L.value:R.value}),U=()=>{var H,ee,ce;return(ce=(ee=(H=v.value)==null?void 0:H.popperRef)==null?void 0:ee.popperInstanceRef)==null?void 0:ce.destroy()},Z=H=>{H||U()},Q=()=>{a.props.menuTrigger==="hover"&&a.props.mode==="horizontal"||a.props.collapse&&a.props.mode==="vertical"||e.disabled||a.handleSubMenuClick({index:e.index,indexPath:n.value,active:I.value})},B=(H,ee=e.showTimeout)=>{var ce;H.type!=="focus"&&(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,h==null||h(),{stop:h}=eg(()=>{a.openMenu(e.index,n.value)},ee),C.value&&((ce=o.value.vnode.el)==null||ce.dispatchEvent(new MouseEvent("mouseenter")))))},V=(H=!1)=>{var ee,ce;a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||(h==null||h(),c.mouseInChild.value=!1,{stop:h}=eg(()=>!m.value&&a.closeMenu(e.index,n.value),e.hideTimeout),C.value&&H&&((ee=i.parent)==null?void 0:ee.type.name)==="ElSubMenu"&&((ce=c.handleMouseleave)==null||ce.call(c,!0)))};Ve(()=>a.props.collapse,H=>Z(Boolean(H)));{const H=ce=>{p.value[ce.index]=ce},ee=ce=>{delete p.value[ce.index]};cr(`subMenu:${i.uid}`,{addSubMenu:H,removeSubMenu:ee,handleMouseleave:V,mouseInChild:m,level:c.level+1})}return r({opened:w}),er(()=>{a.addSubMenu(z),c.addSubMenu(z)}),Ii(()=>{c.removeSubMenu(z),a.removeSubMenu(z)}),()=>{var H;const ee=[(H=t.title)==null?void 0:H.call(t),Lt(At,{class:l.e("icon-arrow"),style:{transform:w.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&a.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Kt(x.value)?Lt(i.appContext.components[x.value]):Lt(x.value)})],ce=uZ(a.props,c.level+1),re=a.isMenuPopup?Lt(qs,{ref:v,visible:w.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:_.value,teleported:C.value,fallbackPlacements:T.value,transition:E.value,gpuAcceleration:!1},{content:()=>{var fe;return Lt("div",{class:[s.m(W.value),s.m("popup-container"),e.popperClass],onMouseenter:Ne=>B(Ne,100),onMouseleave:()=>V(!0),onFocus:Ne=>B(Ne,100)},[Lt("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${_.value}`)],style:ce.value},[(fe=t.default)==null?void 0:fe.call(t)])])},default:()=>Lt("div",{class:l.e("title"),style:[j.value,{backgroundColor:M.value}],onClick:Q},ee)}):Lt(bt,{},[Lt("div",{class:l.e("title"),style:[j.value,{backgroundColor:M.value}],ref:y,onClick:Q},ee),Lt(C3,{},{default:()=>{var fe;return kt(Lt("ul",{role:"menu",class:[s.b(),s.m("inline")],style:ce.value},[(fe=t.default)==null?void 0:fe.call(t)]),[[Vt,w.value]])}})]);return Lt("li",{class:[l.b(),l.is("active",I.value),l.is("opened",w.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:B,onMouseleave:()=>V(!0),onFocus:B},[re])}}});const b6e=ct({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Oe(Array),default:()=>Mi([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),WA=e=>Array.isArray(e)&&e.every(t=>Kt(t)),_6e={close:(e,t)=>Kt(e)&&WA(t),open:(e,t)=>Kt(e)&&WA(t),select:(e,t,r,i)=>Kt(e)&&WA(t)&&yr(r)&&(i===void 0||i instanceof Promise)};var w6e=ye({name:"ElMenu",props:b6e,emits:_6e,setup(e,{emit:t,slots:r,expose:i}){const n=Xt(),o=n.appContext.config.globalProperties.$router,s=F(),l=He("menu"),a=He("sub-menu"),c=F(-1),u=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=F(e.defaultActive),h=F({}),m=F({}),y=O(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const R=p.value&&h.value[p.value];if(!R||e.mode==="horizontal"||e.collapse)return;R.indexPath.forEach(z=>{const j=m.value[z];j&&_(z,j.indexPath)})},_=(R,W)=>{u.value.includes(R)||(e.uniqueOpened&&(u.value=u.value.filter(z=>W.includes(z))),u.value.push(R),t("open",R,W))},x=(R,W)=>{const z=u.value.indexOf(R);z!==-1&&u.value.splice(z,1),t("close",R,W)},S=({index:R,indexPath:W})=>{u.value.includes(R)?x(R,W):_(R,W)},C=R=>{(e.mode==="horizontal"||e.collapse)&&(u.value=[]);const{index:W,indexPath:z}=R;if(!(W===void 0||z===void 0))if(e.router&&o){const j=R.route||W,U=o.push(j).then(Z=>(Z||(p.value=W),Z));t("select",W,z,{index:W,indexPath:z,route:j},U)}else p.value=W,t("select",W,z,{index:W,indexPath:z})},E=R=>{const W=h.value,z=W[R]||p.value&&W[p.value]||W[e.defaultActive];z?p.value=z.index:p.value=R},T=()=>{var R,W;if(!s.value)return-1;const z=Array.from((W=(R=s.value)==null?void 0:R.childNodes)!=null?W:[]).filter(H=>H.nodeName!=="#text"||H.nodeValue),j=64,U=Number.parseInt(getComputedStyle(s.value).paddingLeft,10),Z=Number.parseInt(getComputedStyle(s.value).paddingRight,10),Q=s.value.clientWidth-U-Z;let B=0,V=0;return z.forEach((H,ee)=>{B+=H.offsetWidth||0,B<=Q-j&&(V=ee+1)}),V===z.length?-1:V},w=(R,W=33.34)=>{let z;return()=>{z&&clearTimeout(z),z=setTimeout(()=>{R()},W)}};let I=!0;const M=()=>{const R=()=>{c.value=-1,Ct(()=>{c.value=T()})};I?R():w(R)(),I=!1};Ve(()=>e.defaultActive,R=>{h.value[R]||(p.value=""),E(R)}),Ve(()=>e.collapse,R=>{R&&(u.value=[])}),Ve(h.value,v);let L;Ds(()=>{e.mode==="horizontal"&&e.ellipsis?L=Uo(s,M).stop:L==null||L()});{const R=U=>{m.value[U.index]=U},W=U=>{delete m.value[U.index]};cr("rootMenu",kr({props:e,openedMenus:u,items:h,subMenus:m,activeIndex:p,isMenuPopup:y,addMenuItem:U=>{h.value[U.index]=U},removeMenuItem:U=>{delete h.value[U.index]},addSubMenu:R,removeSubMenu:W,openMenu:_,closeMenu:x,handleMenuItemClick:C,handleSubMenuClick:S})),cr(`subMenu:${n.uid}`,{addSubMenu:R,removeSubMenu:W,mouseInChild:F(!1),level:0})}return er(()=>{e.mode==="horizontal"&&new h6e(n.vnode.el,l.namespace.value)}),i({open:W=>{const{indexPath:z}=m.value[W];z.forEach(j=>_(j,z))},close:x,handleResize:M}),()=>{var R,W;let z=(W=(R=r.default)==null?void 0:R.call(r))!=null?W:[];const j=[];if(e.mode==="horizontal"&&s.value){const Q=iv(z),B=c.value===-1?Q:Q.slice(0,c.value),V=c.value===-1?[]:Q.slice(c.value);(V==null?void 0:V.length)&&e.ellipsis&&(z=B,j.push(Lt(p4,{index:"sub-menu-more",class:a.e("hide-arrow")},{title:()=>Lt(At,{class:a.e("icon-more")},{default:()=>Lt(J_e)}),default:()=>V})))}const U=uZ(e,0),Z=Lt("ul",{key:String(e.collapse),role:"menubar",ref:s,style:U.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...z,...j]);return e.collapseTransition&&e.mode==="vertical"?Lt(g6e,()=>Z):Z}}});const x6e=ct({index:{type:Oe([String,null]),default:null},route:{type:Oe([String,Object])},disabled:Boolean}),C6e={click:e=>Kt(e.index)&&Array.isArray(e.indexPath)},HA="ElMenuItem",k6e=ye({name:HA,components:{ElTooltip:qs},props:x6e,emits:C6e,setup(e,{emit:t}){const r=Xt(),i=_t("rootMenu"),n=He("menu"),o=He("menu-item");i||zn(HA,"can not inject root menu");const{parentMenu:s,indexPath:l}=cZ(r,Ni(e,"index")),a=_t(`subMenu:${s.value.uid}`);a||zn(HA,"can not inject sub menu");const c=O(()=>e.index===i.activeIndex),u=kr({index:e.index,indexPath:l,active:c}),p=()=>{e.disabled||(i.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",u))};return er(()=>{a.addSubMenu(u),i.addMenuItem(u)}),Ii(()=>{a.removeSubMenu(u),i.removeMenuItem(u)}),{parentMenu:s,rootMenu:i,active:c,nsMenu:n,nsMenuItem:o,handleClick:p}}});function S6e(e,t,r,i,n,o){const s=Ft("el-tooltip");return $(),K("li",{class:N([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?($(),Te(s,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:me(()=>[Be(e.$slots,"title")]),default:me(()=>[G("div",{class:N(e.nsMenu.be("tooltip","trigger"))},[Be(e.$slots,"default")],2)]),_:3},8,["effect"])):($(),K(bt,{key:1},[Be(e.$slots,"default"),Be(e.$slots,"title")],64))],2)}var dZ=ot(k6e,[["render",S6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const E6e={title:String},T6e="ElMenuItemGroup",A6e=ye({name:T6e,props:E6e,setup(){return{ns:He("menu-item-group")}}});function M6e(e,t,r,i,n,o){return $(),K("li",{class:N(e.ns.b())},[G("div",{class:N(e.ns.e("title"))},[e.$slots.title?Be(e.$slots,"title",{key:1}):($(),K(bt,{key:0},[Ir(rt(e.title),1)],64))],2),G("ul",null,[Be(e.$slots,"default")])],2)}var pZ=ot(A6e,[["render",M6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const I6e=lr(w6e,{MenuItem:dZ,MenuItemGroup:pZ,SubMenu:p4}),P6e=Hi(dZ),$6e=Hi(pZ);Hi(p4);const O6e=ct({icon:{type:yi,default:()=>D0e},title:String,content:{type:String,default:""}}),L6e={back:()=>!0},R6e=["aria-label"],D6e=ye({name:"ElPageHeader"}),N6e=ye({...D6e,props:O6e,emits:L6e,setup(e,{emit:t}){const r=go(),{t:i}=Hr(),n=He("page-header"),o=O(()=>[n.b(),{[n.m("has-breadcrumb")]:!!r.breadcrumb,[n.m("has-extra")]:!!r.extra,[n.is("contentful")]:!!r.default}]);function s(){t("back")}return(l,a)=>($(),K("div",{class:N(g(o))},[l.$slots.breadcrumb?($(),K("div",{key:0,class:N(g(n).e("breadcrumb"))},[Be(l.$slots,"breadcrumb")],2)):ke("v-if",!0),G("div",{class:N(g(n).e("header"))},[G("div",{class:N(g(n).e("left"))},[G("div",{class:N(g(n).e("back")),role:"button",tabindex:"0",onClick:s},[l.icon||l.$slots.icon?($(),K("div",{key:0,"aria-label":l.title||g(i)("el.pageHeader.title"),class:N(g(n).e("icon"))},[Be(l.$slots,"icon",{},()=>[l.icon?($(),Te(g(At),{key:0},{default:me(()=>[($(),Te(br(l.icon)))]),_:1})):ke("v-if",!0)])],10,R6e)):ke("v-if",!0),G("div",{class:N(g(n).e("title"))},[Be(l.$slots,"title",{},()=>[Ir(rt(l.title||g(i)("el.pageHeader.title")),1)])],2)],2),Y(g(ZK),{direction:"vertical"}),G("div",{class:N(g(n).e("content"))},[Be(l.$slots,"content",{},()=>[Ir(rt(l.content),1)])],2)],2),l.$slots.extra?($(),K("div",{key:0,class:N(g(n).e("extra"))},[Be(l.$slots,"extra")],2)):ke("v-if",!0)],2),l.$slots.default?($(),K("div",{key:1,class:N(g(n).e("main"))},[Be(l.$slots,"default")],2)):ke("v-if",!0)],2))}});var F6e=ot(N6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const z6e=lr(F6e),j6e=ct({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:yi}}),V6e={click:e=>e instanceof MouseEvent},B6e=["disabled","aria-disabled"],U6e={key:0},W6e=ye({name:"ElPaginationPrev"}),H6e=ye({...W6e,props:j6e,emits:V6e,setup(e){const t=e,r=O(()=>t.disabled||t.currentPage<=1);return(i,n)=>($(),K("button",{type:"button",class:"btn-prev",disabled:g(r),"aria-disabled":g(r),onClick:n[0]||(n[0]=o=>i.$emit("click",o))},[i.prevText?($(),K("span",U6e,rt(i.prevText),1)):($(),Te(g(At),{key:1},{default:me(()=>[($(),Te(br(i.prevIcon)))]),_:1}))],8,B6e))}});var G6e=ot(H6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const q6e=ct({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:yi}}),Y6e=["disabled","aria-disabled"],K6e={key:0},Z6e=ye({name:"ElPaginationNext"}),Q6e=ye({...Z6e,props:q6e,emits:["click"],setup(e){const t=e,r=O(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(i,n)=>($(),K("button",{type:"button",class:"btn-next",disabled:g(r),"aria-disabled":g(r),onClick:n[0]||(n[0]=o=>i.$emit("click",o))},[i.nextText?($(),K("span",K6e,rt(i.nextText),1)):($(),Te(g(At),{key:1},{default:me(()=>[($(),Te(br(i.nextIcon)))]),_:1}))],8,Y6e))}});var J6e=ot(Q6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const hZ="ElSelectGroup",Y1="ElSelect";function X6e(e,t){const r=_t(Y1),i=_t(hZ,{disabled:!1}),n=O(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),o=O(()=>r.props.multiple?p(r.props.modelValue,e.value):h(e.value,r.props.modelValue)),s=O(()=>{if(r.props.multiple){const v=r.props.modelValue||[];return!o.value&&v.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),l=O(()=>e.label||(n.value?"":e.value)),a=O(()=>e.value||e.label||""),c=O(()=>e.disabled||t.groupDisabled||s.value),u=Xt(),p=(v=[],_)=>{if(n.value){const x=r.props.valueKey;return v&&v.some(S=>ei(Ai(S,x))===Ai(_,x))}else return v&&v.includes(_)},h=(v,_)=>{if(n.value){const{valueKey:x}=r.props;return Ai(v,x)===Ai(_,x)}else return v===_},m=()=>{!e.disabled&&!i.disabled&&(r.hoverIndex=r.optionsArray.indexOf(u.proxy))};Ve(()=>l.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),Ve(()=>e.value,(v,_)=>{const{remote:x,valueKey:S}=r.props;if(Object.is(v,_)||(r.onOptionDestroy(_,u.proxy),r.onOptionCreate(u.proxy)),!e.created&&!x){if(S&&typeof v=="object"&&typeof _=="object"&&v[S]===_[S])return;r.setSelected()}}),Ve(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0});const{queryChange:y}=ei(r);return Ve(y,v=>{const{query:_}=g(v),x=new RegExp(Aq(_),"i");t.visible=x.test(l.value)||e.created,t.visible||r.filteredOptionsCount--}),{select:r,currentLabel:l,currentValue:a,itemSelected:o,isDisabled:c,hoverItem:m}}const eOe=ye({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=He("select"),r=kr({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:n,isDisabled:o,select:s,hoverItem:l}=X6e(e,r),{visible:a,hover:c}=Fn(r),u=Xt().proxy;s.onOptionCreate(u),Ii(()=>{const h=u.value,{selected:m}=s,v=(s.props.multiple?m:[m]).some(_=>_.value===u.value);Ct(()=>{s.cachedOptions.get(h)===u&&!v&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,u)});function p(){e.disabled!==!0&&r.groupDisabled!==!0&&s.handleOptionSelect(u,!0)}return{ns:t,currentLabel:i,itemSelected:n,isDisabled:o,select:s,hoverItem:l,visible:a,hover:c,selectOptionClick:p,states:r}}});function tOe(e,t,r,i,n,o){return kt(($(),K("li",{class:N([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Yt((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[Be(e.$slots,"default",{},()=>[G("span",null,rt(e.currentLabel),1)])],34)),[[Vt,e.visible]])}var h4=ot(eOe,[["render",tOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const rOe=ye({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=_t(Y1),t=He("select"),r=O(()=>e.props.popperClass),i=O(()=>e.props.multiple),n=O(()=>e.props.fitInputWidth),o=F("");function s(){var l;o.value=`${(l=e.selectWrapper)==null?void 0:l.offsetWidth}px`}return er(()=>{s(),Uo(e.selectWrapper,s)}),{ns:t,minWidth:o,popperClass:r,isMultiple:i,isFitInputWidth:n}}});function iOe(e,t,r,i,n,o){return $(),K("div",{class:N([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:St({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Be(e.$slots,"default")],6)}var nOe=ot(rOe,[["render",iOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function oOe(e){const{t}=Hr();return kr({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const sOe=(e,t,r)=>{const{t:i}=Hr(),n=He("select");yd({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},O(()=>e.suffixTransition===!1));const o=F(null),s=F(null),l=F(null),a=F(null),c=F(null),u=F(null),p=F(-1),h=gi({query:""}),m=gi(""),{form:y,formItem:v}=ps(),_=O(()=>!e.filterable||e.multiple||!t.visible),x=O(()=>e.disabled||(y==null?void 0:y.disabled)),S=O(()=>{const ie=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&ie}),C=O(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),E=O(()=>n.is("reverse",C.value&&t.visible&&e.suffixTransition)),T=O(()=>e.remote?300:0),w=O(()=>e.loading?e.loadingText||i("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||i("el.select.noMatch"):t.options.size===0?e.noDataText||i("el.select.noData"):null),I=O(()=>Array.from(t.options.values())),M=O(()=>Array.from(t.cachedOptions.values())),L=O(()=>{const ie=I.value.filter(we=>!we.created).some(we=>we.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!ie}),R=An(),W=O(()=>["small"].includes(R.value)?"small":"default"),z=O({get(){return t.visible&&w.value!==!1},set(ie){t.visible=ie}});Ve([()=>x.value,()=>R.value,()=>y==null?void 0:y.size],()=>{Ct(()=>{j()})}),Ve(()=>e.placeholder,ie=>{t.cachedPlaceHolder=t.currentPlaceholder=ie}),Ve(()=>e.modelValue,(ie,we)=>{e.multiple&&(j(),ie&&ie.length>0||s.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",U(t.query))),B(),e.filterable&&!e.multiple&&(t.inputLength=20),!yl(ie,we)&&e.validateEvent&&(v==null||v.validate("change").catch(qe=>void 0))},{flush:"post",deep:!0}),Ve(()=>t.visible,ie=>{var we,qe,it;ie?((qe=(we=l.value)==null?void 0:we.updatePopper)==null||qe.call(we),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(it=s.value)==null||it.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),U(t.query),!e.multiple&&!e.remote&&(h.value.query="",X0(h),X0(m)))):(e.filterable&&(qt(e.filterMethod)&&e.filterMethod(""),qt(e.remoteMethod)&&e.remoteMethod("")),s.value&&s.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,H(),Ct(()=>{s.value&&s.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),r.emit("visible-change",ie)}),Ve(()=>t.options.entries(),()=>{var ie,we,qe;if(!Rr)return;(we=(ie=l.value)==null?void 0:ie.updatePopper)==null||we.call(ie),e.multiple&&j();const it=((qe=c.value)==null?void 0:qe.querySelectorAll("input"))||[];Array.from(it).includes(document.activeElement)||B(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&Q()},{flush:"post"}),Ve(()=>t.hoverIndex,ie=>{Gt(ie)&&ie>-1?p.value=I.value[ie]||{}:p.value={},I.value.forEach(we=>{we.hover=p.value===we})});const j=()=>{e.collapseTags&&!e.filterable||Ct(()=>{var ie,we;if(!o.value)return;const qe=o.value.$el.querySelector("input"),it=a.value,Zt=j1e(R.value||(y==null?void 0:y.size));qe.style.height=`${(t.selected.length===0?Zt:Math.max(it?it.clientHeight+(it.clientHeight>Zt?6:0):0,Zt))-2}px`,t.tagInMultiLine=Number.parseFloat(qe.style.height)>=Zt,t.visible&&w.value!==!1&&((we=(ie=l.value)==null?void 0:ie.updatePopper)==null||we.call(ie))})},U=async ie=>{if(!(t.previousQuery===ie||t.isOnComposition)){if(t.previousQuery===null&&(qt(e.filterMethod)||qt(e.remoteMethod))){t.previousQuery=ie;return}t.previousQuery=ie,Ct(()=>{var we,qe;t.visible&&((qe=(we=l.value)==null?void 0:we.updatePopper)==null||qe.call(we))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ct(()=>{const we=s.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,we):we,Z(),j()}),e.remote&&qt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(ie)):qt(e.filterMethod)?(e.filterMethod(ie),X0(m)):(t.filteredOptionsCount=t.optionsCount,h.value.query=ie,X0(h),X0(m)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ct(),Q())}},Z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=s.value.value?"":t.cachedPlaceHolder)},Q=()=>{const ie=I.value.filter(it=>it.visible&&!it.disabled&&!it.states.groupDisabled),we=ie.find(it=>it.created),qe=ie[0];t.hoverIndex=$e(I.value,we||qe)},B=()=>{var ie;if(e.multiple)t.selectedLabel="";else{const qe=V(e.modelValue);(ie=qe.props)!=null&&ie.created?(t.createdLabel=qe.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=qe.currentLabel,t.selected=qe,e.filterable&&(t.query=t.selectedLabel);return}const we=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(qe=>{we.push(V(qe))}),t.selected=we,Ct(()=>{j()})},V=ie=>{let we;const qe=aC(ie).toLowerCase()==="object",it=aC(ie).toLowerCase()==="null",Zt=aC(ie).toLowerCase()==="undefined";for(let fn=t.cachedOptions.size-1;fn>=0;fn--){const Kr=M.value[fn];if(qe?Ai(Kr.value,e.valueKey)===Ai(ie,e.valueKey):Kr.value===ie){we={value:ie,currentLabel:Kr.currentLabel,isDisabled:Kr.isDisabled};break}}if(we)return we;const Cr=qe?ie.label:!it&&!Zt?ie:"",Pi={value:ie,currentLabel:Cr};return e.multiple&&(Pi.hitState=!1),Pi},H=()=>{setTimeout(()=>{const ie=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(we=>I.value.findIndex(qe=>Ai(qe,ie)===Ai(we,ie)))):t.hoverIndex=-1:t.hoverIndex=I.value.findIndex(we=>Jt(we)===Jt(t.selected))},300)},ee=()=>{var ie,we;ce(),(we=(ie=l.value)==null?void 0:ie.updatePopper)==null||we.call(ie),e.multiple&&!e.filterable&&j()},ce=()=>{var ie;t.inputWidth=(ie=o.value)==null?void 0:ie.$el.getBoundingClientRect().width},re=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,U(t.query))},fe=as(()=>{re()},T.value),Ne=as(ie=>{U(ie.target.value)},T.value),de=ie=>{yl(e.modelValue,ie)||r.emit(_i,ie)},_e=ie=>{if(ie.target.value.length<=0&&!xe()){const we=e.modelValue.slice();we.pop(),r.emit(ar,we),de(we)}ie.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},ae=(ie,we)=>{const qe=t.selected.indexOf(we);if(qe>-1&&!x.value){const it=e.modelValue.slice();it.splice(qe,1),r.emit(ar,it),de(it),r.emit("remove-tag",we.value)}ie.stopPropagation()},X=ie=>{ie.stopPropagation();const we=e.multiple?[]:"";if(!Kt(we))for(const qe of t.selected)qe.isDisabled&&we.push(qe.value);r.emit(ar,we),de(we),t.hoverIndex=-1,t.visible=!1,r.emit("clear")},he=(ie,we)=>{var qe;if(e.multiple){const it=(e.modelValue||[]).slice(),Zt=$e(it,ie.value);Zt>-1?it.splice(Zt,1):(e.multipleLimit<=0||it.length<e.multipleLimit)&&it.push(ie.value),r.emit(ar,it),de(it),ie.created&&(t.query="",U(""),t.inputLength=20),e.filterable&&((qe=s.value)==null||qe.focus())}else r.emit(ar,ie.value),de(ie.value),t.visible=!1;t.isSilentBlur=we,Je(),!t.visible&&Ct(()=>{ne(ie)})},$e=(ie=[],we)=>{if(!yr(we))return ie.indexOf(we);const qe=e.valueKey;let it=-1;return ie.some((Zt,Cr)=>ei(Ai(Zt,qe))===Ai(we,qe)?(it=Cr,!0):!1),it},Je=()=>{t.softFocus=!0;const ie=s.value||o.value;ie&&(ie==null||ie.focus())},ne=ie=>{var we,qe,it,Zt,Cr;const Pi=Array.isArray(ie)?ie[0]:ie;let fn=null;if(Pi!=null&&Pi.value){const Kr=I.value.filter(Dr=>Dr.value===Pi.value);Kr.length>0&&(fn=Kr[0].$el)}if(l.value&&fn){const Kr=(Zt=(it=(qe=(we=l.value)==null?void 0:we.popperRef)==null?void 0:qe.contentRef)==null?void 0:it.querySelector)==null?void 0:Zt.call(it,`.${n.be("dropdown","wrap")}`);Kr&&Pq(Kr,fn)}(Cr=u.value)==null||Cr.handleScroll()},pe=ie=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(ie.value,ie),t.cachedOptions.set(ie.value,ie)},ge=(ie,we)=>{t.options.get(ie)===we&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(ie))},Se=ie=>{ie.code!==Rt.backspace&&xe(!1),t.inputLength=s.value.value.length*15+20,j()},xe=ie=>{if(!Array.isArray(t.selected))return;const we=t.selected[t.selected.length-1];if(!!we)return ie===!0||ie===!1?(we.hitState=ie,ie):(we.hitState=!we.hitState,we.hitState)},be=ie=>{const we=ie.target.value;if(ie.type==="compositionend")t.isOnComposition=!1,Ct(()=>U(we));else{const qe=we[we.length-1]||"";t.isOnComposition=!d3(qe)}},Qe=()=>{Ct(()=>ne(t.selected))},Fe=ie=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),r.emit("focus",ie))},Me=()=>{var ie;t.visible=!1,(ie=o.value)==null||ie.blur()},Ie=ie=>{Ct(()=>{t.isSilentBlur?t.isSilentBlur=!1:r.emit("blur",ie)}),t.softFocus=!1},Pe=ie=>{X(ie)},Xe=()=>{t.visible=!1},dt=ie=>{t.visible&&(ie.preventDefault(),ie.stopPropagation(),t.visible=!1)},gt=ie=>{var we;ie&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((we=s.value||o.value)==null||we.focus()))},Dt=()=>{t.visible?I.value[t.hoverIndex]&&he(I.value[t.hoverIndex],void 0):gt()},Jt=ie=>yr(ie.value)?Ai(ie.value,e.valueKey):ie.value,Bt=O(()=>I.value.filter(ie=>ie.visible).every(ie=>ie.disabled)),Le=ie=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Bt.value){ie==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):ie==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const we=I.value[t.hoverIndex];(we.disabled===!0||we.states.groupDisabled===!0||!we.visible)&&Le(ie),Ct(()=>ne(p.value))}};return{optionsArray:I,selectSize:R,handleResize:ee,debouncedOnInputChange:fe,debouncedQueryChange:Ne,deletePrevTag:_e,deleteTag:ae,deleteSelected:X,handleOptionSelect:he,scrollToOption:ne,readonly:_,resetInputHeight:j,showClose:S,iconComponent:C,iconReverse:E,showNewOption:L,collapseTagSize:W,setSelected:B,managePlaceholder:Z,selectDisabled:x,emptyText:w,toggleLastOptionHitState:xe,resetInputState:Se,handleComposition:be,onOptionCreate:pe,onOptionDestroy:ge,handleMenuEnter:Qe,handleFocus:Fe,blur:Me,handleBlur:Ie,handleClearClick:Pe,handleClose:Xe,handleKeydownEscape:dt,toggleMenu:gt,selectOption:Dt,getValueKey:Jt,navigateOptions:Le,dropMenuVisible:z,queryChange:h,groupQueryChange:m,reference:o,input:s,tooltipRef:l,tags:a,selectWrapper:c,scrollbar:u,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}},jj="ElSelect",lOe=ye({name:jj,componentName:jj,components:{ElInput:Qi,ElSelectMenu:nOe,ElOption:h4,ElTag:x3,ElScrollbar:Ld,ElTooltip:qs,ElIcon:At},directives:{ClickOutside:Ah},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:m0},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:ao.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:yi,default:Fh},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:yi,default:Nh},tagType:{...o4.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Sg,default:"bottom-start"}},emits:[ar,_i,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=He("select"),i=He("input"),{t:n}=Hr(),o=oOe(e),{optionsArray:s,selectSize:l,readonly:a,handleResize:c,collapseTagSize:u,debouncedOnInputChange:p,debouncedQueryChange:h,deletePrevTag:m,deleteTag:y,deleteSelected:v,handleOptionSelect:_,scrollToOption:x,setSelected:S,resetInputHeight:C,managePlaceholder:E,showClose:T,selectDisabled:w,iconComponent:I,iconReverse:M,showNewOption:L,emptyText:R,toggleLastOptionHitState:W,resetInputState:z,handleComposition:j,onOptionCreate:U,onOptionDestroy:Z,handleMenuEnter:Q,handleFocus:B,blur:V,handleBlur:H,handleClearClick:ee,handleClose:ce,handleKeydownEscape:re,toggleMenu:fe,selectOption:Ne,getValueKey:de,navigateOptions:_e,dropMenuVisible:ae,reference:X,input:he,tooltipRef:$e,tags:Je,selectWrapper:ne,scrollbar:pe,queryChange:ge,groupQueryChange:Se,handleMouseEnter:xe,handleMouseLeave:be}=sOe(e,o,t),{focus:Qe}=K1e(X),{inputWidth:Fe,selected:Me,inputLength:Ie,filteredOptionsCount:Pe,visible:Xe,softFocus:dt,selectedLabel:gt,hoverIndex:Dt,query:Jt,inputHovering:Bt,currentPlaceholder:Le,menuVisibleOnFocus:st,isOnComposition:It,isSilentBlur:ie,options:we,cachedOptions:qe,optionsCount:it,prefixWidth:Zt,tagInMultiLine:Cr}=Fn(o),Pi=O(()=>{const Ze=[r.b()],Nt=g(l);return Nt&&Ze.push(r.m(Nt)),e.disabled&&Ze.push(r.m("disabled")),Ze}),fn=O(()=>({maxWidth:`${g(Fe)-32}px`,width:"100%"})),Kr=O(()=>({maxWidth:`${g(Fe)>123?g(Fe)-123:g(Fe)-75}px`}));cr(Y1,kr({props:e,options:we,optionsArray:s,cachedOptions:qe,optionsCount:it,filteredOptionsCount:Pe,hoverIndex:Dt,handleOptionSelect:_,onOptionCreate:U,onOptionDestroy:Z,selectWrapper:ne,selected:Me,setSelected:S,queryChange:ge,groupQueryChange:Se})),er(()=>{o.cachedPlaceHolder=Le.value=e.placeholder||n("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Le.value=""),Uo(ne,c),e.remote&&e.multiple&&C(),Ct(()=>{const Ze=X.value&&X.value.$el;if(!!Ze&&(Fe.value=Ze.getBoundingClientRect().width,t.slots.prefix)){const Nt=Ze.querySelector(`.${i.e("prefix")}`);Zt.value=Math.max(Nt.getBoundingClientRect().width+5,30)}}),S()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(ar,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(ar,"");const Dr=O(()=>{var Ze,Nt;return(Nt=(Ze=$e.value)==null?void 0:Ze.popperRef)==null?void 0:Nt.contentRef});return{tagInMultiLine:Cr,prefixWidth:Zt,selectSize:l,readonly:a,handleResize:c,collapseTagSize:u,debouncedOnInputChange:p,debouncedQueryChange:h,deletePrevTag:m,deleteTag:y,deleteSelected:v,handleOptionSelect:_,scrollToOption:x,inputWidth:Fe,selected:Me,inputLength:Ie,filteredOptionsCount:Pe,visible:Xe,softFocus:dt,selectedLabel:gt,hoverIndex:Dt,query:Jt,inputHovering:Bt,currentPlaceholder:Le,menuVisibleOnFocus:st,isOnComposition:It,isSilentBlur:ie,options:we,resetInputHeight:C,managePlaceholder:E,showClose:T,selectDisabled:w,iconComponent:I,iconReverse:M,showNewOption:L,emptyText:R,toggleLastOptionHitState:W,resetInputState:z,handleComposition:j,handleMenuEnter:Q,handleFocus:B,blur:V,handleBlur:H,handleClearClick:ee,handleClose:ce,handleKeydownEscape:re,toggleMenu:fe,selectOption:Ne,getValueKey:de,navigateOptions:_e,dropMenuVisible:ae,focus:Qe,reference:X,input:he,tooltipRef:$e,popperPaneRef:Dr,tags:Je,selectWrapper:ne,scrollbar:pe,wrapperKls:Pi,selectTagsStyle:fn,nsSelect:r,tagTextStyle:Kr,handleMouseEnter:xe,handleMouseLeave:be}}}),aOe=["disabled","autocomplete"],cOe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function uOe(e,t,r,i,n,o){const s=Ft("el-tag"),l=Ft("el-tooltip"),a=Ft("el-icon"),c=Ft("el-input"),u=Ft("el-option"),p=Ft("el-scrollbar"),h=Ft("el-select-menu"),m=Sv("click-outside");return kt(($(),K("div",{ref:"selectWrapper",class:N(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...y)=>e.handleMouseEnter&&e.handleMouseEnter(...y)),onMouseleave:t[23]||(t[23]=(...y)=>e.handleMouseLeave&&e.handleMouseLeave(...y)),onClick:t[24]||(t[24]=Yt((...y)=>e.toggleMenu&&e.toggleMenu(...y),["stop"]))},[Y(l,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:me(()=>[G("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=y=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=y=>e.inputHovering=!1)},[e.multiple?($(),K("div",{key:0,ref:"tags",class:N(e.nsSelect.e("tags")),style:St(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?($(),K("span",{key:0,class:N([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[Y(s,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=y=>e.deleteTag(y,e.selected[0]))},{default:me(()=>[G("span",{class:N(e.nsSelect.e("tags-text")),style:St(e.tagTextStyle)},rt(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?($(),Te(s,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:me(()=>[e.collapseTagsTooltip?($(),Te(l,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:me(()=>[G("span",{class:N(e.nsSelect.e("tags-text"))},"+ "+rt(e.selected.length-1),3)]),content:me(()=>[G("div",{class:N(e.nsSelect.e("collapse-tags"))},[($(!0),K(bt,null,or(e.selected.slice(1),(y,v)=>($(),K("div",{key:v,class:N(e.nsSelect.e("collapse-tag"))},[($(),Te(s,{key:e.getValueKey(y),class:"in-tooltip",closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,hit:y.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:_=>e.deleteTag(_,y)},{default:me(()=>[G("span",{class:N(e.nsSelect.e("tags-text")),style:St({maxWidth:e.inputWidth-75+"px"})},rt(y.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):($(),K("span",{key:1,class:N(e.nsSelect.e("tags-text"))},"+ "+rt(e.selected.length-1),3))]),_:1},8,["size","type"])):ke("v-if",!0)],2)):ke("v-if",!0),ke(" <div> "),e.collapseTags?ke("v-if",!0):($(),Te(Xi,{key:1,onAfterLeave:e.resetInputHeight},{default:me(()=>[G("span",{class:N([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[($(!0),K(bt,null,or(e.selected,y=>($(),Te(s,{key:e.getValueKey(y),closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,hit:y.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,y)},{default:me(()=>[G("span",{class:N(e.nsSelect.e("tags-text")),style:St({maxWidth:e.inputWidth-75+"px"})},rt(y.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),ke(" </div> "),e.filterable?kt(($(),K("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=y=>e.query=y),type:"text",class:N([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:St({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...y)=>e.handleFocus&&e.handleFocus(...y)),onBlur:t[3]||(t[3]=(...y)=>e.handleBlur&&e.handleBlur(...y)),onKeyup:t[4]||(t[4]=(...y)=>e.managePlaceholder&&e.managePlaceholder(...y)),onKeydown:[t[5]||(t[5]=(...y)=>e.resetInputState&&e.resetInputState(...y)),t[6]||(t[6]=Lr(Yt(y=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Lr(Yt(y=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Lr((...y)=>e.handleKeydownEscape&&e.handleKeydownEscape(...y),["esc"])),t[9]||(t[9]=Lr(Yt((...y)=>e.selectOption&&e.selectOption(...y),["stop","prevent"]),["enter"])),t[10]||(t[10]=Lr((...y)=>e.deletePrevTag&&e.deletePrevTag(...y),["delete"])),t[11]||(t[11]=Lr(y=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...y)=>e.handleComposition&&e.handleComposition(...y)),onCompositionupdate:t[13]||(t[13]=(...y)=>e.handleComposition&&e.handleComposition(...y)),onCompositionend:t[14]||(t[14]=(...y)=>e.handleComposition&&e.handleComposition(...y)),onInput:t[15]||(t[15]=(...y)=>e.debouncedQueryChange&&e.debouncedQueryChange(...y))},null,46,aOe)),[[eR,e.query]]):ke("v-if",!0)],6)):ke("v-if",!0),Y(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=y=>e.selectedLabel=y),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:N([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Lr(Yt(y=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Lr(Yt(y=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Lr(Yt(e.selectOption,["stop","prevent"]),["enter"]),Lr(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Lr(y=>e.visible=!1,["tab"]))]},fd({suffix:me(()=>[e.iconComponent&&!e.showClose?($(),Te(a,{key:0,class:N([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:me(()=>[($(),Te(br(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),e.showClose&&e.clearIcon?($(),Te(a,{key:1,class:N([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:me(()=>[($(),Te(br(e.clearIcon)))]),_:1},8,["class","onClick"])):ke("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:me(()=>[G("div",cOe,[Be(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:me(()=>[Y(h,null,{default:me(()=>[kt(Y(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:N([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:me(()=>[e.showNewOption?($(),Te(u,{key:0,value:e.query,created:!0},null,8,["value"])):ke("v-if",!0),Be(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Vt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?($(),K(bt,{key:0},[e.$slots.empty?Be(e.$slots,"empty",{key:0}):($(),K("p",{key:1,class:N(e.nsSelect.be("dropdown","empty"))},rt(e.emptyText),3))],64)):ke("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var dOe=ot(lOe,[["render",uOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const pOe=ye({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=He("select"),r=F(!0),i=Xt(),n=F([]);cr(hZ,kr({...Fn(e)}));const o=_t(Y1);er(()=>{n.value=s(i.subTree)});const s=a=>{const c=[];return Array.isArray(a.children)&&a.children.forEach(u=>{var p;u.type&&u.type.name==="ElOption"&&u.component&&u.component.proxy?c.push(u.component.proxy):(p=u.children)!=null&&p.length&&c.push(...s(u))}),c},{groupQueryChange:l}=ei(o);return Ve(l,()=>{r.value=n.value.some(a=>a.visible===!0)},{flush:"post"}),{visible:r,ns:t}}});function hOe(e,t,r,i,n,o){return kt(($(),K("ul",{class:N(e.ns.be("group","wrap"))},[G("li",{class:N(e.ns.be("group","title"))},rt(e.label),3),G("li",null,[G("ul",{class:N(e.ns.b("group"))},[Be(e.$slots,"default")],2)])],2)),[[Vt,e.visible]])}var fZ=ot(pOe,[["render",hOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ig=lr(dOe,{Option:h4,OptionGroup:fZ}),hS=Hi(h4),fOe=Hi(fZ),f4=()=>_t(Yq,{}),mOe=ct({pageSize:{type:Number,required:!0},pageSizes:{type:Oe(Array),default:()=>Mi([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:Id}}),gOe=ye({name:"ElPaginationSizes"}),yOe=ye({...gOe,props:mOe,emits:["page-size-change"],setup(e,{emit:t}){const r=e,{t:i}=Hr(),n=He("pagination"),o=f4(),s=F(r.pageSize);Ve(()=>r.pageSizes,(c,u)=>{if(!yl(c,u)&&Array.isArray(c)){const p=c.includes(r.pageSize)?r.pageSize:r.pageSizes[0];t("page-size-change",p)}}),Ve(()=>r.pageSize,c=>{s.value=c});const l=O(()=>r.pageSizes);function a(c){var u;c!==s.value&&(s.value=c,(u=o.handleSizeChange)==null||u.call(o,Number(c)))}return(c,u)=>($(),K("span",{class:N(g(n).e("sizes"))},[Y(g(ig),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,"validate-event":!1,onChange:a},{default:me(()=>[($(!0),K(bt,null,or(g(l),p=>($(),Te(g(hS),{key:p,value:p,label:p+g(i)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var vOe=ot(yOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const bOe=ct({size:{type:String,values:Id}}),_Oe=["disabled"],wOe=ye({name:"ElPaginationJumper"}),xOe=ye({...wOe,props:bOe,setup(e){const{t}=Hr(),r=He("pagination"),{pageCount:i,disabled:n,currentPage:o,changeEvent:s}=f4(),l=F(),a=O(()=>{var p;return(p=l.value)!=null?p:o==null?void 0:o.value});function c(p){l.value=+p}function u(p){p=Math.trunc(+p),s==null||s(+p),l.value=void 0}return(p,h)=>($(),K("span",{class:N(g(r).e("jump")),disabled:g(n)},[G("span",{class:N([g(r).e("goto")])},rt(g(t)("el.pagination.goto")),3),Y(g(Qi),{size:p.size,class:N([g(r).e("editor"),g(r).is("in-pagination")]),min:1,max:g(i),disabled:g(n),"model-value":g(a),"validate-event":!1,type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value"]),G("span",{class:N([g(r).e("classifier")])},rt(g(t)("el.pagination.pageClassifier")),3)],10,_Oe))}});var COe=ot(xOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const kOe=ct({total:{type:Number,default:1e3}}),SOe=["disabled"],EOe=ye({name:"ElPaginationTotal"}),TOe=ye({...EOe,props:kOe,setup(e){const{t}=Hr(),r=He("pagination"),{disabled:i}=f4();return(n,o)=>($(),K("span",{class:N(g(r).e("total")),disabled:g(i)},rt(g(t)("el.pagination.total",{total:n.total})),11,SOe))}});var AOe=ot(TOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const MOe=ct({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),IOe=["onKeyup"],POe=["aria-current","tabindex"],$Oe=["tabindex"],OOe=["aria-current","tabindex"],LOe=["tabindex"],ROe=["aria-current","tabindex"],DOe=ye({name:"ElPaginationPager"}),NOe=ye({...DOe,props:MOe,emits:["change"],setup(e,{emit:t}){const r=e,i=He("pager"),n=He("icon"),o=F(!1),s=F(!1),l=F(!1),a=F(!1),c=F(!1),u=F(!1),p=O(()=>{const x=r.pagerCount,S=(x-1)/2,C=Number(r.currentPage),E=Number(r.pageCount);let T=!1,w=!1;E>x&&(C>x-S&&(T=!0),C<E-S&&(w=!0));const I=[];if(T&&!w){const M=E-(x-2);for(let L=M;L<E;L++)I.push(L)}else if(!T&&w)for(let M=2;M<x;M++)I.push(M);else if(T&&w){const M=Math.floor(x/2)-1;for(let L=C-M;L<=C+M;L++)I.push(L)}else for(let M=2;M<E;M++)I.push(M);return I}),h=O(()=>r.disabled?-1:0);Ds(()=>{const x=(r.pagerCount-1)/2;o.value=!1,s.value=!1,r.pageCount>r.pagerCount&&(r.currentPage>r.pagerCount-x&&(o.value=!0),r.currentPage<r.pageCount-x&&(s.value=!0))});function m(x=!1){r.disabled||(x?l.value=!0:a.value=!0)}function y(x=!1){x?c.value=!0:u.value=!0}function v(x){const S=x.target;if(S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("number")){const C=Number(S.textContent);C!==r.currentPage&&t("change",C)}else S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("more")&&_(x)}function _(x){const S=x.target;if(S.tagName.toLowerCase()==="ul"||r.disabled)return;let C=Number(S.textContent);const E=r.pageCount,T=r.currentPage,w=r.pagerCount-2;S.className.includes("more")&&(S.className.includes("quickprev")?C=T-w:S.className.includes("quicknext")&&(C=T+w)),Number.isNaN(+C)||(C<1&&(C=1),C>E&&(C=E)),C!==T&&t("change",C)}return(x,S)=>($(),K("ul",{class:N(g(i).b()),onClick:_,onKeyup:Lr(v,["enter"])},[x.pageCount>0?($(),K("li",{key:0,class:N([[g(i).is("active",x.currentPage===1),g(i).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,tabindex:g(h)}," 1 ",10,POe)):ke("v-if",!0),o.value?($(),K("li",{key:1,class:N(["more","btn-quickprev",g(n).b(),g(i).is("disabled",x.disabled)]),tabindex:g(h),onMouseenter:S[0]||(S[0]=C=>m(!0)),onMouseleave:S[1]||(S[1]=C=>l.value=!1),onFocus:S[2]||(S[2]=C=>y(!0)),onBlur:S[3]||(S[3]=C=>c.value=!1)},[(l.value||c.value)&&!x.disabled?($(),Te(g(Iv),{key:0})):($(),Te(g(Tz),{key:1}))],42,$Oe)):ke("v-if",!0),($(!0),K(bt,null,or(g(p),C=>($(),K("li",{key:C,class:N([[g(i).is("active",x.currentPage===C),g(i).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===C,tabindex:g(h)},rt(C),11,OOe))),128)),s.value?($(),K("li",{key:2,class:N(["more","btn-quicknext",g(n).b(),g(i).is("disabled",x.disabled)]),tabindex:g(h),onMouseenter:S[4]||(S[4]=C=>m()),onMouseleave:S[5]||(S[5]=C=>a.value=!1),onFocus:S[6]||(S[6]=C=>y()),onBlur:S[7]||(S[7]=C=>u.value=!1)},[(a.value||u.value)&&!x.disabled?($(),Te(g(Pv),{key:0})):($(),Te(g(Tz),{key:1}))],42,LOe)):ke("v-if",!0),x.pageCount>1?($(),K("li",{key:3,class:N([[g(i).is("active",x.currentPage===x.pageCount),g(i).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,tabindex:g(h)},rt(x.pageCount),11,ROe)):ke("v-if",!0)],42,IOe))}});var FOe=ot(NOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Go=e=>typeof e!="number",zOe=ct({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Gt(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Oe(Array),default:()=>Mi([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:yi,default:()=>kh},nextText:{type:String,default:""},nextIcon:{type:yi,default:()=>os},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),jOe={"update:current-page":e=>Gt(e),"update:page-size":e=>Gt(e),"size-change":e=>Gt(e),"current-change":e=>Gt(e),"prev-click":e=>Gt(e),"next-click":e=>Gt(e)},Vj="ElPagination";var VOe=ye({name:Vj,props:zOe,emits:jOe,setup(e,{emit:t,slots:r}){const{t:i}=Hr(),n=He("pagination"),o=Xt().vnode.props||{},s="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,l="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,a=O(()=>{if(Go(e.total)&&Go(e.pageCount)||!Go(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(Go(e.pageCount)){if(!Go(e.total)&&!Go(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),c=F(Go(e.defaultPageSize)?10:e.defaultPageSize),u=F(Go(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=O({get(){return Go(e.pageSize)?c.value:e.pageSize},set(C){Go(e.pageSize)&&(c.value=C),l&&(t("update:page-size",C),t("size-change",C))}}),h=O(()=>{let C=0;return Go(e.pageCount)?Go(e.total)||(C=Math.max(1,Math.ceil(e.total/p.value))):C=e.pageCount,C}),m=O({get(){return Go(e.currentPage)?u.value:e.currentPage},set(C){let E=C;C<1?E=1:C>h.value&&(E=h.value),Go(e.currentPage)&&(u.value=E),s&&(t("update:current-page",E),t("current-change",E))}});Ve(h,C=>{m.value>C&&(m.value=C)});function y(C){m.value=C}function v(C){p.value=C;const E=h.value;m.value>E&&(m.value=E)}function _(){e.disabled||(m.value-=1,t("prev-click",m.value))}function x(){e.disabled||(m.value+=1,t("next-click",m.value))}function S(C,E){C&&(C.props||(C.props={}),C.props.class=[C.props.class,E].join(" "))}return cr(Yq,{pageCount:h,disabled:O(()=>e.disabled),currentPage:m,changeEvent:y,handleSizeChange:v}),()=>{var C,E;if(!a.value)return i("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const T=[],w=[],I=Lt("div",{class:n.e("rightwrapper")},w),M={prev:Lt(G6e,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:_}),jumper:Lt(COe,{size:e.small?"small":"default"}),pager:Lt(FOe,{currentPage:m.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:Lt(J6e,{disabled:e.disabled,currentPage:m.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:x}),sizes:Lt(vOe,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(E=(C=r==null?void 0:r.default)==null?void 0:C.call(r))!=null?E:null,total:Lt(AOe,{total:Go(e.total)?0:e.total})},L=e.layout.split(",").map(W=>W.trim());let R=!1;return L.forEach(W=>{if(W==="->"){R=!0;return}R?w.push(M[W]):T.push(M[W])}),S(T[0],n.is("first")),S(T[T.length-1],n.is("last")),R&&w.length>0&&(S(w[0],n.is("first")),S(w[w.length-1],n.is("last")),T.push(I)),Lt("div",{role:"pagination","aria-label":"pagination",class:[n.b(),n.is("background",e.background),{[n.m("small")]:e.small}]},T)}}});const BOe=lr(VOe),UOe=ct({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:hP,default:"primary"},cancelButtonType:{type:String,values:hP,default:"text"},icon:{type:yi,default:()=>mwe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:Oe(Function)},onCancel:{type:Oe(Function)},teleported:ao.teleported,persistent:ao.persistent,width:{type:[String,Number],default:150}}),WOe=ye({name:"ElPopconfirm"}),HOe=ye({...WOe,props:UOe,setup(e){const t=e,{t:r}=Hr(),i=He("popconfirm"),n=F(),o=()=>{var p,h;(h=(p=n.value)==null?void 0:p.onClose)==null||h.call(p)},s=O(()=>({width:Tn(t.width)})),l=p=>{var h;(h=t.onConfirm)==null||h.call(t,p),o()},a=p=>{var h;(h=t.onCancel)==null||h.call(t,p),o()},c=O(()=>t.confirmButtonText||r("el.popconfirm.confirmButtonText")),u=O(()=>t.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(p,h)=>($(),Te(g(qs),sr({ref_key:"tooltipRef",ref:n,trigger:"click",effect:"light"},p.$attrs,{"popper-class":`${g(i).namespace.value}-popover`,"popper-style":g(s),teleported:p.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":p.hideAfter,persistent:p.persistent}),{content:me(()=>[G("div",{class:N(g(i).b())},[G("div",{class:N(g(i).e("main"))},[!p.hideIcon&&p.icon?($(),Te(g(At),{key:0,class:N(g(i).e("icon")),style:St({color:p.iconColor})},{default:me(()=>[($(),Te(br(p.icon)))]),_:1},8,["class","style"])):ke("v-if",!0),Ir(" "+rt(p.title),1)],2),G("div",{class:N(g(i).e("action"))},[Y(g(Rn),{size:"small",type:p.cancelButtonType==="text"?"":p.cancelButtonType,text:p.cancelButtonType==="text",onClick:a},{default:me(()=>[Ir(rt(g(u)),1)]),_:1},8,["type","text"]),Y(g(Rn),{size:"small",type:p.confirmButtonType==="text"?"":p.confirmButtonType,text:p.confirmButtonType==="text",onClick:l},{default:me(()=>[Ir(rt(g(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:me(()=>[p.$slots.reference?Be(p.$slots,"reference",{key:0}):ke("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var GOe=ot(HOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const qOe=lr(GOe),YOe=ct({trigger:jw.trigger,placement:EC.placement,disabled:jw.disabled,visible:ao.visible,transition:ao.transition,popperOptions:EC.popperOptions,tabindex:EC.tabindex,content:ao.content,popperStyle:ao.popperStyle,popperClass:ao.popperClass,enterable:{...ao.enterable,default:!0},effect:{...ao.effect,default:"light"},teleported:ao.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),KOe={"update:visible":e=>Ln(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},ZOe="onUpdate:visible",QOe=ye({name:"ElPopover"}),JOe=ye({...QOe,props:YOe,emits:KOe,setup(e,{expose:t,emit:r}){const i=e,n=O(()=>i[ZOe]),o=He("popover"),s=F(),l=O(()=>{var _;return(_=g(s))==null?void 0:_.popperRef}),a=O(()=>[{width:Tn(i.width)},i.popperStyle]),c=O(()=>[o.b(),i.popperClass,{[o.m("plain")]:!!i.content}]),u=O(()=>i.transition===`${o.namespace.value}-fade-in-linear`),p=()=>{var _;(_=s.value)==null||_.hide()},h=()=>{r("before-enter")},m=()=>{r("before-leave")},y=()=>{r("after-enter")},v=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:l,hide:p}),(_,x)=>($(),Te(g(qs),sr({ref_key:"tooltipRef",ref:s},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":g(c),"popper-style":g(a),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":g(u),"onUpdate:visible":g(n),onBeforeShow:h,onBeforeHide:m,onShow:y,onHide:v}),{content:me(()=>[_.title?($(),K("div",{key:0,class:N(g(o).e("title")),role:"title"},rt(_.title),3)):ke("v-if",!0),Be(_.$slots,"default",{},()=>[Ir(rt(_.content),1)])]),default:me(()=>[_.$slots.reference?Be(_.$slots,"reference",{key:0}):ke("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var XOe=ot(JOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Bj=(e,t)=>{const r=t.arg||t.value,i=r==null?void 0:r.popperRef;i&&(i.triggerRef=e)};var e5e={mounted(e,t){Bj(e,t)},updated(e,t){Bj(e,t)}};const t5e="popover",mZ=N1e(e5e,t5e),r5e=lr(XOe,{directive:mZ}),i5e=ct({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Oe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Oe([String,Array,Function]),default:""},format:{type:Oe(Function),default:e=>`${e}%`}}),n5e=["aria-valuenow"],o5e={viewBox:"0 0 100 100"},s5e=["d","stroke","stroke-width"],l5e=["d","stroke","opacity","stroke-linecap","stroke-width"],a5e={key:0},c5e=ye({name:"ElProgress"}),u5e=ye({...c5e,props:i5e,setup(e){const t=e,r={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},i=He("progress"),n=O(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:S(t.percentage)})),o=O(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=O(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),l=O(()=>{const C=s.value,E=t.type==="dashboard";return`
- M 50 50
- m 0 ${E?"":"-"}${C}
- a ${C} ${C} 0 1 1 0 ${E?"-":""}${C*2}
- a ${C} ${C} 0 1 1 0 ${E?"":"-"}${C*2}
- `}),a=O(()=>2*Math.PI*s.value),c=O(()=>t.type==="dashboard"?.75:1),u=O(()=>`${-1*a.value*(1-c.value)/2}px`),p=O(()=>({strokeDasharray:`${a.value*c.value}px, ${a.value}px`,strokeDashoffset:u.value})),h=O(()=>({strokeDasharray:`${a.value*c.value*(t.percentage/100)}px, ${a.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=O(()=>{let C;return t.color?C=S(t.percentage):C=r[t.status]||r.default,C}),y=O(()=>t.status==="warning"?c3:t.type==="line"?t.status==="success"?MR:Fh:t.status==="success"?U1:ia),v=O(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),_=O(()=>t.format(t.percentage));function x(C){const E=100/C.length;return C.map((w,I)=>Kt(w)?{color:w,percentage:(I+1)*E}:w).sort((w,I)=>w.percentage-I.percentage)}const S=C=>{var E;const{color:T}=t;if(qt(T))return T(C);if(Kt(T))return T;{const w=x(T);for(const I of w)if(I.percentage>C)return I.color;return(E=w[w.length-1])==null?void 0:E.color}};return(C,E)=>($(),K("div",{class:N([g(i).b(),g(i).m(C.type),g(i).is(C.status),{[g(i).m("without-text")]:!C.showText,[g(i).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[C.type==="line"?($(),K("div",{key:0,class:N(g(i).b("bar"))},[G("div",{class:N(g(i).be("bar","outer")),style:St({height:`${C.strokeWidth}px`})},[G("div",{class:N([g(i).be("bar","inner"),{[g(i).bem("bar","inner","indeterminate")]:C.indeterminate}]),style:St(g(n))},[(C.showText||C.$slots.default)&&C.textInside?($(),K("div",{key:0,class:N(g(i).be("bar","innerText"))},[Be(C.$slots,"default",{percentage:C.percentage},()=>[G("span",null,rt(g(_)),1)])],2)):ke("v-if",!0)],6)],6)],2)):($(),K("div",{key:1,class:N(g(i).b("circle")),style:St({height:`${C.width}px`,width:`${C.width}px`})},[($(),K("svg",o5e,[G("path",{class:N(g(i).be("circle","track")),d:g(l),stroke:`var(${g(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":g(o),fill:"none",style:St(g(p))},null,14,s5e),G("path",{class:N(g(i).be("circle","path")),d:g(l),stroke:g(m),fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":g(o),style:St(g(h))},null,14,l5e)]))],6)),(C.showText||C.$slots.default)&&!C.textInside?($(),K("div",{key:2,class:N(g(i).e("text")),style:St({fontSize:`${g(v)}px`})},[Be(C.$slots,"default",{percentage:C.percentage},()=>[C.status?($(),Te(g(At),{key:1},{default:me(()=>[($(),Te(br(g(y))))]),_:1})):($(),K("span",a5e,rt(g(_)),1))])],6)):ke("v-if",!0)],10,n5e))}});var d5e=ot(u5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const gZ=lr(d5e),p5e=ct({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Oe([Array,Object]),default:()=>Mi(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Oe([Array,Object]),default:()=>[Xx,Xx,Xx]},voidIcon:{type:yi,default:()=>a1e},disabledVoidIcon:{type:yi,default:()=>Xx},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:Oe(Array),default:()=>Mi(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:m0},label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),h5e={[_i]:e=>Gt(e),[ar]:e=>Gt(e)},f5e=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],m5e=["onMousemove","onClick"],g5e=ye({name:"ElRate"}),y5e=ye({...g5e,props:p5e,emits:h5e,setup(e,{expose:t,emit:r}){const i=e;function n(Q,B){const V=ce=>yr(ce),H=Object.keys(B).map(ce=>+ce).filter(ce=>{const re=B[ce];return(V(re)?re.excluded:!1)?Q<ce:Q<=ce}).sort((ce,re)=>ce-re),ee=B[H[0]];return V(ee)&&ee.value||ee}const o=_t(kg,void 0),s=_t(su,void 0),l=An(),a=He("rate"),{inputId:c,isLabeledByFormItem:u}=jh(i,{formItemContext:s}),p=F(i.modelValue),h=F(-1),m=F(!0),y=O(()=>[a.b(),a.m(l.value)]),v=O(()=>i.disabled||(o==null?void 0:o.disabled)),_=O(()=>a.cssVarBlock({"void-color":i.voidColor,"disabled-void-color":i.disabledVoidColor,"fill-color":E.value})),x=O(()=>{let Q="";return i.showScore?Q=i.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${i.modelValue}`:`${p.value}`):i.showText&&(Q=i.texts[Math.ceil(p.value)-1]),Q}),S=O(()=>i.modelValue*100-Math.floor(i.modelValue)*100),C=O(()=>wt(i.colors)?{[i.lowThreshold]:i.colors[0],[i.highThreshold]:{value:i.colors[1],excluded:!0},[i.max]:i.colors[2]}:i.colors),E=O(()=>{const Q=n(p.value,C.value);return yr(Q)?"":Q}),T=O(()=>{let Q="";return v.value?Q=`${S.value}%`:i.allowHalf&&(Q="50%"),{color:E.value,width:Q}}),w=O(()=>{let Q=wt(i.icons)?[...i.icons]:{...i.icons};return Q=Fm(Q),wt(Q)?{[i.lowThreshold]:Q[0],[i.highThreshold]:{value:Q[1],excluded:!0},[i.max]:Q[2]}:Q}),I=O(()=>n(i.modelValue,w.value)),M=O(()=>v.value?Kt(i.disabledVoidIcon)?i.disabledVoidIcon:Fm(i.disabledVoidIcon):Kt(i.voidIcon)?i.voidIcon:Fm(i.voidIcon)),L=O(()=>n(p.value,w.value));function R(Q){const B=v.value&&S.value>0&&Q-1<i.modelValue&&Q>i.modelValue,V=i.allowHalf&&m.value&&Q-.5<=p.value&&Q>p.value;return B||V}function W(Q){i.clearable&&Q===i.modelValue&&(Q=0),r(ar,Q),i.modelValue!==Q&&r("change",Q)}function z(Q){v.value||(i.allowHalf&&m.value?W(p.value):W(Q))}function j(Q){if(v.value)return;let B=p.value;const V=Q.code;return V===Rt.up||V===Rt.right?(i.allowHalf?B+=.5:B+=1,Q.stopPropagation(),Q.preventDefault()):(V===Rt.left||V===Rt.down)&&(i.allowHalf?B-=.5:B-=1,Q.stopPropagation(),Q.preventDefault()),B=B<0?0:B,B=B>i.max?i.max:B,r(ar,B),r("change",B),B}function U(Q,B){if(!v.value){if(i.allowHalf){let V=B.target;tc(V,a.e("item"))&&(V=V.querySelector(`.${a.e("icon")}`)),(V.clientWidth===0||tc(V,a.e("decimal")))&&(V=V.parentNode),m.value=B.offsetX*2<=V.clientWidth,p.value=m.value?Q-.5:Q}else p.value=Q;h.value=Q}}function Z(){v.value||(i.allowHalf&&(m.value=i.modelValue!==Math.floor(i.modelValue)),p.value=i.modelValue,h.value=-1)}return Ve(()=>i.modelValue,Q=>{p.value=Q,m.value=i.modelValue!==Math.floor(i.modelValue)}),i.modelValue||r(ar,0),t({setCurrentValue:U,resetCurrentValue:Z}),(Q,B)=>{var V;return $(),K("div",{id:g(c),class:N([g(y),g(a).is("disabled",g(v))]),role:"slider","aria-label":g(u)?void 0:Q.label||"rating","aria-labelledby":g(u)?(V=g(s))==null?void 0:V.labelId:void 0,"aria-valuenow":p.value,"aria-valuetext":g(x)||void 0,"aria-valuemin":"0","aria-valuemax":Q.max,tabindex:"0",style:St(g(_)),onKeydown:j},[($(!0),K(bt,null,or(Q.max,(H,ee)=>($(),K("span",{key:ee,class:N(g(a).e("item")),onMousemove:ce=>U(H,ce),onMouseleave:Z,onClick:ce=>z(H)},[Y(g(At),{class:N([g(a).e("icon"),{hover:h.value===H},g(a).is("active",H<=p.value)])},{default:me(()=>[R(H)?ke("v-if",!0):($(),K(bt,{key:0},[kt(($(),Te(br(g(L)),null,null,512)),[[Vt,H<=p.value]]),kt(($(),Te(br(g(M)),null,null,512)),[[Vt,!(H<=p.value)]])],64)),R(H)?($(),Te(g(At),{key:1,style:St(g(T)),class:N([g(a).e("icon"),g(a).e("decimal")])},{default:me(()=>[($(),Te(br(g(I))))]),_:1},8,["style","class"])):ke("v-if",!0)]),_:2},1032,["class"])],42,m5e))),128)),Q.showText||Q.showScore?($(),K("span",{key:0,class:N(g(a).e("text"))},rt(g(x)),3)):ke("v-if",!0)],46,f5e)}}});var v5e=ot(y5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const b5e=lr(v5e),jy={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Uj={[jy.success]:ube,[jy.warning]:c3,[jy.error]:IR,[jy.info]:$R},_5e=ct({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),w5e=ye({name:"ElResult"}),x5e=ye({...w5e,props:_5e,setup(e){const t=e,r=He("result"),i=O(()=>{const n=t.icon,o=n&&jy[n]?jy[n]:"icon-info",s=Uj[o]||Uj["icon-info"];return{class:o,component:s}});return(n,o)=>($(),K("div",{class:N(g(r).b())},[G("div",{class:N(g(r).e("icon"))},[Be(n.$slots,"icon",{},()=>[g(i).component?($(),Te(br(g(i).component),{key:0,class:N(g(i).class)},null,8,["class"])):ke("v-if",!0)])],2),n.title||n.$slots.title?($(),K("div",{key:0,class:N(g(r).e("title"))},[Be(n.$slots,"title",{},()=>[G("p",null,rt(n.title),1)])],2)):ke("v-if",!0),n.subTitle||n.$slots["sub-title"]?($(),K("div",{key:1,class:N(g(r).e("subtitle"))},[Be(n.$slots,"sub-title",{},()=>[G("p",null,rt(n.subTitle),1)])],2)):ke("v-if",!0),n.$slots.extra?($(),K("div",{key:2,class:N(g(r).e("extra"))},[Be(n.$slots,"extra")],2)):ke("v-if",!0)],2))}});var C5e=ot(x5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const k5e=lr(C5e),S5e=["start","center","end","space-around","space-between","space-evenly"],E5e=["top","middle","bottom"],T5e=ct({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:S5e,default:"start"},align:{type:String,values:E5e,default:"top"}}),A5e=ye({name:"ElRow"}),M5e=ye({...A5e,props:T5e,setup(e){const t=e,r=He("row"),i=O(()=>t.gutter);cr(Zq,{gutter:i});const n=O(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),o=O(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(s,l)=>($(),Te(br(s.tag),{class:N(g(o)),style:St(g(n))},{default:me(()=>[Be(s.$slots,"default")]),_:3},8,["class","style"]))}});var I5e=ot(M5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const P5e=lr(I5e);var Wj=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function $5e(e,t){return!!(e===t||Wj(e)&&Wj(t))}function O5e(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!$5e(e[r],t[r]))return!1;return!0}function L5e(e,t){t===void 0&&(t=O5e);var r=null;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var s=e.apply(this,n);return r={lastResult:s,lastArgs:n,lastThis:this},s}return i.clear=function(){r=null},i}const yZ=()=>{const t=Xt().proxy.$props;return O(()=>{const r=(i,n,o)=>({});return t.perfMode?n3(r):L5e(r)})},VP=50,fS="itemRendered",mS="scroll",Vy="forward",gS="backward",Yl="auto",E3="smart",Uw="start",Qc="center",Ww="end",Fv="horizontal",m4="vertical",R5e="ltr",ov="rtl",Hw="negative",g4="positive-ascending",y4="positive-descending",D5e={[Fv]:"left",[m4]:"top"},N5e=20,F5e={[Fv]:"deltaX",[m4]:"deltaY"},z5e=({atEndEdge:e,atStartEdge:t,layout:r},i)=>{let n,o=0;const s=a=>a<0&&t.value||a>0&&e.value;return{hasReachedEdge:s,onWheel:a=>{p3(n);const c=a[F5e[r.value]];s(o)&&s(o+c)||(o+=c,LR()||a.preventDefault(),n=Dw(()=>{i(o),o=0}))}}},BP=gc({type:Oe([Number,Function]),required:!0}),UP=gc({type:Number}),WP=gc({type:Number,default:2}),j5e=gc({type:String,values:["ltr","rtl"],default:"ltr"}),HP=gc({type:Number,default:0}),yS=gc({type:Number,required:!0}),vZ=gc({type:String,values:["horizontal","vertical"],default:m4}),bZ=ct({className:{type:String,default:""},containerElement:{type:Oe([String,Object]),default:"div"},data:{type:Oe(Array),default:()=>Mi([])},direction:j5e,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Oe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),_Z=ct({cache:WP,estimatedItemSize:UP,layout:vZ,initScrollOffset:HP,total:yS,itemSize:BP,...bZ}),GP={type:Number,default:6},wZ={type:Number,default:0},xZ={type:Number,default:2},Bm=ct({columnCache:WP,columnWidth:BP,estimatedColumnWidth:UP,estimatedRowHeight:UP,initScrollLeft:HP,initScrollTop:HP,itemKey:{type:Oe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:WP,rowHeight:BP,totalColumn:yS,totalRow:yS,hScrollbarSize:GP,vScrollbarSize:GP,scrollbarStartGap:wZ,scrollbarEndGap:xZ,...bZ}),CZ=ct({alwaysOn:Boolean,class:String,layout:vZ,total:yS,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:GP,startGap:wZ,endGap:xZ,visible:Boolean}),_m=(e,t)=>e<t?Vy:gS,Gw=e=>e===R5e||e===ov||e===Fv,Hj=e=>e===ov;let jg=null;function vS(e=!1){if(jg===null||e){const t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const i=document.createElement("div"),n=i.style;return n.width="100px",n.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?jg=y4:(t.scrollLeft=1,t.scrollLeft===0?jg=Hw:jg=g4),document.body.removeChild(t),jg}return jg}function V5e({move:e,size:t,bar:r},i){const n={},o=`translate${r.axis}(${e}px)`;return n[r.size]=t,n.transform=o,n.msTransform=o,n.webkitTransform=o,i==="horizontal"?n.height="100%":n.width="100%",n}const qP=ye({name:"ElVirtualScrollBar",props:CZ,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const r=O(()=>e.startGap+e.endGap),i=He("virtual-scrollbar"),n=He("scrollbar"),o=F(),s=F();let l=null,a=null;const c=kr({isDragging:!1,traveled:0}),u=O(()=>bY[e.layout]),p=O(()=>e.clientSize-g(r)),h=O(()=>({position:"absolute",width:`${Fv===e.layout?p.value:e.scrollbarSize}px`,height:`${Fv===e.layout?e.scrollbarSize:p.value}px`,[D5e[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),m=O(()=>{const w=e.ratio,I=e.clientSize;if(w>=100)return Number.POSITIVE_INFINITY;if(w>=50)return w*I/100;const M=I/3;return Math.floor(Math.min(Math.max(w*I,N5e),M))}),y=O(()=>{if(!Number.isFinite(m.value))return{display:"none"};const w=`${m.value}px`;return V5e({bar:u.value,size:w,move:c.traveled},e.layout)}),v=O(()=>Math.floor(e.clientSize-m.value-g(r))),_=()=>{window.addEventListener("mousemove",E),window.addEventListener("mouseup",C);const w=g(s);!w||(a=document.onselectstart,document.onselectstart=()=>!1,w.addEventListener("touchmove",E),w.addEventListener("touchend",C))},x=()=>{window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",C),document.onselectstart=a,a=null;const w=g(s);!w||(w.removeEventListener("touchmove",E),w.removeEventListener("touchend",C))},S=w=>{w.stopImmediatePropagation(),!(w.ctrlKey||[1,2].includes(w.button))&&(c.isDragging=!0,c[u.value.axis]=w.currentTarget[u.value.offset]-(w[u.value.client]-w.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),_())},C=()=>{c.isDragging=!1,c[u.value.axis]=0,t("stop-move"),x()},E=w=>{const{isDragging:I}=c;if(!I||!s.value||!o.value)return;const M=c[u.value.axis];if(!M)return;p3(l);const L=(o.value.getBoundingClientRect()[u.value.direction]-w[u.value.client])*-1,R=s.value[u.value.offset]-M,W=L-R;l=Dw(()=>{c.traveled=Math.max(e.startGap,Math.min(W,v.value)),t("scroll",W,v.value)})},T=w=>{const I=Math.abs(w.target.getBoundingClientRect()[u.value.direction]-w[u.value.client]),M=s.value[u.value.offset]/2,L=I-M;c.traveled=Math.max(0,Math.min(L,v.value)),t("scroll",L,v.value)};return Ve(()=>e.scrollFrom,w=>{c.isDragging||(c.traveled=Math.ceil(w*v.value))}),Ii(()=>{x()}),()=>Lt("div",{role:"presentation",ref:o,class:[i.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Yt(T,["stop","prevent"]),onTouchstartPrevent:S},Lt("div",{ref:s,class:n.e("thumb"),style:y.value,onMousedown:S},[]))}}),kZ=({name:e,getOffset:t,getItemSize:r,getItemOffset:i,getEstimatedTotalSize:n,getStartIndexForOffset:o,getStopIndexForStartIndex:s,initCache:l,clearCache:a,validateProps:c})=>ye({name:e!=null?e:"ElVirtualList",props:_Z,emits:[fS,mS],setup(u,{emit:p,expose:h}){c(u);const m=Xt(),y=He("vl"),v=F(l(u,m)),_=yZ(),x=F(),S=F(),C=F(),E=F({isScrolling:!1,scrollDir:"forward",scrollOffset:Gt(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),T=O(()=>{const{total:fe,cache:Ne}=u,{isScrolling:de,scrollDir:_e,scrollOffset:ae}=g(E);if(fe===0)return[0,0,0,0];const X=o(u,ae,g(v)),he=s(u,X,ae,g(v)),$e=!de||_e===gS?Math.max(1,Ne):1,Je=!de||_e===Vy?Math.max(1,Ne):1;return[Math.max(0,X-$e),Math.max(0,Math.min(fe-1,he+Je)),X,he]}),w=O(()=>n(u,g(v))),I=O(()=>Gw(u.layout)),M=O(()=>[{position:"relative",[`overflow-${I.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:Gt(u.height)?`${u.height}px`:u.height,width:Gt(u.width)?`${u.width}px`:u.width},u.style]),L=O(()=>{const fe=g(w),Ne=g(I);return{height:Ne?"100%":`${fe}px`,pointerEvents:g(E).isScrolling?"none":void 0,width:Ne?`${fe}px`:"100%"}}),R=O(()=>I.value?u.width:u.height),{onWheel:W}=z5e({atStartEdge:O(()=>E.value.scrollOffset<=0),atEndEdge:O(()=>E.value.scrollOffset>=w.value),layout:O(()=>u.layout)},fe=>{var Ne,de;(de=(Ne=C.value).onMouseUp)==null||de.call(Ne),B(Math.min(E.value.scrollOffset+fe,w.value-R.value))}),z=()=>{const{total:fe}=u;if(fe>0){const[ae,X,he,$e]=g(T);p(fS,ae,X,he,$e)}const{scrollDir:Ne,scrollOffset:de,updateRequested:_e}=g(E);p(mS,Ne,de,_e)},j=fe=>{const{clientHeight:Ne,scrollHeight:de,scrollTop:_e}=fe.currentTarget,ae=g(E);if(ae.scrollOffset===_e)return;const X=Math.max(0,Math.min(_e,de-Ne));E.value={...ae,isScrolling:!0,scrollDir:_m(ae.scrollOffset,X),scrollOffset:X,updateRequested:!1},Ct(ee)},U=fe=>{const{clientWidth:Ne,scrollLeft:de,scrollWidth:_e}=fe.currentTarget,ae=g(E);if(ae.scrollOffset===de)return;const{direction:X}=u;let he=de;if(X===ov)switch(vS()){case Hw:{he=-de;break}case y4:{he=_e-Ne-de;break}}he=Math.max(0,Math.min(he,_e-Ne)),E.value={...ae,isScrolling:!0,scrollDir:_m(ae.scrollOffset,he),scrollOffset:he,updateRequested:!1},Ct(ee)},Z=fe=>{g(I)?U(fe):j(fe),z()},Q=(fe,Ne)=>{const de=(w.value-R.value)/Ne*fe;B(Math.min(w.value-R.value,de))},B=fe=>{fe=Math.max(fe,0),fe!==g(E).scrollOffset&&(E.value={...g(E),scrollOffset:fe,scrollDir:_m(g(E).scrollOffset,fe),updateRequested:!0},Ct(ee))},V=(fe,Ne=Yl)=>{const{scrollOffset:de}=g(E);fe=Math.max(0,Math.min(fe,u.total-1)),B(t(u,fe,Ne,de,g(v)))},H=fe=>{const{direction:Ne,itemSize:de,layout:_e}=u,ae=_.value(a&&de,a&&_e,a&&Ne);let X;if(Mr(ae,String(fe)))X=ae[fe];else{const he=i(u,fe,g(v)),$e=r(u,fe,g(v)),Je=g(I),ne=Ne===ov,pe=Je?he:0;ae[fe]=X={position:"absolute",left:ne?void 0:`${pe}px`,right:ne?`${pe}px`:void 0,top:Je?0:`${he}px`,height:Je?"100%":`${$e}px`,width:Je?`${$e}px`:"100%"}}return X},ee=()=>{E.value.isScrolling=!1,Ct(()=>{_.value(-1,null,null)})},ce=()=>{const fe=x.value;fe&&(fe.scrollTop=0)};er(()=>{if(!Rr)return;const{initScrollOffset:fe}=u,Ne=g(x);Gt(fe)&&Ne&&(g(I)?Ne.scrollLeft=fe:Ne.scrollTop=fe),z()}),Td(()=>{const{direction:fe,layout:Ne}=u,{scrollOffset:de,updateRequested:_e}=g(E),ae=g(x);if(_e&&ae)if(Ne===Fv)if(fe===ov)switch(vS()){case Hw:{ae.scrollLeft=-de;break}case g4:{ae.scrollLeft=de;break}default:{const{clientWidth:X,scrollWidth:he}=ae;ae.scrollLeft=he-X-de;break}}else ae.scrollLeft=de;else ae.scrollTop=de});const re={ns:y,clientSize:R,estimatedTotalSize:w,windowStyle:M,windowRef:x,innerRef:S,innerStyle:L,itemsToRender:T,scrollbarRef:C,states:E,getItemStyle:H,onScroll:Z,onScrollbarScroll:Q,onWheel:W,scrollTo:B,scrollToItem:V,resetScrollTop:ce};return h({windowRef:x,innerRef:S,getItemStyleCache:_,scrollTo:B,scrollToItem:V,resetScrollTop:ce,states:E}),re},render(u){var p;const{$slots:h,className:m,clientSize:y,containerElement:v,data:_,getItemStyle:x,innerElement:S,itemsToRender:C,innerStyle:E,layout:T,total:w,onScroll:I,onScrollbarScroll:M,onWheel:L,states:R,useIsScrolling:W,windowStyle:z,ns:j}=u,[U,Z]=C,Q=br(v),B=br(S),V=[];if(w>0)for(let re=U;re<=Z;re++)V.push((p=h.default)==null?void 0:p.call(h,{data:_,key:re,index:re,isScrolling:W?R.isScrolling:void 0,style:x(re)}));const H=[Lt(B,{style:E,ref:"innerRef"},Kt(B)?V:{default:()=>V})],ee=Lt(qP,{ref:"scrollbarRef",clientSize:y,layout:T,onScroll:M,ratio:y*100/this.estimatedTotalSize,scrollFrom:R.scrollOffset/(this.estimatedTotalSize-y),total:w}),ce=Lt(Q,{class:[j.e("window"),m],style:z,onScroll:I,onWheel:L,ref:"windowRef",key:0},Kt(Q)?[H]:{default:()=>[H]});return Lt("div",{key:0,class:[j.e("wrapper"),R.scrollbarAlwaysOn?"always-on":""]},[ce,ee])}}),SZ=kZ({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:r,layout:i,width:n},o,s,l)=>{const a=Gw(i)?n:e,c=Math.max(0,t*r-a),u=Math.min(c,o*r),p=Math.max(0,(o+1)*r-a);switch(s===E3&&(l>=p-a&&l<=u+a?s=Yl:s=Qc),s){case Uw:return u;case Ww:return p;case Qc:{const h=Math.round(p+(u-p)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h}case Yl:default:return l>=p&&l<=u?l:l<p?p:u}},getStartIndexForOffset:({total:e,itemSize:t},r)=>Math.max(0,Math.min(e-1,Math.floor(r/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:r,layout:i,width:n},o,s)=>{const l=o*r,a=Gw(i)?n:e,c=Math.ceil((a+s-l)/r);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),By=(e,t,r)=>{const{itemSize:i}=e,{items:n,lastVisitedIndex:o}=r;if(t>o){let s=0;if(o>=0){const l=n[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const a=i(l);n[l]={offset:s,size:a},s+=a}r.lastVisitedIndex=t}return n[t]},B5e=(e,t,r)=>{const{items:i,lastVisitedIndex:n}=t;return(n>0?i[n].offset:0)>=r?EZ(e,t,0,n,r):U5e(e,t,Math.max(0,n),r)},EZ=(e,t,r,i,n)=>{for(;r<=i;){const o=r+Math.floor((i-r)/2),s=By(e,o,t).offset;if(s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return Math.max(0,r-1)},U5e=(e,t,r,i)=>{const{total:n}=e;let o=1;for(;r<n&&By(e,r,t).offset<i;)r+=o,o*=2;return EZ(e,t,Math.floor(r/2),Math.min(r,n-1),i)},Gj=({total:e},{items:t,estimatedItemSize:r,lastVisitedIndex:i})=>{let n=0;if(i>=e&&(i=e-1),i>=0){const l=t[i];n=l.offset+l.size}const s=(e-i-1)*r;return n+s},W5e=kZ({name:"ElDynamicSizeList",getItemOffset:(e,t,r)=>By(e,t,r).offset,getItemSize:(e,t,{items:r})=>r[t].size,getEstimatedTotalSize:Gj,getOffset:(e,t,r,i,n)=>{const{height:o,layout:s,width:l}=e,a=Gw(s)?l:o,c=By(e,t,n),u=Gj(e,n),p=Math.max(0,Math.min(u-a,c.offset)),h=Math.max(0,c.offset-a+c.size);switch(r===E3&&(i>=h-a&&i<=p+a?r=Yl:r=Qc),r){case Uw:return p;case Ww:return h;case Qc:return Math.round(h+(p-h)/2);case Yl:default:return i>=h&&i<=p?i:i<h?h:p}},getStartIndexForOffset:(e,t,r)=>B5e(e,r,t),getStopIndexForStartIndex:(e,t,r,i)=>{const{height:n,total:o,layout:s,width:l}=e,a=Gw(s)?l:n,c=By(e,t,i),u=r+a;let p=c.offset+c.size,h=t;for(;h<o-1&&p<u;)h++,p+=By(e,h,i).size;return h},initCache({estimatedItemSize:e=VP},t){const r={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return r.clearCacheAfterIndex=(i,n=!0)=>{var o,s;r.lastVisitedIndex=Math.min(r.lastVisitedIndex,i-1),(o=t.exposed)==null||o.getItemStyleCache(-1),n&&((s=t.proxy)==null||s.$forceUpdate())},r},clearCache:!1,validateProps:({itemSize:e})=>{}}),H5e=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:r,atYStartEdge:i},n)=>{let o=null,s=0,l=0;const a=(u,p)=>{const h=u<0&&t.value||u>0&&e.value,m=p<0&&i.value||p>0&&r.value;return h&&m};return{hasReachedEdge:a,onWheel:u=>{p3(o);let p=u.deltaX,h=u.deltaY;Math.abs(p)>Math.abs(h)?h=0:p=0,u.shiftKey&&h!==0&&(p=h,h=0),!(a(s,l)&&a(s+p,l+h))&&(s+=p,l+=h,LR()||u.preventDefault(),o=Dw(()=>{n(s,l),s=0,l=0}))}}},TZ=({name:e,clearCache:t,getColumnPosition:r,getColumnStartIndexForOffset:i,getColumnStopIndexForStartIndex:n,getEstimatedTotalHeight:o,getEstimatedTotalWidth:s,getColumnOffset:l,getRowOffset:a,getRowPosition:c,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:p,initCache:h,injectToInstance:m,validateProps:y})=>ye({name:e!=null?e:"ElVirtualList",props:Bm,emits:[fS,mS],setup(v,{emit:_,expose:x,slots:S}){const C=He("vl");y(v);const E=Xt(),T=F(h(v,E));m==null||m(E,T);const w=F(),I=F(),M=F(),L=F(null),R=F({isScrolling:!1,scrollLeft:Gt(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Gt(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Vy,yAxisScrollDir:Vy}),W=yZ(),z=O(()=>Number.parseInt(`${v.height}`,10)),j=O(()=>Number.parseInt(`${v.width}`,10)),U=O(()=>{const{totalColumn:be,totalRow:Qe,columnCache:Fe}=v,{isScrolling:Me,xAxisScrollDir:Ie,scrollLeft:Pe}=g(R);if(be===0||Qe===0)return[0,0,0,0];const Xe=i(v,Pe,g(T)),dt=n(v,Xe,Pe,g(T)),gt=!Me||Ie===gS?Math.max(1,Fe):1,Dt=!Me||Ie===Vy?Math.max(1,Fe):1;return[Math.max(0,Xe-gt),Math.max(0,Math.min(be-1,dt+Dt)),Xe,dt]}),Z=O(()=>{const{totalColumn:be,totalRow:Qe,rowCache:Fe}=v,{isScrolling:Me,yAxisScrollDir:Ie,scrollTop:Pe}=g(R);if(be===0||Qe===0)return[0,0,0,0];const Xe=u(v,Pe,g(T)),dt=p(v,Xe,Pe,g(T)),gt=!Me||Ie===gS?Math.max(1,Fe):1,Dt=!Me||Ie===Vy?Math.max(1,Fe):1;return[Math.max(0,Xe-gt),Math.max(0,Math.min(Qe-1,dt+Dt)),Xe,dt]}),Q=O(()=>o(v,g(T))),B=O(()=>s(v,g(T))),V=O(()=>{var be;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Gt(v.height)?`${v.height}px`:v.height,width:Gt(v.width)?`${v.width}px`:v.width},(be=v.style)!=null?be:{}]}),H=O(()=>{const be=`${g(B)}px`;return{height:`${g(Q)}px`,pointerEvents:g(R).isScrolling?"none":void 0,width:be}}),ee=()=>{const{totalColumn:be,totalRow:Qe}=v;if(be>0&&Qe>0){const[dt,gt,Dt,Jt]=g(U),[Bt,Le,st,It]=g(Z);_(fS,{columnCacheStart:dt,columnCacheEnd:gt,rowCacheStart:Bt,rowCacheEnd:Le,columnVisibleStart:Dt,columnVisibleEnd:Jt,rowVisibleStart:st,rowVisibleEnd:It})}const{scrollLeft:Fe,scrollTop:Me,updateRequested:Ie,xAxisScrollDir:Pe,yAxisScrollDir:Xe}=g(R);_(mS,{xAxisScrollDir:Pe,scrollLeft:Fe,yAxisScrollDir:Xe,scrollTop:Me,updateRequested:Ie})},ce=be=>{const{clientHeight:Qe,clientWidth:Fe,scrollHeight:Me,scrollLeft:Ie,scrollTop:Pe,scrollWidth:Xe}=be.currentTarget,dt=g(R);if(dt.scrollTop===Pe&&dt.scrollLeft===Ie)return;let gt=Ie;if(Hj(v.direction))switch(vS()){case Hw:gt=-Ie;break;case y4:gt=Xe-Fe-Ie;break}R.value={...dt,isScrolling:!0,scrollLeft:gt,scrollTop:Math.max(0,Math.min(Pe,Me-Qe)),updateRequested:!0,xAxisScrollDir:_m(dt.scrollLeft,gt),yAxisScrollDir:_m(dt.scrollTop,Pe)},Ct(()=>X()),he(),ee()},re=(be,Qe)=>{const Fe=g(z),Me=(Q.value-Fe)/Qe*be;de({scrollTop:Math.min(Q.value-Fe,Me)})},fe=(be,Qe)=>{const Fe=g(j),Me=(B.value-Fe)/Qe*be;de({scrollLeft:Math.min(B.value-Fe,Me)})},{onWheel:Ne}=H5e({atXStartEdge:O(()=>R.value.scrollLeft<=0),atXEndEdge:O(()=>R.value.scrollLeft>=B.value),atYStartEdge:O(()=>R.value.scrollTop<=0),atYEndEdge:O(()=>R.value.scrollTop>=Q.value)},(be,Qe)=>{var Fe,Me,Ie,Pe;(Me=(Fe=I.value)==null?void 0:Fe.onMouseUp)==null||Me.call(Fe),(Pe=(Ie=I.value)==null?void 0:Ie.onMouseUp)==null||Pe.call(Ie);const Xe=g(j),dt=g(z);de({scrollLeft:Math.min(R.value.scrollLeft+be,B.value-Xe),scrollTop:Math.min(R.value.scrollTop+Qe,Q.value-dt)})}),de=({scrollLeft:be=R.value.scrollLeft,scrollTop:Qe=R.value.scrollTop})=>{be=Math.max(be,0),Qe=Math.max(Qe,0);const Fe=g(R);Qe===Fe.scrollTop&&be===Fe.scrollLeft||(R.value={...Fe,xAxisScrollDir:_m(Fe.scrollLeft,be),yAxisScrollDir:_m(Fe.scrollTop,Qe),scrollLeft:be,scrollTop:Qe,updateRequested:!0},Ct(()=>X()),he(),ee())},_e=(be=0,Qe=0,Fe=Yl)=>{const Me=g(R);Qe=Math.max(0,Math.min(Qe,v.totalColumn-1)),be=Math.max(0,Math.min(be,v.totalRow-1));const Ie=Iq(C.namespace.value),Pe=g(T),Xe=o(v,Pe),dt=s(v,Pe);de({scrollLeft:l(v,Qe,Fe,Me.scrollLeft,Pe,dt>v.width?Ie:0),scrollTop:a(v,be,Fe,Me.scrollTop,Pe,Xe>v.height?Ie:0)})},ae=(be,Qe)=>{const{columnWidth:Fe,direction:Me,rowHeight:Ie}=v,Pe=W.value(t&&Fe,t&&Ie,t&&Me),Xe=`${be},${Qe}`;if(Mr(Pe,Xe))return Pe[Xe];{const[,dt]=r(v,Qe,g(T)),gt=g(T),Dt=Hj(Me),[Jt,Bt]=c(v,be,gt),[Le]=r(v,Qe,gt);return Pe[Xe]={position:"absolute",left:Dt?void 0:`${dt}px`,right:Dt?`${dt}px`:void 0,top:`${Bt}px`,height:`${Jt}px`,width:`${Le}px`},Pe[Xe]}},X=()=>{R.value.isScrolling=!1,Ct(()=>{W.value(-1,null,null)})};er(()=>{if(!Rr)return;const{initScrollLeft:be,initScrollTop:Qe}=v,Fe=g(w);Fe&&(Gt(be)&&(Fe.scrollLeft=be),Gt(Qe)&&(Fe.scrollTop=Qe)),ee()});const he=()=>{const{direction:be}=v,{scrollLeft:Qe,scrollTop:Fe,updateRequested:Me}=g(R),Ie=g(w);if(Me&&Ie){if(be===ov)switch(vS()){case Hw:{Ie.scrollLeft=-Qe;break}case g4:{Ie.scrollLeft=Qe;break}default:{const{clientWidth:Pe,scrollWidth:Xe}=Ie;Ie.scrollLeft=Xe-Pe-Qe;break}}else Ie.scrollLeft=Math.max(0,Qe);Ie.scrollTop=Math.max(0,Fe)}},{resetAfterColumnIndex:$e,resetAfterRowIndex:Je,resetAfter:ne}=E.proxy;x({windowRef:w,innerRef:L,getItemStyleCache:W,scrollTo:de,scrollToItem:_e,states:R,resetAfterColumnIndex:$e,resetAfterRowIndex:Je,resetAfter:ne});const pe=()=>{const{scrollbarAlwaysOn:be,scrollbarStartGap:Qe,scrollbarEndGap:Fe,totalColumn:Me,totalRow:Ie}=v,Pe=g(j),Xe=g(z),dt=g(B),gt=g(Q),{scrollLeft:Dt,scrollTop:Jt}=g(R),Bt=Lt(qP,{ref:I,alwaysOn:be,startGap:Qe,endGap:Fe,class:C.e("horizontal"),clientSize:Pe,layout:"horizontal",onScroll:fe,ratio:Pe*100/dt,scrollFrom:Dt/(dt-Pe),total:Ie,visible:!0}),Le=Lt(qP,{ref:M,alwaysOn:be,startGap:Qe,endGap:Fe,class:C.e("vertical"),clientSize:Xe,layout:"vertical",onScroll:re,ratio:Xe*100/gt,scrollFrom:Jt/(gt-Xe),total:Me,visible:!0});return{horizontalScrollbar:Bt,verticalScrollbar:Le}},ge=()=>{var be;const[Qe,Fe]=g(U),[Me,Ie]=g(Z),{data:Pe,totalColumn:Xe,totalRow:dt,useIsScrolling:gt,itemKey:Dt}=v,Jt=[];if(dt>0&&Xe>0)for(let Bt=Me;Bt<=Ie;Bt++)for(let Le=Qe;Le<=Fe;Le++)Jt.push((be=S.default)==null?void 0:be.call(S,{columnIndex:Le,data:Pe,key:Dt({columnIndex:Le,data:Pe,rowIndex:Bt}),isScrolling:gt?g(R).isScrolling:void 0,style:ae(Bt,Le),rowIndex:Bt}));return Jt},Se=()=>{const be=br(v.innerElement),Qe=ge();return[Lt(be,{style:g(H),ref:L},Kt(be)?Qe:{default:()=>Qe})]};return()=>{const be=br(v.containerElement),{horizontalScrollbar:Qe,verticalScrollbar:Fe}=pe(),Me=Se();return Lt("div",{key:0,class:C.e("wrapper")},[Lt(be,{class:v.className,style:g(V),onScroll:ce,onWheel:Ne,ref:w},Kt(be)?Me:{default:()=>Me}),Qe,Fe])}}}),G5e=TZ({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:r},i,n,o,s,l)=>{r=Number(r);const a=Math.max(0,e*t-r),c=Math.min(a,i*t),u=Math.max(0,i*t-r+l+t);switch(n==="smart"&&(o>=u-r&&o<=c+r?n=Yl:n=Qc),n){case Uw:return c;case Ww:return u;case Qc:{const p=Math.round(u+(c-u)/2);return p<Math.ceil(r/2)?0:p>a+Math.floor(r/2)?a:p}case Yl:default:return o>=u&&o<=c?o:u>c||o<u?u:c}},getRowOffset:({rowHeight:e,height:t,totalRow:r},i,n,o,s,l)=>{t=Number(t);const a=Math.max(0,r*e-t),c=Math.min(a,i*e),u=Math.max(0,i*e-t+l+e);switch(n===E3&&(o>=u-t&&o<=c+t?n=Yl:n=Qc),n){case Uw:return c;case Ww:return u;case Qc:{const p=Math.round(u+(c-u)/2);return p<Math.ceil(t/2)?0:p>a+Math.floor(t/2)?a:p}case Yl:default:return o>=u&&o<=c?o:u>c||o<u?u:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:r},i,n)=>{const o=i*e,s=Math.ceil((r+n-o)/e);return Math.max(0,Math.min(t-1,i+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:r},i,n)=>{const o=i*e,s=Math.ceil((r+n-o)/e);return Math.max(0,Math.min(t-1,i+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:bS,min:AZ,floor:MZ}=Math,q5e={column:"columnWidth",row:"rowHeight"},YP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Zu=(e,t,r,i)=>{const[n,o,s]=[r[i],e[q5e[i]],r[YP[i]]];if(t>s){let l=0;if(s>=0){const a=n[s];l=a.offset+a.size}for(let a=s+1;a<=t;a++){const c=o(a);n[a]={offset:l,size:c},l+=c}r[YP[i]]=t}return n[t]},IZ=(e,t,r,i,n,o)=>{for(;r<=i;){const s=r+MZ((i-r)/2),l=Zu(e,s,t,o).offset;if(l===n)return s;l<n?r=s+1:i=s-1}return bS(0,r-1)},Y5e=(e,t,r,i,n)=>{const o=n==="column"?e.totalColumn:e.totalRow;let s=1;for(;r<o&&Zu(e,r,t,n).offset<i;)r+=s,s*=2;return IZ(e,t,MZ(r/2),AZ(r,o-1),i,n)},qj=(e,t,r,i)=>{const[n,o]=[t[i],t[YP[i]]];return(o>0?n[o].offset:0)>=r?IZ(e,t,0,o,r,i):Y5e(e,t,bS(0,o),r,i)},PZ=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:r,row:i})=>{let n=0;if(r>=e&&(r=e-1),r>=0){const l=i[r];n=l.offset+l.size}const s=(e-r-1)*t;return n+s},$Z=({totalColumn:e},{column:t,estimatedColumnWidth:r,lastVisitedColumnIndex:i})=>{let n=0;if(i>e&&(i=e-1),i>=0){const l=t[i];n=l.offset+l.size}const s=(e-i-1)*r;return n+s},K5e={column:$Z,row:PZ},Yj=(e,t,r,i,n,o,s)=>{const[l,a]=[o==="row"?e.height:e.width,K5e[o]],c=Zu(e,t,n,o),u=a(e,n),p=bS(0,AZ(u-l,c.offset)),h=bS(0,c.offset-l+s+c.size);switch(r===E3&&(i>=h-l&&i<=p+l?r=Yl:r=Qc),r){case Uw:return p;case Ww:return h;case Qc:return Math.round(h+(p-h)/2);case Yl:default:return i>=h&&i<=p?i:h>p||i<h?h:p}},Z5e=TZ({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,r)=>{const i=Zu(e,t,r,"column");return[i.size,i.offset]},getRowPosition:(e,t,r)=>{const i=Zu(e,t,r,"row");return[i.size,i.offset]},getColumnOffset:(e,t,r,i,n,o)=>Yj(e,t,r,i,n,"column",o),getRowOffset:(e,t,r,i,n,o)=>Yj(e,t,r,i,n,"row",o),getColumnStartIndexForOffset:(e,t,r)=>qj(e,r,t,"column"),getColumnStopIndexForStartIndex:(e,t,r,i)=>{const n=Zu(e,t,i,"column"),o=r+e.width;let s=n.offset+n.size,l=t;for(;l<e.totalColumn-1&&s<o;)l++,s+=Zu(e,t,i,"column").size;return l},getEstimatedTotalHeight:PZ,getEstimatedTotalWidth:$Z,getRowStartIndexForOffset:(e,t,r)=>qj(e,r,t,"row"),getRowStopIndexForStartIndex:(e,t,r,i)=>{const{totalRow:n,height:o}=e,s=Zu(e,t,i,"row"),l=r+o;let a=s.size+s.offset,c=t;for(;c<n-1&&a<l;)c++,a+=Zu(e,c,i,"row").size;return c},injectToInstance:(e,t)=>{const r=({columnIndex:o,rowIndex:s},l)=>{var a,c;l=po(l)?!0:l,Gt(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),Gt(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(a=e.exposed)==null||a.getItemStyleCache.value(-1,null,null),l&&((c=e.proxy)==null||c.$forceUpdate())},i=(o,s)=>{r({columnIndex:o},s)},n=(o,s)=>{r({rowIndex:o},s)};Object.assign(e.proxy,{resetAfterColumnIndex:i,resetAfterRowIndex:n,resetAfter:r})},initCache:({estimatedColumnWidth:e=VP,estimatedRowHeight:t=VP})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Q5e=ye({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:He("select")}}});function J5e(e,t,r,i,n,o){return e.item.isTitle?($(),K("div",{key:0,class:N(e.ns.be("group","title")),style:St([e.style,{lineHeight:`${e.height}px`}])},rt(e.item.label),7)):($(),K("div",{key:1,class:N(e.ns.be("group","split")),style:St(e.style)},[G("span",{class:N(e.ns.be("group","split-dash")),style:St({top:`${e.height/2}px`})},null,6)],6))}var X5e=ot(Q5e,[["render",J5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function eLe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const tLe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Fh},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:ao.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:m0},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:Oe(String),values:Sg,default:"bottom-start"}},rLe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},iLe=ye({props:rLe,emits:["select","hover"],setup(e,{emit:t}){const r=He("select"),{hoverItem:i,selectOptionClick:n}=eLe(e,{emit:t});return{ns:r,hoverItem:i,selectOptionClick:n}}}),nLe=["aria-selected"];function oLe(e,t,r,i,n,o){return $(),K("li",{"aria-selected":e.selected,style:St(e.style),class:N([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Yt((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[Be(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[G("span",null,rt(e.item.label),1)])],46,nLe)}var sLe=ot(iLe,[["render",oLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const OZ="ElSelectV2Injection";var lLe=ye({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:r}){const i=_t(OZ),n=He("select"),o=F([]),s=F(),l=O(()=>e.data.length);Ve(()=>l.value,()=>{var M,L;(L=(M=i.popper.value).updatePopper)==null||L.call(M)});const a=O(()=>po(i.props.estimatedOptionHeight)),c=O(()=>a.value?{itemSize:i.props.itemHeight}:{estimatedSize:i.props.estimatedOptionHeight,itemSize:M=>o.value[M]}),u=(M=[],L)=>{const{props:{valueKey:R}}=i;return yr(L)?M&&M.some(W=>Ai(W,R)===Ai(L,R)):M.includes(L)},p=(M,L)=>{if(yr(L)){const{valueKey:R}=i.props;return Ai(M,R)===Ai(L,R)}else return M===L},h=(M,L)=>{const{valueKey:R}=i.props;return i.props.multiple?u(M,Ai(L,R)):p(M,Ai(L,R))},m=(M,L)=>{const{disabled:R,multiple:W,multipleLimit:z}=i.props;return R||!L&&(W?z>0&&M.length>=z:!1)},y=M=>e.hoveringIndex===M;r({listRef:s,isSized:a,isItemDisabled:m,isItemHovering:y,isItemSelected:h,scrollToItem:M=>{const L=s.value;L&&L.scrollToItem(M)},resetScrollTop:()=>{const M=s.value;M&&M.resetScrollTop()}});const x=M=>{const{index:L,data:R,style:W}=M,z=g(a),{itemSize:j,estimatedSize:U}=g(c),{modelValue:Z}=i.props,{onSelect:Q,onHover:B}=i,V=R[L];if(V.type==="Group")return Y(X5e,{item:V,style:W,height:z?j:U},null);const H=h(Z,V),ee=m(Z,H),ce=y(L);return Y(sLe,sr(M,{selected:H,disabled:V.disabled||ee,created:!!V.created,hovering:ce,item:V,onSelect:Q,onHover:B}),{default:re=>{var fe;return((fe=t.default)==null?void 0:fe.call(t,re))||Y("span",null,[V.label])}})},{onKeyboardNavigate:S,onKeyboardSelect:C}=i,E=()=>{S("forward")},T=()=>{S("backward")},w=()=>{i.expanded=!1},I=M=>{const{code:L}=M,{tab:R,esc:W,down:z,up:j,enter:U}=Rt;switch(L!==R&&(M.preventDefault(),M.stopPropagation()),L){case R:case W:{w();break}case z:{E();break}case j:{T();break}case U:{C();break}}};return()=>{var M;const{data:L,width:R}=e,{height:W,multiple:z,scrollbarAlwaysOn:j}=i.props;if(L.length===0)return Y("div",{class:n.b("dropdown"),style:{width:`${R}px`}},[(M=t.empty)==null?void 0:M.call(t)]);const U=g(a)?SZ:W5e;return Y("div",{class:[n.b("dropdown"),n.is("multiple",z)]},[Y(U,sr({ref:s},g(c),{className:n.be("dropdown","list"),scrollbarAlwaysOn:j,data:L,height:W,width:R,total:L.length,onKeydown:I}),{default:Z=>Y(x,Z,null)})])}}});function aLe(e,t){const r=F(0),i=F(null),n=O(()=>e.allowCreate&&e.filterable);function o(u){const p=h=>h.value===u;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function s(u){!n.value||(e.multiple&&u.created?r.value++:i.value=u)}function l(u){if(n.value)if(u&&u.length>0&&!o(u)){const p={value:u,label:u,created:!0,disabled:!1};t.createdOptions.length>=r.value?t.createdOptions[r.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=r.value;else{const p=i.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function a(u){if(!n.value||!u||!u.created||u.created&&e.reserveKeyword&&t.inputValue===u.label)return;const p=t.createdOptions.findIndex(h=>h.value===u.value);~p&&(t.createdOptions.splice(p,1),r.value--)}function c(){n.value&&(t.createdOptions.length=0,r.value=0)}return{createNewOption:l,removeNewOption:a,selectNewOption:s,clearAllNewOption:c}}const cLe=e=>{const t=[];return e.forEach(r=>{wt(r.options)?(t.push({label:r.label,isTitle:!0,type:"Group"}),r.options.forEach(i=>{t.push(i)}),t.push({type:"Group"})):t.push(r)}),t};function uLe(e){const t=F(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:o=>{const s=o.target.value,l=s[s.length-1]||"";t.value=!d3(l)},handleCompositionEnd:o=>{t.value&&(t.value=!1,qt(e)&&e(o))}}}const Kj="",Zj=11,dLe={larget:51,default:42,small:33},pLe=(e,t)=>{const{t:r}=Hr(),i=He("select-v2"),n=He("input"),{form:o,formItem:s}=ps(),l=kr({inputValue:Kj,displayInputValue:Kj,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),a=F(-1),c=F(-1),u=F(null),p=F(null),h=F(null),m=F(null),y=F(null),v=F(null),_=F(null),x=F(!1),S=O(()=>e.disabled||(o==null?void 0:o.disabled)),C=O(()=>{const Ze=z.value.length*34;return Ze>e.height?e.height:Ze}),E=O(()=>!fo(e.modelValue)),T=O(()=>{const Ze=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:E.value;return e.clearable&&!S.value&&l.comboBoxHovering&&Ze}),w=O(()=>e.remote&&e.filterable?"":a3),I=O(()=>w.value&&i.is("reverse",x.value)),M=O(()=>(s==null?void 0:s.validateState)||""),L=O(()=>jq[M.value]),R=O(()=>e.remote?300:0),W=O(()=>{const Ze=z.value;return e.loading?e.loadingText||r("el.select.loading"):e.remote&&l.inputValue===""&&Ze.length===0?!1:e.filterable&&l.inputValue&&Ze.length>0?e.noMatchText||r("el.select.noMatch"):Ze.length===0?e.noDataText||r("el.select.noData"):null}),z=O(()=>{const Ze=Nt=>{const fr=l.inputValue,Gr=new RegExp(Aq(fr),"i");return fr?Gr.test(Nt.label||""):!0};return e.loading?[]:cLe(e.options.concat(l.createdOptions).map(Nt=>{if(wt(Nt.options)){const fr=Nt.options.filter(Ze);if(fr.length>0)return{...Nt,options:fr}}else if(e.remote||Ze(Nt))return Nt;return null}).filter(Nt=>Nt!==null))}),j=O(()=>z.value.every(Ze=>Ze.disabled)),U=An(),Z=O(()=>U.value==="small"?"small":"default"),Q=O(()=>{const Ze=v.value,Nt=Z.value||"default",fr=Ze?Number.parseInt(getComputedStyle(Ze).paddingLeft):0,Gr=Ze?Number.parseInt(getComputedStyle(Ze).paddingRight):0;return l.selectWidth-Gr-fr-dLe[Nt]}),B=()=>{var Ze;c.value=((Ze=y.value)==null?void 0:Ze.offsetWidth)||200},V=O(()=>({width:`${l.calculatedWidth===0?Zj:Math.ceil(l.calculatedWidth)+Zj}px`})),H=O(()=>wt(e.modelValue)?e.modelValue.length===0&&!l.displayInputValue:e.filterable?l.displayInputValue.length===0:!0),ee=O(()=>{const Ze=e.placeholder||r("el.select.placeholder");return e.multiple||fo(e.modelValue)?Ze:l.selectedLabel}),ce=O(()=>{var Ze,Nt;return(Nt=(Ze=m.value)==null?void 0:Ze.popperRef)==null?void 0:Nt.contentRef}),re=O(()=>{if(e.multiple){const Ze=e.modelValue.length;if(e.modelValue.length>0)return z.value.findIndex(Nt=>Nt.value===e.modelValue[Ze-1])}else if(e.modelValue)return z.value.findIndex(Ze=>Ze.value===e.modelValue);return-1}),fe=O({get(){return x.value&&W.value!==!1},set(Ze){x.value=Ze}}),{createNewOption:Ne,removeNewOption:de,selectNewOption:_e,clearAllNewOption:ae}=aLe(e,l),{handleCompositionStart:X,handleCompositionUpdate:he,handleCompositionEnd:$e}=uLe(Ze=>Cr(Ze)),Je=()=>{var Ze,Nt,fr;(Nt=(Ze=p.value).focus)==null||Nt.call(Ze),(fr=m.value)==null||fr.updatePopper()},ne=()=>{if(!e.automaticDropdown&&!S.value)return l.isComposing&&(l.softFocus=!0),Ct(()=>{var Ze,Nt;x.value=!x.value,(Nt=(Ze=p.value)==null?void 0:Ze.focus)==null||Nt.call(Ze)})},pe=()=>(e.filterable&&l.inputValue!==l.selectedLabel&&(l.query=l.selectedLabel),Se(l.inputValue),Ct(()=>{Ne(l.inputValue)})),ge=as(pe,R.value),Se=Ze=>{l.previousQuery!==Ze&&(l.previousQuery=Ze,e.filterable&&qt(e.filterMethod)?e.filterMethod(Ze):e.filterable&&e.remote&&qt(e.remoteMethod)&&e.remoteMethod(Ze))},xe=Ze=>{yl(e.modelValue,Ze)||t(_i,Ze)},be=Ze=>{t(ar,Ze),xe(Ze),l.previousValue=Ze==null?void 0:Ze.toString()},Qe=(Ze=[],Nt)=>{if(!yr(Nt))return Ze.indexOf(Nt);const fr=e.valueKey;let Gr=-1;return Ze.some((Mo,bo)=>Ai(Mo,fr)===Ai(Nt,fr)?(Gr=bo,!0):!1),Gr},Fe=Ze=>yr(Ze)?Ai(Ze,e.valueKey):Ze,Me=Ze=>yr(Ze)?Ze.label:Ze,Ie=()=>{if(!(e.collapseTags&&!e.filterable))return Ct(()=>{var Ze,Nt;if(!p.value)return;const fr=v.value;y.value.height=fr.offsetHeight,x.value&&W.value!==!1&&((Nt=(Ze=m.value)==null?void 0:Ze.updatePopper)==null||Nt.call(Ze))})},Pe=()=>{var Ze,Nt;if(Xe(),B(),(Nt=(Ze=m.value)==null?void 0:Ze.updatePopper)==null||Nt.call(Ze),e.multiple)return Ie()},Xe=()=>{const Ze=v.value;Ze&&(l.selectWidth=Ze.getBoundingClientRect().width)},dt=(Ze,Nt,fr=!0)=>{var Gr,Mo;if(e.multiple){let bo=e.modelValue.slice();const zd=Qe(bo,Fe(Ze));zd>-1?(bo=[...bo.slice(0,zd),...bo.slice(zd+1)],l.cachedOptions.splice(zd,1),de(Ze)):(e.multipleLimit<=0||bo.length<e.multipleLimit)&&(bo=[...bo,Fe(Ze)],l.cachedOptions.push(Ze),_e(Ze),qe(Nt)),be(bo),Ze.created&&(l.query="",Se(""),l.inputLength=20),e.filterable&&!e.reserveKeyword&&((Mo=(Gr=p.value).focus)==null||Mo.call(Gr),It("")),e.filterable&&(l.calculatedWidth=_.value.getBoundingClientRect().width),Ie(),Zt()}else a.value=Nt,l.selectedLabel=Ze.label,be(Fe(Ze)),x.value=!1,l.isComposing=!1,l.isSilentBlur=fr,_e(Ze),Ze.created||ae(),qe(Nt)},gt=(Ze,Nt)=>{const{valueKey:fr}=e,Gr=e.modelValue.indexOf(Ai(Nt,fr));if(Gr>-1&&!S.value){const Mo=[...e.modelValue.slice(0,Gr),...e.modelValue.slice(Gr+1)];return l.cachedOptions.splice(Gr,1),be(Mo),t("remove-tag",Ai(Nt,fr)),l.softFocus=!0,de(Nt),Ct(Je)}Ze.stopPropagation()},Dt=Ze=>{const Nt=l.isComposing;l.isComposing=!0,l.softFocus?l.softFocus=!1:Nt||t("focus",Ze)},Jt=Ze=>(l.softFocus=!1,Ct(()=>{var Nt,fr;(fr=(Nt=p.value)==null?void 0:Nt.blur)==null||fr.call(Nt),_.value&&(l.calculatedWidth=_.value.getBoundingClientRect().width),l.isSilentBlur?l.isSilentBlur=!1:l.isComposing&&t("blur",Ze),l.isComposing=!1})),Bt=()=>{l.displayInputValue.length>0?It(""):x.value=!1},Le=Ze=>{if(l.displayInputValue.length===0){Ze.preventDefault();const Nt=e.modelValue.slice();Nt.pop(),de(l.cachedOptions.pop()),be(Nt)}},st=()=>{let Ze;return wt(e.modelValue)?Ze=[]:Ze=void 0,l.softFocus=!0,e.multiple?l.cachedOptions=[]:l.selectedLabel="",x.value=!1,be(Ze),t("clear"),ae(),Ct(Je)},It=Ze=>{l.displayInputValue=Ze,l.inputValue=Ze},ie=(Ze,Nt=void 0)=>{const fr=z.value;if(!["forward","backward"].includes(Ze)||S.value||fr.length<=0||j.value)return;if(!x.value)return ne();Nt===void 0&&(Nt=l.hoveringIndex);let Gr=-1;Ze==="forward"?(Gr=Nt+1,Gr>=fr.length&&(Gr=0)):Ze==="backward"&&(Gr=Nt-1,(Gr<0||Gr>=fr.length)&&(Gr=fr.length-1));const Mo=fr[Gr];if(Mo.disabled||Mo.type==="Group")return ie(Ze,Gr);qe(Gr),Kr(Gr)},we=()=>{if(x.value)~l.hoveringIndex&&z.value[l.hoveringIndex]&&dt(z.value[l.hoveringIndex],l.hoveringIndex,!1);else return ne()},qe=Ze=>{l.hoveringIndex=Ze},it=()=>{l.hoveringIndex=-1},Zt=()=>{var Ze;const Nt=p.value;Nt&&((Ze=Nt.focus)==null||Ze.call(Nt))},Cr=Ze=>{const Nt=Ze.target.value;if(It(Nt),l.displayInputValue.length>0&&!x.value&&(x.value=!0),l.calculatedWidth=_.value.getBoundingClientRect().width,e.multiple&&Ie(),e.remote)ge();else return pe()},Pi=()=>(x.value=!1,Jt()),fn=()=>(l.inputValue=l.displayInputValue,Ct(()=>{~re.value&&(qe(re.value),Kr(l.hoveringIndex))})),Kr=Ze=>{h.value.scrollToItem(Ze)},Dr=()=>{if(it(),e.multiple)if(e.modelValue.length>0){let Ze=!1;l.cachedOptions.length=0,l.previousValue=e.modelValue.toString(),e.modelValue.forEach(Nt=>{const fr=z.value.findIndex(Gr=>Fe(Gr)===Nt);~fr&&(l.cachedOptions.push(z.value[fr]),Ze||qe(fr),Ze=!0)})}else l.cachedOptions=[],l.previousValue=void 0;else if(E.value){l.previousValue=e.modelValue;const Ze=z.value,Nt=Ze.findIndex(fr=>Fe(fr)===Fe(e.modelValue));~Nt?(l.selectedLabel=Ze[Nt].label,qe(Nt)):l.selectedLabel=`${e.modelValue}`}else l.selectedLabel="",l.previousValue=void 0;ae(),B()};return Ve(x,Ze=>{var Nt,fr;t("visible-change",Ze),Ze?(fr=(Nt=m.value).update)==null||fr.call(Nt):(l.displayInputValue="",l.previousQuery=null,Ne(""))}),Ve(()=>e.modelValue,(Ze,Nt)=>{var fr;(!Ze||Ze.toString()!==l.previousValue)&&Dr(),!yl(Ze,Nt)&&e.validateEvent&&((fr=s==null?void 0:s.validate)==null||fr.call(s,"change").catch(Gr=>void 0))},{deep:!0}),Ve(()=>e.options,()=>{const Ze=p.value;(!Ze||Ze&&document.activeElement!==Ze)&&Dr()},{deep:!0}),Ve(z,()=>Ct(h.value.resetScrollTop)),er(()=>{Dr()}),Uo(y,Pe),{collapseTagSize:Z,currentPlaceholder:ee,expanded:x,emptyText:W,popupHeight:C,debounce:R,filteredOptions:z,iconComponent:w,iconReverse:I,inputWrapperStyle:V,popperSize:c,dropdownMenuVisible:fe,hasModelValue:E,shouldShowPlaceholder:H,selectDisabled:S,selectSize:U,showClearBtn:T,states:l,tagMaxWidth:Q,nsSelectV2:i,nsInput:n,calculatorRef:_,controlRef:u,inputRef:p,menuRef:h,popper:m,selectRef:y,selectionRef:v,popperRef:ce,validateState:M,validateIcon:L,debouncedOnInputChange:ge,deleteTag:gt,getLabel:Me,getValueKey:Fe,handleBlur:Jt,handleClear:st,handleClickOutside:Pi,handleDel:Le,handleEsc:Bt,handleFocus:Dt,handleMenuEnter:fn,handleResize:Pe,toggleMenu:ne,scrollTo:Kr,onInput:Cr,onKeyboardNavigate:ie,onKeyboardSelect:we,onSelect:dt,onHover:qe,onUpdateInputValue:It,handleCompositionStart:X,handleCompositionEnd:$e,handleCompositionUpdate:he}},hLe=ye({name:"ElSelectV2",components:{ElSelectMenu:lLe,ElTag:x3,ElTooltip:qs,ElIcon:At},directives:{ClickOutside:Ah,ModelText:eR},props:tLe,emits:[ar,_i,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=O(()=>{const{modelValue:n,multiple:o}=e,s=o?[]:void 0;return wt(n)?o?n:s:o?s:n}),i=pLe(kr({...Fn(e),modelValue:r}),t);return cr(OZ,{props:kr({...Fn(e),height:i.popupHeight,modelValue:r}),popper:i.popper,onSelect:i.onSelect,onHover:i.onHover,onKeyboardNavigate:i.onKeyboardNavigate,onKeyboardSelect:i.onKeyboardSelect}),{...i,modelValue:r}}}),fLe={key:0},mLe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],gLe=["textContent"],yLe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],vLe=["textContent"];function bLe(e,t,r,i,n,o){const s=Ft("el-tag"),l=Ft("el-tooltip"),a=Ft("el-icon"),c=Ft("el-select-menu"),u=Sv("model-text"),p=Sv("click-outside");return kt(($(),K("div",{ref:"selectRef",class:N([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[25]||(t[25]=Yt((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"])),onMouseenter:t[26]||(t[26]=h=>e.states.comboBoxHovering=!0),onMouseleave:t[27]||(t[27]=h=>e.states.comboBoxHovering=!1)},[Y(l,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[24]||(t[24]=h=>e.states.inputValue=e.states.displayInputValue)},{default:me(()=>{var h;return[G("div",{ref:"selectionRef",class:N([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?($(),K("div",fLe,[Be(e.$slots,"prefix")])):ke("v-if",!0),e.multiple?($(),K("div",{key:1,class:N(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?($(),K("div",{key:0,class:N(e.nsSelectV2.e("selected-item"))},[Y(s,{closable:!e.selectDisabled&&!((h=e.states.cachedOptions[0])!=null&&h.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:t[0]||(t[0]=m=>e.deleteTag(m,e.states.cachedOptions[0]))},{default:me(()=>{var m;return[G("span",{class:N(e.nsSelectV2.e("tags-text")),style:St({maxWidth:`${e.tagMaxWidth}px`})},rt((m=e.states.cachedOptions[0])==null?void 0:m.label),7)]}),_:1},8,["closable","size"]),e.modelValue.length>1?($(),Te(s,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:me(()=>[e.collapseTagsTooltip?($(),Te(l,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:me(()=>[G("span",{class:N(e.nsSelectV2.e("tags-text")),style:St({maxWidth:`${e.tagMaxWidth}px`})},"+ "+rt(e.modelValue.length-1),7)]),content:me(()=>[G("div",{class:N(e.nsSelectV2.e("selection"))},[($(!0),K(bt,null,or(e.states.cachedOptions.slice(1),(m,y)=>($(),K("div",{key:y,class:N(e.nsSelectV2.e("selected-item"))},[($(),Te(s,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,m)},{default:me(()=>[G("span",{class:N(e.nsSelectV2.e("tags-text")),style:St({maxWidth:`${e.tagMaxWidth}px`})},rt(e.getLabel(m)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):($(),K("span",{key:1,class:N(e.nsSelectV2.e("tags-text")),style:St({maxWidth:`${e.tagMaxWidth}px`})},"+ "+rt(e.modelValue.length-1),7))]),_:1},8,["size"])):ke("v-if",!0)],2)):($(!0),K(bt,{key:1},or(e.states.cachedOptions,(m,y)=>($(),K("div",{key:y,class:N(e.nsSelectV2.e("selected-item"))},[($(),Te(s,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,m)},{default:me(()=>[G("span",{class:N(e.nsSelectV2.e("tags-text")),style:St({maxWidth:`${e.tagMaxWidth}px`})},rt(e.getLabel(m)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),G("div",{class:N([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:St(e.inputWrapperStyle)},[kt(G("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:N([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[1]||(t[1]=(...m)=>e.onUpdateInputValue&&e.onUpdateInputValue(...m)),onFocus:t[2]||(t[2]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[3]||(t[3]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onInput:t[4]||(t[4]=(...m)=>e.onInput&&e.onInput(...m)),onCompositionstart:t[5]||(t[5]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[6]||(t[6]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[7]||(t[7]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onKeydown:[t[8]||(t[8]=Lr(Yt(m=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[9]||(t[9]=Lr(Yt(m=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[10]||(t[10]=Lr(Yt((...m)=>e.onKeyboardSelect&&e.onKeyboardSelect(...m),["stop","prevent"]),["enter"])),t[11]||(t[11]=Lr(Yt((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[12]||(t[12]=Lr(Yt((...m)=>e.handleDel&&e.handleDel(...m),["stop"]),["delete"]))]},null,42,mLe),[[u,e.states.displayInputValue]]),e.filterable?($(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:N(e.nsSelectV2.e("input-calculator")),textContent:rt(e.states.displayInputValue)},null,10,gLe)):ke("v-if",!0)],6)],2)):($(),K(bt,{key:2},[G("div",{class:N([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[kt(G("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:N(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[13]||(t[13]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[14]||(t[14]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[15]||(t[15]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onFocus:t[16]||(t[16]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[17]||(t[17]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onInput:t[18]||(t[18]=(...m)=>e.onInput&&e.onInput(...m)),onKeydown:[t[19]||(t[19]=Lr(Yt(m=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[20]||(t[20]=Lr(Yt(m=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[21]||(t[21]=Lr(Yt((...m)=>e.onKeyboardSelect&&e.onKeyboardSelect(...m),["stop","prevent"]),["enter"])),t[22]||(t[22]=Lr(Yt((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[23]||(t[23]=(...m)=>e.onUpdateInputValue&&e.onUpdateInputValue(...m))},null,42,yLe),[[u,e.states.displayInputValue]])],2),e.filterable?($(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:N([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:rt(e.states.displayInputValue)},null,10,vLe)):ke("v-if",!0)],64)),e.shouldShowPlaceholder?($(),K("span",{key:3,class:N([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},rt(e.currentPlaceholder),3)):ke("v-if",!0),G("span",{class:N(e.nsSelectV2.e("suffix"))},[e.iconComponent?kt(($(),Te(a,{key:0,class:N([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:me(()=>[($(),Te(br(e.iconComponent)))]),_:1},8,["class"])),[[Vt,!e.showClearBtn]]):ke("v-if",!0),e.showClearBtn&&e.clearIcon?($(),Te(a,{key:1,class:N([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:Yt(e.handleClear,["prevent","stop"])},{default:me(()=>[($(),Te(br(e.clearIcon)))]),_:1},8,["class","onClick"])):ke("v-if",!0),e.validateState&&e.validateIcon?($(),Te(a,{key:2,class:N([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:me(()=>[($(),Te(br(e.validateIcon)))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)]}),content:me(()=>[Y(c,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:me(h=>[Be(e.$slots,"default",Ya(GE(h)))]),empty:me(()=>[Be(e.$slots,"empty",{},()=>[G("p",{class:N(e.nsSelectV2.e("empty"))},rt(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var AC=ot(hLe,[["render",bLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);AC.install=e=>{e.component(AC.name,AC)};const _Le=AC,wLe=_Le,xLe=ct({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),CLe=ct({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),kLe=ye({name:"ElSkeletonItem"}),SLe=ye({...kLe,props:CLe,setup(e){const t=He("skeleton");return(r,i)=>($(),K("div",{class:N([g(t).e("item"),g(t).e(r.variant)])},[r.variant==="image"?($(),Te(g(nwe),{key:0})):ke("v-if",!0)],2))}});var _S=ot(SLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const ELe=ye({name:"ElSkeleton"}),TLe=ye({...ELe,props:xLe,setup(e,{expose:t}){const r=e,i=He("skeleton"),n=sxe(Ni(r,"loading"),r.throttle);return t({uiLoading:n}),(o,s)=>g(n)?($(),K("div",sr({key:0,class:[g(i).b(),g(i).is("animated",o.animated)]},o.$attrs),[($(!0),K(bt,null,or(o.count,l=>($(),K(bt,{key:l},[o.loading?Be(o.$slots,"template",{key:l},()=>[Y(_S,{class:N(g(i).is("first")),variant:"p"},null,8,["class"]),($(!0),K(bt,null,or(o.rows,a=>($(),Te(_S,{key:a,class:N([g(i).e("paragraph"),g(i).is("last",a===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ke("v-if",!0)],64))),128))],16)):Be(o.$slots,"default",Ya(sr({key:1},o.$attrs)))}});var ALe=ot(TLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const MLe=lr(ALe,{SkeletonItem:_S}),ILe=Hi(_S),PLe=ct({modelValue:{type:Oe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Vs,inputSize:Vs,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Oe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Oe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Sg,default:"top"},marks:{type:Oe(Object)},validateEvent:{type:Boolean,default:!0}}),GA=e=>Gt(e)||wt(e)&&e.every(Gt),$Le={[ar]:GA,[ss]:GA,[_i]:GA},OLe=(e,t,r)=>{const i=F();return er(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Si(window,"resize",r),await Ct(),r()}),{sliderWrapper:i}},LLe=e=>O(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((r,i)=>r-i).filter(r=>r<=e.max&&r>=e.min).map(r=>({point:r,position:(r-e.min)*100/(e.max-e.min),mark:e.marks[r]})):[]),RLe=(e,t,r)=>{const{form:i,formItem:n}=ps(),o=gi(),s=F(),l=F(),a={firstButton:s,secondButton:l},c=O(()=>e.disabled||(i==null?void 0:i.disabled)||!1),u=O(()=>Math.min(t.firstValue,t.secondValue)),p=O(()=>Math.max(t.firstValue,t.secondValue)),h=O(()=>e.range?`${100*(p.value-u.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),m=O(()=>e.range?`${100*(u.value-e.min)/(e.max-e.min)}%`:"0%"),y=O(()=>e.vertical?{height:e.height}:{}),v=O(()=>e.vertical?{height:h.value,bottom:m.value}:{width:h.value,left:m.value}),_=()=>{o.value&&(t.sliderSize=o.value[`client${e.vertical?"Height":"Width"}`])},x=W=>{const z=e.min+W*(e.max-e.min)/100;if(!e.range)return s;let j;return Math.abs(u.value-z)<Math.abs(p.value-z)?j=t.firstValue<t.secondValue?"firstButton":"secondButton":j=t.firstValue>t.secondValue?"firstButton":"secondButton",a[j]},S=W=>{const z=x(W);return z.value.setPosition(W),z},C=W=>{t.firstValue=W,T(e.range?[u.value,p.value]:W)},E=W=>{t.secondValue=W,e.range&&T([u.value,p.value])},T=W=>{r(ar,W),r(ss,W)},w=async()=>{await Ct(),r(_i,e.range?[u.value,p.value]:e.modelValue)},I=W=>{var z,j,U,Z,Q,B;if(c.value||t.dragging)return;_();let V=0;if(e.vertical){const H=(U=(j=(z=W.touches)==null?void 0:z.item(0))==null?void 0:j.clientY)!=null?U:W.clientY;V=(o.value.getBoundingClientRect().bottom-H)/t.sliderSize*100}else{const H=(B=(Q=(Z=W.touches)==null?void 0:Z.item(0))==null?void 0:Q.clientX)!=null?B:W.clientX,ee=o.value.getBoundingClientRect().left;V=(H-ee)/t.sliderSize*100}if(!(V<0||V>100))return S(V)};return{elFormItem:n,slider:o,firstButton:s,secondButton:l,sliderDisabled:c,minValue:u,maxValue:p,runwayStyle:y,barStyle:v,resetSize:_,setPosition:S,emitChange:w,onSliderWrapperPrevent:W=>{var z,j;(((z=a.firstButton.value)==null?void 0:z.dragging)||((j=a.secondButton.value)==null?void 0:j.dragging))&&W.preventDefault()},onSliderClick:W=>{I(W)&&w()},onSliderDown:async W=>{const z=I(W);z&&(await Ct(),z.value.onButtonDown(W))},setFirstValue:C,setSecondValue:E}},{left:DLe,down:NLe,right:FLe,up:zLe,home:jLe,end:VLe,pageUp:BLe,pageDown:ULe}=Rt,WLe=(e,t,r)=>{const i=F(),n=F(!1),o=O(()=>t.value instanceof Function),s=O(()=>o.value&&t.value(e.modelValue)||e.modelValue),l=as(()=>{r.value&&(n.value=!0)},50),a=as(()=>{r.value&&(n.value=!1)},50);return{tooltip:i,tooltipVisible:n,formatValue:s,displayTooltip:l,hideTooltip:a}},HLe=(e,t,r)=>{const{disabled:i,min:n,max:o,step:s,showTooltip:l,precision:a,sliderSize:c,formatTooltip:u,emitChange:p,resetSize:h,updateDragging:m}=_t(Jq),{tooltip:y,tooltipVisible:v,formatValue:_,displayTooltip:x,hideTooltip:S}=WLe(e,u,l),C=F(),E=O(()=>`${(e.modelValue-n.value)/(o.value-n.value)*100}%`),T=O(()=>e.vertical?{bottom:E.value}:{left:E.value}),w=()=>{t.hovering=!0,x()},I=()=>{t.hovering=!1,t.dragging||S()},M=re=>{i.value||(re.preventDefault(),V(re),window.addEventListener("mousemove",H),window.addEventListener("touchmove",H),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),C.value.focus())},L=re=>{i.value||(t.newPosition=Number.parseFloat(E.value)+re/(o.value-n.value)*100,ce(t.newPosition),p())},R=()=>{L(-s.value)},W=()=>{L(s.value)},z=()=>{L(-s.value*4)},j=()=>{L(s.value*4)},U=()=>{i.value||(ce(0),p())},Z=()=>{i.value||(ce(100),p())},Q=re=>{let fe=!0;[DLe,NLe].includes(re.key)?R():[FLe,zLe].includes(re.key)?W():re.key===jLe?U():re.key===VLe?Z():re.key===ULe?z():re.key===BLe?j():fe=!1,fe&&re.preventDefault()},B=re=>{let fe,Ne;return re.type.startsWith("touch")?(Ne=re.touches[0].clientY,fe=re.touches[0].clientX):(Ne=re.clientY,fe=re.clientX),{clientX:fe,clientY:Ne}},V=re=>{t.dragging=!0,t.isClick=!0;const{clientX:fe,clientY:Ne}=B(re);e.vertical?t.startY=Ne:t.startX=fe,t.startPosition=Number.parseFloat(E.value),t.newPosition=t.startPosition},H=re=>{if(t.dragging){t.isClick=!1,x(),h();let fe;const{clientX:Ne,clientY:de}=B(re);e.vertical?(t.currentY=de,fe=(t.startY-t.currentY)/c.value*100):(t.currentX=Ne,fe=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+fe,ce(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||S(),t.isClick||ce(t.newPosition),p()},0),window.removeEventListener("mousemove",H),window.removeEventListener("touchmove",H),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},ce=async re=>{if(re===null||Number.isNaN(+re))return;re<0?re=0:re>100&&(re=100);const fe=100/((o.value-n.value)/s.value);let de=Math.round(re/fe)*fe*(o.value-n.value)*.01+n.value;de=Number.parseFloat(de.toFixed(a.value)),de!==e.modelValue&&r(ar,de),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ct(),t.dragging&&x(),y.value.updatePopper()};return Ve(()=>t.dragging,re=>{m(re)}),{disabled:i,button:C,tooltip:y,tooltipVisible:v,showTooltip:l,wrapperStyle:T,formatValue:_,handleMouseEnter:w,handleMouseLeave:I,onButtonDown:M,onKeyDown:Q,setPosition:ce}},GLe=(e,t,r,i)=>({stops:O(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,l=100*e.step/(e.max-e.min),a=Array.from({length:s-1}).map((c,u)=>(u+1)*l);return e.range?a.filter(c=>c<100*(r.value-e.min)/(e.max-e.min)||c>100*(i.value-e.min)/(e.max-e.min)):a.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),qLe=(e,t,r,i,n,o)=>{const s=c=>{n(ar,c),n(ss,c)},l=()=>e.range?![r.value,i.value].every((c,u)=>c===t.oldValue[u]):e.modelValue!==t.oldValue,a=()=>{var c,u;if(e.min>e.max){zn("Slider","min should not be greater than max.");return}const p=e.modelValue;e.range&&Array.isArray(p)?p[1]<e.min?s([e.min,e.min]):p[0]>e.max?s([e.max,e.max]):p[0]<e.min?s([e.min,p[1]]):p[1]>e.max?s([p[0],e.max]):(t.firstValue=p[0],t.secondValue=p[1],l()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=p.slice())):!e.range&&typeof p=="number"&&!Number.isNaN(p)&&(p<e.min?s(e.min):p>e.max?s(e.max):(t.firstValue=p,l()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(h=>void 0)),t.oldValue=p)))};a(),Ve(()=>t.dragging,c=>{c||a()}),Ve(()=>e.modelValue,(c,u)=>{t.dragging||Array.isArray(c)&&Array.isArray(u)&&c.every((p,h)=>p===u[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||a()},{deep:!0}),Ve(()=>[e.min,e.max],()=>{a()})},YLe=ct({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Sg,default:"top"}}),KLe={[ar]:e=>Gt(e)},ZLe=["tabindex"],QLe=ye({name:"ElSliderButton"}),JLe=ye({...QLe,props:YLe,emits:KLe,setup(e,{expose:t,emit:r}){const i=e,n=He("slider"),o=kr({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:i.modelValue}),{disabled:s,button:l,tooltip:a,showTooltip:c,tooltipVisible:u,wrapperStyle:p,formatValue:h,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:v,onKeyDown:_,setPosition:x}=HLe(i,o,r),{hovering:S,dragging:C}=Fn(o);return t({onButtonDown:v,onKeyDown:_,setPosition:x,hovering:S,dragging:C}),(E,T)=>($(),K("div",{ref_key:"button",ref:l,class:N([g(n).e("button-wrapper"),{hover:g(S),dragging:g(C)}]),style:St(g(p)),tabindex:g(s)?-1:0,onMouseenter:T[0]||(T[0]=(...w)=>g(m)&&g(m)(...w)),onMouseleave:T[1]||(T[1]=(...w)=>g(y)&&g(y)(...w)),onMousedown:T[2]||(T[2]=(...w)=>g(v)&&g(v)(...w)),onTouchstart:T[3]||(T[3]=(...w)=>g(v)&&g(v)(...w)),onFocus:T[4]||(T[4]=(...w)=>g(m)&&g(m)(...w)),onBlur:T[5]||(T[5]=(...w)=>g(y)&&g(y)(...w)),onKeydown:T[6]||(T[6]=(...w)=>g(_)&&g(_)(...w))},[Y(g(qs),{ref_key:"tooltip",ref:a,visible:g(u),placement:E.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":E.tooltipClass,disabled:!g(c),persistent:""},{content:me(()=>[G("span",null,rt(g(h)),1)]),default:me(()=>[G("div",{class:N([g(n).e("button"),{hover:g(S),dragging:g(C)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,ZLe))}});var Qj=ot(JLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const XLe=ct({mark:{type:Oe([String,Object]),default:void 0}});var eRe=ye({name:"ElSliderMarker",props:XLe,setup(e){const t=He("slider"),r=O(()=>Kt(e.mark)?e.mark:e.mark.label),i=O(()=>Kt(e.mark)?void 0:e.mark.style);return()=>Lt("div",{class:t.e("marks-text"),style:i.value},r.value)}});const tRe=["id","role","aria-label","aria-labelledby"],rRe={key:1},iRe=ye({name:"ElSlider"}),nRe=ye({...iRe,props:PLe,emits:$Le,setup(e,{expose:t,emit:r}){const i=e,n=He("slider"),{t:o}=Hr(),s=kr({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:a,firstButton:c,secondButton:u,sliderDisabled:p,minValue:h,maxValue:m,runwayStyle:y,barStyle:v,resetSize:_,emitChange:x,onSliderWrapperPrevent:S,onSliderClick:C,onSliderDown:E,setFirstValue:T,setSecondValue:w}=RLe(i,s,r),{stops:I,getStopStyle:M}=GLe(i,s,h,m),{inputId:L,isLabeledByFormItem:R}=jh(i,{formItemContext:l}),W=An(),z=O(()=>i.inputSize||W.value),j=O(()=>i.label||o("el.slider.defaultLabel",{min:i.min,max:i.max})),U=O(()=>i.range?i.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):j.value),Z=O(()=>i.formatValueText?i.formatValueText(re.value):`${re.value}`),Q=O(()=>i.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),B=O(()=>i.formatValueText?i.formatValueText(fe.value):`${fe.value}`),V=O(()=>[n.b(),n.m(W.value),n.is("vertical",i.vertical),{[n.m("with-input")]:i.showInput}]),H=LLe(i);qLe(i,s,h,m,r,l);const ee=O(()=>{const _e=[i.min,i.max,i.step].map(ae=>{const X=`${ae}`.split(".")[1];return X?X.length:0});return Math.max.apply(null,_e)}),{sliderWrapper:ce}=OLe(i,s,_),{firstValue:re,secondValue:fe,sliderSize:Ne}=Fn(s),de=_e=>{s.dragging=_e};return cr(Jq,{...Fn(i),sliderSize:Ne,disabled:p,precision:ee,emitChange:x,resetSize:_,updateDragging:de}),t({onSliderClick:C}),(_e,ae)=>{var X,he;return $(),K("div",{id:_e.range?g(L):void 0,ref_key:"sliderWrapper",ref:ce,class:N(g(V)),role:_e.range?"group":void 0,"aria-label":_e.range&&!g(R)?g(j):void 0,"aria-labelledby":_e.range&&g(R)?(X=g(l))==null?void 0:X.labelId:void 0,onTouchstart:ae[2]||(ae[2]=(...$e)=>g(S)&&g(S)(...$e)),onTouchmove:ae[3]||(ae[3]=(...$e)=>g(S)&&g(S)(...$e))},[G("div",{ref_key:"slider",ref:a,class:N([g(n).e("runway"),{"show-input":_e.showInput&&!_e.range},g(n).is("disabled",g(p))]),style:St(g(y)),onMousedown:ae[0]||(ae[0]=(...$e)=>g(E)&&g(E)(...$e)),onTouchstart:ae[1]||(ae[1]=(...$e)=>g(E)&&g(E)(...$e))},[G("div",{class:N(g(n).e("bar")),style:St(g(v))},null,6),Y(Qj,{id:_e.range?void 0:g(L),ref_key:"firstButton",ref:c,"model-value":g(re),vertical:_e.vertical,"tooltip-class":_e.tooltipClass,placement:_e.placement,role:"slider","aria-label":_e.range||!g(R)?g(U):void 0,"aria-labelledby":!_e.range&&g(R)?(he=g(l))==null?void 0:he.labelId:void 0,"aria-valuemin":_e.min,"aria-valuemax":_e.range?g(fe):_e.max,"aria-valuenow":g(re),"aria-valuetext":g(Z),"aria-orientation":_e.vertical?"vertical":"horizontal","aria-disabled":g(p),"onUpdate:modelValue":g(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),_e.range?($(),Te(Qj,{key:0,ref_key:"secondButton",ref:u,"model-value":g(fe),vertical:_e.vertical,"tooltip-class":_e.tooltipClass,placement:_e.placement,role:"slider","aria-label":g(Q),"aria-valuemin":g(re),"aria-valuemax":_e.max,"aria-valuenow":g(fe),"aria-valuetext":g(B),"aria-orientation":_e.vertical?"vertical":"horizontal","aria-disabled":g(p),"onUpdate:modelValue":g(w)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ke("v-if",!0),_e.showStops?($(),K("div",rRe,[($(!0),K(bt,null,or(g(I),($e,Je)=>($(),K("div",{key:Je,class:N(g(n).e("stop")),style:St(g(M)($e))},null,6))),128))])):ke("v-if",!0),g(H).length>0?($(),K(bt,{key:2},[G("div",null,[($(!0),K(bt,null,or(g(H),($e,Je)=>($(),K("div",{key:Je,style:St(g(M)($e.position)),class:N([g(n).e("stop"),g(n).e("marks-stop")])},null,6))),128))]),G("div",{class:N(g(n).e("marks"))},[($(!0),K(bt,null,or(g(H),($e,Je)=>($(),Te(g(eRe),{key:Je,mark:$e.mark,style:St(g(M)($e.position))},null,8,["mark","style"]))),128))],2)],64)):ke("v-if",!0)],38),_e.showInput&&!_e.range?($(),Te(g(H_),{key:0,ref:"input","model-value":g(re),class:N(g(n).e("input")),step:_e.step,disabled:g(p),controls:_e.showInputControls,min:_e.min,max:_e.max,debounce:_e.debounce,size:g(z),"onUpdate:modelValue":g(T),onChange:g(x)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ke("v-if",!0)],42,tRe)}}});var oRe=ot(nRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const sRe=lr(oRe),lRe=ct({prefixCls:{type:String}}),Jj=ye({name:"ElSpaceItem",props:lRe,setup(e,{slots:t}){const r=He("space"),i=O(()=>`${e.prefixCls||r.b()}__item`);return()=>Lt("div",{class:i.value},Be(t,"default"))}}),Xj={small:8,default:12,large:16};function aRe(e){const t=He("space"),r=O(()=>[t.b(),t.m(e.direction),e.class]),i=F(0),n=F(0),o=O(()=>{const l=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${n.value}px`}:{},a={alignItems:e.alignment};return[l,a,e.style]}),s=O(()=>{const l={paddingBottom:`${n.value}px`,marginRight:`${i.value}px`},a=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[l,a]});return Ds(()=>{const{size:l="small",wrap:a,direction:c,fill:u}=e;if(wt(l)){const[p=0,h=0]=l;i.value=p,n.value=h}else{let p;Gt(l)?p=l:p=Xj[l||"small"]||Xj.small,(a||u)&&c==="horizontal"?i.value=n.value=p:c==="horizontal"?(i.value=p,n.value=0):(n.value=p,i.value=0)}}),{classes:r,containerStyle:o,itemStyle:s}}const cRe=ct({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Oe([String,Object,Array]),default:""},style:{type:Oe([String,Array,Object]),default:""},alignment:{type:Oe(String),default:"center"},prefixCls:{type:String},spacer:{type:Oe([Object,String,Number,Array]),default:null,validator:e=>Ei(e)||Gt(e)||Kt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Id,validator:e=>Gt(e)||wt(e)&&e.length===2&&e.every(Gt)}}),uRe=ye({name:"ElSpace",props:cRe,setup(e,{slots:t}){const{classes:r,containerStyle:i,itemStyle:n}=aRe(e);function o(s,l="",a=[]){const{prefixCls:c}=e;return s.forEach((u,p)=>{uP(u)?wt(u.children)&&u.children.forEach((h,m)=>{uP(h)&&wt(h.children)?o(h.children,`${l+m}-`,a):a.push(Y(Jj,{style:n.value,prefixCls:c,key:`nested-${l+m}`},{default:()=>[h]},Bl.PROPS|Bl.STYLE,["style","prefixCls"]))}):B1e(u)&&a.push(Y(Jj,{style:n.value,prefixCls:c,key:`LoopKey${l+p}`},{default:()=>[u]},Bl.PROPS|Bl.STYLE,["style","prefixCls"]))}),a}return()=>{var s;const{spacer:l,direction:a}=e,c=Be(t,"default",{key:0},()=>[]);if(((s=c.children)!=null?s:[]).length===0)return null;if(wt(c.children)){let u=o(c.children);if(l){const p=u.length-1;u=u.reduce((h,m,y)=>{const v=[...h,m];return y!==p&&v.push(Y("span",{style:[n.value,a==="vertical"?"width: 100%":null],key:y},[Ei(l)?l:Ir(l,Bl.TEXT)],Bl.STYLE)),v},[])}return Y("div",{class:r.value,style:i.value},u,Bl.STYLE|Bl.CLASS)}return c.children}}}),dRe=lr(uRe),pRe=ct({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Oe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Oe([String,Object,Array])}}),hRe=ye({name:"ElStatistic"}),fRe=ye({...hRe,props:pRe,setup(e,{expose:t}){const r=e,i=He("statistic"),n=O(()=>{const{value:o,formatter:s,precision:l,decimalSeparator:a,groupSeparator:c}=r;if(qt(s))return s(o);if(!Gt(o))return o;let[u,p=""]=String(o).split(".");return p=p.padEnd(l,"0").slice(0,l>0?l:0),u=u.replace(/\B(?=(\d{3})+(?!\d))/g,c),[u,p].join(p?a:"")});return t({displayValue:n}),(o,s)=>($(),K("div",{class:N(g(i).b())},[o.$slots.title||o.title?($(),K("div",{key:0,class:N(g(i).e("head"))},[Be(o.$slots,"title",{},()=>[Ir(rt(o.title),1)])],2)):ke("v-if",!0),G("div",{class:N(g(i).e("content"))},[o.$slots.prefix||o.prefix?($(),K("div",{key:0,class:N(g(i).e("prefix"))},[Be(o.$slots,"prefix",{},()=>[G("span",null,rt(o.prefix),1)])],2)):ke("v-if",!0),G("span",{class:N(g(i).e("number")),style:St(o.valueStyle)},rt(g(n)),7),o.$slots.suffix||o.suffix?($(),K("div",{key:1,class:N(g(i).e("suffix"))},[Be(o.$slots,"suffix",{},()=>[G("span",null,rt(o.suffix),1)])],2)):ke("v-if",!0)],2)],2))}});var mRe=ot(fRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const LZ=lr(mRe),gRe=ct({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:Oe([Number,Object]),default:0},valueStyle:{type:Oe([String,Object,Array])}}),yRe={finish:()=>!0,[_i]:e=>Gt(e)},vRe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],eV=e=>Gt(e)?new Date(e).getTime():e.valueOf(),tV=(e,t)=>{let r=e;const i=/\[([^\]]*)]/g;return vRe.reduce((o,[s,l])=>{const a=new RegExp(`${s}+(?![^\\[\\]]*\\])`,"g");if(a.test(o)){const c=Math.floor(r/l);return r-=c*l,o.replace(a,u=>String(c).padStart(u.length,"0"))}return o},t).replace(i,"$1")},bRe=ye({name:"ElCountdown"}),_Re=ye({...bRe,props:gRe,emits:yRe,setup(e,{expose:t,emit:r}){const i=e;let n;const o=F(eV(i.value)-Date.now()),s=O(()=>tV(o.value,i.format)),l=u=>tV(u,i.format),a=()=>{n&&(p3(n),n=void 0)},c=()=>{const u=eV(i.value),p=()=>{let h=u-Date.now();r("change",h),h<=0?(h=0,a(),r("finish")):n=Dw(p),o.value=h};n=Dw(p)};return Ve(()=>[i.value,i.format],()=>{a(),c()},{immediate:!0}),Ii(()=>{a()}),t({displayValue:s}),(u,p)=>($(),Te(g(LZ),{value:o.value,title:u.title,prefix:u.prefix,suffix:u.suffix,"value-style":u.valueStyle,formatter:l},fd({_:2},[or(u.$slots,(h,m)=>({name:m,fn:me(()=>[Be(u.$slots,m)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var wRe=ot(_Re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const xRe=lr(wRe),CRe=ct({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),kRe={[_i]:(e,t)=>[e,t].every(Gt)},SRe=ye({name:"ElSteps"}),ERe=ye({...SRe,props:CRe,emits:kRe,setup(e,{emit:t}){const r=e,i=He("steps"),n=F([]);return Ve(n,()=>{n.value.forEach((o,s)=>{o.setIndex(s)})}),cr("ElSteps",{props:r,steps:n}),Ve(()=>r.active,(o,s)=>{t(_i,o,s)}),(o,s)=>($(),K("div",{class:N([g(i).b(),g(i).m(o.simple?"simple":o.direction)])},[Be(o.$slots,"default")],2))}});var TRe=ot(ERe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const ARe=ct({title:{type:String,default:""},icon:{type:yi},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),MRe=ye({name:"ElStep"}),IRe=ye({...MRe,props:ARe,setup(e){const t=e,r=He("step"),i=F(-1),n=F({}),o=F(""),s=_t("ElSteps"),l=Xt();er(()=>{Ve([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([T])=>{C(T)},{immediate:!0})}),Ii(()=>{s.steps.value=s.steps.value.filter(T=>T.uid!==(l==null?void 0:l.uid))});const a=O(()=>t.status||o.value),c=O(()=>{const T=s.steps.value[i.value-1];return T?T.currentStatus:"wait"}),u=O(()=>s.props.alignCenter),p=O(()=>s.props.direction==="vertical"),h=O(()=>s.props.simple),m=O(()=>s.steps.value.length),y=O(()=>{var T;return((T=s.steps.value[m.value-1])==null?void 0:T.uid)===(l==null?void 0:l.uid)}),v=O(()=>h.value?"":s.props.space),_=O(()=>{const T={flexBasis:typeof v.value=="number"?`${v.value}px`:v.value?v.value:`${100/(m.value-(u.value?0:1))}%`};return p.value||y.value&&(T.maxWidth=`${100/m.value}%`),T}),x=T=>{i.value=T},S=T=>{let w=100;const I={};I.transitionDelay=`${150*i.value}ms`,T===s.props.processStatus?w=0:T==="wait"&&(w=0,I.transitionDelay=`${-150*i.value}ms`),I.borderWidth=w&&!h.value?"1px":0,I[s.props.direction==="vertical"?"height":"width"]=`${w}%`,n.value=I},C=T=>{T>i.value?o.value=s.props.finishStatus:T===i.value&&c.value!=="error"?o.value=s.props.processStatus:o.value="wait";const w=s.steps.value[i.value-1];w&&w.calcProgress(o.value)},E=kr({uid:O(()=>l==null?void 0:l.uid),currentStatus:a,setIndex:x,calcProgress:S});return s.steps.value=[...s.steps.value,E],(T,w)=>($(),K("div",{style:St(g(_)),class:N([g(r).b(),g(r).is(g(h)?"simple":g(s).props.direction),g(r).is("flex",g(y)&&!g(v)&&!g(u)),g(r).is("center",g(u)&&!g(p)&&!g(h))])},[ke(" icon & line "),G("div",{class:N([g(r).e("head"),g(r).is(g(a))])},[g(h)?ke("v-if",!0):($(),K("div",{key:0,class:N(g(r).e("line"))},[G("i",{class:N(g(r).e("line-inner")),style:St(n.value)},null,6)],2)),G("div",{class:N([g(r).e("icon"),g(r).is(T.icon||T.$slots.icon?"icon":"text")])},[Be(T.$slots,"icon",{},()=>[T.icon?($(),Te(g(At),{key:0,class:N(g(r).e("icon-inner"))},{default:me(()=>[($(),Te(br(T.icon)))]),_:1},8,["class"])):g(a)==="success"?($(),Te(g(At),{key:1,class:N([g(r).e("icon-inner"),g(r).is("status")])},{default:me(()=>[Y(g(U1))]),_:1},8,["class"])):g(a)==="error"?($(),Te(g(At),{key:2,class:N([g(r).e("icon-inner"),g(r).is("status")])},{default:me(()=>[Y(g(ia))]),_:1},8,["class"])):g(h)?ke("v-if",!0):($(),K("div",{key:3,class:N(g(r).e("icon-inner"))},rt(i.value+1),3))])],2)],2),ke(" title & description "),G("div",{class:N(g(r).e("main"))},[G("div",{class:N([g(r).e("title"),g(r).is(g(a))])},[Be(T.$slots,"title",{},()=>[Ir(rt(T.title),1)])],2),g(h)?($(),K("div",{key:0,class:N(g(r).e("arrow"))},null,2)):($(),K("div",{key:1,class:N([g(r).e("description"),g(r).is(g(a))])},[Be(T.$slots,"description",{},()=>[Ir(rt(T.description),1)])],2))],2)],6))}});var RZ=ot(IRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const PRe=lr(TRe,{Step:RZ}),$Re=Hi(RZ),ORe=ct({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:yi},inactiveIcon:{type:yi},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Oe(Function)},size:{type:String,validator:m0},tabindex:{type:[String,Number]}}),LRe={[ar]:e=>Ln(e)||Kt(e)||Gt(e),[_i]:e=>Ln(e)||Kt(e)||Gt(e),[ss]:e=>Ln(e)||Kt(e)||Gt(e)},RRe=["onClick"],DRe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],NRe=["aria-hidden"],FRe=["aria-hidden"],zRe=["aria-hidden"],KP="ElSwitch",jRe=ye({name:KP}),VRe=ye({...jRe,props:ORe,emits:LRe,setup(e,{expose:t,emit:r}){const i=e,n=Xt(),{formItem:o}=ps(),s=An(),l=He("switch");yd({from:'"value"',replacement:'"model-value" or "v-model"',scope:KP,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},O(()=>{var T;return!!((T=n.vnode.props)!=null&&T.value)}));const{inputId:a}=jh(i,{formItemContext:o}),c=Gs(O(()=>i.loading)),u=F(i.modelValue!==!1),p=F(),h=F(),m=O(()=>[l.b(),l.m(s.value),l.is("disabled",c.value),l.is("checked",_.value)]),y=O(()=>({width:Tn(i.width)}));Ve(()=>i.modelValue,()=>{u.value=!0}),Ve(()=>i.value,()=>{u.value=!1});const v=O(()=>u.value?i.modelValue:i.value),_=O(()=>v.value===i.activeValue);[i.activeValue,i.inactiveValue].includes(v.value)||(r(ar,i.inactiveValue),r(_i,i.inactiveValue),r(ss,i.inactiveValue)),Ve(_,T=>{var w;p.value.checked=T,i.validateEvent&&((w=o==null?void 0:o.validate)==null||w.call(o,"change").catch(I=>void 0))});const x=()=>{const T=_.value?i.inactiveValue:i.activeValue;r(ar,T),r(_i,T),r(ss,T),Ct(()=>{p.value.checked=_.value})},S=()=>{if(c.value)return;const{beforeChange:T}=i;if(!T){x();return}const w=T();[ww(w),Ln(w)].includes(!0)||zn(KP,"beforeChange must return type `Promise<boolean>` or `boolean`"),ww(w)?w.then(M=>{M&&x()}).catch(M=>{}):w&&x()},C=O(()=>l.cssVarBlock({...i.activeColor?{"on-color":i.activeColor}:null,...i.inactiveColor?{"off-color":i.inactiveColor}:null,...i.borderColor?{"border-color":i.borderColor}:null})),E=()=>{var T,w;(w=(T=p.value)==null?void 0:T.focus)==null||w.call(T)};return er(()=>{p.value.checked=_.value}),t({focus:E,checked:_}),(T,w)=>($(),K("div",{class:N(g(m)),style:St(g(C)),onClick:Yt(S,["prevent"])},[G("input",{id:g(a),ref_key:"input",ref:p,class:N(g(l).e("input")),type:"checkbox",role:"switch","aria-checked":g(_),"aria-disabled":g(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:g(c),tabindex:T.tabindex,onChange:x,onKeydown:Lr(S,["enter"])},null,42,DRe),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?($(),K("span",{key:0,class:N([g(l).e("label"),g(l).em("label","left"),g(l).is("active",!g(_))])},[T.inactiveIcon?($(),Te(g(At),{key:0},{default:me(()=>[($(),Te(br(T.inactiveIcon)))]),_:1})):ke("v-if",!0),!T.inactiveIcon&&T.inactiveText?($(),K("span",{key:1,"aria-hidden":g(_)},rt(T.inactiveText),9,NRe)):ke("v-if",!0)],2)):ke("v-if",!0),G("span",{ref_key:"core",ref:h,class:N(g(l).e("core")),style:St(g(y))},[T.inlinePrompt?($(),K("div",{key:0,class:N(g(l).e("inner"))},[T.activeIcon||T.inactiveIcon?($(),Te(g(At),{key:0,class:N(g(l).is("icon"))},{default:me(()=>[($(),Te(br(g(_)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?($(),K("span",{key:1,class:N(g(l).is("text")),"aria-hidden":!g(_)},rt(g(_)?T.activeText:T.inactiveText),11,FRe)):ke("v-if",!0)],2)):ke("v-if",!0),G("div",{class:N(g(l).e("action"))},[T.loading?($(),Te(g(At),{key:0,class:N(g(l).is("loading"))},{default:me(()=>[Y(g(zh))]),_:1},8,["class"])):ke("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?($(),K("span",{key:1,class:N([g(l).e("label"),g(l).em("label","right"),g(l).is("active",g(_))])},[T.activeIcon?($(),Te(g(At),{key:0},{default:me(()=>[($(),Te(br(T.activeIcon)))]),_:1})):ke("v-if",!0),!T.activeIcon&&T.activeText?($(),K("span",{key:1,"aria-hidden":!g(_)},rt(T.activeText),9,zRe)):ke("v-if",!0)],2)):ke("v-if",!0)],14,RRe))}});var BRe=ot(VRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const URe=lr(BRe);/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var WRe=/["'&<>]/,HRe=GRe;function GRe(e){var t=""+e,r=WRe.exec(t);if(!r)return t;var i,n="",o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}s!==o&&(n+=t.substring(s,o)),s=o+1,n+=i}return s!==o?n+t.substring(s,o):n}const qA=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},rV=function(e){return e!==null&&typeof e=="object"},qRe=function(e,t,r,i,n){if(!t&&!i&&(!n||Array.isArray(n)&&!n.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const o=i?null:function(l,a){return n?(Array.isArray(n)||(n=[n]),n.map(c=>typeof c=="string"?Ai(l,c):c(l,a,e))):(t!=="$key"&&rV(l)&&"$value"in l&&(l=l.$value),[rV(l)?Ai(l,t):l])},s=function(l,a){if(i)return i(l.value,a.value);for(let c=0,u=l.key.length;c<u;c++){if(l.key[c]<a.key[c])return-1;if(l.key[c]>a.key[c])return 1}return 0};return e.map((l,a)=>({value:l,index:a,key:o?o(l,a):null})).sort((l,a)=>{let c=s(l,a);return c||(c=l.index-a.index),c*+r}).map(l=>l.value)},DZ=function(e,t){let r=null;return e.columns.forEach(i=>{i.id===t&&(r=i)}),r},YRe=function(e,t){let r=null;for(let i=0;i<e.columns.length;i++){const n=e.columns[i];if(n.columnKey===t){r=n;break}}return r||zn("ElTable",`No column matching with column-key: ${t}`),r},iV=function(e,t,r){const i=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return i?DZ(e,i[0]):null},xo=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let i=e;for(const n of r)i=i[n];return`${i}`}else if(typeof t=="function")return t.call(null,e)},wm=function(e,t){const r={};return(e||[]).forEach((i,n)=>{r[xo(i,t)]={row:i,index:n}}),r};function KRe(e,t){const r={};let i;for(i in e)r[i]=e[i];for(i in t)if(Mr(t,i)){const n=t[i];typeof n!="undefined"&&(r[i]=n)}return r}function v4(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function NZ(e){return e===""||e!==void 0&&(e=v4(e),Number.isNaN(e)&&(e=80)),e}function ZRe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function QRe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function G_(e,t,r){let i=!1;const n=e.indexOf(t),o=n!==-1,s=l=>{l==="add"?e.push(t):e.splice(n,1),i=!0,wt(t.children)&&t.children.forEach(a=>{G_(e,a,r!=null?r:!o)})};return Ln(r)?r&&!o?s("add"):!r&&o&&s("remove"):s(o?"remove":"add"),i}function JRe(e,t,r="children",i="hasChildren"){const n=s=>!(Array.isArray(s)&&s.length);function o(s,l,a){t(s,l,a),l.forEach(c=>{if(c[i]){t(c,null,a+1);return}const u=c[r];n(u)||o(c,u,a+1)})}e.forEach(s=>{if(s[i]){t(s,null,0);return}const l=s[r];n(l)||o(s,l,0)})}let Au;function XRe(e,t,r,i,n){const{nextZIndex:o}=$d(),s=e==null?void 0:e.dataset.prefix,l=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const y=n==="light",v=document.createElement("div");return v.className=`${s}-popper ${y?"is-light":"is-dark"}`,r=HRe(r),v.innerHTML=r,v.style.zIndex=String(o()),e==null||e.appendChild(v),v}function c(){const y=document.createElement("div");return y.className=`${s}-popper__arrow`,y}function u(){p&&p.update()}Au==null||Au(),Au=()=>{try{p&&p.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseleave",Au),l==null||l.removeEventListener("scroll",Au),Au=void 0}catch{}};let p=null;const h=a(),m=c();return h.appendChild(m),p=DY(t,h,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:m,padding:10}}],...i}),t.addEventListener("mouseenter",u),t.addEventListener("mouseleave",Au),l==null||l.addEventListener("scroll",Au),p}function FZ(e){return e.children?ave(e.children,FZ):[e]}function nV(e,t){return e+t.colSpan}const zZ=(e,t,r,i)=>{let n=0,o=e;const s=r.states.columns.value;if(i){const a=FZ(i[e]);n=s.slice(0,s.indexOf(a[0])).reduce(nV,0),o=n+a.reduce(nV,0)-1}else n=e;let l;switch(t){case"left":o<r.states.fixedLeafColumnsLength.value&&(l="left");break;case"right":n>=s.length-r.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:o<r.states.fixedLeafColumnsLength.value?l="left":n>=s.length-r.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:n,after:o}:{}},b4=(e,t,r,i,n,o=0)=>{const s=[],{direction:l,start:a,after:c}=zZ(t,r,i,n);if(l){const u=l==="left";s.push(`${e}-fixed-column--${l}`),u&&c+o===i.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!u&&a-o===i.states.columns.value.length-i.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function oV(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const _4=(e,t,r,i)=>{const{direction:n,start:o=0,after:s=0}=zZ(e,t,r,i);if(!n)return;const l={},a=n==="left",c=r.states.columns.value;return a?l.left=c.slice(0,o).reduce(oV,0):l.right=c.slice(s+1).reverse().reduce(oV,0),l},zv=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function e4e(e){const t=Xt(),r=F(!1),i=F([]);return{updateExpandRows:()=>{const a=e.data.value||[],c=e.rowKey.value;if(r.value)i.value=a.slice();else if(c){const u=wm(i.value,c);i.value=a.reduce((p,h)=>{const m=xo(h,c);return u[m]&&p.push(h),p},[])}else i.value=[]},toggleRowExpansion:(a,c)=>{G_(i.value,a,c)&&t.emit("expand-change",a,i.value.slice())},setExpandRowKeys:a=>{t.store.assertRowKey();const c=e.data.value||[],u=e.rowKey.value,p=wm(c,u);i.value=a.reduce((h,m)=>{const y=p[m];return y&&h.push(y.row),h},[])},isRowExpanded:a=>{const c=e.rowKey.value;return c?!!wm(i.value,c)[xo(a,c)]:i.value.includes(a)},states:{expandRows:i,defaultExpandAll:r}}}function t4e(e){const t=Xt(),r=F(null),i=F(null),n=c=>{t.store.assertRowKey(),r.value=c,s(c)},o=()=>{r.value=null},s=c=>{const{data:u,rowKey:p}=e;let h=null;p.value&&(h=(g(u)||[]).find(m=>xo(m,p.value)===c)),i.value=h,t.emit("current-change",i.value,null)};return{setCurrentRowKey:n,restoreCurrentRowKey:o,setCurrentRowByKey:s,updateCurrentRow:c=>{const u=i.value;if(c&&c!==u){i.value=c,t.emit("current-change",i.value,u);return}!c&&u&&(i.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=e.rowKey.value,u=e.data.value||[],p=i.value;if(!u.includes(p)&&p){if(c){const h=xo(p,c);s(h)}else i.value=null;i.value===null&&t.emit("current-change",null,p)}else r.value&&(s(r.value),o())},states:{_currentRowKey:r,currentRow:i}}}function r4e(e){const t=F([]),r=F({}),i=F(16),n=F(!1),o=F({}),s=F("hasChildren"),l=F("children"),a=Xt(),c=O(()=>{if(!e.rowKey.value)return{};const x=e.data.value||[];return p(x)}),u=O(()=>{const x=e.rowKey.value,S=Object.keys(o.value),C={};return S.length&&S.forEach(E=>{if(o.value[E].length){const T={children:[]};o.value[E].forEach(w=>{const I=xo(w,x);T.children.push(I),w[s.value]&&!C[I]&&(C[I]={children:[]})}),C[E]=T}}),C}),p=x=>{const S=e.rowKey.value,C={};return JRe(x,(E,T,w)=>{const I=xo(E,S);Array.isArray(T)?C[I]={children:T.map(M=>xo(M,S)),level:w}:n.value&&(C[I]={children:[],lazy:!0,level:w})},l.value,s.value),C},h=(x=!1,S=(C=>(C=a.store)==null?void 0:C.states.defaultExpandAll.value)())=>{var C;const E=c.value,T=u.value,w=Object.keys(E),I={};if(w.length){const M=g(r),L=[],R=(z,j)=>{if(x)return t.value?S||t.value.includes(j):!!(S||(z==null?void 0:z.expanded));{const U=S||t.value&&t.value.includes(j);return!!((z==null?void 0:z.expanded)||U)}};w.forEach(z=>{const j=M[z],U={...E[z]};if(U.expanded=R(j,z),U.lazy){const{loaded:Z=!1,loading:Q=!1}=j||{};U.loaded=!!Z,U.loading=!!Q,L.push(z)}I[z]=U});const W=Object.keys(T);n.value&&W.length&&L.length&&W.forEach(z=>{const j=M[z],U=T[z].children;if(L.includes(z)){if(I[z].children.length!==0)throw new Error("[ElTable]children must be an empty array.");I[z].children=U}else{const{loaded:Z=!1,loading:Q=!1}=j||{};I[z]={lazy:!0,loaded:!!Z,loading:!!Q,expanded:R(j,z),children:U,level:""}}})}r.value=I,(C=a.store)==null||C.updateTableScrollY()};Ve(()=>t.value,()=>{h(!0)}),Ve(()=>c.value,()=>{h()}),Ve(()=>u.value,()=>{h()});const m=x=>{t.value=x,h()},y=(x,S)=>{a.store.assertRowKey();const C=e.rowKey.value,E=xo(x,C),T=E&&r.value[E];if(E&&T&&"expanded"in T){const w=T.expanded;S=typeof S=="undefined"?!T.expanded:S,r.value[E].expanded=S,w!==S&&a.emit("expand-change",x,S),a.store.updateTableScrollY()}},v=x=>{a.store.assertRowKey();const S=e.rowKey.value,C=xo(x,S),E=r.value[C];n.value&&E&&"loaded"in E&&!E.loaded?_(x,C,E):y(x,void 0)},_=(x,S,C)=>{const{load:E}=a.props;E&&!r.value[S].loaded&&(r.value[S].loading=!0,E(x,C,T=>{if(!Array.isArray(T))throw new TypeError("[ElTable] data must be an array");r.value[S].loading=!1,r.value[S].loaded=!0,r.value[S].expanded=!0,T.length&&(o.value[S]=T),a.emit("expand-change",x,!0)}))};return{loadData:_,loadOrToggle:v,toggleTreeExpansion:y,updateTreeExpandKeys:m,updateTreeData:h,normalize:p,states:{expandRowKeys:t,treeData:r,indent:i,lazy:n,lazyTreeNodeMap:o,lazyColumnIdentifier:s,childrenColumnName:l}}}const i4e=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:qRe(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},MC=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,MC(r.children)):t.push(r)}),t};function n4e(){var e;const t=Xt(),{size:r}=Fn((e=t.proxy)==null?void 0:e.$props),i=F(null),n=F([]),o=F([]),s=F(!1),l=F([]),a=F([]),c=F([]),u=F([]),p=F([]),h=F([]),m=F([]),y=F([]),v=F(0),_=F(0),x=F(0),S=F(!1),C=F([]),E=F(!1),T=F(!1),w=F(null),I=F({}),M=F(null),L=F(null),R=F(null),W=F(null),z=F(null);Ve(n,()=>t.state&&Q(!1),{deep:!0});const j=()=>{if(!i.value)throw new Error("[ElTable] prop row-key is required")},U=Le=>{var st;(st=Le.children)==null||st.forEach(It=>{It.fixed=Le.fixed,U(It)})},Z=()=>{l.value.forEach(we=>{U(we)}),u.value=l.value.filter(we=>we.fixed===!0||we.fixed==="left"),p.value=l.value.filter(we=>we.fixed==="right"),u.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&!l.value[0].fixed&&(l.value[0].fixed=!0,u.value.unshift(l.value[0]));const Le=l.value.filter(we=>!we.fixed);a.value=[].concat(u.value).concat(Le).concat(p.value);const st=MC(Le),It=MC(u.value),ie=MC(p.value);v.value=st.length,_.value=It.length,x.value=ie.length,c.value=[].concat(It).concat(st).concat(ie),s.value=u.value.length>0||p.value.length>0},Q=(Le,st=!1)=>{Le&&Z(),st?t.state.doLayout():t.state.debouncedUpdateLayout()},B=Le=>C.value.includes(Le),V=()=>{S.value=!1,C.value.length&&(C.value=[],t.emit("selection-change",[]))},H=()=>{let Le;if(i.value){Le=[];const st=wm(C.value,i.value),It=wm(n.value,i.value);for(const ie in st)Mr(st,ie)&&!It[ie]&&Le.push(st[ie].row)}else Le=C.value.filter(st=>!n.value.includes(st));if(Le.length){const st=C.value.filter(It=>!Le.includes(It));C.value=st,t.emit("selection-change",st.slice())}},ee=()=>(C.value||[]).slice(),ce=(Le,st=void 0,It=!0)=>{if(G_(C.value,Le,st)){const we=(C.value||[]).slice();It&&t.emit("select",we,Le),t.emit("selection-change",we)}},re=()=>{var Le,st;const It=T.value?!S.value:!(S.value||C.value.length);S.value=It;let ie=!1,we=0;const qe=(st=(Le=t==null?void 0:t.store)==null?void 0:Le.states)==null?void 0:st.rowKey.value;n.value.forEach((it,Zt)=>{const Cr=Zt+we;w.value?w.value.call(null,it,Cr)&&G_(C.value,it,It)&&(ie=!0):G_(C.value,it,It)&&(ie=!0),we+=de(xo(it,qe))}),ie&&t.emit("selection-change",C.value?C.value.slice():[]),t.emit("select-all",C.value)},fe=()=>{const Le=wm(C.value,i.value);n.value.forEach(st=>{const It=xo(st,i.value),ie=Le[It];ie&&(C.value[ie.index]=st)})},Ne=()=>{var Le,st,It;if(((Le=n.value)==null?void 0:Le.length)===0){S.value=!1;return}let ie;i.value&&(ie=wm(C.value,i.value));const we=function(Cr){return ie?!!ie[xo(Cr,i.value)]:C.value.includes(Cr)};let qe=!0,it=0,Zt=0;for(let Cr=0,Pi=(n.value||[]).length;Cr<Pi;Cr++){const fn=(It=(st=t==null?void 0:t.store)==null?void 0:st.states)==null?void 0:It.rowKey.value,Kr=Cr+Zt,Dr=n.value[Cr],Ze=w.value&&w.value.call(null,Dr,Kr);if(we(Dr))it++;else if(!w.value||Ze){qe=!1;break}Zt+=de(xo(Dr,fn))}it===0&&(qe=!1),S.value=qe},de=Le=>{var st;if(!t||!t.store)return 0;const{treeData:It}=t.store.states;let ie=0;const we=(st=It.value[Le])==null?void 0:st.children;return we&&(ie+=we.length,we.forEach(qe=>{ie+=de(qe)})),ie},_e=(Le,st)=>{Array.isArray(Le)||(Le=[Le]);const It={};return Le.forEach(ie=>{I.value[ie.id]=st,It[ie.columnKey||ie.id]=st}),It},ae=(Le,st,It)=>{L.value&&L.value!==Le&&(L.value.order=null),L.value=Le,R.value=st,W.value=It},X=()=>{let Le=g(o);Object.keys(I.value).forEach(st=>{const It=I.value[st];if(!It||It.length===0)return;const ie=DZ({columns:c.value},st);ie&&ie.filterMethod&&(Le=Le.filter(we=>It.some(qe=>ie.filterMethod.call(null,qe,we,ie))))}),M.value=Le},he=()=>{n.value=i4e(M.value,{sortingColumn:L.value,sortProp:R.value,sortOrder:W.value})},$e=(Le=void 0)=>{Le&&Le.filter||X(),he()},Je=Le=>{const{tableHeaderRef:st}=t.refs;if(!st)return;const It=Object.assign({},st.filterPanels),ie=Object.keys(It);if(!!ie.length)if(typeof Le=="string"&&(Le=[Le]),Array.isArray(Le)){const we=Le.map(qe=>YRe({columns:c.value},qe));ie.forEach(qe=>{const it=we.find(Zt=>Zt.id===qe);it&&(it.filteredValue=[])}),t.store.commit("filterChange",{column:we,values:[],silent:!0,multi:!0})}else ie.forEach(we=>{const qe=c.value.find(it=>it.id===we);qe&&(qe.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ne=()=>{!L.value||(ae(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:pe,toggleRowExpansion:ge,updateExpandRows:Se,states:xe,isRowExpanded:be}=e4e({data:n,rowKey:i}),{updateTreeExpandKeys:Qe,toggleTreeExpansion:Fe,updateTreeData:Me,loadOrToggle:Ie,states:Pe}=r4e({data:n,rowKey:i}),{updateCurrentRowData:Xe,updateCurrentRow:dt,setCurrentRowKey:gt,states:Dt}=t4e({data:n,rowKey:i});return{assertRowKey:j,updateColumns:Z,scheduleLayout:Q,isSelected:B,clearSelection:V,cleanSelection:H,getSelectionRows:ee,toggleRowSelection:ce,_toggleAllSelection:re,toggleAllSelection:null,updateSelectionByRowKey:fe,updateAllSelected:Ne,updateFilters:_e,updateCurrentRow:dt,updateSort:ae,execFilter:X,execSort:he,execQuery:$e,clearFilter:Je,clearSort:ne,toggleRowExpansion:ge,setExpandRowKeysAdapter:Le=>{pe(Le),Qe(Le)},setCurrentRowKey:gt,toggleRowExpansionAdapter:(Le,st)=>{c.value.some(({type:ie})=>ie==="expand")?ge(Le,st):Fe(Le,st)},isRowExpanded:be,updateExpandRows:Se,updateCurrentRowData:Xe,loadOrToggle:Ie,updateTreeData:Me,states:{tableSize:r,rowKey:i,data:n,_data:o,isComplex:s,_columns:l,originColumns:a,columns:c,fixedColumns:u,rightFixedColumns:p,leafColumns:h,fixedLeafColumns:m,rightFixedLeafColumns:y,leafColumnsLength:v,fixedLeafColumnsLength:_,rightFixedLeafColumnsLength:x,isAllSelected:S,selection:C,reserveSelection:E,selectOnIndeterminate:T,selectable:w,filters:I,filteredData:M,sortingColumn:L,sortProp:R,sortOrder:W,hoverRow:z,...xe,...Pe,...Dt}}}function ZP(e,t){return e.map(r=>{var i;return r.id===t.id?t:((i=r.children)!=null&&i.length&&(r.children=ZP(r.children,t)),r)})}function jZ(e){e.forEach(t=>{var r,i;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(i=t.children)!=null&&i.length&&jZ(t.children)}),e.sort((t,r)=>t.no-r.no)}function o4e(){const e=Xt(),t=n4e();return{ns:He("table"),...t,mutations:{setData(s,l){const a=g(s._data)!==l;s.data.value=l,s._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),g(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):a?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,l,a){const c=g(s._columns);let u=[];a?(a&&!a.children&&(a.children=[]),a.children.push(l),u=ZP(c,a)):(c.push(l),u=c),jZ(u),s._columns.value=u,l.type==="selection"&&(s.selectable.value=l.selectable,s.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(s,l,a){const c=g(s._columns)||[];if(a)a.children.splice(a.children.findIndex(u=>u.id===l.id),1),Ct(()=>{var u;((u=a.children)==null?void 0:u.length)===0&&delete a.children}),s._columns.value=ZP(c,a);else{const u=c.indexOf(l);u>-1&&(c.splice(u,1),s._columns.value=c)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,l){const{prop:a,order:c,init:u}=l;if(a){const p=g(s.columns).find(h=>h.property===a);p&&(p.order=c,e.store.updateSort(p,a,c),e.store.commit("changeSortCondition",{init:u}))}},changeSortCondition(s,l){const{sortingColumn:a,sortProp:c,sortOrder:u}=s,p=g(a),h=g(c),m=g(u);m===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const y={filter:!0};e.store.execQuery(y),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:p,prop:h,order:m}),e.store.updateTableScrollY()},filterChange(s,l){const{column:a,values:c,silent:u}=l,p=e.store.updateFilters(a,c);e.store.execQuery(),u||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(s,l){s.hoverRow.value=l},setCurrentRow(s,l){e.store.updateCurrentRow(l)}},commit:function(s,...l){const a=e.store.mutations;if(a[s])a[s].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ct(()=>e.layout.updateScrollY.apply(e.layout))}}}const q_={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function s4e(e,t){if(!e)throw new Error("Table is required.");const r=o4e();return r.toggleAllSelection=as(r._toggleAllSelection,10),Object.keys(q_).forEach(i=>{VZ(BZ(t,i),i,r)}),l4e(r,t),r}function l4e(e,t){Object.keys(q_).forEach(r=>{Ve(()=>BZ(t,r),i=>{VZ(i,r,e)})})}function VZ(e,t,r){let i=e,n=q_[t];typeof q_[t]=="object"&&(n=n.key,i=i||q_[t].default),r.states[n].value=i}function BZ(e,t){if(t.includes(".")){const r=t.split(".");let i=e;return r.forEach(n=>{i=i[n]}),i}else return e[t]}class a4e{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.gutterWidth=0;for(const r in t)Mr(t,r)&&(hi(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let i=!0;const n=this.scrollY.value;return i=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=i,n!==i}return!1}setHeight(t,r="height"){if(!Rr)return;const i=this.table.vnode.el;if(t=ZRe(t),this.height.value=Number(t),!i&&(t||t===0))return Ct(()=>this.setHeight(t,r));typeof t=="number"?(i.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(i.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(i=>{i.isColumnGroup?t.push.apply(t,i.columns):t.push(i)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Rr)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let i=0;const n=this.getFlattenColumns(),o=n.filter(a=>typeof a.width!="number");if(n.forEach(a=>{typeof a.width=="number"&&a.realWidth&&(a.realWidth=null)}),o.length>0&&t){if(n.forEach(a=>{i+=Number(a.width||a.minWidth||80)}),i<=r){this.scrollX.value=!1;const a=r-i;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+a;else{const c=o.reduce((h,m)=>h+Number(m.minWidth||80),0),u=a/c;let p=0;o.forEach((h,m)=>{if(m===0)return;const y=Math.floor(Number(h.minWidth||80)*u);p+=y,h.realWidth=Number(h.minWidth||80)+y}),o[0].realWidth=Number(o[0].minWidth||80)+a-p}}else this.scrollX.value=!0,o.forEach(a=>{a.realWidth=Number(a.minWidth)});this.bodyWidth.value=Math.max(i,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else n.forEach(a=>{!a.width&&!a.minWidth?a.realWidth=80:a.realWidth=Number(a.width||a.minWidth),i+=a.realWidth}),this.scrollX.value=i>r,this.bodyWidth.value=i;const s=this.store.states.fixedColumns.value;if(s.length>0){let a=0;s.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.fixedWidth.value=a}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let a=0;l.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=a}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(i=>{var n,o;switch(t){case"columns":(n=i.state)==null||n.onColumnsChange(this);break;case"scrollable":(o=i.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:c4e}=sa,u4e=ye({name:"ElTableFilterPanel",components:{ElCheckbox:sa,ElCheckboxGroup:c4e,ElScrollbar:Ld,ElTooltip:qs,ElIcon:At,ArrowDown:Nh,ArrowUp:a3},directives:{ClickOutside:Ah},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Xt(),{t:r}=Hr(),i=He("table-filter"),n=t==null?void 0:t.parent;n.filterPanels.value[e.column.id]||(n.filterPanels.value[e.column.id]=t);const o=F(!1),s=F(null),l=O(()=>e.column&&e.column.filters),a=O({get:()=>{var E;return(((E=e.column)==null?void 0:E.filteredValue)||[])[0]},set:E=>{c.value&&(typeof E!="undefined"&&E!==null?c.value.splice(0,1,E):c.value.splice(0,1))}}),c=O({get(){return e.column?e.column.filteredValue||[]:[]},set(E){e.column&&e.upDataColumn("filteredValue",E)}}),u=O(()=>e.column?e.column.filterMultiple:!0),p=E=>E.value===a.value,h=()=>{o.value=!1},m=E=>{E.stopPropagation(),o.value=!o.value},y=()=>{o.value=!1},v=()=>{S(c.value),h()},_=()=>{c.value=[],S(c.value),h()},x=E=>{a.value=E,S(typeof E!="undefined"&&E!==null?c.value:[]),h()},S=E=>{e.store.commit("filterChange",{column:e.column,values:E}),e.store.updateAllSelected()};Ve(o,E=>{e.column&&e.upDataColumn("filterOpened",E)},{immediate:!0});const C=O(()=>{var E,T;return(T=(E=s.value)==null?void 0:E.popperRef)==null?void 0:T.contentRef});return{tooltipVisible:o,multiple:u,filteredValue:c,filterValue:a,filters:l,handleConfirm:v,handleReset:_,handleSelect:x,isActive:p,t:r,ns:i,showFilterPanel:m,hideFilterPanel:y,popperPaneRef:C,tooltip:s}}}),d4e={key:0},p4e=["disabled"],h4e=["label","onClick"];function f4e(e,t,r,i,n,o){const s=Ft("el-checkbox"),l=Ft("el-checkbox-group"),a=Ft("el-scrollbar"),c=Ft("arrow-up"),u=Ft("arrow-down"),p=Ft("el-icon"),h=Ft("el-tooltip"),m=Sv("click-outside");return $(),Te(h,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:me(()=>[e.multiple?($(),K("div",d4e,[G("div",{class:N(e.ns.e("content"))},[Y(a,{"wrap-class":e.ns.e("wrap")},{default:me(()=>[Y(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=y=>e.filteredValue=y),class:N(e.ns.e("checkbox-group"))},{default:me(()=>[($(!0),K(bt,null,or(e.filters,y=>($(),Te(s,{key:y.value,label:y.value},{default:me(()=>[Ir(rt(y.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),G("div",{class:N(e.ns.e("bottom"))},[G("button",{class:N({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...y)=>e.handleConfirm&&e.handleConfirm(...y))},rt(e.t("el.table.confirmFilter")),11,p4e),G("button",{type:"button",onClick:t[2]||(t[2]=(...y)=>e.handleReset&&e.handleReset(...y))},rt(e.t("el.table.resetFilter")),1)],2)])):($(),K("ul",{key:1,class:N(e.ns.e("list"))},[G("li",{class:N([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=y=>e.handleSelect(null))},rt(e.t("el.table.clearFilter")),3),($(!0),K(bt,null,or(e.filters,y=>($(),K("li",{key:y.value,class:N([e.ns.e("list-item"),e.ns.is("active",e.isActive(y))]),label:y.value,onClick:v=>e.handleSelect(y.value)},rt(y.text),11,h4e))),128))],2))]),default:me(()=>[kt(($(),K("span",{class:N([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...y)=>e.showFilterPanel&&e.showFilterPanel(...y))},[Y(p,null,{default:me(()=>[e.column.filterOpened?($(),Te(c,{key:0})):($(),Te(u,{key:1}))]),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var m4e=ot(u4e,[["render",f4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function UZ(e){const t=Xt();WE(()=>{r.value.addObserver(t)}),er(()=>{i(r.value),n(r.value)}),Td(()=>{i(r.value),n(r.value)}),pu(()=>{r.value.removeObserver(t)});const r=O(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),i=o=>{var s;const l=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const a=o.getFlattenColumns(),c={};a.forEach(u=>{c[u.id]=u});for(let u=0,p=l.length;u<p;u++){const h=l[u],m=h.getAttribute("name"),y=c[m];y&&h.setAttribute("width",y.realWidth||y.width)}},n=o=>{var s,l;const a=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,p=a.length;u<p;u++)a[u].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const c=((l=e.vnode.el)==null?void 0:l.querySelectorAll("th.gutter"))||[];for(let u=0,p=c.length;u<p;u++){const h=c[u];h.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",h.style.display=o.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:i,onScrollableChange:n}}const hu=Symbol("ElTable");function g4e(e,t){const r=Xt(),i=_t(hu),n=v=>{v.stopPropagation()},o=(v,_)=>{!_.filters&&_.sortable?y(v,_,!1):_.filterable&&!_.sortable&&n(v),i==null||i.emit("header-click",_,v)},s=(v,_)=>{i==null||i.emit("header-contextmenu",_,v)},l=F(null),a=F(!1),c=F({}),u=(v,_)=>{if(!!Rr&&!(_.children&&_.children.length>0)&&l.value&&e.border){a.value=!0;const x=i;t("set-drag-visible",!0);const C=(x==null?void 0:x.vnode.el).getBoundingClientRect().left,E=r.vnode.el.querySelector(`th.${_.id}`),T=E.getBoundingClientRect(),w=T.left-C+30;Zc(E,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:T.right-C,startColumnLeft:T.left-C,tableLeft:C};const I=x==null?void 0:x.refs.resizeProxy;I.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const M=R=>{const W=R.clientX-c.value.startMouseLeft,z=c.value.startLeft+W;I.style.left=`${Math.max(w,z)}px`},L=()=>{if(a.value){const{startColumnLeft:R,startLeft:W}=c.value,j=Number.parseInt(I.style.left,10)-R;_.width=_.realWidth=j,x==null||x.emit("header-dragend",_.width,W-R,_,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",a.value=!1,l.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",L),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ns(E,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",L)}},p=(v,_)=>{var x;if(_.children&&_.children.length>0)return;const S=(x=v.target)==null?void 0:x.closest("th");if(!(!_||!_.resizable)&&!a.value&&e.border){const C=S.getBoundingClientRect(),E=document.body.style;C.width>12&&C.right-v.pageX<8?(E.cursor="col-resize",tc(S,"is-sortable")&&(S.style.cursor="col-resize"),l.value=_):a.value||(E.cursor="",tc(S,"is-sortable")&&(S.style.cursor="pointer"),l.value=null)}},h=()=>{!Rr||(document.body.style.cursor="")},m=({order:v,sortOrders:_})=>{if(v==="")return _[0];const x=_.indexOf(v||null);return _[x>_.length-2?0:x+1]},y=(v,_,x)=>{var S;v.stopPropagation();const C=_.order===x?null:x||m(_),E=(S=v.target)==null?void 0:S.closest("th");if(E&&tc(E,"noclick")){Ns(E,"noclick");return}if(!_.sortable)return;const T=e.store.states;let w=T.sortProp.value,I;const M=T.sortingColumn.value;(M!==_||M===_&&M.order===null)&&(M&&(M.order=null),T.sortingColumn.value=_,w=_.property),C?I=_.order=C:I=_.order=null,T.sortProp.value=w,T.sortOrder.value=I,i==null||i.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:s,handleMouseDown:u,handleMouseMove:p,handleMouseOut:h,handleSortClick:y,handleFilterClick:n}}function y4e(e){const t=_t(hu),r=He("table");return{getHeaderRowStyle:l=>{const a=t==null?void 0:t.props.headerRowStyle;return typeof a=="function"?a.call(null,{rowIndex:l}):a},getHeaderRowClass:l=>{const a=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?a.push(c):typeof c=="function"&&a.push(c.call(null,{rowIndex:l})),a.join(" ")},getHeaderCellStyle:(l,a,c,u)=>{var p;let h=(p=t==null?void 0:t.props.headerCellStyle)!=null?p:{};typeof h=="function"&&(h=h.call(null,{rowIndex:l,columnIndex:a,row:c,column:u}));const m=_4(a,u.fixed,e.store,c);return zv(m,"left"),zv(m,"right"),Object.assign({},h,m)},getHeaderCellClass:(l,a,c,u)=>{const p=b4(r.b(),a,u.fixed,e.store,c),h=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...p];u.children||h.push("is-leaf"),u.sortable&&h.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return typeof m=="string"?h.push(m):typeof m=="function"&&h.push(m.call(null,{rowIndex:l,columnIndex:a,row:c,column:u})),h.push(r.e("cell")),h.filter(y=>Boolean(y)).join(" ")}}}const WZ=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,WZ(r.children))):t.push(r)}),t},v4e=e=>{let t=1;const r=(o,s)=>{if(s&&(o.level=s.level+1,t<o.level&&(t=o.level)),o.children){let l=0;o.children.forEach(a=>{r(a,o),l+=a.colSpan}),o.colSpan=l}else o.colSpan=1};e.forEach(o=>{o.level=1,r(o,void 0)});const i=[];for(let o=0;o<t;o++)i.push([]);return WZ(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(s=>s.isSubColumn=!0)):o.rowSpan=t-o.level+1,i[o.level-1].push(o)}),i};function b4e(e){const t=_t(hu),r=O(()=>v4e(e.store.states.originColumns.value));return{isGroup:O(()=>{const o=r.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var _4e=ye({name:"ElTableHeader",components:{ElCheckbox:sa},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=Xt(),i=_t(hu),n=He("table"),o=F({}),{onColumnsChange:s,onScrollableChange:l}=UZ(i);er(async()=>{await Ct(),await Ct();const{prop:w,order:I}=e.defaultSort;i==null||i.store.commit("sort",{prop:w,order:I,init:!0})});const{handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:p,handleMouseOut:h,handleSortClick:m,handleFilterClick:y}=g4e(e,t),{getHeaderRowStyle:v,getHeaderRowClass:_,getHeaderCellStyle:x,getHeaderCellClass:S}=y4e(e),{isGroup:C,toggleAllSelection:E,columnRows:T}=b4e(e);return r.state={onColumnsChange:s,onScrollableChange:l},r.filterPanels=o,{ns:n,filterPanels:o,onColumnsChange:s,onScrollableChange:l,columnRows:T,getHeaderRowClass:_,getHeaderRowStyle:v,getHeaderCellClass:S,getHeaderCellStyle:x,handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:p,handleMouseOut:h,handleSortClick:m,handleFilterClick:y,isGroup:C,toggleAllSelection:E}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:i,getHeaderCellClass:n,getHeaderRowClass:o,getHeaderRowStyle:s,handleHeaderClick:l,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:u,handleSortClick:p,handleMouseOut:h,store:m,$parent:y}=this;let v=1;return Lt("thead",{class:{[e.is("group")]:t}},r.map((_,x)=>Lt("tr",{class:o(x),key:x,style:s(x)},_.map((S,C)=>(S.rowSpan>v&&(v=S.rowSpan),Lt("th",{class:n(x,C,_,S),colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,style:i(x,C,_,S),onClick:E=>l(E,S),onContextmenu:E=>a(E,S),onMousedown:E=>c(E,S),onMousemove:E=>u(E,S),onMouseout:h},[Lt("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:C,store:m,_self:y}):S.label,S.sortable&&Lt("span",{onClick:E=>p(E,S),class:"caret-wrapper"},[Lt("i",{onClick:E=>p(E,S,"ascending"),class:"sort-caret ascending"}),Lt("i",{onClick:E=>p(E,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Lt(m4e,{store:m,placement:S.filterPlacement||"bottom-start",column:S,upDataColumn:(E,T)=>{S[E]=T}})])]))))))}});function w4e(e){const t=_t(hu),r=F(""),i=F(Lt("div")),n=(h,m,y)=>{var v;const _=t,x=qA(h);let S;const C=(v=_==null?void 0:_.vnode.el)==null?void 0:v.dataset.prefix;x&&(S=iV({columns:e.store.states.columns.value},x,C),S&&(_==null||_.emit(`cell-${y}`,m,S,x,h))),_==null||_.emit(`row-${y}`,m,S,h)},o=(h,m)=>{n(h,m,"dblclick")},s=(h,m)=>{e.store.commit("setCurrentRow",m),n(h,m,"click")},l=(h,m)=>{n(h,m,"contextmenu")},a=as(h=>{e.store.commit("setHoverRow",h)},30),c=as(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:a,handleMouseLeave:c,handleCellMouseEnter:(h,m,y)=>{var v;const _=t,x=qA(h),S=(v=_==null?void 0:_.vnode.el)==null?void 0:v.dataset.prefix;if(x){const I=iV({columns:e.store.states.columns.value},x,S),M=_.hoverState={cell:x,column:I,row:m};_==null||_.emit("cell-mouse-enter",M.row,M.column,M.cell,h)}const C=h.target.querySelector(".cell");if(!(tc(C,`${S}-tooltip`)&&C.childNodes.length))return;const E=document.createRange();E.setStart(C,0),E.setEnd(C,C.childNodes.length);const T=Math.round(E.getBoundingClientRect().width),w=(Number.parseInt(Xu(C,"paddingLeft"),10)||0)+(Number.parseInt(Xu(C,"paddingRight"),10)||0);(T+w>C.offsetWidth||C.scrollWidth>C.offsetWidth)&&XRe(t==null?void 0:t.refs.tableWrapper,x,x.innerText||x.textContent,{placement:"top",strategy:"fixed"},y)},handleCellMouseLeave:h=>{if(!qA(h))return;const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,h)},tooltipContent:r,tooltipTrigger:i}}function x4e(e){const t=_t(hu),r=He("table");return{getRowStyle:(c,u)=>{const p=t==null?void 0:t.props.rowStyle;return typeof p=="function"?p.call(null,{row:c,rowIndex:u}):p||null},getRowClass:(c,u)=>{const p=[r.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===e.store.states.currentRow.value&&p.push("current-row"),e.stripe&&u%2===1&&p.push(r.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?p.push(h):typeof h=="function"&&p.push(h.call(null,{row:c,rowIndex:u})),p},getCellStyle:(c,u,p,h)=>{const m=t==null?void 0:t.props.cellStyle;let y=m!=null?m:{};typeof m=="function"&&(y=m.call(null,{rowIndex:c,columnIndex:u,row:p,column:h}));const v=_4(u,e==null?void 0:e.fixed,e.store);return zv(v,"left"),zv(v,"right"),Object.assign({},y,v)},getCellClass:(c,u,p,h,m)=>{const y=b4(r.b(),u,e==null?void 0:e.fixed,e.store,void 0,m),v=[h.id,h.align,h.className,...y],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?v.push(_):typeof _=="function"&&v.push(_.call(null,{rowIndex:c,columnIndex:u,row:p,column:h})),v.push(r.e("cell")),v.filter(x=>Boolean(x)).join(" ")},getSpan:(c,u,p,h)=>{let m=1,y=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const _=v({row:c,column:u,rowIndex:p,columnIndex:h});Array.isArray(_)?(m=_[0],y=_[1]):typeof _=="object"&&(m=_.rowspan,y=_.colspan)}return{rowspan:m,colspan:y}},getColspanRealWidth:(c,u,p)=>{if(u<1)return c[p].realWidth;const h=c.map(({realWidth:m,width:y})=>m||y).slice(p,p+u);return Number(h.reduce((m,y)=>Number(m)+Number(y),-1))}}}function C4e(e){const t=_t(hu),r=He("table"),{handleDoubleClick:i,handleClick:n,handleContextMenu:o,handleMouseEnter:s,handleMouseLeave:l,handleCellMouseEnter:a,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:p}=w4e(e),{getRowStyle:h,getRowClass:m,getCellStyle:y,getCellClass:v,getSpan:_,getColspanRealWidth:x}=x4e(e),S=O(()=>e.store.states.columns.value.findIndex(({type:I})=>I==="default")),C=(I,M)=>{const L=t.props.rowKey;return L?xo(I,L):M},E=(I,M,L,R=!1)=>{const{tooltipEffect:W,store:z}=e,{indent:j,columns:U}=z.states,Z=m(I,M);let Q=!0;return L&&(Z.push(r.em("row",`level-${L.level}`)),Q=L.display),Lt("tr",{style:[Q?null:{display:"none"},h(I,M)],class:Z,key:C(I,M),onDblclick:V=>i(V,I),onClick:V=>n(V,I),onContextmenu:V=>o(V,I),onMouseenter:()=>s(M),onMouseleave:l},U.value.map((V,H)=>{const{rowspan:ee,colspan:ce}=_(I,V,M,H);if(!ee||!ce)return null;const re={...V};re.realWidth=x(U.value,ce,H);const fe={store:e.store,_self:e.context||t,column:re,row:I,$index:M,cellIndex:H,expanded:R};H===S.value&&L&&(fe.treeNode={indent:L.level*j.value,level:L.level},typeof L.expanded=="boolean"&&(fe.treeNode.expanded=L.expanded,"loading"in L&&(fe.treeNode.loading=L.loading),"noLazyChildren"in L&&(fe.treeNode.noLazyChildren=L.noLazyChildren)));const Ne=`${M},${H}`,de=re.columnKey||re.rawColumnKey||"",_e=T(H,V,fe);return Lt("td",{style:y(M,H,I,V),class:v(M,H,I,V,ce-1),key:`${de}${Ne}`,rowspan:ee,colspan:ce,onMouseenter:ae=>a(ae,I,W),onMouseleave:c},[_e])}))},T=(I,M,L)=>M.renderCell(L);return{wrappedRowRender:(I,M)=>{const L=e.store,{isRowExpanded:R,assertRowKey:W}=L,{treeData:z,lazyTreeNodeMap:j,childrenColumnName:U,rowKey:Z}=L.states,Q=L.states.columns.value;if(Q.some(({type:V})=>V==="expand")){const V=R(I),H=E(I,M,void 0,V),ee=t.renderExpanded;return V?ee?[[H,Lt("tr",{key:`expanded-row__${H.key}`},[Lt("td",{colspan:Q.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[ee({row:I,$index:M,store:L,expanded:V})])])]]:(console.error("[Element Error]renderExpanded is required."),H):[[H]]}else if(Object.keys(z.value).length){W();const V=xo(I,Z.value);let H=z.value[V],ee=null;H&&(ee={expanded:H.expanded,level:H.level,display:!0},typeof H.lazy=="boolean"&&(typeof H.loaded=="boolean"&&H.loaded&&(ee.noLazyChildren=!(H.children&&H.children.length)),ee.loading=H.loading));const ce=[E(I,M,ee)];if(H){let re=0;const fe=(de,_e)=>{!(de&&de.length&&_e)||de.forEach(ae=>{const X={display:_e.display&&_e.expanded,level:_e.level+1,expanded:!1,noLazyChildren:!1,loading:!1},he=xo(ae,Z.value);if(he==null)throw new Error("For nested data item, row-key is required.");if(H={...z.value[he]},H&&(X.expanded=H.expanded,H.level=H.level||X.level,H.display=!!(H.expanded&&X.display),typeof H.lazy=="boolean"&&(typeof H.loaded=="boolean"&&H.loaded&&(X.noLazyChildren=!(H.children&&H.children.length)),X.loading=H.loading)),re++,ce.push(E(ae,M+re,X)),H){const $e=j.value[he]||ae[U.value];fe($e,H)}})};H.display=!0;const Ne=j.value[V]||I[U.value];fe(Ne,H)}return ce}else return E(I,M,void 0)},tooltipContent:u,tooltipTrigger:p}}const k4e={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var S4e=ye({name:"ElTableBody",props:k4e,setup(e){const t=Xt(),r=_t(hu),i=He("table"),{wrappedRowRender:n,tooltipContent:o,tooltipTrigger:s}=C4e(e),{onColumnsChange:l,onScrollableChange:a}=UZ(r);return Ve(e.store.states.hoverRow,(c,u)=>{if(!e.store.states.isComplex.value||!Rr)return;let p=window.requestAnimationFrame;p||(p=h=>window.setTimeout(h,16)),p(()=>{const h=t==null?void 0:t.vnode.el,m=Array.from((h==null?void 0:h.children)||[]).filter(_=>_==null?void 0:_.classList.contains(`${i.e("row")}`)),y=m[u],v=m[c];y&&Ns(y,"hover-row"),v&&Zc(v,"hover-row")})}),pu(()=>{var c;(c=Au)==null||c()}),{ns:i,onColumnsChange:l,onScrollableChange:a,wrappedRowRender:n,tooltipContent:o,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return Lt("tbody",{},[r.reduce((i,n)=>i.concat(e(n,i.length)),[])])}});function w4(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(n=>n.width===void 0)&&(r=[]);const i=n=>{const o={key:`${e.tableLayout}_${n.id}`,style:{},name:void 0};return t?o.style={width:`${n.width}px`}:o.name=n.id,o};return Lt("colgroup",{},r.map(n=>Lt("col",i(n))))}w4.props=["columns","tableLayout"];function E4e(){const e=_t(hu),t=e==null?void 0:e.store,r=O(()=>t.states.fixedLeafColumnsLength.value),i=O(()=>t.states.rightFixedColumns.value.length),n=O(()=>t.states.columns.value.length),o=O(()=>t.states.fixedColumns.value.length),s=O(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:i,columnsCount:n,leftFixedCount:o,rightFixedCount:s,columns:t.states.columns}}function T4e(e){const{columns:t}=E4e(),r=He("table");return{getCellClasses:(o,s)=>{const l=o[s],a=[r.e("cell"),l.id,l.align,l.labelClassName,...b4(r.b(),s,l.fixed,e.store)];return l.className&&a.push(l.className),l.children||a.push(r.is("leaf")),a},getCellStyles:(o,s)=>{const l=_4(s,o.fixed,e.store);return zv(l,"left"),zv(l,"right"),l},columns:t}}var A4e=ye({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:i}=T4e(e);return{ns:He("table"),getCellClasses:t,getCellStyles:r,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:i,sumText:n,ns:o}=this,s=this.store.states.data.value;let l=[];return i?l=i({columns:e,data:s}):e.forEach((a,c)=>{if(c===0){l[c]=n;return}const u=s.map(y=>Number(y[a.property])),p=[];let h=!0;u.forEach(y=>{if(!Number.isNaN(+y)){h=!1;const v=`${y}`.split(".")[1];p.push(v?v.length:0)}});const m=Math.max.apply(null,p);h?l[c]="":l[c]=u.reduce((y,v)=>{const _=Number(v);return Number.isNaN(+_)?y:Number.parseFloat((y+v).toFixed(Math.min(m,20)))},0)}),Lt("table",{class:o.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[w4({columns:e}),Lt("tbody",[Lt("tr",{},[...e.map((a,c)=>Lt("td",{key:c,colspan:a.colSpan,rowspan:a.rowSpan,class:r(e,c),style:t(a,c)},[Lt("div",{class:["cell",a.labelClassName]},[l[c]])]))])])])}});function M4e(e){return{setCurrentRow:u=>{e.commit("setCurrentRow",u)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(u,p)=>{e.toggleRowSelection(u,p,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:u=>{e.clearFilter(u)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(u,p)=>{e.toggleRowExpansionAdapter(u,p)},clearSort:()=>{e.clearSort()},sort:(u,p)=>{e.commit("sort",{prop:u,order:p})}}}function I4e(e,t,r,i){const n=F(!1),o=F(null),s=F(!1),l=V=>{s.value=V},a=F({width:null,height:null,headerHeight:null}),c=F(!1),u={display:"inline-block",verticalAlign:"middle"},p=F(),h=F(0),m=F(0),y=F(0),v=F(0);Ds(()=>{t.setHeight(e.height)}),Ds(()=>{t.setMaxHeight(e.maxHeight)}),Ve(()=>[e.currentRowKey,r.states.rowKey],([V,H])=>{!g(H)||!g(V)||r.setCurrentRowKey(`${V}`)},{immediate:!0}),Ve(()=>e.data,V=>{i.store.commit("setData",V)},{immediate:!0,deep:!0}),Ds(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const _=()=>{i.store.commit("setHoverRow",null),i.hoverState&&(i.hoverState=null)},x=(V,H)=>{const{pixelX:ee,pixelY:ce}=H;Math.abs(ee)>=Math.abs(ce)&&(i.refs.bodyWrapper.scrollLeft+=H.pixelX/5)},S=O(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),C=O(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),E=()=>{S.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};er(async()=>{await Ct(),r.updateColumns(),L(),requestAnimationFrame(E);const V=i.vnode.el,H=i.refs.headerWrapper;e.flexible&&V&&V.parentElement&&(V.parentElement.style.minWidth="0"),a.value={width:p.value=V.offsetWidth,height:V.offsetHeight,headerHeight:e.showHeader&&H?H.offsetHeight:null},r.states.columns.value.forEach(ee=>{ee.filteredValue&&ee.filteredValue.length&&i.store.commit("filterChange",{column:ee,values:ee.filteredValue,silent:!0})}),i.$ready=!0});const T=(V,H)=>{if(!V)return;const ee=Array.from(V.classList).filter(ce=>!ce.startsWith("is-scrolling-"));ee.push(t.scrollX.value?H:"is-scrolling-none"),V.className=ee.join(" ")},w=V=>{const{tableWrapper:H}=i.refs;T(H,V)},I=V=>{const{tableWrapper:H}=i.refs;return!!(H&&H.classList.contains(V))},M=function(){if(!i.refs.scrollBarRef)return;if(!t.scrollX.value){const de="is-scrolling-none";I(de)||w(de);return}const V=i.refs.scrollBarRef.wrapRef;if(!V)return;const{scrollLeft:H,offsetWidth:ee,scrollWidth:ce}=V,{headerWrapper:re,footerWrapper:fe}=i.refs;re&&(re.scrollLeft=H),fe&&(fe.scrollLeft=H);const Ne=ce-ee-1;H>=Ne?w("is-scrolling-right"):w(H===0?"is-scrolling-left":"is-scrolling-middle")},L=()=>{!i.refs.scrollBarRef||(i.refs.scrollBarRef.wrapRef&&Si(i.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?Uo(i.vnode.el,R):Si(window,"resize",R),Uo(i.refs.bodyWrapper,()=>{var V,H;R(),(H=(V=i.refs)==null?void 0:V.scrollBarRef)==null||H.update()}))},R=()=>{var V,H,ee;const ce=i.vnode.el;if(!i.$ready||!ce)return;let re=!1;const{width:fe,height:Ne,headerHeight:de}=a.value,_e=p.value=ce.offsetWidth;fe!==_e&&(re=!0);const ae=ce.offsetHeight;(e.height||S.value)&&Ne!==ae&&(re=!0);const X=e.tableLayout==="fixed"?i.refs.headerWrapper:(V=i.refs.tableHeaderRef)==null?void 0:V.$el;e.showHeader&&(X==null?void 0:X.offsetHeight)!==de&&(re=!0),h.value=((H=i.refs.tableWrapper)==null?void 0:H.scrollHeight)||0,y.value=(X==null?void 0:X.scrollHeight)||0,v.value=((ee=i.refs.footerWrapper)==null?void 0:ee.offsetHeight)||0,m.value=h.value-y.value-v.value,re&&(a.value={width:_e,height:ae,headerHeight:e.showHeader&&(X==null?void 0:X.offsetHeight)||0},E())},W=An(),z=O(()=>{const{bodyWidth:V,scrollY:H,gutterWidth:ee}=t;return V.value?`${V.value-(H.value?ee:0)}px`:""}),j=O(()=>e.maxHeight?"fixed":e.tableLayout),U=O(()=>{if(e.data&&e.data.length)return null;let V="100%";e.height&&m.value&&(V=`${m.value}px`);const H=p.value;return{width:H?`${H}px`:"",height:V}}),Z=O(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),Q=O(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${y.value+v.value}px)`};{const V=e.maxHeight;if(h.value>=Number(V))return{maxHeight:`${h.value-y.value-v.value}px`}}}return{}});return{isHidden:n,renderExpanded:o,setDragVisible:l,isGroup:c,handleMouseLeave:_,handleHeaderFooterMousewheel:x,tableSize:W,emptyBlockStyle:U,handleFixedMousewheel:(V,H)=>{const ee=i.refs.bodyWrapper;if(Math.abs(H.spinY)>0){const ce=ee.scrollTop;H.pixelY<0&&ce!==0&&V.preventDefault(),H.pixelY>0&&ee.scrollHeight-ee.clientHeight>ce&&V.preventDefault(),ee.scrollTop+=Math.ceil(H.pixelY/5)}else ee.scrollLeft+=Math.ceil(H.pixelX/5)},resizeProxyVisible:s,bodyWidth:z,resizeState:a,doLayout:E,tableBodyStyles:C,tableLayout:j,scrollbarViewStyle:u,tableInnerStyle:Z,scrollbarStyle:Q}}var P4e={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const $4e=()=>{const e=F(),t=(o,s)=>{const l=e.value;l&&l.scrollTo(o,s)},r=(o,s)=>{const l=e.value;l&&Gt(s)&&["Top","Left"].includes(o)&&l[`setScroll${o}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>r("Top",o),setScrollLeft:o=>r("Left",o)}};let O4e=1;const L4e=ye({name:"ElTable",directives:{Mousewheel:JSe},components:{TableHeader:_4e,TableBody:S4e,TableFooter:A4e,ElScrollbar:Ld,hColgroup:w4},props:P4e,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Hr(),r=He("table"),i=Xt();cr(hu,i);const n=s4e(i,e);i.store=n;const o=new a4e({store:i.store,table:i,fit:e.fit,showHeader:e.showHeader});i.layout=o;const s=O(()=>(n.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:p,toggleAllSelection:h,toggleRowExpansion:m,clearSort:y,sort:v}=M4e(n),{isHidden:_,renderExpanded:x,setDragVisible:S,isGroup:C,handleMouseLeave:E,handleHeaderFooterMousewheel:T,tableSize:w,emptyBlockStyle:I,handleFixedMousewheel:M,resizeProxyVisible:L,bodyWidth:R,resizeState:W,doLayout:z,tableBodyStyles:j,tableLayout:U,scrollbarViewStyle:Z,tableInnerStyle:Q,scrollbarStyle:B}=I4e(e,o,n,i),{scrollBarRef:V,scrollTo:H,setScrollLeft:ee,setScrollTop:ce}=$4e(),re=as(z,50),fe=`${r.namespace.value}-table_${O4e++}`;i.tableId=fe,i.state={isGroup:C,resizeState:W,doLayout:z,debouncedUpdateLayout:re};const Ne=O(()=>e.sumText||t("el.table.sumText")),de=O(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:o,store:n,handleHeaderFooterMousewheel:T,handleMouseLeave:E,tableId:fe,tableSize:w,isHidden:_,isEmpty:s,renderExpanded:x,resizeProxyVisible:L,resizeState:W,isGroup:C,bodyWidth:R,tableBodyStyles:j,emptyBlockStyle:I,debouncedUpdateLayout:re,handleFixedMousewheel:M,setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:p,toggleAllSelection:h,toggleRowExpansion:m,clearSort:y,doLayout:z,sort:v,t,setDragVisible:S,context:i,computedSumText:Ne,computedEmptyText:de,tableLayout:U,scrollbarViewStyle:Z,tableInnerStyle:Q,scrollbarStyle:B,scrollBarRef:V,scrollTo:H,setScrollLeft:ee,setScrollTop:ce}}}),R4e=["data-prefix"],D4e={ref:"hiddenColumns",class:"hidden-columns"};function N4e(e,t,r,i,n,o){const s=Ft("hColgroup"),l=Ft("table-header"),a=Ft("table-body"),c=Ft("el-scrollbar"),u=Ft("table-footer"),p=Sv("mousewheel");return $(),K("div",{ref:"tableWrapper",class:N([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:St(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=h=>e.handleMouseLeave())},[G("div",{class:N(e.ns.e("inner-wrapper")),style:St(e.tableInnerStyle)},[G("div",D4e,[Be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?kt(($(),K("div",{key:0,ref:"headerWrapper",class:N(e.ns.e("header-wrapper"))},[G("table",{ref:"tableHeader",class:N(e.ns.e("header")),style:St(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Y(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Y(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),G("div",{ref:"bodyWrapper",class:N(e.ns.e("body-wrapper"))},[Y(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:me(()=>[G("table",{ref:"tableBody",class:N(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:St({width:e.bodyWidth,tableLayout:e.tableLayout})},[Y(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?($(),Te(l,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ke("v-if",!0),Y(a,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?($(),K("div",{key:0,ref:"emptyBlock",style:St(e.emptyBlockStyle),class:N(e.ns.e("empty-block"))},[G("span",{class:N(e.ns.e("empty-text"))},[Be(e.$slots,"empty",{},()=>[Ir(rt(e.computedEmptyText),1)])],2)],6)):ke("v-if",!0),e.$slots.append?($(),K("div",{key:1,ref:"appendWrapper",class:N(e.ns.e("append-wrapper"))},[Be(e.$slots,"append")],2)):ke("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?kt(($(),K("div",{key:1,ref:"footerWrapper",class:N(e.ns.e("footer-wrapper"))},[Y(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:St(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Vt,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),e.border||e.isGroup?($(),K("div",{key:2,class:N(e.ns.e("border-left-patch"))},null,2)):ke("v-if",!0)],6),kt(G("div",{ref:"resizeProxy",class:N(e.ns.e("column-resize-proxy"))},null,2),[[Vt,e.resizeProxyVisible]])],46,R4e)}var F4e=ot(L4e,[["render",N4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const z4e={selection:"table-column--selection",expand:"table__expand-column"},j4e={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},V4e=e=>z4e[e]||"",B4e={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Lt(sa,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:i}){return Lt(sa,{disabled:t.selectable?!t.selectable.call(null,e,i):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:n=>n.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const i=e.index;return typeof i=="number"?r=t+i:typeof i=="function"&&(r=i(t)),Lt("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:i}=t,n=[i.e("expand-icon")];return r&&n.push(i.em("expand-icon","expanded")),Lt("div",{class:n,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Lt(At,null,{default:()=>[Lt(os)]})]})},sortable:!1,resizable:!1}};function U4e({row:e,column:t,$index:r}){var i;const n=t.property,o=n&&mC(e,n).value;return t&&t.formatter?t.formatter(e,t,o,r):((i=o==null?void 0:o.toString)==null?void 0:i.call(o))||""}function W4e({row:e,treeNode:t,store:r},i=!1){const{ns:n}=r;if(!t)return i?[Lt("span",{class:n.e("placeholder")})]:null;const o=[],s=function(l){l.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&o.push(Lt("span",{class:n.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[n.e("expand-icon"),t.expanded?n.em("expand-icon","expanded"):""];let a=os;t.loading&&(a=zh),o.push(Lt("div",{class:l,onClick:s},{default:()=>[Lt(At,{class:{[n.is("loading")]:t.loading}},{default:()=>[Lt(a)]})]}))}else o.push(Lt("span",{class:n.e("placeholder")}));return o}function sV(e,t){return e.reduce((r,i)=>(r[i]=i,r),t)}function H4e(e,t){const r=Xt();return{registerComplexWatchers:()=>{const o=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=sV(o,s);Object.keys(l).forEach(a=>{const c=s[a];Mr(t,c)&&Ve(()=>t[c],u=>{let p=u;c==="width"&&a==="realWidth"&&(p=v4(u)),c==="minWidth"&&a==="realMinWidth"&&(p=NZ(u)),r.columnConfig.value[c]=p,r.columnConfig.value[a]=p;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=sV(o,s);Object.keys(l).forEach(a=>{const c=s[a];Mr(t,c)&&Ve(()=>t[c],u=>{r.columnConfig.value[a]=u})})}}}function G4e(e,t,r){const i=Xt(),n=F(""),o=F(!1),s=F(),l=F(),a=He("table");Ds(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),Ds(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const c=O(()=>{let C=i.vnode.vParent||i.parent;for(;C&&!C.tableId&&!C.columnId;)C=C.vnode.vParent||C.parent;return C}),u=O(()=>{const{store:C}=i.parent;if(!C)return!1;const{treeData:E}=C.states,T=E.value;return T&&Object.keys(T).length>0}),p=F(v4(e.width)),h=F(NZ(e.minWidth)),m=C=>(p.value&&(C.width=p.value),h.value&&(C.minWidth=h.value),!p.value&&h.value&&(C.width=void 0),C.minWidth||(C.minWidth=80),C.realWidth=Number(C.width===void 0?C.minWidth:C.width),C),y=C=>{const E=C.type,T=B4e[E]||{};Object.keys(T).forEach(I=>{const M=T[I];I!=="className"&&M!==void 0&&(C[I]=M)});const w=V4e(E);if(w){const I=`${g(a.namespace)}-${w}`;C.className=C.className?`${C.className} ${I}`:I}return C},v=C=>{Array.isArray(C)?C.forEach(T=>E(T)):E(C);function E(T){var w;((w=T==null?void 0:T.type)==null?void 0:w.name)==="ElTableColumn"&&(T.vParent=i)}};return{columnId:n,realAlign:s,isSubColumn:o,realHeaderAlign:l,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:y,setColumnRenders:C=>{e.renderHeader||C.type!=="selection"&&(C.renderHeader=T=>{i.columnConfig.value.label;const w=t.header;return w?w(T):C.label});let E=C.renderCell;return C.type==="expand"?(C.renderCell=T=>Lt("div",{class:"cell"},[E(T)]),r.value.renderExpanded=T=>t.default?t.default(T):t.default):(E=E||U4e,C.renderCell=T=>{let w=null;if(t.default){const R=t.default(T);w=R.some(W=>W.type!==ns)?R:E(T)}else w=E(T);const I=u.value&&T.cellIndex===0&&T.column.type!=="selection",M=W4e(T,I),L={class:"cell",style:{}};return C.showOverflowTooltip&&(L.class=`${L.class} ${g(a.namespace)}-tooltip`,L.style={width:`${(T.column.realWidth||Number(T.column.width))-1}px`}),v(w),Lt("div",L,[M,w])}),C},getPropsData:(...C)=>C.reduce((E,T)=>(Array.isArray(T)&&T.forEach(w=>{E[w]=e[w]}),E),{}),getColumnElIndex:(C,E)=>Array.prototype.indexOf.call(C,E)}}var q4e={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Y4e=1;var HZ=ye({name:"ElTableColumn",components:{ElCheckbox:sa},props:q4e,setup(e,{slots:t}){const r=Xt(),i=F({}),n=O(()=>{let S=r.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:o,registerComplexWatchers:s}=H4e(n,e),{columnId:l,isSubColumn:a,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:h,setColumnRenders:m,getPropsData:y,getColumnElIndex:v,realAlign:_}=G4e(e,t,n),x=u.value;l.value=`${x.tableId||x.columnId}_column_${Y4e++}`,WE(()=>{a.value=n.value!==x;const S=e.type||"default",C=e.sortable===""?!0:e.sortable,E={...j4e[S],id:l.value,type:S,property:e.prop||e.property,align:_,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:C,index:e.index,rawColumnKey:r.vnode.key};let L=y(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);L=KRe(E,L),L=QRe(m,p,h)(L),i.value=L,o(),s()}),er(()=>{var S;const C=u.value,E=a.value?C.vnode.el.children:(S=C.refs.hiddenColumns)==null?void 0:S.children,T=()=>v(E||[],r.vnode.el);i.value.getColumnIndex=T,T()>-1&&n.value.store.commit("insertColumn",i.value,a.value?C.columnConfig.value:null)}),Ii(()=>{n.value.store.commit("removeColumn",i.value,a.value?x.columnConfig.value:null)}),r.columnId=l.value,r.columnConfig=i},render(){var e,t,r;try{const i=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),n=[];if(Array.isArray(i))for(const s of i)((r=s.type)==null?void 0:r.name)==="ElTableColumn"||s.shapeFlag&2?n.push(s):s.type===bt&&Array.isArray(s.children)&&s.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!Kt(l==null?void 0:l.children)&&n.push(l)});return Lt("div",n)}catch{return Lt("div",[])}}});const K4e=lr(F4e,{TableColumn:HZ}),Z4e=Hi(HZ);var qw=(e=>(e.ASC="asc",e.DESC="desc",e))(qw||{}),Yw=(e=>(e.CENTER="center",e.RIGHT="right",e))(Yw||{}),GZ=(e=>(e.LEFT="left",e.RIGHT="right",e))(GZ||{});const QP={asc:"desc",desc:"asc"},Kw=Symbol("placeholder"),Q4e=(e,t,r)=>{var i;const n={flexGrow:0,flexShrink:0,...r?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};r||(n.flexShrink=1);const o={...(i=e.style)!=null?i:{},...n,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function J4e(e,t,r){const i=O(()=>g(t).filter(v=>!v.hidden)),n=O(()=>g(i).filter(v=>v.fixed==="left"||v.fixed===!0)),o=O(()=>g(i).filter(v=>v.fixed==="right")),s=O(()=>g(i).filter(v=>!v.fixed)),l=O(()=>{const v=[];return g(n).forEach(_=>{v.push({..._,placeholderSign:Kw})}),g(s).forEach(_=>{v.push(_)}),g(o).forEach(_=>{v.push({..._,placeholderSign:Kw})}),v}),a=O(()=>g(n).length||g(o).length),c=O(()=>g(t).reduce((_,x)=>(_[x.key]=Q4e(x,g(r),e.fixed),_),{})),u=O(()=>g(i).reduce((v,_)=>v+_.width,0)),p=v=>g(t).find(_=>_.key===v),h=v=>g(c)[v],m=(v,_)=>{v.width=_};function y(v){var _;const{key:x}=v.currentTarget.dataset;if(!x)return;const{sortState:S,sortBy:C}=e;let E=qw.ASC;yr(S)?E=QP[S[x]]:E=QP[C.order],(_=e.onColumnSort)==null||_.call(e,{column:p(x),key:x,order:E})}return{columns:t,columnsStyles:c,columnsTotalWidth:u,fixedColumnsOnLeft:n,fixedColumnsOnRight:o,hasFixedColumns:a,mainColumns:l,normalColumns:s,visibleColumns:i,getColumn:p,getColumnStyle:h,updateColumnWidth:m,onColumnSorted:y}}const X4e=(e,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:n})=>{const o=F({scrollLeft:0,scrollTop:0});function s(m){var y,v,_;const{scrollTop:x}=m;(y=t.value)==null||y.scrollTo(m),(v=r.value)==null||v.scrollToTop(x),(_=i.value)==null||_.scrollToTop(x)}function l(m){o.value=m,s(m)}function a(m){o.value.scrollTop=m,s(g(o))}function c(m){var y,v;o.value.scrollLeft=m,(v=(y=t.value)==null?void 0:y.scrollTo)==null||v.call(y,g(o))}function u(m){var y;l(m),(y=e.onScroll)==null||y.call(e,m)}function p({scrollTop:m}){const{scrollTop:y}=g(o);m!==y&&a(m)}function h(m,y="auto"){var v;(v=t.value)==null||v.scrollToRow(m,y)}return Ve(()=>g(o).scrollTop,(m,y)=>{m>y&&n()}),{scrollPos:o,scrollTo:l,scrollToLeft:c,scrollToTop:a,scrollToRow:h,onScroll:u,onVerticalScroll:p}},eDe=(e,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:n})=>{const o=Xt(),{emit:s}=o,l=gi(!1),a=gi(null),c=F(e.defaultExpandedRowKeys||[]),u=F(-1),p=gi(null),h=F({}),m=F({}),y=gi({}),v=gi({}),_=gi({}),x=O(()=>Gt(e.estimatedRowHeight));function S(L){var R;(R=e.onRowsRendered)==null||R.call(e,L),L.rowCacheEnd>g(u)&&(u.value=L.rowCacheEnd)}function C({hovered:L,rowKey:R}){a.value=L?R:null}function E({expanded:L,rowData:R,rowIndex:W,rowKey:z}){var j,U;const Z=[...g(c)],Q=Z.indexOf(z);L?Q===-1&&Z.push(z):Q>-1&&Z.splice(Q,1),c.value=Z,s("update:expandedRowKeys",Z),(j=e.onRowExpand)==null||j.call(e,{expanded:L,rowData:R,rowIndex:W,rowKey:z}),(U=e.onExpandedRowsChange)==null||U.call(e,Z)}const T=as(()=>{var L,R,W,z;l.value=!0,h.value={...g(h),...g(m)},w(g(p),!1),m.value={},p.value=null,(L=t.value)==null||L.forceUpdate(),(R=r.value)==null||R.forceUpdate(),(W=i.value)==null||W.forceUpdate(),(z=o.proxy)==null||z.$forceUpdate(),l.value=!1},0);function w(L,R=!1){!g(x)||[t,r,i].forEach(W=>{const z=g(W);z&&z.resetAfterRowIndex(L,R)})}function I(L,R,W){const z=g(p);(z===null||z>W)&&(p.value=W),m.value[L]=R}function M({rowKey:L,height:R,rowIndex:W},z){z?z===GZ.RIGHT?_.value[L]=R:y.value[L]=R:v.value[L]=R;const j=Math.max(...[y,_,v].map(U=>U.value[L]||0));g(h)[L]!==j&&(I(L,j,W),T())}return Ve(u,()=>n()),{hoveringRowKey:a,expandedRowKeys:c,lastRenderedRowIndex:u,isDynamic:x,isResetting:l,rowHeights:h,resetAfterIndex:w,onRowExpanded:E,onRowHovered:C,onRowsRendered:S,onRowHeightChange:M}},tDe=(e,{expandedRowKeys:t,lastRenderedRowIndex:r,resetAfterIndex:i})=>{const n=F({}),o=O(()=>{const l={},{data:a,rowKey:c}=e,u=g(t);if(!u||!u.length)return a;const p=[],h=new Set;u.forEach(y=>h.add(y));let m=a.slice();for(m.forEach(y=>l[y[c]]=0);m.length>0;){const y=m.shift();p.push(y),h.has(y[c])&&Array.isArray(y.children)&&y.children.length>0&&(m=[...y.children,...m],y.children.forEach(v=>l[v[c]]=l[y[c]]+1))}return n.value=l,p}),s=O(()=>{const{data:l,expandColumnKey:a}=e;return a?g(o):l});return Ve(s,(l,a)=>{l!==a&&(r.value=-1,i(0,!0))}),{data:s,depthMap:n}},rDe=(e,t)=>e+t,IC=e=>wt(e)?e.reduce(rDe,0):e,ng=(e,t,r={})=>qt(e)?e(t):e!=null?e:r,rh=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Tn(e[t])}),e),qZ=e=>Ei(e)?t=>Lt(e,t):e,iDe=(e,{columnsTotalWidth:t,data:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:n})=>{const o=O(()=>{const{fixed:C,width:E,vScrollbarSize:T}=e,w=E-T;return C?Math.max(Math.round(g(t)),w):w}),s=O(()=>g(o)+(e.fixed?e.vScrollbarSize:0)),l=O(()=>{const{height:C=0,maxHeight:E=0,footerHeight:T,hScrollbarSize:w}=e;if(E>0){const I=g(y),M=g(a),R=g(m)+I+M+w;return Math.min(R,E-T)}return C-T}),a=O(()=>{const{rowHeight:C,estimatedRowHeight:E}=e,T=g(r);return Gt(E)?T.length*E:T.length*C}),c=O(()=>{const{maxHeight:C}=e,E=g(l);if(Gt(C)&&C>0)return E;const T=g(a)+g(m)+g(y);return Math.min(E,T)}),u=C=>C.width,p=O(()=>IC(g(i).map(u))),h=O(()=>IC(g(n).map(u))),m=O(()=>IC(e.headerHeight)),y=O(()=>{var C;return(((C=e.fixedData)==null?void 0:C.length)||0)*e.rowHeight}),v=O(()=>g(l)-g(m)-g(y)),_=O(()=>{const{style:C={},height:E,width:T}=e;return rh({...C,height:E,width:T})}),x=O(()=>rh({height:e.footerHeight})),S=O(()=>({top:Tn(g(m)),bottom:Tn(e.footerHeight),width:Tn(e.width)}));return{bodyWidth:o,fixedTableHeight:c,mainTableHeight:l,leftTableWidth:p,rightTableWidth:h,headerWidth:s,rowsHeight:a,windowHeight:v,footerHeight:x,emptyStyle:S,rootStyle:_,headerHeight:m}},nDe=e=>{const t=F(),r=F(0),i=F(0);let n;return er(()=>{n=Uo(t,([o])=>{const{width:s,height:l}=o.contentRect,{paddingLeft:a,paddingRight:c,paddingTop:u,paddingBottom:p}=getComputedStyle(o.target),h=Number.parseInt(a)||0,m=Number.parseInt(c)||0,y=Number.parseInt(u)||0,v=Number.parseInt(p)||0;r.value=s-h-m,i.value=l-y-v}).stop}),Ii(()=>{n==null||n()}),Ve([r,i],([o,s])=>{var l;(l=e.onResize)==null||l.call(e,{width:o,height:s})}),{sizer:t,width:r,height:i}};function oDe(e){const t=F(),r=F(),i=F(),{columns:n,columnsStyles:o,columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:a,hasFixedColumns:c,mainColumns:u,onColumnSorted:p}=J4e(e,Ni(e,"columns"),Ni(e,"fixed")),{scrollTo:h,scrollToLeft:m,scrollToTop:y,scrollToRow:v,onScroll:_,onVerticalScroll:x,scrollPos:S}=X4e(e,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:ne}),{expandedRowKeys:C,hoveringRowKey:E,lastRenderedRowIndex:T,isDynamic:w,isResetting:I,rowHeights:M,resetAfterIndex:L,onRowExpanded:R,onRowHeightChange:W,onRowHovered:z,onRowsRendered:j}=eDe(e,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:ne}),{data:U,depthMap:Z}=tDe(e,{expandedRowKeys:C,lastRenderedRowIndex:T,resetAfterIndex:L}),{bodyWidth:Q,fixedTableHeight:B,mainTableHeight:V,leftTableWidth:H,rightTableWidth:ee,headerWidth:ce,rowsHeight:re,windowHeight:fe,footerHeight:Ne,emptyStyle:de,rootStyle:_e,headerHeight:ae}=iDe(e,{columnsTotalWidth:s,data:U,fixedColumnsOnLeft:l,fixedColumnsOnRight:a}),X=gi(!1),he=F(),$e=O(()=>{const pe=g(U).length===0;return wt(e.fixedData)?e.fixedData.length===0&&pe:pe});function Je(pe){const{estimatedRowHeight:ge,rowHeight:Se,rowKey:xe}=e;return ge?g(M)[g(U)[pe][xe]]||ge:Se}function ne(){const{onEndReached:pe}=e;if(!pe)return;const{scrollTop:ge}=g(S),Se=g(re),xe=g(fe),be=Se-(ge+xe)+e.hScrollbarSize;g(T)>=0&&Se===ge+g(V)-g(ae)&&pe(be)}return Ve(()=>e.expandedRowKeys,pe=>C.value=pe,{deep:!0}),{columns:n,containerRef:he,mainTableRef:t,leftTableRef:r,rightTableRef:i,isDynamic:w,isResetting:I,isScrolling:X,hoveringRowKey:E,hasFixedColumns:c,columnsStyles:o,columnsTotalWidth:s,data:U,expandedRowKeys:C,depthMap:Z,fixedColumnsOnLeft:l,fixedColumnsOnRight:a,mainColumns:u,bodyWidth:Q,emptyStyle:de,rootStyle:_e,headerWidth:ce,footerHeight:Ne,mainTableHeight:V,fixedTableHeight:B,leftTableWidth:H,rightTableWidth:ee,showEmpty:$e,getRowHeight:Je,onColumnSorted:p,onRowHovered:z,onRowExpanded:R,onRowsRendered:j,onRowHeightChange:W,scrollTo:h,scrollToLeft:m,scrollToTop:y,scrollToRow:v,onScroll:_,onVerticalScroll:x}}const x4=Symbol("tableV2"),YZ=String,K1={type:Oe(Array),required:!0},C4={type:Oe(Array)},KZ={...C4,required:!0},sDe=String,lV={type:Oe(Array),default:()=>Mi([])},om={type:Number,required:!0},ZZ={type:Oe([String,Number,Symbol]),default:"id"},aV={type:Oe(Object)},xm=ct({class:String,columns:K1,columnsStyles:{type:Oe(Object),required:!0},depth:Number,expandColumnKey:sDe,estimatedRowHeight:{...Bm.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Oe(Function)},onRowHover:{type:Oe(Function)},onRowHeightChange:{type:Oe(Function)},rowData:{type:Oe(Object),required:!0},rowEventHandlers:{type:Oe(Object)},rowIndex:{type:Number,required:!0},rowKey:ZZ,style:{type:Oe(Object)}}),YA={type:Number,required:!0},k4=ct({class:String,columns:K1,fixedHeaderData:{type:Oe(Array)},headerData:{type:Oe(Array),required:!0},headerHeight:{type:Oe([Number,Array]),default:50},rowWidth:YA,rowHeight:{type:Number,default:50},height:YA,width:YA}),PC=ct({columns:K1,data:KZ,fixedData:C4,estimatedRowHeight:xm.estimatedRowHeight,width:om,height:om,headerWidth:om,headerHeight:k4.headerHeight,bodyWidth:om,rowHeight:om,cache:_Z.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Bm.scrollbarAlwaysOn,scrollbarStartGap:Bm.scrollbarStartGap,scrollbarEndGap:Bm.scrollbarEndGap,class:YZ,style:aV,containerStyle:aV,getRowHeight:{type:Oe(Function),required:!0},rowKey:xm.rowKey,onRowsRendered:{type:Oe(Function)},onScroll:{type:Oe(Function)}}),lDe=ct({cache:PC.cache,estimatedRowHeight:xm.estimatedRowHeight,rowKey:ZZ,headerClass:{type:Oe([String,Function])},headerProps:{type:Oe([Object,Function])},headerCellProps:{type:Oe([Object,Function])},headerHeight:k4.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:Oe([String,Function])},rowProps:{type:Oe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:Oe([Object,Function])},columns:K1,data:KZ,dataGetter:{type:Oe(Function)},fixedData:C4,expandColumnKey:xm.expandColumnKey,expandedRowKeys:lV,defaultExpandedRowKeys:lV,class:YZ,fixed:Boolean,style:{type:Oe(Object)},width:om,height:om,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Bm.hScrollbarSize,vScrollbarSize:Bm.vScrollbarSize,scrollbarAlwaysOn:CZ.alwaysOn,sortBy:{type:Oe(Object),default:()=>({})},sortState:{type:Oe(Object),default:void 0},onColumnSort:{type:Oe(Function)},onExpandedRowsChange:{type:Oe(Function)},onEndReached:{type:Oe(Function)},onRowExpand:xm.onRowExpand,onScroll:PC.onScroll,onRowsRendered:PC.onRowsRendered,rowEventHandlers:xm.rowEventHandlers}),S4=(e,{slots:t})=>{var r;const{cellData:i,style:n}=e,o=((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||"";return Y("div",{class:e.class,title:o,style:n},[t.default?t.default(e):o])};S4.displayName="ElTableV2Cell";S4.inheritAttrs=!1;const E4=(e,{slots:t})=>{var r,i;return t.default?t.default(e):Y("div",{class:e.class,title:(r=e.column)==null?void 0:r.title},[(i=e.column)==null?void 0:i.title])};E4.displayName="ElTableV2HeaderCell";E4.inheritAttrs=!1;const aDe=ct({class:String,columns:K1,columnsStyles:{type:Oe(Object),required:!0},headerIndex:Number,style:{type:Oe(Object)}}),cDe=ye({name:"ElTableV2HeaderRow",props:aDe,setup(e,{slots:t}){return()=>{const{columns:r,columnsStyles:i,headerIndex:n,style:o}=e;let s=r.map((l,a)=>t.cell({columns:r,column:l,columnIndex:a,headerIndex:n,style:i[l.key]}));return t.header&&(s=t.header({cells:s.map(l=>wt(l)&&l.length===1?l[0]:l),columns:r,headerIndex:n})),Y("div",{class:e.class,style:o},[s])}}}),uDe="ElTableV2Header",dDe=ye({name:uDe,props:k4,setup(e,{slots:t,expose:r}){const i=He("table-v2"),n=F(),o=O(()=>rh({width:e.width,height:e.height})),s=O(()=>rh({width:e.rowWidth,height:e.height})),l=O(()=>Mv(g(e.headerHeight))),a=p=>{const h=g(n);Ct(()=>{h!=null&&h.scroll&&h.scroll({left:p})})},c=()=>{const p=i.e("fixed-header-row"),{columns:h,fixedHeaderData:m,rowHeight:y}=e;return m==null?void 0:m.map((v,_)=>{var x;const S=rh({height:y,width:"100%"});return(x=t.fixed)==null?void 0:x.call(t,{class:p,columns:h,rowData:v,rowIndex:-(_+1),style:S})})},u=()=>{const p=i.e("dynamic-header-row"),{columns:h}=e;return g(l).map((m,y)=>{var v;const _=rh({width:"100%",height:m});return(v=t.dynamic)==null?void 0:v.call(t,{class:p,columns:h,headerIndex:y,style:_})})};return r({scrollToLeft:a}),()=>{if(!(e.height<=0))return Y("div",{ref:n,class:e.class,style:g(o)},[Y("div",{style:g(s),class:i.e("header")},[u(),c()])])}}}),pDe=e=>{const{isScrolling:t}=_t(x4),r=F(!1),i=F(),n=O(()=>Gt(e.estimatedRowHeight)&&e.rowIndex>=0),o=(a=!1)=>{const c=g(i);if(!c)return;const{columns:u,onRowHeightChange:p,rowKey:h,rowIndex:m,style:y}=e,{height:v}=c.getBoundingClientRect();r.value=!0,Ct(()=>{if(a||v!==Number.parseInt(y.height)){const _=u[0],x=(_==null?void 0:_.placeholderSign)===Kw;p==null||p({rowKey:h,height:v,rowIndex:m},_&&!x&&_.fixed)}})},s=O(()=>{const{rowData:a,rowIndex:c,rowKey:u,onRowHover:p}=e,h=e.rowEventHandlers||{},m={};return Object.entries(h).forEach(([y,v])=>{qt(v)&&(m[y]=_=>{v({event:_,rowData:a,rowIndex:c,rowKey:u})})}),p&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:y,hovered:v})=>{const _=m[y];m[y]=x=>{p({event:x,hovered:v,rowData:a,rowIndex:c,rowKey:u}),_==null||_(x)}}),m}),l=a=>{const{onRowExpand:c,rowData:u,rowIndex:p,rowKey:h}=e;c==null||c({expanded:a,rowData:u,rowIndex:p,rowKey:h})};return er(()=>{g(n)&&o(!0)}),{isScrolling:t,measurable:n,measured:r,rowRef:i,eventHandlers:s,onExpand:l}},hDe="ElTableV2TableRow",fDe=ye({name:hDe,props:xm,setup(e,{expose:t,slots:r,attrs:i}){const{eventHandlers:n,isScrolling:o,measurable:s,measured:l,rowRef:a,onExpand:c}=pDe(e);return t({onExpand:c}),()=>{const{columns:u,columnsStyles:p,expandColumnKey:h,depth:m,rowData:y,rowIndex:v,style:_}=e;let x=u.map((S,C)=>{const E=wt(y.children)&&y.children.length>0&&S.key===h;return r.cell({column:S,columns:u,columnIndex:C,depth:m,style:p[S.key],rowData:y,rowIndex:v,isScrolling:g(o),expandIconProps:E?{rowData:y,rowIndex:v,onExpand:c}:void 0})});if(r.row&&(x=r.row({cells:x.map(S=>wt(S)&&S.length===1?S[0]:S),style:_,columns:u,depth:m,rowData:y,rowIndex:v,isScrolling:g(o)})),g(s)){const{height:S,...C}=_||{},E=g(l);return Y("div",sr({ref:a,class:e.class,style:E?_:C},i,g(n)),[x])}return Y("div",sr(i,{ref:a,class:e.class,style:_},g(n)),[x])}}}),mDe=e=>{const{sortOrder:t}=e;return Y(At,{size:14,class:e.class},{default:()=>[t===qw.ASC?Y(Qwe,null,null):Y(Hwe,null,null)]})},gDe=e=>{const{expanded:t,expandable:r,onExpand:i,style:n,size:o}=e,s={onClick:r?()=>i(!t):void 0,class:e.class};return Y(At,sr(s,{size:o,style:n}),{default:()=>[Y(os,null,null)]})},yDe="ElTableV2Grid",vDe=e=>{const t=F(),r=F(),i=O(()=>{const{data:v,rowHeight:_,estimatedRowHeight:x}=e;if(!x)return v.length*_}),n=O(()=>{const{fixedData:v,rowHeight:_}=e;return((v==null?void 0:v.length)||0)*_}),o=O(()=>IC(e.headerHeight)),s=O(()=>{const{height:v}=e;return Math.max(0,v-g(o)-g(n))}),l=O(()=>g(o)+g(n)>0),a=({data:v,rowIndex:_})=>v[_][e.rowKey];function c({rowCacheStart:v,rowCacheEnd:_,rowVisibleStart:x,rowVisibleEnd:S}){var C;(C=e.onRowsRendered)==null||C.call(e,{rowCacheStart:v,rowCacheEnd:_,rowVisibleStart:x,rowVisibleEnd:S})}function u(v,_){var x;(x=r.value)==null||x.resetAfterRowIndex(v,_)}function p(v,_){const x=g(t),S=g(r);!x||!S||(yr(v)?(x.scrollToLeft(v.scrollLeft),S.scrollTo(v)):(x.scrollToLeft(v),S.scrollTo({scrollLeft:v,scrollTop:_})))}function h(v){var _;(_=g(r))==null||_.scrollTo({scrollTop:v})}function m(v,_){var x;(x=g(r))==null||x.scrollToItem(v,1,_)}function y(){var v,_;(v=g(r))==null||v.$forceUpdate(),(_=g(t))==null||_.$forceUpdate()}return{bodyRef:r,forceUpdate:y,fixedRowHeight:n,gridHeight:s,hasHeader:l,headerHeight:o,headerRef:t,totalHeight:i,itemKey:a,onItemRendered:c,resetAfterRowIndex:u,scrollTo:p,scrollToTop:h,scrollToRow:m}},T4=ye({name:yDe,props:PC,setup(e,{slots:t,expose:r}){const{ns:i}=_t(x4),{bodyRef:n,fixedRowHeight:o,gridHeight:s,hasHeader:l,headerRef:a,headerHeight:c,totalHeight:u,forceUpdate:p,itemKey:h,onItemRendered:m,resetAfterRowIndex:y,scrollTo:v,scrollToTop:_,scrollToRow:x}=vDe(e);r({forceUpdate:p,totalHeight:u,scrollTo:v,scrollToTop:_,scrollToRow:x,resetAfterRowIndex:y});const S=()=>e.bodyWidth;return()=>{const{cache:C,columns:E,data:T,fixedData:w,useIsScrolling:I,scrollbarAlwaysOn:M,scrollbarEndGap:L,scrollbarStartGap:R,style:W,rowHeight:z,bodyWidth:j,estimatedRowHeight:U,headerWidth:Z,height:Q,width:B,getRowHeight:V,onScroll:H}=e,ee=Gt(U),ce=ee?Z5e:G5e,re=g(c);return Y("div",{role:"table",class:[i.e("table"),e.class],style:W},[Y(ce,{ref:n,data:T,useIsScrolling:I,itemKey:h,columnCache:0,columnWidth:ee?S:j,totalColumn:1,totalRow:T.length,rowCache:C,rowHeight:ee?V:z,width:B,height:g(s),class:i.e("body"),scrollbarStartGap:R,scrollbarEndGap:L,scrollbarAlwaysOn:M,onScroll:H,onItemRendered:m,perfMode:!1},{default:fe=>{var Ne;const de=T[fe.rowIndex];return(Ne=t.row)==null?void 0:Ne.call(t,{...fe,columns:E,rowData:de})}}),g(l)&&Y(dDe,{ref:a,class:i.e("header-wrapper"),columns:E,headerData:T,headerHeight:e.headerHeight,fixedHeaderData:w,rowWidth:Z,rowHeight:z,width:B,height:Math.min(re+g(o),Q)},{dynamic:t.header,fixed:t.row})])}}});function bDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ei(e)}const _De=(e,{slots:t})=>{const{mainTableRef:r,...i}=e;return Y(T4,sr({ref:r},i),bDe(t)?t:{default:()=>[t]})};function wDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ei(e)}const xDe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:r,...i}=e;return Y(T4,sr({ref:r},i),wDe(t)?t:{default:()=>[t]})};function CDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ei(e)}const kDe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:r,...i}=e;return Y(T4,sr({ref:r},i),CDe(t)?t:{default:()=>[t]})};function SDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ei(e)}const EDe=(e,{slots:t})=>{const{columns:r,columnsStyles:i,depthMap:n,expandColumnKey:o,expandedRowKeys:s,estimatedRowHeight:l,hasFixedColumns:a,hoveringRowKey:c,rowData:u,rowIndex:p,style:h,isScrolling:m,rowProps:y,rowClass:v,rowKey:_,rowEventHandlers:x,ns:S,onRowHovered:C,onRowExpanded:E}=e,T=ng(v,{columns:r,rowData:u,rowIndex:p},""),w=ng(y,{columns:r,rowData:u,rowIndex:p}),I=u[_],M=n[I]||0,L=Boolean(o),R=p<0,W=[S.e("row"),T,{[S.e(`row-depth-${M}`)]:L&&p>=0,[S.is("expanded")]:L&&s.includes(I),[S.is("hovered")]:!m&&I===c,[S.is("fixed")]:!M&&R,[S.is("customized")]:Boolean(t.row)}],z=a?C:void 0,j={...w,columns:r,columnsStyles:i,class:W,depth:M,expandColumnKey:o,estimatedRowHeight:R?void 0:l,isScrolling:m,rowIndex:p,rowData:u,rowKey:I,rowEventHandlers:x,style:h};return Y(fDe,sr(j,{onRowHover:z,onRowExpand:E}),SDe(t)?t:{default:()=>[t]})},JP=({columns:e,column:t,columnIndex:r,depth:i,expandIconProps:n,isScrolling:o,rowData:s,rowIndex:l,style:a,expandedRowKeys:c,ns:u,cellProps:p,expandColumnKey:h,indentSize:m,iconSize:y,rowKey:v},{slots:_})=>{const x=rh(a);if(t.placeholderSign===Kw)return Y("div",{class:u.em("row-cell","placeholder"),style:x},null);const{cellRenderer:S,dataKey:C,dataGetter:E}=t,w=qZ(S)||_.default||(Q=>Y(S4,Q,null)),I=qt(E)?E({columns:e,column:t,columnIndex:r,rowData:s,rowIndex:l}):Ai(s,C!=null?C:""),M=ng(p,{cellData:I,columns:e,column:t,columnIndex:r,rowIndex:l,rowData:s}),L={class:u.e("cell-text"),columns:e,column:t,columnIndex:r,cellData:I,isScrolling:o,rowData:s,rowIndex:l},R=w(L),W=[u.e("row-cell"),t.align===Yw.CENTER&&u.is("align-center"),t.align===Yw.RIGHT&&u.is("align-right")],z=l>=0&&t.key===h,j=l>=0&&c.includes(s[v]);let U;const Z=`margin-inline-start: ${i*m}px;`;return z&&(yr(n)?U=Y(gDe,sr(n,{class:[u.e("expand-icon"),u.is("expanded",j)],size:y,expanded:j,style:Z,expandable:!0}),null):U=Y("div",{style:[Z,`width: ${y}px; height: ${y}px;`].join(" ")},null)),Y("div",sr({class:W,style:x},M),[U,R])};JP.inheritAttrs=!1;function TDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ei(e)}const ADe=({columns:e,columnsStyles:t,headerIndex:r,style:i,headerClass:n,headerProps:o,ns:s},{slots:l})=>{const a={columns:e,headerIndex:r},c=[s.e("header-row"),ng(n,a,""),{[s.is("customized")]:Boolean(l.header)}],u={...ng(o,a),columnsStyles:t,class:c,columns:e,headerIndex:r,style:i};return Y(cDe,u,TDe(l)?l:{default:()=>[l]})},cV=(e,{slots:t})=>{const{column:r,ns:i,style:n,onColumnSorted:o}=e,s=rh(n);if(r.placeholderSign===Kw)return Y("div",{class:i.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:l,headerClass:a,sortable:c}=r,u={...e,class:i.e("header-cell-text")},h=(qZ(l)||t.default||(E=>Y(E4,E,null)))(u),{sortBy:m,sortState:y,headerCellProps:v}=e;let _,x;if(y){const E=y[r.key];_=Boolean(QP[E]),x=_?E:qw.ASC}else _=r.key===m.key,x=_?m.order:qw.ASC;const S=[i.e("header-cell"),ng(a,e,""),r.align===Yw.CENTER&&i.is("align-center"),r.align===Yw.RIGHT&&i.is("align-right"),c&&i.is("sortable")],C={...ng(v,e),onClick:r.sortable?o:void 0,class:S,style:s,["data-key"]:r.key};return Y("div",C,[h,c&&Y(mDe,{class:[i.e("sort-icon"),_&&i.is("sorting")],sortOrder:x},null)])},QZ=(e,{slots:t})=>{var r;return Y("div",{class:e.class,style:e.style},[(r=t.default)==null?void 0:r.call(t)])};QZ.displayName="ElTableV2Footer";const JZ=(e,{slots:t})=>Y("div",{class:e.class,style:e.style},[t.default?t.default():Y(oZ,null,null)]);JZ.displayName="ElTableV2Empty";const XZ=(e,{slots:t})=>{var r;return Y("div",{class:e.class,style:e.style},[(r=t.default)==null?void 0:r.call(t)])};XZ.displayName="ElTableV2Overlay";function cb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ei(e)}const MDe="ElTableV2",IDe=ye({name:MDe,props:lDe,setup(e,{slots:t,expose:r}){const i=He("table-v2"),{columnsStyles:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:s,mainColumns:l,mainTableHeight:a,fixedTableHeight:c,leftTableWidth:u,rightTableWidth:p,data:h,depthMap:m,expandedRowKeys:y,hasFixedColumns:v,hoveringRowKey:_,mainTableRef:x,leftTableRef:S,rightTableRef:C,isDynamic:E,isResetting:T,isScrolling:w,bodyWidth:I,emptyStyle:M,rootStyle:L,headerWidth:R,footerHeight:W,showEmpty:z,scrollTo:j,scrollToLeft:U,scrollToTop:Z,scrollToRow:Q,getRowHeight:B,onColumnSorted:V,onRowHeightChange:H,onRowHovered:ee,onRowExpanded:ce,onRowsRendered:re,onScroll:fe,onVerticalScroll:Ne}=oDe(e);return r({scrollTo:j,scrollToLeft:U,scrollToTop:Z,scrollToRow:Q}),cr(x4,{ns:i,isResetting:T,hoveringRowKey:_,isScrolling:w}),()=>{const{cache:de,cellProps:_e,estimatedRowHeight:ae,expandColumnKey:X,fixedData:he,headerHeight:$e,headerClass:Je,headerProps:ne,headerCellProps:pe,sortBy:ge,sortState:Se,rowHeight:xe,rowClass:be,rowEventHandlers:Qe,rowKey:Fe,rowProps:Me,scrollbarAlwaysOn:Ie,indentSize:Pe,iconSize:Xe,useIsScrolling:dt,vScrollbarSize:gt,width:Dt}=e,Jt=g(h),Bt={cache:de,class:i.e("main"),columns:g(l),data:Jt,fixedData:he,estimatedRowHeight:ae,bodyWidth:g(I),headerHeight:$e,headerWidth:g(R),height:g(a),mainTableRef:x,rowKey:Fe,rowHeight:xe,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:gt,useIsScrolling:dt,width:Dt,getRowHeight:B,onRowsRendered:re,onScroll:fe},Le=g(u),st=g(c),It={cache:de,class:i.e("left"),columns:g(o),data:Jt,estimatedRowHeight:ae,leftTableRef:S,rowHeight:xe,bodyWidth:Le,headerWidth:Le,headerHeight:$e,height:st,rowKey:Fe,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:gt,useIsScrolling:dt,width:Le,getRowHeight:B,onScroll:Ne},we=g(p)+gt,qe={cache:de,class:i.e("right"),columns:g(s),data:Jt,estimatedRowHeight:ae,rightTableRef:C,rowHeight:xe,bodyWidth:we,headerWidth:we,headerHeight:$e,height:st,rowKey:Fe,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:gt,width:we,style:`--${g(i.namespace)}-table-scrollbar-size: ${gt}px`,useIsScrolling:dt,getRowHeight:B,onScroll:Ne},it=g(n),Zt={ns:i,depthMap:g(m),columnsStyles:it,expandColumnKey:X,expandedRowKeys:g(y),estimatedRowHeight:ae,hasFixedColumns:g(v),hoveringRowKey:g(_),rowProps:Me,rowClass:be,rowKey:Fe,rowEventHandlers:Qe,onRowHovered:ee,onRowExpanded:ce,onRowHeightChange:H},Cr={cellProps:_e,expandColumnKey:X,indentSize:Pe,iconSize:Xe,rowKey:Fe,expandedRowKeys:g(y),ns:i},Pi={ns:i,headerClass:Je,headerProps:ne,columnsStyles:it},fn={ns:i,sortBy:ge,sortState:Se,headerCellProps:pe,onColumnSorted:V},Kr={row:Nt=>Y(EDe,sr(Nt,Zt),{row:t.row,cell:fr=>{let Gr;return t.cell?Y(JP,sr(fr,Cr,{style:it[fr.column.key]}),cb(Gr=t.cell(fr))?Gr:{default:()=>[Gr]}):Y(JP,sr(fr,Cr,{style:it[fr.column.key]}),null)}}),header:Nt=>Y(ADe,sr(Nt,Pi),{header:t.header,cell:fr=>{let Gr;return t["header-cell"]?Y(cV,sr(fr,fn,{style:it[fr.column.key]}),cb(Gr=t["header-cell"](fr))?Gr:{default:()=>[Gr]}):Y(cV,sr(fr,fn,{style:it[fr.column.key]}),null)}})},Dr=[e.class,i.b(),i.e("root"),{[i.is("dynamic")]:g(E)}],Ze={class:i.e("footer"),style:g(W)};return Y("div",{class:Dr,style:g(L)},[Y(_De,Bt,cb(Kr)?Kr:{default:()=>[Kr]}),Y(xDe,It,cb(Kr)?Kr:{default:()=>[Kr]}),Y(kDe,qe,cb(Kr)?Kr:{default:()=>[Kr]}),t.footer&&Y(QZ,Ze,{default:t.footer}),g(z)&&Y(JZ,{class:i.e("empty"),style:g(M)},{default:t.empty}),t.overlay&&Y(XZ,{class:i.e("overlay")},{default:t.overlay})])}}}),PDe=ct({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Oe(Function)}}),$De=ye({name:"ElAutoResizer",props:PDe,setup(e,{slots:t}){const r=He("auto-resizer"),{height:i,width:n,sizer:o}=nDe(e),s={width:"100%",height:"100%"};return()=>{var l;return Y("div",{ref:o,class:r.b(),style:s},[(l=t.default)==null?void 0:l.call(t,{height:i.value,width:n.value})])}}}),ODe=lr(IDe),LDe=lr($De),RDe=ct({tabs:{type:Oe(Array),default:()=>Mi([])}}),eQ="ElTabBar",DDe=ye({name:eQ}),NDe=ye({...DDe,props:RDe,setup(e,{expose:t}){const r=e,i=Xt(),n=_t(f3);n||zn(eQ,"<el-tabs><el-tab-bar /></el-tabs>");const o=He("tabs"),s=F(),l=F(),a=()=>{let u=0,p=0;const h=["top","bottom"].includes(n.props.tabPosition)?"width":"height",m=h==="width"?"x":"y",y=m==="x"?"left":"top";return r.tabs.every(v=>{var _,x;const S=(x=(_=i.parent)==null?void 0:_.refs)==null?void 0:x[`tab-${v.uid}`];if(!S)return!1;if(!v.active)return!0;u=S[`offset${Yc(y)}`],p=S[`client${Yc(h)}`];const C=window.getComputedStyle(S);return h==="width"&&(r.tabs.length>1&&(p-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight)),u+=Number.parseFloat(C.paddingLeft)),!1}),{[h]:`${p}px`,transform:`translate${Yc(m)}(${u}px)`}},c=()=>l.value=a();return Ve(()=>r.tabs,async()=>{await Ct(),c()},{immediate:!0}),Uo(s,()=>c()),t({ref:s,update:c}),(u,p)=>($(),K("div",{ref_key:"barRef",ref:s,class:N([g(o).e("active-bar"),g(o).is(g(n).props.tabPosition)]),style:St(l.value)},null,6))}});var FDe=ot(NDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const zDe=ct({panes:{type:Oe(Array),default:()=>Mi([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),jDe={tabClick:(e,t,r)=>r instanceof Event,tabRemove:(e,t)=>t instanceof Event},uV="ElTabNav",VDe=ye({name:uV,props:zDe,emits:jDe,setup(e,{expose:t,emit:r}){const i=Xt(),n=_t(f3);n||zn(uV,"<el-tabs><tab-nav /></el-tabs>");const o=He("tabs"),s=Hve(),l=t0e(),a=F(),c=F(),u=F(),p=F(!1),h=F(0),m=F(!1),y=F(!0),v=O(()=>["top","bottom"].includes(n.props.tabPosition)?"width":"height"),_=O(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${h.value}px)`})),x=()=>{if(!a.value)return;const M=a.value[`offset${Yc(v.value)}`],L=h.value;if(!L)return;const R=L>M?L-M:0;h.value=R},S=()=>{if(!a.value||!c.value)return;const M=c.value[`offset${Yc(v.value)}`],L=a.value[`offset${Yc(v.value)}`],R=h.value;if(M-R<=L)return;const W=M-R>L*2?R+L:M-L;h.value=W},C=async()=>{const M=c.value;if(!p.value||!u.value||!a.value||!M)return;await Ct();const L=u.value.querySelector(".is-active");if(!L)return;const R=a.value,W=["top","bottom"].includes(n.props.tabPosition),z=L.getBoundingClientRect(),j=R.getBoundingClientRect(),U=W?M.offsetWidth-j.width:M.offsetHeight-j.height,Z=h.value;let Q=Z;W?(z.left<j.left&&(Q=Z-(j.left-z.left)),z.right>j.right&&(Q=Z+z.right-j.right)):(z.top<j.top&&(Q=Z-(j.top-z.top)),z.bottom>j.bottom&&(Q=Z+(z.bottom-j.bottom))),Q=Math.max(Q,0),h.value=Math.min(Q,U)},E=()=>{if(!c.value||!a.value)return;const M=c.value[`offset${Yc(v.value)}`],L=a.value[`offset${Yc(v.value)}`],R=h.value;if(L<M){const W=h.value;p.value=p.value||{},p.value.prev=W,p.value.next=W+L<M,M-W<L&&(h.value=M-L)}else p.value=!1,R>0&&(h.value=0)},T=M=>{const L=M.code,{up:R,down:W,left:z,right:j}=Rt;if(![R,W,z,j].includes(L))return;const U=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Z=U.indexOf(M.target);let Q;L===z||L===R?Z===0?Q=U.length-1:Q=Z-1:Z<U.length-1?Q=Z+1:Q=0,U[Q].focus({preventScroll:!0}),U[Q].click(),w()},w=()=>{y.value&&(m.value=!0)},I=()=>m.value=!1;return Ve(s,M=>{M==="hidden"?y.value=!1:M==="visible"&&setTimeout(()=>y.value=!0,50)}),Ve(l,M=>{M?setTimeout(()=>y.value=!0,50):y.value=!1}),Uo(u,E),er(()=>setTimeout(()=>C(),0)),Td(()=>E()),t({scrollToActiveTab:C,removeFocus:I}),Ve(()=>e.panes,()=>i.update(),{flush:"post"}),()=>{const M=p.value?[Y("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:x},[Y(At,null,{default:()=>[Y(kh,null,null)]})]),Y("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:S},[Y(At,null,{default:()=>[Y(os,null,null)]})])]:null,L=e.panes.map((R,W)=>{var z,j,U,Z;const Q=R.uid,B=R.props.disabled,V=(j=(z=R.props.name)!=null?z:R.index)!=null?j:`${W}`,H=!B&&(R.isClosable||e.editable);R.index=`${W}`;const ee=H?Y(At,{class:"is-icon-close",onClick:fe=>r("tabRemove",R,fe)},{default:()=>[Y(ia,null,null)]}):null,ce=((Z=(U=R.slots).label)==null?void 0:Z.call(U))||R.props.label,re=!B&&R.active?0:-1;return Y("div",{ref:`tab-${Q}`,class:[o.e("item"),o.is(n.props.tabPosition),o.is("active",R.active),o.is("disabled",B),o.is("closable",H),o.is("focus",m.value)],id:`tab-${V}`,key:`tab-${Q}`,"aria-controls":`pane-${V}`,role:"tab","aria-selected":R.active,tabindex:re,onFocus:()=>w(),onBlur:()=>I(),onClick:fe=>{I(),r("tabClick",R,V,fe)},onKeydown:fe=>{H&&(fe.code===Rt.delete||fe.code===Rt.backspace)&&r("tabRemove",R,fe)}},[ce,ee])});return Y("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(n.props.tabPosition)]},[M,Y("div",{class:o.e("nav-scroll"),ref:a},[Y("div",{class:[o.e("nav"),o.is(n.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(n.props.tabPosition))],ref:c,style:_.value,role:"tablist",onKeydown:T},[e.type?null:Y(FDe,{tabs:[...e.panes]},null),L])])])}}}),BDe=ct({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Oe(Function),default:()=>!0},stretch:Boolean}),KA=e=>Kt(e)||Gt(e),UDe={[ar]:e=>KA(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>KA(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>KA(e),tabAdd:()=>!0};var WDe=ye({name:"ElTabs",props:BDe,emits:UDe,setup(e,{emit:t,slots:r,expose:i}){var n,o;const s=He("tabs"),{children:l,addChild:a,removeChild:c}=yY(Xt(),"ElTabPane"),u=F(),p=F((o=(n=e.modelValue)!=null?n:e.activeName)!=null?o:"0"),h=x=>{p.value=x,t(ar,x),t("tabChange",x)},m=async x=>{var S,C,E;if(!(p.value===x||po(x)))try{await((S=e.beforeLeave)==null?void 0:S.call(e,x,p.value))!==!1&&(h(x),(E=(C=u.value)==null?void 0:C.removeFocus)==null||E.call(C))}catch{}},y=(x,S,C)=>{x.props.disabled||(m(S),t("tabClick",x,C))},v=(x,S)=>{x.props.disabled||po(x.props.name)||(S.stopPropagation(),t("edit",x.props.name,"remove"),t("tabRemove",x.props.name))},_=()=>{t("edit",void 0,"add"),t("tabAdd")};return yd({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},O(()=>!!e.activeName)),Ve(()=>e.activeName,x=>m(x)),Ve(()=>e.modelValue,x=>m(x)),Ve(p,async()=>{var x;await Ct(),(x=u.value)==null||x.scrollToActiveTab()}),cr(f3,{props:e,currentName:p,registerPane:a,unregisterPane:c}),i({currentName:p}),()=>{const x=e.editable||e.addable?Y("span",{class:s.e("new-tab"),tabindex:"0",onClick:_,onKeydown:E=>{E.code===Rt.enter&&_()}},[Y(At,{class:s.is("icon-plus")},{default:()=>[Y(Rq,null,null)]})]):null,S=Y("div",{class:[s.e("header"),s.is(e.tabPosition)]},[x,Y(VDe,{ref:u,currentName:p.value,editable:e.editable,type:e.type,panes:l.value,stretch:e.stretch,onTabClick:y,onTabRemove:v},null)]),C=Y("div",{class:s.e("content")},[Be(r,"default")]);return Y("div",{class:[s.b(),s.m(e.tabPosition),{[s.m("card")]:e.type==="card",[s.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[S,C]:[C,S]])}}});const HDe=ct({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),GDe=["id","aria-hidden","aria-labelledby"],tQ="ElTabPane",qDe=ye({name:tQ}),YDe=ye({...qDe,props:HDe,setup(e){const t=e,r=Xt(),i=go(),n=_t(f3);n||zn(tQ,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=He("tab-pane"),s=F(),l=O(()=>t.closable||n.props.closable),a=bz(()=>{var m;return n.currentName.value===((m=t.name)!=null?m:s.value)}),c=F(a.value),u=O(()=>{var m;return(m=t.name)!=null?m:s.value}),p=bz(()=>!t.lazy||c.value||a.value);Ve(a,m=>{m&&(c.value=!0)});const h=kr({uid:r.uid,slots:i,props:t,paneName:u,active:a,index:s,isClosable:l});return er(()=>{n.registerPane(h)}),pu(()=>{n.unregisterPane(h.uid)}),(m,y)=>g(p)?kt(($(),K("div",{key:0,id:`pane-${g(u)}`,class:N(g(o).b()),role:"tabpanel","aria-hidden":!g(a),"aria-labelledby":`tab-${g(u)}`},[Be(m.$slots,"default")],10,GDe)),[[Vt,g(a)]]):ke("v-if",!0)}});var rQ=ot(YDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const KDe=lr(WDe,{TabPane:rQ}),ZDe=Hi(rQ),QDe=ct({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Vs,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:Oe([String,Object]),default:()=>Oq},clearIcon:{type:Oe([String,Object]),default:()=>Fh}}),ed=e=>{const t=(e||"").split(":");if(t.length>=2){let r=Number.parseInt(t[0],10);const i=Number.parseInt(t[1],10),n=e.toUpperCase();return n.includes("AM")&&r===12?r=0:n.includes("PM")&&r!==12&&(r+=12),{hours:r,minutes:i}}return null},ZA=(e,t)=>{const r=ed(e);if(!r)return-1;const i=ed(t);if(!i)return-1;const n=r.minutes+r.hours*60,o=i.minutes+i.hours*60;return n===o?0:n>o?1:-1},dV=e=>`${e}`.padStart(2,"0"),ey=e=>`${dV(e.hours)}:${dV(e.minutes)}`,JDe=(e,t)=>{const r=ed(e);if(!r)return"";const i=ed(t);if(!i)return"";const n={hours:r.hours,minutes:r.minutes};return n.minutes+=i.minutes,n.hours+=i.hours,n.hours+=Math.floor(n.minutes/60),n.minutes=n.minutes%60,ey(n)},XDe=ye({name:"ElTimeSelect"}),eNe=ye({...XDe,props:QDe,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const r=e;nr.extend(r4);const{Option:i}=ig,n=He("input"),o=F(),s=Gs(),l=O(()=>r.modelValue),a=O(()=>{const _=ed(r.start);return _?ey(_):null}),c=O(()=>{const _=ed(r.end);return _?ey(_):null}),u=O(()=>{const _=ed(r.step);return _?ey(_):null}),p=O(()=>{const _=ed(r.minTime||"");return _?ey(_):null}),h=O(()=>{const _=ed(r.maxTime||"");return _?ey(_):null}),m=O(()=>{const _=[];if(r.start&&r.end&&r.step){let x=a.value,S;for(;x&&c.value&&ZA(x,c.value)<=0;)S=nr(x,"HH:mm").format(r.format),_.push({value:S,disabled:ZA(x,p.value||"-1:-1")<=0||ZA(x,h.value||"100:100")>=0}),x=JDe(x,u.value)}return _});return t({blur:()=>{var _,x;(x=(_=o.value)==null?void 0:_.blur)==null||x.call(_)},focus:()=>{var _,x;(x=(_=o.value)==null?void 0:_.focus)==null||x.call(_)}}),(_,x)=>($(),Te(g(ig),{ref_key:"select",ref:o,"model-value":g(l),disabled:g(s),clearable:_.clearable,"clear-icon":_.clearIcon,size:_.size,effect:_.effect,placeholder:_.placeholder,"default-first-option":"",filterable:_.editable,"onUpdate:modelValue":x[0]||(x[0]=S=>_.$emit("update:modelValue",S)),onChange:x[1]||(x[1]=S=>_.$emit("change",S)),onBlur:x[2]||(x[2]=S=>_.$emit("blur",S)),onFocus:x[3]||(x[3]=S=>_.$emit("focus",S))},{prefix:me(()=>[_.prefixIcon?($(),Te(g(At),{key:0,class:N(g(n).e("prefix-icon"))},{default:me(()=>[($(),Te(br(_.prefixIcon)))]),_:1},8,["class"])):ke("v-if",!0)]),default:me(()=>[($(!0),K(bt,null,or(g(m),S=>($(),Te(g(i),{key:S.value,label:S.value,value:S.value,disabled:S.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var $C=ot(eNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);$C.install=e=>{e.component($C.name,$C)};const tNe=$C,rNe=tNe,iNe=ye({name:"ElTimeline",setup(e,{slots:t}){const r=He("timeline");return cr("timeline",t),()=>Lt("ul",{class:[r.b()]},[Be(t,"default")])}}),nNe=ct({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:yi},hollow:{type:Boolean,default:!1}}),oNe=ye({name:"ElTimelineItem"}),sNe=ye({...oNe,props:nNe,setup(e){const t=He("timeline-item");return(r,i)=>($(),K("li",{class:N([g(t).b(),{[g(t).e("center")]:r.center}])},[G("div",{class:N(g(t).e("tail"))},null,2),r.$slots.dot?ke("v-if",!0):($(),K("div",{key:0,class:N([g(t).e("node"),g(t).em("node",r.size||""),g(t).em("node",r.type||""),g(t).is("hollow",r.hollow)]),style:St({backgroundColor:r.color})},[r.icon?($(),Te(g(At),{key:0,class:N(g(t).e("icon"))},{default:me(()=>[($(),Te(br(r.icon)))]),_:1},8,["class"])):ke("v-if",!0)],6)),r.$slots.dot?($(),K("div",{key:1,class:N(g(t).e("dot"))},[Be(r.$slots,"dot")],2)):ke("v-if",!0),G("div",{class:N(g(t).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?($(),K("div",{key:0,class:N([g(t).e("timestamp"),g(t).is("top")])},rt(r.timestamp),3)):ke("v-if",!0),G("div",{class:N(g(t).e("content"))},[Be(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?($(),K("div",{key:1,class:N([g(t).e("timestamp"),g(t).is("bottom")])},rt(r.timestamp),3)):ke("v-if",!0)],2)],2))}});var iQ=ot(sNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const lNe=lr(iNe,{TimelineItem:iQ}),aNe=Hi(iQ),nQ=ct({nowrap:Boolean});var oQ=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(oQ||{});const cNe=Object.values(oQ),A4=ct({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Oe(Object),default:null}}),uNe=ct({side:{type:Oe(String),values:cNe,required:!0}}),dNe=["absolute","fixed"],pNe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],M4=ct({ariaLabel:String,arrowPadding:{type:Oe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:Oe(String),values:pNe,default:"bottom"},reference:{type:Oe(Object),default:null},offset:{type:Number,default:8},strategy:{type:Oe(String),values:dNe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),I4=ct({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Oe(Function)},"onUpdate:open":{type:Oe(Function)}}),Vg={type:Oe(Function)},P4=ct({onBlur:Vg,onClick:Vg,onFocus:Vg,onMouseDown:Vg,onMouseEnter:Vg,onMouseLeave:Vg}),hNe=ct({...I4,...A4,...P4,...M4,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Oe(Object),default:null},teleported:Boolean,to:{type:Oe(String),default:"body"}}),fNe=ye({name:"ElTooltipV2Root"}),mNe=ye({...fNe,props:I4,setup(e,{expose:t}){const r=e,i=F(r.defaultOpen),n=F(null),o=O({get:()=>o0e(r.open)?i.value:r.open,set:_=>{var x;i.value=_,(x=r["onUpdate:open"])==null||x.call(r,_)}}),s=O(()=>Gt(r.delayDuration)&&r.delayDuration>0),{start:l,stop:a}=eg(()=>{o.value=!0},O(()=>r.delayDuration),{immediate:!1}),c=He("tooltip-v2"),u=ac(),p=()=>{a(),o.value=!0},h=()=>{g(s)?l():p()},m=p,y=()=>{a(),o.value=!1};return Ve(o,_=>{var x;_&&(document.dispatchEvent(new CustomEvent(PA)),m()),(x=r.onOpenChange)==null||x.call(r,_)}),er(()=>{document.addEventListener(PA,y)}),Ii(()=>{a(),document.removeEventListener(PA,y)}),cr(g3,{contentId:u,triggerRef:n,ns:c,onClose:y,onDelayOpen:h,onOpen:m}),t({onOpen:m,onClose:y}),(_,x)=>Be(_.$slots,"default",{open:g(o)})}});var gNe=ot(mNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const yNe=ye({name:"ElTooltipV2Arrow"}),vNe=ye({...yNe,props:{...A4,...uNe},setup(e){const t=e,{ns:r}=_t(g3),{arrowRef:i}=_t(tY),n=O(()=>{const{style:o,width:s,height:l}=t,a=r.namespace.value;return{[`--${a}-tooltip-v2-arrow-width`]:`${s}px`,[`--${a}-tooltip-v2-arrow-height`]:`${l}px`,[`--${a}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${a}-tooltip-v2-arrow-cover-width`]:s/2-1,...o||{}}});return(o,s)=>($(),K("span",{ref_key:"arrowRef",ref:i,style:St(g(n)),class:N(g(r).e("arrow"))},null,6))}});var pV=ot(vNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const bNe=ct({style:{type:Oe([String,Object,Array]),default:()=>({})}}),_Ne=ye({name:"ElVisuallyHidden"}),wNe=ye({..._Ne,props:bNe,setup(e){const t=e,r=O(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(i,n)=>($(),K("span",sr(i.$attrs,{style:g(r)}),[Be(i.$slots,"default")],16))}});var xNe=ot(wNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const CNe=["data-side"],kNe=ye({name:"ElTooltipV2Content"}),SNe=ye({...kNe,props:{...M4,...nQ},setup(e){const t=e,{triggerRef:r,contentId:i}=_t(g3),n=F(t.placement),o=F(t.strategy),s=F(null),{referenceRef:l,contentRef:a,middlewareData:c,x:u,y:p,update:h}=jxe({placement:n,strategy:o,middleware:O(()=>{const C=[Cxe(t.offset)];return t.showArrow&&C.push(Vxe({arrowRef:s})),C})}),m=$d().nextZIndex(),y=He("tooltip-v2"),v=O(()=>n.value.split("-")[0]),_=O(()=>({position:g(o),top:`${g(p)||0}px`,left:`${g(u)||0}px`,zIndex:m})),x=O(()=>{if(!t.showArrow)return{};const{arrow:C}=g(c);return{[`--${y.namespace.value}-tooltip-v2-arrow-x`]:`${C==null?void 0:C.x}px`||"",[`--${y.namespace.value}-tooltip-v2-arrow-y`]:`${C==null?void 0:C.y}px`||""}}),S=O(()=>[y.e("content"),y.is("dark",t.effect==="dark"),y.is(g(o)),t.contentClass]);return Ve(s,()=>h()),Ve(()=>t.placement,C=>n.value=C),er(()=>{Ve(()=>t.reference||r.value,C=>{l.value=C||void 0},{immediate:!0})}),cr(tY,{arrowRef:s}),(C,E)=>($(),K("div",{ref_key:"contentRef",ref:a,style:St(g(_)),"data-tooltip-v2-root":""},[C.nowrap?ke("v-if",!0):($(),K("div",{key:0,"data-side":g(v),class:N(g(S))},[Be(C.$slots,"default",{contentStyle:g(_),contentClass:g(S)}),Y(g(xNe),{id:g(i),role:"tooltip"},{default:me(()=>[C.ariaLabel?($(),K(bt,{key:0},[Ir(rt(C.ariaLabel),1)],64)):Be(C.$slots,"default",{key:1})]),_:3},8,["id"]),Be(C.$slots,"arrow",{style:St(g(x)),side:g(v)})],10,CNe))],4))}});var hV=ot(SNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const ENe=ct({setRef:{type:Oe(Function),required:!0},onlyChild:Boolean});var TNe=ye({props:ENe,setup(e,{slots:t}){const r=F(),i=u3(r,n=>{n?e.setRef(n.nextElementSibling):e.setRef(null)});return()=>{var n;const[o]=((n=t.default)==null?void 0:n.call(t))||[],s=e.onlyChild?W1e(o.children):o.children;return Y(bt,{ref:i},[s])}}});const ANe=ye({name:"ElTooltipV2Trigger"}),MNe=ye({...ANe,props:{...nQ,...P4},setup(e){const t=e,{onClose:r,onOpen:i,onDelayOpen:n,triggerRef:o,contentId:s}=_t(g3);let l=!1;const a=S=>{o.value=S},c=()=>{l=!1},u=Ui(t.onMouseEnter,n),p=Ui(t.onMouseLeave,r),h=Ui(t.onMouseDown,()=>{r(),l=!0,document.addEventListener("mouseup",c,{once:!0})}),m=Ui(t.onFocus,()=>{l||i()}),y=Ui(t.onBlur,r),v=Ui(t.onClick,S=>{S.detail===0&&r()}),_={blur:y,click:v,focus:m,mousedown:h,mouseenter:u,mouseleave:p},x=(S,C,E)=>{S&&Object.entries(C).forEach(([T,w])=>{S[E](T,w)})};return Ve(o,(S,C)=>{x(S,_,"addEventListener"),x(C,_,"removeEventListener"),S&&S.setAttribute("aria-describedby",s.value)}),Ii(()=>{x(o.value,_,"removeEventListener"),document.removeEventListener("mouseup",c)}),(S,C)=>S.nowrap?($(),Te(g(TNe),{key:0,"set-ref":a,"only-child":""},{default:me(()=>[Be(S.$slots,"default")]),_:3})):($(),K("button",sr({key:1,ref_key:"triggerRef",ref:o},S.$attrs),[Be(S.$slots,"default")],16))}});var INe=ot(MNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const PNe=ye({name:"ElTooltipV2"}),$Ne=ye({...PNe,props:hNe,setup(e){const r=Fn(e),i=kr(nd(r,Object.keys(A4))),n=kr(nd(r,Object.keys(M4))),o=kr(nd(r,Object.keys(I4))),s=kr(nd(r,Object.keys(P4)));return(l,a)=>($(),Te(gNe,Ya(GE(o)),{default:me(({open:c})=>[Y(INe,sr(s,{nowrap:""}),{default:me(()=>[Be(l.$slots,"trigger")]),_:3},16),($(),Te(d0,{to:l.to,disabled:!l.teleported},[l.fullTransition?($(),Te(Xi,Ya(sr({key:0},l.transitionProps)),{default:me(()=>[l.alwaysOn||c?($(),Te(hV,Ya(sr({key:0},n)),{arrow:me(({style:u,side:p})=>[l.showArrow?($(),Te(pV,sr({key:0},i,{style:u,side:p}),null,16,["style","side"])):ke("v-if",!0)]),default:me(()=>[Be(l.$slots,"default")]),_:3},16)):ke("v-if",!0)]),_:2},1040)):($(),K(bt,{key:1},[l.alwaysOn||c?($(),Te(hV,Ya(sr({key:0},n)),{arrow:me(({style:u,side:p})=>[l.showArrow?($(),Te(pV,sr({key:0},i,{style:u,side:p}),null,16,["style","side"])):ke("v-if",!0)]),default:me(()=>[Be(l.$slots,"default")]),_:3},16)):ke("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var ONe=ot($Ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const LNe=lr(ONe),sQ="left-check-change",lQ="right-check-change",ty=ct({data:{type:Oe(Array),default:()=>[]},titles:{type:Oe(Array),default:()=>[]},buttonTexts:{type:Oe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:Oe(Function)},leftDefaultChecked:{type:Oe(Array),default:()=>[]},rightDefaultChecked:{type:Oe(Array),default:()=>[]},renderContent:{type:Oe(Function)},modelValue:{type:Oe(Array),default:()=>[]},format:{type:Oe(Object),default:()=>({})},filterable:Boolean,props:{type:Oe(Object),default:()=>Mi({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),XP=(e,t)=>[e,t].every(wt)||wt(e)&&fo(t),RNe={[_i]:(e,t,r)=>[e,r].every(wt)&&["left","right"].includes(t),[ar]:e=>wt(e),[sQ]:XP,[lQ]:XP},e$="checked-change",DNe=ct({data:ty.data,optionRender:{type:Oe(Function)},placeholder:String,title:String,filterable:Boolean,format:ty.format,filterMethod:ty.filterMethod,defaultChecked:ty.leftDefaultChecked,props:ty.props}),NNe={[e$]:XP},Z1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return O(()=>({...t,...e.props}))},FNe=(e,t,r)=>{const i=Z1(e),n=O(()=>e.data.filter(u=>qt(e.filterMethod)?e.filterMethod(t.query,u):String(u[i.value.label]||u[i.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=O(()=>n.value.filter(u=>!u[i.value.disabled])),s=O(()=>{const u=t.checked.length,p=e.data.length,{noChecked:h,hasChecked:m}=e.format;return h&&m?u>0?m.replace(/\${checked}/g,u.toString()).replace(/\${total}/g,p.toString()):h.replace(/\${total}/g,p.toString()):`${u}/${p}`}),l=O(()=>{const u=t.checked.length;return u>0&&u<o.value.length}),a=()=>{const u=o.value.map(p=>p[i.value.key]);t.allChecked=u.length>0&&u.every(p=>t.checked.includes(p))},c=u=>{t.checked=u?o.value.map(p=>p[i.value.key]):[]};return Ve(()=>t.checked,(u,p)=>{if(a(),t.checkChangeByUser){const h=u.concat(p).filter(m=>!u.includes(m)||!p.includes(m));r(e$,u,h)}else r(e$,u),t.checkChangeByUser=!0}),Ve(o,()=>{a()}),Ve(()=>e.data,()=>{const u=[],p=n.value.map(h=>h[i.value.key]);t.checked.forEach(h=>{p.includes(h)&&u.push(h)}),t.checkChangeByUser=!1,t.checked=u}),Ve(()=>e.defaultChecked,(u,p)=>{if(p&&u.length===p.length&&u.every(y=>p.includes(y)))return;const h=[],m=o.value.map(y=>y[i.value.key]);u.forEach(y=>{m.includes(y)&&h.push(y)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:n,checkableData:o,checkedSummary:s,isIndeterminate:l,updateAllChecked:a,handleAllCheckedChange:c}},zNe=(e,t)=>({onSourceCheckedChange:(n,o)=>{e.leftChecked=n,o&&t(sQ,n,o)},onTargetCheckedChange:(n,o)=>{e.rightChecked=n,o&&t(lQ,n,o)}}),jNe=e=>{const t=Z1(e),r=O(()=>e.data.reduce((o,s)=>(o[s[t.value.key]]=s)&&o,{})),i=O(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),n=O(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,s)=>{const l=r.value[s];return l&&o.push(l),o},[]));return{sourceData:i,targetData:n}},VNe=(e,t,r)=>{const i=Z1(e),n=(l,a,c)=>{r(ar,l),r(_i,l,a,c)};return{addToLeft:()=>{const l=e.modelValue.slice();t.rightChecked.forEach(a=>{const c=l.indexOf(a);c>-1&&l.splice(c,1)}),n(l,"left",t.rightChecked)},addToRight:()=>{let l=e.modelValue.slice();const a=e.data.filter(c=>{const u=c[i.value.key];return t.leftChecked.includes(u)&&!e.modelValue.includes(u)}).map(c=>c[i.value.key]);l=e.targetOrder==="unshift"?a.concat(l):l.concat(a),e.targetOrder==="original"&&(l=e.data.filter(c=>l.includes(c[i.value.key])).map(c=>c[i.value.key])),n(l,"right",t.leftChecked)}}},BNe=ye({name:"ElTransferPanel"}),UNe=ye({...BNe,props:DNe,emits:NNe,setup(e,{expose:t,emit:r}){const i=e,n=go(),o=({option:C})=>C,{t:s}=Hr(),l=He("transfer"),a=kr({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=Z1(i),{filteredData:u,checkedSummary:p,isIndeterminate:h,handleAllCheckedChange:m}=FNe(i,a,r),y=O(()=>!ql(a.query)&&ql(u.value)),v=O(()=>!ql(n.default()[0].children)),{checked:_,allChecked:x,query:S}=Fn(a);return t({query:S}),(C,E)=>($(),K("div",{class:N(g(l).b("panel"))},[G("p",{class:N(g(l).be("panel","header"))},[Y(g(sa),{modelValue:g(x),"onUpdate:modelValue":E[0]||(E[0]=T=>hi(x)?x.value=T:null),indeterminate:g(h),"validate-event":!1,onChange:g(m)},{default:me(()=>[Ir(rt(C.title)+" ",1),G("span",null,rt(g(p)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),G("div",{class:N([g(l).be("panel","body"),g(l).is("with-footer",g(v))])},[C.filterable?($(),Te(g(Qi),{key:0,modelValue:g(S),"onUpdate:modelValue":E[1]||(E[1]=T=>hi(S)?S.value=T:null),class:N(g(l).be("panel","filter")),size:"default",placeholder:C.placeholder,"prefix-icon":g(zwe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ke("v-if",!0),kt(Y(g(bK),{modelValue:g(_),"onUpdate:modelValue":E[2]||(E[2]=T=>hi(_)?_.value=T:null),"validate-event":!1,class:N([g(l).is("filterable",C.filterable),g(l).be("panel","list")])},{default:me(()=>[($(!0),K(bt,null,or(g(u),T=>($(),Te(g(sa),{key:T[g(c).key],class:N(g(l).be("panel","item")),label:T[g(c).key],disabled:T[g(c).disabled],"validate-event":!1},{default:me(()=>{var w;return[Y(o,{option:(w=C.optionRender)==null?void 0:w.call(C,T)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Vt,!g(y)&&!g(ql)(C.data)]]),kt(G("p",{class:N(g(l).be("panel","empty"))},rt(g(y)?g(s)("el.transfer.noMatch"):g(s)("el.transfer.noData")),3),[[Vt,g(y)||g(ql)(C.data)]])],2),g(v)?($(),K("p",{key:0,class:N(g(l).be("panel","footer"))},[Be(C.$slots,"default")],2)):ke("v-if",!0)],2))}});var fV=ot(UNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const WNe={key:0},HNe={key:0},GNe=ye({name:"ElTransfer"}),qNe=ye({...GNe,props:ty,emits:RNe,setup(e,{expose:t,emit:r}){const i=e,n=go(),{t:o}=Hr(),s=He("transfer"),{formItem:l}=ps(),a=kr({leftChecked:[],rightChecked:[]}),c=Z1(i),{sourceData:u,targetData:p}=jNe(i),{onSourceCheckedChange:h,onTargetCheckedChange:m}=zNe(a,r),{addToLeft:y,addToRight:v}=VNe(i,a,r),_=F(),x=F(),S=M=>{switch(M){case"left":_.value.query="";break;case"right":x.value.query="";break}},C=O(()=>i.buttonTexts.length===2),E=O(()=>i.titles[0]||o("el.transfer.titles.0")),T=O(()=>i.titles[1]||o("el.transfer.titles.1")),w=O(()=>i.filterPlaceholder||o("el.transfer.filterPlaceholder"));Ve(()=>i.modelValue,()=>{var M;i.validateEvent&&((M=l==null?void 0:l.validate)==null||M.call(l,"change").catch(L=>void 0))});const I=O(()=>M=>i.renderContent?i.renderContent(Lt,M):n.default?n.default({option:M}):Lt("span",M[c.value.label]||M[c.value.key]));return t({clearQuery:S,leftPanel:_,rightPanel:x}),(M,L)=>($(),K("div",{class:N(g(s).b())},[Y(fV,{ref_key:"leftPanel",ref:_,data:g(u),"option-render":g(I),placeholder:g(w),title:g(E),filterable:M.filterable,format:M.format,"filter-method":M.filterMethod,"default-checked":M.leftDefaultChecked,props:i.props,onCheckedChange:g(h)},{default:me(()=>[Be(M.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),G("div",{class:N(g(s).e("buttons"))},[Y(g(Rn),{type:"primary",class:N([g(s).e("button"),g(s).is("with-texts",g(C))]),disabled:g(ql)(a.rightChecked),onClick:g(y)},{default:me(()=>[Y(g(At),null,{default:me(()=>[Y(g(kh))]),_:1}),g(po)(M.buttonTexts[0])?ke("v-if",!0):($(),K("span",WNe,rt(M.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Y(g(Rn),{type:"primary",class:N([g(s).e("button"),g(s).is("with-texts",g(C))]),disabled:g(ql)(a.leftChecked),onClick:g(v)},{default:me(()=>[g(po)(M.buttonTexts[1])?ke("v-if",!0):($(),K("span",HNe,rt(M.buttonTexts[1]),1)),Y(g(At),null,{default:me(()=>[Y(g(os))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Y(fV,{ref_key:"rightPanel",ref:x,data:g(p),"option-render":g(I),placeholder:g(w),filterable:M.filterable,format:M.format,"filter-method":M.filterMethod,title:g(T),"default-checked":M.rightDefaultChecked,props:i.props,onCheckedChange:g(m)},{default:me(()=>[Be(M.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var YNe=ot(qNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const KNe=lr(YNe),sv="$treeNodeId",mV=function(e,t){!t||t[sv]||Object.defineProperty(t,sv,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},$4=function(e,t){return e?t[e]:t[sv]},t$=(e,t,r)=>{const i=e.value.currentNode;r();const n=e.value.currentNode;i!==n&&t("current-change",n?n.data:null,n)},r$=e=>{let t=!0,r=!0,i=!0;for(let n=0,o=e.length;n<o;n++){const s=e[n];(s.checked!==!0||s.indeterminate)&&(t=!1,s.disabled||(i=!1)),(s.checked!==!1||s.indeterminate)&&(r=!1)}return{all:t,none:r,allWithoutDisable:i,half:!t&&!r}},OC=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:r,half:i}=r$(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):i?(e.checked=!1,e.indeterminate=!0):r&&(e.checked=!1,e.indeterminate=!1);const n=e.parent;!n||n.level===0||e.store.checkStrictly||OC(n)},d2=function(e,t){const r=e.store.props,i=e.data||{},n=r[t];if(typeof n=="function")return n(i,e);if(typeof n=="string")return i[n];if(typeof n=="undefined"){const o=i[t];return o===void 0?"":o}};let ZNe=0;class Um{constructor(t){this.id=ZNe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const r in t)Mr(t,r)&&(this[r]=t[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const r=t.props;if(r&&typeof r.isLeaf!="undefined"){const o=d2(this,"isLeaf");typeof o=="boolean"&&(this.isLeafByUser=o)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||mV(this,this.data),!this.data)return;const i=t.defaultExpandedKeys,n=t.key;n&&i&&i.includes(this.key)&&this.expand(null,t.autoExpandParent),n&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||mV(this,t),this.data=t,this.childNodes=[];let r;this.level===0&&Array.isArray(this.data)?r=this.data:r=d2(this,"children")||[];for(let i=0,n=r.length;i<n;i++)this.insertChild({data:r[i]})}get label(){return d2(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return d2(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return t.childNodes[r+1]}return null}get previousSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return r>0?t.childNodes[r-1]:null}return null}contains(t,r=!0){return(this.childNodes||[]).some(i=>i===t||r&&i.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,r,i){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Um)){if(!i){const n=this.getChildren(!0);n.includes(t.data)||(typeof r=="undefined"||r<0?n.push(t.data):n.splice(r,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=kr(new Um(t)),t instanceof Um&&t.initialize()}t.level=this.level+1,typeof r=="undefined"||r<0?this.childNodes.push(t):this.childNodes.splice(r,0,t),this.updateLeafState()}insertBefore(t,r){let i;r&&(i=this.childNodes.indexOf(r)),this.insertChild(t,i)}insertAfter(t,r){let i;r&&(i=this.childNodes.indexOf(r),i!==-1&&(i+=1)),this.insertChild(t,i)}removeChild(t){const r=this.getChildren()||[],i=r.indexOf(t.data);i>-1&&r.splice(i,1);const n=this.childNodes.indexOf(t);n>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(n,1)),this.updateLeafState()}removeChildByData(t){let r=null;for(let i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===t){r=this.childNodes[i];break}r&&this.removeChild(r)}expand(t,r){const i=()=>{if(r){let n=this.parent;for(;n.level>0;)n.expanded=!0,n=n.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(n=>{n.canFocus=!0})};this.shouldLoadData()?this.loadData(n=>{Array.isArray(n)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||OC(this),i())}):i()}doCreateChildren(t,r={}){t.forEach(i=>{this.insertChild(Object.assign({data:i},r),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,r,i,n){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:l}=r$(this.childNodes);!this.isLeaf&&!s&&l&&(this.checked=!1,t=!1);const a=()=>{if(r){const c=this.childNodes;for(let h=0,m=c.length;h<m;h++){const y=c[h];n=n||t!==!1;const v=y.disabled?y.checked:n;y.setChecked(v,r,!0,n)}const{half:u,all:p}=r$(c);p||(this.checked=p,this.indeterminate=u)}};if(this.shouldLoadData()){this.loadData(()=>{a(),OC(this)},{checked:t!==!1});return}else a()}const o=this.parent;!o||o.level===0||i||OC(o)}getChildren(t=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const i=this.store.props;let n="children";return i&&(n=i.children||"children"),r[n]===void 0&&(r[n]=null),t&&!r[n]&&(r[n]=[]),r[n]}updateChildren(){const t=this.getChildren()||[],r=this.childNodes.map(o=>o.data),i={},n=[];t.forEach((o,s)=>{const l=o[sv];!!l&&r.findIndex(c=>c[sv]===l)>=0?i[l]={index:s,data:o}:n.push({index:s,data:o})}),this.store.lazy||r.forEach(o=>{i[o[sv]]||this.removeChildByData(o)}),n.forEach(({index:o,data:s})=>{this.insertChild({data:s},o)}),this.updateLeafState()}loadData(t,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const i=n=>{this.childNodes=[],this.doCreateChildren(n,r),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,n)};this.store.load(this,i)}else t&&t.call(this)}}class QNe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const r in t)Mr(t,r)&&(this[r]=t[r]);this.nodesMap={}}initialize(){if(this.root=new Um({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const r=this.filterNodeMethod,i=this.lazy,n=function(o){const s=o.root?o.root.childNodes:o.childNodes;if(s.forEach(l=>{l.visible=r.call(l,t,l.data,l),n(l)}),!o.visible&&s.length){let l=!0;l=!s.some(a=>a.visible),o.root?o.root.visible=l===!1:o.visible=l===!1}!t||o.visible&&!o.isLeaf&&!i&&o.expand()};n(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Um)return t;const r=yr(t)?$4(this.key,t):t;return this.nodesMap[r]||null}insertBefore(t,r){const i=this.getNode(r);i.parent.insertBefore({data:t},i)}insertAfter(t,r){const i=this.getNode(r);i.parent.insertAfter({data:t},i)}remove(t){const r=this.getNode(t);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(t,r){const i=r?this.getNode(r):this.root;i&&i.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],r=this.nodesMap;t.forEach(i=>{const n=r[i];n&&n.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const r=this.key;!t||!t.data||(r?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(i=>{this.deregisterNode(i)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,r=!1){const i=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||r&&l.indeterminate)&&(!t||t&&l.isLeaf)&&i.push(l.data),n(l)})};return n(this),i}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const t=[],r=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),r(o)})};return r(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],r=this.nodesMap;for(const i in r)Mr(r,i)&&t.push(r[i]);return t}updateChildren(t,r){const i=this.nodesMap[t];if(!i)return;const n=i.childNodes;for(let o=n.length-1;o>=0;o--){const s=n[o];this.remove(s.data)}for(let o=0,s=r.length;o<s;o++){const l=r[o];this.append(l,i.data)}}_setCheckedKeys(t,r=!1,i){const n=this._getAllNodes().sort((l,a)=>a.level-l.level),o=Object.create(null),s=Object.keys(i);n.forEach(l=>l.setChecked(!1,!1));for(let l=0,a=n.length;l<a;l++){const c=n[l],u=c.data[t].toString();if(!s.includes(u)){c.checked&&!o[u]&&c.setChecked(!1,!1);continue}let h=c.parent;for(;h&&h.level>0;)o[h.data[t]]=!0,h=h.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),r){c.setChecked(!1,!1);const m=function(y){y.childNodes.forEach(_=>{_.isLeaf||_.setChecked(!1,!1),m(_)})};m(c)}}}setCheckedNodes(t,r=!1){const i=this.key,n={};t.forEach(o=>{n[(o||{})[i]]=!0}),this._setCheckedKeys(i,r,n)}setCheckedKeys(t,r=!1){this.defaultCheckedKeys=t;const i=this.key,n={};t.forEach(o=>{n[o]=!0}),this._setCheckedKeys(i,r,n)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(r=>{const i=this.getNode(r);i&&i.expand(null,this.autoExpandParent)})}setChecked(t,r,i){const n=this.getNode(t);n&&n.setChecked(!!r,i)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,r=!0){const i=t[this.key],n=this.nodesMap[i];this.setCurrentNode(n),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,r=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const i=this.getNode(t);i&&(this.setCurrentNode(i),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const JNe=ye({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=He("tree"),r=_t("NodeInstance"),i=_t("RootTree");return()=>{const n=e.node,{data:o,store:s}=n;return e.renderContent?e.renderContent(Lt,{_self:r,node:n,data:o,store:s}):i.ctx.slots.default?i.ctx.slots.default({node:n,data:o}):Lt("span",{class:t.be("node","label")},[n.label])}}});var XNe=ot(JNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function aQ(e){const t=_t("TreeNodeMap",null),r={treeNodeExpand:i=>{e.node!==i&&e.node.collapse()},children:[]};return t&&t.children.push(r),cr("TreeNodeMap",r),{broadcastExpanded:i=>{if(!!e.accordion)for(const n of r.children)n.treeNodeExpand(i)}}}const cQ=Symbol("dragEvents");function eFe({props:e,ctx:t,el$:r,dropIndicator$:i,store:n}){const o=He("tree"),s=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return cr(cQ,{treeNodeDragStart:({event:u,treeNode:p})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(p.node))return u.preventDefault(),!1;u.dataTransfer.effectAllowed="move";try{u.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=p,t.emit("node-drag-start",p.node,u)},treeNodeDragOver:({event:u,treeNode:p})=>{const h=p,m=s.value.dropNode;m&&m!==h&&Ns(m.$el,o.is("drop-inner"));const y=s.value.draggingNode;if(!y||!h)return;let v=!0,_=!0,x=!0,S=!0;typeof e.allowDrop=="function"&&(v=e.allowDrop(y.node,h.node,"prev"),S=_=e.allowDrop(y.node,h.node,"inner"),x=e.allowDrop(y.node,h.node,"next")),u.dataTransfer.dropEffect=_||v||x?"move":"none",(v||_||x)&&m!==h&&(m&&t.emit("node-drag-leave",y.node,m.node,u),t.emit("node-drag-enter",y.node,h.node,u)),(v||_||x)&&(s.value.dropNode=h),h.node.nextSibling===y.node&&(x=!1),h.node.previousSibling===y.node&&(v=!1),h.node.contains(y.node,!1)&&(_=!1),(y.node===h.node||y.node.contains(h.node))&&(v=!1,_=!1,x=!1);const C=h.$el.getBoundingClientRect(),E=r.value.getBoundingClientRect();let T;const w=v?_?.25:x?.45:1:-1,I=x?_?.75:v?.55:0:1;let M=-9999;const L=u.clientY-C.top;L<C.height*w?T="before":L>C.height*I?T="after":_?T="inner":T="none";const R=h.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),W=i.value;T==="before"?M=R.top-E.top:T==="after"&&(M=R.bottom-E.top),W.style.top=`${M}px`,W.style.left=`${R.right-E.left}px`,T==="inner"?Zc(h.$el,o.is("drop-inner")):Ns(h.$el,o.is("drop-inner")),s.value.showDropIndicator=T==="before"||T==="after",s.value.allowDrop=s.value.showDropIndicator||S,s.value.dropType=T,t.emit("node-drag-over",y.node,h.node,u)},treeNodeDragEnd:u=>{const{draggingNode:p,dropType:h,dropNode:m}=s.value;if(u.preventDefault(),u.dataTransfer.dropEffect="move",p&&m){const y={data:p.node.data};h!=="none"&&p.node.remove(),h==="before"?m.node.parent.insertBefore(y,m.node):h==="after"?m.node.parent.insertAfter(y,m.node):h==="inner"&&m.node.insertChild(y),h!=="none"&&n.value.registerNode(y),Ns(m.$el,o.is("drop-inner")),t.emit("node-drag-end",p.node,m.node,h,u),h!=="none"&&t.emit("node-drop",p.node,m.node,h,u)}p&&!m&&t.emit("node-drag-end",p.node,null,h,u),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const tFe=ye({name:"ElTreeNode",components:{ElCollapseTransition:C3,ElCheckbox:sa,NodeContent:XNe,ElIcon:At,Loading:zh},props:{node:{type:Um,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const r=He("tree"),{broadcastExpanded:i}=aQ(e),n=_t("RootTree"),o=F(!1),s=F(!1),l=F(null),a=F(null),c=F(null),u=_t(cQ),p=Xt();cr("NodeInstance",p),e.node.expanded&&(o.value=!0,s.value=!0);const h=n.props.children||"children";Ve(()=>{const L=e.node.data[h];return L&&[...L]},()=>{e.node.updateChildren()}),Ve(()=>e.node.indeterminate,L=>{v(e.node.checked,L)}),Ve(()=>e.node.checked,L=>{v(L,e.node.indeterminate)}),Ve(()=>e.node.expanded,L=>{Ct(()=>o.value=L),L&&(s.value=!0)});const m=L=>$4(n.props.nodeKey,L.data),y=L=>{const R=e.props.class;if(!R)return{};let W;if(qt(R)){const{data:z}=L;W=R(z,L)}else W=R;return Kt(W)?{[W]:!0}:W},v=(L,R)=>{(l.value!==L||a.value!==R)&&n.ctx.emit("check-change",e.node.data,L,R),l.value=L,a.value=R},_=L=>{t$(n.store,n.ctx.emit,()=>n.store.value.setCurrentNode(e.node)),n.currentNode.value=e.node,n.props.expandOnClickNode&&S(),n.props.checkOnClickNode&&!e.node.disabled&&C(null,{target:{checked:!e.node.checked}}),n.ctx.emit("node-click",e.node.data,e.node,p,L)},x=L=>{n.instance.vnode.props.onNodeContextmenu&&(L.stopPropagation(),L.preventDefault()),n.ctx.emit("node-contextmenu",L,e.node.data,e.node,p)},S=()=>{e.node.isLeaf||(o.value?(n.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,p)))},C=(L,R)=>{e.node.setChecked(R.target.checked,!n.props.checkStrictly),Ct(()=>{const W=n.store.value;n.ctx.emit("check",e.node.data,{checkedNodes:W.getCheckedNodes(),checkedKeys:W.getCheckedKeys(),halfCheckedNodes:W.getHalfCheckedNodes(),halfCheckedKeys:W.getHalfCheckedKeys()})})};return{ns:r,node$:c,tree:n,expanded:o,childNodeRendered:s,oldChecked:l,oldIndeterminate:a,getNodeKey:m,getNodeClass:y,handleSelectChange:v,handleClick:_,handleContextMenu:x,handleExpandIconClick:S,handleCheckChange:C,handleChildNodeExpand:(L,R,W)=>{i(R),n.ctx.emit("node-expand",L,R,W)},handleDragStart:L=>{!n.props.draggable||u.treeNodeDragStart({event:L,treeNode:e})},handleDragOver:L=>{L.preventDefault(),n.props.draggable&&u.treeNodeDragOver({event:L,treeNode:{$el:c.value,node:e.node}})},handleDrop:L=>{L.preventDefault()},handleDragEnd:L=>{!n.props.draggable||u.treeNodeDragEnd(L)},CaretRight:$q}}}),rFe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],iFe=["aria-expanded"];function nFe(e,t,r,i,n,o){const s=Ft("el-icon"),l=Ft("el-checkbox"),a=Ft("loading"),c=Ft("node-content"),u=Ft("el-tree-node"),p=Ft("el-collapse-transition");return kt(($(),K("div",{ref:"node$",class:N([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Yt((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=Yt((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=Yt((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=Yt((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=Yt((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[G("div",{class:N(e.ns.be("node","content")),style:St({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?($(),Te(s,{key:0,class:N([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Yt(e.handleExpandIconClick,["stop"])},{default:me(()=>[($(),Te(br(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ke("v-if",!0),e.showCheckbox?($(),Te(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Yt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ke("v-if",!0),e.node.loading?($(),Te(s,{key:2,class:N([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:me(()=>[Y(a)]),_:1},8,["class"])):ke("v-if",!0),Y(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Y(p,null,{default:me(()=>[!e.renderAfterExpand||e.childNodeRendered?kt(($(),K("div",{key:0,class:N(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[($(!0),K(bt,null,or(e.node.childNodes,h=>($(),Te(u,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,iFe)),[[Vt,e.expanded]]):ke("v-if",!0)]),_:1})],42,rFe)),[[Vt,e.node.visible]])}var oFe=ot(tFe,[["render",nFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function sFe({el$:e},t){const r=He("tree"),i=gi([]),n=gi([]);er(()=>{s()}),Td(()=>{i.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),n.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Ve(n,l=>{l.forEach(a=>{a.setAttribute("tabindex","-1")})}),Si(e,"keydown",l=>{const a=l.target;if(!a.className.includes(r.b("node")))return;const c=l.code;i.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));const u=i.value.indexOf(a);let p;if([Rt.up,Rt.down].includes(c)){if(l.preventDefault(),c===Rt.up){p=u===-1?0:u!==0?u-1:i.value.length-1;const m=p;for(;!t.value.getNode(i.value[p].dataset.key).canFocus;){if(p--,p===m){p=-1;break}p<0&&(p=i.value.length-1)}}else{p=u===-1?0:u<i.value.length-1?u+1:0;const m=p;for(;!t.value.getNode(i.value[p].dataset.key).canFocus;){if(p++,p===m){p=-1;break}p>=i.value.length&&(p=0)}}p!==-1&&i.value[p].focus()}[Rt.left,Rt.right].includes(c)&&(l.preventDefault(),a.click());const h=a.querySelector('[type="checkbox"]');[Rt.enter,Rt.space].includes(c)&&h&&(l.preventDefault(),h.click())});const s=()=>{var l;i.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),n.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const a=e.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(a.length){a[0].setAttribute("tabindex","0");return}(l=i.value[0])==null||l.setAttribute("tabindex","0")}}const lFe=ye({name:"ElTree",components:{ElTreeNode:oFe},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:yi}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:r}=Hr(),i=He("tree"),n=F(new QNe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));n.value.initialize();const o=F(n.value.root),s=F(null),l=F(null),a=F(null),{broadcastExpanded:c}=aQ(e),{dragState:u}=eFe({props:e,ctx:t,el$:l,dropIndicator$:a,store:n});sFe({el$:l},n);const p=O(()=>{const{childNodes:B}=o.value;return!B||B.length===0||B.every(({visible:V})=>!V)});Ve(()=>e.currentNodeKey,B=>{n.value.setCurrentNodeKey(B)}),Ve(()=>e.defaultCheckedKeys,B=>{n.value.setDefaultCheckedKey(B)}),Ve(()=>e.defaultExpandedKeys,B=>{n.value.setDefaultExpandedKeys(B)}),Ve(()=>e.data,B=>{n.value.setData(B)},{deep:!0}),Ve(()=>e.checkStrictly,B=>{n.value.checkStrictly=B});const h=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");n.value.filter(B)},m=B=>$4(e.nodeKey,B.data),y=B=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const V=n.value.getNode(B);if(!V)return[];const H=[V.data];let ee=V.parent;for(;ee&&ee!==o.value;)H.push(ee.data),ee=ee.parent;return H.reverse()},v=(B,V)=>n.value.getCheckedNodes(B,V),_=B=>n.value.getCheckedKeys(B),x=()=>{const B=n.value.getCurrentNode();return B?B.data:null},S=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=x();return B?B[e.nodeKey]:null},C=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");n.value.setCheckedNodes(B,V)},E=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");n.value.setCheckedKeys(B,V)},T=(B,V,H)=>{n.value.setChecked(B,V,H)},w=()=>n.value.getHalfCheckedNodes(),I=()=>n.value.getHalfCheckedKeys(),M=(B,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");t$(n,t.emit,()=>n.value.setUserCurrentNode(B,V))},L=(B,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");t$(n,t.emit,()=>n.value.setCurrentNodeKey(B,V))},R=B=>n.value.getNode(B),W=B=>{n.value.remove(B)},z=(B,V)=>{n.value.append(B,V)},j=(B,V)=>{n.value.insertBefore(B,V)},U=(B,V)=>{n.value.insertAfter(B,V)},Z=(B,V,H)=>{c(V),t.emit("node-expand",B,V,H)},Q=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");n.value.updateChildren(B,V)};return cr("RootTree",{ctx:t,props:e,store:n,root:o,currentNode:s,instance:Xt()}),cr(su,void 0),{ns:i,store:n,root:o,currentNode:s,dragState:u,el$:l,dropIndicator$:a,isEmpty:p,filter:h,getNodeKey:m,getNodePath:y,getCheckedNodes:v,getCheckedKeys:_,getCurrentNode:x,getCurrentKey:S,setCheckedNodes:C,setCheckedKeys:E,setChecked:T,getHalfCheckedNodes:w,getHalfCheckedKeys:I,setCurrentNode:M,setCurrentKey:L,t:r,getNode:R,remove:W,append:z,insertBefore:j,insertAfter:U,handleNodeExpand:Z,updateKeyChildren:Q}}});function aFe(e,t,r,i,n,o){var s;const l=Ft("el-tree-node");return $(),K("div",{ref:"el$",class:N([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[($(!0),K(bt,null,or(e.root.childNodes,a=>($(),Te(l,{key:e.getNodeKey(a),node:a,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?($(),K("div",{key:0,class:N(e.ns.e("empty-block"))},[G("span",{class:N(e.ns.e("empty-text"))},rt((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)],2)):ke("v-if",!0),kt(G("div",{ref:"dropIndicator$",class:N(e.ns.e("drop-indicator"))},null,2),[[Vt,e.dragState.showDropIndicator]])],2)}var LC=ot(lFe,[["render",aFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);LC.install=e=>{e.component(LC.name,LC)};const wS=LC,cFe=wS,uFe=(e,{attrs:t},{tree:r,key:i})=>{const n=He("tree-select"),o={...nd(Fn(e),Object.keys(ig.props)),...t,valueKey:i,popperClass:O(()=>{const s=[n.e("popper")];return e.popperClass&&s.push(e.popperClass),s.join(" ")}),filterMethod:(s="")=>{e.filterMethod&&e.filterMethod(s),Ct(()=>{var l;(l=r.value)==null||l.filter(s)})},onVisibleChange:s=>{var l;(l=t.onVisibleChange)==null||l.call(t,s),e.filterable&&s&&o.filterMethod()}};return o},dFe=ye({extends:hS,setup(e,t){const r=hS.setup(e,t);delete r.selectOptionClick;const i=Xt().proxy;return Ct(()=>{r.select.cachedOptions.get(i.value)||r.select.onOptionCreate(i)}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function i$(e){return e||e===0}function O4(e){return Array.isArray(e)&&e.length}function QA(e){return Array.isArray(e)?e:i$(e)?[e]:[]}function RC(e,t,r,i,n){for(let o=0;o<e.length;o++){const s=e[o];if(t(s,o,e,n))return i?i(s,o,e,n):s;{const l=r(s);if(O4(l)){const a=RC(l,t,r,i,s);if(a)return a}}}}function uQ(e,t,r,i){for(let n=0;n<e.length;n++){const o=e[n];t(o,n,e,i);const s=r(o);O4(s)&&uQ(s,t,r,o)}}const pFe=(e,{attrs:t,slots:r,emit:i},{select:n,tree:o,key:s})=>{Ve(()=>e.modelValue,()=>{e.showCheckbox&&Ct(()=>{const p=o.value;p&&!yl(p.getCheckedKeys(),QA(e.modelValue))&&p.setCheckedKeys(QA(e.modelValue))})},{immediate:!0,deep:!0});const l=O(()=>({value:s.value,...e.props})),a=(p,h)=>{var m;const y=l.value[p];return qt(y)?y(h,(m=o.value)==null?void 0:m.getNode(a("value",h))):h[y]},c=QA(e.modelValue).map(p=>RC(e.data||[],h=>a("value",h)===p,h=>a("children",h),(h,m,y,v)=>v&&a("value",v))).filter(p=>i$(p)),u=O(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return uQ(e.data.concat(e.cacheData),h=>{const m=a("value",h);p.push({value:m,currentLabel:a("label",h),isDisabled:a("disabled",h)})},h=>a("children",h)),p});return{...nd(Fn(e),Object.keys(wS.props)),...t,nodeKey:s,expandOnClickNode:O(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:O(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:h,data:m,store:y})=>p(dFe,{value:a("value",m),label:a("label",m),disabled:a("disabled",m)},e.renderContent?()=>e.renderContent(p,{node:h,data:m,store:y}):r.default?()=>r.default({node:h,data:m,store:y}):void 0),filterNodeMethod:(p,h,m)=>{var y;return e.filterNodeMethod?e.filterNodeMethod(p,h,m):p?(y=a("label",h))==null?void 0:y.includes(p):!0},onNodeClick:(p,h,m)=>{var y,v,_;if((y=t.onNodeClick)==null||y.call(t,p,h,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!a("disabled",p)){const x=(v=n.value)==null?void 0:v.options.get(a("value",p));(_=n.value)==null||_.handleOptionSelect(x,!0)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,h)=>{var m;(m=t.onCheck)==null||m.call(t,p,h);const y=a("value",p);if(e.checkStrictly)i(ar,e.multiple?h.checkedKeys:h.checkedKeys.includes(y)?y:void 0);else if(e.multiple)i(ar,o.value.getCheckedKeys(!0));else{const v=RC([p],S=>!O4(a("children",S))&&!a("disabled",S),S=>a("children",S)),_=v?a("value",v):void 0,x=i$(e.modelValue)&&!!RC([p],S=>a("value",S)===e.modelValue,S=>a("children",S));i(ar,_===e.modelValue||x?void 0:_)}},cacheOptions:u}};var hFe=ye({props:{data:{type:Array,default:()=>[]}},setup(e){const t=_t(Y1);return Ve(()=>e.data,()=>{e.data.forEach(r=>{t.cachedOptions.has(r.value)||t.cachedOptions.set(r.value,r)}),t.setSelected()},{immediate:!0,deep:!0}),()=>{}}});const fFe=ye({name:"ElTreeSelect",inheritAttrs:!1,props:{...ig.props,...wS.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:r,expose:i}=t,n=F(),o=F(),s=O(()=>e.nodeKey||e.valueKey||"value"),l=uFe(e,t,{select:n,tree:o,key:s}),{cacheOptions:a,...c}=pFe(e,t,{select:n,tree:o,key:s}),u=kr({});return i(u),er(()=>{Object.assign(u,{...nd(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...nd(n.value,["focus","blur"])})}),()=>Lt(ig,kr({...l,ref:p=>n.value=p}),{...r,default:()=>[Lt(hFe,{data:a.value}),Lt(wS,kr({...c,ref:p=>o.value=p}))]})}});var DC=ot(fFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);DC.install=e=>{e.component(DC.name,DC)};const mFe=DC,gFe=mFe,L4=Symbol(),yFe={key:-1,level:-1,data:{}};var Db=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Db||{}),n$=(e=>(e.ADD="add",e.DELETE="delete",e))(n$||{});const vFe=ct({data:{type:Oe(Array),default:()=>Mi([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Oe(Object),default:()=>Mi({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Oe(Array),default:()=>Mi([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Oe(Array),default:()=>Mi([])},indent:{type:Number,default:16},icon:{type:yi},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Oe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Oe(Function)},perfMode:{type:Boolean,default:!0}}),bFe=ct({node:{type:Oe(Object),default:()=>Mi(yFe)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),_Fe=ct({node:{type:Oe(Object),required:!0}}),dQ="node-click",pQ="node-expand",hQ="node-collapse",fQ="current-change",mQ="check",gQ="check-change",yQ="node-contextmenu",wFe={[dQ]:(e,t,r)=>e&&t&&r,[pQ]:(e,t)=>e&&t,[hQ]:(e,t)=>e&&t,[fQ]:(e,t)=>e&&t,[mQ]:(e,t)=>e&&t,[gQ]:(e,t)=>e&&typeof t=="boolean",[yQ]:(e,t,r)=>e&&t&&r},xFe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function CFe(e,t){const r=F(new Set),i=F(new Set),{emit:n}=Xt();Ve([()=>t.value,()=>e.defaultCheckedKeys],()=>Ct(()=>{S(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:C,maxLevel:E}=t.value,T=r.value,w=new Set;for(let I=E-1;I>=1;--I){const M=C.get(I);!M||M.forEach(L=>{const R=L.children;if(R){let W=!0,z=!1;for(const j of R){const U=j.key;if(T.has(U))z=!0;else if(w.has(U)){W=!1,z=!0;break}else W=!1}W?T.add(L.key):z?(w.add(L.key),T.delete(L.key)):(T.delete(L.key),w.delete(L.key))}})}i.value=w},s=C=>r.value.has(C.key),l=C=>i.value.has(C.key),a=(C,E,T=!0)=>{const w=r.value,I=(M,L)=>{w[L?n$.ADD:n$.DELETE](M.key);const R=M.children;!e.checkStrictly&&R&&R.forEach(W=>{W.disabled||I(W,L)})};I(C,E),o(),T&&c(C,E)},c=(C,E)=>{const{checkedNodes:T,checkedKeys:w}=y(),{halfCheckedNodes:I,halfCheckedKeys:M}=v();n(mQ,C.data,{checkedKeys:w,checkedNodes:T,halfCheckedKeys:M,halfCheckedNodes:I}),n(gQ,C.data,E)};function u(C=!1){return y(C).checkedKeys}function p(C=!1){return y(C).checkedNodes}function h(){return v().halfCheckedKeys}function m(){return v().halfCheckedNodes}function y(C=!1){const E=[],T=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:w}=t.value;r.value.forEach(I=>{const M=w.get(I);M&&(!C||C&&M.isLeaf)&&(T.push(I),E.push(M.data))})}return{checkedKeys:T,checkedNodes:E}}function v(){const C=[],E=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:T}=t.value;i.value.forEach(w=>{const I=T.get(w);I&&(E.push(w),C.push(I.data))})}return{halfCheckedNodes:C,halfCheckedKeys:E}}function _(C){r.value.clear(),i.value.clear(),S(C)}function x(C,E){if((t==null?void 0:t.value)&&e.showCheckbox){const T=t.value.treeNodeMap.get(C);T&&a(T,E,!1)}}function S(C){if(t!=null&&t.value){const{treeNodeMap:E}=t.value;if(e.showCheckbox&&E&&C)for(const T of C){const w=E.get(T);w&&!s(w)&&a(w,!0,!1)}}}return{updateCheckedKeys:o,toggleCheckbox:a,isChecked:s,isIndeterminate:l,getCheckedKeys:u,getCheckedNodes:p,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:x,setCheckedKeys:_}}function kFe(e,t){const r=F(new Set([])),i=F(new Set([])),n=O(()=>qt(e.filterMethod));function o(l){var a;if(!n.value)return;const c=new Set,u=i.value,p=r.value,h=[],m=((a=t.value)==null?void 0:a.treeNodes)||[],y=e.filterMethod;p.clear();function v(_){_.forEach(x=>{h.push(x),y!=null&&y(l,x.data)?h.forEach(C=>{c.add(C.key)}):x.isLeaf&&p.add(x.key);const S=x.children;if(S&&v(S),!x.isLeaf){if(!c.has(x.key))p.add(x.key);else if(S){let C=!0;for(const E of S)if(!p.has(E.key)){C=!1;break}C?u.add(x.key):u.delete(x.key)}}h.pop()})}return v(m),c}function s(l){return i.value.has(l.key)}return{hiddenExpandIconKeySet:i,hiddenNodeKeySet:r,doFilter:o,isForceHiddenExpandIcon:s}}function SFe(e,t){const r=F(new Set(e.defaultExpandedKeys)),i=F(),n=gi();Ve(()=>e.currentNodeKey,X=>{i.value=X},{immediate:!0}),Ve(()=>e.data,X=>{_e(X)},{immediate:!0});const{isIndeterminate:o,isChecked:s,toggleCheckbox:l,getCheckedKeys:a,getCheckedNodes:c,getHalfCheckedKeys:u,getHalfCheckedNodes:p,setChecked:h,setCheckedKeys:m}=CFe(e,n),{doFilter:y,hiddenNodeKeySet:v,isForceHiddenExpandIcon:_}=kFe(e,n),x=O(()=>{var X;return((X=e.props)==null?void 0:X.value)||Db.KEY}),S=O(()=>{var X;return((X=e.props)==null?void 0:X.children)||Db.CHILDREN}),C=O(()=>{var X;return((X=e.props)==null?void 0:X.disabled)||Db.DISABLED}),E=O(()=>{var X;return((X=e.props)==null?void 0:X.label)||Db.LABEL}),T=O(()=>{const X=r.value,he=v.value,$e=[],Je=n.value&&n.value.treeNodes||[];function ne(){const pe=[];for(let ge=Je.length-1;ge>=0;--ge)pe.push(Je[ge]);for(;pe.length;){const ge=pe.pop();if(!!ge&&(he.has(ge.key)||$e.push(ge),X.has(ge.key))){const Se=ge.children;if(Se){const xe=Se.length;for(let be=xe-1;be>=0;--be)pe.push(Se[be])}}}}return ne(),$e}),w=O(()=>T.value.length>0);function I(X){const he=new Map,$e=new Map;let Je=1;function ne(ge,Se=1,xe=void 0){var be;const Qe=[];for(const Fe of ge){const Me=R(Fe),Ie={level:Se,key:Me,data:Fe};Ie.label=z(Fe),Ie.parent=xe;const Pe=L(Fe);Ie.disabled=W(Fe),Ie.isLeaf=!Pe||Pe.length===0,Pe&&Pe.length&&(Ie.children=ne(Pe,Se+1,Ie)),Qe.push(Ie),he.set(Me,Ie),$e.has(Se)||$e.set(Se,[]),(be=$e.get(Se))==null||be.push(Ie)}return Se>Je&&(Je=Se),Qe}const pe=ne(X);return{treeNodeMap:he,levelTreeNodeMap:$e,maxLevel:Je,treeNodes:pe}}function M(X){const he=y(X);he&&(r.value=he)}function L(X){return X[S.value]}function R(X){return X?X[x.value]:""}function W(X){return X[C.value]}function z(X){return X[E.value]}function j(X){r.value.has(X.key)?H(X):V(X)}function U(X){r.value=new Set(X)}function Z(X,he){t(dQ,X.data,X,he),Q(X),e.expandOnClickNode&&j(X),e.showCheckbox&&e.checkOnClickNode&&!X.disabled&&l(X,!s(X),!0)}function Q(X){re(X)||(i.value=X.key,t(fQ,X.data,X))}function B(X,he){l(X,he)}function V(X){const he=r.value;if(n.value&&e.accordion){const{treeNodeMap:$e}=n.value;he.forEach(Je=>{const ne=$e.get(Je);X&&X.level===(ne==null?void 0:ne.level)&&he.delete(Je)})}he.add(X.key),t(pQ,X.data,X)}function H(X){r.value.delete(X.key),t(hQ,X.data,X)}function ee(X){return r.value.has(X.key)}function ce(X){return!!X.disabled}function re(X){const he=i.value;return!!he&&he===X.key}function fe(){var X,he;if(!!i.value)return(he=(X=n.value)==null?void 0:X.treeNodeMap.get(i.value))==null?void 0:he.data}function Ne(){return i.value}function de(X){i.value=X}function _e(X){Ct(()=>n.value=I(X))}function ae(X){var he;const $e=yr(X)?R(X):X;return(he=n.value)==null?void 0:he.treeNodeMap.get($e)}return{tree:n,flattenTree:T,isNotEmpty:w,getKey:R,getChildren:L,toggleExpand:j,toggleCheckbox:l,isExpanded:ee,isChecked:s,isIndeterminate:o,isDisabled:ce,isCurrent:re,isForceHiddenExpandIcon:_,handleNodeClick:Z,handleNodeCheck:B,getCurrentNode:fe,getCurrentKey:Ne,setCurrentKey:de,getCheckedKeys:a,getCheckedNodes:c,getHalfCheckedKeys:u,getHalfCheckedNodes:p,setChecked:h,setCheckedKeys:m,filter:M,setData:_e,getNode:ae,expandNode:V,collapseNode:H,setExpandedKeys:U}}var EFe=ye({name:"ElTreeNodeContent",props:_Fe,setup(e){const t=_t(L4),r=He("tree");return()=>{const i=e.node,{data:n}=i;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:i,data:n}):Lt("span",{class:r.be("node","label")},[i==null?void 0:i.label])}}});const TFe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],AFe=ye({name:"ElTreeNode"}),MFe=ye({...AFe,props:bFe,emits:xFe,setup(e,{emit:t}){const r=e,i=_t(L4),n=He("tree"),o=O(()=>{var p;return(p=i==null?void 0:i.props.indent)!=null?p:16}),s=O(()=>{var p;return(p=i==null?void 0:i.props.icon)!=null?p:$q}),l=p=>{t("click",r.node,p)},a=()=>{t("toggle",r.node)},c=p=>{t("check",r.node,p)},u=p=>{var h,m,y,v;(y=(m=(h=i==null?void 0:i.instance)==null?void 0:h.vnode)==null?void 0:m.props)!=null&&y.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),i==null||i.ctx.emit(yQ,p,(v=r.node)==null?void 0:v.data,r.node)};return(p,h)=>{var m,y,v;return $(),K("div",{ref:"node$",class:N([g(n).b("node"),g(n).is("expanded",p.expanded),g(n).is("current",p.current),g(n).is("focusable",!p.disabled),g(n).is("checked",!p.disabled&&p.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(m=p.node)==null?void 0:m.key,onClick:Yt(l,["stop"]),onContextmenu:u},[G("div",{class:N(g(n).be("node","content")),style:St({paddingLeft:`${(p.node.level-1)*g(o)}px`})},[g(s)?($(),Te(g(At),{key:0,class:N([g(n).is("leaf",!!((y=p.node)!=null&&y.isLeaf)),g(n).is("hidden",p.hiddenExpandIcon),{expanded:!((v=p.node)!=null&&v.isLeaf)&&p.expanded},g(n).be("node","expand-icon")]),onClick:Yt(a,["stop"])},{default:me(()=>[($(),Te(br(g(s))))]),_:1},8,["class","onClick"])):ke("v-if",!0),p.showCheckbox?($(),Te(g(sa),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:c,onClick:h[0]||(h[0]=Yt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ke("v-if",!0),Y(g(EFe),{node:p.node},null,8,["node"])],6)],42,TFe)}}});var IFe=ot(MFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const PFe=26,$Fe=ye({name:"ElTreeV2"}),OFe=ye({...$Fe,props:vFe,emits:wFe,setup(e,{expose:t,emit:r}){const i=e,n=go();cr(L4,{ctx:{emit:r,slots:n},props:i,instance:Xt()}),cr(su,void 0);const{t:o}=Hr(),s=He("tree"),{flattenTree:l,isNotEmpty:a,toggleExpand:c,isExpanded:u,isIndeterminate:p,isChecked:h,isDisabled:m,isCurrent:y,isForceHiddenExpandIcon:v,handleNodeClick:_,handleNodeCheck:x,toggleCheckbox:S,getCurrentNode:C,getCurrentKey:E,setCurrentKey:T,getCheckedKeys:w,getCheckedNodes:I,getHalfCheckedKeys:M,getHalfCheckedNodes:L,setChecked:R,setCheckedKeys:W,filter:z,setData:j,getNode:U,expandNode:Z,collapseNode:Q,setExpandedKeys:B}=SFe(i,r);return t({toggleCheckbox:S,getCurrentNode:C,getCurrentKey:E,setCurrentKey:T,getCheckedKeys:w,getCheckedNodes:I,getHalfCheckedKeys:M,getHalfCheckedNodes:L,setChecked:R,setCheckedKeys:W,filter:z,setData:j,getNode:U,expandNode:Z,collapseNode:Q,setExpandedKeys:B}),(V,H)=>{var ee;return $(),K("div",{class:N([g(s).b(),{[g(s).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[g(a)?($(),Te(g(SZ),{key:0,"class-name":g(s).b("virtual-list"),data:g(l),total:g(l).length,height:V.height,"item-size":PFe,"perf-mode":V.perfMode},{default:me(({data:ce,index:re,style:fe})=>[($(),Te(IFe,{key:ce[re].key,style:St(fe),node:ce[re],expanded:g(u)(ce[re]),"show-checkbox":V.showCheckbox,checked:g(h)(ce[re]),indeterminate:g(p)(ce[re]),disabled:g(m)(ce[re]),current:g(y)(ce[re]),"hidden-expand-icon":g(v)(ce[re]),onClick:g(_),onToggle:g(c),onCheck:g(x)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","perf-mode"])):($(),K("div",{key:1,class:N(g(s).e("empty-block"))},[G("span",{class:N(g(s).e("empty-text"))},rt((ee=V.emptyText)!=null?ee:g(o)("el.tree.emptyText")),3)],2))],2)}}});var LFe=ot(OFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const RFe=lr(LFe),DFe="ElUpload";class NFe extends Error{constructor(t,r,i,n){super(t),this.name="UploadAjaxError",this.status=r,this.method=i,this.url=n}}function gV(e,t,r){let i;return r.response?i=`${r.response.error||r.response}`:r.responseText?i=`${r.responseText}`:i=`fail to ${t.method} ${e} ${r.status}`,new NFe(i,r.status,t.method,e)}function FFe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const zFe=e=>{typeof XMLHttpRequest=="undefined"&&zn(DFe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,r=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const s=o;s.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(s)});const i=new FormData;if(e.data)for(const[o,s]of Object.entries(e.data))Array.isArray(s)?i.append(o,...s):i.append(o,s);i.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(gV(r,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(gV(r,e,t));e.onSuccess(FFe(t))}),t.open(e.method,r,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const n=e.headers||{};if(n instanceof Headers)n.forEach((o,s)=>t.setRequestHeader(s,o));else for(const[o,s]of Object.entries(n))fo(s)||t.setRequestHeader(o,String(s));return t.send(i),t},vQ=["text","picture","picture-card"];let jFe=1;const o$=()=>Date.now()+jFe++,bQ=ct({action:{type:String,default:"#"},headers:{type:Oe(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>Mi({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Oe(Array),default:()=>Mi([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:vQ,default:"text"},httpRequest:{type:Oe(Function),default:zFe},disabled:Boolean,limit:Number}),VFe=ct({...bQ,beforeUpload:{type:Oe(Function),default:ti},beforeRemove:{type:Oe(Function)},onRemove:{type:Oe(Function),default:ti},onChange:{type:Oe(Function),default:ti},onPreview:{type:Oe(Function),default:ti},onSuccess:{type:Oe(Function),default:ti},onProgress:{type:Oe(Function),default:ti},onError:{type:Oe(Function),default:ti},onExceed:{type:Oe(Function),default:ti}}),BFe=ct({files:{type:Oe(Array),default:()=>Mi([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Oe(Function),default:ti},listType:{type:String,values:vQ,default:"text"}}),UFe={remove:e=>!!e},WFe=["onKeydown"],HFe=["src"],GFe=["onClick"],qFe=["onClick"],YFe=["onClick"],KFe=ye({name:"ElUploadList"}),ZFe=ye({...KFe,props:BFe,emits:UFe,setup(e,{emit:t}){const{t:r}=Hr(),i=He("upload"),n=He("icon"),o=He("list"),s=Gs(),l=F(!1),a=c=>{t("remove",c)};return(c,u)=>($(),Te(vue,{tag:"ul",class:N([g(i).b("list"),g(i).bm("list",c.listType),g(i).is("disabled",g(s))]),name:g(o).b()},{default:me(()=>[($(!0),K(bt,null,or(c.files,p=>($(),K("li",{key:p.uid||p.name,class:N([g(i).be("list","item"),g(i).is(p.status),{focusing:l.value}]),tabindex:"0",onKeydown:Lr(h=>!g(s)&&a(p),["delete"]),onFocus:u[0]||(u[0]=h=>l.value=!0),onBlur:u[1]||(u[1]=h=>l.value=!1),onClick:u[2]||(u[2]=h=>l.value=!1)},[Be(c.$slots,"default",{file:p},()=>[c.listType==="picture"||p.status!=="uploading"&&c.listType==="picture-card"?($(),K("img",{key:0,class:N(g(i).be("list","item-thumbnail")),src:p.url,alt:""},null,10,HFe)):ke("v-if",!0),p.status==="uploading"||c.listType!=="picture-card"?($(),K("div",{key:1,class:N(g(i).be("list","item-info"))},[G("a",{class:N(g(i).be("list","item-name")),onClick:Yt(h=>c.handlePreview(p),["prevent"])},[Y(g(At),{class:N(g(n).m("document"))},{default:me(()=>[Y(g(s_e))]),_:1},8,["class"]),G("span",{class:N(g(i).be("list","item-file-name"))},rt(p.name),3)],10,GFe),p.status==="uploading"?($(),Te(g(gZ),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:St(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ke("v-if",!0)],2)):ke("v-if",!0),G("label",{class:N(g(i).be("list","item-status-label"))},[c.listType==="text"?($(),Te(g(At),{key:0,class:N([g(n).m("upload-success"),g(n).m("circle-check")])},{default:me(()=>[Y(g(MR))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?($(),Te(g(At),{key:1,class:N([g(n).m("upload-success"),g(n).m("check")])},{default:me(()=>[Y(g(U1))]),_:1},8,["class"])):ke("v-if",!0)],2),g(s)?ke("v-if",!0):($(),Te(g(At),{key:2,class:N(g(n).m("close")),onClick:h=>a(p)},{default:me(()=>[Y(g(ia))]),_:2},1032,["class","onClick"])),ke(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ke(" This is a bug which needs to be fixed "),ke(" TODO: Fix the incorrect navigation interaction "),g(s)?ke("v-if",!0):($(),K("i",{key:3,class:N(g(n).m("close-tip"))},rt(g(r)("el.upload.deleteTip")),3)),c.listType==="picture-card"?($(),K("span",{key:4,class:N(g(i).be("list","item-actions"))},[G("span",{class:N(g(i).be("list","item-preview")),onClick:h=>c.handlePreview(p)},[Y(g(At),{class:N(g(n).m("zoom-in"))},{default:me(()=>[Y(g(Nq))]),_:1},8,["class"])],10,qFe),g(s)?ke("v-if",!0):($(),K("span",{key:0,class:N(g(i).be("list","item-delete")),onClick:h=>a(p)},[Y(g(At),{class:N(g(n).m("delete"))},{default:me(()=>[Y(g(PR))]),_:1},8,["class"])],10,YFe))],2)):ke("v-if",!0)])],42,WFe))),128)),Be(c.$slots,"append")]),_:3},8,["class","name"]))}});var yV=ot(ZFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const QFe=ct({disabled:{type:Boolean,default:!1}}),JFe={file:e=>wt(e)},XFe=["onDrop","onDragover"],_Q="ElUploadDrag",e8e=ye({name:_Q}),t8e=ye({...e8e,props:QFe,emits:JFe,setup(e,{emit:t}){const r=_t(Xq);r||zn(_Q,"usage: <el-upload><el-upload-dragger /></el-upload>");const i=He("upload"),n=F(!1),o=Gs(),s=a=>{if(o.value)return;n.value=!1;const c=Array.from(a.dataTransfer.files),u=r.accept.value;if(!u){t("file",c);return}const p=c.filter(h=>{const{type:m,name:y}=h,v=y.includes(".")?`.${y.split(".").pop()}`:"",_=m.replace(/\/.*$/,"");return u.split(",").map(x=>x.trim()).filter(x=>x).some(x=>x.startsWith(".")?v===x:/\/\*$/.test(x)?_===x.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(x)?m===x:!1)});t("file",p)},l=()=>{o.value||(n.value=!0)};return(a,c)=>($(),K("div",{class:N([g(i).b("dragger"),g(i).is("dragover",n.value)]),onDrop:Yt(s,["prevent"]),onDragover:Yt(l,["prevent"]),onDragleave:c[0]||(c[0]=Yt(u=>n.value=!1,["prevent"]))},[Be(a.$slots,"default")],42,XFe))}});var r8e=ot(t8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const i8e=ct({...bQ,beforeUpload:{type:Oe(Function),default:ti},onRemove:{type:Oe(Function),default:ti},onStart:{type:Oe(Function),default:ti},onSuccess:{type:Oe(Function),default:ti},onProgress:{type:Oe(Function),default:ti},onError:{type:Oe(Function),default:ti},onExceed:{type:Oe(Function),default:ti}}),n8e=["onKeydown"],o8e=["name","multiple","accept"],s8e=ye({name:"ElUploadContent",inheritAttrs:!1}),l8e=ye({...s8e,props:i8e,setup(e,{expose:t}){const r=e,i=He("upload"),n=Gs(),o=gi({}),s=gi(),l=y=>{if(y.length===0)return;const{autoUpload:v,limit:_,fileList:x,multiple:S,onStart:C,onExceed:E}=r;if(_&&x.length+y.length>_){E(y,x);return}S||(y=y.slice(0,1));for(const T of y){const w=T;w.uid=o$(),C(w),v&&a(w)}},a=async y=>{if(s.value.value="",!r.beforeUpload)return c(y);let v;try{v=await r.beforeUpload(y)}catch{v=!1}if(v===!1){r.onRemove(y);return}let _=y;v instanceof Blob&&(v instanceof File?_=v:_=new File([v],y.name,{type:y.type})),c(Object.assign(_,{uid:y.uid}))},c=y=>{const{headers:v,data:_,method:x,withCredentials:S,name:C,action:E,onProgress:T,onSuccess:w,onError:I,httpRequest:M}=r,{uid:L}=y,R={headers:v||{},withCredentials:S,file:y,data:_,method:x,filename:C,action:E,onProgress:z=>{T(z,y)},onSuccess:z=>{w(z,y),delete o.value[L]},onError:z=>{I(z,y),delete o.value[L]}},W=M(R);o.value[L]=W,W instanceof Promise&&W.then(R.onSuccess,R.onError)},u=y=>{const v=y.target.files;!v||l(Array.from(v))},p=()=>{n.value||(s.value.value="",s.value.click())},h=()=>{p()};return t({abort:y=>{l0e(o.value).filter(y?([_])=>String(y.uid)===_:()=>!0).forEach(([_,x])=>{x instanceof XMLHttpRequest&&x.abort(),delete o.value[_]})},upload:a}),(y,v)=>($(),K("div",{class:N([g(i).b(),g(i).m(y.listType),g(i).is("drag",y.drag)]),tabindex:"0",onClick:p,onKeydown:Lr(Yt(h,["self"]),["enter","space"])},[y.drag?($(),Te(r8e,{key:0,disabled:g(n),onFile:l},{default:me(()=>[Be(y.$slots,"default")]),_:3},8,["disabled"])):Be(y.$slots,"default",{key:1}),G("input",{ref_key:"inputRef",ref:s,class:N(g(i).e("input")),name:y.name,multiple:y.multiple,accept:y.accept,type:"file",onChange:u,onClick:v[0]||(v[0]=Yt(()=>{},["stop"]))},null,42,o8e)],42,n8e))}});var vV=ot(l8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const bV="ElUpload",a8e=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},c8e=(e,t)=>{const r=e0e(e,"fileList",void 0,{passive:!0}),i=h=>r.value.find(m=>m.uid===h.uid);function n(h){var m;(m=t.value)==null||m.abort(h)}function o(h=["ready","uploading","success","fail"]){r.value=r.value.filter(m=>!h.includes(m.status))}const s=(h,m)=>{const y=i(m);!y||(console.error(h),y.status="fail",r.value.splice(r.value.indexOf(y),1),e.onError(h,y,r.value),e.onChange(y,r.value))},l=(h,m)=>{const y=i(m);!y||(e.onProgress(h,y,r.value),y.status="uploading",y.percentage=Math.round(h.percent))},a=(h,m)=>{const y=i(m);!y||(y.status="success",y.response=h,e.onSuccess(h,y,r.value),e.onChange(y,r.value))},c=h=>{fo(h.uid)&&(h.uid=o$());const m={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(h)}catch(y){y.message,e.onError(y,m,r.value)}r.value=[...r.value,m],e.onChange(m,r.value)},u=async h=>{const m=h instanceof File?i(h):h;m||zn(bV,"file to be removed not found");const y=v=>{n(v);const _=r.value;_.splice(_.indexOf(v),1),e.onRemove(v,_),a8e(v)};e.beforeRemove?await e.beforeRemove(m,r.value)!==!1&&y(m):y(m)};function p(){r.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var m;return h&&((m=t.value)==null?void 0:m.upload(h))})}return Ve(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(r.value=r.value.map(m=>{const{raw:y,url:v}=m;if(!v&&y)try{m.url=URL.createObjectURL(y)}catch(_){e.onError(_,m,r.value)}return m}))}),Ve(r,h=>{for(const m of h)m.uid||(m.uid=o$()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:r,abort:n,clearFiles:o,handleError:s,handleProgress:l,handleStart:c,handleSuccess:a,handleRemove:u,submit:p}},u8e=ye({name:"ElUpload"}),d8e=ye({...u8e,props:VFe,setup(e,{expose:t}){const r=e,i=go(),n=Gs(),o=gi(),{abort:s,submit:l,clearFiles:a,uploadFiles:c,handleStart:u,handleError:p,handleRemove:h,handleSuccess:m,handleProgress:y}=c8e(r,o),v=O(()=>r.listType==="picture-card"),_=O(()=>({...r,fileList:c.value,onStart:u,onProgress:y,onSuccess:m,onError:p,onRemove:h}));return Ii(()=>{c.value.forEach(({url:x})=>{x!=null&&x.startsWith("blob:")&&URL.revokeObjectURL(x)})}),cr(Xq,{accept:Ni(r,"accept")}),t({abort:s,submit:l,clearFiles:a,handleStart:u,handleRemove:h}),(x,S)=>($(),K("div",null,[g(v)&&x.showFileList?($(),Te(yV,{key:0,disabled:g(n),"list-type":x.listType,files:g(c),"handle-preview":x.onPreview,onRemove:g(h)},fd({append:me(()=>[Y(vV,sr({ref_key:"uploadRef",ref:o},g(_)),{default:me(()=>[g(i).trigger?Be(x.$slots,"trigger",{key:0}):ke("v-if",!0),!g(i).trigger&&g(i).default?Be(x.$slots,"default",{key:1}):ke("v-if",!0)]),_:3},16)]),_:2},[x.$slots.file?{name:"default",fn:me(({file:C})=>[Be(x.$slots,"file",{file:C})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ke("v-if",!0),!g(v)||g(v)&&!x.showFileList?($(),Te(vV,sr({key:1,ref_key:"uploadRef",ref:o},g(_)),{default:me(()=>[g(i).trigger?Be(x.$slots,"trigger",{key:0}):ke("v-if",!0),!g(i).trigger&&g(i).default?Be(x.$slots,"default",{key:1}):ke("v-if",!0)]),_:3},16)):ke("v-if",!0),x.$slots.trigger?Be(x.$slots,"default",{key:2}):ke("v-if",!0),Be(x.$slots,"tip"),!g(v)&&x.showFileList?($(),Te(yV,{key:3,disabled:g(n),"list-type":x.listType,files:g(c),"handle-preview":x.onPreview,onRemove:g(h)},fd({_:2},[x.$slots.file?{name:"default",fn:me(({file:C})=>[Be(x.$slots,"file",{file:C})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ke("v-if",!0)]))}});var p8e=ot(d8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const h8e=lr(p8e);var f8e=[Qxe,a2e,Fke,LDe,Hke,Jke,BY,dSe,pSe,Rn,t4,IEe,REe,KEe,ZEe,lTe,Y3e,hTe,sa,g3e,bK,vTe,NTe,FTe,ATe,IP,$P,xAe,CAe,kAe,SAe,EAe,OMe,UMe,WMe,k3,ZK,yIe,aPe,cPe,uPe,oZ,R$e,D$e,At,Z$e,aZ,Qi,H_,u6e,I6e,P6e,$6e,z6e,BOe,qOe,r5e,zY,gZ,SK,AP,TP,b5e,k5e,P5e,Ld,ig,hS,fOe,wLe,MLe,ILe,sRe,dRe,LZ,xRe,PRe,$Re,URe,K4e,Z4e,ODe,KDe,ZDe,x3,cEe,rNe,lNe,aNe,qs,LNe,KNe,cFe,gFe,RFe,h8e];const Ba="ElInfiniteScroll",m8e=50,g8e=200,y8e=0,v8e={delay:{type:Number,default:g8e},distance:{type:Number,default:y8e},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},R4=(e,t)=>Object.entries(v8e).reduce((r,[i,n])=>{var o,s;const{type:l,default:a}=n,c=e.getAttribute(`infinite-scroll-${i}`);let u=(s=(o=t[c])!=null?o:c)!=null?s:a;return u=u==="false"?!1:u,u=l(u),r[i]=Number.isNaN(u)?a:u,r},{}),wQ=e=>{const{observer:t}=e[Ba];t&&(t.disconnect(),delete e[Ba].observer)},b8e=(e,t)=>{const{container:r,containerEl:i,instance:n,observer:o,lastScrollTop:s}=e[Ba],{disabled:l,distance:a}=R4(e,n),{clientHeight:c,scrollHeight:u,scrollTop:p}=i,h=p-s;if(e[Ba].lastScrollTop=p,o||l||h<0)return;let m=!1;if(r===e)m=u-(c+p)<=a;else{const{clientTop:y,scrollHeight:v}=e,_=n0e(e,i);m=p+c>=_+y+v-a}m&&t.call(n)};function JA(e,t){const{containerEl:r,instance:i}=e[Ba],{disabled:n}=R4(e,i);n||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(i):wQ(e))}const _8e={async mounted(e,t){const{instance:r,value:i}=t;qt(i)||zn(Ba,"'v-infinite-scroll' binding value must be a function"),await Ct();const{delay:n,immediate:o}=R4(e,r),s=AR(e,!0),l=s===window?document.documentElement:s,a=jm(b8e.bind(null,e,i),n);if(!!s){if(e[Ba]={instance:r,container:s,containerEl:l,delay:n,cb:i,onScroll:a,lastScrollTop:l.scrollTop},o){const c=new MutationObserver(jm(JA.bind(null,e,i),m8e));e[Ba].observer=c,c.observe(e,{childList:!0,subtree:!0}),JA(e,i)}s.addEventListener("scroll",a)}},unmounted(e){const{container:t,onScroll:r}=e[Ba];t==null||t.removeEventListener("scroll",r),wQ(e)},async updated(e){e[Ba]||await Ct();const{containerEl:t,cb:r,observer:i}=e[Ba];t.clientHeight&&i&&JA(e,r)}},s$=_8e;s$.install=e=>{e.directive("InfiniteScroll",s$)};const w8e=s$;function x8e(e){let t;const r=He("loading"),i=F(!1),n=kr({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(m){n.text=m}function s(){const m=n.parent;if(!m.vLoadingAddClassList){let y=m.getAttribute("loading-number");y=Number.parseInt(y)-1,y?m.setAttribute("loading-number",y.toString()):(Ns(m,r.bm("parent","relative")),m.removeAttribute("loading-number")),Ns(m,r.bm("parent","hidden"))}l(),p.unmount()}function l(){var m,y;(y=(m=h.$el)==null?void 0:m.parentNode)==null||y.removeChild(h.$el)}function a(){var m;e.beforeClose&&!e.beforeClose()||(i.value=!0,clearTimeout(t),t=window.setTimeout(c,400),n.visible=!1,(m=e.closed)==null||m.call(e))}function c(){if(!i.value)return;const m=n.parent;i.value=!1,m.vLoadingAddClassList=void 0,s()}const p=tR({name:"ElLoading",setup(){return()=>{const m=n.spinner||n.svg,y=Lt("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[Lt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),v=n.text?Lt("p",{class:r.b("text")},[n.text]):void 0;return Lt(Xi,{name:r.b("fade"),onAfterLeave:c},{default:me(()=>[kt(Y("div",{style:{backgroundColor:n.background||""},class:[r.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Lt("div",{class:r.b("spinner")},[y,v])]),[[Vt,n.visible]])])})}}}),h=p.mount(document.createElement("div"));return{...Fn(n),setText:o,removeElLoadingChild:l,close:a,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let p2;const l$=function(e={}){if(!Rr)return;const t=C8e(e);if(t.fullscreen&&p2)return p2;const r=x8e({...t,closed:()=>{var n;(n=t.closed)==null||n.call(t),t.fullscreen&&(p2=void 0)}});k8e(t,t.parent,r),_V(t,t.parent,r),t.parent.vLoadingAddClassList=()=>_V(t,t.parent,r);let i=t.parent.getAttribute("loading-number");return i?i=`${Number.parseInt(i)+1}`:i="1",t.parent.setAttribute("loading-number",i),t.parent.appendChild(r.$el),Ct(()=>r.visible.value=t.visible),t.fullscreen&&(p2=r),r},C8e=e=>{var t,r,i,n;let o;return Kt(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(i=e.lock)!=null?i:!1,customClass:e.customClass||"",visible:(n=e.visible)!=null?n:!0,target:o}},k8e=async(e,t,r)=>{const{nextZIndex:i}=$d(),n={};if(e.fullscreen)r.originalPosition.value=Xu(document.body,"position"),r.originalOverflow.value=Xu(document.body,"overflow"),n.zIndex=i();else if(e.parent===document.body){r.originalPosition.value=Xu(document.body,"position"),await Ct();for(const o of["top","left"]){const s=o==="top"?"scrollTop":"scrollLeft";n[o]=`${e.target.getBoundingClientRect()[o]+document.body[s]+document.documentElement[s]-Number.parseInt(Xu(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])n[o]=`${e.target.getBoundingClientRect()[o]}px`}else r.originalPosition.value=Xu(t,"position");for(const[o,s]of Object.entries(n))r.$el.style[o]=s},_V=(e,t,r)=>{const i=He("loading");["absolute","fixed","sticky"].includes(r.originalPosition.value)?Ns(t,i.bm("parent","relative")):Zc(t,i.bm("parent","relative")),e.fullscreen&&e.lock?Zc(t,i.bm("parent","hidden")):Ns(t,i.bm("parent","hidden"))},a$=Symbol("ElLoading"),wV=(e,t)=>{var r,i,n,o;const s=t.instance,l=h=>yr(t.value)?t.value[h]:void 0,a=h=>{const m=Kt(h)&&(s==null?void 0:s[h])||h;return m&&F(m)},c=h=>a(l(h)||e.getAttribute(`element-loading-${hl(h)}`)),u=(r=l("fullscreen"))!=null?r:t.modifiers.fullscreen,p={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(i=l("target"))!=null?i:u?void 0:e,body:(n=l("body"))!=null?n:t.modifiers.body,lock:(o=l("lock"))!=null?o:t.modifiers.lock};e[a$]={options:p,instance:l$(p)}},S8e=(e,t)=>{for(const r of Object.keys(t))hi(t[r])&&(t[r].value=e[r])},xV={mounted(e,t){t.value&&wV(e,t)},updated(e,t){const r=e[a$];t.oldValue!==t.value&&(t.value&&!t.oldValue?wV(e,t):t.value&&t.oldValue?yr(t.value)&&S8e(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[a$])==null||t.instance.close()}},E8e={install(e){e.directive("loading",xV),e.config.globalProperties.$loading=l$},directive:xV,service:l$},xQ=["success","info","warning","error"],bs=Mi({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Rr?document.body:void 0}),T8e=ct({customClass:{type:String,default:bs.customClass},center:{type:Boolean,default:bs.center},dangerouslyUseHTMLString:{type:Boolean,default:bs.dangerouslyUseHTMLString},duration:{type:Number,default:bs.duration},icon:{type:yi,default:bs.icon},id:{type:String,default:bs.id},message:{type:Oe([String,Object,Function]),default:bs.message},onClose:{type:Oe(Function),required:!1},showClose:{type:Boolean,default:bs.showClose},type:{type:String,values:xQ,default:bs.type},offset:{type:Number,default:bs.offset},zIndex:{type:Number,default:bs.zIndex},grouping:{type:Boolean,default:bs.grouping},repeatNum:{type:Number,default:bs.repeatNum}}),A8e={destroy:()=>!0},Jc=LH([]),M8e=e=>{const t=Jc.findIndex(n=>n.id===e),r=Jc[t];let i;return t>0&&(i=Jc[t-1]),{current:r,prev:i}},I8e=e=>{const{prev:t}=M8e(e);return t?t.vm.exposed.bottom.value:0},P8e=["id"],$8e=["innerHTML"],O8e=ye({name:"ElMessage"}),L8e=ye({...O8e,props:T8e,emits:A8e,setup(e,{expose:t}){const r=e,{Close:i}=OR,n=He("message"),o=F(),s=F(!1),l=F(0);let a;const c=O(()=>r.type?r.type==="error"?"danger":r.type:"info"),u=O(()=>{const E=r.type;return{[n.bm("icon",E)]:E&&Sh[E]}}),p=O(()=>r.icon||Sh[r.type]||""),h=O(()=>I8e(r.id)),m=O(()=>r.offset+h.value),y=O(()=>l.value+m.value),v=O(()=>({top:`${m.value}px`,zIndex:r.zIndex}));function _(){r.duration!==0&&({stop:a}=eg(()=>{S()},r.duration))}function x(){a==null||a()}function S(){s.value=!1}function C({code:E}){E===Rt.esc&&S()}return er(()=>{_(),s.value=!0}),Ve(()=>r.repeatNum,()=>{x(),_()}),Si(document,"keydown",C),Uo(o,()=>{l.value=o.value.getBoundingClientRect().height}),t({visible:s,bottom:y,close:S}),(E,T)=>($(),Te(Xi,{name:g(n).b("fade"),onBeforeLeave:E.onClose,onAfterLeave:T[0]||(T[0]=w=>E.$emit("destroy")),persisted:""},{default:me(()=>[kt(G("div",{id:E.id,ref_key:"messageRef",ref:o,class:N([g(n).b(),{[g(n).m(E.type)]:E.type&&!E.icon},g(n).is("center",E.center),g(n).is("closable",E.showClose),E.customClass]),style:St(g(v)),role:"alert",onMouseenter:x,onMouseleave:_},[E.repeatNum>1?($(),Te(g(BY),{key:0,value:E.repeatNum,type:g(c),class:N(g(n).e("badge"))},null,8,["value","type","class"])):ke("v-if",!0),g(p)?($(),Te(g(At),{key:1,class:N([g(n).e("icon"),g(u)])},{default:me(()=>[($(),Te(br(g(p))))]),_:1},8,["class"])):ke("v-if",!0),Be(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?($(),K(bt,{key:1},[ke(" Caution here, message could've been compromised, never use user's input as message "),G("p",{class:N(g(n).e("content")),innerHTML:E.message},null,10,$8e)],2112)):($(),K("p",{key:0,class:N(g(n).e("content"))},rt(E.message),3))]),E.showClose?($(),Te(g(At),{key:2,class:N(g(n).e("closeBtn")),onClick:Yt(S,["stop"])},{default:me(()=>[Y(g(i))]),_:1},8,["class","onClick"])):ke("v-if",!0)],46,P8e),[[Vt,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var R8e=ot(L8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let D8e=1;const CQ=e=>{const t=!e||Kt(e)||Ei(e)||qt(e)?{message:e}:e,r={...bs,...t};if(!r.appendTo)r.appendTo=document.body;else if(Kt(r.appendTo)){let i=document.querySelector(r.appendTo);lc(i)||(i=document.body),r.appendTo=i}return r},N8e=e=>{const t=Jc.indexOf(e);if(t===-1)return;Jc.splice(t,1);const{handler:r}=e;r.close()},F8e=({appendTo:e,...t},r)=>{const{nextZIndex:i}=$d(),n=`message_${D8e++}`,o=t.onClose,s=document.createElement("div"),l={...t,zIndex:i()+t.zIndex,id:n,onClose:()=>{o==null||o(),N8e(p)},onDestroy:()=>{Ch(null,s)}},a=Y(R8e,l,qt(l.message)||Ei(l.message)?{default:qt(l.message)?l.message:()=>l.message}:null);a.appContext=r||jv._context,Ch(a,s),e.appendChild(s.firstElementChild);const c=a.component,p={id:n,vnode:a,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:a.component.props};return p},jv=(e={},t)=>{if(!Rr)return{close:()=>{}};if(Gt(PP.max)&&Jc.length>=PP.max)return{close:()=>{}};const r=CQ(e);if(r.grouping&&Jc.length){const n=Jc.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===r.message});if(n)return n.props.repeatNum+=1,n.props.type=r.type,n.handler}const i=F8e(r,t);return Jc.push(i),i.handler};xQ.forEach(e=>{jv[e]=(t={},r)=>{const i=CQ(t);return jv({...i,type:e},r)}});function z8e(e){for(const t of Jc)(!e||e===t.props.type)&&t.handler.close()}jv.closeAll=z8e;jv._context=null;const j8e=Vq(jv,"$message"),V8e=ye({name:"ElMessageBox",directives:{TrapFocus:HSe},components:{ElButton:Rn,ElFocusTrap:w3,ElInput:Qi,ElOverlay:a4,ElIcon:At,...OR},inheritAttrs:!1,props:{buttonSize:{type:String,validator:m0},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:r}=Hr(),i=He("message-box"),n=F(!1),{nextZIndex:o}=$d(),s=kr({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),l=O(()=>{const j=s.type;return{[i.bm("icon",j)]:j&&Sh[j]}}),a=ac(),c=ac(),u=An(O(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),p=O(()=>s.icon||Sh[s.type]||""),h=O(()=>!!s.message),m=F(),y=F(),v=F(),_=F(),x=F(),S=O(()=>s.confirmButtonClass);Ve(()=>s.inputValue,async j=>{await Ct(),e.boxType==="prompt"&&j!==null&&L()},{immediate:!0}),Ve(()=>n.value,j=>{var U,Z;j&&(e.boxType!=="prompt"&&(s.autofocus?v.value=(Z=(U=x.value)==null?void 0:U.$el)!=null?Z:m.value:v.value=m.value),s.zIndex=o()),e.boxType==="prompt"&&(j?Ct().then(()=>{var Q;_.value&&_.value.$el&&(s.autofocus?v.value=(Q=R())!=null?Q:m.value:v.value=m.value)}):(s.editorErrorMessage="",s.validateError=!1))});const C=O(()=>e.draggable);nY(m,y,C),er(async()=>{await Ct(),e.closeOnHashChange&&window.addEventListener("hashchange",E)}),Ii(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)});function E(){!n.value||(n.value=!1,Ct(()=>{s.action&&t("action",s.action)}))}const T=()=>{e.closeOnClickModal&&M(s.distinguishCancelAndClose?"close":"cancel")},w=FR(T),I=j=>{if(s.inputType!=="textarea")return j.preventDefault(),M("confirm")},M=j=>{var U;e.boxType==="prompt"&&j==="confirm"&&!L()||(s.action=j,s.beforeClose?(U=s.beforeClose)==null||U.call(s,j,s,E):E())},L=()=>{if(e.boxType==="prompt"){const j=s.inputPattern;if(j&&!j.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||r("el.messagebox.error"),s.validateError=!0,!1;const U=s.inputValidator;if(typeof U=="function"){const Z=U(s.inputValue);if(Z===!1)return s.editorErrorMessage=s.inputErrorMessage||r("el.messagebox.error"),s.validateError=!0,!1;if(typeof Z=="string")return s.editorErrorMessage=Z,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},R=()=>{const j=_.value.$refs;return j.input||j.textarea},W=()=>{M("close")},z=()=>{e.closeOnPressEscape&&W()};return e.lockScroll&&sY(n),oxe(n),{...Fn(s),ns:i,overlayEvent:w,visible:n,hasMessage:h,typeClass:l,contentId:a,inputId:c,btnSize:u,iconComponent:p,confirmButtonClasses:S,rootRef:m,focusStartRef:v,headerRef:y,inputRef:_,confirmRef:x,doClose:E,handleClose:W,onCloseRequested:z,handleWrapperClick:T,handleInputEnter:I,handleAction:M,t:r}}}),B8e=["aria-label","aria-describedby"],U8e=["aria-label"],W8e=["id"];function H8e(e,t,r,i,n,o){const s=Ft("el-icon"),l=Ft("close"),a=Ft("el-input"),c=Ft("el-button"),u=Ft("el-focus-trap"),p=Ft("el-overlay");return $(),Te(Xi,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:me(()=>[kt(Y(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:me(()=>[G("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:N(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...h)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...h)),onMousedown:t[9]||(t[9]=(...h)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...h)),onMouseup:t[10]||(t[10]=(...h)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...h))},[Y(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:me(()=>[G("div",{ref:"rootRef",class:N([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:St(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Yt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?($(),K("div",{key:0,ref:"headerRef",class:N(e.ns.e("header"))},[G("div",{class:N(e.ns.e("title"))},[e.iconComponent&&e.center?($(),Te(s,{key:0,class:N([e.ns.e("status"),e.typeClass])},{default:me(()=>[($(),Te(br(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),G("span",null,rt(e.title),1)],2),e.showClose?($(),K("button",{key:0,type:"button",class:N(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Lr(Yt(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Y(s,{class:N(e.ns.e("close"))},{default:me(()=>[Y(l)]),_:1},8,["class"])],42,U8e)):ke("v-if",!0)],2)):ke("v-if",!0),G("div",{id:e.contentId,class:N(e.ns.e("content"))},[G("div",{class:N(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?($(),Te(s,{key:0,class:N([e.ns.e("status"),e.typeClass])},{default:me(()=>[($(),Te(br(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),e.hasMessage?($(),K("div",{key:1,class:N(e.ns.e("message"))},[Be(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?($(),Te(br(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):($(),Te(br(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:me(()=>[Ir(rt(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ke("v-if",!0)],2),kt(G("div",{class:N(e.ns.e("input"))},[Y(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=h=>e.inputValue=h),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:N({invalid:e.validateError}),onKeydown:Lr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),G("div",{class:N(e.ns.e("errormsg")),style:St({visibility:e.editorErrorMessage?"visible":"hidden"})},rt(e.editorErrorMessage),7)],2),[[Vt,e.showInput]])],10,W8e),G("div",{class:N(e.ns.e("btns"))},[e.showCancelButton?($(),Te(c,{key:0,loading:e.cancelButtonLoading,class:N([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=h=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Lr(Yt(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:me(()=>[Ir(rt(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ke("v-if",!0),kt(Y(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:N([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=h=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Lr(Yt(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:me(()=>[Ir(rt(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Vt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,B8e)]),_:3},8,["z-index","overlay-class","mask"]),[[Vt,e.visible]])]),_:3})}var G8e=ot(V8e,[["render",H8e],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Zw=new Map,q8e=e=>{let t=document.body;return e.appendTo&&(Kt(e.appendTo)&&(t=document.querySelector(e.appendTo)),lc(e.appendTo)&&(t=e.appendTo),lc(t)||(t=document.body)),t},Y8e=(e,t,r=null)=>{const i=Y(G8e,e,qt(e.message)||Ei(e.message)?{default:qt(e.message)?e.message:()=>e.message}:null);return i.appContext=r,Ch(i,t),q8e(e).appendChild(t.firstElementChild),i.component},K8e=()=>document.createElement("div"),Z8e=(e,t)=>{const r=K8e();e.onVanish=()=>{Ch(null,r),Zw.delete(n)},e.onAction=o=>{const s=Zw.get(n);let l;e.showInput?l={value:n.inputValue,action:o}:l=o,e.callback?e.callback(l,i.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const i=Y8e(e,r,t),n=i.proxy;for(const o in e)Mr(e,o)&&!Mr(n.$props,o)&&(n[o]=e[o]);return n.visible=!0,n};function y0(e,t=null){if(!Rr)return Promise.reject();let r;return Kt(e)||Ei(e)?e={message:e}:r=e.callback,new Promise((i,n)=>{const o=Z8e(e,t!=null?t:y0._context);Zw.set(o,{options:e,callback:r,resolve:i,reject:n})})}const Q8e=["alert","confirm","prompt"],J8e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Q8e.forEach(e=>{y0[e]=X8e(e)});function X8e(e){return(t,r,i,n)=>{let o="";return yr(r)?(i=r,o=""):po(r)?o="":o=r,y0(Object.assign({title:o,message:t,type:"",...J8e[e]},i,{boxType:e}),n)}}y0.close=()=>{Zw.forEach((e,t)=>{t.doClose()}),Zw.clear()};y0._context=null;const mp=y0;mp.install=e=>{mp._context=e._context,e.config.globalProperties.$msgbox=mp,e.config.globalProperties.$messageBox=mp,e.config.globalProperties.$alert=mp.alert,e.config.globalProperties.$confirm=mp.confirm,e.config.globalProperties.$prompt=mp.prompt};const eze=mp,kQ=["success","info","warning","error"],tze=ct({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:yi},id:{type:String,default:""},message:{type:Oe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Oe(Function),default:()=>{}},onClose:{type:Oe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...kQ,""],default:""},zIndex:{type:Number,default:0}}),rze={destroy:()=>!0},ize=["id"],nze=["textContent"],oze={key:0},sze=["innerHTML"],lze=ye({name:"ElNotification"}),aze=ye({...lze,props:tze,emits:rze,setup(e,{expose:t}){const r=e,i=He("notification"),{Close:n}=zq,o=F(!1);let s;const l=O(()=>{const _=r.type;return _&&Sh[r.type]?i.m(_):""}),a=O(()=>r.type&&Sh[r.type]||r.icon),c=O(()=>r.position.endsWith("right")?"right":"left"),u=O(()=>r.position.startsWith("top")?"top":"bottom"),p=O(()=>({[u.value]:`${r.offset}px`,zIndex:r.zIndex}));function h(){r.duration>0&&({stop:s}=eg(()=>{o.value&&y()},r.duration))}function m(){s==null||s()}function y(){o.value=!1}function v({code:_}){_===Rt.delete||_===Rt.backspace?m():_===Rt.esc?o.value&&y():h()}return er(()=>{h(),o.value=!0}),Si(document,"keydown",v),t({visible:o,close:y}),(_,x)=>($(),Te(Xi,{name:g(i).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:x[1]||(x[1]=S=>_.$emit("destroy")),persisted:""},{default:me(()=>[kt(G("div",{id:_.id,class:N([g(i).b(),_.customClass,g(c)]),style:St(g(p)),role:"alert",onMouseenter:m,onMouseleave:h,onClick:x[0]||(x[0]=(...S)=>_.onClick&&_.onClick(...S))},[g(a)?($(),Te(g(At),{key:0,class:N([g(i).e("icon"),g(l)])},{default:me(()=>[($(),Te(br(g(a))))]),_:1},8,["class"])):ke("v-if",!0),G("div",{class:N(g(i).e("group"))},[G("h2",{class:N(g(i).e("title")),textContent:rt(_.title)},null,10,nze),kt(G("div",{class:N(g(i).e("content")),style:St(_.title?void 0:{margin:0})},[Be(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?($(),K(bt,{key:1},[ke(" Caution here, message could've been compromised, never use user's input as message "),G("p",{innerHTML:_.message},null,8,sze)],2112)):($(),K("p",oze,rt(_.message),1))])],6),[[Vt,_.message]]),_.showClose?($(),Te(g(At),{key:0,class:N(g(i).e("closeBtn")),onClick:Yt(y,["stop"])},{default:me(()=>[Y(g(n))]),_:1},8,["class","onClick"])):ke("v-if",!0)],2)],46,ize),[[Vt,o.value]])]),_:3},8,["name","onBeforeLeave"]))}});var cze=ot(aze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const xS={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},c$=16;let uze=1;const Vv=function(e={},t=null){if(!Rr)return{close:()=>{}};(typeof e=="string"||Ei(e))&&(e={message:e});const r=e.position||"top-right";let i=e.offset||0;xS[r].forEach(({vm:p})=>{var h;i+=(((h=p.el)==null?void 0:h.offsetHeight)||0)+c$}),i+=c$;const{nextZIndex:n}=$d(),o=`notification_${uze++}`,s=e.onClose,l={zIndex:n(),...e,offset:i,id:o,onClose:()=>{dze(o,r,s)}};let a=document.body;lc(e.appendTo)?a=e.appendTo:Kt(e.appendTo)&&(a=document.querySelector(e.appendTo)),lc(a)||(a=document.body);const c=document.createElement("div"),u=Y(cze,l,Ei(l.message)?{default:()=>l.message}:null);return u.appContext=t!=null?t:Vv._context,u.props.onDestroy=()=>{Ch(null,c)},Ch(u,c),xS[r].push({vm:u}),a.appendChild(c.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};kQ.forEach(e=>{Vv[e]=(t={})=>((typeof t=="string"||Ei(t))&&(t={message:t}),Vv({...t,type:e}))});function dze(e,t,r){const i=xS[t],n=i.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===e});if(n===-1)return;const{vm:o}=i[n];if(!o)return;r==null||r(o);const s=o.el.offsetHeight,l=t.split("-")[0];i.splice(n,1);const a=i.length;if(!(a<1))for(let c=n;c<a;c++){const{el:u,component:p}=i[c].vm,h=Number.parseInt(u.style[l],10)-s-c$;p.props.offset=h}}function pze(){for(const e of Object.values(xS))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Vv.closeAll=pze;Vv._context=null;const hze=Vq(Vv,"$notify");var fze=[w8e,E8e,j8e,eze,hze,mZ],mze=Hxe([...f8e,...fze]);const gze={class:"jt-dialog"},yze={slot:"title",class:"header-title"},vze={style:{"line-height":"14px","font-size":"18px",color:"#fff","font-family":"'Alimama_ShuHeiTi_Bold'"}},bze={class:"odin-dialog__content"},_ze={name:"",props:{showDialog:{type:Boolean,default:!1},title:{type:String,default:"jt-dialog"},width:{type:String,default:"300px"},top:{type:String,default:"0px"},right:{type:String,default:"0px"},direction:{type:String,default:"rtl"},height:{type:String,default:"100%"},background:{type:String,default:"rgb(0 44 126 / 68%)"}},computed:{animationClass(){return this.direction==="rtl"?"fadein-right":this.direction==="ltr"?"fadein-left":this.direction==="ttb"?"fadein-top":this.direction==="btt"?"fadein-bottom":"fadein-center"}},data(){return{dialogVisible:this.showDialog}},watch:{showDialog:function(e,t){this.dialogVisible=e}},methods:{handleClose(){this.$emit("closeJTDialog")}},mounted(){}},wze=Object.assign(_ze,{setup(e){return(t,r)=>($(),K("div",gze,[Y(g(k3),{class:N([t.animationClass]),draggable:"",modal:!1,"destroy-on-close":!1,modelValue:t.dialogVisible,"onUpdate:modelValue":r[0]||(r[0]=i=>t.dialogVisible=i),title:e.title,style:St({right:e.right,background:e.background,height:e.height,width:e.width,top:e.top}),onClose:t.handleClose},{header:me(()=>[G("div",yze,[G("span",vze,rt(e.title),1)])]),default:me(()=>[G("div",bze,[Be(t.$slots,"default")])]),_:3},8,["class","modelValue","title","style","onClose"])]))}});/*! Element Plus v2.2.27 */var SQ={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};/*! Element Plus v2.2.27 */var EQ={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}},TQ={exports:{}};/*!
- * jQuery JavaScript Library v3.6.3
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2022-12-20T21:28Z
- */(function(e){(function(t,r){e.exports=t.document?r(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return r(i)}})(typeof window!="undefined"?window:da,function(t,r){var i=[],n=Object.getPrototypeOf,o=i.slice,s=i.flat?function(k){return i.flat.call(k)}:function(k){return i.concat.apply([],k)},l=i.push,a=i.indexOf,c={},u=c.toString,p=c.hasOwnProperty,h=p.toString,m=h.call(Object),y={},v=function(A){return typeof A=="function"&&typeof A.nodeType!="number"&&typeof A.item!="function"},_=function(A){return A!=null&&A===A.window},x=t.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function C(k,A,P){P=P||x;var D,q,J=P.createElement("script");if(J.text=k,A)for(D in S)q=A[D]||A.getAttribute&&A.getAttribute(D),q&&J.setAttribute(D,q);P.head.appendChild(J).parentNode.removeChild(J)}function E(k){return k==null?k+"":typeof k=="object"||typeof k=="function"?c[u.call(k)]||"object":typeof k}var T="3.6.3",w=function(k,A){return new w.fn.init(k,A)};w.fn=w.prototype={jquery:T,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(k){return k==null?o.call(this):k<0?this[k+this.length]:this[k]},pushStack:function(k){var A=w.merge(this.constructor(),k);return A.prevObject=this,A},each:function(k){return w.each(this,k)},map:function(k){return this.pushStack(w.map(this,function(A,P){return k.call(A,P,A)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(k,A){return(A+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(k,A){return A%2}))},eq:function(k){var A=this.length,P=+k+(k<0?A:0);return this.pushStack(P>=0&&P<A?[this[P]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var k,A,P,D,q,J,oe=arguments[0]||{},Re=1,Ee=arguments.length,Ke=!1;for(typeof oe=="boolean"&&(Ke=oe,oe=arguments[Re]||{},Re++),typeof oe!="object"&&!v(oe)&&(oe={}),Re===Ee&&(oe=this,Re--);Re<Ee;Re++)if((k=arguments[Re])!=null)for(A in k)D=k[A],!(A==="__proto__"||oe===D)&&(Ke&&D&&(w.isPlainObject(D)||(q=Array.isArray(D)))?(P=oe[A],q&&!Array.isArray(P)?J=[]:!q&&!w.isPlainObject(P)?J={}:J=P,q=!1,oe[A]=w.extend(Ke,J,D)):D!==void 0&&(oe[A]=D));return oe},w.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(k){throw new Error(k)},noop:function(){},isPlainObject:function(k){var A,P;return!k||u.call(k)!=="[object Object]"?!1:(A=n(k),A?(P=p.call(A,"constructor")&&A.constructor,typeof P=="function"&&h.call(P)===m):!0)},isEmptyObject:function(k){var A;for(A in k)return!1;return!0},globalEval:function(k,A,P){C(k,{nonce:A&&A.nonce},P)},each:function(k,A){var P,D=0;if(I(k))for(P=k.length;D<P&&A.call(k[D],D,k[D])!==!1;D++);else for(D in k)if(A.call(k[D],D,k[D])===!1)break;return k},makeArray:function(k,A){var P=A||[];return k!=null&&(I(Object(k))?w.merge(P,typeof k=="string"?[k]:k):l.call(P,k)),P},inArray:function(k,A,P){return A==null?-1:a.call(A,k,P)},merge:function(k,A){for(var P=+A.length,D=0,q=k.length;D<P;D++)k[q++]=A[D];return k.length=q,k},grep:function(k,A,P){for(var D,q=[],J=0,oe=k.length,Re=!P;J<oe;J++)D=!A(k[J],J),D!==Re&&q.push(k[J]);return q},map:function(k,A,P){var D,q,J=0,oe=[];if(I(k))for(D=k.length;J<D;J++)q=A(k[J],J,P),q!=null&&oe.push(q);else for(J in k)q=A(k[J],J,P),q!=null&&oe.push(q);return s(oe)},guid:1,support:y}),typeof Symbol=="function"&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(k,A){c["[object "+A+"]"]=A.toLowerCase()});function I(k){var A=!!k&&"length"in k&&k.length,P=E(k);return v(k)||_(k)?!1:P==="array"||A===0||typeof A=="number"&&A>0&&A-1 in k}var M=function(k){var A,P,D,q,J,oe,Re,Ee,Ke,lt,Pt,nt,ht,mr,Vr,hr,Vn,Mn,Ks,Ti="sizzle"+1*new Date,zr=k.document,ms=0,ai=0,ln=Fx(),K0=Fx(),Rx=Fx(),Zs=Fx(),ef=function(le,Ae){return le===Ae&&(Pt=!0),0},tf={}.hasOwnProperty,gs=[],Wd=gs.pop,El=gs.push,Hd=gs.push,NF=gs.slice,rf=function(le,Ae){for(var je=0,mt=le.length;je<mt;je++)if(le[je]===Ae)return je;return-1},lA="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",vi="[\\x20\\t\\r\\n\\f]",nf="(?:\\\\[\\da-fA-F]{1,6}"+vi+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",FF="\\["+vi+"*("+nf+")(?:"+vi+"*([*^$|!~]?=)"+vi+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+nf+"))|)"+vi+"*\\]",aA=":("+nf+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+FF+")*)|.*)\\)|)",Ble=new RegExp(vi+"+","g"),Dx=new RegExp("^"+vi+"+|((?:^|[^\\\\])(?:\\\\.)*)"+vi+"+$","g"),Ule=new RegExp("^"+vi+"*,"+vi+"*"),zF=new RegExp("^"+vi+"*([>+~]|"+vi+")"+vi+"*"),Wle=new RegExp(vi+"|>"),Hle=new RegExp(aA),Gle=new RegExp("^"+nf+"$"),Nx={ID:new RegExp("^#("+nf+")"),CLASS:new RegExp("^\\.("+nf+")"),TAG:new RegExp("^("+nf+"|[*])"),ATTR:new RegExp("^"+FF),PSEUDO:new RegExp("^"+aA),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+vi+"*(even|odd|(([+-]|)(\\d*)n|)"+vi+"*(?:([+-]|)"+vi+"*(\\d+)|))"+vi+"*\\)|)","i"),bool:new RegExp("^(?:"+lA+")$","i"),needsContext:new RegExp("^"+vi+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+vi+"*((?:-\\d)?\\d*)"+vi+"*\\)|)(?=[^-]|$)","i")},qle=/HTML$/i,Yle=/^(?:input|select|textarea|button)$/i,Kle=/^h\d$/i,Z0=/^[^{]+\{\s*\[native \w/,Zle=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,cA=/[+~]/,yu=new RegExp("\\\\[\\da-fA-F]{1,6}"+vi+"?|\\\\([^\\r\\n\\f])","g"),vu=function(le,Ae){var je="0x"+le.slice(1)-65536;return Ae||(je<0?String.fromCharCode(je+65536):String.fromCharCode(je>>10|55296,je&1023|56320))},jF=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,VF=function(le,Ae){return Ae?le==="\0"?"\uFFFD":le.slice(0,-1)+"\\"+le.charCodeAt(le.length-1).toString(16)+" ":"\\"+le},BF=function(){nt()},Qle=jx(function(le){return le.disabled===!0&&le.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Hd.apply(gs=NF.call(zr.childNodes),zr.childNodes),gs[zr.childNodes.length].nodeType}catch{Hd={apply:gs.length?function(Ae,je){El.apply(Ae,NF.call(je))}:function(Ae,je){for(var mt=Ae.length,Ye=0;Ae[mt++]=je[Ye++];);Ae.length=mt-1}}}function Oi(le,Ae,je,mt){var Ye,yt,$t,Wt,Qt,Sr,_r,Ar=Ae&&Ae.ownerDocument,Jr=Ae?Ae.nodeType:9;if(je=je||[],typeof le!="string"||!le||Jr!==1&&Jr!==9&&Jr!==11)return je;if(!mt&&(nt(Ae),Ae=Ae||ht,Vr)){if(Jr!==11&&(Qt=Zle.exec(le)))if(Ye=Qt[1]){if(Jr===9)if($t=Ae.getElementById(Ye)){if($t.id===Ye)return je.push($t),je}else return je;else if(Ar&&($t=Ar.getElementById(Ye))&&Ks(Ae,$t)&&$t.id===Ye)return je.push($t),je}else{if(Qt[2])return Hd.apply(je,Ae.getElementsByTagName(le)),je;if((Ye=Qt[3])&&P.getElementsByClassName&&Ae.getElementsByClassName)return Hd.apply(je,Ae.getElementsByClassName(Ye)),je}if(P.qsa&&!Zs[le+" "]&&(!hr||!hr.test(le))&&(Jr!==1||Ae.nodeName.toLowerCase()!=="object")){if(_r=le,Ar=Ae,Jr===1&&(Wle.test(le)||zF.test(le))){for(Ar=cA.test(le)&&dA(Ae.parentNode)||Ae,(Ar!==Ae||!P.scope)&&((Wt=Ae.getAttribute("id"))?Wt=Wt.replace(jF,VF):Ae.setAttribute("id",Wt=Ti)),Sr=oe(le),yt=Sr.length;yt--;)Sr[yt]=(Wt?"#"+Wt:":scope")+" "+zx(Sr[yt]);_r=Sr.join(",")}try{if(P.cssSupportsSelector&&!CSS.supports("selector(:is("+_r+"))"))throw new Error;return Hd.apply(je,Ar.querySelectorAll(_r)),je}catch{Zs(le,!0)}finally{Wt===Ti&&Ae.removeAttribute("id")}}}return Ee(le.replace(Dx,"$1"),Ae,je,mt)}function Fx(){var le=[];function Ae(je,mt){return le.push(je+" ")>D.cacheLength&&delete Ae[le.shift()],Ae[je+" "]=mt}return Ae}function ma(le){return le[Ti]=!0,le}function Tl(le){var Ae=ht.createElement("fieldset");try{return!!le(Ae)}catch{return!1}finally{Ae.parentNode&&Ae.parentNode.removeChild(Ae),Ae=null}}function uA(le,Ae){for(var je=le.split("|"),mt=je.length;mt--;)D.attrHandle[je[mt]]=Ae}function UF(le,Ae){var je=Ae&&le,mt=je&&le.nodeType===1&&Ae.nodeType===1&&le.sourceIndex-Ae.sourceIndex;if(mt)return mt;if(je){for(;je=je.nextSibling;)if(je===Ae)return-1}return le?1:-1}function Jle(le){return function(Ae){var je=Ae.nodeName.toLowerCase();return je==="input"&&Ae.type===le}}function Xle(le){return function(Ae){var je=Ae.nodeName.toLowerCase();return(je==="input"||je==="button")&&Ae.type===le}}function WF(le){return function(Ae){return"form"in Ae?Ae.parentNode&&Ae.disabled===!1?"label"in Ae?"label"in Ae.parentNode?Ae.parentNode.disabled===le:Ae.disabled===le:Ae.isDisabled===le||Ae.isDisabled!==!le&&Qle(Ae)===le:Ae.disabled===le:"label"in Ae?Ae.disabled===le:!1}}function of(le){return ma(function(Ae){return Ae=+Ae,ma(function(je,mt){for(var Ye,yt=le([],je.length,Ae),$t=yt.length;$t--;)je[Ye=yt[$t]]&&(je[Ye]=!(mt[Ye]=je[Ye]))})})}function dA(le){return le&&typeof le.getElementsByTagName!="undefined"&&le}P=Oi.support={},J=Oi.isXML=function(le){var Ae=le&&le.namespaceURI,je=le&&(le.ownerDocument||le).documentElement;return!qle.test(Ae||je&&je.nodeName||"HTML")},nt=Oi.setDocument=function(le){var Ae,je,mt=le?le.ownerDocument||le:zr;return mt==ht||mt.nodeType!==9||!mt.documentElement||(ht=mt,mr=ht.documentElement,Vr=!J(ht),zr!=ht&&(je=ht.defaultView)&&je.top!==je&&(je.addEventListener?je.addEventListener("unload",BF,!1):je.attachEvent&&je.attachEvent("onunload",BF)),P.scope=Tl(function(Ye){return mr.appendChild(Ye).appendChild(ht.createElement("div")),typeof Ye.querySelectorAll!="undefined"&&!Ye.querySelectorAll(":scope fieldset div").length}),P.cssSupportsSelector=Tl(function(){return CSS.supports("selector(*)")&&ht.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),P.attributes=Tl(function(Ye){return Ye.className="i",!Ye.getAttribute("className")}),P.getElementsByTagName=Tl(function(Ye){return Ye.appendChild(ht.createComment("")),!Ye.getElementsByTagName("*").length}),P.getElementsByClassName=Z0.test(ht.getElementsByClassName),P.getById=Tl(function(Ye){return mr.appendChild(Ye).id=Ti,!ht.getElementsByName||!ht.getElementsByName(Ti).length}),P.getById?(D.filter.ID=function(Ye){var yt=Ye.replace(yu,vu);return function($t){return $t.getAttribute("id")===yt}},D.find.ID=function(Ye,yt){if(typeof yt.getElementById!="undefined"&&Vr){var $t=yt.getElementById(Ye);return $t?[$t]:[]}}):(D.filter.ID=function(Ye){var yt=Ye.replace(yu,vu);return function($t){var Wt=typeof $t.getAttributeNode!="undefined"&&$t.getAttributeNode("id");return Wt&&Wt.value===yt}},D.find.ID=function(Ye,yt){if(typeof yt.getElementById!="undefined"&&Vr){var $t,Wt,Qt,Sr=yt.getElementById(Ye);if(Sr){if($t=Sr.getAttributeNode("id"),$t&&$t.value===Ye)return[Sr];for(Qt=yt.getElementsByName(Ye),Wt=0;Sr=Qt[Wt++];)if($t=Sr.getAttributeNode("id"),$t&&$t.value===Ye)return[Sr]}return[]}}),D.find.TAG=P.getElementsByTagName?function(Ye,yt){if(typeof yt.getElementsByTagName!="undefined")return yt.getElementsByTagName(Ye);if(P.qsa)return yt.querySelectorAll(Ye)}:function(Ye,yt){var $t,Wt=[],Qt=0,Sr=yt.getElementsByTagName(Ye);if(Ye==="*"){for(;$t=Sr[Qt++];)$t.nodeType===1&&Wt.push($t);return Wt}return Sr},D.find.CLASS=P.getElementsByClassName&&function(Ye,yt){if(typeof yt.getElementsByClassName!="undefined"&&Vr)return yt.getElementsByClassName(Ye)},Vn=[],hr=[],(P.qsa=Z0.test(ht.querySelectorAll))&&(Tl(function(Ye){var yt;mr.appendChild(Ye).innerHTML="<a id='"+Ti+"'></a><select id='"+Ti+"-\r\\' msallowcapture=''><option selected=''></option></select>",Ye.querySelectorAll("[msallowcapture^='']").length&&hr.push("[*^$]="+vi+`*(?:''|"")`),Ye.querySelectorAll("[selected]").length||hr.push("\\["+vi+"*(?:value|"+lA+")"),Ye.querySelectorAll("[id~="+Ti+"-]").length||hr.push("~="),yt=ht.createElement("input"),yt.setAttribute("name",""),Ye.appendChild(yt),Ye.querySelectorAll("[name='']").length||hr.push("\\["+vi+"*name"+vi+"*="+vi+`*(?:''|"")`),Ye.querySelectorAll(":checked").length||hr.push(":checked"),Ye.querySelectorAll("a#"+Ti+"+*").length||hr.push(".#.+[+~]"),Ye.querySelectorAll("\\\f"),hr.push("[\\r\\n\\f]")}),Tl(function(Ye){Ye.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var yt=ht.createElement("input");yt.setAttribute("type","hidden"),Ye.appendChild(yt).setAttribute("name","D"),Ye.querySelectorAll("[name=d]").length&&hr.push("name"+vi+"*[*^$|!~]?="),Ye.querySelectorAll(":enabled").length!==2&&hr.push(":enabled",":disabled"),mr.appendChild(Ye).disabled=!0,Ye.querySelectorAll(":disabled").length!==2&&hr.push(":enabled",":disabled"),Ye.querySelectorAll("*,:x"),hr.push(",.*:")})),(P.matchesSelector=Z0.test(Mn=mr.matches||mr.webkitMatchesSelector||mr.mozMatchesSelector||mr.oMatchesSelector||mr.msMatchesSelector))&&Tl(function(Ye){P.disconnectedMatch=Mn.call(Ye,"*"),Mn.call(Ye,"[s!='']:x"),Vn.push("!=",aA)}),P.cssSupportsSelector||hr.push(":has"),hr=hr.length&&new RegExp(hr.join("|")),Vn=Vn.length&&new RegExp(Vn.join("|")),Ae=Z0.test(mr.compareDocumentPosition),Ks=Ae||Z0.test(mr.contains)?function(Ye,yt){var $t=Ye.nodeType===9&&Ye.documentElement||Ye,Wt=yt&&yt.parentNode;return Ye===Wt||!!(Wt&&Wt.nodeType===1&&($t.contains?$t.contains(Wt):Ye.compareDocumentPosition&&Ye.compareDocumentPosition(Wt)&16))}:function(Ye,yt){if(yt){for(;yt=yt.parentNode;)if(yt===Ye)return!0}return!1},ef=Ae?function(Ye,yt){if(Ye===yt)return Pt=!0,0;var $t=!Ye.compareDocumentPosition-!yt.compareDocumentPosition;return $t||($t=(Ye.ownerDocument||Ye)==(yt.ownerDocument||yt)?Ye.compareDocumentPosition(yt):1,$t&1||!P.sortDetached&&yt.compareDocumentPosition(Ye)===$t?Ye==ht||Ye.ownerDocument==zr&&Ks(zr,Ye)?-1:yt==ht||yt.ownerDocument==zr&&Ks(zr,yt)?1:lt?rf(lt,Ye)-rf(lt,yt):0:$t&4?-1:1)}:function(Ye,yt){if(Ye===yt)return Pt=!0,0;var $t,Wt=0,Qt=Ye.parentNode,Sr=yt.parentNode,_r=[Ye],Ar=[yt];if(!Qt||!Sr)return Ye==ht?-1:yt==ht?1:Qt?-1:Sr?1:lt?rf(lt,Ye)-rf(lt,yt):0;if(Qt===Sr)return UF(Ye,yt);for($t=Ye;$t=$t.parentNode;)_r.unshift($t);for($t=yt;$t=$t.parentNode;)Ar.unshift($t);for(;_r[Wt]===Ar[Wt];)Wt++;return Wt?UF(_r[Wt],Ar[Wt]):_r[Wt]==zr?-1:Ar[Wt]==zr?1:0}),ht},Oi.matches=function(le,Ae){return Oi(le,null,null,Ae)},Oi.matchesSelector=function(le,Ae){if(nt(le),P.matchesSelector&&Vr&&!Zs[Ae+" "]&&(!Vn||!Vn.test(Ae))&&(!hr||!hr.test(Ae)))try{var je=Mn.call(le,Ae);if(je||P.disconnectedMatch||le.document&&le.document.nodeType!==11)return je}catch{Zs(Ae,!0)}return Oi(Ae,ht,null,[le]).length>0},Oi.contains=function(le,Ae){return(le.ownerDocument||le)!=ht&&nt(le),Ks(le,Ae)},Oi.attr=function(le,Ae){(le.ownerDocument||le)!=ht&&nt(le);var je=D.attrHandle[Ae.toLowerCase()],mt=je&&tf.call(D.attrHandle,Ae.toLowerCase())?je(le,Ae,!Vr):void 0;return mt!==void 0?mt:P.attributes||!Vr?le.getAttribute(Ae):(mt=le.getAttributeNode(Ae))&&mt.specified?mt.value:null},Oi.escape=function(le){return(le+"").replace(jF,VF)},Oi.error=function(le){throw new Error("Syntax error, unrecognized expression: "+le)},Oi.uniqueSort=function(le){var Ae,je=[],mt=0,Ye=0;if(Pt=!P.detectDuplicates,lt=!P.sortStable&&le.slice(0),le.sort(ef),Pt){for(;Ae=le[Ye++];)Ae===le[Ye]&&(mt=je.push(Ye));for(;mt--;)le.splice(je[mt],1)}return lt=null,le},q=Oi.getText=function(le){var Ae,je="",mt=0,Ye=le.nodeType;if(Ye){if(Ye===1||Ye===9||Ye===11){if(typeof le.textContent=="string")return le.textContent;for(le=le.firstChild;le;le=le.nextSibling)je+=q(le)}else if(Ye===3||Ye===4)return le.nodeValue}else for(;Ae=le[mt++];)je+=q(Ae);return je},D=Oi.selectors={cacheLength:50,createPseudo:ma,match:Nx,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(le){return le[1]=le[1].replace(yu,vu),le[3]=(le[3]||le[4]||le[5]||"").replace(yu,vu),le[2]==="~="&&(le[3]=" "+le[3]+" "),le.slice(0,4)},CHILD:function(le){return le[1]=le[1].toLowerCase(),le[1].slice(0,3)==="nth"?(le[3]||Oi.error(le[0]),le[4]=+(le[4]?le[5]+(le[6]||1):2*(le[3]==="even"||le[3]==="odd")),le[5]=+(le[7]+le[8]||le[3]==="odd")):le[3]&&Oi.error(le[0]),le},PSEUDO:function(le){var Ae,je=!le[6]&&le[2];return Nx.CHILD.test(le[0])?null:(le[3]?le[2]=le[4]||le[5]||"":je&&Hle.test(je)&&(Ae=oe(je,!0))&&(Ae=je.indexOf(")",je.length-Ae)-je.length)&&(le[0]=le[0].slice(0,Ae),le[2]=je.slice(0,Ae)),le.slice(0,3))}},filter:{TAG:function(le){var Ae=le.replace(yu,vu).toLowerCase();return le==="*"?function(){return!0}:function(je){return je.nodeName&&je.nodeName.toLowerCase()===Ae}},CLASS:function(le){var Ae=ln[le+" "];return Ae||(Ae=new RegExp("(^|"+vi+")"+le+"("+vi+"|$)"))&&ln(le,function(je){return Ae.test(typeof je.className=="string"&&je.className||typeof je.getAttribute!="undefined"&&je.getAttribute("class")||"")})},ATTR:function(le,Ae,je){return function(mt){var Ye=Oi.attr(mt,le);return Ye==null?Ae==="!=":Ae?(Ye+="",Ae==="="?Ye===je:Ae==="!="?Ye!==je:Ae==="^="?je&&Ye.indexOf(je)===0:Ae==="*="?je&&Ye.indexOf(je)>-1:Ae==="$="?je&&Ye.slice(-je.length)===je:Ae==="~="?(" "+Ye.replace(Ble," ")+" ").indexOf(je)>-1:Ae==="|="?Ye===je||Ye.slice(0,je.length+1)===je+"-":!1):!0}},CHILD:function(le,Ae,je,mt,Ye){var yt=le.slice(0,3)!=="nth",$t=le.slice(-4)!=="last",Wt=Ae==="of-type";return mt===1&&Ye===0?function(Qt){return!!Qt.parentNode}:function(Qt,Sr,_r){var Ar,Jr,Li,Er,Bn,Po,Qs=yt!==$t?"nextSibling":"previousSibling",en=Qt.parentNode,Q0=Wt&&Qt.nodeName.toLowerCase(),J0=!_r&&!Wt,Js=!1;if(en){if(yt){for(;Qs;){for(Er=Qt;Er=Er[Qs];)if(Wt?Er.nodeName.toLowerCase()===Q0:Er.nodeType===1)return!1;Po=Qs=le==="only"&&!Po&&"nextSibling"}return!0}if(Po=[$t?en.firstChild:en.lastChild],$t&&J0){for(Er=en,Li=Er[Ti]||(Er[Ti]={}),Jr=Li[Er.uniqueID]||(Li[Er.uniqueID]={}),Ar=Jr[le]||[],Bn=Ar[0]===ms&&Ar[1],Js=Bn&&Ar[2],Er=Bn&&en.childNodes[Bn];Er=++Bn&&Er&&Er[Qs]||(Js=Bn=0)||Po.pop();)if(Er.nodeType===1&&++Js&&Er===Qt){Jr[le]=[ms,Bn,Js];break}}else if(J0&&(Er=Qt,Li=Er[Ti]||(Er[Ti]={}),Jr=Li[Er.uniqueID]||(Li[Er.uniqueID]={}),Ar=Jr[le]||[],Bn=Ar[0]===ms&&Ar[1],Js=Bn),Js===!1)for(;(Er=++Bn&&Er&&Er[Qs]||(Js=Bn=0)||Po.pop())&&!((Wt?Er.nodeName.toLowerCase()===Q0:Er.nodeType===1)&&++Js&&(J0&&(Li=Er[Ti]||(Er[Ti]={}),Jr=Li[Er.uniqueID]||(Li[Er.uniqueID]={}),Jr[le]=[ms,Js]),Er===Qt)););return Js-=Ye,Js===mt||Js%mt===0&&Js/mt>=0}}},PSEUDO:function(le,Ae){var je,mt=D.pseudos[le]||D.setFilters[le.toLowerCase()]||Oi.error("unsupported pseudo: "+le);return mt[Ti]?mt(Ae):mt.length>1?(je=[le,le,"",Ae],D.setFilters.hasOwnProperty(le.toLowerCase())?ma(function(Ye,yt){for(var $t,Wt=mt(Ye,Ae),Qt=Wt.length;Qt--;)$t=rf(Ye,Wt[Qt]),Ye[$t]=!(yt[$t]=Wt[Qt])}):function(Ye){return mt(Ye,0,je)}):mt}},pseudos:{not:ma(function(le){var Ae=[],je=[],mt=Re(le.replace(Dx,"$1"));return mt[Ti]?ma(function(Ye,yt,$t,Wt){for(var Qt,Sr=mt(Ye,null,Wt,[]),_r=Ye.length;_r--;)(Qt=Sr[_r])&&(Ye[_r]=!(yt[_r]=Qt))}):function(Ye,yt,$t){return Ae[0]=Ye,mt(Ae,null,$t,je),Ae[0]=null,!je.pop()}}),has:ma(function(le){return function(Ae){return Oi(le,Ae).length>0}}),contains:ma(function(le){return le=le.replace(yu,vu),function(Ae){return(Ae.textContent||q(Ae)).indexOf(le)>-1}}),lang:ma(function(le){return Gle.test(le||"")||Oi.error("unsupported lang: "+le),le=le.replace(yu,vu).toLowerCase(),function(Ae){var je;do if(je=Vr?Ae.lang:Ae.getAttribute("xml:lang")||Ae.getAttribute("lang"))return je=je.toLowerCase(),je===le||je.indexOf(le+"-")===0;while((Ae=Ae.parentNode)&&Ae.nodeType===1);return!1}}),target:function(le){var Ae=k.location&&k.location.hash;return Ae&&Ae.slice(1)===le.id},root:function(le){return le===mr},focus:function(le){return le===ht.activeElement&&(!ht.hasFocus||ht.hasFocus())&&!!(le.type||le.href||~le.tabIndex)},enabled:WF(!1),disabled:WF(!0),checked:function(le){var Ae=le.nodeName.toLowerCase();return Ae==="input"&&!!le.checked||Ae==="option"&&!!le.selected},selected:function(le){return le.parentNode&&le.parentNode.selectedIndex,le.selected===!0},empty:function(le){for(le=le.firstChild;le;le=le.nextSibling)if(le.nodeType<6)return!1;return!0},parent:function(le){return!D.pseudos.empty(le)},header:function(le){return Kle.test(le.nodeName)},input:function(le){return Yle.test(le.nodeName)},button:function(le){var Ae=le.nodeName.toLowerCase();return Ae==="input"&&le.type==="button"||Ae==="button"},text:function(le){var Ae;return le.nodeName.toLowerCase()==="input"&&le.type==="text"&&((Ae=le.getAttribute("type"))==null||Ae.toLowerCase()==="text")},first:of(function(){return[0]}),last:of(function(le,Ae){return[Ae-1]}),eq:of(function(le,Ae,je){return[je<0?je+Ae:je]}),even:of(function(le,Ae){for(var je=0;je<Ae;je+=2)le.push(je);return le}),odd:of(function(le,Ae){for(var je=1;je<Ae;je+=2)le.push(je);return le}),lt:of(function(le,Ae,je){for(var mt=je<0?je+Ae:je>Ae?Ae:je;--mt>=0;)le.push(mt);return le}),gt:of(function(le,Ae,je){for(var mt=je<0?je+Ae:je;++mt<Ae;)le.push(mt);return le})}},D.pseudos.nth=D.pseudos.eq;for(A in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})D.pseudos[A]=Jle(A);for(A in{submit:!0,reset:!0})D.pseudos[A]=Xle(A);function HF(){}HF.prototype=D.filters=D.pseudos,D.setFilters=new HF,oe=Oi.tokenize=function(le,Ae){var je,mt,Ye,yt,$t,Wt,Qt,Sr=K0[le+" "];if(Sr)return Ae?0:Sr.slice(0);for($t=le,Wt=[],Qt=D.preFilter;$t;){(!je||(mt=Ule.exec($t)))&&(mt&&($t=$t.slice(mt[0].length)||$t),Wt.push(Ye=[])),je=!1,(mt=zF.exec($t))&&(je=mt.shift(),Ye.push({value:je,type:mt[0].replace(Dx," ")}),$t=$t.slice(je.length));for(yt in D.filter)(mt=Nx[yt].exec($t))&&(!Qt[yt]||(mt=Qt[yt](mt)))&&(je=mt.shift(),Ye.push({value:je,type:yt,matches:mt}),$t=$t.slice(je.length));if(!je)break}return Ae?$t.length:$t?Oi.error(le):K0(le,Wt).slice(0)};function zx(le){for(var Ae=0,je=le.length,mt="";Ae<je;Ae++)mt+=le[Ae].value;return mt}function jx(le,Ae,je){var mt=Ae.dir,Ye=Ae.next,yt=Ye||mt,$t=je&&yt==="parentNode",Wt=ai++;return Ae.first?function(Qt,Sr,_r){for(;Qt=Qt[mt];)if(Qt.nodeType===1||$t)return le(Qt,Sr,_r);return!1}:function(Qt,Sr,_r){var Ar,Jr,Li,Er=[ms,Wt];if(_r){for(;Qt=Qt[mt];)if((Qt.nodeType===1||$t)&&le(Qt,Sr,_r))return!0}else for(;Qt=Qt[mt];)if(Qt.nodeType===1||$t)if(Li=Qt[Ti]||(Qt[Ti]={}),Jr=Li[Qt.uniqueID]||(Li[Qt.uniqueID]={}),Ye&&Ye===Qt.nodeName.toLowerCase())Qt=Qt[mt]||Qt;else{if((Ar=Jr[yt])&&Ar[0]===ms&&Ar[1]===Wt)return Er[2]=Ar[2];if(Jr[yt]=Er,Er[2]=le(Qt,Sr,_r))return!0}return!1}}function pA(le){return le.length>1?function(Ae,je,mt){for(var Ye=le.length;Ye--;)if(!le[Ye](Ae,je,mt))return!1;return!0}:le[0]}function eae(le,Ae,je){for(var mt=0,Ye=Ae.length;mt<Ye;mt++)Oi(le,Ae[mt],je);return je}function Vx(le,Ae,je,mt,Ye){for(var yt,$t=[],Wt=0,Qt=le.length,Sr=Ae!=null;Wt<Qt;Wt++)(yt=le[Wt])&&(!je||je(yt,mt,Ye))&&($t.push(yt),Sr&&Ae.push(Wt));return $t}function hA(le,Ae,je,mt,Ye,yt){return mt&&!mt[Ti]&&(mt=hA(mt)),Ye&&!Ye[Ti]&&(Ye=hA(Ye,yt)),ma(function($t,Wt,Qt,Sr){var _r,Ar,Jr,Li=[],Er=[],Bn=Wt.length,Po=$t||eae(Ae||"*",Qt.nodeType?[Qt]:Qt,[]),Qs=le&&($t||!Ae)?Vx(Po,Li,le,Qt,Sr):Po,en=je?Ye||($t?le:Bn||mt)?[]:Wt:Qs;if(je&&je(Qs,en,Qt,Sr),mt)for(_r=Vx(en,Er),mt(_r,[],Qt,Sr),Ar=_r.length;Ar--;)(Jr=_r[Ar])&&(en[Er[Ar]]=!(Qs[Er[Ar]]=Jr));if($t){if(Ye||le){if(Ye){for(_r=[],Ar=en.length;Ar--;)(Jr=en[Ar])&&_r.push(Qs[Ar]=Jr);Ye(null,en=[],_r,Sr)}for(Ar=en.length;Ar--;)(Jr=en[Ar])&&(_r=Ye?rf($t,Jr):Li[Ar])>-1&&($t[_r]=!(Wt[_r]=Jr))}}else en=Vx(en===Wt?en.splice(Bn,en.length):en),Ye?Ye(null,Wt,en,Sr):Hd.apply(Wt,en)})}function fA(le){for(var Ae,je,mt,Ye=le.length,yt=D.relative[le[0].type],$t=yt||D.relative[" "],Wt=yt?1:0,Qt=jx(function(Ar){return Ar===Ae},$t,!0),Sr=jx(function(Ar){return rf(Ae,Ar)>-1},$t,!0),_r=[function(Ar,Jr,Li){var Er=!yt&&(Li||Jr!==Ke)||((Ae=Jr).nodeType?Qt(Ar,Jr,Li):Sr(Ar,Jr,Li));return Ae=null,Er}];Wt<Ye;Wt++)if(je=D.relative[le[Wt].type])_r=[jx(pA(_r),je)];else{if(je=D.filter[le[Wt].type].apply(null,le[Wt].matches),je[Ti]){for(mt=++Wt;mt<Ye&&!D.relative[le[mt].type];mt++);return hA(Wt>1&&pA(_r),Wt>1&&zx(le.slice(0,Wt-1).concat({value:le[Wt-2].type===" "?"*":""})).replace(Dx,"$1"),je,Wt<mt&&fA(le.slice(Wt,mt)),mt<Ye&&fA(le=le.slice(mt)),mt<Ye&&zx(le))}_r.push(je)}return pA(_r)}function tae(le,Ae){var je=Ae.length>0,mt=le.length>0,Ye=function(yt,$t,Wt,Qt,Sr){var _r,Ar,Jr,Li=0,Er="0",Bn=yt&&[],Po=[],Qs=Ke,en=yt||mt&&D.find.TAG("*",Sr),Q0=ms+=Qs==null?1:Math.random()||.1,J0=en.length;for(Sr&&(Ke=$t==ht||$t||Sr);Er!==J0&&(_r=en[Er])!=null;Er++){if(mt&&_r){for(Ar=0,!$t&&_r.ownerDocument!=ht&&(nt(_r),Wt=!Vr);Jr=le[Ar++];)if(Jr(_r,$t||ht,Wt)){Qt.push(_r);break}Sr&&(ms=Q0)}je&&((_r=!Jr&&_r)&&Li--,yt&&Bn.push(_r))}if(Li+=Er,je&&Er!==Li){for(Ar=0;Jr=Ae[Ar++];)Jr(Bn,Po,$t,Wt);if(yt){if(Li>0)for(;Er--;)Bn[Er]||Po[Er]||(Po[Er]=Wd.call(Qt));Po=Vx(Po)}Hd.apply(Qt,Po),Sr&&!yt&&Po.length>0&&Li+Ae.length>1&&Oi.uniqueSort(Qt)}return Sr&&(ms=Q0,Ke=Qs),Bn};return je?ma(Ye):Ye}return Re=Oi.compile=function(le,Ae){var je,mt=[],Ye=[],yt=Rx[le+" "];if(!yt){for(Ae||(Ae=oe(le)),je=Ae.length;je--;)yt=fA(Ae[je]),yt[Ti]?mt.push(yt):Ye.push(yt);yt=Rx(le,tae(Ye,mt)),yt.selector=le}return yt},Ee=Oi.select=function(le,Ae,je,mt){var Ye,yt,$t,Wt,Qt,Sr=typeof le=="function"&&le,_r=!mt&&oe(le=Sr.selector||le);if(je=je||[],_r.length===1){if(yt=_r[0]=_r[0].slice(0),yt.length>2&&($t=yt[0]).type==="ID"&&Ae.nodeType===9&&Vr&&D.relative[yt[1].type]){if(Ae=(D.find.ID($t.matches[0].replace(yu,vu),Ae)||[])[0],Ae)Sr&&(Ae=Ae.parentNode);else return je;le=le.slice(yt.shift().value.length)}for(Ye=Nx.needsContext.test(le)?0:yt.length;Ye--&&($t=yt[Ye],!D.relative[Wt=$t.type]);)if((Qt=D.find[Wt])&&(mt=Qt($t.matches[0].replace(yu,vu),cA.test(yt[0].type)&&dA(Ae.parentNode)||Ae))){if(yt.splice(Ye,1),le=mt.length&&zx(yt),!le)return Hd.apply(je,mt),je;break}}return(Sr||Re(le,_r))(mt,Ae,!Vr,je,!Ae||cA.test(le)&&dA(Ae.parentNode)||Ae),je},P.sortStable=Ti.split("").sort(ef).join("")===Ti,P.detectDuplicates=!!Pt,nt(),P.sortDetached=Tl(function(le){return le.compareDocumentPosition(ht.createElement("fieldset"))&1}),Tl(function(le){return le.innerHTML="<a href='#'></a>",le.firstChild.getAttribute("href")==="#"})||uA("type|href|height|width",function(le,Ae,je){if(!je)return le.getAttribute(Ae,Ae.toLowerCase()==="type"?1:2)}),(!P.attributes||!Tl(function(le){return le.innerHTML="<input/>",le.firstChild.setAttribute("value",""),le.firstChild.getAttribute("value")===""}))&&uA("value",function(le,Ae,je){if(!je&&le.nodeName.toLowerCase()==="input")return le.defaultValue}),Tl(function(le){return le.getAttribute("disabled")==null})||uA(lA,function(le,Ae,je){var mt;if(!je)return le[Ae]===!0?Ae.toLowerCase():(mt=le.getAttributeNode(Ae))&&mt.specified?mt.value:null}),Oi}(t);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var L=function(k,A,P){for(var D=[],q=P!==void 0;(k=k[A])&&k.nodeType!==9;)if(k.nodeType===1){if(q&&w(k).is(P))break;D.push(k)}return D},R=function(k,A){for(var P=[];k;k=k.nextSibling)k.nodeType===1&&k!==A&&P.push(k);return P},W=w.expr.match.needsContext;function z(k,A){return k.nodeName&&k.nodeName.toLowerCase()===A.toLowerCase()}var j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(k,A,P){return v(A)?w.grep(k,function(D,q){return!!A.call(D,q,D)!==P}):A.nodeType?w.grep(k,function(D){return D===A!==P}):typeof A!="string"?w.grep(k,function(D){return a.call(A,D)>-1!==P}):w.filter(A,k,P)}w.filter=function(k,A,P){var D=A[0];return P&&(k=":not("+k+")"),A.length===1&&D.nodeType===1?w.find.matchesSelector(D,k)?[D]:[]:w.find.matches(k,w.grep(A,function(q){return q.nodeType===1}))},w.fn.extend({find:function(k){var A,P,D=this.length,q=this;if(typeof k!="string")return this.pushStack(w(k).filter(function(){for(A=0;A<D;A++)if(w.contains(q[A],this))return!0}));for(P=this.pushStack([]),A=0;A<D;A++)w.find(k,q[A],P);return D>1?w.uniqueSort(P):P},filter:function(k){return this.pushStack(U(this,k||[],!1))},not:function(k){return this.pushStack(U(this,k||[],!0))},is:function(k){return!!U(this,typeof k=="string"&&W.test(k)?w(k):k||[],!1).length}});var Z,Q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,B=w.fn.init=function(k,A,P){var D,q;if(!k)return this;if(P=P||Z,typeof k=="string")if(k[0]==="<"&&k[k.length-1]===">"&&k.length>=3?D=[null,k,null]:D=Q.exec(k),D&&(D[1]||!A))if(D[1]){if(A=A instanceof w?A[0]:A,w.merge(this,w.parseHTML(D[1],A&&A.nodeType?A.ownerDocument||A:x,!0)),j.test(D[1])&&w.isPlainObject(A))for(D in A)v(this[D])?this[D](A[D]):this.attr(D,A[D]);return this}else return q=x.getElementById(D[2]),q&&(this[0]=q,this.length=1),this;else return!A||A.jquery?(A||P).find(k):this.constructor(A).find(k);else{if(k.nodeType)return this[0]=k,this.length=1,this;if(v(k))return P.ready!==void 0?P.ready(k):k(w)}return w.makeArray(k,this)};B.prototype=w.fn,Z=w(x);var V=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(k){var A=w(k,this),P=A.length;return this.filter(function(){for(var D=0;D<P;D++)if(w.contains(this,A[D]))return!0})},closest:function(k,A){var P,D=0,q=this.length,J=[],oe=typeof k!="string"&&w(k);if(!W.test(k)){for(;D<q;D++)for(P=this[D];P&&P!==A;P=P.parentNode)if(P.nodeType<11&&(oe?oe.index(P)>-1:P.nodeType===1&&w.find.matchesSelector(P,k))){J.push(P);break}}return this.pushStack(J.length>1?w.uniqueSort(J):J)},index:function(k){return k?typeof k=="string"?a.call(w(k),this[0]):a.call(this,k.jquery?k[0]:k):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(k,A){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(k,A))))},addBack:function(k){return this.add(k==null?this.prevObject:this.prevObject.filter(k))}});function ee(k,A){for(;(k=k[A])&&k.nodeType!==1;);return k}w.each({parent:function(k){var A=k.parentNode;return A&&A.nodeType!==11?A:null},parents:function(k){return L(k,"parentNode")},parentsUntil:function(k,A,P){return L(k,"parentNode",P)},next:function(k){return ee(k,"nextSibling")},prev:function(k){return ee(k,"previousSibling")},nextAll:function(k){return L(k,"nextSibling")},prevAll:function(k){return L(k,"previousSibling")},nextUntil:function(k,A,P){return L(k,"nextSibling",P)},prevUntil:function(k,A,P){return L(k,"previousSibling",P)},siblings:function(k){return R((k.parentNode||{}).firstChild,k)},children:function(k){return R(k.firstChild)},contents:function(k){return k.contentDocument!=null&&n(k.contentDocument)?k.contentDocument:(z(k,"template")&&(k=k.content||k),w.merge([],k.childNodes))}},function(k,A){w.fn[k]=function(P,D){var q=w.map(this,A,P);return k.slice(-5)!=="Until"&&(D=P),D&&typeof D=="string"&&(q=w.filter(D,q)),this.length>1&&(H[k]||w.uniqueSort(q),V.test(k)&&q.reverse()),this.pushStack(q)}});var ce=/[^\x20\t\r\n\f]+/g;function re(k){var A={};return w.each(k.match(ce)||[],function(P,D){A[D]=!0}),A}w.Callbacks=function(k){k=typeof k=="string"?re(k):w.extend({},k);var A,P,D,q,J=[],oe=[],Re=-1,Ee=function(){for(q=q||k.once,D=A=!0;oe.length;Re=-1)for(P=oe.shift();++Re<J.length;)J[Re].apply(P[0],P[1])===!1&&k.stopOnFalse&&(Re=J.length,P=!1);k.memory||(P=!1),A=!1,q&&(P?J=[]:J="")},Ke={add:function(){return J&&(P&&!A&&(Re=J.length-1,oe.push(P)),function lt(Pt){w.each(Pt,function(nt,ht){v(ht)?(!k.unique||!Ke.has(ht))&&J.push(ht):ht&&ht.length&&E(ht)!=="string"&<(ht)})}(arguments),P&&!A&&Ee()),this},remove:function(){return w.each(arguments,function(lt,Pt){for(var nt;(nt=w.inArray(Pt,J,nt))>-1;)J.splice(nt,1),nt<=Re&&Re--}),this},has:function(lt){return lt?w.inArray(lt,J)>-1:J.length>0},empty:function(){return J&&(J=[]),this},disable:function(){return q=oe=[],J=P="",this},disabled:function(){return!J},lock:function(){return q=oe=[],!P&&!A&&(J=P=""),this},locked:function(){return!!q},fireWith:function(lt,Pt){return q||(Pt=Pt||[],Pt=[lt,Pt.slice?Pt.slice():Pt],oe.push(Pt),A||Ee()),this},fire:function(){return Ke.fireWith(this,arguments),this},fired:function(){return!!D}};return Ke};function fe(k){return k}function Ne(k){throw k}function de(k,A,P,D){var q;try{k&&v(q=k.promise)?q.call(k).done(A).fail(P):k&&v(q=k.then)?q.call(k,A,P):A.apply(void 0,[k].slice(D))}catch(J){P.apply(void 0,[J])}}w.extend({Deferred:function(k){var A=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],P="pending",D={state:function(){return P},always:function(){return q.done(arguments).fail(arguments),this},catch:function(J){return D.then(null,J)},pipe:function(){var J=arguments;return w.Deferred(function(oe){w.each(A,function(Re,Ee){var Ke=v(J[Ee[4]])&&J[Ee[4]];q[Ee[1]](function(){var lt=Ke&&Ke.apply(this,arguments);lt&&v(lt.promise)?lt.promise().progress(oe.notify).done(oe.resolve).fail(oe.reject):oe[Ee[0]+"With"](this,Ke?[lt]:arguments)})}),J=null}).promise()},then:function(J,oe,Re){var Ee=0;function Ke(lt,Pt,nt,ht){return function(){var mr=this,Vr=arguments,hr=function(){var Mn,Ks;if(!(lt<Ee)){if(Mn=nt.apply(mr,Vr),Mn===Pt.promise())throw new TypeError("Thenable self-resolution");Ks=Mn&&(typeof Mn=="object"||typeof Mn=="function")&&Mn.then,v(Ks)?ht?Ks.call(Mn,Ke(Ee,Pt,fe,ht),Ke(Ee,Pt,Ne,ht)):(Ee++,Ks.call(Mn,Ke(Ee,Pt,fe,ht),Ke(Ee,Pt,Ne,ht),Ke(Ee,Pt,fe,Pt.notifyWith))):(nt!==fe&&(mr=void 0,Vr=[Mn]),(ht||Pt.resolveWith)(mr,Vr))}},Vn=ht?hr:function(){try{hr()}catch(Mn){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(Mn,Vn.stackTrace),lt+1>=Ee&&(nt!==Ne&&(mr=void 0,Vr=[Mn]),Pt.rejectWith(mr,Vr))}};lt?Vn():(w.Deferred.getStackHook&&(Vn.stackTrace=w.Deferred.getStackHook()),t.setTimeout(Vn))}}return w.Deferred(function(lt){A[0][3].add(Ke(0,lt,v(Re)?Re:fe,lt.notifyWith)),A[1][3].add(Ke(0,lt,v(J)?J:fe)),A[2][3].add(Ke(0,lt,v(oe)?oe:Ne))}).promise()},promise:function(J){return J!=null?w.extend(J,D):D}},q={};return w.each(A,function(J,oe){var Re=oe[2],Ee=oe[5];D[oe[1]]=Re.add,Ee&&Re.add(function(){P=Ee},A[3-J][2].disable,A[3-J][3].disable,A[0][2].lock,A[0][3].lock),Re.add(oe[3].fire),q[oe[0]]=function(){return q[oe[0]+"With"](this===q?void 0:this,arguments),this},q[oe[0]+"With"]=Re.fireWith}),D.promise(q),k&&k.call(q,q),q},when:function(k){var A=arguments.length,P=A,D=Array(P),q=o.call(arguments),J=w.Deferred(),oe=function(Re){return function(Ee){D[Re]=this,q[Re]=arguments.length>1?o.call(arguments):Ee,--A||J.resolveWith(D,q)}};if(A<=1&&(de(k,J.done(oe(P)).resolve,J.reject,!A),J.state()==="pending"||v(q[P]&&q[P].then)))return J.then();for(;P--;)de(q[P],oe(P),J.reject);return J.promise()}});var _e=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(k,A){t.console&&t.console.warn&&k&&_e.test(k.name)&&t.console.warn("jQuery.Deferred exception: "+k.message,k.stack,A)},w.readyException=function(k){t.setTimeout(function(){throw k})};var ae=w.Deferred();w.fn.ready=function(k){return ae.then(k).catch(function(A){w.readyException(A)}),this},w.extend({isReady:!1,readyWait:1,ready:function(k){(k===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(k!==!0&&--w.readyWait>0)&&ae.resolveWith(x,[w]))}}),w.ready.then=ae.then;function X(){x.removeEventListener("DOMContentLoaded",X),t.removeEventListener("load",X),w.ready()}x.readyState==="complete"||x.readyState!=="loading"&&!x.documentElement.doScroll?t.setTimeout(w.ready):(x.addEventListener("DOMContentLoaded",X),t.addEventListener("load",X));var he=function(k,A,P,D,q,J,oe){var Re=0,Ee=k.length,Ke=P==null;if(E(P)==="object"){q=!0;for(Re in P)he(k,A,Re,P[Re],!0,J,oe)}else if(D!==void 0&&(q=!0,v(D)||(oe=!0),Ke&&(oe?(A.call(k,D),A=null):(Ke=A,A=function(lt,Pt,nt){return Ke.call(w(lt),nt)})),A))for(;Re<Ee;Re++)A(k[Re],P,oe?D:D.call(k[Re],Re,A(k[Re],P)));return q?k:Ke?A.call(k):Ee?A(k[0],P):J},$e=/^-ms-/,Je=/-([a-z])/g;function ne(k,A){return A.toUpperCase()}function pe(k){return k.replace($e,"ms-").replace(Je,ne)}var ge=function(k){return k.nodeType===1||k.nodeType===9||!+k.nodeType};function Se(){this.expando=w.expando+Se.uid++}Se.uid=1,Se.prototype={cache:function(k){var A=k[this.expando];return A||(A={},ge(k)&&(k.nodeType?k[this.expando]=A:Object.defineProperty(k,this.expando,{value:A,configurable:!0}))),A},set:function(k,A,P){var D,q=this.cache(k);if(typeof A=="string")q[pe(A)]=P;else for(D in A)q[pe(D)]=A[D];return q},get:function(k,A){return A===void 0?this.cache(k):k[this.expando]&&k[this.expando][pe(A)]},access:function(k,A,P){return A===void 0||A&&typeof A=="string"&&P===void 0?this.get(k,A):(this.set(k,A,P),P!==void 0?P:A)},remove:function(k,A){var P,D=k[this.expando];if(D!==void 0){if(A!==void 0)for(Array.isArray(A)?A=A.map(pe):(A=pe(A),A=A in D?[A]:A.match(ce)||[]),P=A.length;P--;)delete D[A[P]];(A===void 0||w.isEmptyObject(D))&&(k.nodeType?k[this.expando]=void 0:delete k[this.expando])}},hasData:function(k){var A=k[this.expando];return A!==void 0&&!w.isEmptyObject(A)}};var xe=new Se,be=new Se,Qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Fe=/[A-Z]/g;function Me(k){return k==="true"?!0:k==="false"?!1:k==="null"?null:k===+k+""?+k:Qe.test(k)?JSON.parse(k):k}function Ie(k,A,P){var D;if(P===void 0&&k.nodeType===1)if(D="data-"+A.replace(Fe,"-$&").toLowerCase(),P=k.getAttribute(D),typeof P=="string"){try{P=Me(P)}catch{}be.set(k,A,P)}else P=void 0;return P}w.extend({hasData:function(k){return be.hasData(k)||xe.hasData(k)},data:function(k,A,P){return be.access(k,A,P)},removeData:function(k,A){be.remove(k,A)},_data:function(k,A,P){return xe.access(k,A,P)},_removeData:function(k,A){xe.remove(k,A)}}),w.fn.extend({data:function(k,A){var P,D,q,J=this[0],oe=J&&J.attributes;if(k===void 0){if(this.length&&(q=be.get(J),J.nodeType===1&&!xe.get(J,"hasDataAttrs"))){for(P=oe.length;P--;)oe[P]&&(D=oe[P].name,D.indexOf("data-")===0&&(D=pe(D.slice(5)),Ie(J,D,q[D])));xe.set(J,"hasDataAttrs",!0)}return q}return typeof k=="object"?this.each(function(){be.set(this,k)}):he(this,function(Re){var Ee;if(J&&Re===void 0)return Ee=be.get(J,k),Ee!==void 0||(Ee=Ie(J,k),Ee!==void 0)?Ee:void 0;this.each(function(){be.set(this,k,Re)})},null,A,arguments.length>1,null,!0)},removeData:function(k){return this.each(function(){be.remove(this,k)})}}),w.extend({queue:function(k,A,P){var D;if(k)return A=(A||"fx")+"queue",D=xe.get(k,A),P&&(!D||Array.isArray(P)?D=xe.access(k,A,w.makeArray(P)):D.push(P)),D||[]},dequeue:function(k,A){A=A||"fx";var P=w.queue(k,A),D=P.length,q=P.shift(),J=w._queueHooks(k,A),oe=function(){w.dequeue(k,A)};q==="inprogress"&&(q=P.shift(),D--),q&&(A==="fx"&&P.unshift("inprogress"),delete J.stop,q.call(k,oe,J)),!D&&J&&J.empty.fire()},_queueHooks:function(k,A){var P=A+"queueHooks";return xe.get(k,P)||xe.access(k,P,{empty:w.Callbacks("once memory").add(function(){xe.remove(k,[A+"queue",P])})})}}),w.fn.extend({queue:function(k,A){var P=2;return typeof k!="string"&&(A=k,k="fx",P--),arguments.length<P?w.queue(this[0],k):A===void 0?this:this.each(function(){var D=w.queue(this,k,A);w._queueHooks(this,k),k==="fx"&&D[0]!=="inprogress"&&w.dequeue(this,k)})},dequeue:function(k){return this.each(function(){w.dequeue(this,k)})},clearQueue:function(k){return this.queue(k||"fx",[])},promise:function(k,A){var P,D=1,q=w.Deferred(),J=this,oe=this.length,Re=function(){--D||q.resolveWith(J,[J])};for(typeof k!="string"&&(A=k,k=void 0),k=k||"fx";oe--;)P=xe.get(J[oe],k+"queueHooks"),P&&P.empty&&(D++,P.empty.add(Re));return Re(),q.promise(A)}});var Pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Xe=new RegExp("^(?:([+-])=|)("+Pe+")([a-z%]*)$","i"),dt=["Top","Right","Bottom","Left"],gt=x.documentElement,Dt=function(k){return w.contains(k.ownerDocument,k)},Jt={composed:!0};gt.getRootNode&&(Dt=function(k){return w.contains(k.ownerDocument,k)||k.getRootNode(Jt)===k.ownerDocument});var Bt=function(k,A){return k=A||k,k.style.display==="none"||k.style.display===""&&Dt(k)&&w.css(k,"display")==="none"};function Le(k,A,P,D){var q,J,oe=20,Re=D?function(){return D.cur()}:function(){return w.css(k,A,"")},Ee=Re(),Ke=P&&P[3]||(w.cssNumber[A]?"":"px"),lt=k.nodeType&&(w.cssNumber[A]||Ke!=="px"&&+Ee)&&Xe.exec(w.css(k,A));if(lt&<[3]!==Ke){for(Ee=Ee/2,Ke=Ke||lt[3],lt=+Ee||1;oe--;)w.style(k,A,lt+Ke),(1-J)*(1-(J=Re()/Ee||.5))<=0&&(oe=0),lt=lt/J;lt=lt*2,w.style(k,A,lt+Ke),P=P||[]}return P&&(lt=+lt||+Ee||0,q=P[1]?lt+(P[1]+1)*P[2]:+P[2],D&&(D.unit=Ke,D.start=lt,D.end=q)),q}var st={};function It(k){var A,P=k.ownerDocument,D=k.nodeName,q=st[D];return q||(A=P.body.appendChild(P.createElement(D)),q=w.css(A,"display"),A.parentNode.removeChild(A),q==="none"&&(q="block"),st[D]=q,q)}function ie(k,A){for(var P,D,q=[],J=0,oe=k.length;J<oe;J++)D=k[J],D.style&&(P=D.style.display,A?(P==="none"&&(q[J]=xe.get(D,"display")||null,q[J]||(D.style.display="")),D.style.display===""&&Bt(D)&&(q[J]=It(D))):P!=="none"&&(q[J]="none",xe.set(D,"display",P)));for(J=0;J<oe;J++)q[J]!=null&&(k[J].style.display=q[J]);return k}w.fn.extend({show:function(){return ie(this,!0)},hide:function(){return ie(this)},toggle:function(k){return typeof k=="boolean"?k?this.show():this.hide():this.each(function(){Bt(this)?w(this).show():w(this).hide()})}});var we=/^(?:checkbox|radio)$/i,qe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,it=/^$|^module$|\/(?:java|ecma)script/i;(function(){var k=x.createDocumentFragment(),A=k.appendChild(x.createElement("div")),P=x.createElement("input");P.setAttribute("type","radio"),P.setAttribute("checked","checked"),P.setAttribute("name","t"),A.appendChild(P),y.checkClone=A.cloneNode(!0).cloneNode(!0).lastChild.checked,A.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!A.cloneNode(!0).lastChild.defaultValue,A.innerHTML="<option></option>",y.option=!!A.lastChild})();var Zt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Zt.tbody=Zt.tfoot=Zt.colgroup=Zt.caption=Zt.thead,Zt.th=Zt.td,y.option||(Zt.optgroup=Zt.option=[1,"<select multiple='multiple'>","</select>"]);function Cr(k,A){var P;return typeof k.getElementsByTagName!="undefined"?P=k.getElementsByTagName(A||"*"):typeof k.querySelectorAll!="undefined"?P=k.querySelectorAll(A||"*"):P=[],A===void 0||A&&z(k,A)?w.merge([k],P):P}function Pi(k,A){for(var P=0,D=k.length;P<D;P++)xe.set(k[P],"globalEval",!A||xe.get(A[P],"globalEval"))}var fn=/<|&#?\w+;/;function Kr(k,A,P,D,q){for(var J,oe,Re,Ee,Ke,lt,Pt=A.createDocumentFragment(),nt=[],ht=0,mr=k.length;ht<mr;ht++)if(J=k[ht],J||J===0)if(E(J)==="object")w.merge(nt,J.nodeType?[J]:J);else if(!fn.test(J))nt.push(A.createTextNode(J));else{for(oe=oe||Pt.appendChild(A.createElement("div")),Re=(qe.exec(J)||["",""])[1].toLowerCase(),Ee=Zt[Re]||Zt._default,oe.innerHTML=Ee[1]+w.htmlPrefilter(J)+Ee[2],lt=Ee[0];lt--;)oe=oe.lastChild;w.merge(nt,oe.childNodes),oe=Pt.firstChild,oe.textContent=""}for(Pt.textContent="",ht=0;J=nt[ht++];){if(D&&w.inArray(J,D)>-1){q&&q.push(J);continue}if(Ke=Dt(J),oe=Cr(Pt.appendChild(J),"script"),Ke&&Pi(oe),P)for(lt=0;J=oe[lt++];)it.test(J.type||"")&&P.push(J)}return Pt}var Dr=/^([^.]*)(?:\.(.+)|)/;function Ze(){return!0}function Nt(){return!1}function fr(k,A){return k===Gr()==(A==="focus")}function Gr(){try{return x.activeElement}catch{}}function Mo(k,A,P,D,q,J){var oe,Re;if(typeof A=="object"){typeof P!="string"&&(D=D||P,P=void 0);for(Re in A)Mo(k,Re,P,D,A[Re],J);return k}if(D==null&&q==null?(q=P,D=P=void 0):q==null&&(typeof P=="string"?(q=D,D=void 0):(q=D,D=P,P=void 0)),q===!1)q=Nt;else if(!q)return k;return J===1&&(oe=q,q=function(Ee){return w().off(Ee),oe.apply(this,arguments)},q.guid=oe.guid||(oe.guid=w.guid++)),k.each(function(){w.event.add(this,A,q,D,P)})}w.event={global:{},add:function(k,A,P,D,q){var J,oe,Re,Ee,Ke,lt,Pt,nt,ht,mr,Vr,hr=xe.get(k);if(!!ge(k))for(P.handler&&(J=P,P=J.handler,q=J.selector),q&&w.find.matchesSelector(gt,q),P.guid||(P.guid=w.guid++),(Ee=hr.events)||(Ee=hr.events=Object.create(null)),(oe=hr.handle)||(oe=hr.handle=function(Vn){return typeof w!="undefined"&&w.event.triggered!==Vn.type?w.event.dispatch.apply(k,arguments):void 0}),A=(A||"").match(ce)||[""],Ke=A.length;Ke--;)Re=Dr.exec(A[Ke])||[],ht=Vr=Re[1],mr=(Re[2]||"").split(".").sort(),ht&&(Pt=w.event.special[ht]||{},ht=(q?Pt.delegateType:Pt.bindType)||ht,Pt=w.event.special[ht]||{},lt=w.extend({type:ht,origType:Vr,data:D,handler:P,guid:P.guid,selector:q,needsContext:q&&w.expr.match.needsContext.test(q),namespace:mr.join(".")},J),(nt=Ee[ht])||(nt=Ee[ht]=[],nt.delegateCount=0,(!Pt.setup||Pt.setup.call(k,D,mr,oe)===!1)&&k.addEventListener&&k.addEventListener(ht,oe)),Pt.add&&(Pt.add.call(k,lt),lt.handler.guid||(lt.handler.guid=P.guid)),q?nt.splice(nt.delegateCount++,0,lt):nt.push(lt),w.event.global[ht]=!0)},remove:function(k,A,P,D,q){var J,oe,Re,Ee,Ke,lt,Pt,nt,ht,mr,Vr,hr=xe.hasData(k)&&xe.get(k);if(!(!hr||!(Ee=hr.events))){for(A=(A||"").match(ce)||[""],Ke=A.length;Ke--;){if(Re=Dr.exec(A[Ke])||[],ht=Vr=Re[1],mr=(Re[2]||"").split(".").sort(),!ht){for(ht in Ee)w.event.remove(k,ht+A[Ke],P,D,!0);continue}for(Pt=w.event.special[ht]||{},ht=(D?Pt.delegateType:Pt.bindType)||ht,nt=Ee[ht]||[],Re=Re[2]&&new RegExp("(^|\\.)"+mr.join("\\.(?:.*\\.|)")+"(\\.|$)"),oe=J=nt.length;J--;)lt=nt[J],(q||Vr===lt.origType)&&(!P||P.guid===lt.guid)&&(!Re||Re.test(lt.namespace))&&(!D||D===lt.selector||D==="**"&<.selector)&&(nt.splice(J,1),lt.selector&&nt.delegateCount--,Pt.remove&&Pt.remove.call(k,lt));oe&&!nt.length&&((!Pt.teardown||Pt.teardown.call(k,mr,hr.handle)===!1)&&w.removeEvent(k,ht,hr.handle),delete Ee[ht])}w.isEmptyObject(Ee)&&xe.remove(k,"handle events")}},dispatch:function(k){var A,P,D,q,J,oe,Re=new Array(arguments.length),Ee=w.event.fix(k),Ke=(xe.get(this,"events")||Object.create(null))[Ee.type]||[],lt=w.event.special[Ee.type]||{};for(Re[0]=Ee,A=1;A<arguments.length;A++)Re[A]=arguments[A];if(Ee.delegateTarget=this,!(lt.preDispatch&<.preDispatch.call(this,Ee)===!1)){for(oe=w.event.handlers.call(this,Ee,Ke),A=0;(q=oe[A++])&&!Ee.isPropagationStopped();)for(Ee.currentTarget=q.elem,P=0;(J=q.handlers[P++])&&!Ee.isImmediatePropagationStopped();)(!Ee.rnamespace||J.namespace===!1||Ee.rnamespace.test(J.namespace))&&(Ee.handleObj=J,Ee.data=J.data,D=((w.event.special[J.origType]||{}).handle||J.handler).apply(q.elem,Re),D!==void 0&&(Ee.result=D)===!1&&(Ee.preventDefault(),Ee.stopPropagation()));return lt.postDispatch&<.postDispatch.call(this,Ee),Ee.result}},handlers:function(k,A){var P,D,q,J,oe,Re=[],Ee=A.delegateCount,Ke=k.target;if(Ee&&Ke.nodeType&&!(k.type==="click"&&k.button>=1)){for(;Ke!==this;Ke=Ke.parentNode||this)if(Ke.nodeType===1&&!(k.type==="click"&&Ke.disabled===!0)){for(J=[],oe={},P=0;P<Ee;P++)D=A[P],q=D.selector+" ",oe[q]===void 0&&(oe[q]=D.needsContext?w(q,this).index(Ke)>-1:w.find(q,this,null,[Ke]).length),oe[q]&&J.push(D);J.length&&Re.push({elem:Ke,handlers:J})}}return Ke=this,Ee<A.length&&Re.push({elem:Ke,handlers:A.slice(Ee)}),Re},addProp:function(k,A){Object.defineProperty(w.Event.prototype,k,{enumerable:!0,configurable:!0,get:v(A)?function(){if(this.originalEvent)return A(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[k]},set:function(P){Object.defineProperty(this,k,{enumerable:!0,configurable:!0,writable:!0,value:P})}})},fix:function(k){return k[w.expando]?k:new w.Event(k)},special:{load:{noBubble:!0},click:{setup:function(k){var A=this||k;return we.test(A.type)&&A.click&&z(A,"input")&&bo(A,"click",Ze),!1},trigger:function(k){var A=this||k;return we.test(A.type)&&A.click&&z(A,"input")&&bo(A,"click"),!0},_default:function(k){var A=k.target;return we.test(A.type)&&A.click&&z(A,"input")&&xe.get(A,"click")||z(A,"a")}},beforeunload:{postDispatch:function(k){k.result!==void 0&&k.originalEvent&&(k.originalEvent.returnValue=k.result)}}}};function bo(k,A,P){if(!P){xe.get(k,A)===void 0&&w.event.add(k,A,Ze);return}xe.set(k,A,!1),w.event.add(k,A,{namespace:!1,handler:function(D){var q,J,oe=xe.get(this,A);if(D.isTrigger&1&&this[A]){if(oe.length)(w.event.special[A]||{}).delegateType&&D.stopPropagation();else if(oe=o.call(arguments),xe.set(this,A,oe),q=P(this,A),this[A](),J=xe.get(this,A),oe!==J||q?xe.set(this,A,!1):J={},oe!==J)return D.stopImmediatePropagation(),D.preventDefault(),J&&J.value}else oe.length&&(xe.set(this,A,{value:w.event.trigger(w.extend(oe[0],w.Event.prototype),oe.slice(1),this)}),D.stopImmediatePropagation())}})}w.removeEvent=function(k,A,P){k.removeEventListener&&k.removeEventListener(A,P)},w.Event=function(k,A){if(!(this instanceof w.Event))return new w.Event(k,A);k&&k.type?(this.originalEvent=k,this.type=k.type,this.isDefaultPrevented=k.defaultPrevented||k.defaultPrevented===void 0&&k.returnValue===!1?Ze:Nt,this.target=k.target&&k.target.nodeType===3?k.target.parentNode:k.target,this.currentTarget=k.currentTarget,this.relatedTarget=k.relatedTarget):this.type=k,A&&w.extend(this,A),this.timeStamp=k&&k.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Nt,isPropagationStopped:Nt,isImmediatePropagationStopped:Nt,isSimulated:!1,preventDefault:function(){var k=this.originalEvent;this.isDefaultPrevented=Ze,k&&!this.isSimulated&&k.preventDefault()},stopPropagation:function(){var k=this.originalEvent;this.isPropagationStopped=Ze,k&&!this.isSimulated&&k.stopPropagation()},stopImmediatePropagation:function(){var k=this.originalEvent;this.isImmediatePropagationStopped=Ze,k&&!this.isSimulated&&k.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(k,A){w.event.special[k]={setup:function(){return bo(this,k,fr),!1},trigger:function(){return bo(this,k),!0},_default:function(P){return xe.get(P.target,k)},delegateType:A}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(k,A){w.event.special[k]={delegateType:A,bindType:A,handle:function(P){var D,q=this,J=P.relatedTarget,oe=P.handleObj;return(!J||J!==q&&!w.contains(q,J))&&(P.type=oe.origType,D=oe.handler.apply(this,arguments),P.type=A),D}}}),w.fn.extend({on:function(k,A,P,D){return Mo(this,k,A,P,D)},one:function(k,A,P,D){return Mo(this,k,A,P,D,1)},off:function(k,A,P){var D,q;if(k&&k.preventDefault&&k.handleObj)return D=k.handleObj,w(k.delegateTarget).off(D.namespace?D.origType+"."+D.namespace:D.origType,D.selector,D.handler),this;if(typeof k=="object"){for(q in k)this.off(q,A,k[q]);return this}return(A===!1||typeof A=="function")&&(P=A,A=void 0),P===!1&&(P=Nt),this.each(function(){w.event.remove(this,k,P,A)})}});var zd=/<script|<style|<link/i,qT=/checked\s*(?:[^=]|=\s*.checked.)/i,YT=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ax(k,A){return z(k,"table")&&z(A.nodeType!==11?A:A.firstChild,"tr")&&w(k).children("tbody")[0]||k}function KT(k){return k.type=(k.getAttribute("type")!==null)+"/"+k.type,k}function tt(k){return(k.type||"").slice(0,5)==="true/"?k.type=k.type.slice(5):k.removeAttribute("type"),k}function $i(k,A){var P,D,q,J,oe,Re,Ee;if(A.nodeType===1){if(xe.hasData(k)&&(J=xe.get(k),Ee=J.events,Ee)){xe.remove(A,"handle events");for(q in Ee)for(P=0,D=Ee[q].length;P<D;P++)w.event.add(A,q,Ee[q][P])}be.hasData(k)&&(oe=be.access(k),Re=w.extend({},oe),be.set(A,Re))}}function $g(k,A){var P=A.nodeName.toLowerCase();P==="input"&&we.test(k.type)?A.checked=k.checked:(P==="input"||P==="textarea")&&(A.defaultValue=k.defaultValue)}function _o(k,A,P,D){A=s(A);var q,J,oe,Re,Ee,Ke,lt=0,Pt=k.length,nt=Pt-1,ht=A[0],mr=v(ht);if(mr||Pt>1&&typeof ht=="string"&&!y.checkClone&&qT.test(ht))return k.each(function(Vr){var hr=k.eq(Vr);mr&&(A[0]=ht.call(this,Vr,hr.html())),_o(hr,A,P,D)});if(Pt&&(q=Kr(A,k[0].ownerDocument,!1,k,D),J=q.firstChild,q.childNodes.length===1&&(q=J),J||D)){for(oe=w.map(Cr(q,"script"),KT),Re=oe.length;lt<Pt;lt++)Ee=q,lt!==nt&&(Ee=w.clone(Ee,!0,!0),Re&&w.merge(oe,Cr(Ee,"script"))),P.call(k[lt],Ee,lt);if(Re)for(Ke=oe[oe.length-1].ownerDocument,w.map(oe,tt),lt=0;lt<Re;lt++)Ee=oe[lt],it.test(Ee.type||"")&&!xe.access(Ee,"globalEval")&&w.contains(Ke,Ee)&&(Ee.src&&(Ee.type||"").toLowerCase()!=="module"?w._evalUrl&&!Ee.noModule&&w._evalUrl(Ee.src,{nonce:Ee.nonce||Ee.getAttribute("nonce")},Ke):C(Ee.textContent.replace(YT,""),Ee,Ke))}return k}function Og(k,A,P){for(var D,q=A?w.filter(A,k):k,J=0;(D=q[J])!=null;J++)!P&&D.nodeType===1&&w.cleanData(Cr(D)),D.parentNode&&(P&&Dt(D)&&Pi(Cr(D,"script")),D.parentNode.removeChild(D));return k}w.extend({htmlPrefilter:function(k){return k},clone:function(k,A,P){var D,q,J,oe,Re=k.cloneNode(!0),Ee=Dt(k);if(!y.noCloneChecked&&(k.nodeType===1||k.nodeType===11)&&!w.isXMLDoc(k))for(oe=Cr(Re),J=Cr(k),D=0,q=J.length;D<q;D++)$g(J[D],oe[D]);if(A)if(P)for(J=J||Cr(k),oe=oe||Cr(Re),D=0,q=J.length;D<q;D++)$i(J[D],oe[D]);else $i(k,Re);return oe=Cr(Re,"script"),oe.length>0&&Pi(oe,!Ee&&Cr(k,"script")),Re},cleanData:function(k){for(var A,P,D,q=w.event.special,J=0;(P=k[J])!==void 0;J++)if(ge(P)){if(A=P[xe.expando]){if(A.events)for(D in A.events)q[D]?w.event.remove(P,D):w.removeEvent(P,D,A.handle);P[xe.expando]=void 0}P[be.expando]&&(P[be.expando]=void 0)}}}),w.fn.extend({detach:function(k){return Og(this,k,!0)},remove:function(k){return Og(this,k)},text:function(k){return he(this,function(A){return A===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=A)})},null,k,arguments.length)},append:function(){return _o(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var A=Ax(this,k);A.appendChild(k)}})},prepend:function(){return _o(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var A=Ax(this,k);A.insertBefore(k,A.firstChild)}})},before:function(){return _o(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this)})},after:function(){return _o(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this.nextSibling)})},empty:function(){for(var k,A=0;(k=this[A])!=null;A++)k.nodeType===1&&(w.cleanData(Cr(k,!1)),k.textContent="");return this},clone:function(k,A){return k=k==null?!1:k,A=A==null?k:A,this.map(function(){return w.clone(this,k,A)})},html:function(k){return he(this,function(A){var P=this[0]||{},D=0,q=this.length;if(A===void 0&&P.nodeType===1)return P.innerHTML;if(typeof A=="string"&&!zd.test(A)&&!Zt[(qe.exec(A)||["",""])[1].toLowerCase()]){A=w.htmlPrefilter(A);try{for(;D<q;D++)P=this[D]||{},P.nodeType===1&&(w.cleanData(Cr(P,!1)),P.innerHTML=A);P=0}catch{}}P&&this.empty().append(A)},null,k,arguments.length)},replaceWith:function(){var k=[];return _o(this,arguments,function(A){var P=this.parentNode;w.inArray(this,k)<0&&(w.cleanData(Cr(this)),P&&P.replaceChild(A,this))},k)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(k,A){w.fn[k]=function(P){for(var D,q=[],J=w(P),oe=J.length-1,Re=0;Re<=oe;Re++)D=Re===oe?this:this.clone(!0),w(J[Re])[A](D),l.apply(q,D.get());return this.pushStack(q)}});var tr=new RegExp("^("+Pe+")(?!px)[a-z%]+$","i"),jd=/^--/,sn=function(k){var A=k.ownerDocument.defaultView;return(!A||!A.opener)&&(A=t),A.getComputedStyle(k)},Vd=function(k,A,P){var D,q,J={};for(q in A)J[q]=k.style[q],k.style[q]=A[q];D=P.call(k);for(q in A)k.style[q]=J[q];return D},ZT=new RegExp(dt.join("|"),"i"),Sl="[\\x20\\t\\r\\n\\f]",Mx=new RegExp("^"+Sl+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Sl+"+$","g");(function(){function k(){if(!!Ke){Ee.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ke.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(Ee).appendChild(Ke);var lt=t.getComputedStyle(Ke);P=lt.top!=="1%",Re=A(lt.marginLeft)===12,Ke.style.right="60%",J=A(lt.right)===36,D=A(lt.width)===36,Ke.style.position="absolute",q=A(Ke.offsetWidth/3)===12,gt.removeChild(Ee),Ke=null}}function A(lt){return Math.round(parseFloat(lt))}var P,D,q,J,oe,Re,Ee=x.createElement("div"),Ke=x.createElement("div");!Ke.style||(Ke.style.backgroundClip="content-box",Ke.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle=Ke.style.backgroundClip==="content-box",w.extend(y,{boxSizingReliable:function(){return k(),D},pixelBoxStyles:function(){return k(),J},pixelPosition:function(){return k(),P},reliableMarginLeft:function(){return k(),Re},scrollboxSize:function(){return k(),q},reliableTrDimensions:function(){var lt,Pt,nt,ht;return oe==null&&(lt=x.createElement("table"),Pt=x.createElement("tr"),nt=x.createElement("div"),lt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Pt.style.cssText="border:1px solid",Pt.style.height="1px",nt.style.height="9px",nt.style.display="block",gt.appendChild(lt).appendChild(Pt).appendChild(nt),ht=t.getComputedStyle(Pt),oe=parseInt(ht.height,10)+parseInt(ht.borderTopWidth,10)+parseInt(ht.borderBottomWidth,10)===Pt.offsetHeight,gt.removeChild(lt)),oe}}))})();function Bd(k,A,P){var D,q,J,oe,Re=jd.test(A),Ee=k.style;return P=P||sn(k),P&&(oe=P.getPropertyValue(A)||P[A],Re&&oe&&(oe=oe.replace(Mx,"$1")||void 0),oe===""&&!Dt(k)&&(oe=w.style(k,A)),!y.pixelBoxStyles()&&tr.test(oe)&&ZT.test(A)&&(D=Ee.width,q=Ee.minWidth,J=Ee.maxWidth,Ee.minWidth=Ee.maxWidth=Ee.width=oe,oe=P.width,Ee.width=D,Ee.minWidth=q,Ee.maxWidth=J)),oe!==void 0?oe+"":oe}function Or(k,A){return{get:function(){if(k()){delete this.get;return}return(this.get=A).apply(this,arguments)}}}var Ix=["Webkit","Moz","ms"],W0=x.createElement("div").style,Px={};function QT(k){for(var A=k[0].toUpperCase()+k.slice(1),P=Ix.length;P--;)if(k=Ix[P]+A,k in W0)return k}function Qh(k){var A=w.cssProps[k]||Px[k];return A||(k in W0?k:Px[k]=QT(k)||k)}var JT=/^(none|table(?!-c[ea]).+)/,H0={position:"absolute",visibility:"hidden",display:"block"},wn={letterSpacing:"0",fontWeight:"400"};function $x(k,A,P){var D=Xe.exec(A);return D?Math.max(0,D[2]-(P||0))+(D[3]||"px"):A}function Lg(k,A,P,D,q,J){var oe=A==="width"?1:0,Re=0,Ee=0;if(P===(D?"border":"content"))return 0;for(;oe<4;oe+=2)P==="margin"&&(Ee+=w.css(k,P+dt[oe],!0,q)),D?(P==="content"&&(Ee-=w.css(k,"padding"+dt[oe],!0,q)),P!=="margin"&&(Ee-=w.css(k,"border"+dt[oe]+"Width",!0,q))):(Ee+=w.css(k,"padding"+dt[oe],!0,q),P!=="padding"?Ee+=w.css(k,"border"+dt[oe]+"Width",!0,q):Re+=w.css(k,"border"+dt[oe]+"Width",!0,q));return!D&&J>=0&&(Ee+=Math.max(0,Math.ceil(k["offset"+A[0].toUpperCase()+A.slice(1)]-J-Ee-Re-.5))||0),Ee}function Ox(k,A,P){var D=sn(k),q=!y.boxSizingReliable()||P,J=q&&w.css(k,"boxSizing",!1,D)==="border-box",oe=J,Re=Bd(k,A,D),Ee="offset"+A[0].toUpperCase()+A.slice(1);if(tr.test(Re)){if(!P)return Re;Re="auto"}return(!y.boxSizingReliable()&&J||!y.reliableTrDimensions()&&z(k,"tr")||Re==="auto"||!parseFloat(Re)&&w.css(k,"display",!1,D)==="inline")&&k.getClientRects().length&&(J=w.css(k,"boxSizing",!1,D)==="border-box",oe=Ee in k,oe&&(Re=k[Ee])),Re=parseFloat(Re)||0,Re+Lg(k,A,P||(J?"border":"content"),oe,D,Re)+"px"}w.extend({cssHooks:{opacity:{get:function(k,A){if(A){var P=Bd(k,"opacity");return P===""?"1":P}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(k,A,P,D){if(!(!k||k.nodeType===3||k.nodeType===8||!k.style)){var q,J,oe,Re=pe(A),Ee=jd.test(A),Ke=k.style;if(Ee||(A=Qh(Re)),oe=w.cssHooks[A]||w.cssHooks[Re],P!==void 0){if(J=typeof P,J==="string"&&(q=Xe.exec(P))&&q[1]&&(P=Le(k,A,q),J="number"),P==null||P!==P)return;J==="number"&&!Ee&&(P+=q&&q[3]||(w.cssNumber[Re]?"":"px")),!y.clearCloneStyle&&P===""&&A.indexOf("background")===0&&(Ke[A]="inherit"),(!oe||!("set"in oe)||(P=oe.set(k,P,D))!==void 0)&&(Ee?Ke.setProperty(A,P):Ke[A]=P)}else return oe&&"get"in oe&&(q=oe.get(k,!1,D))!==void 0?q:Ke[A]}},css:function(k,A,P,D){var q,J,oe,Re=pe(A),Ee=jd.test(A);return Ee||(A=Qh(Re)),oe=w.cssHooks[A]||w.cssHooks[Re],oe&&"get"in oe&&(q=oe.get(k,!0,P)),q===void 0&&(q=Bd(k,A,D)),q==="normal"&&A in wn&&(q=wn[A]),P===""||P?(J=parseFloat(q),P===!0||isFinite(J)?J||0:q):q}}),w.each(["height","width"],function(k,A){w.cssHooks[A]={get:function(P,D,q){if(D)return JT.test(w.css(P,"display"))&&(!P.getClientRects().length||!P.getBoundingClientRect().width)?Vd(P,H0,function(){return Ox(P,A,q)}):Ox(P,A,q)},set:function(P,D,q){var J,oe=sn(P),Re=!y.scrollboxSize()&&oe.position==="absolute",Ee=Re||q,Ke=Ee&&w.css(P,"boxSizing",!1,oe)==="border-box",lt=q?Lg(P,A,q,Ke,oe):0;return Ke&&Re&&(lt-=Math.ceil(P["offset"+A[0].toUpperCase()+A.slice(1)]-parseFloat(oe[A])-Lg(P,A,"border",!1,oe)-.5)),lt&&(J=Xe.exec(D))&&(J[3]||"px")!=="px"&&(P.style[A]=D,D=w.css(P,A)),$x(P,D,lt)}}}),w.cssHooks.marginLeft=Or(y.reliableMarginLeft,function(k,A){if(A)return(parseFloat(Bd(k,"marginLeft"))||k.getBoundingClientRect().left-Vd(k,{marginLeft:0},function(){return k.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(k,A){w.cssHooks[k+A]={expand:function(P){for(var D=0,q={},J=typeof P=="string"?P.split(" "):[P];D<4;D++)q[k+dt[D]+A]=J[D]||J[D-2]||J[0];return q}},k!=="margin"&&(w.cssHooks[k+A].set=$x)}),w.fn.extend({css:function(k,A){return he(this,function(P,D,q){var J,oe,Re={},Ee=0;if(Array.isArray(D)){for(J=sn(P),oe=D.length;Ee<oe;Ee++)Re[D[Ee]]=w.css(P,D[Ee],!1,J);return Re}return q!==void 0?w.style(P,D,q):w.css(P,D)},k,A,arguments.length>1)}});function Io(k,A,P,D,q){return new Io.prototype.init(k,A,P,D,q)}w.Tween=Io,Io.prototype={constructor:Io,init:function(k,A,P,D,q,J){this.elem=k,this.prop=P,this.easing=q||w.easing._default,this.options=A,this.start=this.now=this.cur(),this.end=D,this.unit=J||(w.cssNumber[P]?"":"px")},cur:function(){var k=Io.propHooks[this.prop];return k&&k.get?k.get(this):Io.propHooks._default.get(this)},run:function(k){var A,P=Io.propHooks[this.prop];return this.options.duration?this.pos=A=w.easing[this.easing](k,this.options.duration*k,0,1,this.options.duration):this.pos=A=k,this.now=(this.end-this.start)*A+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),P&&P.set?P.set(this):Io.propHooks._default.set(this),this}},Io.prototype.init.prototype=Io.prototype,Io.propHooks={_default:{get:function(k){var A;return k.elem.nodeType!==1||k.elem[k.prop]!=null&&k.elem.style[k.prop]==null?k.elem[k.prop]:(A=w.css(k.elem,k.prop,""),!A||A==="auto"?0:A)},set:function(k){w.fx.step[k.prop]?w.fx.step[k.prop](k):k.elem.nodeType===1&&(w.cssHooks[k.prop]||k.elem.style[Qh(k.prop)]!=null)?w.style(k.elem,k.prop,k.now+k.unit):k.elem[k.prop]=k.now}}},Io.propHooks.scrollTop=Io.propHooks.scrollLeft={set:function(k){k.elem.nodeType&&k.elem.parentNode&&(k.elem[k.prop]=k.now)}},w.easing={linear:function(k){return k},swing:function(k){return .5-Math.cos(k*Math.PI)/2},_default:"swing"},w.fx=Io.prototype.init,w.fx.step={};var Ud,Rg,XT=/^(?:toggle|show|hide)$/,fs=/queueHooks$/;function G0(){Rg&&(x.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(G0):t.setTimeout(G0,w.fx.interval),w.fx.tick())}function Lx(){return t.setTimeout(function(){Ud=void 0}),Ud=Date.now()}function Ce(k,A){var P,D=0,q={height:k};for(A=A?1:0;D<4;D+=2-A)P=dt[D],q["margin"+P]=q["padding"+P]=k;return A&&(q.opacity=q.width=k),q}function pt(k,A,P){for(var D,q=(wi.tweeners[A]||[]).concat(wi.tweeners["*"]),J=0,oe=q.length;J<oe;J++)if(D=q[J].call(P,A,k))return D}function Mt(k,A,P){var D,q,J,oe,Re,Ee,Ke,lt,Pt="width"in A||"height"in A,nt=this,ht={},mr=k.style,Vr=k.nodeType&&Bt(k),hr=xe.get(k,"fxshow");P.queue||(oe=w._queueHooks(k,"fx"),oe.unqueued==null&&(oe.unqueued=0,Re=oe.empty.fire,oe.empty.fire=function(){oe.unqueued||Re()}),oe.unqueued++,nt.always(function(){nt.always(function(){oe.unqueued--,w.queue(k,"fx").length||oe.empty.fire()})}));for(D in A)if(q=A[D],XT.test(q)){if(delete A[D],J=J||q==="toggle",q===(Vr?"hide":"show"))if(q==="show"&&hr&&hr[D]!==void 0)Vr=!0;else continue;ht[D]=hr&&hr[D]||w.style(k,D)}if(Ee=!w.isEmptyObject(A),!(!Ee&&w.isEmptyObject(ht))){Pt&&k.nodeType===1&&(P.overflow=[mr.overflow,mr.overflowX,mr.overflowY],Ke=hr&&hr.display,Ke==null&&(Ke=xe.get(k,"display")),lt=w.css(k,"display"),lt==="none"&&(Ke?lt=Ke:(ie([k],!0),Ke=k.style.display||Ke,lt=w.css(k,"display"),ie([k]))),(lt==="inline"||lt==="inline-block"&&Ke!=null)&&w.css(k,"float")==="none"&&(Ee||(nt.done(function(){mr.display=Ke}),Ke==null&&(lt=mr.display,Ke=lt==="none"?"":lt)),mr.display="inline-block")),P.overflow&&(mr.overflow="hidden",nt.always(function(){mr.overflow=P.overflow[0],mr.overflowX=P.overflow[1],mr.overflowY=P.overflow[2]})),Ee=!1;for(D in ht)Ee||(hr?"hidden"in hr&&(Vr=hr.hidden):hr=xe.access(k,"fxshow",{display:Ke}),J&&(hr.hidden=!Vr),Vr&&ie([k],!0),nt.done(function(){Vr||ie([k]),xe.remove(k,"fxshow");for(D in ht)w.style(k,D,ht[D])})),Ee=pt(Vr?hr[D]:0,D,nt),D in hr||(hr[D]=Ee.start,Vr&&(Ee.end=Ee.start,Ee.start=0))}}function Ur(k,A){var P,D,q,J,oe;for(P in k)if(D=pe(P),q=A[D],J=k[P],Array.isArray(J)&&(q=J[1],J=k[P]=J[0]),P!==D&&(k[D]=J,delete k[P]),oe=w.cssHooks[D],oe&&"expand"in oe){J=oe.expand(J),delete k[D];for(P in J)P in k||(k[P]=J[P],A[P]=q)}else A[D]=q}function wi(k,A,P){var D,q,J=0,oe=wi.prefilters.length,Re=w.Deferred().always(function(){delete Ee.elem}),Ee=function(){if(q)return!1;for(var Pt=Ud||Lx(),nt=Math.max(0,Ke.startTime+Ke.duration-Pt),ht=nt/Ke.duration||0,mr=1-ht,Vr=0,hr=Ke.tweens.length;Vr<hr;Vr++)Ke.tweens[Vr].run(mr);return Re.notifyWith(k,[Ke,mr,nt]),mr<1&&hr?nt:(hr||Re.notifyWith(k,[Ke,1,0]),Re.resolveWith(k,[Ke]),!1)},Ke=Re.promise({elem:k,props:w.extend({},A),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},P),originalProperties:A,originalOptions:P,startTime:Ud||Lx(),duration:P.duration,tweens:[],createTween:function(Pt,nt){var ht=w.Tween(k,Ke.opts,Pt,nt,Ke.opts.specialEasing[Pt]||Ke.opts.easing);return Ke.tweens.push(ht),ht},stop:function(Pt){var nt=0,ht=Pt?Ke.tweens.length:0;if(q)return this;for(q=!0;nt<ht;nt++)Ke.tweens[nt].run(1);return Pt?(Re.notifyWith(k,[Ke,1,0]),Re.resolveWith(k,[Ke,Pt])):Re.rejectWith(k,[Ke,Pt]),this}}),lt=Ke.props;for(Ur(lt,Ke.opts.specialEasing);J<oe;J++)if(D=wi.prefilters[J].call(Ke,k,lt,Ke.opts),D)return v(D.stop)&&(w._queueHooks(Ke.elem,Ke.opts.queue).stop=D.stop.bind(D)),D;return w.map(lt,pt,Ke),v(Ke.opts.start)&&Ke.opts.start.call(k,Ke),Ke.progress(Ke.opts.progress).done(Ke.opts.done,Ke.opts.complete).fail(Ke.opts.fail).always(Ke.opts.always),w.fx.timer(w.extend(Ee,{elem:k,anim:Ke,queue:Ke.opts.queue})),Ke}w.Animation=w.extend(wi,{tweeners:{"*":[function(k,A){var P=this.createTween(k,A);return Le(P.elem,k,Xe.exec(A),P),P}]},tweener:function(k,A){v(k)?(A=k,k=["*"]):k=k.match(ce);for(var P,D=0,q=k.length;D<q;D++)P=k[D],wi.tweeners[P]=wi.tweeners[P]||[],wi.tweeners[P].unshift(A)},prefilters:[Mt],prefilter:function(k,A){A?wi.prefilters.unshift(k):wi.prefilters.push(k)}}),w.speed=function(k,A,P){var D=k&&typeof k=="object"?w.extend({},k):{complete:P||!P&&A||v(k)&&k,duration:k,easing:P&&A||A&&!v(A)&&A};return w.fx.off?D.duration=0:typeof D.duration!="number"&&(D.duration in w.fx.speeds?D.duration=w.fx.speeds[D.duration]:D.duration=w.fx.speeds._default),(D.queue==null||D.queue===!0)&&(D.queue="fx"),D.old=D.complete,D.complete=function(){v(D.old)&&D.old.call(this),D.queue&&w.dequeue(this,D.queue)},D},w.fn.extend({fadeTo:function(k,A,P,D){return this.filter(Bt).css("opacity",0).show().end().animate({opacity:A},k,P,D)},animate:function(k,A,P,D){var q=w.isEmptyObject(k),J=w.speed(A,P,D),oe=function(){var Re=wi(this,w.extend({},k),J);(q||xe.get(this,"finish"))&&Re.stop(!0)};return oe.finish=oe,q||J.queue===!1?this.each(oe):this.queue(J.queue,oe)},stop:function(k,A,P){var D=function(q){var J=q.stop;delete q.stop,J(P)};return typeof k!="string"&&(P=A,A=k,k=void 0),A&&this.queue(k||"fx",[]),this.each(function(){var q=!0,J=k!=null&&k+"queueHooks",oe=w.timers,Re=xe.get(this);if(J)Re[J]&&Re[J].stop&&D(Re[J]);else for(J in Re)Re[J]&&Re[J].stop&&fs.test(J)&&D(Re[J]);for(J=oe.length;J--;)oe[J].elem===this&&(k==null||oe[J].queue===k)&&(oe[J].anim.stop(P),q=!1,oe.splice(J,1));(q||!P)&&w.dequeue(this,k)})},finish:function(k){return k!==!1&&(k=k||"fx"),this.each(function(){var A,P=xe.get(this),D=P[k+"queue"],q=P[k+"queueHooks"],J=w.timers,oe=D?D.length:0;for(P.finish=!0,w.queue(this,k,[]),q&&q.stop&&q.stop.call(this,!0),A=J.length;A--;)J[A].elem===this&&J[A].queue===k&&(J[A].anim.stop(!0),J.splice(A,1));for(A=0;A<oe;A++)D[A]&&D[A].finish&&D[A].finish.call(this);delete P.finish})}}),w.each(["toggle","show","hide"],function(k,A){var P=w.fn[A];w.fn[A]=function(D,q,J){return D==null||typeof D=="boolean"?P.apply(this,arguments):this.animate(Ce(A,!0),D,q,J)}}),w.each({slideDown:Ce("show"),slideUp:Ce("hide"),slideToggle:Ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(k,A){w.fn[k]=function(P,D,q){return this.animate(A,P,D,q)}}),w.timers=[],w.fx.tick=function(){var k,A=0,P=w.timers;for(Ud=Date.now();A<P.length;A++)k=P[A],!k()&&P[A]===k&&P.splice(A--,1);P.length||w.fx.stop(),Ud=void 0},w.fx.timer=function(k){w.timers.push(k),w.fx.start()},w.fx.interval=13,w.fx.start=function(){Rg||(Rg=!0,G0())},w.fx.stop=function(){Rg=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(k,A){return k=w.fx&&w.fx.speeds[k]||k,A=A||"fx",this.queue(A,function(P,D){var q=t.setTimeout(P,k);D.stop=function(){t.clearTimeout(q)}})},function(){var k=x.createElement("input"),A=x.createElement("select"),P=A.appendChild(x.createElement("option"));k.type="checkbox",y.checkOn=k.value!=="",y.optSelected=P.selected,k=x.createElement("input"),k.value="t",k.type="radio",y.radioValue=k.value==="t"}();var Fi,ro=w.expr.attrHandle;w.fn.extend({attr:function(k,A){return he(this,w.attr,k,A,arguments.length>1)},removeAttr:function(k){return this.each(function(){w.removeAttr(this,k)})}}),w.extend({attr:function(k,A,P){var D,q,J=k.nodeType;if(!(J===3||J===8||J===2)){if(typeof k.getAttribute=="undefined")return w.prop(k,A,P);if((J!==1||!w.isXMLDoc(k))&&(q=w.attrHooks[A.toLowerCase()]||(w.expr.match.bool.test(A)?Fi:void 0)),P!==void 0){if(P===null){w.removeAttr(k,A);return}return q&&"set"in q&&(D=q.set(k,P,A))!==void 0?D:(k.setAttribute(A,P+""),P)}return q&&"get"in q&&(D=q.get(k,A))!==null?D:(D=w.find.attr(k,A),D==null?void 0:D)}},attrHooks:{type:{set:function(k,A){if(!y.radioValue&&A==="radio"&&z(k,"input")){var P=k.value;return k.setAttribute("type",A),P&&(k.value=P),A}}}},removeAttr:function(k,A){var P,D=0,q=A&&A.match(ce);if(q&&k.nodeType===1)for(;P=q[D++];)k.removeAttribute(P)}}),Fi={set:function(k,A,P){return A===!1?w.removeAttr(k,P):k.setAttribute(P,P),P}},w.each(w.expr.match.bool.source.match(/\w+/g),function(k,A){var P=ro[A]||w.find.attr;ro[A]=function(D,q,J){var oe,Re,Ee=q.toLowerCase();return J||(Re=ro[Ee],ro[Ee]=oe,oe=P(D,q,J)!=null?Ee:null,ro[Ee]=Re),oe}});var Dg=/^(?:input|select|textarea|button)$/i,kle=/^(?:a|area)$/i;w.fn.extend({prop:function(k,A){return he(this,w.prop,k,A,arguments.length>1)},removeProp:function(k){return this.each(function(){delete this[w.propFix[k]||k]})}}),w.extend({prop:function(k,A,P){var D,q,J=k.nodeType;if(!(J===3||J===8||J===2))return(J!==1||!w.isXMLDoc(k))&&(A=w.propFix[A]||A,q=w.propHooks[A]),P!==void 0?q&&"set"in q&&(D=q.set(k,P,A))!==void 0?D:k[A]=P:q&&"get"in q&&(D=q.get(k,A))!==null?D:k[A]},propHooks:{tabIndex:{get:function(k){var A=w.find.attr(k,"tabindex");return A?parseInt(A,10):Dg.test(k.nodeName)||kle.test(k.nodeName)&&k.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(w.propHooks.selected={get:function(k){var A=k.parentNode;return A&&A.parentNode&&A.parentNode.selectedIndex,null},set:function(k){var A=k.parentNode;A&&(A.selectedIndex,A.parentNode&&A.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function Jh(k){var A=k.match(ce)||[];return A.join(" ")}function Xh(k){return k.getAttribute&&k.getAttribute("class")||""}function eA(k){return Array.isArray(k)?k:typeof k=="string"?k.match(ce)||[]:[]}w.fn.extend({addClass:function(k){var A,P,D,q,J,oe;return v(k)?this.each(function(Re){w(this).addClass(k.call(this,Re,Xh(this)))}):(A=eA(k),A.length?this.each(function(){if(D=Xh(this),P=this.nodeType===1&&" "+Jh(D)+" ",P){for(J=0;J<A.length;J++)q=A[J],P.indexOf(" "+q+" ")<0&&(P+=q+" ");oe=Jh(P),D!==oe&&this.setAttribute("class",oe)}}):this)},removeClass:function(k){var A,P,D,q,J,oe;return v(k)?this.each(function(Re){w(this).removeClass(k.call(this,Re,Xh(this)))}):arguments.length?(A=eA(k),A.length?this.each(function(){if(D=Xh(this),P=this.nodeType===1&&" "+Jh(D)+" ",P){for(J=0;J<A.length;J++)for(q=A[J];P.indexOf(" "+q+" ")>-1;)P=P.replace(" "+q+" "," ");oe=Jh(P),D!==oe&&this.setAttribute("class",oe)}}):this):this.attr("class","")},toggleClass:function(k,A){var P,D,q,J,oe=typeof k,Re=oe==="string"||Array.isArray(k);return v(k)?this.each(function(Ee){w(this).toggleClass(k.call(this,Ee,Xh(this),A),A)}):typeof A=="boolean"&&Re?A?this.addClass(k):this.removeClass(k):(P=eA(k),this.each(function(){if(Re)for(J=w(this),q=0;q<P.length;q++)D=P[q],J.hasClass(D)?J.removeClass(D):J.addClass(D);else(k===void 0||oe==="boolean")&&(D=Xh(this),D&&xe.set(this,"__className__",D),this.setAttribute&&this.setAttribute("class",D||k===!1?"":xe.get(this,"__className__")||""))}))},hasClass:function(k){var A,P,D=0;for(A=" "+k+" ";P=this[D++];)if(P.nodeType===1&&(" "+Jh(Xh(P))+" ").indexOf(A)>-1)return!0;return!1}});var Sle=/\r/g;w.fn.extend({val:function(k){var A,P,D,q=this[0];return arguments.length?(D=v(k),this.each(function(J){var oe;this.nodeType===1&&(D?oe=k.call(this,J,w(this).val()):oe=k,oe==null?oe="":typeof oe=="number"?oe+="":Array.isArray(oe)&&(oe=w.map(oe,function(Re){return Re==null?"":Re+""})),A=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!A||!("set"in A)||A.set(this,oe,"value")===void 0)&&(this.value=oe))})):q?(A=w.valHooks[q.type]||w.valHooks[q.nodeName.toLowerCase()],A&&"get"in A&&(P=A.get(q,"value"))!==void 0?P:(P=q.value,typeof P=="string"?P.replace(Sle,""):P==null?"":P)):void 0}}),w.extend({valHooks:{option:{get:function(k){var A=w.find.attr(k,"value");return A!=null?A:Jh(w.text(k))}},select:{get:function(k){var A,P,D,q=k.options,J=k.selectedIndex,oe=k.type==="select-one",Re=oe?null:[],Ee=oe?J+1:q.length;for(J<0?D=Ee:D=oe?J:0;D<Ee;D++)if(P=q[D],(P.selected||D===J)&&!P.disabled&&(!P.parentNode.disabled||!z(P.parentNode,"optgroup"))){if(A=w(P).val(),oe)return A;Re.push(A)}return Re},set:function(k,A){for(var P,D,q=k.options,J=w.makeArray(A),oe=q.length;oe--;)D=q[oe],(D.selected=w.inArray(w.valHooks.option.get(D),J)>-1)&&(P=!0);return P||(k.selectedIndex=-1),J}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(k,A){if(Array.isArray(A))return k.checked=w.inArray(w(k).val(),A)>-1}},y.checkOn||(w.valHooks[this].get=function(k){return k.getAttribute("value")===null?"on":k.value})}),y.focusin="onfocusin"in t;var AF=/^(?:focusinfocus|focusoutblur)$/,MF=function(k){k.stopPropagation()};w.extend(w.event,{trigger:function(k,A,P,D){var q,J,oe,Re,Ee,Ke,lt,Pt,nt=[P||x],ht=p.call(k,"type")?k.type:k,mr=p.call(k,"namespace")?k.namespace.split("."):[];if(J=Pt=oe=P=P||x,!(P.nodeType===3||P.nodeType===8)&&!AF.test(ht+w.event.triggered)&&(ht.indexOf(".")>-1&&(mr=ht.split("."),ht=mr.shift(),mr.sort()),Ee=ht.indexOf(":")<0&&"on"+ht,k=k[w.expando]?k:new w.Event(ht,typeof k=="object"&&k),k.isTrigger=D?2:3,k.namespace=mr.join("."),k.rnamespace=k.namespace?new RegExp("(^|\\.)"+mr.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,k.result=void 0,k.target||(k.target=P),A=A==null?[k]:w.makeArray(A,[k]),lt=w.event.special[ht]||{},!(!D&<.trigger&<.trigger.apply(P,A)===!1))){if(!D&&!lt.noBubble&&!_(P)){for(Re=lt.delegateType||ht,AF.test(Re+ht)||(J=J.parentNode);J;J=J.parentNode)nt.push(J),oe=J;oe===(P.ownerDocument||x)&&nt.push(oe.defaultView||oe.parentWindow||t)}for(q=0;(J=nt[q++])&&!k.isPropagationStopped();)Pt=J,k.type=q>1?Re:lt.bindType||ht,Ke=(xe.get(J,"events")||Object.create(null))[k.type]&&xe.get(J,"handle"),Ke&&Ke.apply(J,A),Ke=Ee&&J[Ee],Ke&&Ke.apply&&ge(J)&&(k.result=Ke.apply(J,A),k.result===!1&&k.preventDefault());return k.type=ht,!D&&!k.isDefaultPrevented()&&(!lt._default||lt._default.apply(nt.pop(),A)===!1)&&ge(P)&&Ee&&v(P[ht])&&!_(P)&&(oe=P[Ee],oe&&(P[Ee]=null),w.event.triggered=ht,k.isPropagationStopped()&&Pt.addEventListener(ht,MF),P[ht](),k.isPropagationStopped()&&Pt.removeEventListener(ht,MF),w.event.triggered=void 0,oe&&(P[Ee]=oe)),k.result}},simulate:function(k,A,P){var D=w.extend(new w.Event,P,{type:k,isSimulated:!0});w.event.trigger(D,null,A)}}),w.fn.extend({trigger:function(k,A){return this.each(function(){w.event.trigger(k,A,this)})},triggerHandler:function(k,A){var P=this[0];if(P)return w.event.trigger(k,A,P,!0)}}),y.focusin||w.each({focus:"focusin",blur:"focusout"},function(k,A){var P=function(D){w.event.simulate(A,D.target,w.event.fix(D))};w.event.special[A]={setup:function(){var D=this.ownerDocument||this.document||this,q=xe.access(D,A);q||D.addEventListener(k,P,!0),xe.access(D,A,(q||0)+1)},teardown:function(){var D=this.ownerDocument||this.document||this,q=xe.access(D,A)-1;q?xe.access(D,A,q):(D.removeEventListener(k,P,!0),xe.remove(D,A))}}});var q0=t.location,IF={guid:Date.now()},tA=/\?/;w.parseXML=function(k){var A,P;if(!k||typeof k!="string")return null;try{A=new t.DOMParser().parseFromString(k,"text/xml")}catch{}return P=A&&A.getElementsByTagName("parsererror")[0],(!A||P)&&w.error("Invalid XML: "+(P?w.map(P.childNodes,function(D){return D.textContent}).join(`
- `):k)),A};var Ele=/\[\]$/,PF=/\r?\n/g,Tle=/^(?:submit|button|image|reset|file)$/i,Ale=/^(?:input|select|textarea|keygen)/i;function rA(k,A,P,D){var q;if(Array.isArray(A))w.each(A,function(J,oe){P||Ele.test(k)?D(k,oe):rA(k+"["+(typeof oe=="object"&&oe!=null?J:"")+"]",oe,P,D)});else if(!P&&E(A)==="object")for(q in A)rA(k+"["+q+"]",A[q],P,D);else D(k,A)}w.param=function(k,A){var P,D=[],q=function(J,oe){var Re=v(oe)?oe():oe;D[D.length]=encodeURIComponent(J)+"="+encodeURIComponent(Re==null?"":Re)};if(k==null)return"";if(Array.isArray(k)||k.jquery&&!w.isPlainObject(k))w.each(k,function(){q(this.name,this.value)});else for(P in k)rA(P,k[P],A,q);return D.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var k=w.prop(this,"elements");return k?w.makeArray(k):this}).filter(function(){var k=this.type;return this.name&&!w(this).is(":disabled")&&Ale.test(this.nodeName)&&!Tle.test(k)&&(this.checked||!we.test(k))}).map(function(k,A){var P=w(this).val();return P==null?null:Array.isArray(P)?w.map(P,function(D){return{name:A.name,value:D.replace(PF,`\r
- `)}}):{name:A.name,value:P.replace(PF,`\r
- `)}}).get()}});var Mle=/%20/g,Ile=/#.*$/,Ple=/([?&])_=[^&]*/,$le=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ole=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lle=/^(?:GET|HEAD)$/,Rle=/^\/\//,$F={},iA={},OF="*/".concat("*"),nA=x.createElement("a");nA.href=q0.href;function LF(k){return function(A,P){typeof A!="string"&&(P=A,A="*");var D,q=0,J=A.toLowerCase().match(ce)||[];if(v(P))for(;D=J[q++];)D[0]==="+"?(D=D.slice(1)||"*",(k[D]=k[D]||[]).unshift(P)):(k[D]=k[D]||[]).push(P)}}function RF(k,A,P,D){var q={},J=k===iA;function oe(Re){var Ee;return q[Re]=!0,w.each(k[Re]||[],function(Ke,lt){var Pt=lt(A,P,D);if(typeof Pt=="string"&&!J&&!q[Pt])return A.dataTypes.unshift(Pt),oe(Pt),!1;if(J)return!(Ee=Pt)}),Ee}return oe(A.dataTypes[0])||!q["*"]&&oe("*")}function oA(k,A){var P,D,q=w.ajaxSettings.flatOptions||{};for(P in A)A[P]!==void 0&&((q[P]?k:D||(D={}))[P]=A[P]);return D&&w.extend(!0,k,D),k}function Dle(k,A,P){for(var D,q,J,oe,Re=k.contents,Ee=k.dataTypes;Ee[0]==="*";)Ee.shift(),D===void 0&&(D=k.mimeType||A.getResponseHeader("Content-Type"));if(D){for(q in Re)if(Re[q]&&Re[q].test(D)){Ee.unshift(q);break}}if(Ee[0]in P)J=Ee[0];else{for(q in P){if(!Ee[0]||k.converters[q+" "+Ee[0]]){J=q;break}oe||(oe=q)}J=J||oe}if(J)return J!==Ee[0]&&Ee.unshift(J),P[J]}function Nle(k,A,P,D){var q,J,oe,Re,Ee,Ke={},lt=k.dataTypes.slice();if(lt[1])for(oe in k.converters)Ke[oe.toLowerCase()]=k.converters[oe];for(J=lt.shift();J;)if(k.responseFields[J]&&(P[k.responseFields[J]]=A),!Ee&&D&&k.dataFilter&&(A=k.dataFilter(A,k.dataType)),Ee=J,J=lt.shift(),J){if(J==="*")J=Ee;else if(Ee!=="*"&&Ee!==J){if(oe=Ke[Ee+" "+J]||Ke["* "+J],!oe){for(q in Ke)if(Re=q.split(" "),Re[1]===J&&(oe=Ke[Ee+" "+Re[0]]||Ke["* "+Re[0]],oe)){oe===!0?oe=Ke[q]:Ke[q]!==!0&&(J=Re[0],lt.unshift(Re[1]));break}}if(oe!==!0)if(oe&&k.throws)A=oe(A);else try{A=oe(A)}catch(Pt){return{state:"parsererror",error:oe?Pt:"No conversion from "+Ee+" to "+J}}}}return{state:"success",data:A}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:q0.href,type:"GET",isLocal:Ole.test(q0.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":OF,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(k,A){return A?oA(oA(k,w.ajaxSettings),A):oA(w.ajaxSettings,k)},ajaxPrefilter:LF($F),ajaxTransport:LF(iA),ajax:function(k,A){typeof k=="object"&&(A=k,k=void 0),A=A||{};var P,D,q,J,oe,Re,Ee,Ke,lt,Pt,nt=w.ajaxSetup({},A),ht=nt.context||nt,mr=nt.context&&(ht.nodeType||ht.jquery)?w(ht):w.event,Vr=w.Deferred(),hr=w.Callbacks("once memory"),Vn=nt.statusCode||{},Mn={},Ks={},Ti="canceled",zr={readyState:0,getResponseHeader:function(ai){var ln;if(Ee){if(!J)for(J={};ln=$le.exec(q);)J[ln[1].toLowerCase()+" "]=(J[ln[1].toLowerCase()+" "]||[]).concat(ln[2]);ln=J[ai.toLowerCase()+" "]}return ln==null?null:ln.join(", ")},getAllResponseHeaders:function(){return Ee?q:null},setRequestHeader:function(ai,ln){return Ee==null&&(ai=Ks[ai.toLowerCase()]=Ks[ai.toLowerCase()]||ai,Mn[ai]=ln),this},overrideMimeType:function(ai){return Ee==null&&(nt.mimeType=ai),this},statusCode:function(ai){var ln;if(ai)if(Ee)zr.always(ai[zr.status]);else for(ln in ai)Vn[ln]=[Vn[ln],ai[ln]];return this},abort:function(ai){var ln=ai||Ti;return P&&P.abort(ln),ms(0,ln),this}};if(Vr.promise(zr),nt.url=((k||nt.url||q0.href)+"").replace(Rle,q0.protocol+"//"),nt.type=A.method||A.type||nt.method||nt.type,nt.dataTypes=(nt.dataType||"*").toLowerCase().match(ce)||[""],nt.crossDomain==null){Re=x.createElement("a");try{Re.href=nt.url,Re.href=Re.href,nt.crossDomain=nA.protocol+"//"+nA.host!=Re.protocol+"//"+Re.host}catch{nt.crossDomain=!0}}if(nt.data&&nt.processData&&typeof nt.data!="string"&&(nt.data=w.param(nt.data,nt.traditional)),RF($F,nt,A,zr),Ee)return zr;Ke=w.event&&nt.global,Ke&&w.active++===0&&w.event.trigger("ajaxStart"),nt.type=nt.type.toUpperCase(),nt.hasContent=!Lle.test(nt.type),D=nt.url.replace(Ile,""),nt.hasContent?nt.data&&nt.processData&&(nt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(nt.data=nt.data.replace(Mle,"+")):(Pt=nt.url.slice(D.length),nt.data&&(nt.processData||typeof nt.data=="string")&&(D+=(tA.test(D)?"&":"?")+nt.data,delete nt.data),nt.cache===!1&&(D=D.replace(Ple,"$1"),Pt=(tA.test(D)?"&":"?")+"_="+IF.guid+++Pt),nt.url=D+Pt),nt.ifModified&&(w.lastModified[D]&&zr.setRequestHeader("If-Modified-Since",w.lastModified[D]),w.etag[D]&&zr.setRequestHeader("If-None-Match",w.etag[D])),(nt.data&&nt.hasContent&&nt.contentType!==!1||A.contentType)&&zr.setRequestHeader("Content-Type",nt.contentType),zr.setRequestHeader("Accept",nt.dataTypes[0]&&nt.accepts[nt.dataTypes[0]]?nt.accepts[nt.dataTypes[0]]+(nt.dataTypes[0]!=="*"?", "+OF+"; q=0.01":""):nt.accepts["*"]);for(lt in nt.headers)zr.setRequestHeader(lt,nt.headers[lt]);if(nt.beforeSend&&(nt.beforeSend.call(ht,zr,nt)===!1||Ee))return zr.abort();if(Ti="abort",hr.add(nt.complete),zr.done(nt.success),zr.fail(nt.error),P=RF(iA,nt,A,zr),!P)ms(-1,"No Transport");else{if(zr.readyState=1,Ke&&mr.trigger("ajaxSend",[zr,nt]),Ee)return zr;nt.async&&nt.timeout>0&&(oe=t.setTimeout(function(){zr.abort("timeout")},nt.timeout));try{Ee=!1,P.send(Mn,ms)}catch(ai){if(Ee)throw ai;ms(-1,ai)}}function ms(ai,ln,K0,Rx){var Zs,ef,tf,gs,Wd,El=ln;Ee||(Ee=!0,oe&&t.clearTimeout(oe),P=void 0,q=Rx||"",zr.readyState=ai>0?4:0,Zs=ai>=200&&ai<300||ai===304,K0&&(gs=Dle(nt,zr,K0)),!Zs&&w.inArray("script",nt.dataTypes)>-1&&w.inArray("json",nt.dataTypes)<0&&(nt.converters["text script"]=function(){}),gs=Nle(nt,gs,zr,Zs),Zs?(nt.ifModified&&(Wd=zr.getResponseHeader("Last-Modified"),Wd&&(w.lastModified[D]=Wd),Wd=zr.getResponseHeader("etag"),Wd&&(w.etag[D]=Wd)),ai===204||nt.type==="HEAD"?El="nocontent":ai===304?El="notmodified":(El=gs.state,ef=gs.data,tf=gs.error,Zs=!tf)):(tf=El,(ai||!El)&&(El="error",ai<0&&(ai=0))),zr.status=ai,zr.statusText=(ln||El)+"",Zs?Vr.resolveWith(ht,[ef,El,zr]):Vr.rejectWith(ht,[zr,El,tf]),zr.statusCode(Vn),Vn=void 0,Ke&&mr.trigger(Zs?"ajaxSuccess":"ajaxError",[zr,nt,Zs?ef:tf]),hr.fireWith(ht,[zr,El]),Ke&&(mr.trigger("ajaxComplete",[zr,nt]),--w.active||w.event.trigger("ajaxStop")))}return zr},getJSON:function(k,A,P){return w.get(k,A,P,"json")},getScript:function(k,A){return w.get(k,void 0,A,"script")}}),w.each(["get","post"],function(k,A){w[A]=function(P,D,q,J){return v(D)&&(J=J||q,q=D,D=void 0),w.ajax(w.extend({url:P,type:A,dataType:J,data:D,success:q},w.isPlainObject(P)&&P))}}),w.ajaxPrefilter(function(k){var A;for(A in k.headers)A.toLowerCase()==="content-type"&&(k.contentType=k.headers[A]||"")}),w._evalUrl=function(k,A,P){return w.ajax({url:k,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(D){w.globalEval(D,A,P)}})},w.fn.extend({wrapAll:function(k){var A;return this[0]&&(v(k)&&(k=k.call(this[0])),A=w(k,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&A.insertBefore(this[0]),A.map(function(){for(var P=this;P.firstElementChild;)P=P.firstElementChild;return P}).append(this)),this},wrapInner:function(k){return v(k)?this.each(function(A){w(this).wrapInner(k.call(this,A))}):this.each(function(){var A=w(this),P=A.contents();P.length?P.wrapAll(k):A.append(k)})},wrap:function(k){var A=v(k);return this.each(function(P){w(this).wrapAll(A?k.call(this,P):k)})},unwrap:function(k){return this.parent(k).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(k){return!w.expr.pseudos.visible(k)},w.expr.pseudos.visible=function(k){return!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Fle={0:200,1223:204},Y0=w.ajaxSettings.xhr();y.cors=!!Y0&&"withCredentials"in Y0,y.ajax=Y0=!!Y0,w.ajaxTransport(function(k){var A,P;if(y.cors||Y0&&!k.crossDomain)return{send:function(D,q){var J,oe=k.xhr();if(oe.open(k.type,k.url,k.async,k.username,k.password),k.xhrFields)for(J in k.xhrFields)oe[J]=k.xhrFields[J];k.mimeType&&oe.overrideMimeType&&oe.overrideMimeType(k.mimeType),!k.crossDomain&&!D["X-Requested-With"]&&(D["X-Requested-With"]="XMLHttpRequest");for(J in D)oe.setRequestHeader(J,D[J]);A=function(Re){return function(){A&&(A=P=oe.onload=oe.onerror=oe.onabort=oe.ontimeout=oe.onreadystatechange=null,Re==="abort"?oe.abort():Re==="error"?typeof oe.status!="number"?q(0,"error"):q(oe.status,oe.statusText):q(Fle[oe.status]||oe.status,oe.statusText,(oe.responseType||"text")!=="text"||typeof oe.responseText!="string"?{binary:oe.response}:{text:oe.responseText},oe.getAllResponseHeaders()))}},oe.onload=A(),P=oe.onerror=oe.ontimeout=A("error"),oe.onabort!==void 0?oe.onabort=P:oe.onreadystatechange=function(){oe.readyState===4&&t.setTimeout(function(){A&&P()})},A=A("abort");try{oe.send(k.hasContent&&k.data||null)}catch(Re){if(A)throw Re}},abort:function(){A&&A()}}}),w.ajaxPrefilter(function(k){k.crossDomain&&(k.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(k){return w.globalEval(k),k}}}),w.ajaxPrefilter("script",function(k){k.cache===void 0&&(k.cache=!1),k.crossDomain&&(k.type="GET")}),w.ajaxTransport("script",function(k){if(k.crossDomain||k.scriptAttrs){var A,P;return{send:function(D,q){A=w("<script>").attr(k.scriptAttrs||{}).prop({charset:k.scriptCharset,src:k.url}).on("load error",P=function(J){A.remove(),P=null,J&&q(J.type==="error"?404:200,J.type)}),x.head.appendChild(A[0])},abort:function(){P&&P()}}}});var DF=[],sA=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var k=DF.pop()||w.expando+"_"+IF.guid++;return this[k]=!0,k}}),w.ajaxPrefilter("json jsonp",function(k,A,P){var D,q,J,oe=k.jsonp!==!1&&(sA.test(k.url)?"url":typeof k.data=="string"&&(k.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&sA.test(k.data)&&"data");if(oe||k.dataTypes[0]==="jsonp")return D=k.jsonpCallback=v(k.jsonpCallback)?k.jsonpCallback():k.jsonpCallback,oe?k[oe]=k[oe].replace(sA,"$1"+D):k.jsonp!==!1&&(k.url+=(tA.test(k.url)?"&":"?")+k.jsonp+"="+D),k.converters["script json"]=function(){return J||w.error(D+" was not called"),J[0]},k.dataTypes[0]="json",q=t[D],t[D]=function(){J=arguments},P.always(function(){q===void 0?w(t).removeProp(D):t[D]=q,k[D]&&(k.jsonpCallback=A.jsonpCallback,DF.push(D)),J&&v(q)&&q(J[0]),J=q=void 0}),"script"}),y.createHTMLDocument=function(){var k=x.implementation.createHTMLDocument("").body;return k.innerHTML="<form></form><form></form>",k.childNodes.length===2}(),w.parseHTML=function(k,A,P){if(typeof k!="string")return[];typeof A=="boolean"&&(P=A,A=!1);var D,q,J;return A||(y.createHTMLDocument?(A=x.implementation.createHTMLDocument(""),D=A.createElement("base"),D.href=x.location.href,A.head.appendChild(D)):A=x),q=j.exec(k),J=!P&&[],q?[A.createElement(q[1])]:(q=Kr([k],A,J),J&&J.length&&w(J).remove(),w.merge([],q.childNodes))},w.fn.load=function(k,A,P){var D,q,J,oe=this,Re=k.indexOf(" ");return Re>-1&&(D=Jh(k.slice(Re)),k=k.slice(0,Re)),v(A)?(P=A,A=void 0):A&&typeof A=="object"&&(q="POST"),oe.length>0&&w.ajax({url:k,type:q||"GET",dataType:"html",data:A}).done(function(Ee){J=arguments,oe.html(D?w("<div>").append(w.parseHTML(Ee)).find(D):Ee)}).always(P&&function(Ee,Ke){oe.each(function(){P.apply(this,J||[Ee.responseText,Ke,Ee])})}),this},w.expr.pseudos.animated=function(k){return w.grep(w.timers,function(A){return k===A.elem}).length},w.offset={setOffset:function(k,A,P){var D,q,J,oe,Re,Ee,Ke,lt=w.css(k,"position"),Pt=w(k),nt={};lt==="static"&&(k.style.position="relative"),Re=Pt.offset(),J=w.css(k,"top"),Ee=w.css(k,"left"),Ke=(lt==="absolute"||lt==="fixed")&&(J+Ee).indexOf("auto")>-1,Ke?(D=Pt.position(),oe=D.top,q=D.left):(oe=parseFloat(J)||0,q=parseFloat(Ee)||0),v(A)&&(A=A.call(k,P,w.extend({},Re))),A.top!=null&&(nt.top=A.top-Re.top+oe),A.left!=null&&(nt.left=A.left-Re.left+q),"using"in A?A.using.call(k,nt):Pt.css(nt)}},w.fn.extend({offset:function(k){if(arguments.length)return k===void 0?this:this.each(function(q){w.offset.setOffset(this,k,q)});var A,P,D=this[0];if(!!D)return D.getClientRects().length?(A=D.getBoundingClientRect(),P=D.ownerDocument.defaultView,{top:A.top+P.pageYOffset,left:A.left+P.pageXOffset}):{top:0,left:0}},position:function(){if(!!this[0]){var k,A,P,D=this[0],q={top:0,left:0};if(w.css(D,"position")==="fixed")A=D.getBoundingClientRect();else{for(A=this.offset(),P=D.ownerDocument,k=D.offsetParent||P.documentElement;k&&(k===P.body||k===P.documentElement)&&w.css(k,"position")==="static";)k=k.parentNode;k&&k!==D&&k.nodeType===1&&(q=w(k).offset(),q.top+=w.css(k,"borderTopWidth",!0),q.left+=w.css(k,"borderLeftWidth",!0))}return{top:A.top-q.top-w.css(D,"marginTop",!0),left:A.left-q.left-w.css(D,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var k=this.offsetParent;k&&w.css(k,"position")==="static";)k=k.offsetParent;return k||gt})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(k,A){var P=A==="pageYOffset";w.fn[k]=function(D){return he(this,function(q,J,oe){var Re;if(_(q)?Re=q:q.nodeType===9&&(Re=q.defaultView),oe===void 0)return Re?Re[A]:q[J];Re?Re.scrollTo(P?Re.pageXOffset:oe,P?oe:Re.pageYOffset):q[J]=oe},k,D,arguments.length)}}),w.each(["top","left"],function(k,A){w.cssHooks[A]=Or(y.pixelPosition,function(P,D){if(D)return D=Bd(P,A),tr.test(D)?w(P).position()[A]+"px":D})}),w.each({Height:"height",Width:"width"},function(k,A){w.each({padding:"inner"+k,content:A,"":"outer"+k},function(P,D){w.fn[D]=function(q,J){var oe=arguments.length&&(P||typeof q!="boolean"),Re=P||(q===!0||J===!0?"margin":"border");return he(this,function(Ee,Ke,lt){var Pt;return _(Ee)?D.indexOf("outer")===0?Ee["inner"+k]:Ee.document.documentElement["client"+k]:Ee.nodeType===9?(Pt=Ee.documentElement,Math.max(Ee.body["scroll"+k],Pt["scroll"+k],Ee.body["offset"+k],Pt["offset"+k],Pt["client"+k])):lt===void 0?w.css(Ee,Ke,Re):w.style(Ee,Ke,lt,Re)},A,oe?q:void 0,oe)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(k,A){w.fn[A]=function(P){return this.on(A,P)}}),w.fn.extend({bind:function(k,A,P){return this.on(k,null,A,P)},unbind:function(k,A){return this.off(k,null,A)},delegate:function(k,A,P,D){return this.on(A,k,P,D)},undelegate:function(k,A,P){return arguments.length===1?this.off(k,"**"):this.off(A,k||"**",P)},hover:function(k,A){return this.mouseenter(k).mouseleave(A||k)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(k,A){w.fn[A]=function(P,D){return arguments.length>0?this.on(A,null,P,D):this.trigger(A)}});var zle=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(k,A){var P,D,q;if(typeof A=="string"&&(P=k[A],A=k,k=P),!!v(k))return D=o.call(arguments,2),q=function(){return k.apply(A||this,D.concat(o.call(arguments)))},q.guid=k.guid=k.guid||w.guid++,q},w.holdReady=function(k){k?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=z,w.isFunction=v,w.isWindow=_,w.camelCase=pe,w.type=E,w.now=Date.now,w.isNumeric=function(k){var A=w.type(k);return(A==="number"||A==="string")&&!isNaN(k-parseFloat(k))},w.trim=function(k){return k==null?"":(k+"").replace(zle,"$1")};var jle=t.jQuery,Vle=t.$;return w.noConflict=function(k){return t.$===w&&(t.$=Vle),k&&t.jQuery===w&&(t.jQuery=jle),w},typeof r=="undefined"&&(t.jQuery=t.$=w),w})})(TQ);var xze=TQ.exports,vs=63710088e-1,AQ={centimeters:vs*100,centimetres:vs*100,degrees:vs/111325,feet:vs*3.28084,inches:vs*39.37,kilometers:vs/1e3,kilometres:vs/1e3,meters:vs,metres:vs,miles:vs/1609.344,millimeters:vs*1e3,millimetres:vs*1e3,nauticalmiles:vs/1852,radians:1,yards:vs*1.0936};function MQ(e,t,r){r===void 0&&(r={});var i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Is(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!d$(e[0])||!d$(e[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:e};return MQ(i,t,r)}function IQ(e,t,r){r===void 0&&(r={});for(var i=0,n=e;i<n.length;i++){var o=n[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:e};return MQ(l,t,r)}function Cze(e,t){t===void 0&&(t="kilometers");var r=AQ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function kze(e,t){t===void 0&&(t="kilometers");var r=AQ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function u$(e){var t=e%(2*Math.PI);return t*180/Math.PI}function Qa(e){var t=e%360;return t*Math.PI/180}function d$(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Q1(e,t,r){if(e!==null)for(var i,n,o,s,l,a,c,u=0,p=0,h,m=e.type,y=m==="FeatureCollection",v=m==="Feature",_=y?e.features.length:1,x=0;x<_;x++){c=y?e.features[x].geometry:v?e.geometry:e,h=c?c.type==="GeometryCollection":!1,l=h?c.geometries.length:1;for(var S=0;S<l;S++){var C=0,E=0;if(s=h?c.geometries[S]:c,s!==null){a=s.coordinates;var T=s.type;switch(u=r&&(T==="Polygon"||T==="MultiPolygon")?1:0,T){case null:break;case"Point":if(t(a,p,x,C,E)===!1)return!1;p++,C++;break;case"LineString":case"MultiPoint":for(i=0;i<a.length;i++){if(t(a[i],p,x,C,E)===!1)return!1;p++,T==="MultiPoint"&&C++}T==="LineString"&&C++;break;case"Polygon":case"MultiLineString":for(i=0;i<a.length;i++){for(n=0;n<a[i].length-u;n++){if(t(a[i][n],p,x,C,E)===!1)return!1;p++}T==="MultiLineString"&&C++,T==="Polygon"&&E++}T==="Polygon"&&C++;break;case"MultiPolygon":for(i=0;i<a.length;i++){for(E=0,n=0;n<a[i].length;n++){for(o=0;o<a[i][n].length-u;o++){if(t(a[i][n][o],p,x,C,E)===!1)return!1;p++}E++}C++}break;case"GeometryCollection":for(i=0;i<s.geometries.length;i++)if(Q1(s.geometries[i],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Bv(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Sze(e,t){return e.type==="FeatureCollection"?"FeatureCollection":e.type==="GeometryCollection"?"GeometryCollection":e.type==="Feature"&&e.geometry!==null?e.geometry.type:e.type}var D4={exports:{}},PQ={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(da,function(){function r(S,C,E,T,w){(function I(M,L,R,W,z){for(;W>R;){if(W-R>600){var j=W-R+1,U=L-R+1,Z=Math.log(j),Q=.5*Math.exp(2*Z/3),B=.5*Math.sqrt(Z*Q*(j-Q)/j)*(U-j/2<0?-1:1),V=Math.max(R,Math.floor(L-U*Q/j+B)),H=Math.min(W,Math.floor(L+(j-U)*Q/j+B));I(M,L,V,H,z)}var ee=M[L],ce=R,re=W;for(i(M,R,L),z(M[W],ee)>0&&i(M,R,W);ce<re;){for(i(M,ce,re),ce++,re--;z(M[ce],ee)<0;)ce++;for(;z(M[re],ee)>0;)re--}z(M[R],ee)===0?i(M,R,re):i(M,++re,W),re<=L&&(R=re+1),L<=re&&(W=re-1)}})(S,C,E||0,T||S.length-1,w||n)}function i(S,C,E){var T=S[C];S[C]=S[E],S[E]=T}function n(S,C){return S<C?-1:S>C?1:0}var o=function(S){S===void 0&&(S=9),this._maxEntries=Math.max(4,S),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(S,C,E){if(!E)return C.indexOf(S);for(var T=0;T<C.length;T++)if(E(S,C[T]))return T;return-1}function l(S,C){a(S,0,S.children.length,C,S)}function a(S,C,E,T,w){w||(w=_(null)),w.minX=1/0,w.minY=1/0,w.maxX=-1/0,w.maxY=-1/0;for(var I=C;I<E;I++){var M=S.children[I];c(w,S.leaf?T(M):M)}return w}function c(S,C){return S.minX=Math.min(S.minX,C.minX),S.minY=Math.min(S.minY,C.minY),S.maxX=Math.max(S.maxX,C.maxX),S.maxY=Math.max(S.maxY,C.maxY),S}function u(S,C){return S.minX-C.minX}function p(S,C){return S.minY-C.minY}function h(S){return(S.maxX-S.minX)*(S.maxY-S.minY)}function m(S){return S.maxX-S.minX+(S.maxY-S.minY)}function y(S,C){return S.minX<=C.minX&&S.minY<=C.minY&&C.maxX<=S.maxX&&C.maxY<=S.maxY}function v(S,C){return C.minX<=S.maxX&&C.minY<=S.maxY&&C.maxX>=S.minX&&C.maxY>=S.minY}function _(S){return{children:S,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(S,C,E,T,w){for(var I=[C,E];I.length;)if(!((E=I.pop())-(C=I.pop())<=T)){var M=C+Math.ceil((E-C)/T/2)*T;r(S,M,C,E,w),I.push(C,M,M,E)}}return o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(S){var C=this.data,E=[];if(!v(S,C))return E;for(var T=this.toBBox,w=[];C;){for(var I=0;I<C.children.length;I++){var M=C.children[I],L=C.leaf?T(M):M;v(S,L)&&(C.leaf?E.push(M):y(S,L)?this._all(M,E):w.push(M))}C=w.pop()}return E},o.prototype.collides=function(S){var C=this.data;if(!v(S,C))return!1;for(var E=[];C;){for(var T=0;T<C.children.length;T++){var w=C.children[T],I=C.leaf?this.toBBox(w):w;if(v(S,I)){if(C.leaf||y(S,I))return!0;E.push(w)}}C=E.pop()}return!1},o.prototype.load=function(S){if(!S||!S.length)return this;if(S.length<this._minEntries){for(var C=0;C<S.length;C++)this.insert(S[C]);return this}var E=this._build(S.slice(),0,S.length-1,0);if(this.data.children.length)if(this.data.height===E.height)this._splitRoot(this.data,E);else{if(this.data.height<E.height){var T=this.data;this.data=E,E=T}this._insert(E,this.data.height-E.height-1,!0)}else this.data=E;return this},o.prototype.insert=function(S){return S&&this._insert(S,this.data.height-1),this},o.prototype.clear=function(){return this.data=_([]),this},o.prototype.remove=function(S,C){if(!S)return this;for(var E,T,w,I=this.data,M=this.toBBox(S),L=[],R=[];I||L.length;){if(I||(I=L.pop(),T=L[L.length-1],E=R.pop(),w=!0),I.leaf){var W=s(S,I.children,C);if(W!==-1)return I.children.splice(W,1),L.push(I),this._condense(L),this}w||I.leaf||!y(I,M)?T?(E++,I=T.children[E],w=!1):I=null:(L.push(I),R.push(E),E=0,T=I,I=I.children[0])}return this},o.prototype.toBBox=function(S){return S},o.prototype.compareMinX=function(S,C){return S.minX-C.minX},o.prototype.compareMinY=function(S,C){return S.minY-C.minY},o.prototype.toJSON=function(){return this.data},o.prototype.fromJSON=function(S){return this.data=S,this},o.prototype._all=function(S,C){for(var E=[];S;)S.leaf?C.push.apply(C,S.children):E.push.apply(E,S.children),S=E.pop();return C},o.prototype._build=function(S,C,E,T){var w,I=E-C+1,M=this._maxEntries;if(I<=M)return l(w=_(S.slice(C,E+1)),this.toBBox),w;T||(T=Math.ceil(Math.log(I)/Math.log(M)),M=Math.ceil(I/Math.pow(M,T-1))),(w=_([])).leaf=!1,w.height=T;var L=Math.ceil(I/M),R=L*Math.ceil(Math.sqrt(M));x(S,C,E,R,this.compareMinX);for(var W=C;W<=E;W+=R){var z=Math.min(W+R-1,E);x(S,W,z,L,this.compareMinY);for(var j=W;j<=z;j+=L){var U=Math.min(j+L-1,z);w.children.push(this._build(S,j,U,T-1))}}return l(w,this.toBBox),w},o.prototype._chooseSubtree=function(S,C,E,T){for(;T.push(C),!C.leaf&&T.length-1!==E;){for(var w=1/0,I=1/0,M=void 0,L=0;L<C.children.length;L++){var R=C.children[L],W=h(R),z=(j=S,U=R,(Math.max(U.maxX,j.maxX)-Math.min(U.minX,j.minX))*(Math.max(U.maxY,j.maxY)-Math.min(U.minY,j.minY))-W);z<I?(I=z,w=W<w?W:w,M=R):z===I&&W<w&&(w=W,M=R)}C=M||C.children[0]}var j,U;return C},o.prototype._insert=function(S,C,E){var T=E?S:this.toBBox(S),w=[],I=this._chooseSubtree(T,this.data,C,w);for(I.children.push(S),c(I,T);C>=0&&w[C].children.length>this._maxEntries;)this._split(w,C),C--;this._adjustParentBBoxes(T,w,C)},o.prototype._split=function(S,C){var E=S[C],T=E.children.length,w=this._minEntries;this._chooseSplitAxis(E,w,T);var I=this._chooseSplitIndex(E,w,T),M=_(E.children.splice(I,E.children.length-I));M.height=E.height,M.leaf=E.leaf,l(E,this.toBBox),l(M,this.toBBox),C?S[C-1].children.push(M):this._splitRoot(E,M)},o.prototype._splitRoot=function(S,C){this.data=_([S,C]),this.data.height=S.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(S,C,E){for(var T,w,I,M,L,R,W,z=1/0,j=1/0,U=C;U<=E-C;U++){var Z=a(S,0,U,this.toBBox),Q=a(S,U,E,this.toBBox),B=(w=Z,I=Q,M=void 0,L=void 0,R=void 0,W=void 0,M=Math.max(w.minX,I.minX),L=Math.max(w.minY,I.minY),R=Math.min(w.maxX,I.maxX),W=Math.min(w.maxY,I.maxY),Math.max(0,R-M)*Math.max(0,W-L)),V=h(Z)+h(Q);B<z?(z=B,T=U,j=V<j?V:j):B===z&&V<j&&(j=V,T=U)}return T||E-C},o.prototype._chooseSplitAxis=function(S,C,E){var T=S.leaf?this.compareMinX:u,w=S.leaf?this.compareMinY:p;this._allDistMargin(S,C,E,T)<this._allDistMargin(S,C,E,w)&&S.children.sort(T)},o.prototype._allDistMargin=function(S,C,E,T){S.children.sort(T);for(var w=this.toBBox,I=a(S,0,C,w),M=a(S,E-C,E,w),L=m(I)+m(M),R=C;R<E-C;R++){var W=S.children[R];c(I,S.leaf?w(W):W),L+=m(I)}for(var z=E-C-1;z>=C;z--){var j=S.children[z];c(M,S.leaf?w(j):j),L+=m(M)}return L},o.prototype._adjustParentBBoxes=function(S,C,E){for(var T=E;T>=0;T--)c(C[T],S)},o.prototype._condense=function(S){for(var C=S.length-1,E=void 0;C>=0;C--)S[C].children.length===0?C>0?(E=S[C-1].children).splice(E.indexOf(S[C]),1):this.clear():l(S[C],this.toBBox)},o})})(PQ);class Eze{constructor(t=[],r=Tze){if(this.data=t,this.length=this.data.length,this.compare=r,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const t=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:r,compare:i}=this,n=r[t];for(;t>0;){const o=t-1>>1,s=r[o];if(i(n,s)>=0)break;r[t]=s,t=o}r[t]=n}_down(t){const{data:r,compare:i}=this,n=this.length>>1,o=r[t];for(;t<n;){let s=(t<<1)+1,l=r[s];const a=s+1;if(a<this.length&&i(r[a],l)<0&&(s=a,l=r[a]),i(l,o)>=0)break;r[t]=l,t=s}r[t]=o}}function Tze(e,t){return e<t?-1:e>t?1:0}var Aze=Object.freeze(Object.defineProperty({__proto__:null,default:Eze},Symbol.toStringTag,{value:"Module"})),Mze=DSe(Aze),T3={exports:{}},Ize=function(t,r,i,n){var o=t[0],s=t[1],l=!1;i===void 0&&(i=0),n===void 0&&(n=r.length);for(var a=(n-i)/2,c=0,u=a-1;c<a;u=c++){var p=r[i+c*2+0],h=r[i+c*2+1],m=r[i+u*2+0],y=r[i+u*2+1],v=h>s!=y>s&&o<(m-p)*(s-h)/(y-h)+p;v&&(l=!l)}return l},Pze=function(t,r,i,n){var o=t[0],s=t[1],l=!1;i===void 0&&(i=0),n===void 0&&(n=r.length);for(var a=n-i,c=0,u=a-1;c<a;u=c++){var p=r[c+i][0],h=r[c+i][1],m=r[u+i][0],y=r[u+i][1],v=h>s!=y>s&&o<(m-p)*(s-h)/(y-h)+p;v&&(l=!l)}return l},$Q=Ize,OQ=Pze;T3.exports=function(t,r,i,n){return r.length>0&&Array.isArray(r[0])?OQ(t,r,i,n):$Q(t,r,i,n)};T3.exports.nested=OQ;T3.exports.flat=$Q;var p$={exports:{}};(function(e,t){(function(r,i){i(t)})(da,function(r){const n=33306690738754706e-32;function o(v,_,x,S,C){let E,T,w,I,M=_[0],L=S[0],R=0,W=0;L>M==L>-M?(E=M,M=_[++R]):(E=L,L=S[++W]);let z=0;if(R<v&&W<x)for(L>M==L>-M?(w=E-((T=M+E)-M),M=_[++R]):(w=E-((T=L+E)-L),L=S[++W]),E=T,w!==0&&(C[z++]=w);R<v&&W<x;)L>M==L>-M?(w=E-((T=E+M)-(I=T-E))+(M-I),M=_[++R]):(w=E-((T=E+L)-(I=T-E))+(L-I),L=S[++W]),E=T,w!==0&&(C[z++]=w);for(;R<v;)w=E-((T=E+M)-(I=T-E))+(M-I),M=_[++R],E=T,w!==0&&(C[z++]=w);for(;W<x;)w=E-((T=E+L)-(I=T-E))+(L-I),L=S[++W],E=T,w!==0&&(C[z++]=w);return E===0&&z!==0||(C[z++]=E),z}function s(v){return new Float64Array(v)}const l=33306690738754716e-32,a=22204460492503146e-32,c=11093356479670487e-47,u=s(4),p=s(8),h=s(12),m=s(16),y=s(4);r.orient2d=function(v,_,x,S,C,E){const T=(_-E)*(x-C),w=(v-C)*(S-E),I=T-w;if(T===0||w===0||T>0!=w>0)return I;const M=Math.abs(T+w);return Math.abs(I)>=l*M?I:-function(L,R,W,z,j,U,Z){let Q,B,V,H,ee,ce,re,fe,Ne,de,_e,ae,X,he,$e,Je,ne,pe;const ge=L-j,Se=W-j,xe=R-U,be=z-U;ee=($e=(fe=ge-(re=(ce=134217729*ge)-(ce-ge)))*(de=be-(Ne=(ce=134217729*be)-(ce-be)))-((he=ge*be)-re*Ne-fe*Ne-re*de))-(_e=$e-(ne=(fe=xe-(re=(ce=134217729*xe)-(ce-xe)))*(de=Se-(Ne=(ce=134217729*Se)-(ce-Se)))-((Je=xe*Se)-re*Ne-fe*Ne-re*de))),u[0]=$e-(_e+ee)+(ee-ne),ee=(X=he-((ae=he+_e)-(ee=ae-he))+(_e-ee))-(_e=X-Je),u[1]=X-(_e+ee)+(ee-Je),ee=(pe=ae+_e)-ae,u[2]=ae-(pe-ee)+(_e-ee),u[3]=pe;let Qe=function(Xe,dt){let gt=dt[0];for(let Dt=1;Dt<Xe;Dt++)gt+=dt[Dt];return gt}(4,u),Fe=a*Z;if(Qe>=Fe||-Qe>=Fe||(Q=L-(ge+(ee=L-ge))+(ee-j),V=W-(Se+(ee=W-Se))+(ee-j),B=R-(xe+(ee=R-xe))+(ee-U),H=z-(be+(ee=z-be))+(ee-U),Q===0&&B===0&&V===0&&H===0)||(Fe=c*Z+n*Math.abs(Qe),(Qe+=ge*H+be*Q-(xe*V+Se*B))>=Fe||-Qe>=Fe))return Qe;ee=($e=(fe=Q-(re=(ce=134217729*Q)-(ce-Q)))*(de=be-(Ne=(ce=134217729*be)-(ce-be)))-((he=Q*be)-re*Ne-fe*Ne-re*de))-(_e=$e-(ne=(fe=B-(re=(ce=134217729*B)-(ce-B)))*(de=Se-(Ne=(ce=134217729*Se)-(ce-Se)))-((Je=B*Se)-re*Ne-fe*Ne-re*de))),y[0]=$e-(_e+ee)+(ee-ne),ee=(X=he-((ae=he+_e)-(ee=ae-he))+(_e-ee))-(_e=X-Je),y[1]=X-(_e+ee)+(ee-Je),ee=(pe=ae+_e)-ae,y[2]=ae-(pe-ee)+(_e-ee),y[3]=pe;const Me=o(4,u,4,y,p);ee=($e=(fe=ge-(re=(ce=134217729*ge)-(ce-ge)))*(de=H-(Ne=(ce=134217729*H)-(ce-H)))-((he=ge*H)-re*Ne-fe*Ne-re*de))-(_e=$e-(ne=(fe=xe-(re=(ce=134217729*xe)-(ce-xe)))*(de=V-(Ne=(ce=134217729*V)-(ce-V)))-((Je=xe*V)-re*Ne-fe*Ne-re*de))),y[0]=$e-(_e+ee)+(ee-ne),ee=(X=he-((ae=he+_e)-(ee=ae-he))+(_e-ee))-(_e=X-Je),y[1]=X-(_e+ee)+(ee-Je),ee=(pe=ae+_e)-ae,y[2]=ae-(pe-ee)+(_e-ee),y[3]=pe;const Ie=o(Me,p,4,y,h);ee=($e=(fe=Q-(re=(ce=134217729*Q)-(ce-Q)))*(de=H-(Ne=(ce=134217729*H)-(ce-H)))-((he=Q*H)-re*Ne-fe*Ne-re*de))-(_e=$e-(ne=(fe=B-(re=(ce=134217729*B)-(ce-B)))*(de=V-(Ne=(ce=134217729*V)-(ce-V)))-((Je=B*V)-re*Ne-fe*Ne-re*de))),y[0]=$e-(_e+ee)+(ee-ne),ee=(X=he-((ae=he+_e)-(ee=ae-he))+(_e-ee))-(_e=X-Je),y[1]=X-(_e+ee)+(ee-Je),ee=(pe=ae+_e)-ae,y[2]=ae-(pe-ee)+(_e-ee),y[3]=pe;const Pe=o(Ie,h,4,y,m);return m[Pe-1]}(v,_,x,S,C,E,M)},r.orient2dfast=function(v,_,x,S,C,E){return(_-E)*(x-C)-(v-C)*(S-E)},Object.defineProperty(r,"__esModule",{value:!0})})})(p$,p$.exports);var CV=PQ.exports,NC=Mze,$ze=T3.exports,Oze=p$.exports.orient2d;NC.default&&(NC=NC.default);D4.exports=LQ;D4.exports.default=LQ;function LQ(e,t,r){t=Math.max(0,t===void 0?2:t),r=r||0;var i=Fze(e),n=new CV(16);n.toBBox=function(S){return{minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]}},n.compareMinX=function(S,C){return S[0]-C[0]},n.compareMinY=function(S,C){return S[1]-C[1]},n.load(e);for(var o=[],s=0,l;s<i.length;s++){var a=i[s];n.remove(a),l=EV(a,l),o.push(l)}var c=new CV(16);for(s=0;s<o.length;s++)c.insert(XA(o[s]));for(var u=t*t,p=r*r;o.length;){var h=o.shift(),m=h.p,y=h.next.p,v=eM(m,y);if(!(v<p)){var _=v/u;a=Lze(n,h.prev.p,m,y,h.next.next.p,_,c),a&&Math.min(eM(a,m),eM(a,y))<=_&&(o.push(h),o.push(EV(a,h)),n.remove(a),c.remove(h),c.insert(XA(h)),c.insert(XA(h.next)))}}h=l;var x=[];do x.push(h.p),h=h.next;while(h!==l);return x.push(h.p),x}function Lze(e,t,r,i,n,o,s){for(var l=new NC([],Rze),a=e.data;a;){for(var c=0;c<a.children.length;c++){var u=a.children[c],p=a.leaf?tM(u,r,i):Dze(r,i,u);p>o||l.push({node:u,dist:p})}for(;l.length&&!l.peek().node.children;){var h=l.pop(),m=h.node,y=tM(m,t,r),v=tM(m,i,n);if(h.dist<y&&h.dist<v&&SV(r,m,s)&&SV(i,m,s))return m}a=l.pop(),a&&(a=a.node)}return null}function Rze(e,t){return e.dist-t.dist}function Dze(e,t,r){if(kV(e,r)||kV(t,r))return 0;var i=h2(e[0],e[1],t[0],t[1],r.minX,r.minY,r.maxX,r.minY);if(i===0)return 0;var n=h2(e[0],e[1],t[0],t[1],r.minX,r.minY,r.minX,r.maxY);if(n===0)return 0;var o=h2(e[0],e[1],t[0],t[1],r.maxX,r.minY,r.maxX,r.maxY);if(o===0)return 0;var s=h2(e[0],e[1],t[0],t[1],r.minX,r.maxY,r.maxX,r.maxY);return s===0?0:Math.min(i,n,o,s)}function kV(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function SV(e,t,r){for(var i=Math.min(e[0],t[0]),n=Math.min(e[1],t[1]),o=Math.max(e[0],t[0]),s=Math.max(e[1],t[1]),l=r.search({minX:i,minY:n,maxX:o,maxY:s}),a=0;a<l.length;a++)if(Nze(l[a].p,l[a].next.p,e,t))return!1;return!0}function Uy(e,t,r){return Oze(e[0],e[1],t[0],t[1],r[0],r[1])}function Nze(e,t,r,i){return e!==i&&t!==r&&Uy(e,t,r)>0!=Uy(e,t,i)>0&&Uy(r,i,e)>0!=Uy(r,i,t)>0}function XA(e){var t=e.p,r=e.next.p;return e.minX=Math.min(t[0],r[0]),e.minY=Math.min(t[1],r[1]),e.maxX=Math.max(t[0],r[0]),e.maxY=Math.max(t[1],r[1]),e}function Fze(e){for(var t=e[0],r=e[0],i=e[0],n=e[0],o=0;o<e.length;o++){var s=e[o];s[0]<t[0]&&(t=s),s[0]>i[0]&&(i=s),s[1]<r[1]&&(r=s),s[1]>n[1]&&(n=s)}var l=[t,r,i,n],a=l.slice();for(o=0;o<e.length;o++)$ze(e[o],l)||a.push(e[o]);return jze(a)}function EV(e,t){var r={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(r.next=t.next,r.prev=t,t.next.prev=r,t.next=r):(r.prev=r,r.next=r),r}function eM(e,t){var r=e[0]-t[0],i=e[1]-t[1];return r*r+i*i}function tM(e,t,r){var i=t[0],n=t[1],o=r[0]-i,s=r[1]-n;if(o!==0||s!==0){var l=((e[0]-i)*o+(e[1]-n)*s)/(o*o+s*s);l>1?(i=r[0],n=r[1]):l>0&&(i+=o*l,n+=s*l)}return o=e[0]-i,s=e[1]-n,o*o+s*s}function h2(e,t,r,i,n,o,s,l){var a=r-e,c=i-t,u=s-n,p=l-o,h=e-n,m=t-o,y=a*a+c*c,v=a*u+c*p,_=u*u+p*p,x=a*h+c*m,S=u*h+p*m,C=y*_-v*v,E,T,w,I,M=C,L=C;C===0?(T=0,M=1,I=S,L=_):(T=v*S-_*x,I=y*S-v*x,T<0?(T=0,I=S,L=_):T>M&&(T=M,I=S+v,L=_)),I<0?(I=0,-x<0?T=0:-x>y?T=M:(T=-x,M=y)):I>L&&(I=L,-x+v<0?T=0:-x+v>y?T=M:(T=-x+v,M=y)),E=T===0?0:T/M,w=I===0?0:I/L;var R=(1-E)*e+E*r,W=(1-E)*t+E*i,z=(1-w)*n+w*s,j=(1-w)*o+w*l,U=z-R,Z=j-W;return U*U+Z*Z}function zze(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}function jze(e){e.sort(zze);for(var t=[],r=0;r<e.length;r++){for(;t.length>=2&&Uy(t[t.length-2],t[t.length-1],e[r])<=0;)t.pop();t.push(e[r])}for(var i=[],n=e.length-1;n>=0;n--){for(;i.length>=2&&Uy(i[i.length-2],i[i.length-1],e[n])<=0;)i.pop();i.push(e[n])}return i.pop(),t.pop(),t.concat(i)}var Vze=D4.exports;function Bze(e,t){t===void 0&&(t={}),t.concavity=t.concavity||1/0;var r=[];if(Q1(e,function(n){r.push([n[0],n[1]])}),!r.length)return null;var i=Vze(r,t.concavity);return i.length>3?IQ([i]):null}function RQ(e,t,r){r===void 0&&(r={});var i=Bv(e),n=Bv(t),o=Qa(n[1]-i[1]),s=Qa(n[0]-i[0]),l=Qa(i[1]),a=Qa(n[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(l)*Math.cos(a);return Cze(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),r.units)}function Uze(e){if(!e)throw new Error("geojson is required");switch(e.type){case"Feature":return DQ(e);case"FeatureCollection":return Wze(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return N4(e);default:throw new Error("unknown GeoJSON type")}}function DQ(e){var t={type:"Feature"};return Object.keys(e).forEach(function(r){switch(r){case"type":case"properties":case"geometry":return;default:t[r]=e[r]}}),t.properties=NQ(e.properties),t.geometry=N4(e.geometry),t}function NQ(e){var t={};return e&&Object.keys(e).forEach(function(r){var i=e[r];typeof i=="object"?i===null?t[r]=null:Array.isArray(i)?t[r]=i.map(function(n){return n}):t[r]=NQ(i):t[r]=i}),t}function Wze(e){var t={type:"FeatureCollection"};return Object.keys(e).forEach(function(r){switch(r){case"type":case"features":return;default:t[r]=e[r]}}),t.features=e.features.map(function(r){return DQ(r)}),t}function N4(e){var t={type:e.type};return e.bbox&&(t.bbox=e.bbox),e.type==="GeometryCollection"?(t.geometries=e.geometries.map(function(r){return N4(r)}),t):(t.coordinates=FQ(e.coordinates),t)}function FQ(e){var t=e;return typeof t[0]!="object"?t.slice():t.map(function(r){return FQ(r)})}function h$(e,t,r,i){i===void 0&&(i={});var n=Bv(e),o=Qa(n[0]),s=Qa(n[1]),l=Qa(r),a=kze(t,i.units),c=Math.asin(Math.sin(s)*Math.cos(a)+Math.cos(s)*Math.sin(a)*Math.cos(l)),u=o+Math.atan2(Math.sin(l)*Math.sin(a)*Math.cos(s),Math.cos(a)-Math.sin(s)*Math.sin(c)),p=u$(u),h=u$(c);return Is([p,h],i.properties)}function F4(e,t,r){if(r===void 0&&(r={}),r.final===!0)return Hze(e,t);var i=Bv(e),n=Bv(t),o=Qa(i[0]),s=Qa(n[0]),l=Qa(i[1]),a=Qa(n[1]),c=Math.sin(s-o)*Math.cos(a),u=Math.cos(l)*Math.sin(a)-Math.sin(l)*Math.cos(a)*Math.cos(s-o);return u$(Math.atan2(c,u))}function Hze(e,t){var r=F4(t,e);return r=(r+180)%360,r}function TV(e,t){var r=RQ(e,t),i=F4(e,t),n=h$(e,r/2,i);return n}function AV(e,t){t===void 0&&(t={});var r=0,i=0,n=0;return Q1(e,function(o){r+=o[0],i+=o[1],n++},!0),Is([r/n,i/n],t.properties)}function zQ(e,t){switch(t===void 0&&(t={}),Sze(e)){case"Point":return Is(Bv(e),t.properties);case"Polygon":var r=[];Q1(e,function(E){r.push(E)});var i=AV(e,{properties:t.properties}),n=i.geometry.coordinates,o=0,s=0,l=0,a,c,u,p,h,m,y,v,_=r.map(function(E){return[E[0]-n[0],E[1]-n[1]]});for(a=0;a<r.length-1;a++)c=_[a],p=c[0],m=c[1],u=_[a+1],h=u[0],y=u[1],v=p*y-h*m,l+=v,o+=(p+h)*v,s+=(m+y)*v;if(l===0)return i;var x=l*.5,S=1/(6*x);return Is([n[0]+S*o,n[1]+S*s],t.properties);default:var C=Bze(e);return C?zQ(C,{properties:t.properties}):AV(e,{properties:t.properties})}}function Gze(e,t){return t===void 0&&(t={}),jQ(e,"mercator",t)}function qze(e,t){return t===void 0&&(t={}),jQ(e,"wgs84",t)}function jQ(e,t,r){r===void 0&&(r={}),r=r||{};var i=r.mutate;if(!e)throw new Error("geojson is required");return Array.isArray(e)&&d$(e[0])?e=t==="mercator"?MV(e):IV(e):(i!==!0&&(e=Uze(e)),Q1(e,function(n){var o=t==="mercator"?MV(n):IV(n);n[0]=o[0],n[1]=o[1]})),e}function MV(e){var t=Math.PI/180,r=6378137,i=20037508342789244e-9,n=Math.abs(e[0])<=180?e[0]:e[0]-Yze(e[0])*360,o=[r*n*t,r*Math.log(Math.tan(Math.PI*.25+.5*e[1]*t))];return o[0]>i&&(o[0]=i),o[0]<-i&&(o[0]=-i),o[1]>i&&(o[1]=i),o[1]<-i&&(o[1]=-i),o}function IV(e){var t=180/Math.PI,r=6378137;return[e[0]*t/r,(Math.PI*.5-2*Math.atan(Math.exp(-e[1]/r)))*t]}function Yze(e){return e<0?-1:e>0?1:0}var Kze=`@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\\5fae\\8f6f\\96c5\\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-affix--fixed{position:fixed}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:13px;--el-alert-description-font-size:12px;--el-alert-close-font-size:12px;--el-alert-close-customed-font-size:13px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);position:relative;background-color:var(--el-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--el-transition-duration-fast)}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:table-cell;padding:0 8px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:18px;vertical-align:text-top}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:5px 0 0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);top:9px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width,300px)}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-autocomplete__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-autocomplete__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-autocomplete-suggestion{border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);list-style:none;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li:hover,.el-autocomplete-suggestion li.highlighted{background-color:var(--el-fill-color-light)}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid var(--el-color-black)}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:var(--el-text-color-secondary)}.el-autocomplete-suggestion.is-loading li:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:var(--el-bg-color-overlay)}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size)}.el-avatar>img{display:block;height:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-calendar{--el-calendar-border:var(--el-table-border, 1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:var(--el-calendar-header-border-bottom)}.el-calendar__title{color:var(--el-text-color);align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:var(--el-text-color-regular);font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);vertical-align:top;transition:background-color var(--el-transition-duration-fast) ease}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;padding:8px;height:var(--el-calendar-cell-width)}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:var(--el-calendar-selected-bg-color)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, .11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, .23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px;color:#000}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader-panel{display:flex;border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:var(--el-cascader-menu-text-color);border-right:var(--el-cascader-menu-border)}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;color:var(--el-cascader-color-empty)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{position:relative;display:flex;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;text-align:left;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-checkbox{margin-right:0}.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;vertical-align:middle;position:relative;font-size:var(--el-font-size-base);line-height:32px;outline:0}.el-cascader:not(.is-disabled):hover .el-input__wrapper{cursor:pointer;box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-cascader .el-input{display:flex;cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis;cursor:pointer}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{transition:transform var(--el-transition-duration);font-size:14px}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotate(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader.is-disabled .el-cascader__label{z-index:calc(var(--el-index-normal) + 1);color:var(--el-disabled-text-color)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader__dropdown{font-size:var(--el-cascader-menu-font-size);border-radius:var(--el-cascader-menu-radius)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill);border:var(--el-cascader-menu-border);box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__dropdown.el-popper .el-popper__arrow:before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-cascader-tag-background)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal)}.el-cascader__collapse-tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-fill-color)}.el-cascader__collapse-tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__collapse-tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:var(--el-font-size-base);color:var(--el-cascader-menu-text-color);text-align:center}.el-cascader__suggestion-item{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:var(--el-cascader-color-empty)}.el-cascader__search-input{flex:1;height:24px;min-width:60px;margin:2px 0 2px 11px;padding:0;color:var(--el-cascader-menu-text-color);border:none;outline:0;box-sizing:border-box;background:0 0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input:-ms-input-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all);font-weight:700}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary)}.el-checkbox-button{position:relative;display:inline-block}.el-checkbox-button__inner{display:inline-block;line-height:1;font-weight:var(--el-checkbox-font-weight);white-space:nowrap;vertical-align:middle;cursor:pointer;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:var(--el-checkbox-button-checked-text-color);background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary)}.el-checkbox{color:var(--el-checkbox-text-color);font-weight:var(--el-checkbox-font-weight);font-size:var(--el-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:30px;height:32px}.el-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-checkbox.is-bordered.el-checkbox--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--el-checkbox-border-radius)}.el-checkbox__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{cursor:not-allowed;border-color:var(--el-checkbox-disabled-icon-color)}.el-checkbox__input.is-disabled .el-checkbox__inner+.el-checkbox__label{cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--el-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;width:var(--el-checkbox-input-width);height:var(--el-checkbox-input-height);background-color:var(--el-checkbox-bg-color);z-index:var(--el-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid var(--el-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in 50ms;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--el-checkbox-font-size)}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{width:14px;height:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{width:12px;height:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{width:2px;height:6px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal;outline:0}.el-color-picker:hover:not(.is-disabled) .el-color-picker__trigger{border:1px solid var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:30px;width:30px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{width:32px;height:30px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td .el-date-table-cell{height:30px;padding:3px 0;box-sizing:border-box}.el-date-table td .el-date-table-cell .el-date-table-cell__text{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;transform:translate(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);opacity:1;cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-date-table td.selected .el-date-table-cell{margin-left:5px;margin-right:5px;background-color:var(--el-datepicker-inrange-bg-color);border-radius:15px}.el-date-table td.selected .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff;border-radius:15px}.el-date-table td.week{font-size:80%;color:var(--el-datepicker-header-text-color)}.el-date-table td:focus{outline:0}.el-date-table th{padding:5px;color:var(--el-datepicker-header-text-color);font-weight:400;border-bottom:solid 1px var(--el-border-color-lighter)}.el-month-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;box-sizing:border-box}.el-month-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#fff}.el-month-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-month-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range div{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range div:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#fff}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-month-table td:focus-visible{outline:0}.el-month-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-year-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-year-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-year-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-year-table td .cell{width:48px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto}.el-year-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-year-table td:focus-visible{outline:0}.el-year-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:192px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{font-size:12px;color:var(--el-text-color-secondary);position:absolute;left:0;width:100%;z-index:var(--el-index-normal);text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner{padding:0;text-align:center}.el-time-spinner__list{padding:0;margin:0;list-style:none;text-align:center}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:var(--el-text-color-regular)}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);position:relative;display:inline-block;text-align:left}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{width:var(--el-date-editor-width);height:var(--el-input-height,var(--el-component-size))}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .close-icon,.el-date-editor .clear-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{height:inherit;font-size:14px;color:var(--el-text-color-placeholder);float:left}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:30px;line-height:30px;margin:0;padding:0;width:39%;text-align:center;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);background-color:transparent}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{flex:1;display:inline-flex;justify-content:center;align-items:center;height:100%;padding:0 5px;margin:0;font-size:14px;word-break:keep-all;color:var(--el-text-color-primary)}.el-date-editor .el-range__close-icon{font-size:14px;color:var(--el-text-color-placeholder);height:inherit;width:unset;cursor:pointer}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{display:inline-flex;align-items:center;padding:0 10px}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{line-height:40px;font-size:14px}.el-range-editor--large .el-range-input{height:38px;line-height:38px;font-size:14px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{line-height:24px;font-size:12px}.el-range-editor--small .el-range-input{height:22px;line-height:22px;font-size:12px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{color:var(--el-text-color-regular);background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);line-height:30px}.el-picker-panel .el-time-panel{margin:5px 0;border:solid 1px var(--el-datepicker-border-color);background-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid var(--el-datepicker-inner-border-color);padding:4px 12px;text-align:right;background-color:var(--el-bg-color-overlay);position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:var(--el-datepicker-text-color);padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{border:1px solid var(--el-fill-color-darker);color:var(--el-text-color-primary);line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:var(--el-datepicker-icon-color);border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;padding-top:6px;background-color:var(--el-bg-color-overlay);overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px var(--el-border-color-lighter)}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:var(--el-text-color-regular)}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{outline:0;color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:var(--el-datepicker-icon-color)}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#fff}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid var(--el-datepicker-border-color)}.el-time-panel{border-radius:2px;position:relative;width:180px;left:0;z-index:var(--el-index-top);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content:after,.el-time-panel__content:before{content:"";top:50%;position:absolute;margin-top:-16px;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left}.el-time-panel__content:after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content:before{padding-left:50%;margin-right:12%;margin-left:12%;border-top:1px solid var(--el-border-color-light);border-bottom:1px solid var(--el-border-color-light)}.el-time-panel__content.has-seconds:after{left:66.6666666667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:var(--el-text-color-primary)}.el-time-panel__btn.confirm{font-weight:800;color:var(--el-timepicker-active-color,var(--el-color-primary))}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary)}.el-descriptions__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;text-align:left;font-weight:400;line-height:23px;font-size:14px}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{font-weight:700;color:var(--el-text-color-regular);background:var(--el-descriptions-item-bordered-label-background)}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px;word-break:break-all}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size);word-break:break-all}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary, 20px)}.el-drawer{position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:0!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:0}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{position:static;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-input-number{position:relative;display:inline-flex;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input_wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input_wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{border-color:var(--el-color-danger)}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--el-menu-border-color);border-right:none}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover{background-color:#fff}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-bg-color-overlay)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-6px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular)}.el-notification{display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:24px}.el-page-header__left{display:flex;align-items:center;margin-right:40px;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{font-size:16px;margin-right:10px;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);font-weight:400;display:flex;align-items:center}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select .el-input{width:128px}.el-pagination button{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pagination button.is-disabled,.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{display:flex;align-items:center;margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color)}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:0}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager li.is-disabled,.el-pager li:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popconfirm__main{display:flex;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin-top:8px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary)}.el-radio{color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;outline:0;font-size:var(--el-font-size-base);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:32px;height:32px}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{padding:0 11px 0 7px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);position:relative;cursor:pointer;display:inline-block;box-sizing:border-box}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{width:4px;height:4px;border-radius:var(--el-radio-input-border-radius);background-color:var(--el-color-white);content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary)}.el-rate{display:inline-flex;align-items:center;height:32px}.el-rate:active,.el-rate:focus{outline:0}.el-rate__item{cursor:pointer;display:inline-block;position:relative;font-size:0;vertical-align:middle;color:var(--el-rate-void-color);line-height:normal}.el-rate .el-rate__icon{position:relative;display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{position:absolute;left:0;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;color:var(--el-rate-fill-color)}.el-rate__text{font-size:var(--el-rate-font-size);vertical-align:middle;color:var(--el-rate-text-color)}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate.is-disabled .el-rate__item{cursor:auto;color:var(--el-rate-disabled-void-color)}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px}.el-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-result-padding)}.el-result__icon svg{width:var(--el-result-icon-font-size);height:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{margin:0;font-size:var(--el-result-title-font-size);color:var(--el-text-color-primary);line-height:1.3}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);line-height:1.3}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled{color:var(--el-text-color-disabled)}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown__option-item:hover:not(.hover){background-color:transparent}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-disabled.is-selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;margin:6px 0!important;padding:0!important;box-sizing:border-box}.el-select-dropdown__option-item{font-size:var(--el-select-font-size);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__option-item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__option-item.is-disabled:hover{background-color:var(--el-bg-color)}.el-select-dropdown__option-item.is-selected{background-color:var(--el-fill-color-light);font-weight:700}.el-select-dropdown__option-item.is-selected:not(.is-multiple){color:var(--el-color-primary)}.el-select-dropdown__option-item.hover{background-color:var(--el-fill-color-light)!important}.el-select-dropdown__option-item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon{position:absolute;right:20px;top:0;height:inherit;font-size:12px}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon svg{height:inherit;vertical-align:middle}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select-v2{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select-v2{display:inline-block;position:relative;vertical-align:middle;font-size:14px}.el-select-v2__wrapper{display:flex;align-items:center;flex-wrap:wrap;position:relative;box-sizing:border-box;cursor:pointer;padding:1px 30px 1px 0;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);background-color:var(--el-fill-color-blank);transition:var(--el-transition-duration)}.el-select-v2__wrapper:hover{border-color:var(--el-text-color-placeholder)}.el-select-v2__wrapper.is-filterable{cursor:text}.el-select-v2__wrapper.is-focused{border-color:var(--el-color-primary)}.el-select-v2__wrapper.is-hovering:not(.is-focused){border-color:var(--el-border-color-hover)}.el-select-v2__wrapper.is-disabled{cursor:not-allowed;background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled:hover{border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled.is-focus{border-color:var(--el-input-focus-border-color)}.el-select-v2__wrapper.is-disabled .is-transparent{opacity:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select-v2__wrapper.is-disabled .el-select-v2__caret,.el-select-v2__wrapper.is-disabled .el-select-v2__combobox-input{cursor:not-allowed}.el-select-v2__wrapper .el-select-v2__input-wrapper{box-sizing:border-box;position:relative;-webkit-margin-start:12px;margin-inline-start:12px;max-width:100%;overflow:hidden}.el-select-v2__wrapper,.el-select-v2__wrapper .el-select-v2__input-wrapper{line-height:32px}.el-select-v2__wrapper .el-select-v2__input-wrapper input{--el-input-inner-height:calc(var(--el-component-size, 32px) - 8px);height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);min-width:4px;width:100%;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:none;margin:2px 0;outline:0;padding:0}.el-select-v2 .el-select-v2__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select-v2__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:14px}.el-select-v2__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select-v2__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select-v2__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select-v2--large .el-select-v2__wrapper .el-select-v2__combobox-input{height:32px}.el-select-v2--large .el-select-v2__caret,.el-select-v2--large .el-select-v2__suffix{height:40px}.el-select-v2--large .el-select-v2__placeholder{font-size:14px;line-height:40px}.el-select-v2--small .el-select-v2__wrapper .el-select-v2__combobox-input{height:16px}.el-select-v2--small .el-select-v2__caret,.el-select-v2--small .el-select-v2__suffix{height:24px}.el-select-v2--small .el-select-v2__placeholder{font-size:12px;line-height:24px}.el-select-v2 .el-select-v2__selection>span{display:inline-block}.el-select-v2:hover .el-select-v2__combobox-input{border-color:var(--el-select-border-color-hover)}.el-select-v2 .el-select__selection-text{text-overflow:ellipsis;display:inline-block;overflow-x:hidden;vertical-align:bottom}.el-select-v2 .el-select-v2__combobox-input{padding-right:35px;display:block;color:var(--el-text-color-regular)}.el-select-v2 .el-select-v2__combobox-input:focus{border-color:var(--el-select-input-focus-border-color)}.el-select-v2__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px}.el-select-v2__input.is-small{height:14px}.el-select-v2__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select-v2__close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__suffix{display:inline-flex;position:absolute;right:12px;height:32px;top:50%;transform:translateY(-50%);color:var(--el-input-icon-color,var(--el-text-color-placeholder))}.el-select-v2__suffix .el-input__icon{height:inherit}.el-select-v2__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:var(--el-transition-duration);transform:rotate(180deg);cursor:pointer}.el-select-v2__caret.is-reverse{transform:rotate(0)}.el-select-v2__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(180deg);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select-v2__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__caret.el-icon{height:inherit}.el-select-v2__caret.el-icon svg{vertical-align:middle}.el-select-v2__selection{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select-v2__input-calculator{left:0;position:absolute;top:0;visibility:hidden;white-space:pre;z-index:999}.el-select-v2__selected-item{line-height:inherit;height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-wrap:wrap}.el-select-v2__placeholder{position:absolute;top:50%;transform:translateY(-50%);-webkit-margin-start:12px;margin-inline-start:12px;width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-input-text-color,var(--el-text-color-regular))}.el-select-v2__placeholder.is-transparent{color:var(--el-text-color-placeholder)}.el-select-v2 .el-select-v2__selection .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:var(--el-fill-color)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;color:var(--el-color-white)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select-v2.el-select-v2--small .el-select-v2__selection .el-tag{margin:1px 0 1px 6px;height:18px}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__tags .el-tag:last-child{margin-right:0}.el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__collapse-tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__collapse-tags .el-tag:last-child{margin-right:0}.el-select__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__collapse-tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__collapse-tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px;white-space:pre}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{to{transform:rotate(360deg)}}@keyframes rotate{to{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{position:relative;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-shrink:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:var(--el-text-color-primary);border-color:var(--el-text-color-primary)}.el-step__head.is-wait{color:var(--el-text-color-placeholder);border-color:var(--el-text-color-placeholder)}.el-step__head.is-success{color:var(--el-color-success);border-color:var(--el-color-success)}.el-step__head.is-error{color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-step__head.is-finish{color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-step__icon{position:relative;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:var(--el-bg-color);transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:var(--el-text-color-placeholder)}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:.15s ease-out;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:var(--el-text-color-primary)}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:flex;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:flex;align-items:stretch;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{flex-grow:1;display:flex;align-items:center;justify-content:center}.el-step.is-simple .el-step__arrow:after,.el-step.is-simple .el-step__arrow:before{content:"";display:inline-block;position:absolute;height:15px;width:1px;background:var(--el-text-color-placeholder)}.el-step.is-simple .el-step__arrow:before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow:after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:var(--el-fill-color-light)}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;flex-flow:column}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 18px}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-fill-color-blank);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--el-table-bg-color);font-size:14px;color:var(--el-table-text-color)}.el-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.el-table__inner-wrapper:before{left:0;bottom:0;width:100%;height:1px}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{position:-webkit-sticky;position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:var(--el-text-color-secondary)}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{position:relative;cursor:pointer;color:var(--el-text-color-regular);font-size:12px;transition:transform var(--el-transition-duration-fast) ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table thead{color:var(--el-table-header-text-color);font-weight:500}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table__footer-wrapper{border-top:var(--el-table-border)}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--el-table-border-color);z-index:3}.el-table--border .el-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px}.el-table--border:before{top:-1px;left:0;width:1px;height:100%}.el-table--border:after{top:-1px;right:0;width:1px;height:100%}.el-table--border .el-table__inner-wrapper{border-right:none;border-bottom:none}.el-table--border .el-table__footer-wrapper{position:relative;flex-shrink:0}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:var(--el-bg-color)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:#fff;right:0}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table__footer-wrapper tbody td.el-table__cell,.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{overflow:hidden;position:relative;flex:1}.el-table__body-wrapper .el-scrollbar__bar{z-index:2}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--el-table-border);z-index:10}.el-table__column-filter-trigger{display:inline-block;cursor:pointer}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-fill-color-blank);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15)}.el-table-v2{font-size:14px}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0;box-shadow:2px 0 4px #0000000f}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);right:0;box-shadow:-2px 0 4px #0000000f}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row,.el-table-v2__row{-webkit-padding-end:var(--el-table-scrollbar-size);padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{position:relative;overflow:hidden}.el-table-v2__footer{position:absolute;left:0;right:0;bottom:0;overflow:hidden}.el-table-v2__empty{position:absolute;left:0}.el-table-v2__overlay{position:absolute;left:0;right:0;top:0;bottom:0;z-index:9999}.el-table-v2__header-row{display:flex;border-bottom:var(--el-table-border)}.el-table-v2__header-cell{display:flex;align-items:center;padding:0 8px;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);font-weight:700}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{transition:opacity,display var(--el-transition-duration);opacity:.6;display:none}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{border-bottom:var(--el-table-border);display:flex;align-items:center;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered,.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{height:100%;overflow:hidden;display:flex;align-items:center;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{margin:0 4px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{overflow:hidden;align-items:stretch}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{word-break:break-all}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary);width:20px;text-align:center}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;line-height:var(--el-tabs-header-height);display:inline-block;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item .is-icon-close svg{margin-top:1px}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);font-weight:700;cursor:pointer}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid var(--el-timeline-node-color)}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{position:absolute;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.el-timeline-item__node--normal{left:-1px;width:var(--el-timeline-node-size-normal);height:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{left:-2px;width:var(--el-timeline-node-size-large);height:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);line-height:1;font-size:var(--el-font-size-small)}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light)}.el-timeline{margin:0;font-size:var(--el-font-size-base);list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{display:flex;align-items:center}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);background-color:var(--el-color-white);padding:var(--el-tooltip-v2-padding);border:1px solid var(--el-border-color)}.el-tooltip-v2__arrow{position:absolute;color:var(--el-color-white);width:var(--el-tooltip-v2-arrow-width);height:var(--el-tooltip-v2-arrow-height);pointer-events:none;left:var(--el-tooltip-v2-arrow-x);top:var(--el-tooltip-v2-arrow-y)}.el-tooltip-v2__arrow:before{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__arrow:after{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:before{border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:after{border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:before{border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:after{border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;background-color:var(--el-color-black);color:var(--el-color-white);border-color:transparent}.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px}.el-transfer{font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{overflow:hidden;background:var(--el-bg-color-overlay);display:inline-block;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width);max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:var(--el-transfer-panel-body-height);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:var(--el-transfer-panel-body-height);overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px;display:block!important}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:22px;line-height:var(--el-transfer-item-height)}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;margin:15px;box-sizing:border-box;width:auto}.el-transfer-panel__filter .el-input__inner{height:var(--el-transfer-filter-height);width:100%;font-size:12px;display:inline-block;box-sizing:border-box;border-radius:calc(var(--el-transfer-filter-height)/ 2)}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{display:flex;align-items:center;height:var(--el-transfer-panel-header-height);background:var(--el-transfer-panel-header-bg-color);margin:0;padding-left:15px;border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black)}.el-transfer-panel .el-transfer-panel__header .el-checkbox{position:relative;display:flex;width:100%;align-items:center}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:var(--el-text-color-primary);font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0);color:var(--el-text-color-secondary);font-size:12px;font-weight:400}.el-transfer-panel .el-transfer-panel__footer{height:var(--el-transfer-panel-footer-height);background:var(--el-bg-color-overlay);margin:0;padding:0;border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius)}.el-transfer-panel .el-transfer-panel__footer:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:var(--el-text-color-regular)}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding:6px 15px 0;color:var(--el-text-color-secondary);text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner:after{height:6px;width:3px;left:4px}.el-tree{--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree{position:relative;cursor:default;background:var(--el-fill-color-blank);color:var(--el-tree-text-color);font-size:var(--el-font-size-base)}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--el-text-color-secondary);font-size:var(--el-font-size-base)}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:var(--el-color-primary)}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{display:flex;align-items:center;height:26px;cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px;box-sizing:content-box}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:var(--el-tree-expand-icon-color);font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__loading-icon{margin-right:8px;font-size:var(--el-font-size-base);color:var(--el-tree-expand-icon-color)}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected:after{content:none}.el-tree-select__popper .el-select-dropdown__item{flex:1;background:0 0!important;padding-left:0;height:20px;line-height:20px}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list.is-disabled .el-upload-list__item-status-label,.el-upload-list.is-disabled .el-upload-list__item:hover{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper:hover .el-virtual-scrollbar,.el-vl__wrapper.always-on .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity .34s ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-statistic{--el-statistic-title-font-weight:400;--el-statistic-title-font-size:var(--el-font-size-extra-small);--el-statistic-title-color:var(--el-text-color-regular);--el-statistic-content-font-weight:400;--el-statistic-content-font-size:var(--el-font-size-extra-large);--el-statistic-content-color:var(--el-text-color-primary)}.el-statistic__head{font-weight:var(--el-statistic-title-font-weight);font-size:var(--el-statistic-title-font-size);color:var(--el-statistic-title-color);line-height:20px;margin-bottom:4px}.el-statistic__content{font-weight:var(--el-statistic-content-font-weight);font-size:var(--el-statistic-content-font-size);color:var(--el-statistic-content-color)}.el-statistic__value{display:inline-block}.el-statistic__prefix{margin-right:4px;display:inline-block}.el-statistic__suffix{margin-left:4px;display:inline-block}.jt-wall-row{display:flex;flex-direction:row;height:40px;align-items:center}.jt-wall-row .col-left{display:flex;align-items:center;justify-content:right;width:60px;font-family:Alimama_ShuHeiTi_Bold;font-weight:700;margin-right:8px}.jt-wall-row .col-main{flex:1;display:flex;flex-direction:row}.jt-wall-row .col-main .el-input--suffix{background-color:#fff0}.jt-wall-row .col-main .el-input--suffix *{background-color:#fff0;color:#fff}.jt-wall-row .col-main .el-input-number__decrease,.jt-wall-row .col-main .el-input-number__increase{background-color:#3489ff;color:#fff}.jt-wall-dialog{pointer-events:none}.jt-wall-dialog .el-dialog{pointer-events:auto;position:absolute!important;background:rgba(5,45,155,.7);min-width:280px;overflow:hidden;margin-top:0}.jt-wall-dialog .el-dialog .el-dialog__header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyCAIAAAD9fhrKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4NTc1YTY2Yi1hY2U5LTUyNDctODM5MS01MGJjMjM4MDkxMDkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDY4MTUxMzk2RDM1MTFFRDkzM0JDNEQ5N0IwQTIxRjYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDY4MTUxMzg2RDM1MTFFRDkzM0JDNEQ5N0IwQTIxRjYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YjZlNTUzODYtMzRjZC02NDQyLWI4OTktODY4YTdiYTNkMzgyIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjg1NzVhNjZiLWFjZTktNTI0Ny04MzkxLTUwYmMyMzgwOTEwOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Po+VQtwAACdUSURBVHja7H1bluM4kiUMfEjuHpFZtY4+/TGLmQ3MmTMbnf1MdUX6QyIJ2MAAAjC8+JB7ZHZXh7LKQ6IoECSBy2sXFwb4/X/+X2FfEqDv5dh35mXeC+k2CzD/+XfxL72BeVbv04KI7uP6ByD7pZTy6ToMnUTwv3f7rgWG/cNXrhz7AcVtUfOiwP/kOg6mLGRVoq1JUewjsAoLWJQ2RdlTg7CD+y+eJW3MziVU1dfK/wV2LIhXJpQJ/nQhOUFWWxDJRYjnwnfItkB2Z8w/yC7sr9fnXpj8Y/9d27hw/2D4zm/0/4V92EcRtq+bMP9J+AX98UdadxN8oy/D/tXdBeWAvsBQM7/FvwklxzemJ0xyfrflu6JG1T+Hc1mrhKEA/wfTQ9BfAD119x9Ca2R1ZjuEqwdq/Kb7C9vO3oQzZJ9AKdAzqDuoGVC5r3r3j8Gp62XoJaT9g3WBDK3crwwIdfB+mxUmyJP0HXNGAj/uM1zNQWTs8MChMOvJEQYMuDxdepBAQGM7810t2MHIioItnEqwbOx66GBadMSXHHQiCgBHFmDV8h+rJcQPEUaLk+WIFi5YDnyQXPoUs0R+oyTfEWvdkKFaskPYju0t1RLCDrxM/luoHejIm+0qbZ9g6+P2/snOBWDRQVPAggLOgMEBFRh7PoY+DPaJvUIYIvjeb3eG9b39tH6zFoL0Q9eHzVt6A1qOKMdYE7cD+lsBDCtdya7B2QINBEj1YZqMxSAwIKL7J3DVdI0WHbWgY4HdyIp2Z7d+lvreTa+hfHep/M/ZhZS9Gr7pbthqXsmtsdXpepS9MHXTi5xf5XIzX3XXf/tfBkmer2MHkPKdGr0SOckyXGzoO60IYIGBUcEdYFZKSuikFMBLT7pxQprYwXrifAZwtfto3pi9bVEcXVKSVcKtPYT5lSnMlOAaQMKKUobEv2UXF9a7kx4vbkRWnGsxAKxnAIRnrPAtg9FFYM8l93Pg/YA9A31zZCeJfOOBv3znykOv2KG6W/YVpu+xtlHUjlvWXGzu3Dqd6rflx/ZRkH+0vEFofssYCXAbtSNB7O6gxylGfNhRGFFJOdT6jbbFR4jEcHa4EqKrlkOsD2LKs2J9AlGKdVtucv4I9TdQpftrrH88BUSO3QVHI7RaboRWiJW7zy+zoW/jd4Ie0b472y+Q2F+AwHXuXv79f39/GiHr3pCgXQpSxaMeYOx7cxYGBHIKkHIKQhxJ6MOimxQI25jVdWBCy0Up941DSE4JAfKQtUURDcqawrT21YUUnVHkUVoJfByheE0DCGLysIiwkiEX6zwZctkHb3JHofU0ivee7aJx/QoxOTT6b2OVMCmE/0RU0SctOfsqnOz6rS9KszI5Umh2dJHWNjsFXSsw+7nIcCEtKuys2VfILxcWwIf8TdGrI3wxQpQHU/zi5JEjD8HWclhMxX4ecMHgi4ZesOgyBGsZWokCrWD5kPM9otXwbOLK9OphesYiOWvWFA3qddNbivHFc81iq7r8ZrrvJ2Jz/zjuRqnuvQm46rtmsFO0Yaql4w7U4fH5YuJD+JiWsB3Dj9HRYdp0J81LGE7nySMmPZfxflbAemw6wGW42RLMj+bZHEtcL1145NmiPEMWGKmNAwOMkYchZyaenRYiWmgpLx0xcGfXrjwXdMw5xSG/3ZJ/5LKXa0D++I4+R9gKVwwtuVrpNzj6HS7syt/Fuj+E5ghJAAblHeFxG2rhzyWNfgRrZ2HPNDDCVjQm2P4ltPk9kZUfRRmssXRMgzGIhftL7zdCpBuClYxYi02LC7KWwK+JSH4Yj5tEhZiyjLwfBaiq4lSKGonKgzUBK5xdQr5C9wfT/5HCfx5vJhcRkQtYKVrN77BMnjtJPT5pGHK4LCCKHSBidDe/rzQt2S+7CEINL4bBsX7XiNURcTdot5/18NIPXVfiFK8GNB/tGZYhiWBSvt/n8gnN7+9kEccCJSSH4Ai4fsG+stU3BzDI+OEPMS/K7GXgz0foAf6wgVkiYIkJMk2F7/NimBayADDClrZIJDCHLUQBGTdCcKAsPXcKWqODsqABuJPFJApGpx+sskHE20jmINK6KFuAbxvgmR2cCoTE3le5KAoeODNymG7ZKP/IcbdjNrEZTmzVfzMaySEojcE3QeokTnEoYVCFCSxGAT4e3uCU7i/oxMokDCzQKq8MFeTRyv1OquEZoU/pURFgisp1oFhnfiWaxgYCkkEGH8SZMJDi1kBadlvEEcol+x6q4tQ2TwMGw8ClHzF2snu6vN0nFx4mwOUAyILQNNPY4tN1WKUeKDAr/Cj/Cg3QPBnMmhxm4bKoD1PUSML8SmcCZmCmC+dUCwizumlWobYFbEWUs3o8psoXijTeElqsCBeCVE+4wFcEIQsVg9IZNC3hyZhgI7AY1LUVv9KWFJhM/SZioY23iHN1O6bsJGd2lS1VZra/AzY0/HatTsQXG6Vl75MOhoySNjhIHlCzvq6xxMEmVCXH4sSms9wKMmLFeA0bHMxEK9Nl5jehZrEerTM8BUHmaIU5WvHzCvWW06u0NC2pJSZohXJQw3eUXfOZggX1wYMwhn1xU2EfqjZfHYhv1/F9MhGbZjw9xIkrAM0GJG6zoUs5ZhUHRR+PhWCKMGscDDlaNPUUgzcf9+V6IUVLJFSLUSp+ahC3m/9f+v6+UHDoQ9EYCAewWu81rILXyrY4cYMkdHfEyjNNYONMPOLDVd3L1MqVeWGmSqVgiyJ1j2AYptSYtACA2Haz94jN1gOprhSLFbEThhIAErkEIO7TIkOhwPA3+6EQ9cNhUUnEdAvW+0A4SnYdmCiZGhdwHfZCkTMpjlDZD9t8KtlFp+4ATNSuyJjcc1T2KC/rOGQmtIs04uc7uC+0MtxK6GVFFei14VY0QFiEfZipdpiVCajl/RXU1Azi7DaS2HoCRNzlVOmFzTt949XvwlMlKqzoWYnqZIDjZRxvcrkZJiWYkuUwa90NDUi836fn67h2X4dZWHKi+JMANJIMWf1tMphlbj4obTFr7GjokGNSEo95LMIUtgAvfTct2haFERQgYAF6FuMxCDzaoR+rDvQOfIQc+6Af0XaCFPjWYDvV+pEPVmCizfvxv3DqfqgA07sb9sRjARdgfVS/UoLHR31svBBwn/aHa8WPlf8Q07rh1pM6KZBHytXSMB1cx1z+YnQoFYOygQjMhB6RGaZ4ed6jkIRgmuNUihYrWg0erdoxYM7+AlotFAnqZQUxOej+2QNfDa0QK5aOiFZ/gKVp6eGTM9Xjt5UJihpdrYfsFbjKHxWHAAtqStYeyUKv0Zj+dB36DoCcpVHAQd+DV2xaFnz7mEyIZ5AmpeWV2DCQHS8rCcOzDGaZkI7uDmEW6Vl2FBIjI8mU+IxFetgiRZ94n2LUA1Cu5peAm8IjUgA17nnx7qqIXLGXeG0fU9sHYm5eozMNJg9kmldiOsn516qC4TGjS/JgwEQWxYY0iqWqDbVYK2tnpddKJPeCl4O1nbG0TImKmSyOdWJxUuXZ8aFMVp9Ej6/7G3MWUIv4ivFELH7H+UsyIBf0b3qZzt8NmPC1TaiKLlZBZkuDVqjWAcFuxP4pRSseyWJlWNAfjmxQ0ysQTcvFdX6t1OW3fMyxQZ8OhO/YstLtM6xtLEuCAshgEkcDWXbo0KBJMnDDBHIb0M3Xceh7mQwacg0+CEAx1lsDNYN1Xn2nb2/3ZRz70WEWRHaUR4jZaVgY6SU5/KdZRRjSvDH7wUR/wyCQJe/bWI9WQ66oka8RIUMAiD67YDFksV6ira3UD6E+BhLHBDBvIomCE4Ij1vigaFbY3hh/y0+zRLBsH5Ect8nUjo0MZKcTY3NMj4gN8QsTXplrzFgPUhKvQC42p0JVWVobpxjbWiFNWrOVzmkIYhEAZo4EZw1dPhC1R6sLmv8hVAc9c90qPTUTA8r5DbQSVZP/GjF1epXYGSVtaZen4WsHsA4oVbgl0kc6Zv8MUkrrRZiUghSzwqGUJiv8FXuac4NxxKuCWVl4aPe72LlE93mxCIP3aca+uww976xHYMsAUkeeMhMeLkyLYtw1nUyUMAQdmVGIFpPBO0g4R2YchsTXtQ5HYsmngY0JZJxLeDK4WiYgC+fdxvVvwTggMW/7UNmF6aLYjuxYfh+Moj/E5p55rzBy8Ky1MLkwfw85ugh+UrGqaRzBL0V5IhBHNzBUOF6ZFmxhJU5JFHRRM3ChyKV0kUlOLFa0rZogBvpV6joCVWzqDCw3WO4GrcRqtnrScvScvDaMkGIU307AZ2mawIo1awW6/qJ6O+aYjH4WV6+lTNQC9w0w6wvqdHjcBWqerHwECq0MDzS9ZobJYgp3ZoEnSuZBcrPB42iBJlItZM5xfmUhkhZYA7r+Ns3OFzUtNPPIY9YGbHE6sApMvZ1UeafpRrhq2SH049okePiARMLw4lIAL2+CwGAYxSihQxwKTQbbgJ011EZTEmoAcVQxzo7wY4eiFo1gHtIhYh7YAVblTxRYcehAnYwgYJPwM+kzfx/tEsmbvLbpr4oZfuifDeysoer+wvwnDfE3g5u8f2Y6OvPclsyljPKCkkWRoOhyt0DFXZXSGdcXlg+DVqFwsi/IIYw9J7/dGBB0bUfdOppvqEVuTGWiVfesB6ptKwKsq1e1GL3p0jrAsKLWzW9wLmPhASeE35nG9WiqItzmmd/LBLNMQDfRCRPQ+EaZ+rASfYYNLNJbwiwraaEdXnHOCRNpMmBKzYIJT0oIlzWoyvuiHacOdxWCuB4mzMTJW4nOFWLGCF7pYBRzKXD+hWGnAsICPEM6oue9W7w34THCvTHf5SxZx5PbDz5Rsb3bkXrioYd2qz6lnbIYjShoVKmgi9b0acyIp30nSbSGrjL8V8BNIue75mDYkJoCoBDxkSNW5nLvo5UkT/yHcEpO6hwL2K/6b6K/rA6JClDhgYaHVVfABnj1BzlU3XNQkqzcDRBVGYrdCFTgY55pvJYZHSJh0po8oQ5ooPSOlkJLgAp6axDxeumtFZ5uyETWCXwaRyjHgJyzPM4ByglXJ+DSy7stAeIMU4xhIvg5oOEmQp6IghEBhBBCCREjx/wWOgTiJ4pMiq8RaEgTNZz1JW37m6pTnOEMhMGmEWx746PGmkdk2WzAZ2e0HUuUryBUVfAqQS3wF9nbSLDjc4MqlIr7DxjsyOkN1OIIEUppw7Qh82okgSd/yKVfyflNqpufv5Wq7KsPVSJNZh7Z3Kl8TAL3BpMfe/WfuvEbnsAc19ZJ3yOZ4ccPa9bkGBSAyZIjUtBX/3qCSpXRw2yH3lK526Jc+cus3jWNQoJzfmKpH6/IVRAuh1n95CxagkndGI0O6wgiJBHOqnuDV6OK0EzkdlAGupzeBh7lpHRZPLggxqxRAn+AFlV9KgcF8W0sOGhiP96yP9no8djVEJsUoKQPmDHcAqRSllZKQuQ5IPtCJ1JOk5ujcs+XC9A0KU1q9o/VTnWJqFSyqhaxstbQN7ncc6s741ZU1eEbTWbG2nAg7t2kDXp1GrCSYReoh4TbjyYW9jByxNUW4kHP43BfFhqP416H4KhEpOk7Gp+crbROtZpsy7C4a9/d7Pij2dcAzjtSUVIyACiTiTCsCFFXZxX9SSwmvgRgNIrxRwZegXn5CxbAy2teXCjn/IsBNwsMRRxQDUOWaazPGJmom+MqTKe1s6i5FHaHXDAxdjSfZAefbdtjO9sqRHV/qPgudmgjxqmKUNGxMm6CdUcRZrQMc5BiGKENBHQOrbASVWFuSk06vFYWrRYvufc2Euwy2wH3WGEWikZzAxVl0UpkM28i3HVXbcvPoRMrcWc9Kj/+9Dnnwzry5IQ2Zomq+LXyF8KUwZAheZ/mKOMB8PDQORWeiJJBMhWw9D2kwz8UgUthMOtu0MoG4d450TtbaUKpMoWLcS53LHPwsTO332b+g6hkIRTBMpefgcdqq8GCtTsoc/ghcNMApn6FypjgCvIC6mmudjnLKennBCU5ecQjT1k8+ZOW4HWcNmI+Oo9lbFUFstT/WTHxYq4cYTcSt0KZKWIlXytN8zZRFFlDPfe5rBK4LghdVgBmDIuK6pwEJnJraMA7pMnMV+2n9TTQCnG/gT3Ok0+EhFsToUVNzCoHiZidU4LBLJK0bjQrMEkesMIWwEqOKAuqDIbPQoxnT1X2OLVW+O4+WS+ozWxDVvih7zvws5UxyWNTm0kQQjea9oNioudYbpVKfVJ8XF9wR3Uy5TKQMiZrMU9DRClg4335nYYGSgFUmkU546r8Nkxtyaa5ZGUC7Nz96v6t7aIyKbV+lPIn6cDpVgnVw7X2wdzqpetDXylyYdkVOWyl7CiOsl3IyM5mHdVxKnMMrKN4s1wMWik/zc9wn6sFvtKBgQW3S6bjmKI6MlstCUtMJHZJLvZ+jLkLt9Fq+/nBc5N8FrCwkavveGBYbC80+FWutvP4ZCfHt/uEGvPgyB5LUeIr7CqD+QXbKgY3zR+DiQagboasadPs1IfWhmcNfZdoWJlchKkRwu9mqJ6JESfL+9bWHow/btoKBPk+72+BOsYLBd51EHP9CZ6lETMuloBYDIErwyDVprDdPrI5vVgkOWq9P/IIPVjO9semovRogYjtjRW2VSFVWCN+WAwL5mN03BNwNWhFG3RuW03izAwf3SieJoeUWHO6CdU/CWlzOeRDmY0AUGS2We2Cyhx2HHEzR7v8roNoVUrseKxl7KpX+ABgcR4koFQNEsxqznfnuVFCT8x+yNKzZVZk5hd9smb5vDLMLs/dAbnt3v4ldjarkAQFsOEVcbmrWrTL/mS0ye7vk4rPniwNRGqPggihMXrlwI18HDAHKEhd2lAMswtRptvHhgiFNcnpSBIF3EztUOYthk0hbEM/2tCnWukcoK277Ra7e5VEKyVKYbMSMQNaBZ5SM0FoDXp4sjmOM3cw1jTskrqhz4bqDi0RHPepCVVZYIiVM6P8CuPzmuU9y7EVjG8t/MdCad/RCo6hFZ4OCc8PIO8NG5eYdZvUnXIuhPAoWpjJDHXpx76LFwViGJVJrPlIov/e8CE7P9qlVKYg0TCudlDJ8CZNehXwC8Is1liLkGwP02uHmIOsiIlmipCk9HGJIidpYV/AChAkOUiTjIgs711mCYN0lLNIQ1oLlwW3rSTWxNp2URwUoTEqB7VsL1D0lXTkBCE95W37FbsgmOUmbJAsgaK0QebyFFZOByu2hyhKlOGeaKf6ZMRHw4D9C9lEcTE8S06vujcIOKSzeEoZqyqHU0NE+YSDpDmD2WIZ1K5VN/3Q3RNl46tEvXhC2dyXT/FhDasJPznuiE2exakWwywT6H3cab5OktvXN8K+k7Q6Tj4jmvdkyJNGBsnMZz2YFj3Ns7K4YOK5y2BFdxS5vsZM862Hc8gX6JKUQvZcTrCWJXthaQCAz5CJxApZsIciW0YIc7isdKZKVFjLebCT/a6aL6GWGXd3GgXUdJzyPWw0zloNoWa5Fzmgi329t9WxzgUplVwCmOdbqIANf5Dod+gvdtLMBkhhbXzAcy8YoAfKdaUXsUw03a9/CtOPMZsSVD/v5DsNF4NZ3fSHsGJWUn2tpDIHUoRZ0InD8nqJ4J/0pRxjWHjU0d4IHDDDLEN8XJaFJE+m7+WDW8JnYzA7S7fHx/j80/U2zwawHFEywHexqSO22l8ZWjKVyZRzV2omHwYKkSZ9BagkFUe+gg3E7HcpdeISdAWReQIErmQlEnLE3Gya3iMv/MS3x/cR5+1U+BPK3H7I46Z81p6+k/OxQujxd3ghkVsqaxaVB0Eqe2Bo0RHPwndKqqdMgW+yWwwVQoBK1dpQxeynvRq/Ww/qvWCUKOcPA4uqt8FsKwzcGhHG/cv+IGDt+WgSHf3Qz6O6ZEiKiQSVc/1DYByr/D0OPVkZoKmF1YplUAVonjS3ZVkIXOzSXkN3GX1i1Wpa8SQzShYJWkVT4X1Wi8s8k156nhVUlOv1IE+7VxqF0gm5KVEFwGRr1jSgblKqDMtycnTKCYXHrOdiM4dnS9jaaGDbrvcjVqwjRxENh1ruvMIkC01xZXErCMIKVPGWa5q+fpdEW+J0nJyLYK3HJ8I5YRaSt/2D0vVpO25oMCtbpWYTp/hhNPQ4fpMTgLpVfrvcpV7IimXqvE2jTyVmOOxceSQkPB0bhmtheMq83OcF+SoyEH95HbqrAxcshr22YCsSk2XBm4nc1LryoCnQzabO5ihB3gqbwa8piuA1DCqloniZHymP5yCBLpHYqlBUkoqKQn7HjTpCNjdxe07fWSfU2TmJu213e4mn4673I/U5mPm9PtbHODSyYBObqCU2+EbT1uCm/N0Is9zKXfVflzJ/VhqgzczXLR/W9X4HpZUT9RvCXAlVKcBKZTBr7uJiq5we6MWEjdrAljkEdIemamJtXtmW2vDJkPAx3T0Fl0Vpw1MmZ78sVFiyTQ09raZTldghs97Uqzk5CV+vdIfQqu8SjZytiZPKQ9kzdd3bxICGrPFlXIJ7NZtIA4xUlY2YLQ+RZrKCjWud5bfL3sY1Lb4+KPr1arCPkvI0o5qG36IeFS0zmIDOhFrdRbQTrOLm0hhIijjYbDAa1NQh6U0GB7cEsupEGj+mQY55w9+Wd9TlUdFimbKu92FniAPxAUf7YwyrETqJzdiwHCo2UKJMGOgn5XGvlX3XSfl06Ya+q1A2n4evrulCSMsviLstyolWPZBoZTX7QqHHVB1PleCgYZmazospcEGsqeDFslIY85pm05DrRIyFnGno1zDBQf4M2EjP8cCz5fO9G35m+X8BWNXPBkUtrKqB3J7PO0cKraV+050yoda6jncp7Vdni7LPWl7FADC909ChWqR+FR3BFgpZ54QNW1l4q4dn4hKL85TmR5XLjXyS4zMdt41Wpy82PgBYZ6bLb9vfHZTcbLKXPGSyb/uOsmX1UlbCTN4OIGUUTJNSdIh5nZloE4f6RMkF2c2MEal2HhoIha6TmgMZLBJyYmEyh4L05USswqegGjnklzcTs1p3B44/sHiEA5sL11eZelWmqu5/ZK345orxj76gfeiNyYQHw0aWB34/LK3pXFk3jhEomKck6HehFeUyZpLWIe+431XDKAbZza+gZ1vgm9XI7OzCwzjFi9X9BcDZHWZRRA9mY3f/Q/SuzrIJzQcHOg60gv44MLW+qpMsu4lWxpkWytvX8JTaAUGPVjG/diW3ZKbVBPVn1vo+LbNPwWxiwKdxoOmH22pXJtUzVFpIYrcqmEi9YZgDZco+sSRighsgdtOmQyaOQ1yTFFpaSQZtojqvqJiXgmxjdVXBZHSKz9sJBB8gtka2Q2Uwvz2T50S2qnLWULtwTGtbXTMxmdBbu0QHKMF2KpVKYFjrnLEeIafVTSpF4Vg3tPVEbFaHWkuvhu9SvIKdxgzzh8EsNbxg1MiwyYGwgriUV/7yrfNDh8U56lXS6l+i0i+OORjw6ODgkZDwXARQMqN50WsamYokj26yyxNN0gOBVb26mNaTA6JBFn2b5yBaDUP/vGr2KAAqFxfaiqmFuHnSVgXLGBmnL1AfWhJ1CzqKRk2iEgk5LysXXqjhWnEfYGM2S2aPxWxNp222EYxumoVFNYnmgUlBTQ5X3DinJCazTnGr8Gq1N/bE0hNbUiRo3sdC1cYd6G3zOJrZp/6gUIskLWhL+yV8+V1BquGbFNKuz2xiECdpvawZrNp8qv7coL49WLuDlMtH9daa7WCo3PBijWAHiBUbADuFWUcWoajj04aehda78GHgJNONg2nIoNXQPV+GZtNOO3nJuQykGGL1MS1hcayL9UM0L3uJGmn9tc3DdbNJnKHiVQ2F5E0tXdXmKJAxRoQbD+forirjTcECT8RzefV2Ap9jfOin6UWHdI1Thi98qFolHOoDkCRaeYLZt43RRr4GDS2r1S+pAlU3SDTwizALSYanoUOhlFR/iOHJurTkgcGFgsFBZzCLlkxf3vMUo+tk7KnTCw7fRHfRZXh4JBh8XMP6xEtR1lCS2JM6MBphut86ILg1fQxbQGPAS9tI826Xt6GpmTZpHy2fkyQ2SDt5uawmbx2UnXmenQoGdcjn+dmrpyYKrYy5w6pcCXfVQww+1a2ui4fUzUPyT4KPWJH095+HrX2SpSK+6JWtT5EVDnztyXz1sc9VBvER2N0FiLRYks8NBHQ81MJ2eZVy7EKE0i57o0mUn96sDP9sC9yoRusj0JLOVOA7CFXjerq7/9DDM5Dj4euxZQ+wiuG8xrfxtVjX0ryoFiOTkhZtNvRquxwhapqXAxdafpXSgLrfdlIaptb3sBHrVfwB7GLPBH8+dG3oDlUU8ws0ayhWOcuJD1ak5nwAYaOVAx7puzvi44EYP1mlAo49Dzf2Sd2bmKX4hXOaQ6N1NNa/SD+2ltIol7eoD0VUq3cojT3iQcirajqmdvNdmqZpuJKVtHD7oVWNU8nZAHJ6FZp6JSzW9jW+RNvXSdg1oSUtezC/0lhkRfgSNkWXUiNTzeoaIB5F+UcZViM29AIQpa8yYaBuNva+k08XP0Nwo6OCaA032MWi55CfyBT4fLVzbtLHbHuIh0MYwYC13S+6EbXBtk4BqbyYS0pBs2jEKNC8SblJO2eLmyu+PUZfHo65Ho7IPj8N6EvqeTz7YO74PXB8bPbJ0k5fy6jlJS39TxPf6f4iBGzDU7XZazni+BuN9Nn8fLTU4E0Jg1mmQISj15P7J8iaL+X0B+i53oDVvbstNoXWRZTDcY+ilXl1f/8f/+fQo7uJJS60x2kitEJs7mxw6sUm/dwOglrfart41/stHsKU9Xwdu2q0DBUqlNeZbPcktCFurrN4dBvDISzoVmNqFWD726zc/6KWpn/JF+7lLMd16cA85MS2nrWj5KAd8gM78bg+utLy2fuZ0pI4GhkdLM8y4aG6U5sysSHA+cCWfPVCjiZidQXW+og5xI26nuxESFL6uQcPoDobZ1biN7cManQtFVWg8bu+f74OsL1OQftbskcEp5WdczN23ZMpsFS7anythHMT0X9MNDs616NKqo9Qj4ZbQNZSlPJhr4biDq1blYW3B7D+1+vLEOpAXFwfIdWPcMSGhEQ5ZPSC/bOQ/S5C1YLNTo2/CfFKsw4tdJKkZYf2cr3piOuV3O4dXn43PIsvWpH92ESOAhfdf3My3Ofly/7Q5awjEdgw0MRok9bYCusMulyG7skPCDYDt3ZU6MJA5Z1WNk9p/3Tpd5577eeGKertvkTRih0RK1DUQKeaAoV7UAK7T+m6hgWNFAK/wOunw9ODPOtIqZtTqutaLrm0KNQK8hCeOwtSzUnSIncCtX/rVl/U5TdaE0wcwqm0E0h1+V3AD1OOKNF5lbToEHr8rkiGg58PWO1TuM+LgZKNLiMNWo1+hmBDmm3mXLZ/5sVFmhgKvI6DHRDc66hY84zbRXTephmx6kwvbnViJoQWfxQbcJaVcyYchlN949c8wv9UyIbtBz9ugtg2sKGVtG7/VG15aLcyZHcgBeqN1qAn3jH3t3+o4beiQDzYuAxxQ+i6+U20GKVe5O0fOH5HK379fMAqerehVB/TdPcpXCrhonMbXNIBwRZXrSEXUk6r5WOKgNjR+mDjMMidltFAAeu0IutWGcU14WKbaycCaGvZLAH7I0rH0O0Xk/oLkQmOjR5ud/At/wmeePCg6u7/BPWih+fcVAWHRjN090wJv0k1t92B7Aj/Afgtc2kdfwiauJLmBJsCUbVmi6+G+PEFoXv4Qds/cO9MMPV2CzFarmqtKUMNuDiJ/fgQNUMujWiIVZgeKOyA4MuVkqrvx0Glux1dgtPZ5oqAY0/JDZ0bjksHtWRKsF3j3Zw+p3EL/nT+Be2nAB77yfbHLyz50PXBnbykR4ZNTtPhHdGAco3ioofvO/2/UQwlDrx0BviEXjkBTK/QKcwA5ThmUYYs2U0/nN2hqunZZX4mikDlg+HhOcBy67+/TxPiltA1kNvAgstDUsuiVHRa2V/0fWfQSsIBbKrdYFLBDMLyyR01negw48cDJwJnpIttgBON9RK+WpT5E4Kl40s6f2YtQnGyKPyiM8SvukxHi5LLfVWgilTLW304TAQ1+HT5m7z/sHYHl4Dhw3Audflet1Dt1Ra7UV3/1q0FNhq4XvqPf5hDGDb3AGYdsDUEBEVhSArFaLglKhta9e3pIuWBqtQggjSmSN/sgODQPz8NUC5ceuxKzrZAvfEQ3C0Pzj8K4Iv3+/X6VxK4HgG4RgMGJIOCgRo7DAe7vy3GwIHyMZh/9ZIUCJ1N8ACn6k9eDvJPXIJ/onWSZKqgSSrDqc51wtagNL7ZjFZ5XdOEwmPfv1yHo1ZlzMWg+7x8cBUf8DoOmWZfzrHYuMW3UOCGnWo/1sDTcIYPNesvgK9treVsOAQNEotbttctblhmkoF2lpvqQbEotrry9cEz/dLkNp9nsrsOr/p2bSM7ZdNXPZDREdZJgiG/KGlk/yHwe1lgC6dSEHRDh3/YqddNKmoN8bMaf09yPHw+JAwkBbGd2Mx2WwMuT2N/JlqL+66L6Ni5x2FlwKeLHRA8pnyVtz5RwfCEHHTunuNJV+fGI+ULYjc8GZKd9ZufNdTjsXL2AkKopk/HM+e1a4v8OZHzTxjhrfq27OQb63h4SIFyQ4edKcRXuLOSfCwQT/Q+KnAFwbfqLBGPlHN/+39qLAYoHwYscwjDULKZzOVOkiT2YV1DsFlSs0KLxne7LkVS4MXEgg+OgCbzDc83lyPmg0+kJv6ijgH/ncLJv9C0keXi+vk1x0eLIlOVVqcVqKD59M800nf/4ewOlgRZSWv8LSvwoP/TgmDfTT/EhoHWDVDqFzV+O4JZWxqWpjAwGaqrXyYJ3wy56rozcU3cycSZbx+TinmjaT7zt6dLZRJPK85IX4YPvt5mrfVfoBnBA/X9RB8+wjAOrb/0ic6En/7JLh3ELzovPEDpML28eIC2HrsAcNa39VgDjApU/0AtDb5gdwE1gYeYtUDZafkIcbMFDrBMsIn1JjaUlJdiFJsuLVrStQVY86JfOetpMbSuDS4HOqjhbm+3iZ/KYDX7TsJDV4eSZL3f5p+COn8F0ok9XefX68+hd3AcVfBPq1TzK5rEBwI3nOXtBTpJNe+vJJmjih1ruQk3G/GBChr07A0IzrA5UcmAEc2XlP0G1DZF948pEb9bL0OrXi4jwIFLCnWN6e5EK7/rZbBTDh+6gYaivVNSK/VpFMIvw5gvPSb+Jf3i1+vPu9rngHEn7pleBU2I+W3XWV7JvQNyuf7eTa8kw4e4Z/pheJAev+8UiHWepa5/l5OdwbNNoG7/EON3sqG2GFK5JI9hKNOidq8IgctlAHjksUPB5n3KNKansb9eBmhGyFsAobNBzPI3B1dmgD+hDVeHun69/lWZGZ4Zf8RzrW+zYC9p/a7lA1owOFGJZi/HAp1L63e3pMU5LyBITVOvIUmyXFWpbNYaC7WVAcr/L8AA+dSd3OMf2BsAAAAASUVORK5CYII=) no-repeat;margin-right:0;padding:6px}.jt-wall-dialog .el-dialog .el-dialog__headerbtn{height:34px}.jt-wall-dialog .el-dialog .el-dialog__body{padding:10px;color:#fff}.jt-wall-dialog .el-dialog .el-color-picker__trigger{width:120px}.jt-wall-dialog .el-dialog .el-body-foot{position:absolute;bottom:8px;right:8px;width:calc(100% - 16px)}.jt-wall-dialog .el-dialog .el-body-foot .el-button-group{display:flex}.jt-wall-dialog .el-dialog .el-body-foot .el-button-group .el-button{border:solid 0px rgb(255,0,0);flex:1}
- `;const Zze={class:"jt-wall-dialog"},Qze={slot:"title",class:"header-title"},Jze={style:{"line-height":"24px","font-size":"16px",color:"#fff","font-family":"'Alimama_ShuHeiTi_Bold'"}},Xze={class:"odin-dialog__content"},eje={class:"jt-wall-row"},tje=G("div",{class:"col-left"},"\u9AD8\u5EA6",-1),rje={class:"col-main"},ije={class:"jt-wall-row"},nje=G("div",{class:"col-left"},"\u5F2F\u66F2\u5EA6",-1),oje={class:"col-main"},sje={class:"jt-wall-row"},lje=G("div",{class:"col-left"},"\u7EBF\u5BBD",-1),aje={class:"col-main"},cje={class:"jt-wall-row"},uje=G("div",{class:"col-left"},"\u53D1\u5149\u5F3A\u5EA6",-1),dje={class:"col-main"},pje={class:"jt-wall-row"},hje=G("div",{class:"col-left"},"\u989C\u8272",-1),fje={class:"col-main"},mje={class:"jt-wall-row"},gje=G("div",{class:"col-left"},"\u6D41\u52A8\u65B9\u5411",-1),yje={class:"col-main"},vje={class:"jt-wall-row"},bje=G("div",{class:"col-left"},"\u6D41\u52A8\u987A\u5E8F",-1),_je={class:"col-main"},wje={class:"jt-wall-row"},xje=G("div",{class:"col-left"},"\u6D41\u52A8\u901F\u5EA6",-1),Cje={class:"col-main"},kje={class:"col-main"},Sje={class:"jt-wall-row"},Eje=G("div",{class:"col-left"},"\u91CD\u590D\u6570\u91CF",-1),Tje={class:"col-main"},Aje={class:"jt-wall-row",style:{height:"60px"}},Mje=G("div",{class:"col-left"},"\u6587\u5B57\u5185\u5BB9",-1),Ije={class:"col-main"},Pje={class:"jt-wall-row"},$je=G("div",{class:"col-left"},"\u63CF\u8FB9\u5BBD\u5EA6",-1),Oje={class:"col-main"},Lje={class:"jt-wall-row"},Rje=G("div",{class:"col-left"},"\u63CF\u8FB9\u989C\u8272",-1),Dje={class:"col-main"},Nje={class:"jt-wall-row",style:{height:"100px"}},Fje=G("div",{class:"col-left"},"\u89C6\u9891\u5730\u5740",-1),zje={class:"col-main"},jje={class:"jt-wall-row"},Vje=G("div",{class:"col-left"},"X\u8F74\u5E73\u79FB",-1),Bje={class:"col-main"},Uje={class:"jt-wall-row"},Wje=G("div",{class:"col-left"},"Y\u8F74\u5E73\u79FB",-1),Hje={class:"col-main"},Gje={class:"jt-wall-row"},qje=G("div",{class:"col-left"},"Z\u8F74\u5E73\u79FB",-1),Yje={class:"col-main"},Kje={class:"el-body-foot"},Zje={__name:"CrEditProperty.ce",props:{params:{id:{type:String,default:()=>{}},height:{type:Number,default:()=>13},bottomHeight:{type:Number,default:()=>0},color:{type:String,default:()=>"255,255,0,0.9"},direction:{type:String,default:()=>"horizontal"},order:{type:String,default:()=>"+"},count:{type:Number,default:()=>2},text:{type:String,default:()=>""},lineWidth:{type:Number,default:()=>2},glowPower:{type:Number,default:()=>.25},outlineWidth:{type:Number,default:()=>0},outlineColor:{type:String,default:()=>"255,255,0,0.9"},speed:{type:Number,default:()=>1.5},videoUrl:{type:String,default:()=>""},arcHeight:{type:Number,default:()=>1e3},axisX:{type:Number,default:()=>0},axisY:{type:Number,default:()=>0},axisZ:{type:Number,default:()=>0}},showDialog:{type:Boolean,default:()=>!1}},emits:["submit","update:showDialog","update:params","remove"],setup(e,{expose:t,emit:r}){const i=e,n=F("zh-cn"),o=O(()=>n.value==="zh-cn"?SQ:EQ),{proxy:s}=Xt(),l=F(["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]),a=F(!1),c=F(!1),u=F(!1),p=F(!1),h=F(!1),m=F(!1);F(!1);const y=F(!1),v=F(!1),_=F(!1),x=F(!1),S=F(!1),C=F(!1),E=F(!1),T=F(!1),w=F(i.params.color),I=F("\u5C5E\u6027\u7F16\u8F91"),M=F(i.showDialog),L=kr([{key:"\u5DE6\u53F3",value:"horizontal"},{key:"\u4E0A\u4E0B",value:"vertical"}]),R=kr([]),W=F(""),z=F(""),j=F(0),U=F(0),Z=F(""),Q=F(0),B=F(.25),V=F(0),H=F(i.params.outlineColor),ee=F(1.5),ce=F(""),re=F(1e3),fe=F(0),Ne=F(0),de=F(0);_e(i.params);function _e(ge){s._params=ge,ae(!1),ge.id===ve.DrawType.TextWall?(I.value="\u5E7F\u544A\u724C\u7F16\u8F91",a.value=!0,c.value=!0,u.value=!0):ge.id===ve.DrawType.DynamicWall?(I.value="\u52A8\u6001\u56F4\u680F\u7F16\u8F91",a.value=!0,p.value=!0,h.value=!0,m.value=!0,u.value=!0,S.value=!0):ge.id===ve.DrawType.NormalWall?(I.value="\u666E\u901A\u56F4\u680F\u7F16\u8F91",a.value=!0,u.value=!0):ge.id===ve.DrawType.Circle?(I.value="\u8D34\u5730\u5706\u7F16\u8F91",a.value=!0,x.value=!0,_.value=!0):ge.id===ve.DrawType.DynamicCircle?(I.value="\u6269\u6563\u5706\u7F16\u8F91",a.value=!0,m.value=!0,S.value=!0):ge.id===ve.DrawType.House?(I.value="\u623F\u5C4B\u7F16\u8F91",a.value=!0,u.value=!0):ge.id===ve.DrawType.VideoWall?(I.value="\u89C6\u9891\u5899\u7F16\u8F91",u.value=!0,C.value=!0,T.value=!0):ge.id===ve.DrawType.Polyline?(I.value="\u8D34\u5730\u7EBF\u7F16\u8F91",a.value=!0,y.value=!0):ge.id===ve.DrawType.ArrowPolyline?(I.value="\u7BAD\u5934\u7EBF\u7F16\u8F91",a.value=!0,y.value=!0):ge.id===ve.DrawType.DynamicPolyline?(I.value="\u52A8\u6001\u7EBF\u7F16\u8F91",a.value=!0,h.value=!0,m.value=!0,y.value=!0,S.value=!0):ge.id===ve.DrawType.GrowPolyline?(I.value="\u53D1\u5149\u7EBF\u7F16\u8F91",a.value=!0,y.value=!0,v.value=!0):ge.id===ve.DrawType.OutlinePolyline?(I.value="\u63CF\u8FB9\u7EBF\u7F16\u8F91",a.value=!0,y.value=!0,x.value=!0,_.value=!0):ge.id===ve.DrawType.Polygon?(I.value="\u8D34\u5730\u9762\u7F16\u8F91",a.value=!0,x.value=!0,_.value=!0):ge.id===ve.DrawType.Rectangle?(I.value="\u77E9\u5F62\u7F16\u8F91",a.value=!0,x.value=!0,_.value=!0):ge.id===ve.DrawType.SpatialLine?(I.value="\u7A7A\u95F4\u7EBF\u7F16\u8F91",a.value=!0,y.value=!0):ge.id===ve.DrawType.OdLine?(I.value="OD\u7EBF\u7F16\u8F91",S.value=!0,a.value=!0,y.value=!0,h.value=!0,E.value=!0):ae(!1),w.value=ge.color,ge.direction==="horizontal"?(W.value=L[0].key,Object.assign(R,[{key:"\u81EA\u5DE6\u81F3\u53F3",value:"-"},{key:"\u81EA\u53F3\u81F3\u5DE6",value:"+"}]),ge.order==="-"?z.value=R[0].key:z.value=R[1].key):(W.value=L[1].key,Object.assign(R,[{key:"\u81EA\u4E0A\u81F3\u4E0B",value:"+"},{key:"\u81EA\u4E0B\u81F3\u4E0A",value:"-"}]),ge.order==="+"?z.value=R[0].key:z.value=R[1].key),ge.id===ve.DrawType.OdLine&&(Object.assign(R,[{key:"\u6C47\u805A",value:"+"},{key:"\u6269\u6563",value:"-"}]),ge.order==="+"?z.value=R[0].key:z.value=R[1].key),j.value=parseFloat(ge.height).toFixed(2),U.value=ge.count,Z.value=ge.text,Q.value=ge.lineWidth,B.value=ge.power,H.value=ge.outlineColor,V.value=ge.outlineWidth,ee.value=(parseFloat(ge.duration)/1e3).toFixed(2),ce.value=ge.videoUrl,re.value=ge.odlineHeight,fe.value=ge.axisX,Ne.value=ge.axisY,de.value=ge.axisZ}function ae(ge){a.value=ge,c.value=ge,p.value=ge,h.value=ge,m.value=ge,u.value=ge,y.value=ge,v.value=ge,x.value=ge,_.value=ge,S.value=ge,C.value=ge,E.value=ge,T.value=ge}t({});function X(){let ge=s._params;ge.height=j.value,ge.color=w.value,ge.direction=L.filter(Se=>Se.key===W.value)[0].value,ge.order=R.filter(Se=>Se.key===z.value)[0].value,ge.count=U.value,ge.text=Z.value,ge.lineWidth=Q.value,ge.power=B.value,ge.outlineColor=H.value,ge.outlineWidth=V.value,ge.duration=ee.value*1e3,ge.videoUrl=ce.value,ge.odlineHeight=re.value,ge.bottomHeight=i.params.bottomHeight,ge.axisX=fe.value,ge.axisY=Ne.value,ge.axisZ=de.value,r("submit",ge),fe.value=Ne.value=de.value=0}function he(){M.value=!1}function $e(){r("remove",{}),M.value=!1}function Je(ge){ge.target.value===L[0].key?(Object.assign(R,[{key:"\u81EA\u5DE6\u81F3\u53F3",value:"-"},{key:"\u81EA\u53F3\u81F3\u5DE6",value:"+"}]),z.value=R[0].key):ge.target.value===L[1].key&&(Object.assign(R,[{key:"\u81EA\u4E0A\u81F3\u4E0B",value:"-"},{key:"\u81EA\u4E0B\u81F3\u4E0A",value:"+"}]),z.value=R[0].key)}function ne(){r("update:showDialog",!1)}function pe(){_e(i.params)}return(ge,Se)=>($(),K("div",Zze,[Y(g(k3),{modal:!1,"destroy-on-close":!1,modelValue:M.value,"onUpdate:modelValue":Se[19]||(Se[19]=xe=>M.value=xe),title:I.value,style:St({left:"0px",background:"rgb(0 44 126 / 68%)",height:"calc(100% - 50px)",width:"180px",top:"0px"}),onClose:ne,onOpen:pe,"show-close":!1},{header:me(()=>[G("div",Qze,[G("span",Jze,rt(I.value),1)])]),default:me(()=>[G("div",Xze,[kt(G("div",eje,[tje,G("div",rje,[Y(g(Qi),{modelValue:j.value,"onUpdate:modelValue":Se[0]||(Se[0]=xe=>j.value=xe),placeholder:"\u8F93\u5165\u9AD8\u5EA6\u503C",clearable:""},null,8,["modelValue"])])],512),[[Vt,u.value]]),kt(G("div",ije,[nje,G("div",oje,[Y(g(Qi),{modelValue:re.value,"onUpdate:modelValue":Se[1]||(Se[1]=xe=>re.value=xe),placeholder:"\u8F93\u5165\u5F2F\u66F2\u5EA60\uFF5E9000",clearable:""},null,8,["modelValue"])])],512),[[Vt,E.value]]),kt(G("div",sje,[lje,G("div",aje,[Y(g(Qi),{modelValue:Q.value,"onUpdate:modelValue":Se[2]||(Se[2]=xe=>Q.value=xe),placeholder:"\u8F93\u5165\u5BBD\u5EA6\u503C",clearable:""},null,8,["modelValue"])])],512),[[Vt,y.value]]),kt(G("div",cje,[uje,G("div",dje,[Y(g(Qi),{modelValue:B.value,"onUpdate:modelValue":Se[3]||(Se[3]=xe=>B.value=xe),placeholder:"\u8F93\u5165\u53D1\u5149\u5F3A\u5EA60\uFF5E1",clearable:""},null,8,["modelValue"])])],512),[[Vt,v.value]]),kt(G("div",pje,[hje,G("div",fje,[Y(g($P),{locale:g(o)},{default:me(()=>[Y(g(IP),{modelValue:w.value,"onUpdate:modelValue":Se[4]||(Se[4]=xe=>w.value=xe),"show-alpha":"",predefine:l.value,label:"12"},null,8,["modelValue","predefine"])]),_:1},8,["locale"])])],512),[[Vt,a.value]]),kt(G("div",mje,[gje,G("div",yje,[Y(g(TP),{modelValue:W.value,"onUpdate:modelValue":Se[5]||(Se[5]=xe=>W.value=xe)},{default:me(()=>[($(!0),K(bt,null,or(L,(xe,be)=>($(),Te(g(AP),{label:xe.key,modelValue:xe.value,"onUpdate:modelValue":Qe=>xe.value=Qe,onChange:Je},null,8,["label","modelValue","onUpdate:modelValue"]))),256))]),_:1},8,["modelValue"])])],512),[[Vt,p.value]]),kt(G("div",vje,[bje,G("div",_je,[Y(g(TP),{modelValue:z.value,"onUpdate:modelValue":Se[6]||(Se[6]=xe=>z.value=xe)},{default:me(()=>[($(!0),K(bt,null,or(R,(xe,be)=>($(),Te(g(AP),{label:xe.key,modelValue:xe.value,"onUpdate:modelValue":Qe=>xe.value=Qe},null,8,["label","modelValue","onUpdate:modelValue"]))),256))]),_:1},8,["modelValue"])])],512),[[Vt,h.value]]),kt(G("div",wje,[xje,G("div",Cje,[G("div",kje,[Y(g(Qi),{modelValue:ee.value,"onUpdate:modelValue":Se[7]||(Se[7]=xe=>ee.value=xe),placeholder:"\u8F93\u5165\u6D41\u52A8\u901F\u5EA60\uFF5E10",clearable:""},null,8,["modelValue"])])])],512),[[Vt,S.value]]),kt(G("div",Sje,[Eje,G("div",Tje,[Y(g(Qi),{modelValue:U.value,"onUpdate:modelValue":Se[8]||(Se[8]=xe=>U.value=xe),placeholder:"\u8F93\u51651\uFF5E100",clearable:""},null,8,["modelValue"])])],512),[[Vt,m.value]]),kt(G("div",Aje,[Mje,G("div",Ije,[Y(g(Qi),{modelValue:Z.value,"onUpdate:modelValue":Se[9]||(Se[9]=xe=>Z.value=xe),placeholder:"\u8F93\u5165\u663E\u793A\u7684\u6587\u5B57\u5185\u5BB9",clearable:"",type:"textarea",rows:2},null,8,["modelValue"])])],512),[[Vt,c.value]]),kt(G("div",Pje,[$je,G("div",Oje,[Y(g(Qi),{modelValue:V.value,"onUpdate:modelValue":Se[10]||(Se[10]=xe=>V.value=xe),placeholder:"\u8F93\u5165\u5BBD\u5EA6\u503C",clearable:""},null,8,["modelValue"])])],512),[[Vt,_.value]]),kt(G("div",Lje,[Rje,G("div",Dje,[Y(g($P),{locale:g(o)},{default:me(()=>[Y(g(IP),{modelValue:H.value,"onUpdate:modelValue":Se[11]||(Se[11]=xe=>H.value=xe),"show-alpha":"",predefine:l.value,label:"12"},null,8,["modelValue","predefine"])]),_:1},8,["locale"])])],512),[[Vt,x.value]]),kt(G("div",Nje,[Fje,G("div",zje,[Y(g(Qi),{modelValue:ce.value,"onUpdate:modelValue":Se[12]||(Se[12]=xe=>ce.value=xe),placeholder:"\u8F93\u5165\u64AD\u653E\u89C6\u9891\u7684\u5730\u5740",clearable:"",type:"textarea",rows:4},null,8,["modelValue"])])],512),[[Vt,C.value]]),kt(G("div",jje,[Vje,G("div",Bje,[Y(g(H_),{modelValue:fe.value,"onUpdate:modelValue":Se[13]||(Se[13]=xe=>fe.value=xe),precision:2,step:.1,max:10},null,8,["modelValue","step"])])],512),[[Vt,T.value]]),kt(G("div",Uje,[Wje,G("div",Hje,[Y(g(H_),{modelValue:Ne.value,"onUpdate:modelValue":Se[14]||(Se[14]=xe=>Ne.value=xe),precision:2,step:.1,max:10},null,8,["modelValue","step"])])],512),[[Vt,T.value]]),kt(G("div",Gje,[qje,G("div",Yje,[Y(g(H_),{modelValue:de.value,"onUpdate:modelValue":Se[15]||(Se[15]=xe=>de.value=xe),precision:2,step:.1,max:10},null,8,["modelValue","step"])])],512),[[Vt,T.value]]),G("div",Kje,[Y(g(t4),null,{default:me(()=>[Y(g(Rn),{type:"primary",icon:g(Lq),onClick:Se[16]||(Se[16]=xe=>X())},{default:me(()=>[Ir("\u4FEE\u6539")]),_:1},8,["icon"]),Y(g(Rn),{type:"primary",style:{"background-color":"rgb(222, 146, 47)"},icon:g(PR),onClick:Se[17]||(Se[17]=xe=>$e())},{default:me(()=>[Ir("\u5220\u9664")]),_:1},8,["icon"]),Y(g(Rn),{type:"primary",style:{"background-color":"rgb(126, 128, 135)"},icon:g(ia),onClick:Se[18]||(Se[18]=xe=>he())},{default:me(()=>[Ir("\u5173\u95ED")]),_:1},8,["icon"])]),_:1})])])]),_:1},8,["modelValue","title","style"])]))}};var Qje=Dh(Zje,[["styles",[Kze]]]);Array.prototype.last=function(){if(!(this===void 0||this.length===void 0||this.length===0))return this[this.length-1]};Array.prototype.first=function(){if(!(this===void 0||this.length===void 0||this.length===0))return this[0]};Cesium.Entity.prototype.setEditType=function(e){this._editType=e};Cesium.Entity.prototype.getEditType=function(){return this._editType};Cesium.Entity.prototype.setEntityType=function(e){this._entityType=e};Cesium.Entity.prototype.getEntityType=function(e){return this._entityType};Cesium.Entity.prototype.setIsEdit=function(e){this._isEdit=e};Cesium.Entity.prototype.getIsEdit=function(){return this._isEdit};Cesium.Entity.prototype.setParams=function(e){this._params=e};Cesium.Entity.prototype.getParams=function(){return this._params};Cesium.Entity.prototype.bindEntity=function(e){this._bindEntity=e};Cesium.Entity.prototype.getBindEntity=function(){return this._bindEntity};class ve{constructor(t,r){this._viewer=t,this._init(r)}static initEditPropertyParams(){return{id:void 0,height:20,bottomHeight:0,color:"rgba(255,0,255,0.8)",direction:"horizontal",order:"-",count:2,text:"",lineWidth:0,power:.25,outlineWidth:0,outlineColor:"rgba(255,0,255,0.8)",videoUrl:"",duration:1500,odlineHeight:1e3,odlineCount:50,axisX:0,axisY:0,axisZ:0}}_init(t){this._viewer.scene.globe.depthTestAgainstTerrain=!0,this._viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._sketchEntityName=this._guid();let r=new Cesium.CustomDataSource(this._sketchEntityName);if(this._viewer.dataSources.add(r),this._entities=r.entities,this._pointEntitys=[],this._sketchPointImage=void 0,this._iconNormal="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gyP7zqrej3IInF47lwQkTLV3d1xv3KXWPT4MYhLzMzIgHpn10+Sk+Gw74w+jx79HwSGnzUYhg4FED4FBcBq/jtokOOC2oSb0FZUgHpKVoeHQ9GtGM/y8lcgMLxf5juDBwNDlOWnTgGvUdWz5wsQ7c179fUWzz9y0tX1BdZPILeqCpTtil9QEOT9c876K1faWqS07XeMzJFuboCXkpaX1w5hqxl14QJIKYRWCzLV5OXtDQXbon3c3c2/TeMoYvncucAgPrl40Y7fA0zv1QtMydKwb58FL7toRwbDYo3/0utB3OD8qlX2hIkLqalwO0b9+fLlUHJOG9vQ0P4EjfyFIdPZGfqsURampIBIlxsWLLBtL/NltF4PhUIrVq92QGDIeEOmpye4pYju164Bq6n29LTiopy8tDTIL48pSExsDq/Oj9is/eAD4CRbli1DMEFUBAYCewnUaJD8jr2lpQjpJ7M2bBBi0+L47Tt2mP2G5xhNaWnAHrLj461tKF1rasA0rW5b//6w/0rigQcPWhrZKVFXP8TkybaFyb3kXbkCbiO6fpyU1Dwq58vNG3U6BJvEiYMHEcwQW8aNA3pT7O4OaPmTiwuCnlwcNQrEDRGYmytloilj5vr1Zv+mNXVhSUnmOFYEVnt6gtM9t+8mTbKlwo5AoWdySIjteWUcIwwG2LX7o6lPnkiZULTlj/7+wEThm5oKbCBeCOANUisqkNRxLCEBSSzrYmOB3jw6c8Yi3kL5K51OyvkZGXUTJz7LSH09CIPwMBpt85CHhMf48Q4IJFPofHzsbMAAJfjIEQtXC9TZWi0wkEuKAmjEyspKpNN2pyVBQULZaIjbvXmzUDb6xF0zGJCqv+no6NGAK5fLyiz8JssVcXEWgQLUsZZxWmGbrLTN057Agfh7eNiefhpRb7h922LgOzFp2DDzxnJXrsvLE0rqOW3sTz+12h4lLfRZhuQybuXmWmQkgPzhwy0o1jlV37ljh+e3/L1LF0cEXqX04UPb0075rlovLwtBHuqZ5845T5Z37UqbEAPkzOfsUvlHXZ35saFnQ4++fe04eIfftv64tEfgdvkXeweprFIvBQaaebJH+f3x4xbPvsRPnixlQlHGtDFjWq2Wuqj0yz4+QKk4FxNjMVXD2998Y0FRKEsCAuzwzBKv2eZpR6DspxQcPWpnvrNYoNNBZOTOnRoN0ilJMzYjA3ibsKoqoIxezs6gLJbpxcVSTbyePurwYSkT76VPKSgAWQslJcAmenTrBszgP7W1wBlRmZICY2SydHIC8ZCvdTo7Ak+ri44dcySDNDTs2mVufluhThoGD4bHp6or4uOb3zWJnoqwMGAVLnfuACHscHJCiFRmhISA0BMcFob52PDC/8EDkLfkR5GRQmycN8/t8mXw8O73WVwctnvdJ3SqrQXNSJeY3bttaWhHJxMxzDh97VqQAwheutR2IC6pm/z8oOBm7LcVFVJNKNo0oUsXhBKmGR0VBfI0vkFBINzExxoNEKP+ePYsktefFmVnC2Vjvm5SZSVEpGUNefNNUH8ti8rKQCziaOfOVuL2563PP4eCjJhxK1a8hMCJJ7NTPDxAXWIaefEi0J2r/ftbMfyryDhxAkZ2u1EaHAx6oReq2rb/JiTLZKkoUHLf2//YMWCGnPf++1YM7zHw+nVQ1mlKhg2DvPeiltr+GLaj2W524Kd6zZ4NhGOQ0ophI6GSkr4Gq61VGyjx7vdZQoIdYY1xVZ06RKttS1gTHLkPLjVmGo3AJZToaCsGjSWrPFBKfH3bvta0uyR3ySlGIxS4a7trte1l244MtoRpT93XSUk0l0oruFDbqROYUtQ9X3xhLr2WaBpX4+WnOTl2hHkw9eZN0Li5dLP6Dehogc1dexslK/7MynffhbNDvZXnWq9GNJWyiKC69TlphvobtWbOHNgnZonq6hdl+xL/yTQhbKUxeOtWEP9melSUFYMWJSv/IAtNprZLUu4Rf9u6FQpdo49bfRXaBQcy2BL1p+XURYtAZrLwhx+sGDSWrDpc3ZeVBbJMPt22zY6wRj/1oep08zXMUXRABpsQFmqcHhICYiLlhw4BBWiFA/5FOXmhoc8u0Pv3vyyrDshgEwqLYnKLi4FO5OfkvPh66UdudnZHCXsFAptQ96XMW7jQTsm2xAF23roFlD6NXLy4o9m8AoHFR7SxNTWgjGOsVovtxqBxXAzEbc4cKCycN+/+/Y7n88oRvjarcNYsCDtprP/+ewjvZ1xz9SpERBp3zpz5qqP/D5zQE33tptaiAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA0LTA5VDE2OjQyOjI5KzA4OjAwjRBbGwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNC0wOVQxNjo0MjoyOSswODowMPxN46cAAABKdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uXzJhcHo1b3VpcnV4L2Rpbmd3ZWkuc3ZncY9vkgAAAABJRU5ErkJggg==",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/grmkAAAhxSURBVHjazFoLUFVFGN49597LBdFUEpEQI0IpyxIfqU1ZkY/pNZg1RZlWY2lW4yMncxq18oHZ0+lhOaWZUo0zPjIr8W1NiubI+AxBIkRQQsQE7us8tv3P7qGL7gXOPRdzZ3bmcnf3+7/v/Lv/+f/lYkIIMpur2yBktQVO5yM7LRybIvsOFKFGCeHyQz/dFO2Ousflcg6UJSlVlqVEjHEMjNMH5tE0vVLT9ZJAQNnn9fm3d+9z3xEYioR9bNcjW9Z8Gtv35l7PUAFjnU5HLytrFUU9TgV9XXD4+PJhoyfV2/GIFO4TGD8my1lVuGXSHYNuPdyhfbv5VkVAgzWwFjAACzAvp0fwoV++uz6lxzXLolzOW1AEmz+gHCwtq3i2z52Pn2jtlgvXI1LpgQ0jeqYm74y0CGiACdjUxkir3KxMlsoKNj6WmNAlV5Kk9qiNGmBTG6vAlhV+rd1aUuGeNSNSeiSuolGo2X1cdDogbThQ79h21CMfP6NKtR4dw/edYiTSK8GhZ/aO0R7KiFV7dnPpzeFQXkppWeWY9MGj8+ifektbqzVC8KbVH6UNHdJvOw2nHUIB7vrDI89df861p0SRsUSjuiSzB4qxyYzx0TVEdBUNTnVqs7I6B4beEKOFwqThuu7X/IJ7hj/yYlGoM9NqIakpSVH7t67c3C4muq8IyKcQ9EpuddSK3xqcSHJR7g7WsSkCm8+YiSEgRuU9gMbd3k5578kufrcTC8U0eLwF/e99anhJ6Sm/HSHSid/Xv5CclJAjAjlXr+GHP6x07z9JZCSDCBfzBJapBomJabJfdKqFCiGa4RkQgrQA6p+MtbVTEn2dY2XhUz956szM6wdkLRFtsVZFrReeeaRTQte46aIxT4DgrA9ABJKRw42QTLsjimqATgUZwpxNO/0OGz3KmMvWuBFgABZgimwBB+ASbtSSp0zIHutyOuNEg9NW/e06UE49YRBi5LFB2NxaMoQg5iGJfza+Y+MwlwlmogALMIXpD+UAXIBTOEKi4rt0zg51sFft8TjN7YQbnzrbVpeeD8Q+w3fYFCQba9ha5kHABGyRTcrlCeBkVQjO/Wxeb3rA00WDb62rcbHzAARML0hBAloK+lyQ4TEHx2B4BragUS69vl06/6aLnk6LQuQ+vdMyRQMHT/ql/D9VGfEQi00PGFDYwqsP8/AsMQyJbTvABhuiFb3TU+8Otb1CCXFd1SF2gGhg/f56Bw4+B9iCJ0J5Bv93fgAbbIimd7yq/UDgZklITLQ7RTSwp9grs7MgBYXYMEQ0OTtBWBR7d5FX+NQ5J0tCHG63K0GYglSpkrklGkXY1GGKMbdo8d+qkBfn5LB0RpwOeDlc2mo9NNYHbyOMIuCRptvNsCGqXxgnS2dEoslhxMrgSDXOSbL0HlFVzSv6vlMMJigorWGpnJ2ymzRdTrENGxY4NSeE+PwBYQ3ds6tDN1IewvvFRMLQwTBMPB2lxTuEaTvnRKwI0S/U1ZeLBganRWtGwteYAOoR8EgQFsUe3DNamNpzTroVIWp1TW2xaCCrf6xKzDScaP89SRKGGBLkCSMjVo1aZRS1IZrOOalWhCgHjxTvEw3ckhylD7rOobF6ghZJphhk1TO80DK8Yab1KgJssCHMKhgnxYqQQM7i5bv9AaVONDh7VFzAqCWMekLhRZIFzzQWWLzIMjAY3qwsii2+YakDTsDNkkdoRVZbXHLyN9EglKdjh8QoUBSBcaIDEYU91cbtRi7yUFCF2OgBha9lBRZg3nWjuPQFLsDJqkfAtfWfr1jzDSHiR/zuk/GBjO5YQyqtQDU/5WYKCjo/Oicd/JmPw1xYA2sBA7AAM8RFBAEuwMnqYTei3Q95vx47U1VzTJj3uDBZNzXRl9EdUTE+SshnECJcFPOWwraNxj0GYo3OyLM1PgQYgAWYIlvAAbgAp3AKK6XyTPXZ56bOm0f3p/BFFEdr7LwZSd5xQ9wKUukUo/u4h8SdecCHzPmwdtOMJF9ciHodbE+cvmA+cAm1rVoSAsD1m3fmH127cfvSUJOiXRh98nS8/8dpXb0DknWNKB5qzsOIKlwYdIULpWMwB+ZunNrVC2tDeQIa2P552+4jfFsROxd0sbRfm5/31dyMPumZLQWkwsqA9EOTCzqCzdTGvKB7MCNWTU9s/oIOWsHh41tvGz5uNv34Fxdi64IOvNaxQ/t2aXvzVixKTUnqezkSRBqhCm4bMW7GhboGuJw7H+qQW7nEBoALFPCvOx8cP+toYUl+W4v4o6h0L9iiNkvBdnNXplYvsSEtOFddc75owLCxc6jLd7aVCMDulzlmDtgCm6FSEju38RAxztJUumTkoy+9faqyqjDSIgDzgezJi6gN+P9Is1HKjpBGz9T+U1cy+ulXZ9XU/lMRKRGABZjUEyeseCJcIY1i6BY4NmHagjlen/+CXREUow6wADMcEeEKQTxxq96wadfvCz9cvpBuBSVcEbCWYuQAFmCGSgrbSojx0qW9KmfxV5u/zP1+MTEqI6vlCNFhLWAAFsdEl1sIvIAgdTn98muL1mzZtXe1VYCtv+xbDWsBg2OR/0OIKaaB9ooHsqcsoXt8h4Uwu+P+xyfD/zwqOIatHw7YFQJvVthSUICVDxs9Kae0rOJwS2vKyk8fgbmwhq/V7fKwLYSLgWLoPLz9s59//c3mwjKMPTZ+5hswl6ceWiQ4REQIF2OE5QOHCo9NfCVndoPHW3vxHPgOxmAOzOVr0BUlhIuB0Hn2+5937p/77hcLgsMyfF7wwbKFMAZz+Fx0RQoJDsvvL8ndYYZlM8y+8/HKbXbDbKgW8ftd+qQJLQcglFZCaE3qFn81wogEh1mYE/F74bb64RnFAm/DDwy6mPdrkJLzKGfLpsj+vwIMACSZzfDJFmOPAAAAAElFTkSuQmCC",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgEE4igAAAgKSURBVHjazFoJbFRVFP3L/OlMoQXKImAFm0JbFtFKShEQI6UsggmkGKghIKTIIgZUohIDKEuLaFTQiIKyKKghqSyyF0pZbcHQsJVpoRkKbYFAW+iU2f78/313+qY+hvc78+dPkZfcMJ377rn3/Pve/fe9gVUUhfENY5eBjNbhvlnI6Bmh+KT5NzBhGigg9sb5vX3NpohhRqMwgOe4eJ7nurIsGwl69MDskiRXS7Jc7naLpx1OV/4z/V67CKpw+Gf1ZiQv9/vWyc8lTkMEpgiCIVGLrSh6ShGhX4ovlG5Mz5jToCcjXKhPIGvyOOG2JW/OywNfuBAd1WqFVhIwwAZsAQOwAPNxZoQ9f+yPHnHdn94QYRSeZ8I4XG7xnLWianq/oZOuBrvkQs0IZz27a2RCfLeCcJOAAZiAjXyM0hqblslcRfHuiV07d9zKcVwU00IDsJGPLeBLS3zBLi3O8nfuyLjuXbegKtTsOrY4Ldz22u2GPFue4bL7MlfrqWXh+xhDjNLL2EtOj0r3jI8Z70kyJcnN4aC4RGtF9eSklzIOoD/lQEsrGCLs/m3f9nxlUP98VE6j1QDz6/P5xZWLI06KJ3lGwIWdB2tfZEgkJB4oVwwzWBgsLY1d6hoWPUxSw0Tl2na8sHjYiAnvlKntmaD3SHxcrDG1f9/1aiScspOZYZ1hGm4dHnmSRyRglk+i/ITQwVywAVvAoA3kMyolufc6iEHv0uKuntkxu1ts5xyacY2nhh1TNsZcpBTxjBl2K4AQ2eD8MiITWXFDmULiYJhUNlXak7DH0d7QnvrUr1feWtgjZdxa2hILKiOzp01o1/mp9gtoOrtsZ0eXjjYXMYhEa/RFKyxmLCaCmBF/NhF633xkCxiABZg0XxADxBJq1eLnz8ycYhSE9jTl3Iq5EWeYM/wjwUPQvj1CEwHP8SMFWIBJbX9QDBALzrNmIhGdOsZkqm3sTfWbhKbgTcSSMhBLiiYcMc9I2CMswARsmk8Uy5s4r5qIsFt/WN6nVaQ5iaZcVLkoQjEpjbD++4IM+hFUQniCDMYBTMCm+USxJP6+bkVfFWRVIny/Pj3TaIpiezF3SjzFN619AaNwRLABSwzhnSOWGxLABh80sz5J8a+qLS81IsY20a1TaIrc2lzhoX3A+2Ui6FcxkRn+4f3j9UEZbdtEDcCUgycSaTbF0RQnGk7wTY79S2xIbSvGIDCPNxynPnUckyYiBpPJ2JmmKBVLuSYCXIA9EWxWWAIPYZeJZdS4cEwGTXtEMBhMNEWthHonVieB5gix2Aft/NIYk6Y9wqHmMGzH4HANHBOn6T3i8UgO2vcxfIzibTdI0Tv88Lw+NMTUHBHF6XJTz9CJQqLs7ZdkLHoIkbbyf71YgpBAbdtxTIoWInK9reEGTTGk9RCpqfGTCDJ6skE2kxL2QRk4JlkLEc+dmrorNEVGTIbo7VxFgowUQlYU4oxCnFMAe0LMBJFmgmPyaCEinrt45TRNkRyZLA8SBkleMj5CMvGclCBJMIQdJgAC2OCDZoZjErUQcees3njK5RZtNOWy2GUu1sk2nidcOAiPX2aUAHvC/1yCBDDh1Khyw2KDmLBF8Bkpt1bWXSm/fpKmhOPp9OjpIhyKGCcWHxkPpQj4b2oPQcJnj7AAMy06jbo/IBaISWtGwF3Dj5tzf1PIIyQx1nRf40phUiTmQWMQTaTI/ePx2wPEPvAF7xWEAViAqXIRoUAsEJPWze6tdn8dOF5y63ZNCbXv4SKVvYl7HSkKItPQGMwjpFx+4he8V5AtYAAWYNJ8QQwQC0bQfLASq2/duTvjveXL0fqkvog6GDooR3sdtWdFZomsjW18Xj5SdhXBwYOADdgW9CpwAJbK3nDMWpC9AmJRW1aBiABww8GCwkt/7s5fpzbJzJmZ9XHrnYfiDtkHSgMlph59CSXC9y8phA7m5sXl2cFWLRMwwPe+w6cuYvqKngs6uFp4tvDApmUv9ktKC1RZSxwl3I66HYaD9QcNFtHC+RpAaDuShCR5RPQIz7h24zy9zb3lQFjFF0oPpY6Yuhh9vIaJ6Lqgg6y1jY5q1bPowOZV8XGxyY+jQUQVqjh15NSP6m0P4HLuntom13KJDQD1CPDa0NezFl2ylBe2NInLZdYi8IV8WvGCDJi9YC+JoXDW3qm5V5aSPmUJSnlBS5EA7P5pk5eAL/Cp1pLouY2HinEXtdLlo96Y+3ll9W1LuEkA5tjMeauQD/h9pNkqpYdIU2bq7tvKM976cFFN3f2qcJEALMBEmbiqJROhEmkig5ZAycz3s5c4nK56vSQQhg2wADMUEqESYXCTcWfX/qNnVn6zcSVaCmKoJMAWYeQAFmCqNYUtRYTBTcftnNWbDv68dedqVMZlrQBgA7aAAVgYk3ncRBTcNd189+NVuXlHi7ZpBTh07PQ2sAUMjKX8H0R8ZKB7qhqbOX8tWuNHNJTZI2MmzYPfPKowhq5rDL1E4M0q4w7qRnrGnBxrRdWFQDYVN25ehLlgg21lvXHoJoLJwInjHrz9M9/+5LPmyjLoJmYt/BTm4tZDCkcMYSGCyXjL8tnzlpJZH+QsfmB31PnPge9AB3NgLrZhnigimAyUzrs79xX8s+zLn7LJsgyfs7/esBJ0MAfPZZ5IImRZ/mrt1iO+suwrs1989+thvWVWbYT9fhc9aQUdB6CUVkNpje3SqQPDMgpZZmFO2O+FW+o/niEsyDb8qt7Rd78GLTmucrp80vz/K8AAYAEv1AHM/GwAAAAASUVORK5CYII=",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ppb+WxIAAAhcSURBVHjazFoLcFTVGb6vvdnNY0lEEJOIxhCSKTEFKSC1osIgjqIyA62mZfAxWJU+tC3TVh2lHSGhtNOKOqK0ii+0QwcfFB+IAsKIITpJhUBDHhMiSSBCTMgm2d377PnungubnXOT3L0b6rlzmM2e83/n+87/n/+ecxbeNE3OLvLFV3Fui3KiivNSkhmTNb7EpagQQvzxg++VBvxpc2XZN1MUhEJRFHJ5nk9HO5mwAV03OnTDaFYUtTocie66pOymOjSlYnzeq0d2bn02c9oVxXcTAct8PqnYja2qakeJoFdqDx3dNH/xij4vHhGSnYHlSxf5Out3rrjmqqmHglkZa9yKQIENbIEBLGCeT4/wB/f+c1LBpXkvpsm+73IpLFFF/bKltf2esjl3NI005JL1iNBSs23B5MKJe1ItAgWYwCZj3OiWm5vOQmvt9ttzJ4zbLAhCFjdKBdhkjNcwlht+Iw0tof6zrQsKLs19jWShIeM40hASure3S727O0WloV/QehTeSo/ZsilPzjCC11+k5yzM0/yTs4yhcAgvtaW1Y2nJ7MU7yJ/GcKE1EiH8B1ueLrr2+9N3kXQadAIM7f1abK84LEcOnBFFXuREMpk8TyrHx4jhMQ1OJ5x0U+f8s8boeY9MUbLmjNedMEm6Du2rqp17w5KfNTitmRGvkcKCfHnW9NK/O4kwIjp37JdfpDUv+jSgVw+IASHAofpRef/gSttQ0Rc2sAUGq5Axs2ZM+85GcPAaWkLT528/MDF/QiXLWPtG4Rt/tM+v1vSLMi9zPl4iniCVeASeEPjB82QQj8Az8IjOaZxqapxiKpzvygy9aMs1EekCmTnrX7WdfHjSjEUbWCE2Io88cPeSnAkXjV3J9ERY5xuX7PNrNQOin0/j0kiVUQUI8llVSnjs79FHpjawBQawgMkaCxzAJdmsJT50X/ky2ecby5yllTWy+p9+MY2PkYonb60RUuER1udBoixBMgcsYDK3P4QDuIBTMkLSxo+7oNxpYfe80eaLhZPMSSSkUAU8vPWvFVr2QrdimD7xfWw7nzUZMgdMYLPGJFx+DE5uhfCbn1s9JSM9UMJqbF9TJ5O5tNZEooh48o4Lk66fwWJIJZjAZtkQLsVvbFxTapm7ECKWTSmax2oYONgjRKp7RSluYbsRwRITS9cxQcDGGCybKSWF1zuFl5MQeUwwcwaroXtbmyTRWLdFkJekKxGDwo3nz4nB+iEVY7D6Z4/JmgluroSkB/wFrIa+z7rE2DyeWwfJiEhcO2fXD3n69p9mzjrl5EqI5PfLE5hv0qZ+gach4TacRhJmwFaaB5i8KCfJ1RrxSZKfuW3oUflE8l49kvg3xmCeX2KcXK0RMut8yo7BqSqUk+DqPaJpepjpqmyfaSbs30wPx24WFsZww2koIWYkqjDP0PKkDAO7WOuheyevBRgGxQS2XJjO3LZTTqYbIUZvqO84qyFz9lidyohtzenjRYT92LiZsy9kbocpJ8ONEO1UV3cjqyHn1nxNw+6V1tgsJicmdkaJCbDxgJ1zW77G6k85aW6EqF/WNVYzc3lZtuGfGdQ1sgXHVtwW4zbM4sPJ3tYDE9gYg2VDOaluhCiV6zftjypqiNWY92iponKKdZ7QaHUjJl6EbQ8sYOY+Uqo43LCEwAncXHmkuaWtu7H5q09ZjTieZv/kEhWHIpXURDHx6ydxLcT3OSdCsQ5YwAxeyz76ggs4ufUIXNv3/MtbXzfjj5BxZeK6aYpvaoYetUhECRnVqhoNNyvkTIP5WbNOh7H+sAUGsIDpcBFhggs4uV3sVrb79459R052dh1hGgZEs+hfP4hIU9P1iEUmapFSDGWQqPjnLHlDoQKiHGyBASxgssYCB3ABp2QOVmrHyVOn7/3V6tUkPpkvImlsmln83nXh4NJcNWKGuYgRIxcTpcQIx1fynd2OvrCBbfG710WA5bA2wvevrFgDLk5hNZwQAPd9uKfq8Jvbd210BPCL3GVPfS9a+PbVYWF6QA8bEBSrYYgzI1a1Ptvfk4q+l791dRi2Tp5Awdjvf7y/joaV6eWCLpPUy6p2vPTElWUl84bLSOH6XqHn3Xapd9fXotLUJ+jdmrUBFHMkU56UaQTnkkRxc54WKAkaw2HVHjr60awb7nycfDxGhXi6oIPXsoNZGUUHdry8rrAgf9r52CCSDFU7a8Gdv+sN9eNyrsdpkbu5xAZALwE8NueW5Y8drm+uGm0R/21oOYCxyJgtGHuoK1O3l9jYFnxzqqunYcb8ZauIy/eMlghgT5+3dBXGwphOWxIvt/HIGKfJVrr5xh/+/E9tHZ31qRYBzIXlD64jY+D3kSGzlBchZz3TfSbUvPiu3z7W1X2mPVUigAVM4okmN55IVshZMSQEjtz364pV4Ui016sIghECFjCTEZGsEI5u3E5t++CTz9c+uWktCQU1WRGwJRiVwAKm06ZwtIRYL11SOyvXv/ThC5vfWW/iaOf2PEJsYAsMYFFM7nwLwQsIW5cTv/j9uq07PzmwxS3AR3urt8AWGBTL/H8IscX04zp4YflDG0iM73aRZnfffMeD+M2jnWJ4Ovx7FYI3K0IKB7Dj8xevqGxpbT80nE3r8RN16Asbamt45eFZCBWDw1AP3v7lP330j0OlZbTdvvzhP6Av3XroqeCQEiFUjJWWaw7WH7n/N5WP9w+EuxP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._image_arrow_forward="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAAgCAYAAABkS8DlAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4FpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDplMWFmZGVkNi00MTJhLTc5NDAtYjQxMC04NDExNjRiMzQ0ODciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTA3MThEMzhCMjc3MTFFRDg1ODdDNkY4OTc4ODRCRjUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTA3MThEMzdCMjc3MTFFRDg1ODdDNkY4OTc4ODRCRjUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YjI3YWU1YjEtZmRkMy0wOTQyLWIyMzUtMDFkYWY3YTJlNGUyIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YWUwMWJjYWItYzAxZS04YTQyLTg4MjAtNDU1NmY4NDVmMjBiIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+BD9OfQAAEDhJREFUeNrsXT3PJEcRrho2QQ5IkAj4HfwJEhLInUHAjwBBgEACCRC2gAA5MEiQ2QRYpCQgPiJbsiAxyMYGm+O48927u+8WPd6Zd3t7u6qe6lnfe3tvt9Sa3Zmej+6uruep6i9+9NxzTPvAh4MQHf+Z09RCfsPRzUXInyOVa9b/Hnq4zMBdmnv9dhnp7enpDKtToJf9f04/5OZajQiwQhK4UmWskAUtTa3avSAV8aj9Ro7a7/JcDz34UtkVba/fp1JGLrCSpQvmx0EASnAfwZ8V650rgMugdAkA7lIhGGSQkMP1wxs1oqJds64jxIZOyg8jGTmZ2BXXdzfXOf2WozRykub4XAeWbiktK+deR5299G9+mhXgd1N8McU3z+wBqFrqNTLAQE0xYNE7ROKkS0J/n5hppJJXAQgBBT0SrBCH4yNP0K6TjsP3SfUZHlGxiA9ViEeNXOyyNLsszXVxXxmv1fTyDECL2Yazi7dJduRp1Vs9dJdQJ11nCF9K8ZMpfj/FN5pr9XQMgGptt1jPFEhvWd9FGp59Qdo9Gvk4h5XvfbsFvEPQMxF5JgeOZf0OgW8ZjPKI3jd/wzD9Lo+7gohcT+e3Bbko4674v90fOUXZHf7TLnvWdddwPfTQw4WEzaS7fp3ij1N8bYkHQLPec+bHDdZwrsxF8SZoYC8KYFDWETRUniv1fJieCDGAq/Z8bSwDWgZEtW4X37MiFSCV4LElTwwSQ494kXOfFP8/UXipNDLjkZ35sRGylBMXOX4X5zK4qxCOmVhsMwKSx43yf5OlXxf3dnLSQw89lPj9hRQ/m+KnU3w1xfvn8gBQ0JpHLFvb2q/34deUvxjWvgb0kT58Bq1hxPL13uNZ6QP4Tu97Ix4C6x2IFwUpj4hXQ3sH8u3oteg57TuQMkO+r/Xbau/PycmmIBzr7Pfj7Pp87Sr7vT785hRlk5GcHp5U6N74HvbtMJeI91J8IcWXU/xbCwGwQNvrG/cG7KGg7H2DRwyQ5wwKkUCfMVTyFiEELfdEAMRIV+06iRIA9PuRb1wK4lGiYZWRlq7iAQgTiyUEhQnv8tHS1fI9BGXMqmO0fq137DJisi7i1URO5uPj6fx4/DD7X6Zbd3LSwzNOAErMemkiAn8pSELIA+BZqwIAjzc1EL0HJSje/S1WeASQlzwXsbARr8K5PQHnsuqXehdQS/j0+n5Cq/atshBQ0XuigGqBfQuZGgJ5o4bvjJIjPkvdtsssSmZr77iavB8jyXiUkY2RiDyczj3Kfj+Yrn2YpZt/bzuO9XAmD0DeJfnHFL+T4m8mOTQJwED1PnAEqJda8BqAc+B7UOtaAGBBr0UHEUa+tQZcVlcABZWkl1YMMEIsYdS6jIAc6vmIgLTlGVpq0aNl3jImoREMmQ3vD0pUEALHhpyg+YwAey6XA0AgozNpWtoQ0v6HkD6IEc9tRkRmYvIgi/ez3/em4/+m45x2Qz1cEgEoceftFH9G+wGCf496AFr6/C0vAmLdKySDWZkGyNQ+6wAhHC0uejLARah9vECrm5waFFNUCVmgN5yWdwiIxsNQ1H/Uy+DlCx1vQADI1cBwiTKPkpHl3RKH6amtXo0ocYl6LILyeCNvVt2j71hC9lrG1ESeHSH2pOjWCBmJfFftnGTk5P5ERMb43+n/Byn+OzuXX3t89NS7OR5iA3jRxy6w36b4rRR/F+0CiPb7e258aQTw0gL20nrjDWrPo4pbGPVG5B4UT1miwNkKuMh5VPFFXP8RBbhUqbVaXUxtHpOlsw9axwNoRCPaBeC882ZciEcKqLCyW8BwaCgvVBZQr1K0Tmr1ER0/YbzrCITR5wr5U4qXkoaIt7Ce7uDFXGrkRL22BHo1kfdcTWTkPym+P5GSf9F+0N3b0//3p3MfTKTmNgkAVbDr9RS/meIvLAJgWebeNaL4QMCWlflQdhmZmRBhsS1MN2qha982NL4zYBFADXQIlsUSwGtR/i19wxGS0gpemLV5rDSHj58AwIAZ6FY5IhUWEQ6AOXM2HRm15j2PD/KcqCejdTYJUVvXFS98XlQnDQFdvAToOfunLYaG4gY34gWqbxEvMOopR7zn6AJ2+e/Re/K9FH+S4ju1ymwJEVIghjVuFYoEGpL1DXkQsFKIsLUKECdUba47WnZWHpD8ksMQvWfXGGb5OgG+Q1tVMvqM8t7IEtNI2VvpxCkvtEyl+l3ilgEiP1q55jIoC/NuvFfYaMMElE9lczGxvo0b86DVpSzQhWiQxvtr+kiMMhanDUXzKISvr4J4bP16FHd/FqTurXYrICC31BNSJ2zIXjkxXoB2VMvPp1L8Woo/TfFzHgEQowAFLMDagjxcqUA/87oClYAyJ6XhREBTAvfVCIYYjVCAckbA2RJycQSFi5+sAEe+uI6leFhRHlEm3KJEBbB4tPITkOwyqFS1bjJk4SdEYUfkWQy5jACCR0CI6otfeRa/V67aQl8CKO4WHdEOnAzLbfRJUskvA+DikVEEsDQ9jui0aSqySbzYAVAkPy1BFmALGwZOxEjQu4TFXKRNHHzLr30+xV+m+HyKn5m7AKIsDun3j/7mhvdaFSCAuxeZdsgN744+h2l5l4D3HM2diPZpou9t7Y/kQF644T1L3LWeaxidf3/OkfBaHpeU//H3H/f9L51aiHxvax211Dc6Y6Hl2+y9Pc4jk0u6ABHdQKAcU7DMiOJufG09EwGIJOKab+2eRvR+BNPQay33l+U1jm14ZWkXAOLGRdiWtyMgwlS5YG7sMGEBLUfEOkI2B0LvQayUSFeC57KNHKPWYst+EFFvTov3hSqeDW/cS83iQrtmOOB2RNtRixsQUSaHe8VU9uLLJyPtwHPtCpDO86awo7ti9ciwXrQs9mjdWN8kDe2vxTpmMD/syLJXl863SkQfH+sutrzbWXcmm1vXe5a2AN5YT68zWJ4Casmq7AyKwvAEp6XwLUUgZG+ZS6DLiEFBR9YxkEAjkqAyQIkJohxa6oYbFZKnTCOKBumSEPCd7NSfp+ijOz8iZRx1US6RM1baBBmuTISIWG3QyydX+u2lkq3IeB5PFoXaBluhXT45MYoYRXWChZPEsq2KAcLR8Q61vAoom7WxJZ7coWSnTCaAnvHSlLMSiu/NBpmKWocCkOzIFveahR4h2/Z7T+9+K8WvpPjVAQQhcVwe3qA6MQqOlYxG9xhA+8JrDVEChYsCnShPbLHUCWDT5DRmURpqpIxR0EStXAZkDQEetHykoazF8FIJQESQvFnAICH5wrInAcvcIgZWPpV3iNUGI4NzEY+HOHUaLVNkDECE7EmQwJfGS8Qjxwu/2+prZooPxEXD9GzxNiQD88za96K6PGIMoeO4JNjOI56c8v5x98Av0n6RoH8OhkUsgRcgzDHafyFKYxEQQKKj7cXJjwDP1nY95IyNSYBsRZUyWgcRa9ADfw4KJUK20MGlrcCOKuiagovOICDCBxp6HiiEVHBxyfPIWXKlDTBjhda2TBVm0DPIwLdansAzWKGmvLIB7l6/bMSrihJDDsihAM9EZrGgso2Ut+ZdEDBfClEQRM8tGVQYGQ+HzqjgRlnIwzgN8Ospfjk94g/zyVWgceQL5HhuIc2NoW1L28JbvalsnmJh0l3hVtcCG+RkVoaSuQnRDYc0j4onIBJQdJGpY0T1LYUHUJFGWLrnoq2VkCdDkcWrPBlG9r4gh0wPhocGXWZbew7apiJWk9Zm60RFTCJXey4B8sYV/dNKvgT0aFkyUNMBg6NbvHyDg7g+uh1tUyh5x9pbnawg7QuRI03movPoa3p7AGW4xQMTbVe2YViXj3yRoX9Mv9+lvQv/JcczldfFGyl+g24WAsoaa8NCQHkYCJ8T2rKgD9JAoqsORhd0QI6WVUPA957jHZHvtlcRq2+gg74/siOdZQW2bK1L1L4KHJKvc64EiD4HSVdZclm9Z2iUjSUb6Gh7EZTph2A5WGVTy0skr6i8DwvaSPS7tbIWalvds2X5cDrjEWmnSBu2cGm+Pu6P8HCyhMcV+8b9DsbV/O5NwPredP4eHZYgHuMVPZ1hA+CjuxTwymHiOaCK40KuMZjWUbkUuP9wD9+42D2LGbGgIiPRxWGibFg5FqNGLHbPJW+5n+vCI6bl6b2fHE8KSo4igxSt+cMSlLn8dq4UBiKTkXn4iOcqQqzF8Rp49eYt2d3igSNjvQjNChycNJ6F7xGhljU8kFlTeTqtrMXw9NW8C0L24EV2dAgH2i5ax1s63unwwQSu8wZDI9iOGwyNS+jOa/3fn9KO6caNinbUw5JgyRa0GdDKAARRFLG2+AYFG5jnMkVchcfXxHTdiuOytZSOVejS2IC8iszeXe0HMdxtVeCKEiPNnUkG2A+Om8xTWFYdDUG3YsTNq8iJIKSPi+pBVy9ESKEF2uKAH5tk2RfHSBtBlVWETFl6wUuHki7U4CjbFgfbCmLZbiaLbd5mON9e+PEEpjPQPiyAd073cEq7DpssPVxyyLs7RlL1pxS/TcB2wKvTB90IuFQ8AB7bVBqrKnFRDwHaFy4KMEWtaALf4ylZbzlhtr0BQgB4ZdfFy5vQMitVUymn9+XDH22PAkoKo91U1iJRnifCA2zLY6Kl1/oovXtbPQ6R+pSK/LSQWlEs5+hAPQHPkWKhXk3AupkAcjMB5Ayy60lBbjLwvJqANU/3+ADOcvnQ2cH/GQF9zrFhrtWXU/xRin/+SK4dsrc6VSriWRfIspGFkpOWxoxaz4hLNToTAPVgsML+I6QGAT0UCCygtFb+I8dNGtnKWahcubo+gLSlqwWx6C2wQWUw6i2QLFfeltgEeFUsMuN1B1nuZ3Y8CdaztxmYXhf/1wXYrqfj1RTXWZp1FrcTuG6n2EMPlxuerGeFC8NwHMPwQoo/T/GvKNlbATwRcYtrykb7BGQhHgZca0SxEdh4FR6P5EcsO9QyQ6bRRTd6sfpErbXfkVH/5RKcrVaZZ1Eu8UoI4BmxtoC2ABdfXEYgi3j+v52AdDfF6+zcNvu9no4zuO4ygN1mxxyQt0XsNl8Pt45Yd8Emv6Xw+xR/mOKrtB9nAYeVAVxWP3wNlL3FIKzlZJGFJFpdksgKS6cgJJDF71mRiNehVYxQELY2S4m4l6XY4tUjIMrzquMTKOAN0DbSmcFUClC9zq7PabbF9esCgL1z+bN66OFCgb2D/4WHUQe9Qvstfl9recAKAMxaPz7iXkUGEVrWaHS0bmR+prezUmSN+cg3Bqxtt3VHRjWj3QRz2BWWKhXgqh132f/r7Pz14Zzk13fF9fIZPfTQwwWZoj08sfAO7Vf1+0GKr7dywJUBTBGhQheI8abLnQJsm5cq0reqLUHsjWL33scFoFrLD9eWRC1jDYRr50T5Lx1Ye+hWcA/PRpWdo34vWkZ+leKLKb65hAPm2wHrGxacTnPSRq7nA5G8qTBWvzS6ap4G4LVZCzXQ9YBYA2frd1dcXXH1cJfq86z134Wpy9uTCyvAYt4Vq8LlVm0NdLm4tmSnPLp7rUG6BF9avqTX0Z1ugnLOcu51dOdE9xbz9n8BBgASWdK5g1XGVgAAAABJRU5ErkJggg==",this._image_arrow_reverse="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAAgCAYAAABkS8DlAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4FpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDplMWFmZGVkNi00MTJhLTc5NDAtYjQxMC04NDExNjRiMzQ0ODciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QThBQTYyN0ZCMjc2MTFFREIzM0E4RjQ4Q0YwQTgyMzgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QThBQTYyN0VCMjc2MTFFREIzM0E4RjQ4Q0YwQTgyMzgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YmIzYjdkNGEtYmQwYi04YjRjLTkwNmQtMTRhMTNkNjEwZWUxIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YWUwMWJjYWItYzAxZS04YTQyLTg4MjAtNDU1NmY4NDVmMjBiIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+EmbDrAAAEJdJREFUeNrsXTuPJEkRjujpmdnd2b1bYFkEAhwkpMPi7eCiQ+LuPAyEEMLhcQiQDgmEARL8AhxMDHxsHH4C+Hg4CAMDIYGziBMVZO1k7WRnZ0R8kdWz2zObKeVUVU898hEZX0RkZCQ/ubigkQ6UOGUZzfDc2mq096CRkUa6WRSNXEvjf61R4Y0Q2b1n5/anJ9vRJwdMchM51gsqsxzJOwaQHvF4Gl03UpjSuQJTNs6RY+vcAmiPgqU4SuN3Nu6pn6/vpaYAcXlX+it7zx5CAPh4yt9N+UdD5B9cdqRb2MVDEx+C2lXaFEC65M3e9WVdNo17qLimxrtQUK4BT4JAK8a79Puu+sh6PzsAbfU4eh83hIGWYLBb6upZXjkF8FrKP0z5zZQ/Mkbw4CQjje6/vroYFbs9dS4B86Q4X643jazdvylAe6OA9qYBrhYQWsCn3cPF+T7YcjpK6LseaCP3i6JRTwYga4KGouk/rTZaXsti4Akr1rUYAsMqC8DrKX875TdoTCUMrX6k0f3XXhc5VJ25ANNtAZ7pnNO5nFxd00mRN9X1SQW62+Ld1ADpqXGsAXJJUwDAIs+Vx6mhNUqwHaegOLqvqcrevPYUpBJ26iBgucT4vdayq3ex5J+l+qwlmrID/K2yMnC/oNaDHuB+JWv8P0j5s4PbjjTSSApz2xYgelacn+bz0+Ke1vW2AOJtA4ALcN1hwNLQ6ATTKoUqAPKeE0c71jRNUTRvD6AsIBADyFogwQ6AIMcIeCMAHRUErHl0ZF4dMa9b78/lFDa+L2A7tMo9BWik+p1dISQqAHws5a+l/HbKj4eqOZJLiiNdZ1q01gSccpZB9jQfl/Pz4nzJdwqwPasA+bQCWc3Ui4IeApbe8572Kw3iYwWgxKFWSwuManHeNy2Q9kaTOPXSwKp3zrlHSy4BDNXMyzZloF0toYDJd7SjgBZOQLvYNKKXuvWtloCItkfp9Ke2FyoAzEzhkxn4vzHY/kgm+d4+kD3LoHleHJff7uXjct26r8wL0G46gbNxnyAg7Wlz0wG0Me0+uQYq85hbbQHwTKceOEgQoJl057AImGvz59c0Ck2nC0SAsSwEqHUj8i2tv7W+pUa7liA7AZYAcjR9XdgRWKjQ2pEBywI8jhABYPYS/FLKP075M44JY6SRetK2ANN71fn9lO9mOrxbnN8rQDb9xudZCz4HwJQCGiqBYCrgdy0mEQE5URibKMylBSyTo915jDwyt6oxPA9E2Dm3NH1vbpsbWqsoJdO0X68fUS3dA3A22l2CVgkPG7yyS/D9njCDrGsXh75QS4vnG4GAMgP9x+AYQdf0E/AeBvjIznOeADB79s+Oft9M+UMdHT/S8aTTDKYX+fggHx/m45xfKc7vF0C7AO8W1IpQMEU0UNDbWFBty5ofZEcLbmkOEziAGRw/GuAJyCQQTcn5bcd7mQDNFxG2LOBH6hRhlhJoBwZaCtWEkekGASwmaN9pQoUlVEVAlp1xbD13ZfrfXzqHCCkofSA0JqBAbbUTg2MgMi4twQ39dlRw2HmvJQB8IeWfpvzFbLrs/eDtTfstcSeD6KsZWJfjo5TfW/3vYb5eQJZBCdUC0QjoSsXsraU7iObqMVbLgckzBzL5c55rrFKKRsZSRc5q1S3yXTkotelOQ+1nd9mxYVYUAjTuKIhbtIy8R8hehsVAm7cAaAKEC+kQxObb5nnY1vun9ruejUV07hrR/D0rQ49AgDgPlrCPll8DYDZ4j7XKAPX94ICiwri1gEuLCgMKR6v9vPpq/JaBMqvLAL+a8s9S/gQ4yJ5nupfB9P0pvy+D62ydeJx/e5R/f0++75zwtaM1o2ETbMVkEhbD84A+Im55modjOhNES/YGbO2tKo4Jc6qKxEGQtPquZWZEwFP7DOpVjWjZiBNaRNjSn69DgTRLxajzXI+w52nvHASwCMP3hCgUzHumLsrHUS18GYvsCBwC1Kc13iyTeY8JGp3TZ0f7RpwNifS1+Uy+74qQ7ZDI4Phkh883VkMIO+2D8lbNzB9RLqBVAB9M+Vspv5M1VW9wlum/hikqEDzBNO2g0Zs8k6VHpIjJkU2T3GVwCwl0kucbiswptjRAD+gQT1tkTi0aSMQyM0faHPm/xTBaXstEWJANhUaYC00OnSJwono1wVoTgBbx1KFfeV6WvCXgSxnyBZ33D5k0wXFCDlj0Wm487dYTJGVlu7ToF5nKWcrlOechJmzptE5EV2VooI2sXkBC8EZB1uOHETrRcDTSvlDfbIobPpfyb1L+RQP8EQmbi4GOgDgDxBQdgKz8xgEtEjGbeYO3Bf51Ga0wl8g1NcxKPVYai2ARKZgp7nTEnQyWgMFFjgk5aiJG+1EarxFQqyWDuS2XDJgwo3WghoUPmS+NMJ3yK0hYVqTNidYt2+qxOiCgzEFabwFb4B1sjePI8jEkLgEFtU82ymLRT9STXYzvInSEWi0JrCOTv6lP6/9s/I7wn640CwAfoEsnv9+l/GWDcLgxANsgJeoAYqBCHlPmQOcQ2V6n67UaHUQ5rmWwxVSteSNR+icCusi8Uk0L3txcb3v2vMVjwuibGHiHN6fp0UOLltmhFXTuMsI4OWhdQTScqGc7U3tumcE+ZpApinOftWGMHEB4RcBdwH7hhgVNW+/P1WcZsKwi1lOvLSLToBauRPi8p2R69BzhERq2eMKkF6CICfOVQKze7vTYPAXw65Tfot3lU0joQURjRADdezcDDeqBmOVUQgEmaAxIKGh5xCQbCVrSIkZ0Hr/H1N6zjCliSmv5Dfd6BaPmNc9aIAB9IVpMj8ORpqWX72yvv991/EOdsBzggaaU0PlyRNhsTeG0fD0kQGMe86SOtkKdYxFTsxfAhwxeUT0jmrVhopiDncVDJgfEEQ98hD45MA4j1iKEJ3GwnZhiFu+eUMzRlU4743ijAjmHGbllykL2OY7Ov4hjFSijL3HDbCaN+6yYz86cjiASoyWtevPh7GikvWDsCXYMCB8eYUfNaXGLDYcFUwaB2tJavb6MrNRQ+pq9cWNZ47gYyWJoVwyMcwnQDKJ9e2M/2o8REyriF4Bqodw5rjxLROT91jr2iBPyGq2bO9ug12rHYHsglhxv/r4WNiOR+lBlM7qK6CCr8WYB4Pt0uZ3vX5VPiaOdR5mSx4QY+C4FTFaL41EmKGkxZi6eZpBIjHsYnXdETVTWGlUBGYeA7ewJdhpYiwGMKHMXh2Fb1Magqdeia89EyyvGAzkCawn2rQ1FPCuX1p6IjwfiVc+geRUBlOhe6lHHKhS4PcHQmvZA55kRS5KAdEPgN3sEbu5oYw7wMwRoI4AYoTNkejDCs9Glx0jYbERpphV9Q4Y18akA8PeUf5vyV1L+fdCc6g02r2GQzpdOoo9oLHkAMKrlki3YCFP/sknUAUnzqxCKaWQ9dZaGaYw7Bi3qfISWmzrrboVaFZB+UdrUYi5QNYXEwPcsCxCqOTtty7SiXwQU9BgoKwFWNE1joyAv8KyOEdrzIvihfg89q18iIG3F/kAdC6NtXf+3Z4kbO/2AWJwlKGBxsI3Z4N1k8AWP/jkwnpt9WqwC4D+lP99J+Zcp/6tz0HNAo7I0CnYkr54EgJNQh8VC03Yjkd/QAYoyBwGYlQDaMjqtENW+BGCAVuAMDkjGa6wvVjkQJzVP0udA/3PFJhFth4GyOhqHRIUGDmpgFKBDxFqmMdm1MUw4MB5RK0uUR1lttMZ7noFzRINHhfT2+8TkC9b6fYuvWb4XkdUJiACH+JoxyGu8PlizVPYqAMuTi4vWA3MgoJ+n/Brhc/PzJkEfpctVBXMgng/TbrAezUENia2Nrmm1rAiexcGKaDWB1gkw+p4Zcx2dR7aes9YDR8oIhOBtlWMnAlb0vRIc2JOjya/dKAfdHwAtU3RLWWQnPuQ7E+mOc2v2MfA2FbKesTZu6WnDKA1QR9u3/78b9yM6hhDa4JXtb9WLKBbILDoevMBqGt+eqvb16hUJXYzu54A4hbYDFTG1lr4SyN/ZqKMn6HjOnc+e0QSAOWmhgDUgPaXjTPPqhiX07qN8nCMEPs7CycN8fj//PsdAmBtl22j4ySESCRDPmqiBIBBDAk6UGZECKMh3J5DxXBfgaO0+AXWlFQBtlbnRLyyN8Mw9ghRaV689NQbrtT3ar2u2G+4V6iJClSeY9AgPER4xrR67+2DUQxu9gsEa3nXIb3jPeXTChCsmPd9DlF5PQQ1ZoywBYE7aZkCtRjlWAeAmpHkq5m4WPuZQx6/Q1V4Bc0jjB1koWTbueTUfyx3ztp2DskeIiOxJ4DFNlPFqjHBS7mNQi0QZOVK3ifRoglMH+EXLI53PdAoqXaArnXWK0BGy10VUWOwBME+Dj7RppEyI0HAIUEXvYcAipT1v3cNgOTxAR33S6o2NohFue3zfPMFhTXRD8QQAoqvtgH+S8qczWLXW4w4B4CYnbEZp2fN+2Zr3ohJEyusH+d5y+9672SJzVtBLr3m2cT+XexusmWpAtaFDaX+HAnOj3Grb9AJO77bHqNXALs+VyV0UZh6d9ukRsiLadKStvBgHiBUCsXagZW7RjyO47O0oGVEsKDBOkSkGMqyXUYuBrHjWExYQS4J3D0esErYAcFXNmVl/KuXvpfz13Rc96+izgaIjHYkoc14IK4vQcScLIeeFEHOaj2fVfaf5+jTn+fcTAACmgCaGaINTh7a1dj6/R+CJmOFbYBed70fKjW4vjQJ1r6WmVzDy/AqY4r4RnjUHEWx6rIsR4Eetikhdestujd2Ipr5ipdveTqSIMKAFAFpWue1t/rY1WenVre+m/MeU/5nyX1J+my7nzctNT45JUx3p5U0zdfwn538fcTm3Od/Jx7Min1fn51kQOauEkvJ6m4WU5fqEsI1GagZiMTJrsySieIRNVsBMX3XiO4N5dSGD4Vtm1hoUDrFHuxG+N31H1LKx044tM7AV26DeLY8I22iHwTbUVn71cPneXQx7o1MeIupodBe/cmfISIRFZzO7/YiQyBRAneZ56TfpMoDQ5+n4nQBHGhLVSP3Esa1yKXBsi/NFQNlUQshZPm4LIWU5bnI+KSwsh7Z4oJaNXl8DxMrQ40/Qqbk/G88Rh75JAcs1/kOW1SKqjaNWgbaVYFdoZMId+CZHiNDKiewsiTqMW/2NRBM0HQR7BIAlvU6XWwe/VWgeIw1BYaSRnncqhYg6b8HfNvn3WiA5qYQVLs4twIwuRaWAw2IEFFF/AUR4QQQfpKxr6oPWAxEeiGK+A9Hl6hG/AFEsBl55kT1fVGFhu4L3/yHlv6X8j5TfGDzotqcB/iMdbZpyfvfIJehNJUhUVhDhQgAp/8/Fb5uGMKIdl+9agYO0zZusQa9NOSCmew8gUY3Dm9rQmJi2MRFS7poZRsvYalukHtrUhXL+9NSaynmWMAFAr+KfU/5Vyk9ebs028I6hSA/rx0gvqwT9v5yPndg3tB9JcqNcbxrP1cJHKyqlFvu+tRcDExZ2WByQZ2Ng90Q7RdgGg2AeES5qfw2kqM33rZkCGDx1pBfX6dFXDXobpDTSbeo0K6S2F2obDb/bCv+NOBIigYy8CLgtE34dO4FVwWd/Q/Wmc+j2hdGCDFp/OZWgAzWqDHp7qYlXXvaBeBPrJYd+mdyQjrJ+4+DzJfBPDYKo91Uw9wz5vwADAFVdqz1vyN8hAAAAAElFTkSuQmCC",this._image_h_l_r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAAgCAYAAABkS8DlAAABIklEQVR4nO3WbQuCMBiG0dn//80tiAp6WT4zi+A+54vTTdMKuZZ20Y/H2/is9/r+aFxdNz5/qa7t1/Gr+dlj79ZX5mrnvz93p+3T9zKznbnnynW/OPfwnLXP/v2xqXvolXv8dH7Ld7Vhvs+cf/2v/d/vd3dfq8/0zbm1a1d/18L2o3fIzHbtnVi51p5zK8f6q3Xj8cza8XjrusH+oQEAcQQAAAQSAAAQSAAAQCABAACBBAAABBIAABBIAABAIAEAAIEEAAAEEgAAEEgAAEAgAQAAgQQAAAQSAAAQSAAAQCABAACBBAAABBIAABBIAABAIAEAAIEEAAAEEgAAEEgAAEAgAQAAgQQAAAQSAAAQSAAAQCABAACBBAAABBIAAJCmtXYCutDwWwUr9cEAAAAASUVORK5CYII=",this._image_h_r_l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAAgCAYAAABkS8DlAAAAAXNSR0IArs4c6QAAAFBlWElmTU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACAKADAAQAAAABAAAAIAAAAACVLBWUAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAC90lEQVR4Ae3WzVbbMBAG0PzBgcOa93/M7nCj2F8zUUILdDmXjWTNSLauBMz+19vbstvvl139+c5zza39sd7hUNe99mveZ/3dbs3/LF7W3j/IXbZ5hzI/Yzf7TXxux/fPY3n+W+wrOfP3Zs5P26wXk22d/bzenJf8jNf82h/73XLOh7KeS51b++fEw/R8uQfzetvzsubmbtyuPXLmteo6W/9Qv2lZ7te4fde6l6xT52Ysbf22jK3t+o7j8frdt/H1HTWe96RdY+v8OnfrX84u45kznrPm6Cde2/THnPRrW/vjK+e8OT6e61j6OZcaH/ZbfDvXy+/Qsc5Jv55TxtKOWNY/t39+bx/NSV6dk3VGrM4Zu/2fsbFW/Ou69RvGO2rOFlvq2Pwdc2w8Z/0tdpqeL/HTab0/iaWd1xt5iaWd587PyXt6evyOOT939LP8jCcv66d9fn78nsSH2cvLv3OS//p6mzvmJza3Izb+D64/ae/zR/zR3IyN+MfH/fz39+tY9j9yv9//6pw57+45/xvOfzv9ECBAgAABAt0EFADdTtx+CRAgQIDAWUAB4BoQIECAAIGGAgqAhoduywQIECBAQAHgDhAgQIAAgYYCCoCGh27LBAgQIEBAAeAOECBAgACBhgIKgIaHbssECBAgQEAB4A4QIECAAIGGAgqAhoduywQIECBAQAHgDhAgQIAAgYYCCoCGh27LBAgQIEBAAeAOECBAgACBhgIKgIaHbssECBAgQEAB4A4QIECAAIGGAgqAhoduywQIECBAQAHgDhAgQIAAgYYCCoCGh27LBAgQIEBAAeAOECBAgACBhgIKgIaHbssECBAgQEAB4A4QIECAAIGGAgqAhoduywQIECBAQAHgDhAgQIAAgYYCCoCGh27LBAgQIEBAAeAOECBAgACBhgIKgIaHbssECBAgQEAB4A4QIECAAIGGAgqAhoduywQIECBAQAHgDhAgQIAAgYYCCoCGh27LBAgQIEBAAeAOECBAgACBhgK/AX08dE/3SOoSAAAAAElFTkSuQmCC",this._image_v_b_t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAAgCAYAAABkS8DlAAADcklEQVR4nO3di27bMAyFYdpWLuv2/o+aJfFFgxOp5VjKdjDM6rD/A4KkbZyhwIBzTMluE/s+CAAA+J/EIH1/SL9ws/KLR/5rAADwZb2S4zHIMBzVN9YOzh8QN74XAAD8HTmLt2Z3Ns3PId7vR/MB9oPihtcAAGBfOq9Lr3WOR/0Icrt5BaAxb14rAwAA4OsUAC/HPxWAk4i0hSmAF/iT8zMAALCvnNXtQiHwwn/O8WkuAGdTALy1hFhoEQAAoA5ver+W4aoAXK8UAAAA/j1/UgDGED8mAHYZQB/ofYBQAgAAqMIL/qXN/L+F/6MAyPX6TUS6lQLgPYQCAABAFaUCsJbjY3oMQS4XXQDaFwoAywAAANRRCv6lApDP/odHAYi3Wy4A3YYCMFEAAACozgv9tUn+qApAnycA4cUCMFEAAACoxgv+LQVgSI8Q5OdPWwDawoE2/CcKAAAAVZTC3zuRn5wC0M0F4LuIHJx9AHb3/2TCnwIAAEAdugC0zmtRWW4LwP0xAYjPCcAhTQHswZ9uHOAUAQAAsC971t8WLunXBeD97H9+X14COBT2Adj1flsCKAAAAOzPC35vGcBb/291ATguFIBS8FMAAACoo1QASpP8993/7wUgLQGcUgEICxMAHfojVwIAAFCNLQDdCwUgPDcBXi5vqQAcCgUgOsFv9wIAAID9NE74ezf1swXgnt7X6CWAo7oh0FIBGLkSAACAqvJGPxv+paX8UW8AnH+Q7wR4NhsBvQIwqgnASAEAAKAaO/7fUgB6lfEx3wnwbDYCLhWAkQIAAEBVXgHwbuufc3xQ9/xJBeB6PacCcFooAF74jxQAAACqWAp/fVdfXQD6lO+PE/ggH0sA+koAUQdKOpACAADA1/BKARC1AbDNpSDE5wQgXwrYpQKwNgEYKQAAAFRTKgD27/roCYC+1f84TwDOZg9AMAfa9f+BCQAAAFW16iqAYJ717YBzjg9qiX96/jng2+2Uzv6PqgSUJgCDKQHcDRAAgP3Zs/9gvvY2Abb6ioC5AOTgP5vw17p0QKueKQAAANThFYCgzvytLn2dpwHHEO/3tfCX9P2ggr8zlwICAIB9NGb8vxT8OsePefw/XxIYpO9/mJ3/S/LGgqDW/ikAAADsp9kQ+J45v9/S9+NcALaGv5X/4W77IQAAoLI3EWl/AQ/TsX9wLtbWAAAAAElFTkSuQmCC",this._image_v_t_b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAAgCAYAAABkS8DlAAAAAXNSR0IArs4c6QAAAFBlWElmTU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACAKADAAQAAAABAAAAIAAAAACVLBWUAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAHhUlEQVR4Ae2d2W7bSBREucmy7IcA+f+fnAePtXCZqr68IhVLSGLATIA5DbS72QspHT9U9UbV79++vVdV9axIgAAEIAABCEDgf0Kgq3a7f/RdR8WXT37nSf0yfvIWdIMABCAAAQhA4DcJNHP7+jf7uXlvA/CmTHb2TEDe0A3uhRT7XpWOg+JU1bXLCRCAAAQgAAEIbEFgmqzXjq1iN+d/ruF13dfT9NbVT08XdXI8zZ33StMQKHsN94R/UMNBFZ5BIEAAAhCAAAQgsBEB6W8j/U0T4MF4GgGnj3TcA/ej4rmr9vuzM4rpHpQteXfOG1j8ffOMvSos/CWqHAMgCAQIQAACEIDAVgRW4m8TYB1uNRs/VtNkA5AmYK3jFv+zCs7qe+6m/f6ki92qsW+SZsAdLf6OLrcBKNP+Kuj1oEEPyjpVESAAAQhAAAIQ2IhALR1uZsH3TH4n0W4lymkAbAys4w7W8F5t+6muPeg/dbUMgAp25SYh9BZ5G4BavUpH3cwd0wBY9Ici/mEI7DZcR4AABCAAAQhAYCsCtWX6ugfAot9rTO5ZgDQAax33YN0GwPrtJf9j18gAyA3kVEGO5m0AHIoB0J8QeU8thOjnUoDTNAduT4AABCAAAQhAYAsC0xQzADHi92g/xD+WAH7UcQ3xp75qGpuAMADT4XDUbsBaJqCeR/Ke4i8zAEqLAVCaIn9rAGIJYJTjcDkBAhCAAAQgAIGNCEi2lxmAZSkgR/85sE8d9wA/l/FPujh6E+BRmUYi3tSNNhTaIaQBsLtw8BG/2FhwHfmrj5cCxkblaoQBKKD4AwEIQAACENiIQAzcGwlwGf3rsq3GMZcAYv1/reOzAZB+n1UpA/Dy4uMAthFW+0E32in94BzUwSI/qFNJnVcc53KXESAAAQhAAAIQ2I6A5Lpq9MfRum0zUGYAXKZr1zs6eMe+Ndyn+C7KH7v6+fmoYo3xPZxvBqVlF6HLZAuio+rKDIA6W/B1A5//TyOgonJKoDyBPxCAAAQgAAEIbELAS/eN9NknAWppeCsNb10m+S5lNzpuDdfSvTS8HP/vqsPhXY2t4EXY9ZG9/u8phFqL+8UA6E7aJFDW+Yvou63arDcA2gQQIAABCEAAAhDYjoA12iP9YgK0lu+0GIC57J6O9xLsi3T/1E0vL+8e/auxR/flHKHyZQlAdy4GQOWut+hnXIu/y1xPgAAEIAABCEBgOwIxUz9q/C7h1+g+zEBcF3NwR8fLuwDU/tQ1h8O/cgLe0NdrE6BfCNQpbwdxuwRg8W+8vHA1Abn730cEMQDb/cN5EgQgAAEIQCAJlNG/hD7Ef53e03Gf3ov3BehVwN4DMIu6VDxmAGQAtALgtYUyAyCnYIVPob8xAaWvTwkQIAABCEAAAhDYmkARfonwYgBm4S+m4KOOFwMgXb/EEsA4xuheGwD1yTtVWNFjA4G/ii9jlL+IfxwLtPCPpd7tCBCAAAQgAAEIbEkgtNrr/2kCmqaUze/3uQ7kVT/qmKB13C8EunRtnAKwiNsVxAZAO4b5BldxTwOwFv6cFfD7AwgQgAAEIAABCGxLYPSreDRgT81OI+BZfEeHmBGYZvH3gN96X2YAvAegV7uz0usJAFXaTSwhDYDTtQmIlwdhABZS5CAAAQhAAALbELDIW/Rz4G5DkGYgDcDySXIGwL8H0PsYoN8DMEjXPfUf7wBwp3AVS7dZ6DWlEHsBMg1DgAFYSJGDAAQgAAEIbEMgRvf5PoCSSsLzdEDMAOQnkY5PsQQwGwAdA5TY+6d9y+hfSh5vAfzROcQMwDL693WO/qMuH0EKAQhAAAIQgMAWBNZi77xmA8rav4/x39PxeKePlwCGbtrtjmqT7//3C4CaMvq/19GC7zP/FnwMwBb/Wp4BAQhAAAIQeEzAWu3oWfvMW/zzet0zdPu6DNB1r69HqX+e/S9vANQ97joH9Q3hb9vFBPjmLidAAAIQgAAEILAtAeu1Q+r2oDf1W8QVStn601jEFTR7P1bDMJQfA+r860F++Y83DrhT39feFbju17mTQ9ct4p9lma47kIcABCAAAQhA4GsJpFan4M8a7ofe1XFruPcBKHZV256qp6dWbiDE352fnrQb8NYAlG9goc/oAud9MwIEIAABCEAAAn+GgAbt19H+rOG+9sa+m5D67bRtZQBeX09l5H+5LAbAN/hVA+A9AQQIQAACEIAABP4MgU4H+FKzU7/zev2J1gZAmwE7jfaP89T/YgC8gcAhb+BOS4h8HCWo1H9dt7QiBwEIQAACEIDA1xM4n0OzvYwfYVnC/6jjMZO/28kANM1ZsdZvAoSDyMaR5k2iQ36NtSFY57OeFAIQgAAEIACBbQgcDqnVy8DdT36k4/NMQFd9/352s+rt7Z4BWD78Wugf5ZfW5CAAAQhAAAIQ2IJADtz9rEd516V2Xw3A6WQDUFX7fU4d3N6gVN75M9/g5mF3mlEEAQhAAAIQgMAXErAeW/jX4v/ocWkCVK/f+Z2ena7arvOr4muWNf8rCjIQgAAEIACBv47AL+m4TwlcFH/W+K/7dnwgCEAAAhCAAAQ+T+A/hVJn6rP9qnIAAAAASUVORK5CYII=",this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchWallHeights=[],this._drawEntity=void 0,this._lineLabel=void 0,this._polygonLabel=void 0,t&&t.isDrawPoint?this._isDrawPoint=t.isDrawPoint:this._isDrawPoint=!1,t&&t.isRetainDrawPoint?this._isRetainDrawPoint=t.isRetainDrawPoint:this._isRetainDrawPoint=!1,this._param={lineWidth:3,lineColor:"rgba(0,255,0,0.75)",outlineWidth:2,outlineColor:"rgba(255,255,255,1)",polygonColor:"rgba(0,255,0,0.5)",wallHeight:30,power:.25,odlineHeight:1e3,odlineCount:50,text:"\u91D1\u7530\u4EA7\u4E1A\u96C6\u56E2",duration:1500,count:1,direction_h:"horizontal",direction_v:"vertical",order_add:"+",order_minus:"-",houseColor:"rgba(0,255,0,0.95)"},t&&t.iconType)switch(t.iconType){case ve.IconType.Normal:this._sketchPointImage=this._iconNormal;break;case ve.IconType.Blue:this._sketchPointImage=this._iconBlue;break;case ve.IconType.Green:this._sketchPointImage=this._iconGreen;break;case ve.IconType.Violet:this._sketchPointImage=this._iconViolet;break;default:this._sketchPointImage=this._iconNormal;break}else this._sketchPointImage=this._iconNormal;this._canvasWidth=this._viewer.scene.canvas.width,this._canvasHeight=this._viewer.scene.canvas.height,this._isRuntimeApp()&&(this._viewer._cesiumWidget._supportsImageRenderingPixelated=Cesium.FeatureDetection.supportsImageRenderingPixelated(),this._viewer._cesiumWidget._forceResize=!0,Cesium.FeatureDetection.supportsImageRenderingPixelated()&&(this._viewer.resolutionScale=2.6))}_arcToDegree(t){return t/Math.PI*180}_toColor(t,r,i,n){let o=new Cesium.Color(0,0,0,1);return typeof t!="number"||typeof r!="number"||typeof i!="number"||typeof n!="number"||t<0||t>255||r<0||r>255||i<0||i>255||n<0||n>1?o:new Cesium.Color(t/255,r/255,i/255,n)}_toColorFromArray(t){if(!t||t.length===void 0||t.length===0)return new Cesium.Color(255/255,255/255,255/255,1);let r=255,i=255,n=255,o=1;return t.length===1?r=parseInt(t[0]):t.length===2?(r=parseInt(t[0]),i=parseInt(t[1])):t.length===3?(r=parseInt(t[0]),i=parseInt(t[1]),n=parseInt(t[2])):t.length>=4&&(r=parseInt(t[0]),i=parseInt(t[1]),n=parseInt(t[2]),o=parseFloat(t[3])),new Cesium.Color(r/255,i/255,n/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(t){let r,i=this._viewer.scene.camera.getPickRay(t),n=this._viewer.scene.globe.pick(i,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(n),Cesium.defined(n)&&(r={x:n.x,y:n.y,z:n.z}),r}_getScreenClickPositionAndHeight(t){var r=void 0,i=void 0,n=void 0,o=this._viewer.scene.camera.getPickRay(t),s=this._viewer.scene.globe.pick(o,this._viewer.scene),l=Cesium.Ellipsoid.WGS84.cartesianToCartographic(s);l=Cesium.Cartographic.fromCartesian(s);var a=this._viewer.scene.pick(t);if(a===void 0&&Cesium.defined(l))r=this._arcToDegree(l.longitude),i=this._arcToDegree(l.latitude),n=l.height;else{var c=this._viewer.scene.pickPosition(t);if(Cesium.defined(c)){var l=Cesium.Cartographic.fromCartesian(c);Cesium.defined(l)&&(r=this._arcToDegree(l.longitude),i=this._arcToDegree(l.latitude),n=l.height)}}return{lng:r,lat:i,height:n}}_transfromFromScreenPoint(t){let r=this._getScreenClickPositionAndHeight(t);if(r.lng!=null){var i=Cesium.Cartesian3.fromDegrees(r.lng,r.lat,r.height);return{gLocation:r,sLocation:i}}else return{gLocation:void 0,sLocation:void 0}}_removeEntityByName(t){var r=this._entities;if(!(!r||!r.values)){for(var i=[],n=0;n<r.values.length;n++)r.values[n].name==t&&i.push(r.values[n]);for(var n=0;n<i.length;n++)r.remove(i[n]);this._updateScene()}}_removeEntityByObject(t){!Cesium.defined(t)||this._entities.remove(t)}_createPoint(t,r){let i=this,n=new Cesium.Entity({name:i._sketchEntityName+"_Point",position:t,billboard:{image:i._sketchPointImage,horizontalOrigin:Cesium.HorizontalOrigin.center,verticalOrigin:Cesium.VerticalOrigin.bottom,scale:.5,pixelOffset:new Cesium.Cartesian2(0,-11),disableDepthTestDistance:Number.POSITIVE_INFINITY}});r&&(n.label={text:r,font:"12px sans-serif",fillColor:this._toColor(255,255,255,1),outlineColor:this._toColor(0,154,94,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:this._toColor(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}),this._entities.add(n),this._pointEntitys.push(n),this._updateScene()}_removePointEntitys(){this._removeEntityByName(this._sketchEntityName+"_Point"),this._pointEntitys=[]}_callUpdaeEllipseCenterPosition(){let t=this;return function(){let r=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[0]),i=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[1]);return t._sketchEllipseCenterPosition=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude),i.height),t._sketchEllipseCenterPosition}}_callUpdateEllipseMinorAxis(t){let r=this;return function(){return t===void 0||t.length===void 0||t.length<2?r._sketchEllipseRadius=0:(r._sketchEllipseRadius=r._calculateEllipseMinorAxis(t[0],t[1]),r._sketchEllipseRadius<=0&&(r._sketchEllipseRadius=1)),r._sketchEllipseRadius}}_calculateEllipseMinorAxis(t,r){let i=Cesium.Cartographic.fromCartesian(t),n=Cesium.Cartographic.fromCartesian(r),o=new Cesium.EllipsoidGeodesic;return o.setEndPoints(i,n),o.surfaceDistance}_calculateEllipseOutlineCoordinate(t,r){let i=t,n=r,o=[];for(let s=5;s<360;){let l=this._rotatedPointByAngle(n,i,s);o.push(l),s=s+5}return o.push(o[0]),o}_callEllipseOutlineCoordinate(t){let r=this;return function(){return r._ellipseOutlineCoordinates=r._calculateEllipseOutlineCoordinate(t[0],t[1]),r._ellipseOutlineCoordinates}}_rotatedPointByAngle(t,r,i){var n=Cesium.Transforms.eastNorthUpToFixedFrame(r),o=Cesium.Matrix4.inverse(n,new Cesium.Matrix4);Cesium.Matrix4.multiplyByPoint(o,r,new Cesium.Cartesian3);var s=Cesium.Matrix4.multiplyByPoint(o,t,new Cesium.Cartesian3),l=s.x*Math.cos(Cesium.Math.toRadians(i))+s.y*Math.sin(Cesium.Math.toRadians(i)),a=s.y*Math.cos(Cesium.Math.toRadians(i))-s.x*Math.sin(Cesium.Math.toRadians(i)),c=s.z;return Cesium.Matrix4.multiplyByPoint(n,new Cesium.Cartesian3(l,a,c),new Cesium.Cartesian3)}_callUpdateRectangleCoordinates(t){let r=this;return function(){let i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t[0]),n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t[1]),o=Cesium.Math.toDegrees(i.longitude),s=Cesium.Math.toDegrees(i.latitude),l=Cesium.Math.toDegrees(n.longitude),a=Cesium.Math.toDegrees(n.latitude);r._rectangleCoordinates=[0,0,1,1],o<l?(r._rectangleCoordinates[0]=o,r._rectangleCoordinates[2]=l):(r._rectangleCoordinates[0]=l,r._rectangleCoordinates[2]=o),s<a?(r._rectangleCoordinates[1]=s,r._rectangleCoordinates[3]=a):(r._rectangleCoordinates[1]=a,r._rectangleCoordinates[3]=s);let c=Cesium.Rectangle.fromDegrees(r._rectangleCoordinates[0],r._rectangleCoordinates[1],r._rectangleCoordinates[2],r._rectangleCoordinates[3]),u=r._calculateRectangleOutlineCoordinates(c);return r._rectangleOutlineCoordinates=u.cPoints,r._sketchOutputPoints=u.gPoints,c}}_calculateRectangleOutlineCoordinates(t){let r=Cesium.Rectangle.southeast(t),i=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.southwest(t),o=Cesium.Cartographic.toCartesian(n),s=Cesium.Rectangle.northeast(t),l=Cesium.Cartographic.toCartesian(s),a=Cesium.Rectangle.northwest(t),c=Cesium.Cartographic.toCartesian(a),u=[];return u.push({lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),height:n.height}),u.push({lng:Cesium.Math.toDegrees(r.longitude),lat:Cesium.Math.toDegrees(r.latitude),height:r.height}),u.push({lng:Cesium.Math.toDegrees(s.longitude),lat:Cesium.Math.toDegrees(s.latitude),height:s.height}),u.push({lng:Cesium.Math.toDegrees(a.longitude),lat:Cesium.Math.toDegrees(a.latitude),height:a.height}),u.push({lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),height:n.height}),{cPoints:[o,i,l,c,o],gPoints:u}}_callUpdateRectangleOutlineCoordinates(){let t=this;return function(){return t._rectangleOutlineCoordinates}}_materialTextImageProperty(t){this._canvasId="canvasJt";let r=document.getElementById(this._canvasId);r!=null&&document.body.removeChild(r),r=document.createElement("canvas"),r.id=this._canvasId,r.setAttribute("width","1024px"),r.setAttribute("height","256px"),document.body.appendChild(r);let i=r.getContext("2d");i.fillStyle=t.color===void 0?"rgba(255,0,0,1)":t.color,i.font="bold 240px \u5FAE\u8F6F\u96C5\u9ED1",i.textAlign="left",i.textBaseline="bottom",i.fillText(t.text,12,250,1e3);let n=new Cesium.ImageMaterialProperty({image:r,transparent:!0});return n._param={color:i.fillStyle,text:t.text},n}_materialColorProperty(t){let r="rgba(0,255,0,1)";t!==void 0&&t.color!==void 0&&(r=t.color);let i=new Cesium.ColorMaterialProperty(Cesium.Color.fromCssColorString(r));return i._param={color:r},i}_materialPolylineArrowProperty(t){let r="rgba(0,255,0,1)";t!==void 0&&t.color!==void 0&&(r=t.color);let i=new Cesium.PolylineArrowMaterialProperty(Cesium.Color.fromCssColorString(r));return i._param={color:r},i}_materialPolylineGlowProperty(t){let r="rgba(0,255,0,1)";t!==void 0&&t.color!==void 0&&(r=t.color);let i=.25;t!==void 0&&t.power!==void 0&&typeof t.power=="number"&&(i=t.power);let n=new Cesium.PolylineGlowMaterialProperty({color:Cesium.Color.fromCssColorString(r),glowPower:i});return n._param={color:r,power:i},n}_materialPolylineOutlineProperty(t){let r="rgba(0,255,0,1)",i="rgba(255,255,255,1.0)",n=1.2;t!==void 0&&t.color!==void 0&&(r=t.color),t!==void 0&&t.outlineColor!==void 0&&(i=t.outlineColor),t!==void 0&&t.outlineWidth!==void 0&&typeof t.outlineWidth=="number"&&(n=t.outlineWidth);let o=new Cesium.PolylineOutlineMaterialProperty({color:Cesium.Color.fromCssColorString(r),outlineColor:Cesium.Color.fromCssColorString(i),outlineWidth:n});return o._param={color:r,outlineColor:i,outlineWidth:n},o}_clear(t){t!=null&&t===!0&&(this._removeEntityByName(this._sketchEntityName),this._removePointEntitys()),this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchWallHeights=[],this._drawEntity=void 0,this._removeOperationDom(),this._tooltipRemove(),this._drawEventHandler!==null&&this._drawEventHandler!==void 0&&this._drawEventHandler.isDestroyed()===!1&&this._clearEvent(this._drawEventHandler)}}Object.assign(ve.prototype,{setLabel:function(e){e||(e={lineLabel:void 0,polygonLabel:void 0}),e.lineLabel&&(this._lineLabel=e.lineLabel),e.polygonLabel&&(this._lineLabel=e.polygonLabel)}});Object.assign(ve.prototype,{_registerLeftClickEvent:function(e,t){let r=this;!e||e.setInputAction(function(i){r._lock=!0,clearTimeout(r._timer),r._timer=setTimeout(function(){t&&t(i),r._lock=!1},200)},Cesium.ScreenSpaceEventType.LEFT_CLICK)},_registerLeftDoubleClickEvent:function(e,t){let r=this;!e||e.setInputAction(function(i){clearTimeout(r._timer),r._lock=!1,t&&t(i)},Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK)},_registerMouseMoveEvent:function(e,t){let r=this;!e||e.setInputAction(function(i){(r._lock===void 0||r._lock===!1)&&t&&t(i)},Cesium.ScreenSpaceEventType.MOUSE_MOVE)},_registerRightClickEvent:function(e,t){!e||e.setInputAction(function(r){t&&t(r)},Cesium.ScreenSpaceEventType.RIGHT_CLICK)},_registerLeftDownEvent:function(e,t){!e||e.setInputAction(function(r){t&&t(r)},Cesium.ScreenSpaceEventType.LEFT_DOWN)},_registerLeftUpEvent:function(e,t){!e||e.setInputAction(function(r){t&&t(r)},Cesium.ScreenSpaceEventType.LEFT_UP)},_clearEvent:function(e){this._endTooltip(),this._removeOperationDom(),e&&(e.destroy(),e=null)}});Object.assign(ve.prototype,{_createPolyline:function(e){let t=this,r=ve.initEditPropertyParams(),i=t._param.lineWidth,n=this._materialColorProperty({color:t._param.lineColor});r.id=ve.DrawType.Polyline,e!==void 0&&e===ve.PolylineType.ArrowsPolyline?(n=this._materialPolylineArrowProperty({color:t._param.lineColor}),i=t._param.lineWidth*3,r.color=t._param.lineColor,r.id=ve.DrawType.ArrowPolyline):e!==void 0&&e===ve.PolylineType.GrowPolyline?(n=this._materialPolylineGlowProperty({color:t._param.lineColor,power:t._param.power}),i=t._param.lineWidth*3,r.color=t._param.lineColor,r.power=t._param.power,r.id=ve.DrawType.GrowPolyline):e!==void 0&&e===ve.PolylineType.OutlinePolyline?(n=this._materialPolylineOutlineProperty({color:t._param.lineColor,outlineColor:t._param.outlineColor,outlineWidth:t._param.outlineWidth}),i=t._param.lineWidth*2,r.color=t._param.lineColor,r.outlineColor=t._param.outlineColor,r.outlineWidth=t._param.outlineWidth,r.id=ve.DrawType.OutlinePolyline):e!==void 0&&e===ve.PolylineType.DynamicPolyline&&(n=new qa({viewer:t._viewer,trailImage:t._image_h_l_r,duration:t._param.duration,color:Cesium.Color.fromCssColorString(t._param.lineColor),param:{direction:t._param.direction_h,count:t._param.count,order:t._param.order_minus}}),i=t._param.lineWidth,r.color=t._param.lineColor,r.duration=t._param.duration,r.direction=t._param.direction_h,r.count=t._param.count,r.order=t._param.order_minus,r.id=ve.DrawType.DynamicPolyline),r.lineWidth=i;let o=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return t._sketchTempPoints},!1),material:n,width:i,clampToGround:!0}});this._drawEntity=this._entities.add(o),this._drawEntity.setParams(r)},_createDoodlePolyline:function(){let e=this,t=new Cesium.Entity({name:e._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return e._sketchTempPoints},!1),material:e._doodlePolylineColor===void 0?Cesium.Color.YELLOW:Cesium.Color.fromCssColorString(e._doodlePolylineColor),width:3,clampToGround:e._doodlePolylineIsFitModel===void 0?!1:e._doodlePolylineIsFitModel}});this._drawEntity=this._entities.add(t)},_updateDoodlePolyline(){this._drawEntity.polyline.positions=this._sketchTempPoints},_updatePolyline:function(e){this._drawEntity.polyline.positions=this._sketchPoints,this._drawEntity.setEntityType(ve.DrawType.Polyline),e!=null&&e===!0&&(this._removePointEntitys(),this._setEntityIsEdit(this._drawEntity))},_createSpatialPolyline:function(){let e=this,t=ve.initEditPropertyParams(),r=this._materialColorProperty({color:e._param.lineColor});t.id=ve.DrawType.SpatialLine,t.color=e._param.lineColor,t.lineWidth=e._param.lineWidth;let i=new Cesium.Entity({name:e._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return e._sketchTempPoints},!1),material:r,width:e._param.lineWidth,clampToGround:!1}});this._drawEntity=this._entities.add(i),this._drawEntity.setParams(t)},_updateSpatialPolyline:function(e){this._drawEntity.polyline.positions=this._sketchPoints,this._drawEntity.setEntityType(ve.DrawType.SpatialLine),e!=null&&e===!0&&(this._removePointEntitys(),this._setEntityIsEdit(this._drawEntity))},_createPolygon:function(e){let t=this,r=ve.initEditPropertyParams(),i=this._materialColorProperty({color:t._param.polygonColor}),n=this._materialColorProperty({color:t._param.outlineColor}),o=new Cesium.Entity({name:t._sketchEntityName,polygon:{show:!0,hierarchy:new Cesium.CallbackProperty(function(){return{positions:t._sketchTempPoints}},!1),material:i,classificationType:Cesium.ClassificationType.BOTH},polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return t._sketchTempPoints},!1),material:n,width:t._param.outlineWidth,clampToGround:!0}});r.color=t._param.polygonColor,r.outlineColor=t._param.outlineColor,r.outlineWidth=t._param.outlineWidth,this._drawEntity=this._entities.add(o),e!==void 0&&e===ve.PolygonType.NormalPolygon?(this._drawEntity.setEntityType(ve.DrawType.Polygon),r.id=ve.DrawType.Polygon):e!==void 0&&e===ve.PolygonType.HousePolygon&&(this._drawEntity.setEntityType(ve.DrawType.House),r.id=ve.DrawType.House),this._drawEntity.setParams(r)},_updatePolygon:function(e){let t=this,r=this._materialColorProperty({color:t._param.houseColor}),i=this._drawEntity.getEntityType();if(i===ve.DrawType.Polygon)this._drawEntity.polygon.hierarchy={positions:t._sketchPoints},this._drawEntity.polyline.positions=this._sketchPoints;else if(i===ve.DrawType.House){let n=this._drawEntity.getParams();this._removeEntityByObject(this._drawEntity);let o=parseFloat(this._sketchOutputPoints[0].height),s=o+parseInt(t._param.wallHeight),l=new Cesium.Entity({name:t._sketchEntityName,polygon:{show:!0,hierarchy:{positions:t._sketchPoints},extrudedHeight:s,material:r}});this._drawEntity=this._entities.add(l),this._drawEntity.setEntityType(i),n.height=t._param.wallHeight,n.bottomHeight=o,n.color=t._param.houseColor,this._drawEntity.setParams(n)}e!=null&&e===!0&&(this._removePointEntitys(),this._setEntityIsEdit(this._drawEntity))},_createRectangle:function(){let e=this,t=ve.initEditPropertyParams(),r=this._materialColorProperty({color:e._param.polygonColor}),i=this._materialColorProperty({color:e._param.outlineColor}),n=new Cesium.Entity({name:e._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(e._callUpdateRectangleOutlineCoordinates(),!1),material:i,width:e._param.outlineWidth,clampToGround:!0},rectangle:{show:!0,coordinates:new Cesium.CallbackProperty(e._callUpdateRectangleCoordinates(e._sketchTempPoints),!1),material:r,classificationType:Cesium.ClassificationType.BOTH}});t.id=ve.DrawType.Rectangle,t.color=e._param.polygonColor,t.outlineColor=e._param.outlineColor,t.outlineWidth=e._param.outlineWidth,this._drawEntity=this._entities.add(n),this._drawEntity.setParams(t)},_updateRectangle(e){this._drawEntity.polyline.positions=this._rectangleOutlineCoordinates;let t=this._rectangleCoordinates;this._drawEntity.rectangle.coordinates=Cesium.Rectangle.fromDegrees(t[0],t[1],t[2],t[3]),this._drawEntity.setEntityType(ve.DrawType.Rectangle),e!=null&&e===!0&&this._setEntityIsEdit(this._drawEntity)},_createCircle:function(e,t){let r=this,i=ve.initEditPropertyParams(),n=this._materialColorProperty({color:r._param.polygonColor}),o=this._materialColorProperty({color:r._param.outlineColor});t!=null&&t===ve.CircleType.DynamicCircle&&(n=new Uv({viewer:r._viewer,duration:r._param.duration,color:Cesium.Color.fromCssColorString(r._param.polygonColor),count:r._param.count})),this._sketchEllipseCenterPosition=e.clone();let s=new Cesium.Entity({name:r._sketchEntityName,position:e,ellipse:{show:!0,semiMinorAxis:new Cesium.CallbackProperty(r._callUpdateEllipseMinorAxis(r._sketchTempPoints),!1),semiMajorAxis:new Cesium.CallbackProperty(r._callUpdateEllipseMinorAxis(r._sketchTempPoints),!1),material:n,classificationType:Cesium.ClassificationType.BOTH}});(t===void 0||t===ve.CircleType.ColorCircle)&&(s.polyline={show:!0,positions:new Cesium.CallbackProperty(r._callEllipseOutlineCoordinate(r._sketchTempPoints),!1),material:o,width:r._param.outlineWidth,clampToGround:!0}),this._drawEntity=this._entities.add(s),t===void 0||t===ve.CircleType.ColorCircle?(this._drawEntity.setEntityType(ve.DrawType.Circle),i.id=ve.DrawType.Circle,i.color=r._param.polygonColor,i.outlineColor=r._param.outlineColor,i.outlineWidth=r._param.outlineWidth):t!=null&&t===ve.CircleType.DynamicCircle&&(this._drawEntity.setEntityType(ve.DrawType.DynamicCircle),i.id=ve.DrawType.DynamicCircle,i.color=r._param.polygonColor,i.duration=r._param.duration,i.count=r._param.count),this._drawEntity.setParams(i)},_updateCircle(e){this._drawEntity.position=this._sketchEllipseCenterPosition;let t=this._sketchTempPoints.first(),r=this._sketchTempPoints.last();this._ellipseOutlineCoordinates=this._calculateEllipseOutlineCoordinate(t,r),this._sketchEllipseRadius=this._calculateEllipseMinorAxis(t,r),this._drawEntity.polyline!=null&&(this._drawEntity.polyline.positions=this._ellipseOutlineCoordinates),this._drawEntity.ellipse.semiMajorAxis=this._sketchEllipseRadius,this._drawEntity.ellipse.semiMinorAxis=this._sketchEllipseRadius,e!=null&&e===!0&&this._setEntityIsEdit(this._drawEntity)},_createWall:function(e){let t=this,r=ve.initEditPropertyParams(),i=this._materialColorProperty({color:t._param.polygonColor});r.color=t._param.polygonColor,e!==void 0&&e===ve.WallType.TextWall?(i=this._materialTextImageProperty({color:t._param.polygonColor,text:t._param.text}),r.text=t._param.text,r.color=t._param.polygonColor):e!==void 0&&e===ve.WallType.DynamicWall&&(i=new qa({viewer:t._viewer,trailImage:t._image_v_t_b,duration:t._param.duration,color:Cesium.Color.fromCssColorString(t._param.polygonColor),param:{count:t._param.count,direction:t._param.direction_v,order:t._param.order_minus}}),r.color=t._param.polygonColor,r.duration=t._param.duration,r.direction=t._param.direction_v,r.count=t._param.count,r.order=t._param.order_minus);let n=new Cesium.Entity({name:t._sketchEntityName,wall:{show:!0,positions:new Cesium.CallbackProperty(function(){return t._sketchTempPoints},!1),minimumHeights:new Cesium.CallbackProperty(function(){return t._sketchWallHeights},!1),maximumHeights:new Cesium.CallbackProperty(function(){t._sketchWallMaxHeights=[];for(let o=0;o<t._sketchWallHeights.length;o++)t._sketchWallMaxHeights.push(t._sketchWallHeights[o]+t._param.wallHeight);return t._sketchWallMaxHeights},!1),material:i}});this._drawEntity=this._entities.add(n),r.height=this._param.wallHeight,e===void 0||e===ve.WallType.ColorWall?(this._drawEntity.setEntityType(ve.DrawType.NormalWall),r.id=ve.DrawType.NormalWall):e!==void 0&&e===ve.WallType.DynamicWall?(this._drawEntity.setEntityType(ve.DrawType.DynamicWall),r.id=ve.DrawType.DynamicWall):e!==void 0&&e===ve.WallType.TextWall&&(this._drawEntity.setEntityType(ve.DrawType.TextWall),r.id=ve.DrawType.TextWall),this._drawEntity.setParams(r)},_updateWall:function(e){let t=this._sketchWallHeights.length,r=this._sketchWallMaxHeights.length,i=this._sketchPoints.length;t===r&&t-i===1?(this._sketchWallHeights.pop(),this._sketchWallMaxHeights.pop(),this._drawEntity.wall.positions=this._sketchPoints,this._drawEntity.wall.minimumHeights=this._sketchWallHeights,this._drawEntity.wall.maximumHeights=this._sketchWallMaxHeights,e!=null&&e===!0&&(this._removePointEntitys(),this._setEntityIsEdit(this._drawEntity))):this._console(t,r,i)},_createVideoWall:function(){let e=this,t=new Cesium.Entity({name:e._sketchEntityName,position:e._sketchOutputPoints[0],wall:{show:!0,positions:new Cesium.CallbackProperty(function(){let r=e._sketchOutputPoints[0],i=e._sketchOutputPoints[1];return e._wallPositions=[],e._wallPositions.push(Cesium.Cartesian3.fromDegrees(r.lng,r.lat,r.height)),e._wallPositions.push(Cesium.Cartesian3.fromDegrees(i.lng,i.lat,r.height)),e._wallPositions},!1),maximumHeights:new Cesium.CallbackProperty(function(){e._sketchWallHeights=[];let r=e._sketchOutputPoints[0];return e._sketchWallHeights.push(r.height),e._sketchWallHeights.push(r.height),e._sketchWallHeights},!1),minimumHeights:new Cesium.CallbackProperty(function(){e._sketchWallMaxHeights=[];let r=e._sketchOutputPoints[1];return e._sketchWallMaxHeights.push(r.height),e._sketchWallMaxHeights.push(r.height),e._sketchWallMaxHeights},!1),material:Cesium.Color.fromCssColorString(e._param.polygonColor),outline:!0,outlineColor:Cesium.Color.fromCssColorString(e._param.outlineColor),outlineWidth:e._param.outlineWidth}});e._drawEntity=e._entities.add(t)},_updateVideoWall:function(e){let t=ve.initEditPropertyParams();t.id=ve.DrawType.VideoWall;let r=document.getElementById("wallVideo");r!==null&&document.body.removeChild(r),r=document.createElement("video"),r.id="wallVideo",r.setAttribute("crossorigin","anonymous"),r.setAttribute("width","1024px"),r.setAttribute("height","256px"),r.setAttribute("controls","controls"),r.setAttribute("src","https://lf3-cdn-tos.bytescm.com/obj/eden-cn/lmeh7pfuho/campus/campus_intro_20200522.mp4"),r.setAttribute("loop","loop"),r.play(),document.body.appendChild(r),this._drawEntity.wall.positions=this._wallPositions,this._drawEntity.wall.minimumHeights=this._sketchWallHeights,this._drawEntity.wall.maximumHeights=this._sketchWallMaxHeights,t.height=this._sketchWallMaxHeights[0]-this._sketchWallHeights[0],this._drawEntity.wall.material=r,this._removePointEntitys(),this._drawEntity.setEntityType(ve.DrawType.VideoWall),t.videoUrl="https://lf3-cdn-tos.bytescm.com/obj/eden-cn/lmeh7pfuho/campus/campus_intro_20200522.mp4",t.id=ve.DrawType.VideoWall,this._drawEntity.setParams(t),e!=null&&e===!0&&this._setEntityIsEdit(this._drawEntity)},_calculateOdlinePositios:function(e,t,r,i){let n=this._cartesian3ToGeo(e),o=this._cartesian3ToGeo(t);var s=r&&r<1e3?r:1e3,l=Math.abs(n.longitude-o.longitude)>Math.abs(n.latitude-o.latitude)?Math.abs(n.longitude-o.longitude):Math.abs(n.latitude-o.latitude),a=i&&i>50?i:50,c=[],u=[],p=l/a,h=n.height>o.height?n.height:o.height,m=h+s,y=n.height,v=o.height;if(Math.abs(n.longitude-o.longitude)>Math.abs(n.latitude-o.latitude)){var _=(o.latitude-n.latitude)/a;n.longitude-o.longitude>0&&(p=-p);for(var x=1;x<a;x++){var S=s-Math.pow(-.5*l+Math.abs(p)*x,2)*4*s/Math.pow(l,2),C=n.longitude+p*x,E=n.latitude+_*x,T=void 0;Math.abs(p)*x==.5*l?T=m:Math.abs(p)*x<.5*l?T=(m-y)/s*S+y:T=(m-v)/s*S+v,u.push([C,E,T])}}else{var w=(o.longitude-n.longitude)/a;n.latitude-o.latitude>0&&(p=-p);for(var x=1;x<a;x++){var S=s-Math.pow(-.5*l+Math.abs(p)*x,2)*4*s/Math.pow(l,2),C=n.longitude+w*x,E=n.latitude+p*x,T=void 0;Math.abs(p)*x==.5*l?T=m:Math.abs(p)*x<.5*l?T=(m-y)/s*S+y:T=(m-v)/s*S+v,u.push([C,E,T])}}c.push([n.longitude,n.latitude,n.height]);for(var x=0;x<u.length;x++)c.push(u[x]);c.push([o.longitude,o.latitude,o.height]);let I=[];for(let M=0;M<c.length;M++)I.push(Cesium.Cartesian3.fromDegrees(c[M][0],c[M][1],c[M][2]));return I},_createOdline:function(e){let t=this;if(e!==void 0&&e===!0){let o=new Cesium.Entity({name:this._sketchEntityName});this._odlineFatherEntity=this._entities.add(o);let s=ve.initEditPropertyParams();s.id=ve.DrawType.OdLine,s.color=t._param.polygonColor,s.duration=t._param.duration,s.direction=t._param.direction_h,s.count=t._param.count,s.order=t._param.order_add,s.odlineHeight=t._param.odlineHeight,s.odlineCount=t._param.odlineCount,s.lineWidth=t._param.lineWidth*3,this._odlineFatherEntity.setParams(s),this._odlineEntitys=[]}let r=this._odlineFatherEntity.getParams(),i=new qa({viewer:t._viewer,trailImage:t._image_arrow_reverse,duration:r.duration,color:Cesium.Color.fromCssColorString(r.color),param:{direction:r.direction,count:r.count,order:r.order}}),n=new Cesium.Entity({name:t._sketchEntityName,parent:this._odlineFatherEntity,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){let o=t._sketchTempPoints[0],s=t._sketchTempPoints[t._sketchTempPoints.length-1];return t._calculateOdlinePositios(o,s,parseInt(r.odlineHeight),parseInt(r.odlineCount))},!1),material:i,width:r.lineWidth,clampToGround:!1}});this._drawEntity=this._entities.add(n)},_updateOdline:function(e,t){if(e!==void 0&&e===!0)t!==void 0&&t===!0&&(this._drawEntity.setEntityType(ve.DrawType.OdLine),this._setEntityIsEdit(this._drawEntity),this._drawEntity.parent.setIsEdit(!0));else{let r=this._drawEntity.parent.getParams(),i=this._sketchTempPoints[0],n=this._sketchTempPoints[this._sketchTempPoints.length-1],o=this._calculateOdlinePositios(i,n,parseInt(r.odlineHeight),parseInt(r.odlineCount));this._drawEntity.polyline.positions=o,this._drawEntity.setEntityType(ve.DrawType.OdLine),this._odlineEntitys.push(this._drawEntity),t!==void 0&&t===!0&&this._drawEntity.setIsEdit(!0)}},_guid(){function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},_console(...e){console.log("===>>>",e)}});Object.assign(ve.prototype,{_drawMovingDoubleTooltip(e){this._updateTooltip("\u5DE6\u952E\u5355\u51FB\u7ED8\u5236,\u53F3\u952E\u5355\u51FB\u64A4\u9500<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",e)},_drawMovingSimpleTooltip(e){this._updateTooltip("\u5DE6\u952E\u5355\u51FB\u7ED3\u675F\u7ED8\u5236",e)},_removeLastDrawPointEntity(){let e=this._pointEntitys.last();e!==void 0&&(this._removeEntityByObject(e),this._pointEntitys.pop())},_sketchDrawPoint(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._viewer.scene;if(n.mode!==Cesium.SceneMode.MORPHING){var o=n.pick(i.position);if(n.pickPositionSupported&&Cesium.defined(o)){var s=n.pickPosition(i.position);if(Cesium.defined(s)){var l=Cesium.Cartographic.fromCartesian(s),a=Cesium.Math.toDegrees(l.longitude),c=Cesium.Math.toDegrees(l.latitude),u=l.height;r._sketchOutputPoints.push({lng:a,lat:c,height:u})}r._createPoint(s,"\u70B9"),r._sketchPoints.push(s.clone()),r._sketchPoints.length>=2&&(r._createVideoWall(),r._clearEvent(e))}}t.onComplete&&t.onComplete(loc.sLocation,loc.gLocation)})},_sketchDrawMultiplePoint(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._sketchPoints.push(n.sLocation),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(n.sLocation,n.gLocation))}),this._registerRightClickEvent(e,function(i){r._sketchPoints.length>0&&(r._sketchPoints.pop(),r._sketchOutputPoints.pop(),t.onUndo&&t.onUndo())}),this._registerLeftDoubleClickEvent(e,function(i){r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)})},_sketchDrawPolyline(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);console.log("TAG",n.gLocation),Cesium.defined(n.sLocation)&&(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._sketchTempPoints.length===0&&(r._createPolyline(t.polylineType),r._sketchTempPoints.push(n.sLocation.clone())),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints),r._createOperationDom())}),this._registerMouseMoveEvent(e,function(i){if(r._isRuntimeApp())return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||r._sketchTempPoints.length>1&&(r._drawMovingDoubleTooltip(i.endPosition),r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._drawByUndo(),t.onUndo&&t.onUndo())}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<2){t.onError&&t.onError("\u70B9\u6570\u5C11\u4E8E\u4E24\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._updatePolyline(t.isEdit),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)})},_sketchDrawSpatialPolyline(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._sketchTempPoints.length===0&&(r._createSpatialPolyline(),r._sketchTempPoints.push(n.sLocation.clone())),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints),r._createOperationDom())}),this._registerMouseMoveEvent(e,function(i){if(r._isRuntimeApp())return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||r._sketchTempPoints.length>1&&(r._drawMovingDoubleTooltip(i.endPosition),r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<2){t.onError&&t.onError("\u7ED8\u5236\u70B9\u5C11\u4E8E2\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._updateSpatialPolyline(t.isEdit),r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._drawByUndo(),t.onUndo&&t.onUndo())})},_sketchDrawOdline(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._isRuntimeApp()&&r._showTooltipMessage("\u518D\u6B21\u5355\u51FB\u7ED8\u5236\u4E00\u6761OD\u7EBF\uFF01"),r._sketchTempPoints.length===0?(r._createOdline(!0),r._sketchTempPoints.push(n.sLocation.clone())):(r._sketchTempPoints.push(n.sLocation.clone()),r._updateOdline(!1,t.isEdit),r._createOdline()),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints),r._createOperationDom())}),this._registerMouseMoveEvent(e,function(i){if(r._isRuntimeApp())return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||r._sketchTempPoints.length>1&&(r._drawMovingDoubleTooltip(i.endPosition),r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerLeftDoubleClickEvent(e,function(i){r._removeEntityByObject(r._drawEntity),r._updateOdline(!0,t.isEdit),r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)}),this._registerRightClickEvent(e,function(i){r._odlineEntitys.length>0&&(r._isDrawPoint&&r._removeLastDrawPointEntity(),r._removeEntityByObject(r._odlineEntitys.last()),r._odlineEntitys.pop(),t.onUndo&&t.onUndo())})},_sketchDrawDoodle(e,t){let r=this;r._registerLeftDownEvent(e,function(i){r._doodleState=1,r._viewer.scene.screenSpaceCameraController.enableInputs=!1;let n=r._transfromFromScreenPoint(i.position);r._sketchTempPoints.push(n.sLocation),r._createDoodlePolyline()}),r._registerLeftUpEvent(e,function(i){r._doodleState!==void 0&&r._doodleState===1&&(r._doodleState=0,r._updateDoodlePolyline(),r._sketchTempPoints=[])}),r._registerMouseMoveEvent(e,function(i){if(r._doodleState!==void 0&&r._doodleState===1){let n=r._transfromFromScreenPoint(i.endPosition);r._sketchTempPoints.push(n.sLocation),r._updateTooltip(void 0,i.endPosition)}}),r._registerRightClickEvent(e,function(i){let n=[{name:"\u8D34\u5408\u6A21\u5F0F",model:"0"},{name:"\u60AC\u7A7A\u6A21\u5F0F",model:"1"},{name:"\u7ED3\u675F\u7ED8\u5236",model:"2"}];r._showRightMouseMenu(n,i.position,function(o,s){o==="fun"&&s==="0"?r._doodlePolylineIsFitModel=!0:o==="fun"&&s==="1"?r._doodlePolylineIsFitModel=!1:o==="fun"&&s==="2"?(r._doodleState=0,r._clearEvent(e),r._viewer.scene.screenSpaceCameraController.enableInputs=!0):o==="color"&&(r._doodlePolylineColor=s)})})},_sketchDrawPolygon(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._sketchTempPoints.length===0&&(r._createPolygon(t.polygonType),r._sketchTempPoints.push(n.sLocation.clone())),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints),r._createOperationDom())}),this._registerMouseMoveEvent(e,function(i){if(r._isRuntimeApp())return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||r._sketchTempPoints.length>1&&(r._drawMovingDoubleTooltip(i.endPosition),r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._drawByUndo(),t.onUndo&&t.onUndo())}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<3){t.onError&&t.onError("\u70B9\u6570\u5C11\u4E8E3\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._updatePolygon(t.isEdit),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)})},_sketchDrawCircle:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._sketchTempPoints.length===0?(r._isDrawPoint&&r._createPoint(n.sLocation,"\u8D77\u70B9"),r._sketchTempPoints.push(n.sLocation.clone()),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),r._createCircle(n.sLocation,t.circleType),r._isRuntimeApp()&&r._showTooltipMessage("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u7ED8\u5236\uFF01"),t.onAdded&&t.onAdded(n.sLocation)):(r._sketchTempPoints.push(n.sLocation.clone()),r._removePointEntitys(),r._updateCircle(t.isEdit),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchOutputPoints[0],r._sketchEllipseRadius)))}),this._registerMouseMoveEvent(e,function(i){if(!r._isRuntimeApp()&&!(r._sketchTempPoints.length<=0)){r._drawMovingSimpleTooltip(i.endPosition);var n=r._viewer.scene.pickPosition(i.endPosition);n!=null&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n))}})},_sketchDrawRectangle:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){if(r._sketchTempPoints.length===0){let n=r._transfromFromScreenPoint(i.position);if(!Cesium.defined(n.sLocation))return;r._isDrawPoint&&r._createPoint(n.sLocation,"\u8D77\u70B9"),r._sketchTempPoints.push(n.sLocation),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.gLocation),r._createRectangle(),t.onAdded&&t.onAdded(n.sLocation),r._isRuntimeApp()&&r._showTooltipMessage("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u7ED8\u5236\uFF01")}else r._removePointEntitys(),r._removeEntityByObject(r._sketchTempRectangle),r._updateRectangle(t.isEdit),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchOutputPoints)}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length<1)return;r._drawMovingSimpleTooltip(i.endPosition);let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation))})},_sketchDrawWall:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._sketchTempPoints.length===0&&(r._createWall(t.wallType),r._sketchTempPoints.push(n.sLocation.clone()),r._sketchWallHeights.push(n.gLocation.height)),r._sketchTempPoints.push(n.sLocation),r._sketchWallHeights.push(n.gLocation.height),r._sketchPoints.push(n.sLocation.clone()),r._createOperationDom())}),this._registerMouseMoveEvent(e,function(i){if(r._isRuntimeApp())return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||r._sketchTempPoints.length>1&&(r._drawMovingDoubleTooltip(i.endPosition),r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),r._sketchWallHeights.pop(),r._sketchWallHeights.push(n.gLocation.height))}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._sketchPoints.pop(),r._isRuntimeApp()?(r._sketchTempPoints.splice(r._sketchTempPoints.length-1,1),r._sketchWallHeights.splice(r._sketchWallHeights.length-1,1)):(r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._sketchWallHeights.splice(r._sketchWallHeights.length-2,1)),r._isDrawPoint&&r._removeLastDrawPointEntity())}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<2){t.onError&&t.onError("\u70B9\u6570\u5C11\u4E8E\u4E24\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._updateWall(t.isEdit),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e)})},_sketchDrawVideoWall:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation,r._lineLabel),r._sketchOutputPoints.length===0?(r._sketchOutputPoints.push(n.gLocation),r._sketchOutputPoints.push(n.gLocation),r._createVideoWall(),r._isRuntimeApp()&&r._showTooltipMessage("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u7ED8\u5236")):(r._updateVideoWall(t.isEdit),r._clearEvent(e)))}),this._registerMouseMoveEvent(e,function(i){if(r._isRuntimeApp())return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||r._sketchOutputPoints.length>1&&(r._drawMovingSimpleTooltip(i.endPosition),r._sketchOutputPoints.pop(),r._sketchOutputPoints.push(n.gLocation))})},_drawByUndo:function(){this._sketchPoints.pop(),this._isRuntimeApp()?this._sketchTempPoints.splice(this._sketchTempPoints.length-1,1):this._sketchTempPoints.splice(this._sketchTempPoints.length-2,1),this._isDrawPoint&&this._removeLastDrawPointEntity()},draw:function(e,t){let r=this;switch(this._clear(),this._drawEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),this._isRuntimeApp()?this._showTooltipMessage("\u5355\u51FB\u7ED8\u5236"):e===ve.DrawType.Doodle?this._beginTooltip("\u9F20\u6807\u6309\u4E0B\u7ED8\u5236<br>\u9F20\u6807\u62AC\u8D77\u7ED3\u675F\u672C\u6B21\u7ED8\u5236<br>\u53F3\u952E\u8BBE\u7F6E",void 0):this._beginTooltip("\u5DE6\u952E\u5355\u51FB\u7ED8\u5236",void 0),this._drawType=e,e){case ve.DrawType.Point:r._sketchDrawPoint(r._drawEventHandler,t);break;case ve.DrawType.Polyline:t.polylineType=ve.PolylineType.NormalPolyline,r._sketchDrawPolyline(r._drawEventHandler,t);break;case ve.DrawType.ArrowPolyline:t.polylineType=ve.PolylineType.ArrowsPolyline,r._sketchDrawPolyline(r._drawEventHandler,t);break;case ve.DrawType.DynamicPolyline:t.polylineType=ve.PolylineType.DynamicPolyline,r._sketchDrawPolyline(r._drawEventHandler,t);break;case ve.DrawType.GrowPolyline:t.polylineType=ve.PolylineType.GrowPolyline,r._sketchDrawPolyline(r._drawEventHandler,t);break;case ve.DrawType.OutlinePolyline:t.polylineType=ve.PolylineType.OutlinePolyline,r._sketchDrawPolyline(r._drawEventHandler,t);break;case ve.DrawType.Polygon:t.polygonType=ve.PolygonType.NormalPolygon,r._sketchDrawPolygon(r._drawEventHandler,t);break;case ve.DrawType.SpatialLine:r._sketchDrawSpatialPolyline(r._drawEventHandler,t);break;case ve.DrawType.Circle:t.circleType=ve.CircleType.ColorCircle,r._sketchDrawCircle(r._drawEventHandler,t);break;case ve.DrawType.Rectangle:r._sketchDrawRectangle(r._drawEventHandler,t);break;case ve.DrawType.NormalWall:t.wallType=ve.WallType.ColorWall,r._sketchDrawWall(r._drawEventHandler,t);break;case ve.DrawType.DynamicWall:t.wallType=ve.WallType.DynamicWall,r._sketchDrawWall(r._drawEventHandler,t);break;case ve.DrawType.TextWall:t.wallType=ve.WallType.TextWall,r._sketchDrawWall(r._drawEventHandler,t);break;case ve.DrawType.DynamicCircle:t.circleType=ve.CircleType.DynamicCircle,r._sketchDrawCircle(r._drawEventHandler,t);break;case ve.DrawType.House:t.polygonType=ve.PolygonType.HousePolygon,r._sketchDrawPolygon(r._drawEventHandler,t);break;case ve.DrawType.VideoWall:r._sketchDrawVideoWall(r._drawEventHandler,t);break;case ve.DrawType.OdLine:r._sketchDrawOdline(r._drawEventHandler,t);break;case ve.DrawType.Doodle:r._sketchDrawDoodle(r._drawEventHandler,t);break}},Clear:function(){this._clear(!0),this._unActivateEdit(),this._closePropertyEditDialog(),this._removeOperationDom()},sketchInit:function(){this._clear(!1)},_checkAppOrWeb(){return window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)?ve.RuntimeEnvironment.App:ve.RuntimeEnvironment.Web},_isRuntimeApp(){return this._checkAppOrWeb()===ve.RuntimeEnvironment.App}});Object.assign(ve.prototype,{_tooltipInit:function(e,t){let r=this;this._tooltipId="tooltipSketchmodel";let i=document.getElementById(this._tooltipId);if(i===null){i=document.createElement("div"),i.id=this._tooltipId,document.body.appendChild(i);let n="";n+="top: 30px;",n+="left: 30px;",n+="position: absolute;",n+="display: flex;",n+="align-items: center;",n+="width: 12x0px;",n+="height: auto;",n+="background-color: rgba(0, 0, 0, 0.65);",n+="border-radius: 5px;",n+="color: rgb(255, 255, 255);",n+="font-size: 12px;",n+="font-family: 'Alimama_ShuHeiTi_Bold';",n+="padding: 8px;",n+="border:solid 1px rgb(255,0,0);",i.setAttribute("style",n)}e!=null&&(i.innerHTML=e),t===void 0?document.onmousemove=function(n){n.clientX<100||n.clientX>r._canvasWidth-100||n.clientY<100||n.clientY>r._canvasHeight-100?i.style.display="none":(i.style.display="flex",i.style.left=n.clientX+10+"px",i.style.top=n.clientY-i.offsetHeight/2+"px")}:t.x<100||t.x>r._canvasWidth-100||t.y<100||t.y>r._canvasHeight-100?i.style.display="none":(i.style.display="flex",i.style.left=t.x+10+"px",i.style.top=t.y-i.offsetHeight/2+"px")},_tooltipRemove:function(){let e=document.getElementById(this._tooltipId);e!=null&&document.body.removeChild(e)},_tooltipSetText:function(e,t){let r=document.getElementById(this._tooltipId);r!=null&&(e!=null&&(r.innerHTML=e),t!=null&&(t.x<100||t.x>this._canvasWidth-100||t.y<100||t.y>this._canvasHeight-100?r.style.display="none":(r.style.display="flex",r.style.left=t.x+10+"px",r.style.top=t.y-r.offsetHeight/2+"px")))},_setMousePointerStyle:function(){document.querySelector("body").style.cursor="crosshair"},_setMouseDefaultStyle:function(){document.querySelector("body").style.cursor="default"},_beginTooltip(e,t){this._tooltipInit(e,t),this._setMousePointerStyle()},_updateTooltip(e,t){this._tooltipSetText(e,t)},_endTooltip(){this._tooltipRemove(),this._setMouseDefaultStyle()},_showTooltipMessage:function(e){let t=document.getElementById("messageMainDom");t!=null&&document.body.removeChild(t),t=document.createElement("div"),t.style.width="30%",t.style.backgroundColor="rgba(237, 248, 230, 1.0)",t.style.height="45px",t.style.border="solid 2px rgb(219, 241, 208)",t.style.borderRadius="8px",t.style.display="flex",t.style.alignItems="center",t.style.paddingLeft="10px",t.style.color="rgb(91, 188, 48)",t.style.fontSize="14px",t.style.fontWeight="600",t.style.position="absolute",t.style.left="35%",t.style.transition="transform 1s",t.style.transform="translateY(-90px)",t.style.top="0px",t.style.zIndex=1e3,document.body.appendChild(t);let r="";r+="<div style='",r+="background-color: rgb(88, 185, 45);",r+="color: rgb(255, 255, 255);",r+="height: 24px;",r+="width: 24px;",r+="border-radius: 20px;",r+="display: flex;",r+="justify-content: center;",r+="align-items: center;",r+="font-size: 14px;",r+="margin-right: 18px;",r+="'>✓</div>",r+="<div>"+e+"</div>",t.innerHTML=r,t.addEventListener("transitionend",function(){setTimeout(function(){document.body.removeChild(t)},1e3)},!1),setTimeout(function(){t.style.transform="translateY(50px)"},100)},_showRightMouseMenu(e,t,r){let i=document.getElementById("divMenu");if(i===null){i=document.createElement("div");let n="height: auto;";n+="position: absolute;",n+="width:110px;",n+="background-color: rgba(0, 0, 0, 0.65);",n+="border-radius: 5px;",n+="color: rgb(255, 255, 0);",n+="font-size: 13px;",n+="font-family: 'Alimama_ShuHeiTi_Bold';",n+="padding: 8px 0px;",n+="border:solid 1px rgb(255,0,0);",n+="display: flex;",n+="flex-direction: column;",i.setAttribute("style",n),document.body.appendChild(i);let o="height: 34px;";o+="display: flex;",o+="align-items: center;",o+="justify-content: center;";let s=o;s+="font-size: 14px;",s+="cursor: pointer;",s+="font-weight: bold;",s+="color: rgb(255, 255, 255);",s+="background-color: rgb(255, 0, 0);";for(let h of e){let m=document.createElement("div");m.innerHTML=h.name,m.setAttribute("style",o),m.onmouseenter=function(){this.setAttribute("style",s)},m.onmouseleave=function(){this.setAttribute("style",o)},m.onclick=function(){i.style.display="none",r!==void 0&&r("fun",h.model)},i.appendChild(m)}let l=[{name:"rgb(255,0,0)"},{name:"rgb(255,255,0)"},{name:"rgb(0,255,0)"},{name:"rgb(0,0,255)"}],a="flex: 1;";a+="margin-right: 3px;",a+="margin-left: 3px;",a+="border-radius: 5px;";let c=a;c+="border: solid 1px rgb(255, 255, 255);",c+="cursor: pointer;";let u="border-top: solid 1px rgba(255, 255, 255, 0.85);";u+="height: 22px;",u+="display: flex;",u+="flex-direction: row;",u+="margin-top: 8px;",u+="padding-top: 8px;";let p=document.createElement("div");p.setAttribute("style",u),i.appendChild(p);for(let h of l){let m=document.createElement("div");m.setAttribute("style",a),m.style.backgroundColor=h.name,p.appendChild(m),m.onmouseenter=function(){this.setAttribute("style",c),this.style.backgroundColor=h.name},m.onmouseleave=function(){this.setAttribute("style",a),this.style.backgroundColor=h.name},m.onclick=function(){i.style.display="none",r!==void 0&&r("color",h.name)}}}else i.style.display="flex";t!==void 0?(i.style.display="flex",i.style.left=t.x+10+"px",i.style.top=t.y-i.offsetHeight/2+"px"):i.style.display="none"}});Object.assign(ve.prototype,{_createSingleCoordinateAxisArrow(e,t,r){let i=this,n=new Cesium.Entity({id:r,name:i._coordinateAxisEntityName,position:e[0],polyline:{positions:e,width:10,material:i._materialPolylineArrowProperty({color:t})}});return n.setEditType({type:ve.EditPointType.CoordinateAxis}),this._entities.add(n)},_getTranslatePostion:function(e,t){let r=Cesium.Transforms.eastNorthUpToFixedFrame(e),i=new Cesium.Matrix4;Cesium.Matrix4.setTranslation(Cesium.Matrix4.IDENTITY,t,i);let n=Cesium.Matrix4.multiply(r,i,r),o=new Cesium.Cartesian3(0,0,0);return Cesium.Matrix4.getTranslation(n,o),o},_createCoordinateAxis:function(e){this._showTooltipMessage("\u5355\u51FB\u53F3\u952E\u79FB\u9664\u8C03\u6574\u8F74\u7EBF\uFF01"),this._removeCoorinateAxis();let t=this,r=this._viewer.scene.camera.rightWC;this._tx=r.x>0?150:-150,this._ty=r.y>0?150:-150,this._tz=150,this._coordinateAxisEntityId_x="coordinateAxisId_x",this._coordinateAxisEntityId_y="coordinateAxisId_y",this._coordinateAxisEntityId_z="coordinateAxisId_z",this._coordinateAxisEntityName="coordinateAxisEntity";let i=new Cesium.Cartesian3(this._tx,0,0),n=this._getTranslatePostion(e,i);const o=[e,n];this._coordinateEntity_x=this._createSingleCoordinateAxisArrow(o,"rgba(0,255,0,1.0)",this._coordinateAxisEntityId_x),this._coordinateAxisBindEntity(this._coordinateEntity_x),i=new Cesium.Cartesian3(0,this._ty,0),n=this._getTranslatePostion(e,i);const s=[e,n];this._coordinateEntity_y=this._createSingleCoordinateAxisArrow(s,"rgba(0,0,255,1.0)",this._coordinateAxisEntityId_y),this._coordinateAxisBindEntity(this._coordinateEntity_y),i=new Cesium.Cartesian3(0,0,this._tz),n=this._getTranslatePostion(e,i);const l=[e,n];this._coordinateEntity_z=this._createSingleCoordinateAxisArrow(l,"rgba(255,0,0,1.0)",this._coordinateAxisEntityId_z),this._coordinateAxisBindEntity(this._coordinateEntity_z),this._eventCoorinateAxis=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),this._registerLeftDownEvent(this._eventCoorinateAxis,function(a){t._coorinateAxisMouseDown(a)}),this._registerMouseMoveEvent(this._eventCoorinateAxis,function(a){t._coorinateAxisMouseMove(a)}),this._registerLeftUpEvent(this._eventCoorinateAxis,function(a){t._coorinateAxisMouseUp(a)}),this._registerRightClickEvent(this._eventCoorinateAxis,function(a){t._removeCoorinateAxis()})},_coordinateAxisBindEntity:function(e){if(this._editEntity===void 0)return;let t=this._editEntity.getEntityType();t!==void 0&&t===ve.DrawType.VideoWall&&e.bindEntity(this._editEntity)},_coorinateAxisMouseDown:function(e){let t=this,r=this._viewer.scene.pick(e.position);if(r!==void 0&&r.id!=null&&r.id instanceof Cesium.Entity){if(this._viewer.scene.screenSpaceCameraController.enableRotate=!1,r.id.getEditType()===void 0||r.id.getEditType().type!==ve.EditPointType.CoordinateAxis)return;this._editCoorinateAxis=r.id,this._editCoorinateAxis.polyline.width=15,this._coordinateAxisMoveStartPosition=this._viewer.scene.camera.pickEllipsoid(e.position,this._viewer.scene.globe.ellipsoid),this._coordinateAxisMoveStartScreen=e.position,this._coorinateAxisPosition=this._editCoorinateAxis.position._value,this._coordinateEntity_x.polyline.positions=new Cesium.CallbackProperty(function(){let n=new Cesium.Cartesian3(t._tx,0,0),o=t._getTranslatePostion(t._coorinateAxisPosition,n);return[t._coorinateAxisPosition,o]},!1),this._coordinateEntity_y.polyline.positions=new Cesium.CallbackProperty(function(){let n=new Cesium.Cartesian3(0,t._ty,0),o=t._getTranslatePostion(t._coorinateAxisPosition,n);return[t._coorinateAxisPosition,o]},!1),this._coordinateEntity_z.polyline.positions=new Cesium.CallbackProperty(function(){let n=new Cesium.Cartesian3(0,0,t._tz),o=t._getTranslatePostion(t._coorinateAxisPosition,n);return[t._coorinateAxisPosition,o]},!1),this._coordinateAxisActivateEditEntity(this._editCoorinateAxis)}},_coorinateAxisMouseMove:function(e){if(!Cesium.defined(this._editCoorinateAxis))return;let t=this._viewer.scene.camera.pickEllipsoid(e.endPosition,this._viewer.scene.globe.ellipsoid);if(!t)return;let r=this._cartesian3ToGeo(this._coordinateAxisMoveStartPosition),i=this._cartesian3ToGeo(t),n=this._editCoorinateAxis.id,o=this._editCoorinateAxis.position._value,s=this._cartesian3ToGeo(o),l=0;if(n===this._coordinateAxisEntityId_x){let a=r.longitude-i.longitude;s.longitude=s.longitude-a}else if(n===this._coordinateAxisEntityId_y){let a=r.latitude-i.latitude;s.latitude=s.latitude-a}else n===this._coordinateAxisEntityId_z&&(l=e.endPosition.y-this._coordinateAxisMoveStartScreen.y,l=l*.5,s.height=s.height-l);this._coorinateAxisPosition=Cesium.Cartesian3.fromDegrees(s.longitude,s.latitude,s.height),this._moveEditEntityByCoordinateAxis(o,this._coorinateAxisPosition,l)},_coorinateAxisMouseUp:function(e){if(this._viewer.scene.screenSpaceCameraController.enableRotate=!0,this._editCoorinateAxis!==void 0){this._editCoorinateAxis.polyline.width=10;let t=new Cesium.Cartesian3(this._tx,0,0),r=this._getTranslatePostion(this._coorinateAxisPosition,t);this._coordinateEntity_x.polyline.positions=[this._coorinateAxisPosition,r],t=new Cesium.Cartesian3(0,this._ty,0),r=this._getTranslatePostion(this._coorinateAxisPosition,t),this._coordinateEntity_y.polyline.positions=[this._coorinateAxisPosition,r],t=new Cesium.Cartesian3(0,0,this._tz),r=this._getTranslatePostion(this._coorinateAxisPosition,t),this._coordinateEntity_z.polyline.positions=[this._coorinateAxisPosition,r],this._coordinateEntity_x.position=this._coorinateAxisPosition,this._coordinateEntity_y.position=this._coorinateAxisPosition,this._coordinateEntity_z.position=this._coorinateAxisPosition,this._coordinateAxisUpdateEditEntity(this._editCoorinateAxis),this._editCoorinateAxis=void 0}},_moveEditEntityByCoordinateAxis:function(e,t,r){let i=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);for(let n=0;n<this._moveInitPositions.length;n++){let o=Cesium.Cartesian3.add(this._moveInitPositions[n],i,new Cesium.Cartesian3);this._moveUpdatePositions[n]=o.clone()}for(let n=0;n<this._moveInitHeights.length;n++)this._moveUpdateHeights[n]=parseFloat(this._moveInitHeights[n])+r*-1},_coordinateAxisActivateEditEntity:function(e){let t=this,r=e.getBindEntity();if(r===void 0)return;if(r.getEntityType()===ve.DrawType.VideoWall){let n=r.wall;this._moveInitPositions=n.positions._value,this._moveInitHeights=n.minimumHeights._value,this._moveInitHeight=n.maximumHeights._value[0]-n.minimumHeights._value[0],this._moveUpdatePositions=[];for(let o=0;o<this._moveInitPositions.length;o++)this._moveUpdatePositions.push(this._moveInitPositions[o].clone());n.positions=new Cesium.CallbackProperty(function(){return t._moveUpdatePositions},!1),this._moveUpdateHeights=[];for(let o=0;o<this._moveInitHeights.length;o++)this._moveUpdateHeights.push(this._moveInitHeights[o]);n.minimumHeights=new Cesium.CallbackProperty(function(){return t._moveUpdateHeights},!1),n.maximumHeights=new Cesium.CallbackProperty(function(){let o=[];for(let s=0;s<t._moveUpdateHeights.length;s++)o.push(parseFloat(t._moveUpdateHeights[s])+t._moveInitHeight);return o},!1)}},_coordinateAxisUpdateEditEntity:function(e){let t=e.getBindEntity();if(t===void 0)return;if(t.getEntityType()===ve.DrawType.VideoWall){let i=t.wall;i.positions=this._moveUpdatePositions,i.minimumHeights=this._moveUpdateHeights;let n=[];for(let o=0;o<this._moveUpdateHeights.length;o++)n.push(parseFloat(this._moveUpdateHeights[o])+this._moveInitHeight);i.maximumHeights=n}},_coordinateCalculateEntityOrientation:function(e,t){let r=e.position._value,i=e.orientation===void 0?new Cesium.Cartesian3(0,0,0):e.orientation._value,n=Cesium.Matrix4.fromTranslationQuaternionRotationScale(r,i,new Cesium.Cartesian3(1,1,1),new Cesium.Matrix4),o=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(t.x)),s=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(t.y)),l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(t.z));n=Cesium.Matrix4.multiplyByMatrix3(n,o,n),n=Cesium.Matrix4.multiplyByMatrix3(n,s,n),n=Cesium.Matrix4.multiplyByMatrix3(n,l,n);let a=Cesium.Matrix4.getRotation(n,new Cesium.Matrix3),c=new Cesium.Quaternion;return Cesium.Quaternion.fromRotationMatrix(a,c),c},_removeCoorinateAxis:function(){this._coordinateAxisEntityName!==void 0&&this._removeEntityByName(this._coordinateAxisEntityName),this._eventCoorinateAxis!==void 0&&(this._clearEvent(this._eventCoorinateAxis),this._eventCoorinateAxis=void 0)}});Object.assign(ve.prototype,{_setEntityIsEdit(e){let t=this;e.setIsEdit(!0),this._unActivateEdit(),this._sendShowPropertyDialog(e);let r=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);this._registerLeftClickEvent(r,function(i){t._unActivateEdit();let n=t._viewer.scene.pick(i.position);n!==void 0&&n.id instanceof Cesium.Entity&&t._sendShowPropertyDialog(n.id)})},_sendShowPropertyDialog(e){let t=this,r=e.getEntityType();if(e.getIsEdit()===void 0||e.getIsEdit()===!1||r===void 0){this._unActivateEdit();return}let i=e.getParams();r===ve.DrawType.OdLine&&(i=e.parent.getParams()),this._console("\u9009\u62E9\u5B9E\u4F53\u7684\u5C5E\u6027",i),i!==void 0&&this.onEditProperty!==void 0&&this._openPropertyEditDialog(i,function(n){t.updateEditEntityProperty(n)},function(){t._removeEditEntity()}),this._activateEdit(e)},_removeEditEntity(){if(this._editEntity!==void 0){if(this._console("\u79FB\u9664\u5B9E\u4F53",this._editEntity),this._editEntity.getEntityType()===ve.DrawType.OdLine){let t=this._editEntity.parent.id,r=[];for(let i of this._entities.values)i.parent!==void 0&&i.parent.id===t&&r.push(i);for(let i of r)this._removeEntityByObject(i)}else this._removeEntityByObject(this._editEntity);this._unActivateEdit(),this._editEntity=void 0}},updateEditEntityProperty:function(e){if(this._editEntity===void 0||this._editEntity.getIsEdit()===void 0||this._editEntity.getIsEdit()===!1)return;let t=this._editEntity.getEntityType();t!==void 0&&(t===ve.DrawType.NormalWall||t===ve.DrawType.DynamicWall||t===ve.DrawType.TextWall?this._updateWallProperty(e):t===ve.DrawType.Circle||t===ve.DrawType.DynamicCircle?this._updateCircleProperty(e):t===ve.DrawType.House?this._updateHouseProperty(e):t===ve.DrawType.VideoWall?this._updateVideoWallProperty(e):t===ve.DrawType.Polyline?this._updatePolylineProperty(e):t===ve.DrawType.Polygon?this._updatePolygonProperty(e):t===ve.DrawType.Rectangle?this._updateRectangleProperty(e):t===ve.DrawType.SpatialLine?this._updateSpatialPolylineProperty(e):t===ve.DrawType.OdLine&&this._updateOdlineProperty(e))},_updateOdlineProperty(e){let t=this,r=this._editEntity.parent;this._editOdlineEntities=[];for(let o of this._entities.values)o.parent!==void 0&&o.parent.id===r.id&&this._editOdlineEntities.push(o);let i=this._image_arrow_reverse;e.order===this._param.order_add?i=this._image_arrow_reverse:e.order===this._param.order_minus&&(i=this._image_arrow_forward);let n=new qa({viewer:t._viewer,trailImage:i,duration:e.duration,color:Cesium.Color.fromCssColorString(e.color),param:{direction:e.direction,count:e.count,order:e.order}});for(let o of this._editOdlineEntities){o.polyline.material=n;let s=o.polyline.positions._value,l=s.first(),a=s.last(),c=this._calculateOdlinePositios(l,a,parseInt(e.odlineHeight),parseInt(e.odlineCount));o.polyline.positions=c,o.polyline.width=parseInt(e.lineWidth)}r.setParams(e)},_updateSpatialPolylineProperty(e){let t=this._editEntity.polyline.material,r;t instanceof Cesium.ColorMaterialProperty&&(r=this._materialColorProperty({color:e.color})),r!==void 0&&(this._editEntity.polyline.material=r),this._editEntity.polyline.width=parseFloat(e.lineWidth),this._editEntity.setParams(e)},_updateRectangleProperty(e){if(this._editEntity.rectangle.material instanceof Cesium.ColorMaterialProperty){let r=this._materialColorProperty({color:e.color});this._editEntity.rectangle.material=r}if(this._editEntity.polyline!==void 0){let r=this._materialColorProperty({color:e.outlineColor});this._editEntity.polyline.material=r,this._editEntity.polyline.width=parseFloat(e.outlineWidth)}this._editEntity.setParams(e)},_updatePolygonProperty(e){if(this._editEntity.polygon.material instanceof Cesium.ColorMaterialProperty){let r=this._materialColorProperty({color:e.color});this._editEntity.polygon.material=r}if(this._editEntity.polyline!==void 0){let r=this._materialColorProperty({color:e.outlineColor});this._editEntity.polyline.material=r,this._editEntity.polyline.width=parseFloat(e.outlineWidth)}this._editEntity.setParams(e)},_updatePolylineProperty(e){let t=this._editEntity.polyline.material,r;if(t instanceof Cesium.ColorMaterialProperty)r=this._materialColorProperty({color:e.color});else if(t instanceof Cesium.PolylineArrowMaterialProperty)r=this._materialPolylineArrowProperty({color:e.color});else if(t instanceof qa){let i=this._image_h_l_r;e.order===this._param.order_minus?i=this._image_h_r_l:e.order===this._param.order_add&&(i=this._image_h_l_r),r=new qa({viewer:this._viewer,trailImage:i,duration:e.duration,color:Cesium.Color.fromCssColorString(e.color),param:{count:parseInt(e.count),direction:e.direction,order:e.order}})}else t instanceof Cesium.PolylineGlowMaterialProperty?r=this._materialPolylineGlowProperty({color:e.color,power:parseFloat(e.power)}):t instanceof Cesium.PolylineOutlineMaterialProperty&&(r=this._materialPolylineOutlineProperty({color:e.color,outlineWidth:parseFloat(e.outlineWidth),outlineColor:e.outlineColor}));r!==void 0&&(this._editEntity.polyline.material=r),this._editEntity.polyline.width=e.lineWidth,this._editEntity.setParams(e)},_updateHouseProperty(e){let t=this._editEntity.getParams();if(this._editEntity.polygon.material instanceof Cesium.ColorMaterialProperty){let i=this._materialColorProperty({color:e.color});this._editEntity.polygon.material=i,this._editEntity.polygon.extrudedHeight=parseFloat(e.height)+parseFloat(t.bottomHeight),this._editEntity.setParams(e)}},_updateCircleProperty(e){let t=this._editEntity.ellipse.material;if(t instanceof Uv){let r=new Uv({viewer:this._viewer,duration:e.duration,color:Cesium.Color.fromCssColorString(e.color),count:parseFloat(e.count)});this._editEntity.ellipse.material=r}else if(t instanceof Cesium.ColorMaterialProperty){let r=this._materialColorProperty({color:e.color});if(this._editEntity.ellipse.material=r,this._editEntity.polyline!==void 0){let i=this._materialColorProperty({color:e.outlineColor});this._editEntity.polyline.material=i,this._editEntity.polyline.width=parseFloat(e.outlineWidth)}}this._editEntity.setParams(e)},_updateVideoWallProperty(e){let t=document.getElementById("wallVideo");t!==null&&document.body.removeChild(t),t=document.createElement("video"),t.id="wallVideo",t.setAttribute("crossorigin","anonymous"),t.setAttribute("width","1024px"),t.setAttribute("height","256px"),t.setAttribute("controls","controls"),t.setAttribute("src",e.videoUrl),t.setAttribute("loop","loop"),t.play(),document.body.appendChild(t);let r=this._editEntity.wall.minimumHeights._value,i=[];for(let s=0;s<r.length;s++)i.push(r[s]+parseFloat(e.height));this._editEntity.wall.maximumHeights=i,this._editEntity.wall.material=t;let n=this._editEntity.wall.positions._value,o=[];for(let s of n){let l=Cesium.Transforms.eastNorthUpToFixedFrame(s),a=new Cesium.Matrix4;Cesium.Matrix4.setTranslation(Cesium.Matrix4.IDENTITY,new Cesium.Cartesian3(parseFloat(e.axisX),parseFloat(e.axisY),parseFloat(e.axisZ)),a);let c=Cesium.Matrix4.multiply(l,a,l),u=new Cesium.Cartesian3;Cesium.Matrix4.getTranslation(c,u),o.push(u)}this._editEntity.wall.positions=o,e.axisX=e.axisY=e.axisZ=0,this._editEntity.setParams(e),this._activateEdit(this._editEntity)},_updateWallProperty(e){let t=this._editEntity.wall.minimumHeights._value,r=[];for(let n=0;n<t.length;n++)r.push(t[n]+parseFloat(e.height));this._editEntity.wall.maximumHeights=r,this._sketchWallMaxHeights=r;let i=this._editEntity.wall.material;if(i instanceof Cesium.ImageMaterialProperty){let n=this._materialTextImageProperty({color:e.color,text:e.text});this._editEntity.wall.material=n}else if(i instanceof qa){let n=this._image_h_l_r;e.direction===this._param.direction_h&&e.order===this._param.order_add?n=this._image_h_l_r:e.direction===this._param.direction_h&&e.order===this._param.order_add?n=this._image_h_r_l:e.direction===this._param.direction_v&&e.order===this._param.order_minus?n=this._image_v_t_b:e.direction===this._param.direction_v&&e.order===this._param.order_add&&(n=this._image_v_b_t);let o=new qa({viewer:this._viewer,trailImage:n,duration:e.duration,color:Cesium.Color.fromCssColorString(e.color),param:{count:parseFloat(e.count),direction:e.direction,order:e.order}});this._editEntity.wall.material=o}else if(i instanceof Cesium.ColorMaterialProperty){let n=this._materialColorProperty({color:e.color});this._editEntity.wall.material=n}this._editEntity.setParams(e)},rotationEntity(e){this._editEntity!==void 0&&this._coordinateCalculateEntityOrientation(this._editEntity,e)},_getEntityEditData:function(e){if(e instanceof Cesium.Entity){let t=e.getEntityType();if(t===ve.DrawType.Polyline||t===ve.DrawType.SpatialLine)return e.polyline.positions._value;if(t===ve.DrawType.Polygon||t===ve.DrawType.House){let r=e.polygon.hierarchy._value.positions;return r[0].x!==r[r.length-1].x&&r.push(r[0].clone()),r}else if(t===ve.DrawType.Rectangle){let r=e.rectangle.coordinates._value,i=Cesium.Rectangle.northwest(r);if(i.height<=0){let l=this._queryHeightFromGeo(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude));i.height=l}let n=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,i.height),o=Cesium.Rectangle.southeast(r);if(o.height<=0){let l=this._queryHeightFromGeo(Cesium.Math.toDegrees(o.longitude),Cesium.Math.toDegrees(o.latitude));o.height=l}let s=Cesium.Cartesian3.fromRadians(o.longitude,o.latitude,o.height);return[n,s]}else if(t===ve.DrawType.Circle||t===ve.DrawType.DynamicCircle){let r=e.position._value,i=e.ellipse.semiMajorAxis._value,n=this._calculateCircleBoundaryPoint(r,i);return[r,n]}else if(t===ve.DrawType.NormalWall||t===ve.DrawType.DynamicWall||t===ve.DrawType.TextWall){this._sketchWallHeights=[],this._sketchWallMaxHeights=[];let r=e.wall.minimumHeights._value,i=e.wall.maximumHeights._value;for(let n=0;n<r.length;n++)this._sketchWallHeights.push(r[n]),this._sketchWallMaxHeights.push(i[n]);return e.wall.positions._value}else return t===ve.DrawType.VideoWall?[e.wall.positions._value[0].clone()]:[]}else return[]},_calculateCircleBoundaryPoint:function(e,t){let r=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e),i=Is([Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude)]),n=h$(i,t/1e3,90,{units:"kilometers"}).geometry.coordinates,o=this._queryHeightFromGeo(n[0],n[1]);return Cesium.Cartesian3.fromDegrees(n[0],n[1],o)},_calculateCenterPosition:function(e){if(!(e===void 0||e.length===0)){if(e.length===1)return e[0];if(e.length===2){let t=this._cartesian3ToGeo(e[0]),r=this._cartesian3ToGeo(e[1]),i=Is([t.longitude,t.latitude]),n=Is([r.longitude,r.latitude]),o=TV(i,n).geometry.coordinates,s=this._queryHeightFromGeo(o[0],o[1]);return Cesium.Cartesian3.fromDegrees(o[0],o[1],s)}else{let t=[[]];for(let o=0;o<e.length;o++){let s=this._cartesian3ToGeo(e[o]);t[0].push([s.longitude,s.latitude])}t[0].push(t[0][0]);let r=IQ(t),i=zQ(r).geometry.coordinates,n=this._queryHeightFromGeo(i[0],i[1]);return Cesium.Cartesian3.fromDegrees(i[0],i[1],n)}}},_calculateTransformPosition:function(e,t,r,i){let n=this._cartesian3ToGeo(e),o=Is([n.longitude,n.latitude]),s=h$(o,t,r,i).geometry.coordinates,l=n.height;return i!==void 0&&i.calculateHeight!==void 0&&i.calculateHeight===!0&&(l=this._queryHeightFromGeo(s[0],s[1])),Cesium.Cartesian3.fromDegrees(s[0],s[1],l)},_unActivateEdit:function(){this._clearEditPoint(),this._removeCoorinateAxis(),this._closePropertyEditDialog()},_activateEdit:function(e){let t=e.getEntityType(),r=e.getIsEdit();if(r===void 0||t===void 0||r===!1){this._console("\u8BE5\u5B9E\u4F53\u4E0D\u53EF\u7F16\u8F91");return}t===ve.DrawType.OdLine?this._activeteOdlineEdit(e):this._activeteNormalEdit(e)},_activeteOdlineEdit:function(e){let t=this,r=e.getEntityType();if(r===void 0||r!==ve.DrawType.OdLine){this._console("\u8BE5\u5B9E\u4F53\u4E0D\u53EF\u7F16\u8F91\u6216\u8BE5\u5B9E\u4F53\u4E0D\u662FOD\u7EBF\u7C7B\u578B");return}let i=e.parent.id;this._editOdlineEntities=[];for(let n of this._entities.values)n.parent!==void 0&&n.parent.id===i&&this._editOdlineEntities.push(n);if(this._editOdlineEntities.length!==0){this._editEntity=this._editOdlineEntities[0];for(let n=0;n<this._editOdlineEntities.length;n++){let o=this._editOdlineEntities[n],s=o.polyline.positions._value;n===0?(this._createEditOdlineStartPoint(s.first(),o),this._createEditOdlineEndPoint(s.last(),o)):this._createEditOdlineEndPoint(s.last(),o)}this._sketchEditHandler===void 0&&(this._sketchEditHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas)),this._registerLeftDownEvent(this._sketchEditHandler,function(n){t._eventEditMouseDown(n)}),this._registerMouseMoveEvent(this._sketchEditHandler,function(n){t._eventEditMouseMove(n)}),this._registerLeftUpEvent(this._sketchEditHandler,function(n){t._eventEditMouseUp(n)})}},_activeteNormalEdit:function(e){let t=this,r=this._getEntityEditData(e);this._removePointEntitys();let i=e.getEntityType();if(this._editEntity=e,i===ve.DrawType.Circle||i===ve.DrawType.DynamicCircle)this._createEditCenterPoint(r[0]),this._createEditNodePoint(r,1);else if(i===ve.DrawType.VideoWall){if(!this._isRuntimeApp()){let n=r[0];this._removeCoorinateAxis(),this._createCoordinateAxis(n)}}else{this._createEditNodePoint(r);let n=this._calculateCenterPosition(r);n!==void 0&&this._createEditCenterPoint(n)}i!==ve.DrawType.Rectangle&&i!==ve.DrawType.Circle&&i!==ve.DrawType.DynamicCircle&&i!==ve.DrawType.VideoWall&&(i===ve.DrawType.SpatialLine?this._createEditMiddlePoint(r,!0):this._createEditMiddlePoint(r)),this._sketchEditHandler===void 0&&(this._sketchEditHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas)),this._registerLeftDownEvent(this._sketchEditHandler,function(n){t._eventEditMouseDown(n)}),this._registerMouseMoveEvent(this._sketchEditHandler,function(n){t._eventEditMouseMove(n)}),this._registerLeftUpEvent(this._sketchEditHandler,function(n){t._eventEditMouseUp(n)})},_eventEditMouseDown:function(e){let t=this,r=t._viewer.scene.pick(e.position);if(r!=null&&r.id instanceof Cesium.Entity){let i=r.id.getEditType();if(i===void 0)return;t._viewer.scene.screenSpaceCameraController.enableRotate=!1;let n=r.id.position._value;if(t._editPointEntity=r.id,t._setMousePointerStyle(),i.type===ve.EditPointType.Node||i.type===ve.EditPointType.Middle)t._entityCallbackPropertyByMouseDown(),t._removeEntityByObject(t._editPointEntity),t._sketchEditEntitySpatialName!=null&&t._removeEntityByName(t._sketchEditEntitySpatialName);else if(i.type===ve.EditPointType.Center)t._entityCenterMouseDownEvent();else if(i.type===ve.EditPointType.OdlineEndNode){t._removeEntityByObject(t._editPointEntity),t._editEntity=i.joinEntity;let o=t._editEntity.parent.getParams();t._sketchEditPoints=[];let s=t._editEntity.polyline.positions._value;t._sketchEditPoints.push(s.first()),t._sketchEditPoints.push(s.last()),t._editEntity.polyline.positions=new Cesium.CallbackProperty(function(){return t._calculateOdlinePositios(t._sketchEditPoints[0],t._sketchEditPoints[1],parseInt(o.odlineHeight),parseInt(o.odlineCount))},!1)}else if(i.type===ve.EditPointType.OdlineStrartNode){t._removeEntityByObject(t._editPointEntity),t._editEntity=i.joinEntity;let o=t._editEntity.parent.getParams();t._sketchEditPoints=[];let s=t._editEntity.polyline.positions._value;t._sketchEditPoints.push(s.first());for(let l of t._editOdlineEntities){let c=l.polyline.positions._value.last();t._sketchEditPoints.push(c.clone()),l.polyline.positions=new Cesium.CallbackProperty(function(){return t._calculateOdlinePositios(t._sketchEditPoints[0],c,parseInt(o.odlineHeight),parseInt(o.odlineCount))},!1)}}if(i.type===ve.EditPointType.Middle){let o=i.index;if(t._sketchEditPoints.splice(o,0,n),t._sketchEditIndex=o,t._sketchWallHeights!=null&&t._sketchWallHeights.length>0){let s=t._cartesian3ToGeo(n),l=t._queryHeightFromGeo(s.longitude,s.latitude);t._sketchWallHeights.splice(o,0,l);let a=t._sketchWallMaxHeights[0]-t._sketchWallHeights[0];t._sketchWallMaxHeights.splice(o,0,l+a)}t._tooltipInit("\u62D6\u52A8\u4E2D\u70B9\uFF0C\u6539\u53D8\u5F62\u72B6",e.position)}else i.type===ve.EditPointType.Node?(t._sketchEditIndex=i.index,t._tooltipInit("\u62D6\u52A8\u8282\u70B9\uFF0C\u6539\u53D8\u5F62\u72B6",e.position)):i.type===ve.EditPointType.Spatial?(t._sketchEditIndex=i.index,t._tooltipInit("\u62D6\u52A8\u8282\u70B9\uFF0C\u6539\u53D8\u9AD8\u5EA6",e.position)):i.type===ve.EditPointType.CoordinateAxis?t._tooltipInit("\u62D6\u52A8\u5750\u6807\u8F74\uFF0C\u6539\u53D8\u4F4D\u7F6E",e.position):(i.type===ve.EditPointType.OdlineEndNode||i.type===ve.EditPointType.OdlineStrartNode)&&t._tooltipInit("\u62D6\u52A8\u8282\u70B9\uFF0C\u6539\u53D8OD\u7EBF\u4F4D\u7F6E",e.position)}},_eventEditMouseMove:function(e){let t=this;if(t._editPointEntity!=null){let r=t._transfromFromScreenPoint(e.endPosition);if(!Cesium.defined(r.sLocation))return;t._editPosition=r.sLocation;let i=t._editPointEntity.getEditType();if(i.type===ve.EditPointType.Node){t._sketchEditPoints[t._sketchEditIndex]=r.sLocation;let n=t._editEntity.getEntityType();n!=ve.DrawType.Rectangle&&n!=ve.DrawType.Circle&&n!=ve.DrawType.DynamicCircle&&((n===ve.DrawType.Polygon||n===ve.DrawType.House)&&t._sketchEditIndex===0?t._sketchEditPoints[t._sketchEditPoints.length-1]=r.sLocation:(n===ve.DrawType.NormalWall||n===ve.DrawType.DynamicWall||n===ve.DrawType.TextWall)&&(t._sketchWallHeights[t._sketchEditIndex]=r.gLocation.height),t._removeEntityByName(t._sketchEditEntityMiddleName),n===ve.DrawType.SpatialLine?t._createEditMiddlePoint(t._sketchEditPoints,!0):t._createEditMiddlePoint(t._sketchEditPoints))}else if(i.type===ve.EditPointType.Middle)t._sketchEditPoints[t._sketchEditIndex]=r.sLocation;else if(i.type===ve.EditPointType.Center)t._entityCenterMouseMoveEvent(e);else if(i.type===ve.EditPointType.Spatial){let n=t._viewer.scene.globe.ellipsoid,o=t._viewer.camera.pickEllipsoid(e.endPosition,n),s=t._sketchEditPoints[t._sketchEditIndex],l=o.z-s.z;if(l>0&&l<500)for(let a=0;a<t._sketchWallHeights.length;a++)t._sketchWallMaxHeights[a]=t._sketchWallHeights[a]+l}else i.type===ve.EditPointType.OdlineEndNode?t._sketchEditPoints[t._sketchEditPoints.length-1]=r.sLocation:i.type===ve.EditPointType.OdlineStrartNode&&(t._sketchEditPoints[0]=r.sLocation);t._tooltipInit("\u62AC\u8D77\u9F20\u6807\uFF0C\u5B8C\u6210\u66F4\u6539",e.endPosition)}},_eventEditMouseUp:function(e){let t=this;if(t._editPointEntity!=null){t._viewer.scene.screenSpaceCameraController.enableRotate=!0,t._tooltipRemove(),t._setMouseDefaultStyle();let r=t._editPointEntity.getEditType().type,i=t._editEntity.getEntityType();if(r!==ve.EditPointType.CoordinateAxis)if(r===ve.EditPointType.OdlineEndNode){let n=t._editEntity.parent.getParams(),o=t._calculateOdlinePositios(t._sketchEditPoints[0],t._sketchEditPoints[1],parseInt(n.odlineHeight),parseInt(n.odlineCount));t._editEntity.polyline.positions=o,t._createEditOdlineEndPoint(t._sketchEditPoints[1],t._editEntity)}else if(r===ve.EditPointType.OdlineStrartNode){let n=t._editEntity.parent.getParams(),o=1;for(let s of t._editOdlineEntities){let l=t._sketchEditPoints[o++],a=t._calculateOdlinePositios(t._sketchEditPoints[0],l,parseInt(n.odlineHeight),parseInt(n.odlineCount));s.polyline.positions=a}t._createEditOdlineStartPoint(t._sketchEditPoints[0],t._editOdlineEntities[0])}else{if(r===ve.EditPointType.Node||r===ve.EditPointType.Middle?t._entityCallbackPropertyByMouseUp():r===ve.EditPointType.Center&&t._entityCenterMouseUpEvent(e),t._removeEntityByName(t._sketchEditEntityNodeName),t._removeEntityByName(t._sketchEditEntityMiddleName),t._removeEntityByName(t._sketchEditEntityCenterName),i===ve.DrawType.Circle||i===ve.DrawType.DynamicCircle){let n=t._editEntity.position._value,o=t._calculateCircleBoundaryPoint(n,t._sketchEllipseRadius);t._sketchEditPoints[0]=n,t._sketchEditPoints[1]=o,t._createEditNodePoint(t._sketchEditPoints,1),t._createEditCenterPoint(n)}else{t._createEditNodePoint(t._sketchEditPoints);let n=t._calculateCenterPosition(t._sketchEditPoints);t._createEditCenterPoint(n)}i!=ve.DrawType.Rectangle&&i!=ve.DrawType.Circle&&i!=ve.DrawType.DynamicCircle&&(i===ve.DrawType.SpatialLine?t._createEditMiddlePoint(t._sketchEditPoints,!0):t._createEditMiddlePoint(t._sketchEditPoints))}t._editPointEntity=void 0}},_entityCenterMouseDownEvent:function(){let e=this,t=this._editEntity.position._value;this._removeEntityByName(this._sketchEditEntityNodeName),this._removeEntityByName(this._sketchEditEntityMiddleName),this._removeEntityByName(this._sketchEditEntityCenterName),this._startPoint=t,this._startMovePoints=[],this._movePoint=t;let r=this._editEntity.getEntityType();if(r===ve.DrawType.Circle||r===ve.DrawType.DynamicCircle){if(this._editEntity.polyline!==void 0){for(let i=0;i<this._ellipseOutlineCoordinates.length;i++)this._startMovePoints.push(this._ellipseOutlineCoordinates[i]);this._editEntity.polyline.positions=new Cesium.CallbackProperty(function(){return e._ellipseOutlineCoordinates},!1)}this._editEntity.position=new Cesium.CallbackProperty(function(){return e._movePoint},!1)}else if(r===ve.DrawType.Polygon||r===ve.DrawType.House){for(let i=0;i<this._sketchEditPoints.length;i++)this._startMovePoints.push(this._sketchEditPoints[i]);e._editEntity.polygon.hierarchy=new Cesium.CallbackProperty(function(){return{positions:e._sketchEditPoints}},!1),e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=new Cesium.CallbackProperty(function(){return e._sketchEditPoints},!1))}else if(r===ve.DrawType.Polyline||r===ve.DrawType.SpatialLine){for(let i=0;i<this._sketchEditPoints.length;i++)this._startMovePoints.push(this._sketchEditPoints[i]);e._editEntity.polyline.positions=new Cesium.CallbackProperty(function(){return e._sketchEditPoints},!1)}else if(r===ve.DrawType.Rectangle){for(let i=0;i<this._sketchEditPoints.length;i++)this._startMovePoints.push(this._sketchEditPoints[i]);e._editEntity.rectangle.coordinates=new Cesium.CallbackProperty(e._callUpdateRectangleCoordinates(e._sketchEditPoints),!1),e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=new Cesium.CallbackProperty(e._callUpdateRectangleOutlineCoordinates(),!1))}},_entityCenterMouseMoveEvent:function(e){this._calculatePositionsByCenter(e.endPosition,!1)},_calculatePositionsByCenter:function(e,t){let r=this._cartesian3ToGeo(this._startPoint),i=this._transfromFromScreenPoint(e);var n=Is([r.longitude,r.latitude]),o=Is([i.gLocation.lng,i.gLocation.lat]),s=F4(n,o),l={units:"kilometers",calculateHeight:t},a=RQ(n,o,l);let c=this._editEntity.getEntityType();if(c===ve.DrawType.Circle||c===ve.DrawType.DynamicCircle){for(let u=0;u<this._startMovePoints.length;u++){let p=this._calculateTransformPosition(this._startMovePoints[u],a,s,l);this._ellipseOutlineCoordinates[u]=p.clone()}this._movePoint=i.sLocation}else for(let u=0;u<this._startMovePoints.length;u++){let p=this._calculateTransformPosition(this._startMovePoints[u],a,s,l);this._sketchEditPoints[u]=p.clone()}},_entityCenterMouseUpEvent:function(e){this._calculatePositionsByCenter(e.position,!0);let t=this,r=this._editEntity.getEntityType();r===ve.DrawType.Circle||r===ve.DrawType.DynamicCircle?(this._editEntity.position=this._movePoint,this._editEntity.polyline!==void 0&&(this._editEntity.polyline.positions=this._ellipseOutlineCoordinates)):r===ve.DrawType.Polyline||r===ve.DrawType.SpatialLine?this._editEntity.polyline.positions=this._sketchEditPoints:r===ve.DrawType.Polygon||r===ve.DrawType.House?(this._editEntity.polygon.hierarchy={positions:t._sketchEditPoints},this._editEntity.polyline!=null&&(this._editEntity.polyline.positions=this._sketchEditPoints)):r===ve.DrawType.Rectangle&&(this._editEntity.rectangle.coordinates=Cesium.Rectangle.fromDegrees(t._rectangleCoordinates[0],t._rectangleCoordinates[1],t._rectangleCoordinates[2],t._rectangleCoordinates[3]),this._editEntity.polyline!=null&&(this._editEntity.polyline.positions=t._rectangleOutlineCoordinates))},_entityCallbackPropertyByMouseUp:function(){let e=this,t=e._editEntity.getEntityType();if(t===ve.DrawType.Polyline)e._editEntity.polyline.positions=e._sketchEditPoints;else if(t===ve.DrawType.Polygon||t===ve.DrawType.House){if(e._editEntity.polygon.hierarchy={positions:e._sketchEditPoints},e._editEntity.polyline!=null){let r=e._editEntity.polygon.hierarchy._value.positions,i=[];for(let n=0;n<r.length;n++)i.push(r[n].clone());i[0].x!==i[i.length-1].x&&i.push(i[0].clone()),e._editEntity.polyline.positions=i}}else t===ve.DrawType.Rectangle?(e._editEntity.rectangle.coordinates=Cesium.Rectangle.fromDegrees(e._rectangleCoordinates[0],e._rectangleCoordinates[1],e._rectangleCoordinates[2],e._rectangleCoordinates[3]),e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=e._rectangleOutlineCoordinates)):t===ve.DrawType.Circle||t===ve.DrawType.DynamicCircle?(e._editEntity.ellipse.semiMajorAxis=e._sketchEllipseRadius,e._editEntity.ellipse.semiMinorAxis=e._sketchEllipseRadius,e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=e._ellipseOutlineCoordinates)):(t===ve.DrawType.NormalWall||t===ve.DrawType.DynamicWall||t===ve.DrawType.TextWall)&&(e._editEntity.wall.positions=e._sketchEditPoints,e._editEntity.wall.minimumHeights=e._sketchWallHeights,e._editEntity.wall.maximumHeights=e._sketchWallMaxHeights)},_entityCallbackPropertyByMouseDown:function(){let e=this,t=e._editEntity.getEntityType();t===ve.DrawType.Polyline||t===ve.DrawType.SpatialLine?e._editEntity.polyline.positions=new Cesium.CallbackProperty(function(){return e._sketchEditPoints},!1):t===ve.DrawType.Polygon||t===ve.DrawType.House?(e._editEntity.polygon.hierarchy=new Cesium.CallbackProperty(function(){return{positions:e._sketchEditPoints}},!1),e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=new Cesium.CallbackProperty(function(){let r=e._sketchEditPoints,i=[];for(let n=0;n<r.length;n++)i.push(r[n].clone());return i[0].x!==i[i.length-1].x&&i.push(i[0].clone()),i},!1))):t===ve.DrawType.Rectangle?(e._editEntity.rectangle.coordinates=new Cesium.CallbackProperty(e._callUpdateRectangleCoordinates(e._sketchEditPoints),!1),e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=new Cesium.CallbackProperty(e._callUpdateRectangleOutlineCoordinates(),!1))):t===ve.DrawType.Circle||t===ve.DrawType.DynamicCircle?(e._editPointEntity.getEditType().index===1&&(e._editEntity.ellipse.semiMajorAxis=new Cesium.CallbackProperty(e._callUpdateEllipseMinorAxis(e._sketchEditPoints),!1),e._editEntity.ellipse.semiMinorAxis=new Cesium.CallbackProperty(e._callUpdateEllipseMinorAxis(e._sketchEditPoints),!1)),e._editEntity.polyline!=null&&(e._editEntity.polyline.positions=new Cesium.CallbackProperty(e._callEllipseOutlineCoordinate(e._sketchEditPoints),!1))):(t===ve.DrawType.NormalWall||t===ve.DrawType.DynamicWall||t===ve.DrawType.TextWall)&&(e._editEntity.wall.positions=new Cesium.CallbackProperty(function(){return e._sketchEditPoints},!1),e._editEntity.wall.minimumHeights=new Cesium.CallbackProperty(function(){return e._sketchWallHeights},!1),e._editEntity.wall.maximumHeights=new Cesium.CallbackProperty(function(){return e._sketchWallMaxHeights},!1))},_createEditPointEntity(e){let t=this;if(e===void 0||e.position===void 0||e===void 0||e.editType===void 0)return;let r=e.color!=null?e.color:[255,0,0,1],i=e.size!=null&&typeof e.size=="number"?e.size:9,n=e.outlineWidth!=null&&typeof e.outlineWidth=="number"?e.outlineWidth:1,o=e.outlineColor!=null?e.outlineColor:[255,255,255,1],s=new Cesium.Entity({name:e.name!=null?e.name:t._sketchEntityName,position:e.position,point:{show:!0,pixelSize:i,heightReference:Cesium.HeightReference.NONE,color:t._toColorFromArray(r),outlineWidth:n,outlineColor:t._toColorFromArray(o),disableDepthTestDistance:15e11}});s.setEditType(e.editType),t._entities.add(s)},_createEditNodePoint(e,t){this._sketchEditEntityNodeName="SketchEditEntityNode";let r=this;this._sketchEditPoints=[];let i=t===void 0?0:t;for(let n=0;n<e.length;n++){let o=e[n];if(this._sketchEditPoints.push(o.clone()),n<i||n!==0&&o.x===e[0].x&&o.y===e[0].y&&o.z===e[0].z)continue;let s=this._cartesian3ToGeo(o),l=this._queryHeightFromGeo(s.longitude,s.latitude),a=Cesium.Cartesian3.fromDegrees(s.longitude,s.latitude,l);r._createEditPointEntity({name:r._sketchEditEntityNodeName,position:a,size:12,color:[0,0,255,1],editType:{type:ve.EditPointType.Node,index:n}})}},_createEditSpatialPoint(e,t,r){},_createEditMiddlePoint(e,t=!1){this._sketchEditEntityMiddleName="SketchEditEntityMiddle";let r=this;if(t)for(let i=1;i<e.length;i++){let n=e[i-1],o=e[i],s={x:(n.x+o.x)/2,y:(n.y+o.y)/2,z:(n.z+o.z)/2};this._createEditPointEntity({name:r._sketchEditEntityMiddleName,position:s,size:9,color:[255,255,0,1],editType:{type:ve.EditPointType.Middle,index:i}})}else for(let i=1;i<e.length;i++){let n=e[i-1],o=e[i],s=this._calculateMiddlePoint(n,o);this._createEditPointEntity({name:r._sketchEditEntityMiddleName,position:s,size:9,color:[255,255,0,1],editType:{type:ve.EditPointType.Middle,index:i}})}},_createEditCenterPoint(e){let t=this;this._sketchEditEntityCenterName="SketchEditEntityCenter",this._createEditPointEntity({name:t._sketchEditEntityCenterName,position:e,size:12,color:[0,255,0,.1],outlineWidth:2,outlineColor:[255,255,255,1],editType:{type:ve.EditPointType.Center}}),this._editEntity!=null&&(this._editEntity.position=e.clone())},_createEditOdlineEndPoint(e,t){this._sketchEditEntityNodeName="SketchEditEntityNode";let r=this,i=this._cartesian3ToGeo(e),n=this._queryHeightFromGeo(i.longitude,i.latitude);Cesium.Cartesian3.fromDegrees(i.longitude,i.latitude,n),r._createEditPointEntity({name:r._sketchEditEntityNodeName,position:e,size:12,color:[0,0,255,1],editType:{type:ve.EditPointType.OdlineEndNode,joinEntity:t}})},_createEditOdlineStartPoint(e,t){this._sketchEditEntityNodeName="SketchEditEntityNode";let r=this,i=this._cartesian3ToGeo(e),n=this._queryHeightFromGeo(i.longitude,i.latitude);Cesium.Cartesian3.fromDegrees(i.longitude,i.latitude,n),r._createEditPointEntity({name:r._sketchEditEntityNodeName,position:e,size:12,color:[0,255,0,.6],editType:{type:ve.EditPointType.OdlineStrartNode,joinEntity:t}})},_calculateMiddlePoint(e,t){let r=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e),i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t),n=[Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude)],o=[Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)],s=Is(n),l=Is(o),a=TV(s,l).geometry.coordinates,c=this._queryHeightFromGeo(a[0],a[1]);return Cesium.Cartesian3.fromDegrees(a[0],a[1],c)},_cartesian3ToGeo:function(e){let t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e);return{longitude:Cesium.Math.toDegrees(t.longitude),latitude:Cesium.Math.toDegrees(t.latitude),height:t.height}},_queryHeightFromGeo:function(e,t){if(e===void 0||t===void 0||typeof e!="number"||typeof t!="number")return 0;let r=Cesium.Math.toRadians(e),i=Cesium.Math.toRadians(t),n=new Cesium.Cartographic(r,i),o=[];for(let l=0;l<this._entities.values.length;l++)this._entities.values[l].name===this._sketchEntityName&&o.push(this._entities.values[l]);let s=this._viewer.scene.sampleHeight(n,o);return s===void 0?0:s},_queryHeightFromGeoAsync:function(e,t,r){if(e===void 0||t===void 0||typeof e!="number"||typeof t!="number")return 0;let i=Cesium.Math.toRadians(e),n=Cesium.Math.toRadians(t),o=new Cesium.Cartographic(i,n);this._viewer.scene.sampleHeightMostDetailed([o]).then(function(l){r&&r(l[0].height)})},_clearEditPoint:function(){this._sketchEditHandler!=null&&(this._sketchEditHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOWN),this._sketchEditHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_UP),this._sketchEditHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE)),this._sketchEditPoints=[],this._sketchEditIndex=void 0,this._editEntity=void 0,this._removeEntityByName(this._sketchEditEntityNodeName),this._removeEntityByName(this._sketchEditEntityMiddleName),this._removeEntityByName(this._sketchEditEntityCenterName),this._removeEntityByName(this._sketchEditEntitySpatialName)}});Object.assign(ve.prototype,{_checkColor:function(e){if(e==null||typeof e!="number")return!1;let t=parseInt(e);return!(t<0||t>255)},_checkAlpha:function(e){if(e==null||typeof e!="number")return!1;let t=parseFloat(e);return!(t<0||t>1)},_checkColorAndAlpha:function(e){let t;if(!(!e||e.length===void 0||e.length===0))return e.length===1&&this._checkColor(e[0])?t=[e[0],0,0,1]:e.length===2&&this._checkColor(e[0])&&this._checkColor(e[1])?t=[e[0],e[1],0,1]:e.length===3&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])?t=[e[0],e[1],e[2],1]:e.length===4&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])&&this._checkAlpha(e[3])&&(t=[e[0],e[1],e[2],e[3]]),t}});Object.assign(ve.prototype,{_initOperationDom:function(){let e=this;if(this._operationDomId="drawtools_operation_dom",this._operationDom=document.getElementById(this._operationDomId),this._removeOperationDom(),this._createOperationMainDom(),[ve.DrawType.Rectangle,ve.DrawType.Circle,ve.DrawType.DynamicCircle,ve.DrawType.VideoWall].indexOf(this._drawType)===-1){let t=this._createOperationUndoButtonDom();t.onclick=function(){e._operationExecuteEvent(Cesium.ScreenSpaceEventType.RIGHT_CLICK)}}if([ve.DrawType.Rectangle,ve.DrawType.Circle,ve.DrawType.DynamicCircle,ve.DrawType.VideoWall]===-1){let t=this._crateOperationCompletionButtonDom();t.onclick=function(){e._operationExecuteEvent(Cesium.ScreenSpaceEventType.LEFT_CLICK)}}else{let t=this._crateOperationCompletionButtonDom();t.onclick=function(){e._operationExecuteEvent(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK)}}},_operationExecuteEvent(e){if(this._drawEventHandler!==void 0&&this._drawEventHandler.isDestroyed()===!1){let t={position:new Cesium.Cartesian2(300,300)};this._drawEventHandler.getInputAction(e)(t)}},_createOperationMainDom:function(){this._operationDom=document.createElement("div"),this._operationDom.id=this._operationDomId,this._operationDom.style.width="80px",this._operationDom.style.backgroundColor="rgba(5, 45, 155, 0.7)",this._operationDom.style.borderRadius="5px",this._operationDom.style.display="flex",this._operationDom.style.flexDirection="column",this._operationDom.style.padding="8px",this._operationDom.style.justifyContent="center",this._operationDom.style.position="absolute",this._operationDom.style.bottom="150px",this._operationDom.style.right="10px",document.body.appendChild(this._operationDom)},_createOperationUndoButtonDom:function(){let e=document.createElement("button");return e.style.height="30px",e.style.marginBottom="8px",e.style.backgroundColor="rgba(52, 137, 255, 1.0)",e.style.color="rgb(255, 255, 255)",e.style.border="0px solid red",e.style.borderRadius="5px",e.innerHTML="\u56DE\u9000",e.style.fontSize="13px",e.style.cursor="pointer",this._operationDom.appendChild(e),e},_crateOperationCompletionButtonDom:function(){let e=document.createElement("button");return e.style.height="30px",e.style.backgroundColor="rgba(88, 185, 45, 1.0)",e.style.color="rgb(255, 255, 255)",e.style.border="0px solid red",e.style.borderRadius="5px",e.innerHTML="\u5B8C\u6210",e.style.fontSize="13px",e.style.cursor="pointer",this._operationDom.appendChild(e),e},_removeOperationDom:function(){this._operationDom!==null&&this._operationDom!==void 0&&(document.body.removeChild(this._operationDom),this._operationDom=void 0)},_createOperationDom:function(){this._isRuntimeApp()&&this._initOperationDom()}});Object.assign(ve.prototype,{_openPropertyEditDialog:function(e,t,r){this._editPropertyDialogDomId="dialog-property-dom",this._registerDOMPropertyEdit="dialog-edit-property";let i=customElements.get(this._registerDOMPropertyEdit);i===void 0&&(i=pue(Qje),customElements.define(this._registerDOMPropertyEdit,i)),this._closePropertyEditDialog();let n=new i({params:e});n.id=this._editPropertyDialogDomId,n.showDialog=!0,document.body.appendChild(n),n.addEventListener("submit",o=>{t&&t(o.detail[0])},!1),n.addEventListener("remove",o=>{r&&r()},!1)},_closePropertyEditDialog(){let e=document.getElementById(this._editPropertyDialogDomId);e!=null&&document.body.removeChild(e)}});ve.DrawType=Object.freeze({Point:"point",Polyline:"polyline",ArrowPolyline:"arrowPolyline",DynamicPolyline:"dynamicPolyline",GrowPolyline:"\u53D1\u5149\u7EBF",OutlinePolyline:"outlinePolyline",OdLine:"odLine",Polygon:"polygon",SpatialLine:"spatialLine",Circle:"circle",DynamicCircle:"dynamicCircle",Rectangle:"rectangle",NormalWall:"normalWall",DynamicWall:"dynamicWall",House:"house",TextWall:"text",VideoWall:"videoWall",Doodle:"doodle"});ve.IconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"});ve.EditPointType=Object.freeze({Node:"node",Middle:"middle",Center:"center",CoordinateAxis:"coordinateAxis",OdlineStrartNode:"odlineStartNode",OdlineEndNode:"odlineEndNode"});ve.WallType=Object.freeze({ColorWall:"colorWall",DynamicWall:"dynamicWall",TextWall:"textWall"});ve.CircleType=Object.freeze({ColorCircle:"colorCircle",DynamicCircle:"dynamicCircle"});ve.PolylineType=Object.freeze({NormalPolyline:"normalPolyline",ArrowsPolyline:"arrowsPolyline",DynamicPolyline:"dynamicPolyline",DottedPolyline:"dottedPolyline",GrowPolyline:"growPolyline",OutlinePolyline:"outlinePolyline"});ve.PolygonType=Object.freeze({NormalPolygon:"normalPolygon",HousePolygon:"housePolygon"});ve.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class qa{constructor(t){this._viewer=t.viewer,this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=t.color||Cesium.Color.BLUE,this.duration=t.duration||1e3,this.trailImage=t.trailImage,this._time=new Date().getTime(),this._materialTypeName="WallMaterial"+this._guid(),this._param={color:this.color._value.toCssColorString(),image:this.trailImage,duration:this.duration,count:0,direction:"",order:""},Cesium.Material._materialCache.addMaterial(this._materialTypeName,{fabric:{type:this._materialTypeName,uniforms:{time:-20,color:new Cesium.Color(1,0,0,.5),image:t.trailImage},source:this._getDirectionWallShader(t.param)},translucent:function(r){return!0}})}_guid(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}getType(t){return this._materialTypeName}getValue(t,r){return Cesium.defined(r)||(r={}),r.color=Cesium.Property.getValueOrClonedDefault(this._color,t,Cesium.Color.BLUE,r.color),r.image=this.trailImage,this.duration&&(r.time=(new Date().getTime()-this._time)%this.duration/this.duration),this._viewer.scene.requestRender(),r}equals(t){return this===t||t instanceof qa&&Cesium.Property.equals(this._color,t._color)&&t._param.order===this._param.order&&t._param.count===this._param.count&&t._param.direction===this._param.direction&&t.duration===this.duration}_getDirectionWallShader(t){let r=Cesium.defaultValue(t,{}),i=r.count!==void 0&&typeof r.count=="number"&&r.count>0?r.count:1,n=r.direction==="horizontal"?"horizontal":"vertical",o=r.order==="+"?"+":"-";this._param.count=i,this._param.direction=n,this._param.order=o;let s="";return s+=`czm_material czm_getMaterial(czm_materialInput materialInput){
- czm_material material = czm_getDefaultMaterial(materialInput);
- vec2 st = materialInput.st;
- `,n==="vertical"?s+=" vec4 colorImage = texture2D(image,vec2(st.s,fract(float("+i+")*st.t "+o+` time)));
- `:n==="horizontal"&&(s+=" vec4 colorImage = texture2D(image, vec2(fract(float("+i+")*st.s "+o+` time), st.t));
- `),s+=` vec4 fragColor;
- fragColor.rgb = color.rgb / 1.0;
- fragColor = czm_gammaCorrect(fragColor);
- material.alpha = colorImage.a * color.a;
- material.diffuse = color.rgb;
- material.emission = fragColor.rgb;
- return material;
- }`,s}}Object.defineProperties(qa.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});class Uv{constructor(t){this._viewer=t.viewer,this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=t.color||Cesium.Color.BLUE,this.count=t.count||1,this.duration=t.duration||1e3,this._time=new Date().getTime(),this._materialTypeName="jtCircleMaterial",this._param={color:this.color._value.toCssColorString(),duration:this.duration,count:this.count},Cesium.Material._materialCache.addMaterial(this._materialTypeName,{fabric:{type:this._materialTypeName,uniforms:{time:0,color:new Cesium.Color(1,0,0,.5),count:1},source:this._getCircleMaterial()},translucent:function(r){return!0}})}_getCircleMaterial(){return`czm_material czm_getMaterial(czm_materialInput materialInput)
- {
- czm_material material = czm_getDefaultMaterial(materialInput);
- material.diffuse = 1.5 * color.rgb;
- vec2 st = materialInput.st;
- vec3 str = materialInput.str;
- float dis = distance(st, vec2(0.5, 0.5));
- float per = fract(time);
- if (abs(str.z) > 0.001)
- {
- //\u7740\u8272\u5668\u6E32\u67D3\u505C\u6B62\uFF0C\u4E0D\u5728\u7ED8\u5236\u5185\u5BB9
- discard;
- }
- if (dis > 0.5)
- {
- //\u8D85\u51FA\u534A\u5F84\u8303\u56F4\u65F6\uFF0C\u7740\u8272\u5668\u6E32\u67D3\u505C\u6B62
- discard;
- } else {
- //\u628A\u534A\u5F84\u5206\u6210count\u4EFD\uFF0C\u6BCF\u4E24\u4EFD\u4E4B\u95F4\u7684\u95F4\u9694\u8DDD\u79BB
- float perDis = 0.5 / count;
- float disNum;
- float bl = 0.0;
- //\u5FAA\u73AF\uFF0C\u6700\u591A999\u4E2A\u73AF
- for (int i = 0; i <= 999; i++)
- {
- //\u5224\u65AD\u662F\u5426\u5C5E\u4E8E\u6570\u91CF\u5185\u7684\u73AF
- if (float(i) <= count)
- {
- disNum = perDis * float(i) - dis + per / count;
- if (disNum > 0.0)
- {
- if (disNum < perDis)
- {
- bl = 1.0 - disNum / perDis;
- } else if (disNum - perDis < perDis) {
- bl = 1.0 - abs(1.0 - disNum / perDis);
- }
- material.alpha = color.a * pow(bl, 3.0);
- }
- }
- }
- }
- return material;
- }
- `}}Object.assign(Uv.prototype,{getType:function(e){return this._materialTypeName},getValue:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BLUE,t.color),t.count=this.count,this.duration&&(t.time=(new Date().getTime()-this._time)%this.duration/this.duration),this._viewer.scene.requestRender(),t},equals:function(e){return this===e||e instanceof Uv&&Cesium.Property.equals(this._color,e._color)}});Object.defineProperties(Uv.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});const Jje={class:"jt-wall-dialog"},Xje={slot:"title",class:"header-title"},eVe={style:{"line-height":"24px","font-size":"18px",color:"#fff","font-family":"'Alimama_ShuHeiTi_Bold'"}},tVe={class:"odin-dialog__content"},rVe={class:"jt-wall-row"},iVe=G("div",{class:"col-left"},"\u9AD8\u5EA6",-1),nVe={class:"col-main"},oVe={class:"jt-wall-row"},sVe=G("div",{class:"col-left"},"\u5F2F\u66F2\u5EA6",-1),lVe={class:"col-main"},aVe={class:"jt-wall-row"},cVe=G("div",{class:"col-left"},"\u7EBF\u5BBD",-1),uVe={class:"col-main"},dVe={class:"jt-wall-row"},pVe=G("div",{class:"col-left"},"\u53D1\u5149\u5F3A\u5EA6",-1),hVe={class:"col-main"},fVe={class:"jt-wall-row"},mVe=G("div",{class:"col-left"},"\u989C\u8272",-1),gVe={class:"col-main"},yVe={class:"jt-wall-row"},vVe=G("div",{class:"col-left"},"\u6D41\u52A8\u65B9\u5411",-1),bVe={class:"col-main"},_Ve={class:"jt-wall-row"},wVe=G("div",{class:"col-left"},"\u6D41\u52A8\u987A\u5E8F",-1),xVe={class:"col-main"},CVe={class:"jt-wall-row"},kVe=G("div",{class:"col-left"},"\u6D41\u52A8\u901F\u5EA6",-1),SVe={class:"col-main"},EVe={class:"col-main"},TVe={class:"jt-wall-row"},AVe=G("div",{class:"col-left"},"\u91CD\u590D\u6570\u91CF",-1),MVe={class:"col-main"},IVe={class:"jt-wall-row",style:{height:"60px"}},PVe=G("div",{class:"col-left"},"\u6587\u5B57\u5185\u5BB9",-1),$Ve={class:"col-main"},OVe={class:"jt-wall-row"},LVe=G("div",{class:"col-left"},"\u63CF\u8FB9\u5BBD\u5EA6",-1),RVe={class:"col-main"},DVe={class:"jt-wall-row"},NVe=G("div",{class:"col-left"},"\u63CF\u8FB9\u989C\u8272",-1),FVe={class:"col-main"},zVe={class:"jt-wall-row",style:{height:"100px"}},jVe=G("div",{class:"col-left"},"\u89C6\u9891\u5730\u5740",-1),VVe={class:"col-main"},BVe={class:"el-body-foot"},UVe={__name:"dialogEditProperty",props:{params:{id:{type:String,default:()=>{}},height:{type:Number,default:()=>13},bottomHeight:{type:Number,default:()=>0},color:{type:String,default:()=>"255,255,0,0.9"},direction:{type:String,default:()=>"horizontal"},order:{type:String,default:()=>"+"},count:{type:Number,default:()=>2},text:{type:String,default:()=>""},lineWidth:{type:Number,default:()=>2},glowPower:{type:Number,default:()=>.25},outlineWidth:{type:Number,default:()=>0},outlineColor:{type:String,default:()=>"255,255,0,0.9"},speed:{type:Number,default:()=>1.5},videoUrl:{type:String,default:()=>""},arcHeight:{type:Number,default:()=>1e3}},showDialog:{type:Boolean,default:()=>!1}},emits:["submit","update:showDialog","update:params","remove"],setup(e,{expose:t,emit:r}){const i=e,n=F("zh-cn"),o=O(()=>n.value==="zh-cn"?SQ:EQ),s=F(["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]),l=F(!1),a=F(!1),c=F(!1),u=F(!1),p=F(!1),h=F(!1);F(!1);const m=F(!1),y=F(!1),v=F(!1),_=F(!1),x=F(!1),S=F(!1),C=F(!1),E=F(i.params.color),T=F("\u5C5E\u6027\u7F16\u8F91"),w=F(i.showDialog),I=kr([{key:"\u5DE6\u53F3",value:"horizontal"},{key:"\u4E0A\u4E0B",value:"vertical"}]),M=kr([]),L=F(""),R=F(""),W=F(0),z=F(0),j=F(""),U=F(0),Z=F(.25),Q=F(0),B=F(i.params.outlineColor),V=F(1.5),H=F(""),ee=F(1e3);ce(i.params),Ve(()=>i.showDialog,(X,he)=>{w.value=X}),Ve(i.params,(X,he)=>{ce(X)});function ce(X){re(!1),X.id===ve.DrawType.TextWall?(T.value="\u5E7F\u544A\u724C\u7F16\u8F91",l.value=!0,a.value=!0,c.value=!0):X.id===ve.DrawType.DynamicWall?(T.value="\u52A8\u6001\u56F4\u680F\u7F16\u8F91",l.value=!0,u.value=!0,p.value=!0,h.value=!0,c.value=!0,x.value=!0):X.id===ve.DrawType.NormalWall?(T.value="\u666E\u901A\u56F4\u680F\u7F16\u8F91",l.value=!0,c.value=!0):X.id===ve.DrawType.Circle?(T.value="\u8D34\u5730\u5706\u7F16\u8F91",l.value=!0,_.value=!0,v.value=!0):X.id===ve.DrawType.DynamicCircle?(T.value="\u6269\u6563\u5706\u7F16\u8F91",l.value=!0,h.value=!0,x.value=!0):X.id===ve.DrawType.House?(T.value="\u623F\u5C4B\u7F16\u8F91",l.value=!0,c.value=!0):X.id===ve.DrawType.VideoWall?(T.value="\u89C6\u9891\u5899\u7F16\u8F91",c.value=!0,S.value=!0):X.id===ve.DrawType.Polyline?(T.value="\u8D34\u5730\u7EBF\u7F16\u8F91",l.value=!0,m.value=!0):X.id===ve.DrawType.ArrowPolyline?(T.value="\u7BAD\u5934\u7EBF\u7F16\u8F91",l.value=!0,m.value=!0):X.id===ve.DrawType.DynamicPolyline?(T.value="\u52A8\u6001\u7EBF\u7F16\u8F91",l.value=!0,p.value=!0,h.value=!0,m.value=!0,x.value=!0):X.id===ve.DrawType.GrowPolyline?(T.value="\u53D1\u5149\u7EBF\u7F16\u8F91",l.value=!0,m.value=!0,y.value=!0):X.id===ve.DrawType.OutlinePolyline?(T.value="\u63CF\u8FB9\u7EBF\u7F16\u8F91",l.value=!0,m.value=!0,_.value=!0,v.value=!0):X.id===ve.DrawType.Polygon?(T.value="\u8D34\u5730\u9762\u7F16\u8F91",l.value=!0,_.value=!0,v.value=!0):X.id===ve.DrawType.Rectangle?(T.value="\u77E9\u5F62\u7F16\u8F91",l.value=!0,_.value=!0,v.value=!0):X.id===ve.DrawType.SpatialLine?(T.value="\u7A7A\u95F4\u7EBF\u7F16\u8F91",l.value=!0,m.value=!0):X.id===ve.DrawType.OdLine?(T.value="OD\u7EBF\u7F16\u8F91",x.value=!0,l.value=!0,m.value=!0,p.value=!0,C.value=!0):re(!1),E.value=X.color,X.direction==="horizontal"?(L.value=I[0].key,Object.assign(M,[{key:"\u81EA\u5DE6\u81F3\u53F3",value:"-"},{key:"\u81EA\u53F3\u81F3\u5DE6",value:"+"}]),X.order==="-"?R.value=M[0].key:R.value=M[1].key):(L.value=I[1].key,Object.assign(M,[{key:"\u81EA\u4E0A\u81F3\u4E0B",value:"+"},{key:"\u81EA\u4E0B\u81F3\u4E0A",value:"-"}]),X.order==="+"?R.value=M[0].key:R.value=M[1].key),X.id===ve.DrawType.OdLine&&(Object.assign(M,[{key:"\u6C47\u805A",value:"+"},{key:"\u6269\u6563",value:"-"}]),X.order==="+"?R.value=M[0].key:R.value=M[1].key),W.value=parseFloat(X.height).toFixed(2),z.value=X.count,j.value=X.text,U.value=X.lineWidth,Z.value=X.power,B.value=X.outlineColor,Q.value=X.outlineWidth,V.value=(parseFloat(X.duration)/1e3).toFixed(2),H.value=X.videoUrl,ee.value=X.odlineHeight}function re(X){l.value=X,a.value=X,u.value=X,p.value=X,h.value=X,c.value=X,m.value=X,y.value=X,_.value=X,v.value=X,x.value=X,S.value=X,C.value=X}t({updateParams:ce});function fe(){let X=ve.initEditPropertyParams();X.id=i.params.id,X.height=W.value,X.color=E.value,X.direction=I.filter(he=>he.key===L.value)[0].value,X.order=M.filter(he=>he.key===R.value)[0].value,X.count=z.value,X.text=j.value,X.lineWidth=U.value,X.power=Z.value,X.outlineColor=B.value,X.outlineWidth=Q.value,X.duration=V.value*1e3,X.videoUrl=H.value,X.odlineHeight=ee.value,X.bottomHeight=i.params.bottomHeight,r("submit",X),w.value=!1}function Ne(){r("remove",{}),w.value=!1}function de(X){X.target.value===I[0].key?(Object.assign(M,[{key:"\u81EA\u5DE6\u81F3\u53F3",value:"-"},{key:"\u81EA\u53F3\u81F3\u5DE6",value:"+"}]),R.value=M[0].key):X.target.value===I[1].key&&(Object.assign(M,[{key:"\u81EA\u4E0A\u81F3\u4E0B",value:"-"},{key:"\u81EA\u4E0B\u81F3\u4E0A",value:"+"}]),R.value=M[0].key)}function _e(){r("update:showDialog",!1)}function ae(){ce(i.params)}return(X,he)=>{const $e=Ft("el-input"),Je=Ft("el-color-picker"),ne=Ft("el-config-provider"),pe=Ft("el-radio-button"),ge=Ft("el-radio-group"),Se=Ft("el-button"),xe=Ft("el-button-group");return $(),K("div",Jje,[Y(g(k3),{draggable:"",modal:!1,"destroy-on-close":!1,modelValue:w.value,"onUpdate:modelValue":he[15]||(he[15]=be=>w.value=be),title:T.value,style:St({left:"0px",background:"rgb(0 44 126 / 68%)",height:"calc(100% - 50px)",width:"180px",top:"0px"}),onClose:_e,onOpen:ae},{header:me(()=>[G("div",Xje,[G("span",eVe,rt(T.value),1)])]),default:me(()=>[G("div",tVe,[kt(G("div",rVe,[iVe,G("div",nVe,[Y($e,{modelValue:W.value,"onUpdate:modelValue":he[0]||(he[0]=be=>W.value=be),placeholder:"\u8F93\u5165\u9AD8\u5EA6\u503C",clearable:""},null,8,["modelValue"])])],512),[[Vt,c.value]]),kt(G("div",oVe,[sVe,G("div",lVe,[Y($e,{modelValue:ee.value,"onUpdate:modelValue":he[1]||(he[1]=be=>ee.value=be),placeholder:"\u8F93\u5165\u5F2F\u66F2\u5EA60\uFF5E9000",clearable:""},null,8,["modelValue"])])],512),[[Vt,C.value]]),kt(G("div",aVe,[cVe,G("div",uVe,[Y($e,{modelValue:U.value,"onUpdate:modelValue":he[2]||(he[2]=be=>U.value=be),placeholder:"\u8F93\u5165\u5BBD\u5EA6\u503C",clearable:""},null,8,["modelValue"])])],512),[[Vt,m.value]]),kt(G("div",dVe,[pVe,G("div",hVe,[Y($e,{modelValue:Z.value,"onUpdate:modelValue":he[3]||(he[3]=be=>Z.value=be),placeholder:"\u8F93\u5165\u53D1\u5149\u5F3A\u5EA60\uFF5E1",clearable:""},null,8,["modelValue"])])],512),[[Vt,y.value]]),kt(G("div",fVe,[mVe,G("div",gVe,[Y(ne,{locale:g(o)},{default:me(()=>[Y(Je,{modelValue:E.value,"onUpdate:modelValue":he[4]||(he[4]=be=>E.value=be),"show-alpha":"",predefine:s.value,label:"12"},null,8,["modelValue","predefine"])]),_:1},8,["locale"])])],512),[[Vt,l.value]]),kt(G("div",yVe,[vVe,G("div",bVe,[Y(ge,{modelValue:L.value,"onUpdate:modelValue":he[5]||(he[5]=be=>L.value=be)},{default:me(()=>[($(!0),K(bt,null,or(I,(be,Qe)=>($(),Te(pe,{label:be.key,modelValue:be.value,"onUpdate:modelValue":Fe=>be.value=Fe,onChange:de},null,8,["label","modelValue","onUpdate:modelValue"]))),256))]),_:1},8,["modelValue"])])],512),[[Vt,u.value]]),kt(G("div",_Ve,[wVe,G("div",xVe,[Y(ge,{modelValue:R.value,"onUpdate:modelValue":he[6]||(he[6]=be=>R.value=be)},{default:me(()=>[($(!0),K(bt,null,or(M,(be,Qe)=>($(),Te(pe,{label:be.key,modelValue:be.value,"onUpdate:modelValue":Fe=>be.value=Fe},null,8,["label","modelValue","onUpdate:modelValue"]))),256))]),_:1},8,["modelValue"])])],512),[[Vt,p.value]]),kt(G("div",CVe,[kVe,G("div",SVe,[G("div",EVe,[Y($e,{modelValue:V.value,"onUpdate:modelValue":he[7]||(he[7]=be=>V.value=be),placeholder:"\u8F93\u5165\u6D41\u52A8\u901F\u5EA60\uFF5E10",clearable:""},null,8,["modelValue"])])])],512),[[Vt,x.value]]),kt(G("div",TVe,[AVe,G("div",MVe,[Y($e,{modelValue:z.value,"onUpdate:modelValue":he[8]||(he[8]=be=>z.value=be),placeholder:"\u8F93\u51651\uFF5E100",clearable:""},null,8,["modelValue"])])],512),[[Vt,h.value]]),kt(G("div",IVe,[PVe,G("div",$Ve,[Y($e,{modelValue:j.value,"onUpdate:modelValue":he[9]||(he[9]=be=>j.value=be),placeholder:"\u8F93\u5165\u663E\u793A\u7684\u6587\u5B57\u5185\u5BB9",clearable:"",type:"textarea",rows:2},null,8,["modelValue"])])],512),[[Vt,a.value]]),kt(G("div",OVe,[LVe,G("div",RVe,[Y($e,{modelValue:Q.value,"onUpdate:modelValue":he[10]||(he[10]=be=>Q.value=be),placeholder:"\u8F93\u5165\u5BBD\u5EA6\u503C",clearable:""},null,8,["modelValue"])])],512),[[Vt,v.value]]),kt(G("div",DVe,[NVe,G("div",FVe,[Y(ne,{locale:g(o)},{default:me(()=>[Y(Je,{modelValue:B.value,"onUpdate:modelValue":he[11]||(he[11]=be=>B.value=be),"show-alpha":"",predefine:s.value,label:"12"},null,8,["modelValue","predefine"])]),_:1},8,["locale"])])],512),[[Vt,_.value]]),kt(G("div",zVe,[jVe,G("div",VVe,[Y($e,{modelValue:H.value,"onUpdate:modelValue":he[12]||(he[12]=be=>H.value=be),placeholder:"\u8F93\u5165\u64AD\u653E\u89C6\u9891\u7684\u5730\u5740",clearable:"",type:"textarea",rows:2},null,8,["modelValue"])])],512),[[Vt,S.value]]),G("div",BVe,[Y(xe,{class:"ml-4"},{default:me(()=>[Y(Se,{type:"primary",icon:g(Lq),onClick:he[13]||(he[13]=be=>fe())},{default:me(()=>[Ir("\u4FEE\u6539")]),_:1},8,["icon"]),Y(Se,{type:"danger",icon:g(PR),onClick:he[14]||(he[14]=be=>Ne())},{default:me(()=>[Ir("\u5220\u9664")]),_:1},8,["icon"])]),_:1})])])]),_:1},8,["modelValue","title","style"])])}}},f2=3.141592653589793*3e3/180,qo=3.141592653589793,PV=6378245,$V=.006693421622965943;class OV{static BD09ToGCJ02(t,r){let i=+t-.0065,n=+r-.006,o=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*f2),s=Math.atan2(n,i)-3e-6*Math.cos(i*f2),l=o*Math.cos(s),a=o*Math.sin(s);return[l,a]}static GCJ02ToBD09(t,r){r=+r,t=+t;let i=Math.sqrt(t*t+r*r)+2e-5*Math.sin(r*f2),n=Math.atan2(r,t)+3e-6*Math.cos(t*f2),o=i*Math.cos(n)+.0065,s=i*Math.sin(n)+.006;return[o,s]}static WGS84ToGCJ02(t,r){if(r=+r,t=+t,this.out_of_china(t,r))return[t,r];{let i=this.delta(t,r);return[t+i[0],r+i[1]]}}static GCJ02ToWGS84(t,r){if(r=+r,t=+t,this.out_of_china(t,r))return[t,r];{let i=this.delta(t,r),n=t+i[0],o=r+i[1];return[t*2-n,r*2-o]}}static delta(t,r){let i=this.transformLng(t-105,r-35),n=this.transformLat(t-105,r-35);const o=r/180*qo;let s=Math.sin(o);s=1-$V*s*s;const l=Math.sqrt(s);return i=i*180/(PV/l*Math.cos(o)*qo),n=n*180/(PV*(1-$V)/(s*l)*qo),[i,n]}static transformLng(t,r){r=+r,t=+t;let i=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*qo)+20*Math.sin(2*t*qo))*2/3,i+=(20*Math.sin(t*qo)+40*Math.sin(t/3*qo))*2/3,i+=(150*Math.sin(t/12*qo)+300*Math.sin(t/30*qo))*2/3,i}static transformLat(t,r){r=+r,t=+t;let i=-100+2*t+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*qo)+20*Math.sin(2*t*qo))*2/3,i+=(20*Math.sin(r*qo)+40*Math.sin(r/3*qo))*2/3,i+=(160*Math.sin(r/12*qo)+320*Math.sin(r*qo/30))*2/3,i}static out_of_china(t,r){return r=+r,t=+t,!(t>73.66&&t<135.05&&r>3.86&&r<53.55)}static transformWGS84ToCartesian(t,r,i){return r?Cesium.Cartesian3.fromDegrees(r.lng||r.lon,r.lat,r.alt=i||r.alt,Cesium.Ellipsoid.WGS84):Cesium.Cartesian3.ZERO}static transformCartesianToWGS84(t,r){let n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(r);return{lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),alt:n.height}}}class WVe{constructor(t,r=""){let i=this;if(!t.url)throw new Error("Map service url is required!");t.tilingScheme=new Cesium.WebMercatorTilingScheme;let o=new Cesium.ArcGisMapServerImageryProvider(t);return r.toUpperCase()==="WGS84"&&o.readyPromise.then(()=>{i._transformProjection(o)}),o}_transformProjection(t){let i=t.tilingScheme._projection;return i.x_project=i.project,i.project=function(n){let o;return o=OV.WGS84ToGCJ02(Cesium.Math.toDegrees(n.longitude),Cesium.Math.toDegrees(n.latitude)),i.x_project(new Cesium.Cartographic(Cesium.Math.toRadians(o[0]),Cesium.Math.toRadians(o[1])))},i.x_unproject=i.unproject,i.unproject=function(n){let o,s=i.x_unproject(n);return o=OV.GCJ02ToWGS84(Cesium.Math.toDegrees(s.longitude),Cesium.Math.toDegrees(s.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(o[0]),Cesium.Math.toRadians(o[1]))},t}}Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var r in t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,RegExp.$1.length==1?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};Cesium.GroundPrimitive.prototype.setId=function(e){this._id=e};Cesium.GroundPrimitive.prototype.getId=function(){return this._id};Cesium.PrimitiveCollection.prototype.getById=function(e){return this._primitives.find(r=>{if(r._id===e)return r})};Cesium.PrimitiveCollection.prototype.removeById=function(e){let t=this.getById(e);return t!==void 0?this.remove(t):!1};class ih{constructor({viewer:t,providerType:r=ih.ArcGisMapServerImageryProvider,config:i={},opacity:n=.75,show:o=!0}={}){let s=this;this._viewer=t,this._providerType=r,this._provider=void 0,this._tilingScheme=void 0,this._maximumLevel=0,this._minimumLevel=20,this._tileWidth=0,this._tileHeight=0,this._rectangle=void 0,this._config=i,this._opacity=n,this._renderName=this._guid(),this._primitives=new Cesium.PrimitiveCollection,this._viewer.scene.primitives.add(this._primitives),this._renderPrimitives=new Map,this._removePrimitives=new Map,this._isUpdateTile=o,this._isDebug=!0,this._chacheImages=new Map,this._sendTask=!0;let l=new Blob([`(${HVe.toString()})()`]);this._worker=new Worker(URL.createObjectURL(l)),this._worker.onmessage=function(a){for(let c of a.data)s._primitives.removeById(c),s._removePrimitives.delete(c),s._renderPrimitives.delete(c);s._sendTask=!0},this._init()}_init(){let t=this;switch(this._providerType){case ih.ProviderType.ArcGisMapServerImageryProvider:this._provider=new Cesium.ArcGisMapServerImageryProvider(this._config);break;case ih.ProviderType.UrlTemplateImageryProvider:this._provider=new Cesium.UrlTemplateImageryProvider(this._config);break;case ih.ProviderType.WebMapTileServiceImageryProvider:this._provider=new Cesium.WebMapTileServiceImageryProvider({url:t._config.url,layer:1,style:"default",format:"image/png",tileMatrixSetID:"default028mm",maximumLevel:t._config.maxLevel?t._config.maxLevel:19,minimumLevel:t._config.minLevel?t._config.maxLevel:0});break}if(this._provider===void 0){this._console("\u6CA1\u6709\u670D\u52A1\u63D0\u4F9B\u8005\uFF0C\u65E0\u6CD5\u521D\u59CB\u5316\uFF01");return}this._provider.readyPromise.then(function(r){t._rectangle=t._provider.rectangle,t._tilingScheme=t._provider.tilingScheme,t._maximumLevel=t._provider.maximumLevel===void 0?22:t._provider.maximumLevel,t._minimumLevel=t._provider.minimumLevel===void 0?0:t._provider.minimumLevel,t._tileWidth=t._provider.tileWidth,t._tileHeight=t._provider.tileHeight,t._isDebug&&t._printDebug(),t._viewer.scene.postRender.addEventListener(()=>{t._isUpdateTile&&(t._isUpdateTile=!1,t._renderTiles())})})}_findTile(t){t.children.length>0?(Cesium.Rectangle.intersection(t.rectangle,this._rectangle)&&this._console(t.x,t.y,t.level),this._findTile(t.children[0]),this._findTile(t.children[1]),this._findTile(t.children[2]),this._findTile(t.children[3])):this._console("\u7ED3\u675F")}_guid(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}_printDebug(){this._provider.tilingScheme;let t=new Cesium.GeographicTilingScheme;this._drawDebugRectangle(this._rectangle,Cesium.Color.GREEN),t.tileXYToRectangle(1696,312,10)}_drawDebugRectangle(t,r){let i=this._calculateRectangleOutlineCoordinates(t),n=new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:i,width:8})}),o=new Cesium.GroundPolylinePrimitive({geometryInstances:n,appearance:this._createMaterialColorAppearance("rgba(0,255,0,1)"),classificationType:Cesium.ClassificationType.BOTH});this._primitives.add(o)}_createMaterialColorAppearance(t){let r=new Cesium.Material({fabric:{type:"Color",uniforms:{color:new Cesium.Color.fromCssColorString(t)}}});return new Cesium.MaterialAppearance({material:r})}_createMaterialImageAppearance(t){let r=Cesium.Material.fromType("Image",{image:t});return new Cesium.MaterialAppearance({material:r})}_console(...t){this._isDebug&&console.log("==="+new Date().Format("yyyy-MM-dd HH:mm:ss")+">>>",t)}_renderTiles(){let t=this,r=this._viewer.scene.globe._surface._tilesToRender;if(r===void 0||r.length===0){this._isUpdateTile=!0;return}else new Promise((i,n)=>{r.sort(function(o,s){let l=parseInt(o.level),a=parseInt(s.level);return l-a}),i(r)}).then(i=>{t._asyncProjectionTiles(i)})}_createKey(t,r,i){return`${this._renderName}_${t}_${r}_${i}`}_asyncProjectionTiles(t){let r=[];for(let o of t){let s=this._projectionTile(o);for(let l of s){let a=this._createKey(l.x,l.y,l.level);if(r.find(u=>u.x===l.x&&u.y===l.y)===void 0){let u=!1;for(let p of r)if(Cesium.Rectangle.intersection(p.rectangle,l.rectangle)){p.childTiles.push(a),u=!0;break}u||r.push({key:a,x:l.x,y:l.y,level:l.level,rectangle:l.rectangle,childTiles:[]})}}}let i=r.length,n=[];for(;i--;){let o=r[i];if(o.childTiles.length>=1){let s=this._createFourTiles(o);for(let l of s)n.push(l);r.splice(i,1)}}for(let o of n)r.push(o);r.sort(function(o,s){let l=parseInt(o.level),a=parseInt(s.level);return l-a}),this._renderTilesToViewer(r)}_createTileByRectangleAndLevel(t,r){let i=Cesium.Rectangle.center(t),n=parseInt(r)+1,o=this._provider.tilingScheme.positionToTileXY(i,n);if(o!==void 0)return{key:this._createKey(o.x,o.y,n),x:o.x,y:o.y,level:n,rectangle:t,childTiles:[]}}_createFourTiles(t){let r=[],i=[],n=t.rectangle;r.push(Cesium.Rectangle.subsection(n,0,0,.5,.5)),r.push(Cesium.Rectangle.subsection(n,.5,0,1,.5)),r.push(Cesium.Rectangle.subsection(n,0,.5,.5,1)),r.push(Cesium.Rectangle.subsection(n,.5,.5,1,1));for(let o of r)if(Cesium.Rectangle.intersection(o,this._rectangle)){let s=this._createTileByRectangleAndLevel(o,t.level);s!==void 0&&i.push(s)}return i}_renderTilesToViewer(t){let r=this,i=[];for(let[n,o]of this._renderPrimitives)t.find(l=>l.key===n)===void 0&&i.push(n);for(let n of i)this._removePrimitives.set(n,{key:n});for(let n of t)if(!this._renderPrimitives.has(n.key)){this._renderSimpleTileToViewer(n),this._renderPrimitives.set(n.key,{key:n.key,renderImage:!1});let o=n.y;this._provider.requestImage(n.x,o,n.level).then(function(s){s!==void 0&&createImageBitmap(s,{imageOrientation:"flipY"}).then(function(a){let c=r._primitives.getById(n.key);if(c!==void 0){let u=r._createCanvas(n,a,r._isDebug);if(c.appearance=r._createMaterialImageAppearance(u),r._renderPrimitives.has(n.key)){let p=r._renderPrimitives.get(n.key);p.renderImage=!0,r._renderPrimitives.set(n.key,p)}}s.close()})}).catch(s=>{if(r._console("\u9519\u8BEF",s),r._renderPrimitives.has(n.key)){let l=r._renderPrimitives.get(n.key);l.renderImage=!0,r._renderPrimitives.set(n.key,l)}})}if(this._sendTask&&this._removePrimitives.size>0){this._sendTask=!1,this._console("\u53D1\u9001\u5904\u7406\u4EFB\u52A1...");let n=new Map;for(let[s,l]of this._renderPrimitives){let a=JSON.stringify(l);n.set(s,JSON.parse(a))}let o=[];for(let[s,l]of this._removePrimitives)o.push(s);this._worker.postMessage({removePrimitives:o,renderPrimitives:n})}this._isUpdateTile=!0}_renderSimpleTileToViewer(t){const r=this._createCanvas(t,void 0,this._isDebug);this._calculateRectangleOutlineCoordinates(t.rectangle);let i=new Cesium.GeometryInstance({geometry:new Cesium.RectangleGeometry({rectangle:t.rectangle})}),n=this._createMaterialImageAppearance(r),o=new Cesium.GroundPrimitive({geometryInstances:i,appearance:n});return o.setId(t.key),this._primitives.add(o)}_createCanvas(t,r,i){let n=this._provider;const o=document.createElement("canvas");o.width=n.tileWidth,o.height=n.tileHeight;const s=o.getContext("2d");return r!==void 0&&(s.globalAlpha=this._opacity,s.drawImage(r,0,0,o.width,o.height)),this._isDebug&&(s.strokeStyle="rgba(255,255,0,1)",s.lineWidth=2,s.strokeRect(0,0,o.width,o.height)),i!==void 0&&i===!0&&(s.globalAlpha=1,s.font="20px Arial",s.textAlign="center",s.fillStyle="rgba(255,255,0)",s.strokeStyle="rgba(255,255,255,1)",s.lineWidth=2,s.strokeText(`L: ${t.level}`,126,86),s.fillText(`L: ${t.level}`,126,86),s.strokeText(`X: ${t.x}`,126,136),s.fillText(`X: ${t.x}`,126,136),s.strokeText(`Y: ${t.y}`,126,186),s.fillText(`Y: ${t.y}`,126,186)),o}_projectionTile(t){if(this._tilingScheme instanceof Cesium.GeographicTilingScheme)return[{x:t.x,y:t.y,level:t.level,rectangle:t._rectangle}];let r=t._rectangle,i=parseInt(t.level),n=this._provider.tilingScheme,o=[];if(Cesium.Rectangle.intersection(r,this._rectangle)===void 0)return o;let l=n.positionToTileXY(Cesium.Rectangle.northwest(r),i),a=n.positionToTileXY(Cesium.Rectangle.southeast(r),i);if(l!==void 0&&a!==void 0)for(let c=l.x;c<=a.x;c++)for(let u=l.y;u<=a.y;u++){let p=n.tileXYToRectangle(c,u,i);Cesium.Rectangle.intersection(p,this._rectangle)&&o.push({x:c,y:u,level:i,rectangle:p})}else if(l!==void 0){let c=n.tileXYToRectangle(l.x,l.y,i);Cesium.Rectangle.intersection(c,this._rectangle)&&o.push({x:l.x,y:l.y,level:i,rectangle:c})}else if(a!==void 0){let c=n.tileXYToRectangle(a.x,a.y,i);Cesium.Rectangle.intersection(c,this._rectangle)&&o.push({x:a.x,y:a.y,level:i,rectangle:c})}return o}_calculateRectangleOutlineCoordinates(t){let r=Cesium.Rectangle.southeast(t),i=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.southwest(t),o=Cesium.Cartographic.toCartesian(n),s=Cesium.Rectangle.northeast(t),l=Cesium.Cartographic.toCartesian(s),a=Cesium.Rectangle.northwest(t),c=Cesium.Cartographic.toCartesian(a);return[o,i,l,c,o]}_removeEntityByName(t){var r=this._primitives;if(!(!r||!r.values)){for(var i=[],n=0;n<r.values.length;n++)r.values[n].name==t&&i.push(r.values[n]);for(var n=0;n<i.length;n++)r.remove(i[n])}}}Object.assign(ih.prototype,{hide:function(){this._console("\u9690\u85CF"),this._isUpdateTile=!1,this._removeEntityByName(this._renderName),this._renderPrimitives.clear()},show:function(){this._console("\u663E\u793A"),this._isUpdateTile=!0},setOpacity:function(e){e===void 0||typeof e!="number"||(e>=1&&(this._opacity=1),e<=0&&(this._opacity=0),this._opacity=parseFloat(e))}});function HVe(){onmessage=function(e){let t=e.data,r=!0;for(let[i,n]of t.renderPrimitives){n.renderImage===!1&&(r=!1);break}r?setTimeout(function(){postMessage(t.removePrimitives)},300):(postMessage([]),console.log("===>>>","\u6E32\u67D3\u672A\u5B8C\u6210\uFF01"))}}ih.ProviderType=Object.freeze({ArcGisMapServerImageryProvider:"ArcGisMapServerImageryProvider",BingMapsImageryProvider:"BingMapsImageryProvider",OpenStreetMapImageryProvider:"OpenStreetMapImageryProvider",TileMapServiceImageryProvider:"TileMapServiceImageryProvider",GoogleEarthEnterpriseImageryProvider:"GoogleEarthEnterpriseImageryProvider",GoogleEarthEnterpriseMapsProvider:"GoogleEarthEnterpriseMapsProvider",GridImageryProvider:"GridImageryProvider",IonImageryProvider:"IonImageryProvider",MapboxImageryProvider:"MapboxImageryProvider",MapboxStyleImageryProvider:"MapboxStyleImageryProvider",SingleTileImageryProvider:"SingleTileImageryProvider",TileCoordinatesImageryProvider:"TileCoordinatesImageryProvider",UrlTemplateImageryProvider:"UrlTemplateImageryProvider",WebMapServiceImageryProvider:"WebMapServiceImageryProvider",WebMapTileServiceImageryProvider:"WebMapTileServiceImageryProvider"});class z4{constructor(t){this._viewer=t.viewer,this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=t.color||Cesium.Color.BLUE,this.count=t.count||1,this.duration=t.duration||1e3,this._time=new Date().getTime(),this._materialTypeName="jtCircleMaterial",this._param={color:this.color._value.toCssColorString(),duration:this.duration,count:this.count},Cesium.Material._materialCache.addMaterial(this._materialTypeName,{fabric:{type:this._materialTypeName,uniforms:{time:0,color:new Cesium.Color(1,0,0,.5),count:1},source:this._getCircleMaterial_1()},translucent:function(r){return!0}})}_getCircleLdSource(){return`
- #define PI 3.14159265359
- czm_material czm_getMaterial(czm_materialInput materialInput){
- czm_material material = czm_getDefaultMaterial(materialInput);
- vec2 st = materialInput.st;
- vec2 scrPt = st * 2.0 - 1.0;
- float time = czm_frameNumber * 15.0 / 1000.0 ;
- vec3 col = vec3(0.0);
- mat2 rot;
- float theta = -time * 1.0 * PI - 2.2;
- float cosTheta, sinTheta;
- cosTheta = cos(theta);
- sinTheta = sin(theta);
- rot[0][0] = cosTheta;
- rot[0][1] = -sinTheta;
- rot[1][0] = sinTheta;
- rot[1][1] = cosTheta;
- vec2 scrPtRot = rot * scrPt;
- float angle = 1.0 - (atan(scrPtRot.y, scrPtRot.x) / 6.2831 + 0.5);
- float falloff = length(scrPtRot);
- material.alpha = pow(length(col + vec3(.5)),5.0);
- material.diffuse = (0.5 + pow(angle, 2.0) * falloff ) * color.rgb ;
- return material;
- }
- `}_getCircleMaterial_1(){return`czm_material czm_getMaterial(czm_materialInput materialInput)
- {
- czm_material material = czm_getDefaultMaterial(materialInput);
- material.diffuse = color.rgb;
- vec2 st = materialInput.st;
- float dis = distance(st, vec2(0.5, 0.5));
- float per = fract(czm_frameNumber * 10.0 / 1000.0);
- if(dis > 0.49*per && dis < 0.50*per){
- discard;//material.diffuse = vec3(0.0,0.0,1.0);
- } else {
- material.diffuse = color.rgb;
- }
- return material;
- }
- `}_getCircleMaterial_n_w(){return`czm_material czm_getMaterial(czm_materialInput materialInput)
- {
- czm_material material = czm_getDefaultMaterial(materialInput);
- material.diffuse = color.rgb;
- vec2 st = materialInput.st;
- float dis = distance(st, vec2(0.5, 0.5));
- float per = fract(czm_frameNumber * 10.0 / 1000.0);
- if(dis > per * 0.5){
- discard;
- } else {
- material.alpha = color.a * dis * 1.6 ;
- }
- return material;
- }
- `}_getCircleMaterial(){return`czm_material czm_getMaterial(czm_materialInput materialInput)
- {
- czm_material material = czm_getDefaultMaterial(materialInput);
- material.diffuse = color.rgb;
- vec2 st = materialInput.st;
- float dis = distance(st, vec2(0.5, 0.5));
- float per = fract(czm_frameNumber * 10.0 / 1000.0);
- if((0.5 - dis) < per * 0.5){
- discard;
- } else {
- material.alpha = color.a * dis * 1.6 ;
- }
- return material;
- }
- `}}Object.assign(z4.prototype,{getType:function(e){return this._materialTypeName},getValue:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BLUE,t.color),t.count=this.count,this.duration&&(t.time=(new Date().getTime()-this._time)%this.duration/this.duration),this._viewer.scene.requestRender(),t},equals:function(e){return this===e||e instanceof WallMaterialProperty&&Cesium.Property.equals(this._color,e._color)}});Object.defineProperties(z4.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});class Qn{constructor(t){Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxNzM5YjQ3MC03YmMxLTRmMjAtOTk4Yi0yNDMyMDZlOTQzYTYiLCJpZCI6NTU5MjAsImlhdCI6MTYyNDI0NTM5NX0.diydVWFzw5C5rQlHaFYkdDJoSorcdex81KpWcntyICo",Cesium.buildModuleUrl.setBaseUrl(t.sourcePath),console.log("\u4E09\u7EF4\u8D44\u6E90\u76EE\u5F55",Cesium.buildModuleUrl.getCesiumBaseUrl()),this._selector=t.selector,this._viewer=this._initMap(),this._initResource(),this._imageryLayers=this._viewer.imageryLayers,this._primitives=this._viewer.scene.primitives,this._entities=this._viewer.entities,this._dataSources=this._viewer.dataSources,this._viewer.scene.postRender.addEventListener(r=>{}),this._viewer.camera.changed.addEventListener(function(){}),this._viewer.camera.moveEnd.addEventListener(function(r){})}_drawTileGrid(){let t=this,r=t._viewer.scene.globe._surface._tilesToRender,i={},n=new Cesium.WebMercatorTilingScheme;for(let o=0;o<r.length;o++){let s=r[o],l=s.level,a=s._rectangle,c=n.positionToTileXY(Cesium.Rectangle.northwest(a),l);if(c!==void 0){let p=n.tileXYToRectangle(c.x,c.y,l),h="["+c.x+","+c.y+","+l+"]";i[h]===void 0&&(i[h]={x:c.x,y:c.y,level:l,rectangle:p,lineColor:Cesium.Color.YELLOW})}let u=n.positionToTileXY(Cesium.Rectangle.southeast(a),l);if(u!==void 0){let p=n.tileXYToRectangle(u.x,u.y,l),h="["+u.x+","+u.y+","+l+"]";i[h]===void 0&&(i[h]={x:u.x,y:u.y,level:l,rectangle:p,lineColor:Cesium.Color.YELLOW})}}console.log("===>>>",i),JSON.stringify(i)!=="{}"&&t._appendRectangleFillImage(i)}_appendRectangle(t){let r=this,i="tilesRectangle";this._removeEntityByName(i);for(let n in t){let o=t[n],s=o.x,l=o.y,a=o.level,c=s+"_"+l+"_"+a;if(r._entities.getById(c)===void 0){let u=r._calculateRectangleOutlineCoordinates(o.rectangle),p=new Cesium.Entity({name:i,id:c,rectangle:{coordinates:o.rectangle,material:Cesium.Color.RED.withAlpha(0)},polyline:{positions:u,material:o.lineColor,width:5,clampToGround:!0}});r._entities.add(p)}}}_appendRectangleFillImage(t){let r=this,i="tilesRectangle";this._removeEntityByName(i);let n="http://218.59.194.74:6080/arcgis/rest/services/LYLSQ_GHT_102100_202112/MapServer/Tile/";for(let o in t){let s=t[o],l=s.x,a=s.y,c=s.level,u=l+"_"+a+"_"+c;if(r._entities.getById(u)===void 0){let p=new Image;p.crossOrigin="anonymous",p.width=256,p.height=256,p.style.opacity=.3,p.onload=function(){let h=new Cesium.ImageMaterialProperty({image:p,transparent:!0}),m=r._calculateRectangleOutlineCoordinates(s.rectangle),y=new Cesium.Entity({name:i,id:u,rectangle:{coordinates:s.rectangle,material:h},polyline:{positions:m,material:Cesium.Color.BLUE,clampToGround:!0}});console.log("===\u521B\u5EFA\u7684\u77E9\u5F62>>>",u),r._entities.add(y)},p.src=n+c+"/"+a+"/"+l}}}_calculateRectangleOutlineCoordinates(t){let r=Cesium.Rectangle.southeast(t),i=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.southwest(t),o=Cesium.Cartographic.toCartesian(n),s=Cesium.Rectangle.northeast(t),l=Cesium.Cartographic.toCartesian(s),a=Cesium.Rectangle.northwest(t),c=Cesium.Cartographic.toCartesian(a);return[o,i,l,c,o]}_initMap(){let t=new Cesium.Viewer(this._selector,{animation:!1,baseLayerPicker:!1,timeline:!1,navigationHelpButton:!1,sceneModePicker:!1,infoBox:!1,clampToGround:!0,homeButton:!1,geocoder:!1,scene3DOnly:!0,fullscreenButton:!1,shadows:!1,imageryProvider:new Cesium.SingleTileImageryProvider({url:Cesium.buildModuleUrl("Assets/Images/earth_3.jpg")}),selectionIndicator:!1});return t._cesiumWidget._creditContainer.style.display="none",t.scene.globe.depthTestAgainstTerrain=!0,t.imageryLayers.get(0).show=!0,t.scene.skyBox.show=!1,t.scene.sun.show=!0,t.scene.moon.show=!1,t.scene.skyAtmosphere.show=!0,t.scene.globe.show=!0,t.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),t.scene.debugShowFramesPerSecond=!0,t.scene.requestRenderMode=!1,t._cesiumWidget._supportsImageRenderingPixelated=Cesium.FeatureDetection.supportsImageRenderingPixelated(),Cesium.FeatureDetection.supportsImageRenderingPixelated()&&(t.resolutionScale=1.8),t}_initResource(){this._sketchPointImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gyP7zqrej3IInF47lwQkTLV3d1xv3KXWPT4MYhLzMzIgHpn10+Sk+Gw74w+jx79HwSGnzUYhg4FED4FBcBq/jtokOOC2oSb0FZUgHpKVoeHQ9GtGM/y8lcgMLxf5juDBwNDlOWnTgGvUdWz5wsQ7c179fUWzz9y0tX1BdZPILeqCpTtil9QEOT9c876K1faWqS07XeMzJFuboCXkpaX1w5hqxl14QJIKYRWCzLV5OXtDQXbon3c3c2/TeMoYvncucAgPrl40Y7fA0zv1QtMydKwb58FL7toRwbDYo3/0utB3OD8qlX2hIkLqalwO0b9+fLlUHJOG9vQ0P4EjfyFIdPZGfqsURampIBIlxsWLLBtL/NltF4PhUIrVq92QGDIeEOmpye4pYju164Bq6n29LTiopy8tDTIL48pSExsDq/Oj9is/eAD4CRbli1DMEFUBAYCewnUaJD8jr2lpQjpJ7M2bBBi0+L47Tt2mP2G5xhNaWnAHrLj461tKF1rasA0rW5b//6w/0rigQcPWhrZKVFXP8TkybaFyb3kXbkCbiO6fpyU1Dwq58vNG3U6BJvEiYMHEcwQW8aNA3pT7O4OaPmTiwuCnlwcNQrEDRGYmytloilj5vr1Zv+mNXVhSUnmOFYEVnt6gtM9t+8mTbKlwo5AoWdySIjteWUcIwwG2LX7o6lPnkiZULTlj/7+wEThm5oKbCBeCOANUisqkNRxLCEBSSzrYmOB3jw6c8Yi3kL5K51OyvkZGXUTJz7LSH09CIPwMBpt85CHhMf48Q4IJFPofHzsbMAAJfjIEQtXC9TZWi0wkEuKAmjEyspKpNN2pyVBQULZaIjbvXmzUDb6xF0zGJCqv+no6NGAK5fLyiz8JssVcXEWgQLUsZZxWmGbrLTN057Agfh7eNiefhpRb7h922LgOzFp2DDzxnJXrsvLE0rqOW3sTz+12h4lLfRZhuQybuXmWmQkgPzhwy0o1jlV37ljh+e3/L1LF0cEXqX04UPb0075rlovLwtBHuqZ5845T5Z37UqbEAPkzOfsUvlHXZ35saFnQ4++fe04eIfftv64tEfgdvkXeweprFIvBQaaebJH+f3x4xbPvsRPnixlQlHGtDFjWq2Wuqj0yz4+QKk4FxNjMVXD2998Y0FRKEsCAuzwzBKv2eZpR6DspxQcPWpnvrNYoNNBZOTOnRoN0ilJMzYjA3ibsKoqoIxezs6gLJbpxcVSTbyePurwYSkT76VPKSgAWQslJcAmenTrBszgP7W1wBlRmZICY2SydHIC8ZCvdTo7Ak+ri44dcySDNDTs2mVufluhThoGD4bHp6or4uOb3zWJnoqwMGAVLnfuACHscHJCiFRmhISA0BMcFob52PDC/8EDkLfkR5GRQmycN8/t8mXw8O73WVwctnvdJ3SqrQXNSJeY3bttaWhHJxMxzDh97VqQAwheutR2IC6pm/z8oOBm7LcVFVJNKNo0oUsXhBKmGR0VBfI0vkFBINzExxoNEKP+ePYsktefFmVnC2Vjvm5SZSVEpGUNefNNUH8ti8rKQCziaOfOVuL2563PP4eCjJhxK1a8hMCJJ7NTPDxAXWIaefEi0J2r/ftbMfyryDhxAkZ2u1EaHAx6oReq2rb/JiTLZKkoUHLf2//YMWCGnPf++1YM7zHw+nVQ1mlKhg2DvPeiltr+GLaj2W524Kd6zZ4NhGOQ0ophI6GSkr4Gq61VGyjx7vdZQoIdYY1xVZ06RKttS1gTHLkPLjVmGo3AJZToaCsGjSWrPFBKfH3bvta0uyR3ySlGIxS4a7trte1l244MtoRpT93XSUk0l0oruFDbqROYUtQ9X3xhLr2WaBpX4+WnOTl2hHkw9eZN0Li5dLP6Dehogc1dexslK/7MynffhbNDvZXnWq9GNJWyiKC69TlphvobtWbOHNgnZonq6hdl+xL/yTQhbKUxeOtWEP9melSUFYMWJSv/IAtNprZLUu4Rf9u6FQpdo49bfRXaBQcy2BL1p+XURYtAZrLwhx+sGDSWrDpc3ZeVBbJMPt22zY6wRj/1oep08zXMUXRABpsQFmqcHhICYiLlhw4BBWiFA/5FOXmhoc8u0Pv3vyyrDshgEwqLYnKLi4FO5OfkvPh66UdudnZHCXsFAptQ96XMW7jQTsm2xAF23roFlD6NXLy4o9m8AoHFR7SxNTWgjGOsVovtxqBxXAzEbc4cKCycN+/+/Y7n88oRvjarcNYsCDtprP/+ewjvZ1xz9SpERBp3zpz5qqP/D5zQE33tptaiAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA0LTA5VDE2OjQyOjI5KzA4OjAwjRBbGwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNC0wOVQxNjo0MjoyOSswODowMPxN46cAAABKdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uXzJhcHo1b3VpcnV4L2Rpbmd3ZWkuc3ZncY9vkgAAAABJRU5ErkJggg==",this._uavImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAALc0lEQVR4nO2cf2wUxxXH35zPEIkGk0YiRBy1kdISQZQYJBRctbWJqjqqSkKr8uOPKjgC0f/49UelqCk+O61QWhWbVP0HgTCVKqXwDxC1hSgtRqJykqq1kUAKaiVs+RAIicZQqAK+u+n37d2a8fpub+9u7dtj3kca7u2au52d+c57b2b2TpFgNSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYTugAS70x2kFa7taZWHJJSNEJKH0r9rHGQhMB8pSe9Lauoi9COmvQoGnKksbGhZ/QtNUohEqoAlvamj6HCXVQIRQPX98ffhCX40NKnF03eTZ9HgzkDyEQRTWBA7R3fHx+gkFAooZDomUxqUt0wi6PU3uv7G/phCUVI9KbPa00dVAR02ER8XsPqsDwBPi8cEj3pzzXRIpj8oXe0UkkCSmsIg5pg8vmJVHf8KZhCAVp+oVsn05lhmA6K9AWl1IDWGmFA7cYpl+PXu+NdFALoE3IunM7kOqkiFOJUNtMPy0HFGnaQpn/DxAE9h78dgeWAv+3B30ZgVkS8ge6M/lRV/P7ZJNGr2/FSMZqyXaR1FwFF6iYaaytMB/Nv4J5SDd/Da8XEG2mMvYha1pvuymo6hnN1Q0zRm2HGwTAo5bqjSOO8huVqaU96gIi2odQTobnAsEAInND5UFcvqJher9j9T6ZZBOolqgv0pcZ4vCtqYSDvSZNE1IwSeRTR6fjChi68VkdOQI8Sl0QTGmMRDIPxCaLUHRh5GuPIYiPWgbVmaW8GuZHug+mw8hmipidgGFy5SXT3AQyAjgslocbnVEde+cdgOqT2N+Dfmaw7lJkSQRRjeK0xQ3FbM9HJbTPbcRxBpu29LKwcHMM5kaMqUChV4Z3/FxPApuMZGhqDATC96Ul1NyZJmALtOIh2bIdZVABMojeDf3NwDK92hVWhVAUqnkTFu2E6iAAqA+04iHZshykCKIeWA7olPUnNMOecMNck0I6DaMd2mI+/ALAkPKAoNkAVoDQt0SrzQ3I2Seg5nKo5igiLNnSRVMNF1KsiQWid7ce/rTAtEIDgiwjAckQAJVg4n6jzeUWdK5Sz5rBqicLZuefKTU13vyA6e1XTuc/01DS3Wh57AbzyVS4Klj837mr67UUYBvvaFW1/WWGRpPT755ojH2fp4AWI4gEO8vzgRaI1idJ1Pfqxpmv/gQEeSwF0Hs5gxMAA3IEbXvC/9P0Hmnae0HT/IQ7yHHxN0ebWGKzowl5h0/HsNBEc3qxo8ZP+9/v2H7N0Od8+xQRw5wtNq35pLASFsKLqX6sA8CNgOqvOw3QoJgBTuT//rqIXnvW/9Pv/1PT+sIaVox4634VF0Hn4UUexx9v1Lf+6m/dbTABDoxDX7x59LjbE/BsxAFV/AM/DJx9mrsF0YBe9r336zR68kHONldK5Ai5yy8wGCcq5q9rplHLg/KKa3KLaez75RozaWqZf3wyjilQq1d2wDGZVKJSqQRgYRBhoh+mwAy6eG5Dhxj/yiYZVOUO7Ykj2cp8XFHaXfeiAk5c0bJyoAN6M4XDFpdycg6/fdmh6KCgHvjYPppXP5K7Lghoag5EnrMU0hVI1vCOYTmcgAmrCYajwrtiHPy5v9J8YyVLPh5V3vBeeaRzZHCvbI+w9nXUEGD7YEl8Y7xjdqyZwUBXl3ZEPy95Jb9RZGsDtFhPBvZjS72peMSuBzsb68G8rTGcUeEOKH9z5+86gFh5YSDyqguDdvnYpNw85+5mmHSemYvY9ZO0b8OoL8qkuItqGUgR0fojPQ4QmACafDyTxoRs12hunCPYd2KewdZkMunW5tGdyGO9shYnODy6AQp2/6SV+P68XoCZlwDkDu91zV3GQhwV04o3gnmBotLKkjRNryqo9uJPXcegyBrc/EF8Y7w9j5LsEqlAl8PPteKFKKou98VEiakZxOi+IADjmfh175a7b58Wio1tmJlLl4hUVh4OhXcFCUqUCMOFBFXTgVELZFZoLzKQyqAC88bZQFl0pXhEkv6Nox7rSdQpDALNN5CrEJHrSp9DcjvvrXMEjufSIM9cZOGvv6QzWQczKJeze/ZvCnIIF9QLd57J0ND8Dgvu+gKy9gyKGQokc3sfMrvwk5ttBnmSr5P934RjPc3WO7b9+LUavPl/8Pd5rBJmatr2XcRJKBgI4BAHsgRkp/O+gRnD+MHk38zlMh1JhwO1IhrP9oNNG9gCmiz630z/BW/luZmpez9NCP8F4w0YYy7azQfE7qDFIBAfImA75dY7paoOGDMabN5R6rxkG/ETJCemrWAo2Rn8k3T+jUCIJZ7/ph5kRdE8TDh03XWwKZnYkT/v6Xi/cMcyOP2QQ8xWl0Dkn8u9xKeU9ggiAO38zvIq78cVg/l/1rt1soVAiizcXYBGw6/Vm92YIaGvGDKDARoqL+Xi6l1LvNWN6oUUhXjvYd8bT+RGN/S7TWzKCYErYjynhbphTcEfxNGwdXjnZ88ZbvyTQFIsXFlexuM6da+7wmSGJ9zv4gRCvR8FfT6e64xthRhbUMfp4vzVjwlOyZ58k+nQcB3lKzdO3IwyYK3xMqamjGWbmx4nWLCXHk7geoQCR+/5iIepCAAzvNWSz1A+zGcUXDhVnMUL9pmk8Axga07A4+fPf+vWOfj+Uokl80s56+eaTQqkrMDvI9VoJVmFxh5PGYqEgKNz5nNS5S8yliJH+23h34zdg1gXVtU4NMAXATxbxI2P8PN2tezjhgT1BslNhZlDctfvB+QJPL4t1vvu83yfwJB9cwQmApC+yU75C1LUATm3Pdaz5PN3iBUS37sMw4DyB3fzCJ3AQAJ4icmLn7Xie+pkJJAuQH20zH+cSAcwypQTAMwSeJpodFQbutM/ccxAB1IAgAuC5PCd57MKHxnCyCnh1MInZgZtQigBqTFABuPB36nmOzhk/f4kjCBwq2pqV8+UTt+NdRAA1plwBhI0IoMaIAMJFBFAmIoAaIwIIFxFAmYgAaowIIFxEAGUiAqgxhQRw4KMs1uNhABFAeSiUusIUwO9/pGjB/OkdwOv+QR7ZrgReXTQfIu3bqGj509OvLwKYZUwBuCOQd+MOfDR12vECm1sVJZrCuz1eSTR3Bhd/iejwlpwHmi6A6D8FZIL61hcJ41e5+Ske95dGzDxgLnjr24pexnIxs/dUlq7dhgHgAXrgAZJUJyiUuuLFX6XP3P4fbYA5bRTyT8q8/adHv7Mzm2xdrWjrmlzTXb6Ru65LlJ8ALkTuLuqEf6R01/D17G+6z2p0fQ6zM5gPLmsnJPADIlzCYvmXUZ7mn3vJhR3GEd2fIbrbOAB5QY7EF6j1q59SEzgVeXJ3UgcM39At6bQeRo0Xed29VwRzwa3/Iu/4y6POZ3Z9U9ErX0M9NJ1auyz2fZyKPKhtffD38UySlOqG6Yw87y+I8ejjfIBH6mzC12S3/9d/5WwX7w9BrU3E6qJt66KSzKepzIAitQ2mw7XbcL+IvWYn1Apv5ztotX7tMjVIEaduBGB6ABf2BDz9M8PBXLJgHrzOqsLhRzxAyORzgBHU2JkCmuRcMoRwA7E5xMSvGBxmOBnkkc8LUTPQdBo5wEZYkadA7aMLzwKyWvej1jNEEBU00aXGBapDZgGzRM4TZLtQ9Q6KEFrpUUWxkbUJ1Y/DuqHuBCCEiwjAckQAliMCsBwRgOWIACxHBGA5IgDLEQFYjgjAckQAliMCsBwRgOWIACxHBGA5IgDLEQFYjgjAckQAliMCsBwRgOWIACxHBGA5IgDLEQFYjgjAckQAliMCsBwRgOX8HzIX2SrTidFrAAAAAElFTkSuQmCC"}_registerEvent(){let t=this;new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas).setInputAction(function(i){let n=t._getLocation(i.position);console.log("\u70B9\u51FB\u4F4D\u7F6E",JSON.stringify(n))},Cesium.ScreenSpaceEventType.LEFT_CLICK)}_arcToDegree(t){return t/Math.PI*180}_toColor(t,r,i,n){return new Cesium.Color(t/255,r/255,i/255,n)}_removeEntityByName(t){var r=this._entities;if(!(!r||!r.values)){for(var i=[],n=0;n<r.values.length;n++)r.values[n].name==t&&i.push(r.values[n]);for(var n=0;n<i.length;n++)r.remove(i[n]);this.updateScene()}}_getLocation(t){let r={lng:void 0,lat:void 0,height:void 0},i=this._viewer.scene.camera.getPickRay(t),n=this._viewer.scene.globe.pick(i,this._viewer.scene),o=Cesium.Ellipsoid.WGS84.cartesianToCartographic(n);if(!this._viewer.scene.pick(t))r.lng=this._arcToDegree(o.longitude),r.lat=this._arcToDegree(o.latitude),r.height=o.height;else{let l=this._viewer.scene.pickPosition(t);if(Cesium.defined(l)){let a=Cesium.Cartographic.fromCartesian(l);r.lng=this._arcToDegree(a.longitude),r.lat=this._arcToDegree(a.latitude),r.height=a.height}}return r}_getScreenClickPosition(t){let r,i=this._viewer.scene.pick(t);if(Cesium.defined(i)){let n=this._viewer.scene.pickPosition(t);Cesium.defined(n)&&(r=n.clone())}else{let n=this._viewer.scene.camera.getPickRay(t),o=this._viewer.scene.globe.pick(n,this._viewer.scene);Cesium.defined(o)&&(r=o.clone())}return r}_searchCorrelationLayerIndex(t){this._layerConfigs==null&&(this._layerConfigs=[]);var r=-1;for(var i in this._layerConfigs)if(this._layerConfigs[i].layId==t){r=parseInt(i);break}if(r!=-1){for(var n=-1,o=-1,i=r-1;i>=0&&(n=this._imageryLayers.indexOf(window[this._layerConfigs[i].layId]),n==-1);i--);for(var i=r+1;i<this._layerConfigs.length&&(o=this._imageryLayers.indexOf(window[this._layerConfigs[i].layId]),o==-1);i++);return{minIndex:n,maxIndex:o}}}_addImageryProvider(t,r){let i=r==null?this._guid():r,n=this._searchCorrelationLayerIndex(i),o;return n!=null&&n.maxIndex!=-1?o=this._imageryLayers.addImageryProvider(t,n.maxIndex):n!=null&&n.minIndex!=-1&&n.minIndex!=this.imageryLayers.length-1?o=this._imageryLayers.addImageryProvider(t,n.minIndex+1):o=this._imageryLayers.addImageryProvider(t),window[i]=o,o}_guid(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}_update3dtilesMaxtrix(t,r){var i=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(r.rx)),n=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(r.ry)),o=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(r.rz)),s=Cesium.Matrix4.fromRotationTranslation(i),l=Cesium.Matrix4.fromRotationTranslation(n),a=Cesium.Matrix4.fromRotationTranslation(o),c=Cesium.Cartesian3.fromDegrees(r.tx,r.ty,r.tz),u=Cesium.Transforms.eastNorthUpToFixedFrame(c);Cesium.Matrix4.multiply(u,s,u),Cesium.Matrix4.multiply(u,l,u),Cesium.Matrix4.multiply(u,a,u),t._root.transform=u}}Object.assign(Qn.prototype,{asyncFlyTo:function(e){var t=this;return new Promise((r,i)=>{var n=t._viewer.flyTo(e.target,{duration:e.duration,offset:new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(e.radians))});n.then(function(o){o&&e.isRemove&&e.target!=null&&t._viewer.entities.remove(e.target),r(!0)})})},flyToRectangle:function(e){var t=this;this._entities.removeById("flyRectangle");var r=Cesium.Rectangle.fromDegrees(e.strLng,e.strLat,e.endLng,e.endLat),i=this._entities.add({id:"flyRectangle",name:"flyRectangle",rectangle:{coordinates:r,material:Cesium.Color.GREEN.withAlpha(0),height:200,outline:!1}});this.asyncFlyTo({target:i,isRemove:!1,duration:3,radians:-90}).then(function(n){n&&t.asyncFlyTo({target:i,isRemove:!0,duration:1,radians:-40}).then(function(o){o&&e.success!=null&&e.success()})}).catch(function(n){alert(n)})},setMapRange:function(e){this._viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt),orientation:{heading:e.heading,pitch:Cesium.Math.toRadians(e.pitch),roll:e.roll}})},updateScene:function(){this._viewer.scene.requestRender()},cameraFlyToo:function(e){this._viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt),orientation:{heading:Cesium.Math.toRadians(e.heading,0),pitch:Cesium.Math.toRadians(e.pitch),roll:Cesium.Math.toRadians(e.roll)},duration:3})},getCameraViewParams:function(){var e=this,t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(this._viewer.camera.position),r={lng:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude),alt:t.height,pitch:Cesium.Math.toDegrees(e._viewer.camera.pitch),heading:Cesium.Math.toDegrees(e._viewer.camera.heading),roll:Cesium.Math.toDegrees(e._viewer.camera.roll)};return r},getViewer:function(){return this._viewer}});Object.assign(Qn.prototype,{_queryAGServerExtent:function(e,t,r,i){xze.ajax({async:!0,type:"POST",dataType:"json",url:e+"/"+t+"?f=pjson",success:function(n){r!=null&&r({xmin:n.extent.xmin,ymin:n.extent.ymin,xmax:n.extent.xmax,ymax:n.extent.ymax})},error:function(n,o,s){i!=null&&i(o)}})},queryAGServerExtent:function(e,t,r,i){this._queryAGServerExtent(e,t,r,i)}});Object.assign(Qn.prototype,{_showLayer(e){console.log("\u5F53\u524D\u52A0\u8F7D\u7684\u56FE\u5C42\u7C7B\u578B",e.layType),e.layType==Qn.LayerType.mapboxLayer?this.addMapboxLayer(e.config):e.layType==Qn.LayerType.wmtsLayer?this.addWmtsTileLayer(e.config):e.layType==Qn.LayerType.imageLayer?this.addDynamicFeatureLayerFromServer(e.config):e.layType==Qn.LayerType.tilesetsLayer?this.add3DTilesets(e.config):e.layType==Qn.LayerType.agsVectorLayer?this.addAGSVectorLayer(e.config):e.layType===Qn.LayerType.templateLayer?this.addUrlTemplateImageryLayer(e.config):e.layType===Qn.LayerType.floatLayer&&this.addFloatLayer(e.config)},setTerrain(e){var t=new Cesium.CesiumTerrainProvider({url:e.url,requestVertexNormals:!0,requestWaterMask:!0});this._viewer.terrainProvider=t},addLayer(e,t,r){this.allLayers||(this.allLayers=[]),e.config?e.config.id=e.layId:e.config={id:e.layId},this.allLayers.push(e)},showInit(){for(let e of this.allLayers)!e.isShow||e.isShow==!1||this._showLayer(e)},addMapboxLayer(e){let t=new WVe({url:"https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer"},"WGS84");this._addImageryProvider(t,e.id)},add3DTilesets:function(e){let t=this,r=new Cesium.PrimitiveCollection;for(let i of e.url){let n=new Cesium.Cesium3DTileset({url:i,maximumScreenSpaceError:64,skipLevelOfDetail:!0,maximumScreenSpaceError:16,visualError:60}),o=r.add(n);o.readyPromise.then(function(s){if(e.params!=null&&t._update3dtilesMaxtrix(s,e.params),e&&e.offsetHeight){let l=o.boundingSphere,a=Cesium.Cartographic.fromCartesian(l.center),c=Cesium.Cartesian3.fromRadians(a.longitude,a.latitude,0),u=Cesium.Cartesian3.fromRadians(a.longitude,a.latitude,e.offsetHeight),p=Cesium.Cartesian3.subtract(u,c,new Cesium.Cartesian3);o.modelMatrix=Cesium.Matrix4.fromTranslation(p)}})}t._primitives.add(r),window[e.id]=r},addWmtsTileLayer(e){var t=new Cesium.WebMapTileServiceImageryProvider({url:e.url,layer:1,style:"default",format:"image/png",tileMatrixSetID:"default028mm",maximumLevel:e.maxLevel?e.maxLevel:19,minimumLevel:e.minLevel?e.maxLevel:0}),r=this._addImageryProvider(t,e.id);r.alpha=e.alpha==null?1:parseFloat(e.alpha)},addUrlTemplateImageryLayer:function(e,t){if(console.log("\u6A21\u7248\u5730\u56FE\u53C2\u6570",JSON.stringify(e)),!Cesium.defined(e)||!Cesium.defined(e.url))throw new DeveloperError("options.url \u53C2\u6570\u5F02\u5E38\uFF01");if(!Cesium.defined(e)||!Cesium.defined(e.maximumLevel))throw new DeveloperError("options.maximumLevel \u53C2\u6570\u5F02\u5E38\uFF01");var r=new Cesium.UrlTemplateImageryProvider({url:e.url,tilingScheme:new Cesium.WebMercatorTilingScheme,minimumLevel:Cesium.defaultValue(e.minimumLevel,0),maximumLevel:e.maximumLevel});this._addImageryProvider(r),t&&t(serviceId)},addFloatLayer(e,t){let r=new Cesium.TileCoordinatesImageryProvider({tilingScheme:new Cesium.WebMercatorTilingScheme});this._addImageryProvider(r);let i=new ih({viewer:this._viewer,providerType:e.providerType,config:e,opacity:e.opacity,show:!0});window[e.id]=i}});Object.assign(Qn.prototype,{_GeoToCartesian(e){try{return Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.height)}catch(t){console.log("\u9519\u8BEF",t);return}}});Object.assign(Qn.prototype,{drawCircle:function(){let e=new z4({viewer:this._viewer,color:Cesium.Color.RED}),t=new Cesium.Entity({position:new Cesium.Cartesian3(-2479548303203922e-9,4593615644215526e-9,3.6526890542514934e6),ellipse:{semiMajorAxis:8732.209958374482,semiMinorAxis:8732.209958374482,classificationType:Cesium.ClassificationType.BOTH,material:e}});this._viewer.entities.add(t)},_queryHeightFromGeo:function(e,t){if(e===void 0||t===void 0||typeof e!="number"||typeof t!="number")return 0;let r=Cesium.Math.toRadians(e),i=Cesium.Math.toRadians(t),n=new Cesium.Cartographic(r,i),o=this._viewer.scene.sampleHeight(n);return this._viewer.scene.sampleHeightMostDetailed([n]).then(function(a){console.log("TAG",o,a[0].height)}),Cesium.sampleTerrain(this._viewer.terrainProvider,10,[n]).then(function(a){console.log("TAG\u5730\u5F62\u7EA7\u522B",o,a[0].height)}),o===void 0?0:o},_queryHeightFromTerrain(e,t){Cesium.sampleTerrainMostDetailed(this._viewer.terrainProvider,e).then(function(i){let n=[];for(let o of i)n.push(o.height);t&&t(n)})},_queryHeight(e,t){let r=this,i=[];for(let o=0;o<e.length;o++){let s=this._viewer.scene.sampleHeight(e[o]);s===void 0?i.push(0):i.push(s)}Cesium.sampleTerrainMostDetailed(r._viewer.terrainProvider,e).then(function(o){for(let s=0;s<modelPositions.length;s++)o[s].height>i[s]&&(i[s]=o[s].height);t&&t(i)}).catch(function(o){t&&t(i)})},_calculateUAVRectangle(e,t,r,i,n,o,s,l,a){let c=Is([e,t]),u=Gze(c).geometry.coordinates,p=this._calculateUAVCoordinate(r,i,n,o,s,l,a),h=[];for(let m=0;m<p.length;m++){let y=Is([parseFloat(p[m][0])+parseFloat(u[0]),parseFloat(p[m][1])+parseFloat(u[1])]),v=qze(y);h.push(v.geometry.coordinates)}return{center:[e,t],height:a,rectangle:h}},_calculateUAVCoordinate(e,t,r,i,n,o,s){let l=n*(Math.PI/180),a=o*(Math.PI/180),c=Math.sin(l),u=Math.cos(l),p=Math.sin(a),h=Math.cos(a),m=i/r*1e3,y=s*(t*u*p-e*h+2*m*p*c)/(2*m*u-t*c),v=s*(e*p+t*h*u+2*m*h*c)/(2*m*u-t*c),_=s*(e*h+t*u*p+2*m*p*c)/(2*m*u-t*c),x=s*(t*h*u-e*p+2*m*h*c)/(2*m*u-t*c),S=s*(e*h-t*u*p+2*m*p*c)/(2*m*u+t*c),C=-1*(s*(e*p+t*h*u-2*m*h*c))/(2*m*u+t*c),E=-1*(s*(e*h+t*u*p-2*m*p*c))/(2*m*u+t*c),T=s*(e*p-t*h*u+2*m*h*c)/(2*m*u+t*c);return[[y,v],[_,x],[S,C],[E,T]]},_readUavData(e){let t=new XMLHttpRequest;t.open("get","/data/uavData.txt",!0),t.onreadystatechange=function(){if(t.readyState===4&&t.status===200){let r=t.responseText.split(/\r\n|\n/),i=[];for(let n=0;n<r.length-1;n++){let o=r[n].split(",");i.push({lng:parseFloat(o[0]),lat:parseFloat(o[1]),alt:parseFloat(o[2]),k:parseFloat(o[3])})}e(i)}},t.send(null)},drawUAVVideo(e){let t=this;this.uavData=[],this._uavParams=e.params,this._readUavData(function(r){t.uavData=r,t._drawUAVVideo()})},_drawUAVVideo(){let e=this;this._drawUAVVideoInit(),this._uavCenter={longitude:this.uavData[0].lng,latitude:this.uavData[0].lat},this._uavParams.airHeight=this.uavData[0].alt,this._uavHeight=parseFloat(this._uavParams.airHeight)+200,this._center=Cesium.Cartesian3.fromDegrees(this._uavCenter.longitude,this._uavCenter.latitude,this._uavHeight),this._viewer.scene.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this._uavCenter.longitude,this._uavCenter.latitude,15e3),orientation:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-1*40),roll:0},easingFunction:Cesium.EasingFunction.LINEAR_NONE,complete:function(){e._cameraLookAt(e._center,e._uavParams.k,-30,1500),setTimeout(function(){let t=e._appendUAVCenterEntity();e._calculatePolygonPositions(e._uavCenter,e._uavParams,function(r){e._polygonPositions=r,e._appendUAVVideoPolygon(),e._appendUAVLineEntity(),e._viewer.trackedEntity=t,e._positionStep=0,e._prePoint=e._center.clone(),e._positionLoop()})},1e3)}})},_cameraLookAt(e,t,r,i){var n=Cesium.Math.toRadians(t),o=Cesium.Math.toRadians(r);this._viewer.camera.lookAt(e,new Cesium.HeadingPitchRange(n,o,i))},_calculateHeading(e,t){const r=Cesium.Transforms.eastNorthUpToFixedFrame(e),i=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3),n=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(r,new Cesium.Matrix4),i,new Cesium.Cartesian3),o=Cesium.Cartesian3.normalize(n,new Cesium.Cartesian3),s=Math.atan2(o.y,o.x)-Cesium.Math.PI_OVER_TWO;return Cesium.Math.toDegrees(Cesium.Math.TWO_PI-Cesium.Math.zeroToTwoPi(s))},_positionLoop(){let e=this;this._positionStep>=this.uavData.length-2?console.log("===>>>\u98DE\u884C\u7ED3\u675F"):this._positionStep+=1,this._uavCenter={longitude:this.uavData[this._positionStep].lng,latitude:this.uavData[this._positionStep].lat};let t=Cesium.Cartesian3.fromDegrees(e._uavCenter.longitude,e._uavCenter.latitude,e._uavHeight);e._uavParams.k=this.uavData[this._positionStep].k,e._uavParams.airHeight=this.uavData[this._positionStep].alt,console.log("===>>>\u89D2\u5EA6",e._uavParams.k),e._prePoint=t.clone(),this._calculatePolygonPositions(this._uavCenter,this._uavParams,function(r){e._center=t.clone(),e._polygonPositions=r,setTimeout(function(){e._positionLoop()},500)})},_calculatePolygonPositions(e,t,r){let i=this._calculateUAVRectangle(e.longitude,e.latitude,t.width,t.height,t.pix,t.foucsLength,t.o,t.k,t.airHeight),n=[];for(let o=0;o<i.rectangle.length;o++){let s=i.rectangle[o];n.push(Cesium.Cartographic.fromDegrees(s[0],s[1],0))}this._queryHeight(n,function(o){let s=[];for(let l=0;l<n.length;l++)n[l].height=o[l],s.push(Cesium.Cartographic.toCartesian(n[l]));r(s)})},_drawUAVVideoInit(){this._videoDatasource===void 0?(this._videoDatasource=new Cesium.CustomDataSource("videoDatasource"),this._viewer.dataSources.add(this._videoDatasource)):this._videoDatasource.entities.removeAll(),this._uavVideoEntityName="uavVideoEntity"},_appendUAVVideoPolygon(){let e=this,t=new Cesium.Entity({name:this._uavVideoEntityName,polygon:{show:!0,hierarchy:new Cesium.CallbackProperty(function(){let r=[];for(let i of e._polygonPositions)r.push(i.clone());return{positions:r}},!1),classificationType:Cesium.ClassificationType.BOTH,material:Cesium.Color.RED.withAlpha(.5)}});this._videoDatasource.entities.add(t)},_appendUAVLineEntity(){let e=this;for(let t=0;t<4;t++){let r=new Cesium.Entity({name:this._uavVideoEntityName,position:new Cesium.CallbackProperty(function(){return e._polygonPositions[t]},!1),polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return[e._center,e._polygonPositions[t]]},!1),material:Cesium.Color.YELLOW,clampToGround:!1,width:2.4}});this._videoDatasource.entities.add(r)}},_appendUAVCenterEntity(){let e=this,t=new Cesium.Entity({id:"uavCenter",name:this._uavVideoEntityName,position:new Cesium.CallbackProperty(function(){return e._center},!1),viewFrom:new Cesium.Cartesian3(4e3,1e3,0),point:{pixelSize:15,color:Cesium.Color.BLACK,outlineColor:Cesium.Color.WHITE,outlineWidth:2}});return this._videoDatasource.entities.add(t)}});Object.assign(Qn.prototype,{appendAircraft(e,t){let r=this;r._uavEntityName="uavEntity";let i=Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.altitude),n=new Cesium.Entity({name:r._uavEntityName,position:i,billboard:{show:!0,image:r._uavImage,scale:.5,pixelOffset:new Cesium.Cartesian2(0,-30)},label:{text:e.altitude.toFixed(1)+"\u7C73",font:"34px scns-serif",scale:.5,style:Cesium.LabelStyle.FILL_AND_OUTLINE,fullColor:r._toColor(255,255,255,1),outlineWidth:3,pixelOffset:new Cesium.Cartesian2(0,-60),outlineColor:r._toColor(20,55,89,1)}}),o=this._entities.add(n);e&&e.isLockView&&e.isLockView===!0?this._lockView(o,e.angle,-30,500,function(){t&&t()}):t&&t()},removeAircraft(){this._removeEntityByName(this._uavEntityName)},_lockView(e,t,r,i,n){this._viewer.flyTo(e,{offset:{heading:Cesium.Math.toRadians(t),pitch:Cesium.Math.toRadians(r),range:i}}).then(function(o){n&&n()}).catch(function(o){n&&n()})}});Qn.LayerType=Object.freeze({mapboxLayer:"mapboxLayer",wmtsLayer:"wmtsLayer",agsVectorLayer:"agsVectorLayer",tilesetsLayer:"tilesetsLayer",glbsLayer:"glbsLayer",geoJsonLayer:"geoJsonLayer",imageLayer:"imageLayer",templateLayer:"templateLayer",floatLayer:"floatLayer"});class jr{constructor(t,r){this._viewer=t,this._init(r)}_init(t){if(this._viewer.scene.globe.depthTestAgainstTerrain=!0,this._viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._entities=this._viewer.entities,this._pointEntitys=[],this._sketchPointImage=void 0,this._iconNormal="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gyP7zqrej3IInF47lwQkTLV3d1xv3KXWPT4MYhLzMzIgHpn10+Sk+Gw74w+jx79HwSGnzUYhg4FED4FBcBq/jtokOOC2oSb0FZUgHpKVoeHQ9GtGM/y8lcgMLxf5juDBwNDlOWnTgGvUdWz5wsQ7c179fUWzz9y0tX1BdZPILeqCpTtil9QEOT9c876K1faWqS07XeMzJFuboCXkpaX1w5hqxl14QJIKYRWCzLV5OXtDQXbon3c3c2/TeMoYvncucAgPrl40Y7fA0zv1QtMydKwb58FL7toRwbDYo3/0utB3OD8qlX2hIkLqalwO0b9+fLlUHJOG9vQ0P4EjfyFIdPZGfqsURampIBIlxsWLLBtL/NltF4PhUIrVq92QGDIeEOmpye4pYju164Bq6n29LTiopy8tDTIL48pSExsDq/Oj9is/eAD4CRbli1DMEFUBAYCewnUaJD8jr2lpQjpJ7M2bBBi0+L47Tt2mP2G5xhNaWnAHrLj461tKF1rasA0rW5b//6w/0rigQcPWhrZKVFXP8TkybaFyb3kXbkCbiO6fpyU1Dwq58vNG3U6BJvEiYMHEcwQW8aNA3pT7O4OaPmTiwuCnlwcNQrEDRGYmytloilj5vr1Zv+mNXVhSUnmOFYEVnt6gtM9t+8mTbKlwo5AoWdySIjteWUcIwwG2LX7o6lPnkiZULTlj/7+wEThm5oKbCBeCOANUisqkNRxLCEBSSzrYmOB3jw6c8Yi3kL5K51OyvkZGXUTJz7LSH09CIPwMBpt85CHhMf48Q4IJFPofHzsbMAAJfjIEQtXC9TZWi0wkEuKAmjEyspKpNN2pyVBQULZaIjbvXmzUDb6xF0zGJCqv+no6NGAK5fLyiz8JssVcXEWgQLUsZZxWmGbrLTN057Agfh7eNiefhpRb7h922LgOzFp2DDzxnJXrsvLE0rqOW3sTz+12h4lLfRZhuQybuXmWmQkgPzhwy0o1jlV37ljh+e3/L1LF0cEXqX04UPb0075rlovLwtBHuqZ5845T5Z37UqbEAPkzOfsUvlHXZ35saFnQ4++fe04eIfftv64tEfgdvkXeweprFIvBQaaebJH+f3x4xbPvsRPnixlQlHGtDFjWq2Wuqj0yz4+QKk4FxNjMVXD2998Y0FRKEsCAuzwzBKv2eZpR6DspxQcPWpnvrNYoNNBZOTOnRoN0ilJMzYjA3ibsKoqoIxezs6gLJbpxcVSTbyePurwYSkT76VPKSgAWQslJcAmenTrBszgP7W1wBlRmZICY2SydHIC8ZCvdTo7Ak+ri44dcySDNDTs2mVufluhThoGD4bHp6or4uOb3zWJnoqwMGAVLnfuACHscHJCiFRmhISA0BMcFob52PDC/8EDkLfkR5GRQmycN8/t8mXw8O73WVwctnvdJ3SqrQXNSJeY3bttaWhHJxMxzDh97VqQAwheutR2IC6pm/z8oOBm7LcVFVJNKNo0oUsXhBKmGR0VBfI0vkFBINzExxoNEKP+ePYsktefFmVnC2Vjvm5SZSVEpGUNefNNUH8ti8rKQCziaOfOVuL2563PP4eCjJhxK1a8hMCJJ7NTPDxAXWIaefEi0J2r/ftbMfyryDhxAkZ2u1EaHAx6oReq2rb/JiTLZKkoUHLf2//YMWCGnPf++1YM7zHw+nVQ1mlKhg2DvPeiltr+GLaj2W524Kd6zZ4NhGOQ0ophI6GSkr4Gq61VGyjx7vdZQoIdYY1xVZ06RKttS1gTHLkPLjVmGo3AJZToaCsGjSWrPFBKfH3bvta0uyR3ySlGIxS4a7trte1l244MtoRpT93XSUk0l0oruFDbqROYUtQ9X3xhLr2WaBpX4+WnOTl2hHkw9eZN0Li5dLP6Dehogc1dexslK/7MynffhbNDvZXnWq9GNJWyiKC69TlphvobtWbOHNgnZonq6hdl+xL/yTQhbKUxeOtWEP9melSUFYMWJSv/IAtNprZLUu4Rf9u6FQpdo49bfRXaBQcy2BL1p+XURYtAZrLwhx+sGDSWrDpc3ZeVBbJMPt22zY6wRj/1oep08zXMUXRABpsQFmqcHhICYiLlhw4BBWiFA/5FOXmhoc8u0Pv3vyyrDshgEwqLYnKLi4FO5OfkvPh66UdudnZHCXsFAptQ96XMW7jQTsm2xAF23roFlD6NXLy4o9m8AoHFR7SxNTWgjGOsVovtxqBxXAzEbc4cKCycN+/+/Y7n88oRvjarcNYsCDtprP/+ewjvZ1xz9SpERBp3zpz5qqP/D5zQE33tptaiAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA0LTA5VDE2OjQyOjI5KzA4OjAwjRBbGwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNC0wOVQxNjo0MjoyOSswODowMPxN46cAAABKdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uXzJhcHo1b3VpcnV4L2Rpbmd3ZWkuc3ZncY9vkgAAAABJRU5ErkJggg==",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/grmkAAAhxSURBVHjazFoLUFVFGN49597LBdFUEpEQI0IpyxIfqU1ZkY/pNZg1RZlWY2lW4yMncxq18oHZ0+lhOaWZUo0zPjIr8W1NiubI+AxBIkRQQsQE7us8tv3P7qGL7gXOPRdzZ3bmcnf3+7/v/Lv/+f/lYkIIMpur2yBktQVO5yM7LRybIvsOFKFGCeHyQz/dFO2Ousflcg6UJSlVlqVEjHEMjNMH5tE0vVLT9ZJAQNnn9fm3d+9z3xEYioR9bNcjW9Z8Gtv35l7PUAFjnU5HLytrFUU9TgV9XXD4+PJhoyfV2/GIFO4TGD8my1lVuGXSHYNuPdyhfbv5VkVAgzWwFjAACzAvp0fwoV++uz6lxzXLolzOW1AEmz+gHCwtq3i2z52Pn2jtlgvXI1LpgQ0jeqYm74y0CGiACdjUxkir3KxMlsoKNj6WmNAlV5Kk9qiNGmBTG6vAlhV+rd1aUuGeNSNSeiSuolGo2X1cdDogbThQ79h21CMfP6NKtR4dw/edYiTSK8GhZ/aO0R7KiFV7dnPpzeFQXkppWeWY9MGj8+ifektbqzVC8KbVH6UNHdJvOw2nHUIB7vrDI89df861p0SRsUSjuiSzB4qxyYzx0TVEdBUNTnVqs7I6B4beEKOFwqThuu7X/IJ7hj/yYlGoM9NqIakpSVH7t67c3C4muq8IyKcQ9EpuddSK3xqcSHJR7g7WsSkCm8+YiSEgRuU9gMbd3k5578kufrcTC8U0eLwF/e99anhJ6Sm/HSHSid/Xv5CclJAjAjlXr+GHP6x07z9JZCSDCBfzBJapBomJabJfdKqFCiGa4RkQgrQA6p+MtbVTEn2dY2XhUz956szM6wdkLRFtsVZFrReeeaRTQte46aIxT4DgrA9ABJKRw42QTLsjimqATgUZwpxNO/0OGz3KmMvWuBFgABZgimwBB+ASbtSSp0zIHutyOuNEg9NW/e06UE49YRBi5LFB2NxaMoQg5iGJfza+Y+MwlwlmogALMIXpD+UAXIBTOEKi4rt0zg51sFft8TjN7YQbnzrbVpeeD8Q+w3fYFCQba9ha5kHABGyRTcrlCeBkVQjO/Wxeb3rA00WDb62rcbHzAARML0hBAloK+lyQ4TEHx2B4BragUS69vl06/6aLnk6LQuQ+vdMyRQMHT/ql/D9VGfEQi00PGFDYwqsP8/AsMQyJbTvABhuiFb3TU+8Otb1CCXFd1SF2gGhg/f56Bw4+B9iCJ0J5Bv93fgAbbIimd7yq/UDgZklITLQ7RTSwp9grs7MgBYXYMEQ0OTtBWBR7d5FX+NQ5J0tCHG63K0GYglSpkrklGkXY1GGKMbdo8d+qkBfn5LB0RpwOeDlc2mo9NNYHbyOMIuCRptvNsCGqXxgnS2dEoslhxMrgSDXOSbL0HlFVzSv6vlMMJigorWGpnJ2ymzRdTrENGxY4NSeE+PwBYQ3ds6tDN1IewvvFRMLQwTBMPB2lxTuEaTvnRKwI0S/U1ZeLBganRWtGwteYAOoR8EgQFsUe3DNamNpzTroVIWp1TW2xaCCrf6xKzDScaP89SRKGGBLkCSMjVo1aZRS1IZrOOalWhCgHjxTvEw3ckhylD7rOobF6ghZJphhk1TO80DK8Yab1KgJssCHMKhgnxYqQQM7i5bv9AaVONDh7VFzAqCWMekLhRZIFzzQWWLzIMjAY3qwsii2+YakDTsDNkkdoRVZbXHLyN9EglKdjh8QoUBSBcaIDEYU91cbtRi7yUFCF2OgBha9lBRZg3nWjuPQFLsDJqkfAtfWfr1jzDSHiR/zuk/GBjO5YQyqtQDU/5WYKCjo/Oicd/JmPw1xYA2sBA7AAM8RFBAEuwMnqYTei3Q95vx47U1VzTJj3uDBZNzXRl9EdUTE+SshnECJcFPOWwraNxj0GYo3OyLM1PgQYgAWYIlvAAbgAp3AKK6XyTPXZ56bOm0f3p/BFFEdr7LwZSd5xQ9wKUukUo/u4h8SdecCHzPmwdtOMJF9ciHodbE+cvmA+cAm1rVoSAsD1m3fmH127cfvSUJOiXRh98nS8/8dpXb0DknWNKB5qzsOIKlwYdIULpWMwB+ZunNrVC2tDeQIa2P552+4jfFsROxd0sbRfm5/31dyMPumZLQWkwsqA9EOTCzqCzdTGvKB7MCNWTU9s/oIOWsHh41tvGz5uNv34Fxdi64IOvNaxQ/t2aXvzVixKTUnqezkSRBqhCm4bMW7GhboGuJw7H+qQW7nEBoALFPCvOx8cP+toYUl+W4v4o6h0L9iiNkvBdnNXplYvsSEtOFddc75owLCxc6jLd7aVCMDulzlmDtgCm6FSEju38RAxztJUumTkoy+9faqyqjDSIgDzgezJi6gN+P9Is1HKjpBGz9T+U1cy+ulXZ9XU/lMRKRGABZjUEyeseCJcIY1i6BY4NmHagjlen/+CXREUow6wADMcEeEKQTxxq96wadfvCz9cvpBuBSVcEbCWYuQAFmCGSgrbSojx0qW9KmfxV5u/zP1+MTEqI6vlCNFhLWAAFsdEl1sIvIAgdTn98muL1mzZtXe1VYCtv+xbDWsBg2OR/0OIKaaB9ooHsqcsoXt8h4Uwu+P+xyfD/zwqOIatHw7YFQJvVthSUICVDxs9Kae0rOJwS2vKyk8fgbmwhq/V7fKwLYSLgWLoPLz9s59//c3mwjKMPTZ+5hswl6ceWiQ4REQIF2OE5QOHCo9NfCVndoPHW3vxHPgOxmAOzOVr0BUlhIuB0Hn2+5937p/77hcLgsMyfF7wwbKFMAZz+Fx0RQoJDsvvL8ndYYZlM8y+8/HKbXbDbKgW8ftd+qQJLQcglFZCaE3qFn81wogEh1mYE/F74bb64RnFAm/DDwy6mPdrkJLzKGfLpsj+vwIMACSZzfDJFmOPAAAAAElFTkSuQmCC",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgEE4igAAAgKSURBVHjazFoJbFRVFP3L/OlMoQXKImAFm0JbFtFKShEQI6UsggmkGKghIKTIIgZUohIDKEuLaFTQiIKyKKghqSyyF0pZbcHQsJVpoRkKbYFAW+iU2f78/313+qY+hvc78+dPkZfcMJ377rn3/Pve/fe9gVUUhfENY5eBjNbhvlnI6Bmh+KT5NzBhGigg9sb5vX3NpohhRqMwgOe4eJ7nurIsGwl69MDskiRXS7Jc7naLpx1OV/4z/V67CKpw+Gf1ZiQv9/vWyc8lTkMEpgiCIVGLrSh6ShGhX4ovlG5Mz5jToCcjXKhPIGvyOOG2JW/OywNfuBAd1WqFVhIwwAZsAQOwAPNxZoQ9f+yPHnHdn94QYRSeZ8I4XG7xnLWianq/oZOuBrvkQs0IZz27a2RCfLeCcJOAAZiAjXyM0hqblslcRfHuiV07d9zKcVwU00IDsJGPLeBLS3zBLi3O8nfuyLjuXbegKtTsOrY4Ldz22u2GPFue4bL7MlfrqWXh+xhDjNLL2EtOj0r3jI8Z70kyJcnN4aC4RGtF9eSklzIOoD/lQEsrGCLs/m3f9nxlUP98VE6j1QDz6/P5xZWLI06KJ3lGwIWdB2tfZEgkJB4oVwwzWBgsLY1d6hoWPUxSw0Tl2na8sHjYiAnvlKntmaD3SHxcrDG1f9/1aiScspOZYZ1hGm4dHnmSRyRglk+i/ITQwVywAVvAoA3kMyolufc6iEHv0uKuntkxu1ts5xyacY2nhh1TNsZcpBTxjBl2K4AQ2eD8MiITWXFDmULiYJhUNlXak7DH0d7QnvrUr1feWtgjZdxa2hILKiOzp01o1/mp9gtoOrtsZ0eXjjYXMYhEa/RFKyxmLCaCmBF/NhF633xkCxiABZg0XxADxBJq1eLnz8ycYhSE9jTl3Iq5EWeYM/wjwUPQvj1CEwHP8SMFWIBJbX9QDBALzrNmIhGdOsZkqm3sTfWbhKbgTcSSMhBLiiYcMc9I2CMswARsmk8Uy5s4r5qIsFt/WN6nVaQ5iaZcVLkoQjEpjbD++4IM+hFUQniCDMYBTMCm+USxJP6+bkVfFWRVIny/Pj3TaIpiezF3SjzFN619AaNwRLABSwzhnSOWGxLABh80sz5J8a+qLS81IsY20a1TaIrc2lzhoX3A+2Ui6FcxkRn+4f3j9UEZbdtEDcCUgycSaTbF0RQnGk7wTY79S2xIbSvGIDCPNxynPnUckyYiBpPJ2JmmKBVLuSYCXIA9EWxWWAIPYZeJZdS4cEwGTXtEMBhMNEWthHonVieB5gix2Aft/NIYk6Y9wqHmMGzH4HANHBOn6T3i8UgO2vcxfIzibTdI0Tv88Lw+NMTUHBHF6XJTz9CJQqLs7ZdkLHoIkbbyf71YgpBAbdtxTIoWInK9reEGTTGk9RCpqfGTCDJ6skE2kxL2QRk4JlkLEc+dmrorNEVGTIbo7VxFgowUQlYU4oxCnFMAe0LMBJFmgmPyaCEinrt45TRNkRyZLA8SBkleMj5CMvGclCBJMIQdJgAC2OCDZoZjErUQcees3njK5RZtNOWy2GUu1sk2nidcOAiPX2aUAHvC/1yCBDDh1Khyw2KDmLBF8Bkpt1bWXSm/fpKmhOPp9OjpIhyKGCcWHxkPpQj4b2oPQcJnj7AAMy06jbo/IBaISWtGwF3Dj5tzf1PIIyQx1nRf40phUiTmQWMQTaTI/ePx2wPEPvAF7xWEAViAqXIRoUAsEJPWze6tdn8dOF5y63ZNCbXv4SKVvYl7HSkKItPQGMwjpFx+4he8V5AtYAAWYNJ8QQwQC0bQfLASq2/duTvjveXL0fqkvog6GDooR3sdtWdFZomsjW18Xj5SdhXBwYOADdgW9CpwAJbK3nDMWpC9AmJRW1aBiABww8GCwkt/7s5fpzbJzJmZ9XHrnYfiDtkHSgMlph59CSXC9y8phA7m5sXl2cFWLRMwwPe+w6cuYvqKngs6uFp4tvDApmUv9ktKC1RZSxwl3I66HYaD9QcNFtHC+RpAaDuShCR5RPQIz7h24zy9zb3lQFjFF0oPpY6Yuhh9vIaJ6Lqgg6y1jY5q1bPowOZV8XGxyY+jQUQVqjh15NSP6m0P4HLuntom13KJDQD1CPDa0NezFl2ylBe2NInLZdYi8IV8WvGCDJi9YC+JoXDW3qm5V5aSPmUJSnlBS5EA7P5pk5eAL/Cp1pLouY2HinEXtdLlo96Y+3ll9W1LuEkA5tjMeauQD/h9pNkqpYdIU2bq7tvKM976cFFN3f2qcJEALMBEmbiqJROhEmkig5ZAycz3s5c4nK56vSQQhg2wADMUEqESYXCTcWfX/qNnVn6zcSVaCmKoJMAWYeQAFmCqNYUtRYTBTcftnNWbDv68dedqVMZlrQBgA7aAAVgYk3ncRBTcNd189+NVuXlHi7ZpBTh07PQ2sAUMjKX8H0R8ZKB7qhqbOX8tWuNHNJTZI2MmzYPfPKowhq5rDL1E4M0q4w7qRnrGnBxrRdWFQDYVN25ehLlgg21lvXHoJoLJwInjHrz9M9/+5LPmyjLoJmYt/BTm4tZDCkcMYSGCyXjL8tnzlpJZH+QsfmB31PnPge9AB3NgLrZhnigimAyUzrs79xX8s+zLn7LJsgyfs7/esBJ0MAfPZZ5IImRZ/mrt1iO+suwrs1989+thvWVWbYT9fhc9aQUdB6CUVkNpje3SqQPDMgpZZmFO2O+FW+o/niEsyDb8qt7Rd78GLTmucrp80vz/K8AAYAEv1AHM/GwAAAAASUVORK5CYII=",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ppb+WxIAAAhcSURBVHjazFoLcFTVGb6vvdnNY0lEEJOIxhCSKTEFKSC1osIgjqIyA62mZfAxWJU+tC3TVh2lHSGhtNOKOqK0ii+0QwcfFB+IAsKIITpJhUBDHhMiSSBCTMgm2d377PnungubnXOT3L0b6rlzmM2e83/n+87/n/+ecxbeNE3OLvLFV3Fui3KiivNSkhmTNb7EpagQQvzxg++VBvxpc2XZN1MUhEJRFHJ5nk9HO5mwAV03OnTDaFYUtTocie66pOymOjSlYnzeq0d2bn02c9oVxXcTAct8PqnYja2qakeJoFdqDx3dNH/xij4vHhGSnYHlSxf5Out3rrjmqqmHglkZa9yKQIENbIEBLGCeT4/wB/f+c1LBpXkvpsm+73IpLFFF/bKltf2esjl3NI005JL1iNBSs23B5MKJe1ItAgWYwCZj3OiWm5vOQmvt9ttzJ4zbLAhCFjdKBdhkjNcwlht+Iw0tof6zrQsKLs19jWShIeM40hASure3S727O0WloV/QehTeSo/ZsilPzjCC11+k5yzM0/yTs4yhcAgvtaW1Y2nJ7MU7yJ/GcKE1EiH8B1ueLrr2+9N3kXQadAIM7f1abK84LEcOnBFFXuREMpk8TyrHx4jhMQ1OJ5x0U+f8s8boeY9MUbLmjNedMEm6Du2rqp17w5KfNTitmRGvkcKCfHnW9NK/O4kwIjp37JdfpDUv+jSgVw+IASHAofpRef/gSttQ0Rc2sAUGq5Axs2ZM+85GcPAaWkLT528/MDF/QiXLWPtG4Rt/tM+v1vSLMi9zPl4iniCVeASeEPjB82QQj8Az8IjOaZxqapxiKpzvygy9aMs1EekCmTnrX7WdfHjSjEUbWCE2Io88cPeSnAkXjV3J9ERY5xuX7PNrNQOin0/j0kiVUQUI8llVSnjs79FHpjawBQawgMkaCxzAJdmsJT50X/ky2ecby5yllTWy+p9+MY2PkYonb60RUuER1udBoixBMgcsYDK3P4QDuIBTMkLSxo+7oNxpYfe80eaLhZPMSSSkUAU8vPWvFVr2QrdimD7xfWw7nzUZMgdMYLPGJFx+DE5uhfCbn1s9JSM9UMJqbF9TJ5O5tNZEooh48o4Lk66fwWJIJZjAZtkQLsVvbFxTapm7ECKWTSmax2oYONgjRKp7RSluYbsRwRITS9cxQcDGGCybKSWF1zuFl5MQeUwwcwaroXtbmyTRWLdFkJekKxGDwo3nz4nB+iEVY7D6Z4/JmgluroSkB/wFrIa+z7rE2DyeWwfJiEhcO2fXD3n69p9mzjrl5EqI5PfLE5hv0qZ+gach4TacRhJmwFaaB5i8KCfJ1RrxSZKfuW3oUflE8l49kvg3xmCeX2KcXK0RMut8yo7BqSqUk+DqPaJpepjpqmyfaSbs30wPx24WFsZww2koIWYkqjDP0PKkDAO7WOuheyevBRgGxQS2XJjO3LZTTqYbIUZvqO84qyFz9lidyohtzenjRYT92LiZsy9kbocpJ8ONEO1UV3cjqyHn1nxNw+6V1tgsJicmdkaJCbDxgJ1zW77G6k85aW6EqF/WNVYzc3lZtuGfGdQ1sgXHVtwW4zbM4sPJ3tYDE9gYg2VDOaluhCiV6zftjypqiNWY92iponKKdZ7QaHUjJl6EbQ8sYOY+Uqo43LCEwAncXHmkuaWtu7H5q09ZjTieZv/kEhWHIpXURDHx6ydxLcT3OSdCsQ5YwAxeyz76ggs4ufUIXNv3/MtbXzfjj5BxZeK6aYpvaoYetUhECRnVqhoNNyvkTIP5WbNOh7H+sAUGsIDpcBFhggs4uV3sVrb79459R052dh1hGgZEs+hfP4hIU9P1iEUmapFSDGWQqPjnLHlDoQKiHGyBASxgssYCB3ABp2QOVmrHyVOn7/3V6tUkPpkvImlsmln83nXh4NJcNWKGuYgRIxcTpcQIx1fynd2OvrCBbfG710WA5bA2wvevrFgDLk5hNZwQAPd9uKfq8Jvbd210BPCL3GVPfS9a+PbVYWF6QA8bEBSrYYgzI1a1Ptvfk4q+l791dRi2Tp5Awdjvf7y/joaV6eWCLpPUy6p2vPTElWUl84bLSOH6XqHn3Xapd9fXotLUJ+jdmrUBFHMkU56UaQTnkkRxc54WKAkaw2HVHjr60awb7nycfDxGhXi6oIPXsoNZGUUHdry8rrAgf9r52CCSDFU7a8Gdv+sN9eNyrsdpkbu5xAZALwE8NueW5Y8drm+uGm0R/21oOYCxyJgtGHuoK1O3l9jYFnxzqqunYcb8ZauIy/eMlghgT5+3dBXGwphOWxIvt/HIGKfJVrr5xh/+/E9tHZ31qRYBzIXlD64jY+D3kSGzlBchZz3TfSbUvPiu3z7W1X2mPVUigAVM4okmN55IVshZMSQEjtz364pV4Ui016sIghECFjCTEZGsEI5u3E5t++CTz9c+uWktCQU1WRGwJRiVwAKm06ZwtIRYL11SOyvXv/ThC5vfWW/iaOf2PEJsYAsMYFFM7nwLwQsIW5cTv/j9uq07PzmwxS3AR3urt8AWGBTL/H8IscX04zp4YflDG0iM73aRZnfffMeD+M2jnWJ4Ovx7FYI3K0IKB7Dj8xevqGxpbT80nE3r8RN16Asbamt45eFZCBWDw1AP3v7lP330j0OlZbTdvvzhP6Av3XroqeCQEiFUjJWWaw7WH7n/N5WP9w+EuxP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._sketchEntityName="sketchEntity",this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchTempEntity=void 0,this._sketchEntity=void 0,this._lineLabel=void 0,this._polygonLabel=void 0,t&&t.isDrawPoint?this._isDrawPoint=t.isDrawPoint:this._isDrawPoint=!0,t&&t.isRetainDrawPoint?this._isRetainDrawPoint=t.isRetainDrawPoint:this._isRetainDrawPoint=!1,this._param={moveLineWidth:2,lineWidth:2,moveAltitudeLineWidth:2,altitudeLineWidth:2,spatialLineWidth:2,moveEllipseColor:[0,255,0,.5],moveEllipseOutline:!0,moveEllipseOutlineColor:[255,0,0,.5],moveEllipseOutlineWidth:1,spatialLineWidth:2,ellipseColor:[0,0,255,.5],ellipseOutline:!0,ellipseOutlineColor:[255,0,0,.5],ellipseOutlineWidth:1},this._setMoveLineStyle(void 0),this._setLineStyle(void 0),this._setMovePolygonStyle(void 0),this._setPolygonStyle(void 0),this._setMoveAltitudeLineStyle(void 0),this._setAltitudeLineStyle(void 0),this._setMoveEllipseStyle(void 0),this._setEllipseStyle(void 0),this._setSpatialLineStyle(void 0),t&&t.iconType)switch(t.iconType){case jr.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case jr.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case jr.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case jr.SketchIconType.Violet:this._sketchPointImage=this._iconViolet;break;default:this._sketchPointImage=this._iconNormal;break}else this._sketchPointImage=this._iconNormal}_arcToDegree(t){return t/Math.PI*180}_toColor(t,r,i,n){let o=new Cesium.Color(0,0,0,1);return typeof t!="number"||typeof r!="number"||typeof i!="number"||typeof n!="number"||t<0||t>255||r<0||r>255||i<0||i>255||n<0||n>1?o:new Cesium.Color(t/255,r/255,i/255,n)}_toColorFromArray(t){if(!t||t.length===void 0||t.length===0)return new Cesium.Color(255/255,255/255,255/255,1);let r=255,i=255,n=255,o=1;return t.length===1?r=parseInt(t[0]):t.length===2?(r=parseInt(t[0]),i=parseInt(t[1])):t.length===3?(r=parseInt(t[0]),i=parseInt(t[1]),n=parseInt(t[2])):t.length>=4&&(r=parseInt(t[0]),i=parseInt(t[1]),n=parseInt(t[2]),o=parseFloat(t[3])),new Cesium.Color(r/255,i/255,n/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(t){let r,i=this._viewer.scene.camera.getPickRay(t),n=this._viewer.scene.globe.pick(i,this._viewer.scene);return Cesium.defined(n)&&(r={x:n.x,y:n.y,z:n.z}),r}_getScreenClickPositionAndHeight(t){var r=void 0,i=void 0,n=void 0,o=this._viewer.scene.camera.getPickRay(t),s=this._viewer.scene.globe.pick(o,this._viewer.scene),l=Cesium.Ellipsoid.WGS84.cartesianToCartographic(s);l=Cesium.Cartographic.fromCartesian(s);var a=this._viewer.scene.pick(t);if(a===void 0&&Cesium.defined(l))r=this._arcToDegree(l.longitude),i=this._arcToDegree(l.latitude),n=l.height;else{var c=this._viewer.scene.pickPosition(t);if(Cesium.defined(c)){var l=Cesium.Cartographic.fromCartesian(c);Cesium.defined(l)&&(r=this._arcToDegree(l.longitude),i=this._arcToDegree(l.latitude),n=l.height)}}return{lng:r,lat:i,height:n}}_transfromFromScreenPoint(t){let r=this._getScreenClickPositionAndHeight(t);if(r.lng!=null){var i=Cesium.Cartesian3.fromDegrees(r.lng,r.lat,r.height);return{gLocation:r,sLocation:i}}else return{gLocation:void 0,sLocation:void 0}}_removeEntityByName(t){var r=this._entities;if(!(!r||!r.values)){for(var i=[],n=0;n<r.values.length;n++)r.values[n].name==t&&i.push(r.values[n]);for(var n=0;n<i.length;n++)r.remove(i[n]);this._updateScene()}}_removeEntityByObject(t){!Cesium.defined(t)||this._entities.remove(t)}_createPoint(t,r){let i=this,n=new Cesium.Entity({name:i._sketchEntityName+"_Point",position:t,billboard:{image:i._sketchPointImage,horizontalOrigin:Cesium.HorizontalOrigin.center,verticalOrigin:Cesium.VerticalOrigin.bottom,scale:.5,pixelOffset:new Cesium.Cartesian2(0,-11),disableDepthTestDistance:Number.POSITIVE_INFINITY}});r&&(n.label={text:r,font:"12px sans-serif",fillColor:this._toColor(255,255,255,1),outlineColor:this._toColor(0,154,94,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:this._toColor(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}),this._entities.add(n),this._pointEntitys.push(n)}_removePointEntitys(){this._removeEntityByName(this._sketchEntityName+"_Point"),this._pointEntitys=[]}_removeLastPointEntity(){if(this._pointEntitys.length>=1){let t=this._pointEntitys[this._pointEntitys.length-1];this._entities.remove(t),this._pointEntitys.pop()}}_createTempPolyline(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return t._sketchTempPoints},!1),material:t._tempLineMaterial,width:t._param.moveLineWidth,clampToGround:!0}});this._sketchTempEntity=this._entities.add(r)}_createPolyline(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:t._sketchPoints,material:t._lineMaterial,width:t._param.lineWidth,clampToGround:!0}});this._sketchEntity=this._entities.add(r)}_createTempSpatialPolyline(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return t._sketchTempPoints},!1),material:t._tempLineMaterial,width:t._param.moveLineWidth,clampToGround:!1}});this._sketchTempEntity=this._entities.add(r)}_createSpatialPolyline(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:t._sketchPoints,material:t._spatialLineMaterial,width:t._param.spatialLineWidth,clampToGround:!1}});this._sketchEntity=this._entities.add(r)}_createTempPolygon(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polygon:{show:!0,hierarchy:new Cesium.CallbackProperty(function(){return{positions:t._sketchTempPoints}},!1),material:t._tempPolygonMaterial,classificationType:Cesium.ClassificationType.BOTH},polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){return t._sketchTempPoints},!1),material:t._tempLineMaterial,width:t._param.moveLineWidth,clampToGround:!0}});this._sketchTempEntity=this._entities.add(r)}_createPolygon(){let t=this;this._sketchPoints.push(this._sketchPoints[0]);let r=new Cesium.Entity({name:t._sketchEntityName,polygon:{show:!0,hierarchy:{positions:t._sketchPoints},material:t._polygonMaterial,classificationType:Cesium.ClassificationType.BOTH},polyline:{show:!0,positions:t._sketchPoints,material:t._lineMaterial,width:t._param.lineWidth,clampToGround:!0}});this._sketchEntity=this._entities.add(r)}_callUpdaeEllipseCenterPosition(){let t=this;return function(){let r=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[0]),i=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[1]);return t._sketchEllipseCenterPosition=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude),i.height),t._sketchEllipseCenterPosition}}_callUpdateAltitudePolylinePositions(){let t=this;return function(){t._sketchAltitudePolylinePostions=[],t._sketchAltitudePolylinePostions.push(t._sketchTempPoints[0]);let r=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[0]),i=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[1]),n=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude),i.height);return t._sketchAltitudePolylinePostions.push(n),t._sketchAltitudePolylinePostions}}_callUpdateEllipseMinorAxis(t){let r=this;return function(){if(t===void 0||t.length===void 0||t.length<2)r._sketchEllipseRadius=0;else{let i=Cesium.Cartographic.fromCartesian(t[0]),n=Cesium.Cartographic.fromCartesian(t[1]),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,n),r._sketchEllipseRadius=o.surfaceDistance,r._sketchEllipseRadius<=0&&(r._sketchEllipseRadius=1)}return r._sketchEllipseRadius}}_callUpdateEllipseHeight(){let t=this;return function(){let r=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[0]),n=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[1]).height-r.height;return t._sketchEllipseHeight=n+t._sketchAltitudeInitHeight,t._sketchEllipseHeight}}_callEllipseOutlineCoordinate(t){let r=this;return function(){let i=t[0],n=t[1];r._ellipseOutlineCoordinates=[];for(let o=5;o<360;){let s=r._rotatedPointByAngle(n,i,o);r._ellipseOutlineCoordinates.push(s),o=o+5}return r._ellipseOutlineCoordinates.push(r._ellipseOutlineCoordinates[0]),r._ellipseOutlineCoordinates}}_createTempAltitudePolyline(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,position:new Cesium.CallbackProperty(t._callUpdaeEllipseCenterPosition(),!1),polyline:{show:!0,positions:new Cesium.CallbackProperty(t._callUpdateAltitudePolylinePositions(),!1),material:t._tempAlititudeLineMaterial,width:t._param.moveAltitudeLineWidth,clampToGround:!1},ellipse:{show:!0,semiMinorAxis:new Cesium.CallbackProperty(t._callUpdateEllipseMinorAxis(t._sketchTempPoints),!1),semiMajorAxis:new Cesium.CallbackProperty(t._callUpdateEllipseMinorAxis(t._sketchTempPoints),!1),height:new Cesium.CallbackProperty(t._callUpdateEllipseHeight(t._sketchTempPoints),!1),material:t._toColorFromArray(t._param.moveEllipseColor),outline:t._param.moveEllipseOutline,outlineWidth:t._param.moveEllipseOutlineWidth,outlineColor:t._toColorFromArray(t._param.moveEllipseOutlineColor)}});this._sketchTempEntity=this._entities.add(r)}_createAltitudePolyline(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,position:t._sketchEllipseCenterPosition,polyline:{show:!0,positions:t._sketchAltitudePolylinePostions,material:t._altitudeLineMaterial,width:t._param.altitudeLineWidth,clampToGround:!1},ellipse:{show:!0,semiMinorAxis:t._sketchEllipseRadius,semiMajorAxis:t._sketchEllipseRadius,height:t._sketchEllipseHeight,material:t._toColorFromArray(t._param.ellipseColor),outline:t._param.ellipseOutline,outlineWidth:t._param.ellipseOutlineWidth,outlineColor:t._toColorFromArray(t._param.ellipseOutlineColor)}});this._sketchEntity=this._entities.add(r)}_createTempCircle(t){let r=this;this._sketchEllipseCenterPosition=t.clone();let i=new Cesium.Entity({name:r._sketchEntityName,position:t,polyline:{show:!0,positions:new Cesium.CallbackProperty(r._callEllipseOutlineCoordinate(r._sketchTempPoints),!1),material:r._tempLineMaterial,width:r._param.moveLineWidth,clampToGround:!0},ellipse:{show:!0,semiMinorAxis:new Cesium.CallbackProperty(r._callUpdateEllipseMinorAxis(r._sketchTempPoints),!1),semiMajorAxis:new Cesium.CallbackProperty(r._callUpdateEllipseMinorAxis(r._sketchTempPoints),!1),material:r._tempPolygonMaterial,classificationType:Cesium.ClassificationType.BOTH}});this._sketchTempEntity=this._entities.add(i)}_rotatedPointByAngle(t,r,i){var n=Cesium.Transforms.eastNorthUpToFixedFrame(r),o=Cesium.Matrix4.inverse(n,new Cesium.Matrix4);Cesium.Matrix4.multiplyByPoint(o,r,new Cesium.Cartesian3);var s=Cesium.Matrix4.multiplyByPoint(o,t,new Cesium.Cartesian3),l=s.x*Math.cos(Cesium.Math.toRadians(i))+s.y*Math.sin(Cesium.Math.toRadians(i)),a=s.y*Math.cos(Cesium.Math.toRadians(i))-s.x*Math.sin(Cesium.Math.toRadians(i)),c=s.z;return Cesium.Matrix4.multiplyByPoint(n,new Cesium.Cartesian3(l,a,c),new Cesium.Cartesian3)}_createCircle(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,position:t._sketchEllipseCenterPosition,polyline:{show:!0,positions:t._ellipseOutlineCoordinates,material:t._lineMaterial,width:t._param.lineWidth,clampToGround:!0},ellipse:{show:!0,semiMinorAxis:t._sketchEllipseRadius,semiMajorAxis:t._sketchEllipseRadius,material:t._polygonMaterial,classificationType:Cesium.ClassificationType.BOTH}});this._sketchEntity=this._entities.add(r)}_callUpdateRectangleCoordinates(t){let r=this;return function(){let i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t[0]),n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t[1]),o=Cesium.Math.toDegrees(i.longitude),s=Cesium.Math.toDegrees(i.latitude),l=Cesium.Math.toDegrees(n.longitude),a=Cesium.Math.toDegrees(n.latitude);r._rectangleCoordinates=[0,0,1,1],o<l?(r._rectangleCoordinates[0]=o,r._rectangleCoordinates[2]=l):(r._rectangleCoordinates[0]=l,r._rectangleCoordinates[2]=o),s<a?(r._rectangleCoordinates[1]=s,r._rectangleCoordinates[3]=a):(r._rectangleCoordinates[1]=a,r._rectangleCoordinates[3]=s);let c=Cesium.Rectangle.fromDegrees(r._rectangleCoordinates[0],r._rectangleCoordinates[1],r._rectangleCoordinates[2],r._rectangleCoordinates[3]),u=r._calculateRectangleOutlineCoordinates(c);return r._rectangleOutlineCoordinates=u.cPoints,r._sketchOutputPoints=u.gPoints,c}}_calculateRectangleOutlineCoordinates(t){let r=Cesium.Rectangle.southeast(t),i=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.southwest(t),o=Cesium.Cartographic.toCartesian(n),s=Cesium.Rectangle.northeast(t),l=Cesium.Cartographic.toCartesian(s),a=Cesium.Rectangle.northwest(t),c=Cesium.Cartographic.toCartesian(a),u=[];return u.push({lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),height:n.height}),u.push({lng:Cesium.Math.toDegrees(r.longitude),lat:Cesium.Math.toDegrees(r.latitude),height:r.height}),u.push({lng:Cesium.Math.toDegrees(s.longitude),lat:Cesium.Math.toDegrees(s.latitude),height:s.height}),u.push({lng:Cesium.Math.toDegrees(a.longitude),lat:Cesium.Math.toDegrees(a.latitude),height:a.height}),u.push({lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),height:n.height}),{cPoints:[o,i,l,c,o],gPoints:u}}_callUpdateRectangleOutlineCoordinates(){let t=this;return function(){return t._rectangleOutlineCoordinates}}_createTempRectangle(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(t._callUpdateRectangleOutlineCoordinates(),!1),material:t._tempLineMaterial,width:t._param.moveLineWidth,clampToGround:!0},rectangle:{show:!0,coordinates:new Cesium.CallbackProperty(t._callUpdateRectangleCoordinates(t._sketchTempPoints),!1),material:t._tempPolygonMaterial,classificationType:Cesium.ClassificationType.BOTH}});this._sketchTempEntity=this._entities.add(r)}_createRectangle(t){let r=this,i=new Cesium.Entity({name:r._sketchEntityName,polyline:{show:!0,positions:r._rectangleOutlineCoordinates,material:r._lineMaterial,width:r._param.lineWidth,clampToGround:!0},rectangle:{show:!0,coordinates:Cesium.Rectangle.fromDegrees(r._rectangleCoordinates[0],r._rectangleCoordinates[1],r._rectangleCoordinates[2],r._rectangleCoordinates[3]),material:r._polygonMaterial,classificationType:Cesium.ClassificationType.BOTH}});this._sketchEntity=this._entities.add(i)}_createTempSpatialTriangle(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:new Cesium.CallbackProperty(function(){t._sketchSpatialTrianglePositions=[],t._sketchSpatialTrianglePositions.push(t._sketchTempPoints[0].clone()),t._sketchSpatialTrianglePositions.push(t._sketchTempPoints[1].clone());let i=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[0]),n=Cesium.Cartographic.fromCartesian(t._sketchTempPoints[1]),o=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude),n.height);return t._sketchSpatialTrianglePositions.push(o),t._sketchSpatialTrianglePositions.push(t._sketchTempPoints[0].clone()),t._sketchSpatialTrianglePositions},!1),material:t._tempLineMaterial,width:t._param.moveLineWidth,clampToGround:!1}});this._sketchTempEntity=this._entities.add(r)}_createSpatialTriangle(){let t=this,r=new Cesium.Entity({name:t._sketchEntityName,polyline:{show:!0,positions:t._sketchSpatialTrianglePositions,material:t._lineMaterial,width:t._param.lineWidth,clampToGround:!1}});this._sketchEntity=this._entities.add(r)}_setMoveLineStyle(t){let r=this,i=[255,255,255,1],n=3,o=!1,s=.2,l=[255,0,0,1],a=1;t&&t.color&&t.color.length===4&&(i=t.color),t&&t.outline&&typeof t.outline=="boolean"&&(o=t.outline),t&&t.outlineColor&&t.outlineColor.length===4&&(l=t.outlineColor),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(a=t.outlineWidth),t&&t.lineWidth&&typeof t.lineWidth=="number"&&(n=t.lineWidth),t&&t.power&&(s=t.power),o?this._tempLineMaterial=new Cesium.PolylineOutlineMaterialProperty({color:r._toColorFromArray(i),outlineColor:r._toColorFromArray(l),outlineWidth:a}):s===void 0?this._tempLineMaterial=new Cesium.PolylineDashMaterialProperty({color:r._toColorFromArray(i)}):this._tempLineMaterial=new Cesium.PolylineGlowMaterialProperty({color:r._toColorFromArray(i),glowPower:s}),this._param.moveLineWidth=n}_setLineStyle(t){let r=this,i=[255,255,255,1],n=2,o=[0,255,0,.6],s=1;t&&t.color&&t.color.length===4&&(i=t.color),t&&t.outlineColor&&t.outlineColor.length===4&&(o=t.outlineColor),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(s=t.outlineWidth),t&&t.lineWidth&&typeof t.lineWidth=="number"&&(n=t.lineWidth),this._lineMaterial=new Cesium.PolylineOutlineMaterialProperty({color:r._toColorFromArray(i),outlineColor:r._toColorFromArray(o),outlineWidth:s}),this._param.lineWidth=n}_setSpatialLineStyle(t){let r=this,i=[255,255,0,1],n=2,o=[255,255,255,1],s=1;t&&t.color&&t.color.length===4&&(i=t.color),t&&t.outlineColor&&t.outlineColor.length===4&&(o=t.outlineColor),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(s=t.outlineWidth),t&&t.lineWidth&&typeof t.lineWidth=="number"&&(n=t.lineWidth),this._spatialLineMaterial=new Cesium.PolylineOutlineMaterialProperty({color:r._toColorFromArray(i),outlineColor:r._toColorFromArray(o),outlineWidth:s}),this._param.spatialLineWidth=n}_setMovePolygonStyle(t){let r=[255,0,0,.3];t&&t.color&&t.color.length===4&&(r=t.color),this._tempPolygonMaterial=new Cesium.ColorMaterialProperty(this._toColorFromArray(r))}_setPolygonStyle(t){let r=[0,0,255,.3];t&&t.color&&t.color.length===4&&(r=t.color),this._polygonMaterial=new Cesium.ColorMaterialProperty(this._toColorFromArray(r))}_setMoveAltitudeLineStyle(t){let r=this,i=[255,255,255,1],n=2,o=!0,s=[255,255,0,1],l=1;t&&t.color&&t.color.length===4&&(i=t.color),t&&t.outline&&typeof t.outline=="boolean"&&(o=t.outline),t&&t.outlineColor&&t.outlineColor.length===4&&(s=t.outlineColor),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(l=t.outlineWidth),t&&t.lineWidth&&typeof t.lineWidth=="number"&&(n=t.lineWidth),o?this._tempAlititudeLineMaterial=new Cesium.PolylineOutlineMaterialProperty({color:r._toColorFromArray(i),outlineColor:r._toColorFromArray(s),outlineWidth:l}):this._tempAlititudeLineMaterial=new Cesium.PolylineDashMaterialProperty({color:r._toColorFromArray(i)}),this._param.moveAltitudeLineWidth=n}_setAltitudeLineStyle(t){let r=this,i=[255,255,255,1],n=2,o=[0,0,255,1],s=1;t&&t.color&&t.color.length===4&&(i=t.color),t&&t.outlineColor&&t.outlineColor.length===4&&(o=t.outlineColor),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(s=t.outlineWidth),t&&t.lineWidth&&typeof t.lineWidth=="number"&&(n=t.lineWidth),this._altitudeLineMaterial=new Cesium.PolylineOutlineMaterialProperty({color:r._toColorFromArray(i),outlineColor:r._toColorFromArray(o),outlineWidth:s}),this._param.altitudeLineWidth=n}_setMoveEllipseStyle(t){t&&t.color&&t.color.length===4&&(this._param.moveEllipseColor=t.color),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(this._param.moveEllipseOutlineWidth=t.outlineWidth),t&&t.outline&&typeof t.outline=="boolean"&&(this._param.moveEllipseOutline=t.outline),t&&t.outlineColor&&t.outlineColor.length===4&&(this._param.moveEllipseOutlineColor=t.outlineColor)}_setEllipseStyle(t){t&&t.color&&t.color.length===4&&(this._param.ellipseColor=t.color),t&&t.outlineWidth&&typeof t.outlineWidth=="number"&&(this._param.ellipseOutlineWidth=t.outlineWidth),t&&t.outline&&typeof t.outline=="boolean"&&(this._param.ellipseOutline=t.outline),t&&t.outlineColor&&t.outlineColor.length===4&&(this._param.ellipseOutlineColor=t.outlineColor)}_clear(t){t!=null&&t===!0&&(this._removeEntityByName(this._sketchEntityName),this._removePointEntitys()),this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._pointEntitys=[],this._sketchTempEntity=void 0,this._sketchEntity=void 0}}Object.assign(jr.prototype,{setMoveLineStyle:function(e){this._setMoveLineStyle(e)},setLineStyle:function(e){this._setLineStyle(e)},setSpatialLineStyle:function(){this._setSpatialLineStyle(options)},setMovePolygonStyle:function(e){this._setMovePolygonStyle(e)},setPolygonStyle:function(e){this._setPolygonStyle(e)},setMoveAltitudeLineStyle:function(e){this._setMoveAltitudeLineStyle(e)},setAltitudeLineStyle:function(e){this._setAltitudeLineStyle(e)},setMoveEllipseStyle:function(e){this._setMoveEllipseStyle(e)},setEllipseStyle:function(e){this._setEllipseStyle(e)},setLabel:function(e){e||(e={lineLabel:void 0,polygonLabel:void 0}),e.lineLabel&&(this._lineLabel=e.lineLabel),e.polygonLabel&&(this._lineLabel=e.polygonLabel)}});Object.assign(jr.prototype,{_registerLeftClickEvent:function(e,t){let r=this;!e||e.setInputAction(function(i){r._lock=!0,clearTimeout(r._timer),r._timer=setTimeout(function(){t&&t(i),r._lock=!1},200)},Cesium.ScreenSpaceEventType.LEFT_CLICK)},_registerLeftDoubleClickEvent:function(e,t){let r=this;!e||e.setInputAction(function(i){clearTimeout(r._timer),r._lock=!1,t&&t(i)},Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK)},_registerMouseMoveEvent:function(e,t){let r=this;!e||e.setInputAction(function(i){(r._lock===void 0||r._lock===!1)&&t&&t(i)},Cesium.ScreenSpaceEventType.MOUSE_MOVE)},_registerRightClickEvent:function(e,t){!e||e.setInputAction(function(r){t&&t(r)},Cesium.ScreenSpaceEventType.RIGHT_CLICK)},_registerLeftDownEvent:function(e,t){!e||e.setInputAction(function(r){t&&t(r)},Cesium.ScreenSpaceEventType.LEFT_DOWN)},_registerLeftUpEvent:function(e,t){!e||e.setInputAction(function(r){t&&t(r)},Cesium.ScreenSpaceEventType.LEFT_UP)},_clearEvent:function(e){!e||(e.destroy(),e=null)}});Object.assign(jr.prototype,{_sketchDrawPoint(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);if(!Cesium.defined(n.sLocation))return;let o;t&&t.label&&(o=t.label),r._createPoint(n.sLocation,o),r._clearEvent(e),t.onComplete&&t.onComplete(n.sLocation,n.gLocation)})},_sketchDrawMultiplePoint(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._createPoint(n.sLocation,void 0),r._sketchPoints.push(n.sLocation),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(n.sLocation,n.gLocation))}),this._registerRightClickEvent(e,function(i){r._sketchPoints.length>0&&(r._sketchPoints.pop(),r._sketchOutputPoints.pop(),r._removeLastPointEntity(),t.onUndo&&t.onUndo())}),this._registerLeftDoubleClickEvent(e,function(i){r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)})},_sketchDrawPolyline(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation),r._sketchTempPoints.length===0&&(r._createTempPolyline(),r._sketchTempPoints.push(n.sLocation.clone())),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length===0)return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint&&r._removeLastPointEntity(),t.onUndo&&t.onUndo())}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<2){t.onError&&t.onError("\u70B9\u6570\u5C11\u4E8E\u4E24\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._removeEntityByObject(r._sketchTempEntity),r._createPolyline(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)})},_sketchDrawSpatialPolyline(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation),r._sketchTempPoints.length===0&&(r._createTempSpatialPolyline(),r._sketchTempPoints.push(n.sLocation.clone())),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length===0)return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<2){t.onError&&t.onError("\u7ED8\u5236\u70B9\u5C11\u4E8E2\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._removeEntityByObject(r._sketchTempEntity),r._createSpatialPolyline(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint&&r._removeLastPointEntity(),t.onUndo&&t.onUndo())})},_sketchDrawPolygon(e,t){let r=this;this._registerLeftClickEvent(e,function(i){let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._isDrawPoint&&r._createPoint(n.sLocation),r._sketchTempPoints.length===0&&(r._createTempPolygon(),r._sketchTempPoints.push(n.sLocation.clone())),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length===0)return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation),t.onMoving&&t.onMoving(n.sLocation))}),this._registerRightClickEvent(e,function(i){r._sketchTempPoints.length>2&&(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint&&r._removeLastPointEntity(),t.onUndo&&t.onUndo())}),this._registerLeftDoubleClickEvent(e,function(i){if(r._sketchPoints.length<3){t.onError&&t.onError("\u70B9\u6570\u5C11\u4E8E3\u4E2A\uFF0C\u7981\u6B62\u7ED3\u675F\u7ED8\u5236\uFF01");return}r._removeEntityByObject(r._sketchTempEntity),r._createPolygon(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)})},_sketchDrawCircle:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){if(r._sketchTempPoints.length===0){let n=r._transfromFromScreenPoint(i.position);if(!Cesium.defined(n.sLocation))return;r._isDrawPoint&&r._createPoint(n.sLocation),r._sketchTempPoints.push(n.sLocation.clone()),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),r._sketchOutputPoints.push(n.gLocation),r._createTempCircle(n.sLocation),t.onAdded&&t.onAdded(n.sLocation)}else r._isRetainDrawPoint||r._removePointEntitys(),r._removeEntityByObject(r._sketchTempEntity),r._createCircle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchOutputPoints[0],r._sketchEllipseRadius)}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length!==0){var n=r._viewer.scene.pickPosition(i.endPosition);n!=null&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n))}})},_sketchDrawHeightPolyline:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){if(r._sketchTempPoints.length===0){let n=r._transfromFromScreenPoint(i.position);if(!Cesium.defined(n.sLocation))return;r._isDrawPoint&&r._createPoint(n.sLocation),r._sketchAltitudeInitHeight=n.gLocation.height,r._sketchTempPoints.push(n.sLocation.clone()),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation.clone()),t.onAdded&&t.onAdded(n.sLocation)}else r._isRetainDrawPoint||r._removePointEntitys(),r._removeEntityByObject(r._sketchTempEntity),r._createAltitudePolyline(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition)}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length!=0){var n=r._viewer.scene.pickPosition(i.endPosition);n!=null&&r._sketchTempPoints.length>=2&&(Cesium.defined(r._sketchTempEntity)?(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n)):r._createTempAltitudePolyline(),t.onMoving&&t.onMoving(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition))}})},_sketchDrawRectangle:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){if(r._sketchTempPoints.length===0){let n=r._transfromFromScreenPoint(i.position);if(!Cesium.defined(n.sLocation))return;r._isDrawPoint&&r._createPoint(n.sLocation),r._sketchTempPoints.push(n.sLocation),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.gLocation),r._createTempRectangle(),t.onAdded&&t.onAdded(n.sLocation)}else r._isRetainDrawPoint||r._removePointEntitys(),r._removeEntityByObject(r._sketchTempEntity),r._createRectangle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchOutputPoints)}),this._registerMouseMoveEvent(e,function(i){if(r._sketchTempPoints.length===0)return;let n=r._transfromFromScreenPoint(i.endPosition);!Cesium.defined(n.sLocation)||(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n.sLocation))})},_sketchDrawTriangle:function(e,t){let r=this;this._registerLeftClickEvent(e,function(i){if(Cesium.defined(r._sketchTempAltituePolyline))return;let n=r._transfromFromScreenPoint(i.position);!Cesium.defined(n.sLocation)||(r._sketchPoints.length==0?(r._sketchTempPoints.push(n.sLocation.clone()),r._sketchTempPoints.push(n.sLocation),r._sketchPoints.push(n.sLocation),r._createTempSpatialTriangle()):r._sketchPoints.length>0&&(r._isRetainDrawPoint||r._removePointEntitys(),r._removeEntityByObject(r._sketchTempEntity),r._createSpatialTriangle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchSpatialTrianglePositions)))}),this._registerMouseMoveEvent(e,function(i){if(!(r._sketchPoints===void 0||r._sketchPoints.length===0)){var n=r._viewer.scene.pickPosition(i.endPosition);n!=null&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(n),t.onMoving&&t.onMoving(n))}})},sketchTools:function(e,t){let r=this;switch(this._clear(),r._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case jr.SketchType.Point:r._sketchDrawPoint(r._sketchEventHandler,t);break;case jr.SketchType.MultiplePoint:r._sketchDrawMultiplePoint(r._sketchEventHandler,t);break;case jr.SketchType.Line:r._sketchDrawPolyline(r._sketchEventHandler,t);break;case jr.SketchType.Polygon:r._sketchDrawPolygon(r._sketchEventHandler,t);break;case jr.SketchType.Height:r._sketchDrawHeightPolyline(r._sketchEventHandler,t);break;case jr.SketchType.Spatial:r._sketchDrawSpatialPolyline(r._sketchEventHandler,t);break;case jr.SketchType.Circle:r._sketchDrawCircle(r._sketchEventHandler,t);break;case jr.SketchType.Rectangle:r._sketchDrawRectangle(r._sketchEventHandler,t);break;case jr.SketchType.Triangle:r._sketchDrawTriangle(r._sketchEventHandler,t);break}},sketchDrawFeacture:function(e,t,r){let i=this;if(e===void 0||e.length===void 0||e.length<2){r&&r.onError&&r.onError("\u8F93\u5165\u7684\u5750\u6807\u96C6\u5408\u5F02\u5E38\uFF01");return}this._sketchPoints=[];for(let n=0;n<e.length;)this._sketchPoints.push(Cesium.Cartesian3.fromDegrees(e[n],e[n+1])),n=n+2;switch(t){case jr.SketchType.DrawPoint:i._createPoint(i._sketchPoints[0],i._lineLabel),r&&r.onComplete&&r.onComplete();break;case jr.SketchType.DrawMultiplePoint:for(let n=0;n<i._sketchPoints.length;n++)i._createPoint(i._sketchPoints[n],i._lineLabel);r&&r.onComplete&&r.onComplete();break;case jr.SketchType.DrawPolyline:i._sketchPoints.length<2?r&&r.onError&&r.onError("\u70B9\u6570\u5C11\u4E8E2\u4E2A\uFF0C\u65E0\u6CD5\u7ED8\u5236\uFF01"):(i._createPolyline(),r&&r.onComplete&&r.onComplete());break;case jr.SketchType.DrawPolygon:i._sketchPoints.length<3?r&&r.onError&&r.onError("\u70B9\u6570\u5C11\u4E8E3\u4E2A\uFF0C\u65E0\u6CD5\u7ED8\u5236\uFF01"):(i._createPolygon(),r&&r.onComplete&&r.onComplete());break;default:r&&r.onError&&r.onError("\u7ED8\u5236\u7C7B\u578B\u5F02\u5E38\uFF01");break}},sketchClear:function(){this._clear(!0)},sketchInit:function(){this._clear(!1)},removeEntityByName:function(e){this._removeEntityByName(e)}});Object.assign(jr.prototype,{_tooltipInit:function(e,t){this._tooltipId="tooltipSketchmodel";let r=document.getElementById(this._tooltipId);if(r===null){r=document.createElement("div"),r.id=this._tooltipId,document.body.appendChild(r);let i="";i+="top: 30px;",i+="left: 30px;",i+="position: absolute;",i+="display: flex;",i+="align-items: center;",i+="width: 12x0px;",i+="height: auto;",i+="background-color: rgba(0, 0, 0, 0.65);",i+="border-radius: 5px;",i+="color: rgb(255, 255, 255);",i+="font-size: 12px;",i+="font-family: 'Alimama_ShuHeiTi_Bold';",i+="padding: 8px;",i+="border:solid 1px rgb(255,0,0);",r.setAttribute("style",i)}e!=null&&(r.innerHTML=e),t===void 0?document.onmousemove=function(i){r.style.left=i.clientX+10+"px",r.style.top=i.clientY-r.offsetHeight/2+"px"}:(r.style.left=t.x+10+"px",r.style.top=t.y-r.offsetHeight/2+"px")},_tooltipRemove:function(){let e=document.getElementById(this._tooltipId);e!=null&&document.body.removeChild(e)},_tooltipSetText:function(e,t){let r=document.getElementById(this._tooltipId);r!=null&&(e!=null&&(r.innerHTML=e),t!=null&&(r.style.left=t.x+10+"px",r.style.top=t.y-r.offsetHeight/2+"px"))},_setMousePointerStyle:function(){document.querySelector("body").style.cursor="crosshair"},_setMouseDefaultStyle:function(){document.querySelector("body").style.cursor="default"}});Object.assign(jr.prototype,{_clampToHeightMostDetailed:function(e,t){this._viewer.scene.clampToHeightMostDetailed(e).then(function(i){t&&t(i)})},_sampleHeightMostDetailed:function(e,t){let r=[];for(let n=0;n<e.length;n++)r.push(this._viewer.scene.globe.ellipsoid.cartesianToCartographic(e[n]));this._viewer.scene.sampleHeightMostDetailed(r).then(function(n){let o=[];for(let s=0;s<r.length;s++){let l=Cesium.Cartesian3.fromRadians(r[s].longitude,r[s].latitude,n[s].height);o.push(l)}t&&t(o)})}});Object.assign(jr.prototype,{_checkColor:function(e){if(e==null||typeof e!="number")return!1;let t=parseInt(e);return!(t<0||t>255)},_checkAlpha:function(e){if(e==null||typeof e!="number")return!1;let t=parseFloat(e);return!(t<0||t>1)},_checkColorAndAlpha:function(e){let t;if(!(!e||e.length===void 0||e.length===0))return e.length===1&&this._checkColor(e[0])?t=[e[0],0,0,1]:e.length===2&&this._checkColor(e[0])&&this._checkColor(e[1])?t=[e[0],e[1],0,1]:e.length===3&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])?t=[e[0],e[1],e[2],1]:e.length===4&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])&&this._checkAlpha(e[3])&&(t=[e[0],e[1],e[2],e[3]]),t}});jr.SketchType=Object.freeze({Point:"point",MultiplePoint:"multiplePoint",Line:"line",Polygon:"polygon",Height:"height",Spatial:"spatial",Triangle:"triangle",Circle:"circle",Rectangle:"rectangle",DrawPoint:"drawPoint",DrawMultiplePoint:"drawMultiplePoint",DrawPolyline:"drawPolyline",DrawPolygon:"drawPolygon"});jr.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"});class v0{constructor(t,r){this._viewer=t,this._sketchViewModel=new jr(t,{iconType:jr.SketchIconType.Green,isDrawPoint:!0,isRetainDrawPoint:!0}),r&&r.isClear&&(this._isClear=r.isClear),this._canvasWidth=this._viewer.scene.canvas.width,this._canvasHeight=this._viewer.scene.canvas.height,this._init()}_init(){this._measureEntityName="MeasureEntity",this._entities=this._viewer.entities,this._measurePointImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gyP7zqrej3IInF47lwQkTLV3d1xv3KXWPT4MYhLzMzIgHpn10+Sk+Gw74w+jx79HwSGnzUYhg4FED4FBcBq/jtokOOC2oSb0FZUgHpKVoeHQ9GtGM/y8lcgMLxf5juDBwNDlOWnTgGvUdWz5wsQ7c179fUWzz9y0tX1BdZPILeqCpTtil9QEOT9c876K1faWqS07XeMzJFuboCXkpaX1w5hqxl14QJIKYRWCzLV5OXtDQXbon3c3c2/TeMoYvncucAgPrl40Y7fA0zv1QtMydKwb58FL7toRwbDYo3/0utB3OD8qlX2hIkLqalwO0b9+fLlUHJOG9vQ0P4EjfyFIdPZGfqsURampIBIlxsWLLBtL/NltF4PhUIrVq92QGDIeEOmpye4pYju164Bq6n29LTiopy8tDTIL48pSExsDq/Oj9is/eAD4CRbli1DMEFUBAYCewnUaJD8jr2lpQjpJ7M2bBBi0+L47Tt2mP2G5xhNaWnAHrLj461tKF1rasA0rW5b//6w/0rigQcPWhrZKVFXP8TkybaFyb3kXbkCbiO6fpyU1Dwq58vNG3U6BJvEiYMHEcwQW8aNA3pT7O4OaPmTiwuCnlwcNQrEDRGYmytloilj5vr1Zv+mNXVhSUnmOFYEVnt6gtM9t+8mTbKlwo5AoWdySIjteWUcIwwG2LX7o6lPnkiZULTlj/7+wEThm5oKbCBeCOANUisqkNRxLCEBSSzrYmOB3jw6c8Yi3kL5K51OyvkZGXUTJz7LSH09CIPwMBpt85CHhMf48Q4IJFPofHzsbMAAJfjIEQtXC9TZWi0wkEuKAmjEyspKpNN2pyVBQULZaIjbvXmzUDb6xF0zGJCqv+no6NGAK5fLyiz8JssVcXEWgQLUsZZxWmGbrLTN057Agfh7eNiefhpRb7h922LgOzFp2DDzxnJXrsvLE0rqOW3sTz+12h4lLfRZhuQybuXmWmQkgPzhwy0o1jlV37ljh+e3/L1LF0cEXqX04UPb0075rlovLwtBHuqZ5845T5Z37UqbEAPkzOfsUvlHXZ35saFnQ4++fe04eIfftv64tEfgdvkXeweprFIvBQaaebJH+f3x4xbPvsRPnixlQlHGtDFjWq2Wuqj0yz4+QKk4FxNjMVXD2998Y0FRKEsCAuzwzBKv2eZpR6DspxQcPWpnvrNYoNNBZOTOnRoN0ilJMzYjA3ibsKoqoIxezs6gLJbpxcVSTbyePurwYSkT76VPKSgAWQslJcAmenTrBszgP7W1wBlRmZICY2SydHIC8ZCvdTo7Ak+ri44dcySDNDTs2mVufluhThoGD4bHp6or4uOb3zWJnoqwMGAVLnfuACHscHJCiFRmhISA0BMcFob52PDC/8EDkLfkR5GRQmycN8/t8mXw8O73WVwctnvdJ3SqrQXNSJeY3bttaWhHJxMxzDh97VqQAwheutR2IC6pm/z8oOBm7LcVFVJNKNo0oUsXhBKmGR0VBfI0vkFBINzExxoNEKP+ePYsktefFmVnC2Vjvm5SZSVEpGUNefNNUH8ti8rKQCziaOfOVuL2563PP4eCjJhxK1a8hMCJJ7NTPDxAXWIaefEi0J2r/ftbMfyryDhxAkZ2u1EaHAx6oReq2rb/JiTLZKkoUHLf2//YMWCGnPf++1YM7zHw+nVQ1mlKhg2DvPeiltr+GLaj2W524Kd6zZ4NhGOQ0ophI6GSkr4Gq61VGyjx7vdZQoIdYY1xVZ06RKttS1gTHLkPLjVmGo3AJZToaCsGjSWrPFBKfH3bvta0uyR3ySlGIxS4a7trte1l244MtoRpT93XSUk0l0oruFDbqROYUtQ9X3xhLr2WaBpX4+WnOTl2hHkw9eZN0Li5dLP6Dehogc1dexslK/7MynffhbNDvZXnWq9GNJWyiKC69TlphvobtWbOHNgnZonq6hdl+xL/yTQhbKUxeOtWEP9melSUFYMWJSv/IAtNprZLUu4Rf9u6FQpdo49bfRXaBQcy2BL1p+XURYtAZrLwhx+sGDSWrDpc3ZeVBbJMPt22zY6wRj/1oep08zXMUXRABpsQFmqcHhICYiLlhw4BBWiFA/5FOXmhoc8u0Pv3vyyrDshgEwqLYnKLi4FO5OfkvPh66UdudnZHCXsFAptQ96XMW7jQTsm2xAF23roFlD6NXLy4o9m8AoHFR7SxNTWgjGOsVovtxqBxXAzEbc4cKCycN+/+/Y7n88oRvjarcNYsCDtprP/+ewjvZ1xz9SpERBp3zpz5qqP/D5zQE33tptaiAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA0LTA5VDE2OjQyOjI5KzA4OjAwjRBbGwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNC0wOVQxNjo0MjoyOSswODowMPxN46cAAABKdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uXzJhcHo1b3VpcnV4L2Rpbmd3ZWkuc3ZncY9vkgAAAABJRU5ErkJggg==",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/grmkAAAhxSURBVHjazFoLUFVFGN49597LBdFUEpEQI0IpyxIfqU1ZkY/pNZg1RZlWY2lW4yMncxq18oHZ0+lhOaWZUo0zPjIr8W1NiubI+AxBIkRQQsQE7us8tv3P7qGL7gXOPRdzZ3bmcnf3+7/v/Lv/+f/lYkIIMpur2yBktQVO5yM7LRybIvsOFKFGCeHyQz/dFO2Ousflcg6UJSlVlqVEjHEMjNMH5tE0vVLT9ZJAQNnn9fm3d+9z3xEYioR9bNcjW9Z8Gtv35l7PUAFjnU5HLytrFUU9TgV9XXD4+PJhoyfV2/GIFO4TGD8my1lVuGXSHYNuPdyhfbv5VkVAgzWwFjAACzAvp0fwoV++uz6lxzXLolzOW1AEmz+gHCwtq3i2z52Pn2jtlgvXI1LpgQ0jeqYm74y0CGiACdjUxkir3KxMlsoKNj6WmNAlV5Kk9qiNGmBTG6vAlhV+rd1aUuGeNSNSeiSuolGo2X1cdDogbThQ79h21CMfP6NKtR4dw/edYiTSK8GhZ/aO0R7KiFV7dnPpzeFQXkppWeWY9MGj8+ifektbqzVC8KbVH6UNHdJvOw2nHUIB7vrDI89df861p0SRsUSjuiSzB4qxyYzx0TVEdBUNTnVqs7I6B4beEKOFwqThuu7X/IJ7hj/yYlGoM9NqIakpSVH7t67c3C4muq8IyKcQ9EpuddSK3xqcSHJR7g7WsSkCm8+YiSEgRuU9gMbd3k5578kufrcTC8U0eLwF/e99anhJ6Sm/HSHSid/Xv5CclJAjAjlXr+GHP6x07z9JZCSDCBfzBJapBomJabJfdKqFCiGa4RkQgrQA6p+MtbVTEn2dY2XhUz956szM6wdkLRFtsVZFrReeeaRTQte46aIxT4DgrA9ABJKRw42QTLsjimqATgUZwpxNO/0OGz3KmMvWuBFgABZgimwBB+ASbtSSp0zIHutyOuNEg9NW/e06UE49YRBi5LFB2NxaMoQg5iGJfza+Y+MwlwlmogALMIXpD+UAXIBTOEKi4rt0zg51sFft8TjN7YQbnzrbVpeeD8Q+w3fYFCQba9ha5kHABGyRTcrlCeBkVQjO/Wxeb3rA00WDb62rcbHzAARML0hBAloK+lyQ4TEHx2B4BragUS69vl06/6aLnk6LQuQ+vdMyRQMHT/ql/D9VGfEQi00PGFDYwqsP8/AsMQyJbTvABhuiFb3TU+8Otb1CCXFd1SF2gGhg/f56Bw4+B9iCJ0J5Bv93fgAbbIimd7yq/UDgZklITLQ7RTSwp9grs7MgBYXYMEQ0OTtBWBR7d5FX+NQ5J0tCHG63K0GYglSpkrklGkXY1GGKMbdo8d+qkBfn5LB0RpwOeDlc2mo9NNYHbyOMIuCRptvNsCGqXxgnS2dEoslhxMrgSDXOSbL0HlFVzSv6vlMMJigorWGpnJ2ymzRdTrENGxY4NSeE+PwBYQ3ds6tDN1IewvvFRMLQwTBMPB2lxTuEaTvnRKwI0S/U1ZeLBganRWtGwteYAOoR8EgQFsUe3DNamNpzTroVIWp1TW2xaCCrf6xKzDScaP89SRKGGBLkCSMjVo1aZRS1IZrOOalWhCgHjxTvEw3ckhylD7rOobF6ghZJphhk1TO80DK8Yab1KgJssCHMKhgnxYqQQM7i5bv9AaVONDh7VFzAqCWMekLhRZIFzzQWWLzIMjAY3qwsii2+YakDTsDNkkdoRVZbXHLyN9EglKdjh8QoUBSBcaIDEYU91cbtRi7yUFCF2OgBha9lBRZg3nWjuPQFLsDJqkfAtfWfr1jzDSHiR/zuk/GBjO5YQyqtQDU/5WYKCjo/Oicd/JmPw1xYA2sBA7AAM8RFBAEuwMnqYTei3Q95vx47U1VzTJj3uDBZNzXRl9EdUTE+SshnECJcFPOWwraNxj0GYo3OyLM1PgQYgAWYIlvAAbgAp3AKK6XyTPXZ56bOm0f3p/BFFEdr7LwZSd5xQ9wKUukUo/u4h8SdecCHzPmwdtOMJF9ciHodbE+cvmA+cAm1rVoSAsD1m3fmH127cfvSUJOiXRh98nS8/8dpXb0DknWNKB5qzsOIKlwYdIULpWMwB+ZunNrVC2tDeQIa2P552+4jfFsROxd0sbRfm5/31dyMPumZLQWkwsqA9EOTCzqCzdTGvKB7MCNWTU9s/oIOWsHh41tvGz5uNv34Fxdi64IOvNaxQ/t2aXvzVixKTUnqezkSRBqhCm4bMW7GhboGuJw7H+qQW7nEBoALFPCvOx8cP+toYUl+W4v4o6h0L9iiNkvBdnNXplYvsSEtOFddc75owLCxc6jLd7aVCMDulzlmDtgCm6FSEju38RAxztJUumTkoy+9faqyqjDSIgDzgezJi6gN+P9Is1HKjpBGz9T+U1cy+ulXZ9XU/lMRKRGABZjUEyeseCJcIY1i6BY4NmHagjlen/+CXREUow6wADMcEeEKQTxxq96wadfvCz9cvpBuBSVcEbCWYuQAFmCGSgrbSojx0qW9KmfxV5u/zP1+MTEqI6vlCNFhLWAAFsdEl1sIvIAgdTn98muL1mzZtXe1VYCtv+xbDWsBg2OR/0OIKaaB9ooHsqcsoXt8h4Uwu+P+xyfD/zwqOIatHw7YFQJvVthSUICVDxs9Kae0rOJwS2vKyk8fgbmwhq/V7fKwLYSLgWLoPLz9s59//c3mwjKMPTZ+5hswl6ceWiQ4REQIF2OE5QOHCo9NfCVndoPHW3vxHPgOxmAOzOVr0BUlhIuB0Hn2+5937p/77hcLgsMyfF7wwbKFMAZz+Fx0RQoJDsvvL8ndYYZlM8y+8/HKbXbDbKgW8ftd+qQJLQcglFZCaE3qFn81wogEh1mYE/F74bb64RnFAm/DDwy6mPdrkJLzKGfLpsj+vwIMACSZzfDJFmOPAAAAAElFTkSuQmCC",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgEE4igAAAgKSURBVHjazFoJbFRVFP3L/OlMoQXKImAFm0JbFtFKShEQI6UsggmkGKghIKTIIgZUohIDKEuLaFTQiIKyKKghqSyyF0pZbcHQsJVpoRkKbYFAW+iU2f78/313+qY+hvc78+dPkZfcMJ377rn3/Pve/fe9gVUUhfENY5eBjNbhvlnI6Bmh+KT5NzBhGigg9sb5vX3NpohhRqMwgOe4eJ7nurIsGwl69MDskiRXS7Jc7naLpx1OV/4z/V67CKpw+Gf1ZiQv9/vWyc8lTkMEpgiCIVGLrSh6ShGhX4ovlG5Mz5jToCcjXKhPIGvyOOG2JW/OywNfuBAd1WqFVhIwwAZsAQOwAPNxZoQ9f+yPHnHdn94QYRSeZ8I4XG7xnLWianq/oZOuBrvkQs0IZz27a2RCfLeCcJOAAZiAjXyM0hqblslcRfHuiV07d9zKcVwU00IDsJGPLeBLS3zBLi3O8nfuyLjuXbegKtTsOrY4Ldz22u2GPFue4bL7MlfrqWXh+xhDjNLL2EtOj0r3jI8Z70kyJcnN4aC4RGtF9eSklzIOoD/lQEsrGCLs/m3f9nxlUP98VE6j1QDz6/P5xZWLI06KJ3lGwIWdB2tfZEgkJB4oVwwzWBgsLY1d6hoWPUxSw0Tl2na8sHjYiAnvlKntmaD3SHxcrDG1f9/1aiScspOZYZ1hGm4dHnmSRyRglk+i/ITQwVywAVvAoA3kMyolufc6iEHv0uKuntkxu1ts5xyacY2nhh1TNsZcpBTxjBl2K4AQ2eD8MiITWXFDmULiYJhUNlXak7DH0d7QnvrUr1feWtgjZdxa2hILKiOzp01o1/mp9gtoOrtsZ0eXjjYXMYhEa/RFKyxmLCaCmBF/NhF633xkCxiABZg0XxADxBJq1eLnz8ycYhSE9jTl3Iq5EWeYM/wjwUPQvj1CEwHP8SMFWIBJbX9QDBALzrNmIhGdOsZkqm3sTfWbhKbgTcSSMhBLiiYcMc9I2CMswARsmk8Uy5s4r5qIsFt/WN6nVaQ5iaZcVLkoQjEpjbD++4IM+hFUQniCDMYBTMCm+USxJP6+bkVfFWRVIny/Pj3TaIpiezF3SjzFN619AaNwRLABSwzhnSOWGxLABh80sz5J8a+qLS81IsY20a1TaIrc2lzhoX3A+2Ui6FcxkRn+4f3j9UEZbdtEDcCUgycSaTbF0RQnGk7wTY79S2xIbSvGIDCPNxynPnUckyYiBpPJ2JmmKBVLuSYCXIA9EWxWWAIPYZeJZdS4cEwGTXtEMBhMNEWthHonVieB5gix2Aft/NIYk6Y9wqHmMGzH4HANHBOn6T3i8UgO2vcxfIzibTdI0Tv88Lw+NMTUHBHF6XJTz9CJQqLs7ZdkLHoIkbbyf71YgpBAbdtxTIoWInK9reEGTTGk9RCpqfGTCDJ6skE2kxL2QRk4JlkLEc+dmrorNEVGTIbo7VxFgowUQlYU4oxCnFMAe0LMBJFmgmPyaCEinrt45TRNkRyZLA8SBkleMj5CMvGclCBJMIQdJgAC2OCDZoZjErUQcees3njK5RZtNOWy2GUu1sk2nidcOAiPX2aUAHvC/1yCBDDh1Khyw2KDmLBF8Bkpt1bWXSm/fpKmhOPp9OjpIhyKGCcWHxkPpQj4b2oPQcJnj7AAMy06jbo/IBaISWtGwF3Dj5tzf1PIIyQx1nRf40phUiTmQWMQTaTI/ePx2wPEPvAF7xWEAViAqXIRoUAsEJPWze6tdn8dOF5y63ZNCbXv4SKVvYl7HSkKItPQGMwjpFx+4he8V5AtYAAWYNJ8QQwQC0bQfLASq2/duTvjveXL0fqkvog6GDooR3sdtWdFZomsjW18Xj5SdhXBwYOADdgW9CpwAJbK3nDMWpC9AmJRW1aBiABww8GCwkt/7s5fpzbJzJmZ9XHrnYfiDtkHSgMlph59CSXC9y8phA7m5sXl2cFWLRMwwPe+w6cuYvqKngs6uFp4tvDApmUv9ktKC1RZSxwl3I66HYaD9QcNFtHC+RpAaDuShCR5RPQIz7h24zy9zb3lQFjFF0oPpY6Yuhh9vIaJ6Lqgg6y1jY5q1bPowOZV8XGxyY+jQUQVqjh15NSP6m0P4HLuntom13KJDQD1CPDa0NezFl2ylBe2NInLZdYi8IV8WvGCDJi9YC+JoXDW3qm5V5aSPmUJSnlBS5EA7P5pk5eAL/Cp1pLouY2HinEXtdLlo96Y+3ll9W1LuEkA5tjMeauQD/h9pNkqpYdIU2bq7tvKM976cFFN3f2qcJEALMBEmbiqJROhEmkig5ZAycz3s5c4nK56vSQQhg2wADMUEqESYXCTcWfX/qNnVn6zcSVaCmKoJMAWYeQAFmCqNYUtRYTBTcftnNWbDv68dedqVMZlrQBgA7aAAVgYk3ncRBTcNd189+NVuXlHi7ZpBTh07PQ2sAUMjKX8H0R8ZKB7qhqbOX8tWuNHNJTZI2MmzYPfPKowhq5rDL1E4M0q4w7qRnrGnBxrRdWFQDYVN25ehLlgg21lvXHoJoLJwInjHrz9M9/+5LPmyjLoJmYt/BTm4tZDCkcMYSGCyXjL8tnzlpJZH+QsfmB31PnPge9AB3NgLrZhnigimAyUzrs79xX8s+zLn7LJsgyfs7/esBJ0MAfPZZ5IImRZ/mrt1iO+suwrs1989+thvWVWbYT9fhc9aQUdB6CUVkNpje3SqQPDMgpZZmFO2O+FW+o/niEsyDb8qt7Rd78GLTmucrp80vz/K8AAYAEv1AHM/GwAAAAASUVORK5CYII=",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ppb+WxIAAAhcSURBVHjazFoLcFTVGb6vvdnNY0lEEJOIxhCSKTEFKSC1osIgjqIyA62mZfAxWJU+tC3TVh2lHSGhtNOKOqK0ii+0QwcfFB+IAsKIITpJhUBDHhMiSSBCTMgm2d377PnungubnXOT3L0b6rlzmM2e83/n+87/n/+ecxbeNE3OLvLFV3Fui3KiivNSkhmTNb7EpagQQvzxg++VBvxpc2XZN1MUhEJRFHJ5nk9HO5mwAV03OnTDaFYUtTocie66pOymOjSlYnzeq0d2bn02c9oVxXcTAct8PqnYja2qakeJoFdqDx3dNH/xij4vHhGSnYHlSxf5Out3rrjmqqmHglkZa9yKQIENbIEBLGCeT4/wB/f+c1LBpXkvpsm+73IpLFFF/bKltf2esjl3NI005JL1iNBSs23B5MKJe1ItAgWYwCZj3OiWm5vOQmvt9ttzJ4zbLAhCFjdKBdhkjNcwlht+Iw0tof6zrQsKLs19jWShIeM40hASure3S727O0WloV/QehTeSo/ZsilPzjCC11+k5yzM0/yTs4yhcAgvtaW1Y2nJ7MU7yJ/GcKE1EiH8B1ueLrr2+9N3kXQadAIM7f1abK84LEcOnBFFXuREMpk8TyrHx4jhMQ1OJ5x0U+f8s8boeY9MUbLmjNedMEm6Du2rqp17w5KfNTitmRGvkcKCfHnW9NK/O4kwIjp37JdfpDUv+jSgVw+IASHAofpRef/gSttQ0Rc2sAUGq5Axs2ZM+85GcPAaWkLT528/MDF/QiXLWPtG4Rt/tM+v1vSLMi9zPl4iniCVeASeEPjB82QQj8Az8IjOaZxqapxiKpzvygy9aMs1EekCmTnrX7WdfHjSjEUbWCE2Io88cPeSnAkXjV3J9ERY5xuX7PNrNQOin0/j0kiVUQUI8llVSnjs79FHpjawBQawgMkaCxzAJdmsJT50X/ky2ecby5yllTWy+p9+MY2PkYonb60RUuER1udBoixBMgcsYDK3P4QDuIBTMkLSxo+7oNxpYfe80eaLhZPMSSSkUAU8vPWvFVr2QrdimD7xfWw7nzUZMgdMYLPGJFx+DE5uhfCbn1s9JSM9UMJqbF9TJ5O5tNZEooh48o4Lk66fwWJIJZjAZtkQLsVvbFxTapm7ECKWTSmax2oYONgjRKp7RSluYbsRwRITS9cxQcDGGCybKSWF1zuFl5MQeUwwcwaroXtbmyTRWLdFkJekKxGDwo3nz4nB+iEVY7D6Z4/JmgluroSkB/wFrIa+z7rE2DyeWwfJiEhcO2fXD3n69p9mzjrl5EqI5PfLE5hv0qZ+gach4TacRhJmwFaaB5i8KCfJ1RrxSZKfuW3oUflE8l49kvg3xmCeX2KcXK0RMut8yo7BqSqUk+DqPaJpepjpqmyfaSbs30wPx24WFsZww2koIWYkqjDP0PKkDAO7WOuheyevBRgGxQS2XJjO3LZTTqYbIUZvqO84qyFz9lidyohtzenjRYT92LiZsy9kbocpJ8ONEO1UV3cjqyHn1nxNw+6V1tgsJicmdkaJCbDxgJ1zW77G6k85aW6EqF/WNVYzc3lZtuGfGdQ1sgXHVtwW4zbM4sPJ3tYDE9gYg2VDOaluhCiV6zftjypqiNWY92iponKKdZ7QaHUjJl6EbQ8sYOY+Uqo43LCEwAncXHmkuaWtu7H5q09ZjTieZv/kEhWHIpXURDHx6ydxLcT3OSdCsQ5YwAxeyz76ggs4ufUIXNv3/MtbXzfjj5BxZeK6aYpvaoYetUhECRnVqhoNNyvkTIP5WbNOh7H+sAUGsIDpcBFhggs4uV3sVrb79459R052dh1hGgZEs+hfP4hIU9P1iEUmapFSDGWQqPjnLHlDoQKiHGyBASxgssYCB3ABp2QOVmrHyVOn7/3V6tUkPpkvImlsmln83nXh4NJcNWKGuYgRIxcTpcQIx1fynd2OvrCBbfG710WA5bA2wvevrFgDLk5hNZwQAPd9uKfq8Jvbd210BPCL3GVPfS9a+PbVYWF6QA8bEBSrYYgzI1a1Ptvfk4q+l791dRi2Tp5Awdjvf7y/joaV6eWCLpPUy6p2vPTElWUl84bLSOH6XqHn3Xapd9fXotLUJ+jdmrUBFHMkU56UaQTnkkRxc54WKAkaw2HVHjr60awb7nycfDxGhXi6oIPXsoNZGUUHdry8rrAgf9r52CCSDFU7a8Gdv+sN9eNyrsdpkbu5xAZALwE8NueW5Y8drm+uGm0R/21oOYCxyJgtGHuoK1O3l9jYFnxzqqunYcb8ZauIy/eMlghgT5+3dBXGwphOWxIvt/HIGKfJVrr5xh/+/E9tHZ31qRYBzIXlD64jY+D3kSGzlBchZz3TfSbUvPiu3z7W1X2mPVUigAVM4okmN55IVshZMSQEjtz364pV4Ui016sIghECFjCTEZGsEI5u3E5t++CTz9c+uWktCQU1WRGwJRiVwAKm06ZwtIRYL11SOyvXv/ThC5vfWW/iaOf2PEJsYAsMYFFM7nwLwQsIW5cTv/j9uq07PzmwxS3AR3urt8AWGBTL/H8IscX04zp4YflDG0iM73aRZnfffMeD+M2jnWJ4Ovx7FYI3K0IKB7Dj8xevqGxpbT80nE3r8RN16Asbamt45eFZCBWDw1AP3v7lP330j0OlZbTdvvzhP6Av3XroqeCQEiFUjJWWaw7WH7n/N5WP9w+EuxP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(t){this._sketchViewModel.removeEntityByName(t)}_clear(t){t!=null&&t===!0&&(this._removeEntityByName(this._measureEntityName),this._sketchViewModel!=null&&(t?this._sketchViewModel.sketchClear():this._sketchViewModel.sketchInit())),this._measureTempPoints=[],this._altitudeDynamicLabel=void 0,this._tooltipRemove()}_toColor(t,r,i,n){return new Cesium.Color(t/255,r/255,i/255,n)}_cartesianToGeography(t){let i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t),n=Cesium.Math.toDegrees(i.latitude),o=Cesium.Math.toDegrees(i.longitude),s=i.height;return{lon:o,lat:n,hei:s}}_createPoint(t,r){let i=this,n=new Cesium.Entity({name:i._measureEntityName,position:t,billboard:{image:i._iconGreen,horizontalOrigin:Cesium.HorizontalOrigin.center,verticalOrigin:Cesium.VerticalOrigin.bottom,scale:.5,pixelOffset:new Cesium.Cartesian2(0,-11),disableDepthTestDistance:Number.POSITIVE_INFINITY}});return r&&(n.label={text:r,font:"30px SimHei",scale:.5,fillColor:this._toColor(255,255,255,1),outlineColor:this._toColor(14,30,79,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:!0,backgroundColor:i._toColor(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,-28)}),this._entities.add(n),n}_createLabel(t,r){let i=this,n=new Cesium.Entity({name:i._measureEntityName,position:t,label:{text:r,font:"30px SimHei",scale:.5,fillColor:this._toColor(255,255,255,1),outlineColor:this._toColor(14,30,79,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:!0,backgroundColor:i._toColor(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,-14)}});this._entities.add(n)}_createAltitudeDynamicLabel(){let t=this;this._altitudeDynamicLabel=new Cesium.Entity({name:t._measureEntityName,position:new Cesium.CallbackProperty(function(){return t._altitudeLabelPosition},!1),label:{text:new Cesium.CallbackProperty(function(){return t._altitudeLabelText},!1),font:"12px sans-serif",fillColor:this._toColor(255,255,255,1),outlineColor:this._toColor(0,154,94,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:this._toColor(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}}),this._entities.add(this._altitudeDynamicLabel)}_measureDistance(t){let r=0;for(let i=0;i<t.length-1;i++){let n=Cesium.Cartographic.fromCartesian(t[i]),o=Cesium.Cartographic.fromCartesian(t[i+1]),s=new Cesium.EllipsoidGeodesic;s.setEndPoints(n,o);let l=s.surfaceDistance;l=Math.sqrt(Math.pow(l,2)+Math.pow(o.height-n.height,2)),r=r+l}return r<1e3?r.toFixed(2)+"\u7C73":(r/1e3).toFixed(2)+"\u516C\u91CC"}_measureSpaceDistance(t){let r=0;for(let i=0;i<t.length-1;i++){let n=t[i],o=t[i+1],s=Math.abs(n.x-o.x),l=Math.abs(n.y-o.y),a=Math.abs(n.z-o.z),c=Math.sqrt(Math.pow(s,2)+Math.pow(l,2)+Math.pow(a,2));r=r+c}return r<1e3?r.toFixed(2)+"\u7C73":(r/1e3).toFixed(2)+"\u516C\u91CC"}_measureAreaBearing(t,r){let i=Math.PI/180,n=180/Math.PI,o=t.lat*i,s=t.lon*i,l=r.lat*i,a=r.lon*i,c=-Math.atan2(Math.sin(s-a)*Math.cos(l),Math.cos(o)*Math.sin(l)-Math.sin(o)*Math.cos(l)*Math.cos(s-a));return c<0&&(c+=Math.PI*2),c=c*n,c}_calculateAreaAngle(t,r,i){let n=this._measureAreaBearing(r,t),o=this._measureAreaBearing(r,i),s=n-o;return s<0&&(s+=360),s}_calculateDistance(t,r){let i=Cesium.Cartographic.fromCartesian(t),n=Cesium.Cartographic.fromCartesian(r),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,n);let s=o.surfaceDistance;return s=Math.sqrt(Math.pow(s,2)+Math.pow(n.height-i.height,2)),s}_measureArea(t,r){let i=this,n=0;for(let o=0;o<t.length-2;o++){let s=(o+1)%t.length,l=(o+2)%t.length,a=i._calculateAreaAngle(t[o],t[s],t[l]),c=i._calculateDistance(r[o],r[s]),u=i._calculateDistance(r[s],r[l]);n+=c*u*Math.abs(Math.sin(a))}return n}_calculatePolylineAltitudeHeight(t){if(t===void 0||t.length<2)return-1;let r=Cesium.Cartographic.fromCartesian(t[0]),n=Cesium.Cartographic.fromCartesian(t[1]).height-r.height;return Math.abs(n).toFixed(2)+"\u7C73"}_setMousePointerStyle(){document.querySelector("body").style.cursor="crosshair"}_initMousePointerStyle(){document.querySelector("body").style.cursor="default"}}Object.assign(v0.prototype,{_tooltipInit:function(e){let t=this;this._tooltipId="tooltipJt";let r=document.getElementById(this._tooltipId);if(r===null){r=document.createElement("div"),r.id=this._tooltipId,document.body.appendChild(r);let i="";i+="top: 30px;",i+="left: 30px;",i+="position: absolute;",i+="display: flex;",i+="align-items: center;",i+="width: 12x0px;",i+="height: auto;",i+="background-color: rgba(0, 0, 0, 0.65);",i+="border-radius: 5px;",i+="color: rgb(255, 255, 255);",i+="font-size: 12px;",i+="font-family: 'Alimama_ShuHeiTi_Bold';",i+="padding: 8px;",i+="border:solid 1px rgb(255,0,0);",r.setAttribute("style",i)}e!=null&&(r.innerHTML=e),document.onmousemove=function(i){r!==null&&(i.clientX<100||i.clientX>t._canvasWidth-100||i.clientY<100||i.clientY>t._canvasHeight-100?r.style.display="none":(r.style.display="flex",r.style.left=i.clientX+10+"px",r.style.top=i.clientY-r.offsetHeight/2+"px"))}},_tooltipRemove:function(){let e=document.getElementById(this._tooltipId);e!=null&&document.body.removeChild(e)},_tooltipSetText:function(e){let t=document.getElementById(this._tooltipId);t!=null&&(t.innerHTML=e)}});Object.assign(v0.prototype,{clear:function(){this._clear(!0)},measureLength:function(){let e=this;this._tempEntitys=[],this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u6D4B\u91CF"),this._sketchViewModel.sketchTools(jr.SketchType.Line,{onAdded:function(t,r){if(t.length===1)e._createPoint(t[0],"\u8D77\u70B9");else{let i=e._measureDistance(t),n=[t[t.length-2],t[t.length-1]];i+=" +"+e._measureDistance(n),e._tempEntitys.push(e._createPoint(t[t.length-1],i))}},onUndo:function(){e._viewer.entities.remove(e._tempEntitys[e._tempEntitys.length-1]),e._tempEntitys.pop()},onMoving:function(t,r){e._tooltipSetText("\u53F3\u952E\u5355\u51FB\u56DE\u9000<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236")},onComplete:function(t,r){e._initMousePointerStyle(),e._tooltipRemove()}})},measureSpatialLength:function(){let e=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u6D4B\u91CF"),this._tempEntitys=[],this._sketchViewModel.sketchTools(jr.SketchType.Spatial,{onAdded:function(t,r){if(t.length===1)e._createPoint(t[0],"\u8D77\u70B9");else{let i=e._measureSpaceDistance(t);e._tempEntitys.push(e._createPoint(t[t.length-1],i))}},onUndo:function(){e._viewer.entities.remove(e._tempEntitys[e._tempEntitys.length-1]),e._tempEntitys.pop()},onMoving:function(t,r){e._tooltipSetText("\u53F3\u952E\u5355\u51FB\u56DE\u9000<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236")},onComplete:function(t,r){e._initMousePointerStyle(),e._tooltipRemove()}})},measureArea:function(){let e=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u6D4B\u91CF"),this._sketchViewModel.sketchTools(jr.SketchType.Polygon,{onAdded:function(t,r){if(e._measureTempPoints.push(e._cartesianToGeography(t[t.length-1])),t.length===1)e._areaLabelEntity===void 0?(e._areaLabel="\u8D77\u70B9",e._areaLabelEntity=e._createPoint(t[0],new Cesium.CallbackProperty(function(){return e._areaLabel},!1))):e._areaLabel="\u8D77\u70B9";else if(t.length>=3){let i=e._measureArea(e._measureTempPoints,t);i>1e5?e._areaLabel=(i/1e5).toFixed(2)+"km\xB2":e._areaLabel=i.toFixed(2)+"m\xB2"}},onUndo:function(){e._measureTempPoints.pop(),e._measureTempPoints.length===1&&(e._areaLabel="\u8D77\u70B9")},onMoving:function(t,r){e._tooltipSetText("\u53F3\u952E\u5355\u51FB\u56DE\u9000<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236")},onComplete:function(t,r){e._initMousePointerStyle(),e._tooltipRemove(),e._areaLabelEntity.label.text=e._areaLabel,e._areaLabelEntity=void 0}})},measureHeight:function(){let e=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u6D4B\u91CF"),this._sketchViewModel.sketchTools(jr.SketchType.Height,{onAdded:function(t){e._tooltipSetText("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u6D4B\u91CF")},onMoving:function(t,r){let i=e._calculatePolylineAltitudeHeight(t);e._altitudeLabelPosition=r,e._altitudeLabelText=i,e._altitudeDynamicLabel===void 0&&e._createAltitudeDynamicLabel()},onComplete:function(t,r){let i=e._calculatePolylineAltitudeHeight(t);e._entities.remove(e._altitudeDynamicLabel),e._createLabel(r,i),e._initMousePointerStyle(),e._tooltipRemove()}})},measureTriangle:function(){let e=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u6D4B\u91CF"),this._sketchViewModel.sketchTools(jr.SketchType.Triangle,{onMoving:function(t){e._tooltipSetText("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u6D4B\u91CF")},onComplete:function(t){e._initMousePointerStyle(),e._tooltipRemove();let r=[t[0],t[1]],i=e._measureSpaceDistance(r),n=[t[1],t[2]],o=e._measureSpaceDistance(n),s=[t[2],t[0]],l=e._calculatePolylineAltitudeHeight(s);e._createLabel(t[0],"\u659C\u8DDD:"+i),e._createLabel(t[1],"\u5E73\u8DDD:"+o),e._createLabel(t[2],"\u9AD8\u5EA6:"+l)}})}});Object.assign(v0.prototype,{queryByPolygon:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u533A\u57DF"),this._sketchViewModel.sketchTools(jr.SketchType.Polygon,{isEdit:!0,onMoving:function(r,i){t._tooltipSetText("\u53F3\u952E\u5355\u51FB\u56DE\u9000<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236\u5F00\u59CB\u67E5\u8BE2")},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove();let n;for(let o=0;o<i.length;o++){let s=i[o];n===void 0?n=s.lng+","+s.lat:n+=","+s.lng+","+s.lat}n+=","+i[0].lng+","+i[0].lat,e&&e(n)}})},queryByPoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("\u70B9\u51FB\u4F4D\u7F6E\u8FDB\u884C\u67E5\u8BE2"),this._sketchViewModel.sketchTools(jr.SketchType.Point,{onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove();let n=i.lng+","+i.lat;e&&e(n)}})},queryByMultiplePoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("\u70B9\u51FB\u4F4D\u7F6E\u7ED8\u5236<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"),this._tempEntitys=[],this._sketchViewModel.sketchTools(jr.SketchType.MultiplePoint,{onAdded:function(r,i){let n=i.lng.toFixed(6)+","+i.lat.toFixed(6);t._tempEntitys.push(t._createPoint(r,n))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove();let n=[];for(let o=0;o<i.length;o++)n.push(i[o].lng),n.push(i[o].lat);e&&e(n)}})},queryByLine:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u7EBF"),this._sketchViewModel.sketchTools(jr.SketchType.Line,{isEdit:!0,onAdded:function(r,i){},onMoving:function(r,i){t._tooltipSetText("\u53F3\u952E\u5355\u51FB\u56DE\u9000<br>\u5DE6\u952E\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236\u5F00\u59CB\u67E5\u8BE2")},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove();let n;for(let o=0;o<i.length;o++){let s=i[o];n===void 0?n=s.lng+","+s.lat:n+=","+s.lng+","+s.lat}e&&e(n)}})},queryByCircle:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u5706"),this._sketchViewModel.sketchTools(jr.SketchType.Circle,{isEdit:!0,onAdded:function(r){t._tooltipInit("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u7ED8\u5236,\u5F00\u59CB\u67E5\u8BE2")},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove(),e&&e(r.lng+","+r.lat,i)}})},queryByRectangle:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u77E9\u5F62"),this._sketchViewModel.sketchTools(jr.SketchType.Rectangle,{isEdit:!0,onAdded:function(r){t._tooltipInit("\u518D\u6B21\u5355\u51FB\u7ED3\u675F\u7ED8\u5236,\u5F00\u59CB\u67E5\u8BE2")},onComplete:function(r){t._initMousePointerStyle(),t._tooltipRemove();let i;for(let n=0;n<r.length;n++){let o=r[n];i===void 0?i=o.lng+","+o.lat:i+=","+o.lng+","+o.lat}e&&e(i)}})}});Object.assign(v0.prototype,{drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,jr.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,jr.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,jr.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,jr.SketchType.DrawPolygon,t)}});Object.assign(v0.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}});function VQ(e,t){return function(){return e.apply(t,arguments)}}const{toString:GVe}=Object.prototype,{getPrototypeOf:j4}=Object,A3=(e=>t=>{const r=GVe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fu=e=>(e=e.toLowerCase(),t=>A3(t)===e),M3=e=>t=>typeof t===e,{isArray:b0}=Array,Qw=M3("undefined");function qVe(e){return e!==null&&!Qw(e)&&e.constructor!==null&&!Qw(e.constructor)&&Jl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BQ=fu("ArrayBuffer");function YVe(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BQ(e.buffer),t}const KVe=M3("string"),Jl=M3("function"),UQ=M3("number"),I3=e=>e!==null&&typeof e=="object",ZVe=e=>e===!0||e===!1,FC=e=>{if(A3(e)!=="object")return!1;const t=j4(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},QVe=fu("Date"),JVe=fu("File"),XVe=fu("Blob"),e9e=fu("FileList"),t9e=e=>I3(e)&&Jl(e.pipe),r9e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jl(e.append)&&((t=A3(e))==="formdata"||t==="object"&&Jl(e.toString)&&e.toString()==="[object FormData]"))},i9e=fu("URLSearchParams"),n9e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J1(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let i,n;if(typeof e!="object"&&(e=[e]),b0(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let l;for(i=0;i<s;i++)l=o[i],t.call(null,e[l],l,e)}}function WQ(e,t){t=t.toLowerCase();const r=Object.keys(e);let i=r.length,n;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const HQ=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),GQ=e=>!Qw(e)&&e!==HQ;function f$(){const{caseless:e}=GQ(this)&&this||{},t={},r=(i,n)=>{const o=e&&WQ(t,n)||n;FC(t[o])&&FC(i)?t[o]=f$(t[o],i):FC(i)?t[o]=f$({},i):b0(i)?t[o]=i.slice():t[o]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&J1(arguments[i],r);return t}const o9e=(e,t,r,{allOwnKeys:i}={})=>(J1(t,(n,o)=>{r&&Jl(n)?e[o]=VQ(n,r):e[o]=n},{allOwnKeys:i}),e),s9e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),l9e=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},a9e=(e,t,r,i)=>{let n,o,s;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)s=n[o],(!i||i(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&j4(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},c9e=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return i!==-1&&i===r},u9e=e=>{if(!e)return null;if(b0(e))return e;let t=e.length;if(!UQ(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},d9e=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&j4(Uint8Array)),p9e=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=i.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},h9e=(e,t)=>{let r;const i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},f9e=fu("HTMLFormElement"),m9e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,n){return i.toUpperCase()+n}),LV=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),g9e=fu("RegExp"),qQ=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};J1(r,(n,o)=>{let s;(s=t(n,o,e))!==!1&&(i[o]=s||n)}),Object.defineProperties(e,i)},y9e=e=>{qQ(e,(t,r)=>{if(Jl(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(!!Jl(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},v9e=(e,t)=>{const r={},i=n=>{n.forEach(o=>{r[o]=!0})};return b0(e)?i(e):i(String(e).split(t)),r},b9e=()=>{},_9e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),rM="abcdefghijklmnopqrstuvwxyz",RV="0123456789",YQ={DIGIT:RV,ALPHA:rM,ALPHA_DIGIT:rM+rM.toUpperCase()+RV},w9e=(e=16,t=YQ.ALPHA_DIGIT)=>{let r="";const{length:i}=t;for(;e--;)r+=t[Math.random()*i|0];return r};function x9e(e){return!!(e&&Jl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const C9e=e=>{const t=new Array(10),r=(i,n)=>{if(I3(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;const o=b0(i)?[]:{};return J1(i,(s,l)=>{const a=r(s,n+1);!Qw(a)&&(o[l]=a)}),t[n]=void 0,o}}return i};return r(e,0)},k9e=fu("AsyncFunction"),S9e=e=>e&&(I3(e)||Jl(e))&&Jl(e.then)&&Jl(e.catch);var vt={isArray:b0,isArrayBuffer:BQ,isBuffer:qVe,isFormData:r9e,isArrayBufferView:YVe,isString:KVe,isNumber:UQ,isBoolean:ZVe,isObject:I3,isPlainObject:FC,isUndefined:Qw,isDate:QVe,isFile:JVe,isBlob:XVe,isRegExp:g9e,isFunction:Jl,isStream:t9e,isURLSearchParams:i9e,isTypedArray:d9e,isFileList:e9e,forEach:J1,merge:f$,extend:o9e,trim:n9e,stripBOM:s9e,inherits:l9e,toFlatObject:a9e,kindOf:A3,kindOfTest:fu,endsWith:c9e,toArray:u9e,forEachEntry:p9e,matchAll:h9e,isHTMLForm:f9e,hasOwnProperty:LV,hasOwnProp:LV,reduceDescriptors:qQ,freezeMethods:y9e,toObjectSet:v9e,toCamelCase:m9e,noop:b9e,toFiniteNumber:_9e,findKey:WQ,global:HQ,isContextDefined:GQ,ALPHABET:YQ,generateString:w9e,isSpecCompliantForm:x9e,toJSONObject:C9e,isAsyncFn:k9e,isThenable:S9e};function di(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n)}vt.inherits(di,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const KQ=di.prototype,ZQ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ZQ[e]={value:e}});Object.defineProperties(di,ZQ);Object.defineProperty(KQ,"isAxiosError",{value:!0});di.from=(e,t,r,i,n,o)=>{const s=Object.create(KQ);return vt.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),di.call(s,e.message,t,r,i,n),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var E9e=null;function m$(e){return vt.isPlainObject(e)||vt.isArray(e)}function QQ(e){return vt.endsWith(e,"[]")?e.slice(0,-2):e}function DV(e,t,r){return e?e.concat(t).map(function(n,o){return n=QQ(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function T9e(e){return vt.isArray(e)&&!e.some(m$)}const A9e=vt.toFlatObject(vt,{},null,function(t){return/^is[A-Z]/.test(t)});function P3(e,t,r){if(!vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=vt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,_){return!vt.isUndefined(_[v])});const i=r.metaTokens,n=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob!="undefined"&&Blob)&&vt.isSpecCompliantForm(t);if(!vt.isFunction(n))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(vt.isDate(y))return y.toISOString();if(!a&&vt.isBlob(y))throw new di("Blob is not supported. Use a Buffer instead.");return vt.isArrayBuffer(y)||vt.isTypedArray(y)?a&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,v,_){let x=y;if(y&&!_&&typeof y=="object"){if(vt.endsWith(v,"{}"))v=i?v:v.slice(0,-2),y=JSON.stringify(y);else if(vt.isArray(y)&&T9e(y)||(vt.isFileList(y)||vt.endsWith(v,"[]"))&&(x=vt.toArray(y)))return v=QQ(v),x.forEach(function(C,E){!(vt.isUndefined(C)||C===null)&&t.append(s===!0?DV([v],E,o):s===null?v:v+"[]",c(C))}),!1}return m$(y)?!0:(t.append(DV(_,v,o),c(y)),!1)}const p=[],h=Object.assign(A9e,{defaultVisitor:u,convertValue:c,isVisitable:m$});function m(y,v){if(!vt.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(y),vt.forEach(y,function(x,S){(!(vt.isUndefined(x)||x===null)&&n.call(t,x,vt.isString(S)?S.trim():S,v,h))===!0&&m(x,v?v.concat(S):[S])}),p.pop()}}if(!vt.isObject(e))throw new TypeError("data must be an object");return m(e),t}function NV(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function V4(e,t){this._pairs=[],e&&P3(e,this,t)}const JQ=V4.prototype;JQ.append=function(t,r){this._pairs.push([t,r])};JQ.toString=function(t){const r=t?function(i){return t.call(this,i,NV)}:NV;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function M9e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function XQ(e,t,r){if(!t)return e;const i=r&&r.encode||M9e,n=r&&r.serialize;let o;if(n?o=n(t,r):o=vt.isURLSearchParams(t)?t.toString():new V4(t,r).toString(i),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class I9e{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){vt.forEach(this.handlers,function(i){i!==null&&t(i)})}}var FV=I9e,eJ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P9e=typeof URLSearchParams!="undefined"?URLSearchParams:V4,$9e=typeof FormData!="undefined"?FormData:null,O9e=typeof Blob!="undefined"?Blob:null;const L9e=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),R9e=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var Ja={isBrowser:!0,classes:{URLSearchParams:P9e,FormData:$9e,Blob:O9e},isStandardBrowserEnv:L9e,isStandardBrowserWebWorkerEnv:R9e,protocols:["http","https","file","blob","url","data"]};function D9e(e,t){return P3(e,new Ja.classes.URLSearchParams,Object.assign({visitor:function(r,i,n,o){return Ja.isNode&&vt.isBuffer(r)?(this.append(i,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function N9e(e){return vt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function F9e(e){const t={},r=Object.keys(e);let i;const n=r.length;let o;for(i=0;i<n;i++)o=r[i],t[o]=e[o];return t}function tJ(e){function t(r,i,n,o){let s=r[o++];const l=Number.isFinite(+s),a=o>=r.length;return s=!s&&vt.isArray(n)?n.length:s,a?(vt.hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!l):((!n[s]||!vt.isObject(n[s]))&&(n[s]=[]),t(r,i,n[s],o)&&vt.isArray(n[s])&&(n[s]=F9e(n[s])),!l)}if(vt.isFormData(e)&&vt.isFunction(e.entries)){const r={};return vt.forEachEntry(e,(i,n)=>{t(N9e(i),n,r,0)}),r}return null}function z9e(e,t,r){if(vt.isString(e))try{return(t||JSON.parse)(e),vt.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}const B4={transitional:eJ,adapter:Ja.isNode?"http":"xhr",transformRequest:[function(t,r){const i=r.getContentType()||"",n=i.indexOf("application/json")>-1,o=vt.isObject(t);if(o&&vt.isHTMLForm(t)&&(t=new FormData(t)),vt.isFormData(t))return n&&n?JSON.stringify(tJ(t)):t;if(vt.isArrayBuffer(t)||vt.isBuffer(t)||vt.isStream(t)||vt.isFile(t)||vt.isBlob(t))return t;if(vt.isArrayBufferView(t))return t.buffer;if(vt.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return D9e(t,this.formSerializer).toString();if((l=vt.isFileList(t))||i.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return P3(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),z9e(t)):t}],transformResponse:[function(t){const r=this.transitional||B4.transitional,i=r&&r.forcedJSONParsing,n=this.responseType==="json";if(t&&vt.isString(t)&&(i&&!this.responseType||n)){const s=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?di.from(l,di.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ja.classes.FormData,Blob:Ja.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vt.forEach(["delete","get","head","post","put","patch"],e=>{B4.headers[e]={}});var U4=B4;const j9e=vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var V9e=e=>{const t={};let r,i,n;return e&&e.split(`
- `).forEach(function(s){n=s.indexOf(":"),r=s.substring(0,n).trim().toLowerCase(),i=s.substring(n+1).trim(),!(!r||t[r]&&j9e[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t};const zV=Symbol("internals");function ub(e){return e&&String(e).trim().toLowerCase()}function zC(e){return e===!1||e==null?e:vt.isArray(e)?e.map(zC):String(e)}function B9e(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}const U9e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iM(e,t,r,i,n){if(vt.isFunction(i))return i.call(this,t,r);if(n&&(t=r),!!vt.isString(t)){if(vt.isString(i))return t.indexOf(i)!==-1;if(vt.isRegExp(i))return i.test(t)}}function W9e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function H9e(e,t){const r=vt.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(n,o,s){return this[i].call(this,t,n,o,s)},configurable:!0})})}class $3{constructor(t){t&&this.set(t)}set(t,r,i){const n=this;function o(l,a,c){const u=ub(a);if(!u)throw new Error("header name must be a non-empty string");const p=vt.findKey(n,u);(!p||n[p]===void 0||c===!0||c===void 0&&n[p]!==!1)&&(n[p||a]=zC(l))}const s=(l,a)=>vt.forEach(l,(c,u)=>o(c,u,a));return vt.isPlainObject(t)||t instanceof this.constructor?s(t,r):vt.isString(t)&&(t=t.trim())&&!U9e(t)?s(V9e(t),r):t!=null&&o(r,t,i),this}get(t,r){if(t=ub(t),t){const i=vt.findKey(this,t);if(i){const n=this[i];if(!r)return n;if(r===!0)return B9e(n);if(vt.isFunction(r))return r.call(this,n,i);if(vt.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ub(t),t){const i=vt.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||iM(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let n=!1;function o(s){if(s=ub(s),s){const l=vt.findKey(i,s);l&&(!r||iM(i,i[l],l,r))&&(delete i[l],n=!0)}}return vt.isArray(t)?t.forEach(o):o(t),n}clear(t){const r=Object.keys(this);let i=r.length,n=!1;for(;i--;){const o=r[i];(!t||iM(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){const r=this,i={};return vt.forEach(this,(n,o)=>{const s=vt.findKey(i,o);if(s){r[s]=zC(n),delete r[o];return}const l=t?W9e(o):String(o).trim();l!==o&&delete r[o],r[l]=zC(n),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return vt.forEach(this,(i,n)=>{i!=null&&i!==!1&&(r[n]=t&&vt.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const i=new this(t);return r.forEach(n=>i.set(n)),i}static accessor(t){const i=(this[zV]=this[zV]={accessors:{}}).accessors,n=this.prototype;function o(s){const l=ub(s);i[l]||(H9e(n,s),i[l]=!0)}return vt.isArray(t)?t.forEach(o):o(t),this}}$3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);vt.reduceDescriptors($3.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});vt.freezeMethods($3);var ld=$3;function nM(e,t){const r=this||U4,i=t||r,n=ld.from(i.headers);let o=i.data;return vt.forEach(e,function(l){o=l.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function rJ(e){return!!(e&&e.__CANCEL__)}function X1(e,t,r){di.call(this,e==null?"canceled":e,di.ERR_CANCELED,t,r),this.name="CanceledError"}vt.inherits(X1,di,{__CANCEL__:!0});function G9e(e,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new di("Request failed with status code "+r.status,[di.ERR_BAD_REQUEST,di.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var q9e=Ja.isStandardBrowserEnv?function(){return{write:function(r,i,n,o,s,l){const a=[];a.push(r+"="+encodeURIComponent(i)),vt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),vt.isString(o)&&a.push("path="+o),vt.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(r){const i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Y9e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function K9e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function iJ(e,t){return e&&!Y9e(t)?K9e(e,t):t}var Z9e=Ja.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function n(o){let s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=n(window.location.href),function(s){const l=vt.isString(s)?n(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Q9e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function J9e(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=i[o];s||(s=c),r[n]=a,i[n]=c;let p=o,h=0;for(;p!==n;)h+=r[p++],p=p%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-s<t)return;const m=u&&c-u;return m?Math.round(h*1e3/m):void 0}}function jV(e,t){let r=0;const i=J9e(50,250);return n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,l=o-r,a=i(l),c=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&c?(s-o)/a:void 0,event:n};u[t?"download":"upload"]=!0,e(u)}}const X9e=typeof XMLHttpRequest!="undefined";var eBe=X9e&&function(e){return new Promise(function(r,i){let n=e.data;const o=ld.from(e.headers).normalize(),s=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}vt.isFormData(n)&&(Ja.isStandardBrowserEnv||Ja.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+y))}const u=iJ(e.baseURL,e.url);c.open(e.method.toUpperCase(),XQ(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const m=ld.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};G9e(function(x){r(x),a()},function(x){i(x),a()},v),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){!c||(i(new di("Request aborted",di.ECONNABORTED,e,c)),c=null)},c.onerror=function(){i(new di("Network Error",di.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||eJ;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),i(new di(y,v.clarifyTimeoutError?di.ETIMEDOUT:di.ECONNABORTED,e,c)),c=null},Ja.isStandardBrowserEnv){const m=(e.withCredentials||Z9e(u))&&e.xsrfCookieName&&q9e.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}n===void 0&&o.setContentType(null),"setRequestHeader"in c&&vt.forEach(o.toJSON(),function(y,v){c.setRequestHeader(v,y)}),vt.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",jV(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",jV(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{!c||(i(!m||m.type?new X1(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=Q9e(u);if(h&&Ja.protocols.indexOf(h)===-1){i(new di("Unsupported protocol "+h+":",di.ERR_BAD_REQUEST,e));return}c.send(n||null)})};const jC={http:E9e,xhr:eBe};vt.forEach(jC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var nJ={getAdapter:e=>{e=vt.isArray(e)?e:[e];const{length:t}=e;let r,i;for(let n=0;n<t&&(r=e[n],!(i=vt.isString(r)?jC[r.toLowerCase()]:r));n++);if(!i)throw i===!1?new di(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(vt.hasOwnProp(jC,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!vt.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:jC};function oM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new X1(null,e)}function VV(e){return oM(e),e.headers=ld.from(e.headers),e.data=nM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nJ.getAdapter(e.adapter||U4.adapter)(e).then(function(i){return oM(e),i.data=nM.call(e,e.transformResponse,i),i.headers=ld.from(i.headers),i},function(i){return rJ(i)||(oM(e),i&&i.response&&(i.response.data=nM.call(e,e.transformResponse,i.response),i.response.headers=ld.from(i.response.headers))),Promise.reject(i)})}const BV=e=>e instanceof ld?e.toJSON():e;function Wv(e,t){t=t||{};const r={};function i(c,u,p){return vt.isPlainObject(c)&&vt.isPlainObject(u)?vt.merge.call({caseless:p},c,u):vt.isPlainObject(u)?vt.merge({},u):vt.isArray(u)?u.slice():u}function n(c,u,p){if(vt.isUndefined(u)){if(!vt.isUndefined(c))return i(void 0,c,p)}else return i(c,u,p)}function o(c,u){if(!vt.isUndefined(u))return i(void 0,u)}function s(c,u){if(vt.isUndefined(u)){if(!vt.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function l(c,u,p){if(p in t)return i(c,u);if(p in e)return i(void 0,c)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,u)=>n(BV(c),BV(u),!0)};return vt.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=a[u]||n,h=p(e[u],t[u],u);vt.isUndefined(h)&&p!==l||(r[u]=h)}),r}const oJ="1.5.0",W4={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{W4[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const UV={};W4.transitional=function(t,r,i){function n(o,s){return"[Axios v"+oJ+"] Transitional option '"+o+"'"+s+(i?". "+i:"")}return(o,s,l)=>{if(t===!1)throw new di(n(s," has been removed"+(r?" in "+r:"")),di.ERR_DEPRECATED);return r&&!UV[s]&&(UV[s]=!0,console.warn(n(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,l):!0}};function tBe(e,t,r){if(typeof e!="object")throw new di("options must be an object",di.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const o=i[n],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new di("option "+o+" must be "+a,di.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new di("Unknown option "+o,di.ERR_BAD_OPTION)}}var g$={assertOptions:tBe,validators:W4};const Kd=g$.validators;class CS{constructor(t){this.defaults=t,this.interceptors={request:new FV,response:new FV}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Wv(this.defaults,r);const{transitional:i,paramsSerializer:n,headers:o}=r;i!==void 0&&g$.assertOptions(i,{silentJSONParsing:Kd.transitional(Kd.boolean),forcedJSONParsing:Kd.transitional(Kd.boolean),clarifyTimeoutError:Kd.transitional(Kd.boolean)},!1),n!=null&&(vt.isFunction(n)?r.paramsSerializer={serialize:n}:g$.assertOptions(n,{encode:Kd.function,serialize:Kd.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&vt.merge(o.common,o[r.method]);o&&vt.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),r.headers=ld.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,p=0,h;if(!a){const y=[VV.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),h=y.length,u=Promise.resolve(r);p<h;)u=u.then(y[p++],y[p++]);return u}h=l.length;let m=r;for(p=0;p<h;){const y=l[p++],v=l[p++];try{m=y(m)}catch(_){v.call(this,_);break}}try{u=VV.call(this,m)}catch(y){return Promise.reject(y)}for(p=0,h=c.length;p<h;)u=u.then(c[p++],c[p++]);return u}getUri(t){t=Wv(this.defaults,t);const r=iJ(t.baseURL,t.url);return XQ(r,t.params,t.paramsSerializer)}}vt.forEach(["delete","get","head","options"],function(t){CS.prototype[t]=function(r,i){return this.request(Wv(i||{},{method:t,url:r,data:(i||{}).data}))}});vt.forEach(["post","put","patch"],function(t){function r(i){return function(o,s,l){return this.request(Wv(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}CS.prototype[t]=r(),CS.prototype[t+"Form"]=r(!0)});var VC=CS;class H4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const i=this;this.promise.then(n=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](n);i._listeners=null}),this.promise.then=n=>{let o;const s=new Promise(l=>{i.subscribe(l),o=l}).then(n);return s.cancel=function(){i.unsubscribe(o)},s},t(function(o,s,l){i.reason||(i.reason=new X1(o,s,l),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new H4(function(n){t=n}),cancel:t}}}var rBe=H4;function iBe(e){return function(r){return e.apply(null,r)}}function nBe(e){return vt.isObject(e)&&e.isAxiosError===!0}const y$={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(y$).forEach(([e,t])=>{y$[t]=e});var oBe=y$;function sJ(e){const t=new VC(e),r=VQ(VC.prototype.request,t);return vt.extend(r,VC.prototype,t,{allOwnKeys:!0}),vt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return sJ(Wv(e,n))},r}const jn=sJ(U4);jn.Axios=VC;jn.CanceledError=X1;jn.CancelToken=rBe;jn.isCancel=rJ;jn.VERSION=oJ;jn.toFormData=P3;jn.AxiosError=di;jn.Cancel=jn.CanceledError;jn.all=function(t){return Promise.all(t)};jn.spread=iBe;jn.isAxiosError=nBe;jn.mergeConfig=Wv;jn.AxiosHeaders=ld;jn.formToJSON=e=>tJ(vt.isHTMLForm(e)?new FormData(e):e);jn.getAdapter=nJ.getAdapter;jn.HttpStatusCode=oBe;jn.default=jn;var lJ=jn;class G4{constructor(t){this._viewer=t,this._entities=this._viewer.entities,this._initParams()}_initParams(){this._HTTP_RESULT_SUCCESS="RES_OK",this._HTTP_RESULT_ERROR="RES_ERR",this._queryPathTimeModel={userId:"jt999",longitude:"",latitude:"",altitude:"",angle:"",time:"0"},this._timerId=void 0,this._uavLockView=!0,this._uavEntityName="aircraftEntity",this._uavImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAALc0lEQVR4nO2cf2wUxxXH35zPEIkGk0YiRBy1kdISQZQYJBRctbWJqjqqSkKr8uOPKjgC0f/49UelqCk+O61QWhWbVP0HgTCVKqXwDxC1hSgtRqJykqq1kUAKaiVs+RAIicZQqAK+u+n37d2a8fpub+9u7dtj3kca7u2au52d+c57b2b2TpFgNSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYjArAcEYDliAAsRwRgOSIAyxEBWI4IwHJEAJYTugAS70x2kFa7taZWHJJSNEJKH0r9rHGQhMB8pSe9Lauoi9COmvQoGnKksbGhZ/QtNUohEqoAlvamj6HCXVQIRQPX98ffhCX40NKnF03eTZ9HgzkDyEQRTWBA7R3fHx+gkFAooZDomUxqUt0wi6PU3uv7G/phCUVI9KbPa00dVAR02ER8XsPqsDwBPi8cEj3pzzXRIpj8oXe0UkkCSmsIg5pg8vmJVHf8KZhCAVp+oVsn05lhmA6K9AWl1IDWGmFA7cYpl+PXu+NdFALoE3IunM7kOqkiFOJUNtMPy0HFGnaQpn/DxAE9h78dgeWAv+3B30ZgVkS8ge6M/lRV/P7ZJNGr2/FSMZqyXaR1FwFF6iYaaytMB/Nv4J5SDd/Da8XEG2mMvYha1pvuymo6hnN1Q0zRm2HGwTAo5bqjSOO8huVqaU96gIi2odQTobnAsEAInND5UFcvqJher9j9T6ZZBOolqgv0pcZ4vCtqYSDvSZNE1IwSeRTR6fjChi68VkdOQI8Sl0QTGmMRDIPxCaLUHRh5GuPIYiPWgbVmaW8GuZHug+mw8hmipidgGFy5SXT3AQyAjgslocbnVEde+cdgOqT2N+Dfmaw7lJkSQRRjeK0xQ3FbM9HJbTPbcRxBpu29LKwcHMM5kaMqUChV4Z3/FxPApuMZGhqDATC96Ul1NyZJmALtOIh2bIdZVABMojeDf3NwDK92hVWhVAUqnkTFu2E6iAAqA+04iHZshykCKIeWA7olPUnNMOecMNck0I6DaMd2mI+/ALAkPKAoNkAVoDQt0SrzQ3I2Seg5nKo5igiLNnSRVMNF1KsiQWid7ce/rTAtEIDgiwjAckQAJVg4n6jzeUWdK5Sz5rBqicLZuefKTU13vyA6e1XTuc/01DS3Wh57AbzyVS4Klj837mr67UUYBvvaFW1/WWGRpPT755ojH2fp4AWI4gEO8vzgRaI1idJ1Pfqxpmv/gQEeSwF0Hs5gxMAA3IEbXvC/9P0Hmnae0HT/IQ7yHHxN0ebWGKzowl5h0/HsNBEc3qxo8ZP+9/v2H7N0Od8+xQRw5wtNq35pLASFsKLqX6sA8CNgOqvOw3QoJgBTuT//rqIXnvW/9Pv/1PT+sIaVox4634VF0Hn4UUexx9v1Lf+6m/dbTABDoxDX7x59LjbE/BsxAFV/AM/DJx9mrsF0YBe9r336zR68kHONldK5Ai5yy8wGCcq5q9rplHLg/KKa3KLaez75RozaWqZf3wyjilQq1d2wDGZVKJSqQRgYRBhoh+mwAy6eG5Dhxj/yiYZVOUO7Ykj2cp8XFHaXfeiAk5c0bJyoAN6M4XDFpdycg6/fdmh6KCgHvjYPppXP5K7Lghoag5EnrMU0hVI1vCOYTmcgAmrCYajwrtiHPy5v9J8YyVLPh5V3vBeeaRzZHCvbI+w9nXUEGD7YEl8Y7xjdqyZwUBXl3ZEPy95Jb9RZGsDtFhPBvZjS72peMSuBzsb68G8rTGcUeEOKH9z5+86gFh5YSDyqguDdvnYpNw85+5mmHSemYvY9ZO0b8OoL8qkuItqGUgR0fojPQ4QmACafDyTxoRs12hunCPYd2KewdZkMunW5tGdyGO9shYnODy6AQp2/6SV+P68XoCZlwDkDu91zV3GQhwV04o3gnmBotLKkjRNryqo9uJPXcegyBrc/EF8Y7w9j5LsEqlAl8PPteKFKKou98VEiakZxOi+IADjmfh175a7b58Wio1tmJlLl4hUVh4OhXcFCUqUCMOFBFXTgVELZFZoLzKQyqAC88bZQFl0pXhEkv6Nox7rSdQpDALNN5CrEJHrSp9DcjvvrXMEjufSIM9cZOGvv6QzWQczKJeze/ZvCnIIF9QLd57J0ND8Dgvu+gKy9gyKGQokc3sfMrvwk5ttBnmSr5P934RjPc3WO7b9+LUavPl/8Pd5rBJmatr2XcRJKBgI4BAHsgRkp/O+gRnD+MHk38zlMh1JhwO1IhrP9oNNG9gCmiz630z/BW/luZmpez9NCP8F4w0YYy7azQfE7qDFIBAfImA75dY7paoOGDMabN5R6rxkG/ETJCemrWAo2Rn8k3T+jUCIJZ7/ph5kRdE8TDh03XWwKZnYkT/v6Xi/cMcyOP2QQ8xWl0Dkn8u9xKeU9ggiAO38zvIq78cVg/l/1rt1soVAiizcXYBGw6/Vm92YIaGvGDKDARoqL+Xi6l1LvNWN6oUUhXjvYd8bT+RGN/S7TWzKCYErYjynhbphTcEfxNGwdXjnZ88ZbvyTQFIsXFlexuM6da+7wmSGJ9zv4gRCvR8FfT6e64xthRhbUMfp4vzVjwlOyZ58k+nQcB3lKzdO3IwyYK3xMqamjGWbmx4nWLCXHk7geoQCR+/5iIepCAAzvNWSz1A+zGcUXDhVnMUL9pmk8Axga07A4+fPf+vWOfj+Uokl80s56+eaTQqkrMDvI9VoJVmFxh5PGYqEgKNz5nNS5S8yliJH+23h34zdg1gXVtU4NMAXATxbxI2P8PN2tezjhgT1BslNhZlDctfvB+QJPL4t1vvu83yfwJB9cwQmApC+yU75C1LUATm3Pdaz5PN3iBUS37sMw4DyB3fzCJ3AQAJ4icmLn7Xie+pkJJAuQH20zH+cSAcwypQTAMwSeJpodFQbutM/ccxAB1IAgAuC5PCd57MKHxnCyCnh1MInZgZtQigBqTFABuPB36nmOzhk/f4kjCBwq2pqV8+UTt+NdRAA1plwBhI0IoMaIAMJFBFAmIoAaIwIIFxFAmYgAaowIIFxEAGUiAqgxhQRw4KMs1uNhABFAeSiUusIUwO9/pGjB/OkdwOv+QR7ZrgReXTQfIu3bqGj509OvLwKYZUwBuCOQd+MOfDR12vECm1sVJZrCuz1eSTR3Bhd/iejwlpwHmi6A6D8FZIL61hcJ41e5+Ske95dGzDxgLnjr24pexnIxs/dUlq7dhgHgAXrgAZJUJyiUuuLFX6XP3P4fbYA5bRTyT8q8/adHv7Mzm2xdrWjrmlzTXb6Ru65LlJ8ALkTuLuqEf6R01/D17G+6z2p0fQ6zM5gPLmsnJPADIlzCYvmXUZ7mn3vJhR3GEd2fIbrbOAB5QY7EF6j1q59SEzgVeXJ3UgcM39At6bQeRo0Xed29VwRzwa3/Iu/4y6POZ3Z9U9ErX0M9NJ1auyz2fZyKPKhtffD38UySlOqG6Yw87y+I8ejjfIBH6mzC12S3/9d/5WwX7w9BrU3E6qJt66KSzKepzIAitQ2mw7XbcL+IvWYn1Apv5ztotX7tMjVIEaduBGB6ABf2BDz9M8PBXLJgHrzOqsLhRzxAyORzgBHU2JkCmuRcMoRwA7E5xMSvGBxmOBnkkc8LUTPQdBo5wEZYkadA7aMLzwKyWvej1jNEEBU00aXGBapDZgGzRM4TZLtQ9Q6KEFrpUUWxkbUJ1Y/DuqHuBCCEiwjAckQAliMCsBwRgOWIACxHBGA5IgDLEQFYjgjAckQAliMCsBwRgOWIACxHBGA5IgDLEQFYjgjAckQAliMCsBwRgOWIACxHBGA5IgDLEQFYjgjAckQAliMCsBwRgOX8HzIX2SrTidFrAAAAAElFTkSuQmCC"}_queryPathTime(){console.log("\u8C03\u7528\u4E86\u6B64\u65B9\u6CD5");let t=this;this._post(this._httpInterfaceUrl,this._queryPathTimeModel,{success:function(r){t._queryPathTimeModel.time=r[0].time;let i={longitude:parseFloat(r[0].longitude),latitude:parseFloat(r[0].latitude),altitude:parseFloat(r[0].altitude),angle:parseFloat(r[0].angle),isLockView:t._uavLockView};t._timerId&&t._appendAircraft(i)},error:function(r){console.log(r)},complete:function(){t._timerId&&(t._timerId=setTimeout(function(){t._queryPathTime()},5e3))}})}_appendAircraft(t,r){let i=this,n=Cesium.Cartesian3.fromDegrees(t.longitude,t.latitude,t.altitude),o=new Cesium.Entity({name:i._uavEntityName,position:n,billboard:{show:!0,image:i._uavImage,scale:.5,pixelOffset:new Cesium.Cartesian2(0,-30)},label:{text:t.altitude.toFixed(1)+"\u7C73",font:"30px scns-serif",scale:.5,style:Cesium.LabelStyle.FILL_AND_OUTLINE,fullColor:i._toColor(255,255,255,1),outlineWidth:3,pixelOffset:new Cesium.Cartesian2(0,-54),outlineColor:i._toColor(20,55,89,1)}}),s=this._entities.add(o);t&&t.isLockView&&t.isLockView===!0?this._lockView(s,t.angle,-30,500,function(){r&&r()}):r&&r()}_lockView(t,r,i,n,o){this._viewer.flyTo(t,{offset:{heading:Cesium.Math.toRadians(r),pitch:Cesium.Math.toRadians(i),range:n}}).then(function(s){o&&o()}).catch(function(s){o&&o()})}_toColor(t,r,i,n){return new Cesium.Color(t/255,r/255,i/255,n)}_removeAircraft(){this._removeEntityByName(this._uavEntityName)}_removeEntityByName(t){var r=this._entities;if(!(!r||!r.values)){for(var i=[],n=0;n<r.values.length;n++)r.values[n].name==t&&i.push(r.values[n]);for(var n=0;n<i.length;n++)r.remove(i[n])}}}Object.assign(G4.prototype,{setAircraftInterfaceUrl:function(e){this._httpInterfaceUrl=e},setLockView(e){this._uavLockView=e},startMonitor:function(){this._timerId=1180,this._queryPathTimeModel.time="",this._uavLockView=!0,this._queryPathTime()},stopMonitor:function(){this._timerId&&(this._timerId=void 0,clearTimeout(this._timerId),this._removeAircraft())}});Object.assign(G4.prototype,{_post:function(e,t,r){let i=this;lJ.post(e,t).then(function(n){if(n.status===200){let o=n.data;o.res===i._HTTP_RESULT_SUCCESS?r&&r.success&&r.success(o.data):o.res===i._HTTP_RESULT_ERROR&&r&&r.error&&r.error(o.data[0].msg)}else r&&r.error&&r.error("\u63A5\u53E3\u8BBF\u95EE\u9519\u8BEF\uFF0C\u9519\u8BEF\u4EE3\u7801:"+n.status);r&&r.complete&&r.complete()}).catch(function(n){r&&r.error&&r.error(n),r&&r.complete&&r.complete()})}});const sBe={id:"cesiumContainer",class:"jt-map"},q4={__name:"CrMap",emits:["onEditProperty"],setup(e,{expose:t,emit:r}){const{proxy:i}=Xt();return t({onMeasureLength:function(){i.commonTools.measureLength()},onMeasureArea:function(){i.commonTools.measureArea()},onMeasureHeight:function(){i.commonTools.measureHeight()},onMeasureSpatialLength:function(){i.commonTools.measureSpatialLength()},onMeasureTriangle:function(){i.commonTools.measureTriangle()},onToolsClear:function(){i.commonTools.clear()},onQueryByPolygon:function(){i.commonTools.queryByPolygon(function(n){console.log("\u5750\u6807\u4E32",n)})},onQueryByPoint:function(){i.commonTools.queryByPoint(function(n){console.log("\u5750\u6807\u4E32",n)})},onQueryByMultiplePoint:function(){i.commonTools.queryByMultiplePoint(function(n){console.log("\u5750\u6807\u6570\u7EC4",n)})},onQueryByLine:function(){i.commonTools.queryByLine(function(n){console.log("\u5750\u6807\u4E32",n)})},onQueryByCircle:function(){i.commonTools.queryByCircle(function(n,o){console.log("\u4E2D\u5FC3\u70B9\u53CA\u534A\u5F84",n,o)})},onQueryByRectangle:function(){i.commonTools.queryByRectangle(function(n){console.log("\u5750\u6807\u4E32",n)})},onDrawPolygonBody:function(){i.commonTools.drawPolygonBody(function(){})},onPickPolygonBody:function(n){i.commonTools.pickPolygonBody(function(o){o!=null&&n(o)})},onSetPolygonBody:function(n){i.commonTools.setPolygonBody({color:n.color,height:n.height,onComplete:n.onComplete})},onRemovePolygonBody:function(n){i.commonTools.removePolygonBody(n)},onTestDemo:function(){let n={lng:118.22480916041573,lat:35.140818266338854,alt:164.9208475038474,pitch:-40.80823993511622,heading:1.717840652315993,roll:359.9998582097622};i.CMapApi.cameraFlyToo(n),i.commonTools.testDemo()},onGetCameraViewer:function(){let n=i.CMapApi.getCameraViewParams();console.log("\u76F8\u673A\u89C6\u89D2",JSON.stringify(n))},onDrawFeacture:function(n){i.commonTools.drawPolygonFeacture(n)},onClearDraw:function(){i.drawTools.Clear()},onMouseDrawEditLine:function(){i.drawTools.draw(ve.DrawType.Polyline,{isEdit:!0})},onMouseDrawEditArrowLine:function(){i.drawTools.draw(ve.DrawType.ArrowPolyline,{isEdit:!0})},onMouseDrawEditGrawLine:function(){i.drawTools.draw(ve.DrawType.GrowPolyline,{isEdit:!0})},onMouseDrawEditDynamicLine:function(){i.drawTools.draw(ve.DrawType.DynamicPolyline,{isEdit:!0})},onMouseDrawEditOutlineLine:function(){i.drawTools.draw(ve.DrawType.OultliePolyline,{isEdit:!0})},onMouseDrawEditPolygon:function(){i.drawTools.draw(ve.DrawType.Polygon,{isEdit:!0})},onMouseDrawEditRectangle:function(){i.drawTools.draw(ve.DrawType.Rectangle,{isEdit:!0})},onMouseDrawEditCircle:function(){i.drawTools.draw(ve.DrawType.Circle,{isEdit:!0})},onMouseDrawDynamicEditWall:function(){i.drawTools.draw(ve.DrawType.DynamicWall,{isEdit:!0})},onMouseDrawColorEditWall:function(){i.drawTools.draw(ve.DrawType.NormalWall,{isEdit:!0})},onMouseDrawEditText:function(){i.drawTools.draw(ve.DrawType.TextWall,{isEdit:!0})},onMouseDrawDynamicCircle:function(){i.drawTools.draw(ve.DrawType.DynamicCircle,{isEdit:!0})},onMoouseDrawPolygonBody:function(){i.drawTools.draw(ve.DrawType.House,{isEdit:!0})},onMouseDrawEditVideoWall:function(){i.drawTools.draw(ve.DrawType.VideoWall,{isEdit:!0})},onMouseDrawEditSpatialPolyline:function(){i.drawTools.draw(ve.DrawType.SpatialLine,{isEdit:!0})},onMouseDrawEditOdline:function(){i.drawTools.draw(ve.DrawType.OdLine,{isEdit:!0})},onMouseDrawDoodle:function(){i.drawTools.draw(ve.DrawType.Doodle,{isEdit:!0})},onSubmitEditProperty:function(n){i.drawTools.updateEditEntityProperty(n)},onRemoveEditEntity:function(){i.drawTools.removeEditEntity()},onRotationEntity:function(){i.drawTools.rotationEntity({x:90,y:0,z:0})},onShowFloatLayer:function(){window.floatGHT.show()},onHideFloatLayer:function(){setTimeout(function(){i.CMapApi.drawUAVVideo({center:{longitude:118.2279922688788,latitude:35.091731541395305},params:{width:8192,height:5460,pix:4.4,foucsLength:35,o:45,k:90,airHeight:400}})},500)},onStartMonitor:function(){let n="http://218.59.194.82:9092/UAVInterface/appQueryPathTime";i.aircraftTools.setAircraftInterfaceUrl(n),i.aircraftTools.startMonitor()},onStopMonitor:function(){i.aircraftTools.stopMonitor()},onSetLockUavView:function(n){i.aircraftTools.setLockView(n)}}),er(()=>{let n=i;i.CMapApi=new Qn({selector:"cesiumContainer",sourcePath:"./resource/"}),i.commonTools=new v0(i.CMapApi.getViewer(),{isClear:!1}),i.aircraftTools=new G4(i.CMapApi.getViewer()),i.sketchViewModel=new jr(i.CMapApi.getViewer(),{iconType:jr.SketchIconType.Blue,isDrawPoint:!0,isRetainDrawPoint:!0}),i.drawTools=new ve(i.CMapApi.getViewer(),{iconType:ve.IconType.Blue,isDrawPoint:!0,isRetainDrawPoint:!0}),i.drawTools.onEditProperty=o=>{r("onEditProperty",o)},i.CMapApi.addLayer({layId:"mapbox",layName:"\u6697\u591C\u7248\u5E95\u56FE",layType:Qn.LayerType.mapboxLayer,isShow:!0,config:{}}),i.CMapApi.addLayer({layId:"qp3d01",layName:"\u725F\u5E73\u4E09\u7EF4",layType:Qn.LayerType.tilesetsLayer,isShow:!0,config:{url:["http://218.59.194.82:13480/ytmp/3dtiles/shijing/1/tileset1.json"],offsetHeight:10}}),i.CMapApi.addLayer({layId:"yxt",layName:"\u5F71\u50CF\u56FE",layType:Qn.LayerType.wmtsLayer,isShow:!0,config:{url:"http://218.59.194.74:6080/arcgis/rest/services/LYLSQ_YX_102100_202112/MapServer/WMTS",alpha:1}}),i.CMapApi.addLayer({layId:"lqzyxt",layName:"\u5F71\u50CF\u56FE",layType:Qn.LayerType.wmtsLayer,isShow:!0,config:{url:"http://218.59.194.74:6080/arcgis/rest/services/LYBQZ_YX_102100_202307/MapServer/WMTS",alpha:1}}),i.CMapApi.setMapRange({lng:103.84,lat:31.15,alt:24e6,heading:0,pitch:-90,roll:0}),i.CMapApi.flyToRectangle({strLng:118.5869,strLat:35.063,endLng:118.7916,endLat:35.2545,success:function(){n.CMapApi.setTerrain({url:"http://218.59.194.82:13480/sddem/dem/"}),n.CMapApi.showInit()}}),i.CMapApi.queryAGServerExtent("http://218.59.194.82:6080/arcgis/rest/services/LSQZRZY_RE_WEB_V1/MapServer","0",function(o){console.log(JSON.stringify(o))},function(o){console.log("\u67E5\u8BE2\u8303\u56F4\u9519\u8BEF",o)})}),(n,o)=>($(),K("div",sBe))}};class lBe{constructor(){this._HTTP_RESULT_SUCCESS="RES_OK",this._HTTP_RESULT_ERROR="RES_ERR"}post(t,r,i,n,o){let s=this;lJ.post(t,r).then(function(l){if(l.status===200){let a=l.data;a.res===s._HTTP_RESULT_SUCCESS?i!==void 0&&i(a.data):a.res===s._HTTP_RESULT_ERROR&&n!==void 0&&n(a.data[0].msg)}else n!==void 0&&n("\u63A5\u53E3\u8BBF\u95EE\u9519\u8BEF\uFF0C\u9519\u8BEF\u4EE3\u7801:"+l.status);o!==void 0&&o()}).catch(function(l){n!==void 0&&n(l),o!==void 0&&o()})}}const aBe=e=>(tce("data-v-1fdde78a"),e=e(),rce(),e),cBe={class:"cr-tools-left"},uBe={class:"cr-tools-right"},dBe={class:"cr-tools-bottom"},pBe={class:"cr-video-view"},hBe=aBe(()=>G("video",{id:"video-webrtc",controls:"",style:{width:"100%",height:"100%"}},null,-1)),fBe=[hBe],mBe={components:{CrMap:q4},data(){return{leftTools:[],rightTools:[],showOverlay:!1,poputNavTitle:"\u7269\u4F53\u6837\u5F0F\u8C03\u6574",color:{red:0,green:100,blue:255,alpha:6},height:120,dialogVisible:!1,showDialog:!1,editParams:void 0,showEditDialog:!1,dynamicDrawTools:[],isControlUAV:!1,isLivePlayer:!1,uavLockIcon:"app-icon-viewer",uavLockTitle:"\u89E3\u9664\u9501\u5B9A"}},created(){this.netApi=new lBe,this.leftTools.push({title:"\u957F\u5EA6\u91CF\u6D4B",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u5BF9\u8C61\u7684\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u957F\u5EA6\u5E76\u5C55\u793A",icon:"app-icon-map-measurelength",id:"length"}),this.leftTools.push({title:"\u9762\u79EF\u91CF\u6D4B",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u7684\u5BF9\u8C61\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u9762\u79EF\u5E76\u5C55\u793A",icon:"app-icon-map-measurearea",id:"area"}),this.leftTools.push({title:"\u9AD8\u5EA6\u6D4B\u91CF",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u7684\u5BF9\u8C61\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u9AD8\u5EA6\u5E76\u5C55\u793A",icon:"app-icon-map-measureheight",id:"height"}),this.leftTools.push({title:"\u7A7A\u95F4\u6D4B\u91CF",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u7684\u5BF9\u8C61\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u7A7A\u95F4\u8DDD\u79BB\u5E76\u5C55\u793A",icon:"app-icon-map-measurespace",id:"space"}),this.leftTools.push({title:"\u4E09\u89D2\u6D4B\u91CF",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u5BF9\u8C61\u7684\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u957F\u5EA6\u5E76\u5C55\u793A",icon:"app-icon-map-measuretriangle",id:"triangle"}),this.leftTools.push({title:"\u70B9\u51FB\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u9700\u8981\u67E5\u8BE2\u7684\u4F4D\u7F6E\u5355\u51FB\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-point",id:"queryByPoint"}),this.leftTools.push({title:"\u591A\u70B9\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u9700\u8981\u67E5\u8BE2\u7684\u4F4D\u7F6E\u5355\u51FB\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-multiple-point",id:"queryByMultiplePoint"}),this.leftTools.push({title:"\u7EBF\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u9700\u8981\u67E5\u8BE2\u7684\u4F4D\u7F6E\u5355\u51FB\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-point",id:"queryByLine"}),this.leftTools.push({title:"\u5706\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u9700\u8981\u67E5\u8BE2\u7684\u4F4D\u7F6E\u5355\u51FB\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-point",id:"queryByCircle"}),this.leftTools.push({title:"\u77E9\u5F62\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u9700\u8981\u67E5\u8BE2\u7684\u4F4D\u7F6E\u5355\u51FB\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-point",id:"queryByRectangle"}),this.leftTools.push({title:"\u533A\u57DF\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u67E5\u8BE2\u533A\u57DF\uFF0C\u5355\u51FB\u5F00\u59CB\u67E5\u8BE2\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u533A\u57DF\u5185\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-polygon",id:"queryByPolygon"}),this.leftTools.push({title:"\u6E05\u7406\u7ED8\u5236",describe:"\u5728\u5730\u56FE\u4E0A\u5355\u51FB\u7ED8\u5236\u5E95\u90E8\uFF0C\u53F3\u952E\u7ED3\u675F\u7ED8\u5236\u62C9\u4F38",icon:"app-icon-map-clean",id:"toolsClear"}),this.rightTools.push({title:"\u56FE\u5C42\u7BA1\u7406",describe:"\u70B9\u51FB\u5373\u53EF\u6253\u5F00\u56FE\u5C42\u63A7\u5236\u7A97\u53E3,\u8FDB\u884C\u56FE\u5C42\u53CA\u6807\u6CE8\u7684\u663E\u793A/\u9690\u85CF",icon:"app-icon-map-layer",id:"layerControl"}),this.rightTools.push({title:"\u52A8\u6001\u6807\u7ED8",describe:"\u70B9\u51FB\u5373\u53EF\u6253\u5F00\u56FE\u5C42\u63A7\u5236\u7A97\u53E3,\u8FDB\u884C\u56FE\u5C42\u53CA\u6807\u6CE8\u7684\u663E\u793A/\u9690\u85CF",icon:"app-icon-tools-draw",id:"dynamicDraw"}),this.rightTools.push({title:"\u91CD\u7F6E\u5730\u56FE",describe:"\u70B9\u51FB\u5373\u53EF\u91CD\u7F6E\u5730\u56FE\u8303\u56F4\u4E3A\u521D\u59CB\u663E\u793A\u8303\u56F4",icon:"app-icon-map-initlocation",id:"initMapExtent"}),this.rightTools.push({title:"\u5750\u6807\u67E5\u8BE2",describe:"\u5728\u5730\u56FE\u4E0A\u9700\u8981\u67E5\u8BE2\u5750\u6807\u7684\u4F4D\u7F6E\u4E0A\u70B9\u51FB,\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5730\u7406\u5750\u6807",icon:"app-icon-map-querycoord",id:"coordQuery"}),this.rightTools.push({title:"\u5750\u6807\u5B9A\u4F4D",describe:"\u70B9\u51FB\u540E,\u5F39\u51FA\u5750\u6807\u8F93\u5165\u6846,\u8F93\u5165\u6B63\u786E\u7684\u4F4D\u7F6E\u5750\u6807\u540E\u70B9\u51FB\u5B9A\u4F4D,\u5373\u53EF\u5728\u5730\u56FE\u4E0A\u5C55\u793A\u5750\u6807\u4F4D\u7F6E",icon:"app-icon-map-inputcoord-location",id:"inputLocation"}),this.rightTools.push({title:"\u76F8\u673A\u89C6\u89D2",describe:"\u70B9\u51FB\u540E,\u5F39\u51FA\u5750\u6807\u8F93\u5165\u6846,\u8F93\u5165\u6B63\u786E\u7684\u4F4D\u7F6E\u5750\u6807\u540E\u70B9\u51FB\u5B9A\u4F4D,\u5373\u53EF\u5728\u5730\u56FE\u4E0A\u5C55\u793A\u5750\u6807\u4F4D\u7F6E",icon:"app-icon-map-camera-view",id:"cameraView"}),this.rightTools.push({title:"\u7269\u4F53\u62FE\u53D6",describe:"\u70B9\u51FB\u540E,\u5728\u5730\u56FE\u4E0A\u7684\u5B9E\u4F53\u4E0A\u5355\u51FB\uFF0C\u5373\u53EF\u62FE\u53D6\u8BE5\u5B9E\u4F53",icon:"app-icon-map-pick",id:"pick"}),this.rightTools.push({title:"\u6E05\u626B\u5DE5\u5177",describe:"\u6E05\u9664\u5730\u56FE\u4E0A\u7684\u5404\u7C7B\u7ED8\u5236\u5185\u5BB9",icon:"app-icon-map-clean",id:"clear"}),this.rightTools.push({title:"\u65E0\u4EBA\u673A",describe:"\u65E0\u4EBA\u673A\u63A5\u5165",icon:"app-icon-map-uav",id:"uav"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-line",title:"\u8D34\u5730\u7EBF",id:"layLine",message:"\u7ED8\u5236\u8D34\u5730\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-arrow-line",title:"\u7BAD\u5934\u7EBF",id:"arrowLine",message:"\u7ED8\u5236\u7BAD\u5934\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-dynamic-line",title:"\u6D41\u52A8\u7EBF",id:"dynamicLine",message:"\u7ED8\u5236\u6D41\u52A8\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-grow-line",title:"\u53D1\u5149\u7EBF",id:"glowLine",message:"\u7ED8\u5236\u53D1\u5149\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-outline-line",title:"\u63CF\u8FB9\u7EBF",id:"outlineLine",message:"\u7ED8\u5236\u63CF\u8FB9\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-sline",title:"\u7A7A\u95F4\u7EBF",id:"spatialLine",message:"\u7ED8\u5236\u7A7A\u95F4\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-polygon",title:"\u8D34\u5730\u9762",id:"layPolygon",message:"\u7ED8\u5236\u8D34\u5730\u9762"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-rectangle",title:"\u8D34\u5730\u77E9\u5F62",id:"layRectangle",message:"\u7ED8\u5236\u8D34\u5730\u77E9\u5F62"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-circle",title:"\u8D34\u5730\u5706",id:"layCircle",message:"\u7ED8\u5236\u8D34\u5730\u5706"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-dynamic-circle",title:"\u6269\u6563\u5706",id:"dynamicCircle",message:"\u7ED8\u5236\u6269\u6563\u5706"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-dwall",title:"\u52A8\u6001\u56F4\u680F",id:"dynamicWall",message:"\u7ED8\u5236\u52A8\u6001\u56F4\u680F"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-wall",title:"\u666E\u901A\u56F4\u680F",id:"normalWall",message:"\u7ED8\u5236\u666E\u901A\u56F4\u680F"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-text",title:"\u7ACB\u4F53\u5E7F\u544A",id:"textBoard",message:"\u7ED8\u5236\u7ACB\u4F53\u5E7F\u544A\u6587\u5B57"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-house",title:"\u623F\u5C4B",id:"house",message:"\u7ED8\u5236\u623F\u5C4B"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-video",title:"\u89C6\u9891\u5899",id:"videoWall",message:"\u7ED8\u5236\u89C6\u9891\u5899"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-draw-odline",title:"OD\u7EBF",id:"odLine",message:"\u7ED8\u5236OD\u7EBF"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-tools-doodle",title:"\u6D82\u9E26",id:"doodle",message:"\u7ED8\u5236\u6D82\u9E26"}),this.dynamicDrawTools.push({iconName:"app-icon app-icon-map-clean",title:"\u6E05\u9664\u6807\u7ED8",id:"clear",message:"\u6E05\u9664\u6807\u7ED8"}),this.editParams=ve.initEditPropertyParams()},methods:{onToolsClick(e){let t=this;switch(e){case"length":t.$refs.cmap.onMeasureLength();break;case"area":t.$refs.cmap.onMeasureArea();break;case"height":t.$refs.cmap.onMeasureHeight();break;case"space":t.$refs.cmap.onMeasureSpatialLength();break;case"triangle":t.$refs.cmap.onMeasureTriangle();break;case"toolsClear":t.$refs.cmap.onToolsClear();break;case"queryByPolygon":t.$refs.cmap.onQueryByPolygon();break;case"queryByPoint":t.$refs.cmap.onQueryByPoint();break;case"queryByMultiplePoint":t.$refs.cmap.onQueryByMultiplePoint();break;case"queryByLine":t.$refs.cmap.onQueryByLine();break;case"queryByCircle":t.$refs.cmap.onQueryByCircle();break;case"queryByRectangle":t.$refs.cmap.onQueryByRectangle();break;case"layerControl":this.showEditDialog=!0;break;case"dynamicDraw":this.showDialog=!0;break;case"cameraView":t.$refs.cmap.onGetCameraViewer();break;case"pick":break;case"inputLocation":let r=[118.163976,35.01653,118.164976,35.01453,118.162976,35.01453];t.$refs.cmap.onDrawFeacture(r);break;case"uav":this.isControlUAV=!this.isControlUAV;break;default:this.dialogVisible=!0;break}},closeDialog(){this.showDialog=!1},onDrawToolsClick(e){switch(this.$message(e.message),e.id){case"layLine":this.$refs.cmap.onMouseDrawEditLine();break;case"arrowLine":this.$refs.cmap.onMouseDrawEditArrowLine();break;case"dynamicLine":this.$refs.cmap.onMouseDrawEditDynamicLine();break;case"glowLine":this.$refs.cmap.onMouseDrawEditGrawLine();break;case"outlineLine":this.$refs.cmap.onMouseDrawEditOutlineLine();break;case"layPolygon":this.$refs.cmap.onMouseDrawEditPolygon();break;case"spatialLine":this.$refs.cmap.onMouseDrawEditSpatialPolyline();break;case"layRectangle":this.$refs.cmap.onMouseDrawEditRectangle();break;case"layCircle":this.$refs.cmap.onMouseDrawEditCircle();break;case"dynamicCircle":this.$refs.cmap.onMouseDrawDynamicCircle();break;case"dynamicWall":this.$refs.cmap.onMouseDrawDynamicEditWall();break;case"normalWall":this.$refs.cmap.onMouseDrawColorEditWall();break;case"textBoard":this.$refs.cmap.onMouseDrawEditText();break;case"house":this.$refs.cmap.onMoouseDrawPolygonBody();break;case"videoWall":this.$refs.cmap.onMouseDrawEditVideoWall();break;case"odLine":this.$refs.cmap.onMouseDrawEditOdline();break;case"doodle":this.$refs.cmap.onMouseDrawDoodle();break;case"clear":this.$refs.cmap.onClearDraw();break}this.showDialog=!1},_startLiveStream(){let e=this;this.isLivePlayer=!0;let t=document.getElementById("video-webrtc"),r="webrtc://218.59.194.82/live/stream.flv";this._player?this._player.play():this._player=new JSWebrtc.Player(r,{video:t,autoplay:!0,onPlay:i=>{e._showToast("\u76F4\u64AD\u5F00\u542F")},onPause:()=>{e._showToast("\u76F4\u64AD\u505C\u6B62")}})},_stopLiveStream(){this.isLivePlayer=!1,this._player&&this._player.stop()},_showToast(e){this.$message(e)},onUavPath(e){switch(e){case"startUavPath":this._showToast("\u65E0\u4EBA\u673A\u76D1\u63A7\u5F00\u542F"),this._startLiveStream(),this.$refs.cmap.onStartMonitor();break;case"stopUavPath":this._showToast("\u505C\u6B62\u65E0\u4EBA\u673A\u76D1\u63A7"),this._stopLiveStream(),this.$refs.cmap.onStopMonitor();break;case"showFloatLayer":this.$refs.cmap.onShowFloatLayer();break;case"hideFloatLayer":this.$refs.cmap.onHideFloatLayer();break;case"lockUavView":this._isLockUavView===void 0||this._isLockUavView===!0?(this.$refs.cmap.onSetLockUavView(!1),this._isLockUavView=!1,this.uavLockTitle="\u9501\u5B9A\u89C6\u89D2"):(this.$refs.cmap.onSetLockUavView(!0),this._isLockUavView=!0,this.uavLockTitle="\u89E3\u9664\u9501\u5B9A");break}},onEditProperty(e){this.showEditDialog=!0;for(let t in this.editParams)this.editParams[t]=e[t];this.$refs.dialogEdit.updateParams(this.editParams)},submit(e){this.$refs.cmap.onSubmitEditProperty(e)},remove(){this.$refs.cmap.onRemoveEditEntity()}}},gBe=Object.assign(mBe,{__name:"tab-cmap",setup(e){return(t,r)=>{const i=GG,n=_pe,o=Ft("el-avatar"),s=Ft("el-col"),l=Ft("el-row");return $(),K(bt,null,[Y(q4,{ref:"cmap",onOnEditProperty:t.onEditProperty},null,8,["onOnEditProperty"]),G("view",cBe,[($(!0),K(bt,null,or(t.leftTools,(a,c)=>($(),Te(i,{id:a.id,title:a.title,describe:a.describe,icon:a.icon,onOnclick:t.onToolsClick},null,8,["id","title","describe","icon","onOnclick"]))),256))]),G("view",uBe,[($(!0),K(bt,null,or(t.rightTools,(a,c)=>($(),Te(i,{id:a.id,title:a.title,describe:a.describe,icon:a.icon,onOnclick:t.onToolsClick},null,8,["id","title","describe","icon","onOnclick"]))),256))]),G("view",dBe,[Y(n,{icon:"app-icon-show",title:"\u663E\u793A\u6D6E\u52A8\u56FE\u5C42",id:"showFloatLayer",onOnclick:t.onUavPath},null,8,["onOnclick"]),Y(n,{icon:"app-icon-hide",title:"\u9690\u85CF\u6D6E\u52A8\u56FE\u5C42",id:"hideFloatLayer",onOnclick:t.onUavPath},null,8,["onOnclick"]),kt(Y(n,{icon:"app-icon-uav-connect",title:"\u5F00\u542F\u76D1\u63A7",id:"startUavPath",onOnclick:t.onUavPath},null,8,["onOnclick"]),[[Vt,t.isControlUAV]]),kt(Y(n,{icon:"app-icon-uav-disconnect",title:"\u5173\u95ED\u76D1\u63A7",id:"stopUavPath",onOnclick:t.onUavPath},null,8,["onOnclick"]),[[Vt,t.isControlUAV]]),kt(Y(n,{icon:t.uavLockIcon,title:t.uavLockTitle,id:"lockUavView",onOnclick:t.onUavPath},null,8,["icon","title","onOnclick"]),[[Vt,t.isControlUAV]])]),kt(G("view",pBe,fBe,512),[[Vt,t.isLivePlayer]]),Y(wze,{class:"jt-tools-dialog",showDialog:t.showDialog,title:"\u52A8\u6001\u6807\u7ED8",height:"calc(100% - 0px)",width:"300px",top:"0px",onCloseJTDialog:t.closeDialog},{default:me(()=>[Y(l,{gutter:20},{default:me(()=>[($(!0),K(bt,null,or(t.dynamicDrawTools,(a,c)=>($(),Te(s,{span:8,onClick:u=>t.onDrawToolsClick(a)},{default:me(()=>[Y(o,{shape:"circle",size:50,style:{"background-color":"rgba(79, 137, 251, 0.95)"}},{default:me(()=>[G("i",{class:N(a.iconName),style:{color:"rgb(255, 255, 0)"}},null,2)]),_:2},1024),G("cite",null,rt(a.title),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),_:1},8,["showDialog","onCloseJTDialog"]),Y(UVe,{ref:"dialogEdit",params:t.editParams,onSubmit:t.submit,onRemove:t.remove,showDialog:t.showEditDialog,"onUpdate:showDialog":r[0]||(r[0]=a=>t.showEditDialog=a)},null,8,["params","onSubmit","onRemove","showDialog"])],64)}}});var yBe=Dh(gBe,[["__scopeId","data-v-1fdde78a"]]);const vBe={class:"cr-panel"},bBe={class:"cr-title"},_Be={class:"cr-label-title"},wBe={props:["config"],methods:{onChangeLayer(e){console.log("========",this.config.pname),this.emit("layerchange",{name:this.config.title,id:this.config.id,visible:e,type:this.config.type,pname:this.config.pname})},onChangeLayerLabel(e){this.emit("labelchange",{name:this.config.title,id:this.config.id,visible:e,type:this.config.type})}},mounted(){this.islabel=this.config.islabel,this.title=this.config.title,this.layerIsChecked=this.config.ischecked?this.config.ischecked:!1,this.labelIsChecked=this.config.labelIsChecked?this.config.labelIsChecked:!1,this.iconClass=this.config.icon?"app-icon "+this.config.icon+" cr-icon":"app-icon app-icon-map-clean cr-icon"},data(){return{layerIsChecked:!1,labelIsChecked:!1,title:"",iconClass:"app-icon app-icon-map-clean cr-icon",islabel:!1}}},xBe=Object.assign(wBe,{__name:"LayerControl",emits:["layerchange","labelchange"],setup(e,{expose:t,emit:r}){const{proxy:i}=Xt();return t({setChecked:function(o){i.layerIsChecked=o}}),(o,s)=>{const l=ape;return $(),K("div",vBe,[G("span",{class:N(o.iconClass)},null,2),G("span",bBe,rt(o.title),1),Y(l,{modelValue:o.layerIsChecked,"onUpdate:modelValue":s[0]||(s[0]=a=>o.layerIsChecked=a),size:"17px",class:"cr-switch",onChange:o.onChangeLayer},null,8,["modelValue","onChange"]),kt(G("span",_Be,"\u6807\u6CE8",512),[[Vt,o.islabel]]),kt(Y(l,{modelValue:o.labelIsChecked,"onUpdate:modelValue":s[1]||(s[1]=a=>o.labelIsChecked=a),size:"17px",class:"cr-switch",onChange:o.onChangeLayerLabel},null,8,["modelValue","onChange"]),[[Vt,o.islabel]])])}}}),CBe="modulepreload",WV={},kBe="./",ut=function(t,r){return!r||r.length===0?t():Promise.all(r.map(i=>{if(i=`${kBe}${i}`,i in WV)return;WV[i]=!0;const n=i.endsWith(".css"),o=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${o}`))return;const s=document.createElement("link");if(s.rel=n?"stylesheet":CBe,n||(s.as="script",s.crossOrigin=""),s.href=i,document.head.appendChild(s),n)return new Promise((l,a)=>{s.addEventListener("load",l),s.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function d(e,t,r,i){var n,o=arguments.length,s=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}let nh;function at(e){return typeof nh[e]=="function"?nh[e]=nh[e](globalThis):nh[e]}var aH,cH,uH,dH;nh=((aH=globalThis.dojoConfig)==null?void 0:aH.has)||((cH=globalThis.esriConfig)==null?void 0:cH.has)?{...(uH=globalThis.dojoConfig)==null?void 0:uH.has,...(dH=globalThis.esriConfig)==null?void 0:dH.has}:{},at.add=(e,t,r,i)=>((i||nh[e]===void 0)&&(nh[e]=t),r&&at(e)),at.cache=nh,at.add("esri-deprecation-warnings",!0),(()=>{var t;at.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);const e=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location===location&&window.document===document;if(at.add("host-browser",e),at.add("host-node",typeof globalThis.process=="object"&&((t=globalThis.process.versions)==null?void 0:t.node)&&globalThis.process.versions.v8),at.add("dom",e),at("host-browser")){const r=navigator,i=r.userAgent,n=r.appVersion,o=parseFloat(n);if(at.add("wp",parseFloat(i.split("Windows Phone")[1])||void 0),at.add("msapp",parseFloat(i.split("MSAppHost/")[1])||void 0),at.add("khtml",n.includes("Konqueror")?o:void 0),at.add("edge",parseFloat(i.split("Edge/")[1])||void 0),at.add("opr",parseFloat(i.split("OPR/")[1])||void 0),at.add("webkit",!at("wp")&&!at("edge")&&parseFloat(i.split("WebKit/")[1])||void 0),at.add("chrome",!at("edge")&&!at("opr")&&parseFloat(i.split("Chrome/")[1])||void 0),at.add("android",!at("wp")&&parseFloat(i.split("Android ")[1])||void 0),at.add("safari",!n.includes("Safari")||at("wp")||at("chrome")||at("android")||at("edge")||at("opr")?void 0:parseFloat(n.split("Version/")[1])),at.add("mac",n.includes("Macintosh")),!at("wp")&&i.match(/(iPhone|iPod|iPad)/)){const s=RegExp.$1.replace(/P/,"p"),l=i.match(/OS ([\d_]+)/)?RegExp.$1:"1",a=parseFloat(l.replace(/_/,".").replace(/_/g,""));at.add(s,a),at.add("ios",a)}at.add("trident",parseFloat(n.split("Trident/")[1])||void 0),at("webkit")||(!i.includes("Gecko")||at("wp")||at("khtml")||at("trident")||at("edge")||at.add("mozilla",o),at("mozilla")&&at.add("ff",parseFloat(i.split("Firefox/")[1]||i.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&at.add("esri-mobile",t),r&&at.add("esri-iPhone",r),at.add("esri-geolocation",!!navigator.geolocation)}at.add("esri-canvas-svg-support",!at("trident")),at.add("esri-wasm","WebAssembly"in globalThis),at.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),at.add("wasm-simd",()=>{const 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))}),at.add("esri-atomics","Atomics"in globalThis),at.add("esri-workers","Worker"in globalThis),at.add("web-feat:cache","caches"in globalThis),at.add("esri-workers-arraybuffer-transfer",!at("safari")||Number(at("safari"))>=12),at.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),at.add("featurelayer-simplify-payload-size-factors",[1,1,4]),at.add("featurelayer-snapshot-enabled",!0),at.add("featurelayer-snapshot-point-min-threshold",8e4),at.add("featurelayer-snapshot-point-max-threshold",4e5),at.add("featurelayer-snapshot-point-coverage",.1),at.add("featurelayer-advanced-symbols",!1),at.add("featurelayer-pbf",!0),at.add("featurelayer-pbf-statistics",!1),at.add("feature-layers-workers",!0),at.add("feature-polyline-generalization-factor",1),at.add("mapview-transitions-duration",200),at.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),at.add("mapserver-pbf-enabled",!1),at.add("mapimagelayer-popup-identify-max-tolerance",20),at.add("heatmap-allow-raster-fallback",!0),at.add("heatmap-force-raster",!1),at("host-webworker")||at("host-browser")&&(at.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),at.add("esri-image-decode",()=>{if("decode"in new Image){const 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(()=>{at.add("esri-image-decode",!0,!0,!0)}).catch(()=>{at.add("esri-image-decode",!1,!0,!0)})}return!1}),at.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})();const SBe=null;function ue(e){return e!=null}function et(e){return e==null}function oh(e,t){return ue(e)?t(e):SBe}function gmt(e){return e}function Hl(e,t){return aJ(e,t),e}function aJ(e,t){if(et(e))throw new Error(t!=null?t:"value is None")}function Y4(e,t){return ue(e)?e:typeof t=="function"?t():t}function ymt(e,t){return ue(e)?e:t}function yn(e){return ue(e)&&e.destroy(),null}function vmt(e){return ue(e)&&e.dispose(),null}function Dn(e){return ue(e)&&e.remove(),null}function kS(e){return ue(e)&&e.abort(),null}function bmt(e){return ue(e)&&e.release(),null}function EBe(e,t,r){return ue(e)&&ue(t)?ue(r)?r(e,t):e.equals(t):e===t}function TBe(e){return null}function _mt(e,t){const r=new Array;for(const i of e)r.push(Nb(i,null,t));return r}function wmt(e,t){for(const r of e)oh(r,t)}function Nb(e,t,r){return ue(e)?r(e):t}function xmt(e){return e.filter(t=>ue(t))}function cJ(e,...t){let r=e;for(let i=0;i<t.length&&r;++i)r=r[t[i]];return r}function Cmt(e){return e}class Ua{constructor(t=1){this._seed=t}set seed(t){this._seed=t!=null?t:Math.random()*Ua._m}getInt(){return this._seed=(Ua._a*this._seed+Ua._c)%Ua._m,this._seed}getFloat(){return this.getInt()/(Ua._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){const i=r-t;return t+this.getInt()/Ua._m*i}}Ua._m=2147483647,Ua._a=48271,Ua._c=0;function ABe(e,t){return t?e.filter((r,i,n)=>n.findIndex(t.bind(null,r))===i):e.filter((r,i,n)=>n.indexOf(r)===i)}function O3(e,t,r){if(et(e)&&et(t))return!0;if(et(e)||et(t)||e.length!==t.length)return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function kmt(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let i=0;i<t.length;++i)e[i]!==t[i]&&(e[i]=t[i],r=!0);return r}function Smt(e,t,r){let i,n;return r?(i=t.filter(o=>!e.some(s=>r(s,o))),n=e.filter(o=>!t.some(s=>r(s,o)))):(i=t.filter(o=>!e.includes(o)),n=e.filter(o=>!t.includes(o))),{added:i,removed:n}}function Emt(e){return e&&typeof e.length=="number"}const MBe=!!Array.prototype.fill;function IBe(e,t){if(MBe)return new Array(e).fill(t);const r=new Array(e);for(let i=0;i<e;i++)r[i]=t;return r}function Tmt(e,t){t===void 0&&(t=e,e=0);const r=new Array(t-e);for(let i=e;i<t;i++)r[i-e]=i;return r}class uJ{constructor(){this.last=0}}const dJ=new uJ;function v$(e,t,r,i){i=i||dJ;const n=Math.max(0,i.last-10);for(let s=n;s<r;++s)if(e[s]===t)return i.last=s,s;const o=Math.min(n,r);for(let s=0;s<o;++s)if(e[s]===t)return i.last=s,s;return-1}function PBe(e,t,r,i){const n=r!=null?r:e.length,o=v$(e,t,n,i);if(o!==-1)return e[o]=e[n-1],r==null&&e.pop(),t}const va=new Set;function $Be(e,t,r=e.length,i=t.length,n,o){if(i===0||r===0)return r;va.clear();for(let l=0;l<i;++l)va.add(t[l]);n=n||dJ;const s=Math.max(0,n.last-10);for(let l=s;l<r;++l)if(va.has(e[l])&&(o&&o.push(e[l]),va.delete(e[l]),e[l]=e[r-1],--r,--l,va.size===0||r===0))return va.clear(),r;for(let l=0;l<s;++l)if(va.has(e[l])&&(o&&o.push(e[l]),va.delete(e[l]),e[l]=e[r-1],--r,--l,va.size===0||r===0))return va.clear(),r;return va.clear(),r}new Ua;function OBe(e,t){const r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function Amt(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function LBe(e,t,r){if(e.slice)return e.slice(t,r);t===void 0?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),r===void 0?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const i=Math.max(0,r-t),n=new e.constructor(i);for(let o=0;o<i;o++)n[o]=e[t+o];return n}function Mmt(e){return e instanceof ArrayBuffer||e&&e.constructor&&e.constructor.name==="ArrayBuffer"}function RBe(e){return e instanceof Int8Array||e&&e.constructor&&e.constructor.name==="Int8Array"}function DBe(e){return e instanceof Uint8Array||e&&e.constructor&&e.constructor.name==="Uint8Array"}function NBe(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&e.constructor.name==="Uint8ClampedArray"}function FBe(e){return e instanceof Int16Array||e&&e.constructor&&e.constructor.name==="Int16Array"}function zBe(e){return e instanceof Uint16Array||e&&e.constructor&&e.constructor.name==="Uint16Array"}function jBe(e){return e instanceof Int32Array||e&&e.constructor&&e.constructor.name==="Int32Array"}function VBe(e){return e instanceof Uint32Array||e&&e.constructor&&e.constructor.name==="Uint32Array"}function BBe(e){return e instanceof Float32Array||e&&e.constructor&&e.constructor.name==="Float32Array"}function UBe(e){return e instanceof Float64Array||e&&e.constructor&&e.constructor.name==="Float64Array"}function pJ(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&pJ(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ge(e){if(!e||typeof e!="object"||typeof e=="function")return e;const t=gJ(e);if(ue(t))return t;if(hJ(e))return e.clone();if(fJ(e))return e.map(Ge);if(mJ(e))return e.clone();const r={};for(const i of Object.getOwnPropertyNames(e))r[i]=Ge(e[i]);return r}function b$(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=gJ(e);if(ue(t))return t;if(fJ(e)){let r=!0;const i=e.map(n=>{const o=b$(n);return n!=null&&o==null&&(r=!1),o});return r?i:null}if(hJ(e))return e.clone();if(!mJ(e)){const r=new(Object.getPrototypeOf(e)).constructor;for(const i of Object.getOwnPropertyNames(e)){const n=e[i],o=b$(n);if(n!=null&&o==null)return null;r[i]=o}return r}return null}function hJ(e){return typeof e.clone=="function"}function fJ(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function mJ(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function HV(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function gJ(e){if(RBe(e)||DBe(e)||NBe(e)||FBe(e)||zBe(e)||jBe(e)||VBe(e)||BBe(e)||UBe(e))return LBe(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,i]of e)t.set(r,Ge(i));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(Ge(r));return t}return null}function K4(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 WBe(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)&&O3(e,t):e instanceof Set?t instanceof Set&&GBe(e,t):e instanceof Map?t instanceof Map&&qBe(e,t):!!HV(e)&&HV(t)&&HBe(e,t))}function HBe(e,t){if(e===null||t===null)return!1;const r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(const i of r)if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1;return!0}function GBe(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function qBe(e,t){if(e.size!==t.size)return!1;for(const[r,i]of e){const n=t.get(r);if(n!==i||n===void 0&&!t.has(r))return!1}return!0}function yJ(e,t,r=!1){return bJ(e,t,r)}function _0(e,t){if(t!=null)return t[e]||vJ(e.split("."),!1,t)}function Wo(e,t,r){const i=e.split("."),n=i.pop(),o=vJ(i,!0,r);o&&n&&(o[n]=t)}function vJ(e,t,r){let i=r;for(const n of e){if(i==null)return;if(!(n in i)){if(!t)return;i[n]={}}i=i[n]}return i}function bJ(e,t,r){return t?Object.keys(t).reduce((i,n)=>{let o=i[n],s=t[n];return o===s?i:o===void 0?(i[n]=Ge(s),i):(Array.isArray(s)||Array.isArray(i)?(o=o?Array.isArray(o)?i[n]=o.concat():i[n]=[o]:i[n]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(l=>{o.includes(l)||o.push(l)}):i[n]=s.concat())):s&&typeof s=="object"?i[n]=bJ(o,s,r):i.hasOwnProperty(n)&&!t.hasOwnProperty(n)||(i[n]=s),i)},e||{}):e}var pH;const pi={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:(pH=globalThis.location)==null?void 0:pH.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",portalUrl:"https://www.arcgis.com",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:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(yJ(pi,globalThis.esriConfig,!0),delete pi.has),!pi.assetsPath){{const e="4.25.5";pi.assetsPath=`https://js.arcgis.com/${e.slice(0,-2)}/@arcgis/core/assets`}pi.defaultAssetsPath=pi.assetsPath}const YBe=/\{([^\}]+)\}/g;function GV(e){return e!=null?e:""}function uc(e,t){return e.replace(YBe,typeof t=="object"?(r,i)=>GV(_0(i,t)):(r,i)=>GV(t(i)))}function Imt(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,r=>t&&t.includes(r)?r:`\\${r}`)}function Z4(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function Pmt(e){return new DOMParser().parseFromString(e||"","text/html").body.innerText||""}const qV={info:0,warn:1,error:2,none:3};class ft{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,ft._loggers[this.module]=this;const r=this.module.lastIndexOf(".");r!==-1&&(this._parent=ft.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(){const t=this;return{loggedMessages:t._loggedMessages,clearLoggedWarnings:()=>t._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(t={}){const r=ft._loggers;return ft._loggers=t,r},set throttlingDisabled(t){ft._throttlingDisabled=t}}}static getLogger(t){let r=ft._loggers[t];return r||(r=new ft({module:t})),r}_log(t,r,...i){if(!!this._matchLevel(t)){if(r!=="always"&&!ft._throttlingDisabled){const n=this._argsToKey(i),o=this._loggedMessages[t].get(n);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=ft._tickCounter)return;this._loggedMessages[t].set(n,ft._tickCounter),ft._scheduleTickCounterIncrement()}for(const n of pi.log.interceptors)if(n(t,this.module,...i))return;this._inheritedWriter()(t,this.module,...i)}}_parentWithMember(t,r){let i=this;for(;ue(i);){const n=i[t];if(ue(n))return n;i=i.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(t,r,...i){console[t](`[${r}]`,...i)}_matchLevel(t){const r=pi.log.level?pi.log.level:"warn";return qV[this._parentWithMember("level",r)]<=qV[t]}_argsToKey(...t){const r=(i,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]";return Z4(JSON.stringify(t,r))}static _scheduleTickCounterIncrement(){ft._tickCounterScheduled||(ft._tickCounterScheduled=!0,Promise.resolve().then(()=>{ft._tickCounter++,ft._tickCounterScheduled=!1}))}}ft._loggers={},ft._tickCounter=0,ft._tickCounterScheduled=!1,ft._throttlingDisabled=!1;function L3(e,t){for(const[r,i]of e)if(t(i,r))return!0;return!1}function _J(e,t,r){const i=e.get(t);if(i!==void 0)return i;const n=r();return e.set(t,n),n}const lv=ft.getLogger("esri.core.accessorSupport.ensureTypes");function KBe(e){return e==null?e:new Date(e)}function ZBe(e){return e==null?e:!!e}function ex(e){return e==null?e:e.toString()}function Gl(e){return e==null?e:(e=parseFloat(e),isNaN(e)?0:e)}function R3(e){return e==null?e:Math.round(parseFloat(e))}function wJ(e){return e&&e.constructor&&e.constructor.__accessorMetadata__!==void 0}function SS(e,t){return t!=null&&e&&!(t instanceof e)}function xJ(e){return e&&"isCollection"in e}function YV(e){return e&&e.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function QBe(e,t){if(!t||!t.constructor||!xJ(t.constructor))return _$(e,t)?t:new e(t);const r=YV(e.prototype.itemType),i=YV(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_$(e,t),t):new e(t):t}function _$(e,t){return!!wJ(t)&&(lv.error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+D3(e)+"'"),!0)}function Jw(e,t){return t==null?t:xJ(e)?QBe(e,t):SS(e,t)?_$(e,t)?t:new e(t):t}function D3(e){return e&&e.prototype&&e.prototype.declaredClass||"unknown"}const JBe=new WeakMap;function XBe(e){switch(e){case Number:return Gl;case ni:return R3;case Boolean:return ZBe;case String:return ex;case Date:return KBe;default:return _J(JBe,e,()=>Jw.bind(null,e))}}function _n(e,t){const r=XBe(e);return arguments.length===1?r:r(t)}function Xw(e,t,r){return arguments.length===1?Xw.bind(null,e):t&&(Array.isArray(t)?t.map(i=>e(i,r)):[e(t,r)])}function e7e(e,t){return arguments.length===1?Xw(_n.bind(null,e)):Xw(_n.bind(null,e),t)}function CJ(e,t,r){return t!==0&&Array.isArray(r)?r.map(i=>CJ(e,t-1,i)):e(r)}function ES(e,t,r){if(arguments.length===2)return ES.bind(null,e,t);if(!r)return r;let i=t,n=r=CJ(e,t,r);for(;i>0&&Array.isArray(n);)i--,n=n[0];if(n!==void 0)for(let o=0;o<i;o++)r=[r];return r}function t7e(e,t,r){return arguments.length===2?ES(_n.bind(null,e),t):ES(_n.bind(null,e),t,r)}function kJ(e){return!!Array.isArray(e)&&!e.some(t=>{const r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function w$(e,t){if(arguments.length===2)return w$(e).call(null,t);const r=new Set,i=e.filter(l=>typeof l!="function"),n=e.filter(l=>typeof l=="function");for(const 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;const c=typeof l,u=c==="string"||c==="number";return u&&(r.has(l)||n.some(p=>c==="string"&&p===String||c==="number"&&p===Number))||c==="object"&&n.some(p=>!SS(l,p))?l:(u&&i.length?(o||(o=i.map(p=>typeof p=="string"?`'${p}'`:`${p}`).join(", ")),lv.error("Accessor#set",`'${l}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof l=="object"&&n.length?(s||(s=n.map(p=>D3(p)).join(", ")),lv.error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):lv.error("Accessor#set",`'${l}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function au(e,t){if(arguments.length===2)return au(e).call(null,t);const r={},i=[],n=[];for(const a in e.typeMap){const c=e.typeMap[a];r[a]=_n(c),i.push(D3(c)),n.push(a)}const o=()=>`'${i.join("', '")}'`,s=()=>`'${n.join("', '")}'`,l=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!SS(e.base,a)||a==null)return a;const c=l(a)||e.defaultKeyValue,u=r[c];if(!u)return lv.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(!SS(e.typeMap[c],a))return a;if(typeof e.key=="string"&&!wJ(a)){const p={};for(const h in a)h!==e.key&&(p[h]=a[h]);return u(p)}return u(a)}}class ni{}const $mt={native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})};function r7e(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function SJ(e){switch(e.type){case"native":return _n(e.value);case"array":return Xw(SJ(e.value));case"one-of":return i7e(e);default:return null}}function i7e(e){let t=null;return(r,i)=>C$(r,e)?r:(t==null&&(t=x$(e)),lv.error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}function x$(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ni:return"integer";case Date:return"date";default:return D3(e.value)}case"array":return`array of ${x$(e.value)}`;case"one-of":{const t=e.values.map(r=>x$(r));return`one of ${t.slice(0,t.length-1)} or ${t[t.length-1]}`}}return"unknown"}function C$(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ni:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string"}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!C$(r,t.value));case"one-of":return t.values.some(r=>C$(e,r))}}function N3(e){return w0(()=>e.forEach(t=>ue(t)&&t.remove()))}function w0(e){return{remove:()=>{e&&(e(),e=void 0)}}}function Nn(e){return e?e.__accessor__?e.__accessor__:e.propertyInvalidated?e:null:null}function n7e(e,t){return e!=null&&e.metadatas&&e.metadatas[t]!=null}function BC(e,t,r){return r?TS(e,t,{policy:r,path:""}):TS(e,t,null)}function TS(e,t,r){return t?Object.keys(t).reduce((i,n)=>{let o=null,s="merge";if(r&&(o=r.path?`${r.path}.${n}`:n,s=r.policy(o)),s==="replace")return i[n]=t[n],i;if(i[n]===void 0)return i[n]=Ge(t[n]),i;let l=i[n],a=t[n];if(l===a)return i;if(Array.isArray(a)||Array.isArray(i))l=l?Array.isArray(l)?i[n]=l.concat():i[n]=[l]:i[n]=[],a&&(Array.isArray(a)||(a=[a]),a.forEach(c=>{l.includes(c)||l.push(c)}));else if(a&&typeof a=="object")if(r){const c=r.path;r.path=o,i[n]=TS(l,a,r),r.path=c}else i[n]=TS(l,a,null);else i.hasOwnProperty(n)&&!t.hasOwnProperty(n)||(i[n]=a);return i},e||{}):e}function EJ(e){return Array.isArray(e)?e:e.split(".")}function KV(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function o7e(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(...KV(r));return t}return KV(e)}function TJ(e,t,r,i){const n=o7e(t);if(n.length!==1){const o=n.map(s=>i(e,s,r));return N3(o)}return i(e,n[0],r)}function AJ(e){let t=!1;return()=>{t||(t=!0,e())}}function MJ(e,t){const r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){const n=parseInt(r,10);if(!isNaN(n))return Array.isArray(t)?t[n]:t.getItemAt(n)}const i=Nn(t);return n7e(i,r)?i.get(r):t[r]}function IJ(e,t,r){if(e==null)return e;const i=MJ(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:IJ(i,t,r+1)}function tx(e,t,r=0){return typeof t!="string"||t.includes(".")?IJ(e,EJ(t),r):MJ(t,e)}function AS(e,t){return tx(e,t)}function ZV(e,t){return tx(t,e)!==void 0}class QV{constructor(t){this.autoDestroy=!1,this.properties=t}}function rx(e){let t=e.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){const i=Object.create(t.properties),n=t.autoDestroy;for(const o in i)i[o]=Ge(i[o]);t=new QV(i),t.autoDestroy=n,Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t=new QV({}),Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function s7e(e){return rx(e).properties}function F3(e,t){const r=s7e(e);let i=r[t];return i||(i=r[t]={}),i}function l7e(e,t){return BC(e,t,c7e)}const a7e=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function c7e(e){return a7e.test(e)?"replace":"merge"}function u7e(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(r,i)=>{if(i==="")return"$";const n=_0(i,t),o=n!=null?n:"";if(o===void 0)throw new Error(`could not find key "${i}" in template`);return o.toString()})}class z3{constructor(t,r,i){var n;this.name=t,this.details=i,this instanceof z3&&(this.message=(n=r&&u7e(r,i))!=null?n:"")}toString(){return"["+this.name+"]: "+this.message}}class ze extends z3{constructor(t,r,i){if(super(t,r,i),!(this instanceof ze))return new ze(t,r,i)}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 Ge(r)}catch{return"[object]"}}))}}catch(t){throw ft.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new ze(t.name,t.message,t.details)}}ze.prototype.type="error";function MS(e,t,r){if(e&&t)if(typeof t=="object")for(const i of Object.getOwnPropertyNames(t))MS(e,i,t[i]);else{if(t.includes(".")){const n=t.split("."),o=n.splice(n.length-1,1)[0];return void MS(AS(e,n),o,r)}const i=e.__accessor__;i!=null&&d7e(t,i),e[t]=r}}function d7e(e,t){if(at("esri-unknown-property-errors")&&!p7e(e,t))throw new ze("set:unknown-property",h7e(e,t))}function p7e(e,t){return t.metadatas[e]!=null}function h7e(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}function f(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.`);const i=Object.getOwnPropertyDescriptor(t,r),n=F3(t,r);i&&(i.get||i.set?(n.get=i.get||n.get,n.set=i.set||n.set):"value"in i&&("value"in e&&ft.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),n.value=e.value=i.value)),e.readOnly!=null&&(n.readOnly=e.readOnly);const o=e.aliasOf;if(o){const a=typeof o=="string"?o:o.source,c=typeof o=="string"?null:o.overridable===!0;let u;n.dependsOn=[a],n.get=function(){let p=AS(this,a);if(typeof p=="function"){u||(u=a.split(".").slice(0,-1).join("."));const h=AS(this,u);h&&(p=p.bind(h))}return p},n.readOnly||(n.set=c?function(p){this._override(r,p)}:function(p){MS(this,a,p)})}const s=e.type,l=e.types;n.cast||(s?n.cast=f7e(s):l&&(Array.isArray(l)?n.cast=Xw(au(l[0])):n.cast=au(l))),l7e(n,e),e.range&&(n.cast=m7e(n.cast,e.range))}}function PJ(e,t,r){const i=F3(e,r);i.json||(i.json={});let n=i.json;return t!==void 0&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}function f7e(e){let t=0,r=e;if(r7e(e))return SJ(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;const i=r;if(kJ(i))return t===0?w$(i):ES(w$(i),t);if(t===1)return e7e(i);if(t>1)return t7e(i,t);const n=e;return n.from?n.from:_n(n)}function m7e(e,t){return r=>{let i=+e(r);return t.step!=null&&(i=Math.round(i/t.step)*t.step),t.min!=null&&(i=Math.max(t.min,i)),t.max!=null&&(i=Math.min(t.max,i)),i}}var td;(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED"})(td||(td={}));var mi;(function(e){e[e.Dirty=1]="Dirty",e[e.Overriden=2]="Overriden",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"})(mi||(mi={}));const IS={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},Fb=[];let Y_=IS;function Fr(e){Y_.onObservableAccessed(e)}let UC=!1,WC=!1;function bd(e,t,r){if(UC)return Q4(e,t,r);$J(e);const i=t.call(r);return OJ(),i}function g7e(e,t){return bd(IS,e,t)}function Q4(e,t,r){const i=UC;UC=!0,$J(e);let n=null;try{n=t.call(r)}catch(o){WC&&ft.getLogger("esri.core.accessorSupport.tracking").error(o)}return OJ(),UC=i,n}function $J(e){Y_=e,Fb.push(e)}function OJ(){const e=Fb.length;if(e>1){const t=Fb.pop();Y_=Fb[e-2],t.onTrackingEnd()}else if(e===1){const t=Fb.pop();Y_=IS,t.onTrackingEnd()}else Y_=IS}function LJ(e,t){if(t.flags&mi.DepTrackingInitialized)return;const r=WC;WC=!1,t.flags&mi.AutoTracked?Q4(t,t.metadata.get,e):RJ(e,t),WC=r}const y7e=[];function RJ(e,t){t.flags&mi.ExplicitlyTracking||(t.flags|=mi.ExplicitlyTracking,Q4(t,()=>{const r=t.metadata.dependsOn||y7e;for(const i of r)if(typeof i!="string"||i.includes(".")){const n=EJ(i);for(let o=0,s=e;o<n.length&&s!=null&&typeof s=="object";++o)s=JV(s,n[o],o!==n.length-1)}else JV(e,i,!1)}),t.flags&=~mi.ExplicitlyTracking)}function JV(e,t,r){var o;const i=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){const s=parseInt(i,10);if(!isNaN(s))return Array.isArray(e)?e[s]:e.getItemAt(s)}const n=(o=Nn(e))==null?void 0:o.properties.get(i);return n&&(Fr(n),LJ(e,n)),r?e[i]:void 0}function v7e(e){if(e.json&&e.json.origins){const t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(const i in r)if(t[i]){const n=t[i];r[i].forEach(o=>{t[o]=n}),delete t[i]}}}class cs extends z3{constructor(t,r,i){if(super(t,r,i),!(this instanceof cs))return new cs(t,r,i)}}cs.prototype.type="warning";function DJ(e){return!!e&&e.prototype&&e.prototype.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}const k$=ft.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function XV(e,t,r){var i,n;e&&(!r&&!t.read||((i=t.read)==null?void 0:i.reader)||((n=t.read)==null?void 0:n.enabled)===!1||w7e(e)&&Wo("read.reader",Uh(e),t))}function Uh(e){var r,i,n;const t=(r=e.ndimArray)!=null?r:0;if(t>1)return _7e(e);if(t===1)return e9(e);if("type"in e&&FJ(e.type)){const o=(n=(i=e.type.prototype)==null?void 0:i.itemType)==null?void 0:n.Type,s=e9(typeof o=="function"?{type:o}:{types:o});return(l,a,c)=>{const u=s(l,a,c);return u&&new e.type(u)}}return J4(e)}function J4(e){return"type"in e?b7e(e.type):x7e(e.types)}function b7e(e){return e.prototype.read?(t,r,i)=>{if(t==null)return t;const n=typeof t;if(n!=="object")return void k$.error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);const o=new e;return o.read(t,i),o}:e.fromJSON}function NJ(e,t,r,i){return i!==0&&Array.isArray(t)?t.map(n=>NJ(e,n,r,i-1)):e(t,void 0,r)}function _7e(e){var n;const t=J4(e),r=NJ.bind(null,t),i=(n=e.ndimArray)!=null?n:0;return(o,s,l)=>{if(o==null)return o;o=r(o,l,i);let a=i,c=o;for(;a>0&&Array.isArray(c);)a--,c=c[0];if(c!==void 0)for(let u=0;u<a;u++)o=[o];return o}}function e9(e){const t=J4(e);return(r,i,n)=>{if(r==null)return r;if(Array.isArray(r)){const s=[];for(const l of r){const a=t(l,void 0,n);a!==void 0&&s.push(a)}return s}const o=t(r,void 0,n);return o!==void 0?[o]:void 0}}function FJ(e){if(!DJ(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?X4(t.Type):zJ(t.Type))}function w7e(e){return"types"in e?zJ(e.types):X4(e.type)}function X4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||FJ(e))}function zJ(e){for(const t in e.typeMap)if(!X4(e.typeMap[t]))return!1;return!0}function x7e(e){var i;let t=null;const r=(i=e.errorContext)!=null?i:"type";return(n,o,s)=>{if(n==null)return n;const l=typeof n;if(l!=="object")return void k$.error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=C7e(e));const a=e.key;if(typeof a!="string")return;const c=n[a],u=c?t[c]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!u){const h=`Type '${c||"unknown"}' is not supported`;return s&&s.messages&&n&&s.messages.push(new cs(`${r}:unsupported`,h,{definition:n,context:s})),void k$.error(h)}const p=new u;return p.read(n,s),p}}function C7e(e){var r,i;const t={};for(const n in e.typeMap){const o=e.typeMap[n],s=rx(o.prototype);if(typeof e.key=="function")continue;const l=s.properties[e.key];if(!l)continue;((r=l.json)==null?void 0:r.type)&&Array.isArray(l.json.type)&&l.json.type.length===1&&typeof l.json.type[0]=="string"&&(t[l.json.type[0]]=o);const a=(i=l.json)==null?void 0:i.write;if(!a||!a.writer){t[n]=o;continue}const c=a.target,u=typeof c=="string"?c:e.key,p={};a.writer(n,p,u),p[u]&&(t[p[u]]=o)}return t}function k7e(e){if(e.json||(e.json={}),r9(e.json),i9(e.json),t9(e.json),e.json.origins)for(const t in e.json.origins)r9(e.json.origins[t]),i9(e.json.origins[t]),t9(e.json.origins[t]);return!0}function t9(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 r9(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 i9(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)}function n9(e,t){var i;if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;const r=(i=e==null?void 0:e.ndimArray)!=null?i:0;e&&(r===1||"type"in e&&DJ(e.type))?t.write.writer=T7e:r>1?t.write.writer=A7e(r):t.types?Array.isArray(t.types)?t.write.writer=E7e(t.types[0]):t.write.writer=S7e(t.types):t.write.writer=e1}function S7e(e){return(t,r,i,n)=>t?jJ(t,e,n)?e1(t,r,i,n):void 0:e1(t,r,i,n)}function jJ(e,t,r){var i,n;for(const o in t.typeMap)if(e instanceof t.typeMap[o])return!0;if(r!=null&&r.messages){const o=(i=t.errorContext)!=null?i:"type",s=`Values of type '${(n=typeof t.key!="function"?e[t.key]:e.declaredClass)!=null?n:"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new ze(`${o}:unsupported`,s,{definition:e,context:r})),ft.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function E7e(e){return(t,r,i,n)=>!t||!Array.isArray(t)?e1(t,r,i,n):e1(t.filter(o=>jJ(o,e,n)),r,i,n)}function e1(e,t,r,i){Wo(r,PS(e,i),t)}function PS(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?$S(e):e}function $S(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function T7e(e,t,r,i){let n;e===null?n=null:e&&typeof e.map=="function"?(n=e.map(o=>PS(o,i)),typeof n.toArray=="function"&&(n=n.toArray())):n=[PS(e,i)],Wo(r,n,t)}function VJ(e,t,r){return r!==0&&Array.isArray(e)?e.map(i=>VJ(i,t,r-1)):PS(e,t)}function A7e(e){return(t,r,i,n)=>{let o;if(t===null)o=null;else{o=VJ(t,n,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]}Wo(i,o,r)}}function S$(e,t){return eD(e,"read",t)}function BJ(e,t){return eD(e,"write",t)}function eD(e,t,r){let i=e&&e.json;if(e&&e.json&&e.json.origins&&r){const n=r.origin&&e.json.origins[r.origin];n&&(t==="any"||t in n)&&(i=n)}return i}function M7e(e){const t=I7e(e);if(e.json.origins)for(const r in e.json.origins){const i=e.json.origins[r],n=i.types?P7e(i):t;XV(n,i,!1),i.types&&!i.write&&e.json.write&&e.json.write.enabled&&(i.write={...e.json.write}),n9(n,i)}XV(t,e.json,!0),n9(t,e.json)}function I7e(e){return e.json.types?E$(e.json):e.type?UJ(e):E$(e)}function P7e(e){return e.type?UJ(e):E$(e)}function UJ(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!kJ(r);)r=r[0],t++;return{type:r,ndimArray:t}}function E$(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 $7e(e){k7e(e)&&(v7e(e),M7e(e))}const sM=new Set,lM=new Set;function se(e){return t=>{t.prototype.declaredClass=e,L7e(t);const r=[],i=[];let n=t.prototype;for(;n;)n.hasOwnProperty("initialize")&&!sM.has(n.initialize)&&(sM.add(n.initialize),r.push(n.initialize)),n.hasOwnProperty("destroy")&&!lM.has(n.destroy)&&(lM.add(n.destroy),i.push(n.destroy)),n=Object.getPrototypeOf(n);sM.clear(),lM.clear();class o 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)}}),i.length){let a=!1;Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0;for(let c=0;c<i.length;c++)i[c].call(this)}}})}this.postscript(...l)}}}return o.__accessorMetadata__=rx(t.prototype),o.prototype.declaredClass=e,o}}function O7e(e,t){return t.get==null?function(){const r=this.__accessor__.properties.get(e);if(r===void 0)return;Fr(r);const i=this.__accessor__.store;return i.has(e)?i.get(e):r.metadata.value}:function(){const r=this.__accessor__.properties.get(e);if(r!==void 0)return r.getComputed()}}function L7e(e){const t=e.prototype,r=rx(t).properties,i={};for(const n of Object.getOwnPropertyNames(r)){const o=r[n];$7e(o),i[n]={enumerable:!0,configurable:!0,get:O7e(n,o),set(s){const l=this.__accessor__;if(l!==void 0){if(!Object.isFrozen(this)){if(l.initialized&&o.readOnly)throw new TypeError(`[accessor] cannot assign to read-only property '${n}' of ${this.declaredClass}`);if(l.lifecycle===td.CONSTRUCTED&&o.constructOnly)throw new TypeError(`[accessor] cannot assign to construct-only property '${n}' of ${this.declaredClass}`);l.set(n,s)}}else Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,i)}function Omt(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function R7e(e,t){for(const r of e)if(r!=null&&t(r))return r}function OS(e){return e!=null&&typeof e[Symbol.iterator]=="function"}class hs{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(OS(t)){const i=this._getOrCreateGroup(r);for(const n of t)this._isHandle(n)&&i.push(n)}else this._isHandle(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(i=>i.forEach(t));else{const i=this._getGroup(t);i&&r&&i.forEach(r)}}has(t){return this._groups.has(this._ensureGroupKey(t))}remove(t){if(typeof t!="string"&&OS(t)){for(const r of t)this.remove(r);return this}return this.has(t)?(this._removeAllFromGroup(this._getGroup(t)),this._groups.delete(this._ensureGroupKey(t)),this):this}removeAll(){return this._groups.forEach(t=>this._removeAllFromGroup(t)),this._groups.clear(),this}_isHandle(t){return t&&!!t.remove}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);const r=[];return this._groups.set(this._ensureGroupKey(t),r),r}_getGroup(t){return this._groups.get(this._ensureGroupKey(t))}_ensureGroupKey(t){return t||"_default_"}_removeAllFromGroup(t){t.forEach(r=>r.remove())}}function D7e(e){return e&&e.release&&typeof e.release=="function"}function N7e(e){return e&&e.acquire&&typeof e.acquire=="function"}class dc{constructor(t,r,i,n=1,o=0){if(this._ctor=t,this._acquireFunction=r,this._releaseFunction=i,this.allocationSize=n,this._pool=new Array(o),this._initialSize=o,this._ctor)for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...t){let r;if(dc.test.disabled)r=new this._ctor;else{if(this._pool.length===0){const i=this.allocationSize;for(let n=0;n<i;n++)this._pool[n]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):N7e(r)&&r.acquire(...t),r}release(t){t&&!dc.test.disabled&&(this._releaseFunction?this._releaseFunction(t):D7e(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){const i=this._pool[r];this._dispose(i)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}}dc.test={disabled:!1};var Ht;(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.USER=6]="USER"})(Ht||(Ht={}));const T$=Ht.USER+1;function Ls(e){switch(e){case"defaults":return Ht.DEFAULTS;case"service":return Ht.SERVICE;case"portal-item":return Ht.PORTAL_ITEM;case"web-scene":return Ht.WEB_SCENE;case"web-map":return Ht.WEB_MAP;case"user":return Ht.USER;default:return null}}function t1(e){switch(e){case Ht.DEFAULTS:return"defaults";case Ht.SERVICE:return"service";case Ht.PORTAL_ITEM:return"portal-item";case Ht.WEB_SCENE:return"web-scene";case Ht.WEB_MAP:return"web-map";case Ht.USER:return"user"}return void 0}function F7e(e){return t1(e)}class WJ{constructor(t,r){this._observers=t,this._observer=r}remove(){OBe(this._observers,this._observer)}}class o9{constructor(t,r,i){this.properties=t,this.propertyName=r,this.metadata=i,this._observers=null,this._accessed=null,this._handles=null,this.flags=mi.Dirty|(i.nonNullable?mi.NonNullable:0)|(i.hasOwnProperty("value")?mi.HasDefaultValue:0)|(i.get===void 0?mi.DepTrackingInitialized:0)|(i.dependsOn===void 0?mi.AutoTracked:0)}destroy(){if(this.flags&mi.Dirty&&this._observers){const t=this._observers.slice();for(const r of t)r.onCommitted()}this._accessed=null,this._observers=null,this._clearObservationHandles()}getComputed(){Fr(this);const t=this.properties.store,r=this.propertyName,i=this.flags,n=t.get(r);if(i&mi.Computing||~i&mi.Dirty&&t.has(r))return n;this.flags|=mi.Computing;const o=this.properties.host;let s;i&mi.AutoTracked?s=bd(this,this.metadata.get,o):(RJ(o,this),s=this.metadata.get.call(o)),t.set(r,s,Ht.COMPUTED);const l=t.get(r);return l===n?this.flags&=~mi.Dirty:g7e(this.commit,this),this.flags&=~mi.Computing,l}onObservableAccessed(t){t!==this&&(this._accessed===null&&(this._accessed=[]),this._accessed.includes(t)||this._accessed.push(t))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=mi.DepTrackingInitialized;const t=this._accessed;if(t===null)return;let r=this._handles;r===null&&(r=this._handles=[]);for(let i=0;i<t.length;++i)r.push(t[i].observe(this));t.length=0}observe(t){return this._observers===null&&(this._observers=[]),this._observers.includes(t)||this._observers.push(t),new WJ(this._observers,t)}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}onInvalidated(){~this.flags&mi.Overriden&&(this.flags|=mi.Dirty);const t=this._observers;if(t!==null)for(let r=0;r<t.length;++r)t[r].onInvalidated()}commit(){this.flags&=~mi.Dirty,this.onCommitted()}onCommitted(){if(this._observers===null)return;const t=this._observers.slice();for(let r=0;r<t.length;++r)t[r].onCommitted()}_clearObservationHandles(){const t=this._handles;if(t!==null){for(let r=0;r<t.length;++r)t[r].remove();t.length=0}}}class tD{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const r=new tD;return this._values.forEach((i,n)=>{t&&t.has(n)||r.set(n,Ge(i))}),r}get(t){return this._values.get(t)}originOf(){return Ht.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 m2(e,t,r){return e!==void 0}function s9(e,t,r,i){return e!==void 0&&(!(r==null&&e.flags&mi.NonNullable)||(i.lifecycle,td.INITIALIZING,!1))}function z7e(e){return e&&typeof e.destroy=="function"}ft.getLogger("esri.core.accessorSupport.Properties");class j7e{constructor(t){this.host=t,this.properties=new Map,this.ctorArgs=null,this.destroyed=!1,this.lifecycle=td.INITIALIZING,this.store=new tD,this._origin=Ht.USER;const r=this.host.constructor.__accessorMetadata__,i=r.properties;for(const n in i){const o=new o9(this,n,i[n]);this.properties.set(n,o)}this.metadatas=i,this._autoDestroy=r.autoDestroy}initialize(){this.lifecycle=td.CONSTRUCTING}constructed(){this.lifecycle=td.CONSTRUCTED}destroy(){if(this.destroyed=!0,this._autoDestroy)for(const[t,r]of this.properties){const i=this.internalGet(t);i&&z7e(i)&&(i.destroy(),~r.flags&mi.NonNullable&&this._internalSet(r,null)),r.destroy()}else for(const[t,r]of this.properties)r.destroy()}get initialized(){return this.lifecycle!==td.INITIALIZING}get(t){const r=this.properties.get(t);if(r.metadata.get)return r.getComputed();Fr(r);const i=this.store;return i.has(t)?i.get(t):r.metadata.value}originOf(t){const r=this.store.originOf(t);if(r===void 0){const i=this.properties.get(t);if(i!==void 0&&i.flags&mi.HasDefaultValue)return"defaults"}return t1(r)}has(t){return!!this.properties.has(t)&&this.store.has(t)}keys(){return[...this.properties.keys()]}internalGet(t){const r=this.properties.get(t);if(m2(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){const i=this.properties.get(t);m2(i)&&this._internalSet(i,r)}getDependsInfo(t,r,i){const n=this.properties.get(r);if(!m2(n))return"";const o=new Set,s=bd({onObservableAccessed:a=>o.add(a),onTrackingEnd:()=>{}},()=>{var a;return(a=n.metadata.get)==null?void 0:a.call(t)});let l=`${i}${t.declaredClass.split(".").pop()}.${r}: ${s}
- `;if(o.size===0)return l;i+=" ";for(const a of o){if(!(a instanceof o9))continue;const c=a.properties.host,u=a.propertyName,p=Nn(c);l+=p?p.getDependsInfo(c,u,i):`${i}${u}: undefined
- `}return l}setAtOrigin(t,r,i){const n=this.properties.get(t);if(m2(n))return this._setAtOrigin(n,r,i)}isOverridden(t){const r=this.properties.get(t);return r!==void 0&&!!(r.flags&mi.Overriden)}clearOverride(t){const r=this.properties.get(t);r!==void 0&&r.flags&mi.Overriden&&(r.flags&=~mi.Overriden,r.notifyChange())}override(t,r){const i=this.properties.get(t);if(!s9(i,t,r,this))return;const n=i.metadata.cast;if(n){const o=this._cast(n,r),{valid:s,value:l}=o;if(aM.release(o),!s)return;r=l}i.flags|=mi.Overriden,this._internalSet(i,r)}set(t,r){const i=this.properties.get(t);if(!s9(i,t,r,this))return;const n=i.metadata.cast;if(n){const s=this._cast(n,r),{valid:l,value:a}=s;if(aM.release(s),!l)return;r=a}const o=i.metadata.set;o?o.call(this.host,r):this._internalSet(i,r)}setDefaultOrigin(t){this._origin=Ls(t)}getDefaultOrigin(){return t1(this._origin)}notifyChange(t){const r=this.properties.get(t);r!==void 0&&r.notifyChange()}invalidate(t){const r=this.properties.get(t);r!==void 0&&r.invalidate()}commit(t){const r=this.properties.get(t);r!==void 0&&r.commit()}_internalSet(t,r){const i=this.lifecycle!==td.INITIALIZING?this._origin:Ht.DEFAULTS;this._setAtOrigin(t,r,i)}_setAtOrigin(t,r,i){const n=this.store,o=t.propertyName;n.has(o,i)&&K4(r,n.get(o))&&~t.flags&mi.Overriden&&i===n.originOf(o)||(t.invalidate(),n.set(o,r,i),t.commit(),LJ(this.host,t))}_cast(t,r){const i=aM.acquire();return i.valid=!0,i.value=r,t&&(i.value=t.call(this.host,r,i)),i}}class V7e{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const aM=new dc(V7e);function B7e(e){e.length=0}class rs{constructor(t=50,r=50){this._pool=new dc(Array,void 0,B7e,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return cM.acquire()}static release(t){return cM.release(t)}static prune(){cM.prune()}}const cM=new rs(100);class HJ extends dc{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=TBe(this._set)}acquire(...t){const 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)}}const g2=[];function LS(e){g2.push(e),g2.length===1&&queueMicrotask(()=>{const t=g2.slice();g2.length=0;for(const r of t)r()})}class K_{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}record(t){ue(t)&&(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 A$;(function(e){const t=(o,s,l,a)=>{let c=s,u=s;const p=l>>>1,h=o[c-1];for(;u<=p;){u=c<<1,u<l&&a(o[u-1],o[u])<0&&++u;const m=o[u-1];if(a(m,h)<=0)break;o[c-1]=m,c=u}o[c-1]=h},r=(o,s)=>o<s?-1:o>s?1:0;function i(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let u=l>>>1;u>s;u--)t(o,u,l,a);const c=s+1;for(let u=l-1;u>s;u--){const p=o[s];o[s]=o[u],o[u]=p,t(o,c,u,a)}}function*n(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let u=l>>>1;u>s;u--)t(o,u,l,a),yield;const c=s+1;for(let u=l-1;u>s;u--){const p=o[s];o[s]=o[u],o[u]=p,t(o,c,u,a),yield}}e.sort=i,e.iterableSort=n})(A$||(A$={}));const l9=A$,U7e=1.5,W7e=1.1;class gh{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new uJ,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=()=>a9(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const r=new Array;for(let i=0;i<this._length;i++){const n=this.data[i];t(n)&&r.push(n)}return r}getItemAt(t){if(!(t<0||t>=this._length))return this.data[t]}includes(t,r){const i=this.data.indexOf(t,r);return i!==-1&&i<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 i=0;i<r;i++)this.data[this._length++]=t[i]}fill(t,r){for(let i=0;i<r;i++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,a9(this)}pop(){if(this.length===0)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const r=v$(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(v$(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,i){this.length=$Be(this.data,t,this.length,r,this._hint,i),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;const i=this.data[t];this.data[t]=this.data[r],this.data[r]=i}sort(t){l9.sort(this.data,0,this.length,t)}iterableSort(t){return l9.iterableSort(this.data,0,this.length,t)}some(t,r){for(let i=0;i<this.length;++i)if(t.call(r,this.data[i],i,this.data))return!0;return!1}filterInPlace(t,r){let i=0;for(let n=0;n<this._length;++n){const o=this.data[n];t.call(r,o,n,this.data)&&(this.data[n]=this.data[i],this.data[i]=o,i++)}if(this._deallocator)for(let n=i;n<this._length;n++)this.data[n]=this._deallocator(this.data[n]);return this._length=i,this._shrink(),this}forAll(t,r){const i=this.length,n=this.data;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){for(let i=0;i<this.length;++i)t.call(r,this.data[i],i,this.data)}map(t,r){const i=new Array(this.length);for(let n=0;n<this.length;++n)i[n]=t.call(r,this.data[n],n,this.data);return i}reduce(t,r){let i=r;for(let n=0;n<this.length;++n)i=t(i,this.data[n],n,this.data);return i}has(t){const r=this.length,i=this.data;for(let n=0;n<r;++n)if(i[n]===t)return!0;return!1}}function a9(e){e.data.length>U7e*e.length&&(e.data.length=Math.floor(e.length*W7e))}function H7e(e){return{setTimeout:(t,r)=>{const i=e.setTimeout(t,r);return{remove:()=>e.clearTimeout(i)}}}}const ix=H7e(globalThis),c9=new Set;function G7e(e,t,r=!1){r&&c9.has(t)||(r&&c9.add(t),e.warn(`\u{1F6D1} DEPRECATED - ${t}`))}function q7e(e,t,r={}){if(at("esri-deprecation-warnings")){const{moduleName:i}=r;GJ(e,`Property: ${(i?i+"::":"")+t}`,r)}}function GJ(e,t,r={}){if(at("esri-deprecation-warnings")){const{replacement:i,version:n,see:o,warnOnce:s}=r;let l=t;i&&(l+=`
- \u{1F6E0}\uFE0F Replacement: ${i}`),n&&(l+=`
- \u2699\uFE0F Version: ${n}`),o&&(l+=`
- \u{1F517} See ${o} for more details.`),G7e(e,l,s)}}function j3(e){return e&&(typeof e.on=="function"||typeof e.addEventListener=="function")}function V3(e,t,r){if(!j3(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const i=t.slice();for(const n of i)e.addEventListener(n,r);return{remove(){for(const n of i)e.removeEventListener(n,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function qJ(e,t,r){if(!j3(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const i=V3(e,t,n=>{i.remove(),r.call(e,n)});return{remove(){i.remove()}}}const Y7e={Win:"Meta",Scroll:"ScrollLock",Spacebar:" ",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete",Apps:"ContextMenu",Esc:"Escape",Multiply:"*",Add:"+",Subtract:"-",Decimal:".",Divide:"/"};function sm({key:e}){return Y7e[e]||e}function on(e="Aborted"){return new ze("AbortError",e)}function vn(e,t="Aborted"){if(la(e))throw on(t)}function B3(e){return ue(e)?"aborted"in e?e:e.signal:e}function la(e){const t=B3(e);return ue(t)&&t.aborted}function Eg(e){if(us(e))throw e}function M$(e){if(!us(e))throw e}function aa(e,t){const r=B3(e);if(!et(r)){if(!r.aborted)return qJ(r,"abort",()=>t());t()}}function rD(e,t){const r=B3(e);if(!et(r))return vn(r),qJ(r,"abort",()=>t(on()))}function K7e(e,t){const r=B3(t);return et(r)?e:new Promise((i,n)=>{let o=aa(t,()=>n(on()));const s=()=>o=Dn(o);e.then(s,s),e.then(i,n)})}function us(e){return(e==null?void 0:e.name)==="AbortError"}async function av(e){try{return await e}catch(t){if(!us(t))throw t;return}}function _d(){let e=null;const t=new Promise((r,i)=>{e={promise:void 0,resolve:r,reject:i}});return e.promise=t,e}async function Bs(e){if(!e)return;if(typeof e.forEach!="function"){const r=Object.keys(e),i=r.map(s=>e[s]),n=await Bs(i),o={};return r.map((s,l)=>o[s]=n[l]),o}const t=e;return new Promise(r=>{const i=[];let n=t.length;n===0&&r(i),t.forEach(o=>{const s={promise:o||Promise.resolve(o)};i.push(s),s.promise.then(l=>{s.value=l}).catch(l=>{s.error=l}).then(()=>{--n,n===0&&r(i)})})})}async function Z7e(e){return(await Bs(e)).filter(t=>!!t.value).map(t=>t.value)}function U3(e,t,r){const i=new AbortController;return aa(r,()=>i.abort()),new Promise((n,o)=>{let s=setTimeout(()=>{s=0,n(t)},e);aa(i,()=>{s&&(clearTimeout(s),o(on()))})})}function Rd(e){return e&&typeof e.then=="function"}function I$(e){return Rd(e)?e:Promise.resolve(e)}function YJ(e,t=-1){let r,i,n,o,s=null;const l=(...a)=>{if(r){i=a,o&&o.reject(on()),o=_d();const h=o.promise;if(s){const m=s;s=null,m.abort()}return h}if(n=o||_d(),o=null,t>0){const h=new AbortController;r=I$(e(...a,h.signal));const m=r;U3(t).then(()=>{r===m&&(o?h.abort():s=h)})}else r=1,r=I$(e(...a));const c=()=>{const h=i;i=n=r=s=null,h!=null&&l(...h)},u=r,p=n;return u.then(c,c),u.then(p.resolve,p.reject),p.promise};return l}function Q7e(){let e,t;const r=new Promise((n,o)=>{e=n,t=o}),i=n=>{e(n)};return i.resolve=n=>e(n),i.reject=n=>t(n),i.timeout=(n,o)=>ix.setTimeout(()=>i.reject(o),n),i.promise=r,i}async function u9(e){await Promise.resolve(),vn(e)}function Lmt(e){return e}class J7e{constructor(t){this.phases=t,this.paused=!1,this.ticks=-1,this.removed=!1}}class X7e{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let P$=0;const db={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},$$=["prepare","preRender","render","postRender","update","finish"],O$=[],og=new gh;class eUe{constructor(t){this._task=t}remove(){this._task.removed=!0}pause(){this._task.paused=!0}resume(){this._task.paused=!1}}const RS={frameTasks:og,willDispatch:!1,clearFrameTasks:tUe,dispatch:QJ,executeFrameTasks:rUe};function x0(e){const t=new X7e(e);return O$.push(t),RS.willDispatch||(RS.willDispatch=!0,LS(QJ)),t}function Hv(e){const t=new J7e(e);return og.push(t),DS==null&&(P$=performance.now(),DS=requestAnimationFrame(KJ)),new eUe(t)}let DS=null;function tUe(e=!1){og.forAll(t=>{t.removed=!0}),e&&ZJ()}function KJ(){const e=performance.now();DS=null,DS=og.length>0?requestAnimationFrame(KJ):null,RS.executeFrameTasks(e)}function rUe(e){const t=e-P$;P$=e;const r=1e3/60,i=Math.max(0,t-r);for(let n=0;n<$$.length;n++){const o=performance.now(),s=$$[n];og.forAll(l=>{var a;l.paused||l.removed||(n===0&&l.ticks++,l.phases[s]&&(db.time=e,db.deltaTime=l.ticks===0?0:t,db.elapsedFrameTime=performance.now()-e,db.frameDuration=r-i,(a=l.phases[s])==null||a.call(l,db)))}),nUe[n].record(performance.now()-o)}ZJ(),oUe.record(performance.now()-e)}const y2=new gh;function ZJ(){og.forAll(e=>{e.removed&&y2.push(e)}),og.removeUnorderedMany(y2.data,y2.length),y2.clear()}function QJ(){for(;O$.length;){const e=O$.shift();e.isActive&&e.callback()}RS.willDispatch=!1}function iUe(e=1,t){const r=Q7e(),i=()=>{la(t)?r.reject(on()):e===0?r():(--e,LS(()=>i()))};return i(),r.promise}const nUe=$$.map(e=>new K_(e)),oUe=new K_("total");function sUe(e,t){for(const r of e.entries())if(t(r[0]))return!0;return!1}let lUe=0;function Z_(){return++lUe}class W3{constructor(t){this._notify=t,this._accessed=[],this._handles=[],this._invalidCount=0}destroy(){this._accessed.length=0,this.clear()}onInvalidated(){this._invalidCount++}onCommitted(){const t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}onObservableAccessed(t){this._accessed.includes(t)||this._accessed.push(t)}onTrackingEnd(){const t=this._handles,r=this._accessed;for(let i=0;i<r.length;++i)t.push(r[i].observe(this));r.length=0}clear(){const t=this._handles;for(let r=0;r<t.length;++r)t[r].remove();t.length=0}}let cv=!1;const NS=[];function JJ(e,t){let r=new W3(o),i=null,n=!1;function o(){if(!r||n)return;if(cv)return void tX(o);const l=i;r.clear(),cv=!0,n=!0,i=bd(r,e),n=!1,cv=!1,t(i,l),rX()}function s(){r&&(r.destroy(),r=null,i=null)}return n=!0,i=bd(r,e),n=!1,{remove:s}}function XJ(e,t){let r=new W3(n),i=null;function n(){t(i,s)}function o(){r&&(r.destroy(),r=null),i=null}function s(){return r?(r.clear(),i=bd(r,e),i):null}return s(),{remove:o}}function eX(e){let t=new W3(i),r=!1;function i(){t&&!r&&(cv?tX(i):(t.clear(),cv=!0,r=!0,bd(t,e),r=!1,cv=!1,rX()))}function n(){t&&(t.destroy(),t=null)}return r=!0,bd(t,e),r=!1,{remove:n}}function tX(e){NS.includes(e)||NS.unshift(e)}function rX(){for(;NS.length;)NS.pop()()}var Q_;(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Q_||(Q_={}));class r1{constructor(){this.uid=Z_(),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,i,n,o){return this.pool.acquire(Q_.Untracked,t,r,i,n,o,K4)}static acquireTracked(t,r,i,n){return this.pool.acquire(Q_.Tracked,t,r,i,null,null,n)}notify(t,r){this.type===Q_.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r)}acquire(t,r,i,n,o,s,l){this.uid=Z_(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=i,this.getValue=n,this.target=o,this.path=s,this.equals=l}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=Z_(),this.removed=!0}}r1.pool=new HJ(r1);const HC=new rs,ad=new Set;let FS;function zS(e){ad.delete(e),ad.add(e),FS||(FS=x0(uUe))}function aUe(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function cUe(e){for(const t of ad.values())t.target===e&&(t.removed=!0)}function uUe(){let e=10;for(;FS&&e--;){FS=null;const t=dUe(),r=HC.acquire();for(const i of t){const n=i.uid;aUe(i),n===i.uid&&i.removed&&r.push(i)}for(const i of ad)i.removed&&(r.push(i),ad.delete(i));for(const i of r)r1.pool.release(i);HC.release(r),HC.release(t),L$.forEach(i=>i())}}function dUe(){const e=HC.acquire();e.length=ad.size;let t=0;for(const r of ad)e[t]=r,++t;return ad.clear(),e}const L$=new Set;function pUe(e){return L$.add(e),{remove(){L$.delete(e)}}}function hUe(e,t,r){let i=TJ(e,t,r,(n,o,s)=>{let l,a,c=XJ(()=>tx(n,o),(u,p)=>{n.__accessor__.destroyed||l&&l.uid!==a?i.remove():(l||(l=r1.acquireUntracked(u,s,p,n,o),a=l.uid),zS(l))});return{remove:AJ(()=>{c.remove(),l&&(l.uid!==a||l.removed||(l.removed=!0,zS(l)),l=null),i=c=null})}});return i}function fUe(e,t,r){const i=TJ(e,t,r,(n,o,s)=>{let l=!1;return JJ(()=>tx(n,o),(a,c)=>{n.__accessor__.destroyed?i.remove():l||(l=!0,K4(c,a)||s.call(n,a,c,o,n),l=!1)})});return i}function mUe(e,t,r,i=!1){return!e.__accessor__||e.__accessor__.destroyed?{remove(){}}:i?fUe(e,t,r):hUe(e,t,r)}function gUe(e,t,r){let i,n,o=XJ(e,(s,l)=>{i&&i.uid!==n?o.remove():(i||(i=r1.acquireTracked(s,t,l,r),n=i.uid),zS(i))});return{remove:AJ(()=>{o.remove(),i&&(i.uid!==n||i.removed||(i.removed=!0,zS(i)),i=null),o=null})}}function yUe(e,t,r){let i=!1;return JJ(e,(n,o)=>{i||(i=!0,r(o,n)||t(n,o),i=!1)})}function vUe(e,t,r=!1,i=WBe){return r?yUe(e,t,i):gUe(e,t,i)}function d9(e){return sUe(ad,t=>t.oldValue===e)}var iX,nX;function bUe(e){var t;if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return((t=e.constructor)==null?void 0:t.__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}}const bf=Symbol("Accessor-Handles"),R$=Symbol("Accessor-Initialized");class rr{constructor(...t){if(this[iX]=null,this[nX]=!1,this.constructor===rr)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");Object.defineProperty(this,"__accessor__",{enumerable:!1,value:new j7e(this)}),t.length>0&&this.normalizeCtorArgs&&(this.__accessor__.ctorArgs=this.normalizeCtorArgs.apply(this,t))}static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:r,declaredClass:i,constructor:n}=t;delete t.declaredClass,delete t.properties,delete t.constructor;const o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,n&&n.apply(this,a)}}rx(s.prototype);for(const l in t){const a=t[l];s.prototype[l]=typeof a=="function"?function(...c){const u=this.inherited;let p;this.inherited=function(...h){if(o.prototype[l])return o.prototype[l].apply(this,h)};try{p=a.apply(this,c)}catch(h){throw this.inherited=u,h}return this.inherited=u,p}:t[l]}for(const l in r){const a=bUe(r[l]);f(a)(s.prototype,l)}return se(i)(s)}postscript(t){const r=this.__accessor__,i=r.ctorArgs||t;r.initialize(),i&&(this.set(i),r.ctorArgs=null),r.constructed(),this.initialize(),this[R$]=!0}initialize(){}destroy(){this.destroyed||(this[bf]=yn(this[bf]),cUe(this),this.__accessor__.destroy())}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[R$]}get destroyed(){return this.__accessor__&&this.__accessor__.destroyed||!1}commitProperty(t){this.get(t)}get(t){return AS(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 MS(this,t,r),this}watch(t,r,i){return mUe(this,t,r,i)}own(t){this.addHandles(t)}addHandles(t,r){let i=this[bf];et(i)&&(i=this[bf]=new hs),i.add(t,r)}removeHandles(t){const r=this[bf];et(r)||r.remove(t)}hasHandles(t){const r=this[bf];return!!ue(r)&&r.has(t)}_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}}iX=bf,nX=R$;class iD{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const r=new iD;return this._values.forEach((i,n)=>{t&&t.has(n)||r.set(n,Ge(i.value),i.origin)}),r}get(t,r){r=this._normalizeOrigin(r);const i=this._values.get(t);return r==null||(i==null?void 0:i.origin)===r?i==null?void 0:i.value:void 0}originOf(t){var r,i;return(i=(r=this._values.get(t))==null?void 0:r.origin)!=null?i:Ht.USER}keys(t){t=this._normalizeOrigin(t);const r=[...this._values.keys()];return t==null?r:r.filter(i=>{var n;return((n=this._values.get(i))==null?void 0:n.origin)===t})}set(t,r,i){if((i=this._normalizeOrigin(i))===Ht.DEFAULTS){const n=this._values.get(t);if(n&&n.origin!=null&&n.origin>i)return}this._values.set(t,new _Ue(r,i))}delete(t,r){var i;(r=this._normalizeOrigin(r))!=null&&((i=this._values.get(t))==null?void 0:i.origin)!==r||this._values.delete(t)}has(t,r){var i;return(r=this._normalizeOrigin(r))!=null?((i=this._values.get(t))==null?void 0:i.origin)===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},i)=>t(r,i))}_normalizeOrigin(t){if(t!=null)return t===Ht.DEFAULTS?t:Ht.USER}}class _Ue{constructor(t,r){this.value=t,this.origin=r}}function oX(e,t,r){t.keys().forEach(n=>{r.set(n,t.get(n),Ht.DEFAULTS)});const i=e.metadatas;Object.keys(i).forEach(n=>{e.internalGet(n)&&r.set(n,e.internalGet(n),Ht.DEFAULTS)})}function wUe(e,t,r){if(!e||!e.read||e.read.enabled===!1||!e.read.source)return!1;const i=e.read.source;if(typeof i=="string"){if(i===t||i.includes(".")&&i.indexOf(t)===0&&ZV(i,r))return!0}else for(const n of i)if(n===t||n.includes(".")&&n.indexOf(t)===0&&ZV(n,r))return!0;return!1}function xUe(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function CUe(e,t,r,i,n){let o=S$(t[r],n);xUe(o)&&(e[r]=!0);for(const s of Object.getOwnPropertyNames(t))o=S$(t[s],n),wUe(o,r,i)&&(e[s]=!0)}function kUe(e,t,r,i){const n=r.metadatas,o=eD(n[t],"any",i),s=o&&o.default;if(s===void 0)return;const l=typeof s=="function"?s.call(e,t,i):s;l!==void 0&&r.set(t,l)}const sX={origin:"service"};function lX(e,t,r=sX){if(!t||typeof t!="object")return;const i=Nn(e),n=i.metadatas,o={};for(const s of Object.getOwnPropertyNames(t))CUe(o,n,s,t,r);i.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(o)){const l=S$(n[s],r).read,a=l&&l.source;let c;c=a&&typeof a=="string"?tx(t,a):t[s],l&&l.reader&&(c=l.reader.call(e,c,t,r)),c!==void 0&&i.set(s,c)}if(!r||!r.ignoreDefaults){i.setDefaultOrigin("defaults");for(const s of Object.getOwnPropertyNames(n))o[s]||kUe(e,s,i,r)}i.setDefaultOrigin("user")}function SUe(e,t,r,i=sX){var o;const n={...i,messages:[]};r(n),(o=n.messages)==null||o.forEach(s=>{s.type!=="warning"||e.loaded?i&&i.messages&&i.messages.push(s):e.loadWarnings.push(s)})}function EUe(e,t,r,i,n){var s,l;const o={};return(l=(s=t.write)==null?void 0:s.writer)==null||l.call(e,i,o,r,n),o}function aX(e,t,r,i,n,o){if(!i||!i.write)return!1;const s=e.get(r);if(!n&&i.write.overridePolicy){const l=i.write.overridePolicy.call(e,s,r,o);l!==void 0&&(n=l)}if(n||(n=i.write),!n||n.enabled===!1)return!1;if((s===null&&!n.allowNull&&!n.writerEnsuresNonNull||s===void 0)&&n.isRequired){const l=new ze("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return l&&o&&o.messages?o.messages.push(l):l&&!o&&ft.getLogger("esri.core.accessorSupport.write").error(l.name,l.message),!1}return!(s===void 0||s===null&&!n.allowNull&&!n.writerEnsuresNonNull||(!t.store.multipleOriginsSupported||t.store.originOf(r)===Ht.DEFAULTS)&&TUe(e,r,o,i,s)||!n.ignoreOrigin&&o&&o.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<Ls(o.origin))}function TUe(e,t,r,i,n){const o=i.default;if(o===void 0)return!1;if(i.defaultEquals!=null)return i.defaultEquals(n);if(typeof o=="function"){if(Array.isArray(n)){const s=o.call(e,t,r);return O3(s,n)}return!1}return o===n}function AUe(e,t,r,i){const n=Nn(e),o=n.metadatas,s=BJ(o[t],i);return!!s&&aX(e,n,t,s,r,i)}function cX(e,t,r){var o,s;if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return BC(t,e.toJSON(r));const i=Nn(e),n=i.metadatas;for(const l in n){const a=BJ(n[l],r);if(!aX(e,i,l,a,void 0,r))continue;const c=e.get(l),u=EUe(e,a,a.write&&typeof a.write.target=="string"?a.write.target:l,c,r);Object.keys(u).length>0&&(t=BC(t,u),(s=(o=r==null?void 0:r.resources)==null?void 0:o.pendingOperations)!=null&&s.length&&Promise.all(r.resources.pendingOperations).then(()=>BC(t,u)),r&&r.writtenProperties&&r.writtenProperties.push({target:e,propName:l,oldOrigin:F7e(i.store.originOf(l)),newOrigin:r.origin}))}return t}const nx=e=>{let t=class extends e{constructor(...r){super(...r);const i=Nn(this),n=i.store,o=new iD;i.store=o,oX(i,n,o)}read(r,i){lX(this,r,i)}write(r={},i){return cX(this,r,i)}toJSON(r){return this.write({},r)}static fromJSON(r,i){return MUe.call(this,r,i)}};return t=d([se("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function MUe(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}let xt=class extends nx(rr){};xt=d([se("esri.core.JSONSupport")],xt);function Tt(e,t,r){let i,n;return t===void 0||Array.isArray(t)?(n=e,r=t,i=[void 0]):(n=t,i=Array.isArray(e)?e:[e]),(o,s)=>{const l=o.constructor.prototype;i.forEach(a=>{const c=PJ(o,a,n);c.read&&typeof c.read=="object"||(c.read={}),c.read.reader=l[s],r&&(c.read.source=(c.read.source||[]).concat(r))})}}function zt(e,t,r){let i,n;return t===void 0?(n=e,i=[void 0]):typeof t!="string"?(n=e,i=[void 0],r=t):(n=t,i=Array.isArray(e)?e:[e]),(o,s)=>{const l=o.constructor.prototype;for(const a of i){const c=PJ(o,a,n);c.write&&typeof c.write=="object"||(c.write={}),r&&(c.write.target=r),c.write.writer=l[s]}}}var sg;(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(sg||(sg={}));let b;const te={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,5048:0,5167:0,5168: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,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,22332:0,22391:0,22392:0,22700: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,27700: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,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};for(b=2e3;b<=2045;b++)te[b]=0;for(b=2056;b<=2065;b++)te[b]=0;for(b=2067;b<=2135;b++)te[b]=0;for(b=2137;b<=2154;b++)te[b]=0;for(b=2161;b<=2170;b++)te[b]=0;for(b=2172;b<=2193;b++)te[b]=0;for(b=2195;b<=2198;b++)te[b]=0;for(b=2200;b<=2203;b++)te[b]=0;for(b=2205;b<=2217;b++)te[b]=0;for(b=2222;b<=2224;b++)te[b]=1;for(b=2225;b<=2250;b++)te[b]=2;for(b=2251;b<=2253;b++)te[b]=1;for(b=2257;b<=2264;b++)te[b]=2;for(b=2274;b<=2279;b++)te[b]=2;for(b=2280;b<=2282;b++)te[b]=1;for(b=2283;b<=2289;b++)te[b]=2;for(b=2290;b<=2292;b++)te[b]=0;for(b=2308;b<=2313;b++)te[b]=0;for(b=2315;b<=2491;b++)te[b]=0;for(b=2494;b<=2866;b++)te[b]=0;for(b=2867;b<=2869;b++)te[b]=1;for(b=2870;b<=2888;b++)te[b]=2;for(b=2891;b<=2895;b++)te[b]=2;for(b=2896;b<=2898;b++)te[b]=1;for(b=2902;b<=2908;b++)te[b]=2;for(b=2915;b<=2920;b++)te[b]=2;for(b=2921;b<=2923;b++)te[b]=1;for(b=2924;b<=2930;b++)te[b]=2;for(b=2931;b<=2962;b++)te[b]=0;for(b=2964;b<=2968;b++)te[b]=2;for(b=2969;b<=2973;b++)te[b]=0;for(b=2975;b<=2991;b++)te[b]=0;for(b=2995;b<=3051;b++)te[b]=0;for(b=3054;b<=3079;b++)te[b]=0;for(b=3081;b<=3088;b++)te[b]=0;for(b=3092;b<=3101;b++)te[b]=0;for(b=3106;b<=3138;b++)te[b]=0;for(b=3146;b<=3151;b++)te[b]=0;for(b=3153;b<=3166;b++)te[b]=0;for(b=3168;b<=3172;b++)te[b]=0;for(b=3174;b<=3203;b++)te[b]=0;for(b=3294;b<=3358;b++)te[b]=0;for(b=3367;b<=3403;b++)te[b]=0;for(b=3408;b<=3416;b++)te[b]=0;for(b=3417;b<=3438;b++)te[b]=2;for(b=3441;b<=3446;b++)te[b]=2;for(b=3447;b<=3450;b++)te[b]=0;for(b=3451;b<=3459;b++)te[b]=2;for(b=3460;b<=3478;b++)te[b]=0;for(b=3554;b<=3559;b++)te[b]=0;for(b=3560;b<=3570;b++)te[b]=2;for(b=3571;b<=3581;b++)te[b]=0;for(b=3594;b<=3597;b++)te[b]=0;for(b=3601;b<=3604;b++)te[b]=0;for(b=3637;b<=3639;b++)te[b]=0;for(b=3665;b<=3667;b++)te[b]=0;for(b=3693;b<=3695;b++)te[b]=0;for(b=3701;b<=3727;b++)te[b]=0;for(b=3728;b<=3739;b++)te[b]=2;for(b=3740;b<=3751;b++)te[b]=0;for(b=3753;b<=3760;b++)te[b]=2;for(b=3761;b<=3773;b++)te[b]=0;for(b=3775;b<=3777;b++)te[b]=0;for(b=3779;b<=3781;b++)te[b]=0;for(b=3783;b<=3785;b++)te[b]=0;for(b=3788;b<=3791;b++)te[b]=0;for(b=3797;b<=3802;b++)te[b]=0;for(b=3814;b<=3816;b++)te[b]=0;for(b=3825;b<=3829;b++)te[b]=0;for(b=3832;b<=3841;b++)te[b]=0;for(b=3844;b<=3852;b++)te[b]=0;for(b=3873;b<=3885;b++)te[b]=0;for(b=3890;b<=3893;b++)te[b]=0;for(b=3907;b<=3912;b++)te[b]=0;for(b=3942;b<=3950;b++)te[b]=0;for(b=3968;b<=3970;b++)te[b]=0;for(b=3973;b<=3976;b++)te[b]=0;for(b=3986;b<=3989;b++)te[b]=0;for(b=3994;b<=3997;b++)te[b]=0;for(b=4048;b<=4051;b++)te[b]=0;for(b=4056;b<=4063;b++)te[b]=0;for(b=4093;b<=4096;b++)te[b]=0;for(b=4390;b<=4398;b++)te[b]=0;for(b=4399;b<=4413;b++)te[b]=2;for(b=4418;b<=4433;b++)te[b]=2;for(b=4455;b<=4457;b++)te[b]=2;for(b=4484;b<=4489;b++)te[b]=0;for(b=4491;b<=4554;b++)te[b]=0;for(b=4568;b<=4589;b++)te[b]=0;for(b=4652;b<=4656;b++)te[b]=0;for(b=4766;b<=4800;b++)te[b]=0;for(b=5014;b<=5016;b++)te[b]=0;for(b=5069;b<=5072;b++)te[b]=0;for(b=5105;b<=5130;b++)te[b]=0;for(b=5173;b<=5188;b++)te[b]=0;for(b=5253;b<=5259;b++)te[b]=0;for(b=5269;b<=5275;b++)te[b]=0;for(b=5292;b<=5311;b++)te[b]=0;for(b=5329;b<=5331;b++)te[b]=0;for(b=5343;b<=5349;b++)te[b]=0;for(b=5355;b<=5357;b++)te[b]=0;for(b=5387;b<=5389;b++)te[b]=0;for(b=5459;b<=5463;b++)te[b]=0;for(b=5479;b<=5482;b++)te[b]=0;for(b=5518;b<=5520;b++)te[b]=0;for(b=5530;b<=5539;b++)te[b]=0;for(b=5550;b<=5552;b++)te[b]=0;for(b=5562;b<=5583;b++)te[b]=0;for(b=5623;b<=5625;b++)te[b]=2;for(b=5631;b<=5639;b++)te[b]=0;for(b=5649;b<=5653;b++)te[b]=0;for(b=5663;b<=5680;b++)te[b]=0;for(b=5682;b<=5685;b++)te[b]=0;for(b=5875;b<=5877;b++)te[b]=0;for(b=5896;b<=5899;b++)te[b]=0;for(b=5921;b<=5940;b++)te[b]=0;for(b=6050;b<=6125;b++)te[b]=0;for(b=6244;b<=6275;b++)te[b]=0;for(b=6328;b<=6348;b++)te[b]=0;for(b=6350;b<=6356;b++)te[b]=0;for(b=6366;b<=6372;b++)te[b]=0;for(b=6381;b<=6387;b++)te[b]=0;for(b=6393;b<=6404;b++)te[b]=0;for(b=6480;b<=6483;b++)te[b]=0;for(b=6511;b<=6514;b++)te[b]=0;for(b=6579;b<=6581;b++)te[b]=0;for(b=6619;b<=6624;b++)te[b]=0;for(b=6625;b<=6627;b++)te[b]=2;for(b=6628;b<=6632;b++)te[b]=0;for(b=6634;b<=6637;b++)te[b]=0;for(b=6669;b<=6692;b++)te[b]=0;for(b=6707;b<=6709;b++)te[b]=0;for(b=6720;b<=6723;b++)te[b]=0;for(b=6732;b<=6738;b++)te[b]=0;for(b=6931;b<=6933;b++)te[b]=0;for(b=6956;b<=6959;b++)te[b]=0;for(b=7005;b<=7007;b++)te[b]=0;for(b=7057;b<=7070;b++)te[b]=2;for(b=7074;b<=7082;b++)te[b]=0;for(b=7109;b<=7118;b++)te[b]=0;for(b=7119;b<=7127;b++)te[b]=1;for(b=7374;b<=7376;b++)te[b]=0;for(b=7528;b<=7586;b++)te[b]=0;for(b=7587;b<=7645;b++)te[b]=2;for(b=7692;b<=7696;b++)te[b]=0;for(b=7755;b<=7787;b++)te[b]=0;for(b=7791;b<=7795;b++)te[b]=0;for(b=7799;b<=7801;b++)te[b]=0;for(b=7803;b<=7805;b++)te[b]=0;for(b=7825;b<=7831;b++)te[b]=0;for(b=7845;b<=7859;b++)te[b]=0;for(b=8013;b<=8032;b++)te[b]=0;for(b=8065;b<=8068;b++)te[b]=1;for(b=8518;b<=8529;b++)te[b]=2;for(b=8533;b<=8536;b++)te[b]=2;for(b=8538;b<=8540;b++)te[b]=2;for(b=8677;b<=8679;b++)te[b]=0;for(b=8836;b<=8840;b++)te[b]=0;for(b=8857;b<=8859;b++)te[b]=0;for(b=8908;b<=8910;b++)te[b]=0;for(b=9154;b<=9159;b++)te[b]=0;for(b=9205;b<=9218;b++)te[b]=0;for(b=9271;b<=9273;b++)te[b]=0;for(b=9295;b<=9297;b++)te[b]=0;for(b=9356;b<=9360;b++)te[b]=0;for(b=9404;b<=9407;b++)te[b]=0;for(b=9476;b<=9482;b++)te[b]=0;for(b=9487;b<=9494;b++)te[b]=0;for(b=9697;b<=9699;b++)te[b]=0;for(b=20002;b<=20032;b++)te[b]=0;for(b=20062;b<=20092;b++)te[b]=0;for(b=20135;b<=20138;b++)te[b]=0;for(b=20248;b<=20258;b++)te[b]=0;for(b=20348;b<=20358;b++)te[b]=0;for(b=20436;b<=20440;b++)te[b]=0;for(b=20822;b<=20824;b++)te[b]=0;for(b=20904;b<=20932;b++)te[b]=0;for(b=20934;b<=20936;b++)te[b]=0;for(b=21004;b<=21032;b++)te[b]=0;for(b=21035;b<=21037;b++)te[b]=0;for(b=21095;b<=21097;b++)te[b]=0;for(b=21148;b<=21150;b++)te[b]=0;for(b=21207;b<=21264;b++)te[b]=0;for(b=21307;b<=21364;b++)te[b]=0;for(b=21413;b<=21423;b++)te[b]=0;for(b=21453;b<=21463;b++)te[b]=0;for(b=21473;b<=21483;b++)te[b]=0;for(b=21780;b<=21782;b++)te[b]=0;for(b=21891;b<=21894;b++)te[b]=0;for(b=21896;b<=21899;b++)te[b]=0;for(b=22171;b<=22177;b++)te[b]=0;for(b=22181;b<=22187;b++)te[b]=0;for(b=22191;b<=22197;b++)te[b]=0;for(b=22234;b<=22236;b++)te[b]=0;for(b=22521;b<=22525;b++)te[b]=0;for(b=22991;b<=22994;b++)te[b]=0;for(b=23028;b<=23038;b++)te[b]=0;for(b=23830;b<=23853;b++)te[b]=0;for(b=23866;b<=23872;b++)te[b]=0;for(b=23877;b<=23884;b++)te[b]=0;for(b=23886;b<=23894;b++)te[b]=0;for(b=23946;b<=23948;b++)te[b]=0;for(b=24311;b<=24313;b++)te[b]=0;for(b=24342;b<=24347;b++)te[b]=0;for(b=24370;b<=24374;b++)te[b]=10;for(b=24375;b<=24381;b++)te[b]=0;for(b=24718;b<=24721;b++)te[b]=0;for(b=24817;b<=24821;b++)te[b]=0;for(b=24877;b<=24882;b++)te[b]=0;for(b=24891;b<=24893;b++)te[b]=0;for(b=25391;b<=25395;b++)te[b]=0;for(b=25828;b<=25838;b++)te[b]=0;for(b=26191;b<=26195;b++)te[b]=0;for(b=26391;b<=26393;b++)te[b]=0;for(b=26701;b<=26722;b++)te[b]=0;for(b=26729;b<=26799;b++)te[b]=2;for(b=26801;b<=26803;b++)te[b]=2;for(b=26811;b<=26813;b++)te[b]=2;for(b=26847;b<=26870;b++)te[b]=2;for(b=26891;b<=26899;b++)te[b]=0;for(b=26901;b<=26923;b++)te[b]=0;for(b=26929;b<=26946;b++)te[b]=0;for(b=26948;b<=26998;b++)te[b]=0;for(b=27037;b<=27040;b++)te[b]=0;for(b=27205;b<=27232;b++)te[b]=0;for(b=27258;b<=27260;b++)te[b]=0;for(b=27391;b<=27398;b++)te[b]=0;for(b=27561;b<=27564;b++)te[b]=0;for(b=27571;b<=27574;b++)te[b]=0;for(b=27581;b<=27584;b++)te[b]=0;for(b=27591;b<=27594;b++)te[b]=0;for(b=28191;b<=28193;b++)te[b]=0;for(b=28348;b<=28358;b++)te[b]=0;for(b=28402;b<=28432;b++)te[b]=0;for(b=28462;b<=28492;b++)te[b]=0;for(b=29118;b<=29122;b++)te[b]=0;for(b=29168;b<=29172;b++)te[b]=0;for(b=29177;b<=29185;b++)te[b]=0;for(b=29187;b<=29195;b++)te[b]=0;for(b=29900;b<=29903;b++)te[b]=0;for(b=30161;b<=30179;b++)te[b]=0;for(b=30491;b<=30494;b++)te[b]=0;for(b=30729;b<=30732;b++)te[b]=0;for(b=31251;b<=31259;b++)te[b]=0;for(b=31265;b<=31268;b++)te[b]=0;for(b=31275;b<=31279;b++)te[b]=0;for(b=31281;b<=31297;b++)te[b]=0;for(b=31461;b<=31469;b++)te[b]=0;for(b=31491;b<=31495;b++)te[b]=0;for(b=31917;b<=31922;b++)te[b]=0;for(b=31965;b<=32e3;b++)te[b]=0;for(b=32001;b<=32003;b++)te[b]=2;for(b=32005;b<=32031;b++)te[b]=2;for(b=32033;b<=32060;b++)te[b]=2;for(b=32064;b<=32067;b++)te[b]=2;for(b=32074;b<=32077;b++)te[b]=2;for(b=32081;b<=32086;b++)te[b]=0;for(b=32107;b<=32130;b++)te[b]=0;for(b=32133;b<=32158;b++)te[b]=0;for(b=32164;b<=32167;b++)te[b]=2;for(b=32180;b<=32199;b++)te[b]=0;for(b=32201;b<=32260;b++)te[b]=0;for(b=32301;b<=32360;b++)te[b]=0;for(b=32601;b<=32662;b++)te[b]=0;for(b=32664;b<=32667;b++)te[b]=2;for(b=32701;b<=32761;b++)te[b]=0;for(b=53001;b<=53004;b++)te[b]=0;for(b=53008;b<=53019;b++)te[b]=0;for(b=53021;b<=53032;b++)te[b]=0;for(b=53034;b<=53037;b++)te[b]=0;for(b=53042;b<=53046;b++)te[b]=0;for(b=53074;b<=53080;b++)te[b]=0;for(b=54001;b<=54004;b++)te[b]=0;for(b=54008;b<=54019;b++)te[b]=0;for(b=54021;b<=54032;b++)te[b]=0;for(b=54034;b<=54037;b++)te[b]=0;for(b=54042;b<=54046;b++)te[b]=0;for(b=54048;b<=54053;b++)te[b]=0;for(b=54074;b<=54080;b++)te[b]=0;for(b=54098;b<=54101;b++)te[b]=0;for(b=102001;b<=102040;b++)te[b]=0;for(b=102042;b<=102063;b++)te[b]=0;for(b=102065;b<=102067;b++)te[b]=0;for(b=102070;b<=102117;b++)te[b]=0;for(b=102122;b<=102216;b++)te[b]=0;for(b=102221;b<=102377;b++)te[b]=0;for(b=102382;b<=102388;b++)te[b]=0;for(b=102389;b<=102398;b++)te[b]=2;for(b=102399;b<=102444;b++)te[b]=0;for(b=102445;b<=102447;b++)te[b]=2;for(b=102448;b<=102458;b++)te[b]=0;for(b=102459;b<=102468;b++)te[b]=2;for(b=102469;b<=102499;b++)te[b]=0;for(b=102500;b<=102519;b++)te[b]=1;for(b=102520;b<=102524;b++)te[b]=0;for(b=102525;b<=102529;b++)te[b]=2;for(b=102530;b<=102588;b++)te[b]=0;for(b=102590;b<=102598;b++)te[b]=0;for(b=102601;b<=102603;b++)te[b]=0;for(b=102605;b<=102628;b++)te[b]=0;for(b=102629;b<=102646;b++)te[b]=2;for(b=102648;b<=102700;b++)te[b]=2;for(b=102701;b<=102703;b++)te[b]=0;for(b=102707;b<=102730;b++)te[b]=2;for(b=102733;b<=102758;b++)te[b]=2;for(b=102767;b<=102900;b++)te[b]=0;for(b=102901;b<=102933;b++)te[b]=2;for(b=102934;b<=102950;b++)te[b]=13;for(b=102951;b<=102955;b++)te[b]=0;for(b=102961;b<=102963;b++)te[b]=0;for(b=102965;b<=102969;b++)te[b]=0;for(b=102971;b<=102973;b++)te[b]=0;for(b=102975;b<=102989;b++)te[b]=0;for(b=102990;b<=102992;b++)te[b]=1;for(b=102997;b<=103002;b++)te[b]=0;for(b=103003;b<=103008;b++)te[b]=2;for(b=103009;b<=103011;b++)te[b]=0;for(b=103012;b<=103014;b++)te[b]=2;for(b=103019;b<=103021;b++)te[b]=0;for(b=103022;b<=103024;b++)te[b]=2;for(b=103029;b<=103031;b++)te[b]=0;for(b=103032;b<=103034;b++)te[b]=2;for(b=103065;b<=103068;b++)te[b]=0;for(b=103074;b<=103076;b++)te[b]=0;for(b=103077;b<=103079;b++)te[b]=1;for(b=103080;b<=103082;b++)te[b]=0;for(b=103083;b<=103085;b++)te[b]=2;for(b=103090;b<=103093;b++)te[b]=0;for(b=103097;b<=103099;b++)te[b]=0;for(b=103100;b<=103102;b++)te[b]=2;for(b=103107;b<=103109;b++)te[b]=0;for(b=103110;b<=103112;b++)te[b]=2;for(b=103113;b<=103116;b++)te[b]=0;for(b=103117;b<=103120;b++)te[b]=2;for(b=103153;b<=103157;b++)te[b]=0;for(b=103158;b<=103162;b++)te[b]=2;for(b=103163;b<=103165;b++)te[b]=0;for(b=103166;b<=103168;b++)te[b]=1;for(b=103169;b<=103171;b++)te[b]=2;for(b=103186;b<=103188;b++)te[b]=0;for(b=103189;b<=103191;b++)te[b]=2;for(b=103192;b<=103195;b++)te[b]=0;for(b=103196;b<=103199;b++)te[b]=2;for(b=103200;b<=103224;b++)te[b]=0;for(b=103225;b<=103227;b++)te[b]=1;for(b=103232;b<=103237;b++)te[b]=0;for(b=103238;b<=103243;b++)te[b]=2;for(b=103244;b<=103246;b++)te[b]=0;for(b=103247;b<=103249;b++)te[b]=2;for(b=103254;b<=103256;b++)te[b]=0;for(b=103257;b<=103259;b++)te[b]=2;for(b=103264;b<=103266;b++)te[b]=0;for(b=103267;b<=103269;b++)te[b]=2;for(b=103300;b<=103375;b++)te[b]=0;for(b=103381;b<=103383;b++)te[b]=0;for(b=103384;b<=103386;b++)te[b]=1;for(b=103387;b<=103389;b++)te[b]=0;for(b=103390;b<=103392;b++)te[b]=2;for(b=103397;b<=103399;b++)te[b]=0;for(b=103400;b<=103471;b++)te[b]=2;for(b=103476;b<=103478;b++)te[b]=0;for(b=103479;b<=103481;b++)te[b]=2;for(b=103486;b<=103488;b++)te[b]=0;for(b=103489;b<=103491;b++)te[b]=2;for(b=103492;b<=103495;b++)te[b]=0;for(b=103496;b<=103499;b++)te[b]=2;for(b=103528;b<=103543;b++)te[b]=0;for(b=103544;b<=103548;b++)te[b]=2;for(b=103549;b<=103551;b++)te[b]=0;for(b=103552;b<=103554;b++)te[b]=1;for(b=103555;b<=103557;b++)te[b]=2;for(b=103558;b<=103560;b++)te[b]=0;for(b=103571;b<=103573;b++)te[b]=0;for(b=103574;b<=103576;b++)te[b]=2;for(b=103577;b<=103580;b++)te[b]=0;for(b=103581;b<=103583;b++)te[b]=2;for(b=103595;b<=103694;b++)te[b]=0;for(b=103696;b<=103699;b++)te[b]=0;for(b=103700;b<=103793;b++)te[b]=2;for(b=103794;b<=103887;b++)te[b]=0;for(b=103900;b<=103971;b++)te[b]=2;const IUe={102113:!0,102100:!0,3857:!0,3785:!0},PUe={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},p9='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]]',v2=[-20037508342788905e-9,20037508342788905e-9],b2=[-20037508342787e-6,20037508342787e-6],uX={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:v2,origin:b2,dx:1e-5},102100:{wkTemplate:p9,valid:v2,origin:b2,dx:1e-5},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:v2,origin:b2,dx:1e-5},3857:{wkTemplate:p9,valid:v2,origin:b2,dx:1e-5},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}};function So(e,t){return e===t||!et(e)&&!et(t)&&(e.wkid!=null||t.wkid!=null?e.wkid===t.wkid||lg(e)&&lg(t)||t.latestWkid!=null&&e.wkid===t.latestWkid||e.latestWkid!=null&&t.wkid===e.latestWkid:!(!e.wkt||!t.wkt)&&e.wkt.toUpperCase()===t.wkt.toUpperCase())}function rc(e){return ho(e)&&e.wkid&&uX[e.wkid]||null}function dX(e){return!!ho(e)&&(e.wkid?te[e.wkid]==null:!!e.wkt&&!!/^\s*GEOGCS/i.test(e.wkt))}function $Ue(e){return!(H3(e)||G3(e))}function i1(e){return ho(e)&&e.wkid===4326}function Rmt(e){return ho(e)&&e.wkid===sg.CGCS2000}function lg(e){return ho(e)&&e.wkid!=null&&IUe[e.wkid]===!0}function OUe(e){return ho(e)&&e.wkid===32662}function nD(e){return e===sg.GCSMARS2000||e===sg.GCSMARS2000_SPHERE}function H3(e){return ho(e)&&e.wkid!=null&&nD(e.wkid)}function oD(e){return e===sg.GCSMOON2000}function G3(e){return ho(e)&&e.wkid!=null&&oD(e.wkid)}function LUe(e){return ho(e)&&e.wkid!=null&&PUe[e.wkid]===!0}function ho(e){return ue(e)&&(e.wkid!=null&&e.wkid>=2e3||e.wkt!=null)}const RUe={wkid:4326,wkt:uc(uX[4326].wkTemplate,{Central_Meridian:"0.0"})},DUe={wkid:102100,latestWkid:3857},NUe={wkid:32662};var Cc;let bi=Cc=class extends xt{constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}static fromJSON(e){if(!e)return null;if(e.wkid){if(e.wkid===102100)return Cc.WebMercator;if(e.wkid===4326)return Cc.WGS84}const t=new Cc;return t.read(e),t}normalizeCtorArgs(e){return e&&typeof e=="object"?e:{[typeof e=="string"?"wkt":"wkid"]:e}}get isWGS84(){return i1(this)}get isWebMercator(){return lg(this)}get isGeographic(){return dX(this)}get isWrappable(){return LUe(this)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===Cc.WGS84)return Cc.WGS84;if(this===Cc.WebMercator)return Cc.WebMercator;const e=new Cc;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.imageCoordinateSystem&&(e.imageCoordinateSystem=Ge(this.imageCoordinateSystem)),e}equals(e){if(e==null)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(this.imageCoordinateSystem==null||e.imageCoordinateSystem==null)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:i}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return t==null||i?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return So(this,e)}toJSON(e){return this.write(void 0,e)}};bi.GCS_NAD_1927=null,bi.WGS84=null,bi.WebMercator=null,bi.PlateCarree=null,d([f({readOnly:!0})],bi.prototype,"isWGS84",null),d([f({readOnly:!0})],bi.prototype,"isWebMercator",null),d([f({readOnly:!0})],bi.prototype,"isGeographic",null),d([f({readOnly:!0})],bi.prototype,"isWrappable",null),d([f({type:ni,json:{write:!0}})],bi.prototype,"latestWkid",void 0),d([f({type:ni,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkt===null}}}}}}})],bi.prototype,"wkid",void 0),d([f({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkid===null}}}}}}})],bi.prototype,"wkt",void 0),d([zt("wkt"),zt("web-scene","wkt")],bi.prototype,"writeWkt",null),d([f({type:ni,json:{write:!0}})],bi.prototype,"vcsWkid",void 0),d([f({type:ni,json:{write:!0}})],bi.prototype,"latestVcsWkid",void 0),d([f()],bi.prototype,"imageCoordinateSystem",void 0),bi=Cc=d([se("esri.geometry.SpatialReference")],bi),bi.prototype.toJSON.isDefaultToJSON=!0,bi.GCS_NAD_1927=new bi({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]]'}),bi.WGS84=new bi(RUe),bi.WebMercator=new bi(DUe),bi.PlateCarree=new bi(NUe),Object.freeze&&(Object.freeze(bi.GCS_NAD_1927),Object.freeze(bi.WGS84),Object.freeze(bi.WebMercator));const gr=bi;let kc=class extends xt{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=gr.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof gr)return e;if(e!=null){const r=new gr;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}};d([f()],kc.prototype,"type",void 0),d([f({readOnly:!0})],kc.prototype,"cache",null),d([f({readOnly:!0})],kc.prototype,"extent",null),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],kc.prototype,"hasM",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],kc.prototype,"hasZ",void 0),d([f({type:gr,json:{write:!0}})],kc.prototype,"spatialReference",void 0),d([Tt("spatialReference")],kc.prototype,"readSpatialReference",null),kc=d([se("esri.geometry.Geometry")],kc);const Wh=kc,FUe=Object.prototype.toString;function zUe(e){const t="__accessorMetadata__"in e?_n(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 jUe.apply(this,r)}}function jUe(e,t,r,i){F3(e,t).cast=i}function VUe(e){return(t,r)=>{F3(t,e).cast=t[r]}}function Qr(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&FUe.call(e[0])==="[object Function]"?zUe(e[0]):e.length===1&&typeof e[0]=="string"?VUe(e[0]):void 0}function BUe(e,t){const r=e.x-t.x,i=e.y-t.y,n=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+i*i+n*n)}class sD{constructor(t,r,i,n){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=i;const o=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*o,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=n||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const Wi=new sD(6378137,1/298.257223563,3e5,.006694379990137799),cd=new sD(3396190,1/169.8944472236118,23e4),Mh=new sD(1737400,0,0),UUe=57.29577951308232,WUe=.017453292519943;function h9(e){return e*UUe}function f9(e){return e*WUe}function Dmt(e){return Math.PI/2-2*Math.atan(Math.exp(-e/Wi.radius))}function D$(e){return e.wkid!=null||e.wkt!=null}const uM=[0,0];function jS(e,t,r,i,n){const o=e,s=n;if(s.spatialReference=r,"x"in o&&"x"in s)[s.x,s.y]=t(o.x,o.y,uM,i);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=t(o.xmin,o.ymin,uM,i),[s.xmax,s.ymax]=t(o.xmax,o.ymax,uM,i);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){const l="paths"in o?o.paths:o.rings,a=[];let c;for(let u=0;u<l.length;u++){const p=l[u];c=[],a.push(c);for(let h=0;h<p.length;h++)c.push(t(p[h][0],p[h][1],[0,0],i)),p[h].length>2&&c[h].push(p[h][2]),p[h].length>3&&c[h].push(p[h][3])}"paths"in s?s.paths=a:s.rings=a}else if("points"in o&&"points"in s){const l=o.points,a=[];for(let c=0;c<l.length;c++)a[c]=t(l[c][0],l[c][1],[0,0],i),l[c].length>2&&a[c].push(l[c][2]),l[c].length>3&&a[c].push(l[c][3]);s.points=a}return n}function GC(e,t){const r=e&&(D$(e)?e:e.spatialReference),i=t&&(D$(t)?t:t.spatialReference);return!(e&&"type"in e&&e.type==="mesh"||t&&"type"in t&&t.type==="mesh"||!r||!i)&&(!!So(i,r)||lg(i)&&i1(r)||lg(r)&&i1(i))}function q3(e,t){if(et(e))return null;const r=e.spatialReference,i=t&&(D$(t)?t:t.spatialReference);return GC(r,i)?So(r,i)?Ge(e):lg(i)?jS(e,Wy,gr.WebMercator,!1,Ge(e)):i1(i)?jS(e,J_,gr.WGS84,!1,Ge(e)):null:null}function Wy(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const i=f9(t);return r[0]=f9(e)*Wi.radius,r[1]=Wi.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),r}function J_(e,t,r=[0,0],i=!1){const n=h9(e/Wi.radius);return r[0]=i?n:n-360*Math.floor((n+180)/360),r[1]=h9(Math.PI/2-2*Math.atan(Math.exp(-t/Wi.radius))),r}function yh(e,t=!1,r=Ge(e)){return jS(e,Wy,gr.WebMercator,t,r)}function zb(e,t=!1,r=Ge(e)){return jS(e,J_,gr.WGS84,t,r)}var qC;const pb=[0,0];function m9(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}let Qo=qC=class extends Wh{constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}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"));const r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}normalizeCtorArgs(e,t,r,i,n){let o;if(Array.isArray(e))o=e,n=t,e=o[0],t=o[1],r=o[2],i=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,i=o.m,(n=o.spatialReference)&&n.declaredClass!=="esri.geometry.SpatialReference"&&(n=new gr(n)),o.longitude!=null||o.latitude!=null){if(o.longitude==null)ft.getLogger(this.declaredClass).warn(".longitude=","Latitude was defined without longitude");else if(o.latitude==null)ft.getLogger(this.declaredClass).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&n&&n.isWebMercator){const l=Wy(o.longitude,o.latitude,pb);e=l[0],t=l[1]}}}else m9(r)?(n=r,r=null):m9(i)&&(n=i,i=null);const s={x:e,y:t};return s.x==null&&s.y!=null?ft.getLogger(this.declaredClass).warn(".y=","Y coordinate was defined without an X coordinate"):s.y==null&&s.x!=null&&ft.getLogger(this.declaredClass).warn(".x=","X coordinate was defined without a Y coordinate"),n!=null&&(s.spatialReference=n),r!=null&&(s.z=r),i!=null&&(s.m=i),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(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return J_(t,r,pb)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;e!=null&&t&&(t.isWebMercator?this._set("y",Wy(r,e,pb)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return J_(e,t,pb)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;e!=null&&r&&(r.isWebMercator?this._set("x",Wy(e,t,pb)[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(){const e=new qC;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 qC.copy(e,this),this}equals(e){if(et(e))return!1;const{x:t,y:r,z:i,m:n,spatialReference:o}=this,{z:s,m:l}=e;let{x:a,y:c,spatialReference:u}=e;if(!o.equals(u))if(o.isWebMercator&&u.isWGS84)[a,c]=Wy(a,c),u=o;else{if(!o.isWGS84||!u.isWebMercator)return!1;[a,c]=J_(a,c),u=o}return t===a&&r===c&&i===s&&n===l&&o.wkid===u.wkid}offset(e,t,r){var i;return this.x+=e,this.y+=t,r!=null&&(this.z=((i=this.z)!=null?i:0)+r),this}normalize(){if(!this.spatialReference)return this;const e=rc(this.spatialReference);if(!e)return this;let t=this.x;const[r,i]=e.valid,n=2*i;let o;return t>i?(o=Math.ceil(Math.abs(t-i)/n),t-=o*n):t<r&&(o=Math.ceil(Math.abs(t-r)/n),t+=o*n),this._set("x",t),this}distance(e){return BUe(this,e)}toArray(){const 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)}};d([f({readOnly:!0})],Qo.prototype,"cache",null),d([f({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],Qo.prototype,"hasM",null),d([f({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],Qo.prototype,"hasZ",null),d([f({type:Number})],Qo.prototype,"latitude",null),d([f({type:Number})],Qo.prototype,"longitude",null),d([f({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),Qr(e=>isNaN(e)?e:Gl(e))],Qo.prototype,"x",void 0),d([zt("x")],Qo.prototype,"writeX",null),d([Tt("x")],Qo.prototype,"readX",null),d([f({type:Number,json:{write:!0}})],Qo.prototype,"y",void 0),d([f({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Qo.prototype,"z",void 0),d([f({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],Qo.prototype,"m",void 0),Qo=qC=d([se("esri.geometry.Point")],Qo),Qo.prototype.toJSON.isDefaultToJSON=!0;const Nr=Qo,dM=[0,0];function Y3(e,t){return!!ue(t)&&ts(e,t.x,t.y,t.z)}function Nmt(e,t){if(!t.points||t.points.length)return!1;for(const r of t.points)if(!Gv(e,r))return!1;return!0}function HUe(e,t){const{xmin:r,ymin:i,zmin:n,xmax:o,ymax:s,zmax:l}=t;return e.hasZ&&t.hasZ?ts(e,r,i,n)&&ts(e,r,s,n)&&ts(e,o,s,n)&&ts(e,o,i,n)&&ts(e,r,i,l)&&ts(e,r,s,l)&&ts(e,o,s,l)&&ts(e,o,i,l):ts(e,r,i)&&ts(e,r,s)&&ts(e,o,s)&&ts(e,o,i)}function Gv(e,t){return ts(e,t[0],t[1])}function GUe(e,t){return ts(e,t[0],t[1],t[2])}function ts(e,t,r,i){return t>=e.xmin&&t<=e.xmax&&r>=e.ymin&&r<=e.ymax&&(i==null||!e.hasZ||i>=e.zmin&&i<=e.zmax)}function pX(e,t){return dM[1]=t.y,dM[0]=t.x,qUe(e,dM)}function qUe(e,t){return hX(e.rings,t)}function hX(e,t){if(!e)return!1;if(YUe(e))return g9(!1,e,t);let r=!1;for(let i=0,n=e.length;i<n;i++)r=g9(r,e[i],t);return r}function YUe(e){return!Array.isArray(e[0][0])}function g9(e,t,r){const[i,n]=r;let o=e,s=0;for(let l=0,a=t.length;l<a;l++){s++,s===a&&(s=0);const[c,u]=t[l],[p,h]=t[s];(u<n&&h>=n||h<n&&u>=n)&&c+(n-u)/(h-u)*(p-c)<i&&(o=!o)}return o}function KUe(e,t){return Y3(e,t)}function ZUe(e,t){const r=e.hasZ&&t.hasZ;let i,n,o;if(e.xmin<=t.xmin){if(i=t.xmin,e.xmax<i)return!1}else if(i=e.xmin,t.xmax<i)return!1;if(e.ymin<=t.ymin){if(n=t.ymin,e.ymax<n)return!1}else if(n=e.ymin,t.ymax<n)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 QUe(e,t){const{points:r,hasZ:i}=t,n=i?GUe:Gv;for(const o of r)if(n(e,o))return!0;return!1}const ag=[0,0],cg=[0,0],ug=[0,0],dg=[0,0],JUe=[ag,cg,ug,dg],fX=[[ug,ag],[ag,cg],[cg,dg],[dg,ug]];function XUe(e,t){return eWe(e,t.rings)}function eWe(e,t){ag[0]=e.xmin,ag[1]=e.ymax,cg[0]=e.xmax,cg[1]=e.ymax,ug[0]=e.xmin,ug[1]=e.ymin,dg[0]=e.xmax,dg[1]=e.ymin;for(const r of JUe)if(hX(t,r))return!0;for(const r of t){if(!r.length)continue;let i=r[0];if(Gv(e,i))return!0;for(let n=1;n<r.length;n++){const o=r[n];if(Gv(e,o)||mX(i,o,fX))return!0;i=o}}return!1}function tWe(e,t){ag[0]=e.xmin,ag[1]=e.ymax,cg[0]=e.xmax,cg[1]=e.ymax,ug[0]=e.xmin,ug[1]=e.ymin,dg[0]=e.xmax,dg[1]=e.ymin;const r=t.paths;for(const i of r){if(!r.length)continue;let n=i[0];if(Gv(e,n))return!0;for(let o=1;o<i.length;o++){const s=i[o];if(Gv(e,s)||mX(n,s,fX))return!0;n=s}}return!1}const io=[0,0];function rWe(e){for(let t=0;t<e.length;t++){const r=e[t];for(let n=0;n<r.length-1;n++){const o=r[n],s=r[n+1];for(let l=t+1;l<e.length;l++)for(let a=0;a<e[l].length-1;a++){const c=e[l][a],u=e[l][a+1];if(N$(o,s,c,u,io)&&!(io[0]===o[0]&&io[1]===o[1]||io[0]===c[0]&&io[1]===c[1]||io[0]===s[0]&&io[1]===s[1]||io[0]===u[0]&&io[1]===u[1]))return!0}}const i=r.length;if(!(i<=4))for(let n=0;n<i-3;n++){let o=i-1;n===0&&(o=i-2);const s=r[n],l=r[n+1];for(let a=n+2;a<o;a++){const c=r[a],u=r[a+1];if(N$(s,l,c,u,io)&&!(io[0]===s[0]&&io[1]===s[1]||io[0]===c[0]&&io[1]===c[1]||io[0]===l[0]&&io[1]===l[1]||io[0]===u[0]&&io[1]===u[1]))return!0}}}return!1}function mX(e,t,r){for(let i=0;i<r.length;i++)if(N$(e,t,r[i][0],r[i][1]))return!0;return!1}function N$(e,t,r,i,n){const[o,s]=e,[l,a]=t,[c,u]=r,[p,h]=i,m=p-c,y=o-c,v=l-o,_=h-u,x=s-u,S=a-s,C=_*v-m*S;if(C===0)return!1;const E=(m*x-_*y)/C,T=(v*x-S*y)/C;return E>=0&&E<=1&&T>=0&&T<=1&&(n&&(n[0]=o+E*(l-o),n[1]=s+E*(a-s)),!0)}function iWe(e){switch(e){case"esriGeometryEnvelope":case"extent":return ZUe;case"esriGeometryMultipoint":case"multipoint":return QUe;case"esriGeometryPoint":case"point":return KUe;case"esriGeometryPolygon":case"polygon":return XUe;case"esriGeometryPolyline":case"polyline":return tWe}}var Ol;function nWe(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}function Zd(e,t,r){return t==null?r:r==null?t:e(t,r)}let Un=Ol=class extends Wh{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,i,n){return nWe(e)?{spatialReference:e,xmin:0,ymin:0,xmax:0,ymax:0}:typeof e=="object"?(e.spatialReference=e.spatialReference==null?gr.WGS84:e.spatialReference,e):{xmin:e,ymin:t,xmax:r,ymax:i,spatialReference:n!=null?n:gr.WGS84}}static fromBounds(e,t){return new Ol({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}static fromPoint(e){return new Ol({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(){const e=new Nr({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){const 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(){const e=new Ol;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;const t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&GC(t,r)&&(e=t.isWebMercator?yh(e):zb(e,!0)),e.type==="point"?Y3(this,e):e.type==="extent"&&HUe(this,e)}equals(e){if(this===e)return!0;if(et(e))return!1;const t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&GC(t,r)&&(e=t.isWebMercator?yh(e):zb(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){const t=.5*(1-e),r=this.width*t,i=this.height*t;if(this.xmin+=r,this.ymin+=i,this.xmax-=r,this.ymax-=i,this.hasZ){const n=(this.zmax-this.zmin)*t;this.zmin+=n,this.zmax-=n}if(this.hasM){const n=(this.mmax-this.mmin)*t;this.mmin+=n,this.mmax-=n}return this}intersects(e){if(et(e))return!1;e.type==="mesh"&&(e=e.extent);const t=this.spatialReference,r=e.spatialReference;return t&&r&&!So(t,r)&&GC(t,r)&&(e=t.isWebMercator?yh(e):zb(e,!0)),iWe(e.type)(this,e)}normalize(){const 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=Zd(Math.min,this.zmin,e.zmin),this.zmax=Zd(Math.max,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=Zd(Math.min,this.mmin,e.mmin),this.mmax=Zd(Math.max,this.mmax,e.mmax))),this}intersection(e){return this===e?this:et(e)||!this.intersects(e)?null:(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=Zd(Math.max,this.zmin,e.zmin),this.zmax=Zd(Math.min,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=Zd(Math.max,this.mmin,e.mmin),this.mmax=Zd(Math.min,this.mmax,e.mmax)),this)}toJSON(e){return this.write({},e)}_shiftCM(e=rc(this.spatialReference)){var i;if(!e||!this.spatialReference)return this;const t=this.spatialReference,r=this._getCM(e);if(r){const n=t.isWebMercator?zb(r):r;this.xmin-=r.x,this.xmax-=r.x,t.isWebMercator||(n.x=this._normalizeX(n.x,e).x),this.spatialReference=new gr(uc((i=t.isWGS84?e.altTemplate:null)!=null?i:e.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(e){let t=null;const[r,i]=e.valid,n=this.xmin,o=this.xmax;return n>=r&&n<=i&&o>=r&&o<=i||(t=this.center),t}_normalize(e,t,r){const i=this.spatialReference;if(!i)return this;const n=r!=null?r:rc(i);if(n==null)return this;const o=this._getParts(n).map(a=>a.extent);if(o.length<2)return o[0]||this;if(o.length>2)return e?this._shiftCM(n):this.set({xmin:n.valid[0],xmax:n.valid[1]});if(e)return this._shiftCM(n);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=>{const c=[[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]];if(s){const u=(a.zmax-a.zmin)/2;for(let p=0;p<c.length;p++)c[p].push(u)}if(l){const u=(a.mmax-a.mmin)/2;for(let p=0;p<c.length;p++)c[p].push(u)}return c}),hasZ:s,hasM:l,spatialReference:i}}_getParts(e){let t=this.cache._parts;if(!t){t=[];const{ymin:n,ymax:o,spatialReference:s}=this,l=this.width,a=this.xmin,c=this.xmax;let u;e=e||rc(s);const[p,h]=e.valid;u=this._normalizeX(this.xmin,e);const m=u.x,y=u.frameId;u=this._normalizeX(this.xmax,e);const v=u.x,_=u.frameId,x=m===v&&l>0;if(l>2*h){const S=new Ol(a<c?m:v,n,h,o,s),C=new Ol(p,n,a<c?v:m,o,s),E=new Ol(0,n,h,o,s),T=new Ol(p,n,0,o,s),w=[],I=[];S.contains(E)&&w.push(y),S.contains(T)&&I.push(y),C.contains(E)&&w.push(_),C.contains(T)&&I.push(_);for(let M=y+1;M<_;M++)w.push(M),I.push(M);t.push({extent:S,frameIds:[y]},{extent:C,frameIds:[_]},{extent:E,frameIds:w},{extent:T,frameIds:I})}else m>v||x?t.push({extent:new Ol(m,n,h,o,s),frameIds:[y]},{extent:new Ol(p,n,v,o,s),frameIds:[_]}):t.push({extent:new Ol(m,n,v,o,s),frameIds:[y]});this.cache._parts=t}const r=this.hasZ,i=this.hasM;if(r||i){const n={};r&&(n.zmin=this.zmin,n.zmax=this.zmax),i&&(n.mmin=this.mmin,n.mmax=this.mmax);for(let o=0;o<t.length;o++)t[o].extent.set(n)}return t}_normalizeX(e,t){const[r,i]=t.valid,n=2*i;let o,s=0;return e>i?(o=Math.ceil(Math.abs(e-i)/n),e-=o*n,s=o):e<r&&(o=Math.ceil(Math.abs(e-r)/n),e+=o*n,s=-o),{x:e,frameId:s}}};d([f({readOnly:!0})],Un.prototype,"cache",null),d([f({readOnly:!0})],Un.prototype,"center",null),d([f({readOnly:!0})],Un.prototype,"extent",null),d([f({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Un.prototype,"hasM",null),d([f({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Un.prototype,"hasZ",null),d([f({readOnly:!0})],Un.prototype,"height",null),d([f({readOnly:!0})],Un.prototype,"width",null),d([f({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],Un.prototype,"xmin",void 0),d([f({type:Number,json:{write:!0}})],Un.prototype,"ymin",void 0),d([f({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Un.prototype,"mmin",void 0),d([f({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Un.prototype,"zmin",void 0),d([f({type:Number,json:{write:!0}})],Un.prototype,"xmax",void 0),d([f({type:Number,json:{write:!0}})],Un.prototype,"ymax",void 0),d([f({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Un.prototype,"mmax",void 0),d([f({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Un.prototype,"zmax",void 0),Un=Ol=d([se("esri.geometry.Extent")],Un),Un.prototype.toJSON.isDefaultToJSON=!0;const li=Un;function qv(e,t,r=!1){let{hasM:i,hasZ:n}=e;Array.isArray(t)?t.length!==4||i||n?t.length===3&&r&&!i?(n=!0,i=!1):t.length===3&&i&&n&&(i=!1,n=!1):(i=!0,n=!0):(n=!n&&t.hasZ&&(!i||t.hasM),i=!i&&t.hasM&&(!n||t.hasZ)),e.hasZ=n,e.hasM=i}var F$;function y9(e){return(t,r)=>t==null?r:r==null?t:e(t,r)}function oWe(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}let gp=F$=class extends Wh{constructor(...e){super(...e),this.points=[],this.type="multipoint"}normalizeCtorArgs(e,t){if(!e&&!t)return{};const r={};Array.isArray(e)?(r.points=e,r.spatialReference=t):oWe(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));const i=r.points&&r.points[0];return i&&(r.hasZ===void 0&&r.hasM===void 0?(r.hasZ=i.length>2,r.hasM=!1):r.hasZ===void 0?r.hasZ=i.length>3:r.hasM===void 0&&(r.hasM=i.length>3)),r}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=this.points;if(!e.length)return null;const t=new li,r=this.hasZ,i=this.hasM,n=r?3:2,o=e[0],s=y9(Math.min),l=y9(Math.max);let a,c,u,p,[h,m]=o,[y,v]=o;for(let _=0,x=e.length;_<x;_++){const S=e[_],[C,E]=S;if(h=s(h,C),m=s(m,E),y=l(y,C),v=l(v,E),r&&S.length>2){const T=S[2];a=s(a,T),u=l(u,T)}if(i&&S.length>n){const T=S[n];c=s(c,T),p=l(p,T)}}return t.xmin=h,t.ymin=m,t.xmax=y,t.ymax=v,t.spatialReference=this.spatialReference,r?(t.zmin=a,t.zmax=u):(t.zmin=void 0,t.zmax=void 0),i?(t.mmin=c,t.mmax=p):(t.mmin=void 0,t.mmax=void 0),t}writePoints(e,t){t.points=Ge(this.points)}addPoint(e){return qv(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}clone(){const e={points:Ge(this.points),spatialReference:this.spatialReference};return this.hasZ&&(e.hasZ=!0),this.hasM&&(e.hasM=!0),new F$(e)}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new Nr(r)}removePoint(e){if(!this._validateInputs(e))return null;const t=new Nr(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?(qv(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}};d([f({readOnly:!0})],gp.prototype,"cache",null),d([f()],gp.prototype,"extent",null),d([f({type:[[Number]],json:{write:{isRequired:!0}}})],gp.prototype,"points",void 0),d([zt("points")],gp.prototype,"writePoints",null),gp=F$=d([se("esri.geometry.Multipoint")],gp),gp.prototype.toJSON.isDefaultToJSON=!0;const K3=gp;function sWe(e,t){const r=t[0]-e[0],i=t[1]-e[1];if(e.length>2&&t.length>2){const n=e[2]-t[2];return Math.sqrt(r*r+i*i+n*n)}return Math.sqrt(r*r+i*i)}function lWe(e,t,r){const i=e[0]+r*(t[0]-e[0]),n=e[1]+r*(t[1]-e[1]);return e.length>2&&t.length>2?[i,n,e[2]+r*(t[2]-e[2])]:[i,n]}function aWe(e,t,r,i){const[n,o]=t,[s,l]=r[i],[a,c]=r[i+1],u=a-s,p=c-l,h=u*u+p*p,m=(n-s)*u+(o-l)*p,y=Math.min(1,Math.max(0,m/h));return e[0]=s+u*y,e[1]=l+p*y,e}function Fmt(e,t,r){const i=r.rings;let n,o,s=!1,l=1/0;for(let a=0;a<i.length;a++){const c=i[a];for(let u=0,p=c.length-1;u<c.length;p=u++)n=c[u],o=c[p],n[1]>t!=o[1]>t&&e<(o[0]-n[0])*(t-n[1])/(o[1]-n[1])+n[0]&&(s=!s),l=Math.min(l,cWe(e,t,n,o))}return l===0?0:(s?1:-1)*Math.sqrt(l)}function cWe(e,t,r,i){let n=r[0],o=r[1],s=i[0]-n,l=i[1]-o;if(s!==0||l!==0){const a=((e-n)*s+(t-o)*l)/(s*s+l*l);a>1?(n=i[0],o=i[1]):a>0&&(n+=s*a,o+=l*a)}return s=e-n,l=t-o,s*s+l*l}function uWe(e,t){return lWe(e,t,.5)}function gX(e,t,r){const i=e.length;let n=0,o=0,s=0;for(let l=0;l<i;l++){const a=e[l],c=e[(l+1)%i];let u=2;n+=a[0]*c[1]-c[0]*a[1],a.length>2&&c.length>2&&r&&(o+=a[0]*c[2]-c[0]*a[2],u=3),a.length>u&&c.length>u&&t&&(s+=a[0]*c[u]-c[0]*a[u])}return n<=0&&o<=0&&s<=0}function dWe(e){const t=e.length;return t>2&&O3(e[0],e[t-1])}function zmt(e){var t,r;if("rings"in e&&(pWe(e),e.rings.length>0&&!gX(e.rings[0],(t=e.hasM)!=null?t:!1,(r=e.hasZ)!=null?r:!1)))for(const i of e.rings)i.reverse()}function pWe(e){if("rings"in e)for(const t of e.rings)dWe(t)||t.push(t[0].slice())}function yX(e){if(!e||e.length<3)return 0;let t=0;const r=e.length-1;for(let i=0;i<r;i++)t+=(e[i][0]-e[i+1][0])*(e[i][1]+e[i+1][1]);return t+=(e[r][0]-e[0][0])*(e[r][1]+e[0][1]),-.5*t}function jmt(e){return e?e.hasZ?[e.xmax-e.xmin/2,e.ymax-e.ymin/2,e.zmax-e.zmin/2]:[e.xmax-e.xmin/2,e.ymax-e.ymin/2]:null}function hWe(e){var t;return e?vX(e.rings,(t=e.hasZ)!=null?t:!1):null}function vX(e,t){if(!e||!e.length)return null;const r=[],i=[],n=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++){const l=fWe(e[o],t,n);l&&i.push(l)}if(i.sort((o,s)=>{let l=o[2]-s[2];return l===0&&t&&(l=o[4]-s[4]),l}),i.length&&(r[0]=i[0][0],r[1]=i[0][1],t&&(r[2]=i[0][3]),(r[0]<n[0]||r[0]>n[1]||r[1]<n[2]||r[1]>n[3]||t&&(r[2]<n[4]||r[2]>n[5]))&&(r.length=0)),!r.length){const o=e[0]&&e[0].length?mWe(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 fWe(e,t,r){let i=0,n=0,o=0,s=0,l=0;const a=e.length?e[0][0]:0,c=e.length?e[0][1]:0,u=e.length&&t?e[0][2]:0;for(let h=0;h<e.length;h++){const m=e[h],y=e[(h+1)%e.length],[v,_,x]=m,S=v-a,C=_-c,[E,T,w]=y,I=E-a,M=T-c,L=S*M-I*C;if(s+=L,i+=(S+I)*L,n+=(C+M)*L,t&&m.length>2&&y.length>2){const R=x-u,W=w-u,z=S*W-I*R;o+=(R+W)*z,l+=z}v<r[0]&&(r[0]=v),v>r[1]&&(r[1]=v),_<r[2]&&(r[2]=_),_>r[3]&&(r[3]=_),t&&(x<r[4]&&(r[4]=x),x>r[5]&&(r[5]=x))}if(s>0&&(s*=-1),l>0&&(l*=-1),!s)return null;s*=.5,l*=.5;const p=[i/(6*s)+a,n/(6*s)+c,s];return t&&(r[4]===r[5]||l===0?(p[3]=(r[4]+r[5])/2,p[4]=0):(p[3]=o/(6*l)+u,p[4]=l)),p}function mWe(e,t){const r=t?[0,0,0]:[0,0],i=t?[0,0,0]:[0,0];let n=0,o=0,s=0,l=0;for(let a=0,c=e.length;a<c-1;a++){const u=e[a],p=e[a+1];if(u&&p){r[0]=u[0],r[1]=u[1],i[0]=p[0],i[1]=p[1],t&&u.length>2&&p.length>2&&(r[2]=u[2],i[2]=p[2]);const h=sWe(r,i);if(h){n+=h;const m=uWe(u,p);o+=h*m[0],s+=h*m[1],t&&m.length>2&&(l+=h*m[2])}}}return n>0?t?[o/n,s/n,l/n]:[o/n,s/n]:e.length?e[0]:null}const gWe=1e-6;function Vmt(e){if(!e||!e.rings)return null;const{rings:t}=e;let r=0;for(let o=0;o<t.length;o++)r+=yX(t[o]);if(r<gWe)return vX(t,!1);const i=[0,0],n=t[0][0];for(let o=0;o<t.length;o++)vWe(i,n,t[o]);return i[0]*=1/r,i[1]*=1/r,i[0]+=n[0],i[1]+=n[1],i}const yWe=1/3;function vWe(e,t,r){if(!e||!r||r.length<3)return null;const i=r[0],n=[0,0],o=[r[1][0]-i[0],r[1][1]-i[1]];let s;for(let c=2;c<r.length;c++)n[0]=r[c][0]-i[0],n[1]=r[c][1]-i[1],s=.5*yWe*(n[0]*o[1]-n[1]*o[0]),e[0]+=s*(o[0]+n[0]),e[1]+=s*(o[1]+n[1]),o[0]=n[0],o[1]=n[1];const l=yX(r),a=[i[0],i[1]];return a[0]-=t[0],a[1]-=t[1],a[0]*=l,a[1]*=l,e[0]+=a[0],e[1]+=a[1],e}function bX(e){return e.xmin!==void 0&&e.ymin!==void 0&&e.xmax!==void 0&&e.ymax!==void 0}function _X(e){return e.points!==void 0}function wX(e){return e.x!==void 0&&e.y!==void 0}function xX(e){return e.paths!==void 0}function CX(e){return e.rings!==void 0}function kX(e){function t(r,i){return r==null?i:i==null?r:e(r,i)}return t}const sh=kX(Math.min),lh=kX(Math.max);function Bmt(e,t){return xX(t)?Yv(e,t.paths,!1,!1):CX(t)?Yv(e,t.rings,!1,!1):_X(t)?lD(e,t.points,!1,!1,!1,!1):bX(t)?SX(e,t):(wX(t)&&(e[0]=t.x,e[1]=t.y,e[2]=t.x,e[3]=t.y),e)}function Umt(e,t){return xX(t)?Yv(e,t.paths,!0,!1):CX(t)?Yv(e,t.rings,!0,!1):_X(t)?lD(e,t.points,!0,!1,!0,!1):bX(t)?SX(e,t,!0,!1,!0,!1):(wX(t)&&(e[0]=t.x,e[1]=t.y,e[2]=t.z,e[3]=t.x,e[4]=t.y,e[5]=t.z),e)}function Yv(e,t,r,i){const n=r?3:2;if(!t.length||!t[0].length)return null;let o,s,l,a,[c,u]=t[0][0],[p,h]=t[0][0];for(let m=0;m<t.length;m++){const y=t[m];for(let v=0;v<y.length;v++){const _=y[v],[x,S]=_;if(c=sh(c,x),u=sh(u,S),p=lh(p,x),h=lh(h,S),r&&_.length>2){const C=_[2];o=sh(o,C),s=lh(s,C)}if(i&&_.length>n){const C=_[n];l=sh(o,C),a=lh(s,C)}}}return r?i?(e[0]=c,e[1]=u,e[2]=o,e[3]=l,e[4]=p,e[5]=h,e[6]=s,e[7]=a,e.length=8,e):(e[0]=c,e[1]=u,e[2]=o,e[3]=p,e[4]=h,e[5]=s,e.length=6,e):i?(e[0]=c,e[1]=u,e[2]=l,e[3]=p,e[4]=h,e[5]=a,e.length=6,e):(e[0]=c,e[1]=u,e[2]=p,e[3]=h,e.length=4,e)}function SX(e,t,r,i,n,o){const s=t.xmin,l=t.xmax,a=t.ymin,c=t.ymax;let u=t.zmin,p=t.zmax,h=t.mmin,m=t.mmax;return n?(u=u||0,p=p||0,o?(h=h||0,m=m||0,e[0]=s,e[1]=a,e[2]=u,e[3]=h,e[4]=l,e[5]=c,e[6]=p,e[7]=m,e):(e[0]=s,e[1]=a,e[2]=u,e[3]=l,e[4]=c,e[5]=p,e)):o?(h=h||0,m=m||0,e[0]=s,e[1]=a,e[2]=h,e[3]=l,e[4]=c,e[5]=m,e):(e[0]=s,e[1]=a,e[2]=l,e[3]=c,e)}function lD(e,t,r,i,n,o){const s=r?3:2,l=i&&o,a=r&&n;if(!t.length||!t[0].length)return null;let c,u,p,h,[m,y]=t[0],[v,_]=t[0];for(let x=0;x<t.length;x++){const S=t[x],[C,E]=S;if(m=sh(m,C),y=sh(y,E),v=lh(v,C),_=lh(_,E),a&&S.length>2){const T=S[2];c=sh(c,T),u=lh(u,T)}if(l&&S.length>s){const T=S[s];p=sh(c,T),h=lh(u,T)}}return n?(c=c||0,u=u||0,o?(p=p||0,h=h||0,e[0]=m,e[1]=y,e[2]=c,e[3]=p,e[4]=v,e[5]=_,e[6]=u,e[7]=h,e):(e[0]=m,e[1]=y,e[2]=c,e[3]=v,e[4]=_,e[5]=u,e)):o?(p=p||0,h=h||0,e[0]=m,e[1]=y,e[2]=p,e[3]=v,e[4]=_,e[5]=h,e):(e[0]=m,e[1]=y,e[2]=v,e[3]=_,e)}function bWe(e){return e.xmin!==void 0&&e.ymin!==void 0&&e.xmax!==void 0&&e.ymax!==void 0}function _We(e){return e.points!==void 0}function wWe(e){return e.x!==void 0&&e.y!==void 0}function xWe(e){return e.paths!==void 0}function CWe(e){return e.rings!==void 0}const aD=[];function EX(e,t,r,i){return{xmin:e,ymin:t,xmax:r,ymax:i}}function TX(e,t,r,i,n,o){return{xmin:e,ymin:t,zmin:r,xmax:i,ymax:n,zmax:o}}function AX(e,t,r,i,n,o){return{xmin:e,ymin:t,mmin:r,xmax:i,ymax:n,mmax:o}}function MX(e,t,r,i,n,o,s,l){return{xmin:e,ymin:t,zmin:r,mmin:i,xmax:n,ymax:o,zmax:s,mmax:l}}function cD(e,t=!1,r=!1){return t?r?MX(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):TX(e[0],e[1],e[2],e[3],e[4],e[5]):r?AX(e[0],e[1],e[2],e[3],e[4],e[5]):EX(e[0],e[1],e[2],e[3])}function Wmt(e){return e?bWe(e)?e:wWe(e)?SWe(e):CWe(e)?IX(e):xWe(e)?PX(e):_We(e)?kWe(e):null:null}function kWe(e){const{hasZ:t,hasM:r,points:i}=e;return cD(lD(aD,i,t!=null?t:!1,r!=null?r:!1),t,r)}function SWe(e){const{x:t,y:r,z:i,m:n}=e,o=n!=null;return i!=null?o?MX(t,r,i,n,t,r,i,n):TX(t,r,i,t,r,i):o?AX(t,r,n,t,r,n):EX(t,r,t,r)}function IX(e){const{hasZ:t,hasM:r,rings:i}=e,n=Yv(aD,i,t!=null?t:!1,r!=null?r:!1);return n?cD(n,t,r):null}function PX(e){const{hasZ:t,hasM:r,paths:i}=e,n=Yv(aD,i,t!=null?t:!1,r!=null?r:!1);return n?cD(n,t,r):null}var YC;function v9(e){return!Array.isArray(e[0])}let Sc=YC=class extends Wh{constructor(...e){super(...e),this.rings=[],this.type="polygon"}static fromExtent(e){const t=e.clone().normalize(),r=e.spatialReference;let i=!1,n=!1;for(const s of t)s.hasZ&&(i=!0),s.hasM&&(n=!0);const o={rings:t.map(s=>{const l=[[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin]];if(i&&s.hasZ){const a=s.zmin+.5*(s.zmax-s.zmin);for(let c=0;c<l.length;c++)l[c].push(a)}if(n&&s.hasM){const a=s.mmin+.5*(s.mmax-s.mmin);for(let c=0;c<l.length;c++)l[c].push(a)}return l}),spatialReference:r};return i&&(o.hasZ=!0),n&&(o.hasM=!0),new YC(o)}normalizeCtorArgs(e,t){let r,i,n=null,o=null;return e&&!Array.isArray(e)?(n=e.rings?e.rings:null,t||(e.spatialReference?t=e.spatialReference:e.rings||(t=e)),r=e.hasZ,i=e.hasM):n=e,n=n||[],t=t||gr.WGS84,n.length&&n[0]&&n[0][0]!=null&&typeof n[0][0]=="number"&&(n=[n]),o=n[0]&&n[0][0],o&&(r===void 0&&i===void 0?(r=o.length>2,i=o.length>3):r===void 0?r=i?o.length>3:o.length>2:i===void 0&&(i=r?o.length>3:o.length>2)),{rings:n,spatialReference:t,hasZ:r,hasM:i}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){const e=hWe(this);if(!e||isNaN(e[0])||isNaN(e[1])||this.hasZ&&isNaN(e[2]))return null;const t=new Nr;return t.x=e[0],t.y=e[1],t.spatialReference=this.spatialReference,this.hasZ&&(t.z=e[2]),t}get extent(){const{spatialReference:e}=this,t=IX(this);if(!t)return null;const r=new li(t);return r.spatialReference=e,r}get isSelfIntersecting(){return rWe(this.rings)}writeRings(e,t){t.rings=Ge(this.rings)}addRing(e){if(!e)return;const t=this.rings,r=t.length;if(v9(e)){const i=[];for(let n=0,o=e.length;n<o;n++)i[n]=e[n].toArray();t[r]=i}else t[r]=e.concat();return this.notifyChange("rings"),this}clone(){const e=new YC;return e.spatialReference=this.spatialReference,e.rings=Ge(this.rings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(et(e))return!1;const t=this.spatialReference,r=e.spatialReference;if(ue(t)!==ue(r)||ue(t)&&ue(r)&&!t.equals(r)||this.rings.length!==e.rings.length)return!1;const i=([n,o,s,l],[a,c,u,p])=>n===a&&o===c&&(s==null&&u==null||s===u)&&(l==null&&p==null||l===p);for(let n=0;n<this.rings.length;n++){const o=this.rings[n],s=e.rings[n];if(!O3(o,s,i))return!1}return!0}contains(e){if(!e)return!1;const t=q3(e,this.spatialReference);return pX(this,ue(t)?t:e)}isClockwise(e){let t;return t=v9(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,gX(t,this.hasM,this.hasZ)}getPoint(e,t){if(!this._validateInputs(e,t))return null;const r=this.rings[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new Nr(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new Nr(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new Nr(r[0],r[1],r[2],r[3],this.spatialReference):new Nr(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(qv(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;const r=new Nr(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(e){if(!this._validateInputs(e,null))return null;const t=this.rings.splice(e,1)[0],r=this.spatialReference,i=t.map(n=>new Nr(n,r));return this.notifyChange("rings"),i}setPoint(e,t,r){return this._validateInputs(e,t)?(qv(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){const i=this.rings[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};d([f({readOnly:!0})],Sc.prototype,"cache",null),d([f({readOnly:!0})],Sc.prototype,"centroid",null),d([f({readOnly:!0})],Sc.prototype,"extent",null),d([f({readOnly:!0})],Sc.prototype,"isSelfIntersecting",null),d([f({type:[[[Number]]],json:{write:{isRequired:!0}}})],Sc.prototype,"rings",void 0),d([zt("rings")],Sc.prototype,"writeRings",null),Sc=YC=d([se("esri.geometry.Polygon")],Sc),Sc.prototype.toJSON.isDefaultToJSON=!0;const wd=Sc;var z$;function EWe(e){return!Array.isArray(e[0])}let yp=z$=class extends Wh{constructor(...e){super(...e),this.paths=[],this.type="polyline"}normalizeCtorArgs(e,t){let r,i,n=null,o=null;return e&&!Array.isArray(e)?(n=e.paths?e.paths:null,t||(e.spatialReference?t=e.spatialReference:e.paths||(t=e)),r=e.hasZ,i=e.hasM):n=e,n=n||[],t=t||gr.WGS84,n.length&&n[0]&&n[0][0]!=null&&typeof n[0][0]=="number"&&(n=[n]),o=n[0]&&n[0][0],o&&(r===void 0&&i===void 0?(r=o.length>2,i=!1):r===void 0?r=!i&&o.length>3:i===void 0&&(i=!r&&o.length>3)),{paths:n,spatialReference:t,hasZ:r,hasM:i}}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const{spatialReference:e}=this,t=PX(this);if(!t)return null;const r=new li(t);return r.spatialReference=e,r}writePaths(e,t){t.paths=Ge(this.paths)}addPath(e){if(!e)return;const t=this.paths,r=t.length;if(EWe(e)){const i=[];for(let n=0,o=e.length;n<o;n++)i[n]=e[n].toArray();t[r]=i}else t[r]=e.concat();return this.notifyChange("paths"),this}clone(){const e=new z$;return e.spatialReference=this.spatialReference,e.paths=Ge(this.paths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const r=this.paths[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new Nr(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new Nr(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new Nr(r[0],r[1],r[2],r[3],this.spatialReference):new Nr(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(qv(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;const t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(n=>new Nr(n,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;const r=new Nr(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?(qv(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){const i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};d([f({readOnly:!0})],yp.prototype,"cache",null),d([f({readOnly:!0})],yp.prototype,"extent",null),d([f({type:[[[Number]]],json:{write:{isRequired:!0}}})],yp.prototype,"paths",void 0),d([zt("paths")],yp.prototype,"writePaths",null),yp=z$=d([se("esri.geometry.Polyline")],yp),yp.prototype.toJSON.isDefaultToJSON=!0;const Xa=yp;class Yr{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(t),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=i=>this.fromJSON(i),this.write=(i,n,o)=>{const s=this.toJSON(i);s!==void 0&&Wo(o,s,n)},this.write.isJSONMapWriter=!0}toJSON(t){if(this._apiToJSON.hasOwnProperty(t)){const r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}_invertMap(t){const r={};for(const i in t)r[t[i]]=i;return r}_getKeysSorted(t){const r=[];for(const i in t)r.push(i);return r.sort(),r}}function Ao(){return function(e,t){return new Yr(e,{ignoreUnknown:!0,...t})}}const VS=Ao()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),b9=Ao()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"});function $X(e){return e.xmin!==void 0&&e.ymin!==void 0&&e.xmax!==void 0&&e.ymax!==void 0}function uD(e){return e.points!==void 0}function dD(e){return e.x!==void 0&&e.y!==void 0}function pD(e){return e.paths!==void 0}function Wm(e){return e.rings!==void 0}function Ih(e){return et(e)?null:e instanceof Wh?e:dD(e)?Nr.fromJSON(e):pD(e)?Xa.fromJSON(e):Wm(e)?wd.fromJSON(e):uD(e)?K3.fromJSON(e):$X(e)?li.fromJSON(e):null}function Z3(e){return e?dD(e)?"esriGeometryPoint":pD(e)?"esriGeometryPolyline":Wm(e)?"esriGeometryPolygon":$X(e)?"esriGeometryEnvelope":uD(e)?"esriGeometryMultipoint":null:null}const TWe={esriGeometryPoint:Nr,esriGeometryPolyline:Xa,esriGeometryPolygon:wd,esriGeometryEnvelope:li,esriGeometryMultipoint:K3};function AWe(e){return e&&TWe[e]||null}const Tg={base:Wh,key:"type",typeMap:{extent:li,multipoint:K3,point:Nr,polyline:Xa,polygon:wd}};au(Tg);const pn=e=>{let t=class extends e{clone(){var a;const r=Hl(Nn(this),"unable to clone instance of non-accessor class"),i=r.metadatas,n=r.store,o={},s=new Map;for(const c in i){const u=i[c],p=n==null?void 0:n.originOf(c),h=u.clonable;if(u.readOnly||h===!1||p!==Ht.USER&&p!==Ht.DEFAULTS&&p!==Ht.WEB_MAP&&p!==Ht.WEB_SCENE)continue;const m=this[c];let y=null;y=typeof h=="function"?h(m):h==="reference"?m:b$(m),m!=null&&y==null||(p===Ht.DEFAULTS?s.set(c,y):o[c]=y)}const l=new(Object.getPrototypeOf(this)).constructor(o);if(s.size){const c=(a=Nn(l))==null?void 0:a.store;if(c)for(const[u,p]of s)c.set(u,p,Ht.DEFAULTS)}return l}};return t=d([se("esri.core.Clonable")],t),t};let _9=class extends pn(rr){};_9=d([se("esri.core.Clonable")],_9);class uv{constructor(){this._emitter=new uv.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(n=null){this._target=n,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(n,o){const s=this._listenersMap&&this._listenersMap.get(n);if(!s)return!1;const l=this._target||this;return[...s].forEach(a=>{a.call(l,o)}),s.length>0}on(n,o){if(Array.isArray(n)){const l=n.map(a=>this.on(a,o));return N3(l)}if(n.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const s=this._listenersMap.get(n)||[];return s.push(o),this._listenersMap.set(n,s),{remove:()=>{const l=this._listenersMap&&this._listenersMap.get(n)||[],a=l.indexOf(o);a>=0&&l.splice(a,1)}}}once(n,o){const s=this.on(n,l=>{s.remove(),o.call(null,l)});return s}hasEventListener(n){const o=this._listenersMap&&this._listenersMap.get(n);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=i=>{let n=class extends i{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 n=d([se("esri.core.Evented")],n),n};let r=class extends rr{constructor(){super(...arguments),this._emitter=new uv.EventEmitter(this)}destroy(){this._emitter.clear()}emit(i,n){return this._emitter.emit(i,n)}on(i,n){return this._emitter.on(i,n)}once(i,n){return this._emitter.once(i,n)}hasEventListener(i){return this._emitter.hasEventListener(i)}};r=d([se("esri.core.Evented")],r),e.EventedAccessor=r})(uv||(uv={}));const Dd=uv;var fi;(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(fi||(fi={}));function hD(e){return(t,r)=>{t[r]=e}}class fD{constructor(){this._observers=[]}observe(t){return this._observers.includes(t)||this._observers.push(t),new WJ(this._observers,t)}notify(){const t=this._observers.slice();for(let r=0;r<t.length;++r){const i=t[r];i.onInvalidated(),i.onCommitted()}}}var Qu;class MWe{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}}const Ml=new dc(MWe,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1}),IWe=()=>{};function pM(e){return e?e instanceof lm?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function hM(e){if(e&&e.length)return e[0]}function PWe(e,t,r,i){const n=Math.min(e.length-r,t.length-i);let o=0;for(;o<n&&e[r+o]===t[i+o];)o++;return o}function OX(e,t,r,i){t&&t.forEach((n,o,s)=>{e.push(n),OX(e,r.call(i,n,o,s),r,i)})}const Qd=new Set,Jd=new Set,Xd=new Set,fM=new Map;let $We=0,lm=Qu=class extends Dd.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new fD,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:$We++})}static isCollection(e){return e!=null&&e instanceof Qu}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Qu?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return Fr(this._observable),this._items}set items(e){this._emitBeforeChanges(fi.ADD)||(this._splice(0,this.length,pM(e)),this._emitAfterChanges(fi.ADD))}hasEventListener(e){return e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if(e==="change"){const r=this._chgListeners,i={removed:!1,callback:t};return r.push(i),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=IWe,i.removed=!0,r.splice(r.indexOf(i),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if(Fr(this._observable),this._emitBeforeChanges(fi.ADD))return this;const r=this.getNextIndex(t!=null?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(fi.ADD),this}addMany(e,t=this._items.length){if(Fr(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(fi.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,pM(e)),this._emitAfterChanges(fi.ADD),this}at(e){if(Fr(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Fr(this._observable),!this.length||this._emitBeforeChanges(fi.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(fi.REMOVE),e}clone(){return Fr(this._observable),this._createNewInstance({items:this._items.map(Ge)})}concat(...e){Fr(this._observable);const t=e.map(pM);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Fr(this._observable),!this.length||this._emitBeforeChanges(fi.REMOVE))return;const r=this._splice(0,this.length),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(fi.REMOVE)}every(e,t){return Fr(this._observable),this._items.every(e,t)}filter(e,t){let r;return Fr(this._observable),r=arguments.length===2?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return Fr(this._observable),this._items.find(e,t)}findIndex(e,t){return Fr(this._observable),this._items.findIndex(e,t)}flatten(e,t){Fr(this._observable);const r=[];return OX(r,this,e,t),new Qu(r)}forEach(e,t){return Fr(this._observable),this._items.forEach(e,t)}getItemAt(e){return Fr(this._observable),this._items[e]}getNextIndex(e){Fr(this._observable);const t=this.length;return(e=e!=null?e:t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Fr(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Fr(this._observable),this._items.indexOf(e,t)}join(e=","){return Fr(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Fr(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Fr(this._observable);const r=this._items.map(e,t);return new Qu({items:r})}reorder(e,t=this.length-1){Fr(this._observable);const r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(fi.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(fi.MOVE)}return e}}pop(){if(Fr(this._observable),!this.length||this._emitBeforeChanges(fi.REMOVE))return;const e=hM(this._splice(this.length-1,1));return this._emitAfterChanges(fi.REMOVE),e}push(...e){return Fr(this._observable),this._emitBeforeChanges(fi.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(fi.ADD)),this.length}reduce(e,t){Fr(this._observable);const r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Fr(this._observable);const r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Fr(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Fr(this._observable),e<0||e>=this.length||this._emitBeforeChanges(fi.REMOVE))return;const t=hM(this._splice(e,1));return this._emitAfterChanges(fi.REMOVE),t}removeMany(e){if(Fr(this._observable),!e||!e.length||this._emitBeforeChanges(fi.REMOVE))return[];const t=e instanceof Qu?e.toArray():e,r=this._items,i=[],n=t.length;for(let o=0;o<n;o++){const s=t[o],l=r.indexOf(s);if(l>-1){const a=1+PWe(t,r,o+1,l+1),c=this._splice(l,a);c&&c.length>0&&i.push.apply(i,c),o+=a-1}}return this._emitAfterChanges(fi.REMOVE),i}reverse(){if(Fr(this._observable),this._emitBeforeChanges(fi.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(fi.MOVE),this}shift(){if(Fr(this._observable),!this.length||this._emitBeforeChanges(fi.REMOVE))return;const e=hM(this._splice(0,1));return this._emitAfterChanges(fi.REMOVE),e}slice(e=0,t=this.length){return Fr(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Fr(this._observable),this._items.some(e,t)}sort(e){if(Fr(this._observable),!this.length||this._emitBeforeChanges(fi.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(fi.MOVE),this}splice(e,t,...r){Fr(this._observable);const i=(t?fi.REMOVE:0)|(r.length?fi.ADD:0);if(this._emitBeforeChanges(i))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(i),n}toArray(){return Fr(this._observable),this._items.slice()}toJSON(){return Fr(this._observable),this.toArray()}toLocaleString(){return Fr(this._observable),this._items.toLocaleString()}toString(){return Fr(this._observable),this._items.toString()}unshift(...e){return Fr(this._observable),!e.length||this._emitBeforeChanges(fi.ADD)||(this._splice(0,0,e),this._emitAfterChanges(fi.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const i=this._items,n=this.itemType;let 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._timer=x0(()=>this._dispatchChange())),t){if(s=i.splice(e,t),this.hasEventListener("before-remove")){const l=Ml.acquire();l.target=this,l.cancellable=!0;for(let a=0,c=s.length;a<c;a++)o=s[a],l.reset(o),this.emit("before-remove",l),l.defaultPrevented&&(s.splice(a,1),i.splice(e,0,o),e+=1,a-=1,c-=1);Ml.release(l)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const l=Ml.acquire();l.target=this,l.cancellable=!1;const a=s.length;for(let c=0;c<a;c++)l.reset(s[c]),this.emit("after-remove",l);Ml.release(l)}}if(r&&r.length){if(n){const u=[];for(const p of r){const h=n.ensureType(p);h==null&&p!=null||u.push(h)}r=u}const l=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),c=e===this.length;if(l||a){const u=Ml.acquire();u.target=this,u.cancellable=!0;const p=Ml.acquire();p.target=this,p.cancellable=!1;for(const h of r)l?(u.reset(h),this.emit("before-add",u),u.defaultPrevented||(c?i.push(h):i.splice(e++,0,h),this._set("length",i.length),a&&(p.reset(h),this.emit("after-add",p)))):(c?i.push(h):i.splice(e++,0,h),this._set("length",i.length),p.reset(h),this.emit("after-add",p));Ml.release(p),Ml.release(u)}else{if(c)for(const u of r)i.push(u);else i.splice(e,0,...r);this._set("length",i.length)}}return(r&&r.length||s&&s.length)&&this._notifyChangeEvent(r,s),s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=Ml.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Ml.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=Ml.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Ml.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})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const r=t.changes;Qd.clear(),Jd.clear(),Xd.clear();for(const{added:a,removed:c}of r){if(a)if(Xd.size===0&&Jd.size===0)for(const u of a)Qd.add(u);else for(const u of a)Jd.has(u)?(Xd.add(u),Jd.delete(u)):Xd.has(u)||Qd.add(u);if(c)if(Xd.size===0&&Qd.size===0)for(const u of c)Jd.add(u);else for(const u of c)Qd.has(u)?Qd.delete(u):(Xd.delete(u),Jd.add(u))}const i=rs.acquire();Qd.forEach(a=>{i.push(a)});const n=rs.acquire();Jd.forEach(a=>{n.push(a)});const o=this._items,s=t.items,l=rs.acquire();if(Xd.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&l.push(a)}),t.listeners&&(i.length||n.length||l.length)){const a={target:this,added:i,removed:n,moved:l},c=t.listeners.length;for(let u=0;u<c;u++){const p=t.listeners[u];p.removed||p.callback.call(this,a)}}rs.release(i),rs.release(n),rs.release(l)}Qd.clear(),Jd.clear(),Xd.clear()}};lm.ofType=e=>{if(!e)return Qu;if(fM.has(e))return fM.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const n=e.typeMap[i].prototype.declaredClass;t?t+=` | ${n}`:t=n}let r=class extends Qu{};return d([hD({Type:e,ensureType:typeof e=="function"?_n(e):au(e)})],r.prototype,"itemType",void 0),r=d([se(`esri.core.Collection<${t}>`)],r),fM.set(e,r),r},d([f()],lm.prototype,"length",void 0),d([f()],lm.prototype,"items",null),lm=Qu=d([se("esri.core.Collection")],lm);const dr=lm;var Kv;function OWe(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(r!=null&&+t<r||i!=null&&+t>i)return Kv.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(e.codedValues==null||e.codedValues.every(r=>r==null||r.code!==t))return Kv.INVALID_CODED_VALUE}return null}(function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(Kv||(Kv={}));const LWe=ft.getLogger("esri.support.arcadeOnDemand");let mM;function xd(){return mM||(mM=(async()=>{const e=await ut(()=>import("./arcadeUtils.8527a548.js").then(function(t){return t.ay}),["assets/arcadeUtils.8527a548.js","assets/number.2f540abd.js"]);return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),mM}const Hmt=(e,t,r)=>ox.create(e,t,r,null,["$feature"]),Gmt=(e,t,r)=>ox.create(e,t,r,null,["$feature","$view"]),RWe=(e,t,r,i)=>ox.create(e,t,r,i,["$feature","$view"]);class ox{constructor(t,r,i,n,o,s,l,a){this.script=t,this.evaluate=o;const c=Array.isArray(l)?l:l.fields;this.fields=c,this._syntaxTree=n,this._arcade=r,this._arcadeDictionary=i,this._arcadeFeature=s,this._spatialReference=a,this._referencesGeometry=r.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(t,r,i,n,o,s){const{arcade:l,Feature:a,Dictionary:c}=await xd(),u=gr.fromJSON(r);let p=null;try{p=l.parseScript(t,s)}catch(M){return LWe.error(new ze("arcade-bad-expression","Failed to parse arcade script",{script:t,error:M})),null}const h=o.reduce((M,L)=>({...M,[L]:null}),{});let m=null;ue(n)&&(m=new c(n),m.immutable=!0,h.$config=null);const y=l.scriptUsesGeometryEngine(p),v=y&&l.enableGeometrySupport(),_=l.scriptUsesFeatureSet(p)&&l.enableFeatureSetSupport(),x=l.scriptIsAsync(p),S=x&&l.enableAsyncSupport(),C={vars:h,spatialReference:u,useAsync:!!S};await Promise.all([v,_,S]);const E=new Set;await l.loadDependentModules(E,p,null,x,y);const T=new c;T.immutable=!1,T.setField("scale",0);const w=l.compileScript(p,C),I=M=>("$view"in M&&M.$view&&(T.setField("scale",M.$view.scale),M.$view=T),m&&(M.$config=m),w({vars:M,spatialReference:u}));return new ox(t,l,c,p,I,new a,i,u)}repurposeFeature(t){return t.geometry&&!t.geometry.spatialReference&&(t.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(t.geometry,t.attributes,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(t){return this._arcade.referencesMember(this._syntaxTree,t)}referencesFunction(t){return this._arcade.referencesFunction(this._syntaxTree,t)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}const DWe=/^([0-9])/,NWe=/[^A-Za-z0-9_\u0080-\uffff]/g,FWe=/_{2,}/g,zWe=/^_/,jWe=/_$/;function VWe(e){return e?e.trim().replace(NWe,"_").replace(FWe,"_").replace(zWe,"").replace(jWe,"").replace(DWe,"F$1"):null}const BWe=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],UWe=["field","normalizationField"];function w9(e,t){if(e!=null&&t!=null){for(const r of Array.isArray(e)?e:[e])if(x9(BWe,r,t),"visualVariables"in r&&r.visualVariables)for(const i of r.visualVariables)x9(UWe,i,t)}}function x9(e,t,r){if(e)for(const i of e){const n=_0(i,t),o=n&&typeof n!="function"&&r.get(n);o&&Wo(i,o.name,t)}}function LX(e,t){var r,i,n,o,s;if(e!=null&&((r=t==null?void 0:t.fields)==null?void 0:r.length))if("startField"in e){const l=t.get(e.startField),a=t.get(e.endField);e.startField=(i=l==null?void 0:l.name)!=null?i:null,e.endField=(n=a==null?void 0:a.name)!=null?n:null}else{const l=t.get(e.startTimeField),a=t.get(e.endTimeField);e.startTimeField=(o=l==null?void 0:l.name)!=null?o:null,e.endTimeField=(s=a==null?void 0:a.name)!=null?s:null}}const gM=new Set;function RX(e,t){return e&&t?(gM.clear(),n1(gM,e,t),Array.from(gM).sort()):[]}function n1(e,t,r){var i;if(r)if((i=t==null?void 0:t.fields)!=null&&i.length)if(r.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const n of r)vl(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const n of r)n!=null&&e.add(n)}}function vl(e,t,r){if(typeof r=="string")if(t){const i=t.get(r);i&&e.add(i.name)}else e.add(r)}function qmt(e,t){var r;return et(t)||et(e)?[]:t.includes("*")?((r=e.fields)!=null?r:[]).map(i=>i.name):t}async function ds(e,t,r){var o;if(!r)return;const{arcadeUtils:i}=await xd(),n=i.extractFieldNames(r,(o=t==null?void 0:t.fields)==null?void 0:o.map(s=>s.name));for(const s of n)vl(e,t,s)}async function DX(e,t,r){if(r&&r!=="1=1"){const i=(await ut(()=>import("./WhereClause.39c9a123.js"),[])).WhereClause.create(r,t);if(!i.isStandardized)throw new ze("fieldUtils:collectFilterFields","Where clause is not standardized",{where:r});n1(e,t,i.fieldNames)}}function WWe({displayField:e,fields:t}){return e||(t&&t.length?yM(t,"name-or-title")||yM(t,"unique-identifier")||yM(t,"type-or-category")||HWe(t):null)}function HWe(e){for(const t of e){if(!t||!t.name)continue;const r=t.name.toLowerCase();if(r.includes("name")||r.includes("title"))return t.name}return null}function yM(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}async function Ymt(e,t){if(!t)return;const r=_0("elevationInfo.featureExpressionInfo",t);return r?r.collectRequiredFields(e,t.fieldsIndex):void 0}function GWe(e,t,r){r.onStatisticExpression?ds(e,t,r.onStatisticExpression.expression):e.add(r.onStatisticField)}async function Kmt(e,t,r){if(!t||!r||!("fields"in r))return;const i=[],n=r.popupTemplate;i.push(qWe(e,t,n)),r.fields&&i.push(...r.fields.map(async o=>GWe(e,t.fieldsIndex,o))),await Promise.all(i)}async function qWe(e,t,r){const i=[];r!=null&&r.expressionInfos&&i.push(...r.expressionInfos.map(o=>ds(e,t.fieldsIndex,o.expression)));const n=r==null?void 0:r.content;if(Array.isArray(n))for(const o of n)o.type==="expression"&&o.expressionInfo&&i.push(ds(e,t.fieldsIndex,o.expressionInfo.expression));await Promise.all(i)}async function Zmt(e,t,r){t&&(t.timeInfo&&ue(r)&&r.timeExtent&&n1(e,t.fieldsIndex,[t.timeInfo.startField,t.timeInfo.endField]),t.floorInfo&&n1(e,t.fieldsIndex,[t.floorInfo.floorField]),ue(r)&&ue(r.where)&&await DX(e,t.fieldsIndex,r.where))}async function Qmt(e,t,r){t&&r&&await Promise.all(r.map(i=>YWe(e,t,i)))}async function YWe(e,t,r){t&&r&&(r.valueExpression?await ds(e,t.fieldsIndex,r.valueExpression):r.field&&vl(e,t.fieldsIndex,r.field))}function Jmt(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;return t?RX(e.fieldsIndex,[t&&t.creatorField,t&&t.creationDateField,t&&t.editorField,t&&t.editDateField]):[]}async function Xmt(e,t){const{labelingInfo:r,fieldsIndex:i}=t;r&&r.length&&await Promise.all(r.map(n=>KWe(e,i,n)))}async function KWe(e,t,r){if(!r)return;const i=r.getLabelExpression(),n=r.where;if(i.type==="arcade")await ds(e,t,i.expression);else{const o=i.expression.match(/{[^}]*}/g);o&&o.forEach(s=>{vl(e,t,s.slice(1,-1))})}await DX(e,t,n)}function ZWe(e){const t=e.defaultValue;return t!==void 0&&zX(e,t)?t:e.nullable?null:void 0}function NX(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function QWe(e){return e===null||NX(e)}const mD="isInteger"in Number?Number.isInteger:e=>typeof e=="number"&&isFinite(e)&&Math.floor(e)===e;function JWe(e){return e===null||mD(e)}function FX(e){return e!=null&&typeof e=="string"}function XWe(e){return e===null||FX(e)}function eHe(){return!0}function zX(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?JWe:mD;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?QWe:NX;break;case"string":case"esriFieldTypeString":r=e.nullable?XWe:FX;break;default:r=eHe}return arguments.length===1?r:r(t)}const tHe=["integer","small-integer","single","double"],rHe=new Set([...tHe,"esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function gD(e){return e!=null&&rHe.has(e.type)}function egt(e){return e!=null&&(e.type==="string"||e.type==="esriFieldTypeString")}var BS,US;function tgt(e){return e==null||typeof e=="number"&&isNaN(e)?null:e}function rgt(e,t){return e.nullable&&t===null?null:gD(e)&&!iHe(e.type,Number(t))?BS.OUT_OF_RANGE:zX(e,t)?e.domain?OWe(e.domain,t):null:US.INVALID_TYPE}function iHe(e,t){const r=typeof e=="string"?jX(e):e;if(!r)return!1;const i=r.min,n=r.max;return r.isInteger?mD(t)&&t>=i&&t<=n:t>=i&&t<=n}function jX(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return nHe;case"esriFieldTypeInteger":case"integer":return oHe;case"esriFieldTypeSingle":case"single":return sHe;case"esriFieldTypeDouble":case"double":return lHe}}(function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(BS||(BS={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(US||(US={}));const nHe={min:-32768,max:32767,isInteger:!0},oHe={min:-2147483648,max:2147483647,isInteger:!0},sHe={min:-34e37,max:12e37,isInteger:!1},lHe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function igt(e,t,r){switch(e){case Kv.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case Kv.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case US.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case BS.OUT_OF_RANGE:{const{min:i,max:n}=jX(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${i} to ${n}`}}}function aHe(e,t){return!cHe(e,t,null)}function cHe(e,t,r){if(!t||!t.attributes||!e){if(ue(r))for(const o of e!=null?e:[])r.add(o);return!0}const i=t.attributes;let n=!1;for(const o of e)if(!(o in i)){if(n=!0,!ue(r))break;r.add(o)}return n}function VX(e){return["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}let KC=class extends xt{constructor(e){super(e),this.type=null}};d([f({type:["attachments","custom","fields","media","text","expression","relationship"],readOnly:!0,json:{read:!1,write:!0}})],KC.prototype,"type",void 0),KC=d([se("esri.popup.content.Content")],KC);const Hh=KC;var j$;let _f=j$=class extends Hh{constructor(e){super(e),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new j$({description:this.description,displayType:this.displayType,title:this.title})}};d([f({type:String,json:{write:!0}})],_f.prototype,"description",void 0),d([f({type:["auto","preview","list"],json:{write:!0}})],_f.prototype,"displayType",void 0),d([f({type:String,json:{write:!0}})],_f.prototype,"title",void 0),d([f({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],_f.prototype,"type",void 0),_f=j$=d([se("esri.popup.content.AttachmentsContent")],_f);const o1=_f;var V$;let wf=V$=class extends Hh{constructor(e){super(e),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new V$({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?Ge(this.outFields):null})}};d([f()],wf.prototype,"creator",void 0),d([f()],wf.prototype,"destroyer",void 0),d([f()],wf.prototype,"outFields",void 0),d([f({type:["custom"],readOnly:!0})],wf.prototype,"type",void 0),wf=V$=d([se("esri.popup.content.CustomContent")],wf);const uHe=wf;var B$;let ry=B$=class extends xt{constructor(e){super(e),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new B$({title:this.title,expression:this.expression})}};d([f({type:String,json:{write:!0}})],ry.prototype,"title",void 0),d([f({type:String,json:{write:!0}})],ry.prototype,"expression",void 0),d([f({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],ry.prototype,"returnType",void 0),ry=B$=d([se("esri.popup.ElementExpressionInfo")],ry);const BX=ry;var U$;let jb=U$=class extends Hh{constructor(e){super(e),this.expressionInfo=null,this.type="expression"}clone(){var e;return new U$({expressionInfo:(e=this.expressionInfo)==null?void 0:e.clone()})}};d([f({type:BX,json:{write:!0}})],jb.prototype,"expressionInfo",void 0),d([f({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],jb.prototype,"type",void 0),jb=U$=d([se("esri.popup.content.ExpressionContent")],jb);const yD=jb;function pr(e,t={}){var n;const r=e instanceof Yr?e:new Yr(e,t),i={type:(n=t==null?void 0:t.ignoreUnknown)==null||n?r.apiValues:String,json:{type:r.jsonValues,read:!(t!=null&&t.readOnly)&&{reader:r.read},write:{writer:r.write}}};return(t==null?void 0:t.readOnly)!==void 0&&(i.readOnly=!!t.readOnly),(t==null?void 0:t.default)!==void 0&&(i.json.default=t.default),(t==null?void 0:t.name)!==void 0&&(i.json.name=t.name),f(i)}const s1=Ao()({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"});s1.toJSON.bind(s1);s1.fromJSON.bind(s1);let X_;var hH,fH,mH;const vM=(mH=(hH=globalThis.esriConfig)==null?void 0:hH.locale)!=null?mH:(fH=globalThis.dojoConfig)==null?void 0:fH.locale;function UX(){var e,t;return(t=vM!=null?vM:(e=globalThis.navigator)==null?void 0:e.language)!=null?t:"en"}function ic(){return X_===void 0&&(X_=UX()),X_}const ew=[];function dHe(e){return ew.push(e),{remove(){ew.splice(ew.indexOf(e),1)}}}const W$=[];function vD(e){return W$.push(e),{remove(){ew.splice(W$.indexOf(e),1)}}}function pHe(){const e=UX();X_!==e&&(X_=e,[...W$].forEach(t=>{t.call(null,e)}),[...ew].forEach(t=>{t.call(null,e)}))}var gH;(gH=globalThis.addEventListener)==null||gH.call(globalThis,"languagechange",pHe);const wc={year:"numeric",month:"numeric",day:"numeric"},hb={year:"numeric",month:"long",day:"numeric"},fb={year:"numeric",month:"short",day:"numeric"},mb={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ll={hour:"numeric",minute:"numeric"},ba={...Ll,second:"numeric"},bD={"short-date":wc,"short-date-short-time":{...wc,...Ll},"short-date-short-time-24":{...wc,...Ll,hour12:!1},"short-date-long-time":{...wc,...ba},"short-date-long-time-24":{...wc,...ba,hour12:!1},"short-date-le":wc,"short-date-le-short-time":{...wc,...Ll},"short-date-le-short-time-24":{...wc,...Ll,hour12:!1},"short-date-le-long-time":{...wc,...ba},"short-date-le-long-time-24":{...wc,...ba,hour12:!1},"long-month-day-year":hb,"long-month-day-year-short-time":{...hb,...Ll},"long-month-day-year-short-time-24":{...hb,...Ll,hour12:!1},"long-month-day-year-long-time":{...hb,...ba},"long-month-day-year-long-time-24":{...hb,...ba,hour12:!1},"day-short-month-year":fb,"day-short-month-year-short-time":{...fb,...Ll},"day-short-month-year-short-time-24":{...fb,...Ll,hour12:!1},"day-short-month-year-long-time":{...fb,...ba},"day-short-month-year-long-time-24":{...fb,...ba,hour12:!1},"long-date":mb,"long-date-short-time":{...mb,...Ll},"long-date-short-time-24":{...mb,...Ll,hour12:!1},"long-date-long-time":{...mb,...ba},"long-date-long-time-24":{...mb,...ba,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ll,"long-time":ba},l1=Ao()({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"});l1.apiValues;l1.toJSON.bind(l1);l1.fromJSON.bind(l1);const hHe={ar:"ar-u-nu-latn-ca-gregory"};let H$=new WeakMap,WX=bD["short-date-short-time"];function fHe(e){const t=e||WX;let r=H$.get(t);if(!r){const i=ic(),n=hHe[ic()]||i;r=new Intl.DateTimeFormat(n,t),H$.set(t,r)}return r}function _D(e){return e?bD[e]:null}function Cd(e,t){return fHe(t).format(e)}vD(()=>{H$=new WeakMap,WX=bD["short-date-short-time"]});const mHe={ar:"ar-u-nu-latn"};let ZC=new WeakMap,HX={};function gHe(e){const t=e||HX;if(!ZC.has(t)){const r=ic(),i=mHe[ic()]||r;ZC.set(t,new Intl.NumberFormat(i,e))}return ZC.get(t)}function GX(e={}){const t={};return e.digitSeparator!=null&&(t.useGrouping=e.digitSeparator),e.places!=null&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function Ph(e,t){return e===-0&&(e=0),gHe(t).format(e)}vD(()=>{ZC=new WeakMap,HX={}});var G$;let xf=G$=class extends xt{constructor(e){super(e),this.dateFormat=null,this.dateTimeFormatOptions=null,this.digitSeparator=!1,this.places=null}clone(){return new G$({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})}format(e){return this.dateFormat?Cd(e,{..._D(this.dateFormat),...this.dateTimeFormatOptions}):Ph(e,GX(this))}formatRasterPixelValue(e){if(e.includes("-"))return e;let t,r;return e.trim().includes(",")?(t=",",r=t+" ",this._formatDelimitedString(e,t,r,this)):e.trim().includes(";")?(t=";",r=t+" ",this._formatDelimitedString(e,t,r,this)):e.trim().includes(" ")?(t=r=" ",this._formatDelimitedString(e,t,r,this)):this.format(Number(e))}_formatDelimitedString(e,t,r,i){return e&&t&&r&&i?e.trim().split(t).map(n=>this.format(Number(n))).join(r):e}};d([pr(s1)],xf.prototype,"dateFormat",void 0),d([f({type:Object,json:{read:!1}})],xf.prototype,"dateTimeFormatOptions",void 0),d([f({type:Boolean,json:{write:!0}})],xf.prototype,"digitSeparator",void 0),d([f({type:ni,json:{write:!0}})],xf.prototype,"places",void 0),xf=G$=d([se("esri.popup.support.FieldInfoFormat")],xf);const Hy=xf;var q$;let ka=q$=class extends xt{constructor(e){super(e),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new q$({fieldName:this.fieldName,format:this.format?Ge(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};d([f({type:String,json:{write:!0}})],ka.prototype,"fieldName",void 0),d([f({type:Hy,json:{write:!0}})],ka.prototype,"format",void 0),d([f({type:Boolean,json:{write:!0,default:!1}})],ka.prototype,"isEditable",void 0),d([f({type:String,json:{write:!0}})],ka.prototype,"label",void 0),d([pr(new Yr({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],ka.prototype,"stringFieldOption",void 0),d([f({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],ka.prototype,"statisticType",void 0),d([f({type:String,json:{write:!0}})],ka.prototype,"tooltip",void 0),d([f({type:Boolean,json:{write:!0}})],ka.prototype,"visible",void 0),ka=q$=d([se("esri.popup.FieldInfo")],ka);const sx=ka;var Y$;let Mu=Y$=class extends Hh{constructor(e){super(e),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(e,t){t.fieldInfos=e&&e.map(r=>r.toJSON())}clone(){return new Y$(Ge({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};d([f({type:Object,json:{write:!0}})],Mu.prototype,"attributes",void 0),d([f({type:String,json:{write:!0}})],Mu.prototype,"description",void 0),d([f({type:[sx]})],Mu.prototype,"fieldInfos",void 0),d([zt("fieldInfos")],Mu.prototype,"writeFieldInfos",null),d([f({type:String,json:{write:!0}})],Mu.prototype,"title",void 0),d([f({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],Mu.prototype,"type",void 0),Mu=Y$=d([se("esri.popup.content.FieldsContent")],Mu);const Zv=Mu;let Cf=class extends xt{constructor(e){super(e),this.altText=null,this.caption="",this.title="",this.type=null}};d([f({type:String,json:{write:!0}})],Cf.prototype,"altText",void 0),d([f({type:String,json:{write:!0}})],Cf.prototype,"caption",void 0),d([f({type:String,json:{write:!0}})],Cf.prototype,"title",void 0),d([f({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],Cf.prototype,"type",void 0),Cf=d([se("esri.popup.content.mixins.MediaInfo")],Cf);const wD=Cf;var K$;let iy=K$=class extends rr{constructor(e){super(e),this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new K$({fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};d([f()],iy.prototype,"fieldName",void 0),d([f()],iy.prototype,"tooltip",void 0),d([f()],iy.prototype,"value",void 0),iy=K$=d([se("esri.popup.content.support.ChartMediaInfoValueSeries")],iy);const qX=iy;var Z$;let kf=Z$=class extends xt{constructor(e){super(e),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new Z$({fields:Ge(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};d([f({type:[String],json:{write:!0}})],kf.prototype,"fields",void 0),d([f({type:String,json:{write:!0}})],kf.prototype,"normalizeField",void 0),d([f({type:[qX],json:{read:!1}})],kf.prototype,"series",void 0),d([f({type:String,json:{write:!0}})],kf.prototype,"tooltipField",void 0),kf=Z$=d([se("esri.popup.content.support.ChartMediaInfoValue")],kf);const yHe=kf;let Vb=class extends wD{constructor(e){super(e),this.type=null,this.value=null}};d([f({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],Vb.prototype,"type",void 0),d([f({type:yHe,json:{write:!0}})],Vb.prototype,"value",void 0),Vb=d([se("esri.popup.content.mixins.ChartMediaInfo")],Vb);const Q3=Vb,J3=Ao()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var Q$;let QC=Q$=class extends Q3{constructor(e){super(e),this.type="bar-chart"}clone(){return new Q$({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};d([f({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:J3.write}})],QC.prototype,"type",void 0),QC=Q$=d([se("esri.popup.content.BarChartMediaInfo")],QC);const YX=QC;var J$;let JC=J$=class extends Q3{constructor(e){super(e),this.type="column-chart"}clone(){return new J$({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};d([f({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:J3.write}})],JC.prototype,"type",void 0),JC=J$=d([se("esri.popup.content.ColumnChartMediaInfo")],JC);const KX=JC;var X$;let Bb=X$=class extends xt{constructor(e){super(e),this.linkURL=null,this.sourceURL=null}clone(){return new X$({linkURL:this.linkURL,sourceURL:this.sourceURL})}};d([f({type:String,json:{write:!0}})],Bb.prototype,"linkURL",void 0),d([f({type:String,json:{write:!0}})],Bb.prototype,"sourceURL",void 0),Bb=X$=d([se("esri.popup.content.support.ImageMediaInfoValue")],Bb);const vHe=Bb;var e6;let ny=e6=class extends wD{constructor(e){super(e),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new e6({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};d([f({type:Number,json:{write:!0}})],ny.prototype,"refreshInterval",void 0),d([f({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],ny.prototype,"type",void 0),d([f({type:vHe,json:{write:!0}})],ny.prototype,"value",void 0),ny=e6=d([se("esri.popup.content.ImageMediaInfo")],ny);const ZX=ny;var t6;let XC=t6=class extends Q3{constructor(e){super(e),this.type="line-chart"}clone(){return new t6({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};d([f({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:J3.write}})],XC.prototype,"type",void 0),XC=t6=d([se("esri.popup.content.LineChartMediaInfo")],XC);const QX=XC;var r6;let ek=r6=class extends Q3{constructor(e){super(e),this.type="pie-chart"}clone(){return new r6({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};d([f({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:J3.write}})],ek.prototype,"type",void 0),ek=r6=d([se("esri.popup.content.PieChartMediaInfo")],ek);const JX=ek,XX={base:wD,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":YX,"column-chart":KX,"line-chart":QX,"pie-chart":JX,image:ZX}};var i6;let Sa=i6=class extends Hh{constructor(e){super(e),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(e){return e&&e.map(t=>t.type==="image"?ZX.fromJSON(t):t.type==="barchart"?YX.fromJSON(t):t.type==="columnchart"?KX.fromJSON(t):t.type==="linechart"?QX.fromJSON(t):t.type==="piechart"?JX.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(e,t){t.mediaInfos=e&&e.map(r=>r.toJSON())}clone(){return new i6(Ge({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};d([f()],Sa.prototype,"activeMediaInfoIndex",void 0),d([f({type:Object,json:{write:!0}})],Sa.prototype,"attributes",void 0),d([f({type:String,json:{write:!0}})],Sa.prototype,"description",void 0),d([f({types:[XX]})],Sa.prototype,"mediaInfos",void 0),d([Tt("mediaInfos")],Sa.prototype,"readMediaInfos",null),d([zt("mediaInfos")],Sa.prototype,"writeMediaInfos",null),d([f({type:String,json:{write:!0}})],Sa.prototype,"title",void 0),d([f({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],Sa.prototype,"type",void 0),Sa=i6=d([se("esri.popup.content.MediaContent")],Sa);const a1=Sa;var n6;let Ub=n6=class extends xt{constructor(e){super(e),this.field=null,this.order=null}clone(){return new n6({field:this.field,order:this.order})}};d([f({type:String,json:{write:!0}})],Ub.prototype,"field",void 0),d([f({type:["asc","desc"],json:{write:!0}})],Ub.prototype,"order",void 0),Ub=n6=d([se("esri.popup.support.RelatedRecordsInfoFieldOrder")],Ub);const xD=Ub;let Ec=class extends pn(Hh){constructor(e){super(e),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};d([f({type:String,json:{write:!0}})],Ec.prototype,"description",void 0),d([f({type:Number,json:{type:ni,write:!0}})],Ec.prototype,"displayCount",void 0),d([f({type:["list"],json:{write:!0}})],Ec.prototype,"displayType",void 0),d([f({type:[xD],json:{write:!0}})],Ec.prototype,"orderByFields",void 0),d([f({type:Number,json:{type:ni,write:!0}})],Ec.prototype,"relationshipId",void 0),d([f({type:String,json:{write:!0}})],Ec.prototype,"title",void 0),d([f({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],Ec.prototype,"type",void 0),Ec=d([se("esri.popup.content.RelationshipContent")],Ec);const WS=Ec;var o6;let Wb=o6=class extends Hh{constructor(e){super(e),this.text=null,this.type="text"}clone(){return new o6({text:this.text})}};d([f({type:String,json:{write:!0}})],Wb.prototype,"text",void 0),d([f({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],Wb.prototype,"type",void 0),Wb=o6=d([se("esri.popup.content.TextContent")],Wb);const Qv=Wb,bHe={base:null,key:"type",typeMap:{attachment:o1,media:a1,text:Qv,expression:yD,field:Zv,relationship:WS}};var s6;let Sf=s6=class extends xt{constructor(e){super(e),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new s6({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};d([f({type:String,json:{write:!0}})],Sf.prototype,"name",void 0),d([f({type:String,json:{write:!0}})],Sf.prototype,"title",void 0),d([f({type:String,json:{write:!0}})],Sf.prototype,"expression",void 0),d([f({type:["string","number"],json:{write:!0}})],Sf.prototype,"returnType",void 0),Sf=s6=d([se("esri.popup.ExpressionInfo")],Sf);const eee=Sf;var l6;let Hb=l6=class extends xt{constructor(e){super(e),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new l6({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};d([f({type:Boolean,json:{write:!0}})],Hb.prototype,"returnTopmostRaster",void 0),d([f({type:Boolean,json:{write:!0}})],Hb.prototype,"showNoDataRecords",void 0),Hb=l6=d([se("esri.popup.LayerOptions")],Hb);const _He=Hb;var a6;let Gb=a6=class extends xt{constructor(e){super(e),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new a6({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?Ge(this.orderByFields):null})}};d([f({type:Boolean,json:{write:!0}})],Gb.prototype,"showRelatedRecords",void 0),d([f({type:[xD],json:{write:!0}})],Gb.prototype,"orderByFields",void 0),Gb=a6=d([se("esri.popup.RelatedRecordsInfo")],Gb);const wHe=Gb;let tee=0;const C0=e=>{let t=class extends e{constructor(...r){super(...r),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+tee++})}};return t=d([se("esri.core.Identifiable")],t),t},CD=e=>{let t=class extends e{constructor(...r){super(...r),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:tee++})}};return t=d([se("esri.core.NumericIdentifiable")],t),t};let C9=class extends C0(class{}){};C9=d([se("esri.core.Identifiable")],C9);var c6;let Ea=c6=class extends C0(rr){constructor(e){super(e),this.active=!1,this.className=null,this.disabled=!1,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new c6({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};d([f()],Ea.prototype,"active",void 0),d([f()],Ea.prototype,"className",void 0),d([f()],Ea.prototype,"disabled",void 0),d([f()],Ea.prototype,"id",void 0),d([f()],Ea.prototype,"indicator",void 0),d([f()],Ea.prototype,"title",void 0),d([f()],Ea.prototype,"type",void 0),d([f()],Ea.prototype,"visible",void 0),Ea=c6=d([se("esri.support.actions.ActionBase")],Ea);const X3=Ea;var u6;let tk=u6=class extends X3{constructor(e){super(e),this.image=null,this.type="button"}clone(){return new u6({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};d([f()],tk.prototype,"image",void 0),tk=u6=d([se("esri.support.Action.ActionButton")],tk);const k0=tk;var d6;let qb=d6=class extends X3{constructor(e){super(e),this.image=null,this.type="toggle",this.value=!1}clone(){return new d6({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};d([f()],qb.prototype,"image",void 0),d([f()],qb.prototype,"value",void 0),qb=d6=d([se("esri.support.Action.ActionToggle")],qb);const ree=qb,xHe="esri.PopupTemplate",CHe=ft.getLogger(xHe),gb="relationships/",k9="expression/",kHe=dr.ofType({key:"type",defaultKeyValue:"button",base:X3,typeMap:{button:k0,toggle:ree}}),SHe={base:Hh,key:"type",typeMap:{media:a1,custom:uHe,text:Qv,attachments:o1,fields:Zv,expression:yD,relationship:WS}},EHe=["attachments","fields","media","text","expression","relationship"];let Wn=class extends pn(xt){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(e){return Array.isArray(e)?e.map(t=>au(SHe,t)):typeof e=="string"||typeof e=="function"||e instanceof HTMLElement||Rd(e)?e:(CHe.error("content error","unsupported content value",{value:e}),null)}readContent(e,t){const{popupElements:r}=t;return Array.isArray(r)&&r.length>0?this._readPopupInfoElements(t.description,t.mediaInfos,r):this._readPopupInfo(t)}writeContent(e,t,r,i){typeof e!="string"?Array.isArray(e)&&(t.popupElements=e.filter(n=>EHe.includes(n.type)).map(n=>n&&n.toJSON(i)),t.popupElements.forEach(n=>{n.type==="attachments"?this._writeAttachmentContent(t):n.type==="media"?this._writeMediaContent(n,t):n.type==="text"?this._writeTextContent(n,t):n.type==="relationship"&&this._writeRelationshipContent(n,t)})):t.description=e}writeFieldInfos(e,t,r,i){const{content:n}=this,o=Array.isArray(n)?n:null;if(e){const s=o?o.filter(a=>a.type==="fields"):[],l=s.length&&s.every(a=>{var c;return(c=a.fieldInfos)==null?void 0:c.length});t.fieldInfos=e.filter(Boolean).map(a=>{const c=a.toJSON(i);return l&&(c.visible=!1),c})}if(o)for(const s of o)s.type==="fields"&&this._writeFieldsContent(s,t)}writeLayerOptions(e,t,r,i){t[r]=!e||e.showNoDataRecords===null&&e.returnTopmostRaster===null?null:e.toJSON(i)}writeTitle(e,t){t.title=e||""}async collectRequiredFields(e,t){const r=this.expressionInfos||[];await this._collectExpressionInfoFields(e,t,[...r,...this._getContentExpressionInfos(this.content,r)]),n1(e,t,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(e){const t=new Set;return await this.collectRequiredFields(t,e),[...t].sort()}_writeFieldsContent(e,t){if(!Array.isArray(e.fieldInfos)||!e.fieldInfos.length)return;const r=Ge(e.fieldInfos);Array.isArray(t.fieldInfos)?r.forEach(i=>{const n=t.fieldInfos.find(o=>o.fieldName.toLowerCase()===i.fieldName.toLowerCase());n?n.visible=!0:t.fieldInfos.push(i)}):t.fieldInfos=r}_writeAttachmentContent(e){e.showAttachments||(e.showAttachments=!0)}_writeRelationshipContent(e,t){var n,o;const r=((n=e.orderByFields)==null?void 0:n.map(s=>this._toFieldOrderJSON(s,e.relationshipId)))||[],i=[...((o=t.relatedRecordsInfo)==null?void 0:o.orderByFields)||[],...r];t.relatedRecordsInfo={showRelatedRecords:!0,...(i==null?void 0:i.length)&&{orderByFields:i}}}_writeTextContent(e,t){!t.description&&e.text&&(t.description=e.text)}_writeMediaContent(e,t){if(!Array.isArray(e.mediaInfos)||!e.mediaInfos.length)return;const r=Ge(e.mediaInfos);Array.isArray(t.mediaInfos)?t.mediaInfos=[...t.mediaInfos,...r]:t.mediaInfos=r}_readPopupInfoElements(e,t,r){const i={description:!1,mediaInfos:!1};return r.map(n=>n.type==="media"?(n.mediaInfos||!t||i.mediaInfos||(n.mediaInfos=t,i.mediaInfos=!0),a1.fromJSON(n)):n.type==="text"?(n.text||!e||i.description||(n.text=e,i.description=!0),Qv.fromJSON(n)):n.type==="attachments"?o1.fromJSON(n):n.type==="fields"?Zv.fromJSON(n):n.type==="expression"?yD.fromJSON(n):n.type==="relationship"?WS.fromJSON(n):void 0).filter(Boolean)}_toRelationshipContent(e){const{field:t,order:r}=e;if(!(t!=null&&t.startsWith(gb)))return null;const i=t.replace(gb,"").split("/");if(i.length!==2)return null;const n=parseInt(i[0],10),o=i[1];return typeof n=="number"&&o?WS.fromJSON({relationshipId:n,orderByFields:[{field:o,order:r}]}):null}_toFieldOrderJSON(e,t){const{order:r,field:i}=e;return{field:`${gb}${t}/${i}`,order:r}}_readPopupInfo({description:e,mediaInfos:t,showAttachments:r,relatedRecordsInfo:i={showRelatedRecords:!1}}){const n=[];e?n.push(new Qv({text:e})):n.push(new Zv),Array.isArray(t)&&t.length&&n.push(a1.fromJSON({mediaInfos:t})),r&&n.push(o1.fromJSON({displayType:"auto"}));const{showRelatedRecords:o,orderByFields:s}=i;return o&&(s==null?void 0:s.length)&&s.forEach(l=>{const a=this._toRelationshipContent(l);a&&n.push(a)}),n.length?n:e}_getContentElementFields(e){var r;const t=e==null?void 0:e.type;if(t==="attachments")return[...this._extractFieldNames(e.title),...this._extractFieldNames(e.description)];if(t==="custom")return e.outFields||[];if(t==="fields")return[...this._extractFieldNames(e.title),...this._extractFieldNames(e.description),...this._getFieldInfoFields((r=e.fieldInfos)!=null?r:this.fieldInfos)];if(t==="media"){const i=e.mediaInfos||[];return[...this._extractFieldNames(e.title),...this._extractFieldNames(e.description),...i.reduce((n,o)=>[...n,...this._getMediaInfoFields(o)],[])]}return t==="text"?this._extractFieldNames(e.text):[]}_getMediaInfoFields(e){const{caption:t,title:r,value:i}=e,n=i||{},{fields:o,normalizeField:s,tooltipField:l,sourceURL:a,linkURL:c}=n,u=[...this._extractFieldNames(r),...this._extractFieldNames(t),...this._extractFieldNames(a),...this._extractFieldNames(c),...o!=null?o:[]];return s&&u.push(s),l&&u.push(l),u}_getContentExpressionInfos(e,t){return Array.isArray(e)?e.reduce((r,i)=>[...r,...i.type==="expression"&&i.expressionInfo?[i.expressionInfo]:[]],t):[]}_getContentFields(e){return typeof e=="string"?this._extractFieldNames(e):Array.isArray(e)?e.reduce((t,r)=>[...t,...this._getContentElementFields(r)],[]):[]}async _collectExpressionInfoFields(e,t,r){r&&await Promise.all(r.map(i=>ds(e,t,i.expression)))}_getFieldInfoFields(e){return e?e.filter(t=>t.visible===void 0||!!t.visible).map(t=>t.fieldName).filter(t=>!t.startsWith(gb)&&!t.startsWith(k9)):[]}_getActionsFields(e){return e?e.toArray().reduce((t,r)=>[...t,...this._getActionFields(r)],[]):[]}_getActionFields(e){const{className:t,title:r,type:i}=e,n=i==="button"||i==="toggle"?e.image:"";return[...this._extractFieldNames(r),...this._extractFieldNames(t),...this._extractFieldNames(n)]}_getTitleFields(e){return typeof e=="string"?this._extractFieldNames(e):[]}_extractFieldNames(e){if(!e||typeof e!="string")return[];const t=/{[^}]*}/g,r=e.match(t);if(!r)return[];const i=/\{(\w+):.+\}/,n=r.filter(o=>!(o.indexOf(`{${gb}`)===0||o.indexOf(`{${k9}`)===0)).map(o=>o.replace(i,"{$1}"));return n?n.map(o=>o.slice(1,-1)):[]}};d([f({type:kHe})],Wn.prototype,"actions",void 0),d([f()],Wn.prototype,"content",void 0),d([Qr("content")],Wn.prototype,"castContent",null),d([Tt("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Wn.prototype,"readContent",null),d([zt("content",{popupElements:{type:dr.ofType(bHe)},showAttachments:{type:Boolean},mediaInfos:{type:dr.ofType(XX)},description:{type:String},relatedRecordsInfo:{type:wHe}})],Wn.prototype,"writeContent",null),d([f({type:[eee],json:{write:!0}})],Wn.prototype,"expressionInfos",void 0),d([f({type:[sx]})],Wn.prototype,"fieldInfos",void 0),d([zt("fieldInfos")],Wn.prototype,"writeFieldInfos",null),d([f({type:_He})],Wn.prototype,"layerOptions",void 0),d([zt("layerOptions")],Wn.prototype,"writeLayerOptions",null),d([f({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Wn.prototype,"lastEditInfoEnabled",void 0),d([f()],Wn.prototype,"outFields",void 0),d([f()],Wn.prototype,"overwriteActions",void 0),d([f()],Wn.prototype,"returnGeometry",void 0),d([f({json:{type:String}})],Wn.prototype,"title",void 0),d([zt("title")],Wn.prototype,"writeTitle",null),Wn=d([se("esri.PopupTemplate")],Wn);const S0=Wn,HS={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function iee(e){return HS[e]||HS[e.toLowerCase()]}function kD(e){var t;return(t=HS[e])!=null?t:HS[e.toLowerCase()]}function THe(e){return[...kD(e)]}function bM(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function nee(e,t,r,i=1){const n=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,s=2*r-o;return[Math.round(255*bM(s,o,n+1/3)),Math.round(255*bM(s,o,n)),Math.round(255*bM(s,o,n-1/3)),i]}function AHe(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,o=t?e.length===9:e.length===5;let s=Number("0x"+e.substr(1));if(isNaN(s))return null;const l=[0,0,0,1];let a;return o&&(a=s&i,s>>=r,l[3]=n*a/255),a=s&i,s>>=r,l[2]=n*a,a=s&i,s>>=r,l[1]=n*a,a=s&i,s>>=r,l[0]=n*a,l}function mu(){return[0,0,0]}function MHe(e){return[e[0],e[1],e[2]]}function E0(e,t,r){return[e,t,r]}function IHe(e){const t=mu(),r=Math.min(3,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t}function PHe(e,t){return new Float64Array(e,t,3)}function oee(){return mu()}function see(){return E0(1,1,1)}function lee(){return E0(1,0,0)}function aee(){return E0(0,1,0)}function cee(){return E0(0,0,1)}const $He=oee(),uee=see(),OHe=lee(),LHe=aee(),RHe=cee();Object.freeze(Object.defineProperty({__proto__:null,create:mu,clone:MHe,fromValues:E0,fromArray:IHe,createView:PHe,zeros:oee,ones:see,unitX:lee,unitY:aee,unitZ:cee,ZEROS:$He,ONES:uee,UNIT_X:OHe,UNIT_Y:LHe,UNIT_Z:RHe},Symbol.toStringTag,{value:"Module"}));let SD=1e-6;function pa(){return SD}function DHe(e){SD=e}const eT=Math.random,NHe=Math.PI/180,FHe=180/Math.PI;function ED(e){return e*NHe}function zHe(e){return e*FHe}function jHe(e,t){return Math.abs(e-t)<=SD*Math.max(1,Math.abs(e),Math.abs(t))}Object.freeze(Object.defineProperty({__proto__:null,getEpsilon:pa,setEpsilon:DHe,RANDOM:eT,toRadian:ED,toDegree:zHe,equals:jHe},Symbol.toStringTag,{value:"Module"}));function TD(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function p6(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function dee(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function VHe(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function pee(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function hee(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function fee(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function BHe(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function UHe(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function WHe(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function HHe(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function GHe(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function qHe(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function YHe(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}function mee(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function KHe(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function gee(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function yee(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function vee(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function ZHe(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function QHe(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function h6(e,t){const r=t[0],i=t[1],n=t[2];let o=r*r+i*i+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function bee(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function JHe(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],l=r[1],a=r[2];return e[0]=n*a-o*l,e[1]=o*s-i*a,e[2]=i*l-n*s,e}function XHe(e,t,r,i){const n=t[0],o=t[1],s=t[2];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e}function eGe(e,t,r,i,n,o){const s=o*o,l=s*(2*o-3)+1,a=s*(o-2)+o,c=s*(o-1),u=s*(3-2*o);return e[0]=t[0]*l+r[0]*a+i[0]*c+n[0]*u,e[1]=t[1]*l+r[1]*a+i[1]*c+n[1]*u,e[2]=t[2]*l+r[2]*a+i[2]*c+n[2]*u,e}function tGe(e,t,r,i,n,o){const s=1-o,l=s*s,a=o*o,c=l*s,u=3*o*l,p=3*a*s,h=a*o;return e[0]=t[0]*c+r[0]*u+i[0]*p+n[0]*h,e[1]=t[1]*c+r[1]*u+i[1]*p+n[1]*h,e[2]=t[2]*c+r[2]*u+i[2]*p+n[2]*h,e}function rGe(e,t){t=t||1;const r=eT,i=2*r()*Math.PI,n=2*r()-1,o=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(i)*o,e[1]=Math.sin(i)*o,e[2]=n*t,e}function iGe(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12],e[1]=r[1]*i+r[5]*n+r[9]*o+r[13],e[2]=r[2]*i+r[6]*n+r[10]*o+r[14],e}function nGe(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=i*r[0]+n*r[3]+o*r[6],e[1]=i*r[1]+n*r[4]+o*r[7],e[2]=i*r[2]+n*r[5]+o*r[8],e}function oGe(e,t,r){const i=r[0],n=r[1],o=r[2],s=r[3],l=t[0],a=t[1],c=t[2];let u=n*c-o*a,p=o*l-i*c,h=i*a-n*l,m=n*h-o*p,y=o*u-i*h,v=i*p-n*u;const _=2*s;return u*=_,p*=_,h*=_,m*=2,y*=2,v*=2,e[0]=l+u+m,e[1]=a+p+y,e[2]=c+h+v,e}function sGe(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),o[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function lGe(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function aGe(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),o[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),o[2]=n[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function cGe(e,t){p6(_2,e),p6(w2,t),h6(_2,_2),h6(w2,w2);const r=bee(_2,w2);return r>1?0:r<-1?Math.PI:Math.acos(r)}const _2=mu(),w2=mu();function uGe(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function dGe(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function pGe(e,t){if(e===t)return!0;const r=e[0],i=e[1],n=e[2],o=t[0],s=t[1],l=t[2],a=pa();return Math.abs(r-o)<=a*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=a*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(n-l)<=a*Math.max(1,Math.abs(n),Math.abs(l))}function hGe(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2];let s=i*i+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const fGe=pee,mGe=hee,gGe=fee,yGe=gee,vGe=yee,bGe=TD,_Ge=vee;Object.freeze(Object.defineProperty({__proto__:null,length:TD,copy:p6,set:dee,add:VHe,subtract:pee,multiply:hee,divide:fee,ceil:BHe,floor:UHe,abs:WHe,sign:HHe,min:GHe,max:qHe,round:YHe,scale:mee,scaleAndAdd:KHe,distance:gee,squaredDistance:yee,squaredLength:vee,negate:ZHe,inverse:QHe,normalize:h6,dot:bee,cross:JHe,lerp:XHe,hermite:eGe,bezier:tGe,random:rGe,transformMat4:iGe,transformMat3:nGe,transformQuat:oGe,rotateX:sGe,rotateY:lGe,rotateZ:aGe,angle:cGe,str:uGe,exactEquals:dGe,equals:pGe,direction:hGe,sub:fGe,mul:mGe,div:gGe,dist:yGe,sqrDist:vGe,len:bGe,sqrLen:_Ge},Symbol.toStringTag,{value:"Module"}));function wGe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function xGe(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function CGe(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function _ee(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function wee(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function xee(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function kGe(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e}function SGe(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e}function EGe(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function TGe(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function AGe(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function MGe(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function IGe(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e}function Cee(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+o*o)}function kee(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],o=t[3]-e[3];return r*r+i*i+n*n+o*o}function See(e){const t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)}function Eee(e){const t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n}function PGe(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}function $Ge(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}function OGe(e,t){const r=t[0],i=t[1],n=t[2],o=t[3];let s=r*r+i*i+n*n+o*o;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=n*s,e[3]=o*s),e}function LGe(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Tee(e,t,r,i){const n=t[0],o=t[1],s=t[2],l=t[3];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e[3]=l+i*(r[3]-l),e}function RGe(e,t){const r=eT;let i,n,o,s,l,a;t=t||1;do i=2*r()-1,n=2*r()-1,l=i*i+n*n;while(l>=1);do o=2*r()-1,s=2*r()-1,a=o*o+s*s;while(a>=1);const c=Math.sqrt((1-l)/a);return e[0]=t*i,e[1]=t*n,e[2]=t*o*c,e[3]=t*s*c,e}function DGe(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12]*s,e[1]=r[1]*i+r[5]*n+r[9]*o+r[13]*s,e[2]=r[2]*i+r[6]*n+r[10]*o+r[14]*s,e[3]=r[3]*i+r[7]*n+r[11]*o+r[15]*s,e}function NGe(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],l=r[1],a=r[2],c=r[3],u=c*i+l*o-a*n,p=c*n+a*i-s*o,h=c*o+s*n-l*i,m=-s*i-l*n-a*o;return e[0]=u*c+m*-s+p*-a-h*-l,e[1]=p*c+m*-l+h*-s-u*-a,e[2]=h*c+m*-a+u*-l-p*-s,e[3]=t[3],e}function FGe(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function zGe(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function jGe(e,t){const r=e[0],i=e[1],n=e[2],o=e[3],s=t[0],l=t[1],a=t[2],c=t[3],u=pa();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-c)<=u*Math.max(1,Math.abs(o),Math.abs(c))}const VGe=_ee,BGe=wee,UGe=xee,WGe=Cee,HGe=kee,GGe=See,qGe=Eee;Object.freeze(Object.defineProperty({__proto__:null,copy:wGe,set:xGe,add:CGe,subtract:_ee,multiply:wee,divide:xee,ceil:kGe,floor:SGe,min:EGe,max:TGe,round:AGe,scale:MGe,scaleAndAdd:IGe,distance:Cee,squaredDistance:kee,length:See,squaredLength:Eee,negate:PGe,inverse:$Ge,normalize:OGe,dot:LGe,lerp:Tee,random:RGe,transformMat4:DGe,transformQuat:NGe,str:FGe,exactEquals:zGe,equals:jGe,sub:VGe,mul:BGe,div:UGe,dist:WGe,sqrDist:HGe,len:GGe,sqrLen:qGe},Symbol.toStringTag,{value:"Module"}));const S9=new Float32Array(1);function ngt(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function Us(e,t,r){return Math.min(Math.max(e,t),r)}function ogt(e){return(e&e-1)==0}function sgt(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function lgt(e,t,r){return e+(t-e)*r}function YGe(e){return e*Math.PI/180}function Aee(e){return 180*e/Math.PI}function agt(e){return Math.acos(Us(e,-1,1))}function Mee(e){return Math.asin(Us(e,-1,1))}function _M(e,t,r=1e-6){return e===t?!0:!Number.isFinite(e)||!Number.isFinite(t)?!1:(e>t?e-t:t-e)<=r}const GS=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function KGe(e){return GS.setFloat64(0,e),GS.getBigInt64(0)}function ZGe(e){return GS.setBigInt64(0,e),GS.getFloat64(0)}const wM=BigInt("1000000");QGe(1);function QGe(e){const t=KGe(e=Math.abs(e)),r=ZGe(t<=wM?wM:t-wM);return Math.abs(e-r)}function cgt(e){return Iee(Math.max(-E9,Math.min(e,E9)))}function Iee(e){return S9[0]=e,S9[0]}function ugt(e,t){const r=TD(e),i=Mee(e[2]/r),n=Math.atan2(e[1]/r,e[0]/r);return dee(t,r,i,n),t}function dgt(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],i=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(_M(t,1)&&_M(r,1)&&_M(i,1))}const E9=Iee(34028234663852886e22);function x2(e){return Us(R3(e),0,255)}function C2(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class kn{constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}static blendColors(t,r,i,n=new kn){return n.r=Math.round(t.r+(r.r-t.r)*i),n.g=Math.round(t.g+(r.g-t.g)*i),n.b=Math.round(t.b+(r.b-t.b)*i),n.a=t.a+(r.a-t.a)*i,n._sanitize()}static fromRgb(t,r){const i=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(i){const n=i[2].split(/\s*,\s*/),o=i[1];if(o==="rgb"&&n.length===3||o==="rgba"&&n.length===4){const s=n[0];if(s.charAt(s.length-1)==="%"){const l=n.map(a=>2.56*parseFloat(a));return n.length===4&&(l[3]=parseFloat(n[3])),kn.fromArray(l,r)}return kn.fromArray(n.map(l=>parseFloat(l)),r)}if(o==="hsl"&&n.length===3||o==="hsla"&&n.length===4)return kn.fromArray(nee(parseFloat(n[0]),parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])),r)}return null}static fromHex(t,r=new kn){if(t.length!==4&&t.length!==7||t[0]!=="#")return null;const i=t.length===4?4:8,n=(1<<i)-1;let o=Number("0x"+t.substr(1));return isNaN(o)?null:(["b","g","r"].forEach(s=>{const l=o&n;o>>=i,r[s]=i===4?17*l:l}),r.a=1,r)}static fromArray(t,r=new kn){return r._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(r.a)&&(r.a=1),r._sanitize()}static fromString(t,r){const i=iee(t)?kD(t):null;return i&&kn.fromArray(i,r)||kn.fromRgb(t,r)||kn.fromHex(t,r)}static fromJSON(t){return t&&new kn([t[0],t[1],t[2],t[3]/255])}static toUnitRGB(t){return ue(t)?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return ue(t)?[t.r/255,t.g/255,t.b/255,t.a!=null?t.a:1]:null}get isBright(){return .299*this.r+.587*this.g+.114*this.b>=127}setColor(t){var r,i,n,o;return typeof t=="string"?kn.fromString(t,this):Array.isArray(t)?kn.fromArray(t,this):(this._set((r=t.r)!=null?r:0,(i=t.g)!=null?i:0,(n=t.b)!=null?n:0,(o=t.a)!=null?o:1),t instanceof kn||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return`#${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}${i.length<2?"0"+i:i}`}toCss(t=!1){const r=this.r+", "+this.g+", "+this.b;return t?`rgba(${r}, ${this.a})`:`rgb(${r})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=kn.AlphaMode.ALWAYS){const r=x2(this.r),i=x2(this.g),n=x2(this.b);return t===kn.AlphaMode.ALWAYS||this.a!==1?[r,i,n,x2(255*this.a)]:[r,i,n]}clone(){return new kn(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return ue(t)&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(C2(this.r,0,255)),this.g=Math.round(C2(this.g,0,255)),this.b=Math.round(C2(this.b,0,255)),this.a=C2(this.a,0,1),this}_set(t,r,i,n){this.r=t,this.g=r,this.b=i,this.a=n}}kn.prototype.declaredClass="esri.Color",function(e){var t;(t=e.AlphaMode||(e.AlphaMode={}))[t.ALWAYS=0]="ALWAYS",t[t.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"}(kn||(kn={}));const wr=kn,T9=new Yr({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let JGe=0,oy=class extends xt{constructor(e){super(e),this.id="sym"+JGe++,this.type=null,this.color=new wr([0,0,0,1])}readColor(e){return e&&e[0]!=null?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};d([f({type:T9.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:T9.write}}})],oy.prototype,"type",void 0),d([f({type:wr,json:{write:{allowNull:!0}}})],oy.prototype,"color",void 0),d([Tt("color")],oy.prototype,"readColor",null),oy=d([se("esri.symbols.Symbol")],oy);const Ys=oy;var f6;let vp=f6=class extends Ys{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){if(e)for(const r in e)t[r]=e[r]}async collectRequiredFields(e,t){var r;if(((r=this.data)==null?void 0:r.type)==="CIMSymbolReference"){const i=this.data.primitiveOverrides;if(i){const n=i.map(o=>{const s=o.valueExpressionInfo;return ds(e,t,s.expression)});await Promise.all(n)}}}clone(){return new f6({data:Ge(this.data)})}hash(){return Z4(JSON.stringify(this.data)).toString()}};d([f({json:{write:!1}})],vp.prototype,"color",void 0),d([f({json:{write:!0}})],vp.prototype,"data",void 0),d([Tt("data",["symbol"])],vp.prototype,"readData",null),d([zt("data",{})],vp.prototype,"writeData",null),d([pr({CIMSymbolReference:"cim"},{readOnly:!0})],vp.prototype,"type",void 0),vp=f6=d([se("esri.symbols.CIMSymbol")],vp);const lx=vp;let sy=class extends xt{constructor(e){super(e),this.enabled=!0,this.type=null}writeEnabled(e,t,r){e||(t[r]=e)}};d([f({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],sy.prototype,"enabled",void 0),d([zt("enabled")],sy.prototype,"writeEnabled",null),d([f({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],sy.prototype,"type",void 0),sy=d([se("esri.symbols.Symbol3DLayer")],sy);const gu=sy,XGe=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,eqe="screenUtils.toPt: input not recognized!",Pee=96;function $ee(e){return e?e/72*Pee:0}function kd(e){return e?72*e/Pee:0}function oi(e){if(typeof e=="string"){const t=e.match(XGe);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.charAt(0)==="-",o=i==="px"?kd(r):r;return n?-o:o}return console.warn(eqe),null}return e}function Rs(e=0,t=0){return{x:e,y:t}}function pgt(e=0,t=0){return[e,t]}function tT(e){const t=R3(100*(1-e));return Math.max(0,Math.min(t,100))}function c1(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}function tqe(e,t){const r=t.transparency!=null?c1(t.transparency):1,i=t.color;return i&&Array.isArray(i)?new wr([i[0]||0,i[1]||0,i[2]||0,r]):null}function rqe(e,t){t.color=e.toJSON().slice(0,3);const r=tT(e.a);r!==0&&(t.transparency=r)}const Gh={type:wr,json:{type:[ni],default:null,read:{source:["color","transparency"],reader:tqe},write:{target:{color:{type:[ni]},transparency:{type:ni}},writer:rqe}}},cu={type:Number,cast:oi,json:{write:!0}};let Ef=class extends xt{constructor(e){super(e),this.color=new wr([0,0,0,1]),this.extensionLength=0,this.size=kd(1)}clone(){}cloneProperties(){return{color:Ge(this.color),size:this.size,extensionLength:this.extensionLength}}};d([f({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],Ef.prototype,"type",void 0),d([f(Gh)],Ef.prototype,"color",void 0),d([f({...cu,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],Ef.prototype,"extensionLength",void 0),d([f(cu)],Ef.prototype,"size",void 0),Ef=d([se("esri.symbols.edges.Edges3D")],Ef);const AD=Ef;var m6;let rk=m6=class extends AD{constructor(e){super(e),this.type="sketch"}clone(){return new m6(this.cloneProperties())}};d([pr({sketch:"sketch"},{readOnly:!0})],rk.prototype,"type",void 0),rk=m6=d([se("esri.symbols.edges.SketchEdges3D")],rk);const iqe=rk;var g6;let ik=g6=class extends AD{constructor(e){super(e),this.type="solid"}clone(){return new g6(this.cloneProperties())}};d([pr({solid:"solid"},{readOnly:!0})],ik.prototype,"type",void 0),ik=g6=d([se("esri.symbols.support.SolidEdges3D")],ik);const nqe=ik,Oee={types:{key:"type",base:AD,typeMap:{solid:nqe,sketch:iqe}},json:{write:!0}};var y6;let bl=y6=class extends xt{constructor(e){super(e),this.color=null}clone(){const e={color:ue(this.color)?this.color.clone():null};return new y6(e)}};d([f(Gh)],bl.prototype,"color",void 0),bl=y6=d([se("esri.symbols.support.Symbol3DMaterial")],bl);var v6;let bp=v6=class extends gu{constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new v6({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:ue(this.material)?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};d([pr({Extrude:"extrude"},{readOnly:!0})],bp.prototype,"type",void 0),d([f({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],bp.prototype,"size",void 0),d([f({type:bl,json:{write:!0}})],bp.prototype,"material",void 0),d([f({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],bp.prototype,"castShadows",void 0),d([f(Oee)],bp.prototype,"edges",void 0),bp=v6=d([se("esri.symbols.ExtrudeSymbol3DLayer")],bp);const Lee=bp;let Yb=class extends Ys{constructor(e){super(e),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};d([pr({esriSLS:"simple-line"},{readOnly:!0})],Yb.prototype,"type",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Yb.prototype,"width",void 0),Yb=d([se("esri.symbols.LineSymbol")],Yb);const oqe=Yb,sqe=["begin","end","begin-end"],Ree=["arrow","circle","square","diamond","cross","x"];var b6;let Tc=b6=class extends xt{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,i){t[r]=(i==null?void 0:i.origin)==="web-map"?"arrow":e}set color(e){this._set("color",e)}readColor(e){return e&&e[0]!=null?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,i){(i==null?void 0:i.origin)==="web-map"||(t[r]=e)}clone(){return new b6({color:Ge(this.color),placement:this.placement,style:this.style})}hash(){var e;return`${this.placement}.${(e=this.color)==null?void 0:e.hash()}.${this.style}`}};d([f({type:["begin","end","begin-end"],json:{write:!0}})],Tc.prototype,"placement",void 0),d([pr({"line-marker":"line-marker"},{readOnly:!0}),f({json:{origins:{"web-map":{write:!1}}}})],Tc.prototype,"type",void 0),d([f({type:Ree})],Tc.prototype,"style",void 0),d([zt("style")],Tc.prototype,"writeStyle",null),d([f({type:wr,value:null,json:{write:{allowNull:!0}}})],Tc.prototype,"color",null),d([Tt("color")],Tc.prototype,"readColor",null),d([zt("color")],Tc.prototype,"writeColor",null),Tc=b6=d([se("esri.symbols.LineSymbolMarker")],Tc);const lqe=Tc;var _6;const xM=new Yr({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let Iu=_6=class extends oqe{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,i,n,o){if(e&&typeof e!="string")return e;const s={};return e!=null&&(s.style=e),t!=null&&(s.color=t),r!=null&&(s.width=oi(r)),i!=null&&(s.cap=i),n!=null&&(s.join=n),o!=null&&(s.miterLimit=oi(o)),s}clone(){var e;return new _6({color:Ge(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:(e=this.marker)==null?void 0:e.clone()})}hash(){var e,t;return`${super.hash()}.${(e=this.color)==null?void 0:e.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${(t=this.marker)==null?void 0:t.hash()}`}};d([pr({esriSLS:"simple-line"},{readOnly:!0})],Iu.prototype,"type",void 0),d([f({type:xM.apiValues,json:{read:xM.read,write:xM.write}})],Iu.prototype,"style",void 0),d([f({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:e!=="round"&&(r==null||r.origin==null)})}}})],Iu.prototype,"cap",void 0),d([f({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:e!=="round"&&(r==null||r.origin==null)})}}})],Iu.prototype,"join",void 0),d([f({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":lqe}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],Iu.prototype,"marker",void 0),d([f({type:Number,json:{read:!1,write:!1}})],Iu.prototype,"miterLimit",void 0),Iu=_6=d([se("esri.symbols.SimpleLineSymbol")],Iu);const ha=Iu;let Kb=class extends Ys{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};d([f({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":ha}},json:{default:null,write:!0}})],Kb.prototype,"outline",void 0),d([f({type:["simple-fill","picture-fill"],readOnly:!0})],Kb.prototype,"type",void 0),Kb=d([se("esri.symbols.FillSymbol")],Kb);const Dee=Kb;let nk=class extends xt{constructor(e){super(e)}clone(){}};d([f({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],nk.prototype,"type",void 0),nk=d([se("esri.symbols.patterns.LinePattern3D")],nk);const Nee=nk,aqe=["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"];var w6;const cqe=Ao()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let Zb=w6=class extends Nee{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new w6(e)}};d([f({type:["style"]})],Zb.prototype,"type",void 0),d([pr(cqe),f({type:aqe})],Zb.prototype,"style",void 0),Zb=w6=d([se("esri.symbols.patterns.LineStylePattern3D")],Zb);const MD=Zb;let ok=class extends xt{constructor(e){super(e)}clone(){}};d([f({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],ok.prototype,"type",void 0),ok=d([se("esri.symbols.patterns.Pattern3D")],ok);const Fee=ok,uqe=["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"];var x6;let Qb=x6=class extends Fee{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new x6(e)}};d([f({type:["style"]})],Qb.prototype,"type",void 0),d([f({type:uqe,json:{read:!0,write:!0}})],Qb.prototype,"style",void 0),Qb=x6=d([se("esri.symbols.patterns.StylePattern3D")],Qb);const zee=Qb,dqe={types:{key:"type",base:Fee,typeMap:{style:zee}},json:{write:!0}},jee={types:{key:"type",base:Nee,typeMap:{style:MD}},json:{write:!0}},tw=new wr("white");new wr("black");const pqe=new wr([255,255,255,0]);function hqe(e){return e.r===0&&e.g===0&&e.b===0}var C6;let rw=C6=class extends bl{constructor(e){super(e),this.colorMixMode=null}clone(){const e={color:ue(this.color)?this.color.clone():null,colorMixMode:this.colorMixMode};return new C6(e)}};d([pr({multiply:"multiply",replace:"replace",tint:"tint"})],rw.prototype,"colorMixMode",void 0),rw=C6=d([se("esri.symbols.support.Symbol3DFillMaterial")],rw);function Sd(e=yqe){return[e[0],e[1],e[2],e[3]]}function hgt(e){return[e[0],e[1],e[2],e[3]]}function Vee(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function fgt(e,t,r,i,n=Sd()){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function mgt(e,t=Sd()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function ggt(e,t){return new li({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function ygt(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function vgt(e,t,r){if(et(t))Vee(r,e);else if("length"in t)k6(t)?(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.max(e[3],t[3])):t.length!==2&&t.length!==3||(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[0]),r[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(e[0],t.xmin),r[1]=Math.min(e[1],t.ymin),r[2]=Math.max(e[2],t.xmax),r[3]=Math.max(e[3],t.ymax);break;case"point":r[0]=Math.min(e[0],t.x),r[1]=Math.min(e[1],t.y),r[2]=Math.max(e[2],t.x),r[3]=Math.max(e[3],t.y)}}function fqe(e){return et(e)||e[0]>=e[2]?0:e[2]-e[0]}function mqe(e){return e[1]>=e[3]?0:e[3]-e[1]}function bgt(e){return fqe(e)*mqe(e)}function _gt(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function wgt(e,t,r){return t[0]>=e[0]-r&&t[1]>=e[1]-r&&t[0]<=e[2]+r&&t[1]<=e[3]+r}function xgt(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function gqe(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function Cgt(e){return e?Vee(e,A9):Sd(A9)}function k6(e){return e!=null&&e.length===4}function kgt(e,t){return k6(e)&&k6(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const A9=[1/0,1/0,-1/0,-1/0],yqe=[0,0,0,0];function ID(e=xqe){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function PD(e,t,r,i,n,o,s=ID()){return s[0]=e,s[1]=t,s[2]=r,s[3]=i,s[4]=n,s[5]=o,s}function Sgt(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new li(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function Egt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function Tgt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function vqe(e){return e[0]>=e[3]?0:e[3]-e[0]}function bqe(e){return e[1]>=e[4]?0:e[4]-e[1]}function _qe(e){return e[2]>=e[5]?0:e[5]-e[2]}function Agt(e,t=[0,0,0]){return t[0]=vqe(e),t[1]=bqe(e),t[2]=_qe(e),t}function Mgt(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function Igt(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function wqe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Pgt(e){return e?wqe(e,I9):ID(I9)}function $gt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M9(e){return e.length===6}function Ogt(e,t,r){if(et(e)||et(t))return e===t;if(!M9(e)||!M9(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const I9=[1/0,1/0,1/0,-1/0,-1/0,-1/0],xqe=[0,0,0,0,0,0];ID();function Lgt(e,{isPrimitive:t,width:r,depth:i,height:n}){const o=t?10:1;if(r==null&&n==null&&i==null)return[o*e[0],o*e[1],o*e[2]];const s=E0(r,i,n);let l;for(let a=0;a<3;a++){const c=s[a];if(c!=null){l=c/e[a];break}}for(let a=0;a<3;a++)s[a]==null&&(s[a]=e[a]*l);return s}const Cqe=PD(-.5,-.5,-.5,.5,.5,.5),kqe=PD(-.5,-.5,0,.5,.5,1),Sqe=PD(-.5,-.5,0,.5,.5,.5);function Rgt(e){switch(e){case"sphere":case"cube":case"diamond":return Cqe;case"cylinder":case"cone":case"inverted-cone":return kqe;case"tetrahedron":return Sqe;default:return}}const $D=["butt","square","round"],Eqe=[...$D,"none"],Bee=["miter","bevel","round"];var S6;let Tf=S6=class extends xt{constructor(e){super(e),this.color=new wr([0,0,0,1]),this.size=kd(1),this.pattern=null,this.patternCap="butt"}clone(){const e={color:ue(this.color)?this.color.clone():null,size:this.size,pattern:ue(this.pattern)?this.pattern.clone():null,patternCap:this.patternCap};return new S6(e)}};d([f(Gh)],Tf.prototype,"color",void 0),d([f(cu)],Tf.prototype,"size",void 0),d([f(jee)],Tf.prototype,"pattern",void 0),d([f({type:$D,json:{default:"butt",write:{overridePolicy(){return{enabled:ue(this.pattern)}}}}})],Tf.prototype,"patternCap",void 0),Tf=S6=d([se("esri.symbols.support.Symbol3DOutline")],Tf);var sk;let Pu=sk=class extends gu{constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const e={edges:ue(this.edges)?this.edges.clone():null,enabled:this.enabled,material:ue(this.material)?this.material.clone():null,pattern:ue(this.pattern)?this.pattern.clone():null,castShadows:this.castShadows,outline:ue(this.outline)?this.outline.clone():null};return new sk(e)}static fromSimpleFillSymbol(e){var i,n,o,s,l,a;const t=e.outline&&e.outline.style&&e.outline.style!=="inside-frame"&&e.outline.style!=="solid"?new MD({style:e.outline.style}):null,r={size:(n=(i=e.outline)==null?void 0:i.width)!=null?n:0,color:((s=(o=e.outline)==null?void 0:o.color)!=null?s:tw).clone(),pattern:t};return t&&((l=e.outline)==null?void 0:l.cap)&&(r.patternCap=e.outline.cap),new sk({material:new rw({color:((a=e.color)!=null?a:pqe).clone()}),pattern:e.style&&e.style!=="solid"?new zee({style:e.style}):null,outline:r})}};d([pr({Fill:"fill"},{readOnly:!0})],Pu.prototype,"type",void 0),d([f({type:rw,json:{write:!0}})],Pu.prototype,"material",void 0),d([f(dqe)],Pu.prototype,"pattern",void 0),d([f({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],Pu.prototype,"castShadows",void 0),d([f({type:Tf,json:{write:!0}})],Pu.prototype,"outline",void 0),d([f(Oee)],Pu.prototype,"edges",void 0),Pu=sk=d([se("esri.symbols.FillSymbol3DLayer")],Pu);const ax=Pu,Tqe=["none","underline","line-through"],Aqe=["normal","italic","oblique"],Mqe=["normal","lighter","bold","bolder"],Uee={type:Number,cast:e=>{const t=Gl(e);return t===0?1:Us(t,.1,4)},nonNullable:!0},Iqe=["left","right","center"],Pqe=["baseline","top","middle","bottom"],Wee={type:Iqe,nonNullable:!0},Hee={type:Pqe,nonNullable:!0};var E6;let $u=E6=class extends xt{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(e){return oi(e)}clone(){return new E6({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};d([f({type:Tqe,json:{default:"none",write:!0}})],$u.prototype,"decoration",void 0),d([f({type:String,json:{write:!0}})],$u.prototype,"family",void 0),d([f({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],$u.prototype,"size",void 0),d([Qr("size")],$u.prototype,"castSize",null),d([f({type:Aqe,json:{default:"normal",write:!0}})],$u.prototype,"style",void 0),d([f({type:Mqe,json:{default:"normal",write:!0}})],$u.prototype,"weight",void 0),$u=E6=d([se("esri.symbols.Font")],$u);const rT=$u,$qe=ft.getLogger("esri.core.urlUtils"),T0=pi.request,P9="esri/config: esriConfig.request.proxyUrl is not set.",Gee=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,qee=/^\s*http:/i,Oqe=/^\s*https:/i,Lqe=/^\s*file:/i,Rqe=/:\d+$/,Dqe=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Nqe=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Fqe=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class ud{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(Nqe);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(Fqe),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}}const k2={},zqe=new ud(pi.applicationUrl);let Vo=zqe;const jqe=Vqe();let OD=jqe;const LD=()=>Vo,Dgt=()=>OD;function Vqe(){const e=Vo.path,t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${`${Vo.scheme}://${Vo.host}${Vo.port!=null?`:${Vo.port}`:""}`}${t}`}function vo(e){if(!e)return null;const t={path:null,query:null},r=new ud(e),i=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.substring(0,i),t.query=Yee(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function Yee(e){const t=e.split("&"),r={};for(const i of t){if(!i)continue;const n=i.indexOf("=");let o,s;n<0?(o=decodeURIComponent(i),s=""):(o=decodeURIComponent(i.slice(0,n)),s=decodeURIComponent(i.slice(n+1)));let l=r[o];typeof l=="string"&&(l=r[o]=[l]),Array.isArray(l)?l.push(s):r[o]=s}return r}function $9(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}function $h(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=>{const i=e[r];if(i==null)return"";const n=encodeURIComponent(r)+"=",o=t&&t[r];return o?n+encodeURIComponent(o(i)):Array.isArray(i)?i.map(s=>$9(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)).join("&"):$9(i)?n+encodeURIComponent(JSON.stringify(i)):n+encodeURIComponent(i)}).filter(r=>r).join("&"):""}function Bqe(e=!1){let t,r=T0.proxyUrl;if(typeof e=="string"){t=Yqe(e);const i=iT(e);i&&(r=i.proxyUrl)}else t=!!e;if(!r)throw $qe.warn(P9),new ze("urlutils:proxy-not-set",P9);return t&&T6()&&(r=zD(r)),vo(r)}function Ngt(e){const t=iT(e);let r,i;if(t){const n=RD(t.proxyUrl);r=n.path,i=n.query?Yee(n.query):null}if(r){const n=vo(e);e=r+"?"+n.path;const o=$h({...i,...n.query});o&&(e=`${e}?${o}`)}return e}const yb={path:"",query:""};function RD(e){const t=e.indexOf("?");return t!==-1?(yb.path=e.slice(0,t),yb.query=e.slice(t+1)):(yb.path=e,yb.query=null),yb}function Kee(e){return e=(e=qS(e=eYe(e=RD(e).path),!0)).toLowerCase()}function Uqe(e){const t={proxyUrl:e.proxyUrl,urlPrefix:Kee(e.urlPrefix)},r=T0.proxyRules,i=t.urlPrefix;let n=r.length;for(let o=0;o<r.length;o++){const s=r[o].urlPrefix;if(i.indexOf(s)===0){if(i.length===s.length)return-1;n=o;break}s.indexOf(i)===0&&(n=o+1)}return r.splice(n,0,t),n}function iT(e){const t=T0.proxyRules,r=Kee(e);for(let i=0;i<t.length;i++)if(r.indexOf(t[i].urlPrefix)===0)return t[i]}function Zee(e,t){return e=O9(e),t=O9(t),qS(e)===qS(t)}function O9(e){const t=(e=Xl(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function Qee(e){const t=i=>i==null||i instanceof RegExp&&i.test(e)||typeof i=="string"&&e.startsWith(i),r=T0.interceptors;if(r){for(const i of r)if(Array.isArray(i.urls)){if(i.urls.some(t))return i}else if(t(i.urls))return i}return null}function u1(e,t,r=!1){if(!e||!t)return!1;const i=M6(e),n=M6(t);return!(!r&&i.scheme!==n.scheme)&&i.host!=null&&n.host!=null&&i.host.toLowerCase()===n.host.toLowerCase()&&i.port===n.port}function DD(e){if(typeof e=="string"){if(!_l(e))return!0;e=M6(e)}if(u1(e,Vo))return!0;const t=T0.trustedServers||[];for(let r=0;r<t.length;r++){const i=Wqe(t[r]);for(let n=0;n<i.length;n++)if(u1(e,i[n]))return!0}return!1}function Wqe(e){return k2[e]||(FD(e)||pc(e)?k2[e]=[new ud(fl(e))]:k2[e]=[new ud(`http://${e}`),new ud(`https://${e}`)]),k2[e]}function fl(e,t=OD,r){return pc(e)?r&&r.preserveProtocolRelative?e:Vo.scheme==="http"&&Vo.authority===nc(e).slice(2)?`http:${e}`:`https:${e}`:FD(e)?e:pg(e[0]==="/"?Jqe(t):t,e)}function ND(e,t=OD,r){if(e==null||!_l(e))return e;const i=Xl(e),n=i.toLowerCase(),o=Xl(t).toLowerCase().replace(/\/+$/,""),s=r?Xl(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return e;const l=(p,h,m)=>(m=p.indexOf(h,m))===-1?p.length:m;let a=l(n,"/",n.indexOf("//")+2),c=-1;for(;n.slice(0,a+1)===o.slice(0,a)+"/"&&(c=a+1,a!==n.length);)a=l(n,"/",a+1);if(c===-1||s&&c<s.length)return e;e=i.slice(c);const u=o.slice(c-1).replace(/[^/]+/g,"").length;if(u>0)for(let p=0;p<u;p++)e=`../${e}`;else e=`./${e}`;return e}function Xl(e){return e=iYe(e=rYe(e=tYe(e=fl(e=e.trim()))))}function pg(...e){const t=e.filter(ue);if(!t||!t.length)return;const r=[];if(_l(t[0])){const n=t[0],o=n.indexOf("//");o!==-1&&(r.push(n.slice(0,o+1)),Zqe(t[0])&&(r[0]+="/"),t[0]=n.slice(o+2))}else t[0][0]==="/"&&r.push("");const i=t.reduce((n,o)=>o?n.concat(o.split("/")):n,[]);for(let n=0;n<i.length;n++){const o=i[n];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&n===i.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function nc(e,t=!1){if(e==null||nT(e)||Ag(e))return null;let r=e.indexOf("://");if(r===-1&&pc(e))r=2;else{if(r===-1)return null;r+=3}const i=e.indexOf("/",r);return i!==-1&&(e=e.slice(0,i)),t&&(e=qS(e,!0)),e}function _l(e){return pc(e)||FD(e)}function nT(e){return e!=null&&e.slice(0,5)==="blob:"}function Ag(e){return e!=null&&e.slice(0,5)==="data:"}function Fgt(e){const t=Jee(e);if(!t||!t.isBase64)return null;const r=atob(t.data),i=new Uint8Array(r.length);for(let n=0;n<r.length;n++)i[n]=r.charCodeAt(n);return i.buffer}function zgt(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const Hqe=/^data:(.*?)(;base64)?,(.*)$/;function Jee(e){const t=e.match(Hqe);if(!t)return null;const[,r,i,n]=t;return{mediaType:r,isBase64:!!i,data:n}}function Xee(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function jgt(e,t){Gqe(e,t)||qqe(e,t)}function Gqe(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const i=URL.createObjectURL(e);return r.download=t,r.href=i,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(i),!0}function qqe(e,t){return!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}function pc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function FD(e){return e!=null&&Gee.test(e)}function Yqe(e){return e!=null&&Oqe.test(e)||Vo.scheme==="https"&&pc(e)}function Kqe(e){return e!=null&&qee.test(e)||Vo.scheme==="http"&&pc(e)}function Zqe(e){return e!=null&&Lqe.test(e)}function zD(e){return pc(e)?`https:${e}`:e.replace(qee,"https:")}function Qqe(){return Vo.scheme==="http"}function T6(){return Vo.scheme==="https"}function qS(e,t=!1){return pc(e)?e.slice(2):(e=e.replace(Gee,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function Jqe(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function Xqe(e){let t=0;if(_l(e)){const i=e.indexOf("//");i!==-1&&(t=i+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function Vgt(e,t){if(!e)return"";const r=vo(e).path.replace(/\/+$/,""),i=r.substring(r.lastIndexOf("/")+1);if(!(t!=null&&t.length))return i;const n=new RegExp(`.(${t.join("|")})$`,"ig");return i.replace(n,"")}function eYe(e){return e&&e[e.length-1]==="/"?e:`${e}/`}function ete(e){return e.replace(/\/+$/,"")}function tYe(e){if(/^https?:\/\//i.test(e)){const t=RD(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function rYe(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function iYe(e){const t=T0.httpsDomains;if(!Kqe(e))return e;const r=e.indexOf("/",7);let i;if(i=r===-1?e:e.slice(0,r),i=i.toLowerCase().slice(7),Rqe.test(i)){if(!i.endsWith(":80"))return e;i=i.slice(0,-3),e=e.replace(":80","")}return Qqe()&&i===Vo.authority&&!Dqe.test(e)||(T6()&&i===Vo.authority||t&&t.some(n=>i===n||i.endsWith(`.${n}`))||T6()&&!iT(e))&&(e=zD(e)),e}function A6(e,t,r){if(!(t&&r&&e&&_l(e)))return e;const i=e.indexOf("//"),n=e.indexOf("/",i+2),o=e.indexOf(":",i+2),s=Math.min(n<0?e.length:n,o<0?e.length:o);return e.slice(i+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,i+2)}${r}${e.slice(s)}`}function M6(e){return typeof e=="string"?new ud(fl(e)):(e.scheme||(e.scheme=Vo.scheme),e)}function Bgt(e){return nYe.test(e)}function tte(e,t){const r=vo(e),i=Object.keys(r.query||{});return i.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${i.join(", ")}.`),r.path}function rte(e,t,r){const i=vo(e),n=i.query||{};return n[t]=String(r),`${i.path}?${$h(n)}`}function CM(e,t){const r=vo(e),i=r.query||{};for(const o in t)i[o]=t[o];const n=$h(i);return n?`${r.path}?${n}`:r.path}function Ugt(e){if(et(e))return null;const t=e.match(ite);return t?t[2]:null}function L9(e){if(et(e))return null;const t=e.match(ite);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const ite=/([^.]*)\.([^\/]*)$/,nYe=/(^data:image\/svg|\.svg$)/i;function A0(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=fl(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const i=ND(e,t.portalItem.itemUrl);i!=null&&oYe.test(i)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(i).path)}return I6(e,t&&t.portal)}function cx(e,t,r=d1.YES){if(e==null)return e;!_l(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let i=fl(e);if(t){const n=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(n){const o=I6(n,t.portal);i=ND(I6(i,t.portal),o,o),i!=null&&i!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(i)}}return i=ote(i,t==null?void 0:t.portal),_l(i)&&(i=Xl(i)),(t==null?void 0:t.resources)&&(t==null?void 0:t.portalItem)&&!_l(i)&&!Ag(i)&&r===d1.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(i),compress:!1}),i}function jD(e,t,r){return A0(e,r)}function hg(e,t,r,i){const n=cx(e,i);n!==void 0&&(t[r]=n)}const nte=/\/items\/([^\/]+)\/resources\/(.*)/,oYe=/^\.\/resources\//;function sYe(e){var t,r,i;return(i=(r=(t=e==null?void 0:e.match(nte))!=null?t:null)==null?void 0:r[1])!=null?i:null}function lYe(e){var s;const t=(s=e==null?void 0:e.match(nte))!=null?s:null;if(t==null)return null;const r=t[2],i=r.lastIndexOf("/");if(i===-1){const{path:l,extension:a}=L9(r);return{prefix:null,filename:l,extension:a}}const{path:n,extension:o}=L9(r.slice(i+1));return{prefix:r.slice(0,i),filename:n,extension:o}}function ote(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?A6(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function I6(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,i=LD();return u1(i,`${i.scheme}://${r}`)?A6(e,t.portalHostname,r):A6(e,r,t.portalHostname)}var d1;(function(e){e[e.YES=0]="YES",e[e.NO=1]="NO"})(d1||(d1={}));const Wgt=Object.freeze(Object.defineProperty({__proto__:null,fromJSON:A0,toJSON:cx,read:jD,write:hg,itemIdFromResourceUrl:sYe,prefixAndFilenameFromResourceUrl:lYe,ensureMainOnlineDomain:ote,get MarkKeep(){return d1}},Symbol.toStringTag,{value:"Module"}));var P6;const aYe=Ao()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let Af=P6=class extends xt{constructor(e){super(e)}readHref(e,t,r){return e?A0(e,r):t.dataURI}writeHref(e,t,r,i){e&&(Ag(e)?t.dataURI=e:(t.href=cx(e,i),_l(t.href)&&(t.href=Xl(t.href))))}clone(){return new P6({href:this.href,primitive:this.primitive})}};d([f({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],Af.prototype,"href",void 0),d([Tt("href")],Af.prototype,"readHref",null),d([zt("href",{href:{type:String},dataURI:{type:String}})],Af.prototype,"writeHref",null),d([pr(aYe)],Af.prototype,"primitive",void 0),Af=P6=d([se("esri.symbols.support.IconSymbol3DLayerResource")],Af);var $6;let Gy=$6=class extends rr{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new $6({x:this.x,y:this.y})}};d([f({type:Number})],Gy.prototype,"x",void 0),d([f({type:Number})],Gy.prototype,"y",void 0),Gy=$6=d([se("esri.symbols.support.Symbol3DAnchorPosition2D")],Gy);var O6;let Jb=O6=class extends xt{constructor(e){super(e),this.color=new wr([0,0,0,1]),this.size=kd(1)}clone(){const e={color:ue(this.color)?this.color.clone():null,size:this.size};return new O6(e)}};d([f(Gh)],Jb.prototype,"color",void 0),d([f(cu)],Jb.prototype,"size",void 0),Jb=O6=d([se("esri.symbols.support.Symbol3DIconOutline")],Jb);var ly;const ste="esri.symbols.IconSymbol3DLayer";let Ac=ly=class extends gu{constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new ly({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:ue(this.material)?this.material.clone():null,outline:ue(this.outline)?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(e){const t=e.color||tw,r=R9(e),i=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||tw).clone()}:null;return new ly({size:e.size,resource:{primitive:uYe(e.style)},material:{color:t},outline:i,anchor:r?"relative":void 0,anchorPosition:r})}static fromPictureMarkerSymbol(e){const t=!e.color||hqe(e.color)?tw:e.color,r=R9(e);return new ly({size:e.width<=e.height?e.height:e.width,resource:{href:e.url},material:{color:t.clone()},anchor:r?"relative":void 0,anchorPosition:r})}static fromCIMSymbol(e){return new ly({resource:{href:Xee({mediaType:"application/json",data:JSON.stringify(e.data)})}})}};function R9(e){const t="width"in e?e.width:e.size,r="height"in e?e.height:e.size,i=D9(e.xoffset),n=D9(e.yoffset);return(i||n)&&t&&r?{x:-i/t,y:n/r}:null}function D9(e){return isFinite(e)?e:0}d([f({type:bl,json:{write:!0}})],Ac.prototype,"material",void 0),d([f({type:Af,json:{write:!0}})],Ac.prototype,"resource",void 0),d([pr({Icon:"icon"},{readOnly:!0})],Ac.prototype,"type",void 0),d([f(cu)],Ac.prototype,"size",void 0),d([pr({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),f({json:{default:"center"}})],Ac.prototype,"anchor",void 0),d([f({type:Gy,json:{type:[Number],read:{reader:e=>new Gy({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:this.anchor==="relative"}}}}})],Ac.prototype,"anchorPosition",void 0),d([f({type:Jb,json:{write:!0}})],Ac.prototype,"outline",void 0),Ac=ly=d([se(ste)],Ac);const cYe={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function uYe(e){return cYe[e]||(ft.getLogger(ste).warn(`${e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const Cm=Ac;function fg(e,t,r=dr){return t||(t=new r),t===e||(t.removeAll(),dYe(e)?t.addMany(e):e&&t.add(e)),t}function lte(e){return e}function dYe(e){return e&&(Array.isArray(e)||"items"in e&&Array.isArray(e.items))}const ate="20221121",cte="f520630575ed53cf8b49e5f1492799065ee366e5",ute="4.25",pYe={async request(e,t){var l,a;const{default:r}=await ut(()=>Promise.resolve().then(function(){return $Ye}),void 0),i=e.options,n=i.responseType;i.signal=t==null?void 0:t.signal,i.responseType=n==="native"||n==="native-request-init"?"native-request-init":n&&["blob","json","text"].includes(n)&&((l=Qee(e.url))==null?void 0:l.after)?n:"array-buffer";const o=await r(e.url,i),s={data:o.data,ssl:o.ssl};switch((a=o.requestOptions)==null?void 0:a.responseType){case"native-request-init":return delete s.data.signal,s;case"blob":s.data=await s.data.arrayBuffer();break;case"json":s.data=new TextEncoder().encode(JSON.stringify(s.data)).buffer;break;case"text":s.data=new TextEncoder().encode(s.data).buffer}return{result:s,transferList:[s.data]}}};let dn;function Hgt(e){dn=e}function Ggt(e){const t=dn&&dn.findCredential(e);return t&&t.token?rte(e,"token",t.token):e}at("host-webworker");const hYe=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,fYe={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function qgt(e){const t=e==null?void 0:e.match(hYe);if(!t)return null;const[,r,i,n]=t;if(!r)return null;let o=null,s=null,l=null;const{devext:a,qaext:c,www:u}=fYe;if(i)if(o=r,n)switch(n.toLowerCase()){case"devext":({customBaseUrl:s,portalHostname:l}=a);break;case"qa":({customBaseUrl:s,portalHostname:l}=c);break;default:return null}else({customBaseUrl:s,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:s,portalHostname:l}=a);break;case"qaext":({customBaseUrl:s,portalHostname:l}=c);break;case"www":({customBaseUrl:s,portalHostname:l}=u);break;default:return null}return{customBaseUrl:s,isPortal:!1,portalHostname:l,urlKey:o}}function mYe(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}const gYe=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function dte(e){const t=nc(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!gYe.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}function yYe(e,t,r=!1,i){return new Promise((n,o)=>{if(la(i))return void o(N9());let s=()=>{c(),o(new Error(`Unable to load ${t}`))},l=()=>{const u=e;c(),n(u)},a=()=>{if(!e)return;const u=e;c(),u.src="",o(N9())};const c=()=>{at("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",l)),s=null,l=null,e=null,ue(i)&&i.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};ue(i)&&i.addEventListener("abort",a),at("esri-image-decode")?e.decode().then(l,s):(e.addEventListener("error",s),e.addEventListener("load",l))})}function N9(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function vYe(e){var r,i,n;pi.request.crossOriginNoCorsDomains||(pi.request.crossOriginNoCorsDomains={});const t=pi.request.crossOriginNoCorsDomains;for(let o of e)o=o.toLowerCase(),/^https?:\/\//.test(o)?t[(r=nc(o))!=null?r:""]=0:(t[(i=nc("http://"+o))!=null?i:""]=0,t[(n=nc("https://"+o))!=null?n:""]=0)}function bYe(e){const t=pi.request.crossOriginNoCorsDomains;if(t){let r=nc(e);if(r)return r=r.toLowerCase(),!u1(r,LD())&&t[r]<Date.now()-36e5}return!1}async function _Ye(e){var n;const t=pi.request.crossOriginNoCorsDomains,r=nc(e);t&&r&&(t[r.toLowerCase()]=Date.now());const i=vo(e);e=i.path,((n=i.query)==null?void 0:n.f)==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}async function ri(e,t){var c;const r=Ag(e),i=nT(e);i||r||(e=Xl(e));const n={url:e,requestOptions:{...t}};let o=Qee(e);if(o){const u=await AYe(o,n);if(u!=null)return{data:u,getHeader:VD,requestOptions:n.requestOptions,url:n.url};o.after||o.error||(o=null)}if(e=n.url,(t=n.requestOptions).responseType==="image"){if(at("host-webworker")||at("host-node"))throw ec("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),n)}else if(r)throw ec("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),n);if(t.method==="head"){if(t.body)throw ec("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),n);if(r||i)throw ec("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),n)}if(await SYe(),YS)return YS.execute(e,t);const s=new AbortController;aa(t,()=>s.abort());const l={controller:s,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:o,params:n,redoRequest:!1,useIdentity:ja.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},a=await IYe(l);return(c=o==null?void 0:o.after)==null||c.call(o,a),a}let YS;const ja=pi.request,pte="FormData"in globalThis,wYe=[499,498,403,401],xYe=["COM_0056","COM_0057","SB_0008"],CYe=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],VD=()=>null,KS=Symbol();function kYe(e){const t=nc(e);t&&!ri._corsServers.includes(t)&&ri._corsServers.push(t)}function F9(e){const t=nc(e);return!t||t.endsWith(".arcgis.com")||ri._corsServers.includes(t)||DD(t)}function ec(e,t,r,i){let n="Error";const o={url:r.url,requestOptions:r.requestOptions,getHeader:VD,ssl:!1};if(t instanceof ze)return t.details?(t.details=Ge(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){const s=i&&(c=>i.headers.get(c)),l=i&&i.status,a=t.message;a&&(n=a),s&&(o.getHeader=s),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||l||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=KS in t?t[KS]:t}return us(t)?on():new ze(e,n,o)}async function SYe(){at("host-webworker")?YS||(YS=await ut(()=>import("./request.af80b676.js"),[])):ri._abortableFetch||(ri._abortableFetch=globalThis.fetch.bind(globalThis))}async function L6(){dn||await ut(()=>import("./IdentityManager.9f283f56.js"),[])}async function EYe(e){var l;const t=e.params.url,r=e.params.requestOptions,i=e.controller.signal,n=r.body;let o=null,s=null;if(pte&&"HTMLFormElement"in globalThis&&(n instanceof FormData?o=n:n instanceof HTMLFormElement&&(o=new FormData(n))),typeof n=="string"&&(s=n),e.fetchOptions={cache:r.cacheBust&&!ri._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:ja.priority,redirect:"follow",signal:i},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||((l=r.query)==null?void 0:l.token)||(o==null?void 0:o.get("token"))),!e.hasToken&&pi.apiKey&&dte(t)&&(r.query||(r.query={}),r.query.token=pi.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!hte(t)&&!la(i)){let a;r.authMode==="immediate"?(await L6(),a=await dn.getCredential(t,{signal:i}),e.credential=a):r.authMode==="no-prompt"?(await L6(),a=await dn.getCredential(t,{prompt:!1,signal:i}).catch(()=>{}),e.credential=a):dn&&(a=dn.findCredential(t)),a&&(e.credentialToken=a.token,e.useSSL=!!a.ssl)}}function hte(e){return CYe.some(t=>t.test(e))}async function TYe(e){var h,m;let t=e.params.url;const r=e.params.requestOptions,i=(h=e.fetchOptions)!=null?h:{},n=nT(t)||Ag(t),o=r.responseType||"json",s=n?0:r.timeout!=null?r.timeout:ja.timeout;let l=!1;if(!n){e.useSSL&&(t=zD(t)),r.cacheBust&&i.cache==="default"&&(t=rte(t,"request.preventCache",Date.now()));let y={...r.query};e.credentialToken&&(y.token=e.credentialToken);let v=$h(y);at("esri-url-encodes-apostrophe")&&(v=v.replace(/'/g,"%27"));const _=t.length+1+v.length;let x;l=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||_>ja.maxUrlLength;const S=r.useProxy||!!iT(t);if(S){const C=Bqe(t);x=C.path,!l&&x.length+1+_>ja.maxUrlLength&&(l=!0),C.query&&(y={...C.query,...y})}if(i.method==="HEAD"&&(l||S)){if(l)throw _>ja.maxUrlLength?ec("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):ec("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(S)throw ec("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(l?(i.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=CM(t,y):(i.body=$h(y),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=CM(t,y),S&&(e.useProxy=!0,t=`${x}?${t}`),y.token&&pte&&i.body instanceof FormData&&!mYe(t)&&i.body.set("token",y.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!u1(t,LD())){if(DD(t))e.withCredentials=!0;else if(dn){const C=dn.findServerInfo(t);C&&C.webTierAuth&&(e.withCredentials=!0)}}e.withCredentials&&(i.credentials="include",bYe(t)&&await _Ye(l?CM(t,y):t))}let a,c,u=0,p=!1;s>0&&(u=setTimeout(()=>{p=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")c=i,c.url=t;else if(r.responseType!=="image"||i.cache!=="default"||i.method!=="GET"||l||MYe(r.headers)||!n&&!e.useProxy&&ja.proxyUrl&&!F9(t)){if(a=await ri._abortableFetch(t,i),e.useProxy||kYe(t),r.responseType==="native")c=a;else if(i.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":c=await a.arrayBuffer();break;case"blob":case"image":c=await a.blob();break;default:c=await a.text()}if(u&&(clearTimeout(u),u=0),o==="json"||o==="xml"||o==="document")if(c)switch(o){case"json":c=JSON.parse(c);break;case"xml":c=z9(c,"application/xml");break;case"document":c=z9(c,"text/html")}else c=null;if(c){if(o==="array-buffer"||o==="blob"){const y=a.headers.get("Content-Type");if(y&&/application\/json|text\/plain/i.test(y)&&c[o==="blob"?"size":"byteLength"]<=750)try{const v=await new Response(c).json();v.error&&(c=v)}catch{}}o==="image"&&c instanceof Blob&&(c=await j9(URL.createObjectURL(c),e,!0))}}else c=await a.text()}else c=await j9(t,e)}catch(y){if(y.name==="AbortError")throw p?new Error("Timeout exceeded"):on("Request canceled");if(!(!a&&y instanceof TypeError&&ja.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||F9(t))throw y;e.redoRequest=!0,Uqe({proxyUrl:ja.proxyUrl,urlPrefix:(m=nc(t))!=null?m:""})}finally{u&&clearTimeout(u)}return[a,c]}async function AYe(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,i;try{i=await e.before(t)}catch(n){r=ec("request:interceptor",n,t)}if((i instanceof Error||i instanceof ze)&&(r=ec("request:interceptor",i,t)),r)throw e.error&&e.error(r),r;return i}}function MYe(e){if(e){for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function z9(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}async function IYe(e){var o;let t,r;await EYe(e);try{do[t,r]=await TYe(e);while(!await PYe(e,t,r))}catch(s){const l=ec("request:server",s,e.params,t);throw l.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(l),l}const i=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)){if(!e.hasToken&&!e.credentialToken&&((o=r.user)==null?void 0:o.username)&&!DD(i)){const s=nc(i,!0);s&&ja.trustedServers.push(s)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&vYe(r.authorizedCrossOriginNoCorsDomains)}const n=e.credential;if(n&&dn){const s=dn.findServerInfo(n.server);let l=s&&s.owningSystemUrl;if(l){l=l.replace(/\/?$/,"/sharing");const a=dn.findCredential(l,n.userId);a&&dn._getIdenticalSvcIdx(l,a)===-1&&a.resources.unshift(l)}}return{data:r,getHeader:t?s=>t==null?void 0:t.headers.get(s):VD,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function PYe(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const i=e.params.requestOptions;if(!t||i.responseType==="native"||i.responseType==="native-request-init")return!0;let n,o;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[KS]=r,n;r&&(r.error?n=r.error:r.status==="error"&&Array.isArray(r.messages)&&(n={...r},n[KS]=r,n.details=r.messages));let s,l=null;n&&(o=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,s=n.messageCode,s=s&&s.toUpperCase());const a=i.authMode;if(o===403&&(l===4||n.message&&n.message.toLowerCase().includes("ssl")&&!n.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&&wYe.includes(o)&&!hte(e.params.url)&&(o!==403||s&&!xYe.includes(s)&&(l==null||l===2&&e.credentialToken))){await L6();try{const c=await dn.getCredential(e.params.url,{error:ec("request:server",n,e.params),prompt:a!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=c,e.credentialToken=c.token,e.useSSL=e.useSSL||c.ssl,!1}catch(c){if(a==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;n=c}}if(n)throw n;return!0}function j9(e,t,r=!1){const i=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=ja.priority,n.src=e,yYe(n,e,r,i)}ri._abortableFetch=null,ri._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"];var $Ye=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),Hp;(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Hp||(Hp={}));class OYe{constructor(t){this.instance=t,this._resolver=_d(),this._status=Hp.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Hp.RESOLVED,this._cleanUp()},()=>{this._status=Hp.REJECTED,this._cleanUp()})}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Hp.RESOLVED}isRejected(){return this._status===Hp.REJECTED}isFulfilled(){return this._status!==Hp.PENDING}abort(){this._resolver.reject(on())}when(t,r){return this._resolver.promise.then(t,r)}_cleanUp(){this._allPromise=this._resolvingPromises=this._allPromise=null}_tryResolve(){if(this.isFulfilled())return;const t=_d(),r=[...this._resolvingPromises,t.promise],i=this._allPromise=Promise.all(r);i.then(()=>{this.isFulfilled()||this._allPromise!==i||this._resolver.resolve(this.instance)},n=>{this.isFulfilled()||this._allPromise!==i||us(n)||this._resolver.reject(n)}),t.resolve()}}const oT=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new OYe(this),this.addResolvingPromise(Promise.resolve())}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,i){return new Promise((n,o)=>{this._promiseProps.when(n,o)}).then(r,i)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=d([se("esri.core.Promise")],t),t};let ZS=class extends oT(rr){};ZS=d([se("esri.core.Promise")],ZS);const LYe="not-loaded",RYe="loading",DYe="failed",V9="loaded",fte=e=>{let t=class extends e{constructor(...r){super(...r),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(i=>{const n=this.load.bind(this);this.load=o=>{const s=new Promise((l,a)=>{const c=rD(o,a);this.destroyed&&a(new ze("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this._promiseProps.when(l,a).finally(()=>{c&&c.remove()})});if(this.loadStatus===LYe){this._set("loadStatus",RYe);const l=this._loadController=new AbortController;n({signal:l.signal}),aa(l.signal,()=>{this._promiseProps.abort()})}return i(),s}})),this.when(()=>{this._set("loadStatus",V9),this._loadController=null},i=>{this._set("loadStatus",DYe),this._set("loadError",i),this._loadController=null})}get loaded(){return this.loadStatus===V9}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){var r;return this.isFulfilled()||(this._set("loadError",new ze("load:cancelled","Cancelled")),(r=this._loadController)==null||r.abort()),this}};return d([f({readOnly:!0})],t.prototype,"loaded",null),d([f({readOnly:!0})],t.prototype,"loadError",void 0),d([f({clonable:!1})],t.prototype,"loadStatus",void 0),d([f({type:[cs],readOnly:!0})],t.prototype,"loadWarnings",null),t=d([se("esri.core.Loadable")],t),t};let Xb=class extends fte(ZS){};Xb=d([se("esri.core.Loadable")],Xb),function(e){function t(r){return!(!r||!r.load)}e.LoadableMixin=fte,e.isLoadable=t}(Xb||(Xb={}));const uu=Xb;var R6;const NYe=new Yr({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let Rl=R6=class extends rr{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){e!=="asc"&&e!=="desc"||this._set("sortOrder",e)}clone(){return new R6({categories:this.categories?Ge(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r,i;if(this.categories&&(r=this.categories.map(s=>Array.isArray(s)?JSON.stringify(s):s)),this.extent){const s=q3(this.extent,gr.WGS84);ue(s)&&(i=`${s.xmin},${s.ymin},${s.xmax},${s.ymax}`)}let n=this.query;!this.disableExtraQuery&&e.extraQuery&&(n="("+n+")"+e.extraQuery);const o={categories:r,bbox:i,q:n,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(o.sortField=this.sortField.split(",").map(s=>NYe.toJSON(s.trim())).join(","),o.sortOrder=this.sortOrder),{query:{...t,...o}}}};d([f()],Rl.prototype,"categories",void 0),d([f()],Rl.prototype,"disableExtraQuery",void 0),d([f({type:li})],Rl.prototype,"extent",void 0),d([f()],Rl.prototype,"filter",void 0),d([f()],Rl.prototype,"num",void 0),d([f()],Rl.prototype,"query",void 0),d([f()],Rl.prototype,"sortField",void 0),d([f()],Rl.prototype,"sortOrder",null),d([f()],Rl.prototype,"start",void 0),Rl=R6=d([se("esri.portal.PortalQueryParams")],Rl);const rd=Rl;let Mf=class extends rr{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};d([f()],Mf.prototype,"nextQueryParams",void 0),d([f()],Mf.prototype,"queryParams",void 0),d([f()],Mf.prototype,"results",void 0),d([f()],Mf.prototype,"total",void 0),Mf=d([se("esri.portal.PortalQueryResult")],Mf);const FYe=Mf;let Ou=class extends xt{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new ze("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};d([f({type:Date})],Ou.prototype,"created",void 0),d([f()],Ou.prototype,"id",void 0),d([f()],Ou.prototype,"portal",void 0),d([f()],Ou.prototype,"title",void 0),d([f({readOnly:!0})],Ou.prototype,"url",null),d([f()],Ou.prototype,"username",void 0),Ou=d([se("esri.portal.PortalFolder")],Ou);const zYe=Ou;let Hn=class extends xt{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.tags=null,this.title=null}get thumbnailUrl(){var r;const e=this.url,t=this.thumbnail;return e&&t&&this.portal?(r=this.portal)==null?void 0:r._normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.get("portal.restUrl");return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return Hl(this.portal)._request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(i=>i.source==="contentCategorySetsGroupQuery.LivingAtlas")?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return Hl(this.portal)._request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new ze("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}queryItems(e,t){let r=_n(rd,e);const i=Hl(this.portal);return parseFloat(i.currentVersion)>5?(r=r||new rd,i._queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new rd,r.query="group:"+this.id+(r.query?" "+r.query:""),i.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=Hl(this.portal);return r._fetchSelf(r.authMode,!0,t).then(i=>{const n=i.contentCategorySetsGroupQuery;if(n){const o=new rd;return o.disableExtraQuery=!0,o.num=1,o.query=n,r.queryGroups(o,t)}throw new ze("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(i=>{if(i.total){const n=i.results[0],o=new rd;return o.num=1,o.query=`typekeywords:"${e}"`,n.queryItems(o,t)}throw new ze("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(i=>i.total?i.results[0].fetchData("json",t).then(n=>{const o=n&&n.categorySchema;return o&&o.length?o:[]}):[])}};d([f()],Hn.prototype,"access",void 0),d([f({type:Date})],Hn.prototype,"created",void 0),d([f()],Hn.prototype,"description",void 0),d([f()],Hn.prototype,"id",void 0),d([f()],Hn.prototype,"isInvitationOnly",void 0),d([f({type:Date})],Hn.prototype,"modified",void 0),d([f()],Hn.prototype,"owner",void 0),d([f()],Hn.prototype,"portal",void 0),d([f()],Hn.prototype,"snippet",void 0),d([f()],Hn.prototype,"sortField",void 0),d([f()],Hn.prototype,"sortOrder",void 0),d([f()],Hn.prototype,"tags",void 0),d([f()],Hn.prototype,"thumbnail",void 0),d([f({readOnly:!0})],Hn.prototype,"thumbnailUrl",null),d([f()],Hn.prototype,"title",void 0),d([f({readOnly:!0})],Hn.prototype,"url",null),Hn=d([se("esri.portal.PortalGroup")],Hn);const D6=Hn;var jYe=Object.freeze(Object.defineProperty({__proto__:null,default:D6},Symbol.toStringTag,{value:"Module"})),N6;let zi=N6=class extends xt{constructor(...e){super(...e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal._normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}`:null}get url(){const e=this.get("portal.restUrl");return e?`${e}/community/users/${this.username}`:null}addItem(e){const t=e&&e.item,r=e&&e.data,i=e&&e.folder,n={method:"post"};t&&(n.query=t.createPostQuery(),r!=null&&(typeof r=="string"?n.query.text=r:typeof r=="object"&&(n.query.text=JSON.stringify(r))));let o=this.userContentUrl;return i&&(o+="/"+(typeof i=="string"?i:i.id)),this.portal._request(o+"/addItem",n).then(s=>(t.id=s.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}deleteItem(e){let t=this.userContentUrl;return e.ownerFolder&&(t+="/"+e.ownerFolder),this.portal._request(t+`/items/${e.id}/delete`,{method:"post"}).then(()=>{e.id=null,e.portal=null})}deleteItems(e){const t=this.userContentUrl+"/deleteItems",r=e.map(i=>i.id);if(r.length){const i={method:"post",query:{items:r.join(",")}};return this.portal._request(t,i).then(()=>{e.forEach(n=>{n.id=null,n.portal=null})})}return Promise.resolve(void 0)}fetchFolders(){var t;const e={query:{num:1}};return this.portal._request((t=this.userContentUrl)!=null?t:"",e).then(r=>{let i;return i=r&&r.folders?r.folders.map(n=>{const o=zYe.fromJSON(n);return o.portal=this.portal,o}):[],i})}fetchGroups(){var e;return this.portal._request((e=this.url)!=null?e:"").then(t=>{let r;return r=t&&t.groups?t.groups.map(i=>{const n=D6.fromJSON(i);return n.portal=this.portal,n}):[],r})}fetchItems(e){var n;const t=e!=null?e:{};let r,i=(n=this.userContentUrl)!=null?n:"";return t.folder&&(i+="/"+t.folder.id),ut(()=>Promise.resolve().then(function(){return voe}),void 0).then(({default:o})=>{r=o;const s={folders:!1,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"};return this.portal._request(i,{query:s})}).then(o=>{let s;return o&&o.items?(s=o.items.map(l=>{const a=r.fromJSON(l);return a.portal=this.portal,a}),Promise.all(s.map(l=>l.load())).catch(l=>l).then(()=>({items:s,nextStart:o.nextStart,total:o.total}))):{items:[],nextStart:-1,total:0}})}fetchTags(){return this.portal._request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new D6({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new ze("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}toJSON(){throw new ze("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new N6;return t.sourceJSON=e,t.read(e),t}};d([f()],zi.prototype,"access",void 0),d([f({type:Date})],zi.prototype,"created",void 0),d([f()],zi.prototype,"culture",void 0),d([f()],zi.prototype,"description",void 0),d([f()],zi.prototype,"email",void 0),d([f()],zi.prototype,"favGroupId",void 0),d([f()],zi.prototype,"fullName",void 0),d([f({type:Date})],zi.prototype,"modified",void 0),d([f()],zi.prototype,"orgId",void 0),d([f()],zi.prototype,"portal",void 0),d([f()],zi.prototype,"preferredView",void 0),d([f()],zi.prototype,"privileges",void 0),d([f()],zi.prototype,"region",void 0),d([f()],zi.prototype,"role",void 0),d([f()],zi.prototype,"roleId",void 0),d([f()],zi.prototype,"sourceJSON",void 0),d([f()],zi.prototype,"thumbnail",void 0),d([f({readOnly:!0})],zi.prototype,"thumbnailUrl",null),d([f()],zi.prototype,"units",void 0),d([f({readOnly:!0})],zi.prototype,"userContentUrl",null),d([f({readOnly:!0})],zi.prototype,"url",null),d([f()],zi.prototype,"username",void 0),d([f()],zi.prototype,"userType",void 0),zi=N6=d([se("esri.portal.PortalUser")],zi);const BD=zi;var VYe=Object.freeze(Object.defineProperty({__proto__:null,default:BD},Symbol.toStringTag,{value:"Module"})),rl;let kM;const B9={PortalGroup:()=>ut(()=>Promise.resolve().then(function(){return jYe}),void 0),PortalItem:()=>ut(()=>Promise.resolve().then(function(){return voe}),void 0),PortalUser:()=>ut(()=>Promise.resolve().then(function(){return VYe}),void 0)};let jt=rl=class extends nx(uu){constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=pi.portalUrl,this.urlKey=null,this.user=null,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return typeof e=="string"?{url:e}:e}destroy(){this._esriIdCredentialCreateHandle=Dn(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)pi.request.trustedServers.includes(t)||pi.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=!(this.user&&this.user.orgId)||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.substring(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e&&e.toLowerCase()}readUser(e){let t=null;return e&&(t=BD.fromJSON(e),t.portal=this),t}load(e){const t=ut(()=>Promise.resolve().then(function(){return gct}),void 0).then(({default:r})=>{vn(e),kM=r}).then(()=>this.sourceJSON?this.sourceJSON:this._fetchSelf(this.authMode,!1,e)).then(r=>{if(dn){const i=dn;this.credential=i.findCredential(this.restUrl),this.credential||this.authMode!==rl.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle=i.on("credential-create",()=>{i.findCredential(this.restUrl)&&this._signIn().catch(()=>{})}))}this.sourceJSON=r,this.read(r)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await ut(()=>import("./ElevationLayer.7129d123.js"),[])).default;return e?e.map(r=>new t({id:r.id,url:r.url})):[]}fetchBasemaps(e,t){const r=new rd;return r.query=e||(pi.apiKey&&dte(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0,this.queryGroups(r,t).then(i=>{if(r.num=100,r.query='type:"Web Map" -type:"Web Application"',i.total){const n=i.results[0];return r.sortField=n.sortField||"name",r.sortOrder=n.sortOrder||"desc",n.queryItems(r,t)}return null}).then(i=>{let n;return n=i&&i.total?i.results.filter(o=>o.type==="Web Map").map(o=>new kM({portalItem:o})):[],n})}fetchCategorySchema(e){return this.hasCategorySchema?this._request(this.restUrl+"/portals/self/categorySchema",e).then(t=>t.categorySchema):la(e)?Promise.reject(on()):Promise.resolve([])}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new rd;if(r.num=100,r.sortField="title",t&&t.length){const i=[];for(const n of t)i.push(`(title:"${n.title}" AND owner:${n.owner})`);return r.query=i.join(" OR "),this.queryGroups(r,e).then(n=>n.results)}return la(e)?Promise.reject(on()):Promise.resolve([])}fetchRegions(e){var r;const t=((r=this.user)==null?void 0:r.culture)||this.culture||ic();return this._request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){var r;const t=((r=this.user)==null?void 0:r.culture)||this.culture||ic();return this._request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return rl._default&&!rl._default.destroyed||(rl._default=new rl),rl._default}queryGroups(e,t){return this._queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this._queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this._queryPortal("/community/users",e,"PortalUser",t)}toJSON(){throw new ze("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new rl({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new ze("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}_getHelperServiceUrl(e){const t=this._getHelperService(e);if(!(t!=null&&t.url))throw new ze("portal:service-url-not-found",`The \`helperServices\` entry "${e}" does not include a \`url\` value`);return t.url}_fetchSelf(e=this.authMode,t=!1,r){const i=this.restUrl+"/portals/self",n={authMode:e,query:{culture:ic().toLowerCase()},...r};return n.authMode==="auto"&&(n.authMode="no-prompt"),t&&(n.query.default=!0),this._request(i,n)}_queryPortal(e,t,r,i){const n=_n(rd,t),o=s=>this._request(this.restUrl+e,{...n.toRequestOptions(this),...i}).then(l=>{const a=n.clone();return a.start=l.nextStart,new FYe({nextQueryParams:a,queryParams:n,total:l.total,results:rl._resultsToTypedArray(s,{portal:this},l,i)})}).then(l=>Promise.all(l.results.map(a=>typeof a.when=="function"?a.when():l)).then(()=>l,a=>(Eg(a),l)));return r&&B9[r]?B9[r]().then(({default:s})=>(vn(i),o(s))):o()}_signIn(){if(this.authMode===rl.AUTH_MODE_ANONYMOUS)return Promise.reject(new ze("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if(this.loadStatus==="failed")return Promise.reject(this.loadError);const e=t=>Promise.resolve().then(()=>this.loadStatus==="not-loaded"?(t||(this.authMode="immediate"),this.load().then(()=>null)):this.loadStatus==="loading"?this.load().then(()=>this.credential?null:(this.credential=t,this._fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this._fetchSelf("immediate"))).then(r=>{r&&(this.sourceJSON=r,this.read(r))});return dn?dn.getCredential(this.restUrl).then(t=>e(t)):e(this.credential)}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_normalizeUrl(e){const t=this.credential&&this.credential.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}_requestToTypedArray(e,t,r){return this._request(e,t).then(i=>{const n=rl._resultsToTypedArray(r,{portal:this},i);return Promise.all(n.map(o=>typeof o.when=="function"?o.when():i)).then(()=>n,()=>n)})}_readBasemap(e){if(e){const t=kM.fromJSON(e);return t.portalItem={portal:this},t}return null}_request(e,t={}){const r={f:"json",...t.query},{authMode:i=this.authMode===rl.AUTH_MODE_ANONYMOUS?"anonymous":"auto",body:n=null,cacheBust:o=!1,method:s="auto",responseType:l="json",signal:a}=t,c={authMode:i,body:n,cacheBust:o,method:s,query:r,responseType:l,timeout:0,signal:a};return ri(this._normalizeSSL(e),c).then(u=>u.data)}static _resultsToTypedArray(e,t,r,i){let n;if(r){const o=ue(i)?i.signal:null;n=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(n=n.map(s=>{const l=Object.assign(e?e.fromJSON(s):s,t);return typeof l.load=="function"&&l.load(o),l}))}else n=[];return n}};jt.AUTH_MODE_ANONYMOUS="anonymous",jt.AUTH_MODE_AUTO="auto",jt.AUTH_MODE_IMMEDIATE="immediate",d([f()],jt.prototype,"access",void 0),d([f()],jt.prototype,"allSSL",void 0),d([f()],jt.prototype,"authMode",void 0),d([f()],jt.prototype,"authorizedCrossOriginDomains",void 0),d([Tt("authorizedCrossOriginDomains")],jt.prototype,"readAuthorizedCrossOriginDomains",null),d([f()],jt.prototype,"basemapGalleryGroupQuery",void 0),d([f()],jt.prototype,"bingKey",void 0),d([f()],jt.prototype,"canListApps",void 0),d([f()],jt.prototype,"canListData",void 0),d([f()],jt.prototype,"canListPreProvisionedItems",void 0),d([f()],jt.prototype,"canProvisionDirectPurchase",void 0),d([f()],jt.prototype,"canSearchPublic",void 0),d([f()],jt.prototype,"canShareBingPublic",void 0),d([f()],jt.prototype,"canSharePublic",void 0),d([f()],jt.prototype,"canSignInArcGIS",void 0),d([f()],jt.prototype,"canSignInIDP",void 0),d([f()],jt.prototype,"colorSetsGroupQuery",void 0),d([f()],jt.prototype,"commentsEnabled",void 0),d([f({type:Date})],jt.prototype,"created",void 0),d([f()],jt.prototype,"credential",void 0),d([f()],jt.prototype,"culture",void 0),d([f()],jt.prototype,"currentVersion",void 0),d([f()],jt.prototype,"customBaseUrl",void 0),d([f()],jt.prototype,"defaultBasemap",void 0),d([Tt("defaultBasemap")],jt.prototype,"readDefaultBasemap",null),d([f()],jt.prototype,"defaultDevBasemap",void 0),d([Tt("defaultDevBasemap")],jt.prototype,"readDefaultDevBasemap",null),d([f({type:li})],jt.prototype,"defaultExtent",void 0),d([f()],jt.prototype,"defaultVectorBasemap",void 0),d([Tt("defaultVectorBasemap")],jt.prototype,"readDefaultVectorBasemap",null),d([f()],jt.prototype,"description",void 0),d([f()],jt.prototype,"devBasemapGalleryGroupQuery",void 0),d([f()],jt.prototype,"eueiEnabled",void 0),d([f({readOnly:!0})],jt.prototype,"extraQuery",null),d([f()],jt.prototype,"featuredGroups",void 0),d([f()],jt.prototype,"featuredItemsGroupQuery",void 0),d([f()],jt.prototype,"galleryTemplatesGroupQuery",void 0),d([f()],jt.prototype,"livingAtlasGroupQuery",void 0),d([f()],jt.prototype,"hasCategorySchema",void 0),d([f()],jt.prototype,"helpBase",void 0),d([f()],jt.prototype,"helperServices",void 0),d([f()],jt.prototype,"helpMap",void 0),d([f()],jt.prototype,"homePageFeaturedContent",void 0),d([f()],jt.prototype,"homePageFeaturedContentCount",void 0),d([f()],jt.prototype,"httpPort",void 0),d([f()],jt.prototype,"httpsPort",void 0),d([f()],jt.prototype,"id",void 0),d([f()],jt.prototype,"ipCntryCode",void 0),d([f({readOnly:!0})],jt.prototype,"isOrganization",null),d([f()],jt.prototype,"isPortal",void 0),d([f()],jt.prototype,"isReadOnly",void 0),d([f({readOnly:!0})],jt.prototype,"itemPageUrl",null),d([f()],jt.prototype,"layerTemplatesGroupQuery",void 0),d([f()],jt.prototype,"maxTokenExpirationMinutes",void 0),d([f({type:Date})],jt.prototype,"modified",void 0),d([f()],jt.prototype,"name",void 0),d([f()],jt.prototype,"portalHostname",void 0),d([f()],jt.prototype,"portalMode",void 0),d([f()],jt.prototype,"portalProperties",void 0),d([f()],jt.prototype,"region",void 0),d([f({readOnly:!0})],jt.prototype,"restUrl",null),d([f()],jt.prototype,"rotatorPanels",void 0),d([f()],jt.prototype,"showHomePageDescription",void 0),d([f()],jt.prototype,"sourceJSON",void 0),d([f()],jt.prototype,"staticImagesUrl",void 0),d([f({json:{name:"2DStylesGroupQuery"}})],jt.prototype,"stylesGroupQuery2d",void 0),d([f({json:{name:"stylesGroupQuery"}})],jt.prototype,"stylesGroupQuery3d",void 0),d([f()],jt.prototype,"supportsHostedServices",void 0),d([f()],jt.prototype,"symbolSetsGroupQuery",void 0),d([f()],jt.prototype,"templatesGroupQuery",void 0),d([f()],jt.prototype,"thumbnail",void 0),d([f({readOnly:!0})],jt.prototype,"thumbnailUrl",null),d([f()],jt.prototype,"units",void 0),d([f()],jt.prototype,"url",void 0),d([f()],jt.prototype,"urlKey",void 0),d([Tt("urlKey")],jt.prototype,"readUrlKey",null),d([f()],jt.prototype,"user",void 0),d([Tt("user")],jt.prototype,"readUser",null),d([f()],jt.prototype,"useStandardizedQuery",void 0),d([f()],jt.prototype,"useVectorBasemaps",void 0),d([f()],jt.prototype,"vectorBasemapGalleryGroupQuery",void 0),jt=rl=d([se("esri.portal.Portal")],jt);const Ws=jt;let If=class extends pn(xt){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return ue(e)&&e.placement===this.placement&&e.style===this.style&&(et(this.color)&&et(e.color)||ue(this.color)&&ue(e.color)&&this.color.toJSON()===e.color.toJSON())}};d([f({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],If.prototype,"type",void 0),d([f({type:sqe,json:{default:"begin-end",write:!0}})],If.prototype,"placement",void 0),d([f({type:Ree,json:{default:"arrow",write:!0}})],If.prototype,"style",void 0),d([f({type:wr,json:{type:[ni],default:null,write:!0}})],If.prototype,"color",void 0),If=d([se("esri.symbols.LineStyleMarker3D")],If);const F6=If;var lk;let Mc=lk=class extends gu{constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=kd(1),this.pattern=null,this.marker=null}clone(){const e={enabled:this.enabled,material:ue(this.material)?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:ue(this.pattern)?this.pattern.clone():null,marker:ue(this.marker)?this.marker.clone():null};return new lk(e)}static fromSimpleLineSymbol(e){var r,i,n;const t={enabled:!0,size:(r=e.width)!=null?r:kd(1),cap:e.cap||"butt",join:e.join||"miter",pattern:e.style&&e.style!=="inside-frame"?new MD({style:e.style}):null,material:new bl({color:(e.color||tw).clone()}),marker:e.marker?new F6({placement:e.marker.placement,style:e.marker.style,color:(n=(i=e.marker.color)==null?void 0:i.clone())!=null?n:null}):null};return new lk(t)}};d([f({type:bl,json:{write:!0}})],Mc.prototype,"material",void 0),d([pr({Line:"line"},{readOnly:!0})],Mc.prototype,"type",void 0),d([f({type:Bee,json:{write:!0,default:"miter"}})],Mc.prototype,"join",void 0),d([f({type:$D,json:{write:!0,default:"butt"}})],Mc.prototype,"cap",void 0),d([f(cu)],Mc.prototype,"size",void 0),d([f(jee)],Mc.prototype,"pattern",void 0),d([f({types:{key:"type",base:F6,typeMap:{style:F6}},json:{write:!0}})],Mc.prototype,"marker",void 0),Mc=lk=d([se("esri.symbols.LineSymbol3DLayer")],Mc);const ux=Mc;var z6;const BYe=Ao()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let e_=z6=class extends xt{clone(){return new z6({href:this.href,primitive:this.primitive})}};d([f({type:String,json:{read:jD,write:hg}})],e_.prototype,"href",void 0),d([pr(BYe)],e_.prototype,"primitive",void 0),e_=z6=d([se("esri.symbols.support.ObjectSymbol3DLayerResource")],e_);var j6;let am=j6=class extends rr{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new j6({x:this.x,y:this.y,z:this.z})}};d([f({type:Number})],am.prototype,"x",void 0),d([f({type:Number})],am.prototype,"y",void 0),d([f({type:Number})],am.prototype,"z",void 0),am=j6=d([se("esri.symbols.support.Symbol3DAnchorPosition3D")],am);var V6;let Do=V6=class extends gu{constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new V6({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:ue(this.material)?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||typeof this.resource.href!="string"}};d([f({type:bl,json:{write:!0}})],Do.prototype,"material",void 0),d([f({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],Do.prototype,"castShadows",void 0),d([f({type:e_,json:{write:!0}})],Do.prototype,"resource",void 0),d([pr({Object:"object"},{readOnly:!0})],Do.prototype,"type",void 0),d([f({type:Number,json:{write:!0}})],Do.prototype,"width",void 0),d([f({type:Number,json:{write:!0}})],Do.prototype,"height",void 0),d([f({type:Number,json:{write:!0}})],Do.prototype,"depth",void 0),d([pr({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),f({json:{default:"origin"}})],Do.prototype,"anchor",void 0),d([f({type:am,json:{type:[Number],read:{reader:e=>new am({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:this.anchor==="relative"}}}}})],Do.prototype,"anchorPosition",void 0),d([f({type:Number,json:{write:!0}})],Do.prototype,"heading",void 0),d([f({type:Number,json:{write:!0}})],Do.prototype,"tilt",void 0),d([f({type:Number,json:{write:!0}})],Do.prototype,"roll",void 0),d([f({readOnly:!0})],Do.prototype,"isPrimitive",null),Do=V6=d([se("esri.symbols.ObjectSymbol3DLayer")],Do);const UD=Do;var B6;let Jo=B6=class extends gu{constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return e!=null?e:t.height==null&&t.size!=null?t.size:void 0}readHeight(e,t){return e!=null?e:t.width==null&&t.size!=null?t.size:void 0}clone(){return new B6({enabled:this.enabled,material:ue(this.material)?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};d([f({type:bl,json:{write:!0}})],Jo.prototype,"material",void 0),d([f({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],Jo.prototype,"castShadows",void 0),d([pr({Path:"path"},{readOnly:!0})],Jo.prototype,"type",void 0),d([f({type:["circle","quad"],json:{write:!0,default:"circle"}})],Jo.prototype,"profile",void 0),d([f({type:Bee,json:{write:!0,default:"miter"}})],Jo.prototype,"join",void 0),d([f({type:Eqe,json:{write:!0,default:"butt"}})],Jo.prototype,"cap",void 0),d([f({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],Jo.prototype,"width",void 0),d([Tt("width",["width","size","height"])],Jo.prototype,"readWidth",null),d([f({type:Number,json:{write:!0}})],Jo.prototype,"height",void 0),d([Tt("height",["height","size","width"])],Jo.prototype,"readHeight",null),d([f({type:["center","bottom","top"],json:{write:!0,default:"center"}})],Jo.prototype,"anchor",void 0),d([f({type:["heading","all"],json:{write:!0,default:"all"}})],Jo.prototype,"profileRotation",void 0),Jo=B6=d([se("esri.symbols.PathSymbol3DLayer")],Jo);const WD=Jo;var U6;let qy=U6=class extends xt{constructor(){super(...arguments),this.color=new wr([0,0,0,1]),this.size=0}clone(){const e={color:Ge(this.color),size:this.size};return new U6(e)}};d([f(Gh)],qy.prototype,"color",void 0),d([f(cu)],qy.prototype,"size",void 0),qy=U6=d([se("esri.symbols.support.Symbol3DHalo")],qy);let iw=class extends pn(xt){constructor(e){super(e),this.color=null}};d([f(Gh)],iw.prototype,"color",void 0),iw=d([se("esri.symbols.support.Symbol3DTextBackground")],iw);var ak;let _s=ak=class extends gu{constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(e){ue(e)&&ue(this._userSize)&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,r,i){const n={...i,textSymbol3D:!0};t.font=e.write({},n),delete t.font.size}get size(){return ue(this._userSize)?this._userSize:ue(this.font)&&this.font.size!=null?this.font.size:9}set size(e){this._userSize=e,ue(this.font)&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const e=new ak({enabled:this.enabled,font:this.font&&Ge(this.font),halo:this.halo&&Ge(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:ue(this.material)?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:Ge(this.background)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new ak({font:ue(e.font)?e.font.clone():new rT,halo:UYe(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new bl({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new iw({color:e.backgroundColor.clone()}):null})}};function UYe(e,t){return e&&t!=null&&t>0?new qy({color:Ge(e),size:t}):null}d([f({type:rT,json:{write:!0}})],_s.prototype,"font",null),d([zt("font")],_s.prototype,"writeFont",null),d([f({type:qy,json:{write:!0}})],_s.prototype,"halo",void 0),d([f({...Wee,json:{default:"center",write:!0}})],_s.prototype,"horizontalAlignment",void 0),d([f({...Uee,json:{default:1,write:!0}})],_s.prototype,"lineHeight",void 0),d([f({type:bl,json:{write:!0}})],_s.prototype,"material",void 0),d([f({type:iw,json:{write:!0}})],_s.prototype,"background",void 0),d([f(cu)],_s.prototype,"size",null),d([f({type:String,json:{write:!0}})],_s.prototype,"text",void 0),d([pr({Text:"text"},{readOnly:!0})],_s.prototype,"type",void 0),d([f({...Hee,json:{default:"baseline",write:!0}})],_s.prototype,"verticalAlignment",void 0),_s=ak=d([se("esri.symbols.TextSymbol3DLayer")],_s);const M0=_s;var W6;let _p=W6=class extends gu{constructor(e){super(e),this.color=H6.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new W6({color:Ge(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};d([f({type:wr,nonNullable:!0,json:{type:[ni],write:(e,t,r)=>t[r]=e.toArray(wr.AlphaMode.UNLESS_OPAQUE),default:()=>H6.clone(),defaultEquals:e=>e.toCss(!0)===H6.toCss(!0)}})],_p.prototype,"color",void 0),d([pr({Water:"water"},{readOnly:!0})],_p.prototype,"type",void 0),d([f({type:["small","medium","large"],json:{write:!0,default:"medium"}})],_p.prototype,"waterbodySize",void 0),d([f({type:Number,json:{write:!0,default:null}})],_p.prototype,"waveDirection",void 0),d([f({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],_p.prototype,"waveStrength",void 0),_p=W6=d([se("esri.symbols.WaterSymbol3DLayer")],_p);const H6=new wr([0,119,190]),mte=_p;var G6;let Pf=G6=class extends rr{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new G6({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};d([f({type:String})],Pf.prototype,"name",void 0),d([f({type:String})],Pf.prototype,"styleUrl",void 0),d([f({type:String})],Pf.prototype,"styleName",void 0),d([f({type:Ws})],Pf.prototype,"portal",void 0),Pf=G6=d([se("esri.symbols.support.StyleOrigin")],Pf);const q6=Pf;var Y6;let nw=Y6=class extends rr{constructor(){super(...arguments),this.url=""}clone(){return new Y6({url:this.url})}};d([f({type:String})],nw.prototype,"url",void 0),nw=Y6=d([se("esri.symbols.support.Thumbnail")],nw);const gte={icon:Cm,object:UD,line:ux,path:WD,fill:ax,extrude:Lee,text:M0,water:mte},WYe=dr.ofType({base:gu,key:"type",typeMap:gte,errorContext:"symbol-layer"});let Ic=class extends Ys{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;const t=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers,r=t&&t.type||dr;this._set("symbolLayers",new r)}get color(){return null}set color(e){this.constructed&&ft.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){fg(e,this._get("symbolLayers"))}readStyleOrigin(e,t,r){if(e.styleUrl&&e.name){const i=A0(e.styleUrl,r);return new q6({styleUrl:i,name:e.name})}if(e.styleName&&e.name)return new q6({portal:r&&r.portal||Ws.getDefault(),styleName:e.styleName,name:e.name});r&&r.messages&&r.messages.push(new cs("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:r,definition:e}))}writeStyleOrigin(e,t,r,i){if(e.styleUrl&&e.name){let n=cx(e.styleUrl,i);_l(n)&&(n=Xl(n)),t.styleOrigin={styleUrl:n,name:e.name}}else e.styleName&&e.name&&(e.portal&&i&&i.portal&&!Zee(e.portal.restUrl,i.portal.restUrl)?i&&i.messages&&i.messages.push(new cs("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}normalizeCtorArgs(e){return e instanceof gu||e&>e[e.type]?{symbolLayers:[e]}:Array.isArray(e)?{symbolLayers:e}:e}};d([f({json:{read:!1,write:!1}})],Ic.prototype,"color",null),d([f({type:WYe,nonNullable:!0,json:{write:!0}}),Qr(lte)],Ic.prototype,"symbolLayers",null),d([f({type:q6})],Ic.prototype,"styleOrigin",void 0),d([Tt("styleOrigin")],Ic.prototype,"readStyleOrigin",null),d([zt("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],Ic.prototype,"writeStyleOrigin",null),d([f({type:nw,json:{read:!1}})],Ic.prototype,"thumbnail",void 0),d([f({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],Ic.prototype,"type",void 0),Ic=d([se("esri.symbols.Symbol3D")],Ic);const I0=Ic;let t_=class extends xt{constructor(e){super(e),this.visible=!0}clone(){}};d([f({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],t_.prototype,"type",void 0),d([f({readOnly:!0})],t_.prototype,"visible",void 0),t_=d([se("esri.symbols.callouts.Callout3D")],t_);const yte=t_;var K6;let ck=K6=class extends xt{constructor(){super(...arguments),this.color=new wr("white")}clone(){return new K6({color:Ge(this.color)})}};d([f(Gh)],ck.prototype,"color",void 0),ck=K6=d([se("esri.symbols.callouts.LineCallout3DBorder")],ck);const vte=ck;Object.freeze(Object.defineProperty({__proto__:null,default:vte},Symbol.toStringTag,{value:"Module"}));var Z6;let wp=Z6=class extends yte{constructor(e){super(e),this.type="line",this.color=new wr([0,0,0,1]),this.size=kd(1),this.border=null}get visible(){return this.size>0&&ue(this.color)&&this.color.a>0}clone(){return new Z6({color:Ge(this.color),size:this.size,border:Ge(this.border)})}};d([pr({line:"line"},{readOnly:!0})],wp.prototype,"type",void 0),d([f(Gh)],wp.prototype,"color",void 0),d([f(cu)],wp.prototype,"size",void 0),d([f({type:vte,json:{write:!0}})],wp.prototype,"border",void 0),d([f({readOnly:!0})],wp.prototype,"visible",null),wp=Z6=d([se("esri.symbols.callouts.LineCallout3D")],wp);const HYe=wp;function HD(e){if(!e)return!1;const t=e.verticalOffset;return!!t&&!(t.screenLength<=0||ue(t.maxWorldLength)&&t.maxWorldLength<=0)}function bte(e){if(!e||!e.supportsCallout||!e.supportsCallout())return!1;const t=e.callout;return!!t&&!!t.visible&&!!HD(e)}const _te={types:{key:"type",base:yte,typeMap:{line:HYe}},json:{write:!0}};var Q6;let ay=Q6=class extends xt{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new Q6({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};d([f(cu)],ay.prototype,"screenLength",void 0),d([f({type:Number,nonNullable:!0,json:{write:!0,default:0}})],ay.prototype,"minWorldLength",void 0),d([f({type:Number,json:{write:!0}})],ay.prototype,"maxWorldLength",void 0),ay=Q6=d([se("esri.symbols.support.Symbol3DVerticalOffset")],ay);const wte=ay;var uk;const xte=dr.ofType({base:null,key:"type",typeMap:{text:M0}});let xp=uk=class extends I0{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new xte,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return bte(this)}hasVisibleVerticalOffset(){return HD(this)}clone(){return new uk({styleOrigin:Ge(this.styleOrigin),symbolLayers:Ge(this.symbolLayers),thumbnail:Ge(this.thumbnail),callout:Ge(this.callout),verticalOffset:Ge(this.verticalOffset)})}static fromTextSymbol(e){return new uk({symbolLayers:[M0.fromTextSymbol(e)]})}};d([f({type:wte,json:{write:!0}})],xp.prototype,"verticalOffset",void 0),d([f(_te)],xp.prototype,"callout",void 0),d([f({json:{read:!1,write:!1}})],xp.prototype,"styleOrigin",void 0),d([f({type:xte})],xp.prototype,"symbolLayers",void 0),d([pr({LabelSymbol3D:"label-3d"},{readOnly:!0})],xp.prototype,"type",void 0),xp=uk=d([se("esri.symbols.LabelSymbol3D")],xp);const sT=xp;var dk;const Cte=dr.ofType({base:null,key:"type",typeMap:{line:ux,path:WD}}),GYe=dr.ofType({base:null,key:"type",typeMap:{line:ux,path:WD}});let r_=dk=class extends I0{constructor(e){super(e),this.symbolLayers=new Cte,this.type="line-3d"}clone(){return new dk({styleOrigin:Ge(this.styleOrigin),symbolLayers:Ge(this.symbolLayers),thumbnail:Ge(this.thumbnail)})}static fromSimpleLineSymbol(e){return new dk({symbolLayers:[ux.fromSimpleLineSymbol(e)]})}};d([f({type:Cte,json:{type:GYe}})],r_.prototype,"symbolLayers",void 0),d([pr({LineSymbol3D:"line-3d"},{readOnly:!0})],r_.prototype,"type",void 0),r_=dk=d([se("esri.symbols.LineSymbol3D")],r_);const lT=r_;let Cp=class extends Ys{constructor(e){super(e),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};d([f({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],Cp.prototype,"angle",void 0),d([f({type:["simple-marker","picture-marker"],readOnly:!0})],Cp.prototype,"type",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Cp.prototype,"xoffset",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Cp.prototype,"yoffset",void 0),d([f({type:Number,cast:e=>e==="auto"?e:oi(e),json:{write:!0}})],Cp.prototype,"size",void 0),Cp=d([se("esri.symbols.MarkerSymbol")],Cp);const kte=Cp;var pk;const Ste=dr.ofType({base:null,key:"type",typeMap:{fill:ax}});let i_=pk=class extends I0{constructor(e){super(e),this.symbolLayers=new Ste,this.type="mesh-3d"}clone(){return new pk({styleOrigin:Ge(this.styleOrigin),symbolLayers:Ge(this.symbolLayers),thumbnail:Ge(this.thumbnail)})}static fromSimpleFillSymbol(e){return new pk({symbolLayers:[ax.fromSimpleFillSymbol(e)]})}};d([f({type:Ste})],i_.prototype,"symbolLayers",void 0),d([pr({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],i_.prototype,"type",void 0),i_=pk=d([se("esri.symbols.MeshSymbol3D")],i_);const aT=i_;function qYe(e,t,r){return t.imageData?Xee({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):Ete(t.url,r)}function Ete(e,t){var r;return KYe(t)&&!_l(e)&&((r=t==null?void 0:t.layer)==null?void 0:r.parsedUrl)?pg(t.layer.parsedUrl.path,"images",e):A0(e,t)}function YYe(e,t,r,i){if(Ag(e)){const n=Jee(e);if(!n)return;t.contentType=n.mediaType,t.imageData=n.data,r&&r.imageData===t.imageData&&r.url&&hg(r.url,t,"url",i)}else hg(e,t,"url",i)}const Tte={json:{read:{source:["imageData","url"],reader:qYe},write:{writer(e,t,r,i){YYe(e,t,this.source,i)}}}},Ate={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const i={};return t.imageData&&(i.imageData=t.imageData),t.contentType&&(i.contentType=t.contentType),t.url&&(i.url=Ete(t.url,r)),i}}}};function KYe(e){var t,r;return!(e==null||e.origin!=="service"&&e.origin!=="portal-item"||((t=e.layer)==null?void 0:t.type)!=="feature"&&((r=e.layer)==null?void 0:r.type)!=="stream")}var J6;let Dl=J6=class extends Dee{constructor(...e){super(...e),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(e,t,r,i){if(e&&typeof e!="string"&&e.imageData==null)return e;const n={};return e&&(n.url=e),t&&(n.outline=t),r!=null&&(n.width=oi(r)),i!=null&&(n.height=oi(i)),n}clone(){const e=new J6({color:Ge(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",Ge(this.source)),e}hash(){var e;return`${super.hash()}.${(e=this.color)==null?void 0:e.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};d([pr({esriPFS:"picture-fill"},{readOnly:!0})],Dl.prototype,"type",void 0),d([f(Tte)],Dl.prototype,"url",void 0),d([f({type:Number,json:{write:!0}})],Dl.prototype,"xscale",void 0),d([f({type:Number,json:{write:!0}})],Dl.prototype,"yscale",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Dl.prototype,"width",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Dl.prototype,"height",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Dl.prototype,"xoffset",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Dl.prototype,"yoffset",void 0),d([f(Ate)],Dl.prototype,"source",void 0),Dl=J6=d([se("esri.symbols.PictureFillSymbol")],Dl);const Mte=Dl;var X6;let Ta=X6=class extends kte{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,r){if(e&&typeof e!="string"&&e.imageData==null)return e;const i={};return e&&(i.url=e),t!=null&&(i.width=oi(t)),r!=null&&(i.height=oi(r)),i}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new X6({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",Ge(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};d([f({json:{write:!1}})],Ta.prototype,"color",void 0),d([pr({esriPMS:"picture-marker"},{readOnly:!0})],Ta.prototype,"type",void 0),d([f(Tte)],Ta.prototype,"url",void 0),d([f(Ate)],Ta.prototype,"source",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Ta.prototype,"height",void 0),d([Tt("height",["height","size"])],Ta.prototype,"readHeight",null),d([f({type:Number,cast:oi,json:{write:!0}})],Ta.prototype,"width",void 0),d([f({json:{write:!1}})],Ta.prototype,"size",void 0),Ta=X6=d([se("esri.symbols.PictureMarkerSymbol")],Ta);const cT=Ta;var $f;const Ite=dr.ofType({base:null,key:"type",typeMap:{icon:Cm,object:UD,text:M0}});let Of=$f=class extends I0{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new Ite,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return bte(this)}hasVisibleVerticalOffset(){return HD(this)}clone(){return new $f({verticalOffset:Ge(this.verticalOffset),callout:Ge(this.callout),styleOrigin:Ge(this.styleOrigin),symbolLayers:Ge(this.symbolLayers),thumbnail:Ge(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new $f({symbolLayers:[Cm.fromSimpleMarkerSymbol(e)]})}static fromPictureMarkerSymbol(e){return new $f({symbolLayers:[Cm.fromPictureMarkerSymbol(e)]})}static fromCIMSymbol(e){var i,n;if(((n=(i=e.data)==null?void 0:i.symbol)==null?void 0:n.type)!=="CIMPointSymbol")return null;const r=e.data.symbol;return new $f(r!=null&&r.callout?{symbolLayers:[Cm.fromCIMSymbol(e)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}:{symbolLayers:[Cm.fromCIMSymbol(e)]})}static fromTextSymbol(e){return new $f({symbolLayers:[M0.fromTextSymbol(e)]})}};d([f({type:wte,json:{write:!0}})],Of.prototype,"verticalOffset",void 0),d([f(_te)],Of.prototype,"callout",void 0),d([f({type:Ite,json:{origins:{"web-scene":{write:!0}}}})],Of.prototype,"symbolLayers",void 0),d([pr({PointSymbol3D:"point-3d"},{readOnly:!0})],Of.prototype,"type",void 0),Of=$f=d([se("esri.symbols.PointSymbol3D")],Of);const km=Of;var n_;const Pte=dr.ofType({base:null,key:"type",typeMap:{extrude:Lee,fill:ax,icon:Cm,line:ux,object:UD,text:M0,water:mte}});let o_=n_=class extends I0{constructor(e){super(e),this.symbolLayers=new Pte,this.type="polygon-3d"}clone(){return new n_({styleOrigin:Ge(this.styleOrigin),symbolLayers:Ge(this.symbolLayers),thumbnail:Ge(this.thumbnail)})}static fromJSON(e){const t=new n_;if(t.read(e),t.symbolLayers.length===2&&t.symbolLayers.getItemAt(0).type==="fill"&&t.symbolLayers.getItemAt(1).type==="line"){const r=t.symbolLayers.getItemAt(0),i=t.symbolLayers.getItemAt(1);!i.enabled||e.symbolLayers&&e.symbolLayers[1]&&e.symbolLayers[1].enable===!1||(r.outline={size:i.size,color:ue(i.material)?i.material.color:null}),t.symbolLayers.removeAt(1)}return t}static fromSimpleFillSymbol(e){return new n_({symbolLayers:[ax.fromSimpleFillSymbol(e)]})}};d([f({type:Pte,json:{write:!0}})],o_.prototype,"symbolLayers",void 0),d([pr({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],o_.prototype,"type",void 0),o_=n_=d([se("esri.symbols.PolygonSymbol3D")],o_);const dx=o_;var eO;const SM=new Yr({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let Lf=eO=class extends Dee{constructor(...e){super(...e),this.color=new wr([0,0,0,.25]),this.outline=new ha,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&typeof e!="string")return e;const i={};return e&&(i.style=e),t&&(i.outline=t),r&&(i.color=r),i}clone(){return new eO({color:Ge(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};d([f()],Lf.prototype,"color",void 0),d([f()],Lf.prototype,"outline",void 0),d([pr({esriSFS:"simple-fill"},{readOnly:!0})],Lf.prototype,"type",void 0),d([f({type:SM.apiValues,json:{read:SM.read,write:SM.write}})],Lf.prototype,"style",void 0),Lf=eO=d([se("esri.symbols.SimpleFillSymbol")],Lf);const qh=Lf;var tO;const EM=new Yr({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let Pc=tO=class extends kte{constructor(...e){super(...e),this.color=new wr([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new ha}normalizeCtorArgs(e,t,r,i){if(e&&typeof e!="string")return e;const n={};return e&&(n.style=e),t!=null&&(n.size=oi(t)),r&&(n.outline=r),i&&(n.color=i),n}writeColor(e,t){e&&this.style!=="x"&&this.style!=="cross"&&(t.color=e.toJSON()),e===null&&(t.color=null)}set path(e){this.style="path",this._set("path",e)}clone(){return new tO({angle:this.angle,color:Ge(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){var e;return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${(e=this.outline)==null?void 0:e.hash()}`}};d([f()],Pc.prototype,"color",void 0),d([zt("color")],Pc.prototype,"writeColor",null),d([pr({esriSMS:"simple-marker"},{readOnly:!0})],Pc.prototype,"type",void 0),d([f()],Pc.prototype,"size",void 0),d([f({type:EM.apiValues,json:{read:EM.read,write:EM.write}})],Pc.prototype,"style",void 0),d([f({type:String,json:{write:!0}})],Pc.prototype,"path",null),d([f({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":ha}},json:{default:null,write:!0}})],Pc.prototype,"outline",void 0),Pc=tO=d([se("esri.symbols.SimpleMarkerSymbol")],Pc);const Yh=Pc;var rO;let qi=rO=class extends Ys{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new rT,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&typeof e!="string")return e;const i={};return e&&(i.text=e),t&&(i.font=t),r&&(i.color=r),i}writeLineWidth(e,t,r,i){i&&typeof i!="string"?i.origin:t[r]=e}castLineWidth(e){return oi(e)}writeLineHeight(e,t,r,i){i&&typeof i!="string"?i.origin:t[r]=e}clone(){return new rO({angle:this.angle,backgroundColor:Ge(this.backgroundColor),borderLineColor:Ge(this.borderLineColor),borderLineSize:this.borderLineSize,color:Ge(this.color),font:this.font&&this.font.clone(),haloColor:Ge(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){var e;return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${(e=this.color)==null?void 0:e.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};d([f({type:wr,json:{write:!0}})],qi.prototype,"backgroundColor",void 0),d([f({type:wr,json:{write:!0}})],qi.prototype,"borderLineColor",void 0),d([f({type:Number,json:{write:!0}})],qi.prototype,"borderLineSize",void 0),d([f({type:rT,json:{write:!0}})],qi.prototype,"font",void 0),d([f({...Wee,json:{write:!0}})],qi.prototype,"horizontalAlignment",void 0),d([f({type:Boolean,json:{write:!0}})],qi.prototype,"kerning",void 0),d([f({type:wr,json:{write:!0}})],qi.prototype,"haloColor",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],qi.prototype,"haloSize",void 0),d([f({type:Boolean,json:{write:!0}})],qi.prototype,"rightToLeft",void 0),d([f({type:Boolean,json:{write:!0}})],qi.prototype,"rotated",void 0),d([f({type:String,json:{write:!0}})],qi.prototype,"text",void 0),d([pr({esriTS:"text"},{readOnly:!0})],qi.prototype,"type",void 0),d([f({...Hee,json:{write:!0}})],qi.prototype,"verticalAlignment",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],qi.prototype,"xoffset",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],qi.prototype,"yoffset",void 0),d([f({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],qi.prototype,"angle",void 0),d([f({type:Number,json:{write:!0}})],qi.prototype,"width",void 0),d([f({type:Number})],qi.prototype,"lineWidth",void 0),d([zt("lineWidth")],qi.prototype,"writeLineWidth",null),d([Qr("lineWidth")],qi.prototype,"castLineWidth",null),d([f(Uee)],qi.prototype,"lineHeight",void 0),d([zt("lineHeight")],qi.prototype,"writeLineHeight",null),qi=rO=d([se("esri.symbols.TextSymbol")],qi);const P0=qi;var iO;let Aa=iO=class extends Ys{constructor(e){super(e),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const e=ue(this.portal)?this.portal:Ws.getDefault(),t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?t.portal:void 0,super.read(e,t)}clone(){return new iO({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){return this._fetchSymbol("webRef",e)}fetchCIMSymbol(e){return this._fetchSymbol("cimRef",e)}async _fetchSymbol(e,t){const r=ue(t)?t.cache:null,i=r?this._fetchCacheKey:null;if(ue(r)){const l=i&&r.get(i);if(l)return l.clone()}const n=await ZYe();vn(t);const o=n.resolveWebStyleSymbol(this,{portal:this.portal},e,t);o.catch(l=>{ft.getLogger(this.declaredClass).error("#fetchSymbol()","Failed to create symbol from style",l)});const s=await o;return e==="webRef"&&s.type==="point-3d"||e==="cimRef"&&s.type==="cim"?(ue(r)&&r.set(i,s.clone()),s):null}};function ZYe(){return ut(()=>import("./webStyleSymbolUtils.cb467b8d.js"),["assets/webStyleSymbolUtils.cb467b8d.js","assets/devEnvironmentUtils.d8d0484c.js"])}d([f({json:{write:!1}})],Aa.prototype,"color",void 0),d([f({type:String,json:{write:!0}})],Aa.prototype,"styleName",void 0),d([f({type:Ws,json:{write:!1}})],Aa.prototype,"portal",void 0),d([f({type:String,json:{read:jD,write:hg}})],Aa.prototype,"styleUrl",void 0),d([f({type:nw,json:{read:!1}})],Aa.prototype,"thumbnail",void 0),d([f({type:String,json:{write:!0}})],Aa.prototype,"name",void 0),d([pr({styleSymbolReference:"web-style"},{readOnly:!0})],Aa.prototype,"type",void 0),d([f()],Aa.prototype,"_fetchCacheKey",null),Aa=iO=d([se("esri.symbols.WebStyleSymbol")],Aa);const Mg=Aa;function uT(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function mg(e){if(!e)return!1;switch(e.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}const Hm={base:Ys,key:"type",typeMap:{"simple-fill":qh,"picture-fill":Mte,"picture-marker":cT,"simple-line":ha,"simple-marker":Yh,text:P0,"label-3d":sT,"line-3d":lT,"mesh-3d":aT,"point-3d":km,"polygon-3d":dx,"web-style":Mg,cim:lx},errorContext:"symbol"},QYe={base:Ys,key:"type",typeMap:{"picture-marker":cT,"simple-marker":Yh,text:P0,"web-style":Mg,cim:lx},errorContext:"symbol"},JYe=Uh({types:Hm}),dT={base:Ys,key:"type",typeMap:{"simple-fill":qh,"picture-fill":Mte,"picture-marker":cT,"simple-line":ha,"simple-marker":Yh,text:P0,"line-3d":lT,"mesh-3d":aT,"point-3d":km,"polygon-3d":dx,"web-style":Mg,cim:lx},errorContext:"symbol"},XYe={base:Ys,key:"type",typeMap:{text:P0,"label-3d":sT},errorContext:"symbol"},U9={base:Ys,key:"type",typeMap:{"line-3d":lT,"mesh-3d":aT,"point-3d":km,"polygon-3d":dx,"web-style":Mg,cim:lx},errorContext:"symbol"},eKe={base:Ys,key:"type",typeMap:{"label-3d":sT},errorContext:"symbol"},$te=au(Hm);function tKe(e){if(!e)return null;const t={};for(const r in e){const i=Ih(e[r]);i&&(t[r]=i)}return Object.keys(t).length!==0?t:null}function rKe(e){if(!ue(e))return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return Object.keys(t).length!==0?t:null}let ws=class extends pn(xt){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:Z_(),configurable:!0})}normalizeCtorArgs(e,t,r,i){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:i}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&ue(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){var t;return(t=this.attributes)==null?void 0:t[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:rKe(this.aggregateGeometries),geometry:ue(this.geometry)?this.geometry.toJSON():null,symbol:ue(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){ue(this.geometry)&&this.geometry.type==="mesh"&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};e==="attributes"&&(n.attributeName=i),this.layer.graphicChanged(n)}};d([f({value:null,json:{read:tKe}})],ws.prototype,"aggregateGeometries",null),d([f({value:null})],ws.prototype,"attributes",null),d([f({value:null,types:Tg,json:{read:Ih}})],ws.prototype,"geometry",null),d([f({type:Boolean})],ws.prototype,"isAggregate",void 0),d([f({clonable:"reference"})],ws.prototype,"layer",void 0),d([f({type:S0})],ws.prototype,"popupTemplate",void 0),d([f({clonable:"reference"})],ws.prototype,"sourceLayer",void 0),d([f({value:null,types:Hm})],ws.prototype,"symbol",null),d([f({type:Boolean,value:!0})],ws.prototype,"visible",null),ws=d([se("esri.Graphic")],ws),function(e){e.generateUID=Z_}(ws||(ws={}));const Hs=ws;class GD{constructor(t,r){this.min=t,this.max=r,this.range=r-t}ndiff(t,r=0){return Math.ceil((t-r)/this.range)*this.range+r}_normalize(t,r,i,n=0,o=!1){return(i-=n)<t?i+=this.ndiff(t-i):i>r&&(i-=this.ndiff(i-r)),o&&i===r&&(i=t),i+n}normalize(t,r=0,i=!1){return this._normalize(this.min,this.max,t,r,i)}clamp(t,r=0){return Us(t-r,this.min,this.max)+r}monotonic(t,r,i){return t<r?r:r+this.ndiff(t-r,i)}minimalMonotonic(t,r,i){return this._normalize(t,t+this.range,r,i)}center(t,r,i){return r=this.monotonic(t,r,i),this.normalize((t+r)/2,i)}diff(t,r,i){return this.monotonic(t,r,i)-t}shortestSignedDiff(t,r){t=this.normalize(t);const i=(r=this.normalize(r))-t,n=r<t?this.minimalMonotonic(t,r)-t:r-this.minimalMonotonic(r,t);return Math.abs(i)<Math.abs(n)?i:n}contains(t,r,i){return r=this.minimalMonotonic(t,r),(i=this.minimalMonotonic(t,i))>t&&i<r}}function qD(e){for(const t in e){const r=e[t];r instanceof Function&&(e[t]=r.bind(e))}return e}qD(new GD(0,2*Math.PI));qD(new GD(-Math.PI,Math.PI));const iKe=qD(new GD(0,360));let Lu=class extends pn(xt){constructor(...e){super(...e),this.position=new Nr([0,0,0]),this.heading=0,this.tilt=0,this.fov=55}normalizeCtorArgs(e,t,r,i){if(e&&typeof e=="object"&&("x"in e||Array.isArray(e))){const n={position:e};return t!=null&&(n.heading=t),r!=null&&(n.tilt=r),i!=null&&(n.fov=i),n}return e}writePosition(e,t,r,i){const n=e.clone();n.x=Gl(e.x||0),n.y=Gl(e.y||0),n.z=e.hasZ?Gl(e.z||0):e.z,t[r]=n.write({},i)}readPosition(e,t){const r=new Nr;return r.read(e,t),r.x=Gl(r.x||0),r.y=Gl(r.y||0),r.z=r.hasZ?Gl(r.z||0):r.z,r}equals(e){return!et(e)&&this.tilt===e.tilt&&this.heading===e.heading&&this.fov===e.fov&&this.position.equals(e.position)}};d([f({type:Nr,json:{write:{isRequired:!0}}})],Lu.prototype,"position",void 0),d([zt("position")],Lu.prototype,"writePosition",null),d([Tt("position")],Lu.prototype,"readPosition",null),d([f({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),Qr(e=>iKe.normalize(Gl(e)))],Lu.prototype,"heading",void 0),d([f({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),Qr(e=>Us(Gl(e),-180,180))],Lu.prototype,"tilt",void 0),d([f({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],Lu.prototype,"fov",void 0),Lu=d([se("esri.Camera")],Lu);const nKe=Lu;var nO;let kp=nO=class extends xt{constructor(e){super(e),this.rotation=0,this.scale=0,this.targetGeometry=null,this.camera=null}castRotation(e){return(e%=360)<0&&(e+=360),e}clone(){return new nO({rotation:this.rotation,scale:this.scale,targetGeometry:ue(this.targetGeometry)?this.targetGeometry.clone():null,camera:ue(this.camera)?this.camera.clone():null})}};function TM(){return{enabled:!this.camera}}d([f({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:TM}}}}})],kp.prototype,"rotation",void 0),d([Qr("rotation")],kp.prototype,"castRotation",null),d([f({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:TM}}}}})],kp.prototype,"scale",void 0),d([f({types:Tg,json:{read:Ih,write:!0,origins:{"web-scene":{read:Ih,write:{overridePolicy:TM}}}}})],kp.prototype,"targetGeometry",void 0),d([f({type:nKe,json:{write:!0}})],kp.prototype,"camera",void 0),kp=nO=d([se("esri.Viewpoint")],kp);const nu=kp;let cy=class extends dr{constructor(e){super(e),this.getCollections=null}initialize(){this.own(eX(()=>this._refresh()))}destroy(){this.getCollections=null}_refresh(){const e=ue(this.getCollections)?this.getCollections():null;if(et(e))return void this.removeAll();let t=0;for(const r of e)ue(r)&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new dr(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction?this.itemFilterFunction:i=>!!i;for(const i of t)if(i){if(r(i)){const n=this.indexOf(i,e);n>=0?n!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const n=this.getChildrenFunction(i);if(Array.isArray(n))for(const o of n)e=this._processCollection(e,o);else e=this._processCollection(e,n)}}return e}};d([f()],cy.prototype,"getCollections",void 0),d([f()],cy.prototype,"getChildrenFunction",void 0),d([f()],cy.prototype,"itemFilterFunction",void 0),cy=d([se("esri.core.CollectionFlattener")],cy);const Jv=cy;function Ot(e,t,r={}){return YD(e,t,r,Ote)}function ca(e,t,r={}){return YD(e,t,r,Lte)}function YD(e,t,r={},i){let n=null;const o=r.once?(s,l)=>{i(s)&&(Dn(n),t(s,l))}:(s,l)=>{i(s)&&t(s,l)};if(n=vUe(e,o,r.sync,r.equals),r.initial){const s=e();o(s,s)}return n}function Cl(e,t,r,i={}){let n=null,o=null,s=null;function l(){var u;n&&o&&(o.remove(),(u=i.onListenerRemove)==null||u.call(i,n),n=null,o=null)}function a(u){i.once&&i.once&&Dn(s),r(u)}const c=Ot(e,(u,p)=>{var h;l(),j3(u)&&(n=u,o=V3(u,t,a),(h=i.onListenerAdd)==null||h.call(i,u))},{sync:i.sync,initial:!0});return s=w0(()=>{c.remove(),l()}),s}function KD(e,t){return oKe(e,Lte,t)}function oKe(e,t,r){if(la(r))return Promise.reject(on());const i=e();if(t!=null&&t(i))return Promise.resolve(i);let n=null;function o(){n=Dn(n)}return new Promise((s,l)=>{n=N3([aa(r,()=>{o(),l(on())}),YD(e,a=>{o(),s(a)},{sync:!1,once:!0},t!=null?t:Ote)])})}function Ote(e){return!0}function Lte(e){return!!e}const gg={sync:!0},si={initial:!0},Gp={sync:!0,initial:!0};class QS{constructor(t=r=>r.values().next().value){this._peeker=t,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(this._items.size===0)return;let t;for(t of this._items);return t}peek(){if(this._items.size!==0)return this._peeker(this._items)}push(t){this.contains(t)||this._items.add(t)}contains(t){return this._items.has(t)}pop(){if(this.length===0)return;const t=this.peek();return this._items.delete(t),t}popLast(){if(this.length===0)return;const t=this.last();return this._items.delete(t),t}remove(t){this._items.delete(t)}filter(t){return this._items.forEach(r=>{t(r)||this._items.delete(r)}),this}}var co;(function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"})(co||(co={}));let sKe=0;function Rte(){return sKe++}function lKe(e){return e&&typeof e=="object"&&("result"in e||"transferList"in e)}function p1(e){return e?typeof e=="string"?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function ZD(e,t,r,i){if(t.type===co.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==co.INVOKE&&t.type!==co.RESPONSE)return void e.postMessage(t);let n;if(lKe(r)?(n=W9(r.transferList),t.data=r.result):(n=W9(i),t.data=r),n){if(at("ff")){for(const o of n)if("byteLength"in o&&o.byteLength>267386880){const s="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case co.INVOKE:throw s;case co.RESPONSE:return void ZD(e,{type:co.RESPONSE,jobId:t.jobId,error:p1(s)})}}}e.postMessage(t,n)}else e.postMessage(t)}function h1(e){if(!e)return null;const t=e.data;return t?typeof t=="string"?JSON.parse(t):t:null}function W9(e){if(!e||!e.length)return null;if(at("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(r=>!aKe(r));return t.length?t:null}function aKe(e){return e instanceof ArrayBuffer||e&&e.constructor&&e.constructor.name==="ArrayBuffer"}const cKe={statsWorker:()=>ut(()=>import("./statsWorker.2afaadc8.js"),["assets/statsWorker.2afaadc8.js","assets/quantizationUtils.4f3ed95a.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js"]),geometryEngineWorker:()=>ut(()=>import("./geometryEngineWorker.c4184d57.js"),["assets/geometryEngineWorker.c4184d57.js","assets/geometryEngineJSON.f9e9a36f.js","assets/geometryEngineBase.82b25ca5.js","assets/json.879c9adc.js"]),CSVSourceWorker:()=>ut(()=>import("./CSVSourceWorker.46a4d61c.js"),["assets/CSVSourceWorker.46a4d61c.js","assets/json.879c9adc.js","assets/FeatureStore.cb9b2be9.js","assets/PooledRBush.f1e26fa4.js","assets/centroid.0c969b82.js","assets/projectionSupport.2b4a8796.js","assets/QueryEngine.05824aeb.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/utils.9592ea84.js","assets/QueryEngineCapabilities.78217f95.js","assets/timeSupport.4d8d3d9b.js","assets/number.2f540abd.js","assets/clientSideDefaults.e21714f1.js"]),EdgeProcessingWorker:()=>ut(()=>import("./EdgeProcessingWorker.a6428fb5.js"),["assets/EdgeProcessingWorker.a6428fb5.js","assets/BufferView.f5101c27.js","assets/edgeProcessing.d8abd144.js","assets/deduplicate.b87c02b8.js","assets/InterleavedLayout.7e8c844d.js","assets/types.44c7402c.js","assets/VertexAttribute.42396f25.js","assets/enums.2d9e6f64.js","assets/VertexElementDescriptor.1fdca6da.js"]),ElevationSamplerWorker:()=>ut(()=>import("./ElevationSamplerWorker.91e84b45.js"),["assets/ElevationSamplerWorker.91e84b45.js","assets/PooledRBush.f1e26fa4.js","assets/georeference.11d1c93a.js","assets/mat3f64.6d32a1d7.js","assets/mat4f64.ff2a477c.js","assets/quat.4f976512.js","assets/quatf64.4ae3e6f1.js","assets/BufferView.f5101c27.js","assets/vec33.9bd40b84.js"]),FeatureServiceSnappingSourceWorker:()=>ut(()=>import("./FeatureServiceSnappingSourceWorker.46e90d8e.js"),["assets/FeatureServiceSnappingSourceWorker.46e90d8e.js","assets/FeatureStore.cb9b2be9.js","assets/PooledRBush.f1e26fa4.js","assets/centroid.0c969b82.js","assets/QueryEngine.05824aeb.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/utils.9592ea84.js","assets/QueryEngineCapabilities.78217f95.js","assets/timeSupport.4d8d3d9b.js"]),GeoJSONSourceWorker:()=>ut(()=>import("./GeoJSONSourceWorker.8d5def53.js"),["assets/GeoJSONSourceWorker.8d5def53.js","assets/FeatureStore.cb9b2be9.js","assets/PooledRBush.f1e26fa4.js","assets/centroid.0c969b82.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/QueryEngine.05824aeb.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/utils.9592ea84.js","assets/QueryEngineCapabilities.78217f95.js","assets/timeSupport.4d8d3d9b.js","assets/geojson.eccb99e5.js","assets/clientSideDefaults.e21714f1.js","assets/sourceUtils.3b4ff83d.js"]),LercWorker:()=>ut(()=>import("./LercWorker.202c34db.js"),[]),MemorySourceWorker:()=>ut(()=>import("./MemorySourceWorker.56210d58.js"),["assets/MemorySourceWorker.56210d58.js","assets/objectIdUtils.83ac3f67.js","assets/FeatureStore.cb9b2be9.js","assets/PooledRBush.f1e26fa4.js","assets/centroid.0c969b82.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/QueryEngine.05824aeb.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/utils.9592ea84.js","assets/QueryEngineCapabilities.78217f95.js","assets/timeSupport.4d8d3d9b.js","assets/clientSideDefaults.e21714f1.js","assets/sourceUtils.3b4ff83d.js"]),PBFDecoderWorker:()=>ut(()=>import("./PBFDecoderWorker.5f943157.js"),[]),Pipeline:()=>ut(()=>import("./Pipeline.19b42575.js"),["assets/Pipeline.19b42575.js","assets/QueryEngine.05824aeb.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/utils.9592ea84.js","assets/QueryEngineCapabilities.78217f95.js","assets/timeSupport.4d8d3d9b.js","assets/FeatureStore2D.de2275d3.js","assets/CircularArray.415a06a8.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/enums.0295eb81.js","assets/visualVariablesUtils.4b17aac7.js","assets/Utils.e8554a0e.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/visualVariablesUtils.88ca310b.js","assets/ogcFeatureUtils.536fc84d.js","assets/geojson.eccb99e5.js","assets/clientSideDefaults.e21714f1.js","assets/createConnection.39af598d.js"]),PointCloudWorker:()=>ut(()=>import("./PointCloudWorker.5bd8f244.js"),["assets/PointCloudWorker.5bd8f244.js","assets/quat.4f976512.js","assets/mat3f64.6d32a1d7.js","assets/quatf64.4ae3e6f1.js","assets/I3SBinaryReader.e56bed53.js","assets/VertexAttribute.42396f25.js","assets/vec3f32.1121a836.js","assets/PointCloudUniqueValueRenderer.b2b578fe.js"]),RasterWorker:()=>ut(()=>import("./RasterWorker.793b2225.js"),["assets/RasterWorker.793b2225.js","assets/pixelUtils.f4eba4af.js","assets/RasterSymbolizer.04994a43.js","assets/colorUtils.bb6424b7.js","assets/utils.80cbb8ab.js","assets/rasterProjectionHelper.3c27ded5.js","assets/dataUtils.97a7b38c.js"]),SceneLayerSnappingSourceWorker:()=>ut(()=>import("./SceneLayerSnappingSourceWorker.c8451219.js"),["assets/SceneLayerSnappingSourceWorker.c8451219.js","assets/Util.7142962a.js","assets/sphere.66d31df4.js","assets/mat3f64.6d32a1d7.js","assets/mat4f64.ff2a477c.js","assets/quatf64.4ae3e6f1.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/utils.9592ea84.js","assets/plane.80965a04.js","assets/edgeProcessing.d8abd144.js","assets/deduplicate.b87c02b8.js","assets/InterleavedLayout.7e8c844d.js","assets/BufferView.f5101c27.js","assets/types.44c7402c.js","assets/VertexAttribute.42396f25.js","assets/enums.2d9e6f64.js","assets/VertexElementDescriptor.1fdca6da.js"]),SceneLayerWorker:()=>ut(()=>import("./SceneLayerWorker.d9baaa24.js"),["assets/SceneLayerWorker.d9baaa24.js","assets/sphere.66d31df4.js","assets/mat3f64.6d32a1d7.js","assets/mat4f64.ff2a477c.js","assets/quatf64.4ae3e6f1.js"]),WFSSourceWorker:()=>ut(()=>import("./WFSSourceWorker.acdabd50.js"),["assets/WFSSourceWorker.acdabd50.js","assets/FeatureStore.cb9b2be9.js","assets/PooledRBush.f1e26fa4.js","assets/centroid.0c969b82.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/QueryEngine.05824aeb.js","assets/QueryEngineResult.fe74257f.js","assets/quantizationUtils.4f3ed95a.js","assets/WhereClause.39c9a123.js","assets/utils.5216fcae.js","assets/generateRendererUtils.03b1f269.js","assets/utils.9592ea84.js","assets/QueryEngineCapabilities.78217f95.js","assets/timeSupport.4d8d3d9b.js","assets/geojson.eccb99e5.js","assets/sourceUtils.3b4ff83d.js","assets/wfsUtils.d297b1c9.js","assets/xmlUtils.56e603f6.js"]),WorkerTileHandler:()=>ut(()=>import("./WorkerTileHandler.78f35881.js"),["assets/WorkerTileHandler.78f35881.js","assets/enums.54326430.js","assets/GeometryUtils.4f19e772.js","assets/Rect.95b0fd2e.js","assets/config.82550349.js","assets/StyleDefinition.d56936e4.js","assets/enums.0295eb81.js","assets/Geometry.d049a63c.js","assets/TileClipper.7297efa2.js","assets/GeometryUtils.51c4032a.js","assets/StyleRepository.43c45b26.js","assets/enums.2d9e6f64.js","assets/VertexElementDescriptor.1fdca6da.js","assets/colorUtils.bb6424b7.js","assets/earcut.afc1d357.js","assets/BidiEngine.d8bba3fc.js"])},{CLOSE:H9,ABORT:G9,INVOKE:q9,RESPONSE:vb,OPEN_PORT:Y9,ON:uKe}=co,dKe=2;class pKe{constructor(t){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=t,this._timer=null,this._process=this._process.bind(this)}push(t){t.type===co.ABORT?this._cancelledJobIds.add(t.jobId):(this._invokeMessages.push(t),this._timer===null&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const t of this._invokeMessages)this._cancelledJobIds.has(t.jobId)||this._invoke(t);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class Os{constructor(t,r,i){this._port=t,this._getNextJob=i,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new pKe(n=>this._onInvokeMessage(n)),this._client=r.client,this._onMessage=this._onMessage.bind(this),this._channel=r.channel,this._schedule=r.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(t){const r=new MessageChannel;let i;i=typeof t=="function"?new t:"default"in t&&typeof t.default=="function"?new t.default:t;const n=new Os(r.port1,{channel:r,client:i},()=>null);return typeof i=="object"&&"remoteClient"in i&&(i.remoteClient=n),Os.clients.set(n,i),r.port2}static loadWorker(t){const r=cKe[t];return r?r():Promise.resolve(null)}close(){this._post({type:H9}),this._close()}isBusy(){return this._outJobs.size>0}invoke(t,r,i){const n=i&&i.signal,o=i&&i.transferList;if(!this._port)return Promise.reject(new ze("worker:port-closed",`Cannot call invoke('${t}'), port is closed`,{methodName:t,data:r}));const s=Rte();return new Promise((l,a)=>{if(la(n))return this._processWork(),void a(on());const c=aa(n,()=>{const p=this._outJobs.get(s);p&&(this._outJobs.delete(s),this._processWork(),Dn(p.abortHandle),this._post({type:G9,jobId:s}),a(on()))}),u={resolve:l,reject:a,abortHandle:c,debugInfo:t};this._outJobs.set(s,u),this._post({type:q9,jobId:s,methodName:t,abortable:n!=null},r,o)})}on(t,r){const i=new MessageChannel;function n(o){r(o.data)}return this._port.postMessage({type:co.ON,eventType:t,port:i.port2},[i.port2]),i.port1.addEventListener("message",n),i.port1.start(),{remove(){i.port1.postMessage({type:co.CLOSE}),i.port1.close(),i.port1.removeEventListener("message",n)}}}jobAdded(){this._processWork()}openPort(){const t=new MessageChannel;return this._post({type:Y9,port:t.port2}),t.port1}_processWork(){if(this._outJobs.size>=dKe)return;const t=this._getNextJob();if(!t)return;const{methodName:r,data:i,invokeOptions:n,deferred:o}=t;this.invoke(r,i,n).then(s=>o.resolve(s)).catch(s=>o.reject(s))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(t=>{Dn(t.abortHandle),t.reject(on(`Worker closing, aborting job calling '${t.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(t){ue(this._schedule)?this._schedule(()=>this._processMessage(t)):this._processMessage(t)}_processMessage(t){const r=h1(t);if(r)switch(r.type){case vb:this._onResponseMessage(r);break;case q9:this._invokeQueue.push(r);break;case G9:this._onAbortMessage(r);break;case H9:this._onCloseMessage();break;case Y9:this._onOpenPortMessage(r);break;case uKe:this._onOnMessage(r)}}_onAbortMessage(t){const r=this._inJobs,i=t.jobId,n=r.get(i);this._invokeQueue.push(t),n&&(n.controller&&n.controller.abort(),r.delete(i))}_onCloseMessage(){const t=this._client;this._close(),t&&"destroy"in t&&Os.clients.get(this)===t&&t.destroy(),Os.clients.delete(this),t&&t.remoteClient&&(t.remoteClient=null)}_onInvokeMessage(t){const{methodName:r,jobId:i,data:n,abortable:o}=t,s=o?new AbortController:null,l=this._inJobs;let a,c=this._client,u=c[r];try{if(!u&&r&&r.includes(".")){const p=r.split(".");for(let h=0;h<p.length-1;h++)c=c[p[h]],u=c[p[h+1]]}if(typeof u!="function")throw new TypeError(`${r} is not a function`);a=u.call(c,n,{client:this,signal:s?s.signal:null})}catch(p){return void this._post({type:vb,jobId:i,error:p1(p)})}Rd(a)?(l.set(i,{controller:s,promise:a}),a.then(p=>{l.has(i)&&(l.delete(i),this._post({type:vb,jobId:i},p))},p=>{l.has(i)&&(l.delete(i),us(p)||this._post({type:vb,jobId:i,error:p1(p||{message:`Error encountered at method ${r}`})}))})):this._post({type:vb,jobId:i},a)}_onOpenPortMessage(t){new Os(t.port,{client:this._client},()=>null)}_onOnMessage(t){const{port:r}=t,i=this._client.on(t.eventType,o=>{r.postMessage(o)}),n=V3(t.port,"message",o=>{var s;((s=h1(o))==null?void 0:s.type)===co.CLOSE&&(n.remove(),i.remove(),r.close())})}_onResponseMessage(t){const{jobId:r,error:i,data:n}=t,o=this._outJobs;if(!o.has(r))return;const s=o.get(r);o.delete(r),this._processWork(),Dn(s.abortHandle),i?s.reject(ze.fromJSON(JSON.parse(i))):s.resolve(n)}_post(t,r,i){return ZD(this._port,t,r,i)}}Os.kernelInfo={revision:cte,version:ute,buildDate:ate},Os.clients=new Map;class hKe{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new QS}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(t,r){return new Promise((i,n)=>{let o=!0;const s=l=>{vn(r.signal),o&&(o=!1,l())};this._clients.length=t.length,this._clientPromises.length=t.length,this._inUseClients.length=t.length;for(let l=0;l<t.length;++l){const a=t[l];Rd(a)?this._clientPromises[l]=a.then(c=>(this._clients[l]=new Os(c,r,()=>{var u;return(u=this._ongoingJobsQueue.pop())!=null?u:null}),s(i),this._clients[l]),()=>(s(n),null)):(this._clients[l]=new Os(a,r,()=>{var c;return(c=this._ongoingJobsQueue.pop())!=null?c:null}),this._clientPromises[l]=Promise.resolve(this._clients[l]),s(i))}})}broadcast(t,r,i){const n=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];n[o]=s.then(l=>l==null?void 0:l.invoke(t,r,i))}return n}close(){let t;for(;t=this._ongoingJobsQueue.pop();)t.deferred.reject(on(`Worker closing, aborting job calling '${t.methodName}'`));for(const r of this._clientPromises)r.then(i=>i==null?void 0:i.close());this._clients.length=0,this._clientPromises.length=0}invoke(t,r,i){let n;Array.isArray(i)?(ft.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),n={transferList:i}):n=i;const o=_d();this._ongoingJobsQueue.push({methodName:t,data:r,invokeOptions:n,deferred:o});for(let s=0;s<this._clientPromises.length;s++){const l=this._clients[s];l?l.jobAdded():this._clientPromises[s].then(a=>a==null?void 0:a.jobAdded())}return o.promise}on(t,r){return Promise.all(this._clientPromises).then(()=>N3(this._clients.map(i=>i.on(t,r))))}openPorts(){return new Promise(t=>{const r=new Array(this._clientPromises.length);let i=r.length;for(let n=0;n<this._clientPromises.length;++n)this._clientPromises[n].then(o=>{o&&(r[n]=o.openPort()),--i==0&&t(r)})})}get test(){return{numClients:this._clients.length}}}const fKe=ft.getLogger("esri.assets");function ui(e){if(!pi.assetsPath)throw fKe.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new ze("assets:path-not-set","config.assetsPath is not set");return pg(pi.assetsPath,e)}const Dte=ft.getLogger("esri.intl.substitute");function Vc(e,t,r={}){const{format:i={}}=r;return uc(e,n=>mKe(n,t,i))}function mKe(e,t,r){var a;let i,n;const o=e.indexOf(":");if(o===-1?i=e.trim():(i=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!i)return"";const s=_0(i,t);if(s==null)return"";const l=(a=n?r==null?void 0:r[n]:null)!=null?a:r==null?void 0:r[i];return l?gKe(s,l):n?yKe(s,n):QD(s)}function gKe(e,t){switch(t.type){case"date":return Cd(e,t.intlOptions);case"number":return Ph(e,t.intlOptions);default:return Dte.warn("missing format descriptor for key {key}"),QD(e)}}function yKe(e,t){switch(t.toLowerCase()){case"dateformat":return Cd(e);case"numberformat":return Ph(e);default:return Dte.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Cd(e):/^numberformat/i.test(t)?Ph(e):QD(e)}}function QD(e){switch(typeof e){case"string":return e;case"number":return Ph(e);case"boolean":return""+e;default:return e instanceof Date?Cd(e):""}}const K9=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,vKe={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:!0,nl:!0,pl:!0,"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-CN":!0,"zh-HK":!0,"zh-TW":!0};function Z9(e){var t;return(t=vKe[e])!=null?t:!1}const s_=[],dv=new Map;function Q9(e){for(const t of dv.keys())Fte(e.pattern,t)&&dv.delete(t)}function bKe(e){return s_.includes(e)||(Q9(e),s_.unshift(e)),{remove(){const t=s_.indexOf(e);t>-1&&(s_.splice(t,1),Q9(e))}}}async function Nte(e){const t=ic();dv.has(e)||dv.set(e,wKe(e,t));const r=dv.get(e);return r&&await xKe.add(r),r}function _Ke(e){if(!K9.test(e))return null;const t=K9.exec(e);if(t===null)return null;const[,r,i]=t,n=r+(i?"-"+i.toUpperCase():"");return Z9(n)?n:Z9(r)?r:null}async function wKe(e,t){const r=[];for(const i of s_)if(Fte(i.pattern,e))try{return await i.fetchMessageBundle(e,t)}catch(n){r.push(n)}throw r.length?new ze("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new ze("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function Fte(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}vD(()=>{dv.clear()});const xKe=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=_d())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}};async function CKe(e,t,r,i){const n=t.exec(r);if(!n)throw new ze("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const o=n[1]?`${n[1]}/`:"",s=n[2],l=_Ke(i),a=`${o}${s}.json`,c=l?`${o}${s}_${l}.json`:a;let u;try{u=await J9(e(c))}catch(p){if(c===a)throw new ze("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:p});try{u=await J9(e(a))}catch(h){throw new ze("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:h})}}return u}async function J9(e){if(ue(X9.fetchBundleAsset))return X9.fetchBundleAsset(e);const t=await ri(e,{responseType:"text"});return JSON.parse(t.data)}class kKe{constructor({base:t="",pattern:r,location:i=new URL(window.location.href)}){let n;n=typeof i=="string"?o=>new URL(o,new URL(i,window.location.href)).href:i instanceof URL?o=>new URL(o,i).href:i,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=n,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)/)?(.*)$`)}fetchMessageBundle(t,r){return CKe(this.getAssetUrl,this.matcher,t,r)}}function SKe(e){return new kKe(e)}const X9={};bKe(SKe({pattern:"esri/",location:ui}));const eB={};function EKe(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}function TKe(e){var r;const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=eB.baseUrl),(r=eB.packages)==null||r.forEach(i=>{var n;EKe((n=t.packages)!=null?n:[],i)}),t}class AKe{constructor(){const t=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(r=>{this[r]=(...i)=>t[r](...i)})}}class hk{constructor(){this._dispatcher=new AKe,this._workerPostMessage({type:co.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(t){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=t,t&&this.addEventListener("message",t)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(t){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=t,t&&this.addEventListener("messageerror",t)}get onerror(){return this._onerrorHandler}set onerror(t){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=t,t&&this.addEventListener("error",t)}postMessage(t){LS(()=>{this._workerMessageHandler(new MessageEvent("message",{data:t}))})}dispatchEvent(t){return this._dispatcher.dispatchEvent(t)}addEventListener(t,r,i){this._dispatcher.addEventListener(t,r,i)}removeEventListener(t,r,i){this._dispatcher.removeEventListener(t,r,i)}_workerPostMessage(t){LS(()=>{this.dispatchEvent(new MessageEvent("message",{data:t}))})}async _workerMessageHandler(t){const r=h1(t);if(r&&r.type===co.OPEN){const{modulePath:i,jobId:n}=r;let o=await Os.loadWorker(i);o||(o=await ut(()=>import(i),[]));const s=Os.connect(o);this._workerPostMessage({type:co.OPENED,jobId:n,data:s})}}}const oO=ft.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:MKe}=co,IKe='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,version:r}=configuration.kernelInfo,{revision:t,version:n}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i=outgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});';let S2,E2;const tB="Failed to create Worker. Fallback to execute module in main thread";async function PKe(){if(!at("esri-workers")||(at("mozilla"),0))return rB(new hk);if(!S2&&!E2)try{const t=IKe.split('"{CONFIGURATION}"').join(`'${$Ke()}'`);S2=URL.createObjectURL(new Blob([t],{type:"text/javascript"}))}catch(t){E2=t||{}}let e;if(S2)try{e=new Worker(S2,{name:"esri-worker-"+OKe++})}catch{oO.warn(tB,E2),e=new hk}else oO.warn(tB,E2),e=new hk;return rB(e)}async function rB(e){return new Promise(t=>{function r(n){const o=h1(n);o&&o.type===MKe&&(e.removeEventListener("message",r),e.removeEventListener("error",i),t(e))}function i(n){n.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",i),oO.warn("Failed to create Worker. Fallback to execute module in main thread",n),(e=new hk).addEventListener("message",r),e.addEventListener("error",i)}e.addEventListener("message",r),e.addEventListener("error",i)})}function $Ke(){let e;if(pi.default!=null){const n={...pi};delete n.default,e=JSON.parse(JSON.stringify(n))}else e=JSON.parse(JSON.stringify(pi));e.assetsPath=fl(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?fl(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=ic(),e.has={"esri-csp-restrictions":at("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":at("esri-2d-update-debug"),"featurelayer-pbf":at("featurelayer-pbf"),"featurelayer-simplify-thresholds":at("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":at("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":at("featurelayer-simplify-mobile-factor"),"esri-atomics":at("esri-atomics"),"esri-shared-array-buffer":at("esri-shared-array-buffer"),"esri-tiles-debug":at("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":at("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":at("feature-polyline-generalization-factor"),"host-webworker":1,"polylabel-placement-enabled":at("polylabel-placement-enabled")},e.workers.loaderUrl&&(e.workers.loaderUrl=fl(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=fl(e.workers.workerPath):e.workers.workerPath=fl(ui("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=pi.workers.loaderConfig,r=TKe({baseUrl:t==null?void 0:t.baseUrl,locale:ic(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t==null?void 0:t.has},map:{...t==null?void 0:t.map},paths:{...t==null?void 0:t.paths},packages:(t==null?void 0:t.packages)||[]}),i={version:ute,buildDate:ate,revision:cte};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:i})}let OKe=0;const{ABORT:iB,INVOKE:LKe,OPEN:RKe,OPENED:DKe,RESPONSE:bb}=co;class JD{constructor(t,r){this._outJobs=new Map,this._inJobs=new Map,this.worker=t,this.id=r,t.addEventListener("message",this._onMessage.bind(this)),t.addEventListener("error",i=>{i.preventDefault(),ft.getLogger("esri.core.workers.WorkerOwner").error(i)})}static async create(t){const r=await PKe();return new JD(r,t)}terminate(){this.worker.terminate()}async open(t,r={}){const{signal:i}=r,n=Rte();return new Promise((o,s)=>{const l={resolve:o,reject:s,abortHandle:rD(i,()=>{this._outJobs.delete(n),this._post({type:iB,jobId:n})})};this._outJobs.set(n,l),this._post({type:RKe,jobId:n,modulePath:t})})}_onMessage(t){const r=h1(t);if(r)switch(r.type){case DKe:this._onOpenedMessage(r);break;case bb:this._onResponseMessage(r);break;case iB:this._onAbortMessage(r);break;case LKe:this._onInvokeMessage(r)}}_onAbortMessage(t){const r=this._inJobs,i=t.jobId,n=r.get(i);n&&(n.controller&&n.controller.abort(),r.delete(i))}_onInvokeMessage(t){const{methodName:r,jobId:i,data:n,abortable:o}=t,s=o?new AbortController:null,l=this._inJobs,a=pYe[r];let c;try{if(typeof a!="function")throw new TypeError(`${r} is not a function`);c=a.call(null,n,{signal:s?s.signal:null})}catch(u){return void this._post({type:bb,jobId:i,error:p1(u)})}Rd(c)?(l.set(i,{controller:s,promise:c}),c.then(u=>{l.has(i)&&(l.delete(i),this._post({type:bb,jobId:i},u))},u=>{l.has(i)&&(l.delete(i),u||(u={message:"Error encountered at method"+r}),us(u)||this._post({type:bb,jobId:i,error:p1(u||{message:`Error encountered at method ${r}`})}))})):this._post({type:bb,jobId:i},c)}_onOpenedMessage(t){const{jobId:r,data:i}=t,n=this._outJobs.get(r);n&&(this._outJobs.delete(r),Dn(n.abortHandle),n.resolve(i))}_onResponseMessage(t){const{jobId:r,error:i,data:n}=t,o=this._outJobs.get(r);o&&(this._outJobs.delete(r),Dn(o.abortHandle),i?o.reject(ze.fromJSON(JSON.parse(i))):o.resolve(n))}_post(t,r,i){return ZD(this.worker,t,r,i)}}let Sm=at("esri-workers-debug")?1:at("esri-mobile")?Math.min(navigator.hardwareConcurrency-1,3):at("host-browser")?navigator.hardwareConcurrency-1:0;Sm||(Sm=at("safari")&&at("mac")||at("trident")?7:2);let nB=0;const fk=[];function NKe(){zte()}async function T2(e,t){const r=new hKe;return await r.open(e,t),r}async function FKe(e,t={}){if(typeof e!="string")throw new ze("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if(at("host-webworker")&&!at("esri-workers")&&(r="local"),r==="local"){let i=await Os.loadWorker(e);i||(i=await ut(()=>import(e),[])),vn(t.signal);const n=t.client||i;return T2([Os.connect(i)],{...t,client:n})}if(await zte(),vn(t.signal),r==="dedicated"){const i=nB++%Sm;return T2([await fk[i].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const i=Math.min(t.maxNumWorkers,Sm);if(i<Sm){const n=new Array(i);for(let o=0;o<i;++o){const s=nB++%Sm;n[o]=fk[s].open(e,t)}return T2(n,t)}}return T2(fk.map(i=>i.open(e,t)),t)}let A2=null;async function zte(){if(A2)return A2;new AbortController;const e=[];for(let t=0;t<Sm;t++){const r=JD.create(t).then(i=>(fk[t]=i,i));e.push(r)}return A2=Promise.all(e),A2}function XD(e){return new gr({wkt:`GEOCCS["Spherical geocentric",
- DATUM["Not specified",
- SPHEROID["Sphere",${e.radius},0]],
- PRIMEM["Greenwich",0.0,
- AUTHORITY["EPSG","8901"]],
- UNIT["m",1.0],
- AXIS["Geocentric X",OTHER],
- AXIS["Geocentric Y",EAST],
- AXIS["Geocentric Z",NORTH]
- ]`})}const jte=XD(Wi),JS=XD(cd),XS=XD(Mh),zKe=new gr({wkt:`GEOCCS["WGS 84",
- DATUM["WGS_1984",
- SPHEROID["WGS 84",${Wi.radius},298.257223563,
- AUTHORITY["EPSG","7030"]],
- AUTHORITY["EPSG","6326"]],
- PRIMEM["Greenwich",0,
- AUTHORITY["EPSG","8901"]],
- UNIT["m",1.0,
- AUTHORITY["EPSG","9001"]],
- AXIS["Geocentric X",OTHER],
- AXIS["Geocentric Y",OTHER],
- AXIS["Geocentric Z",NORTH],
- AUTHORITY["EPSG","4978"]
- ]`});function Ygt(e){return e&&(H3(e)||e===JS)?JS:e&&(G3(e)||e===XS)?XS:jte}function jKe(e){return ue(e)&&(H3(e)||e===JS)?cd:ue(e)&&(G3(e)||e===XS)?Mh:Wi}function Kgt(e){return nD(e)?cd:oD(e)?Mh:Wi}const Vte=39.37,VKe=Wi.radius*Math.PI/200,Bte=/UNIT\[([^\]]+)\]\]$/i,Gm=te,Ute=/UNIT\[([^\]]+)\]/i,BKe=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),UKe=Ao()({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_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),xc=e=>e*e,ep=e=>e*e*e,f1={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}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:xc(.001)},"square-centimeters":{inBaseUnits:xc(.01)},"square-decimeters":{inBaseUnits:xc(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:xc(1e3)},"square-inches":{inBaseUnits:xc(.0254)},"square-feet":{inBaseUnits:xc(.3048)},"square-yards":{inBaseUnits:xc(.9144)},"square-miles":{inBaseUnits:xc(1609.344)},"square-us-feet":{inBaseUnits:xc(1200/3937)},acres:{inBaseUnits:.0015625*xc(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*ep(.001)},"cubic-centimeters":{inBaseUnits:1e3*ep(.01)},"cubic-decimeters":{inBaseUnits:1e3*ep(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*ep(1e3)},"cubic-inches":{inBaseUnits:1e3*ep(.0254)},"cubic-feet":{inBaseUnits:1e3*ep(.3048)},"cubic-yards":{inBaseUnits:1e3*ep(.9144)},"cubic-miles":{inBaseUnits:1e3*ep(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},WKe=(()=>{const e={};for(const t in f1)for(const r in f1[t].units)e[r]=t;return e})();function HKe(e,t,r){return e*f1[r].units[t].inBaseUnits}function GKe(e,t,r){return e/f1[r].units[t].inBaseUnits}function sO(e){const t=WKe[e];if(!t)throw new Error("unknown type");return t}function oB(e,t=null){return t=t||sO(e),f1[t].baseUnit===e}function Nl(e,t,r){if(t===r)return e;const i=sO(t);if(i!==sO(r))throw new Error("incompatible units");const n=oB(t,i)?e:HKe(e,t,i);return oB(r,i)?n:GKe(n,r,i)}function qKe(e,t,r){return Nl(e,t,"meters")/(r*Math.PI/180)}function Wte(e){return UKe.fromJSON(e.toLowerCase())||null}function Xv(e){if(ue(e)&&!$Ue(e))return 1;const t=Ig(e);return t>1e5?1:t}function YKe(e){return Ig(e)>=jKe(e).metersPerDegree?"meters":ZKe(e)}function Ig(e,t=Wi.metersPerDegree){return Y4(KKe(e,!0),t)}function KKe(e,t=!1){const r=ue(e)?e.wkid:null,i=ue(e)?e.wkt:null;let n=null;if(r){if(nD(r))return cd.metersPerDegree;if(oD(r))return Mh.metersPerDegree;n=Gm.values[Gm[r]],!n&&t&&BKe.has(r)&&(n=VKe)}else i&&(qte(i)?n=sB(Bte.exec(i),n):Gte(i)&&(n=sB(Ute.exec(i),n)));return n}function sB(e,t){return e&&e[1]?Hte(e[1]):t}function Hte(e){return parseFloat(e.split(",")[1])}function ZKe(e){const t=ue(e)?e.wkid:null,r=ue(e)?e.wkt:null;let i=null;if(t)i=Gm.units[Gm[t]];else if(r){const n=qte(r)?Bte:Gte(r)?Ute:null;if(n){const o=n.exec(r);o&&o[1]&&(i=JKe(o[1]))}}return ue(i)?Wte(i):null}function Gte(e){return/^GEOCCS/i.test(e)}function qte(e){return/^PROJCS/i.test(e)}const QKe=1e-7;function JKe(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!Gm.units.includes(r)){const i=Hte(e);r=null;const n=Gm.values;for(let o=0;o<n.length;++o)if(Math.abs(i-n[o])<QKe){r=Gm.units[o];break}}return r}const Yte={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"},Kte={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},XKe=Ao()(Yte),eZe=Ao()(Kte);Ao()({...Yte,...Kte});function tZe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Kh(e,t,r,i,n,o,s,l,a,c,u,p,h,m,y,v,_){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=o,e[5]=s,e[6]=l,e[7]=a,e[8]=c,e[9]=u,e[10]=p,e[11]=h,e[12]=m,e[13]=y,e[14]=v,e[15]=_,e}function pT(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Nd(e,t){if(e===t){const r=t[1],i=t[2],n=t[3],o=t[6],s=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=o,e[11]=t[14],e[12]=n,e[13]=s,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function rZe(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5],a=t[6],c=t[7],u=t[8],p=t[9],h=t[10],m=t[11],y=t[12],v=t[13],_=t[14],x=t[15],S=r*l-i*s,C=r*a-n*s,E=r*c-o*s,T=i*a-n*l,w=i*c-o*l,I=n*c-o*a,M=u*v-p*y,L=u*_-h*y,R=u*x-m*y,W=p*_-h*v,z=p*x-m*v,j=h*x-m*_;let U=S*j-C*z+E*W+T*R-w*L+I*M;return U?(U=1/U,e[0]=(l*j-a*z+c*W)*U,e[1]=(n*z-i*j-o*W)*U,e[2]=(v*I-_*w+x*T)*U,e[3]=(h*w-p*I-m*T)*U,e[4]=(a*R-s*j-c*L)*U,e[5]=(r*j-n*R+o*L)*U,e[6]=(_*E-y*I-x*C)*U,e[7]=(u*I-h*E+m*C)*U,e[8]=(s*z-l*R+c*M)*U,e[9]=(i*R-r*z-o*M)*U,e[10]=(y*w-v*E+x*S)*U,e[11]=(p*E-u*w-m*S)*U,e[12]=(l*L-s*W-a*M)*U,e[13]=(r*W-i*L+n*M)*U,e[14]=(v*C-y*T-_*S)*U,e[15]=(u*T-p*C+h*S)*U,e):null}function iZe(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5],a=t[6],c=t[7],u=t[8],p=t[9],h=t[10],m=t[11],y=t[12],v=t[13],_=t[14],x=t[15];return e[0]=l*(h*x-m*_)-p*(a*x-c*_)+v*(a*m-c*h),e[1]=-(i*(h*x-m*_)-p*(n*x-o*_)+v*(n*m-o*h)),e[2]=i*(a*x-c*_)-l*(n*x-o*_)+v*(n*c-o*a),e[3]=-(i*(a*m-c*h)-l*(n*m-o*h)+p*(n*c-o*a)),e[4]=-(s*(h*x-m*_)-u*(a*x-c*_)+y*(a*m-c*h)),e[5]=r*(h*x-m*_)-u*(n*x-o*_)+y*(n*m-o*h),e[6]=-(r*(a*x-c*_)-s*(n*x-o*_)+y*(n*c-o*a)),e[7]=r*(a*m-c*h)-s*(n*m-o*h)+u*(n*c-o*a),e[8]=s*(p*x-m*v)-u*(l*x-c*v)+y*(l*m-c*p),e[9]=-(r*(p*x-m*v)-u*(i*x-o*v)+y*(i*m-o*p)),e[10]=r*(l*x-c*v)-s*(i*x-o*v)+y*(i*c-o*l),e[11]=-(r*(l*m-c*p)-s*(i*m-o*p)+u*(i*c-o*l)),e[12]=-(s*(p*_-h*v)-u*(l*_-a*v)+y*(l*h-a*p)),e[13]=r*(p*_-h*v)-u*(i*_-n*v)+y*(i*h-n*p),e[14]=-(r*(l*_-a*v)-s*(i*_-n*v)+y*(i*a-n*l)),e[15]=r*(l*h-a*p)-s*(i*h-n*p)+u*(i*a-n*l),e}function nZe(e){const t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],s=e[5],l=e[6],a=e[7],c=e[8],u=e[9],p=e[10],h=e[11],m=e[12],y=e[13],v=e[14],_=e[15];return(t*s-r*o)*(p*_-h*v)-(t*l-i*o)*(u*_-h*y)+(t*a-n*o)*(u*v-p*y)+(r*l-i*s)*(c*_-h*m)-(r*a-n*s)*(c*v-p*m)+(i*a-n*l)*(c*y-u*m)}function Zte(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=t[6],u=t[7],p=t[8],h=t[9],m=t[10],y=t[11],v=t[12],_=t[13],x=t[14],S=t[15];let C=r[0],E=r[1],T=r[2],w=r[3];return e[0]=C*i+E*l+T*p+w*v,e[1]=C*n+E*a+T*h+w*_,e[2]=C*o+E*c+T*m+w*x,e[3]=C*s+E*u+T*y+w*S,C=r[4],E=r[5],T=r[6],w=r[7],e[4]=C*i+E*l+T*p+w*v,e[5]=C*n+E*a+T*h+w*_,e[6]=C*o+E*c+T*m+w*x,e[7]=C*s+E*u+T*y+w*S,C=r[8],E=r[9],T=r[10],w=r[11],e[8]=C*i+E*l+T*p+w*v,e[9]=C*n+E*a+T*h+w*_,e[10]=C*o+E*c+T*m+w*x,e[11]=C*s+E*u+T*y+w*S,C=r[12],E=r[13],T=r[14],w=r[15],e[12]=C*i+E*l+T*p+w*v,e[13]=C*n+E*a+T*h+w*_,e[14]=C*o+E*c+T*m+w*x,e[15]=C*s+E*u+T*y+w*S,e}function oZe(e,t,r){const i=r[0],n=r[1],o=r[2];if(t===e)e[12]=t[0]*i+t[4]*n+t[8]*o+t[12],e[13]=t[1]*i+t[5]*n+t[9]*o+t[13],e[14]=t[2]*i+t[6]*n+t[10]*o+t[14],e[15]=t[3]*i+t[7]*n+t[11]*o+t[15];else{const s=t[0],l=t[1],a=t[2],c=t[3],u=t[4],p=t[5],h=t[6],m=t[7],y=t[8],v=t[9],_=t[10],x=t[11];e[0]=s,e[1]=l,e[2]=a,e[3]=c,e[4]=u,e[5]=p,e[6]=h,e[7]=m,e[8]=y,e[9]=v,e[10]=_,e[11]=x,e[12]=s*i+u*n+y*o+t[12],e[13]=l*i+p*n+v*o+t[13],e[14]=a*i+h*n+_*o+t[14],e[15]=c*i+m*n+x*o+t[15]}return e}function sZe(e,t,r){const i=r[0],n=r[1],o=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function lZe(e,t,r,i){let n,o,s,l,a,c,u,p,h,m,y,v,_,x,S,C,E,T,w,I,M,L,R,W,z=i[0],j=i[1],U=i[2],Z=Math.sqrt(z*z+j*j+U*U);return Z<pa()?null:(Z=1/Z,z*=Z,j*=Z,U*=Z,n=Math.sin(r),o=Math.cos(r),s=1-o,l=t[0],a=t[1],c=t[2],u=t[3],p=t[4],h=t[5],m=t[6],y=t[7],v=t[8],_=t[9],x=t[10],S=t[11],C=z*z*s+o,E=j*z*s+U*n,T=U*z*s-j*n,w=z*j*s-U*n,I=j*j*s+o,M=U*j*s+z*n,L=z*U*s+j*n,R=j*U*s-z*n,W=U*U*s+o,e[0]=l*C+p*E+v*T,e[1]=a*C+h*E+_*T,e[2]=c*C+m*E+x*T,e[3]=u*C+y*E+S*T,e[4]=l*w+p*I+v*M,e[5]=a*w+h*I+_*M,e[6]=c*w+m*I+x*M,e[7]=u*w+y*I+S*M,e[8]=l*L+p*R+v*W,e[9]=a*L+h*R+_*W,e[10]=c*L+m*R+x*W,e[11]=u*L+y*R+S*W,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function aZe(e,t,r){const i=Math.sin(r),n=Math.cos(r),o=t[4],s=t[5],l=t[6],a=t[7],c=t[8],u=t[9],p=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*n+c*i,e[5]=s*n+u*i,e[6]=l*n+p*i,e[7]=a*n+h*i,e[8]=c*n-o*i,e[9]=u*n-s*i,e[10]=p*n-l*i,e[11]=h*n-a*i,e}function cZe(e,t,r){const i=Math.sin(r),n=Math.cos(r),o=t[0],s=t[1],l=t[2],a=t[3],c=t[8],u=t[9],p=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*n-c*i,e[1]=s*n-u*i,e[2]=l*n-p*i,e[3]=a*n-h*i,e[8]=o*i+c*n,e[9]=s*i+u*n,e[10]=l*i+p*n,e[11]=a*i+h*n,e}function uZe(e,t,r){const i=Math.sin(r),n=Math.cos(r),o=t[0],s=t[1],l=t[2],a=t[3],c=t[4],u=t[5],p=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*n+c*i,e[1]=s*n+u*i,e[2]=l*n+p*i,e[3]=a*n+h*i,e[4]=c*n-o*i,e[5]=u*n-s*i,e[6]=p*n-l*i,e[7]=h*n-a*i,e}function Qte(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function dZe(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function pZe(e,t,r){if(t===0)return pT(e);let i,n,o,s=r[0],l=r[1],a=r[2],c=Math.sqrt(s*s+l*l+a*a);return c<pa()?null:(c=1/c,s*=c,l*=c,a*=c,i=Math.sin(t),n=Math.cos(t),o=1-n,e[0]=s*s*o+n,e[1]=l*s*o+a*i,e[2]=a*s*o-l*i,e[3]=0,e[4]=s*l*o-a*i,e[5]=l*l*o+n,e[6]=a*l*o+s*i,e[7]=0,e[8]=s*a*o+l*i,e[9]=l*a*o-s*i,e[10]=a*a*o+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function hZe(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function fZe(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function mZe(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Jte(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=i+i,a=n+n,c=o+o,u=i*l,p=i*a,h=i*c,m=n*a,y=n*c,v=o*c,_=s*l,x=s*a,S=s*c;return e[0]=1-(m+v),e[1]=p+S,e[2]=h-x,e[3]=0,e[4]=p-S,e[5]=1-(u+v),e[6]=y+_,e[7]=0,e[8]=h+x,e[9]=y-_,e[10]=1-(u+m),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function gZe(e,t){const r=yZe,i=-t[0],n=-t[1],o=-t[2],s=t[3],l=t[4],a=t[5],c=t[6],u=t[7],p=i*i+n*n+o*o+s*s;return p>0?(r[0]=2*(l*s+u*i+a*o-c*n)/p,r[1]=2*(a*s+u*n+c*i-l*o)/p,r[2]=2*(c*s+u*o+l*n-a*i)/p):(r[0]=2*(l*s+u*i+a*o-c*n),r[1]=2*(a*s+u*n+c*i-l*o),r[2]=2*(c*s+u*o+l*n-a*i)),Jte(e,t,r),e}const yZe=mu();function vZe(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function bZe(e,t){const r=t[0],i=t[1],n=t[2],o=t[4],s=t[5],l=t[6],a=t[8],c=t[9],u=t[10];return e[0]=Math.sqrt(r*r+i*i+n*n),e[1]=Math.sqrt(o*o+s*s+l*l),e[2]=Math.sqrt(a*a+c*c+u*u),e}function _Ze(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function wZe(e,t,r,i){const n=t[0],o=t[1],s=t[2],l=t[3],a=n+n,c=o+o,u=s+s,p=n*a,h=n*c,m=n*u,y=o*c,v=o*u,_=s*u,x=l*a,S=l*c,C=l*u,E=i[0],T=i[1],w=i[2];return e[0]=(1-(y+_))*E,e[1]=(h+C)*E,e[2]=(m-S)*E,e[3]=0,e[4]=(h-C)*T,e[5]=(1-(p+_))*T,e[6]=(v+x)*T,e[7]=0,e[8]=(m+S)*w,e[9]=(v-x)*w,e[10]=(1-(p+y))*w,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function xZe(e,t,r,i,n){const o=t[0],s=t[1],l=t[2],a=t[3],c=o+o,u=s+s,p=l+l,h=o*c,m=o*u,y=o*p,v=s*u,_=s*p,x=l*p,S=a*c,C=a*u,E=a*p,T=i[0],w=i[1],I=i[2],M=n[0],L=n[1],R=n[2],W=(1-(v+x))*T,z=(m+E)*T,j=(y-C)*T,U=(m-E)*w,Z=(1-(h+x))*w,Q=(_+S)*w,B=(y+C)*I,V=(_-S)*I,H=(1-(h+v))*I;return e[0]=W,e[1]=z,e[2]=j,e[3]=0,e[4]=U,e[5]=Z,e[6]=Q,e[7]=0,e[8]=B,e[9]=V,e[10]=H,e[11]=0,e[12]=r[0]+M-(W*M+U*L+B*R),e[13]=r[1]+L-(z*M+Z*L+V*R),e[14]=r[2]+R-(j*M+Q*L+H*R),e[15]=1,e}function CZe(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=r+r,l=i+i,a=n+n,c=r*s,u=i*s,p=i*l,h=n*s,m=n*l,y=n*a,v=o*s,_=o*l,x=o*a;return e[0]=1-p-y,e[1]=u+x,e[2]=h-_,e[3]=0,e[4]=u-x,e[5]=1-c-y,e[6]=m+v,e[7]=0,e[8]=h+_,e[9]=m-v,e[10]=1-c-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function kZe(e,t,r,i,n,o,s){const l=1/(r-t),a=1/(n-i),c=1/(o-s);return e[0]=2*o*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*a,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(n+i)*a,e[10]=(s+o)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*o*2*c,e[15]=0,e}function SZe(e,t,r,i,n){const o=1/Math.tan(t/2);let s;return e[0]=o/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n!=null&&n!==1/0?(s=1/(i-n),e[10]=(n+i)*s,e[14]=2*n*i*s):(e[10]=-1,e[14]=-2*i),e}function EZe(e,t,r,i){const n=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),a=2/(s+l),c=2/(n+o);return e[0]=a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(s-l)*a*.5,e[9]=(n-o)*c*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}function TZe(e,t,r,i,n,o,s){const l=1/(t-r),a=1/(i-n),c=1/(o-s);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(n+i)*a,e[14]=(s+o)*c,e[15]=1,e}function AZe(e,t,r,i){let n,o,s,l,a,c,u,p,h,m;const y=t[0],v=t[1],_=t[2],x=i[0],S=i[1],C=i[2],E=r[0],T=r[1],w=r[2],I=pa();return Math.abs(y-E)<I&&Math.abs(v-T)<I&&Math.abs(_-w)<I?pT(e):(u=y-E,p=v-T,h=_-w,m=1/Math.sqrt(u*u+p*p+h*h),u*=m,p*=m,h*=m,n=S*h-C*p,o=C*u-x*h,s=x*p-S*u,m=Math.sqrt(n*n+o*o+s*s),m?(m=1/m,n*=m,o*=m,s*=m):(n=0,o=0,s=0),l=p*s-h*o,a=h*n-u*s,c=u*o-p*n,m=Math.sqrt(l*l+a*a+c*c),m?(m=1/m,l*=m,a*=m,c*=m):(l=0,a=0,c=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=o,e[5]=a,e[6]=p,e[7]=0,e[8]=s,e[9]=c,e[10]=h,e[11]=0,e[12]=-(n*y+o*v+s*_),e[13]=-(l*y+a*v+c*_),e[14]=-(u*y+p*v+h*_),e[15]=1,e)}function MZe(e,t,r,i){const n=t[0],o=t[1],s=t[2],l=i[0],a=i[1],c=i[2];let u=n-r[0],p=o-r[1],h=s-r[2],m=u*u+p*p+h*h;m>0&&(m=1/Math.sqrt(m),u*=m,p*=m,h*=m);let y=a*h-c*p,v=c*u-l*h,_=l*p-a*u;return m=y*y+v*v+_*_,m>0&&(m=1/Math.sqrt(m),y*=m,v*=m,_*=m),e[0]=y,e[1]=v,e[2]=_,e[3]=0,e[4]=p*_-h*v,e[5]=h*y-u*_,e[6]=u*v-p*y,e[7]=0,e[8]=u,e[9]=p,e[10]=h,e[11]=0,e[12]=n,e[13]=o,e[14]=s,e[15]=1,e}function IZe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function PZe(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)}function $Ze(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e}function Xte(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function OZe(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e}function LZe(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e}function RZe(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function DZe(e,t){if(e===t)return!0;const r=e[0],i=e[1],n=e[2],o=e[3],s=e[4],l=e[5],a=e[6],c=e[7],u=e[8],p=e[9],h=e[10],m=e[11],y=e[12],v=e[13],_=e[14],x=e[15],S=t[0],C=t[1],E=t[2],T=t[3],w=t[4],I=t[5],M=t[6],L=t[7],R=t[8],W=t[9],z=t[10],j=t[11],U=t[12],Z=t[13],Q=t[14],B=t[15],V=pa();return Math.abs(r-S)<=V*Math.max(1,Math.abs(r),Math.abs(S))&&Math.abs(i-C)<=V*Math.max(1,Math.abs(i),Math.abs(C))&&Math.abs(n-E)<=V*Math.max(1,Math.abs(n),Math.abs(E))&&Math.abs(o-T)<=V*Math.max(1,Math.abs(o),Math.abs(T))&&Math.abs(s-w)<=V*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(l-I)<=V*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(a-M)<=V*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(c-L)<=V*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(u-R)<=V*Math.max(1,Math.abs(u),Math.abs(R))&&Math.abs(p-W)<=V*Math.max(1,Math.abs(p),Math.abs(W))&&Math.abs(h-z)<=V*Math.max(1,Math.abs(h),Math.abs(z))&&Math.abs(m-j)<=V*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(y-U)<=V*Math.max(1,Math.abs(y),Math.abs(U))&&Math.abs(v-Z)<=V*Math.max(1,Math.abs(v),Math.abs(Z))&&Math.abs(_-Q)<=V*Math.max(1,Math.abs(_),Math.abs(Q))&&Math.abs(x-B)<=V*Math.max(1,Math.abs(x),Math.abs(B))}function NZe(e){const t=pa(),r=e[0],i=e[1],n=e[2],o=e[4],s=e[5],l=e[6],a=e[8],c=e[9],u=e[10];return Math.abs(1-(r*r+o*o+a*a))<=t&&Math.abs(1-(i*i+s*s+c*c))<=t&&Math.abs(1-(n*n+l*l+u*u))<=t}const FZe=Zte,zZe=Xte;Object.freeze(Object.defineProperty({__proto__:null,copy:tZe,set:Kh,identity:pT,transpose:Nd,invert:rZe,adjoint:iZe,determinant:nZe,multiply:Zte,translate:oZe,scale:sZe,rotate:lZe,rotateX:aZe,rotateY:cZe,rotateZ:uZe,fromTranslation:Qte,fromScaling:dZe,fromRotation:pZe,fromXRotation:hZe,fromYRotation:fZe,fromZRotation:mZe,fromRotationTranslation:Jte,fromQuat2:gZe,getTranslation:vZe,getScaling:bZe,getRotation:_Ze,fromRotationTranslationScale:wZe,fromRotationTranslationScaleOrigin:xZe,fromQuat:CZe,frustum:kZe,perspective:SZe,perspectiveFromFieldOfView:EZe,ortho:TZe,lookAt:AZe,targetTo:MZe,str:IZe,frob:PZe,add:$Ze,subtract:Xte,multiplyScalar:OZe,multiplyScalarAndAdd:LZe,exactEquals:RZe,equals:DZe,isOrthoNormal:NZe,mul:FZe,sub:zZe},Symbol.toStringTag,{value:"Module"}));let AM,We=null;function ere(){return!!We}function jZe(){return!!at("esri-wasm")}function tre(){return AM||(AM=ut(()=>import("./pe-wasm.031781a0.js"),[]).then(e=>e.p).then(({default:e})=>e({locateFile:t=>ui(`esri/geometry/support/${t}`)})).then(e=>{ire(e)}),AM)}var lO,Zi,aO;(function(e){function t(o,s,l){We.ensureCache.prepare();const a=cm(l),c=l===a,u=We.ensureFloat64(a),p=We._pe_geog_to_proj(We.getPointer(o),s,u);return p&&eh(l,s,u,c),p}function r(o,s,l,a){switch(a){case Zi.PE_TRANSFORM_P_TO_G:return i(o,s,l);case Zi.PE_TRANSFORM_G_TO_P:return t(o,s,l)}return 0}function i(o,s,l){return n(o,s,l,0)}function n(o,s,l,a){We.ensureCache.prepare();const c=cm(l),u=l===c,p=We.ensureFloat64(c),h=We._pe_proj_to_geog_center(We.getPointer(o),s,p,a);return h&&eh(l,s,p,u),h}e.geogToProj=t,e.projGeog=r,e.projToGeog=i,e.projToGeogCenter=n})(lO||(lO={})),function(e){function t(){e.PE_BUFFER_MAX=We.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=We.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=We.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=We.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=We.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=We.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=We.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=We.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=We.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=We.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=We.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=We.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=We.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=We.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=We.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=We.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=We.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=We.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=We.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=We.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_PARM_X0=We.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=We.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=We.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=We.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=We.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=We.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=We.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=We.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=We.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=We.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Zi||(Zi={})),function(e){const t={},r={},i=m=>{if(m){const y=m.getType();switch(y){case Zi.PE_TYPE_GEOGCS:m=We.castObject(m,We.PeGeogcs);break;case Zi.PE_TYPE_PROJCS:m=We.castObject(m,We.PeProjcs);break;case Zi.PE_TYPE_GEOGTRAN:m=We.castObject(m,We.PeGeogtran);break;default:y&Zi.PE_TYPE_UNIT&&(m=We.castObject(m,We.PeUnit))}}return m};function n(){We.PeFactory.prototype.initialize(null)}function o(m){return s(Zi.PE_TYPE_COORDSYS,m)}function s(m,y){let v=null,_=t[m];if(_||(_={},t[m]=_),_.hasOwnProperty(String(y)))v=_[y];else{const x=We.PeFactory.prototype.factoryByType(m,y);We.compare(x,We.NULL)||(v=x,_[y]=v)}return v=i(v),v}function l(m,y){let v=null,_=r[m];if(_||(_={},r[m]=_),_.hasOwnProperty(y))v=_[y];else{const x=We.PeFactory.prototype.fromString(m,y);We.compare(x,We.NULL)||(v=x,_[y]=v)}return v=i(v),v}function a(m){return s(Zi.PE_TYPE_GEOGCS,m)}function c(m){return s(Zi.PE_TYPE_GEOGTRAN,m)}function u(m){return We.PeFactory.prototype.getCode(m)}function p(m){return s(Zi.PE_TYPE_PROJCS,m)}function h(m){return s(Zi.PE_TYPE_UNIT,m)}e.initialize=n,e.coordsys=o,e.factoryByType=s,e.fromString=l,e.geogcs=a,e.geogtran=c,e.getCode=u,e.projcs=p,e.unit=h}(aO||(aO={}));let rre=null;var eE,cO,uO,dO,tE,pO,rE,iE,hO;function ire(e){function t(o,s,l){o[s]=l(o[s])}We=e,Zi.init(),eE.init(),tE.init(),rE.init(),iE.init(),rre=class extends We.PeGCSExtent{destroy(){We.destroy(this)}};const r=[We.PeDatum,We.PeGeogcs,We.PeGeogtran,We.PeObject,We.PeParameter,We.PePrimem,We.PeProjcs,We.PeSpheroid,We.PeUnit];for(const o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(Zi.PE_NAME_MAX))});for(const o of[We.PeGeogtran,We.PeProjcs])t(o.prototype,"getParameters",s=>function(){const l=new Array(Zi.PE_PARM_MAX);let a=s.call(this);for(let c=0;c<l.length;c++){const u=We.getValue(a,"*");l[c]=u?We.wrapPointer(u,We.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return l});t(We.PeHorizon.prototype,"getCoord",o=>function(){const s=this.getSize();if(!s)return null;const l=[];return eh(l,s,o.call(this)),l}),t(We.PeGTlistExtendedEntry.prototype,"getEntries",o=>{const s=We._pe_getPeGTlistExtendedGTsSize();return function(){let l=null;const a=o.call(this);if(!We.compare(a,We.NULL)){l=[a];const c=this.getSteps();if(c>1){const u=We.getPointer(a);for(let p=1;p<c;p++)l.push(We.wrapPointer(u+s*p,We.PeGTlistExtendedGTs))}}return l}});const i=We._pe_getPeHorizonSize(),n=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let l=null;const a=o.call(this);if(!We.compare(a,We.NULL)){l=[a];const c=a.getNump();if(c>1){const u=We.getPointer(a);for(let p=1;p<c;p++)l.push(We.wrapPointer(u+i*p,We.PeHorizon))}}return s.set(o,l),l};t(We.PeProjcs.prototype,"horizonGcsGenerate",n),t(We.PeProjcs.prototype,"horizonPcsGenerate",n),We.PeObject.prototype.toString=function(o=Zi.PE_STR_OPTS_NONE){We.ensureCache.prepare();const s=We.getPointer(this),l=We.ensureInt8(new Array(Zi.PE_BUFFER_MAX));return We.UTF8ToString(We._pe_object_to_string_ext(s,o,l))}}function _u(e){if(!e)return;const t=We.getClass(e);if(!t)return;const r=We.getCache(t);if(!r)return;const i=We.getPointer(e);i&&delete r[i]}function M2(e,t){const r=[],i=new Array(t);for(let n=0;n<e;n++)r.push(We.ensureInt8(i));return r}function cm(e){let t;return Array.isArray(e[0])?(t=[],e.forEach(r=>{t.push(r[0],r[1])})):t=e,t}function eh(e,t,r,i=!1){if(i)for(let n=0;n<2*t;n++)e[n]=We.getValue(r+n*Float64Array.BYTES_PER_ELEMENT,"double");else{const n=e.length===0;for(let o=0;o<t;o++)n&&(e[o]=new Array(2)),e[o][0]=We.getValue(r,"double"),e[o][1]=We.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=We.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=We._pe_getPeGTlistExtendedEntrySize()}function i(n,o,s,l,a,c){let u=null;const p=new We.PeInteger(c);try{const h=We.PeGTlistExtended.prototype.getGTlist(n,o,s,l,a,p);if((c=p.val)&&(u=[h],c>1)){const m=We.getPointer(h);for(let y=1;y<c;y++)u.push(We.wrapPointer(m+t*y,We.PeGTlistExtendedEntry))}}finally{We.destroy(p)}return u}e.init=r,e.getGTlist=i})(eE||(eE={})),function(e){function t(r){if(r&&r.length){for(const i of r)_u(i),i.getEntries().forEach(n=>{_u(n);const o=n.getGeogtran();_u(o),o.getParameters().forEach(_u),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{_u(s);const l=s.getDatum();_u(l),_u(l.getSpheroid()),_u(s.getPrimem()),_u(s.getUnit())})});We.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(cO||(cO={})),function(e){function t(r,i,n,o,s){We.ensureCache.prepare();const l=cm(n),a=n===l,c=We.ensureFloat64(l);let u=0;o&&(u=We.ensureFloat64(o));const p=We._pe_geog_to_geog(We.getPointer(r),i,c,u,s);return p&&eh(n,i,c,a),p}e.geogToGeog=t}(uO||(uO={})),function(e){const t=(c,u,p,h,m,y)=>{let v,_;switch(We.ensureCache.prepare(),c){case"dd":v=We._pe_geog_to_dd,_=Zi.PE_DD_MAX;break;case"ddm":v=We._pe_geog_to_ddm,_=Zi.PE_DDM_MAX;break;case"dms":v=We._pe_geog_to_dms,_=Zi.PE_DMS_MAX}let x=0;u&&(x=We.getPointer(u));const S=cm(h),C=We.ensureFloat64(S),E=M2(p,_),T=v(x,p,C,m,We.ensureInt32(E));if(T)for(let w=0;w<p;w++)y[w]=We.UTF8ToString(E[w]);return T},r=(c,u,p,h,m)=>{let y;switch(We.ensureCache.prepare(),c){case"dd":y=We._pe_dd_to_geog;break;case"ddm":y=We._pe_ddm_to_geog;break;case"dms":y=We._pe_dms_to_geog}let v=0;u&&(v=We.getPointer(u));const _=h.map(E=>We.ensureString(E)),x=We.ensureInt32(_),S=We.ensureFloat64(new Array(2*p)),C=y(v,p,x,S);return C&&eh(m,p,S),C};function i(c,u,p,h,m){return t("dms",c,u,p,h,m)}function n(c,u,p,h){return r("dms",c,u,p,h)}function o(c,u,p,h,m){return t("ddm",c,u,p,h,m)}function s(c,u,p,h){return r("ddm",c,u,p,h)}function l(c,u,p,h,m){return t("dd",c,u,p,h,m)}function a(c,u,p,h){return r("dd",c,u,p,h)}e.geogToDms=i,e.dmsToGeog=n,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=l,e.ddToGeog=a}(dO||(dO={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=We.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=We.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=We.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=We.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=We.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(n,o,s,l,a,c,u){We.ensureCache.prepare();let p=0;n&&(p=We.getPointer(n));const h=cm(s),m=We.ensureFloat64(h),y=M2(o,Zi.PE_MGRS_MAX),v=We.ensureInt32(y),_=We._pe_geog_to_mgrs_extended(p,o,m,l,a,c,v);if(_)for(let x=0;x<o;x++)u[x]=We.UTF8ToString(y[x]);return _}function i(n,o,s,l,a){We.ensureCache.prepare();let c=0;n&&(c=We.getPointer(n));const u=s.map(y=>We.ensureString(y)),p=We.ensureInt32(u),h=We.ensureFloat64(new Array(2*o)),m=We._pe_mgrs_to_geog_extended(c,o,p,l,h);return m&&eh(a,o,h),m}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=i}(tE||(tE={})),function(e){function t(i,n,o,s,l,a,c){We.ensureCache.prepare();let u=0;i&&(u=We.getPointer(i));const p=cm(o),h=We.ensureFloat64(p),m=M2(n,Zi.PE_MGRS_MAX),y=We.ensureInt32(m),v=We._pe_geog_to_usng(u,n,h,s,l,a,y);if(v)for(let _=0;_<n;_++)c[_]=We.UTF8ToString(m[_]);return v}function r(i,n,o,s){We.ensureCache.prepare();let l=0;i&&(l=We.getPointer(i));const a=o.map(h=>We.ensureString(h)),c=We.ensureInt32(a),u=We.ensureFloat64(new Array(2*n)),p=We._pe_usng_to_geog(l,n,c,u);return p&&eh(s,n,u),p}e.geogToUsng=t,e.usngToGeog=r}(pO||(pO={})),function(e){function t(){e.PE_UTM_OPTS_NONE=We.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=We.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=We.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(n,o,s,l,a){We.ensureCache.prepare();let c=0;n&&(c=We.getPointer(n));const u=cm(s),p=We.ensureFloat64(u),h=M2(o,Zi.PE_UTM_MAX),m=We.ensureInt32(h),y=We._pe_geog_to_utm(c,o,p,l,m);if(y)for(let v=0;v<o;v++)a[v]=We.UTF8ToString(h[v]);return y}function i(n,o,s,l,a){We.ensureCache.prepare();let c=0;n&&(c=We.getPointer(n));const u=s.map(y=>We.ensureString(y)),p=We.ensureInt32(u),h=We.ensureFloat64(new Array(2*o)),m=We._pe_utm_to_geog(c,o,p,l,h);return m&&eh(a,o,h),m}e.init=t,e.geogToUtm=r,e.utmToGeog=i}(rE||(rE={})),function(e){const t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=We.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=We.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=We.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=We.PePCSInfo.prototype.PE_POLE_POINT}function i(n,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,l=null;return t.has(n)&&(l=t.get(n),l[o]&&(s=l[o])),s||(s=We.PePCSInfo.prototype.generate(n,o),l||(l=[],t.set(n,l)),l[o]=s),s}e.init=r,e.generate=i}(iE||(iE={})),function(e){function t(){return We.PeVersion.prototype.version_string()}e.versionString=t}(hO||(hO={}));const VZe=Object.freeze(Object.defineProperty({__proto__:null,get _pe(){return We},isLoaded:ere,isSupported:jZe,load:tre,get PeCSTransformations(){return lO},get PeDefs(){return Zi},get PeFactory(){return aO},get PeGCSExtent(){return rre},get PeGTlistExtended(){return eE},get PeGTlistExtendedEntry(){return cO},get PeGTTransformations(){return uO},get PeNotationDms(){return dO},get PeNotationMgrs(){return tE},get PeNotationUsng(){return pO},get PeNotationUtm(){return rE},get PePCSInfo(){return iE},get PeVersion(){return hO},_init:ire},Symbol.toStringTag,{value:"Module"})),tp=Wi.radius,_a=Wi.eccentricitySquared,BZe={a1:tp*_a,a2:tp*_a*tp*_a,a3:tp*_a*_a/2,a4:tp*_a*tp*_a*2.5,a5:tp*_a+tp*_a*_a/2,a6:1-_a};1/294.9786982,1/298.257222101,Wi.radius,Wi.flattening,Mh.radius,Mh.flattening,1/192.0430107526882,cd.radius,cd.flattening,1/10.2079945799458,1/43.61604095563141,cd.radius;let I2=0;class pv{constructor(t){this.uid=I2++,t?(this._wkt=t.wkt!=null?t.wkt:null,this._wkid=t.wkid!=null?t.wkid:-1,this._isInverse=t.isInverse!=null&&t.isInverse===!0):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(t){const r=new pv;return r._wkt=t.wkt,r._wkid=t.wkid,r._isInverse=t.isInverse,r}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=I2++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=I2++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=I2++}getInverse(){const t=new pv;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class ah{constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t&&t.steps)for(const r of t.steps)r instanceof pv?this.steps.push(r):this.steps.push(new pv({wkid:r.wkid,wkt:r.wkt,isInverse:r.isInverse}))}static cacheKey(t,r){return[t.wkid!==void 0&&t.wkid!==null?t.wkid.toString():"-1",t.wkt!==void 0&&t.wkt!==null?t.wkt.toString():"",r.wkid!==void 0&&r.wkid!==null?r.wkid.toString():"-1",r.wkt!==void 0&&r.wkt!==null?r.wkt.toString():""].join(",")}static fromGE(t){const r=new ah;let i="";for(const n of t.steps){const o=pv.fromGE(n);r.steps.push(o),i+=o.uid.toString()+","}return r._cachedProjection={},r._gtlistentry=null,r._chain=i,r}getInverse(){const t=new ah;t.steps=[];for(let r=this.steps.length-1;r>=0;r--){const i=this.steps[r];t.steps.push(i.getInverse())}return t}getGTListEntry(){let t="";for(const r of this.steps)t+=r.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,r,i){this._cachedProjection[ah.cacheKey(t,r)]=i}getCachedGeTransformation(t,r){let i="";for(const o of this.steps)i+=o.uid.toString()+",";i!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=i);const n=this._cachedProjection[ah.cacheKey(t,r)];return n===void 0?null:n}}function nre(e,t,r){if(et(t)||et(r)||r.vcsWkid||So(t,r))return null;const i=Xv(t)/Xv(r);if(i===1)return null;switch(e){case"point":case"esriGeometryPoint":return n=>UZe(n,i);case"polyline":case"esriGeometryPolyline":return n=>HZe(n,i);case"polygon":case"esriGeometryPolygon":return n=>WZe(n,i);case"multipoint":case"esriGeometryMultipoint":return n=>GZe(n,i);case"extent":case"esriGeometryExtent":return n=>qZe(n,i);default:return null}}function UZe(e,t){e&&e.z!=null&&(e.z*=t)}function WZe(e,t){if(e)for(const r of e.rings)for(const i of r)i.length>2&&(i[2]*=t)}function HZe(e,t){if(e)for(const r of e.paths)for(const i of r)i.length>2&&(i[2]*=t)}function GZe(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}function qZe(e,t){e&&e.zmin!=null&&e.zmax!=null&&(e.zmin*=t,e.zmax*=t)}let vh=null,m1=null,MM=null,IM={};const ore=new fD;function yg(){return!!vh&&ere()}function vg(e){return et(MM)&&(MM=Promise.all([tre(),ut(()=>import("./geometryEngineBase.82b25ca5.js"),[]).then(t=>t.g),ut(()=>import("./hydrated.81bd5b4d.js"),[])])),MM.then(([,t,{hydratedAdapter:r}])=>{vn(e),m1=r,vh=t.default,vh._enableProjection(VZe),ore.notify()})}function $0(e,t,r=null,i=null){return Array.isArray(e)?e.length===0?[]:lB(m1,e,e[0].spatialReference,t,r,i):lB(m1,[e],e.spatialReference,t,r,i)[0]}function lB(e,t,r,i,n=null,o=null){if(et(r)||et(i))return t;if(Oh(r,i,n))return t.map(s=>QZe(s,r,i));if(et(n)){const s=ah.cacheKey(r,i);IM[s]!==void 0?n=IM[s]:(n=KZe(r,i,void 0),et(n)&&(n=new ah),IM[s]=n)}if(et(vh)||et(e))throw new eN;return ue(o)?vh._project(e,t,r,i,n,o):vh._project(e,t,r,i,n)}function Zgt(e,t){const r=YZe([e],t);return ue(r.pending)?{pending:r.pending,geometry:null}:ue(r.geometries)?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function YZe(e,t){if(!yg()){for(const r of e)if(ue(r)&&!So(r.spatialReference,t)&&ho(r.spatialReference)&&ho(t)&&!Oh(r.spatialReference,t))return Fr(ore),{pending:vg(),geometries:null}}return{pending:null,geometries:e.map(r=>et(r)?null:So(r.spatialReference,t)?r:ho(r.spatialReference)&&ho(t)?ZZe(r,t):null)}}function KZe(e,t,r=null){if(et(e)||et(t))return null;if(et(vh)||et(m1))throw new eN;const i=vh._getTransformation(m1,e,t,r,r==null?void 0:r.spatialReference);return i!==null?ah.fromGE(i):null}class eN extends ze{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var De;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"})(De||(De={}));function ZZe(e,t){try{const r=$0(e,t);if(r==null)return null;"xmin"in e&&"xmin"in r&&(r.zmin=e.zmin,r.zmax=e.zmax);const i=nre(r.type,e.spatialReference,t);return ue(i)&&i(r),r}catch(r){if(!(r instanceof eN))throw r;return null}}function Oh(e,t,r){return!r&&(!!So(e,t)||ho(e)&&ho(t)&&!!cre(e,t,ure))}async function Qgt(e,t,r,i){if(yg())return u9(i);if(Array.isArray(e)){for(const{source:n,dest:o,geographicTransformation:s}of e)if(!Oh(n,o,s))return vg(i)}else if(!Oh(e,t,r))return vg(i);return u9(i)}function QZe(e,t,r){return e?"x"in e?JZe(e,t,new Nr,r,0):"xmin"in e?tQe(e,t,new li,r,0):"rings"in e?sre(e,t,new wd,r,0):"paths"in e?eQe(e,t,new Xa,r,0):"points"in e?XZe(e,t,new K3,r,0):null:null}function JZe(e,t,r,i,n){On[0]=e.x,On[1]=e.y;const o=e.z;return On[2]=o!==void 0?o:n,px(On,t,0,On,i,0,1)?(r.x=On[0],r.y=On[1],r.spatialReference=i,o===void 0?(r.z=void 0,r.hasZ=!1):(r.z=On[2],r.hasZ=!0),e.m===void 0?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function XZe(e,t,r,i,n){const{points:o,hasZ:s,hasM:l}=e,a=[],c=o.length,u=[];for(const p of o)u.push(p[0],p[1],s?p[2]:n);if(!px(u,t,0,u,i,0,c))return null;for(let p=0;p<c;++p){const h=3*p,m=u[h],y=u[h+1];s&&l?a.push([m,y,u[h+2],o[p][3]]):s?a.push([m,y,u[h+2]]):l?a.push([m,y,o[p][2]]):a.push([m,y])}return r.points=a,r.spatialReference=i,r.hasZ=s,r.hasM=l,r}function eQe(e,t,r,i,n){const{paths:o,hasZ:s,hasM:l}=e,a=[];return lre(o,s!=null?s:!1,l!=null?l:!1,t,a,i,n)?(r.paths=a,r.spatialReference=i,r.hasZ=s,r.hasM=l,r):null}function Jgt(e,t,r=t.spatialReference,i=0){return ue(e.spatialReference)&&ue(r)&&ue(sre(e,e.spatialReference,t,r,i))}function sre(e,t,r,i,n){const{rings:o,hasZ:s,hasM:l}=e,a=[];return lre(o,s!=null?s:!1,l!=null?l:!1,t,a,i,n)?(r.rings=a,r.spatialReference=i,r.hasZ=s,r.hasM=l,r):null}function tQe(e,t,r,i,n){const{xmin:o,ymin:s,xmax:l,ymax:a,hasZ:c,hasM:u}=e;return aB(o,s,c?e.zmin:n,t,On,i)?(r.xmin=On[0],r.ymin=On[1],c&&(r.zmin=On[2]),aB(l,a,c?e.zmax:n,t,On,i)?(r.xmax=On[0],r.ymax=On[1],c&&(r.zmax=On[2]),u&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null):null}function Xgt(e,t,r,i=0){On[0]=e.x,On[1]=e.y;const n=e.z;return On[2]=n!==void 0?n:i,px(On,e.spatialReference,0,t,r,0,1)}function aB(e,t,r,i,n,o){return P2[0]=e,P2[1]=t,P2[2]=r,px(P2,i,0,n,o,0,1)}function px(e,t,r,i,n,o,s=1){const l=cre(t,n,ure);if(et(l))return!1;if(l===Ci){if(e===i&&r===o)return!0;const c=r+3*s;for(let u=r,p=o;u<c;u++,p++)i[p]=e[u];return!0}const a=r+3*s;for(let c=r,u=o;c<a;c+=3,u+=3)l(e,c,i,u);return!0}function lre(e,t,r,i,n,o,s=0){const l=new Array;for(const c of e)for(const u of c)l.push(u[0],u[1],t?u[2]:s);if(!px(l,i,0,l,o,0,l.length/3))return!1;let a=0;n.length=0;for(const c of e){const u=new Array;for(const p of c)t&&r?u.push([l[a++],l[a++],l[a++],p[3]]):t?u.push([l[a++],l[a++],l[a++]]):r?(u.push([l[a++],l[a++],p[2]]),a++):(u.push([l[a++],l[a++]]),a++);n.push(u)}return!0}function eyt(e,t,r,i){if(et(e)||et(i))return!1;const n=nE(e,vQe),o=nE(i,bQe);if(n===o&&!cB(o)&&(n!==De.UNKNOWN||So(e,i)))return Qte(r,t),!0;if(cB(o)){const s=l_[n][De.LON_LAT],l=l_[De.LON_LAT][o];return!et(s)&&!et(l)&&(s(t,0,rp,0),l(rp,0,ip,0),are(Xc*rp[0],Xc*rp[1],r),r[12]=ip[0],r[13]=ip[1],r[14]=ip[2],!0)}if((o===De.WEB_MERCATOR||o===De.PLATE_CARREE)&&(n===De.WGS84||n===De.CGCS2000&&o===De.PLATE_CARREE||n===De.SPHERICAL_ECEF||n===De.WEB_MERCATOR)){const s=l_[n][De.LON_LAT],l=l_[De.LON_LAT][o];return!et(s)&&!et(l)&&(s(t,0,rp,0),l(rp,0,ip,0),n===De.SPHERICAL_ECEF?rQe(Xc*rp[0],Xc*rp[1],r):pT(r),r[12]=ip[0],r[13]=ip[1],r[14]=ip[2],!0)}return!1}function cB(e){return e===De.SPHERICAL_ECEF||e===De.SPHERICAL_MARS_PCPF||e===De.SPHERICAL_MOON_PCPF}function are(e,t,r){const i=Math.sin(e),n=Math.cos(e),o=Math.sin(t),s=Math.cos(t),l=r;return l[0]=-i,l[4]=-o*n,l[8]=s*n,l[12]=0,l[1]=n,l[5]=-o*i,l[9]=s*i,l[13]=0,l[2]=0,l[6]=s,l[10]=o,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}function rQe(e,t,r){return are(e,t,r),Nd(r,r),r}function nE(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=Ig(e,1)),e.wkt===jte.wkt?t.spatialReferenceId=De.SPHERICAL_ECEF:i1(e)?t.spatialReferenceId=De.WGS84:lg(e)?t.spatialReferenceId=De.WEB_MERCATOR:OUe(e)?t.spatialReferenceId=De.PLATE_CARREE:e.wkt===zKe.wkt?t.spatialReferenceId=De.WGS84_ECEF:e.wkid===sg.CGCS2000?t.spatialReferenceId=De.CGCS2000:e.wkt===JS.wkt?t.spatialReferenceId=De.SPHERICAL_MARS_PCPF:e.wkt===XS.wkt?t.spatialReferenceId=De.SPHERICAL_MOON_PCPF:H3(e)?t.spatialReferenceId=De.GCSMARS2000:G3(e)?t.spatialReferenceId=De.GCSMOON2000:t.spatialReferenceId=De.UNKNOWN):De.UNKNOWN}function Ci(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t])}function hv(e,t,r,i){r[i++]=e0*(e[t++]/Wi.radius),r[i++]=e0*(Math.PI/2-2*Math.atan(Math.exp(-e[t++]/Wi.radius))),r[i]=e[t]}function iQe(e,t,r,i){hv(e,t,r,i),Am(r,i,r,i)}function nQe(e,t,r,i){hv(e,t,r,i),Im(r,i,r,i)}function oQe(e,t,r,i,n){const o=.4999999*Math.PI,s=Us(Xc*e[t+1],-o,o),l=Math.sin(s);r[i++]=Xc*e[t]*n.radius,r[i++]=n.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]}function g1(e,t,r,i){oQe(e,t,r,i,Wi)}const uB=Wi.radius*Math.PI/180,dB=180/(Wi.radius*Math.PI);function Em(e,t,r,i){r[i]=e[t]*uB,r[i+1]=e[t+1]*uB,r[i+2]=e[t+2]}function Tm(e,t,r,i){r[i]=e[t]*dB,r[i+1]=e[t+1]*dB,r[i+2]=e[t+2]}function sQe(e,t,r,i){hv(e,t,r,i),Em(r,i,r,i)}function lQe(e,t,r,i){Pm(e,t,r,i),Em(r,i,r,i)}function aQe(e,t,r,i){Mm(e,t,r,i),Em(r,i,r,i)}function cQe(e,t,r,i){Tm(e,t,r,i),Am(r,i,r,i)}function uQe(e,t,r,i){Tm(e,t,r,i),g1(r,i,r,i)}function dQe(e,t,r,i){Tm(e,t,r,i),Im(r,i,r,i)}function tN(e,t,r,i,n){const o=n+e[t+2],s=Xc*e[t+1],l=Xc*e[t],a=Math.cos(s);r[i++]=Math.cos(l)*a*o,r[i++]=Math.sin(l)*a*o,r[i]=Math.sin(s)*o}function pB(e,t,r,i){tN(e,t,r,i,Mh.radius)}function hB(e,t,r,i){tN(e,t,r,i,cd.radius)}function Am(e,t,r,i){tN(e,t,r,i,Wi.radius)}function rN(e,t,r,i,n){const o=e[t],s=e[t+1],l=e[t+2],a=Math.sqrt(o*o+s*s+l*l),c=Mee(l/(a===0?1:a)),u=Math.atan2(s,o);r[i++]=e0*u,r[i++]=e0*c,r[i]=a-n}function fB(e,t,r,i){rN(e,t,r,i,Mh.radius)}function mB(e,t,r,i){rN(e,t,r,i,cd.radius)}function Mm(e,t,r,i){rN(e,t,r,i,Wi.radius)}function pQe(e,t,r,i){Mm(e,t,r,i),g1(r,i,r,i)}function hQe(e,t,r,i){Mm(e,t,r,i),Im(r,i,r,i)}function fQe(e,t,r,i,n){const o=Xc*e[t],s=Xc*e[t+1],l=e[t+2],a=Math.sin(s),c=Math.cos(s),u=n.radius/Math.sqrt(1-n.eccentricitySquared*a*a);r[i++]=(u+l)*c*Math.cos(o),r[i++]=(u+l)*c*Math.sin(o),r[i++]=(u*(1-n.eccentricitySquared)+l)*a}function Im(e,t,r,i){fQe(e,t,r,i,Wi)}function Pm(e,t,r,i){const n=BZe,o=e[t],s=e[t+1],l=e[t+2];let a,c,u,p,h,m,y,v,_,x,S,C,E,T,w,I,M,L,R,W,z;a=Math.abs(l),c=o*o+s*s,u=Math.sqrt(c),p=c+l*l,h=Math.sqrt(p),W=Math.atan2(s,o),m=l*l/p,y=c/p,T=n.a2/h,w=n.a3-n.a4/h,y>.3?(v=a/h*(1+y*(n.a1+T+m*w)/h),R=Math.asin(v),x=v*v,_=Math.sqrt(1-x)):(_=u/h*(1-m*(n.a5-T-y*w)/h),R=Math.acos(_),x=1-_*_,v=Math.sqrt(x)),S=1-Wi.eccentricitySquared*x,C=Wi.radius/Math.sqrt(S),E=n.a6*C,T=u-C*_,w=a-E*v,M=_*T+v*w,I=_*w-v*T,L=I/(E/S+M),R+=L,z=M+I*L/2,l<0&&(R=-R),r[i++]=e0*W,r[i++]=e0*R,r[i]=z}function mQe(e,t,r,i){Pm(e,t,r,i),Am(r,i,r,i)}function gQe(e,t,r,i){Pm(e,t,r,i),g1(r,i,r,i)}const l_={[De.WGS84]:{[De.CGCS2000]:null,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:Ci,[De.WGS84_COMPARABLE_LON_LAT]:Ci,[De.SPHERICAL_ECEF]:Am,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:g1,[De.PLATE_CARREE]:Em,[De.WGS84]:Ci,[De.WGS84_ECEF]:Im},[De.CGCS2000]:{[De.CGCS2000]:Ci,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:Ci,[De.WGS84_COMPARABLE_LON_LAT]:Ci,[De.SPHERICAL_ECEF]:Am,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:Em,[De.WGS84]:null,[De.WGS84_ECEF]:Im},[De.GCSMARS2000]:{[De.CGCS2000]:null,[De.GCSMARS2000]:Ci,[De.GCSMOON2000]:null,[De.LON_LAT]:Ci,[De.WGS84_COMPARABLE_LON_LAT]:null,[De.SPHERICAL_ECEF]:null,[De.SPHERICAL_MARS_PCPF]:hB,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:null,[De.WGS84]:null,[De.WGS84_ECEF]:null},[De.GCSMOON2000]:{[De.CGCS2000]:null,[De.GCSMARS2000]:null,[De.GCSMOON2000]:Ci,[De.LON_LAT]:Ci,[De.WGS84_COMPARABLE_LON_LAT]:null,[De.SPHERICAL_ECEF]:null,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:pB,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:null,[De.WGS84]:null,[De.WGS84_ECEF]:null},[De.WEB_MERCATOR]:{[De.CGCS2000]:null,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:hv,[De.WGS84_COMPARABLE_LON_LAT]:hv,[De.SPHERICAL_ECEF]:iQe,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:Ci,[De.PLATE_CARREE]:sQe,[De.WGS84]:hv,[De.WGS84_ECEF]:nQe},[De.WGS84_ECEF]:{[De.CGCS2000]:Pm,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:Pm,[De.WGS84_COMPARABLE_LON_LAT]:Pm,[De.SPHERICAL_ECEF]:mQe,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:gQe,[De.PLATE_CARREE]:lQe,[De.WGS84]:Pm,[De.WGS84_ECEF]:Ci},[De.SPHERICAL_ECEF]:{[De.CGCS2000]:Mm,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:Mm,[De.WGS84_COMPARABLE_LON_LAT]:Mm,[De.SPHERICAL_ECEF]:Ci,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:pQe,[De.PLATE_CARREE]:aQe,[De.WGS84]:Mm,[De.WGS84_ECEF]:hQe},[De.SPHERICAL_MARS_PCPF]:{[De.CGCS2000]:null,[De.GCSMARS2000]:mB,[De.GCSMOON2000]:null,[De.LON_LAT]:mB,[De.WGS84_COMPARABLE_LON_LAT]:null,[De.SPHERICAL_ECEF]:null,[De.SPHERICAL_MARS_PCPF]:Ci,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:null,[De.WGS84]:null,[De.WGS84_ECEF]:null},[De.SPHERICAL_MOON_PCPF]:{[De.CGCS2000]:null,[De.GCSMARS2000]:null,[De.GCSMOON2000]:fB,[De.LON_LAT]:fB,[De.WGS84_COMPARABLE_LON_LAT]:null,[De.SPHERICAL_ECEF]:null,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:Ci,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:null,[De.WGS84]:null,[De.WGS84_ECEF]:null},[De.UNKNOWN]:{[De.CGCS2000]:null,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:null,[De.WGS84_COMPARABLE_LON_LAT]:null,[De.SPHERICAL_ECEF]:null,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:Ci,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:null,[De.WGS84]:null,[De.WGS84_ECEF]:null},[De.LON_LAT]:{[De.CGCS2000]:Ci,[De.GCSMARS2000]:Ci,[De.GCSMOON2000]:Ci,[De.LON_LAT]:Ci,[De.WGS84_COMPARABLE_LON_LAT]:Ci,[De.SPHERICAL_ECEF]:Am,[De.SPHERICAL_MARS_PCPF]:hB,[De.SPHERICAL_MOON_PCPF]:pB,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:g1,[De.PLATE_CARREE]:Em,[De.WGS84]:Ci,[De.WGS84_ECEF]:Im},[De.WGS84_COMPARABLE_LON_LAT]:{[De.CGCS2000]:null,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:Ci,[De.WGS84_COMPARABLE_LON_LAT]:Ci,[De.SPHERICAL_ECEF]:Am,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:null,[De.PLATE_CARREE]:Em,[De.WGS84]:Ci,[De.WGS84_ECEF]:Im},[De.PLATE_CARREE]:{[De.CGCS2000]:Tm,[De.GCSMARS2000]:null,[De.GCSMOON2000]:null,[De.LON_LAT]:Tm,[De.WGS84_COMPARABLE_LON_LAT]:Tm,[De.SPHERICAL_ECEF]:cQe,[De.SPHERICAL_MARS_PCPF]:null,[De.SPHERICAL_MOON_PCPF]:null,[De.UNKNOWN]:null,[De.WEB_MERCATOR]:uQe,[De.PLATE_CARREE]:Ci,[De.WGS84]:Tm,[De.WGS84_ECEF]:dQe}};function cre(e,t,r=iN()){return et(e)||et(t)?null:yQe(e,t,r).projector}function yQe(e,t,r){if(et(e)||et(t)||r.source.spatialReference===e&&r.dest.spatialReference===t)return r;const i=nE(e,r.source),n=nE(t,r.dest);return i===De.UNKNOWN&&n===De.UNKNOWN?So(e,t)?r.projector=Ci:r.projector=null:r.projector=l_[i][n],r}function iN(){return{source:{spatialReference:null,spatialReferenceId:De.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:De.UNKNOWN,metersPerUnit:1},projector:Ci}}const vQe={spatialReference:null,spatialReferenceId:De.UNKNOWN},bQe={spatialReference:null,spatialReferenceId:De.UNKNOWN},ure=iN();iN();const Xc=YGe(1),e0=Aee(1),P2=mu(),rp=mu(),ip=mu(),On=mu();var fO;let $c=fO=class extends xt{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new fO({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};d([f({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],$c.prototype,"cols",void 0),d([f({type:ni,json:{write:!0}})],$c.prototype,"level",void 0),d([f({type:String,json:{write:!0}})],$c.prototype,"levelValue",void 0),d([f({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],$c.prototype,"origin",void 0),d([f({type:Number,json:{write:!0}})],$c.prototype,"resolution",void 0),d([f({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],$c.prototype,"rows",void 0),d([f({type:Number,json:{write:!0}})],$c.prototype,"scale",void 0),$c=fO=d([se("esri.layers.support.LOD")],$c);const Di=$c;class nN{constructor(t,r,i,n,o){this.id=t,this.level=r,this.row=i,this.col=n,this.extent=o}}var Sp;const gB=new Yr({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let Gn=Sp=class extends xt{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:r,size:i=256,spatialReference:n=gr.WebMercator,numLODs:o=24}=e;if(!ho(n)){const p=[];if(r)for(let h=0;h<r.length;h++){const m=r[h];p.push({level:h,scale:m,resolution:m})}else{let h=5e-4;for(let m=o-1;m>=0;m--)p.unshift({level:m,scale:h,resolution:h}),h*=2}return new Sp({dpi:96,lods:p,origin:new Nr(0,0,n),size:[i,i],spatialReference:n})}const s=rc(n),l=e.origin?new Nr({x:e.origin.x,y:e.origin.y,spatialReference:n}):new Nr(s?{x:s.origin[0],y:s.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),a=96,c=1/(Ig(n)*39.37*a),u=[];if(r)for(let p=0;p<r.length;p++){const h=r[p],m=h*c;u.push({level:p,scale:h,resolution:m})}else{let p=dX(n)?512/i*5916575275917094e-7:256/i*591657527591555e-6;const h=Math.ceil(o/t);u.push({level:0,scale:p,resolution:p*c});for(let m=1;m<h;m++){const y=p/2**t,v=y*c;u.push({level:m,scale:y,resolution:v}),p=y}}return new Sp({dpi:a,lods:u,origin:l,size:[i,i],spatialReference:n})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=rc(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return Nr.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const i=[],n=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(o=>{i.push(o.scale),t=o.scale>t?o.scale:t,r=o.scale<r?o.scale:r,n[o.level]=o})),this._set("scales",i),this._set("minScale",t),this._set("maxScale",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),i=r+1;return t[r]/(t[r]/t[i])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let i=0;for(;i<r;i++){const n=t[i],o=t[i+1];if(n<=e)return i;if(o===e)return i+1;if(n>e&&o<e)return i+Math.log(n/e)/Math.log(n/o)}return i}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,i){const n=this.lodAt(e);if(!n)return null;let o,s;if(typeof t=="number")o=t,s=r;else if(So(t.spatialReference,this.spatialReference))o=t.x,s=t.y,i=r;else{const c=q3(t,this.spatialReference);if(et(c))return null;o=c.x,s=c.y,i=r}const l=n.resolution*this.size[0],a=n.resolution*this.size[1];return i||(i=new nN(null,0,0,0,Sd())),i.level=e,i.row=Math.floor((this.origin.y-s)/a+.001),i.col=Math.floor((o-this.origin.x)/l+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=Sp.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===Sp.ExtrapolateOptions.POWER_OF_TWO){const s=this.lods[this.lods.length-1];s.level<e.level&&(r=s)}if(!r)return;const i=e.level-r.level,n=r.resolution*this.size[0]/2**i,o=r.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=Sd()),e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||t.parentLevel===-1)&&(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),!0)}getTileBounds(e,t){const r=this.lodAt(t.level);if(r==null)return null;const{resolution:i}=r,n=i*this.size[0],o=i*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*o,e[2]=e[0]+n,e[3]=e[1]+o,e}lodAt(e){var t,r;return(r=(t=this._levelToLOD)==null?void 0:t[e])!=null?r:null}clone(){return Sp.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(this.size[0]===256&&this.size[1]===256)return e===256?this:null;const r=[],i=this.lods.length;for(let n=0;n<i;n++){const o=this.lods[n],s=o.resolution*t;r.push(new Di({level:o.level,scale:o.scale,resolution:s}))}return new Sp({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const i=e[r];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};d([f({type:Number,json:{write:!0}})],Gn.prototype,"compressionQuality",void 0),d([f({type:Number,json:{write:!0}})],Gn.prototype,"dpi",void 0),d([f({type:String,json:{read:gB.read,write:gB.write,origins:{"web-scene":{read:!1,write:!1}}}})],Gn.prototype,"format",void 0),d([f({readOnly:!0})],Gn.prototype,"isWrappable",null),d([f({type:Nr,json:{write:!0}})],Gn.prototype,"origin",void 0),d([Tt("origin")],Gn.prototype,"readOrigin",null),d([f({type:[Di],value:null,json:{write:!0}})],Gn.prototype,"lods",null),d([f({readOnly:!0})],Gn.prototype,"minScale",void 0),d([f({readOnly:!0})],Gn.prototype,"maxScale",void 0),d([f({readOnly:!0})],Gn.prototype,"scales",void 0),d([f({cast:e=>Array.isArray(e)?e:typeof e=="number"?[e,e]:[256,256]})],Gn.prototype,"size",void 0),d([Tt("size",["rows","cols"])],Gn.prototype,"readSize",null),d([zt("size",{cols:{type:ni},rows:{type:ni}})],Gn.prototype,"writeSize",null),d([f({type:gr,json:{write:!0}})],Gn.prototype,"spatialReference",void 0),Gn=Sp=d([se("esri.layers.support.TileInfo")],Gn),function(e){var t;(t=e.ExtrapolateOptions||(e.ExtrapolateOptions={}))[t.NONE=0]="NONE",t[t.POWER_OF_TWO=1]="POWER_OF_TWO"}(Gn||(Gn={}));const eu=Gn,mk={widthBreakpoint:{getValue(e){const t=e.viewSize[0],r=e.breakpoints,i=this.values;return t<=r.xsmall?i.xsmall:t<=r.small?i.small:t<=r.medium?i.medium:t<=r.large?i.large:i.xlarge},values:{xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge"},valueToClassName:{xsmall:"esri-view-width-xsmall esri-view-width-less-than-small esri-view-width-less-than-medium esri-view-width-less-than-large esri-view-width-less-than-xlarge",small:"esri-view-width-small esri-view-width-greater-than-xsmall esri-view-width-less-than-medium esri-view-width-less-than-large esri-view-width-less-than-xlarge",medium:"esri-view-width-medium esri-view-width-greater-than-xsmall esri-view-width-greater-than-small esri-view-width-less-than-large esri-view-width-less-than-xlarge",large:"esri-view-width-large esri-view-width-greater-than-xsmall esri-view-width-greater-than-small esri-view-width-greater-than-medium esri-view-width-less-than-xlarge",xlarge:"esri-view-width-xlarge esri-view-width-greater-than-xsmall esri-view-width-greater-than-small esri-view-width-greater-than-medium esri-view-width-greater-than-large"}},heightBreakpoint:{getValue(e){const t=e.viewSize[1],r=e.breakpoints,i=this.values;return t<=r.xsmall?i.xsmall:t<=r.small?i.small:t<=r.medium?i.medium:t<=r.large?i.large:i.xlarge},values:{xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge"},valueToClassName:{xsmall:"esri-view-height-xsmall esri-view-height-less-than-small esri-view-height-less-than-medium esri-view-height-less-than-large esri-view-height-less-than-xlarge",small:"esri-view-height-small esri-view-height-greater-than-xsmall esri-view-height-less-than-medium esri-view-height-less-than-large esri-view-height-less-than-xlarge",medium:"esri-view-height-medium esri-view-height-greater-than-xsmall esri-view-height-greater-than-small esri-view-height-less-than-large esri-view-height-less-than-xlarge",large:"esri-view-height-large esri-view-height-greater-than-xsmall esri-view-height-greater-than-small esri-view-height-greater-than-medium esri-view-height-less-than-xlarge",xlarge:"esri-view-height-xlarge esri-view-height-greater-than-xsmall esri-view-height-greater-than-small esri-view-height-greater-than-medium esri-view-height-greater-than-large"}},orientation:{getValue(e){const t=e.viewSize,r=t[0],i=t[1],n=this.values;return i>=r?n.portrait:n.landscape},values:{portrait:"portrait",landscape:"landscape"},valueToClassName:{portrait:"esri-view-orientation-portrait",landscape:"esri-view-orientation-landscape"}}},PM={xsmall:544,small:768,medium:992,large:1200};function _Qe(e){const t=e;return t&&t.xsmall<t.small&&t.small<t.medium&&t.medium<t.large}function $M(e,t){return t?mk[e].valueToClassName[t].split(" "):[]}const wQe=e=>{let t=class extends e{constructor(...r){super(...r),this._breakpointsHandles=new hs,this.orientation=null,this.widthBreakpoint=null,this.heightBreakpoint=null,this.breakpoints=PM}initialize(){this._breakpointsHandles.add(Ot(()=>[this.breakpoints,this.size],()=>this._updateClassNames(),si))}destroy(){this.destroyed||(this._removeActiveClassNames(),this._breakpointsHandles=yn(this._breakpointsHandles))}set breakpoints(r){if(r===this._get("breakpoints"))return;const i=_Qe(r);if(!i){const n=JSON.stringify(PM,null,2);console.warn("provided breakpoints are not valid, using defaults:"+n)}r=i?r:PM,this._set("breakpoints",{...r})}_updateClassNames(){if(!this.container)return;const r=rs.acquire(),i=rs.acquire();let n,o=!1;for(n in mk){const s=this[n],l=mk[n].getValue({viewSize:this.size,breakpoints:this.breakpoints});s!==l&&(o=!0,this[n]=l,$M(n,s).forEach(a=>i.push(a)),$M(n,l).forEach(a=>r.push(a)))}o&&(this._applyClassNameChanges(r,i),rs.release(r),rs.release(i))}_applyClassNameChanges(r,i){const n=this.container;n&&(i.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)))}_removeActiveClassNames(){const r=this.container;if(!r)return;let i;for(i in mk)$M(i,this[i]).forEach(n=>r.classList.remove(n))}};return d([f()],t.prototype,"breakpoints",null),d([f()],t.prototype,"orientation",void 0),d([f()],t.prototype,"widthBreakpoint",void 0),d([f()],t.prototype,"heightBreakpoint",void 0),t=d([se("esri.views.BreakpointsOwner")],t),t};function oN(e){return typeof e=="string"?document.getElementById(e):e!=null?e:null}function dre(e){for(;e.hasChildNodes();)e.removeChild(e.firstChild)}function yB(e,t){const r=t.parentNode;r&&r.insertBefore(e,t)}function vB(e,t){for(;;){const r=e.firstChild;if(!r)break;t.appendChild(r)}}let fv=class extends rr{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new hs,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,r={}){return this._installWatch(e,t,r,Ot)}addWhen(e,t,r={}){return this._installWatch(e,t,r,ca)}addOnCollectionChange(e,t,{initial:r=!1,final:i=!1}={}){const n=++this._handleId;return this._handles.add([Cl(e,"after-changes",this._createSyncUpdatingCallback(),gg),Cl(e,"change",t,{onListenerAdd:r?o=>t({added:o.toArray(),removed:[]}):void 0,onListenerRemove:i?o=>t({added:[],removed:o.toArray()}):void 0})],n),{remove:()=>this._handles.remove(n)}}addPromise(e){if(et(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(this._pendingPromises.size!==0||this._handles.has($2)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const r=()=>this._handles.remove(t);return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,r={},i){const n=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,n);const o=i(e,t,r);return this._handles.add(o,n),{remove:()=>this._handles.remove(n)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),i=Ot(e,r,{sync:!0,equals:()=>!1});return this._handles.add(i,t),i}_createSyncUpdatingCallback(){return()=>{this._handles.remove($2),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add(x0(()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove($2))}),$2)}}};d([f({readOnly:!0})],fv.prototype,"updating",void 0),fv=d([se("esri.core.support.WatchUpdatingTracking")],fv);const $2=-42;/*!
- * @esri/arcgis-html-sanitizer - v3.0.1 - Tue Nov 15 2022 09:46:54 GMT-0800 (Pacific Standard Time)
- * Copyright (c) 2022 - Environmental Systems Research Institute, Inc.
- * Apache-2.0
- *
- * js-xss
- * Copyright (c) 2012-2018 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
- * http://ucdok.com
- * MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details
- */var xQe=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},um={exports:{}},hn={},y1={exports:{}},Pg={};function pre(){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 CQe(e,t,r){}function kQe(e,t,r){}var SQe=/javascript\s*\:/img;function EQe(e,t){return SQe.test(t)?"":t}Pg.whiteList=pre();Pg.getDefaultWhiteList=pre;Pg.onAttr=CQe;Pg.onIgnoreAttr=kQe;Pg.safeAttrValue=EQe;var TQe={indexOf:function(e,t){var r,i;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var i,n;if(Array.prototype.forEach)return e.forEach(t,r);for(i=0,n=e.length;i<n;i++)t.call(r,e[i],i,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,"")}},_b=TQe;function AQe(e,t){e=_b.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,i=!1,n=0,o=0,s="";function l(){if(!i){var u=_b.trim(e.slice(n,o)),p=u.indexOf(":");if(p!==-1){var h=_b.trim(u.slice(0,p)),m=_b.trim(u.slice(p+1));if(h){var y=t(n,s.length,h,m,u);y&&(s+=y+"; ")}}}n=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var c=e.indexOf("*/",o+2);if(c===-1)break;o=c+1,n=o+1,i=!1}else a==="("?i=!0:a===")"?i=!1:a===";"?i||l():a===`
- `&&l()}return _b.trim(s)}var MQe=AQe,O2=Pg,IQe=MQe;function bB(e){return e==null}function PQe(e){var t={};for(var r in e)t[r]=e[r];return t}function hre(e){e=PQe(e||{}),e.whiteList=e.whiteList||O2.whiteList,e.onAttr=e.onAttr||O2.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||O2.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||O2.safeAttrValue,this.options=e}hre.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,i=r.whiteList,n=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,l=IQe(e,function(a,c,u,p,h){var m=i[u],y=!1;if(m===!0?y=m:typeof m=="function"?y=m(p):m instanceof RegExp&&(y=m.test(p)),y!==!0&&(y=!1),p=s(u,p),!!p){var v={position:c,sourcePosition:a,source:h,isWhite:y};if(y){var _=n(u,p,v);return bB(_)?u+":"+p:_}else{var _=o(u,p,v);if(!bB(_))return _}}});return l};var $Qe=hre;(function(e,t){var r=Pg,i=$Qe;function n(s,l){var a=new i(l);return a.process(s)}t=e.exports=n,t.FilterCSS=i;for(var o in r)t[o]=r[o]})(y1,y1.exports);var sN={indexOf:function(e,t){var r,i;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var i,n;if(Array.prototype.forEach)return e.forEach(t,r);for(i=0,n=e.length;i<n;i++)t.call(r,e[i],i,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}},OQe=y1.exports.FilterCSS,LQe=y1.exports.getDefaultWhiteList,oE=sN;function fre(){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"]}}var mre=new OQe;function RQe(e,t,r){}function DQe(e,t,r){}function NQe(e,t,r){}function FQe(e,t,r){}function gre(e){return e.replace(jQe,"<").replace(VQe,">")}function zQe(e,t,r,i){if(r=xre(r),t==="href"||t==="src"){if(r=oE.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(L2.lastIndex=0,L2.test(r))return""}else if(t==="style"){if(_B.lastIndex=0,_B.test(r)||(wB.lastIndex=0,wB.test(r)&&(L2.lastIndex=0,L2.test(r))))return"";i!==!1&&(i=i||mre,r=i.process(r))}return r=Cre(r),r}var jQe=/</g,VQe=/>/g,BQe=/"/g,UQe=/"/g,WQe=/&#([a-zA-Z0-9]*);?/gim,HQe=/:?/gim,GQe=/&newline;?/gim,L2=/((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,_B=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,wB=/u\s*r\s*l\s*\(.*/gi;function yre(e){return e.replace(BQe,""")}function vre(e){return e.replace(UQe,'"')}function bre(e){return e.replace(WQe,function(r,i){return i[0]==="x"||i[0]==="X"?String.fromCharCode(parseInt(i.substr(1),16)):String.fromCharCode(parseInt(i,10))})}function _re(e){return e.replace(HQe,":").replace(GQe," ")}function wre(e){for(var t="",r=0,i=e.length;r<i;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return oE.trim(t)}function xre(e){return e=vre(e),e=bre(e),e=_re(e),e=wre(e),e}function Cre(e){return e=yre(e),e=gre(e),e}function qQe(){return""}function YQe(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function i(s){return r?!0:oE.indexOf(e,s)!==-1}var n=[],o=!1;return{onIgnoreTag:function(s,l,a){if(i(s))if(a.isClosing){var c="[/removed]",u=a.position+c.length;return n.push([o!==!1?o:a.position,u]),o=!1,c}else return o||(o=a.position),"[removed]";else return t(s,l,a)},remove:function(s){var l="",a=0;return oE.forEach(n,function(c){l+=s.slice(a,c[0]),a=c[1]}),l+=s.slice(a),l}}}function KQe(e){for(var t="",r=0;r<e.length;){var i=e.indexOf("<!--",r);if(i===-1){t+=e.slice(r);break}t+=e.slice(r,i);var n=e.indexOf("-->",i);if(n===-1)break;r=n+3}return t}function ZQe(e){var t=e.split("");return t=t.filter(function(r){var i=r.charCodeAt(0);return i===127?!1:i<=31?i===10||i===13:!0}),t.join("")}hn.whiteList=fre();hn.getDefaultWhiteList=fre;hn.onTag=RQe;hn.onIgnoreTag=DQe;hn.onTagAttr=NQe;hn.onIgnoreTagAttr=FQe;hn.safeAttrValue=zQe;hn.escapeHtml=gre;hn.escapeQuote=yre;hn.unescapeQuote=vre;hn.escapeHtmlEntities=bre;hn.escapeDangerHtml5Entities=_re;hn.clearNonPrintableCharacter=wre;hn.friendlyAttrValue=xre;hn.escapeAttrValue=Cre;hn.onIgnoreTagStripAll=qQe;hn.StripTagBody=YQe;hn.stripCommentTag=KQe;hn.stripBlankChar=ZQe;hn.cssFilter=mre;hn.getDefaultCSSWhiteList=LQe;var hT={},qp=sN;function QQe(e){var t=qp.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=qp.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function JQe(e){return e.slice(0,2)==="</"}function XQe(e,t,r){var i="",n=0,o=!1,s=!1,l=0,a=e.length,c="",u="";e:for(l=0;l<a;l++){var p=e.charAt(l);if(o===!1){if(p==="<"){o=l;continue}}else if(s===!1){if(p==="<"){i+=r(e.slice(n,l)),o=l,n=l;continue}if(p===">"){i+=r(e.slice(n,o)),u=e.slice(o,l+1),c=QQe(u),i+=t(o,i.length,c,u,JQe(u)),n=l+1,o=!1;continue}if(p==='"'||p==="'")for(var h=1,m=e.charAt(l-h);m.trim()===""||m==="=";){if(m==="="){s=p;continue e}m=e.charAt(l-++h)}}else if(p===s){s=!1;continue}}return n<e.length&&(i+=r(e.substr(n))),i}var eJe=/[^a-zA-Z0-9\\_:.-]/gim;function tJe(e,t){var r=0,i=0,n=[],o=!1,s=e.length;function l(h,m){if(h=qp.trim(h),h=h.replace(eJe,"").toLowerCase(),!(h.length<1)){var y=t(h,m||"");y&&n.push(y)}}for(var a=0;a<s;a++){var c=e.charAt(a),u,p;if(o===!1&&c==="="){o=e.slice(r,a),r=a+1,i=e.charAt(r)==='"'||e.charAt(r)==="'"?r:iJe(e,a+1);continue}if(o!==!1&&a===i){if(p=e.indexOf(c,a+1),p===-1)break;u=qp.trim(e.slice(i+1,p)),l(o,u),o=!1,a=p,r=a+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(p=rJe(e,a),p===-1){u=qp.trim(e.slice(r,a)),l(u),o=!1,r=a+1;continue}else{a=p-1;continue}else if(p=nJe(e,a-1),p===-1){u=qp.trim(e.slice(r,a)),u=xB(u),l(o,u),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?l(e.slice(r)):l(o,xB(qp.trim(e.slice(r))))),qp.trim(n.join(" "))}function rJe(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function iJe(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function nJe(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function oJe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function xB(e){return oJe(e)?e.substr(1,e.length-2):e}hT.parseTag=XQe;hT.parseAttr=tJe;var sJe=y1.exports.FilterCSS,za=hn,kre=hT,lJe=kre.parseTag,aJe=kre.parseAttr,gk=sN;function R2(e){return e==null}function cJe(e){var t=gk.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=gk.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=gk.trim(e.slice(0,-1))),{html:e,closing:r}}function uJe(e){var t={};for(var r in e)t[r]=e[r];return t}function dJe(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(i){return i.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function Sre(e){e=uJe(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=za.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=dJe(e.whiteList||e.allowList):e.whiteList=za.whiteList,e.onTag=e.onTag||za.onTag,e.onTagAttr=e.onTagAttr||za.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||za.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||za.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||za.safeAttrValue,e.escapeHtml=e.escapeHtml||za.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new sJe(e.css))}Sre.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,i=r.whiteList,n=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,l=r.onIgnoreTagAttr,a=r.safeAttrValue,c=r.escapeHtml,u=t.cssFilter;r.stripBlankChar&&(e=za.stripBlankChar(e)),r.allowCommentTag||(e=za.stripCommentTag(e));var p=!1;r.stripIgnoreTagBody&&(p=za.StripTagBody(r.stripIgnoreTagBody,o),o=p.onIgnoreTag);var h=lJe(e,function(m,y,v,_,x){var S={sourcePosition:m,position:y,isClosing:x,isWhite:Object.prototype.hasOwnProperty.call(i,v)},C=n(v,_,S);if(!R2(C))return C;if(S.isWhite){if(S.isClosing)return"</"+v+">";var E=cJe(_),T=i[v],w=aJe(E.html,function(I,M){var L=gk.indexOf(T,I)!==-1,R=s(v,I,M,L);return R2(R)?L?(M=a(v,I,M,u),M?I+'="'+M+'"':I):(R=l(v,I,M,L),R2(R)?void 0:R):R});return _="<"+v,w&&(_+=" "+w),E.closing&&(_+=" /"),_+=">",_}else return C=o(v,_,S),R2(C)?c(_):C},c);return p&&(h=p.remove(h)),h};var pJe=Sre;(function(e,t){var r=hn,i=hT,n=pJe;function o(l,a){var c=new n(a);return c.process(l)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=n,function(){for(var l in r)t[l]=r[l];for(var a in i)t[a]=i[a]}();function s(){return typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(um,um.exports);var hJe=function(){function e(t,r){var i=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["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"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},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"?i.sanitizeUrl(l):um.exports.safeAttrValue(o,s,l,a)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var n;t&&!r?n=t:t&&r?(n=Object.create(this.arcgisFilterOptions),Object.keys(t).forEach(function(o){o==="whiteList"?n.whiteList=i._extendObjectOfArrays([i.arcgisWhiteList,t.whiteList||{}]):n[o]=t[o]})):(n=Object.create(this.arcgisFilterOptions),n.whiteList=this.arcgisWhiteList),this.xssFilterOptions=n,this._xssFilter=new um.exports.FilterXSS(n)}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=="undefined"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var i=(r!=null?r:{}).isProtocolRequired,n=i===void 0?!0:i,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?um.exports.escapeAttrValue(t):!o&&!n?um.exports.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,i,n){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,i,n):um.exports.safeAttrValue(t,r,i,n)},e.prototype.validate=function(t,r){r===void 0&&(r={});var i=this.sanitize(t,r);return{isValid:t===i,sanitized:i}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(i){return r._entityMap[i]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(i,n){return r.test(i)?i:"&#x".concat(Number(t.charCodeAt(n)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(i){Object.keys(i).forEach(function(n){Array.isArray(i[n])&&Array.isArray(r[n])?r[n]=r[n].concat(i[n]):r[n]=i[n]})}),r},e.prototype._iterateOverObject=function(t,r){var i=this;r===void 0&&(r={});try{var n=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(l,a){var c=i.validate(a,r);return c.isValid?l.concat([a]):(n=!0,l.concat([c.sanitized]))},[]);else if(xQe(t)){var s=Object.keys(t);o=s.reduce(function(l,a){var c=t[a],u=i.validate(c,r);return u.isValid?l[a]=c:(n=!0,l[a]=u.sanitized),l},{})}else return r.allowUndefined&&typeof t=="undefined"?void 0:null;return n?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}();const fT=new Map;function Ere(){fT.clear()}function fJe(e){return fT.get(e)}function mJe(e,t){fT.set(e,t)}function OM(e){fT.delete(e)}var bg,t0,gJe=function(e){if("WebkitTransition"in e.style)bg="webkitTransitionEnd",t0="webkitAnimationEnd";else{if(!("transition"in e.style))throw new Error("Your browser is not supported!");bg="transitionend",t0="animationend"}},Tre=function(e){bg||gJe(e)},yJe=function(e,t){return t===void 0&&(t=e+"-active"),function(r){Tre(r);var i=!1,n=function(o){i||(i=!0,r.removeEventListener(bg,n),r.removeEventListener(t0,n),r.classList.remove(e),r.classList.remove(t))};r.classList.add(e),r.addEventListener(bg,n),r.addEventListener(t0,n),requestAnimationFrame(function(){r.classList.add(t)})}},vJe=function(e,t){return t===void 0&&(t=e+"-active"),function(r,i){Tre(r);var n=!1,o=function(s){n||(n=!0,r.removeEventListener(bg,o),r.removeEventListener(t0,o),i())};r.classList.add(e),r.addEventListener(bg,o),r.addEventListener(t0,o),requestAnimationFrame(function(){r.classList.add(t)})}};const bJe=ft.getLogger("esri.widgets.support.widgetUtils");function Are(e){const t=rs.acquire();for(let i=0;i<arguments.length;i++){const n=arguments[i],o=typeof n;if(o==="string")t.push(n);else if(Array.isArray(n))t.push.apply(t,n);else if(o==="object")for(const s in n)n[s]&&t.push(s)}const r=t.join(" ");return rs.release(t),r}(()=>{const e=new Map,t=new ResizeObserver(r=>{var i;Ere();for(const n of r)(i=e.get(n.target))==null||i(n)});return(r,i,n)=>(e.has(r)&&bJe.error("Already observing element",r),e.set(r,i),t.observe(r,n),w0(()=>{t.unobserve(r),e.delete(r)}))})();function tu(e){const t=e==null?void 0:e.closest("[dir]");return t!==null&&t instanceof HTMLElement&&t.dir==="rtl"||document.dir==="rtl"}function CB(e){const t="data-node-ref";this[e.getAttribute(t)]=null}function sE(e){const t="data-node-ref";this[e.getAttribute(t)]=e}function _Je(e,t){return(e==="enter"?yJe:vJe)(t)}const wJe=["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"],xJe=wJe.reduce((e,t)=>(e[t]=[],e),{}),CJe=["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"],Mre=new hJe({whiteList:xJe,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(CJe.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);function kJe(e){return e==="Enter"||e===" "}const Ire="http://www.w3.org/",mT=`${Ire}2000/svg`,Pre=`${Ire}1999/xlink`;let lE,kB=[],lN=(e,t)=>{let r={};return Object.keys(e).forEach(i=>{r[i]=e[i]}),t&&Object.keys(t).forEach(i=>{r[i]=t[i]}),r},aN=(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),$re=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},SJe=(e,t,r)=>{if(t.vnodeSelector!==""){for(let i=r;i<e.length;i++)if(aN(e[i],t))return i}return-1},LM=(e,t,r,i)=>{let n=e[t];if(n.vnodeSelector==="")return;let o=n.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(aN(l,n))throw new Error(`${r.vnodeSelector} had a ${n.vnodeSelector} child ${i==="added"?i:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},EJe=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},mO=[],gO=!1,Ore=e=>{(e.children||[]).forEach(Ore),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},SB=()=>{gO=!1,mO.forEach(Ore),mO.length=0},EB=e=>{mO.push(e),gO||(gO=!0,typeof window!="undefined"&&"requestIdleCallback"in window?window.requestIdleCallback(SB,{timeout:16}):setTimeout(SB,16))},TB=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),EB(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),EB(e))},TJe=(e,t,r)=>{if(!t)return;let i=r.eventHandlerInterceptor,n=Object.keys(t),o=n.length;for(let s=0;s<o;s++){let l=n[s],a=t[l];if(l==="className")throw new Error('Property "className" is not supported, use "class".');if(l==="class")yO(e,a,!0);else if(l==="classes"){let c=Object.keys(a),u=c.length;for(let p=0;p<u;p++){let h=c[p];a[h]&&e.classList.add(h)}}else if(l==="styles"){let c=Object.keys(a),u=c.length;for(let p=0;p<u;p++){let h=c[p],m=a[h];m&&($re(m),r.styleApplyer(e,h,m))}}else if(l!=="key"&&a!=null){let c=typeof a;c==="function"?(l.lastIndexOf("on",0)===0&&(i&&(a=i(l,a,e,t)),l==="oninput"&&function(){let u=a;a=function(p){u.apply(this,[p]),p.target["oninput-value"]=p.target.value}}()),e[l]=a):r.namespace===mT?l==="href"?e.setAttributeNS(Pre,l,a):e.setAttribute(l,a):c==="string"&&l!=="value"?l==="innerHTML"?e[l]=Mre.sanitize(a):e.setAttribute(l,a):e[l]=a}}},AJe=(e,t,r)=>{if(t)for(let i of t)Yy(i,e,void 0,r)},Lre=(e,t,r)=>{AJe(e,t.children,r),t.text&&(e.textContent=t.text),TJe(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])},Yy=(e,t,r,i)=>{let n,o=0,s=e.vnodeSelector,l=t.ownerDocument;if(s==="")n=e.domNode=l.createTextNode(e.text),r!==void 0?t.insertBefore(n,r):t.appendChild(n);else{for(let a=0;a<=s.length;++a){let c=s.charAt(a);if(a===s.length||c==="."||c==="#"){let u=s.charAt(o-1),p=s.slice(o,a);u==="."?n.classList.add(p):u==="#"?n.id=p:(p==="svg"&&(i=lN(i,{namespace:mT})),i.namespace!==void 0?n=e.domNode=l.createElementNS(i.namespace,p):(n=e.domNode=e.domNode||l.createElement(p),p==="input"&&e.properties&&e.properties.type!==void 0&&n.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(n,r):n.parentNode!==t&&t.appendChild(n)),o=a+1}}Lre(n,e,i)}},yO=(e,t,r)=>{t&&t.split(" ").forEach(i=>{i&&e.classList.toggle(i,r)})},MJe=(e,t,r,i)=>{if(!r)return;let n=!1,o=Object.keys(r),s=o.length;for(let l=0;l<s;l++){let a=o[l],c=r[a],u=t[a];if(a==="class")u!==c&&(yO(e,u,!1),yO(e,c,!0));else if(a==="classes"){let p=e.classList,h=Object.keys(c),m=h.length;for(let y=0;y<m;y++){let v=h[y],_=!!c[v];_!==!!u[v]&&(n=!0,_?p.add(v):p.remove(v))}}else if(a==="styles"){let p=Object.keys(c),h=p.length;for(let m=0;m<h;m++){let y=p[m],v=c[y];v!==u[y]&&(n=!0,v?($re(v),i.styleApplyer(e,y,v)):i.styleApplyer(e,y,""))}}else if(c||typeof u!="string"||(c=""),a==="value"){let p=e[a];p!==c&&(e["oninput-value"]?p===e["oninput-value"]:c!==u)&&(e[a]=c,e["oninput-value"]=void 0),c!==u&&(n=!0)}else if(c!==u){let p=typeof c;p==="function"&&i.eventHandlerInterceptor||(i.namespace===mT?a==="href"?e.setAttributeNS(Pre,a,c):e.setAttribute(a,c):p==="string"?a==="innerHTML"?e[a]=Mre.sanitize(c):a==="role"&&c===""?e.removeAttribute(a):e.setAttribute(a,c):e[a]!==c&&(e[a]=c),n=!0)}}return n},IJe=(e,t,r,i,n)=>{if(r===i)return!1;i=i||kB;let o,s=(r=r||kB).length,l=i.length,a=0,c=0,u=!1;for(;c<l;){let p=a<s?r[a]:void 0,h=i[c];if(p!==void 0&&aN(p,h))u=lE(p,h,n)||u,a++;else{let m=SJe(r,h,a+1);if(m>=0){for(o=a;o<m;o++)TB(r[o]),LM(r,o,e,"removed");u=lE(r[m],h,n)||u,a=m+1}else Yy(h,t,a<s?r[a].domNode:void 0,n),EJe(h),LM(i,c,e,"added")}c++}if(s>a)for(o=a;o<s;o++)TB(r[o]),LM(r,o,e,"removed");return u};lE=(e,t,r)=>{let i=e.domNode,n=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=i.ownerDocument.createTextNode(t.text);return i.parentNode.replaceChild(s,i),t.domNode=s,n=!0,n}t.domNode=i}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=lN(r,{namespace:mT})),e.text!==t.text&&(o=!0,t.text===void 0?i.removeChild(i.firstChild):i.textContent=t.text),t.domNode=i,o=IJe(t,i,e.children,t.children,r)||o,o=MJe(i,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[i,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(i,t.properties,e.properties),n};let wb=(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 i=e;e=r,lE(i,r,t)},domNode:e.domNode});const PJe={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}};let uy=e=>lN(PJe,e),ch={create:(e,t)=>(t=uy(t),Yy(e,document.createElement("div"),void 0,t),wb(e,t)),append:(e,t,r)=>(r=uy(r),Yy(t,e,void 0,r),wb(t,r)),insertBefore:(e,t,r)=>(r=uy(r),Yy(t,e.parentNode,e,r),wb(t,r)),merge:(e,t,r)=>(r=uy(r),t.domNode=e,Lre(e,t,r),wb(t,r)),replace:(e,t,r)=>(r=uy(r),Yy(t,e.parentNode,e,r),e.parentNode.removeChild(e),wb(t,r))},Rre,$Je=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r};Rre=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];let OJe=(e,t)=>{let r=e;return t.forEach(i=>{r=r&&r.children?Rre(r.children,n=>n.domNode===i):void 0}),r},LJe=(e,t,r)=>{let i=function(n){r("domEvent",n);let o=t(),s=$Je(n.currentTarget,o.domNode);s.reverse();let l,a=OJe(o.getLastRender(),s);return e.scheduleRender(),a&&(l=a.properties[`on${n.type}`].apply(a.properties.bind||this,arguments)),r("domEventProcessed",n),l};return(n,o,s,l)=>i},vO=e=>{let t,r,i=uy(e),n=i.performanceLogger,o=!0,s=!1,l=[],a=[],c=(p,h,m)=>{let y,v=()=>y;i.eventHandlerInterceptor=LJe(t,v,n),y=p(h,m(),i),l.push(y),a.push(m)},u=()=>{if(r=void 0,o){o=!1,n("renderStart",void 0);for(let p=0;p<l.length;p++){let h=a[p]();n("rendered",void 0),l[p].update(h),n("patched",void 0)}n("renderDone",void 0),o=!0}};return t={renderNow:u,scheduleRender:()=>{r||s||(r=requestAnimationFrame(u))},stop:()=>{r&&(cancelAnimationFrame(r),r=void 0),s=!0},resume:()=>{s=!1,o=!0,t.scheduleRender()},append:(p,h)=>{c(ch.append,p,h)},insertBefore:(p,h)=>{c(ch.insertBefore,p,h)},merge:(p,h)=>{c(ch.merge,p,h)},replace:(p,h)=>{c(ch.replace,p,h)},detach:p=>{for(let h=0;h<a.length;h++)if(a[h]===p)return a.splice(h,1),l.splice(h,1)[0];throw new Error("renderFunction was not found")}},t},Ep=class extends rr{constructor(){super(...arguments),this.items=new dr,this._watchUpdatingTracking=new fv,this._callbacks=new Map,this._projector=vO(),this._hiddenProjector=vO()}get needsRender(){return this.items.length>0}get updating(){var e,t;return(t=(e=this._watchUpdatingTracking)==null?void 0:e.updating)!=null?t:!1}initialize(){const e=document.createElement("div");e.className="esri-overlay-surface",this._set("surface",e),this._hiddenSurface=document.createElement("div"),this._hiddenSurface.setAttribute("style","visibility: hidden;"),e.appendChild(this._hiddenSurface),this._watchUpdatingTracking.addOnCollectionChange(()=>this.items,t=>{for(const r of t.added){const i=()=>r.render();this._callbacks.set(r,i),this._projector.append(this.surface,i)}for(const r of t.removed){const i=this._projector.detach(this._callbacks.get(r));this.surface.removeChild(i.domNode),this._callbacks.delete(r)}})}addItem(e){this.items.add(e)}removeItem(e){this.items.remove(e)}destroy(){this.items.removeAll(),this._callbacks.forEach(e=>this._projector.detach(e)),this._callbacks=null,this._projector=null,this._watchUpdatingTracking.destroy()}render(){this._projector.renderNow()}computeBoundingRect(e){const t=this._hiddenSurface,r=this._hiddenProjector;let i=null;const n=()=>(i=e.render(),i);r.append(t,n),r.renderNow();const o={left:0,top:0,right:0,bottom:0};if(i&&i.domNode){const s=i.domNode.getBoundingClientRect();o.left=s.left,o.top=s.top,o.right=s.right,o.bottom=s.bottom}for(r.detach(n);t.firstChild;)t.removeChild(t.firstChild);return o}overlaps(e,t){const r=this.computeBoundingRect(e),i=this.computeBoundingRect(t);return Math.max(r.left,i.left)<=Math.min(r.right,i.right)&&Math.max(r.top,i.top)<=Math.min(r.bottom,i.bottom)}get hasVisibleItems(){return this.items.some(e=>e.visible)}async prepare(){await document.fonts.load(this._fontString()).catch(()=>{})}renderCanvas(e){if(!this.items.some(r=>r.visible))return;const t=e.getContext("2d");t.save(),t.font=this._fontString(),this.items.forEach(r=>{t.save(),r.renderCanvas(t),t.restore()}),t.restore()}_fontString(){return`10px ${getComputedStyle(this.surface).fontFamily}`}};d([f({readOnly:!0})],Ep.prototype,"surface",void 0),d([f({readOnly:!0})],Ep.prototype,"items",void 0),d([f({readOnly:!0})],Ep.prototype,"needsRender",null),d([f({readOnly:!0})],Ep.prototype,"_watchUpdatingTracking",void 0),d([f({readOnly:!0})],Ep.prototype,"updating",null),Ep=d([se("esri.views.overlay.ViewOverlay")],Ep);const AB=Ep;function mv(e,t,r,i){let n=null,o=1e3;typeof t=="number"?(o=t,i=r):(n=t!=null?t:null,o=r);let s,l=0;const a=()=>{l=0,e.apply(i,s)},c=(...u)=>{n&&n.apply(i,u),s=u,o?l||(l=setTimeout(a,o)):a()};return c.remove=()=>{l&&(clearTimeout(l),l=0)},c.forceUpdate=()=>{l&&(clearTimeout(l),a())},c.hasPendingUpdates=()=>!!l,c}const RJe="randomUUID"in crypto;function DJe(){if(RJe)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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)}const NJe={handleInterceptedEvent:(e,t,r,i)=>(e.scheduleRender(),t.properties[`on${i.type}`].apply(t.properties.bind||r,[i]))},FJe={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{e.style[t]=r}},zJe=e=>({...FJe,...e}),jJe=(e,t)=>{const r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},VJe=(e,t)=>e.find(t),MB=(e,t,r=!1)=>{let i=e;return t.forEach((n,o)=>{const s=i!=null&&i.children?VJe(i.children,l=>l.domNode===n):void 0;r&&!s&&o!==t.length-1||(i=s)}),i},BJe=e=>{let t;const r={...NJe,...e},i=zJe(r),n=i.performanceLogger;let o,s=!0,l=!1;const a=[],c=[],u=(h,m,y)=>{var x;let v;i.eventHandlerInterceptor=(S,C,E,T)=>function(w){let I;n("domEvent",w);const M=jJe(w.currentTarget,v.domNode),L=M.some(W=>{var z;return customElements.get((z=W==null?void 0:W.tagName)==null?void 0:z.toLowerCase())});if(w.eventPhase===Event.CAPTURING_PHASE||!L)M.reverse(),I=MB(v.getLastRender(),M);else{const W=w.composedPath(),z=W.slice(W.indexOf(w.currentTarget),W.indexOf(v.domNode)).filter(j=>j.getRootNode()===j.ownerDocument).reverse();I=MB(v.getLastRender(),z,!0)}let R;return I&&(R=r.handleInterceptedEvent(t,I,this,w)),n("domEventProcessed",w),R},(x=r.postProcessProjectionOptions)==null||x.call(r,i);const _=y();v=h(m,_,i),a.push(v),c.push(y),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(v,_)};let p=()=>{if(o=void 0,s){s=!1,n("renderStart",void 0);for(let h=0;h<a.length;h++){const m=c[h]();n("rendered",void 0),a[h].update(m),n("patched",void 0)}n("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(p=r.modifyDoRenderImplementation(p,a,c)),t={renderNow:p,scheduleRender:()=>{o||l||(o=requestAnimationFrame(p))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,s=!0,t.scheduleRender()},append:(h,m)=>{u(ch.append,h,m)},insertBefore:(h,m)=>{u(ch.insertBefore,h,m)},merge:(h,m)=>{u(ch.merge,h,m)},replace:(h,m)=>{u(ch.replace,h,m)},detach:h=>{for(let m=0;m<c.length;m++)if(c[m]===h)return c.splice(m,1),a.splice(m,1)[0];throw new Error("renderFunction was not found")}},t},qr={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let dy,Dre,gT,Nre=!1,aE=!1,cN=!1,dl=!1,IB=null,bO=!1;const tyt={isDev:!!qr.isDev,isBrowser:!0,isServer:!1,isTesting:!!qr.isTesting},ryt=e=>{const t=new URL(e,Eo.$resourcesUrl$);return t.origin!==L0.location.origin?t.href:t.pathname},UJe=e=>Eo.$resourcesUrl$=e,_g=(e,t="")=>()=>{},PB="http://www.w3.org/1999/xlink",$B={},WJe="http://www.w3.org/2000/svg",HJe="http://www.w3.org/1999/xhtml",GJe=e=>e!=null,uN=e=>(e=typeof e,e==="object"||e==="function"),Fre=(e,t,...r)=>{let i=null,n=null,o=null,s=!1,l=!1;const a=[],c=p=>{for(let h=0;h<p.length;h++)i=p[h],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((s=typeof e!="function"&&!uN(i))&&(i=String(i)),s&&l?a[a.length-1].$text$+=i:a.push(s?cE(null,i):i),l=s)};if(c(r),t&&(qr.isDev&&e==="input"&&ZJe(t),qr.vdomKey&&t.key&&(n=t.key),qr.slotRelocation&&t.name&&(o=t.name),qr.vdomClass)){const p=t.className||t.class;p&&(t.class=typeof p!="object"?p:Object.keys(p).filter(h=>p[h]).join(" "))}if(qr.isDev&&a.some(zre)&&kXe(`The <Host> must be the single root component. Make sure:
- - You are NOT using hostData() and <Host> in the same component.
- - <Host> is used once, and it's the single root component of the render() function.`),qr.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,a,YJe);const u=cE(e,null);return u.$attrs$=t,a.length>0&&(u.$children$=a),qr.vdomKey&&(u.$key$=n),qr.slotRelocation&&(u.$name$=o),u},cE=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return qr.vdomAttribute&&(r.$attrs$=null),qr.vdomKey&&(r.$key$=null),qr.slotRelocation&&(r.$name$=null),r},qJe={},zre=e=>e&&e.$tag$===qJe,YJe={forEach:(e,t)=>e.map(OB).forEach(t),map:(e,t)=>e.map(OB).map(t).map(KJe)},OB=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),KJe=e=>{if(typeof e.vtag=="function"){const r=Object.assign({},e.vattrs);return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),Fre(e.vtag,r,...e.vchildren||[])}const t=cE(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ZJe=e=>{const t=Object.keys(e),r=t.indexOf("value");if(r===-1)return;const i=t.indexOf("type"),n=t.indexOf("min"),o=t.indexOf("max"),s=t.indexOf("step");(r<i||r<n||r<o||r<s)&&Qre('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},QJe=e=>SXe.map(t=>t(e)).find(t=>!!t),JJe=(e,t)=>e!=null&&!uN(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,XJe=e=>qr.lazyLoad?O0(e).$hostElement$:e,iyt=(e,t,r)=>{const i=XJe(e);return{emit:n=>(qr.isDev&&!i.isConnected&&Qre(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),eXe(i,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:n}))}},eXe=(e,t,r)=>{const i=Eo.ce(t,r);return e.dispatchEvent(i),i},LB=new WeakMap,tXe=(e,t,r)=>{let i=dE.get(e);AXe&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=t:i.replaceSync(t)):i=t,dE.set(e,i)},rXe=(e,t,r,i)=>{let n=jre(t,r);const o=dE.get(n);if(e=e.nodeType===11?e:oc,o)if(typeof o=="string"){e=e.head||e;let s=LB.get(e),l;s||LB.set(e,s=new Set),s.has(n)||(l=oc.createElement("style"),l.innerHTML=o,e.insertBefore(l,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return n},iXe=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,i=t.$flags$,n=_g("attachStyles",t.$tagName$),o=rXe(pE&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$);i&10&&(r["s-sc"]=o,r.classList.add(o+"-h"),i&2&&r.classList.add(o+"-s")),n()},jre=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),RB=(e,t,r,i,n,o)=>{if(r!==i){let s=zB(e,t),l=t.toLowerCase();if(t==="class"){const a=e.classList,c=DB(r),u=DB(i);a.remove(...c.filter(p=>p&&!u.includes(p))),a.add(...u.filter(p=>p&&!c.includes(p)))}else if(t==="style"){for(const a in r)(!i||i[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in i)(!r||i[a]!==r[a])&&(a.includes("-")?e.style.setProperty(a,i[a]):e.style[a]=i[a])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):zB(L0,l)?t=l.slice(2):t=l[2]+t.slice(3),r&&Eo.rel(e,t,r,!1),i&&Eo.ael(e,t,i,!1);else{const a=uN(i);if((s||a&&i!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=i;else{const u=i==null?"":i;t==="list"?s=!1:(r==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(PB,t):e.removeAttribute(t)):(!s||o&4||n)&&!a&&(i=i===!0?"":i,c?e.setAttributeNS(PB,t,i):e.setAttribute(t,i))}}},nXe=/\s/,DB=e=>e?e.split(nXe):[],Vre=(e,t,r,i)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||$B,s=t.$attrs$||$B;for(i in o)i in s||RB(n,i,o[i],void 0,r,t.$flags$);for(i in s)RB(n,i,o[i],s[i],r,t.$flags$)},uE=(e,t,r,i)=>{const n=t.$children$[r];let o=0,s,l,a;if(Nre||(cN=!0,n.$tag$==="slot"&&(dy&&i.classList.add(dy+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)s=n.$elm$=oc.createTextNode(n.$text$);else if(n.$flags$&1)s=n.$elm$=oc.createTextNode("");else{if(dl||(dl=n.$tag$==="svg"),s=n.$elm$=oc.createElementNS(dl?WJe:HJe,n.$flags$&2?"slot-fb":n.$tag$),dl&&n.$tag$==="foreignObject"&&(dl=!1),Vre(null,n,dl),GJe(dy)&&s["s-si"]!==dy&&s.classList.add(s["s-si"]=dy),n.$children$)for(o=0;o<n.$children$.length;++o)l=uE(e,n,o,s),l&&s.appendChild(l);n.$tag$==="svg"?dl=!1:s.tagName==="foreignObject"&&(dl=!0)}return s["s-hn"]=gT,n.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=Dre,s["s-sn"]=n.$name$||"",a=e&&e.$children$&&e.$children$[r],a&&a.$tag$===n.$tag$&&e.$elm$&&v1(e.$elm$,!1)),s},v1=(e,t)=>{Eo.$flags$|=1;const r=e.childNodes;for(let i=r.length-1;i>=0;i--){const n=r[i];n["s-hn"]!==gT&&n["s-ol"]&&(Wre(n).insertBefore(n,dN(n)),n["s-ol"].remove(),n["s-ol"]=void 0,cN=!0),t&&v1(n,t)}Eo.$flags$&=-2},Bre=(e,t,r,i,n,o)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,l;for(s.shadowRoot&&s.tagName===gT&&(s=s.shadowRoot);n<=o;++n)i[n]&&(l=uE(null,r,n,e),l&&(i[n].$elm$=l,s.insertBefore(l,dN(t))))},Ure=(e,t,r,i,n)=>{for(;t<=r;++t)(i=e[t])&&(n=i.$elm$,qre(i),aE=!0,n["s-ol"]?n["s-ol"].remove():v1(n,!0),n.remove())},oXe=(e,t,r,i)=>{let n=0,o=0,s=0,l=0,a=t.length-1,c=t[0],u=t[a],p=i.length-1,h=i[0],m=i[p],y,v;for(;n<=a&&o<=p;)if(c==null)c=t[++n];else if(u==null)u=t[--a];else if(h==null)h=i[++o];else if(m==null)m=i[--p];else if(D2(c,h))py(c,h),c=t[++n],h=i[++o];else if(D2(u,m))py(u,m),u=t[--a],m=i[--p];else if(D2(c,m))(c.$tag$==="slot"||m.$tag$==="slot")&&v1(c.$elm$.parentNode,!1),py(c,m),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],m=i[--p];else if(D2(u,h))(c.$tag$==="slot"||m.$tag$==="slot")&&v1(u.$elm$.parentNode,!1),py(u,h),e.insertBefore(u.$elm$,c.$elm$),u=t[--a],h=i[++o];else{for(s=-1,l=n;l<=a;++l)if(t[l]&&t[l].$key$!==null&&t[l].$key$===h.$key$){s=l;break}s>=0?(v=t[s],v.$tag$!==h.$tag$?y=uE(t&&t[o],r,s,e):(py(v,h),t[s]=void 0,y=v.$elm$),h=i[++o]):(y=uE(t&&t[o],r,o,e),h=i[++o]),y&&Wre(c.$elm$).insertBefore(y,dN(c.$elm$))}n>a?Bre(e,i[p+1]==null?null:i[p+1].$elm$,r,i,o,p):o>p&&Ure(t,n,a)},D2=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,dN=e=>e&&e["s-ol"]||e,Wre=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,py=(e,t)=>{const r=t.$elm$=e.$elm$,i=e.$children$,n=t.$children$,o=t.$tag$,s=t.$text$;let l;s===null?(dl=o==="svg"?!0:o==="foreignObject"?!1:dl,o==="slot"||Vre(e,t,dl),i!==null&&n!==null?oXe(r,i,t,n):n!==null?(e.$text$!==null&&(r.textContent=""),Bre(r,null,t,n,0,n.length-1)):i!==null&&Ure(i,0,i.length-1),dl&&o==="svg"&&(dl=!1)):(l=r["s-cr"])?l.parentNode.textContent=s:e.$text$!==s&&(r.data=s)},Hre=e=>{const t=e.childNodes;let r,i,n,o,s,l;for(i=0,n=t.length;i<n;i++)if(r=t[i],r.nodeType===1){if(r["s-sr"]){for(s=r["s-sn"],r.hidden=!1,o=0;o<n;o++)if(l=t[o].nodeType,t[o]["s-hn"]!==r["s-hn"]||s!==""){if(l===1&&s===t[o].getAttribute("slot")){r.hidden=!0;break}}else if(l===1||l===3&&t[o].textContent.trim()!==""){r.hidden=!0;break}}Hre(r)}},Wa=[],Gre=e=>{let t,r,i,n,o,s,l=0;const a=e.childNodes,c=a.length;for(;l<c;l++){if(t=a[l],t["s-sr"]&&(r=t["s-cr"])&&r.parentNode)for(i=r.parentNode.childNodes,n=t["s-sn"],s=i.length-1;s>=0;s--)r=i[s],!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==t["s-hn"]&&(NB(r,n)?(o=Wa.find(u=>u.$nodeToRelocate$===r),aE=!0,r["s-sn"]=r["s-sn"]||n,o?o.$slotRefNode$=t:Wa.push({$slotRefNode$:t,$nodeToRelocate$:r}),r["s-sr"]&&Wa.map(u=>{NB(u.$nodeToRelocate$,r["s-sn"])&&(o=Wa.find(p=>p.$nodeToRelocate$===r),o&&!u.$slotRefNode$&&(u.$slotRefNode$=o.$slotRefNode$))})):Wa.some(u=>u.$nodeToRelocate$===r)||Wa.push({$nodeToRelocate$:r}));t.nodeType===1&&Gre(t)}},NB=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",qre=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(qre)},sXe=(e,t)=>{const r=e.$hostElement$,i=e.$cmpMeta$,n=e.$vnode$||cE(null,null),o=zre(t)?t:Fre(null,null,t);gT=r.tagName,i.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},i.$attrsToReflect$.map(([s,l])=>o.$attrs$[l]=r[s])),o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=n.$elm$=r.shadowRoot||r,dy=r["s-sc"],Dre=r["s-cr"],Nre=pE&&(i.$flags$&1)!==0,aE=!1,py(n,o);{if(Eo.$flags$|=1,cN){Gre(o.$elm$);let s,l,a,c,u,p,h=0;for(;h<Wa.length;h++)s=Wa[h],l=s.$nodeToRelocate$,l["s-ol"]||(a=oc.createTextNode(""),a["s-nr"]=l,l.parentNode.insertBefore(l["s-ol"]=a,l));for(h=0;h<Wa.length;h++)if(s=Wa[h],l=s.$nodeToRelocate$,s.$slotRefNode$){for(c=s.$slotRefNode$.parentNode,u=s.$slotRefNode$.nextSibling,a=l["s-ol"];a=a.previousSibling;)if(p=a["s-nr"],p&&p["s-sn"]===l["s-sn"]&&c===p.parentNode&&(p=p.nextSibling,!p||!p["s-nr"])){u=p;break}(!u&&c!==l.parentNode||l.nextSibling!==u)&&l!==u&&(!l["s-hn"]&&l["s-ol"]&&(l["s-hn"]=l["s-ol"].parentNode.nodeName),c.insertBefore(l,u))}else l.nodeType===1&&(l.hidden=!0)}aE&&Hre(o.$elm$),Eo.$flags$&=-2,Wa.length=0}},lXe=(e,t)=>{},pN=(e,t)=>(qr.taskQueue&&qr.updatable&&(e.$flags$|=16),lXe(e,e.$ancestorComponent$),PXe(()=>aXe(e,t))),aXe=(e,t)=>{const r=e.$hostElement$,i=_g("scheduleUpdate",e.$cmpMeta$.$tagName$),n=r;let o;return t?o=gv(n,"componentWillLoad"):o=gv(n,"componentWillUpdate"),o=FB(o,()=>gv(n,"componentWillRender")),i(),FB(o,()=>cXe(e,n,t))},cXe=async(e,t,r)=>{const i=e.$hostElement$,n=_g("update",e.$cmpMeta$.$tagName$);i["s-rc"],r&&iXe(e);const o=_g("render",e.$cmpMeta$.$tagName$);uXe(e,t,i),o(),n(),dXe(e)},uXe=(e,t,r)=>{try{IB=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(qr.hasRenderFn||qr.reflect)&&(qr.vdomRender||qr.reflect)&&(qr.hydrateServerSide||sXe(e,t))}catch(l){hx(l,e.$hostElement$)}return IB=null,null},dXe=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=_g("postUpdate",t),n=r;e.$ancestorComponent$,gv(n,"componentDidRender"),e.$flags$&64?(gv(n,"componentDidUpdate"),i()):(e.$flags$|=64,gv(n,"componentDidLoad"),i())},nyt=e=>{if(qr.updatable){const t=O0(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&pN(t,!1),r}return!1},gv=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(i){hx(i)}},FB=(e,t)=>e&&e.then?e.then(t):t(),pXe=(e,t)=>O0(e).$instanceValues$.get(t),hXe=(e,t,r,i)=>{const n=O0(e),o=e,s=n.$instanceValues$.get(t),l=n.$flags$,a=o;r=JJe(r,i.$members$[t][0]);const c=Number.isNaN(s)&&Number.isNaN(r);if(r!==s&&!c){n.$instanceValues$.set(t,r);{if(i.$watchers$&&l&128){const p=i.$watchers$[t];p&&p.map(h=>{try{a[h](r,s,t)}catch(m){hx(m,o)}})}if((l&18)===2){if(a.componentShouldUpdate&&a.componentShouldUpdate(r,s,t)===!1)return;pN(n,!1)}}}},fXe=(e,t,r)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),n=e.prototype;i.map(([o,[s]])=>{(s&31||s&32)&&Object.defineProperty(n,o,{get(){return pXe(this,o)},set(l){hXe(this,o,l,t)},configurable:!0,enumerable:!0})});{const o=new Map;n.attributeChangedCallback=function(s,l,a){Eo.jmp(()=>{const c=o.get(s);if(this.hasOwnProperty(c))a=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==a)return;this[c]=a===null&&typeof this[c]=="boolean"?!1:a})},e.observedAttributes=i.filter(([s,l])=>l[0]&15).map(([s,l])=>{const a=l[1]||s;return o.set(a,s),l[0]&512&&t.$attrsToReflect$.push([s,a]),a})}}return e},mXe=async(e,t,r,i,n)=>{if((t.$flags$&32)===0&&(n=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then(()=>t.$flags$|=128),n.style)){let s=n.style;typeof s!="string"&&(s=s[t.$modeName$=QJe(e)]);const l=jre(r,t.$modeName$);if(!dE.has(l)){const a=_g("registerStyles",r.$tagName$);tXe(l,s,!!(r.$flags$&1)),a()}}t.$ancestorComponent$,(()=>pN(t,!0))()},gXe=e=>{},yXe=e=>{if((Eo.$flags$&1)===0){const t=O0(e),r=t.$cmpMeta$,i=_g("connectedCallback",r.$tagName$);t.$flags$&1?(Yre(e,t,r.$listeners$),gXe(t.$lazyInstance$)):(t.$flags$|=1,r.$flags$&12&&vXe(e),r.$members$&&Object.entries(r.$members$).map(([n,[o]])=>{if(o&31&&e.hasOwnProperty(n)){const s=e[n];delete e[n],e[n]=s}}),mXe(e,t,r)),i()}},vXe=e=>{const t=e["s-cr"]=oc.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},bXe=e=>{if((Eo.$flags$&1)===0){const t=O0(e);t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0)}},oyt=(e,t)=>{const r={$flags$:t[0],$tagName$:t[1]};qr.member&&(r.$members$=t[2]),qr.hostListener&&(r.$listeners$=t[3]),qr.watchCallback&&(r.$watchers$=e.$watchers$),qr.reflect&&(r.$attrsToReflect$=[]),qr.shadowDom&&!pE&&r.$flags$&1&&(r.$flags$|=8);const i=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){CXe(this,r)},connectedCallback(){yXe(this),qr.connectedCallback&&i&&i.call(this)},disconnectedCallback(){bXe(this),qr.disconnectedCallback&&n&&n.call(this)},__attachShadow(){pE?qr.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)}):this.attachShadow({mode:"open"}):this.shadowRoot=this}}),e.is=r.$tagName$,fXe(e,r)},syt=(e,t)=>t,Yre=(e,t,r,i)=>{r&&r.map(([n,o,s])=>{const l=wXe(e,n),a=_Xe(t,s),c=xXe(n);Eo.ael(l,o,a,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Eo.rel(l,o,a,c))})},_Xe=(e,t)=>r=>{try{qr.lazyLoad||e.$hostElement$[t](r)}catch(i){hx(i)}},wXe=(e,t)=>t&4?oc:t&8?L0:t&16?oc.body:e,xXe=e=>EXe?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Kre=new WeakMap,O0=e=>Kre.get(e),CXe=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return qr.isDev&&(r.$renderCount$=0),qr.method&&qr.lazyLoad&&(r.$onInstancePromise$=new Promise(i=>r.$onInstanceResolve$=i)),qr.asyncLoading&&(r.$onReadyPromise$=new Promise(i=>r.$onReadyResolve$=i),e["s-p"]=[],e["s-rc"]=[]),Yre(e,r,t.$listeners$),Kre.set(e,r)},zB=(e,t)=>t in e,hx=(e,t)=>(0,console.error)(e,t),Zre=qr.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],kXe=(...e)=>console.error(...Zre,...e),Qre=(...e)=>console.warn(...Zre,...e),dE=new Map,SXe=[],L0=typeof window!="undefined"?window:{};qr.cssVarShim&&L0.CSS;const oc=L0.document||{head:{}},lyt=L0.HTMLElement||class{},Eo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,i)=>e.addEventListener(t,r,i),rel:(e,t,r,i)=>e.removeEventListener(t,r,i),ce:(e,t)=>new CustomEvent(e,t)},pE=qr.shadowDomShim&&qr.shadowDom?(()=>(oc.head.attachShadow+"").indexOf("[native")>-1)():!0,EXe=(()=>{let e=!1;try{oc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),TXe=e=>Promise.resolve(e),AXe=qr.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})():!1,jB=[],Jre=[],MXe=(e,t)=>r=>{e.push(r),bO||(bO=!0,t&&Eo.$flags$&4?IXe(_O):Eo.raf(_O))},VB=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){hx(r)}e.length=0},_O=()=>{VB(jB),VB(Jre),(bO=jB.length>0)&&Eo.raf(_O)},IXe=e=>TXe().then(e),PXe=MXe(Jre,!0);/*!
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
- * v1.0.0-beta.97
- */const $Xe="calcite-theme-auto",OXe="calcite-theme-dark";function ayt(e){const t="dir",r=`[${t}]`,i=LXe(e,r);return i?i.getAttribute(t):"ltr"}function Xre(e){return e.getRootNode()}function eie(e){return e.host||null}function cyt(e,{selector:t,id:r}){function i(n){if(!n)return null;n.assignedSlot&&(n=n.assignedSlot);const o=Xre(n),s=r?"getElementById"in o?o.getElementById(r):null:t?o.querySelector(t):null,l=eie(o);return s||(l?i(l):null)}return i(e)}function LXe(e,t){function r(i){return i?i.closest(t)||r(eie(Xre(i))):null}return r(e)}function RXe(e){return typeof(e==null?void 0:e.setFocus)=="function"}async function uyt(e){if(!!e)return RXe(e)?e.setFocus():e.focus()}const b1=":not([slot])";function dyt(e,t,r){t&&!Array.isArray(t)&&typeof t!="string"&&(r=t,t=null);const i=t?Array.isArray(t)?t.map(n=>`[slot="${n}"]`).join(","):`[slot="${t}"]`:b1;return r!=null&&r.all?DXe(e,i,r):NXe(e,i,r)}function tie(e,t){return e?Array.from(e.children||[]).filter(r=>r==null?void 0:r.matches(t)):[]}function DXe(e,t,r){let i=t===b1?tie(e,b1):Array.from(e.querySelectorAll(t));i=r&&r.direct===!1?i:i.filter(o=>o.parentElement===e),i=r!=null&&r.matches?i.filter(o=>o==null?void 0:o.matches(r.matches)):i;const n=r==null?void 0:r.selector;return n?i.map(o=>Array.from(o.querySelectorAll(n))).reduce((o,s)=>[...o,...s],[]).filter(o=>!!o):i}function NXe(e,t,r){let i=t===b1?tie(e,b1)[0]||null:e.querySelector(t);i=r&&r.direct===!1||(i==null?void 0:i.parentElement)===e?i:null,i=r!=null&&r.matches?i!=null&&i.matches(r.matches)?i:null:i;const n=r==null?void 0:r.selector;return n?i==null?void 0:i.querySelector(n):i}function pyt(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t==="")return e[r]}function hyt(e){return Boolean(e).toString()}function fyt(e){return!!(e.isPrimary&&e.button===0)}/*!
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
- * v1.0.0-beta.97
- */function BB(){const{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(OXe)||e.contains($Xe)&&t?"dark":"light",i=s=>document.body.dispatchEvent(new CustomEvent("calciteThemeChange",{bubbles:!0,detail:{theme:s}})),n=s=>{o!==s&&i(s),o=s};let o=r();i(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>n(s.matches?"dark":"light")),new MutationObserver(()=>n(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function FXe(){typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location===location&&window.document===document&&(document.readyState==="interactive"?BB():document.addEventListener("DOMContentLoaded",()=>BB(),{once:!0}))}const zXe=FXe;zXe();let rie;function jXe(){UJe(fl(ui(rie)))}rie="components/assets";const iie=Symbol("widget"),VXe=[],BXe={},hE=new WeakMap;function nie(e,t){let r=t.children;if(r&&r.length)for(let n=0;n<r.length;++n)r[n]=nie(e,r[n]);else r=VXe;const i=t.vnodeSelector;if(hN(i)){const n=t.properties||BXe,o=n.key||i;return{vnodeSelector:"div",properties:{key:o,afterCreate:UXe,afterUpdate:WXe,afterRemoved:oie,parentWidget:e,widgetConstructor:i,widgetProperties:{...n,key:o,children:r}},children:void 0,text:void 0,domNode:null}}return t}function UXe(e,t,r,{parentWidget:i,widgetConstructor:n,widgetProperties:o}){var l;const s=new n(o);s.container=e,hE.set(e,s),(l=s.afterCreate)==null||l.call(s,s,e),i._internalHandles.add(w0(()=>oie(e)))}function WXe(e,t,r,{widgetProperties:i}){var o;const n=hE.get(e);n&&(n.set(i),(o=n.afterUpdate)==null||o.call(n,n,e))}function oie(e){const t=hE.get(e);t&&(t.destroy(),hE.delete(e))}function hN(e){return typeof e=="function"&&e[iie]}const UB=new Set;function HXe(e){UB.add(e),e.finally(()=>UB.delete(e))}const GXe="esri.widgets.Widget";let qXe=0;const YXe={widgetIcon:"esri-icon-checkbox-unchecked"};function sie(e,t){for(const r in t)e[r]!=null&&(typeof e[r]=="object"&&typeof t[r]=="object"?sie(e[r],t==null?void 0:t[r]):e[r]=t[r]);return e}const KXe=BJe({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(i,n,o,s)=>{const l=t==null?void 0:t(i,n,o,s),a=r.test(i);if(!((i=i.replace(r,"")).toLowerCase()in o)||a){const c=i[2].toLowerCase()+i.slice(3),u=m=>l==null?void 0:l.call(o,m);o.addEventListener(c,u,a);const p=()=>o.removeEventListener(c,u,a),h=s.afterRemoved;s.afterRemoved=m=>{h==null||h(m),p()}}return l}},handleInterceptedEvent(e,t,r,i){const{eventPhase:n,type:o}=i,s=n===Event.CAPTURING_PHASE;let l=`on${o}${s?"capture":""}`;const a=t.properties;(a&&l in a||(l=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&l in a))&&(Ere(),e.scheduleRender(),a[l].call(a.bind||r,i))}});let RM=!1,In=class extends oT(Dd.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._internalHandles=new hs,this._projector=KXe,this._readyForTrueRender=!1,this.iconClass=YXe.widgetIcon,this.key=this,this._loadLocale=YJ(async()=>{if(this._messageBundleProps&&this._messageBundleProps.length){const o=await Bs(this._messageBundleProps.map(async({bundlePath:s,propertyName:l})=>{let a=await Nte(s);this.uiStrings&&Object.keys(this.uiStrings)&&(a=sie(Ge(a),this.uiStrings)),this[l]=a}));for(const s of o)s.error&&ft.getLogger(this.declaredClass).error("widget-intl:locale-error",this.declaredClass,s.error)}await this.loadLocale()}),jXe();const r="esri-widget-uid-"+DJe(),i=this.render.bind(this);this._trackingTarget=new W3(()=>this.scheduleRender());const n=()=>{var u;if(!this._readyForTrueRender||this.destroyed)return null;if(!this.visible)return{vnodeSelector:"div",properties:{key:r,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0};const o=i();let{properties:s}=o;s||(o.properties=s={});let{key:l,styles:a}=s;l||(s.key=r),a||(s.styles=a={}),a.display||(a.display="");let c=0;return(u=o.children)==null||u.forEach(p=>{if(hN(p.vnodeSelector))return;let{properties:h}=p;h||(p.properties=h={}),h.key||(h.key=`${this.id}--${c++}`)}),nie(this,o)};this.render=()=>{var s;if(RM)return n();let o=(s=fJe(this))!=null?s:null;if(o)return o;this._trackingTarget.clear(),RM=!0;try{o=bd(this._trackingTarget,n)}catch(l){throw console.error(l),l}finally{RM=!1}return o&&mJe(this,o),o},this.addResolvingPromise(this._resourcesFetch=this.beforeFirstRender().then(()=>{this._readyForTrueRender=!0,this._postInitialize()})),HXe(this._resourcesFetch)}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){return Promise.all([this.loadDependencies(),this._loadLocale()]).then(()=>{}).catch(M$)}async loadDependencies(){}async loadLocale(){}destroy(){this.destroyed||(yn(this._trackingTarget),yn(this.viewModel),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null,OM(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return oN(e)}get domNode(){return this.container}set domNode(e){this.container=e}get id(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+qXe++}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 test(){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(OM(this),this._projector.scheduleRender())}classes(...e){return Are.apply(this,e)}renderNow(){OM(this),this._projector.renderNow()}_postInitialize(){var t;if(this.destroyed)return;this.scheduleRender(),(t=this._delegatedEventNames)!=null&&t.length&&this._internalHandles.add(Ot(()=>this.viewModel,(r,i)=>{i&&this._internalHandles.remove("delegated-events"),r&&j3(r)&&this._internalHandles.add(this._delegatedEventNames.map(n=>V3(r,n,o=>{this.emit(n,o)})),"delegated-events")},si)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(M$),this.scheduleRender()};this._internalHandles.add([dHe(e),Ot(()=>this.uiStrings,e),ca(()=>this.container,r=>{this.destroyed||this._attach(r)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){var t;this._attached&&(this._projector.detach(this.render),this._attached=!1),(t=e==null?void 0:e.parentNode)==null||t.removeChild(e)}};In[iie]=!0,d([f()],In.prototype,"_readyForTrueRender",void 0),d([f({value:null})],In.prototype,"container",null),d([Qr("container")],In.prototype,"castContainer",null),d([f()],In.prototype,"domNode",null),d([f()],In.prototype,"iconClass",void 0),d([f()],In.prototype,"id",null),d([f()],In.prototype,"label",null),d([f()],In.prototype,"renderable",null),d([f()],In.prototype,"uiStrings",void 0),d([f()],In.prototype,"viewModel",void 0),d([f({value:!0})],In.prototype,"visible",null),d([f()],In.prototype,"key",void 0),d([f()],In.prototype,"children",void 0),d([f()],In.prototype,"afterCreate",void 0),d([f()],In.prototype,"afterUpdate",void 0),d([f()],In.prototype,"afterRemoved",void 0),In=d([se(GXe)],In);const Ho=In;function lie(e){return 32+e.length}function aie(e){return 16}function myt(e){if(!e)return 0;let t=uie;for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];switch(typeof i){case"string":t+=lie(i);break;case"number":t+=aie();break;case"boolean":t+=4}}return t}function ZXe(e){if(!e)return 0;if(Array.isArray(e))return QXe(e);let t=uie;for(const r in e)e.hasOwnProperty(r)&&(t+=cie(e[r]));return t}function QXe(e){const t=e.length;if(t===0||typeof e[0]=="number")return 32+8*t;let r=die;for(let i=0;i<t;i++)r+=cie(e[i]);return r}function cie(e){switch(typeof e){case"object":return ZXe(e);case"string":return lie(e);case"number":return aie();case"boolean":return 4;default:return 8}}function gyt(e,t){return die+e.length*t}const uie=32,die=32;var _1;(function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"})(_1||(_1={}));const WB=["B","kB","MB","GB","TB"];function JXe(e,t){let r=t===0?0:Math.floor(Math.log(t)/Math.log(_1.KILOBYTES));r=Us(r,0,WB.length-1);const i=Ph(t/_1.KILOBYTES**r,{maximumFractionDigits:2});return uc(e.units.bytes[WB[r]],{fileSize:i})}function XXe(e){const{exifInfo:t,exifName:r,tagName:i}=e;if(!t||!r||!i)return null;const n=t.find(o=>o.name===r);return n?eet({tagName:i,tags:n.tags}):null}function eet(e){const{tagName:t,tags:r}=e;if(!r||!t)return null;const i=r.find(n=>n.name===t);return i&&i.value||null}var wO;const tet={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let xs=wO=class extends xt{constructor(e){super(e),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:e}=this,t=XXe({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:e});return tet[t]||null}clone(){return new wO({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};d([f({type:String})],xs.prototype,"contentType",void 0),d([f()],xs.prototype,"exifInfo",void 0),d([f({readOnly:!0})],xs.prototype,"orientationInfo",null),d([f({type:ni})],xs.prototype,"id",void 0),d([f({type:String})],xs.prototype,"globalId",void 0),d([f({type:String})],xs.prototype,"keywords",void 0),d([f({type:String})],xs.prototype,"name",void 0),d([f({json:{read:!1}})],xs.prototype,"parentGlobalId",void 0),d([f({json:{read:!1}})],xs.prototype,"parentObjectId",void 0),d([f({type:ni})],xs.prototype,"size",void 0),d([f({json:{read:!1}})],xs.prototype,"url",void 0),xs=wO=d([se("esri.layers.support.AttachmentInfo")],xs);const ret=xs;var xO;let no=xO=class extends xt{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new xO(Ge({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};d([f({type:[String],json:{write:!0}})],no.prototype,"attachmentTypes",void 0),d([f({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],no.prototype,"attachmentsWhere",void 0),d([f({type:Boolean,json:{write:!0}})],no.prototype,"cacheHint",void 0),d([f({type:[String],json:{write:!0}})],no.prototype,"keywords",void 0),d([f({type:[Number],json:{write:!0}})],no.prototype,"globalIds",void 0),d([f({json:{write:!0}})],no.prototype,"name",void 0),d([f({type:Number,json:{read:{source:"resultRecordCount"}}})],no.prototype,"num",void 0),d([f({type:[Number],json:{write:!0}})],no.prototype,"objectIds",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],no.prototype,"returnMetadata",void 0),d([f({type:[Number],json:{write:!0}})],no.prototype,"size",void 0),d([f({type:Number,json:{read:{source:"resultOffset"}}})],no.prototype,"start",void 0),d([zt("start"),zt("num")],no.prototype,"writeStart",null),d([f({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],no.prototype,"where",void 0),no=xO=d([se("esri.rest.support.AttachmentQuery")],no),no.from=_n(no);const CO=no,iet="esri.widgets.Feature.support.featureUtils",HB=ft.getLogger(iet),net=/href=(""|'')/gi,oet=/(\{([^\{\r\n]+)\})/g,set=/\'/g,pie=/^\s*expression\//i,aet=/(\n)/gi,cet=/[\u00A0-\u9999<>\&]/gim,uet=/href\s*=\s*(?:\"([^\"]+)\"|\'([^\']+)\')/gi,det=/^(?:mailto:|tel:)/,hie="relationships/",kO=_D("short-date-short-time");function fie(e){if(!et(e))return e.get("sourceLayer")||e.get("layer")}async function fE(e,t){return typeof e=="function"?e.call(null,t):e}function mie(e=""){if(e)return!det.test(e.trim().toLowerCase())}function fN(e){return!!e&&pie.test(e)}function pet(e,t){if(!fN(t)||!e)return null;const r=t.replace(pie,"").toLowerCase();let i;return e.some(n=>n.name.toLowerCase()===r&&(i=n,!0)),i}function gie(e,t){const r=pet(t,e==null?void 0:e.fieldName);return r?r.title||null:e?e.label||e.fieldName:null}function het(e,t){const r=t.get(e.toLowerCase());return`{${r&&r.fieldName||e}}`}function fet(e){return e.replace(net,"")}function w1(e,t){const r=mN(t,e);return r?r.name:e}function met(e,t){return e&&e.map(r=>w1(r,t))}function mN(e,t){return e&&typeof e.getField=="function"?e.getField(t):null}function yie(e){return`${e}`.trim()}function $m({attributes:e,globalAttributes:t,layer:r,text:i,expressionAttributes:n,fieldInfoMap:o}){return i?SO({formattedAttributes:t,template:bet(i,{...t,...n,...e},r),fieldInfoMap:o}):""}function SO({formattedAttributes:e,template:t,fieldInfoMap:r}){return yie(fet(uc(uc(t,i=>het(i,r)),e)))}function get(e,t,r=!1){const i=t[e];if(typeof i=="string"){const n="%27",o=(r?encodeURIComponent(i):i).replace(set,n);t[e]=o}}function yet(e,t=!1){const r={...e};return Object.keys(r).forEach(i=>get(i,r,t)),r}function vet(e,t,r){const i=(t=yie(t))&&t[0]!=="{";return uc(e,yet(r,i))}function EO(e,t){return e.replace(oet,(r,i,n)=>{const o=mN(t,n);return o?`{${o.name}}`:i})}function bet(e,t,r){const i=EO(e,r);return i&&i.replace(uet,(n,o,s)=>vet(n,o||s,t))}function _et(e,t){if(typeof e=="string"&&t&&t.dateFormat==null&&(t.places!=null||t.digitSeparator!=null)){const r=Number(e);if(!isNaN(r))return r}return e}function wet(e){return(e==null?void 0:e.type)==="feature"}function GB(e){return!!(e!=null&&e.layer)}function xet(e){return(e==null?void 0:e.type)==="map-image"}function Cet(e,t){var c;const r=t.fieldInfos,i=t.fieldName,n=(c=vie(r,i))==null?void 0:c.clone(),o=t.preventPlacesFormatting,s=t.layer,l=mN(s,i);if(n&&(l==null?void 0:l.type)==="date"){const u=n.format||new Hy;u.dateFormat=u.dateFormat||"short-date-short-time",u.dateTimeFormatOptions=!GB(s)&&wet(s)&&s.datesInUnknownTimezone||GB(s)&&xet(s.layer)&&s.layer.datesInUnknownTimezone?{timeZone:"UTC"}:null,n.format=u}const a=n&&n.format;return typeof e=="string"&&VX(i)&&a?a.formatRasterPixelValue(e):typeof(e=_et(e,a))=="string"||e==null||a==null?fx(e):o?Ph(e,{...GX(a),minimumFractionDigits:0,maximumFractionDigits:20}):a.format(e)}function vie(e,t){if(!e||!e.length||!t)return;const r=t.toLowerCase();let i;return e.some(n=>!(!n.fieldName||n.fieldName.toLowerCase()!==r)&&(i=n,!0)),i}function ket({fieldName:e,graphic:t,layer:r}){if(od(e)||!r||typeof r.getFeatureType!="function")return null;const{typeIdField:i}=r;if(!i||e!==i)return null;const n=r.getFeatureType(t);return n?n.name:null}function Eet({fieldName:e,value:t,graphic:r,layer:i}){if(od(e)||!i||typeof i.getFieldDomain!="function")return null;const n=i.getFieldDomain(e,{feature:r});return n&&n.type==="coded-value"?n.getName(t):null}function Tet(e,t){const{creatorField:r,creationDateField:i,editorField:n,editDateField:o}=e;if(!t)return;const s=t[o];if(typeof s=="number"){const a=t[n];return{type:"edit",date:Cd(s,kO),user:a}}const l=t[i];if(typeof l=="number"){const a=t[r];return{type:"create",date:Cd(l,kO),user:a}}return null}function Aet(e,t){const r=new Map;return e&&e.forEach(i=>{const n=w1(i.fieldName,t);i.fieldName=n,r.set(n.toLowerCase(),i)}),r}function qB(e){const t=[];if(!e)return t;const{fieldInfos:r,content:i}=e;return r&&t.push(...r),i&&Array.isArray(i)&&i.forEach(n=>{if(n.type==="fields"){const o=n&&n.fieldInfos;o&&t.push(...o)}}),t}function gN(e){return e.replace(cet,t=>`&#${t.charCodeAt(0)};`)}function fx(e){return typeof e=="string"?e.replace(aet,'<br class="esri-text-new-line" />'):e}function bie(e){const{value:t,fieldName:r,fieldInfos:i,fieldInfoMap:n,layer:o,graphic:s}=e;if(t==null)return"";const l=Eet({fieldName:r,value:t,graphic:s,layer:o});if(l)return l;const a=ket({fieldName:r,graphic:s,layer:o});if(a)return a;if(n.get(r.toLowerCase()))return Cet(t,{fieldInfos:i||Array.from(n.values()),fieldName:r,layer:o});const c=o&&o.fieldsIndex;return c&&c.isDateField(r)?Cd(t,kO):fx(t)}function DM({fieldInfos:e,attributes:t,layer:r,graphic:i,fieldInfoMap:n,relatedInfos:o}){const s={};return o==null||o.forEach(l=>Oet({attributes:s,relatedInfo:l,fieldInfoMap:n,fieldInfos:e,layer:r})),Object.keys(t).forEach(l=>{const a=t[l];s[l]=bie({fieldName:l,fieldInfos:e,fieldInfoMap:n,layer:r,value:a,graphic:i})}),s}async function Met(e,t){var u,p;const{layer:r,graphic:i,outFields:n,objectIds:o,returnGeometry:s,spatialReference:l}=e,a=o[0];if(typeof a!="number"&&typeof a!="string"){const h="Could not query required fields for the specified feature. The feature's ID is invalid.",m={layer:r,graphic:i,objectId:a,requiredFields:n};return HB.warn(h,m),null}if(!((p=(u=r.capabilities)==null?void 0:u.operations)!=null&&p.supportsQuery)){const h="The specified layer cannot be queried. The following fields will not be available.",m={layer:r,graphic:i,requiredFields:n,returnGeometry:s};return HB.warn(h,m),null}const c=r.createQuery();return c.objectIds=o,c.outFields=n!=null&&n.length?n:[r.objectIdField],c.returnGeometry=!!s,c.returnZ=!!s,c.returnM=!!s,c.outSpatialReference=l,(await r.queryFeatures(c,t)).features[0]}async function Iet(e){var i;if(!((i=e.expressionInfos)!=null&&i.length))return!1;const t=await xd(),{arcadeUtils:{hasGeometryFunctions:r}}=t;return r(e)}async function Pet({graphic:e,popupTemplate:t,layer:r,spatialReference:i},n){if(!r||!t||(typeof r.load=="function"&&await r.load(n),!e.attributes))return;const o=e.attributes[r.objectIdField];if(o==null)return;const s=[o],l=await t.getRequiredFields(r.fieldsIndex),a=aHe(l,e),c=a?[]:l,u=t.returnGeometry||await Iet(t);if(a&&!u)return;const p=await Met({layer:r,graphic:e,outFields:c,objectIds:s,returnGeometry:u,spatialReference:i},n);p&&(p.geometry&&(e.geometry=p.geometry),p.attributes&&(e.attributes={...e.attributes,...p.attributes}))}function od(e=""){return!!e&&e.includes(hie)}function $et(e){return e?`${hie}${e.layerId}/${e.fieldName}`:""}function YB({attributes:e,graphic:t,relatedInfo:r,fieldInfos:i,fieldInfoMap:n,layer:o}){e&&t&&r&&Object.keys(t.attributes).forEach(s=>{const l=$et({layerId:r.relation.id.toString(),fieldName:s}),a=t.attributes[s];e[l]=bie({fieldName:l,fieldInfos:i,fieldInfoMap:n,layer:o,value:a,graphic:t})})}function Oet({attributes:e,relatedInfo:t,fieldInfoMap:r,fieldInfos:i,layer:n}){e&&t&&(t.relatedFeatures&&t.relatedFeatures&&t.relatedFeatures.forEach(o=>YB({attributes:e,graphic:o,relatedInfo:t,fieldInfoMap:r,fieldInfos:i,layer:n})),t.relatedStatsFeatures&&t.relatedStatsFeatures&&t.relatedStatsFeatures.forEach(o=>YB({attributes:e,graphic:o,relatedInfo:t,fieldInfoMap:r,fieldInfos:i,layer:n})))}const KB=e=>{if(!e)return!1;const t=e.toUpperCase();return t.includes("CURRENT_TIMESTAMP")||t.includes("CURRENT_DATE")||t.includes("CURRENT_TIME")},_ie=({layer:e,method:t,query:r,definitionExpression:i})=>{var s,l;if(!((l=(s=e.capabilities)==null?void 0:s.query)!=null&&l.supportsCacheHint)||t==="attachments")return;const n=ue(r.where)&&r.where,o=ue(r.geometry)&&r.geometry;KB(i)||KB(n)||(o==null?void 0:o.type)==="extent"||r.resultType==="tile"||(r.cacheHint=!0)},Let=({query:e,layer:t,method:r})=>{_ie({layer:t,method:r,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression}`})},Ret=({queryPayload:e,layer:t,method:r})=>{_ie({layer:t,method:r,query:e,definitionExpression:`${t.definitionExpression} ${t.serviceDefinitionExpression}`})};function Det(e,t,r){return e&&t&&r?ZB(e.allLayers,t,r)||ZB(e.allTables,t,r):null}function ZB(e,t,r){return e.find(i=>i!==t&&i.type==="feature"&&i.url===t.url&&i.layerId===r.relatedTableId)}const QB={editing:!1,operations:{add:!0,update:!0,delete:!0}},wie=dr.ofType(ret);let Cs=class extends rr{constructor(e){super(e),this._getAttachmentsPromise=null,this._attachmentLayer=null,this.abilities={...QB},this.activeAttachmentInfo=null,this.activeFileInfo=null,this.attachmentInfos=new wie,this.fileInfos=new dr,this.graphic=null,this.mode="view",this.filesEnabled=!1,this.addHandles(Ot(()=>this.graphic,()=>this._graphicChanged(),si))}destroy(){this._attachmentLayer=null,this.graphic=null}castAbilities(e){return{...QB,...e}}get state(){return this._getAttachmentsPromise?"loading":this.graphic?"ready":"disabled"}get supportsResizeAttachments(){const{graphic:e}=this;if(!e)return!1;const t=e.layer||e.sourceLayer;return(t==null?void 0:t.loaded)&&"capabilities"in t&&"operations"in t.capabilities&&"supportsResizeAttachments"in t.capabilities.operations&&t.capabilities.operations.supportsResizeAttachments||!1}async getAttachments(){const{_attachmentLayer:e,attachmentInfos:t}=this;if(!e||typeof e.queryAttachments!="function")throw new ze("invalid-layer","getAttachments(): A valid layer is required.");const r=this._getObjectId(),i=new CO({objectIds:[r],returnMetadata:!0}),n=[],o=e.queryAttachments(i).then(l=>l[r]||n).catch(()=>n);this._getAttachmentsPromise=o,this.notifyChange("state");const s=await o;return t.removeAll(),s.length&&t.addMany(s),this._getAttachmentsPromise=null,this.notifyChange("state"),s}async addAttachment(e,t=this.graphic){const{_attachmentLayer:r,attachmentInfos:i,abilities:n}=this;if(!t)throw new ze("invalid-graphic","addAttachment(): A valid graphic is required.",{graphic:t});if(!e)throw new ze("invalid-attachment","addAttachment(): An attachment is required.",{attachment:e});if(!n.operations.add)throw new ze("invalid-abilities","addAttachment(): add abilities are required.");if(!r||typeof r.addAttachment!="function")throw new ze("invalid-layer","addAttachment(): A valid layer is required.");const o=r.addAttachment(t,e).then(l=>this._queryAttachment(l.objectId,t)),s=await o;return i.add(s),s}async deleteAttachment(e){const{_attachmentLayer:t,attachmentInfos:r,graphic:i,abilities:n}=this;if(!e)throw new ze("invalid-attachment-info","deleteAttachment(): An attachmentInfo is required.",{attachmentInfo:e});if(!n.operations.delete)throw new ze("invalid-abilities","deleteAttachment(): delete abilities are required.");if(!t||typeof t.deleteAttachments!="function")throw new ze("invalid-layer","deleteAttachment(): A valid layer is required.");const o=t.deleteAttachments(i,[e.id]).then(()=>e),s=await o;return r.remove(s),s}async updateAttachment(e,t=this.activeAttachmentInfo){const{_attachmentLayer:r,attachmentInfos:i,graphic:n,abilities:o}=this;if(!e)throw new ze("invalid-attachment","updateAttachment(): An attachment is required.",{attachment:e});if(!t)throw new ze("invalid-attachment-info","updateAttachment(): An attachmentInfo is required.",{attachmentInfo:t});if(!o.operations.update)throw new ze("invalid-abilities","updateAttachment(): Update abilities are required.");const s=i.findIndex(c=>c===t);if(!r||typeof r.updateAttachment!="function")throw new ze("invalid-layer","updateAttachment(): A valid layer is required.");const l=r.updateAttachment(n,t.id,e).then(c=>this._queryAttachment(c.objectId)),a=await l;return i.splice(s,1,a),a}async commitFiles(){return await Promise.all(this.fileInfos.items.map(e=>this.addAttachment(e.form))),this.fileInfos.removeAll(),this.getAttachments()}addFile(e,t){if(!e||!t)return null;const r={file:e,form:t};return this.fileInfos.add(r),r}updateFile(e,t,r=this.activeFileInfo){if(!e||!t||!r)return null;const i=this.fileInfos.findIndex(n=>r===n);return i>-1&&this.fileInfos.splice(i,1,{file:e,form:t}),this.fileInfos.items[i]}deleteFile(e){var r;const t=this.fileInfos.find(i=>i.file===e);return(r=this.fileInfos.remove(t))!=null?r:null}async _queryAttachment(e,t){if(!e)throw new ze("invalid-attachment-id","Could not query attachment.");const{_attachmentLayer:r}=this,i=this._getObjectId(t),n=new CO({objectIds:[i],attachmentsWhere:`AttachmentId=${e}`,returnMetadata:!0});return r.queryAttachments(n).then(o=>o[i][0])}_getObjectId(e=this.graphic){var t;return(t=e==null?void 0:e.getObjectId())!=null?t:null}_graphicChanged(){this.graphic&&(this._setAttachmentLayer(),this.getAttachments().catch(()=>{}))}_setAttachmentLayer(){const{graphic:e}=this,t=fie(e);this._attachmentLayer=t?t.type==="scene"&&ue(t.associatedLayer)?t.associatedLayer:t:null}};d([f()],Cs.prototype,"abilities",void 0),d([Qr("abilities")],Cs.prototype,"castAbilities",null),d([f()],Cs.prototype,"activeAttachmentInfo",void 0),d([f()],Cs.prototype,"activeFileInfo",void 0),d([f({readOnly:!0,type:wie})],Cs.prototype,"attachmentInfos",void 0),d([f()],Cs.prototype,"fileInfos",void 0),d([f({type:Hs})],Cs.prototype,"graphic",void 0),d([f()],Cs.prototype,"mode",void 0),d([f({readOnly:!0})],Cs.prototype,"state",null),d([f()],Cs.prototype,"filesEnabled",void 0),d([f({readOnly:!0})],Cs.prototype,"supportsResizeAttachments",null),Cs=d([se("esri.widgets.Attachments.AttachmentsViewModel")],Cs);const yN=Cs;function JB(e){const t=e.toLowerCase();return t==="image/bmp"||t==="image/emf"||t==="image/exif"||t==="image/gif"||t==="image/x-icon"||t==="image/jpeg"||t==="image/png"||t==="image/tiff"||t==="image/x-wmf"}function Net(e){const t=ui("esri/themes/base/images/files/");return e?e==="text/plain"?`${t}text-32.svg`:e==="application/pdf"?`${t}pdf-32.svg`:e==="text/csv"?`${t}csv-32.svg`:e==="application/gpx+xml"?`${t}gpx-32.svg`:e==="application/x-dwf"?`${t}cad-32.svg`:e==="application/postscript"||e==="application/json"||e==="text/xml"||e==="model/vrml"?`${t}code-32.svg`:e==="application/x-zip-compressed"||e==="application/x-7z-compressed"||e==="application/x-gzip"||e==="application/x-tar"||e==="application/x-gtar"||e==="application/x-bzip2"||e==="application/gzip"||e==="application/x-compress"||e==="application/x-apple-diskimage"||e==="application/x-rar-compressed"||e==="application/zip"?`${t}zip-32.svg`:e.includes("image/")?`${t}image-32.svg`:e.includes("audio/")?`${t}sound-32.svg`:e.includes("video/")?`${t}video-32.svg`:e.includes("msexcel")||e.includes("ms-excel")||e.includes("spreadsheetml")?`${t}excel-32.svg`:e.includes("msword")||e.includes("ms-word")||e.includes("wordprocessingml")?`${t}word-32.svg`:e.includes("powerpoint")||e.includes("presentationml")?`${t}report-32.svg`:`${t}generic-32.svg`:`${t}generic-32.svg`}function Bo(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var Fet=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xie=function(e,t){for(var r=0,i=e.length;r<i;r++){var n=e[r];Array.isArray(n)?xie(n,t):n!=null&&n!==!1&&(n.hasOwnProperty("vnodeSelector")||(n=Fet(n)),t.push(n))}},zet=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var n=[];return xie(r,n),{vnodeSelector:e,properties:t||void 0,children:n,text:void 0,domNode:null}};function Ue(e,t,...r){return typeof e!="function"||hN(e)?zet(e,t,...r):e(t,...r)}const XB={addButton:!0,addSubmitButton:!0,cancelAddButton:!0,cancelUpdateButton:!0,deleteButton:!0,errorMessage:!0,progressBar:!0,updateButton:!0},Ut={base:"esri-attachments",loaderContainer:"esri-attachments__loader-container",loader:"esri-attachments__loader",fadeIn:"esri-attachments--fade-in",container:"esri-attachments__container",containerList:"esri-attachments__container--list",containerPreview:"esri-attachments__container--preview",actions:"esri-attachments__actions",deleteButton:"esri-attachments__delete-button",addAttachmentButton:"esri-attachments__add-attachment-button",errorMessage:"esri-attachments__error-message",items:"esri-attachments__items",item:"esri-attachments__item",itemButton:"esri-attachments__item-button",itemMask:"esri-attachments__item-mask",itemMaskIcon:"esri-attachments__item-mask--icon",itemImage:"esri-attachments__image",itemImageResizable:"esri-attachments__image--resizable",itemLabel:"esri-attachments__label",itemFilename:"esri-attachments__filename",itemChevronIcon:"esri-attachments__item-chevron-icon",itemLink:"esri-attachments__item-link",itemLinkOverlay:"esri-attachments__item-link-overlay",itemLinkOverlayIcon:"esri-attachments__item-link-overlay-icon",itemEditIcon:"esri-attachments__item-edit-icon",itemAddIcon:"esri-attachments__item-add-icon",itemAddButton:"esri-attachments__item-add-button",formNode:"esri-attachments__form-node",fileFieldset:"esri-attachments__file-fieldset",fileLabel:"esri-attachments__file-label",fileName:"esri-attachments__file-name",fileInput:"esri-attachments__file-input",metadata:"esri-attachments__metadata",metadataFieldset:"esri-attachments__metadata-fieldset",progressBar:"esri-attachments__progress-bar",esriWidget:"esri-widget",esriButton:"esri-button",buttonDisabled:"esri-button--disabled",esriButtonSecondary:"esri-button--secondary",esriButtonTertiary:"esri-button--tertiary",esriButtonThird:"esri-button--third",esriButtonSmall:"esri-button--small",esriButtonHalf:"esri-button--half",empty:"esri-widget__content--empty",iconExternalLink:"esri-icon-link-external",iconEdit:"esri-icon-edit",iconRight:"esri-icon-right",iconLeft:"esri-icon-left",iconPlus:"esri-icon-plus"},NM=window.CSS;let No=class extends Ho{constructor(e,t){super(e,t),this.displayType="auto",this.messages=null,this.messagesUnits=null,this.selectedFile=null,this.submitting=!1,this.viewModel=new yN,this.visibleElements={...XB},this._supportsImageOrientation=NM&&NM.supports&&NM.supports("image-orientation","from-image"),this._addAttachmentForm=null,this._updateAttachmentForm=null}initialize(){this.addHandles([Cl(()=>{var e;return(e=this.viewModel)==null?void 0:e.attachmentInfos},"change",()=>this.scheduleRender()),Cl(()=>{var e;return(e=this.viewModel)==null?void 0:e.fileInfos},"change",()=>this.scheduleRender()),Ot(()=>{var e;return(e=this.viewModel)==null?void 0:e.mode},()=>this._modeChanged(),si)])}loadDependencies(){return Promise.all([ut(()=>import("./calcite-icon.732b1a7e.js"),["assets/calcite-icon.732b1a7e.js","assets/icon.801bf0d0.js","assets/observers.905cc9f1.js"])])}get abilities(){return this.viewModel.abilities}set abilities(e){this.viewModel.abilities=e}get effectiveDisplayType(){const{displayType:e}=this;return e&&e!=="auto"?e:this.viewModel.supportsResizeAttachments?"preview":"list"}get graphic(){return this.viewModel.graphic}set graphic(e){this.viewModel.graphic=e}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}castVisibleElements(e){return{...XB,...e}}addAttachment(){const{_addAttachmentForm:e,viewModel:t}=this;return this._set("submitting",!0),this._set("error",null),t.addAttachment(e).then(r=>(this._set("submitting",!1),this._set("error",null),t.mode="view",r)).catch(r=>{throw this._set("submitting",!1),this._set("error",new ze("attachments:add-attachment",this.messages.addErrorMessage,r)),r})}deleteAttachment(e){const{viewModel:t}=this;return this._set("submitting",!0),this._set("error",null),t.deleteAttachment(e).then(r=>(this._set("submitting",!1),this._set("error",null),t.mode="view",r)).catch(r=>{throw this._set("submitting",!1),this._set("error",new ze("attachments:delete-attachment",this.messages.deleteErrorMessage,r)),r})}updateAttachment(){const{viewModel:e}=this,{_updateAttachmentForm:t}=this;return this._set("submitting",!0),this._set("error",null),e.updateAttachment(t).then(r=>(this._set("submitting",!1),this._set("error",null),e.mode="view",r)).catch(r=>{throw this._set("submitting",!1),this._set("error",new ze("attachments:update-attachment",this.messages.updateErrorMessage,r)),r})}addFile(){const e=this.viewModel.addFile(this.selectedFile,this._addAttachmentForm);return this.viewModel.mode="view",e}updateFile(){const{viewModel:e}=this,t=e.updateFile(this.selectedFile,this._updateAttachmentForm,e.activeFileInfo);return e.mode="view",t}deleteFile(e){const t=this.viewModel.deleteFile(e||this.viewModel.activeFileInfo.file);return this.viewModel.mode="view",t}render(){const{submitting:e,viewModel:t}=this,{state:r}=t;return Ue("div",{class:this.classes(Ut.base,Ut.esriWidget)},e?this.renderProgressBar():null,r==="loading"?this.renderLoading():this.renderAttachments(),this.renderErrorMessage())}renderErrorMessage(){const{error:e,visibleElements:t}=this;return e&&t.errorMessage?Ue("div",{key:"error-message",class:Ut.errorMessage},e.message):null}renderAttachments(){const{activeFileInfo:e,mode:t,activeAttachmentInfo:r}=this.viewModel;return t==="add"?this.renderAddForm():t==="edit"?this.renderDetailsForm(r||e):this.renderAttachmentContainer()}renderLoading(){return Ue("div",{class:Ut.loaderContainer,key:"loader"},Ue("div",{class:Ut.loader}))}renderProgressBar(){return this.visibleElements.progressBar?Ue("div",{class:Ut.progressBar,key:"progress-bar"}):null}renderAddForm(){const{submitting:e,selectedFile:t}=this,r=e||!t,i=this.visibleElements.cancelAddButton?Ue("button",{type:"button",bind:this,disabled:e,onclick:this._cancelForm,class:this.classes(Ut.esriButton,Ut.esriButtonTertiary,Ut.esriButtonSmall,Ut.esriButtonHalf,e&&Ut.buttonDisabled)},this.messages.cancel):null,n=this.visibleElements.addSubmitButton?Ue("button",{type:"submit",disabled:r,class:this.classes(Ut.esriButton,Ut.esriButtonSecondary,Ut.esriButtonSmall,Ut.esriButtonHalf,{[Ut.buttonDisabled]:r})},this.messages.add):null,o=t?Ue("span",{key:"file-name",class:Ut.fileName},t.name):null,s=Ue("form",{bind:this,afterCreate:sE,afterRemoved:CB,"data-node-ref":"_addAttachmentForm",onsubmit:this._submitAddAttachment},Ue("fieldset",{class:Ut.fileFieldset},o,Ue("label",{class:this.classes(Ut.fileLabel,Ut.esriButton,Ut.esriButtonSecondary)},t?this.messages.changeFile:this.messages.selectFile,Ue("input",{class:Ut.fileInput,type:"file",name:"attachment",bind:this,onchange:this._handleFileInputChange}))),n,i);return Ue("div",{key:"add-form-container",class:Ut.formNode},s)}renderDetailsForm(e){const{visibleElements:t,viewModel:r,selectedFile:i,submitting:n}=this,{abilities:o}=r,s=n||!i;let l,a,c,u;i?(l=i.type,a=i.name,c=i.size):"file"in e?(l=e.file.type,a=e.file.name,c=e.file.size):(l=e.contentType,a=e.name,c=e.size,u=e.url);const p=o.editing&&o.operations.delete&&t.deleteButton?Ue("button",{key:"delete-button",type:"button",disabled:n,bind:this,onclick:C=>this._submitDeleteAttachment(C,e),class:this.classes(Ut.esriButton,Ut.esriButtonSmall,Ut.esriButtonTertiary,Ut.deleteButton,{[Ut.buttonDisabled]:n})},this.messages.delete):void 0,h=o.editing&&o.operations.update&&t.updateButton?Ue("button",{disabled:s,key:"update-button",type:"submit",class:this.classes(Ut.esriButton,Ut.esriButtonSmall,Ut.esriButtonThird,{[Ut.buttonDisabled]:s})},this.messages.update):void 0,m=this.visibleElements.cancelUpdateButton?Ue("button",{disabled:n,key:"cancel-button",type:"button",bind:this,onclick:this._cancelForm,class:this.classes(Ut.esriButton,Ut.esriButtonSmall,Ut.esriButtonTertiary,Ut.esriButtonThird,{[Ut.buttonDisabled]:n})},this.messages.cancel):void 0,y=o.editing&&o.operations.update?Ue("fieldset",{key:"file",class:Ut.fileFieldset},Ue("span",{key:"file-name",class:Ut.fileName},a),Ue("label",{class:this.classes(Ut.fileLabel,Ut.esriButton,Ut.esriButtonSecondary)},this.messages.changeFile,Ue("input",{class:Ut.fileInput,type:"file",name:"attachment",bind:this,onchange:this._handleFileInputChange}))):void 0,v=Ue("fieldset",{key:"size",class:Ut.metadataFieldset},Ue("label",null,JXe(this.messagesUnits,c))),_=Ue("fieldset",{key:"content-type",class:Ut.metadataFieldset},Ue("label",null,l)),x=ue(u)?Ue("a",{class:Ut.itemLink,href:u,rel:"noreferrer",target:"_blank"},this.renderImageMask(e,400),Ue("div",{class:Ut.itemLinkOverlay},Ue("span",{class:Ut.itemLinkOverlayIcon},Ue("calcite-icon",{icon:"launch"})))):this.renderImageMask(e,400),S=Ue("form",{bind:this,afterCreate:sE,afterRemoved:CB,"data-node-ref":"_updateAttachmentForm",onsubmit:C=>this._submitUpdateAttachment(C,e)},Ue("div",{class:Ut.metadata},v,_),y,Ue("div",{class:Ut.actions},p,m,h));return Ue("div",{key:"edit-form-container",class:Ut.formNode},x,S)}renderImageMask(e,t){return"file"in e?this.renderGenericImageMask(e.file.name,e.file.type):this.renderImageMaskForAttachment(e,t)}renderGenericImageMask(e,t){const{supportsResizeAttachments:r}=this.viewModel,i=Net(t),n={[Ut.itemImageResizable]:r};return Ue("div",{class:this.classes(Ut.itemMaskIcon,Ut.itemMask)},Ue("img",{title:e,alt:e,src:i,class:this.classes(n,Ut.itemImage)}))}renderImageMaskForAttachment(e,t){const{supportsResizeAttachments:r}=this.viewModel,{contentType:i,name:n,url:o}=e;if(!r||!JB(i))return this.renderGenericImageMask(n,i);const s=this._getCSSTransform(e),l=s?{transform:s,"image-orientation":"none"}:{},a=`${o}${o.includes("?")?"&":"?"}w=${t}`,c={[Ut.itemImageResizable]:r};return Ue("div",{class:this.classes(Ut.itemMask)},Ue("img",{styles:l,alt:n,title:n,src:a,class:this.classes(c,Ut.itemImage)}))}renderFile(e){const{file:t}=e;return Ue("li",{class:Ut.item,key:t},Ue("button",{key:"details-button",bind:this,class:Ut.itemButton,title:this.messages.attachmentDetails,"aria-label":this.messages.attachmentDetails,onclick:()=>this._startEditFile(e),type:"button"},this.renderImageMask(e),Ue("label",{class:Ut.itemLabel},Ue("span",{class:Ut.itemFilename},t.name||this.messages.noTitle),Ue("span",{"aria-hidden":"true",class:this.classes(Ut.itemChevronIcon,tu(this.container)?Ut.iconLeft:Ut.iconRight)}))))}renderAttachmentInfo({attachmentInfo:e,displayType:t}){const{viewModel:r,effectiveDisplayType:i}=this,{abilities:n,supportsResizeAttachments:o}=r,{contentType:s,name:l,url:a}=e,c=this.renderImageMask(e,t==="list"?48:400),u=n.editing?Ue("span",{"aria-hidden":"true",class:this.classes(Ut.itemChevronIcon,tu(this.container)?Ut.iconLeft:Ut.iconRight)}):null,p=[c,i==="preview"&&o&&JB(s)?null:Ue("label",{class:Ut.itemLabel},Ue("span",{class:Ut.itemFilename},l||this.messages.noTitle),u)],h=n.editing?Ue("button",{key:"details-button",bind:this,class:Ut.itemButton,title:this.messages.attachmentDetails,"aria-label":this.messages.attachmentDetails,"data-attachment-info-id":e.id,onclick:()=>this._startEditAttachment(e),type:"button"},p):Ue("a",{key:"details-link",class:Ut.itemButton,href:a,target:"_blank"},p);return Ue("li",{class:Ut.item,key:e},h)}renderAttachmentContainer(){const{effectiveDisplayType:e,viewModel:t,visibleElements:r}=this,{attachmentInfos:i,abilities:n,fileInfos:o}=t,s=!!(i!=null&&i.length),l=!!(o!=null&&o.length),a={[Ut.containerList]:e!=="preview",[Ut.containerPreview]:e==="preview"},c=n.editing&&n.operations.add&&r.addButton?Ue("button",{bind:this,onclick:()=>this._startAddAttachment(),class:this.classes(Ut.esriButton,Ut.esriButtonTertiary,Ut.addAttachmentButton),type:"button"},Ue("span",{"aria-hidden":"true",class:this.classes(Ut.itemAddIcon,Ut.iconPlus)}),this.messages.add):void 0,u=s?Ue("ul",{key:"attachments-list",class:Ut.items},i.toArray().map(m=>this.renderAttachmentInfo({attachmentInfo:m,displayType:e}))):void 0,p=l?Ue("ul",{key:"file-list",class:Ut.items},o.toArray().map(m=>this.renderFile(m))):void 0,h=l||s?void 0:Ue("div",{class:Ut.empty},this.messages.noAttachments);return Ue("div",{key:"attachments-container",class:this.classes(Ut.container,a)},u,p,h,c)}_modeChanged(){this._set("error",null),this._set("selectedFile",null)}_handleFileInputChange(e){const t=e.target,r=t&&t.files&&t.files.item(0);this._set("selectedFile",r)}_submitDeleteAttachment(e,t){e.preventDefault(),"file"in t?this.deleteFile(t.file):this.deleteAttachment(t)}_submitAddAttachment(e){e.preventDefault(),this.viewModel.filesEnabled?this.addFile():this.addAttachment()}_submitUpdateAttachment(e,t){e.preventDefault(),"file"in t?this.updateFile():this.updateAttachment()}_startEditAttachment(e){const{viewModel:t}=this;t.activeFileInfo=null,t.activeAttachmentInfo=e,t.mode="edit"}_startEditFile(e){const{viewModel:t}=this;t.activeAttachmentInfo=null,t.activeFileInfo=e,t.mode="edit"}_startAddAttachment(){this.viewModel.mode="add"}_cancelForm(e){e.preventDefault(),this.viewModel.mode="view"}_getCSSTransform(e){const{orientationInfo:t}=e;return!this._supportsImageOrientation&&t?[t.rotation?`rotate(${t.rotation}deg)`:"",t.mirrored?"scaleX(-1)":""].join(" "):""}};d([f()],No.prototype,"abilities",null),d([f()],No.prototype,"displayType",void 0),d([f({readOnly:!0})],No.prototype,"effectiveDisplayType",null),d([f()],No.prototype,"graphic",null),d([f()],No.prototype,"label",null),d([f(),Bo("esri/widgets/Attachments/t9n/Attachments")],No.prototype,"messages",void 0),d([f(),Bo("esri/core/t9n/Units")],No.prototype,"messagesUnits",void 0),d([f({readOnly:!0})],No.prototype,"selectedFile",void 0),d([f({readOnly:!0})],No.prototype,"submitting",void 0),d([f({readOnly:!0})],No.prototype,"error",void 0),d([f({type:yN})],No.prototype,"viewModel",void 0),d([f()],No.prototype,"visibleElements",void 0),d([Qr("visibleElements")],No.prototype,"castVisibleElements",null),No=d([se("esri.widgets.Attachments")],No);const jet=No;let a_=class extends yN{constructor(e){super(e),this.description=null,this.title=null}};d([f()],a_.prototype,"description",void 0),d([f()],a_.prototype,"title",void 0),a_=d([se("esri.widgets.Feature.FeatureAttachments.FeatureAttachmentsViewModel")],a_);const vN=a_,Vet={heading:"esri-widget__heading"};function bN(e,t){const r=Bet(e.level),i=`h${r}`;return delete e.level,Ue(i,{...e,class:Are(Vet.heading,e.class),role:"heading","aria-level":String(r)},t)}function Bet(e){return Us(Math.ceil(e),1,6)}const FM={base:"esri-feature-element-info",title:"esri-feature-element-info__title",description:"esri-feature-element-info__description"};let hy=class extends Ho{constructor(e,t){super(e,t),this.description=null,this.headingLevel=2,this.title=null}render(){return Ue("div",{class:FM.base},this.renderTitle(),this.renderDescription())}renderTitle(){const{title:e}=this;return e?Ue(bN,{level:this.headingLevel,class:FM.title},e):null}renderDescription(){const{description:e}=this;return e?Ue("div",{key:"description",class:FM.description},e):null}};d([f()],hy.prototype,"description",void 0),d([f()],hy.prototype,"headingLevel",void 0),d([f()],hy.prototype,"title",void 0),hy=d([se("esri.widgets.Feature.support.FeatureElementInfo")],hy);const yT=hy,Uet={base:"esri-feature-attachments"};let Oc=class extends Ho{constructor(e,t){super(e,t),this._featureElementInfo=null,this.attachmentsWidget=new jet,this.headingLevel=2,this.viewModel=new vN}initialize(){this._featureElementInfo=new yT,this.addHandles([Ot(()=>{var e,t;return[(e=this.viewModel)==null?void 0:e.description,(t=this.viewModel)==null?void 0:t.title,this.headingLevel]},()=>this._setupFeatureElementInfo(),si),Ot(()=>{var e;return(e=this.viewModel)==null?void 0:e.graphic},e=>this.attachmentsWidget.graphic=e,si)])}destroy(){this.attachmentsWidget.destroy(),this._featureElementInfo.destroy()}get description(){return this.viewModel.description}set description(e){this.viewModel.description=e}get displayType(){return this.attachmentsWidget.displayType}set displayType(e){this.attachmentsWidget.displayType=e}get graphic(){return this.viewModel.graphic}set graphic(e){this.viewModel.graphic=e}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}render(){var t;const{attachmentsWidget:e}=this;return Ue("div",{class:Uet.base},(t=this._featureElementInfo)==null?void 0:t.render(),e==null?void 0:e.render())}_setupFeatureElementInfo(){const{description:e,title:t,headingLevel:r}=this;this._featureElementInfo.set({description:e,title:t,headingLevel:r})}};d([f({readOnly:!0})],Oc.prototype,"attachmentsWidget",void 0),d([f()],Oc.prototype,"description",null),d([f()],Oc.prototype,"displayType",null),d([f()],Oc.prototype,"graphic",null),d([f()],Oc.prototype,"headingLevel",void 0),d([f()],Oc.prototype,"title",null),d([f({type:vN})],Oc.prototype,"viewModel",void 0),Oc=d([se("esri.widgets.Feature.FeatureAttachments")],Oc);const Wet=Oc,fa=e=>{let t=class extends e{destroy(){var r,i;this.destroyed||((r=this._get("handles"))==null||r.destroy(),(i=this._get("updatingHandles"))==null||i.destroy())}get handles(){return this._get("handles")||new hs}get updatingHandles(){return this._get("updatingHandles")||new fv}};return d([f({readOnly:!0})],t.prototype,"handles",null),d([f({readOnly:!0})],t.prototype,"updatingHandles",null),t=d([se("esri.core.HandleOwner")],t),t};let mE=class extends fa(rr){};mE=d([se("esri.core.HandleOwner")],mE);let Tp=class extends fa(rr){constructor(e){super(e),this._loadingPromise=null,this.created=null,this.creator=null,this.destroyer=null,this.graphic=null,this.handles.add(Ot(()=>this.creator,t=>{this._destroyContent(),this._createContent(t)},si))}destroy(){this._destroyContent()}get state(){return this._loadingPromise?"loading":"ready"}_destroyContent(){const{created:e,graphic:t,destroyer:r}=this;e&&(fE(r,{graphic:t}).catch(()=>null),this._set("created",null))}async _createContent(e){const{graphic:t}=this,r=fE(e,{graphic:t}).catch(()=>null);this._loadingPromise=r,this.notifyChange("state");const i=await r;r===this._loadingPromise&&(this._loadingPromise=null,this.notifyChange("state"),this._set("created",i))}};d([f({readOnly:!0})],Tp.prototype,"created",void 0),d([f()],Tp.prototype,"creator",void 0),d([f()],Tp.prototype,"destroyer",void 0),d([f({type:Hs})],Tp.prototype,"graphic",void 0),d([f({readOnly:!0})],Tp.prototype,"state",null),Tp=d([se("esri.widgets.Feature.FeatureContent.FeatureContentViewModel")],Tp);const gE=Tp;function Ul(){return function(e,t){if(!e[t])throw new TypeError(`Cannot auto bind undefined function '${t}'`);return{value:Get(e[t])}}}function Het(e){const{type:t}=e;return e instanceof KeyboardEvent||t==="keyup"||t==="keydown"||t==="keypress"}function Get(e){return function(t,...r){Het(t)?kJe(t.key)&&(t.preventDefault(),t.stopPropagation(),t.target.click()):e.call(this,t,...r)}}function qet(e){return t=>{t.hasOwnProperty("_delegatedEventNames")||(t._delegatedEventNames=t._delegatedEventNames?t._delegatedEventNames.slice():[]);const r=t._delegatedEventNames,i=Array.isArray(e)?e:Yet(e);r.push(...i)}}function Yet(e){return e.split(",").map(t=>t.trim())}const Cie="calcite-theme-";function Ket(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"")}function yE(){return Ket().startsWith("dark")}function Zet(){return`${Cie}${yE()?"dark":"light"}`}function Qet(e){Jet(e),e.classList.add(Zet())}function Jet(e){Array.from(e.classList).forEach(t=>{t.startsWith(Cie)&&e.classList.remove(t)})}function kie(e){return e&&typeof e.render=="function"}function Xet(e){return e&&typeof e.postMixInProperties=="function"&&typeof e.buildRendering=="function"&&typeof e.postCreate=="function"&&typeof e.startup=="function"}const zM={base:"esri-feature-content",loaderContainer:"esri-feature-content__loader-container",loader:"esri-feature-content__loader"};let fy=class extends Ho{constructor(e,t){super(e,t),this.viewModel=null,this._addTargetToAnchors=r=>{Array.from(r.querySelectorAll("a")).forEach(i=>{mie(i.href)&&!i.hasAttribute("target")&&i.setAttribute("target","_blank")})}}get creator(){return this.viewModel.creator}set creator(e){this.viewModel.creator=e}get graphic(){return this.viewModel.graphic}set graphic(e){this.viewModel.graphic=e}renderLoading(){return Ue("div",{class:zM.loaderContainer,key:"loader"},Ue("div",{class:zM.loader}))}renderCreated(){var t;const e=(t=this.viewModel)==null?void 0:t.created;return e?e instanceof HTMLElement?Ue("div",{key:e,bind:e,afterCreate:this._attachToNode}):kie(e)?Ue("div",{key:e},!e.destroyed&&e.render()):Ue("div",{key:e,innerHTML:e,afterCreate:this._addTargetToAnchors}):null}render(){var t;const e=(t=this.viewModel)==null?void 0:t.state;return Ue("div",{class:zM.base},e==="loading"?this.renderLoading():this.renderCreated())}_attachToNode(e){const t=this;e.appendChild(t)}};d([f()],fy.prototype,"creator",null),d([f()],fy.prototype,"graphic",null),d([f({type:gE})],fy.prototype,"viewModel",void 0),fy=d([se("esri.widgets.Feature.FeatureContent")],fy);const yk=fy;let Ru=class extends rr{constructor(e){super(e),this.attributes=null,this.expressionInfos=null,this.description=null,this.fieldInfos=null,this.title=null}get formattedFieldInfos(){const{expressionInfos:e,fieldInfos:t}=this,r=[];return t==null||t.forEach(i=>{if(!(!i.hasOwnProperty("visible")||i.visible))return;const n=i.clone();n.label=gie(n,e),r.push(n)}),r}};d([f()],Ru.prototype,"attributes",void 0),d([f({type:[eee]})],Ru.prototype,"expressionInfos",void 0),d([f()],Ru.prototype,"description",void 0),d([f({type:[sx]})],Ru.prototype,"fieldInfos",void 0),d([f({readOnly:!0})],Ru.prototype,"formattedFieldInfos",null),d([f()],Ru.prototype,"title",void 0),Ru=d([se("esri.widgets.Feature.FeatureFields.FeatureFieldsViewModel")],Ru);const vT=Ru,ett=[{pattern:/^\s*(https?:\/\/([^\s]+))\s*$/i,target:"_blank",label:"{messages.view}"},{pattern:/^\s*(tel:([^\s]+))\s*$/i,label:"{hierPart}"},{pattern:/^\s*(mailto:([^\s]+))\s*$/i,label:"{hierPart}"},{pattern:/^\s*(arcgis-appstudio-player:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"App Studio Player"},{pattern:/^\s*(arcgis-collector:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Collector"},{pattern:/^\s*(arcgis-explorer:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Explorer"},{pattern:/^\s*(arcgis-navigator:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Navigator"},{pattern:/^\s*(arcgis-survey123:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Survey123"},{pattern:/^\s*(arcgis-trek2there:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Trek2There"},{pattern:/^\s*(arcgis-workforce:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Workforce"},{pattern:/^\s*(iform:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"iForm"},{pattern:/^\s*(flow:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"FlowFinity"},{pattern:/^\s*(lfmobile:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Laserfische"},{pattern:/^\s*(mspbi:\/\/([^\s]+))\s*$/i,label:"{messages.openInApp}",appName:"Microsoft Power Bi"}];function ttt(e){let t=null;return ett.some(r=>(r.pattern.test(e)&&(t=r),!!t)),t}function rtt(e,t){if(typeof t!="string"||!t)return t;const r=ttt(t);if(!r)return t;const i=t.match(r.pattern),n=i&&i[2],o=uc(uc(r.label,{messages:e,hierPart:n}),{appName:r.appName}),s=r.target?` target="${r.target}"`:"",l=r.target==="_blank"?' rel="noreferrer"':"";return t.replace(r.pattern,`<a${s} href="$1"${l}>${o}</a>`)}const xb={base:"esri-feature-fields",fieldHeader:"esri-feature-fields__field-header",fieldData:"esri-feature-fields__field-data",fieldDataDate:"esri-feature-fields__field-data--date",esriTable:"esri-widget__table"};let Ma=class extends Ho{constructor(e,t){super(e,t),this._featureElementInfo=null,this.viewModel=new vT,this.messages=null,this.messagesURIUtils=null}initialize(){this._featureElementInfo=new yT,this.addHandles(Ot(()=>{var e,t;return[(e=this.viewModel)==null?void 0:e.description,(t=this.viewModel)==null?void 0:t.title]},()=>this._setupFeatureElementInfo(),si))}destroy(){this._featureElementInfo.destroy()}get attributes(){return this.viewModel.attributes}set attributes(e){this.viewModel.attributes=e}get description(){return this.viewModel.description}set description(e){this.viewModel.description=e}get expressionInfos(){return this.viewModel.expressionInfos}set expressionInfos(e){this.viewModel.expressionInfos=e}get fieldInfos(){return this.viewModel.fieldInfos}set fieldInfos(e){this.viewModel.fieldInfos=e}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}renderFieldInfo(e,t){const{attributes:r}=this.viewModel,i=e.fieldName,n=e.label||i,o=r?r[i]==null?"":r[i]:"",s=!(!e.format||!e.format.dateFormat),l=typeof o=="number"&&!s?this._forceLTR(o):rtt(this.messagesURIUtils,o),a={[xb.fieldDataDate]:s};return Ue("tr",{key:`fields-element-info-row-${i}-${t}`},Ue("th",{key:`fields-element-info-row-header-${i}-${t}`,class:xb.fieldHeader,innerHTML:n}),Ue("td",{key:`fields-element-info-row-data-${i}-${t}`,class:this.classes(xb.fieldData,a),innerHTML:l}))}renderFields(){const{formattedFieldInfos:e}=this.viewModel;return e!=null&&e.length?Ue("table",{class:xb.esriTable,summary:this.messages.fieldsSummary},Ue("tbody",null,e.map((t,r)=>this.renderFieldInfo(t,r)))):null}render(){var e;return Ue("div",{class:xb.base},(e=this._featureElementInfo)==null?void 0:e.render(),this.renderFields())}_setupFeatureElementInfo(){const{description:e,title:t}=this;this._featureElementInfo.set({description:e,title:t})}_forceLTR(e){return`‎${e}`}};d([f()],Ma.prototype,"attributes",null),d([f()],Ma.prototype,"description",null),d([f()],Ma.prototype,"expressionInfos",null),d([f()],Ma.prototype,"fieldInfos",null),d([f()],Ma.prototype,"title",null),d([f({type:vT,nonNullable:!0})],Ma.prototype,"viewModel",void 0),d([f(),Bo("esri/widgets/Feature/t9n/Feature")],Ma.prototype,"messages",void 0),d([f(),Bo("esri/widgets/support/t9n/uriUtils")],Ma.prototype,"messagesURIUtils",void 0),Ma=d([se("esri.widgets.Feature.FeatureFields")],Ma);const Sie=Ma,itt={maximumFractionDigits:20};function ntt(e){return Ph(e,itt)}var TO;let Rf=TO=class extends xt{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e!=null?e:0}clone(){return new TO({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};d([f({type:wr,json:{type:[ni],write:!0}})],Rf.prototype,"color",void 0),d([f({type:String,json:{write:!0}})],Rf.prototype,"label",void 0),d([f({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],Rf.prototype,"value",void 0),d([zt("value")],Rf.prototype,"writeValue",null),Rf=TO=d([se("esri.renderers.visualVariables.support.ColorStop")],Rf);const ott=Rf;function stt(e,t,r){return Bs(e.map((i,n)=>t.apply(r,[i,n])))}async function ltt(e,t,r){return(await Bs(e.map((i,n)=>t.apply(r,[i,n])))).map(i=>i.value)}function _N(e){return{ok:!0,value:e}}function wN(e){return{ok:!1,error:e}}function att(e){return ue(e)&&e.ok===!0?e.value:null}function ctt(e){return ue(e)&&e.ok===!1?e.error:null}async function bT(e){if(et(e))return{ok:!1,error:new Error("no promise provided")};try{return _N(await e)}catch(t){return wN(t)}}async function yyt(e){try{return _N(await e)}catch(t){return Eg(t),wN(t)}}function Eie(e,t){return new Ap(e,t)}let Ap=class extends rr{constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=kS(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(i=>{this._result=_N(i),this._cleanup()},i=>{this._result=wN(i),this._cleanup()}),this._abortHandle=aa(t,this.abort)}get value(){return att(this._result)}get error(){return ctt(this._result)}get finished(){return ue(this._result)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=Dn(this._abortHandle),this._abortController=null}};d([f()],Ap.prototype,"value",null),d([f()],Ap.prototype,"error",null),d([f()],Ap.prototype,"finished",null),d([f()],Ap.prototype,"promise",void 0),d([f()],Ap.prototype,"_result",void 0),Ap=d([se("esri.core.asyncUtils.ReactiveTask")],Ap);function _T(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function utt(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function dtt(e,t,r,i,n,o,s,l,a,c,u,p,h,m,y,v){const _=new Float32Array(16);return _[0]=e,_[1]=t,_[2]=r,_[3]=i,_[4]=n,_[5]=o,_[6]=s,_[7]=l,_[8]=a,_[9]=c,_[10]=u,_[11]=p,_[12]=h,_[13]=m,_[14]=y,_[15]=v,_}function ptt(e,t){return new Float32Array(e,t,16)}const htt=_T();Object.freeze(Object.defineProperty({__proto__:null,create:_T,clone:utt,fromValues:dtt,createView:ptt,IDENTITY:htt},Symbol.toStringTag,{value:"Module"}));const ftt=(e,t)=>{const r=Kh(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return Nd(r,r)},mtt=(e,t)=>{const r=Kh(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return Nd(r,r)},gtt=(e,t)=>{const r=1-t,i=Kh(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return Nd(i,i)},ytt=(e,t)=>{const r=Math.sin(t*Math.PI/180),i=Math.cos(t*Math.PI/180),n=Kh(e,.213+.787*i-.213*r,.715-.715*i-.715*r,.072-.072*i+.928*r,0,.213-.213*i+.143*r,.715+.285*i+.14*r,.072-.072*i-.283*r,0,.213-.213*i-.787*r,.715-.715*i+.715*r,.072+.928*i+.072*r,0,0,0,0,1);return Nd(n,n)},vtt=(e,t)=>{const r=1-2*t,i=Kh(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return Nd(i,i)},btt=(e,t)=>{const r=Kh(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return Nd(r,r)},_tt=(e,t)=>{const r=1-t,i=Kh(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return Nd(i,i)};class wT{constructor(t,r,i){this.strength=t,this.radius=r,this.threshold=i,this.type="bloom"}interpolate(t,r,i){this.strength=Ps(t.strength,r.strength,i),this.radius=Ps(t.radius,r.radius,i),this.threshold=Ps(t.threshold,r.threshold,i)}clone(){return new wT(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:ow(this.radius),strength:this.strength,threshold:this.threshold}}}class xT{constructor(t){this.radius=t,this.type="blur"}interpolate(t,r,i){this.radius=Math.round(Ps(t.radius,r.radius,i))}clone(){return new xT(this.radius)}toJSON(){return{type:"blur",radius:ow(this.radius)}}}class x1{constructor(t,r){this.type=t,this.amount=r,this.type!=="invert"&&this.type!=="grayscale"&&this.type!=="sepia"||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,r,i){this.amount=Ps(t.amount,r.amount,i),this._updateMatrix()}clone(){return new x1(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const t=this._colorMatrix||_T();switch(this.type){case"brightness":this._colorMatrix=ftt(t,this.amount);break;case"contrast":this._colorMatrix=mtt(t,this.amount);break;case"grayscale":this._colorMatrix=gtt(t,this.amount);break;case"invert":this._colorMatrix=vtt(t,this.amount);break;case"saturate":this._colorMatrix=btt(t,this.amount);break;case"sepia":this._colorMatrix=_tt(t,this.amount)}}}class CT{constructor(t,r,i,n){this.offsetX=t,this.offsetY=r,this.blurRadius=i,this.color=n,this.type="drop-shadow"}interpolate(t,r,i){this.offsetX=Ps(t.offsetX,r.offsetX,i),this.offsetY=Ps(t.offsetY,r.offsetY,i),this.blurRadius=Ps(t.blurRadius,r.blurRadius,i),this.color[0]=Math.round(Ps(t.color[0],r.color[0],i)),this.color[1]=Math.round(Ps(t.color[1],r.color[1],i)),this.color[2]=Math.round(Ps(t.color[2],r.color[2],i)),this.color[3]=Ps(t.color[3],r.color[3],i)}clone(){return new CT(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const t=[...this.color];return t[3]*=255,{type:"drop-shadow",xoffset:ow(this.offsetX),yoffset:ow(this.offsetY),blurRadius:ow(this.blurRadius),color:t}}}class kT{constructor(t){this.angle=t,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,r,i){this.angle=Ps(t.angle,r.angle,i),this._updateMatrix()}clone(){return new kT(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const t=this._colorMatrix||_T();this._colorMatrix=ytt(t,this.angle)}}class ST{constructor(t){this.amount=t,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(t,r,i){this.amount=Ps(t.amount,r.amount,i)}clone(){return new ST(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function Ps(e,t,r){return e+(t-e)*r}function ow(e){return Math.round(1e3*kd(e))/1e3}function wtt(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new x1(e.type,0);case"saturate":case"brightness":case"contrast":return new x1(e.type,1);case"opacity":return new ST(1);case"hue-rotate":return new kT(0);case"blur":return new xT(0);case"drop-shadow":return new CT(0,0,0,[...kD("transparent")]);case"bloom":return new wT(0,0,1)}}function xtt(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every((i,n)=>i.type===r[n].type)}function Ctt(e,t){const r=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let n=i.length;n<r.length;n++)i.push(wtt(r[n]))}function ktt(e){const t=e[0];return!!t&&"type"in t}var e7,t7,Tie={exports:{}};function Aie(e){if(!e||e.length===0)return null;if(typeof e=="string"){const r=r7(e);return r&&r.length!==0?r:null}const t=e.map(r=>{if(!Number.isFinite(r.scale)||r.scale<=0)throw new ze("effect:invalid-scale","scale must be finite and greater than 0",{stop:r});return{scale:r.scale,effects:r7(r.value)}});t.sort((r,i)=>i.effects.length-r.effects.length);for(let r=0;r<t.length-1;r++){if(!xtt(t[r].effects,t[r+1].effects))throw new ze("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[r].effects,b:t[r+1].effects});Ctt(t[r].effects,t[r+1].effects)}return t.sort((r,i)=>i.scale-r.scale),t}function r7(e){let t;if(!e)return[];try{t=Tie.exports.parse(e)}catch(r){throw new ze("effect:invalid-syntax","Invalid effect syntax",{value:e,error:r})}return t.map(r=>Stt(r))}function Stt(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return Ett(e);case"opacity":return Ttt(e);case"hue-rotate":return Att(e);case"blur":return Mtt(e);case"drop-shadow":return Itt(e);case"bloom":return Ptt(e)}}catch(t){throw t.details.filter=e,t}throw new ze("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}function Ett(e){let t=1;return R0(e.parameters,1),e.parameters.length===1&&(t=Va(e.parameters[0])),new x1(e.name,t)}function Ttt(e){let t=1;return R0(e.parameters,1),e.parameters.length===1&&(t=Va(e.parameters[0])),new ST(t)}function Att(e){let t=0;return R0(e.parameters,1),e.parameters.length===1&&(t=Ntt(e.parameters[0])),new kT(t)}function Mtt(e){let t=0;return R0(e.parameters,1),e.parameters.length===1&&(t=kN(e.parameters[0]),mx(t,e.parameters[0])),new xT(t)}function Itt(e){const t=[];let r=null;for(const i of e.parameters)if(i.type==="color"){if(t.length&&Object.freeze(t),r)throw new ze("effect:type-error","Accepts only one color",{});r=Ftt(i)}else{const n=kN(i);if(Object.isFrozen(t))throw new ze("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(n),t.length===3&&mx(n,i)}if(t.length<2||t.length>3)throw new ze("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new CT(t[0],t[1],t[2]||0,r||Mie("black"))}function Ptt(e){let t=1,r=0,i=0;return R0(e.parameters,3),e.parameters[0]&&(t=Va(e.parameters[0])),e.parameters[1]&&(r=kN(e.parameters[1]),mx(r,e.parameters[1])),e.parameters[2]&&(i=Va(e.parameters[2])),new wT(t,r,i)}function R0(e,t){if(e.length>t)throw new ze("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function ET(e){if(e.type==="color")return"<color>";if(e.unit){if(CN[e.unit])return"<length>";if(xN[e.unit])return"<angle>";if(e.unit==="%")return"<percentage>"}return"<double>"}function mx(e,t){if(e<0)throw new ze("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}function $tt(e){if(e.type!=="quantity"||e.unit!==null)throw new ze("effect:type-error",`Expected <double>, Actual: ${ET(e)}`,{term:e})}function Ott(e){if(e.type!=="quantity"||e.unit!==null&&e.unit!=="%")throw new ze("effect:type-error",`Expected <double> or <percentage>, Actual: ${ET(e)}`,{term:e})}t7=function(){function e(n,o){function s(){this.constructor=n}s.prototype=o.prototype,n.prototype=new s}function t(n,o,s,l){var a=Error.call(this,n);return Object.setPrototypeOf&&Object.setPrototypeOf(a,t.prototype),a.expected=o,a.found=s,a.location=l,a.name="SyntaxError",a}function r(n,o,s){return s=s||" ",n.length>o?n:(o-=n.length,n+(s+=s.repeat(o)).slice(0,o))}function i(n,o){var s,l={},a=(o=o!==void 0?o:{}).grammarSource,c={start:W0},u=W0,p="none",h=")",m=",",y="(",v="%",_="px",x="cm",S="mm",C="in",E="pt",T="pc",w="deg",I="rad",M="grad",L="turn",R="#",W=".",z="e",j=/^[ \t\n\r]/,U=/^[a-z\-]/,Z=/^[0-9a-fA-F]/,Q=/^[+\-]/,B=/^[0-9]/,V=Sl("none"),H=sn("none",!1),ee=sn(")",!1),ce=sn(",",!1),re=Sl("whitespace"),fe=Vd([" "," ",`
- `,"\r"],!1,!1),Ne=Sl("function"),de=sn("(",!1),_e=Sl("identifier"),ae=Vd([["a","z"],"-"],!1,!1),X=Sl("percentage"),he=sn("%",!1),$e=Sl("length"),Je=sn("px",!1),ne=sn("cm",!1),pe=sn("mm",!1),ge=sn("in",!1),Se=sn("pt",!1),xe=sn("pc",!1),be=Sl("angle"),Qe=sn("deg",!1),Fe=sn("rad",!1),Me=sn("grad",!1),Ie=sn("turn",!1),Pe=Sl("number"),Xe=Sl("color"),dt=sn("#",!1),gt=Vd([["0","9"],["a","f"],["A","F"]],!1,!1),Dt=Vd(["+","-"],!1,!1),Jt=Vd([["0","9"]],!1,!1),Bt=sn(".",!1),Le=sn("e",!1),st=function(){return[]},It=function(Ce,pt){return{type:"function",name:Ce,parameters:pt||[]}},ie=function(Ce,pt){return pt.length>0?Lx(Ce,pt,3):[Ce]},we=function(Ce){return{type:"quantity",value:Ce.value,unit:Ce.unit}},qe=function(Ce){return{type:"color",colorType:Ce.type,value:Ce.value}},it=function(Ce){return Ce},Zt=function(){return jd()},Cr=function(Ce){return{value:Ce,unit:"%"}},Pi=function(Ce){return{value:Ce,unit:"px"}},fn=function(Ce){return{value:Ce,unit:"cm"}},Kr=function(Ce){return{value:Ce,unit:"mm"}},Dr=function(Ce){return{value:Ce,unit:"in"}},Ze=function(Ce){return{value:Ce,unit:"pt"}},Nt=function(Ce){return{value:Ce,unit:"pc"}},fr=function(Ce){return{value:Ce,unit:"deg"}},Gr=function(Ce){return{value:Ce,unit:"rad"}},Mo=function(Ce){return{value:Ce,unit:"grad"}},bo=function(Ce){return{value:Ce,unit:"turn"}},zd=function(Ce){return{value:Ce,unit:null}},qT=function(){return{type:"hex",value:jd()}},YT=function(Ce){return{type:"function",value:Ce}},Ax=function(){return{type:"named",value:jd()}},KT=function(){return parseFloat(jd())},tt=0,$i=0,$g=[{line:1,column:1}],_o=0,Og=[],tr=0;if("startRule"in o){if(!(o.startRule in c))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');u=c[o.startRule]}function jd(){return n.substring($i,tt)}function sn(Ce,pt){return{type:"literal",text:Ce,ignoreCase:pt}}function Vd(Ce,pt,Mt){return{type:"class",parts:Ce,inverted:pt,ignoreCase:Mt}}function ZT(){return{type:"end"}}function Sl(Ce){return{type:"other",description:Ce}}function Mx(Ce){var pt,Mt=$g[Ce];if(Mt)return Mt;for(pt=Ce-1;!$g[pt];)pt--;for(Mt={line:(Mt=$g[pt]).line,column:Mt.column};pt<Ce;)n.charCodeAt(pt)===10?(Mt.line++,Mt.column=1):Mt.column++,pt++;return $g[Ce]=Mt,Mt}function Bd(Ce,pt){var Mt=Mx(Ce),Ur=Mx(pt);return{source:a,start:{offset:Ce,line:Mt.line,column:Mt.column},end:{offset:pt,line:Ur.line,column:Ur.column}}}function Or(Ce){tt<_o||(tt>_o&&(_o=tt,Og=[]),Og.push(Ce))}function Ix(Ce,pt,Mt){return new t(t.buildMessage(Ce,pt),Ce,pt,Mt)}function W0(){var Ce;return(Ce=Px())===l&&(Ce=QT()),Ce}function Px(){var Ce,pt;return tr++,Ce=tt,wn(),n.substr(tt,4)===p?(pt=p,tt+=4):(pt=l,tr===0&&Or(H)),pt!==l?(wn(),$i=Ce,Ce=st()):(tt=Ce,Ce=l),tr--,Ce===l&&tr===0&&Or(V),Ce}function QT(){var Ce,pt;if(Ce=[],(pt=Qh())!==l)for(;pt!==l;)Ce.push(pt),pt=Qh();else Ce=l;return Ce}function Qh(){var Ce,pt,Mt,Ur;return Ce=tt,wn(),(pt=$x())!==l?(wn(),(Mt=JT())===l&&(Mt=null),wn(),n.charCodeAt(tt)===41?(Ur=h,tt++):(Ur=l,tr===0&&Or(ee)),Ur!==l?(wn(),$i=Ce,Ce=It(pt,Mt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce}function JT(){var Ce,pt,Mt,Ur,wi,Fi,ro,Dg;if(Ce=tt,(pt=H0())!==l){for(Mt=[],Ur=tt,wi=wn(),n.charCodeAt(tt)===44?(Fi=m,tt++):(Fi=l,tr===0&&Or(ce)),Fi===l&&(Fi=null),ro=wn(),(Dg=H0())!==l?Ur=wi=[wi,Fi,ro,Dg]:(tt=Ur,Ur=l);Ur!==l;)Mt.push(Ur),Ur=tt,wi=wn(),n.charCodeAt(tt)===44?(Fi=m,tt++):(Fi=l,tr===0&&Or(ce)),Fi===l&&(Fi=null),ro=wn(),(Dg=H0())!==l?Ur=wi=[wi,Fi,ro,Dg]:(tt=Ur,Ur=l);$i=Ce,Ce=ie(pt,Mt)}else tt=Ce,Ce=l;return Ce}function H0(){var Ce,pt;return Ce=tt,(pt=Ox())===l&&(pt=Io())===l&&(pt=Ud())===l&&(pt=Rg()),pt!==l&&($i=Ce,pt=we(pt)),(Ce=pt)===l&&(Ce=tt,(pt=XT())!==l&&($i=Ce,pt=qe(pt)),Ce=pt),Ce}function wn(){var Ce,pt;for(tr++,Ce=[],j.test(n.charAt(tt))?(pt=n.charAt(tt),tt++):(pt=l,tr===0&&Or(fe));pt!==l;)Ce.push(pt),j.test(n.charAt(tt))?(pt=n.charAt(tt),tt++):(pt=l,tr===0&&Or(fe));return tr--,pt=l,tr===0&&Or(re),Ce}function $x(){var Ce,pt,Mt;return tr++,Ce=tt,(pt=Lg())!==l?(n.charCodeAt(tt)===40?(Mt=y,tt++):(Mt=l,tr===0&&Or(de)),Mt!==l?($i=Ce,Ce=it(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),tr--,Ce===l&&(pt=l,tr===0&&Or(Ne)),Ce}function Lg(){var Ce,pt,Mt;if(tr++,Ce=tt,pt=[],U.test(n.charAt(tt))?(Mt=n.charAt(tt),tt++):(Mt=l,tr===0&&Or(ae)),Mt!==l)for(;Mt!==l;)pt.push(Mt),U.test(n.charAt(tt))?(Mt=n.charAt(tt),tt++):(Mt=l,tr===0&&Or(ae));else pt=l;return pt!==l&&($i=Ce,pt=Zt()),tr--,(Ce=pt)===l&&(pt=l,tr===0&&Or(_e)),Ce}function Ox(){var Ce,pt,Mt;return tr++,Ce=tt,wn(),(pt=fs())!==l?(n.charCodeAt(tt)===37?(Mt=v,tt++):(Mt=l,tr===0&&Or(he)),Mt!==l?($i=Ce,Ce=Cr(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),tr--,Ce===l&&tr===0&&Or(X),Ce}function Io(){var Ce,pt,Mt;return tr++,Ce=tt,wn(),(pt=fs())!==l?(n.substr(tt,2)===_?(Mt=_,tt+=2):(Mt=l,tr===0&&Or(Je)),Mt!==l?($i=Ce,Ce=Pi(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,wn(),(pt=fs())!==l?(n.substr(tt,2)===x?(Mt=x,tt+=2):(Mt=l,tr===0&&Or(ne)),Mt!==l?($i=Ce,Ce=fn(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,wn(),(pt=fs())!==l?(n.substr(tt,2)===S?(Mt=S,tt+=2):(Mt=l,tr===0&&Or(pe)),Mt!==l?($i=Ce,Ce=Kr(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,wn(),(pt=fs())!==l?(n.substr(tt,2)===C?(Mt=C,tt+=2):(Mt=l,tr===0&&Or(ge)),Mt!==l?($i=Ce,Ce=Dr(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,wn(),(pt=fs())!==l?(n.substr(tt,2)===E?(Mt=E,tt+=2):(Mt=l,tr===0&&Or(Se)),Mt!==l?($i=Ce,Ce=Ze(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,wn(),(pt=fs())!==l?(n.substr(tt,2)===T?(Mt=T,tt+=2):(Mt=l,tr===0&&Or(xe)),Mt!==l?($i=Ce,Ce=Nt(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l)))))),tr--,Ce===l&&tr===0&&Or($e),Ce}function Ud(){var Ce,pt,Mt;return tr++,Ce=tt,(pt=fs())!==l?(n.substr(tt,3)===w?(Mt=w,tt+=3):(Mt=l,tr===0&&Or(Qe)),Mt!==l?($i=Ce,Ce=fr(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,(pt=fs())!==l?(n.substr(tt,3)===I?(Mt=I,tt+=3):(Mt=l,tr===0&&Or(Fe)),Mt!==l?($i=Ce,Ce=Gr(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,(pt=fs())!==l?(n.substr(tt,4)===M?(Mt=M,tt+=4):(Mt=l,tr===0&&Or(Me)),Mt!==l?($i=Ce,Ce=Mo(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l),Ce===l&&(Ce=tt,(pt=fs())!==l?(n.substr(tt,4)===L?(Mt=L,tt+=4):(Mt=l,tr===0&&Or(Ie)),Mt!==l?($i=Ce,Ce=bo(pt)):(tt=Ce,Ce=l)):(tt=Ce,Ce=l)))),tr--,Ce===l&&(pt=l,tr===0&&Or(be)),Ce}function Rg(){var Ce,pt;return tr++,Ce=tt,wn(),(pt=fs())!==l?($i=Ce,Ce=zd(pt)):(tt=Ce,Ce=l),tr--,Ce===l&&tr===0&&Or(Pe),Ce}function XT(){var Ce,pt,Mt,Ur;if(tr++,Ce=tt,n.charCodeAt(tt)===35?(pt=R,tt++):(pt=l,tr===0&&Or(dt)),pt!==l){if(Mt=[],Z.test(n.charAt(tt))?(Ur=n.charAt(tt),tt++):(Ur=l,tr===0&&Or(gt)),Ur!==l)for(;Ur!==l;)Mt.push(Ur),Z.test(n.charAt(tt))?(Ur=n.charAt(tt),tt++):(Ur=l,tr===0&&Or(gt));else Mt=l;Mt!==l?($i=Ce,Ce=qT()):(tt=Ce,Ce=l)}else tt=Ce,Ce=l;return Ce===l&&(Ce=tt,(pt=Qh())!==l&&($i=Ce,pt=YT(pt)),(Ce=pt)===l&&(Ce=tt,(pt=Lg())!==l&&($i=Ce,pt=Ax()),Ce=pt)),tr--,Ce===l&&(pt=l,tr===0&&Or(Xe)),Ce}function fs(){var Ce,pt,Mt,Ur,wi,Fi,ro;for(Ce=tt,Q.test(n.charAt(tt))?(n.charAt(tt),tt++):tr===0&&Or(Dt),pt=tt,Mt=[],B.test(n.charAt(tt))?(Ur=n.charAt(tt),tt++):(Ur=l,tr===0&&Or(Jt));Ur!==l;)Mt.push(Ur),B.test(n.charAt(tt))?(Ur=n.charAt(tt),tt++):(Ur=l,tr===0&&Or(Jt));if(n.charCodeAt(tt)===46?(Ur=W,tt++):(Ur=l,tr===0&&Or(Bt)),Ur!==l){if(wi=[],B.test(n.charAt(tt))?(Fi=n.charAt(tt),tt++):(Fi=l,tr===0&&Or(Jt)),Fi!==l)for(;Fi!==l;)wi.push(Fi),B.test(n.charAt(tt))?(Fi=n.charAt(tt),tt++):(Fi=l,tr===0&&Or(Jt));else wi=l;wi!==l?pt=Mt=[Mt,Ur,wi]:(tt=pt,pt=l)}else tt=pt,pt=l;if(pt===l)if(pt=[],B.test(n.charAt(tt))?(Mt=n.charAt(tt),tt++):(Mt=l,tr===0&&Or(Jt)),Mt!==l)for(;Mt!==l;)pt.push(Mt),B.test(n.charAt(tt))?(Mt=n.charAt(tt),tt++):(Mt=l,tr===0&&Or(Jt));else pt=l;if(pt!==l){if(Mt=tt,n.charCodeAt(tt)===101?(Ur=z,tt++):(Ur=l,tr===0&&Or(Le)),Ur!==l){if(Q.test(n.charAt(tt))?(wi=n.charAt(tt),tt++):(wi=l,tr===0&&Or(Dt)),wi===l&&(wi=null),Fi=[],B.test(n.charAt(tt))?(ro=n.charAt(tt),tt++):(ro=l,tr===0&&Or(Jt)),ro!==l)for(;ro!==l;)Fi.push(ro),B.test(n.charAt(tt))?(ro=n.charAt(tt),tt++):(ro=l,tr===0&&Or(Jt));else Fi=l;Fi!==l?Mt=Ur=[Ur,wi,Fi]:(tt=Mt,Mt=l)}else tt=Mt,Mt=l;Mt===l&&(Mt=null),$i=Ce,Ce=KT()}else tt=Ce,Ce=l;return Ce}function G0(Ce,pt){return Ce.map(function(Mt){return Mt[pt]})}function Lx(Ce,pt,Mt){return[Ce].concat(G0(pt,Mt))}if((s=u())!==l&&tt===n.length)return s;throw s!==l&&tt<n.length&&Or(ZT()),Ix(Og,_o<n.length?n.charAt(_o):null,_o<n.length?Bd(_o,_o+1):Bd(_o,_o))}return e(t,Error),t.prototype.format=function(n){var o="Error: "+this.message;if(this.location){var s,l=null;for(s=0;s<n.length;s++)if(n[s].source===this.location.source){l=n[s].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,c=this.location.source+":"+a.line+":"+a.column;if(l){var u=this.location.end,p=r("",a.line.toString().length," "),h=l[a.line-1],m=(a.line===u.line?u.column:h.length+1)-a.column||1;o+=`
- --> `+c+`
- `+p+` |
- `+a.line+" | "+h+`
- `+p+" | "+r("",a.column-1," ")+r("",m,"^")}else o+=`
- at `+c}return o},t.buildMessage=function(n,o){var s={literal:function(m){return'"'+a(m.text)+'"'},class:function(m){var y=m.parts.map(function(v){return Array.isArray(v)?c(v[0])+"-"+c(v[1]):c(v)});return"["+(m.inverted?"^":"")+y.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(m){return m.description}};function l(m){return m.charCodeAt(0).toString(16).toUpperCase()}function a(m){return m.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(y){return"\\x0"+l(y)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(y){return"\\x"+l(y)})}function c(m){return m.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(y){return"\\x0"+l(y)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(y){return"\\x"+l(y)})}function u(m){return s[m.type](m)}function p(m){var y,v,_=m.map(u);if(_.sort(),_.length>0){for(y=1,v=1;y<_.length;y++)_[y-1]!==_[y]&&(_[v]=_[y],v++);_.length=v}switch(_.length){case 1:return _[0];case 2:return _[0]+" or "+_[1];default:return _.slice(0,-1).join(", ")+", or "+_[_.length-1]}}function h(m){return m?'"'+a(m)+'"':"end of input"}return"Expected "+p(n)+" but "+h(o)+" found."},{SyntaxError:t,parse:i}},(e7=Tie).exports&&(e7.exports=t7());const xN={deg:1,grad:.9,rad:180/Math.PI,turn:360};function Ltt(e){if(e.type!=="quantity"||!(e.value===0&&e.unit===null||e.unit&&xN[e.unit]!=null))throw new ze("effect:type-error",`Expected <angle>, Actual: ${ET(e)}`,{term:e})}const CN={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function Rtt(e){if(e.type!=="quantity"||!(e.value===0&&e.unit===null||e.unit&&CN[e.unit]!=null))throw new ze("effect:type-error",`Expected <length>, Actual: ${ET(e)}`,{term:e})}function Va(e){Ott(e);const t=e.value;return mx(t,e),e.unit==="%"?.01*t:t}function Dtt(e){return $tt(e),mx(e.value,e),e.value}function Ntt(e){return Ltt(e),e.value*xN[e.unit]||0}function kN(e){return Rtt(e),e.value*CN[e.unit]||0}function Ftt(e){switch(e.colorType){case"hex":return AHe(e.value);case"named":return Mie(e.value);case"function":return Vtt(e.value)}}function Mie(e){if(!iee(e))throw new ze("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return THe(e)}const ztt=/^rgba?/i,jtt=/^hsla?/i;function Vtt(e){if(R0(e.parameters,4),ztt.test(e.name))return[Va(e.parameters[0]),Va(e.parameters[1]),Va(e.parameters[2]),e.parameters[3]?Va(e.parameters[3]):1];if(jtt.test(e.name))return nee(Dtt(e.parameters[0]),Va(e.parameters[1]),Va(e.parameters[2]),e.parameters[3]?Va(e.parameters[3]):1);throw new ze("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}function SN(e,t,r){var i;try{return Utt(e)}catch(n){(i=r==null?void 0:r.messages)==null||i.push(n)}return null}function EN(e,t,r,i){try{const n=Btt(e);Wo(r,n,t)}catch(n){i.messages&&i.messages.push(n)}}function Btt(e){const t=Aie(e);return t?ktt(t)?t.map(r=>r.toJSON()):t.map(({scale:r,effects:i})=>({scale:r,value:i.map(n=>n.toJSON())})):null}function Utt(e){if(!e||e.length===0)return null;if(Wtt(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:i7(r.value)});return t}return i7(e)}function Wtt(e){const t=e[0];return!!t&&"scale"in t}function i7(e){if(!e||!e.length)return"";const t=[];for(const r of e){let i=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":i=[wu(r,"amount")];break;case"blur":i=[wu(r,"radius","pt")];break;case"hue-rotate":i=[wu(r,"angle","deg")];break;case"drop-shadow":i=[wu(r,"xoffset","pt"),wu(r,"yoffset","pt"),wu(r,"blurRadius","pt"),Htt(r,"color")];break;case"bloom":i=[wu(r,"strength"),wu(r,"radius","pt"),wu(r,"threshold")]}const n=`${r.type}(${i.filter(Boolean).join(" ")})`;Aie(n),t.push(n)}return t.join(" ")}function wu(e,t,r){if(e[t]==null)throw new ze("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function Htt(e,t){if(e[t]==null)throw new ze("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}const jM=-3;var Yp;(function(e){e[e.ALL=0]="ALL",e[e.SOME=1]="SOME"})(Yp||(Yp={}));class vyt{constructor(t,r,i){this._namespace=t,this._storage=r,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",i&&(this._storage.registerRemoveFunc(this._namespace,i),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,r,i,n=0){this._storage.put(this._namespace+t,r,i,n)}get(t){const r=this._storage.get(this._namespace+t);return r===void 0?++this._miss:++this._hit,r}pop(t){const r=this._storage.pop(this._namespace+t);return r===void 0?++this._miss:++this._hit,r}updateSize(t,r,i){this._storage.updateSize(this._namespace+t,r,i)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class Iie{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new gh,this._users=new gh}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,r){this._removeFuncs.push([t,r])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace(r=>r[0]!==t)}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,r,i,n){const o=this._db.get(t);if(o&&(this._size-=o.size,this._db.delete(t),o.entry!==r&&this._notifyRemove(t,o.entry,Yp.ALL)),i>this._maxSize)return void this._notifyRemove(t,r,Yp.ALL);if(r===void 0)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return void console.warn("Refusing to cache entry with invalid size "+i);const s=1+Math.max(n,jM)-jM;this._db.set(t,{entry:r,size:i,lifetime:s,lives:s}),this._size+=i,this._checkSizeLimit()}updateSize(t,r,i){const n=this._db.get(t);if(n&&n.entry===r){for(this._size-=n.size;i>this._maxSize;){const o=this._notifyRemove(t,r,Yp.SOME);if(!(ue(o)&&o>0))return void this._db.delete(t);i=o}n.size=i,this._size+=i,this._checkSizeLimit()}}pop(t){const r=this._db.get(t);if(r)return this._size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(t){const r=this._db.get(t);if(r!==void 0)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},r={},i=new Array;this._db.forEach((s,l)=>{const a=s.lifetime;i[a]=(i[a]||0)+s.size,this._users.forAll(c=>{const u=c.namespace;if(l.startsWith(u)){const p=r[u]||0;r[u]=p+s.size}})});const n={};this._users.forAll(s=>{const l=s.namespace;if(!isNaN(s.hitRate)&&s.hitRate>0){const a=r[l]||0;r[l]=a,n[l]=Math.round(100*s.hitRate)+"%"}else n[l]="0%"});const o=Object.keys(r);o.sort((s,l)=>r[l]-r[s]),o.forEach(s=>t[s]=Math.round(r[s]/2**20)+"MB / "+n[s]);for(let s=i.length-1;s>=0;--s){const l=i[s];l&&(t["Priority "+(s+jM-1)]=Math.round(l/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll(t=>t.resetHitRate())}clear(t){this._db.forEach((r,i)=>{i.startsWith(t)&&(this._size-=r.size,this._db.delete(i),this._notifyRemove(i,r.entry,Yp.ALL))})}clearAll(){this._db.forEach((t,r)=>this._notifyRemove(r,t.entry,Yp.ALL)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,r,i){let n;return this._removeFuncs.some(o=>{if(t.startsWith(o[0])){const s=o[1](r,i);return typeof s=="number"&&(n=s),!0}return!1}),n}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,r]of this._db){if(this._db.delete(t),r.lives<=1){this._size-=r.size;const i=this._notifyRemove(t,r.entry,Yp.SOME);ue(i)&&i>0&&(this._size+=i,r.lives=r.lifetime,r.size=i,this._db.set(t,r))}else--r.lives,this._db.set(t,r);if(this._size<=.9*this.maxSize)return}}}class Gtt{constructor(t,r){this._storage=new Iie,this._storage.maxSize=t,r&&this._storage.registerRemoveFunc("",r)}put(t,r){this._storage.put(t,r,1,1)}pop(t){return this._storage.pop(t)}get(t){return this._storage.get(t)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}new Gtt(1e3);new wr([128,128,128]);const qtt=new wr("white");function Bg(e,t){if(!e)return null;let r=null;return mg(e)?r=Ytt(e):uT(e)&&(r=e.color?new wr(e.color):null),r?C1(r,t):null}function Ytt(e){const t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(i=>{var n;i.type==="object"&&((n=i.resource)==null?void 0:n.href)!=null||(r=i.type==="water"?i.color:ue(i.material)?i.material.color:null)}),r?new wr(r):null}function C1(e,t){if(t==null||e==null)return e;const r=e.toRgba();return r[3]=r[3]*t,new wr(r)}function Ktt(e,t,r){const i=e.symbolLayers;if(!i)return;const n=o=>{var l;const s=ue(o)?o:null;return C1(t=(l=t!=null?t:s)!=null?l:r!=null?qtt:null,r)};i.forEach(o=>{var s;if(o.type!=="object"||((s=o.resource)==null?void 0:s.href)==null||t)if(o.type==="water")o.color=n(o.color);else{const l=ue(o.material)?o.material.color:null,a=n(l);et(o.material)?o.material=new bl({color:a}):o.material.color=a,r!=null&&"outline"in o&&ue(o.outline)&&ue(o.outline.color)&&(o.outline.color=C1(o.outline.color,r))}})}function Ztt(e,t,r){(t=t!=null?t:e.color)&&(e.color=C1(t,r)),r!=null&&"outline"in e&&e.outline&&e.outline.color&&(e.outline.color=C1(e.outline.color,r))}function VM(e,t,r){e&&(t||r!=null)&&(t&&(t=new wr(t)),mg(e)?Ktt(e,t,r):uT(e)&&Ztt(e,t,r))}async function Qtt(e,t){const r=e.symbolLayers;r&&await stt(r,async i=>Jtt(i,t))}async function Jtt(e,t){switch(e.type){case"extrude":ert(e,t);break;case"icon":case"line":case"text":Xtt(e,t);break;case"path":rrt(e,t);break;case"object":await trt(e,t)}}function Xtt(e,t){const r=Pie(t);ue(r)&&(e.size=r)}function Pie(e){for(const t of e)if(typeof t=="number")return t;return null}function ert(e,t){e.size=typeof t[2]=="number"?t[2]:0}async function trt(e,t){const{resourceSize:r,symbolSize:i}=await irt(e),n=$ie(t,r,i);e.width=sw(t[0],i[0],r[0],n),e.depth=sw(t[1],i[1],r[1],n),e.height=sw(t[2],i[2],r[2],n)}function rrt(e,t){const r=$ie(t,uee,[e.width,void 0,e.height]);e.width=sw(t[0],e.width,1,r),e.height=sw(t[2],e.height,1,r)}function $ie(e,t,r){for(let i=0;i<3;i++){const n=e[i];switch(n){case"symbol-value":{const o=r[i];return o!=null?o/t[i]:1}case"proportional":break;default:if(n&&t[i])return n/t[i]}}return 1}async function irt(e){const t=await ut(()=>import("./symbolLayerUtils.f600e18d.js"),[]),r=await t.computeObjectLayerResourceSize(e,10),{width:i,height:n,depth:o}=e,s=[i,o,n];let l=1;for(let a=0;a<3;a++){const c=s[a];if(c!=null){l=c/r[a];break}}for(let a=0;a<3;a++)s[a]==null&&(s[a]=r[a]*l);return{resourceSize:r,symbolSize:s}}function sw(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return t!=null?t:r;default:return e}}function nrt(e,t){const r=Pie(t);if(!et(r))switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{const i=e.width/e.height;i>1?(e.width=r,e.height=r*i):(e.width=r*i,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r}}async function ort(e,t){if(e&&t)return mg(e)?Qtt(e,t):void(uT(e)&&nrt(e,t))}function srt(e,t,r){if(e&&t!=null)if(mg(e)){const i=e.symbolLayers;i&&i.forEach(n=>{if(n&&n.type==="object")switch(r){case"tilt":n.tilt=t;break;case"roll":n.roll=t;break;default:n.heading=t}})}else uT(e)&&(e.type!=="simple-marker"&&e.type!=="picture-marker"&&e.type!=="text"||(e.angle=t))}const lrt="<",art=">",crt=_D("short-date");function urt(e,t,r,i){let n="";t===0?n=`${lrt} `:t===r&&(n=`${art} `);let o=null;return o=i?Cd(e,crt):ntt(e),n+o}const drt=new wr([64,64,64]);function prt(e,t){const r=[],i=e.length-1;return e.length===5?r.push(0,2,4):r.push(0,i),e.map((n,o)=>r.includes(o)?urt(n,o,i,t):null)}async function hrt(e,t,r){let i=!1,n=[],o=[];if(e.stops){const c=e.stops;n=c.map(u=>u.value),i=c.some(u=>!!u.label),i&&(o=c.map(u=>u.label))}const s=n[0],l=n[n.length-1];if(s==null&&l==null)return null;const a=i?null:prt(n,r);return(await Promise.all(n.map(async(c,u)=>({value:c,color:e.type==="opacity"?await frt(c,e,t):(await ut(()=>Promise.resolve().then(function(){return zN}),void 0)).getColor(e,c),label:i?o[u]:a[u]})))).reverse()}async function frt(e,t,r=drt){const i=new wr(r),n=(await ut(()=>Promise.resolve().then(function(){return zN}),void 0)).getOpacity(t,e);return n!=null&&(i.a=n),i}var AO;let c_=AO=class extends xt{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new AO({color:this.color,ratio:this.ratio})}};d([f({type:wr,json:{type:[ni],default:null,write:!0}})],c_.prototype,"color",void 0),d([f({type:Number,json:{write:!0}})],c_.prototype,"ratio",void 0),c_=AO=d([se("esri.renderers.support.HeatmapColorStop")],c_);const lw=c_;function mrt(e){if(!e.colorStops)return[];const t=[...e.colorStops].filter(i=>{var n;return((n=i.color)==null?void 0:n.a)>0});let r=t.length-1;if(t&&t[0]){const i=t[r];i&&i.ratio!==1&&(t.push(new lw({ratio:1,color:i.color})),r++)}return t.map((i,n)=>{var s,l;let o="";return n===0?o=((s=e.legendOptions)==null?void 0:s.minLabel)||"low":n===r&&(o=((l=e.legendOptions)==null?void 0:l.maxLabel)||"high"),{color:i.color,label:o,ratio:i.ratio}}).reverse()}ft.getLogger("esri.renderers.support.utils");async function Xs(e,t,r){_J(e,t,()=>[]).push(...r)}async function grt(e){var r,i,n,o;const t=new Map;if(!e)return t;if("visualVariables"in e&&e.visualVariables){const s=e.visualVariables.filter(l=>l.type==="color");for(const l of s){const a=(await hrt(l)).map(c=>c.color);await Xs(t,l.field||l.valueExpression,a)}}if(e.type==="heatmap"){const s=mrt(e).map(l=>l.color);await Xs(t,e.field||e.valueExpression,s)}else if(e.type==="pie-chart"){for(const s of e.attributes)await Xs(t,s.field||s.valueExpression,[s.color]);await Xs(t,"default",[(r=e==null?void 0:e.othersCategory)==null?void 0:r.color,Bg(e.backgroundFillSymbol,null)])}else if(e.type==="dot-density"){for(const s of e.attributes)await Xs(t,s.field||s.valueExpression,[s.color]);await Xs(t,"default",[e.backgroundColor])}else if(e.type==="unique-value")if(((i=e.authoringInfo)==null?void 0:i.type)==="predominance")for(const s of(n=e.uniqueValueInfos)!=null?n:[])await Xs(t,s.value.toString(),[Bg(s.symbol,null)]);else{const s=((o=e.uniqueValueInfos)!=null?o:[]).map(p=>Bg(p.symbol,null)),{field:l,field2:a,field3:c,valueExpression:u}=e;(l||u)&&await Xs(t,l||u,s),a&&await Xs(t,a,s),c&&await Xs(t,c,s)}else if(e.type==="class-breaks"){const s=e.classBreakInfos.map(c=>Bg(c.symbol,null)),{field:l,valueExpression:a}=e;await Xs(t,l!=null?l:a,s)}else e.type==="simple"&&await Xs(t,"default",[Bg(e.symbol,null)]);return"defaultSymbol"in e&&e.defaultSymbol&&await Xs(t,"default",[Bg(e.defaultSymbol,null)]),t.forEach((s,l)=>{const a=ABe(s.filter(Boolean),(c,u)=>JSON.stringify(c)===JSON.stringify(u));t.set(l,a)}),t}var MO;let u_=MO=class extends xt{constructor(e){super(e),this.name=null,this.code=null}clone(){return new MO({name:this.name,code:this.code})}};d([f({type:String,json:{write:!0}})],u_.prototype,"name",void 0),d([f({type:[String,Number],json:{write:!0}})],u_.prototype,"code",void 0),u_=MO=d([se("esri.layers.support.CodedValue")],u_);const yrt=new Yr({inherited:"inherited",codedValue:"coded-value",range:"range"});let d_=class extends xt{constructor(e){super(e),this.name=null,this.type=null}};d([f({type:String,json:{write:!0}})],d_.prototype,"name",void 0),d([pr(yrt)],d_.prototype,"type",void 0),d_=d([se("esri.layers.support.Domain")],d_);const TT=d_;var IO;let p_=IO=class extends TT{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(i=>(String(i.code)===r&&(t=i.name),!!t))}return t}clone(){return new IO({codedValues:Ge(this.codedValues),name:this.name})}};d([f({type:[u_],json:{write:!0}})],p_.prototype,"codedValues",void 0),d([pr({codedValue:"coded-value"})],p_.prototype,"type",void 0),p_=IO=d([se("esri.layers.support.CodedValueDomain")],p_);const Oie=p_;var PO;let vk=PO=class extends TT{constructor(e){super(e),this.type="inherited"}clone(){return new PO}};d([pr({inherited:"inherited"})],vk.prototype,"type",void 0),vk=PO=d([se("esri.layers.support.InheritedDomain")],vk);const Lie=vk;var $O;let my=$O=class extends TT{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new $O({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};d([f({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&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]}}}})],my.prototype,"maxValue",void 0),d([f({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],my.prototype,"minValue",void 0),d([pr({range:"range"})],my.prototype,"type",void 0),my=$O=d([se("esri.layers.support.RangeDomain")],my);const Rie=my,Die={key:"type",base:TT,typeMap:{range:Rie,"coded-value":Oie,inherited:Lie}};function TN(e){if(!e||!e.type)return null;switch(e.type){case"range":return Rie.fromJSON(e);case"codedValue":return Oie.fromJSON(e);case"inherited":return Lie.fromJSON(e)}return null}const vrt=new Yr({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"});var OO;const brt=new Yr({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"});let Fo=OO=class extends xt{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){var i;let r=null;try{r=t?JSON.parse(t):null}catch{}return(i=r==null?void 0:r.value)!=null?i:null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?brt.fromJSON(r.fieldValueType):null}clone(){return new OO({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.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})}};d([f({type:String,json:{write:!0}})],Fo.prototype,"alias",void 0),d([f({type:[String,Number],json:{write:{allowNull:!0}}})],Fo.prototype,"defaultValue",void 0),d([f()],Fo.prototype,"description",void 0),d([Tt("description")],Fo.prototype,"readDescription",null),d([f({types:Die,json:{read:{reader:TN},write:!0}})],Fo.prototype,"domain",void 0),d([f({type:Boolean,json:{write:!0}})],Fo.prototype,"editable",void 0),d([f({type:ni,json:{write:!0}})],Fo.prototype,"length",void 0),d([f({type:String,json:{write:!0}})],Fo.prototype,"name",void 0),d([f({type:Boolean,json:{write:!0}})],Fo.prototype,"nullable",void 0),d([pr(vrt)],Fo.prototype,"type",void 0),d([f()],Fo.prototype,"valueType",void 0),d([Tt("valueType",["description"])],Fo.prototype,"readValueType",null),d([f({type:Boolean,json:{read:!1}})],Fo.prototype,"visible",void 0),Fo=OO=d([se("esri.layers.support.Field")],Fo);const AT=Fo;var LO;let id=LO=class extends xt{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new LO({mapLayerId:e,gdbVersion:t})}};d([pr({mapLayer:"map-layer"})],id.prototype,"type",void 0),d([f({type:ni,json:{write:!0}})],id.prototype,"mapLayerId",void 0),d([f({type:String,json:{write:!0}})],id.prototype,"gdbVersion",void 0),id=LO=d([se("esri.layers.support.source.MapLayerSource")],id);var RO;let Du=RO=class extends xt{constructor(e){super(e),this.type="query-table"}clone(){var s;const{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:n}=this,o={workspaceId:e,query:t,oidFields:r,spatialReference:(s=i==null?void 0:i.clone())!=null?s:void 0,geometryType:n};return new RO(o)}};d([pr({queryTable:"query-table"})],Du.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],Du.prototype,"workspaceId",void 0),d([f({type:String,json:{write:!0}})],Du.prototype,"query",void 0),d([f({type:String,json:{write:!0}})],Du.prototype,"oidFields",void 0),d([f({type:gr,json:{write:!0}})],Du.prototype,"spatialReference",void 0),d([pr(VS)],Du.prototype,"geometryType",void 0),Du=RO=d([se("esri.layers.support.source.QueryTableDataSource")],Du);var DO;let gy=DO=class extends xt{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new DO({workspaceId:e,dataSourceName:t})}};d([pr({raster:"raster"})],gy.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],gy.prototype,"dataSourceName",void 0),d([f({type:String,json:{write:!0}})],gy.prototype,"workspaceId",void 0),gy=DO=d([se("esri.layers.support.source.RasterDataSource")],gy);var NO;let Df=NO=class extends xt{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new NO({workspaceId:e,gdbVersion:t,dataSourceName:r})}};d([pr({table:"table"})],Df.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],Df.prototype,"workspaceId",void 0),d([f({type:String,json:{write:!0}})],Df.prototype,"gdbVersion",void 0),d([f({type:String,json:{write:!0}})],Df.prototype,"dataSourceName",void 0),Df=NO=d([se("esri.layers.support.source.TableDataSource")],Df);var FO,zO;const _rt=Ao()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let il=FO=class extends xt{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return n7()(e,t,r)}castLeftTableSource(e){return au(jO(),e)}readRightTableSource(e,t,r){return n7()(e,t,r)}castRightTableSource(e){return au(jO(),e)}clone(){var s,l;const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:n}=this,o={leftTableKey:e,rightTableKey:t,leftTableSource:(s=r==null?void 0:r.clone())!=null?s:void 0,rightTableSource:(l=i==null?void 0:i.clone())!=null?l:void 0,joinType:n};return new FO(o)}};d([pr({joinTable:"join-table"})],il.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],il.prototype,"leftTableKey",void 0),d([f({type:String,json:{write:!0}})],il.prototype,"rightTableKey",void 0),d([f({json:{write:!0}})],il.prototype,"leftTableSource",void 0),d([Tt("leftTableSource")],il.prototype,"readLeftTableSource",null),d([Qr("leftTableSource")],il.prototype,"castLeftTableSource",null),d([f({json:{write:!0}})],il.prototype,"rightTableSource",void 0),d([Tt("rightTableSource")],il.prototype,"readRightTableSource",null),d([Qr("rightTableSource")],il.prototype,"castRightTableSource",null),d([pr(_rt)],il.prototype,"joinType",void 0),il=FO=d([se("esri.layers.support.source.JoinTableDataSource")],il);let BM=null;function n7(){return BM||(BM=Uh({types:jO()})),BM}let UM=null;function jO(){return UM||(UM={key:"type",base:null,typeMap:{"data-layer":pl,"map-layer":id}}),UM}const wrt={key:"type",base:null,typeMap:{"join-table":il,"query-table":Du,raster:gy,table:Df}};let pl=zO=class extends xt{constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new zO({fields:e,dataSource:t})}};d([pr({dataLayer:"data-layer"})],pl.prototype,"type",void 0),d([f({type:[AT],json:{write:!0}})],pl.prototype,"fields",void 0),d([f({types:wrt,json:{write:!0}})],pl.prototype,"dataSource",void 0),pl=zO=d([se("esri.layers.support.source.DataLayerSource")],pl),pl.from=_n(pl);function byt(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function Nie(e){return typeof e=="string"?vo(e):Ge(e)}function xrt(e,t,r){const i={};for(const n in e){if(n==="declaredClass")continue;const o=e[n];if(o!=null&&typeof o!="function")if(Array.isArray(o)){i[n]=[];for(let s=0;s<o.length;s++)i[n][s]=xrt(o[s])}else if(typeof o=="object")if(o.toJSON){const s=o.toJSON(r&&r[n]);i[n]=t?s:JSON.stringify(s)}else i[n]=t?o:JSON.stringify(o);else i[n]=o}return i}const N2={102100:{maxX:20037508342788905e-9,minX:-20037508342788905e-9,plus180Line:new Xa({paths:[[[20037508342788905e-9,-20037508342788905e-9],[20037508342788905e-9,20037508342788905e-9]]],spatialReference:gr.WebMercator}),minus180Line:new Xa({paths:[[[-20037508342788905e-9,-20037508342788905e-9],[-20037508342788905e-9,20037508342788905e-9]]],spatialReference:gr.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new Xa({paths:[[[180,-180],[180,180]]],spatialReference:gr.WGS84}),minus180Line:new Xa({paths:[[[-180,-180],[-180,180]]],spatialReference:gr.WGS84})}};function Om(e,t){return Math.ceil((e-t)/(2*t))}function Fie(e,t){const r=aw(e);for(const i of r)for(const n of i)n[0]+=t;return e}function aw(e){return Wm(e)?e.rings:e.paths}async function Crt(e,t,r,i){const n=Nie(e),o=t[0].spatialReference,s={...i,query:{...n.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:Z3(t[0]),geometries:t}),cutter:JSON.stringify(r)}},l=await ri(n.path+"/cut",s),{cutIndexes:a,geometries:c=[]}=l.data;return{cutIndexes:a,geometries:c.map(u=>{const p=Ih(u);return p.spatialReference=o,p})}}function krt(e){return{geometryType:Z3(e[0]),geometries:e.map(t=>t.toJSON())}}function Srt(e,t,r){const i=AWe(t);return e.map(n=>{const o=i.fromJSON(n);return o.spatialReference=r,o})}async function Ert(e,t,r){const i=typeof e=="string"?vo(e):e,n=t[0].spatialReference,o=Z3(t[0]),s={...r,query:{...i.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify(krt(t))}},{data:l}=await ri(i.path+"/simplify",s);return Srt(l.geometries,o,n)}const zie=ft.getLogger("esri.geometry.support.normalizeUtils");function Trt(e){return e.type==="polygon"}function Art(e){return e[0].type==="polygon"}function Mrt(e){return e[0].type==="polyline"}function Irt(e,t){if(!(e instanceof Xa||e instanceof wd)){const n="straightLineDensify: the input geometry is neither polyline nor polygon";throw zie.error(n),new ze(n)}const r=aw(e),i=[];for(const n of r){const o=[];i.push(o),o.push([n[0][0],n[0][1]]);for(let s=0;s<n.length-1;s++){const l=n[s][0],a=n[s][1],c=n[s+1][0],u=n[s+1][1],p=Math.sqrt((c-l)*(c-l)+(u-a)*(u-a)),h=(u-a)/p,m=(c-l)/p,y=p/t;if(y>1){for(let S=1;S<=y-1;S++){const C=S*t,E=m*C+l,T=h*C+a;o.push([E,T])}const v=(p+Math.floor(y-1)*t)/2,_=m*v+l,x=h*v+a;o.push([_,x])}o.push([c,u])}}return Trt(e)?new wd({rings:i,spatialReference:e.spatialReference}):new Xa({paths:i,spatialReference:e.spatialReference})}function o7(e,t,r){if(t){const i=Irt(e,1e6);e=zb(i,!0)}return r&&(e=Fie(e,r)),e}function s7(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const n=Om(i,t);e[0]=i+n*(-2*t)}else if(i<r){const n=Om(i,r);e[0]=i+n*(-2*r)}}else{const i=e.x;if(i>t){const n=Om(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<r){const n=Om(i,r);e=e.clone().offset(n*(-2*r),0)}}return e}function Prt(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],o=t.geometries[i],s=aw(o);for(let l=0;l<s.length;l++){const a=s[l];a.some(c=>{if(c[0]<180)return!0;{let u=0;for(let h=0;h<a.length;h++){const m=a[h][0];u=m>u?m:u}u=Number(u.toFixed(9));const p=-360*Om(u,180);for(let h=0;h<a.length;h++){const m=o.getPoint(l,h);o.setPoint(l,h,m.clone().offset(p,0))}return!0}})}if(n===r){if(Art(e))for(const l of aw(o))e[n]=e[n].addRing(l);else if(Mrt(e))for(const l of aw(o))e[n]=e[n].addPath(l)}else r=n,e[n]=o}return e}async function jie(e,t,r){var E;if(!Array.isArray(e))return jie([e],t);t&&typeof t!="string"&&zie.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i=typeof t=="string"?t:(E=t==null?void 0:t.url)!=null?E:pi.geometryServiceUrl;let n,o,s,l,a,c,u,p,h=0;const m=[],y=[];for(const T of e)if(et(T))y.push(T);else if(n||(n=T.spatialReference,o=rc(n),s=n.isWebMercator,c=s?102100:4326,l=N2[c].maxX,a=N2[c].minX,u=N2[c].plus180Line,p=N2[c].minus180Line),o)if(T.type==="mesh")y.push(T);else if(T.type==="point")y.push(s7(T.clone(),l,a));else if(T.type==="multipoint"){const w=T.clone();w.points=w.points.map(I=>s7(I,l,a)),y.push(w)}else if(T.type==="extent"){const w=T.clone()._normalize(!1,!1,o);y.push(w.rings?new wd(w):w)}else if(T.extent){const w=T.extent,I=Om(w.xmin,a)*(2*l);let M=I===0?T.clone():Fie(T.clone(),I);w.offset(I,0),w.intersects(u)&&w.xmax!==l?(h=w.xmax>h?w.xmax:h,M=o7(M,s),m.push(M),y.push("cut")):w.intersects(p)&&w.xmin!==a?(h=w.xmax*(2*l)>h?w.xmax*(2*l):h,M=o7(M,s,360),m.push(M),y.push("cut")):y.push(M)}else y.push(T.clone());else y.push(T);let v=Om(h,l),_=-90;const x=v,S=new Xa;for(;v>0;){const T=360*v-180;S.addPath([[T,_],[T,-1*_]]),_*=-1,v--}if(m.length>0&&x>0){const T=Prt(m,await Crt(i,m,S,r)),w=[],I=[];for(let R=0;R<y.length;R++){const W=y[R];if(W!=="cut")I.push(W);else{const z=T.shift(),j=e[R];ue(j)&&j.type==="polygon"&&j.rings&&j.rings.length>1&&z.rings.length>=j.rings.length?(w.push(z),I.push("simplify")):I.push(s?yh(z):z)}}if(!w.length)return I;const M=await Ert(i,w,r),L=[];for(let R=0;R<I.length;R++){const W=I[R];W!=="simplify"?L.push(W):L.push(s?yh(M.shift()):M.shift())}return L}const C=[];for(let T=0;T<y.length;T++){const w=y[T];if(w!=="cut")C.push(w);else{const I=m.shift();C.push(s===!0?yh(I):I)}}return C}function _yt(e,t){const r=rc(t);if(r){const[i,n]=r.valid,o=n-i;if(e<i)for(;e<i;)e+=o;if(e>n)for(;e>n;)e-=o}return e}function Vie(e){const t={};for(const r in e){if(r==="declaredClass")continue;const i=e[r];if(i!=null&&typeof i!="function")if(Array.isArray(i)){t[r]=[];for(let n=0;n<i.length;n++)t[r][n]=Vie(i[n])}else typeof i=="object"?i.toJSON&&(t[r]=JSON.stringify(i)):t[r]=i}return t}var Kp;(function(e){e[e.varint=0]="varint",e[e.fixed64=1]="fixed64",e[e.delimited=2]="delimited",e[e.fixed32=5]="fixed32",e[e.unknown=99]="unknown"})(Kp||(Kp={}));const l7=4294967296,$rt=new TextDecoder("utf-8"),Ort=at("safari")||at("ios")?6:at("ff")?12:32;class qm{constructor(t,r,i=0,n=t?t.byteLength:0){this._tag=0,this._dataType=Kp.unknown,this._init(t,r,i,n)}_init(t,r,i,n){this._data=t,this._dataView=r,this._pos=i,this._end=n}asUnsafe(){return this}clone(){return new qm(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const r=this._decodeVarint();if(this._tag=r>>3,this._dataType=7&r,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;return t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?t:(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?t:(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?t:(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?t:(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?t:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();if(t!==void 0)return t>>>1^-(1&t)|0}getSInt64(){return this._decodeSVarint()}getBool(){const t=this._data[this._pos]!==0;return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,r=this._pos,i=t.getUint32(r,!0)+t.getUint32(r+4,!0)*l7;return this._skip(8),i}getSFixed64(){const t=this._dataView,r=this._pos,i=t.getUint32(r,!0)+t.getInt32(r+4,!0)*l7;return this._skip(8),i}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),r=this._pos,i=this._toString(this._data,r,r+t);return this._skip(t),i}getBytes(){const t=this._getLength(),r=this._pos,i=this._toBytes(this._data,r,r+t);return this._skip(t),i}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,r,i,n){const o=this.getMessage(),s=t(o,r,i,n);return o.release(),s}processMessage(t){const r=this.getMessage(),i=t(r);return r.release(),i}getMessage(){const t=this._getLength(),r=qm.pool.acquire();return r._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),r}release(){qm.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case Kp.varint:this._decodeVarint();break;case Kp.fixed64:this._skip(8);break;case Kp.delimited:this._skip(this._getLength());break;case Kp.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let r=this._pos,i=0,n=0;if(this._end-r>=10)do{if(n=t[r++],i|=127&n,(128&n)==0||(n=t[r++],i|=(127&n)<<7,(128&n)==0)||(n=t[r++],i|=(127&n)<<14,(128&n)==0)||(n=t[r++],i|=(127&n)<<21,(128&n)==0)||(n=t[r++],i+=268435456*(127&n),(128&n)==0)||(n=t[r++],i+=34359738368*(127&n),(128&n)==0)||(n=t[r++],i+=4398046511104*(127&n),(128&n)==0)||(n=t[r++],i+=562949953421312*(127&n),(128&n)==0)||(n=t[r++],i+=72057594037927940*(127&n),(128&n)==0)||(n=t[r++],i+=9223372036854776e3*(127&n),(128&n)==0))break;throw new Error("Varint too long!")}while(0);else{let o=1;for(;r!==this._end&&(n=t[r],(128&n)!=0);)++r,i+=(127&n)*o,o*=128;if(r===this._end)throw new Error("Varint overrun!");++r,i+=n*o}return this._pos=r,i}_decodeSVarint(){const t=this._data;let r=this._pos,i=0,n=0;const o=1&t[r];if(this._end-r>=10)do{if(n=t[r++],i|=127&n,(128&n)==0||(n=t[r++],i|=(127&n)<<7,(128&n)==0)||(n=t[r++],i|=(127&n)<<14,(128&n)==0)||(n=t[r++],i|=(127&n)<<21,(128&n)==0)||(n=t[r++],i+=268435456*(127&n),(128&n)==0)||(n=t[r++],i+=34359738368*(127&n),(128&n)==0)||(n=t[r++],i+=4398046511104*(127&n),(128&n)==0)||(n=t[r++],i+=562949953421312*(127&n),(128&n)==0)||(n=t[r++],i+=72057594037927940*(127&n),(128&n)==0)||(n=t[r++],i+=9223372036854776e3*(127&n),(128&n)==0))break;throw new Error("Varint too long!")}while(0);else{let s=1;for(;r!==this._end&&(n=t[r],(128&n)!=0);)++r,i+=(127&n)*s,s*=128;if(r===this._end)throw new Error("Varint overrun!");++r,i+=n*s}return this._pos=r,o?-(i+1)/2:i/2}_getLength(){if(this._dataType!==Kp.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,r,i){if((i=Math.min(this._end,i))-r>Ort){const s=t.subarray(r,i);return $rt.decode(s)}let n="",o="";for(let s=r;s<i;++s){const l=t[s];128&l?o+="%"+l.toString(16):(n+=decodeURIComponent(o)+String.fromCharCode(l),o="")}return o.length&&(n+=decodeURIComponent(o)),n}_toBytes(t,r,i){return i=Math.min(this._end,i),new Uint8Array(t.buffer,r,i-r)}}qm.pool=new dc(qm,void 0,e=>{e._data=null,e._dataView=null});class ls{constructor(t=[],r=[],i=!1){this.lengths=t!=null?t:[],this.coords=r!=null?r:[],this.hasIndeterminateRingOrder=i}static fromRect(t){const[r,i,n,o]=t,s=n-r,l=o-i;return new ls([5],[r,i,s,0,0,l,-s,0,0,-l])}get isPoint(){return this.lengths.length===0}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce((t,r)=>t+r)}forEachVertex(t){let r=0;this.lengths.length||t(this.coords[0],this.coords[1]);for(let i=0;i<this.lengths.length;i++){const n=this.lengths[i];for(let o=0;o<n;o++)t(this.coords[2*(o+r)],this.coords[2*(o+r)+1]);r+=n}}clone(t){return t?(t.set(this.coords),new ls(this.lengths.slice(),t,this.hasIndeterminateRingOrder)):new ls(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}class du{constructor(t=null,r={},i,n){this.geometry=t,this.attributes=r,this.centroid=i,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const t=new du(this.geometry,this.attributes,this.centroid,this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function Lrt(e){return!(et(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class wyt extends du{}class MT{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const t=new MT;return t.objectIdFieldName=this.objectIdFieldName,t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}const Bie=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class xyt{constructor(t){this._options=t,this.geometryTypes=Bie,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new MT}prepareFeatures(t){this._vertexDimension=2,t.hasZ&&this._vertexDimension++,t.hasM&&this._vertexDimension++}finishFeatureResult(t){if(!t||!t.features||!t.hasZ||!this._options.sourceSpatialReference||!t.spatialReference||So(t.spatialReference,this._options.sourceSpatialReference)||t.spatialReference.vcsWkid)return;const r=Xv(this._options.sourceSpatialReference)/Xv(t.spatialReference);if(r!==1)for(const i of t.features){if(!Lrt(i))continue;const n=i.geometry.coords;for(let o=2;o<n.length;o+=3)n[o]*=r}}addFeature(t,r){t.features.push(r)}createFeature(){return new du}createSpatialReference(){return{wkid:0}}createGeometry(){return new ls}addField(t,r){t.fields.push(r)}allocateCoordinates(t){t.coords.length=t.lengths.reduce((r,i)=>r+i,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(t,r){t.coords[this._coordinatePtr++]=r}addCoordinatePoint(t,r){t.coords.push(r)}addLength(t,r){t.lengths.push(r)}addQueryGeometry(t,r){t.queryGeometry=r.queryGeometry,t.queryGeometryType=r.queryGeometryType}createPointGeometry(){return new ls}}const a7=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],c7=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u7=["upperLeft","lowerLeft"];function d7(e){return e>=a7.length?null:a7[e]}function Rrt(e){return e>=c7.length?null:c7[e]}function p7(e){return e>=u7.length?null:u7[e]}function h7(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function Drt(e,t,r){const n=e.asUnsafe(),o=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const s=n.getUInt32(),l=n.pos()+s;let a=0;for(;n.pos()<l;)t.addCoordinatePoint(o,n.getSInt64(),a++);break}default:n.skip()}return o}function Nrt(e,t,r){const o=e.asUnsafe(),s=t.createGeometry(r),l=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;o.next();)switch(o.tag()){case 2:{const a=o.getUInt32(),c=o.pos()+a;let u=0;for(;o.pos()<c;)t.addLength(s,o.getUInt32(),u++);break}case 3:{const a=o.getUInt32(),c=o.pos()+a;let u=0;for(t.allocateCoordinates(s);o.pos()<c;)t.addCoordinate(s,o.getSInt64(),u),u++,u===l&&(u=0);break}default:o.skip()}return s}function Frt(e){const n=e.asUnsafe(),o=new ls;let s="esriGeometryPoint";for(;n.next();)switch(n.tag()){case 2:{const l=n.getUInt32(),a=n.pos()+l;for(;n.pos()<a;)o.lengths.push(n.getUInt32());break}case 3:{const l=n.getUInt32(),a=n.pos()+l;for(;n.pos()<a;)o.coords.push(n.getSInt64());break}case 1:s=Bie[n.getEnum()];break;default:n.skip()}return{queryGeometry:o,queryGeometryType:s}}function zrt(e){const u=e.asUnsafe();for(;u.next();)switch(u.tag()){case 1:return u.getString();case 2:return u.getFloat();case 3:return u.getDouble();case 4:return u.getSInt32();case 5:return u.getUInt32();case 6:return u.getInt64();case 7:return u.getUInt64();case 8:return u.getSInt64();case 9:return u.getBool();default:return u.skip(),null}return null}function jrt(e){const l=e.asUnsafe(),a={type:d7(0)};for(;l.next();)switch(l.tag()){case 1:a.name=l.getString();break;case 2:a.type=d7(l.getEnum());break;case 3:a.alias=l.getString();break;case 4:a.sqlType=Rrt(l.getEnum());break;case 5:l.skip();break;case 6:a.defaultValue=l.getString();break;default:l.skip()}return a}function Vrt(e){const i={},n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:i.name=n.getString();break;case 2:i.isSystemMaintained=n.getBool();break;default:n.skip()}return i}function Brt(e,t,r,i){const l=t.createFeature(r);let a=0;for(;e.next();)switch(e.tag()){case 1:{const c=i[a++].name;l.attributes[c]=e.processMessage(zrt);break}case 2:l.geometry=e.processMessageWithArgs(Nrt,t,r);break;case 4:l.centroid=e.processMessageWithArgs(Drt,t,r);break;default:e.skip()}return l}function Urt(e){const o=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:o[0]=s.getDouble();break;case 2:o[1]=s.getDouble();break;case 4:o[2]=s.getDouble();break;case 3:o[3]=s.getDouble();break;default:s.skip()}return o}function Wrt(e){const o=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:o[0]=s.getDouble();break;case 2:o[1]=s.getDouble();break;case 4:o[2]=s.getDouble();break;case 3:o[3]=s.getDouble();break;default:s.skip()}return o}function Hrt(e){const n={originPosition:p7(0)},o=e.asUnsafe();for(;o.next();)switch(o.tag()){case 1:n.originPosition=p7(o.getEnum());break;case 2:n.scale=o.processMessage(Urt);break;case 3:n.translate=o.processMessage(Wrt);break;default:o.skip()}return n}function Grt(e){const n={},o=e.asUnsafe();for(;o.next();)switch(o.tag()){case 1:n.shapeAreaFieldName=o.getString();break;case 2:n.shapeLengthFieldName=o.getString();break;case 3:n.units=o.getString();break;default:o.skip()}return n}function qrt(e,t){const l=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:l.wkid=e.getUInt32();break;case 5:l.wkt=e.getString();break;case 2:l.latestWkid=e.getUInt32();break;case 3:l.vcsWkid=e.getUInt32();break;case 4:l.latestVcsWkid=e.getUInt32();break;default:e.skip()}return l}function Yrt(e,t){const v=t.createFeatureResult(),_=e.asUnsafe();v.geometryType=h7(t,0);let x=!1;for(;_.next();)switch(_.tag()){case 1:v.objectIdFieldName=_.getString();break;case 3:v.globalIdFieldName=_.getString();break;case 4:v.geohashFieldName=_.getString();break;case 5:v.geometryProperties=_.processMessage(Grt);break;case 7:v.geometryType=h7(t,_.getEnum());break;case 8:v.spatialReference=_.processMessageWithArgs(qrt,t);break;case 10:v.hasZ=_.getBool();break;case 11:v.hasM=_.getBool();break;case 12:v.transform=_.processMessage(Hrt);break;case 9:{const S=_.getBool();v.exceededTransferLimit=S;break}case 13:t.addField(v,_.processMessage(jrt));break;case 15:x||(t.prepareFeatures(v),x=!0),t.addFeature(v,_.processMessageWithArgs(Brt,t,v,v.fields));break;case 2:v.uniqueIdField=_.processMessage(Vrt);break;default:_.skip()}return t.finishFeatureResult(v),v}function Krt(e,t){const n={};let o=null;for(;e.next();)switch(e.tag()){case 4:o=e.processMessageWithArgs(Frt);break;case 1:n.featureResult=e.processMessageWithArgs(Yrt,t);break;default:e.skip()}return ue(o)&&n.featureResult&&t.addQueryGeometry(n,o),n}function Zrt(e,t){try{const i=new qm(new Uint8Array(e),new DataView(e)),n={};for(;i.next();)i.tag()===2?n.queryResult=i.processMessageWithArgs(Krt,t):i.skip();return n}catch(r){throw new ze("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:r})}}function Qrt(e,t){const r=Zrt(e,t),i=r.queryResult.featureResult,n=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const s=i.objectIdFieldName;for(const l of i.features)l.attributes&&(l.objectId=l.attributes[s])}return i&&(i.queryGeometry=n,i.queryGeometryType=o),i}function VO(e,t,r){if(!r||!r.features||!r.hasZ)return;const i=nre(r.geometryType,t,e.outSpatialReference);if(!et(i))for(const n of r.features)i(n.geometry)}const f7="Layer does not support extent calculation.";function Uie(e,t){if(t&&e.type==="extent")return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&e.type==="point")return`${e.x},${e.y}`;const r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}function Wie(e,t){const r=e.geometry,i=e.toJSON();delete i.compactGeometryEnabled,delete i.defaultSpatialReferenceEnabled;const n=i;let o,s,l;if(ue(r)&&(s=r.spatialReference,l=r.spatialReference.wkid||JSON.stringify(r.spatialReference),n.geometryType=Z3(r),n.geometry=Uie(r,e.compactGeometryEnabled),n.inSR=l),i.groupByFieldsForStatistics&&(n.groupByFieldsForStatistics=i.groupByFieldsForStatistics.join(",")),i.objectIds&&(n.objectIds=i.objectIds.join(",")),i.orderByFields&&(n.orderByFields=i.orderByFields.join(",")),!i.outFields||!i.returnDistinctValues&&((t==null?void 0:t.returnCountOnly)||(t==null?void 0:t.returnExtentOnly)||(t==null?void 0:t.returnIdsOnly))?delete n.outFields:i.outFields.includes("*")?n.outFields="*":n.outFields=i.outFields.join(","),i.outSR?(n.outSR=i.outSR.wkid||JSON.stringify(i.outSR),o=e.outSpatialReference):r&&(i.returnGeometry||i.returnCentroid)&&(n.outSR=n.inSR,o=s),i.returnGeometry&&delete i.returnGeometry,i.outStatistics&&(n.outStatistics=JSON.stringify(i.outStatistics)),i.fullText&&(n.fullText=JSON.stringify(i.fullText)),i.pixelSize&&(n.pixelSize=JSON.stringify(i.pixelSize)),i.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&ue(s)&&ue(e.quantizationParameters)&&ue(e.quantizationParameters.extent)&&s.equals(e.quantizationParameters.extent.spatialReference)&&delete i.quantizationParameters.extent.spatialReference,n.quantizationParameters=JSON.stringify(i.quantizationParameters)),i.parameterValues&&(n.parameterValues=JSON.stringify(i.parameterValues)),i.rangeValues&&(n.rangeValues=JSON.stringify(i.rangeValues)),i.dynamicDataSource&&(n.layer=JSON.stringify({source:i.dynamicDataSource}),delete i.dynamicDataSource),i.timeExtent){const a=i.timeExtent,{start:c,end:u}=a;c==null&&u==null||(n.time=c===u?c:`${c!=null?c:"null"},${u!=null?u:"null"}`),delete i.timeExtent}return e.defaultSpatialReferenceEnabled&&ue(s)&&ue(o)&&s.equals(o)&&(n.defaultSR=n.inSR,delete n.inSR,delete n.outSR),n}async function Hie(e,t,r,i){const n=ue(t.timeExtent)&&t.timeExtent.isEmpty?{data:{features:[]}}:await D0(e,t,"json",i);return VO(t,r,n.data),n}async function Jrt(e,t,r,i){if(ue(t.timeExtent)&&t.timeExtent.isEmpty)return{data:r.createFeatureResult()};const n=await Gie(e,t,i),o=n;return o.data=Qrt(n.data,r),o}function Gie(e,t,r){return D0(e,t,"pbf",r)}function Xrt(e,t,r){return ue(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):D0(e,t,"json",r,{returnIdsOnly:!0})}function eit(e,t,r){return ue(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):D0(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function tit(e,t,r){return ue(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):D0(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(i=>{const n=i.data;if(n.hasOwnProperty("extent"))return i;if(n.features)throw new Error(f7);if(n.hasOwnProperty("count"))throw new Error(f7);return i})}function D0(e,t,r,i={},n={}){const o=typeof e=="string"?vo(e):e,s=t.geometry?[t.geometry]:[];return i.responseType=r==="pbf"?"array-buffer":"json",jie(s,null,i).then(l=>{const a=l&&l[0];ue(a)&&((t=t.clone()).geometry=a);const c=Vie({...o.query,f:r,...n,...Wie(t,n)});return ri(pg(o.path,"query"),{...i,query:{...c,...i.query}})})}var rit=Object.freeze(Object.defineProperty({__proto__:null,encodeGeometry:Uie,executeQuery:Hie,executeQueryForCount:eit,executeQueryForExtent:tit,executeQueryForIds:Xrt,executeQueryPBF:Jrt,executeQueryPBFBuffer:Gie,queryToQueryStringParameters:Wie,runQuery:D0},Symbol.toStringTag,{value:"Module"})),BO;const UO=new Yr({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let oo=BO=class extends xt{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){var n;const r=gr.fromJSON(t.spatialReference),i=[];for(let o=0;o<e.length;o++){const s=e[o],l=Hs.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;ue(l.geometry)&&!a&&(l.geometry.spatialReference=r);const c=s.aggregateGeometries,u=l.aggregateGeometries;if(c&&ue(u))for(const p in u){const h=u[p],m=(n=c[p])==null?void 0:n.spatialReference;ue(h)&&!m&&(h.spatialReference=r)}i.push(l)}return i}writeGeometryType(e,t,r,i){if(e)return void UO.write(e,t,r,i);const{features:n}=this;if(n){for(const o of n)if(o&&ue(o.geometry))return void UO.write(o.geometry.type,t,r,i)}}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=Ih(e);return i&&!r&&t.spatialReference&&(i.spatialReference=gr.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r){for(const i of r)if(i&&ue(i.geometry)&&i.geometry.spatialReference)return void(t.spatialReference=i.geometry.spatialReference.toJSON())}}clone(){return new BO(this.cloneProperties())}cloneProperties(){return Ge({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const n=e&&e[r];i.geometry=n&&n.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,o=c=>Math.round((c-i)/t),s=c=>Math.round((n-c)/r),l=this.features,a=this._getQuantizationFunction(this.geometryType,o,s);for(let c=0,u=l.length;c<u;c++)a!=null&&a(l[c].geometry)||(l.splice(c,1),c--,u--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[o,s]}=r,l=u=>u*o+i,a=u=>n-u*s,c=this._getHydrationFunction(e,l,a);for(const{geometry:u}of t)ue(u)&&c&&c(u);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const o=[];for(let s=0,l=e.length;s<l;s++){const a=e[s];if(s>0){const c=t(a[0]),u=r(a[1]);c===i&&u===n||(o.push([c-i,u-n]),i=c,n=u)}else i=t(a[0]),n=r(a[1]),o.push([i,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return e==="point"?i=>(i.x=t(i.x),i.y=r(i.y),i):e==="polyline"||e==="polygon"?i=>{const n=Wm(i)?i.rings:i.paths,o=[];for(let s=0,l=n.length;s<l;s++){const a=n[s],c=this._quantizePoints(a,t,r);c&&o.push(c)}return o.length>0?(Wm(i)?i.rings=o:i.paths=o,i):null}:e==="multipoint"?i=>{const n=this._quantizePoints(i.points,t,r);return n&&n.length>0?(i.points=n,i):null}:e==="extent"?i=>i:null}_getHydrationFunction(e,t,r){return e==="point"?i=>{i.x=t(i.x),i.y=r(i.y)}:e==="polyline"||e==="polygon"?i=>{const n=Wm(i)?i.rings:i.paths;let o,s;for(let l=0,a=n.length;l<a;l++){const c=n[l];for(let u=0,p=c.length;u<p;u++){const h=c[u];u>0?(o+=h[0],s+=h[1]):(o=h[0],s=h[1]),h[0]=t(o),h[1]=r(s)}}}:e==="extent"?i=>{i.xmin=t(i.xmin),i.ymin=r(i.ymin),i.xmax=t(i.xmax),i.ymax=r(i.ymax)}:e==="multipoint"?i=>{const n=i.points;let o,s;for(let l=0,a=n.length;l<a;l++){const c=n[l];l>0?(o+=c[0],s+=c[1]):(o=c[0],s=c[1]),c[0]=t(o),c[1]=r(s)}}:null}};d([f({type:String,json:{write:!0}})],oo.prototype,"displayFieldName",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],oo.prototype,"exceededTransferLimit",void 0),d([f({type:[Hs],json:{write:!0}})],oo.prototype,"features",void 0),d([Tt("features")],oo.prototype,"readFeatures",null),d([f({type:[AT],json:{write:!0}})],oo.prototype,"fields",void 0),d([f({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:UO.read}}})],oo.prototype,"geometryType",void 0),d([zt("geometryType")],oo.prototype,"writeGeometryType",null),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],oo.prototype,"hasM",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],oo.prototype,"hasZ",void 0),d([f({types:Tg,json:{write:!0}})],oo.prototype,"queryGeometry",void 0),d([Tt("queryGeometry")],oo.prototype,"readQueryGeometry",null),d([f({type:gr,json:{write:!0}})],oo.prototype,"spatialReference",void 0),d([zt("spatialReference")],oo.prototype,"writeSpatialReference",null),d([f({json:{write:!0}})],oo.prototype,"transform",void 0),oo=BO=d([se("esri.rest.support.FeatureSet")],oo),oo.prototype.toJSON.isDefaultToJSON=!0;const IT=oo;var iit=Object.freeze(Object.defineProperty({__proto__:null,default:IT},Symbol.toStringTag,{value:"Module"}));const m7={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},nit={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function oit(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}function Ym(e,t,r){const i=new Date(e.getTime());if(t&&r){const n=nit[r],{getter:o,setter:s,multiplier:l}=n;if(r==="months"){const a=oit(i.getFullYear(),i.getMonth()+t);i.getDate()>a&&i.setDate(a)}i[s](i[o]()+t*l)}return i}function g7(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function sit(e,t,r){return e===0?0:e*m7[t]/m7[r]}var Ia;let cl=Ia=class extends xt{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return y7}static get empty(){return lit}readEnd(e,t){return t.end!=null?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(Ia.allTime)}get isEmpty(){return this.equals(Ia.empty)}readStart(e,t){return t.start!=null?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new Ia({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=ue(this.start)?this.start.getTime():this.start,r=ue(this.end)?this.end.getTime():this.end,i=ue(e.start)?e.start.getTime():e.start,n=ue(e.end)?e.end.getTime():e.end;return t===i&&r===n}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=oh(this.start,i=>g7(i,e)),r=oh(this.end,i=>{const n=g7(i,e);return i.getTime()===n.getTime()?n:Ym(n,1,e)});return new Ia({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return Ia.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=Nb(this.start,-1/0,l=>l.getTime()),r=Nb(this.end,1/0,l=>l.getTime()),i=Nb(e.start,-1/0,l=>l.getTime()),n=Nb(e.end,1/0,l=>l.getTime());let o,s;if(i>=t&&i<=r?o=i:t>=i&&t<=n&&(o=t),r>=i&&r<=n?s=r:n>=t&&n<=r&&(s=n),o!=null&&s!=null&&!isNaN(o)&&!isNaN(s)){const l=new Ia;return l.start=o===-1/0?null:new Date(o),l.end=s===1/0?null:new Date(s),l}return Ia.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new Ia,{start:i,end:n}=this;return ue(i)&&(r.start=Ym(i,e,t)),ue(n)&&(r.end=Ym(n,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y7.clone();const t=ue(this.start)&&ue(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=ue(this.end)&&ue(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new Ia({start:t,end:r})}};d([f({type:Date,json:{write:{allowNull:!0}}})],cl.prototype,"end",void 0),d([Tt("end")],cl.prototype,"readEnd",null),d([zt("end")],cl.prototype,"writeEnd",null),d([f({readOnly:!0,json:{read:!1}})],cl.prototype,"isAllTime",null),d([f({readOnly:!0,json:{read:!1}})],cl.prototype,"isEmpty",null),d([f({type:Date,json:{write:{allowNull:!0}}})],cl.prototype,"start",void 0),d([Tt("start")],cl.prototype,"readStart",null),d([zt("start")],cl.prototype,"writeStart",null),cl=Ia=d([se("esri.TimeExtent")],cl);const y7=new cl,lit=new cl({start:void 0,end:void 0}),vc=cl;let Nf=class extends pn(xt){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};d([f({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:ue(this.onFields)&&this.onFields.length>0}}}}})],Nf.prototype,"onFields",void 0),d([f({type:String,json:{write:!0}})],Nf.prototype,"operator",void 0),d([f({type:String,json:{write:!0}})],Nf.prototype,"searchTerm",void 0),d([f({type:String,json:{write:!0}})],Nf.prototype,"searchType",void 0),Nf=d([se("esri.rest.support.FullTextSearch")],Nf);const ait=Nf;var WO;const v7=new Yr({upperLeft:"upper-left",lowerLeft:"lower-left"});let Ff=WO=class extends xt{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new WO(Ge({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};d([f({type:li,json:{write:{overridePolicy(){return{enabled:this.mode==="view"}}}}})],Ff.prototype,"extent",void 0),d([f({type:["view","edit"],json:{write:!0}})],Ff.prototype,"mode",void 0),d([f({type:String,json:{read:v7.read,write:v7.write}})],Ff.prototype,"originPosition",void 0),d([f({type:Number,json:{write:{overridePolicy(){return{enabled:this.mode==="view"}}}}})],Ff.prototype,"tolerance",void 0),Ff=WO=d([se("esri.rest.support.QuantizationParameters")],Ff);const qie=Ff;var HO;const b7=new Yr({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"});let Pa=HO=class extends xt{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=Ge(e))}clone(){return new HO({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:Ge(this.statisticParameters)})}};d([f({type:Number,json:{write:!0}})],Pa.prototype,"maxPointCount",void 0),d([f({type:Number,json:{write:!0}})],Pa.prototype,"maxRecordCount",void 0),d([f({type:Number,json:{write:!0}})],Pa.prototype,"maxVertexCount",void 0),d([f({type:String,json:{write:!0}})],Pa.prototype,"onStatisticField",void 0),d([f({type:String,json:{write:!0}})],Pa.prototype,"outStatisticFieldName",void 0),d([f({type:String,json:{read:{source:"statisticType",reader:b7.read},write:{target:"statisticType",writer:b7.write}}})],Pa.prototype,"statisticType",void 0),d([f({type:Object})],Pa.prototype,"statisticParameters",void 0),d([zt("statisticParameters")],Pa.prototype,"writeStatisticParameters",null),Pa=HO=d([se("esri.rest.support.StatisticDefinition")],Pa);const Yie=Pa;var yv;const cit=new Yr({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),uit=new Yr({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let vr=yv=class extends xt{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.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}static from(e){return Jw(yv,e)}castDatumTransformation(e){return typeof e=="number"||typeof e=="object"?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const i in e){const n=e[i];Array.isArray(n)?r[i]=n.map(o=>o instanceof Date?o.getTime():o):n instanceof Date?r[i]=n.getTime():r[i]=n}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 yv(Ge({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:ue(this.historicMoment)?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,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}))}};vr.MAX_MAX_RECORD_COUNT_FACTOR=5,d([f({json:{write:!0}})],vr.prototype,"aggregateIds",void 0),d([f({type:Boolean,json:{write:!0}})],vr.prototype,"cacheHint",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"compactGeometryEnabled",void 0),d([f({json:{write:!0}})],vr.prototype,"datumTransformation",void 0),d([Qr("datumTransformation")],vr.prototype,"castDatumTransformation",null),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"defaultSpatialReferenceEnabled",void 0),d([f({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],vr.prototype,"distance",void 0),d([f({type:pl,json:{write:!0}})],vr.prototype,"dynamicDataSource",void 0),d([f({type:String,json:{write:!0}})],vr.prototype,"formatOf3DObjects",void 0),d([f({type:[ait],json:{write:{enabled:!0,overridePolicy(){return{enabled:ue(this.fullText)&&this.fullText.length>0}}}}})],vr.prototype,"fullText",void 0),d([f({type:String,json:{write:!0}})],vr.prototype,"gdbVersion",void 0),d([f({types:Tg,json:{read:Ih,write:!0}})],vr.prototype,"geometry",void 0),d([f({type:Number,json:{write:!0}})],vr.prototype,"geometryPrecision",void 0),d([f({type:[String],json:{write:!0}})],vr.prototype,"groupByFieldsForStatistics",void 0),d([f({type:String,json:{write:!0}})],vr.prototype,"having",void 0),d([f({type:Date})],vr.prototype,"historicMoment",void 0),d([zt("historicMoment")],vr.prototype,"writeHistoricMoment",null),d([f({type:Number,json:{write:!0}})],vr.prototype,"maxAllowableOffset",void 0),d([f({type:Number,cast:e=>e<1?1:e>yv.MAX_MAX_RECORD_COUNT_FACTOR?yv.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],vr.prototype,"maxRecordCountFactor",void 0),d([f({type:["xyFootprint"],json:{write:!0}})],vr.prototype,"multipatchOption",void 0),d([f({type:Number,json:{read:{source:"resultRecordCount"}}})],vr.prototype,"num",void 0),d([f({json:{write:!0}})],vr.prototype,"objectIds",void 0),d([f({type:[String],json:{write:!0}})],vr.prototype,"orderByFields",void 0),d([f({type:[String],json:{write:!0}})],vr.prototype,"outFields",void 0),d([f({type:gr,json:{name:"outSR",write:!0}})],vr.prototype,"outSpatialReference",void 0),d([f({type:[Yie],json:{write:{enabled:!0,overridePolicy(){return{enabled:ue(this.outStatistics)&&this.outStatistics.length>0}}}}})],vr.prototype,"outStatistics",void 0),d([f({json:{write:!0}})],vr.prototype,"parameterValues",void 0),d([zt("parameterValues")],vr.prototype,"writeParameterValues",null),d([f({type:Nr,json:{write:!0}})],vr.prototype,"pixelSize",void 0),d([f({type:qie,json:{write:!0}})],vr.prototype,"quantizationParameters",void 0),d([f({type:[Object],json:{write:!0}})],vr.prototype,"rangeValues",void 0),d([f({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:this.spatialRelationship==="relation"}}}}})],vr.prototype,"relationParameter",void 0),d([f({type:String,json:{write:!0}})],vr.prototype,"resultType",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"returnCentroid",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"returnDistinctValues",void 0),d([f({type:Boolean,json:{default:!0,write:!0}})],vr.prototype,"returnExceededLimitFeatures",void 0),d([f({type:Boolean,json:{write:!0}})],vr.prototype,"returnGeometry",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"returnQueryGeometry",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"returnM",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],vr.prototype,"returnZ",void 0),d([f({type:gr,json:{write:!0}})],vr.prototype,"sourceSpatialReference",void 0),d([pr(cit,{ignoreUnknown:!1,name:"spatialRel"})],vr.prototype,"spatialRelationship",void 0),d([f({type:Number,json:{read:{source:"resultOffset"}}})],vr.prototype,"start",void 0),d([zt("start"),zt("num")],vr.prototype,"writeStart",null),d([f({type:String,json:{write:!0}})],vr.prototype,"sqlFormat",void 0),d([f({type:String,json:{write:!0}})],vr.prototype,"text",void 0),d([f({type:vc,json:{write:!0}})],vr.prototype,"timeExtent",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],vr.prototype,"timeReferenceUnknownClient",void 0),d([pr(uit,{ignoreUnknown:!1}),f({json:{write:{overridePolicy(e){return{enabled:!!e&&this.distance!=null&&this.distance>0}}}}})],vr.prototype,"units",void 0),d([f({type:String,json:{write:{overridePolicy(e){return{enabled:e!=null||this.start!=null&&this.start>0}}}}})],vr.prototype,"where",void 0),d([zt("where")],vr.prototype,"writeWhere",null),vr=yv=d([se("esri.rest.support.Query")],vr);const ea=vr;async function WM(e,t,r){const i=await dit(e,t,r);return IT.fromJSON(i)}async function dit(e,t,r){const i=Nie(e),n={...r},o=ea.from(t),{data:s}=await Hie(i,o,o.sourceSpatialReference,n);return s}function To(e,t){return e?t?4:3:t?3:2}const N0=ft.getLogger("esri.layers.graphics.featureConversionUtils"),Kie={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},pit=(e,t,r,i,n,o)=>{e[r]=n,e[r+1]=o},_7=(e,t,r,i,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[i+2]},hit=(e,t,r,i,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[i+3]},fit=(e,t,r,i,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[i+2],e[r+3]=t[i+3]};function AN(e,t,r,i){if(e){if(r)return t&&i?fit:_7;if(t&&i)return hit}else if(t&&i)return _7;return pit}function HM({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function GM({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function qM({scale:e,translate:t},r,i){return r*e[i]+t[i]}function Cyt(e,t,r){return e?t?r?PN(e):MN(e):r?IN(e):PT(e):null}function PT(e){const t=e.coords;return{x:t[0],y:t[1]}}function Zie(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function MN(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function mit(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function IN(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function git(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function PN(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function yit(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function vit(e,t,r,i){let n=PT;r&&i?n=PN:r?n=MN:i&&(n=IN);for(const o of t){const{geometry:s,attributes:l}=o,a=ue(s)?n(s):null;e.push({attributes:l,geometry:a})}return e}function $N(e,t){return e&&t?yit:e?mit:t?git:Zie}function Qie(e,t,r,i,n){const o=$N(r,i);for(const{geometry:s,attributes:l}of t){const a=ue(s)?o(new ls,s):null;e.push(new du(a,l,null,n?l[n]:void 0))}return e}function kyt(e,t,r=$N(t.z!=null,t.m!=null)){return r(e,t)}function bit(e,t,r,i){for(const{geometry:n,attributes:o}of t)e.push({attributes:o,geometry:ue(n)?Jie(n,r,i):null});return e}function Jie(e,t,r){if(et(e))return null;const i=To(t,r),n=[];for(let o=0;o<e.coords.length;o+=i){const s=[];for(let l=0;l<i;l++)s.push(e.coords[o+l]);n.push(s)}return t?r?{points:n,hasZ:t,hasM:r}:{points:n,hasZ:t}:r?{points:n,hasM:r}:{points:n}}function Xie(e,t,r,i,n){const o=To(r,i);for(const{geometry:s,attributes:l}of t){const a=ue(s)?ene(new ls,s,o):null;e.push(new du(a,l,null,n?l[n]:void 0))}return e}function ene(e,t,r=To(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const i=e.coords;let n=0;for(const o of t.points)for(let s=0;s<r;s++)i[n++]=o[s];return e}function _it(e,t,r,i){for(const{geometry:n,attributes:o}of t)e.push({attributes:o,geometry:ue(n)?tne(n,r,i):null});return e}function tne(e,t,r){if(!e)return null;const i=To(t,r),{coords:n,lengths:o}=e,s=[];let l=0;for(const a of o){const c=[];for(let u=0;u<a;u++){const p=[];for(let h=0;h<i;h++)p.push(n[l++]);c.push(p)}s.push(c)}return t?r?{paths:s,hasZ:t,hasM:r}:{paths:s,hasZ:t}:r?{paths:s,hasM:r}:{paths:s}}function rne(e,t,r,i,n){const o=To(r,i);for(const{geometry:s,attributes:l}of t){const a=ue(s)?ine(new ls,s,o):null;e.push(new du(a,l,null,n?l[n]:void 0))}return e}function ine(e,t,r=To(t.hasZ,t.hasM)){const{lengths:i,coords:n}=e;let o=0;for(const s of t.paths){for(const l of s)for(let a=0;a<r;a++)n[o++]=l[a];i.push(s.length)}return e}function wit(e,t,r,i){for(const{geometry:n,attributes:o,centroid:s}of t){const l=ue(n)?nne(n,r,i):null;if(ue(s)){const a=PT(s);e.push({attributes:o,centroid:a,geometry:l})}else e.push({attributes:o,geometry:l})}return e}function nne(e,t,r){if(!e)return null;const i=To(t,r),{coords:n,lengths:o}=e,s=[];let l=0;for(const a of o){const c=[];for(let u=0;u<a;u++){const p=[];for(let h=0;h<i;h++)p.push(n[l++]);c.push(p)}s.push(c)}return t?r?{rings:s,hasZ:t,hasM:r}:{rings:s,hasZ:t}:r?{rings:s,hasM:r}:{rings:s}}function one(e,t,r,i,n){for(const{geometry:o,centroid:s,attributes:l}of t){const a=ue(o)?sne(new ls,o,r,i):null,c=n?l[n]:void 0;ue(s)?e.push(new du(a,l,Zie(new ls,s),c)):e.push(new du(a,l,null,c))}return e}function sne(e,t,r=t.hasZ,i=t.hasM){return xit(e,t.rings,r,i),e}function xit(e,t,r,i){const n=To(r,i),{lengths:o,coords:s}=e;let l=0;dd(e);for(const a of t){for(const c of a)for(let u=0;u<n;u++)s[l++]=c[u];o.push(a.length)}return e}const vv=[],cw=[];function Syt(e,t,r,i,n){vv[0]=e;const[o]=lne(cw,vv,t,r,i,n);return hc(vv),hc(cw),o}function lne(e,t,r,i,n,o){if(hc(e),!r){for(const s of t){const l=o?s.attributes[o]:void 0;e.push(new du(null,s.attributes,null,l))}return e}switch(r){case"esriGeometryPoint":return Qie(e,t,i,n,o);case"esriGeometryMultipoint":return Xie(e,t,i,n,o);case"esriGeometryPolyline":return rne(e,t,i,n,o);case"esriGeometryPolygon":return one(e,t,i,n,o);default:N0.error("convertToFeatureSet:unknown-geometry",new ze(`Unable to parse unknown geometry type '${r}'`)),hc(e)}return e}function Eyt(e,t,r,i,n,o){const s=e.length;switch(r){case"esriGeometryPoint":Qie(e,t,i,n,o);break;case"esriGeometryMultipoint":Xie(e,t,i,n,o);break;case"esriGeometryPolyline":rne(e,t,i,n,o);break;case"esriGeometryPolygon":one(e,t,i,n,o);break;default:N0.error("convertToFeatureSet:unknown-geometry",new ze(`Unable to parse unknown geometry type '${r}'`))}for(let l=0;l<t.length;l++)e[l+s].geometryType=r,e[l+s].insertAfter=t[l].insertAfter,e[l+s].groupId=t[l].groupId;return e}function Tyt(e,t,r,i){cw[0]=e,ane(vv,cw,t,r,i);const n=vv[0];return hc(vv),hc(cw),n}function Ayt(e,t,r){if(et(e))return null;const i=new ls;return"hasZ"in e&&t==null&&(t=e.hasZ),"hasM"in e&&r==null&&(r=e.hasM),dD(e)?$N(t!=null?t:e.z!=null,r!=null?r:e.m!=null)(i,e):Wm(e)?sne(i,e,t,r):pD(e)?ine(i,e,To(t,r)):uD(e)?ene(i,e,To(t,r)):void N0.error("convertFromGeometry:unknown-geometry",new ze(`Unable to parse unknown geometry type '${e}'`))}function Cit(e,t,r,i){const n=e&&("coords"in e?e:e.geometry);if(et(n))return null;switch(t){case"esriGeometryPoint":{let o=PT;return r&&i?o=PN:r?o=MN:i&&(o=IN),o(n)}case"esriGeometryMultipoint":return Jie(n,r,i);case"esriGeometryPolyline":return tne(n,r,i);case"esriGeometryPolygon":return nne(n,r,i);default:return N0.error("convertToGeometry:unknown-geometry",new ze(`Unable to parse unknown geometry type '${t}'`)),null}}function kit(e,t){for(const r of t)e.push({attributes:r.attributes});return e}function ane(e,t,r,i,n){if(hc(e),et(r))return kit(e,t);switch(r){case"esriGeometryPoint":return vit(e,t,i,n);case"esriGeometryMultipoint":return bit(e,t,i,n);case"esriGeometryPolyline":return _it(e,t,i,n);case"esriGeometryPolygon":return wit(e,t,i,n);default:N0.error("convertToFeatureSet:unknown-geometry",new ze(`Unable to parse unknown geometry type '${r}'`))}return e}function Myt(e){const{objectIdFieldName:t,spatialReference:r,transform:i,fields:n,hasM:o,hasZ:s,features:l,geometryType:a,exceededTransferLimit:c,uniqueIdField:u,queryGeometry:p,queryGeometryType:h}=e,m={features:ane([],l,a,s,o),fields:n,geometryType:a,objectIdFieldName:t,spatialReference:r,uniqueIdField:u,queryGeometry:Cit(p,h,!1,!1)};return i&&(m.transform=i),c&&(m.exceededTransferLimit=c),o&&(m.hasM=o),s&&(m.hasZ=s),m}function Iyt(e,t){var h;const r=new MT,{hasM:i,hasZ:n,features:o,objectIdFieldName:s,spatialReference:l,geometryType:a,exceededTransferLimit:c,transform:u,fields:p}=e;return p&&(r.fields=p),r.geometryType=a!=null?a:null,r.objectIdFieldName=(h=s!=null?s:t)!=null?h:null,r.spatialReference=l!=null?l:null,r.objectIdFieldName?(o&&lne(r.features,o,a,n,i,r.objectIdFieldName),c&&(r.exceededTransferLimit=c),i&&(r.hasM=i),n&&(r.hasZ=n),u&&(r.transform=u),r):(N0.error(new ze("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function Pyt(e){const{transform:t,features:r,hasM:i,hasZ:n}=e;if(!t)return e;for(const o of r)ue(o.geometry)&&x7(o.geometry,o.geometry,i,n,t),ue(o.centroid)&&x7(o.centroid,o.centroid,i,n,t);return e.transform=null,e}function $yt(e,t){const{geometryType:r,features:i,hasM:n,hasZ:o}=t;if(!e)return t;for(let s=0;s<i.length;s++){const l=i[s],a=l.weakClone();a.geometry=new ls,w7(a.geometry,l.geometry,n,o,r,e),l.centroid&&(a.centroid=new ls,w7(a.centroid,l.centroid,n,o,"esriGeometryPoint",e)),i[s]=a}return t.transform=e,t}function w7(e,t,r,i,n,o,s=r,l=i){if(dd(e),et(t)||!t.coords.length)return null;const a=Kie[n],{coords:c,lengths:u}=t,p=To(r,i),h=To(r&&s,i&&l),m=AN(r,i,s,l);if(!u.length)return m(e.coords,c,0,0,HM(o,c[0]),GM(o,c[1])),dd(e,p,0),e;let y,v,_,x,S=0,C=0,E=C;for(const T of u){if(T<a)continue;let w=0;C=E,_=y=HM(o,c[S]),x=v=GM(o,c[S+1]),m(e.coords,c,C,S,_,x),w++,S+=p,C+=h;for(let I=1;I<T;I++,S+=p)_=HM(o,c[S]),x=GM(o,c[S+1]),_===y&&x===v||(m(e.coords,c,C,S,_-y,x-v),C+=h,w++,y=_,v=x);w>=a&&(e.lengths.push(w),E=C)}return hc(e.coords,E),e.coords.length?e:null}function Oyt(e,t,r,i,n,o,s=r,l=i){if(dd(e),!t||!t.coords.length)return null;const a=Kie[n],{coords:c,lengths:u}=t,p=To(r,i),h=To(r&&s,i&&l),m=AN(r,i,s,l);if(!u.length)return m(e.coords,c,0,0,c[0],c[1]),dd(e,p,0),e;let y=0;const v=o*o;for(const _ of u){if(_<a){y+=_*p;continue}const x=e.coords.length/h,S=y,C=y+(_-1)*p;m(e.coords,c,e.coords.length,S,c[S],c[S+1]),GO(e.coords,c,p,v,m,S,C),m(e.coords,c,e.coords.length,C,c[C],c[C+1]);const E=e.coords.length/h-x;E>=a?e.lengths.push(E):hc(e.coords,x*h),y+=_*p}return e.coords.length?e:null}function Sit(e,t,r,i){const n=e[t],o=e[t+1],s=e[r],l=e[r+1],a=e[i],c=e[i+1];let u=s,p=l,h=a-u,m=c-p;if(h!==0||m!==0){const y=((n-u)*h+(o-p)*m)/(h*h+m*m);y>1?(u=a,p=c):y>0&&(u+=h*y,p+=m*y)}return h=n-u,m=o-p,h*h+m*m}function GO(e,t,r,i,n,o,s){let l,a=i,c=0;for(let u=o+r;u<s;u+=r)l=Sit(t,u,o,s),l>a&&(c=u,a=l);a>i&&(c-o>r&&GO(e,t,r,i,n,o,c),n(e,t,e.length,c,t[c],t[c+1]),s-c>r&&GO(e,t,r,i,n,c,s))}function Lyt(e,t,r,i){if(et(t)||!t.coords||!t.coords.length)return null;const n=To(r,i);let o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(t&&t.coords){const c=t.coords;for(let u=0;u<c.length;u+=n){const p=c[u],h=c[u+1];o=Math.min(o,p),l=Math.max(l,p),s=Math.min(s,h),a=Math.max(a,h)}}return e[0]=o,e[1]=s,e[2]=l,e[3]=a,e}function x7(e,t,r,i,n){var v,_,x,S,C,E,T,w;const{coords:o,lengths:s}=t,l=To(r,i);if(!o.length)return e!==t&&dd(e),e;aJ(n);const{originPosition:a,scale:c,translate:u}=n,p=Tit;p.originPosition=a;const h=p.scale;h[0]=(v=c[0])!=null?v:1,h[1]=-((_=c[1])!=null?_:1),h[2]=(x=c[2])!=null?x:1,h[3]=(S=c[3])!=null?S:1;const m=p.translate;if(m[0]=(C=u[0])!=null?C:0,m[1]=(E=u[1])!=null?E:0,m[2]=(T=u[2])!=null?T:0,m[3]=(w=u[3])!=null?w:0,!s.length){for(let I=0;I<l;++I)e.coords[I]=qM(p,o[I],I);return e!==t&&dd(e,l,0),e}let y=0;for(let I=0;I<s.length;I++){const M=s[I];e.lengths[I]=M;for(let W=0;W<l;++W)e.coords[y+W]=qM(p,o[y+W],W);let L=e.coords[y],R=e.coords[y+1];y+=l;for(let W=1;W<M;W++,y+=l){L+=o[y]*h[0],R+=o[y+1]*h[1],e.coords[y]=L,e.coords[y+1]=R;for(let z=2;z<l;++z)e.coords[y+z]=qM(p,o[y+z],z)}}return e!==t&&dd(e,o.length,s.length),e}function Ryt(e,t,r,i,n,o){if(dd(e),e.lengths.push(...t.lengths),r===n&&i===o)for(let s=0;s<t.coords.length;s++)e.coords.push(t.coords[s]);else{const s=To(r,i),l=AN(r,i,n,o),a=t.coords;for(let c=0;c<a.length;c+=s)l(e.coords,a,e.coords.length,c,a[c],a[c+1])}return e}function Eit(e,t,r,i){let n=0,o=e[i*t],s=e[i*(t+1)];for(let l=1;l<r;l++){const a=o+e[i*(t+l)],c=s+e[i*(t+l)+1],u=(a-o)*(c+s);o=a,s=c,n+=u}return .5*n}function Dyt(e,t){const{coords:r,lengths:i}=e;let n=0,o=0;for(let s=0;s<i.length;s++){const l=i[s];o+=Eit(r,n,l,t),n+=l}return Math.abs(o)}function Nyt(e,t){if(et(e))return null;const r=e.clone(),i=e.coords,n=e.lengths;let o=0;for(let s=0;s<n.length;s++){const l=n[s];let a=i[t*o],c=i[t*o+1];for(let u=1;u<l;u++){const p=a+i[t*(o+u)],h=c+i[t*(o+u)+1];r.coords[t*(o+u)]=p,r.coords[t*(o+u)+1]=h,a=p,c=h}o+=l}return r}function dd(e,t=0,r=0){hc(e.lengths,r),hc(e.coords,t)}function hc(e,t=0){e.length!==t&&(e.length=t)}const Tit={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]};var qO;let tn=qO=class extends xt{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&this.where==null&&(t.definitionExpression="1=1")}clone(){return new qO(Ge({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};d([f({type:Boolean,json:{write:!0}})],tn.prototype,"cacheHint",void 0),d([f({type:pl,json:{write:!0}})],tn.prototype,"dynamicDataSource",void 0),d([f({type:String,json:{write:!0}})],tn.prototype,"gdbVersion",void 0),d([f({type:Number,json:{write:!0}})],tn.prototype,"geometryPrecision",void 0),d([f({type:Date})],tn.prototype,"historicMoment",void 0),d([zt("historicMoment")],tn.prototype,"_writeHistoricMoment",null),d([f({type:Number,json:{write:!0}})],tn.prototype,"maxAllowableOffset",void 0),d([f({type:[Number],json:{write:!0}})],tn.prototype,"objectIds",void 0),d([f({type:[String],json:{write:!0}})],tn.prototype,"orderByFields",void 0),d([f({type:[String],json:{write:!0}})],tn.prototype,"outFields",void 0),d([f({type:gr,json:{read:{source:"outSR"},write:{target:"outSR"}}})],tn.prototype,"outSpatialReference",void 0),d([f({json:{write:!0}})],tn.prototype,"relationshipId",void 0),d([f({type:Number,json:{read:{source:"resultOffset"}}})],tn.prototype,"start",void 0),d([zt("start"),zt("num")],tn.prototype,"writeStart",null),d([f({type:Number,json:{read:{source:"resultRecordCount"}}})],tn.prototype,"num",void 0),d([f({json:{write:!0}})],tn.prototype,"returnGeometry",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],tn.prototype,"returnM",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],tn.prototype,"returnZ",void 0),d([f({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],tn.prototype,"where",void 0),tn=qO=d([se("esri.rest.support.RelationshipQuery")],tn),tn.from=_n(tn);const k1=tn;var YO;let yy=YO=class extends xt{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new YO({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};d([f({type:[String],json:{write:!0}})],yy.prototype,"groupByFields",void 0),d([f({type:Number,json:{write:!0}})],yy.prototype,"topCount",void 0),d([f({type:[String],json:{write:!0}})],yy.prototype,"orderByFields",void 0),yy=YO=d([se("esri.rest.support.TopFilter")],yy);const Ait=yy;var KO;const C7=new Yr({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),k7=new Yr({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let ji=KO=class extends xt{constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new KO(Ge({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};d([f({type:Boolean,json:{write:!0}})],ji.prototype,"cacheHint",void 0),d([f({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],ji.prototype,"distance",void 0),d([f({types:Tg,json:{read:Ih,write:!0}})],ji.prototype,"geometry",void 0),d([f({type:Number,json:{write:!0}})],ji.prototype,"geometryPrecision",void 0),d([f({type:Number,json:{write:!0}})],ji.prototype,"maxAllowableOffset",void 0),d([f({type:Number,json:{read:{source:"resultRecordCount"}}})],ji.prototype,"num",void 0),d([f({json:{write:!0}})],ji.prototype,"objectIds",void 0),d([f({type:[String],json:{write:!0}})],ji.prototype,"orderByFields",void 0),d([f({type:[String],json:{write:!0}})],ji.prototype,"outFields",void 0),d([f({type:gr,json:{read:{source:"outSR"},write:{target:"outSR"}}})],ji.prototype,"outSpatialReference",void 0),d([f({type:String,json:{write:!0}})],ji.prototype,"resultType",void 0),d([f({json:{write:!0}})],ji.prototype,"returnGeometry",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],ji.prototype,"returnM",void 0),d([f({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],ji.prototype,"returnZ",void 0),d([f({type:Number,json:{read:{source:"resultOffset"}}})],ji.prototype,"start",void 0),d([zt("start"),zt("num")],ji.prototype,"writeStart",null),d([f({type:String,json:{read:{source:"spatialRel",reader:C7.read},write:{target:"spatialRel",writer:C7.write}}})],ji.prototype,"spatialRelationship",void 0),d([f({type:vc,json:{write:!0}})],ji.prototype,"timeExtent",void 0),d([f({type:Ait,json:{write:!0}})],ji.prototype,"topFilter",void 0),d([f({type:String,json:{read:k7.read,write:{writer:k7.write,overridePolicy(e){return{enabled:ue(e)&&ue(this.distance)&&this.distance>0}}}}})],ji.prototype,"units",void 0),d([f({type:String,json:{write:!0}})],ji.prototype,"where",void 0),ji=KO=d([se("esri.rest.support.TopFeaturesQuery")],ji),ji.from=_n(ji);const F2=ji,Mit="esri.widgets.Feature.support.relatedFeatureUtils",S7=ft.getLogger(Mit),E7=new Map;function ZO(e){if(!od(e))return null;const[t,r]=e.split("/").slice(1);return{layerId:t,fieldName:r}}function Iit(e,t){if(!t.relationships)return null;let r=null;const{relationships:i}=t;return i.some(n=>n.id===parseInt(e,10)&&(r=n,!0)),r}function Pit({originRelationship:e,relationships:t,layerId:r}){let i;return t&&t.some(n=>(`${n.relatedTableId}`===r&&n.id===e.id&&(i=n),!!i)),i}function $it(e,t){const r=t.toLowerCase();for(const i in e)if(i.toLowerCase()===r)return e[i];return null}function Oit(e,t){const r=Iit(e,t);if(!!r)return{url:`${t.url}/${r.relatedTableId}`,sourceSpatialReference:t.spatialReference,relation:r,relatedFields:[],outStatistics:[]}}function Lit(e,t){if(!t||!e)return;const{features:r,statsFeatures:i}=e,n=r&&r.value;t.relatedFeatures=n?n.features:[];const o=i&&i.value;t.relatedStatsFeatures=o?o.features:[]}function Rit(e,t,r,i){const n=new k1;return n.outFields=["*"],n.relationshipId=typeof t.id=="number"?t.id:parseInt(t.id,10),n.objectIds=[e.attributes[r.objectIdField]],r.queryRelatedFeatures(n,i)}function Dit(e,t,r){let i=0;const n=[];for(;i<t.length;)n.push(`${e} IN (${t.slice(i,r+i)})`),i+=r;return n.join(" OR ")}async function Nit(e,t,r,i){const n=r.layerId.toString(),{layerInfo:o,relation:s,relatedFields:l,outStatistics:a,url:c,sourceSpatialReference:u}=t,p=Pit({originRelationship:s,relationships:o.relationships,layerId:n});if(p.relationshipTableId&&p.keyFieldInRelationshipTable){const m=(await Rit(e,p,r,i))[e.attributes[r.objectIdField]];if(!m)return null;const y=m.features.map(v=>v.attributes[o.objectIdField]);if((a==null?void 0:a.length)>0&&o.supportsStatistics){const v=new ea;v.where=Dit(o.objectIdField,y,1e3),v.outFields=l,v.outStatistics=a,v.sourceSpatialReference=u;const _={features:Promise.resolve(m),statsFeatures:WM(c,v)};return Bs(_)}}const h=p==null?void 0:p.keyField;if(h){const m=gD(Bit(o.fields,h)),y=$it(e.attributes,s.keyField),v=m?`${h}=${y}`:`${h}='${y}'`,_=WM(c,new ea({where:v,outFields:t.relatedFields,sourceSpatialReference:u}),i),x=t.outStatistics&&t.outStatistics.length>0&&o.supportsStatistics?WM(c,new ea({where:v,outFields:t.relatedFields,outStatistics:t.outStatistics,sourceSpatialReference:u}),i):null,S={features:_};return x&&(S.statsFeatures=x),Bs(S)}return null}function Fit(e,t){return ri(e,{query:{f:"json"},signal:t&&t.signal})}function zit({relatedInfos:e,layer:t},r){const i={};return e.forEach((n,o)=>{const{relation:s}=n;if(!s){const p=new ze("relation-required","A relation is required on a layer to retrieve related records.");throw S7.error(p),p}const{relatedTableId:l}=s;if(typeof l!="number"){const p=new ze("A related table ID is required on a layer to retrieve related records.");throw S7.error(p),p}const a=`${t.url}/${l}`,c=E7.get(a),u=c||Fit(a,r);c||E7.set(a,u),i[o]=u}),Bs(i)}function jit({graphic:e,relatedInfos:t,layer:r},i){const n={};return t.forEach((o,s)=>{o.layerInfo&&(n[s]=Nit(e,o,r,i))}),Bs(n)}function Vit({relatedInfo:e,fieldName:t,fieldInfo:r}){if(e.relatedFields.push(t),r.statisticType){const i=new Yie({statisticType:r.statisticType,onStatisticField:t,outStatisticFieldName:t});e.outStatistics.push(i)}}function Bit(e,t){if(e!=null){t=t.toLowerCase();for(const r of e)if(r&&r.name.toLowerCase()===t)return r}return null}const T7={chartAnimation:!0};let qn=class extends rr{constructor(e){super(e),this.abilities={...T7},this.activeMediaInfoIndex=0,this.attributes=null,this.description=null,this.fieldInfoMap=null,this.formattedAttributes=null,this.expressionAttributes=null,this.layer=null,this.mediaInfos=null,this.popupTemplate=null,this.relatedInfos=null,this.title=null}castAbilities(e){return{...T7,...e}}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}setActiveMedia(e){this._setContentElementMedia(e)}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}_setContentElementMedia(e){const{formattedMediaInfoCount:t}=this,r=(e+t)%t;this.activeMediaInfoIndex=r}_pageContentElementMedia(e){const{activeMediaInfoIndex:t}=this,r=t+e;this._setContentElementMedia(r)}_formatMediaInfos(){const{attributes:e,mediaInfos:t,formattedAttributes:r,expressionAttributes:i,fieldInfoMap:n,layer:o}=this;return t==null?void 0:t.map(s=>{const l=s==null?void 0:s.clone();if(!l)return null;if(l.title=$m({attributes:e,fieldInfoMap:n,globalAttributes:r,expressionAttributes:i,layer:o,text:l.title}),l.caption=$m({attributes:e,fieldInfoMap:n,globalAttributes:r,expressionAttributes:i,layer:o,text:l.caption}),l.altText=$m({attributes:e,fieldInfoMap:n,globalAttributes:r,expressionAttributes:i,layer:o,text:l.altText}),l.type==="image"){const{value:a}=l;return this._setImageValue({value:a,formattedAttributes:r,layer:o}),l.value.sourceURL?l:void 0}if(l.type==="pie-chart"||l.type==="line-chart"||l.type==="column-chart"||l.type==="bar-chart"){const{value:a}=l;return this._setChartValue({value:a,chartType:l.type,attributes:e,formattedAttributes:r,layer:o,expressionAttributes:i}),l}return null}).filter(Boolean)}_setImageValue(e){const{fieldInfoMap:t}=this,{value:r,formattedAttributes:i,layer:n}=e,{linkURL:o,sourceURL:s}=r;if(s){const l=EO(s,n);r.sourceURL=SO({formattedAttributes:i,template:l,fieldInfoMap:t})}if(o){const l=EO(o,n);r.linkURL=SO({formattedAttributes:i,template:l,fieldInfoMap:t})}}_setChartValue(e){const{value:t,attributes:r,formattedAttributes:i,chartType:n,layer:o,expressionAttributes:s}=e,{popupTemplate:l,relatedInfos:a}=this,{fields:c,normalizeField:u}=t;if(t.fields=met(c,o),u&&(t.normalizeField=w1(u,o)),!c.some(h=>!!(i[h]!=null||od(h)&&a.size)))return;const p=l==null?void 0:l.fieldInfos;c.forEach(h=>{if(od(h))return void(t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:p,fieldName:h,formattedAttributes:i,chartType:n,value:t})]);const m=this._getChartOption({value:t,attributes:r,chartType:n,formattedAttributes:i,expressionAttributes:s,fieldName:h,fieldInfos:p});t.series.push(m)})}_getRelatedChartInfos(e){var y;const{fieldInfos:t,fieldName:r,formattedAttributes:i,chartType:n,value:o}=e,s=[],l=ZO(r),{layerId:a,fieldName:c}=l,u=(y=this.relatedInfos)==null?void 0:y.get(a.toString());if(!u)return s;const{relatedFeatures:p,relation:h}=u;if(!h||!p)return s;const{cardinality:m}=h;return p.forEach(v=>{const{attributes:_}=v;_&&Object.keys(_).forEach(x=>{x===c&&s.push(this._getChartOption({value:o,attributes:_,formattedAttributes:i,fieldName:r,chartType:n,relatedFieldName:x,fieldInfos:t}))})}),m==="one-to-many"||m==="many-to-many"?s:[s[0]]}_getTooltip({label:e,value:t,chartType:r}){return r==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){var E,T,w,I,M,L;const{value:t,attributes:r,formattedAttributes:i,expressionAttributes:n,fieldName:o,relatedFieldName:s,fieldInfos:l,chartType:a}=e,{layer:c,fieldInfoMap:u}=this,{normalizeField:p,tooltipField:h}=t,m=p?od(p)?r[ZO(p).fieldName]:r[p]:null,y=fN(o)&&n&&n[o]!==void 0?n[o]:s&&r[s]!==void 0?r[s]:r[o]!==void 0?r[o]:i[o],v=new qX({fieldName:o,value:y===void 0?null:y&&m?y/m:y});if(od(o)){const R=u.get(o.toLowerCase()),W=u.get(h.toLowerCase()),z=(E=R==null?void 0:R.fieldName)!=null?E:o,j=(M=(I=(w=i[(T=W==null?void 0:W.fieldName)!=null?T:h])!=null?w:R==null?void 0:R.label)!=null?I:R==null?void 0:R.fieldName)!=null?M:s,U=i[z];return v.tooltip=this._getTooltip({label:j,value:U,chartType:a}),v}const _=vie(l,o),x=w1(o,c),S=h&&i[h]!==void 0?i[h]:gie(_||new sx({fieldName:x}),(L=this.popupTemplate)==null?void 0:L.expressionInfos),C=i[x];return v.tooltip=this._getTooltip({label:S,value:C,chartType:a}),v}};d([f()],qn.prototype,"abilities",void 0),d([Qr("abilities")],qn.prototype,"castAbilities",null),d([f()],qn.prototype,"activeMediaInfoIndex",void 0),d([f({readOnly:!0})],qn.prototype,"activeMediaInfo",null),d([f()],qn.prototype,"attributes",void 0),d([f()],qn.prototype,"description",void 0),d([f()],qn.prototype,"fieldInfoMap",void 0),d([f()],qn.prototype,"formattedAttributes",void 0),d([f()],qn.prototype,"expressionAttributes",void 0),d([f({readOnly:!0})],qn.prototype,"formattedMediaInfos",null),d([f()],qn.prototype,"layer",void 0),d([f({readOnly:!0})],qn.prototype,"formattedMediaInfoCount",null),d([f()],qn.prototype,"mediaInfos",void 0),d([f()],qn.prototype,"popupTemplate",void 0),d([f()],qn.prototype,"relatedInfos",void 0),d([f()],qn.prototype,"title",void 0),qn=d([se("esri.widgets.Feature.FeatureMedia.FeatureMediaViewModel")],qn);const Lm=qn;var A7=["#ffffff","#858585","#ffbebe","#ffebbe","#ffebaf","#ffffbe","#e9ffbe","#d3ffbe","#beffe8","#bee8ff","#bed2ff","#e8beff","#ffbee8","#ebebeb","#707070","#ff7f7f","#ffa77f","#ffd37f","#ffff73","#d1ff73","#a3ff73","#73ffdf","#73dfff","#73b2ff","#df73ff","#ff73df","#d6d6d6","#5c5c5c","#ff0000","#ff5500","#ffaa00","#ffff00","#aaff00","#55ff00","#00ffc5","#00c5ff","#0070ff","#c500ff","#ff00c5","#c2c2c2","#474747","#e60000","#e64c00","#e69800","#e6e600","#98e600","#4ce600","#00e6a9","#00a9e6","#005ce6","#a900e6","#e600a9","#adadad","#242424","#a80000","#a83800","#a87000","#a8a800","#70a800","#38a800","#00a884","#0084a8","#004da8","#8400a8","#a80084","#999999","#1a1a1a","#730000","#732600","#734c00","#737300","#4c7300","#267300","#00734c","#004c73","#002673","#4c0073","#73004"],Uit=[].concat(A7.slice(30,39),A7.slice(28,30).reverse()),Wit=[{name:"default",colors:Uit},{name:"cat-dark",colors:["#ed5151","#149ece","#a7c636","#9e559c","#fc921f","#ffde3e","#f789d8","#b7814a","#3caf99","#6b6bd6","#b54779","#7f7f7f"]},{name:"tropical-bliss",colors:["#fce138","#ff9399","#fcd27e","#f1983c","#a553b7","#b1a9d0","#6ecffc","#4c81cd","#fc6f84","#fc3e5a","#6af689","#48885c"]},{name:"desert-blooms",colors:["#102432","#144d59","#ffc730","#ed9310","#a64f1b","#661510","#d9351a","#b31515","#4a0932","#8c213f","#18382e","#2c6954"]},{name:"under-the-sea",colors:["#bf9727","#607100","#00734c","#704489","#01acca","#024e76","#f09100","#ea311f","#c6004b","#7570b3","#666666","#333333"]},{name:"vibrant-rainbow",colors:["#fffb00","#f5cb11","#9fd40c","#46e39c","#32b8a6","#7ff2fa","#ac08cc","#dd33ff","#eb7200","#e8a784","#bf2e2e","#6c7000"]},{name:"ocean-bay",colors:["#191921","#11495c","#78b1c2","#454f4b","#8f8f82","#9be0c0","#87b051","#f7ec88","#ebdcc1","#dbb658","#c43541","#75351e"]},{name:"prairie-summer",colors:["#332424","#751555","#d47013","#d68989","#211173","#82aad6","#7bfaeb","#6ec9a8","#6b6408","#eada40","#ccc54a","#1fc235"]},{name:"pastel-chalk",colors:["#fffd99","#f5e6a4","#c1d48c","#b8e3d0","#a0b8b5","#cbf7fa","#d791f2","#dfc1eb","#f2b983","#e8c4b2","#bf8e8e","#94995c"]},{name:"seq-yellow-orange-red-bright",colors:["#910000","#b1260b","#c0370f","#e05919","#ef6a1d","#ff7b22","#ffa143","#ffb454","#ffda74","#ffed85"]},{name:"seq-reds-bright",colors:["#57453b","#7b4238","#9f4036","#c23d33","#d7483c","#ec5244","#f3696c","#f9816c","#ffc4ae","#fff0dc"]},{name:"seq-purples-bright",colors:["#4e465c","#5a4a78","#695291","#775baa","#8663c3","#946bdc","#aa89e8","#c1a6f3","#d7c4ff","#e6e1ff"]},{name:"seq-blues-bright",colors:["#404d54","#435c6c","#48799d","#4b88b6","#4d96ce","#50a5e7","#74bbed","#98d0f3","#bce6f9","#e6faff"]},{name:"seq-greens-bright",colors:["#39544c","#386757","#368165","#359b73","#33b581","#4bc392","#64d2a2","#7ce0b3","#cbf6d9","#f4ffea"]},{name:"seq-browns-bright",colors:["#524834","#715b38","#8f6e3c","#ae8140","#cc9444","#eba748","#eeb664","#f0c47f","#f9e0b7","#fff8eb"]}];const M7="en-us",ON=new Map([["ar",()=>ut(()=>import("./ar.86cc1692.js"),["assets/ar.86cc1692.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.a)],["bg-bg",()=>ut(()=>import("./bg_BG.b736e920.js"),["assets/bg_BG.b736e920.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.b)],["bs-ba",()=>ut(()=>import("./bs_BA.a323ad66.js"),["assets/bs_BA.a323ad66.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.b)],["ca-es",()=>ut(()=>import("./ca_ES.ef58828b.js"),["assets/ca_ES.ef58828b.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.c)],["cs-cz",()=>ut(()=>import("./cs_CZ.b2d386a1.js"),["assets/cs_CZ.b2d386a1.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.c)],["da-dk",()=>ut(()=>import("./da_DK.16566135.js"),["assets/da_DK.16566135.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.d)],["de-de",()=>ut(()=>import("./de_DE.ce6610cd.js"),["assets/de_DE.ce6610cd.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.d)],["de-ch",()=>ut(()=>import("./de_CH.60578987.js"),["assets/de_CH.60578987.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.d)],["el-gr",()=>ut(()=>import("./el_GR.d4c6a4ee.js"),["assets/el_GR.d4c6a4ee.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.e)],["en-us",()=>ut(()=>import("./en_US.71a65555.js"),["assets/en_US.71a65555.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.e)],["en-ca",()=>ut(()=>import("./en_CA.ec6c2b7c.js"),["assets/en_CA.ec6c2b7c.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.e)],["es-es",()=>ut(()=>import("./es_ES.ef1b40e9.js"),["assets/es_ES.ef1b40e9.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.e)],["et-ee",()=>ut(()=>import("./et_EE.b9efffde.js"),["assets/et_EE.b9efffde.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.e)],["fi-fi",()=>ut(()=>import("./fi_FI.6b2b8640.js"),["assets/fi_FI.6b2b8640.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.f)],["fr-fr",()=>ut(()=>import("./fr_FR.0d0aa4b2.js"),["assets/fr_FR.0d0aa4b2.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.f)],["he-il",()=>ut(()=>import("./he_IL.cefd7375.js"),["assets/he_IL.cefd7375.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.h)],["hr-hr",()=>ut(()=>import("./hr_HR.f054665f.js"),["assets/hr_HR.f054665f.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.h)],["hu-hu",()=>ut(()=>import("./hu_HU.6eb2e3c1.js"),["assets/hu_HU.6eb2e3c1.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.h)],["id-id",()=>ut(()=>import("./id_ID.2f4d1d20.js"),["assets/id_ID.2f4d1d20.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.i)],["it-it",()=>ut(()=>import("./it_IT.d99d283a.js"),["assets/it_IT.d99d283a.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.i)],["ja-jp",()=>ut(()=>import("./ja_JP.02630a59.js"),["assets/ja_JP.02630a59.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.j)],["ko-kr",()=>ut(()=>import("./ko_KR.494abdb6.js"),["assets/ko_KR.494abdb6.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.k)],["lt-lt",()=>ut(()=>import("./lt_LT.e5dc3b07.js"),["assets/lt_LT.e5dc3b07.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.l)],["lv-lv",()=>ut(()=>import("./lv_LV.006fe0d6.js"),["assets/lv_LV.006fe0d6.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.l)],["nb-no",()=>ut(()=>import("./nb_NO.17aa1247.js"),["assets/nb_NO.17aa1247.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.n)],["nl-nl",()=>ut(()=>import("./nl_NL.bb55a4a7.js"),["assets/nl_NL.bb55a4a7.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.n)],["pl-pl",()=>ut(()=>import("./pl_PL.ca3d90a7.js"),["assets/pl_PL.ca3d90a7.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.p)],["pt-br",()=>ut(()=>import("./pt_BR.07fbb84b.js"),["assets/pt_BR.07fbb84b.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.p)],["pt-pt",()=>ut(()=>import("./pt_PT.e82fce8e.js"),["assets/pt_PT.e82fce8e.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.p)],["ro-ro",()=>ut(()=>import("./ro_RO.08a11e64.js"),["assets/ro_RO.08a11e64.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.r)],["ru-ru",()=>ut(()=>import("./ru_RU.4b08b8da.js"),["assets/ru_RU.4b08b8da.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.r)],["sk-sk",()=>ut(()=>import("./sk_SK.c9cf24d2.js"),["assets/sk_SK.c9cf24d2.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.s)],["sl-sl",()=>ut(()=>import("./sl_SL.7bddc01e.js"),["assets/sl_SL.7bddc01e.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.s)],["sr-rs",()=>ut(()=>import("./sr_RS.9d484aca.js"),["assets/sr_RS.9d484aca.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.s)],["sv-se",()=>ut(()=>import("./sv_SE.122bb1e9.js"),["assets/sv_SE.122bb1e9.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.s)],["th-th",()=>ut(()=>import("./th_TH.50530bc1.js"),["assets/th_TH.50530bc1.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.t)],["tr-tr",()=>ut(()=>import("./tr_TR.027c89bc.js"),["assets/tr_TR.027c89bc.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.t)],["uk-ua",()=>ut(()=>import("./uk_UA.831b2f6d.js"),["assets/uk_UA.831b2f6d.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.u)],["vi-vn",()=>ut(()=>import("./vi_VN.f6625b5d.js"),["assets/vi_VN.f6625b5d.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.v)],["zh-cn",()=>ut(()=>import("./zh_Hans.38cb8157.js"),["assets/zh_Hans.38cb8157.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.z)],["zh-hk",()=>ut(()=>import("./zh_Hant.e4eb7b89.js"),["assets/zh_Hant.e4eb7b89.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.z)],["zh-tw",()=>ut(()=>import("./zh_Hant.e4eb7b89.js"),["assets/zh_Hant.e4eb7b89.js","assets/_commonjsHelpers.773c2c82.js"]).then(e=>e.z)]]);function Hit(e){const t=e.split("-")[0].toLowerCase();let r=null;for(const i of ON.keys())if(i.startsWith(t)){r=i;break}return r}function Git(e){return e?ON.has(e.toLowerCase())?e.toLowerCase():Hit(e)||M7:M7}let Ug,Cb;async function qit(e=ic()){if(e=Git(e),Ug&&e===Cb)return Ug;Ug=ut(()=>import("./index.f6f524c6.js"),["assets/index.f6f524c6.js","assets/_commonjsHelpers.773c2c82.js"]).then(t=>t.i),Cb=e;try{const[t,r]=await Promise.all([Ug,ON.get(Cb)()]);Cb===e&&(t.am4core.options.defaultLocale=r.default),t.am4core.options.suppressWarnings=!0,t.am4core.options.autoDispose=!0}catch{return Ug=null,Cb=null,null}return Ug}function Yit(e,t="default"){const r=Wit.find(i=>i.name===t);return r?r.colors.map(i=>e.color(i)):null}const an={base:"esri-feature-media",mediaContainer:"esri-feature-media__container",mediaItemContainer:"esri-feature-media__item-container",mediaItem:"esri-feature-media__item",mediaItemTitle:"esri-feature-media__item-title",mediaItemCaption:"esri-feature-media__item-caption",mediaPrevious:"esri-feature-media__previous",mediaPreviousIconLTR:"esri-feature-media__previous-icon",mediaPreviousIconRTL:"esri-feature-media__previous-icon--rtl",mediaNext:"esri-feature-media__next",mediaNextIconLTR:"esri-feature-media__next-icon",mediaNextIconRTL:"esri-feature-media__next-icon--rtl",mediaChart:"esri-feature-media__chart",mediaButton:"esri-feature-media__button",mediaIcon:"esri-feature-media__icon",iconLeftTriangleArrow:"esri-icon-left-triangle-arrow",iconRightTriangleArrow:"esri-icon-right-triangle-arrow"},YM=.05,KM=.95,ZM=15,xu="color",np="tooltip",kb="value",I7="default-line-value";let ks=class extends Ho{constructor(e,t){super(e,t),this._refreshTimer=null,this._refreshIntervalInfo=null,this._featureElementInfo=null,this.viewModel=new Lm,this.messages=null,this._getChartDependencies=async r=>{const i=await qit(),{destroyed:n,viewModel:o}=this;if(n||!o||!r)return;const{activeMediaInfo:s}=o,l=await this._getRendererColors(i);this._renderChart({chartDiv:r,mediaInfo:s,chartsModule:i,colorMap:l})}}initialize(){this._featureElementInfo=new yT,this.addHandles([Ot(()=>{var e,t;return[(e=this.viewModel)==null?void 0:e.activeMediaInfo,(t=this.viewModel)==null?void 0:t.activeMediaInfoIndex]},()=>this._setupMediaRefreshTimer(),si),Ot(()=>{var e,t;return[(e=this.viewModel)==null?void 0:e.description,(t=this.viewModel)==null?void 0:t.title]},()=>this._setupFeatureElementInfo(),si)])}destroy(){this._clearMediaRefreshTimer(),this._featureElementInfo.destroy()}get attributes(){return this.viewModel.attributes}set attributes(e){this.viewModel.attributes=e}get activeMediaInfoIndex(){return this.viewModel.activeMediaInfoIndex}set activeMediaInfoIndex(e){this.viewModel.activeMediaInfoIndex=e}get description(){return this.viewModel.description}set description(e){this.viewModel.description=e}get fieldInfoMap(){return this.viewModel.fieldInfoMap}set fieldInfoMap(e){this.viewModel.fieldInfoMap=e}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get mediaInfos(){return this.viewModel.mediaInfos}set mediaInfos(e){this.viewModel.mediaInfos=e}get popupTemplate(){return this.viewModel.popupTemplate}set popupTemplate(e){this.viewModel.popupTemplate=e}get relatedInfos(){return this.viewModel.relatedInfos}set relatedInfos(e){this.viewModel.relatedInfos=e}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}render(){var e;return Ue("div",{bind:this,class:an.base,onkeyup:this._handleMediaKeyup},(e=this._featureElementInfo)==null?void 0:e.render(),this.renderMedia())}renderMedia(){const{formattedMediaInfoCount:e}=this.viewModel;return e?Ue("div",{key:"media-element-container",class:an.mediaContainer},this.renderMediaPageButton("previous"),this.renderMediaInfo(),this.renderMediaPageButton("next")):null}renderImageMediaInfo(e){const{_refreshIntervalInfo:t}=this,{activeMediaInfoIndex:r,formattedMediaInfoCount:i}=this.viewModel,{value:n,refreshInterval:o,altText:s,title:l,type:a}=e,{sourceURL:c,linkURL:u}=n,p=mie(u)?"_blank":"_self",h=p==="_blank"?"noreferrer":"",m=o?t:null,y=m?m.timestamp:0,v=m?m.sourceURL:c,_=Ue("img",{alt:s||l,key:`media-${a}-${r}-${i}-${y}`,src:v});return(u?Ue("a",{title:l,href:u,rel:h,target:p},_):null)||_}renderChartMediaInfo(e){const{activeMediaInfoIndex:t,formattedMediaInfoCount:r}=this.viewModel;return Ue("div",{key:`media-${e.type}-${t}-${r}`,bind:this,class:an.mediaChart,afterCreate:this._getChartDependencies})}renderMediaInfoType(){const{activeMediaInfo:e}=this.viewModel;return e?e.type==="image"?this.renderImageMediaInfo(e):e.type.includes("chart")?this.renderChartMediaInfo(e):null:null}renderMediaInfo(){const{activeMediaInfo:e}=this.viewModel;if(!e)return null;const t=e.title?Ue("div",{key:"media-title",class:an.mediaItemTitle,innerHTML:e.title}):null,r=e.caption?Ue("div",{key:"media-caption",class:an.mediaItemCaption,innerHTML:e.caption}):null;return Ue("div",{key:"media-container",class:an.mediaItemContainer},Ue("div",{key:"media-item-container",class:an.mediaItem},this.renderMediaInfoType()),t,r)}renderMediaPageButton(e){if(this.viewModel.formattedMediaInfoCount<2)return null;const t=e==="previous",r=t?this.messages.previous:this.messages.next,i=t?this.classes(an.mediaButton,an.mediaPrevious):this.classes(an.mediaButton,an.mediaNext),n=t?this.classes(an.mediaIcon,an.mediaPreviousIconLTR,an.iconLeftTriangleArrow):this.classes(an.mediaIcon,an.mediaNextIconLTR,an.iconRightTriangleArrow),o=t?this.classes(an.mediaIcon,an.mediaPreviousIconRTL,an.iconRightTriangleArrow):this.classes(an.mediaIcon,an.mediaNextIconRTL,an.iconLeftTriangleArrow),s=t?"media-previous":"media-next",l=t?this._previous:this._next;return Ue("button",{type:"button",key:s,title:r,"aria-label":r,tabIndex:0,class:i,bind:this,onclick:l},Ue("span",{"aria-hidden":"true",class:n}),Ue("span",{"aria-hidden":"true",class:o}))}_setupFeatureElementInfo(){const{description:e,title:t}=this;this._featureElementInfo.set({description:e,title:t})}_next(){this.viewModel.next()}_previous(){this.viewModel.previous()}async _getRendererColors(e){var s,l;const{am4core:t}=e,r=new Map,i=(l=(s=this.viewModel)==null?void 0:s.layer)==null?void 0:l.renderer,n="default";if(!i)return r;const o=await grt(i);return o.delete(n),Array.from(o.values()).every(a=>(a==null?void 0:a.length)===1)&&(r.set(I7,t.color({r:50,g:50,b:50,a:1})),Array.from(o.keys()).forEach(a=>{a&&r.set(a,t.color(o.get(a)[0].toCss(!0)))})),r}_handleMediaKeyup(e){const t=sm(e);t==="ArrowLeft"&&(e.stopPropagation(),this.viewModel.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.viewModel.next())}_renderChart(e){const{abilities:t}=this.viewModel,{chartsModule:r,chartDiv:i,mediaInfo:n,colorMap:o}=e,{value:s,type:l}=n,{am4core:a}=r,c=Yit(a);function u(m){m instanceof a.ColorSet&&c&&(m.list=c)}yE()&&a.useTheme(r.am4themes_dark);const p=window.matchMedia("(prefers-reduced-motion: reduce)");t.chartAnimation&&!p.matches?a.useTheme(r.am4themes_animated):a.unuseTheme(r.am4themes_animated),a.useTheme(u);const h=l==="pie-chart"?this._createPieChart(e):this._createXYChart(e);i.setAttribute("aria-label",n.altText||n.title),h.data=s.series.map(m=>({[np]:m.tooltip,[kb]:m.value,[xu]:o.get(m.fieldName)})).filter(m=>l!=="pie-chart"||m.value>0)}_customizeChartTooltip(e,t){e.label.wrap=!0,e.label.maxWidth=200,e.autoTextColor=!1,e.getFillFromObject=!1,e.label.fill=t.color("#ffffff"),e.background.fill=t.color({r:0,g:0,b:0,a:.7})}_createPieChart(e){const{chartDiv:t,chartsModule:r}=e,{am4core:i,am4charts:n}=r,o=i.create(t,n.PieChart);o.rtl=tu(this.container);const s=o.series.push(new n.PieSeries);return s.labels.template.disabled=!0,s.ticks.template.disabled=!0,s.dataFields.value=kb,s.dataFields.category=np,this._customizeChartTooltip(s.tooltip,i),s.slices.template.propertyFields.fill=xu,s.slices.template.propertyFields.stroke=xu,o}_getMinSeriesValue(e){let t=0;return e.forEach(r=>t=Math.min(r.value,t)),t}_createColumnChart(e,t){const{chartsModule:r,mediaInfo:i}=t,{value:n}=i,{am4core:o,am4charts:s}=r,l=e.xAxes.push(new s.CategoryAxis);l.dataFields.category=np,l.renderer.labels.template.disabled=!0,this._customizeChartTooltip(l.tooltip,o),l.tooltip.events.on("sizechanged",()=>{l.tooltip.dy=-l.tooltip.contentHeight});const a=e.yAxes.push(new s.ValueAxis),c=a.renderer.labels.template;a.renderer.minLabelPosition=YM,a.renderer.maxLabelPosition=KM,a.min=this._getMinSeriesValue(n.series),this._customizeChartTooltip(a.tooltip,o),c.wrap=!0;const u=e.series.push(new s.ColumnSeries);u.dataFields.valueY=kb,u.dataFields.categoryX=np,u.columns.template.propertyFields.fill=xu,u.columns.template.propertyFields.stroke=xu,e.cursor=new s.XYCursor,n.series.length>ZM&&(e.scrollbarX=new o.Scrollbar)}_createBarChart(e,t){const{chartsModule:r,mediaInfo:i}=t,{value:n}=i,{am4core:o,am4charts:s}=r,l=e.yAxes.push(new s.CategoryAxis);l.dataFields.category=np,l.renderer.inversed=!0,l.renderer.labels.template.disabled=!0,this._customizeChartTooltip(l.tooltip,o),l.tooltip.events.on("sizechanged",()=>{l.tooltip.dx=l.tooltip.contentWidth});const a=e.xAxes.push(new s.ValueAxis),c=a.renderer.labels.template;a.renderer.minLabelPosition=YM,a.renderer.maxLabelPosition=KM,a.min=this._getMinSeriesValue(n.series),this._customizeChartTooltip(a.tooltip,o),c.wrap=!0;const u=e.series.push(new s.ColumnSeries);u.dataFields.valueX=kb,u.dataFields.categoryY=np,u.columns.template.propertyFields.fill=xu,u.columns.template.propertyFields.stroke=xu,e.cursor=new s.XYCursor,n.series.length>ZM&&(e.scrollbarY=new o.Scrollbar)}_createLineChart(e,t){const{chartsModule:r,mediaInfo:i,colorMap:n}=t,{value:o}=i,{am4core:s,am4charts:l}=r,a=e.xAxes.push(new l.CategoryAxis);a.dataFields.category=np,a.renderer.labels.template.disabled=!0,this._customizeChartTooltip(a.tooltip,s),a.tooltip.events.on("sizechanged",()=>{a.tooltip.dy=-a.tooltip.contentHeight});const c=e.yAxes.push(new l.ValueAxis),u=c.renderer.labels.template;c.renderer.minLabelPosition=YM,c.renderer.maxLabelPosition=KM,c.min=this._getMinSeriesValue(o.series),this._customizeChartTooltip(c.tooltip,s),u.wrap=!0;const p=e.series.push(new l.LineSeries);p.dataFields.categoryX=np,p.dataFields.valueY=kb,p.strokeWidth=1;const h=n.get(I7);h&&(p.stroke=h);const m=p.bullets.push(new l.CircleBullet);m.propertyFields.fill=xu,m.propertyFields.stroke=xu,e.cursor=new l.XYCursor,o.series.length>ZM&&(e.scrollbarX=new s.Scrollbar)}_createXYChart(e){const{chartDiv:t,chartsModule:r,mediaInfo:i}=e,{type:n}=i,{am4core:o,am4charts:s}=r,l=o.create(t,s.XYChart);return l.rtl=tu(this.container),n==="column-chart"&&this._createColumnChart(l,e),n==="bar-chart"&&this._createBarChart(l,e),n==="line-chart"&&this._createLineChart(l,e),l}_clearMediaRefreshTimer(){const{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=null)}_updateMediaInfoTimestamp(e){const t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:this._getImageSource(e,t)},this.scheduleRender()}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();const{activeMediaInfo:e}=this.viewModel;e&&e.type==="image"&&e.refreshInterval&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){const{refreshInterval:t,value:r}=e;if(!t)return;const i=6e4*t;this._updateMediaInfoTimestamp(r.sourceURL);const n=setInterval(()=>{this._updateMediaInfoTimestamp(r.sourceURL)},i);this._refreshTimer=n}_getImageSource(e,t){const r=e.includes("?")?"&":"?",[i,n=""]=e.split("#");return`${i}${r}timestamp=${t}${n?"#":""}${n}`}};d([f()],ks.prototype,"attributes",null),d([f()],ks.prototype,"activeMediaInfoIndex",null),d([f()],ks.prototype,"description",null),d([f()],ks.prototype,"fieldInfoMap",null),d([f()],ks.prototype,"layer",null),d([f()],ks.prototype,"mediaInfos",null),d([f()],ks.prototype,"popupTemplate",null),d([f()],ks.prototype,"relatedInfos",null),d([f()],ks.prototype,"title",null),d([f({type:Lm})],ks.prototype,"viewModel",void 0),d([f(),Bo("esri/widgets/Feature/t9n/Feature")],ks.prototype,"messages",void 0),ks=d([se("esri.widgets.Feature.FeatureMedia")],ks);const cne=ks;var QO;let h_=QO=class extends xt{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new QO({minValue:this.minValue,maxValue:this.maxValue})}};d([f({type:Number,json:{write:!0}})],h_.prototype,"minValue",void 0),d([f({type:Number,json:{write:!0}})],h_.prototype,"maxValue",void 0),h_=QO=d([se("esri.renderer.support.AuthoringInfoClassBreakInfo")],h_);var JO;let Zp=JO=class extends xt{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new JO({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:Ge(this.classBreakInfos)})}};d([f({type:String,json:{write:!0}})],Zp.prototype,"field",void 0),d([f({type:String,json:{write:!0}})],Zp.prototype,"normalizationField",void 0),d([f({type:String,json:{write:!0}})],Zp.prototype,"label",void 0),d([f({type:[h_],json:{write:!0}})],Zp.prototype,"classBreakInfos",void 0),Zp=JO=d([se("esri.renderers.support.AuthoringInfoFieldInfo")],Zp);var XO;const z2=new Yr({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),j2=new Yr({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),P7={key:e=>typeof e=="number"?"number":"string",typeMap:{number:Number,string:String},base:null},$7=["high-to-low","above-and-below","centered-on","extremes"],O7=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],L7=["seconds","minutes","hours","days","months","years"];let Ss=XO=class extends xt{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return typeof e=="string"||typeof e=="number"?e:null}castStartTime(e){return typeof e=="string"||typeof e=="number"?e:null}get style(){return this.type==="color"?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return this.type==="color"||this.type==="size"?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new XO({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};d([f({types:P7,json:{write:!0}})],Ss.prototype,"endTime",void 0),d([Qr("endTime")],Ss.prototype,"castEndTime",null),d([f({type:String,json:{write:!0}})],Ss.prototype,"field",void 0),d([f({type:Number,json:{write:!0}})],Ss.prototype,"maxSliderValue",void 0),d([f({type:Number,json:{write:!0}})],Ss.prototype,"minSliderValue",void 0),d([f({types:P7,json:{write:!0}})],Ss.prototype,"startTime",void 0),d([Qr("startTime")],Ss.prototype,"castStartTime",null),d([f({type:z2.apiValues,value:null,json:{type:z2.jsonValues,read:z2.read,write:z2.write}})],Ss.prototype,"style",null),d([f({type:O7,value:null,json:{type:O7,origins:{"web-scene":{type:$7,write:{writer:(e,t)=>{$7.includes(e)&&(t.theme=e)}}}},write:!0}})],Ss.prototype,"theme",null),d([f({type:j2.apiValues,json:{type:j2.jsonValues,read:j2.read,write:j2.write}})],Ss.prototype,"type",void 0),d([f({type:L7,json:{type:L7,write:!0}})],Ss.prototype,"units",void 0),Ss=XO=d([se("esri.renderers.support.AuthoringInfoVisualVariable")],Ss);const Kit=Ss;let bk=class extends xt{constructor(e){super(e),this.type=null}};d([f({readOnly:!0,json:{read:!1,write:!0}})],bk.prototype,"type",void 0),bk=d([se("esri.rest.support.ColorRamp")],bk);const LN=bk;var e5;let zf=e5=class extends LN{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new e5({fromColor:Ge(this.fromColor),toColor:Ge(this.toColor),algorithm:this.algorithm})}};d([pr({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],zf.prototype,"algorithm",void 0),d([f({type:wr,json:{type:[ni],write:!0}})],zf.prototype,"fromColor",void 0),d([f({type:wr,json:{type:[ni],write:!0}})],zf.prototype,"toColor",void 0),d([f({type:["algorithmic"]})],zf.prototype,"type",void 0),zf=e5=d([se("esri.rest.support.AlgorithmicColorRamp")],zf);const RN=zf;var t5;let f_=t5=class extends LN{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new t5({colorRamps:Ge(this.colorRamps)})}};d([f({type:[RN],json:{write:!0}})],f_.prototype,"colorRamps",void 0),d([f({type:["multipart"]})],f_.prototype,"type",void 0),f_=t5=d([se("esri.rest.support.MultipartColorRamp")],f_);const une=f_,Zit={key:"type",base:LN,typeMap:{algorithmic:RN,multipart:une}};function Qit(e){return e&&e.type?e.type==="algorithmic"?RN.fromJSON(e):e.type==="multipart"?une.fromJSON(e):null:null}var r5;const df=new Yr({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),V2=new Yr({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),R7=new Yr({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),D7=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"],Jit=["high-to-low","above-and-below","above","below","90-10"],Xit=["flow-line","wave-front"],ent=["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"];let cn=r5=class extends xt{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&t!=="relationship"?t==="class-breaks-size"||t==="class-breaks-color"?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?Qit(e):void 0}get fields(){return this.type&&this.type!=="predominance"?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&this.type!=="relationship"?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&this.type!=="relationship"?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return this.type==="flow"?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&this.type!=="relationship"?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&this.type!=="relationship"?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return this.type==="univariate-color-size"&&this.univariateTheme==="above-and-below"?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&e!=="relationship"&&e!=="class-breaks-size"&&e!=="class-breaks-color"||this.classificationMethod&&this.classificationMethod!=="standard-deviation"?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;e==="classed-size"?t="class-breaks-size":e==="classed-color"&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return this.type==="univariate-color-size"&&this.univariateTheme==="above-and-below"?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return this.type==="univariate-color-size"?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new r5({classificationMethod:this.classificationMethod,colorRamp:Ge(this.colorRamp),fadeRatio:Ge(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:Ge(this.field1),field2:Ge(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};d([f({type:df.apiValues,value:null,json:{type:df.jsonValues,read:df.read,write:df.write,origins:{"web-document":{default:"manual",type:df.jsonValues,read:df.read,write:df.write}}}})],cn.prototype,"classificationMethod",null),d([f({types:Zit,json:{write:!0}})],cn.prototype,"colorRamp",void 0),d([Tt("colorRamp")],cn.prototype,"readColorRamp",null),d([f({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],cn.prototype,"fadeRatio",void 0),d([f({type:[String],value:null,json:{write:!0}})],cn.prototype,"fields",null),d([f({type:Zp,value:null,json:{write:!0}})],cn.prototype,"field1",null),d([f({type:Zp,value:null,json:{write:!0}})],cn.prototype,"field2",null),d([f({type:Xit,value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],cn.prototype,"flowTheme",null),d([f({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],cn.prototype,"focus",null),d([f({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],cn.prototype,"isAutoGenerated",void 0),d([f({type:Number,value:null,json:{type:ni,write:!0}})],cn.prototype,"numClasses",null),d([f({type:D7,json:{type:D7,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],cn.prototype,"lengthUnit",void 0),d([f({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],cn.prototype,"maxSliderValue",void 0),d([f({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],cn.prototype,"minSliderValue",void 0),d([f({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],cn.prototype,"statistics",null),d([f({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],cn.prototype,"standardDeviationInterval",null),d([f({type:V2.apiValues,value:null,json:{type:V2.jsonValues,read:V2.read,write:V2.write,origins:{"web-scene":{type:R7.jsonValues,write:{writer:R7.write,overridePolicy:e=>({enabled:e!=="flow"})}}}}})],cn.prototype,"type",null),d([f({type:[Kit],json:{write:!0}})],cn.prototype,"visualVariables",void 0),d([f({type:ent,value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],cn.prototype,"univariateSymbolStyle",null),d([f({type:Jit,value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],cn.prototype,"univariateTheme",null),cn=r5=d([se("esri.renderers.support.AuthoringInfo")],cn);const DN=cn,QM=new Yr({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let m_=class extends xt{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};d([f({type:DN,json:{write:!0}})],m_.prototype,"authoringInfo",void 0),d([f({type:QM.apiValues,readOnly:!0,json:{type:QM.jsonValues,read:!1,write:{writer:QM.write,ignoreOrigin:!0}}})],m_.prototype,"type",void 0),m_=d([se("esri.renderers.Renderer")],m_);const Fd=m_;function tnt(e){var t,r,i;return(i=(r=(t=e.match(rnt))==null?void 0:t[1])==null?void 0:r.replace(/\\'/g,"'"))!=null?i:null}const rnt=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var i5;let bv=i5=class extends xt{constructor(){super(...arguments),this.title=null}clone(){return new i5({title:this.title})}};d([f({type:String,json:{write:!0}})],bv.prototype,"title",void 0),bv=i5=d([se("esri.renderers.support.LegendOptions")],bv);var n5;let _k=n5=class extends bv{constructor(){super(...arguments),this.showLegend=null}clone(){return new n5({title:this.title,showLegend:this.showLegend})}};d([f({type:Boolean,json:{write:!0}})],_k.prototype,"showLegend",void 0),_k=n5=d([se("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],_k);const dne=_k,JM=new Yr({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let $a=class extends xt{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return e==null?e:typeof e=="function"?(ft.getLogger(this.declaredClass).error(".field: field must be a string value"),null):ex(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};d([f()],$a.prototype,"index",void 0),d([f({type:JM.apiValues,readOnly:!0,json:{read:JM.read,write:JM.write}})],$a.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],$a.prototype,"field",void 0),d([Qr("field")],$a.prototype,"castField",null),d([f({type:String,json:{write:!0}})],$a.prototype,"valueExpression",void 0),d([f({type:String,json:{write:!0}})],$a.prototype,"valueExpressionTitle",void 0),d([f({readOnly:!0})],$a.prototype,"arcadeRequired",null),d([f({type:dne,json:{write:!0}})],$a.prototype,"legendOptions",void 0),$a=d([se("esri.renderers.visualVariables.VisualVariable")],$a);const gx=$a;var o5;let jf=o5=class extends gx{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(t=>!!t)).sort((t,r)=>t.value-r.value),this._set("stops",e)}clone(){return new o5({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};d([f({readOnly:!0})],jf.prototype,"cache",null),d([f({type:["color"],json:{type:["colorInfo"]}})],jf.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],jf.prototype,"normalizationField",void 0),d([f({type:[ott],json:{write:!0}})],jf.prototype,"stops",null),jf=o5=d([se("esri.renderers.visualVariables.ColorVariable")],jf);const pne=jf;var s5;let Mp=s5=class extends xt{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return c1(t.transparency)}writeOpacity(e,t,r){t[r]=tT(e)}clone(){return new s5({label:this.label,opacity:this.opacity,value:this.value})}};d([f({type:String,json:{write:!0}})],Mp.prototype,"label",void 0),d([f({type:Number,json:{type:ni,write:{target:"transparency"}}})],Mp.prototype,"opacity",void 0),d([Tt("opacity",["transparency"])],Mp.prototype,"readOpacity",null),d([zt("opacity")],Mp.prototype,"writeOpacity",null),d([f({type:Number,json:{write:!0}})],Mp.prototype,"value",void 0),Mp=s5=d([se("esri.renderers.visualVariables.support.OpacityStop")],Mp);const int=Mp;var l5;let Vf=l5=class extends gx{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(t=>!!t)).sort((t,r)=>t.value-r.value),this._set("stops",e)}clone(){return new l5({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};d([f({readOnly:!0})],Vf.prototype,"cache",null),d([f({type:["opacity"],json:{type:["transparencyInfo"]}})],Vf.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],Vf.prototype,"normalizationField",void 0),d([f({type:[int],json:{write:!0}})],Vf.prototype,"stops",null),Vf=l5=d([se("esri.renderers.visualVariables.OpacityVariable")],Vf);const hne=Vf;var a5;let Nu=a5=class extends gx{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,r,i){if(i&&i.messages){const n=`visualVariables[${this.index}]`;i.messages.push(new ze("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:n+".valueExpressionTitle",context:i}))}}clone(){return new a5({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};d([f({readOnly:!0})],Nu.prototype,"cache",null),d([f({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],Nu.prototype,"axis",void 0),d([f({type:["rotation"],json:{type:["rotationInfo"]}})],Nu.prototype,"type",void 0),d([f({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],Nu.prototype,"rotationType",void 0),d([f({type:String,json:{write:!0}})],Nu.prototype,"valueExpressionTitle",void 0),d([zt("web-scene","valueExpressionTitle")],Nu.prototype,"writeValueExpressionTitleWebScene",null),Nu=a5=d([se("esri.renderers.visualVariables.RotationVariable")],Nu);const fne=Nu;var c5;let vy=c5=class extends xt{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new c5({label:this.label,size:this.size,value:this.value})}};d([f({type:String,json:{write:!0}})],vy.prototype,"label",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],vy.prototype,"size",void 0),d([f({type:Number,json:{write:!0}})],vy.prototype,"value",void 0),vy=c5=d([se("esri.renderers.visualVariables.support.SizeStop")],vy);const by=vy;var u5;let wk=u5=class extends dne{constructor(){super(...arguments),this.customValues=null}clone(){return new u5({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};d([f({type:[Number],json:{write:!0}})],wk.prototype,"customValues",void 0),wk=u5=d([se("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],wk);const nnt=wk;var pd,Jn;function uh(e){return e&&e.declaredClass==="esri.renderers.visualVariables.SizeVariable"}function S1(e){return e!=null&&!isNaN(e)&&isFinite(e)}function mne(e){return e.valueExpression?pd.Expression:e.field&&typeof e.field=="string"?pd.Field:pd.Unknown}function ont(e,t){const r=t||mne(e),i=e.valueUnit||"unknown";return r===pd.Unknown?Jn.Constant:e.stops?Jn.Stops:e.minSize!=null&&e.maxSize!=null&&e.minDataValue!=null&&e.maxDataValue!=null?Jn.ClampedLinear:i==="unknown"?e.minSize!=null&&e.minDataValue!=null?e.minSize&&e.minDataValue?Jn.Proportional:Jn.Additive:Jn.Identity:Jn.RealWorldSize}(function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"})(pd||(pd={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(Jn||(Jn={}));function Fyt(e){}function snt(e){return()=>e}const NN={inches:Nl(1,"meters","inches"),feet:Nl(1,"meters","feet"),"us-feet":Nl(1,"meters","us-feet"),yards:Nl(1,"meters","yards"),miles:Nl(1,"meters","miles"),"nautical-miles":Nl(1,"meters","nautical-miles"),millimeters:Nl(1,"meters","millimeters"),centimeters:Nl(1,"meters","centimeters"),decimeters:Nl(1,"meters","decimeters"),meters:Nl(1,"meters","meters"),kilometers:Nl(1,"meters","kilometers"),"decimal-degrees":1/qKe(1,"meters",Wi.radius)},Lh=ft.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),N7=new Hs,xk=Math.PI,gne=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function yne(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find(y=>y.type==="color"):e;if(!i)return;if(i.declaredClass!=="esri.renderers.visualVariables.ColorVariable")return void Lh.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const n=typeof t=="number",o=n?null:t,s=o&&o.attributes;let l=n?t:null;const a=i.field,{ipData:c,hasExpression:u}=i.cache;let p=i.cache.compiledFunc;if(!a&&!u){const y=i.stops;return y&&y[0]&&y[0].color}if(typeof l!="number")if(u){if(et(r)||et(r.arcade))return void Lh.error("Use of arcade expressions requires an arcade context");const y={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},v=r.arcade.arcadeUtils,_=v.getViewInfo(y),x=v.createExecContext(o,_);if(!p){const S=v.createSyntaxTree(i.valueExpression);p=v.createFunction(S),i.cache.compiledFunc=p}l=v.executeFunction(p,x)}else s&&(l=s[a]);const h=i.normalizationField,m=s!=null&&h!=null?parseFloat(s[h]):void 0;if(l!=null&&(!h||n||!isNaN(m)&&m!==0)){isNaN(m)||n||(l/=m);const y=FN(l,c);if(y){const v=y[0],_=y[1],x=v===_?i.stops[v].color:wr.blendColors(i.stops[v].color,i.stops[_].color,y[2],ue(r)?r.color:void 0);return new wr(x)}}}function vne(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find(y=>y.type==="opacity"):e;if(!i)return;if(i.declaredClass!=="esri.renderers.visualVariables.OpacityVariable")return void Lh.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const n=typeof t=="number",o=n?null:t,s=o&&o.attributes;let l=n?t:null;const a=i.field,{ipData:c,hasExpression:u}=i.cache;let p=i.cache.compiledFunc;if(!a&&!u){const y=i.stops;return y&&y[0]&&y[0].opacity}if(typeof l!="number")if(u){if(et(r)||et(r.arcade))return void Lh.error("Use of arcade expressions requires an arcade context");const y={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},v=r.arcade.arcadeUtils,_=v.getViewInfo(y),x=v.createExecContext(o,_);if(!p){const S=v.createSyntaxTree(i.valueExpression);p=v.createFunction(S),i.cache.compiledFunc=p}l=v.executeFunction(p,x)}else s&&(l=s[a]);const h=i.normalizationField,m=s!=null&&h!=null?parseFloat(s[h]):void 0;if(l!=null&&(!h||n||!isNaN(m)&&m!==0)){isNaN(m)||n||(l/=m);const y=FN(l,c);if(y){const v=y[0],_=y[1];if(v===_)return i.stops[v].opacity;{const x=i.stops[v].opacity;return x+(i.stops[_].opacity-x)*y[2]}}}}function bne(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find(m=>m.type==="rotation"):e;if(!i)return;if(i.declaredClass!=="esri.renderers.visualVariables.RotationVariable")return void Lh.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const n=i.axis||"heading",o=n==="heading"&&i.rotationType==="arithmetic"?90:0,s=n==="heading"&&i.rotationType==="arithmetic"?-1:1,l=typeof t=="number"?null:t,a=l&&l.attributes,c=i.field,{hasExpression:u}=i.cache;let p=i.cache.compiledFunc,h=0;if(!c&&!u)return h;if(u){if(et(r)||et(r.arcade))return void Lh.error("Use of arcade expressions requires an arcade context");const m={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},y=r.arcade.arcadeUtils,v=y.getViewInfo(m),_=y.createExecContext(l,v);if(!p){const x=y.createSyntaxTree(i.valueExpression);p=y.createFunction(x),i.cache.compiledFunc=p}h=y.executeFunction(p,_)}else a&&(h=a[c]||0);return h=typeof h!="number"||isNaN(h)?null:o+s*h,h}function lnt(e,t,r){const i=typeof t=="number",n=i?null:t,o=n&&n.attributes;let s=i?t:null;const{isScaleDriven:l}=e.cache;let a=e.cache.compiledFunc;if(l){const u=ue(r)?r.scale:void 0,p=ue(r)?r.view:void 0;s=u==null||p==="3d"?ant(e):u}else if(!i)switch(e.inputValueType){case pd.Expression:{if(et(r)||et(r.arcade))return void Lh.error("Use of arcade expressions requires an arcade context");const u={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},p=r.arcade.arcadeUtils,h=p.getViewInfo(u),m=p.createExecContext(n,h);if(!a){const y=p.createSyntaxTree(e.valueExpression);a=p.createFunction(y),e.cache.compiledFunc=a}s=p.executeFunction(a,m);break}case pd.Field:o&&(s=o[e.field]);break;case pd.Unknown:s=null}if(!S1(s))return null;if(i||!e.normalizationField)return s;const c=o?parseFloat(o[e.normalizationField]):null;return S1(c)&&c!==0?s/c:null}function ant(e){let t=null,r=null;const i=e.stops;return i?(t=i[0].value,r=i[i.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}function $T(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.find(o=>o.type==="size"):e;if(!i)return;if(i.declaredClass!=="esri.renderers.visualVariables.SizeVariable")return void Lh.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const n=wne(lnt(i,t,r),i,t,r,i.cache.ipData);return n==null||isNaN(n)?0:n}function js(e,t,r){return e==null?null:uh(e)?$T(e,t,r):S1(e)?e:null}function _ne(e,t,r){return S1(r)&&e>r?r:S1(t)&&e<t?t:e}function cnt(e,t,r,i){var n;return e+((n=js(t.minSize,r,i)||t.minDataValue)!=null?n:0)}function unt(e,t,r){const i=e.stops;let n=i&&i.length&&i[0].size;return n==null&&(n=e.minSize),js(n,t,r)}function dnt(e,t,r,i){const n=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),o=js(t.minSize,r,i),s=js(t.maxSize,r,i),l=ue(i)?i.shape:void 0;if(e<=t.minDataValue)return o;if(e>=t.maxDataValue)return s;if(o==null||s==null)return null;if(t.scaleBy==="area"&&l){const a=l==="circle",c=a?xk*(o/2)**2:o*o,u=c+n*((a?xk*(s/2)**2:s*s)-c);return a?2*Math.sqrt(u/xk):Math.sqrt(u)}return o+n*(s-o)}function pnt(e,t,r,i){const n=ue(i)?i.shape:void 0,o=e/t.minDataValue,s=js(t.minSize,r,i),l=js(t.maxSize,r,i);let a=null;return a=n==="circle"?2*Math.sqrt(o*(s/2)**2):n==="square"||n==="diamond"||n==="image"?Math.sqrt(o*s**2):o*s,_ne(a,s,l)}function hnt(e,t,r,i,n){var a,c,u;const[o,s,l]=FN(e,n);if(o===s)return js((a=t.stops)==null?void 0:a[o].size,r,i);{const p=js((c=t.stops)==null?void 0:c[o].size,r,i);return p+(js((u=t.stops)==null?void 0:u[s].size,r,i)-p)*l}}function fnt(e,t,r,i){const n=(ue(i)&&i.resolution?i.resolution:1)*NN[t.valueUnit],o=js(t.minSize,r,i),s=js(t.maxSize,r,i),{valueRepresentation:l}=t;let a=null;return a=l==="area"?2*Math.sqrt(e/xk)/n:l==="radius"||l==="distance"?2*e/n:e/n,_ne(a,o,s)}function wne(e,t,r,i,n){switch(t.transformationType){case Jn.Additive:return cnt(e,t,r,i);case Jn.Constant:return unt(t,r,i);case Jn.ClampedLinear:return dnt(e,t,r,i);case Jn.Proportional:return pnt(e,t,r,i);case Jn.Stops:return hnt(e,t,r,i,n);case Jn.RealWorldSize:return fnt(e,t,r,i);case Jn.Identity:return e;case Jn.Unknown:return null}}function mnt(e,t,r){const{isScaleDriven:i}=e.cache;if(!(i&&r==="3d"||t))return null;const n={scale:t,view:r};let o=js(e.minSize,N7,n),s=js(e.maxSize,N7,n);if(o!=null||s!=null){if(o>s){const l=s;s=o,o=l}return{minSize:o,maxSize:s}}}function gnt(e,t,r){if(!e.visualVariables)return;const i=[],n=[],o=[],s=[],l=[];for(const a of e.visualVariables)switch(a.type){case"color":n.push(a);break;case"opacity":o.push(a);break;case"rotation":l.push(a);break;case"size":s.push(a)}return n.forEach(a=>{const c=yne(a,t,r);i.push({variable:a,value:c})}),o.forEach(a=>{const c=vne(a,t,r);i.push({variable:a,value:c})}),l.forEach(a=>{const c=bne(a,t,r);i.push({variable:a,value:c})}),s.forEach(a=>{const c=$T(a,t,r);i.push({variable:a,value:c})}),i.filter(a=>a.value!=null)}function FN(e,t){if(!t)return;let r=0,i=t.length-1;return t.some((n,o)=>e<n?(i=o,!0):(r=o,!1)),[r,i,(e-t[r])/(t[i]-t[r])]}function ynt(e,t,r){const i=["proportional","proportional","proportional"];for(const n of e){const o=n.useSymbolValue?"symbol-value":$T(n,t,r);switch(n.axis){case"width":i[0]=o;break;case"depth":i[1]=o;break;case"height":i[2]=o;break;case"width-and-depth":i[0]=o,i[1]=o;break;case"all":case void 0:case null:i[0]=o,i[1]=o,i[2]=o;break;default:n.axis}}return i}var zN=Object.freeze(Object.defineProperty({__proto__:null,getAllSizes:ynt,getColor:yne,getOpacity:vne,getRotationAngle:bne,getSize:$T,getSizeForValue:wne,getSizeFromNumberOrVariable:js,getSizeRangeAtScale:mnt,getVisualVariableValues:gnt,viewScaleRE:gne},Symbol.toStringTag,{value:"Module"})),d5;const B2=new Yr({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),p5=new Yr({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function F7(e){if(e!=null)return typeof e=="string"||typeof e=="number"?oi(e):e.type==="size"?uh(e)?e:(delete(e={...e}).type,new ci(e)):void 0}function z7(e,t,r){if(typeof e!="object")return e;const i=new ci;return i.read(e,r),i}let ci=d5=class extends gx{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:this.valueExpression!=null&&gne.test(this.valueExpression)}}set expression(e){ft.getLogger(this.declaredClass).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),e==="view.scale"?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){uh(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),uh(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return mne(this)}set maxDataValue(e){e&&this.stops&&(ft.getLogger(this.declaredClass).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(ft.getLogger(this.declaredClass).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return F7(e)}readMaxSize(e,t,r){return z7(e,t,r)}set minDataValue(e){e&&this.stops&&(ft.getLogger(this.declaredClass).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(ft.getLogger(this.declaredClass).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return F7(e)}readMinSize(e,t,r){return z7(e,t,r)}get arcadeRequired(){return!!this.valueExpression||this.minSize!=null&&typeof this.minSize=="object"&&this.minSize.arcadeRequired||this.maxSize!=null&&typeof this.maxSize=="object"&&this.maxSize.arcadeRequired}set stops(e){this.minDataValue==null&&this.maxDataValue==null&&this.minSize==null&&this.maxSize==null?e&&Array.isArray(e)&&(e=e.filter(t=>!!t)).sort((t,r)=>t.value-r.value):e&&(ft.getLogger(this.declaredClass).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return ont(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,r,i){if(e==="$view.scale"){if(i&&i.messages){const n=this.index,o=typeof n=="string"?n:`visualVariables[${n}]`;i.messages.push(new ze("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:o+".valueExpression",context:i}))}}else t[r]=e}readValueUnit(e){return e?p5.read(e):null}clone(){return new d5({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:uh(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:uh(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===Jn.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===Jn.Stops){const e=this.stops;if(!e)return this;const t=e.map(i=>i.size).reverse(),r=e.length;for(let i=0;i<r;i++)e[i].size=t[i];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};d([f({readOnly:!0})],ci.prototype,"cache",null),d([f({type:B2.apiValues,json:{type:B2.jsonValues,origins:{"web-map":{read:!1}},read:B2.read,write:B2.write}})],ci.prototype,"axis",void 0),d([f({type:String,value:null,json:{read:!1}})],ci.prototype,"expression",null),d([f()],ci.prototype,"index",null),d([f({type:String,readOnly:!0})],ci.prototype,"inputValueType",null),d([f({type:nnt,json:{write:!0}})],ci.prototype,"legendOptions",void 0),d([f({type:Number,value:null,json:{write:!0}})],ci.prototype,"maxDataValue",null),d([f({type:Number,value:null,json:{write:!0}})],ci.prototype,"maxSize",null),d([Qr("maxSize")],ci.prototype,"castMaxSize",null),d([Tt("maxSize")],ci.prototype,"readMaxSize",null),d([f({type:Number,value:null,json:{write:!0}})],ci.prototype,"minDataValue",null),d([f({type:Number,value:null,json:{write:!0}})],ci.prototype,"minSize",null),d([Qr("minSize")],ci.prototype,"castMinSize",null),d([Tt("minSize")],ci.prototype,"readMinSize",null),d([f({type:String,json:{write:!0}})],ci.prototype,"normalizationField",void 0),d([f({readOnly:!0})],ci.prototype,"arcadeRequired",null),d([f({type:String})],ci.prototype,"scaleBy",void 0),d([f({type:[by],value:null,json:{write:!0}})],ci.prototype,"stops",null),d([f({type:["outline"],json:{write:!0}})],ci.prototype,"target",void 0),d([f({type:String,readOnly:!0})],ci.prototype,"transformationType",null),d([f({type:["size"],json:{type:["sizeInfo"]}})],ci.prototype,"type",void 0),d([f({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],ci.prototype,"useSymbolValue",void 0),d([f({type:String,json:{write:!0}})],ci.prototype,"valueExpression",void 0),d([Tt("valueExpression",["valueExpression","expression"])],ci.prototype,"readValueExpression",null),d([zt("web-scene","valueExpression")],ci.prototype,"writeValueExpressionWebScene",null),d([f({type:["radius","diameter","area","width","distance"],json:{write:!0}})],ci.prototype,"valueRepresentation",void 0),d([f({type:p5.apiValues,json:{write:p5.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],ci.prototype,"valueUnit",void 0),d([Tt("valueUnit")],ci.prototype,"readValueUnit",null),ci=d5=d([se("esri.renderers.visualVariables.SizeVariable")],ci);const OT=ci,vnt={color:pne,size:OT,opacity:hne,rotation:fne},bnt=new Yr({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),_nt=/^\[([^\]]+)\]$/i;let Ck=class extends rr{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter(t=>!!t))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(t=>!!t.target)&&e.sort((t,r)=>{let i=null;return i=t.target===r.target?0:t.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,r){const{rotationExpression:i,rotationType:n}=t,o=i&&i.match(_nt),s=o&&o[1];if(s&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:n,field:s})),e)return e.map(l=>{const a=bnt.read(l.type),c=vnt[a];c||(ft.getLogger(this.declaredClass).warn(`Unknown variable type: ${a}`),r&&r.messages&&r.messages.push(new cs("visual-variable:unsupported",`visualVariable of type '${a}' is not supported`,{definition:l,context:r})));const u=new c;return u.read(l,r),u})}writeVariables(e,t){const r=[];for(const i of e){const n=i.toJSON(t);n&&r.push(n)}return r}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};d([f()],Ck.prototype,"visualVariables",null),Ck=d([se("esri.renderers.visualVariables.VisualVariableFactory")],Ck);const wnt=Ck,xnt={base:gx,key:"type",typeMap:{opacity:hne,color:pne,rotation:fne,size:OT}},F0=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new wnt}set visualVariables(r){this._vvFactory.visualVariables=r,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(r,i,n){return this._vvFactory.readVariables(r,i,n)}writeVisualVariables(r,i,n,o){i[n]=this._vvFactory.writeVariables(r,o)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const r of this.visualVariables)if(r.arcadeRequired)return!0;return!1}hasVisualVariables(r,i){return r?this.getVisualVariablesForType(r,i).length>0:this.getVisualVariablesForType("size",i).length>0||this.getVisualVariablesForType("color",i).length>0||this.getVisualVariablesForType("opacity",i).length>0||this.getVisualVariablesForType("rotation",i).length>0}getVisualVariablesForType(r,i){const n=this.visualVariables;return n?n.filter(o=>o.type===r&&(typeof i=="string"?o.target===i:i!==!1||!o.target)):[]}async collectVVRequiredFields(r,i){let n=[];this.visualVariables&&(n=n.concat(this.visualVariables));for(const o of n)o&&(o.field&&vl(r,i,o.field),o.normalizationField&&vl(r,i,o.normalizationField),o.valueExpression&&(Cnt(o.valueExpression,r,i)||await ds(r,i,o.valueExpression)))}};return d([f({types:[xnt],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),d([Tt("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),d([zt("visualVariables")],t.prototype,"writeVisualVariables",null),t=d([se("esri.renderers.mixins.VisualVariablesMixin")],t),t};function Cnt(e,t,r){const i=tnt(e);return!!ue(i)&&(vl(t,r,i),!0)}const Sb={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function knt(e,t=Sb){var l,a;if(!e)return{symbol:null};const{retainId:r=Sb.retainId,ignoreDrivers:i=Sb.ignoreDrivers,hasLabelingContext:n=Sb.hasLabelingContext,retainCIM:o=Sb.retainCIM}=t;let s=null;if(mg(e)||e instanceof Mg)s=e.clone();else if(e.type==="cim"){const c=(a=(l=e.data)==null?void 0:l.symbol)==null?void 0:a.type;if(c!=="CIMPointSymbol")return{error:new ze("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${c||"unknown"}' is unsupported in 3D`,{symbol:e})};s=o?e.clone():km.fromCIMSymbol(e)}else if(e instanceof ha)s=lT.fromSimpleLineSymbol(e);else if(e instanceof Yh)s=km.fromSimpleMarkerSymbol(e);else if(e instanceof cT)s=km.fromPictureMarkerSymbol(e);else if(e instanceof qh)s=t.geometryType&&t.geometryType==="mesh"?aT.fromSimpleFillSymbol(e):dx.fromSimpleFillSymbol(e);else{if(!(e instanceof P0))return{error:new ze("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};s=n?sT.fromTextSymbol(e):km.fromTextSymbol(e)}if(r&&s&&s.type!=="cim"&&(s.id=e.id),i&&mg(s))for(let c=0;c<s.symbolLayers.length;++c)s.symbolLayers.getItemAt(c)._ignoreDrivers=!0;return{symbol:s}}const Snt=["building-scene","integrated-mesh","point-cloud","scene"];function vE(e,t,r,i){const n=xne(e,{},{context:i,isLabelSymbol:!1});ue(n)&&(t[r]=n)}function j7(e,t,r,i){const n=xne(e,{},{context:i,isLabelSymbol:!0});ue(n)&&(t[r]=n)}function V7(e){return e instanceof I0||e instanceof Mg}function xne(e,t,r){var a;if(et(e))return null;const{context:i,isLabelSymbol:n}=r,o=i==null?void 0:i.origin,s=i==null?void 0:i.messages;if(o==="web-scene"&&!V7(e)){const c=knt(e,{retainCIM:!0,hasLabelingContext:n});return ue(c.symbol)?c.symbol.write(t,i):(s==null||s.push(new ze("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:i,error:c.error})),null)}const l=(a=i==null?void 0:i.layer)==null?void 0:a.type;return o!=="web-map"&&(o!=="portal-item"||l&&Snt.includes(l))||!V7(e)?e.write(t,i):(s==null||s.push(new ze("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:i})),null)}function zyt(e,t){return JYe(e,null,t)}const z0={types:dT,json:{write:{writer:vE},origins:{"web-scene":{types:U9,write:{writer:vE},read:{reader:Uh({types:U9})}}}}},Cne={types:{base:Ys,key:"type",typeMap:{"simple-fill":Hm.typeMap["simple-fill"],"picture-fill":Hm.typeMap["picture-fill"],"polygon-3d":Hm.typeMap["polygon-3d"]}},json:{write:{writer:vE},origins:{"web-scene":{type:dx,write:{writer:vE}}}}},kk={cast:e=>e==null||typeof e=="string"||typeof e=="number"?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e==null?void 0:e.toString()}}}};var h5;let Ip=h5=class extends xt{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new h5({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};d([f({type:String,json:{write:!0}})],Ip.prototype,"description",void 0),d([f({type:String,json:{write:!0}})],Ip.prototype,"label",void 0),d([f({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],Ip.prototype,"minValue",void 0),d([f({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],Ip.prototype,"maxValue",void 0),d([f(z0)],Ip.prototype,"symbol",void 0),Ip=h5=d([se("esri.renderers.support.ClassBreakInfo")],Ip);const bE=Ip;var f5;const kne="log",Sk="percent-of-total",Ek="field",U2=new Yr({esriNormalizeByLog:kne,esriNormalizeByPercentOfTotal:Sk,esriNormalizeByField:Ek}),Ent=_n(bE);let Pn=f5=class extends F0(Fd){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,r){if(!Array.isArray(e))return;let i=t.minValue;return e.map(n=>{const o=new bE;return o.read(n,r),o.minValue==null&&(o.minValue=i),o.maxValue==null&&(o.maxValue=o.minValue),i=o.maxValue,o})}writeClassBreakInfos(e,t,r,i){const n=e.map(o=>o.write({},i));this._areClassBreaksConsecutive()&&n.forEach(o=>delete o.classMinValue),t[r]=n}castField(e){return e==null?e:typeof e=="function"?(ft.getLogger(this.declaredClass).error(".field: field must be a string value"),null):ex(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=this.normalizationTotal!=null;return t||r?(e=t&&Ek||r&&Sk||null,t&&r&&ft.getLogger(this.declaredClass).warn("warning: both normalizationField and normalizationTotal are set!")):e!==Ek&&e!==Sk||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,r){let i=null;i=typeof e=="number"?new bE({minValue:e,maxValue:t,symbol:$te(r)}):Ent(Ge(e)),this.classBreakInfos.push(i),this.classBreakInfos.length===1&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const r=this.classBreakInfos.length;for(let i=0;i<r;i++){const n=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(n[0]===e&&n[1]===t){this.classBreakInfos.splice(i,1);break}}}getBreakIndex(e,t){return this.valueExpression&&(et(t)||et(t.arcade))&&ft.getLogger(this.declaredClass).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let r=t;this.valueExpression&&(et(t)||et(t.arcade))&&(r={...r,arcade:await xd()});const i=this.getBreakIndex(e,r);return i!==-1?this.classBreakInfos[i]:null}getSymbol(e,t){if(this.valueExpression&&(et(t)||et(t.arcade)))return void ft.getLogger(this.declaredClass).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const r=this.getBreakIndex(e,t);return r>-1?this.classBreakInfos[r].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let r=t;if(this.valueExpression&&(et(t)||et(t.arcade))){const n=await xd(),{arcadeUtils:o}=n;o.hasGeometryOperations(this.valueExpression)&&await o.enableGeometryOperations(),r={...r,arcade:n}}const i=this.getBreakIndex(e,r);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),r=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((i,n)=>i+n.getMeshHash(),"")}.${r}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new f5({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:Ge(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:Ge(this.visualVariables),legendOptions:Ge(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const r=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(r)}async collectSymbolFields(e,t){const r=[...this.getSymbols().map(i=>i.collectRequiredFields(e,t)),ds(e,t,this.valueExpression)];vl(e,t,this.field),vl(e,t,this.normalizationField),await Promise.all(r)}_getBreakIndexForExpression(e,t){const{viewingMode:r,scale:i,spatialReference:n,arcade:o}=Y4(t,{}),{valueExpression:s}=this;let l=this._compiledValueExpression.valueExpression===s?this._compiledValueExpression.compiledFunction:null;const a=o.arcadeUtils;if(!l){const u=a.createSyntaxTree(s);l=a.createFunction(u),this._compiledValueExpression.compiledFunction=l}this._compiledValueExpression.valueExpression=s;const c=a.executeFunction(l,a.createExecContext(e,a.getViewInfo({viewingMode:r,scale:i,spatialReference:n})));return this._getBreakIndexfromInfos(c)}_getBreakIndexForField(e){const t=this.field,r=e.attributes,i=this.normalizationType;let n=parseFloat(r[t]);if(i){const o=this.normalizationTotal,s=parseFloat(this.normalizationField?r[this.normalizationField]:void 0);if(i===kne)n=Math.log(n)*Math.LOG10E;else if(i!==Sk||o==null||isNaN(o)){if(i===Ek&&!isNaN(s)){if(isNaN(n)||isNaN(s))return-1;n/=s}}else n=n/o*100}return this._getBreakIndexfromInfos(n)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(e!=null&&typeof e=="number"&&!isNaN(e))for(let r=0;r<this.classBreakInfos.length;r++){const i=[this.classBreakInfos[r].minValue,this.classBreakInfos[r].maxValue];if(i[0]<=e&&(t?e<=i[1]:e<i[1]))return r}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let r=1;r<t;r++)if(e[r-1].maxValue!==e[r].minValue)return!1;return!0}};d([f(Cne)],Pn.prototype,"backgroundFillSymbol",void 0),d([f({type:[bE]})],Pn.prototype,"classBreakInfos",void 0),d([Tt("classBreakInfos")],Pn.prototype,"readClassBreakInfos",null),d([zt("classBreakInfos")],Pn.prototype,"writeClassBreakInfos",null),d([f({type:String,json:{write:!0}})],Pn.prototype,"defaultLabel",void 0),d([f(z0)],Pn.prototype,"defaultSymbol",void 0),d([f({type:String,json:{write:!0}})],Pn.prototype,"field",void 0),d([Qr("field")],Pn.prototype,"castField",null),d([f({type:Boolean})],Pn.prototype,"isMaxInclusive",void 0),d([f({type:bv,json:{write:!0}})],Pn.prototype,"legendOptions",void 0),d([f({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return this.classBreakInfos.length!==0&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],Pn.prototype,"minValue",null),d([f({type:String,json:{write:!0}})],Pn.prototype,"normalizationField",void 0),d([f({type:Number,cast:e=>Gl(e),json:{write:!0}})],Pn.prototype,"normalizationTotal",void 0),d([f({type:U2.apiValues,value:null,json:{type:U2.jsonValues,read:U2.read,write:U2.write}})],Pn.prototype,"normalizationType",null),d([pr({classBreaks:"class-breaks"})],Pn.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],Pn.prototype,"valueExpression",void 0),d([f({type:String,json:{write:!0}})],Pn.prototype,"valueExpressionTitle",void 0),Pn=f5=d([se("esri.renderers.ClassBreaksRenderer")],Pn);const Sne=Pn;class Ene{constructor(t,r){this._storage=new Iie,this._storage.maxSize=t,r&&this._storage.registerRemoveFunc("",r)}put(t,r,i){this._storage.put(t,r,i,1)}pop(t){return this._storage.pop(t)}get(t){return this._storage.get(t)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}}const B7="esri.renderers.support.DictionaryLoader",Tnt={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class jN{constructor(t,r,i){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new Ene(100),this._dictionaryPromise=null,this.url=t,this.config=r,this.fieldMap=i}getSymbolFields(){return this._symbolFields}async getSymbolAsync(t,r){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(r));try{i=await this._dictionaryPromise}catch(m){if(us(m))return this._dictionaryPromise=null,null}const n={};if(this.fieldMap)for(const m of this._symbolFields){const y=this.fieldMap[m];if(y&&t.attributes[y]!=null){const v=""+t.attributes[y];n[m]=v}else n[m]=""}const o=i==null?void 0:i(n,r);if(!o||typeof o!="string")return null;const s=Z4(o).toString(),l=this._symbolCache.get(s);if(l)return l.catch(()=>{this._symbolCache.pop(s)}),l;const a=o.split(";"),c=[],u=[];for(const m of a)if(m)if(m.includes("po:")){const y=m.substr(3).split("|");if(y.length===3){const v=y[0],_=y[1];let x=y[2];if(_==="DashTemplate")x=x.split(" ").map(S=>Number(S));else if(_==="Color"){const S=new wr(x).toRgba();x=[S[0],S[1],S[2],255*S[3]]}else x=Number(x);u.push({primitiveName:v,propertyName:_,value:x})}}else if(m.includes("|")){for(const y of m.split("|"))if(this._itemNames.has(y)){c.push(y);break}}else this._itemNames.has(m)&&c.push(m);const p=!ue(t.geometry)||!t.geometry.hasZ&&t.geometry.type==="point",h=this._cimPartsToCIMSymbol(c,u,p,r);return this._symbolCache.put(s,h,1),h}async fetchResources(t){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void ft.getLogger(B7).error("no valid URL!");const r=ri(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:ue(t)?t.signal:null}),[{data:i}]=await Promise.all([r,xd()]);if(!i)throw this._dictionaryPromise=null,new ze("esri.renderers.DictionaryRenderer","Bad dictionary data!");const n=i.expression,o=i.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(i.itemsNames),this._symbolFields=o.symbol;const s={};if(this.config){const c=this.config;for(const u in c)s[u]=c[u]}if(o.configuration)for(const c of o.configuration)s.hasOwnProperty(c.name)||(s[c.name]=c.value);const l=[];if(ue(t)&&t.fields&&this.fieldMap)for(const c of this._symbolFields){const u=this.fieldMap[c],p=t.fields.filter(h=>h.name===u);p.length>0&&l.push({...p[0],name:c})}const a=RWe(n,ue(t)?t.spatialReference:null,l,s).then(c=>{const u={scale:0};return(p,h)=>{if(et(c))return null;const m=c.repurposeFeature({geometry:null,attributes:p});return u.scale=ue(h)?h.scale:void 0,c.evaluate({$feature:m,$view:u})}}).catch(c=>(ft.getLogger(B7).error("Creating dictinoary expression failed:",c),null));return this._dictionaryPromise=a,a}async _cimPartsToCIMSymbol(t,r,i,n){const o=new Array(t.length);for(let a=0;a<t.length;a++)o[a]=this._getSymbolPart(t[a],n);const s=await Promise.all(o),l=this.fieldMap;if(l)for(const a of s)Tne(a,l);return new lx({data:this._combineSymbolParts(s,r,i)})}async _getSymbolPart(t,r){if(this._ongoingRequests.has(t))return this._ongoingRequests.get(t).then(o=>o.data);const i=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,t),n=ri(i,{responseType:"json",query:{f:"json"},...r});this._ongoingRequests.set(t,n);try{return(await n).data}catch(o){throw this._ongoingRequests.delete(t),o}}_combineSymbolParts(t,r,i){if(!t||t.length===0)return null;const n={...t[0]};if(t.length>1){n.symbolLayers=[];for(const o of t){const s=o;n.symbolLayers.unshift(...s.symbolLayers)}}return i&&(n.callout=Tnt),{type:"CIMSymbolReference",symbol:n,primitiveOverrides:r}}}function Tne(e,t){if(!e)return;const r=e.symbolLayers;if(!r)return;let i=r.length;for(;i--;){const n=r[i];n&&n.enable!==!1&&n.type==="CIMVectorMarker"&&Ant(n,t)}}function Ant(e,t){const r=e.markerGraphics;if(r)for(const i of r){if(!i)continue;const n=i.symbol;if(n)switch(n.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":Tne(n,t);break;case"CIMTextSymbol":n.fieldMap=t}}}var jyt=Object.freeze(Object.defineProperty({__proto__:null,DictionaryLoader:jN},Symbol.toStringTag,{value:"Module"})),m5;let Oa=m5=class extends F0(Fd){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}get _loader(){return new jN(this.url,this.config,this.fieldMap)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,r,i){i!=null&&i.origin||super.writeVisualVariables(e,t,r,i)}clone(){return new m5({config:Ge(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:Ge(this.fieldMap),url:Ge(this.url),visualVariables:Ge(this.visualVariables)})}async getSymbolAsync(e,t){return this._loader.getSymbolAsync(e,t)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await ds(e,t,this.scaleExpression);for(const r in this.fieldMap){const i=this.fieldMap[r];t.has(i)&&e.add(i)}}get arcadeRequired(){return!0}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._loader.getSymbolFields()}};d([f({type:jN})],Oa.prototype,"_loader",null),d([f({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],Oa.prototype,"config",void 0),d([f({type:Object,json:{write:!0}})],Oa.prototype,"fieldMap",void 0),d([f({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],Oa.prototype,"scaleExpression",void 0),d([zt("scaleExpression")],Oa.prototype,"writeData",null),d([f({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],Oa.prototype,"scaleExpressionTitle",void 0),d([f({type:String,json:{write:!0}})],Oa.prototype,"url",void 0),d([zt("visualVariables")],Oa.prototype,"writeVisualVariables",null),Oa=m5=d([se("esri.renderers.DictionaryRenderer")],Oa);const Mnt=Oa;var g5;let Fu=g5=class extends xt{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return e==null?e:typeof e=="function"?(ft.getLogger(this.declaredClass).error(".field: field must be a string value"),null):ex(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new g5({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};d([f({type:wr,json:{type:[Number],write:!0}})],Fu.prototype,"color",void 0),d([f({type:String,json:{write:!0}})],Fu.prototype,"field",void 0),d([Qr("field")],Fu.prototype,"castField",null),d([f({type:String,json:{write:!0}})],Fu.prototype,"label",void 0),d([f({type:String,json:{write:!0}})],Fu.prototype,"valueExpression",void 0),d([f({type:String,json:{write:!0}})],Fu.prototype,"valueExpressionTitle",void 0),Fu=g5=d([se("esri.renderers.support.AttributeColorInfo")],Fu);const Ane=Fu;var y5;let Tk=y5=class extends xt{constructor(){super(...arguments),this.unit=null}clone(){return new y5({unit:this.unit})}};d([f({type:String,json:{write:!0}})],Tk.prototype,"unit",void 0),Tk=y5=d([se("esri.renderers.support.DotDensityLegendOptions")],Tk);const Int=Tk;var v5;let Es=v5=class extends F0(Fd){constructor(e){super(e),this.attributes=null,this.backgroundColor=new wr([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new ha,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(this.referenceScale==null)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new qh({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){var e,t;return(t=(e=this.attributes)==null?void 0:e.reduce((r,i)=>r+i.getAttributeHash(),""))!=null?t:""}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new v5({attributes:Ge(this.attributes),backgroundColor:Ge(this.backgroundColor),dotBlendingEnabled:Ge(this.dotBlendingEnabled),dotShape:Ge(this.dotShape),dotSize:Ge(this.dotSize),dotValue:Ge(this.dotValue),legendOptions:Ge(this.legendOptions),outline:Ge(this.outline),referenceScale:Ge(this.referenceScale),visualVariables:Ge(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){var t;return`${(t=this.attributes)==null?void 0:t.map(r=>r.field||r.valueExpression||"")}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){var r;await this.collectVVRequiredFields(e,t);for(const i of(r=this.attributes)!=null?r:[])i.valueExpression&&await ds(e,t,i.valueExpression),i.field&&e.add(i.field)}};d([f({type:[Ane],json:{write:!0}})],Es.prototype,"attributes",void 0),d([f({type:wr,json:{write:!0}})],Es.prototype,"backgroundColor",void 0),d([f({type:Boolean,json:{write:!0}})],Es.prototype,"dotBlendingEnabled",void 0),d([f({type:String,json:{write:!1}})],Es.prototype,"dotShape",void 0),d([f({type:Number,json:{write:!0}})],Es.prototype,"dotSize",void 0),d([f({type:Int,json:{write:!0}})],Es.prototype,"legendOptions",void 0),d([f({type:ha,json:{default:null,write:!0}})],Es.prototype,"outline",void 0),d([f({type:Number,json:{write:!0}})],Es.prototype,"dotValue",void 0),d([f({type:Number,json:{write:!0}})],Es.prototype,"referenceScale",void 0),d([f({type:Number,json:{write:!0}})],Es.prototype,"seed",void 0),d([pr({dotDensity:"dot-density"})],Es.prototype,"type",void 0),Es=v5=d([se("esri.renderers.DotDensityRenderer")],Es);const Pnt=Es;let _y=class extends pn(xt){constructor(){super(...arguments),this.minLabel=null,this.maxLabel=null,this.title=null}};d([f({type:String,json:{write:!0}})],_y.prototype,"minLabel",void 0),d([f({type:String,json:{write:!0}})],_y.prototype,"maxLabel",void 0),d([f({type:String,json:{write:!0}})],_y.prototype,"title",void 0),_y=d([se("esri.renderers.support.HeatmapLegendOptions")],_y);function LT(){return[0,0,0,0]}function $nt(e){return[e[0],e[1],e[2],e[3]]}function j0(e,t,r,i){return[e,t,r,i]}function Ont(e){const t=LT(),r=Math.min(4,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t}function Lnt(e,t){return new Float64Array(e,t,4)}function Mne(){return LT()}function Ine(){return j0(1,1,1,1)}function Pne(){return j0(1,0,0,0)}function $ne(){return j0(0,1,0,0)}function One(){return j0(0,0,1,0)}function Lne(){return j0(0,0,0,1)}const Rnt=Mne(),Dnt=Ine(),Nnt=Pne(),Fnt=$ne(),znt=One(),jnt=Lne();Object.freeze(Object.defineProperty({__proto__:null,create:LT,clone:$nt,fromValues:j0,fromArray:Ont,createView:Lnt,zeros:Mne,ones:Ine,unitX:Pne,unitY:$ne,unitZ:One,unitW:Lne,ZEROS:Rnt,ONES:Dnt,UNIT_X:Nnt,UNIT_Y:Fnt,UNIT_Z:znt,UNIT_W:jnt},Symbol.toStringTag,{value:"Module"}));const VN=2.4;function Vnt(e){return kd(e*VN)}function Bnt(e){return $ee(e)/VN}function Unt(e,t,r,i){let{color:n,ratio:o}=t,{color:s,ratio:l}=r;l===o&&(l===1?o-=1e-6:l+=1e-6);const a=Us((i-o)/(l-o),0,1);Tee(e,n.toArray(),s.toArray(),a)}function Vyt(e){const r=new Uint8ClampedArray(2048);if(e=e.filter(({ratio:l})=>l>=0&&l<=1).sort((l,a)=>l.ratio-a.ratio).map(({color:l,ratio:a})=>({color:l,ratio:Math.max(a,.001)})),e.length<1)return r;let i=e[0],n=e[0],o=1;const s=LT();for(let l=0;l<512;l++){const a=(l+.5)/512;for(;a>n.ratio&&o<e.length;)i=n,n=e[o++];Unt(s,i,n,a),r.set(s,4*l)}return r}function Byt(e,t,r,i){const{radius:n,fieldOffset:o,field:s}=t,l=Math.round($ee(n)),a=new Float64Array(r*i);let c,u=Number.NEGATIVE_INFINITY;const p=Gnt(s,o),h=new Set;for(const m of e){const y=m.getCursor();for(;y.next();){const v=y.getObjectId();if(h.has(v))continue;h.add(v);const _=y.readLegacyPointGeometry(),x=128;if(_.x<-x||_.x>=r+x||_.y<-x||_.y>i+x)continue;const S=+p(y),C=Math.max(0,Math.round(_.x)-l),E=Math.max(0,Math.round(_.y)-l),T=Math.min(i,Math.round(_.y)+l),w=Math.min(r,Math.round(_.x)+l);for(let I=E;I<T;I++)for(let M=C;M<w;M++){const L=I*r+M,R=Hnt(_.x-M,_.y-I,l);c=a[L]+=R*S,c>u&&(u=c)}}}return{matrix:a.buffer,max:u}}function Uyt(e,t,r,i,n,o){e.canvas.width=e.canvas.height=t,e.clearRect(0,0,t,t);const s=e.getImageData(0,0,t,t);r&&i&&s.data.set(new Uint8ClampedArray(Wnt(t,r,i,n,o))),e.putImageData(s,0,0)}function Wnt(e,t,r,i,n){const o=new Uint32Array(e*e),s="buffer"in t?t:new Float64Array(t),l="buffer"in r?new Uint32Array(r.buffer):new Uint32Array(new Uint8Array(r).buffer),a=l.length/(n-i);for(let c=0;c<s.length;c++){const u=s[c],p=Math.floor((u-i)*a);o[c]=l[Us(p,0,l.length-1)]}return o.buffer}function Hnt(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function Wyt(e,t){return typeof e=="function"?e:e?typeof t=="string"?r=>-1*+r[e]:r=>+r[e]+t:()=>1}function Gnt(e,t){return e!=null?typeof t=="string"?r=>-1*+r.readAttribute(e):r=>+r.readAttribute(e)+t:r=>1}var b5;const Rne="esri.renderers.HeatmapRenderer",qnt=ft.getLogger(Rne);function U7(e){if(e!=null){const{maxDensity:t,minDensity:r,radius:i}=e;if(t!=null||r!=null||i!=null){const{blurRadius:n,maxPixelIntensity:o,minPixelIntensity:s,...l}=e;return l}}return e}let Yn=b5=class extends Fd{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new lw({ratio:0,color:new wr("rgba(255, 140, 0, 0)")}),new lw({ratio:.75,color:new wr("rgba(255, 140, 0, 1)")}),new lw({ratio:.9,color:new wr("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.radius=18,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null,this._warnedProps={blurRadius:!1,maxPixelIntensity:!1,minPixelIntensity:!1}}normalizeCtorArgs(e){return U7(e)}get blurRadius(){return Bnt(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,r=this.minPixelIntensity;this._set("radius",Vnt(e)),this._warnAboutDeprecatedGaussianBlurProp("blurRadius","radius"),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",r*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity),this._warnAboutDeprecatedGaussianBlurProp("maxPixelIntensity","maxDensity")}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity),this._warnAboutDeprecatedGaussianBlurProp("minPixelIntensity","minDensity")}get _pixelIntensityToDensity(){return 24/(VN**2*this.blurRadius**4)}_warnAboutDeprecatedGaussianBlurProp(e,t){this._warnedProps[e]||Nn(this).getDefaultOrigin()==="user"&&(this._warnedProps[e]=!0,x0(()=>{q7e(qnt,e,{replacement:`${String(t)} (suggested value: ${this._get(t)})`,version:"4.24"})}))}read(e,t){e=U7(e),super.read(e,t)}getSymbol(){return new Yh}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const r=this.field,i=this.valueExpression;r&&typeof r=="string"&&await vl(e,t,r),i&&typeof i=="string"&&await ds(e,t,i)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new b5({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:Ge(this.colorStops),field:this.field,legendOptions:Ge(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};d([f({type:DN,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Yn.prototype,"authoringInfo",void 0),d([f({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Yn.prototype,"blurRadius",null),d([f({type:[lw],json:{write:!0}})],Yn.prototype,"colorStops",void 0),d([f({type:String,json:{write:!0}})],Yn.prototype,"field",void 0),d([f({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:r==null})},origins:{"web-scene":{write:!1}}}})],Yn.prototype,"fieldOffset",void 0),d([f({type:_y,json:{write:!0}})],Yn.prototype,"legendOptions",void 0),d([f({type:Number,json:{write:!0}})],Yn.prototype,"maxDensity",void 0),d([f({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Yn.prototype,"maxPixelIntensity",null),d([f({type:Number,json:{write:!0}})],Yn.prototype,"minDensity",void 0),d([f({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Yn.prototype,"minPixelIntensity",null),d([f({type:Number,cast:oi,json:{write:!0}})],Yn.prototype,"radius",void 0),d([f({type:Number,range:{min:0},json:{default:0,write:!0}})],Yn.prototype,"referenceScale",void 0),d([pr({heatmap:"heatmap"})],Yn.prototype,"type",void 0),d([f({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],Yn.prototype,"valueExpression",void 0),d([f({type:String})],Yn.prototype,"valueExpressionTitle",void 0),d([f({readOnly:!0})],Yn.prototype,"_pixelIntensityToDensity",null),Yn=b5=d([se(Rne)],Yn);const Dne=Yn;let dm=class extends pn(xt){constructor(){super(...arguments),this.color=new wr([0,0,0,0]),this.label=null,this.threshold=0}};d([f({type:wr,json:{write:!0}})],dm.prototype,"color",void 0),d([f({type:String,json:{write:!0}})],dm.prototype,"label",void 0),d([f({type:Number,range:{min:0,max:1},json:{write:!0}})],dm.prototype,"threshold",void 0),dm=d([se("esri.renderers.support.OthersCategory")],dm);let Ak=class extends pn(xt){constructor(){super(...arguments),this.title=null}};d([f({type:String,json:{write:!0}})],Ak.prototype,"title",void 0),Ak=d([se("esri.renderers.support.PieChartLegendOptions")],Ak);let nl=class extends F0(pn(Fd)){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new wr([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new dm,this.legendOptions=null,this.outline=null,this.size=12,this.type="pie-chart"}getSymbol(){var e;return new Yh({size:this.size?this.size/2+(((e=this.outline)==null?void 0:e.width)||0):0})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(ue)}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){return this.getSymbols().reduce((e,t)=>e+JSON.stringify(t),"")}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const r of this.attributes)r.valueExpression&&await ds(e,t,r.valueExpression),r.field&&e.add(r.field)}};d([f({type:[Ane],json:{write:!0}})],nl.prototype,"attributes",void 0),d([f({type:qh,json:{default:null,write:!0}})],nl.prototype,"backgroundFillSymbol",void 0),d([f({type:wr,json:{write:!0}})],nl.prototype,"defaultColor",void 0),d([f({type:String,json:{write:!0}})],nl.prototype,"defaultLabel",void 0),d([f({type:Number,range:{min:0,max:1},json:{write:!0}})],nl.prototype,"holePercentage",void 0),d([f({type:dm,json:{write:!0}})],nl.prototype,"othersCategory",void 0),d([f({type:Ak,json:{write:!0}})],nl.prototype,"legendOptions",void 0),d([f({type:ha,json:{default:null,write:!0}})],nl.prototype,"outline",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],nl.prototype,"size",void 0),d([pr({pieChart:"pie-chart"})],nl.prototype,"type",void 0),nl=d([se("esri.renderers.PieChartRenderer")],nl);const Ynt=nl;var _5;let Bf=_5=class extends F0(Fd){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){return this.getSymbols().reduce((e,t)=>e+JSON.stringify(t),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new _5({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:Ge(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};d([f({type:String,json:{write:!0}})],Bf.prototype,"description",void 0),d([f({type:String,json:{write:!0}})],Bf.prototype,"label",void 0),d([f(z0)],Bf.prototype,"symbol",void 0),d([pr({simple:"simple"})],Bf.prototype,"type",void 0),Bf=_5=d([se("esri.renderers.SimpleRenderer")],Bf);const r0=Bf,Knt=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function w5(e){return e instanceof rr}function W7(e){return e instanceof dr?Object.keys(e.items):w5(e)?Nn(e).keys():e?Object.keys(e):[]}function W2(e,t){return e instanceof dr?e.items[t]:e[t]}function Znt(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}function uw(e){return e?e.declaredClass:null}function Nne(e,t){const r=e.diff;if(r&&typeof r=="function")return r(e,t);const i=W7(e),n=W7(t);if(i.length===0&&n.length===0)return;if(!i.length||!n.length||Znt(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(p=>!i.includes(p)),s=i.filter(p=>!n.includes(p)),l=i.filter(p=>n.includes(p)&&W2(e,p)!==W2(t,p)).concat(o,s).sort(),a=uw(e);if(a&&Knt.includes(a)&&l.length)return{type:"complete",oldValue:e,newValue:t};let c;const u=w5(e)&&w5(t);for(const p of l){const h=W2(e,p),m=W2(t,p);let y;if((u||typeof h!="function"&&typeof m!="function")&&h!==m&&(h!=null||m!=null)){if(r&&r[p]&&typeof r[p]=="function")y=r[p](h,m);else if(h instanceof Date&&m instanceof Date){if(h.getTime()===m.getTime())continue;y={type:"complete",oldValue:h,newValue:m}}else y=typeof h=="object"&&typeof m=="object"&&uw(h)===uw(m)?Nne(h,m):{type:"complete",oldValue:h,newValue:m};ue(y)&&(ue(c)?c.diff[p]=y:c={type:"partial",diff:{[p]:y}})}}return c}function Qnt(e,t){if(et(e))return!1;const r=t.split(".");let i=e;for(const n of r){if(i.type==="complete")return!0;if(i.type!=="partial")return!1;{const o=i.diff[n];if(!o)return!1;i=o}}return!0}function Hyt(e,t){for(const r of t)if(Qnt(e,r))return!0;return!1}function Jnt(e,t){if(!(typeof e=="function"||typeof t=="function"||et(e)&&et(t)))return et(e)||et(t)||typeof e=="object"&&typeof t=="object"&&uw(e)!==uw(t)?{type:"complete",oldValue:e,newValue:t}:Nne(e,t)}let wy=class extends pn(xt){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};d([f(kk)],wy.prototype,"value",void 0),d([f(kk)],wy.prototype,"value2",void 0),d([f(kk)],wy.prototype,"value3",void 0),wy=d([se("esri.renderers.support.UniqueValue")],wy);const _v=wy;let Pp=class extends pn(xt){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(e==null)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return t==="string"||t==="number"?e.map(r=>new _v({value:r})):t==="object"?e[0]instanceof _v?e:e.map(r=>new _v(r)):null}};d([f({type:String,json:{write:!0}})],Pp.prototype,"description",void 0),d([f({type:String,json:{write:!0}})],Pp.prototype,"label",void 0),d([f(z0)],Pp.prototype,"symbol",void 0),d([f({type:[_v],json:{type:[[String]],read:{reader:e=>e?e.map(t=>new _v({value:t[0],value2:t[1],value3:t[2]})):null},write:{writer:(e,t)=>{const r=[];for(const i of e){const n=[i.value,i.value2,i.value3].filter(ue).map(o=>o.toString());r.push(n)}t.values=r}}}})],Pp.prototype,"values",void 0),d([Qr("values")],Pp.prototype,"castValues",null),Pp=d([se("esri.renderers.support.UniqueValueClass")],Pp);const Fne=Pp;let g_=class extends pn(xt){constructor(e){super(e),this.heading=null,this.classes=null}};d([f({type:String,json:{write:!0}})],g_.prototype,"heading",void 0),d([f({type:[Fne],json:{write:!0}})],g_.prototype,"classes",void 0),g_=d([se("esri.renderers.support.UniqueValueGroup")],g_);const x5=g_;var C5;let Uf=C5=class extends xt{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new C5({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};d([f({type:String,json:{write:!0}})],Uf.prototype,"description",void 0),d([f({type:String,json:{write:!0}})],Uf.prototype,"label",void 0),d([f(z0)],Uf.prototype,"symbol",void 0),d([f(kk)],Uf.prototype,"value",void 0),Uf=C5=d([se("esri.renderers.support.UniqueValueInfo")],Uf);const dw=Uf,Xnt=()=>!!at("enable-feature:force-wosr"),Gyt=()=>!!at("enable-feature:SceneLayer-editing"),XM={};async function eot(e,t){try{return{data:(await not(e,t)).data,baseUrl:Xqe(e),styleUrl:e}}catch(r){return Eg(r),null}}function tot(e,t,r){const i=ue(t.portal)?t.portal:Ws.getDefault();let n;const o=`${i.url} - ${i.user&&i.user.username} - ${e}`;return XM[o]||(XM[o]=rot(e,i,r).then(s=>(n=s,s.fetchData())).then(s=>{var l;return{data:s,baseUrl:(l=n.itemUrl)!=null?l:"",styleName:e}})),XM[o]}function rot(e,t,r){return t.load(r).then(()=>{const i=new rd({disableExtraQuery:!0,query:`owner:${H7} AND type:${G7} AND typekeywords:"${e}"`});return t.queryItems(i,r)}).then(({results:i})=>{var s;let n=null;const o=e.toLowerCase();if(i&&Array.isArray(i)){for(const l of i)if(((s=l.typeKeywords)==null?void 0:s.some(c=>c.toLowerCase()===o))&&l.type===G7&&l.owner===H7){n=l;break}}if(!n)throw new ze("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return n.load(r)})}function iot(e,t,r){return e&&ue(e.styleUrl)?eot(e.styleUrl,r):e&&ue(e.styleName)?tot(e.styleName,t,r):Promise.reject(new ze("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function qyt(e){return e===null||e.type==="CIMSymbolReference"?e:{type:"CIMSymbolReference",symbol:e}}function Yyt(e,t){if(t==="cimRef")return e.cimRef;if(e.formatInfos&&!Xnt()){for(const r of e.formatInfos)if(r.type==="gltf")return r.href}return e.webRef}function not(e,t){const r={responseType:"json",query:{f:"json"},...t};return ri(Xl(e),r)}const H7="esri_en",G7="Style",Kyt="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json";var y_;const zne="esri.renderers.UniqueValueRenderer",op=ft.getLogger(zne),q7="uvInfos-watcher",Y7="uvGroups-watcher",oot=",",sot=_n(dw);function lot(e){const{field1:t,field2:r,field3:i,fieldDelimiter:n,uniqueValueInfos:o,valueExpression:s}=e,l=!(!t||!r);return[{classes:(o!=null?o:[]).map(a=>{var x;const{symbol:c,label:u,value:p,description:h}=a,[m,y,v]=l?((x=p==null?void 0:p.toString())==null?void 0:x.split(n||""))||[]:[p],_=[];return(t||s)&&_.push(m),r&&_.push(y),i&&_.push(v),{symbol:c,label:u,values:[_],description:h}})}]}let rn=y_=class extends F0(Fd){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(t,r){if(!t&&!r)return;if(!t||!r)return{type:"complete",oldValue:t,newValue:r};let i=!1;const n={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let o=0;o<r.length;o++){const s=t.find(l=>l.value===r[o].value);s?Jnt(s,r[o])?(n.changed.push({type:"complete",oldValue:s,newValue:r[o]}),i=!0):n.unchanged.push({oldValue:s,newValue:r[o]}):(n.added.push(r[o]),i=!0)}for(let o=0;o<t.length;o++)r.find(s=>s.value===t[o].value)||(n.removed.push(t[o]),i=!0);return i?n:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return e==null||typeof e=="function"?e:ex(e)}writeField(e,t,r,i){typeof e=="string"?t[r]=e:i&&i.messages?i.messages.push(new ze("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):op.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,r){return r.portal||Ws.getDefault()}readStyleOrigin(e,t,r){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const i=A0(t.styleUrl,r);return Object.freeze({styleUrl:i})}}writeStyleOrigin(e,t,r,i){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=cx(e.styleUrl,i))}set uniqueValueGroups(e){this.styleOrigin?op.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?op.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){var i;if(this.styleOrigin)return void op.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let r;r=typeof e=="object"?sot(e):new dw({value:e,symbol:$te(t)}),(i=this.uniqueValueInfos)==null||i.push(r),this._valueInfoMap[r.value]=r,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void op.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t){for(let r=0;r<t.length;r++)if(t[r].value===e+""){delete this._valueInfoMap[e],t.splice(r,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let r=t;return this.valueExpression&&(et(t)||et(t.arcade))&&(r={...r,arcade:await xd()}),this._getUniqueValueInfo(e,r)}getSymbol(e,t){if(this.valueExpression&&(et(t)||et(t.arcade)))return void op.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const r=this._getUniqueValueInfo(e,t);return r&&r.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let r=t;if(this.valueExpression&&(et(r)||et(r.arcade))){const n=await xd(),{arcadeUtils:o}=n;o.hasGeometryOperations(this.valueExpression)&&await o.enableGeometryOperations(),r={...r,arcade:n}}const i=this._getUniqueValueInfo(e,r);return i&&i.symbol||this.defaultSymbol}getSymbols(){var t;const e=[];for(const r of(t=this.uniqueValueInfos)!=null?t:[])r.symbol&&e.push(r.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce((e,t)=>e+t.getAttributeHash(),"")}getMeshHash(){var i;const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),r=(i=this.uniqueValueInfos)==null?void 0:i.reduce((n,o)=>n+o.getMeshHash(),"");return`${e}.${t}.${r}.${`${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}`}.${this.valueExpression}`}clone(){const e=new y_({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:Ge(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:Ge(this.visualVariables),legendOptions:Ge(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:Ge(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=Ge(this.uniqueValueInfos),r=Ge(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze(Ge(this.styleOrigin))),Object.freeze(t),Object.freeze(r)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",r),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const r=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(r)}async collectSymbolFields(e,t){const r=[...this.getSymbols().map(i=>i.collectRequiredFields(e,t)),ds(e,t,this.valueExpression)];vl(e,t,this.field),vl(e,t,this.field2),vl(e,t,this.field3),await Promise.all(r)}populateFromStyle(){return iot(this.styleOrigin,{portal:this.portal}).then(e=>{var r;const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const n=new Mg({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=n,this._isDefaultSymbolDerived=!0);const o=new dw({value:i.name,symbol:n});t.push(o),this._valueInfoMap[i.name]=o}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&((r=this.uniqueValueInfos)==null?void 0:r.length)&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",oot)}_updateUniqueValues(){this._isInfosSource!=null&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(q7);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const r of e)t.push(Ot(()=>({symbol:r.symbol,value:r.value,label:r.label,description:r.description}),(i,n)=>{i!==n&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,q7)}}_watchUniqueValueGroups(){this.removeHandles(Y7);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const r of e){t.push(Ot(()=>({classes:r.classes}),(i,n)=>{i!==n&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const i of r.classes)t.push(Ot(()=>({symbol:i.symbol,values:i.values,label:i.label,description:i.description}),(n,o)=>{n!==o&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,Y7)}}_updateInfosFromGroups(){var a;if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:r,field3:i,fieldDelimiter:n,uniqueValueGroups:o,valueExpression:s}=this;if(!t&&!s)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const l=!(!t||!r);for(const c of o)for(const u of(a=c.classes)!=null?a:[]){const{symbol:p,label:h,values:m,description:y}=u;for(const v of m!=null?m:[]){const{value:_,value2:x,value3:S}=v,C=[_];r&&C.push(x),i&&C.push(S);const E=l?C.join(n||""):C[0];e.push(new dw({symbol:p,label:h,value:E,description:y}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:r,valueExpression:i,fieldDelimiter:n,uniqueValueInfos:o}=this;if(!t&&!i||!o.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const s=!(!t||!r),l=o.map(c=>{var x;const{symbol:u,label:p,value:h,description:m}=c,[y,v,_]=s?((x=h==null?void 0:h.toString())==null?void 0:x.split(n||""))||[]:[h];return new Fne({symbol:u,label:p,description:m,values:[new _v({value:y,value2:v,value3:_})]})}),a=[new x5({classes:l})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:r,scale:i,spatialReference:n,arcade:o}=Y4(t,{});let s=this._cache.compiledFunc;const l=o.arcadeUtils;if(!s){const c=l.createSyntaxTree(this.valueExpression);s=l.createFunction(c),this._cache.compiledFunc=s}const a=l.executeFunction(s,l.createExecContext(e,l.getViewInfo({viewingMode:r,scale:i,spatialReference:n})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,r=e.attributes;let i;if(typeof t!="function"&&this.field2){const n=this.field2,o=this.field3,s=[];t&&s.push(r[t]),n&&s.push(r[n]),o&&s.push(r[o]),i=s.join(this.fieldDelimiter||"")}else typeof t=="function"?i=t(e):t&&(i=r[t]);return this._valueInfoMap[i+""]}static fromPortalStyle(e,t){const r=new y_(t&&t.properties);r._set("styleOrigin",Object.freeze({styleName:e})),r._set("portal",t&&t.portal||Ws.getDefault());const i=r.populateFromStyle();return i.catch(n=>{op.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",n)}),i}static fromStyleUrl(e,t){const r=new y_(t&&t.properties);r._set("styleOrigin",Object.freeze({styleUrl:e}));const i=r.populateFromStyle();return i.catch(n=>{op.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",n)}),i}};d([f({readOnly:!0})],rn.prototype,"_cache",null),d([pr({uniqueValue:"unique-value"})],rn.prototype,"type",void 0),d([f(Cne)],rn.prototype,"backgroundFillSymbol",void 0),d([f({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],rn.prototype,"field",null),d([Qr("field")],rn.prototype,"castField",null),d([zt("field")],rn.prototype,"writeField",null),d([f({type:String,value:null,json:{write:!0}})],rn.prototype,"field2",null),d([f({type:String,value:null,json:{write:!0}})],rn.prototype,"field3",null),d([f({type:String,value:null,json:{write:!0}})],rn.prototype,"valueExpression",null),d([f({type:String,json:{write:!0}})],rn.prototype,"valueExpressionTitle",void 0),d([f({type:bv,json:{write:!0}})],rn.prototype,"legendOptions",void 0),d([f({type:String,json:{write:!0}})],rn.prototype,"defaultLabel",void 0),d([f(yJ({...z0},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],rn.prototype,"defaultSymbol",null),d([f({type:String,value:null,json:{write:!0}})],rn.prototype,"fieldDelimiter",null),d([f({type:Ws,readOnly:!0})],rn.prototype,"portal",void 0),d([Tt("portal",["styleName"])],rn.prototype,"readPortal",null),d([f({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],rn.prototype,"styleOrigin",void 0),d([Tt("styleOrigin",["styleName","styleUrl"])],rn.prototype,"readStyleOrigin",null),d([zt("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],rn.prototype,"writeStyleOrigin",null),d([f({type:[x5],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,r)=>(t.uniqueValueGroups||lot(t)).map(i=>x5.fromJSON(i,r))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],rn.prototype,"uniqueValueGroups",null),d([f({type:[dw],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],rn.prototype,"uniqueValueInfos",null),rn=y_=d([se(zne)],rn);const yx=rn,vx={key:"type",base:Fd,typeMap:{heatmap:Dne,simple:r0,"unique-value":yx,"class-breaks":Sne,"dot-density":Pnt,dictionary:Mnt,"pie-chart":Ynt},errorContext:"renderer"},jne={key:"type",base:Fd,typeMap:{simple:r0,"unique-value":yx,"class-breaks":Sne,heatmap:Dne},errorContext:"renderer"};function Zyt(e,t){return E1(e,null,t)}const aot=Uh({types:vx});function E1(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&e.type!=="uniqueValue"?(r&&r.messages&&r.messages.push(new cs("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):aot(e,t,r):null}class BN{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(T$),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const r=new BN,i=this._originStores[Ht.DEFAULTS];i&&i.forEach((n,o)=>{r.set(o,Ge(n),Ht.DEFAULTS)});for(let n=Ht.SERVICE;n<T$;n++){const o=this._originStores[n];o&&o.forEach((s,l)=>{t&&t.has(l)||r.set(l,Ge(s),n)})}return r}get(t,r){const i=r===void 0?this._values:this._originStores[r];return i?i.get(t):void 0}keys(t){const r=t==null?this._values:this._originStores[t];return r?[...r.keys()]:[]}set(t,r,i=Ht.USER){let n=this._originStores[i];if(n||(n=new Map,this._originStores[i]=n),n.set(t,r),!this._values.has(t)||this._propertyOriginMap.get(t)<=i){const o=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,i),o!==r}return!1}delete(t,r=Ht.USER){const i=this._originStores[r];if(!i)return;const n=i.get(t);if(i.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===r){this._values.delete(t);for(let o=r-1;o>=0;o--){const s=this._originStores[o];if(s&&s.has(t)){this._values.set(t,s.get(t)),this._propertyOriginMap.set(t,o);break}}}return n}has(t,r){const i=r===void 0?this._values:this._originStores[r];return!!i&&i.has(t)}revert(t,r){for(;r>0&&!this.has(t,r);)--r;const i=this._originStores[r],n=i&&i.get(t),o=this._values.get(t);return this._values.set(t,n),this._propertyOriginMap.set(t,r),o!==n}originOf(t){return this._propertyOriginMap.get(t)||Ht.DEFAULTS}forEach(t){this._values.forEach(t)}}const Vne=e=>{let t=class extends e{constructor(...r){super(...r);const i=Nn(this),n=i.store,o=new BN;i.store=o,oX(i,n,o)}read(r,i){lX(this,r,i)}getAtOrigin(r,i){const n=eI(this),o=Ls(i);if(typeof r=="string")return n.get(r,o);const s={};return r.forEach(l=>{s[l]=n.get(l,o)}),s}originOf(r){return t1(this.originIdOf(r))}originIdOf(r){return eI(this).originOf(r)}revert(r,i){const n=eI(this),o=Ls(i),s=Nn(this);let l;l=typeof r=="string"?r==="*"?n.keys(o):[r]:r,l.forEach(a=>{s.invalidate(a),n.revert(a,o),s.commit(a)})}};return t=d([se("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function eI(e){return Nn(e).store}let K7=class extends Vne(rr){};K7=d([se("esri.core.ReadOnlyMultiOriginJSONSupport")],K7);const cot=e=>{let t=class extends e{constructor(...r){super(...r)}clear(r,i="user"){return tI(this).delete(r,Ls(i))}write(r={},i){return cX(this,r=r||{},i),r}setAtOrigin(r,i,n){Nn(this).setAtOrigin(r,i,Ls(n))}removeOrigin(r){const i=tI(this),n=Ls(r),o=i.keys(n);for(const s of o)i.originOf(s)===n&&i.set(s,i.get(s,n),Ht.USER)}updateOrigin(r,i){const n=tI(this),o=Ls(i),s=this.get(r);for(let l=o+1;l<T$;++l)n.delete(r,l);n.set(r,s,o)}toJSON(r){return this.write({},r)}};return t=d([se("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function tI(e){return Nn(e).store}const V0=e=>{let t=class extends cot(Vne(e)){constructor(...r){super(...r)}};return t=d([se("esri.core.MultiOriginJSONSupport")],t),t};let Z7=class extends V0(rr){};Z7=d([se("esri.core.MultiOriginJSONSupport")],Z7);async function uot(e,t){const{WhereClause:r}=await ut(()=>import("./WhereClause.39c9a123.js"),[]);return r.create(e,t)}function UN(e,t){return ue(e)?ue(t)?`(${e}) AND (${t})`:e:t}var k5;let Wf=k5=class extends xt{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new k5({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};d([f({type:String,json:{write:!0}})],Wf.prototype,"expression",void 0),d([f({type:String,json:{write:!0}})],Wf.prototype,"name",void 0),d([f({type:["boolean","date","number","string"],json:{write:!0}})],Wf.prototype,"returnType",void 0),d([f({type:String,json:{write:!0}})],Wf.prototype,"title",void 0),Wf=k5=d([se("esri.form.ExpressionInfo")],Wf);const dot=Wf;let Hf=class extends xt{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};d([f({type:String,json:{write:!0}})],Hf.prototype,"description",void 0),d([f({type:String,json:{write:!0}})],Hf.prototype,"label",void 0),d([f()],Hf.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],Hf.prototype,"visibilityExpression",void 0),Hf=d([se("esri.form.elements.Element")],Hf);const i0=Hf;var S5;let Mk=S5=class extends xt{constructor(e){super(e),this.type=null}clone(){return new S5({type:this.type})}};d([f({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],Mk.prototype,"type",void 0),Mk=S5=d([se("esri.form.elements.inputs.AttachmentInput")],Mk);const pot=Mk;var E5;let Gf=E5=class extends i0{constructor(e){super(e),this.attachmentKeyword=null,this.editable=!0,this.input=null,this.type="attachment"}clone(){return new E5({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};d([f({type:String,json:{write:!0}})],Gf.prototype,"attachmentKeyword",void 0),d([f({type:Boolean,json:{write:!0}})],Gf.prototype,"editable",void 0),d([f({type:pot,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Gf.prototype,"input",void 0),d([f({type:["attachment"],json:{read:!1,write:!0}})],Gf.prototype,"type",void 0),Gf=E5=d([se("esri.form.elements.AttachmentElement")],Gf);const Q7=Gf;let Ik=class extends xt{constructor(e){super(e),this.type=null}};d([f()],Ik.prototype,"type",void 0),Ik=d([se("esri.form.elements.inputs.Input")],Ik);const B0=Ik;let v_=class extends B0{constructor(e){super(e),this.maxLength=null,this.minLength=0}};d([f({type:Number,json:{write:!0}})],v_.prototype,"maxLength",void 0),d([f({type:Number,json:{write:!0}})],v_.prototype,"minLength",void 0),v_=d([se("esri.form.elements.inputs.TextInput")],v_);const WN=v_;var T5;let Pk=T5=class extends WN{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new T5({maxLength:this.maxLength,minLength:this.minLength})}};d([f({type:["barcode-scanner"],json:{read:!1,write:!0}})],Pk.prototype,"type",void 0),Pk=T5=d([se("esri.form.elements.inputs.BarcodeScannerInput")],Pk);const hot=Pk;var A5;let xy=A5=class extends B0{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new A5({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};d([f({type:String,json:{write:!0}})],xy.prototype,"noValueOptionLabel",void 0),d([f({type:Boolean,json:{write:!0}})],xy.prototype,"showNoValueOption",void 0),d([f({type:["combo-box"],json:{read:!1,write:!0}})],xy.prototype,"type",void 0),xy=A5=d([se("esri.form.elements.inputs.ComboBoxInput")],xy);const fot=xy;var M5;function J7(e){return e!=null?new Date(e):null}function X7(e){return e?e.getTime():null}let La=M5=class extends B0{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return J7(t.max)}writeMax(e,t){t.max=X7(e)}readMin(e,t){return J7(t.min)}writeMin(e,t){t.min=X7(e)}clone(){return new M5({includeTime:this.includeTime,max:this.max,min:this.min,type:this.type})}};d([f({type:Boolean,json:{write:!0}})],La.prototype,"includeTime",void 0),d([f({type:Date,json:{type:Number,write:!0}})],La.prototype,"max",void 0),d([Tt("max")],La.prototype,"readMax",null),d([zt("max")],La.prototype,"writeMax",null),d([f({type:Date,json:{type:Number,write:!0}})],La.prototype,"min",void 0),d([Tt("min")],La.prototype,"readMin",null),d([zt("min")],La.prototype,"writeMin",null),d([f({type:["datetime-picker"],json:{read:!1,write:!0}})],La.prototype,"type",void 0),La=M5=d([se("esri.form.elements.inputs.DateTimePickerInput")],La);const mot=La;var I5;let Cy=I5=class extends B0{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new I5({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};d([f({type:String,json:{write:!0}})],Cy.prototype,"noValueOptionLabel",void 0),d([f({type:Boolean,json:{write:!0}})],Cy.prototype,"showNoValueOption",void 0),d([f({type:["radio-buttons"],json:{read:!1,write:!0}})],Cy.prototype,"type",void 0),Cy=I5=d([se("esri.form.elements.inputs.RadioButtonsInput")],Cy);const got=Cy;var P5;let ky=P5=class extends B0{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new P5({offValue:this.offValue,onValue:this.onValue})}};d([f({type:[String,Number],json:{write:!0}})],ky.prototype,"offValue",void 0),d([f({type:[String,Number],json:{write:!0}})],ky.prototype,"onValue",void 0),d([f({type:["switch"],json:{read:!1,write:!0}})],ky.prototype,"type",void 0),ky=P5=d([se("esri.form.elements.inputs.SwitchInput")],ky);const yot=ky;var $5;let $k=$5=class extends WN{constructor(e){super(e),this.type="text-area"}clone(){return new $5({maxLength:this.maxLength,minLength:this.minLength})}};d([f({type:["text-area"],json:{read:!1,write:!0}})],$k.prototype,"type",void 0),$k=$5=d([se("esri.form.elements.inputs.TextAreaInput")],$k);const vot=$k;var O5;let Ok=O5=class extends WN{constructor(e){super(e),this.type="text-box"}clone(){return new O5({maxLength:this.maxLength,minLength:this.minLength})}};d([f({type:["text-box"],json:{read:!1,write:!0}})],Ok.prototype,"type",void 0),Ok=O5=d([se("esri.form.elements.inputs.TextBoxInput")],Ok);const bot=Ok,_ot={base:B0,key:"type",typeMap:{"barcode-scanner":hot,"combo-box":fot,"datetime-picker":mot,"radio-buttons":got,switch:yot,"text-area":vot,"text-box":bot}};var L5;let Fl=L5=class extends i0{constructor(e){super(e),this.domain=null,this.editable=!0,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new L5({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};d([f({types:Die,json:{read:{reader:TN},write:!0}})],Fl.prototype,"domain",void 0),d([f({type:Boolean,json:{write:!0}})],Fl.prototype,"editable",void 0),d([f({type:String,json:{write:!0}})],Fl.prototype,"editableExpression",void 0),d([f({type:String,json:{write:!0}})],Fl.prototype,"fieldName",void 0),d([f({type:String,json:{write:!0}})],Fl.prototype,"hint",void 0),d([f({types:_ot,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Fl.prototype,"input",void 0),d([f({type:String,json:{write:!0}})],Fl.prototype,"requiredExpression",void 0),d([f({type:String,json:{read:!1,write:!0}})],Fl.prototype,"type",void 0),d([f({type:String,json:{write:!0}})],Fl.prototype,"valueExpression",void 0),Fl=L5=d([se("esri.form.elements.FieldElement")],Fl);const eU=Fl;var R5;let zu=R5=class extends i0{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editable=!0,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new R5({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:Ge(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};d([f({type:Number,json:{write:!0}})],zu.prototype,"displayCount",void 0),d([f({type:["list"],json:{write:!0}})],zu.prototype,"displayType",void 0),d([f({type:Boolean,json:{write:!0}})],zu.prototype,"editable",void 0),d([f({type:[xD],json:{write:!0}})],zu.prototype,"orderByFields",void 0),d([f({type:Number,json:{write:!0}})],zu.prototype,"relationshipId",void 0),d([f({type:["relationship"],json:{read:!1,write:!0}})],zu.prototype,"type",void 0),zu=R5=d([se("esri.form.elements.RelationshipElement")],zu);const tU=zu;function Bne(e){return{typesWithGroup:{base:i0,key:"type",typeMap:{attachment:Q7,field:eU,group:e,relationship:tU}},typesWithoutGroup:{base:i0,key:"type",typeMap:{attachment:Q7,field:eU,relationship:tU}}}}function Une(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(n=>i[n.type]).map(n=>i[n.type].fromJSON(n))}function Wne(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(n=>i[n.type]).map(n=>n.toJSON())}function Hne(e,t,r=!0){return e?e.map(i=>au(r?t.typesWithGroup:t.typesWithoutGroup,i)):null}var D5;let Bc=D5=class extends i0{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Hne(e,rI,!1)}readElements(e,t){return Une(t.formElements,rI,!1)}writeElements(e,t){t.formElements=Wne(e,rI,!1)}clone(){return new D5({description:this.description,elements:Ge(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};d([f({json:{write:!0}})],Bc.prototype,"elements",void 0),d([Qr("elements")],Bc.prototype,"castElements",null),d([Tt("elements",["formElements"])],Bc.prototype,"readElements",null),d([zt("elements")],Bc.prototype,"writeElements",null),d([f({type:["collapsed","expanded"],json:{write:!0}})],Bc.prototype,"initialState",void 0),d([f({type:String,json:{read:!1,write:!0}})],Bc.prototype,"type",void 0),Bc=D5=d([se("esri.form.elements.GroupElement")],Bc);const rI=Bne(Bc),wot=Bc;var N5;const iI=Bne(wot);let Ra=N5=class extends xt{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Hne(e,iI)}readElements(e,t){return Une(t.formElements,iI)}writeElements(e,t){t.formElements=Wne(e,iI)}clone(){return new N5({description:this.description,expressionInfos:Ge(this.expressionInfos),elements:Ge(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}};d([f({type:String,json:{write:!0}})],Ra.prototype,"description",void 0),d([f({json:{write:!0}})],Ra.prototype,"elements",void 0),d([Qr("elements")],Ra.prototype,"castElements",null),d([Tt("elements",["formElements"])],Ra.prototype,"readElements",null),d([zt("elements")],Ra.prototype,"writeElements",null),d([f({type:[dot],json:{write:!0}})],Ra.prototype,"expressionInfos",void 0),d([f({type:Boolean,json:{default:!1,write:!0}})],Ra.prototype,"preserveFieldValuesWhenHidden",void 0),d([f({type:String,json:{write:!0}})],Ra.prototype,"title",void 0),Ra=N5=d([se("esri.form.FormTemplate")],Ra);const xot=Ra;async function Cot(e){const t="portalItem"in e?e:{portalItem:e},r=await ut(()=>import("./portalLayers.7b8018b1.js"),["assets/portalLayers.7b8018b1.js","assets/lazyLayerLoader.54408344.js","assets/layersLoader.1acfd9a9.js","assets/jsonContext.e9416d90.js","assets/portalItemUtils.6b2af26d.js"]);try{return await r.fromItem(t)}catch(i){const n=t&&t.portalItem,o=n&&n.id||"unset",s=n&&n.portal&&n.portal.url||pi.portalUrl;throw ft.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+o+"')",i),i}}let kot=0,Kn=class extends Dd.EventedMixin(C0(uu)){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new li(-180,-90,180,90,gr.WGS84),this.id=Date.now().toString(16)+"-layer-"+kot++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=gr.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t=typeof e=="string"?{url:e}:e;return(await ut(()=>import("./arcgisLayers.f2355574.js"),["assets/arcgisLayers.f2355574.js","assets/fetchService.9a203085.js","assets/lazyLayerLoader.54408344.js"])).fromUrl(t)}static fromPortalItem(e){return Cot(e)}initialize(){this.when().catch(e=>{var t,r;us(e)||ft.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${(t=this.title)!=null?t:"no title"}', id: '${(r=this.id)!=null?r:"no id"}')`,{error:e})})}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return this.attributionDataUrl!=null}get parsedUrl(){return vo(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await ri(e,{query:{f:"json"},responseType:"json"})).data;throw new ze("layer:no-attribution-data","Layer does not have attribution data")}};d([f({type:String})],Kn.prototype,"attributionDataUrl",void 0),d([f({type:li})],Kn.prototype,"fullExtent",void 0),d([f({readOnly:!0})],Kn.prototype,"hasAttributionData",null),d([f({type:String,clonable:!1})],Kn.prototype,"id",void 0),d([f({type:Boolean,nonNullable:!0})],Kn.prototype,"legendEnabled",void 0),d([f({type:["show","hide","hide-children"]})],Kn.prototype,"listMode",void 0),d([f({type:Number,range:{min:0,max:1},nonNullable:!0})],Kn.prototype,"opacity",void 0),d([f({clonable:!1})],Kn.prototype,"parent",void 0),d([f({readOnly:!0})],Kn.prototype,"parsedUrl",null),d([f({type:Boolean})],Kn.prototype,"popupEnabled",void 0),d([f({type:Boolean})],Kn.prototype,"attributionVisible",void 0),d([f({type:gr})],Kn.prototype,"spatialReference",void 0),d([f({type:String})],Kn.prototype,"title",void 0),d([f({readOnly:!0,json:{read:!1}})],Kn.prototype,"type",void 0),d([f()],Kn.prototype,"url",void 0),d([f({type:Boolean,nonNullable:!0})],Kn.prototype,"visible",void 0),Kn=d([se("esri.layers.Layer")],Kn);const Rh=Kn;function rU(e,t,r){if(e.hasM==null||e.hasZ)for(const i of t)for(const n of i)n.length>2&&(n[2]*=r)}function Sot(e,t,r){if(!e&&!t||!r)return;const i=Xv(r);iU(e,r,i),iU(t,r,i)}function iU(e,t,r){if(e)for(const i of e)Eot(i.geometry,t,r)}function Eot(e,t,r){if(et(e)||!e.spatialReference||So(e.spatialReference,t))return;const i=Xv(e.spatialReference)/r;if(i!==1){if("x"in e)e.z!=null&&(e.z*=i);else if("rings"in e)rU(e,e.rings,i);else if("paths"in e)rU(e,e.paths,i);else if("points"in e&&(e.hasM==null||e.hasZ))for(const n of e.points)n.length>2&&(n[2]*=i)}}let Tot=0;const Gne="esri.layers.graphics.sources.MemorySource",nI=ft.getLogger(Gne);let Ku=class extends uu.LoadableMixin(oT(fa(dr))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=ue(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){var e;(e=this._connection)==null||e.close(),this._connection=null}get _workerGeometryType(){var t;const e=(t=this.layer)==null?void 0:t.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);VO(e,this.layer.spatialReference,r);const i=IT.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const n=this.layer.objectIdField;for(const o of i.features){const s=o.attributes[n],l=this._idToClientGraphic.get(s);l&&(o.geometry=l.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new ze("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return VO(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t))}queryObjectIds(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t))}queryExtent(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t)).then(r=>({count:r.count,extent:li.fromJSON(r.extent)}))}querySnapping(e,t={}){return this.load(t).then(()=>this._connection.invoke("querySnapping",e,t))}async _applyEdits(e){if(!this._connection)throw new ze("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],n=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=c=>"objectId"in c&&c.objectId!=null?c.objectId:"attributes"in c&&c.attributes[t]!=null?c.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const c of e.deleteFeatures){const u=o(c);u!=null&&i.push(u)}const s=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures){for(const c of e.updateFeatures)if(n.push(this._serializeFeature(c)),s){const u=o(c);u!=null&&s.set(u,c)}}Sot(r?r.features:null,n,this.layer.spatialReference);const{fullExtent:l,featureEditResults:a}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:n,deletes:i});return this.fullExtent=l,r&&r.finish(a.uidToObjectId),this._updateClientGraphicIds(s,a),this._createEditsResult(a)}async _prepareClientMapping(e,t){if(this._layerOrSourceGeometryType!=="mesh"||et(e))return;const r=[];for(const{geometry:i}of e)!ue(i)||i.type!=="mesh"||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const i=e.get(r.objectId);i!=null&&this._addIdToClientGraphic(i)}for(const r of t.deleteResults)r.success&&this._idToClientGraphic.delete(r.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=e.success===!0?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new ze("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let o=0;o<e.length;o++){const s=e[o],l=this._serializeFeature(s);!i&&ue(s.geometry)&&(i=s.geometry.type),r[o]=l,t.set(`${l.uid}`,s)}const n=this;return{features:r,inferredGeometryType:i,finish(o){const s=n.sourceJSON.objectIdField;for(const l in o){const a=o[l],c=t.get(l);c&&(c.attributes||(c.attributes={}),a===-1?delete c.attributes[s]:c.attributes[s]=a,n._addIdToClientGraphic(c))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes&&e.attributes[t];r!=null&&this._idToClientGraphic.set(r,e)}get _layerOrSourceGeometryType(){var e,t,r;return(r=(e=this.layer)==null?void 0:e.geometryType)!=null?r:(t=this.sourceJSON)==null?void 0:t.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return e==="mesh"||e==="multipatch"||e==="extent"}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(Tot++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return et(t)?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?wd.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await FKe("MemorySourceWorker",{strategy:at("feature-layers-workers")?"dedicated":"local",signal:e});const{fields:t,spatialReference:r,objectIdField:i,hasM:n,hasZ:o,timeInfo:s}=this.layer,l=this.layer.originOf("spatialReference")==="defaults";await this._prepareClientMapping(this.items,e);const a=this._prepareAddFeatures(this.items);this.handles.add(this.on("before-changes",h=>{nI.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),h.preventDefault()}));const c={features:a.features,fields:t&&t.map(h=>h.toJSON()),geometryType:b9.toJSON(this._workerGeometryType),hasM:this._layerOrSourceGeometryType!=="mesh"&&n,hasZ:this._layerOrSourceGeometryType==="mesh"||o,objectIdField:i,spatialReference:l?null:r&&r.toJSON(),timeInfo:s?s.toJSON():null},u=await this._connection.invoke("load",c,{signal:e});for(const h of u.warnings)nI.warn(h.message,{layer:this.layer,warning:h});u.featureErrors.length&&nI.warn(`Encountered ${u.featureErrors.length} validation errors while loading features`,u.featureErrors);const p=u.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(a.inferredGeometryType)&&(p.geometryType=b9.toJSON(a.inferredGeometryType)),this.sourceJSON=p,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),a.finish(u.assignedObjectIds)}};d([hD({Type:Hs,ensureType:_n(Hs)})],Ku.prototype,"itemType",void 0),d([f()],Ku.prototype,"type",void 0),d([f({constructOnly:!0})],Ku.prototype,"layer",void 0),d([f({readOnly:!0})],Ku.prototype,"_workerGeometryType",null),d([f()],Ku.prototype,"sourceJSON",void 0),Ku=d([se(Gne)],Ku);function Aot(e){return"portalItem"in e}const HN=e=>{let t=class extends e{get apiKey(){var r;return this._isOverridden("apiKey")?this._get("apiKey"):Aot(this)?(r=this.portalItem)==null?void 0:r.apiKey:null}set apiKey(r){r!=null?this._override("apiKey",r):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return d([f({type:String})],t.prototype,"apiKey",null),t=d([se("esri.layers.mixins.APIKeyMixin")],t),t},qne={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},Yne=Object.values(qne),Kne=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${Yne.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Mot=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${Yne.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Iot=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function Pot(e){return!!Kne.test(e)}function Zh(e){if(et(e))return null;const t=vo(e),r=t.path.match(Kne)||t.path.match(Mot);if(!r)return null;const[,i,n,o,s]=r,l=n.indexOf("/");return{title:GN(l!==-1?n.slice(l+1):n),serverType:qne[o.toLowerCase()],sublayer:s!=null&&s!==""?parseInt(s,10):null,url:{path:i}}}function $ot(e){const t=vo(e).path.match(Iot);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function GN(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function Oot(e,t){const r=[];if(e){const i=Zh(e);ue(i)&&i.title&&r.push(i.title)}if(t){const i=GN(t);r.push(i)}if(r.length===2){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}function qN(e){if(!e)return!1;const t=".arcgis.com/",r="//services",i="//tiles",n="//features",o=(e=e.toLowerCase()).includes(t),s=e.includes(r)||e.includes(i)||e.includes(n);return o&&s}function Lot(e,t){return e&&ete(tte(e,t))}function Rot(e){let{url:t}=e;if(!t)return{url:t};t=tte(t,e.logger);const r=vo(t),i=Zh(r.path);let n;if(ue(i))i.sublayer!=null&&e.layer.layerId==null&&(n=i.sublayer),t=i.url.path;else if(e.nonStandardUrlAllowed){const o=$ot(r.path);ue(o)&&(t=o.serviceUrl,n=o.sublayerId)}return{url:ete(t),layerId:n}}function Dot(e,t,r,i,n){hg(t,i,"url",n),i.url&&e.layerId!=null&&(i.url=pg(i.url,r,e.layerId.toString()))}function Qyt(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),i=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(i||n||o)}const YN=e=>{let t=class extends e{get title(){if(this._get("title")&&this.originOf("title")!=="defaults")return this._get("title");if(this.url){const r=Zh(this.url);if(ue(r)&&r.title)return r.title}return this._get("title")||""}set title(r){this._set("title",r)}set url(r){this._set("url",Lot(r,ft.getLogger(this.declaredClass)))}};return d([f()],t.prototype,"title",null),d([f({type:String})],t.prototype,"url",null),t=d([se("esri.layers.mixins.ArcGISService")],t),t},nU={read:{reader:SN},write:{allowNull:!0,writer:EN}},bx=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return d([f({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),d([f({json:{read:!1,write:!1,origins:{"web-map":nU,"portal-item":nU}}})],t.prototype,"effect",void 0),t=d([se("esri.layers.mixins.BlendLayer")],t),t},KN=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return d([f({type:Object,json:{write:{overridePolicy:r=>({enabled:!!(r&&Object.keys(r).length>0)})}}})],t.prototype,"customParameters",void 0),t=d([se("esri.layers.mixins.CustomParametersMixin")],t),t},Not=new Dd.EventEmitter,Zne="esri.layers.mixins.EditBusLayer",Qne=Symbol(Zne);function Jyt(e){return e!=null&&typeof e=="object"&&Qne in e}const Fot=e=>{var t;let r=class extends e{constructor(...i){super(...i),this[t]=!0,this.when().then(()=>{this.own([Not.on("edits",n=>{var u,p,h;const o="layer"in n?n.layer:null,s="layer"in n?(u=n.layer)==null?void 0:u.url:n.serviceUrl,l="layer"in n?(p=n.layer)==null?void 0:p.layerId:n.layerId,a=n.event;if(o===this||s!==this.url)return;if(l!=null&&this.layerId!=null&&l===this.layerId)return void this.emit("edits",Ge(a));const c=(h=a.editedFeatures)==null?void 0:h.find(({layerId:m})=>m===this.layerId);if(c){const{adds:m,updates:y,deletes:v}=c.editedFeatures,_={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:m?m.map(({attributes:x})=>({objectId:this.objectIdField&&x[this.objectIdField],globalId:this.globalIdField&&x[this.globalIdField]})):[],deletedFeatures:v?v.map(({attributes:x})=>({objectId:this.objectIdField&&x[this.objectIdField],globalId:this.globalIdField&&x[this.globalIdField]})):[],updatedFeatures:y?y.map(({current:{attributes:x}})=>({objectId:this.objectIdField&&x[this.objectIdField],globalId:this.globalIdField&&x[this.globalIdField]})):[],editedFeatures:Ge(a.editedFeatures)};this.emit("edits",_)}})])},()=>{})}};return t=Qne,r=d([se(Zne)],r),r};var F5;const oI=new Yr({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),sI=new Yr({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let Lc=F5=class extends xt{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new ea({geometry:Ge(r),objectIds:Ge(o),spatialRelationship:i,timeExtent:Ge(n),where:t,units:s,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:i,objectIds:n,units:o,distance:s}=this;return new F5({geometry:Ge(t),objectIds:Ge(n),spatialRelationship:r,timeExtent:Ge(i),where:e,units:o,distance:s})}};d([f({type:String,json:{write:!0}})],Lc.prototype,"where",void 0),d([f({types:Tg,json:{write:!0}})],Lc.prototype,"geometry",void 0),d([f({type:oI.apiValues,json:{name:"spatialRel",read:{reader:oI.read},write:{allowNull:!1,writer:oI.write,overridePolicy(){return{enabled:ue(this.geometry)}}}}})],Lc.prototype,"spatialRelationship",void 0),d([f({type:Number,json:{write:{overridePolicy(e){return{enabled:e!=null&&this.geometry!=null}}}}})],Lc.prototype,"distance",void 0),d([f({type:[Number],json:{write:!0}})],Lc.prototype,"objectIds",void 0),d([f({type:sI.apiValues,json:{read:sI.read,write:{writer:sI.write,overridePolicy(e){return{enabled:e!=null&&this.geometry!=null}}}}})],Lc.prototype,"units",void 0),d([f({type:vc,json:{write:!0}})],Lc.prototype,"timeExtent",void 0),Lc=F5=d([se("esri.layers.support.FeatureFilter")],Lc);const zot=Lc;var z5;const oU={read:{reader:SN},write:{writer:EN,overridePolicy(){return{allowNull:this.excludedEffect!=null,isRequired:this.excludedEffect==null}}}},sU={read:{reader:SN},write:{writer:EN,overridePolicy(){return{allowNull:this.includedEffect!=null,isRequired:this.includedEffect==null}}}},lU={name:"showExcludedLabels",default:!0};let qf=z5=class extends xt{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){var i,n;const r=super.write(e,t);if(t!=null&&t.origin){if(r.filter){const o=Object.keys(r.filter);if(o.length>1||o[0]!=="where")return(i=t.messages)==null||i.push(new ze("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return(n=t.messages)==null||n.push(new ze("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new z5({filter:ue(this.filter)?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};d([f({type:zot,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e==null?void 0:e.write({},i);n&&Object.keys(n).length!==0?Wo(r,n,t):Wo(r,null,t)}}}})],qf.prototype,"filter",void 0),d([f({json:{write:!0,origins:{"web-map":oU,"portal-item":oU}}})],qf.prototype,"includedEffect",void 0),d([f({json:{write:!0,origins:{"web-map":sU,"portal-item":sU}}})],qf.prototype,"excludedEffect",void 0),d([f({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":lU,"portal-item":lU}}})],qf.prototype,"excludedLabelsVisible",void 0),qf=z5=d([se("esri.layers.support.FeatureEffect")],qf);const jot=qf,aU={write:{allowNull:!0}},Vot=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return d([f({type:jot,json:{origins:{"web-map":aU,"portal-item":aU}}})],t.prototype,"featureEffect",void 0),t=d([se("esri.layers.mixins.FeatureEffectLayer")],t),t};var b_;const _E=Ao()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),Jne=_E.jsonValues.slice();PBe(Jne,"orthometric");const pw=Ao()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let Da=b_=class extends xt{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return _E.write(e,t,r)}readHeightModel(e,t,r){return _E.read(e)||(r&&r.messages&&r.messages.push(Bot(e,{context:r})),null)}readHeightUnit(e,t,r){return pw.read(e)||(r&&r.messages&&r.messages.push(cU(e,{context:r})),null)}readHeightUnitService(e,t,r){return Wte(e)||pw.read(e)||(r&&r.messages&&r.messages.push(cU(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new b_({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=YKe(t);return new b_({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new b_;return t.read(e,{origin:"web-scene"}),t}};function cU(e,t){return new cs("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}function Bot(e,t){return new cs("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}d([f({type:_E.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:Jne,default:"ellipsoidal"}}}})],Da.prototype,"heightModel",void 0),d([zt("web-scene","heightModel")],Da.prototype,"writeHeightModel",null),d([Tt(["web-scene","service"],"heightModel")],Da.prototype,"readHeightModel",null),d([f({type:pw.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:pw.jsonValues,write:pw.write}}}})],Da.prototype,"heightUnit",void 0),d([Tt("web-scene","heightUnit")],Da.prototype,"readHeightUnit",null),d([Tt("service","heightUnit")],Da.prototype,"readHeightUnitService",null),d([f({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],Da.prototype,"vertCRS",void 0),d([Tt("service","vertCRS",["vertCRS","ellipsoid","geoid"])],Da.prototype,"readVertCRS",null),Da=b_=d([se("esri.geometry.HeightModelInfo")],Da);const RT=Da;function Uot(e){if(!e)return e;const{start:t,end:r}=e;return new vc({start:ue(t)?Ym(t,-t.getTimezoneOffset(),"minutes"):t,end:ue(r)?Ym(r,-r.getTimezoneOffset(),"minutes"):r})}function Wot(e){if(!e)return e;const{start:t,end:r}=e;return new vc({start:ue(t)?Ym(t,t.getTimezoneOffset(),"minutes"):t,end:ue(r)?Ym(r,r.getTimezoneOffset(),"minutes"):r})}var j5;let __=j5=class extends xt{constructor(e){super(e)}async collectRequiredFields(e,t){return ds(e,t,this.expression)}clone(){return new j5({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};d([f({type:String,json:{write:!0}})],__.prototype,"expression",void 0),d([f({type:String,json:{write:!0}})],__.prototype,"title",void 0),__=j5=d([se("esri.layers.support.FeatureExpressionInfo")],__);const uU=__;function Xyt(e){return 1/(NN[e]||1)}function Hot(){const e=Object.keys(NN);return e.sort(),e}const Got=Hot();var V5;const H2=Ao()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),dU=new Yr({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let ju=V5=class extends xt{constructor(e){super(e),this.offset=null}readFeatureExpressionInfo(e,t){return e!=null?e:t.featureExpression&&t.featureExpression.value===0?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),e.expression==="0"&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):ue(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new V5({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&EBe(this.featureExpressionInfo,e.featureExpressionInfo)}};d([f({type:uU,json:{write:!0}})],ju.prototype,"featureExpressionInfo",void 0),d([Tt("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],ju.prototype,"readFeatureExpressionInfo",null),d([zt("featureExpressionInfo",{featureExpressionInfo:{type:uU},"featureExpression.value":{type:[0]}})],ju.prototype,"writeFeatureExpressionInfo",null),d([f({type:H2.apiValues,nonNullable:!0,json:{type:H2.jsonValues,read:H2.read,write:{writer:H2.write,isRequired:!0}}})],ju.prototype,"mode",null),d([f({type:Number,json:{write:!0}})],ju.prototype,"offset",void 0),d([f({type:Got,json:{type:String,read:dU.read,write:dU.write}})],ju.prototype,"unit",null),ju=V5=d([se("esri.layers.support.ElevationInfo")],ju);const qot=ju,Yot={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},DT={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},ZN={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:!0}},QN={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:hg}}},Kot={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},Zot={value:null,type:qot,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function evt(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const Lk={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},Qot={...Lk,json:{...Lk.json,origins:{"web-document":{...Lk.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&r.origin!=="service"||!t.drawingInfo||t.drawingInfo.transparency===void 0?t.layerDefinition&&t.layerDefinition.drawingInfo&&t.layerDefinition.drawingInfo.transparency!==void 0?c1(t.layerDefinition.drawingInfo.transparency):void 0:c1(t.drawingInfo.transparency)}}},Jot={type:vc,readOnly:!0,get(){var l,a;if(!((l=this.layer)!=null&&l.timeInfo))return null;const{datesInUnknownTimezone:e,timeOffset:t,useViewTime:r}=this.layer,i=(a=this.view)==null?void 0:a.timeExtent;let n=this.layer.timeExtent;e&&(n=Wot(n));let o=r?i&&n?i.intersection(n):i||n:n;if(!o||o.isEmpty||o.isAllTime)return o;t&&(o=o.offset(-t.value,t.unit)),e&&(o=Uot(o));const s=this._get("timeExtent");return o.equals(s)?s:o}},tvt={type:li,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=li.fromJSON(e);return t.spatialReference!=null&&typeof t.spatialReference=="object"&&(r.spatialReference=gr.fromJSON(t.spatialReference)),r}}}},read:!1}},Xne={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},Xot={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},est={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}},eoe={json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}};let Uc=class extends pn(xt){constructor(e){super(e)}};d([f({constructOnly:!0,json:{write:!0}})],Uc.prototype,"name",void 0),d([f({constructOnly:!0,json:{write:!0}})],Uc.prototype,"fields",void 0),d([f({constructOnly:!0,json:{write:!0}})],Uc.prototype,"isAscending",void 0),d([f({constructOnly:!0,json:{write:!0}})],Uc.prototype,"indexType",void 0),d([f({constructOnly:!0,json:{write:!0}})],Uc.prototype,"isUnique",void 0),d([f({constructOnly:!0,json:{write:!0}})],Uc.prototype,"description",void 0),Uc=d([se("esri.layers.support.FeatureIndex")],Uc);const B5=new Yr({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),tst={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function Tr(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function G2(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function rst(e){var r;const t=(r=e==null?void 0:e.supportedSpatialAggregationStatistics)==null?void 0:r.map(i=>i.toLowerCase());return{envelope:!!(t!=null&&t.includes("envelopeaggregate")),centroid:!!(t!=null&&t.includes("centroidaggregate")),convexHull:!!(t!=null&&t.includes("convexhullaggregate"))}}function _x(e,t){var i;const r=(i=e==null?void 0:e.supportedOperationsWithCacheHint)==null?void 0:i.map(n=>n.toLowerCase());return!!(r!=null&&r.includes(t.toLowerCase()))}function toe(e,t,r){return{analytics:ist(t),attachment:nst(t),data:ost(t),metadata:sst(t),operations:lst(t.capabilities||e,t,r),query:ast(t,r),queryRelated:cst(t),queryTopFeatures:ust(t),editing:dst(t)}}function ist(e){return{supportsCacheHint:_x(e.advancedQueryCapabilities,"queryAnalytics")}}function nst(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:_x(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:Tr(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach(i=>{const n=tst[i.name];n&&(r[n]=!!i.isEnabled)}),r}function ost(e){return{isVersioned:Tr(e,"isDataVersioned",!1),supportsAttachment:Tr(e,"hasAttachments",!1),supportsM:Tr(e,"hasM",!1),supportsZ:Tr(e,"hasZ",!1)}}function sst(e){return{supportsAdvancedFieldProperties:Tr(e,"supportsFieldDescriptionProperty",!1)}}function lst(e,t,r){const i=e?e.toLowerCase().split(",").map(h=>h.trim()):[],n=r?Zh(r):null,o=i.includes(ue(n)&&n.serverType==="MapServer"?"data":"query"),s=i.includes("editing")&&!t.datesInUnknownTimezone;let l=s&&i.includes("create"),a=s&&i.includes("delete"),c=s&&i.includes("update");const u=i.includes("changetracking"),p=t.advancedQueryCapabilities;return s&&!(l||a||c)&&(l=a=c=!0),{supportsCalculate:Tr(t,"supportsCalculate",!1),supportsTruncate:Tr(t,"supportsTruncate",!1),supportsValidateSql:Tr(t,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:a,supportsEditing:s,supportsChangeTracking:u,supportsQuery:o,supportsQueryAnalytics:Tr(p,"supportsQueryAnalytic",!1),supportsQueryAttachments:Tr(p,"supportsQueryAttachments",!1),supportsQueryTopFeatures:Tr(p,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:Tr(t,"supportsAttachmentsResizing",!1),supportsSync:i.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:Tr(t,"supportsExceedsLimitStatistics",!1)}}function ast(e,t){const r=e.advancedQueryCapabilities,i=e.ownershipBasedAccessControlForFeatures,n=e.archivingInfo,o=noe(e),s=t==null?void 0:t.includes("MapServer"),l=!at("mapserver-pbf-enabled")&&s&&(o!=null?o:0)<10.81,a=qN(t),c=(e.supportedQueryFormats||"").split(",").reduce((u,p)=>{const h=p.toLowerCase().trim();return h&&u.add(h),u},new Set);return{supportsStatistics:Tr(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:Tr(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:Tr(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:rst(r),supportsCentroid:Tr(r,"supportsReturningGeometryCentroid",!1),supportsDistance:Tr(r,"supportsQueryWithDistance",!1),supportsDistinct:Tr(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:Tr(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:Tr(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:Tr(r,"supportsHavingClause",!1),supportsOrderBy:Tr(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:Tr(r,"supportsPagination",!1),supportsQuantization:Tr(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:Tr(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:Tr(e,"supportsReturningQueryGeometry",!1),supportsResultType:Tr(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:Tr(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:Tr(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:Tr(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:Tr(r,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:Tr(i,"allowOthersToQuery",!0),supportsHistoricMoment:Tr(n,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!l&&c.has("pbf"),supportsDisjointSpatialRelationship:Tr(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:Tr(r,"supportsQueryWithCacheHint",!1)||_x(r,"query"),supportsDefaultSpatialReference:Tr(r,"supportsDefaultSR",!1),supportsCompactGeometry:a,supportsFullTextSearch:Tr(r,"supportsFullTextSearch",!1),maxRecordCountFactor:G2(e,"maxRecordCountFactor",void 0),maxRecordCount:G2(e,"maxRecordCount",void 0),standardMaxRecordCount:G2(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:G2(e,"tileMaxRecordCount",void 0)}}function cst(e){const t=e.advancedQueryCapabilities,r=Tr(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:Tr(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:_x(t,"queryRelated")}}function ust(e){return{supportsCacheHint:_x(e.advancedQueryCapabilities,"queryTopFilter")}}function dst(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:Tr(e,"allowGeometryUpdates",!0),supportsGlobalId:Tr(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:Tr(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:Tr(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:Tr(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:Tr(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:Tr(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:Tr(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:Tr(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:Tr(t,"allowOthersToUpdate",!0)}}async function pst(e,t,r,i){const{source:n}=await e.load();if(await JN(e,t,i),!n.addAttachment)throw new ze(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function JN(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.get("capabilities.data.supportsAttachment")?t?i?n&&i[n]?Promise.resolve():Promise.reject(new ze(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new ze(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new ze(r,"A feature is required to add/delete/update attachments")):Promise.reject(new ze(r,"this layer doesn't support attachments"))}async function hst(e,t,r,i,n){const{source:o}=await e.load();if(await JN(e,t,n),!o.updateAttachment)throw new ze(n,"Layer source does not support updateAttachment capability");return o.updateAttachment(t,r,i)}async function fst(e,t,r){const i=await ut(()=>import("./editingSupport.29b74456.js"),[]),n=await e.load();return i.applyEdits(n,n.source,t,r)}async function mst(e,t,r,i){const{source:n}=await e.load();if(await JN(e,t,i),!n.deleteAttachments)throw new ze(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function gst(e,t,r){const{source:i}=await e.load({signal:t==null?void 0:t.signal});if(!i.fetchRecomputedExtents)throw new ze(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function yst(e,t,r,i){var m,y;t=CO.from(t);const{source:n,capabilities:o}=await e.load();if(!((m=o==null?void 0:o.data)!=null&&m.supportsAttachment))throw new ze(i,"this layer doesn't support attachments");const{attachmentTypes:s,objectIds:l,globalIds:a,num:c,size:u,start:p,where:h}=t;if(!((y=o==null?void 0:o.operations)!=null&&y.supportsQueryAttachments)){const v=l&&l.length>1,_=s&&s.length,x=a&&a.length,S=u&&u.length;if(v||_||x||S||c||p||h)throw new ze(i,"when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",t)}if(!(l!=null&&l.length)&&!h)throw new ze(i,"'objectIds' or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new ze(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function vst(e,t,r,i){var o;const{source:n}=await e.load();if(!n.queryObjectIds)throw new ze(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds((o=ea.from(t))!=null?o:e.createQuery(),r)}async function bst(e,t,r,i){var o;const{source:n}=await e.load();if(!n.queryFeatureCount)throw new ze(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount((o=ea.from(t))!=null?o:e.createQuery(),r)}async function _st(e,t,r,i){var o;const{source:n}=await e.load();if(!n.queryExtent)throw new ze(i,"Layer source does not support queryExtent capability");return n.queryExtent((o=ea.from(t))!=null?o:e.createQuery(),r)}async function wst(e,t,r,i){const{source:n}=await e.load();if(!n.queryRelatedFeatures)throw new ze(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(k1.from(t),r)}async function xst(e,t,r,i){const{source:n}=await e.load();if(!n.queryRelatedFeaturesCount)throw new ze(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(k1.from(t),r)}async function Cst(e){const t=e.source;if(t!=null&&t.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(ue(i)&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await uot(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function kst(e){const t=new ea,r=e.get("capabilities.data"),i=e.get("capabilities.query");t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&e.returnZ!=null&&(t.returnZ=e.returnZ),r.supportsM&&e.returnM!=null&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:n,timeExtent:o}=e;return t.timeExtent=n!=null&&o!=null?o.offset(-n.value,n.unit):o||null,t.multipatchOption=e.geometryType==="multipatch"?"xyFootprint":null,t}function roe(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r){for(const i of r)if(i.type==="esriFieldTypeGlobalID")return i.name}}function ioe(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r){for(const i of r)if(i.type==="esriFieldTypeOID")return i.name}}function noe(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}let Sy=class extends pn(xt){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};d([f({type:String,json:{read:{source:"shapeAreaFieldName"}}})],Sy.prototype,"shapeAreaField",void 0),d([f({type:String,json:{read:{source:"shapeLengthFieldName"}}})],Sy.prototype,"shapeLengthField",void 0),d([f({type:String,json:{read:e=>XKe.read(e)||eZe.read(e)}})],Sy.prototype,"units",void 0),Sy=d([se("esri.layers.support.GeometryFieldsInfo")],Sy);const Sst=Sy;var U5;let Ey=U5=class extends xt{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new dr}clone(){return new U5({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};d([f({type:String,json:{write:!0}})],Ey.prototype,"floorField",void 0),d([f({json:{read:!1,write:!1}})],Ey.prototype,"viewAllMode",void 0),d([f({json:{read:!1,write:!1}})],Ey.prototype,"viewAllLevelIds",void 0),Ey=U5=d([se("esri.layers.support.LayerFloorInfo")],Ey);const ooe=Ey,pU=new Yr({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),hU=new Yr({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let zl=class extends pn(xt){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};d([f({json:{read:pU.read,write:pU.write}})],zl.prototype,"cardinality",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"composite",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"id",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"keyField",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"keyFieldInRelationshipTable",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"name",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"relatedTableId",void 0),d([f({json:{read:!0,write:!0}})],zl.prototype,"relationshipTableId",void 0),d([f({json:{read:hU.read,write:hU.write}})],zl.prototype,"role",void 0),zl=d([se("esri.layers.support.Relationship")],zl);const Est=zl,Tst=e=>{let t=class extends e{constructor(){super(...arguments),this.capabilities=null,this.copyright=null,this.datesInUnknownTimezone=!1,this.displayField=null,this.definitionExpression=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.isTable=!1,this.layerId=void 0,this.minScale=0,this.maxScale=0,this.globalIdField=null,this.objectIdField=null,this.relationships=null,this.sourceJSON=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.spatialReference=gr.WGS84,this.subtypeField=null,this.trackIdField=null,this.indexes=new(dr.ofType(Uc)),this.userIsAdmin=!1,this.version=void 0}readCapabilitiesFromService(r,i){return toe(r,i,this.url)}readEditingInfo(r,i){const{editingInfo:n}=i;return n?{lastEditDate:n.lastEditDate!=null?new Date(n.lastEditDate):null}:null}readIsTableFromService(r,i){return i.type==="Table"}readMinScale(r,i){return i.effectiveMinScale||r||0}readMaxScale(r,i){return i.effectiveMaxScale||r||0}readGlobalIdFieldFromService(r,i){return roe(i)}readObjectIdFieldFromService(r,i){return ioe(i)}readServiceDefinitionExpression(r,i){return i.definitionQuery||i.definitionExpression}set url(r){const i=Rot({layer:this,url:r,nonStandardUrlAllowed:!0,logger:ft.getLogger(this.declaredClass)});this._set("url",i.url),i.layerId!=null&&this._set("layerId",i.layerId)}writeUrl(r,i,n,o){Dot(this,r,null,i,o)}readVersion(r,i){return noe(i)}};return d([f({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),d([Tt("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),d([f({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),d([f({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),d([f({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),d([f({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),d([f({readOnly:!0})],t.prototype,"editFieldsInfo",void 0),d([f({readOnly:!0})],t.prototype,"editingInfo",void 0),d([Tt("editingInfo")],t.prototype,"readEditingInfo",null),d([f((()=>{const r=Ge(Zot),i=r.json.origins;return i["web-map"]={read:!1,write:!1},i["portal-item"]={read:!1,write:!1},r})())],t.prototype,"elevationInfo",void 0),d([f({type:ooe,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],t.prototype,"floorInfo",void 0),d([f({type:li,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),d([f()],t.prototype,"gdbVersion",void 0),d([f({readOnly:!0,type:Sst,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),d([f({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:B5.read}}}})],t.prototype,"geometryType",void 0),d([f({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),d([f({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),d([f({readOnly:!0,type:RT})],t.prototype,"heightModelInfo",void 0),d([f({type:Date})],t.prototype,"historicMoment",void 0),d([f({readOnly:!0})],t.prototype,"isTable",void 0),d([Tt("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),d([f({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),d([f(Xot)],t.prototype,"minScale",void 0),d([Tt("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),d([f(est)],t.prototype,"maxScale",void 0),d([Tt("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),d([f({type:String})],t.prototype,"globalIdField",void 0),d([Tt("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),d([f({type:String})],t.prototype,"objectIdField",void 0),d([Tt("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),d([f({type:[Est],readOnly:!0})],t.prototype,"relationships",void 0),d([f()],t.prototype,"sourceJSON",void 0),d([f({type:Boolean})],t.prototype,"returnM",void 0),d([f({type:Boolean})],t.prototype,"returnZ",void 0),d([f({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),d([Tt("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),d([f({type:gr,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),d([f({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),d([f({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),d([f({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),d([f({type:dr.ofType(Uc),readOnly:!0})],t.prototype,"indexes",void 0),d([f(QN)],t.prototype,"url",null),d([zt("url")],t.prototype,"writeUrl",null),d([f({readOnly:!0})],t.prototype,"userIsAdmin",void 0),d([f({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),d([Tt("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=d([se("esri.layers.mixins.FeatureLayerBase")],t),t};let Ty=class extends pn(xt){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};d([f({type:String,json:{write:!0}})],Ty.prototype,"expression",void 0),d([f({type:String,json:{write:!0}})],Ty.prototype,"title",void 0),d([f({type:String,json:{write:!0}})],Ty.prototype,"returnType",void 0),Ty=d([se("esri.layers.support.ExpressionInfo")],Ty);const XN=Ty;var W5;let Vu=W5=class extends xt{constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new W5({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:Ge(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};d([f({type:Boolean,json:{write:!0}})],Vu.prototype,"isAutoGenerated",void 0),d([f({type:String,json:{write:!0}})],Vu.prototype,"name",void 0),d([f({type:String,json:{write:!0}})],Vu.prototype,"alias",void 0),d([f({type:String,json:{write:!0}})],Vu.prototype,"onStatisticField",void 0),d([f({type:XN,json:{write:!0}})],Vu.prototype,"onStatisticExpression",void 0),d([f({type:String,json:{write:!0}})],Vu.prototype,"statisticType",void 0),Vu=W5=d([se("esri.layers.support.AggregateField")],Vu);const wg=Vu;let bh=class extends xt{constructor(){super(...arguments),this.type=null}};d([f({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],bh.prototype,"type",void 0),bh=d([se("esri.layers.support.FeatureReduction")],bh);const eF="__begin__",tF="__end__",Ast=new RegExp(eF,"ig"),Mst=new RegExp(tF,"ig"),fU=new RegExp("^"+eF,"i"),mU=new RegExp(tF+"$","i"),wE='"',Ist=wE+" + ",Pst=" + "+wE;function $st(e){return e.replace(new RegExp("\\[","g"),"{").replace(new RegExp("\\]","g"),"}")}function Ost(e){return e.replace(new RegExp("\\{","g"),"[").replace(new RegExp("\\}","g"),"]")}function rF(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):e.labelExpression!=null&&(t.expression=$st(e.labelExpression),t.type="conventional"),t}function Lst(e){const t=rF(e);if(!t)return null;switch(t.type){case"conventional":return H5(t.expression);case"arcade":return t.expression}return null}function Rst(e){const t=rF(e);if(!t)return null;switch(t.type){case"conventional":return Nst(t.expression);case"arcade":return soe(t.expression)}return null}function H5(e){let t;return e?(t=uc(e,r=>eF+'$feature["'+r+'"]'+tF),t=fU.test(t)?t.replace(fU,""):wE+t,t=mU.test(t)?t.replace(mU,""):t+wE,t=t.replace(Ast,Ist).replace(Mst,Pst)):t='""',t}const Dst=/^\s*\{([^}]+)\}\s*$/i;function Nst(e){const t=e.match(Dst);return t&&t[1].trim()||null}const Fst=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,zst=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,jst=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function soe(e){if(!e)return null;let t=Fst.exec(e)||zst.exec(e);return t?t[1]||t[3]:(t=jst.exec(e),t?t[2]:null)}var G5;let $p=G5=class extends xt{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?H5(t.value):e}writeExpression(e,t,r){this.value!=null&&(e=H5(this.value)),e!=null&&(t[r]=e)}clone(){return new G5({expression:this.expression,title:this.title,value:this.value})}};d([f({type:String,json:{write:{writerEnsuresNonNull:!0}}})],$p.prototype,"expression",void 0),d([Tt("expression",["expression","value"])],$p.prototype,"readExpression",null),d([zt("expression")],$p.prototype,"writeExpression",null),d([f({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],$p.prototype,"title",void 0),d([f({json:{read:!1,write:!1}})],$p.prototype,"value",void 0),$p=G5=d([se("esri.layers.support.LabelExpressionInfo")],$p);const loe=$p,aoe=[252,146,31,255],Vst={type:"esriSMS",style:"esriSMSCircle",size:6,color:aoe,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},Bst={type:"esriSLS",style:"esriSLSSolid",width:.75,color:aoe},Ust={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},Wst={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},Hst={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},Gst={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},qst={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},rvt=Yh.fromJSON(Vst),ivt=ha.fromJSON(Bst),nvt=qh.fromJSON(Ust),Yst=P0.fromJSON(Wst),ovt=Yh.fromJSON(Hst),svt=ha.fromJSON(Gst),lvt=qh.fromJSON(qst);var q5;const q2=new Yr({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function coe(e){var t;return!e||e.origin!=="service"&&((t=e.layer)==null?void 0:t.type)!=="map-image"}function Kst(e){return(e==null?void 0:e.type)==="map-image"}function uoe(e){var t,r;return!!Kst(e)&&!!((r=(t=e.capabilities)==null?void 0:t.exportMap)!=null&&r.supportsArcadeExpressionForLabeling)}function Zst(e){return coe(e)||uoe(e.layer)}let mn=q5=class extends xt{constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=Yst,this.useCodedValues=void 0,this.where=null}static evaluateWhere(e,t){const r=(i,n,o)=>{switch(n){case"=":return i==o;case"<>":return i!=o;case">":return i>o;case">=":return i>=o;case"<":return i<o;case"<=":return i<=o}return!1};try{if(e==null)return!0;const i=e.split(" ");if(i.length===3)return r(t[i[0]],i[1],i[2]);if(i.length===7){const n=r(t[i[0]],i[1],i[2]),o=i[3],s=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return n&&s;case"OR":return n||s}}return!1}catch{console.log("Error.: can't parse = "+e)}}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo){if(this.labelExpressionInfo.value!=null)e=Ost(this.labelExpressionInfo.value);else if(this.labelExpressionInfo.expression!=null){const i=soe(this.labelExpressionInfo.expression);i&&(e="["+i+"]")}}e!=null&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(e==null&&this.labelExpression!=null&&coe(i))e=new loe({expression:this.getLabelExpressionArcade()});else if(!e)return;const n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return rF(this)}getLabelExpressionArcade(){return Lst(this)}getLabelExpressionSingleField(){return Rst(this)}hash(){return JSON.stringify(this)}clone(){return new q5({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:Ge(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:Ge(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};d([f({type:String,json:{write:!0}})],mn.prototype,"name",void 0),d([f({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],mn.prototype,"allowOverrun",void 0),d([f({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1}}}})],mn.prototype,"deconflictionStrategy",void 0),d([f({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&(r==null?void 0:r.origin)==="service"&&uoe(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],mn.prototype,"labelExpression",void 0),d([Tt("labelExpression")],mn.prototype,"readLabelExpression",null),d([zt("labelExpression")],mn.prototype,"writeLabelExpression",null),d([f({type:loe,json:{write:{overridePolicy:(e,t,r)=>Zst(r)?{allowNull:!0}:{enabled:!1}}}})],mn.prototype,"labelExpressionInfo",void 0),d([zt("labelExpressionInfo")],mn.prototype,"writeLabelExpressionInfo",null),d([f({type:q2.apiValues,json:{type:q2.jsonValues,read:q2.read,write:q2.write}})],mn.prototype,"labelPlacement",void 0),d([f({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],mn.prototype,"labelPosition",void 0),d([f({type:Number})],mn.prototype,"maxScale",void 0),d([zt("maxScale")],mn.prototype,"writeMaxScale",null),d([f({type:Number})],mn.prototype,"minScale",void 0),d([zt("minScale")],mn.prototype,"writeMinScale",null),d([f({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:!1}}}})],mn.prototype,"repeatLabel",void 0),d([f({type:Number,cast:oi,json:{write:!0,origins:{"web-scene":{write:!1}}}})],mn.prototype,"repeatLabelDistance",void 0),d([f({types:XYe,json:{origins:{"web-scene":{types:eKe,write:j7,default:null}},write:j7,default:null}})],mn.prototype,"symbol",void 0),d([f({type:Boolean,json:{write:!0}})],mn.prototype,"useCodedValues",void 0),d([f({type:String,json:{write:!0}})],mn.prototype,"where",void 0),mn=q5=d([se("esri.layers.support.LabelClass")],mn);const wx=mn;var Y5;const lI=Uh({types:dT}),Qst="esri.layers.support.FeatureReductionBinning";let Ts=Y5=class extends bh{constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[],this.renderer=null}writeFields(e,t,r){const i=e.filter(n=>n.statisticType!=="avg_angle").map(n=>n.toJSON());Wo(r,i,t)}readRenderer(e,t,r){var n,o;const i=(n=t.drawingInfo)==null?void 0:n.renderer;return i?(o=E1(i,t,r))!=null?o:void 0:t.defaultSymbol?t.types&&t.types.length?new yx({defaultSymbol:lI(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map(s=>({id:s.id,symbol:lI(s.symbol,s,r)}))}):new r0({symbol:lI(t.defaultSymbol,t,r)}):null}clone(){return new Y5({fields:Ge(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:Ge(this.labelingInfo),labelsVisible:this.labelsVisible,popupEnabled:this.popupEnabled,popupTemplate:Ge(this.popupTemplate),renderer:Ge(this.renderer)})}};d([pr({binning:"binning"})],Ts.prototype,"type",void 0),d([pr({geohash:"geohash"})],Ts.prototype,"binType",void 0),d([f({type:Number,range:{min:1,max:9},json:{write:!0}})],Ts.prototype,"fixedBinLevel",void 0),d([f({type:[wx],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],Ts.prototype,"labelingInfo",void 0),d([f(ZN)],Ts.prototype,"labelsVisible",void 0),d([f(DT)],Ts.prototype,"popupEnabled",void 0),d([f({type:S0,json:{name:"popupInfo",write:!0}})],Ts.prototype,"popupTemplate",void 0),d([f({type:[wg],json:{write:!0}})],Ts.prototype,"fields",void 0),d([zt("fields")],Ts.prototype,"writeFields",null),d([f({types:vx,json:{write:{target:"drawingInfo.renderer"}}})],Ts.prototype,"renderer",void 0),d([Tt("renderer",["drawingInfo.renderer"])],Ts.prototype,"readRenderer",null),Ts=Y5=d([se(Qst)],Ts);const doe=Ts;var K5;const aI=Uh({types:dT}),Jst="esri.layers.support.FeatureReductionCluster";function gU(e){var t;return e.type==="simple"&&!((t=e.visualVariables)!=null&&t.length)}let Zn=K5=class extends xt{constructor(e){super(e),this.type="cluster",this.clusterRadius=oi("80px"),this.clusterMinSize=oi("12px"),this.clusterMaxSize=oi("50px"),this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}readRenderer(e,t,r){var n,o,s;const i=(n=t.drawingInfo)==null?void 0:n.renderer;return(o=i==null?void 0:i.authoringInfo)!=null&&o.isAutoGenerated?null:i?gU(i)?null:(s=E1(i,t,r))!=null?s:void 0:t.defaultSymbol?t.types&&t.types.length?new yx({defaultSymbol:aI(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map(l=>({id:l.id,symbol:aI(l.symbol,l,r)}))}):new r0({symbol:aI(t.defaultSymbol,t,r)}):null}readSymbol(e,t,r){var n,o,s;const i=(n=t.drawingInfo)==null?void 0:n.renderer;return(o=i==null?void 0:i.authoringInfo)!=null&&o.isAutoGenerated?null:i&&gU(i)?(s=E1(i,t,r))==null?void 0:s.symbol:null}writeSymbol(e,t,r,i){var o,s;const n=(s=(o=this.renderer)==null?void 0:o.authoringInfo)==null?void 0:s.isAutoGenerated;if(!this.renderer||n){const l=new r0({symbol:e});t.drawingInfo={renderer:l.write({},i)}}}writeFields(e,t,r){const i=e.filter(n=>n.statisticType!=="avg_angle").map(n=>n.toJSON());Wo(r,i,t)}readFields(e,t,r){return e.filter(i=>!i.isAutoGenerated).map(i=>wg.fromJSON(i))}clone(){return new K5({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:Ge(this.labelingInfo),labelsVisible:this.labelsVisible,fields:Ge(this.fields),renderer:Ge(this.renderer),symbol:Ge(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:Ge(this.popupTemplate)})}};d([f({type:["cluster"],readOnly:!0,json:{write:!0}})],Zn.prototype,"type",void 0),d([f({type:Number,cast:e=>e==="auto"?e:oi(e),json:{write:!0}})],Zn.prototype,"clusterRadius",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Zn.prototype,"clusterMinSize",void 0),d([f({type:Number,cast:oi,json:{write:!0}})],Zn.prototype,"clusterMaxSize",void 0),d([f(DT)],Zn.prototype,"popupEnabled",void 0),d([f({type:S0,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Zn.prototype,"popupTemplate",void 0),d([f({types:vx,json:{write:{target:"drawingInfo.renderer"}}})],Zn.prototype,"renderer",void 0),d([Tt("renderer",["drawingInfo.renderer"])],Zn.prototype,"readRenderer",null),d([f({types:QYe})],Zn.prototype,"symbol",void 0),d([Tt("symbol",["drawingInfo.renderer"])],Zn.prototype,"readSymbol",null),d([zt("symbol")],Zn.prototype,"writeSymbol",null),d([f({type:[wx],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],Zn.prototype,"labelingInfo",void 0),d([f(ZN)],Zn.prototype,"labelsVisible",void 0),d([f({type:[wg],json:{write:!0}})],Zn.prototype,"fields",void 0),d([zt("fields")],Zn.prototype,"writeFields",null),d([Tt("fields")],Zn.prototype,"readFields",null),Zn=K5=d([se(Jst)],Zn);const poe=Zn;var Z5;let Rk=Z5=class extends bh{constructor(e){super(e),this.type="selection"}clone(){return new Z5}};d([f({type:["selection"]})],Rk.prototype,"type",void 0),Rk=Z5=d([se("esri.layers.support.FeatureReductionSelection")],Rk);const yU=Rk,vU={key:"type",base:bh,typeMap:{cluster:poe,binning:doe}},Xst={types:{key:"type",base:bh,typeMap:{selection:yU,cluster:poe,binning:doe}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:vU},"portal-item":{types:vU},"web-scene":{types:{key:"type",base:bh,typeMap:{selection:yU}}}}}},Wg={Base64:0,Hex:1,String:2,Raw:3},wv=8,hoe=(1<<wv)-1;function dh(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function elt(e){const t=[];for(let r=0,i=e.length*wv;r<i;r+=wv)t[r>>5]|=(e.charCodeAt(r/wv)&hoe)<<r%32;return t}function tlt(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=wv)t.push(String.fromCharCode(e[r>>5]>>>r%32&hoe));return t.join("")}function rlt(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}function ilt(e){const t="=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[];for(let n=0,o=4*e.length;n<o;n+=3){const s=(e[n>>2]>>n%4*8&255)<<16|(e[n+1>>2]>>(n+1)%4*8&255)<<8|e[n+2>>2]>>(n+2)%4*8&255;for(let l=0;l<4;l++)8*n+6*l>32*e.length?i.push(t):i.push(r.charAt(s>>6*(3-l)&63))}return i.join("")}function nlt(e,t){return e<<t|e>>>32-t}function NT(e,t,r,i,n,o){return dh(nlt(dh(dh(t,e),dh(i,o)),n),r)}function $o(e,t,r,i,n,o,s){return NT(t&r|~t&i,e,t,n,o,s)}function Oo(e,t,r,i,n,o,s){return NT(t&i|r&~i,e,t,n,o,s)}function Lo(e,t,r,i,n,o,s){return NT(t^r^i,e,t,n,o,s)}function Ro(e,t,r,i,n,o,s){return NT(r^(t|~i),e,t,n,o,s)}function olt(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,o=271733878;for(let s=0;s<e.length;s+=16){const l=r,a=i,c=n,u=o;r=$o(r,i,n,o,e[s+0],7,-680876936),o=$o(o,r,i,n,e[s+1],12,-389564586),n=$o(n,o,r,i,e[s+2],17,606105819),i=$o(i,n,o,r,e[s+3],22,-1044525330),r=$o(r,i,n,o,e[s+4],7,-176418897),o=$o(o,r,i,n,e[s+5],12,1200080426),n=$o(n,o,r,i,e[s+6],17,-1473231341),i=$o(i,n,o,r,e[s+7],22,-45705983),r=$o(r,i,n,o,e[s+8],7,1770035416),o=$o(o,r,i,n,e[s+9],12,-1958414417),n=$o(n,o,r,i,e[s+10],17,-42063),i=$o(i,n,o,r,e[s+11],22,-1990404162),r=$o(r,i,n,o,e[s+12],7,1804603682),o=$o(o,r,i,n,e[s+13],12,-40341101),n=$o(n,o,r,i,e[s+14],17,-1502002290),i=$o(i,n,o,r,e[s+15],22,1236535329),r=Oo(r,i,n,o,e[s+1],5,-165796510),o=Oo(o,r,i,n,e[s+6],9,-1069501632),n=Oo(n,o,r,i,e[s+11],14,643717713),i=Oo(i,n,o,r,e[s+0],20,-373897302),r=Oo(r,i,n,o,e[s+5],5,-701558691),o=Oo(o,r,i,n,e[s+10],9,38016083),n=Oo(n,o,r,i,e[s+15],14,-660478335),i=Oo(i,n,o,r,e[s+4],20,-405537848),r=Oo(r,i,n,o,e[s+9],5,568446438),o=Oo(o,r,i,n,e[s+14],9,-1019803690),n=Oo(n,o,r,i,e[s+3],14,-187363961),i=Oo(i,n,o,r,e[s+8],20,1163531501),r=Oo(r,i,n,o,e[s+13],5,-1444681467),o=Oo(o,r,i,n,e[s+2],9,-51403784),n=Oo(n,o,r,i,e[s+7],14,1735328473),i=Oo(i,n,o,r,e[s+12],20,-1926607734),r=Lo(r,i,n,o,e[s+5],4,-378558),o=Lo(o,r,i,n,e[s+8],11,-2022574463),n=Lo(n,o,r,i,e[s+11],16,1839030562),i=Lo(i,n,o,r,e[s+14],23,-35309556),r=Lo(r,i,n,o,e[s+1],4,-1530992060),o=Lo(o,r,i,n,e[s+4],11,1272893353),n=Lo(n,o,r,i,e[s+7],16,-155497632),i=Lo(i,n,o,r,e[s+10],23,-1094730640),r=Lo(r,i,n,o,e[s+13],4,681279174),o=Lo(o,r,i,n,e[s+0],11,-358537222),n=Lo(n,o,r,i,e[s+3],16,-722521979),i=Lo(i,n,o,r,e[s+6],23,76029189),r=Lo(r,i,n,o,e[s+9],4,-640364487),o=Lo(o,r,i,n,e[s+12],11,-421815835),n=Lo(n,o,r,i,e[s+15],16,530742520),i=Lo(i,n,o,r,e[s+2],23,-995338651),r=Ro(r,i,n,o,e[s+0],6,-198630844),o=Ro(o,r,i,n,e[s+7],10,1126891415),n=Ro(n,o,r,i,e[s+14],15,-1416354905),i=Ro(i,n,o,r,e[s+5],21,-57434055),r=Ro(r,i,n,o,e[s+12],6,1700485571),o=Ro(o,r,i,n,e[s+3],10,-1894986606),n=Ro(n,o,r,i,e[s+10],15,-1051523),i=Ro(i,n,o,r,e[s+1],21,-2054922799),r=Ro(r,i,n,o,e[s+8],6,1873313359),o=Ro(o,r,i,n,e[s+15],10,-30611744),n=Ro(n,o,r,i,e[s+6],15,-1560198380),i=Ro(i,n,o,r,e[s+13],21,1309151649),r=Ro(r,i,n,o,e[s+4],6,-145523070),o=Ro(o,r,i,n,e[s+11],10,-1120210379),n=Ro(n,o,r,i,e[s+2],15,718787259),i=Ro(i,n,o,r,e[s+9],21,-343485551),r=dh(r,l),i=dh(i,a),n=dh(n,c),o=dh(o,u)}return[r,i,n,o]}function foe(e,t=Wg.Hex){const r=t||Wg.Base64,i=olt(elt(e),e.length*wv);switch(r){case Wg.Raw:return i;case Wg.Hex:return rlt(i);case Wg.String:return tlt(i);case Wg.Base64:return ilt(i)}}var Q5;let w_=Q5=class extends OT{writeLevels(e,t,r){for(const i in e){const n=this.levels[i];return void(t.stops=n)}}clone(){return new Q5({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:uh(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:uh(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone(),levels:Ge(this.levels)})}};d([f()],w_.prototype,"levels",void 0),d([zt("levels")],w_.prototype,"writeLevels",null),w_=Q5=d([se("esri.views.2d.engine.LevelDependentSizeVariable")],w_);const slt=ft.getLogger("esri.views.2d.layers.support.clusterUtils");at.add("esri-cluster-arcade-enabled",!0);const llt=at("esri-cluster-arcade-enabled"),alt=(e,t,r,i,n)=>{const o=t.clone();if(!ult(o))return o;if(o.authoringInfo||(o.authoringInfo=new DN),o.authoringInfo.isAutoGenerated=!0,"visualVariables"in o){const s=(o.visualVariables||[]).filter(a=>a.valueExpression!=="$view.scale"),l=moe(s);s.forEach(a=>{a.type==="rotation"?a.field?a.field=pf(e,a.field,"avg_angle","number"):a.valueExpression&&(a.field=Eb(e,a.valueExpression,"avg_angle","number"),a.valueExpression=null):a.normalizationField?(a.field=pf(e,a.field,"avg_norm","number",a.normalizationField),a.normalizationField=null):a.field?a.field=pf(e,a.field,"avg","number"):a.valueExpression&&(a.field=Eb(e,a.valueExpression,"avg","number"),a.valueExpression=null)}),et(l)&&!clt(s)&&n&&(s.push(goe(r,i)),o.dynamicClusterSize=!0),o.visualVariables=s}switch(o.type){case"simple":break;case"pie-chart":for(const s of o.attributes)s.field?s.field=pf(e,s.field,"sum","number"):s.valueExpression&&(s.field=Eb(e,s.valueExpression,"sum","number"),s.valueExpression=null);break;case"unique-value":o.field?o.field=pf(e,o.field,"mode","string"):o.valueExpression&&(o.field=Eb(e,o.valueExpression,"mode","string"),o.valueExpression=null);break;case"class-breaks":o.normalizationField?(o.field=pf(e,o.field,"avg_norm","number",o.normalizationField),o.normalizationField=null):o.field?o.field=pf(e,o.field,"avg","number"):o.valueExpression&&(o.field=Eb(e,o.valueExpression,"avg","number"),o.valueExpression=null)}return o},moe=e=>{for(const t of e)if(t.type==="size")return t;return null};function avt(e,t,r){const i=e.clone();let n=!1;if("visualVariables"in i){const o=(i.visualVariables||[]).filter(l=>l.valueExpression!=="$view.scale"),s=moe(o);et(s)&&(i.visualVariables||(i.visualVariables=[]),i.visualVariables.push(goe(t,r)),i.dynamicClusterSize=!0,n=!0)}return{renderer:i,didInject:n}}const clt=e=>{for(const t of e)if(t.field==="cluster_count")return!0;return!1},goe=(e,t)=>{const r=[new by({value:0,size:0}),new by({value:1})];if(et(t))return new OT({field:"cluster_count",stops:[...r,new by({value:2,size:0})]});const i=Object.keys(t).reduce((n,o)=>({...n,[o]:[...r,new by({value:Math.max(2,t[o].minValue),size:e.clusterMinSize}),new by({value:Math.max(3,t[o].maxValue),size:e.clusterMaxSize})]}),{});return new w_({field:"cluster_count",levels:i})},ult=e=>{const t=r=>slt.error(new ze("Unsupported-renderer",r,{renderer:e}));switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const r=e.normalizationType;if(r!=="field")return t(`FeatureReductionCluster does not support a normalizationType of ${r}`),!1;break}case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!llt){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(r=>!(!("valueExpression"in r)||!r.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function dlt(e,t,r){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const i=r,n="field",o=t.toLowerCase()+",norm:"+n+","+i.toLowerCase();return"cluster_avg_"+foe(o)}}}function Eb(e,t,r,i){const n=foe(t),o=r==="mode"?`cluster_type_${n}`:r==="sum"?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(s=>s.name===o)||e.push(new wg({name:o,isAutoGenerated:!0,onStatisticExpression:new XN({expression:t,returnType:i}),statisticType:r})),o}function pf(e,t,r,i,n){if(t==="cluster_count"||e.some(s=>s.name===t))return t;const o=dlt(r,t,n);return e.some(s=>s.name===o)||(r==="avg_norm"?e.push(new wg({name:o,isAutoGenerated:!0,onStatisticExpression:new XN({expression:`$feature.${t} / $feature.${n}`,returnType:i}),statisticType:"avg"})):e.push(new wg({name:o,isAutoGenerated:!0,onStatisticField:t,statisticType:r}))),o}const plt=e=>{let t=class extends e{constructor(...r){super(...r),this.own(this.watch("renderer",()=>{if(this.featureReduction){const i=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",i)}},!0))}set featureReduction(r){const i=this._normalizeFeatureReduction(r);this._set("featureReduction",i)}set renderer(r){}_normalizeFeatureReduction(r){var l,a;if((r==null?void 0:r.type)!=="cluster")return r;const i=r.clone(),n=[new wg({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],o=((l=i.fields)!=null?l:[]).filter(c=>!c.isAutoGenerated);if(r.renderer&&!((a=r.renderer.authoringInfo)!=null&&a.isAutoGenerated))return i.fields=[...n,...o],i;if(r.symbol)return i.fields=[...n,...o],i.renderer=null,i;if(!this.renderer)return r;const s=alt(n,this.renderer,r,null,!1);return i.fields=[...n,...o],i.renderer=s,i}};return d([f(Xst)],t.prototype,"featureReduction",null),t=d([se("esri.layers.mixins.FeatureReductionLayer")],t),t},hlt={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,OrientedImageryLayer:!0}},FT=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(r,i,n,o){(o&&o.layerContainerType==="ground"||r&&AUe(this,n,{},o))&&(i[n]=r)}writeOperationalLayerType(r,i,n,o){!r||o&&o.layerContainerType==="tables"||(i.layerType=r)}writeTitle(r,i){i.title=r!=null?r:"Layer"}read(r,i){i&&(i.layer=this),SUe(this,r,n=>super.read(r,n),i)}write(r,i){var s,l;if(i!=null&&i.origin){const a=`${i.origin}/${i.layerContainerType||"operational-layers"}`,c=hlt[a];let u=c&&c[this.operationalLayerType];if(this.operationalLayerType==="ArcGISTiledElevationServiceLayer"&&a==="web-scene/operational-layers"&&(u=!1),this.operationalLayerType==="ArcGISDimensionLayer"&&a==="web-map/operational-layers"&&(u=!1),!u)return(s=i.messages)==null||s.push(new ze("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${a}'`,{layer:this})),null}const n=super.write(r,{...i,layer:this}),o=!!i&&!!i.messages&&!!i.messages.filter(a=>a instanceof ze&&a.name==="web-document-write:property-required").length;return nT(n==null?void 0:n.url)?((l=i==null?void 0:i.messages)==null||l.push(new ze("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:n}beforeSave(){}};return d([f({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),d([f(eoe)],t.prototype,"listMode",void 0),d([zt("listMode")],t.prototype,"writeListMode",null),d([f({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),d([zt("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),d([f(Lk)],t.prototype,"opacity",void 0),d([f({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),d([zt("title"),zt(["web-scene"],"title")],t.prototype,"writeTitle",null),d([f({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=d([se("esri.layers.mixins.OperationalLayer")],t),t};var J5;const cI=new Yr({asc:"ascending",desc:"descending"});let Ay=J5=class extends xt{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new J5({field:this.field,valueExpression:this.valueExpression,order:this.order})}};d([f({type:String,json:{write:!0}})],Ay.prototype,"field",void 0),d([f({type:String,json:{write:!0}})],Ay.prototype,"valueExpression",void 0),d([f({type:cI.apiValues,json:{read:cI.read,write:cI.write}})],Ay.prototype,"order",void 0),Ay=J5=d([se("esri.layers.support.OrderByInfo")],Ay);const yoe=Ay;function flt(e,t,r){if(!e)return null;const i=e.find(o=>!!o.field);if(!i)return null;const n=new yoe;return n.read(i,r),[n]}function mlt(e,t,r,i){const n=e.find(o=>!!o.field);n&&Wo(r,[n.toJSON()],t)}const glt=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return d([f({type:[yoe],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:flt},write:{target:"layerDefinition.orderBy",writer:mlt}}})],t.prototype,"orderBy",void 0),t=d([se("esri.layers.mixins.OrderedLayer")],t),t};let Op=class extends rr{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){ue(e)&&_l(e)?ft.getLogger(this.declaredClass).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const r=this.url;if(et(r))throw new ze("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal._request(r,{responseType:e,query:{token:this.portalItem.apiKey},signal:cJ(t,"signal")})}async update(e,t){return(await ut(()=>import("./resourceUtils.60052bdf.js"),[])).addOrUpdateResource(this,"update",e,t)}hasPath(){return ue(this.path)}_normalizePath(e,t){return et(e)?e:(e=e.replace(/^\/+/,""),ue(t)&&_l(e)&&(e=ND(e,t.itemUrl)),e.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};d([f()],Op.prototype,"portalItem",void 0),d([f({type:String,value:null})],Op.prototype,"path",null),d([Qr("path")],Op.prototype,"_castPath",null),d([f({type:String,readOnly:!0})],Op.prototype,"url",null),d([f({type:String,readOnly:!0})],Op.prototype,"itemRelativeUrl",null),Op=d([se("esri.portal.PortalItemResource")],Op);const ylt=Op;let x_=class extends rr{constructor(e){super(e),this.created=null,this.rating=null}};d([f()],x_.prototype,"created",void 0),d([f()],x_.prototype,"rating",void 0),x_=d([se("esri.portal.PortalRating")],x_);const uI=x_;var My;const vlt=new Set(["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","GeoJson","CSV","KML","WFS","WMTS","WMS","Feed"]),blt=new Set(["KML","GeoJson","CSV"]);let Br=My=class extends nx(uu){constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}static from(e){return Jw(My,e)}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let r=e;return e==="Feature Service"||e==="Feature Collection"?r=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":e==="Image Service"?r=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":e==="Scene Service"?r="Scene Layer":e==="Video Service"?r="Video Layer":e==="Scene Package"?r="Scene Layer Package":e==="Stream Service"?r="Feature Layer":e==="Geoprocessing Service"&&this.portal&&this.portal.isPortal?r=t.includes("Web Tool")?"Tool":"Geoprocessing Service":e==="Geocoding Service"?r="Locator":e==="Geoenrichment Service"?r="GeoEnrichment Service":e==="Microsoft Powerpoint"?r="Microsoft PowerPoint":e==="GeoJson"?r="GeoJSON":e==="Globe Service"?r="Globe Layer":e==="Vector Tile Service"?r="Tile Layer":e==="netCDF"?r="NetCDF":e==="Map Service"?r=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e&&e.toLowerCase().includes("add in")?r=e.replace(/(add in)/gi,"Add-In"):e==="datastore catalog service"?r="Big Data File Share":e==="Compact Tile Package"?r="Tile Package (tpkx)":e==="OGCFeatureServer"?r="OGC Feature Layer":e==="web mapping application"&&t.includes("configurableApp")&&(r="Instant App"),r}readExtent(e){return e&&e.length?new li(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[],r="esri/images/portal/",i="16";let n,o=!1,s=!1,l=!1,a=!1,c=!1,u=!1;return e.indexOf("service")>0||e==="feature collection"||e==="kml"||e==="wms"||e==="wmts"||e==="wfs"?(o=t.includes("Hosted Service"),e==="feature service"||e==="feature collection"||e==="kml"||e==="wfs"?(s=t.includes("Table"),l=t.includes("Route Layer"),a=t.includes("Markup"),c=t.includes("Spatiotemporal"),u=t.includes("UtilityNetwork"),n=c&&s?"spatiotemporaltable":s?"table":l?"routelayer":a?"markup":c?"spatiotemporal":o?"featureshosted":u?"utilitynetwork":"features"):n=e==="map service"||e==="wms"||e==="wmts"?o||t.includes("Tiled")||e==="wmts"?"maptiles":"mapimages":e==="scene service"?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":e==="image service"?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":e==="stream service"?"streamlayer":e==="video service"?"mediaservice":e==="vector tile service"?"vectortile":e==="datastore catalog service"?"datastorecollection":e==="geocoding service"?"geocodeservice":e==="geoprocessing service"?t.includes("Web Tool")&&this.portal&&this.portal.isPortal?"tool":"layers":e==="geodata service"?"geodataservice":"layers"):n=e==="web map"||e==="cityengine web scene"?"maps":e==="web scene"?t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":e==="web mapping application"&&t.includes("configurableApp")?"instantapps":e==="web mapping application"||e==="mobile application"||e==="application"||e==="operation view"||e==="desktop application"?"apps":e==="map document"||e==="map package"||e==="published map"||e==="scene document"||e==="globe document"||e==="basemap package"||e==="mobile basemap package"||e==="mobile map package"||e==="project package"||e==="project template"||e==="pro map"||e==="layout"||e==="layer"&&t.includes("ArcGIS Pro")||e==="explorer map"&&t.indexOf("Explorer Document")?"mapsgray":e==="service definition"||e==="csv"||e==="shapefile"||e==="cad drawing"||e==="geojson"||e==="360 vr experience"||e==="netcdf"||e==="administrative report"?"datafiles":e==="explorer add in"||e==="desktop add in"||e==="windows viewer add in"||e==="windows viewer configuration"?"appsgray":e==="arcgis pro add in"||e==="arcgis pro configuration"?"addindesktop":e==="rule package"||e==="file geodatabase"||e==="sqlite geodatabase"||e==="csv collection"||e==="kml collection"||e==="windows mobile package"||e==="map template"||e==="desktop application template"||e==="gml"||e==="arcpad package"||e==="code sample"||e==="form"||e==="document link"||e==="earth configuration"||e==="operations dashboard add in"||e==="rules package"||e==="image"||e==="workflow manager package"||e==="explorer map"&&t.includes("Explorer Mapping Application")||t.includes("Document")?"datafilesgray":e==="network analysis service"||e==="geoprocessing service"||e==="geodata service"||e==="geometry service"||e==="geoprocessing package"||e==="locator package"||e==="geoprocessing sample"||e==="workflow manager service"?"toolsgray":e==="layer"||e==="layer package"||e==="explorer layer"?"layersgray":e==="scene package"?"scenepackage":e==="mobile scene package"?"mobilescenepackage":e==="tile package"||e==="compact tile package"?"tilepackage":e==="task file"?"taskfile":e==="report template"?"report-template":e==="statistical data collection"?"statisticaldatacollection":e==="insights workbook"?"workbook":e==="insights model"?"insightsmodel":e==="insights page"?"insightspage":e==="insights theme"?"insightstheme":e==="hub initiative"?"hubinitiative":e==="hubpage"?"hubpage":e==="hub event"?"hubevent":e==="hub site application"?"hubsite":e==="hub project"?"hubproject":e==="relational database connection"?"relationaldatabaseconnection":e==="big data file share"?"datastorecollection":e==="image collection"?"imagecollection":e==="style"?"style":e==="desktop style"?"desktopstyle":e==="dashboard"?"dashboard":e==="raster function template"?"rasterprocessingtemplate":e==="vector tile package"?"vectortilepackage":e==="ortho mapping project"?"orthomappingproject":e==="ortho mapping template"?"orthomappingtemplate":e==="solution"?"solutions":e==="geopackage"?"geopackage":e==="deep learning package"?"deeplearningpackage":e==="real time analytic"?"realtimeanalytics":e==="big data analytic"?"bigdataanalytics":e==="feed"?"feed":e==="excalibur imagery project"?"excaliburimageryproject":e==="notebook"?"notebook":e==="storymap"?"storymap":e==="survey123 add in"?"survey123addin":e==="mission"?"mission":e==="mission report"?"missionreport":e==="quickcapture project"?"quickcaptureproject":e==="pro report"?"proreport":e==="pro report template"?"proreporttemplate":e==="urban model"?"urbanmodel":e==="web experience"?"experiencebuilder":e==="web experience template"?"webexperiencetemplate":e==="experience builder widget"?"experiencebuilderwidget":e==="experience builder widget package"?"experiencebuilderwidgetpackage":e==="workflow"?"workflow":e==="insights script"?"insightsscript":e==="kernel gateway connection"?"kernelgatewayconnection":e==="hub initiative template"?"hubinitiativetemplate":e==="storymap theme"?"storymaptheme":e==="knowledge graph"?"knowledgegraph":e==="native application"?"nativeapp":e==="native application installer"?"nativeappinstaller":e==="link chart"?"linkchart":e==="investigation"?"investigation":e==="ogcfeatureserver"?"features":e==="pro project"?"proproject":e==="insights workbook package"?"insightsworkbookpackage":e==="apache parquet"?"apacheparquet":e==="notebook code snippets"||e==="notebook code snippet library"?"notebookcodesnippets":e==="suitability model"?"suitabilitymodel":e==="esri classifier definition"?"classifierdefinition":e==="esri classification schema"?"classificationschema":e==="insights data engineering workbook"?"dataengineeringworkbook":e==="insights data engineering model"?"dataengineeringmodel":e==="deep learning studio project"?"deeplearningproject":e==="discussion"?"discussion":"maps",n?ui(r+n+i+".png"):null}get isLayer(){return this.type!=null&&vlt.has(this.type)}get itemPageUrl(){var t;const e=(t=this.portal)==null?void 0:t.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){var t;const e=(t=this.portal)==null?void 0:t.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){var r,i;const e=this.itemUrl,t=this.thumbnail;return e&&t&&(i=(r=this.portal)==null?void 0:r._normalizeUrl(`${e}/info/${t}?f=json`))!=null?i:null}get userItemUrl(){const e=this.get("portal.restUrl");if(!e)return null;const t=this.owner||this.get("portal.user.username");return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){var i;const t=(i=this.portal)!=null?i:this.portal=Ws.getDefault(),r=t.load(e).then(()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t._request(this.itemUrl,{signal:ue(e)?e.signal:null,query:{token:this.apiKey}}):{}).then(n=>{this.sourceJSON=n,this.read(n)});return this.addResolvingPromise(r),Promise.resolve(this)}async addRating(e){const t={method:"post",query:{}};return e instanceof uI&&(e=e.rating),e==null||isNaN(e)||typeof e!="number"||(t.query.rating=e),this.portal?(await this.portal._request(this.itemUrl+"/addRating",t),new uI({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:Ge(this.applicationProxies),avgRating:this.avgRating,categories:Ge(this.categories),created:Ge(this.created),culture:this.culture,description:this.description,extent:Ge(this.extent),groupCategories:Ge(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:Ge(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:Ge(this.screenshots),size:this.size,snippet:this.snippet,spatialReference:this.spatialReference,tags:Ge(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:Ge(this.typeKeywords),url:this.url};return this.loaded&&(e.loadStatus="loaded"),new My({sourceJSON:this.sourceJSON}).set(e)}createPostQuery(){const e=this.toJSON();for(const r of["tags","typeKeywords","categories"])e[r]&&(e[r]=e[r].join(", "));const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await Hl(this.portal)._request(this.itemUrl+"/deleteRating",{method:"post"})}fetchData(e="json",t){return Hl(this.portal)._request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await Hl(this.portal)._request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e});return t.rating!=null?(t.created=new Date(t.created),new uI(t)):null}fetchRelatedItems(e,t){return Hl(this.portal)._requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},My)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){var e;return Hl(this.portal)._request((e=this.itemUrl)!=null?e:"",{cacheBust:!0,query:{token:this.apiKey}}).then(t=>(this.sourceJSON=t,this.read(t),this))}update(e){return this.id?this.load().then(()=>Hl(this.portal)._signIn()).then(()=>{const t=e&&e.data,r={method:"post"};r.query=this.createPostQuery();for(const i in r.query)r.query[i]===null&&(r.query[i]="");return r.query.clearEmptyFields=!0,t!=null&&(typeof t=="string"?r.query.text=t:typeof t=="object"&&(r.query.text=JSON.stringify(t))),this.portal._request(`${this.userItemUrl}/update`,r).then(()=>this.reload())}):Promise.reject(new ze("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}updateThumbnail(e){return this.id?this.load().then(()=>this.portal._signIn()).then(()=>{const t=e.thumbnail,r=e.filename,i={method:"post"};if(typeof t=="string")Ag(t)?i.query={data:t}:i.query={url:fl(t)},ue(r)&&(i.query.filename=r);else{const n=new FormData;ue(r)?n.append("file",t,r):n.append("file",t),i.body=n}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,i).then(()=>this.reload())}):Promise.reject(new ze("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){return(await ut(()=>import("./resourceUtils.60052bdf.js"),[])).fetchResources(this,e,t)}async addResource(e,t,r){const i=await ut(()=>import("./resourceUtils.60052bdf.js"),[]);return e.portalItem=this,i.addOrUpdateResource(e,"add",t,r)}async removeResource(e,t){const r=await ut(()=>import("./resourceUtils.60052bdf.js"),[]);if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new ze("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return r.removeResource(this,e,t)}async removeAllResources(e){return(await ut(()=>import("./resourceUtils.60052bdf.js"),[])).removeAllResources(this,e)}resourceFromPath(e){return new ylt({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:Ge(this.categories),created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,licenseInfo:this.licenseInfo,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,spatialReference:this.spatialReference,tags:Ge(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:Ge(this.typeKeywords),url:this.url};return pJ(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new My({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)t==="tags"&&e[t]!==null&&(e[t]=e[t].join(", ")),t==="typeKeywords"&&e[t]!==null&&(e[t]=e[t].join(", ")),t==="extent"&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};d([f({type:["private","shared","org","public"]})],Br.prototype,"access",void 0),d([f()],Br.prototype,"accessInformation",void 0),d([f({type:String})],Br.prototype,"apiKey",void 0),d([f({json:{read:{source:"appProxies"}}})],Br.prototype,"applicationProxies",void 0),d([f()],Br.prototype,"avgRating",void 0),d([f()],Br.prototype,"categories",void 0),d([f({type:Date})],Br.prototype,"created",void 0),d([f()],Br.prototype,"culture",void 0),d([f()],Br.prototype,"description",void 0),d([f({readOnly:!0})],Br.prototype,"displayName",null),d([f({type:li})],Br.prototype,"extent",void 0),d([Tt("extent")],Br.prototype,"readExtent",null),d([f()],Br.prototype,"groupCategories",void 0),d([f({readOnly:!0})],Br.prototype,"iconUrl",null),d([f()],Br.prototype,"id",void 0),d([f({readOnly:!0})],Br.prototype,"isLayer",null),d([f()],Br.prototype,"itemControl",void 0),d([f({readOnly:!0})],Br.prototype,"itemPageUrl",null),d([f({readOnly:!0})],Br.prototype,"itemUrl",null),d([f()],Br.prototype,"licenseInfo",void 0),d([f({type:Date})],Br.prototype,"modified",void 0),d([f()],Br.prototype,"name",void 0),d([f()],Br.prototype,"numComments",void 0),d([f()],Br.prototype,"numRatings",void 0),d([f()],Br.prototype,"numViews",void 0),d([f()],Br.prototype,"owner",void 0),d([f()],Br.prototype,"ownerFolder",void 0),d([f({type:Ws})],Br.prototype,"portal",void 0),d([f()],Br.prototype,"screenshots",void 0),d([f()],Br.prototype,"size",void 0),d([f()],Br.prototype,"snippet",void 0),d([f()],Br.prototype,"sourceJSON",void 0),d([f({type:String})],Br.prototype,"spatialReference",void 0),d([f()],Br.prototype,"tags",void 0),d([f()],Br.prototype,"thumbnail",void 0),d([f({readOnly:!0})],Br.prototype,"thumbnailUrl",null),d([f()],Br.prototype,"title",void 0),d([f()],Br.prototype,"type",void 0),d([f()],Br.prototype,"typeKeywords",void 0),d([f({type:String,json:{read(e,t){var r;if(blt.has(t.type)){const i=(r=this.portal)==null?void 0:r.restUrl;e||(e=i&&this.id?`${i}/content/items/${this.id}/data`:null)}return e}}})],Br.prototype,"url",void 0),d([f({readOnly:!0})],Br.prototype,"userItemUrl",null),Br=My=d([se("esri.portal.PortalItem")],Br);const xE=Br;var voe=Object.freeze(Object.defineProperty({__proto__:null,default:xE},Symbol.toStringTag,{value:"Module"}));const zT=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem=yn(this.portalItem)}set portalItem(r){r!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",r))}readPortalItem(r,i,n){if(i.itemId)return new xE({id:i.itemId,portal:n&&n.portal})}writePortalItem(r,i){r&&r.id&&(i.itemId=r.id)}async loadFromPortal(r,i){if(this.portalItem&&this.portalItem.id)try{const n=await ut(()=>import("./layersLoader.1acfd9a9.js").then(function(o){return o.l}),["assets/layersLoader.1acfd9a9.js","assets/jsonContext.e9416d90.js","assets/portalItemUtils.6b2af26d.js"]);return vn(i),await n.load({instance:this,supportedTypes:r.supportedTypes,validateItem:r.validateItem,supportsData:r.supportsData,layerModuleTypeMap:r.layerModuleTypeMap},i)}catch(n){throw us(n)||ft.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})
- ${n}`),n}}async finishLoadEditablePortalLayer(r){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(r).catch(i=>(Eg(i),!0)))}async _fetchUserHasEditingPrivileges(r){const i=this.url?dn==null?void 0:dn.findCredential(this.url):null;if(!i)return!0;const n=Y2.credential===i?Y2.user:await this._fetchEditingUser(r);return Y2.credential=i,Y2.user=n,et(n)||n.privileges==null||n.privileges.includes("features:user:edit")}async _fetchEditingUser(r){var u,p,h;const i=(p=(u=this.portalItem)==null?void 0:u.portal)==null?void 0:p.user;if(i)return i;const n=dn.findServerInfo((h=this.url)!=null?h:"");if(!(n!=null&&n.owningSystemUrl))return null;const o=`${n.owningSystemUrl}/sharing/rest`,s=Ws.getDefault();if(s&&s.loaded&&Xl(s.restUrl)===Xl(o))return s.user;const l=`${o}/community/self`,a=ue(r)?r.signal:null,c=await bT(ri(l,{authMode:"no-prompt",query:{f:"json"},signal:a}));return c.ok?BD.fromJSON(c.value.data):null}read(r,i){i&&(i.layer=this),super.read(r,i)}write(r,i){const n=i&&i.portal,o=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||Ws.getDefault());return n&&o&&!Zee(o.restUrl,n.restUrl)?(i.messages&&i.messages.push(new ze("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(r,{...i,layer:this})}};return d([f({type:xE})],t.prototype,"portalItem",null),d([Tt("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),d([zt("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),d([f({clonable:!1})],t.prototype,"resourceReferences",void 0),d([f({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=d([se("esri.layers.mixins.PortalLayer")],t),t},Y2={credential:null,user:null};let C_=class extends rr{constructor(){super(...arguments),this.updating=!1,this.status="unknown"}};d([f()],C_.prototype,"updating",void 0),d([f()],C_.prototype,"status",void 0),C_=d([se("esri.layers.support.PublishingInfo")],C_);const _lt=C_,wlt="esri.layers.mixins.PublishableLayer",xlt=e=>{let t=class extends e{get publishingInfo(){if(this.destroyed)return null;const r=this._get("publishingInfo");if(r)return r;const i=new _lt;return this._checkPublishingStatus(i),i}_checkPublishingStatus(r){let o=0;const s=async a=>{let c;r.updating=!0;try{c=await this.fetchPublishingStatus()}catch{c="unavailable"}c!=="published"&&c!=="unavailable"||(r.status==="publishing"&&this.refresh(),l.remove()),r.status=c,r.updating=!1,l.removed||(o=setTimeout(s,a,a+125))},l={removed:!1,remove(){this.removed=!0,clearTimeout(o)}};this.when().catch(()=>l.remove()),s(250),this.own(l)}};return d([f({readOnly:!0,clonable:!1})],t.prototype,"publishingInfo",null),t=d([se(wlt)],t),t},T1=new dr,hw=new WeakMap;function Clt(e){boe(e)&&T1.push(e)}function klt(e){boe(e)&&T1.includes(e)&&T1.remove(e)}function boe(e){return e!=null&&typeof e=="object"&&"refreshInterval"in e&&"refresh"in e}function _oe(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:_oe(t,e%t):0}let dI=0,K2=0;function Slt(){var t;const e=Date.now();for(const r of T1)r.refreshInterval&&e-((t=hw.get(r))!=null?t:0)+5>=6e4*r.refreshInterval&&(hw.set(r,e),r.refresh(e))}eX(()=>{const e=Date.now();let t=0;for(const r of T1)t=_oe(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?hw.get(r)||hw.set(r,e):hw.delete(r);if(t!==K2){if(K2=t,clearInterval(dI),K2===0)return void(dI=0);dI=setInterval(Slt,K2)}});const xx=e=>{let t=class extends e{constructor(...r){super(...r),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=YJ(()=>this.hasDataChanged()),this.when().then(()=>{Clt(this)},()=>{})}destroy(){klt(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(r=Date.now()){av(this._debounceHasDataChanged()).then(i=>{i&&this._set("refreshTimestamp",r),this.emit("refresh",{dataChanged:i})},i=>{ft.getLogger(this.declaredClass).error(i),this.emit("refresh",{dataChanged:!1,error:i})})}async hasDataChanged(){return!0}};return d([f({type:Number,cast:r=>r>=.1?r:r<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),d([f({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),d([f()],t.prototype,"refreshParameters",null),t=d([se("esri.layers.mixins.RefreshableLayer")],t),t},Cx=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const r={minScale:this.minScale,maxScale:this.maxScale},i=this.parent;i&&"effectiveScaleRange"in i&&Elt(r,i.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===r.minScale&&n.maxScale===r.maxScale?n:r}};return d([f({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),d([f({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),d([f({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=d([se("esri.layers.mixins.ScaleRangeLayer")],t),t};function Elt(e,t){return e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale,e}const Rm=Ao()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0});var X5;let k_=X5=class extends xt{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return sit(this.value,this.unit,"milliseconds")}clone(){return new X5({value:this.value,unit:this.unit})}};d([f({type:Number,json:{write:!0},nonNullable:!0})],k_.prototype,"value",void 0),d([f({type:Rm.apiValues,json:{type:Rm.jsonValues,read:Rm.read,write:Rm.write},nonNullable:!0})],k_.prototype,"unit",void 0),k_=X5=d([se("esri.TimeInterval")],k_);const A1=k_;var eL;let Iy=eL=class extends xt{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return t.respectsDaylightSaving!==void 0?t.respectsDaylightSaving:t.respectDaylightSaving!==void 0&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new eL({respectsDaylightSaving:e,timezone:t})}};d([f({type:Boolean,json:{write:!0}})],Iy.prototype,"respectsDaylightSaving",void 0),d([Tt("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],Iy.prototype,"readRespectsDaylightSaving",null),d([f({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],Iy.prototype,"timezone",void 0),Iy=eL=d([se("esri.layers.support.TimeReference")],Iy);const Tlt=Iy;var tL;let zo=tL=class extends xt{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||t.timeExtent.length!==2)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new vc({start:r,end:i})}writeFullTimeExtent(e,t){e&&ue(e.start)&&ue(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new A1({value:t.timeInterval,unit:Rm.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new A1({value:t.defaultTimeInterval,unit:Rm.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:i,startField:n,timeReference:o,fullTimeExtent:s,trackIdField:l,useTime:a}=this;return new tL({cumulative:e,endField:t,hasLiveData:r,interval:i,startField:n,timeReference:Ge(o),fullTimeExtent:Ge(s),trackIdField:l,useTime:a})}};d([f({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],zo.prototype,"cumulative",void 0),d([f({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],zo.prototype,"endField",void 0),d([f({type:vc,json:{write:{enabled:!0,allowNull:!0}}})],zo.prototype,"fullTimeExtent",void 0),d([Tt("fullTimeExtent",["timeExtent"])],zo.prototype,"readFullTimeExtent",null),d([zt("fullTimeExtent")],zo.prototype,"writeFullTimeExtent",null),d([f({type:Boolean,json:{write:!0}})],zo.prototype,"hasLiveData",void 0),d([f({type:A1,json:{write:{enabled:!0,allowNull:!0}}})],zo.prototype,"interval",void 0),d([Tt("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],zo.prototype,"readInterval",null),d([zt("interval")],zo.prototype,"writeInterval",null),d([f({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],zo.prototype,"startField",void 0),d([f({type:Tlt,json:{write:{enabled:!0,allowNull:!0}}})],zo.prototype,"timeReference",void 0),d([f({type:String,json:{write:{enabled:!0,allowNull:!0}}})],zo.prototype,"trackIdField",void 0),d([f({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],zo.prototype,"useTime",void 0),zo=tL=d([se("esri.layers.support.TimeInfo")],zo);const woe=zo,xoe=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(r,i){const n=i.timeInfo.exportOptions;if(!n)return null;const o=n.timeOffset,s=Rm.fromJSON(n.timeOffsetUnits);return o&&s?new A1({value:o,unit:s}):null}set timeInfo(r){LX(r,this.fieldsIndex),this._set("timeInfo",r)}};return d([f({type:vc,json:{write:!1}})],t.prototype,"timeExtent",void 0),d([f({type:A1})],t.prototype,"timeOffset",void 0),d([Tt("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),d([f({value:null,type:woe,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),d([f({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=d([se("esri.layers.mixins.TemporalLayer")],t),t},bU=new Yr({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let Lp=class extends pn(xt){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};d([f({json:{write:!0}})],Lp.prototype,"name",void 0),d([f({json:{write:!0}})],Lp.prototype,"description",void 0),d([f({json:{read:bU.read,write:bU.write}})],Lp.prototype,"drawingTool",void 0),d([f({json:{write:!0}})],Lp.prototype,"prototype",void 0),d([f({json:{write:!0}})],Lp.prototype,"thumbnail",void 0),Lp=d([se("esri.layers.support.FeatureTemplate")],Lp);const iF=Lp;let Bu=class extends pn(xt){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=TN(e[r]);return t}writeDomains(e,t){var i;const r={};for(const n of Object.keys(e))e[n]&&(r[n]=(i=e[n])==null?void 0:i.toJSON());t.domains=r}};d([f({json:{write:!0}})],Bu.prototype,"id",void 0),d([f({json:{write:!0}})],Bu.prototype,"name",void 0),d([f({json:{write:!0}})],Bu.prototype,"domains",void 0),d([Tt("domains")],Bu.prototype,"readDomains",null),d([zt("domains")],Bu.prototype,"writeDomains",null),d([f({type:[iF],json:{write:!0}})],Bu.prototype,"templates",void 0),Bu=d([se("esri.layers.support.FeatureType")],Bu);const nF=Bu;function Alt(e){return e.type==="date"||e.type==="esriFieldTypeDate"}function _U(e){return e.type==="oid"||e.type==="esriFieldTypeOID"}function wU(e){return e.type==="global-id"||e.type==="esriFieldTypeGlobalID"}class Coe{constructor(t=[]){if(this.fields=[],this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!t)return;this.fields=t;const r=[];for(const i of t){const n=i&&i.name;if(n){const o=xU(n),s=CU(n);this._fieldsMap.set(n,i),this._fieldsMap.set(o,i),this._normalizedFieldsMap.set(s,i),r.push(o),Alt(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):gD(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),_U(i)||wU(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}r.sort(),this.uid=r.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const t of this.fields)_U(t)||wU(t)||t.nullable||ZWe(t)!==void 0||this._requiredFields.push(t)}return this._requiredFields}has(t){return this.get(t)!=null}get(t){var i;if(!t)return;let r=this._fieldsMap.get(t);return r||(r=(i=this._fieldsMap.get(xU(t)))!=null?i:this._normalizedFieldsMap.get(CU(t)),r&&this._fieldsMap.set(t,r),r)}isDateField(t){return this._dateFieldsSet.has(this.get(t))}isNumericField(t){return this._numericFieldsSet.has(this.get(t))}normalizeFieldName(t){var i;const r=this.get(t);if(r)return(i=r.name)!=null?i:void 0}}function xU(e){return e.trim().toLowerCase()}function CU(e){return VWe(e).toLowerCase()}function Mlt(){return{fields:{type:[AT],value:null},fieldsIndex:{readOnly:!0,get(){return new Coe(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){var t;const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const r of e)((t=this.fieldsIndex)==null?void 0:t.has(r))||ft.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${r} found in outFields`,{layer:this,outFields:e});return RX(this.fieldsIndex,e)}}}}const pI=ft.getLogger("esri.layers.support.labelingInfo"),Ilt=/\[([^\[\]]+)\]/gi;function kU(e,t,r){return e?e.map(i=>{const n=new wx;if(n.read(i,r),n.labelExpression){const o=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;n.labelExpression=n.labelExpression.replace(Ilt,(s,l)=>`[${Plt(l,o)}]`)}return n}):null}function Plt(e,t){if(!t)return e;const r=e.toLowerCase();for(let i=0;i<t.length;i++){const n=t[i].name;if(n.toLowerCase()===r)return n}return e}const $lt={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function Olt(e,t){const r=Ge(e);return r.some(i=>Llt(i,t))?[]:r}function Llt(e,t){const r=e.labelPlacement,i=$lt[t];if(!e.symbol)return pI.warn("No ILabelClass symbol specified."),!0;if(!i)return pI.error(new ze("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!i.includes(r)){const n=i[0];r&&pI.warn(`Found invalid label placement type ${r} for ${t}. Defaulting to ${n}`),e.labelPlacement=n}return!1}const Na=[];function koe(e,t){var i,n;if(qN((i=e.url)!=null?i:""))return!0;const{wkid:r}=t;for(const o of Na){if(((n=e.version)!=null?n:0)>=o[0])return!0;if(typeof o[1]=="function"&&(o[1]=o[1]()),o[1].has(r))return!1}return!0}Na.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102901;t<=102955;t++)e.add(t);return e}]),Na.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),Na.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),Na.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),Na.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);for(let t=103696;t<=103698;t++)e.add(t);return e}]),Na.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),Na.push([10.61,()=>new Set([102497])]),Na.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}]),Na.push([10.51,()=>{const e=new Set([7683,7881,7886,7899,8888,9e3]);for(let t=8013;t<=8032;t++)e.add(t);for(let t=9053;t<=9057;t++)e.add(t);for(let t=104017;t<=104018;t++)e.add(t);for(let t=104971;t<=104974;t++)e.add(t);return e}]),Na.push([10.5,()=>{const e=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);for(let t=4087;t<=4088;t++)e.add(t);for(let t=5896;t<=5899;t++)e.add(t);for(let t=7005;t<=7007;t++)e.add(t);for(let t=7057;t<=7070;t++)e.add(t);for(let t=7073;t<=7082;t++)e.add(t);for(let t=7109;t<=7128;t++)e.add(t);for(let t=7844;t<=7859;t++)e.add(t);return e}]);async function Rlt(e,t,r){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(i&&i.type==="unique-value"&&i.styleOrigin){const n=await bT(i.populateFromStyle());if(vn(r),n.ok===!1){const o=n.error;t&&t.messages&&t.messages.push(new cs("renderer:style-reference",`Failed to create unique value renderer from style reference: ${o.message}`,{error:o,context:t})),e.clear("renderer",t==null?void 0:t.origin)}}}const Dlt=["oid","global-id"],Nlt=["oid","global-id","guid"];function Soe({displayField:e,editFieldsInfo:t,fields:r,objectIdField:i,title:n},o){if(!r)return null;const s=Ult({editFieldsInfo:t,fields:r,objectIdField:i},o);if(!s.length)return null;const l=Glt({titleBase:n,fields:r,displayField:e}),a=Hlt();return new S0({title:l,content:a,fieldInfos:s})}const Flt=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],zlt=(e,{editFieldsInfo:t,objectIdField:r,visibleFieldNames:i})=>i?i.has(e.name):!Eoe(e.name,t)&&(!r||e.name!==r)&&!Dlt.includes(e.type)&&!Flt.some(n=>n.test(e.name));function jlt(e,t){const r=e;return t&&(e=e.filter(i=>!t.includes(i.type))),e===r&&(e=e.slice()),e.sort(Vlt),e}function Vlt(e,t){return e.type==="oid"?-1:t.type==="oid"?1:SU(e)?-1:SU(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function Eoe(e,t){if(!e||!t)return!1;const{creationDateField:r,creatorField:i,editDateField:n,editorField:o}=t;return[r&&r.toLowerCase(),i&&i.toLowerCase(),n&&n.toLowerCase(),o&&o.toLowerCase()].includes(e.toLowerCase())}function Blt(e,t){return e.editable&&!Nlt.includes(e.type)&&!Eoe(e.name,t)}function Ult({editFieldsInfo:e,fields:t,objectIdField:r},i){return jlt(t!=null?t:[],(i==null?void 0:i.ignoreFieldTypes)||qlt).map(n=>new sx({fieldName:n.name,isEditable:Blt(n,e),label:n.alias,format:Wlt(n),visible:zlt(n,{editFieldsInfo:e,objectIdField:r,visibleFieldNames:i==null?void 0:i.visibleFieldNames})}))}function Wlt(e){switch(e.type){case"small-integer":case"integer":case"single":return new Hy({digitSeparator:!0,places:0});case"double":return new Hy({digitSeparator:!0,places:2});case"date":return new Hy({dateFormat:"long-month-day-year"});default:return e.type==="string"&&VX(e.name)?new Hy({digitSeparator:!0,places:0}):null}}function Hlt(){return[new Zv,new o1]}function Glt(e){const t=WWe(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r!=null?r:""}function SU(e){return(e.name&&e.name.toLowerCase())==="name"?!0:(e.alias&&e.alias.toLowerCase())==="name"}const qlt=["geometry","blob","raster","guid","xml"],Yo="FeatureLayer",Toe="esri.layers.FeatureLayer",Ylt=ft.getLogger(Toe);function Z2(e,t){return new ze("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function EU(e){return e&&e instanceof dr}const hI=Mlt();function fI(e,t,r){const i=!!(r!=null&&r.writeLayerSchema);return{enabled:i,ignoreOrigin:i}}let ir=class extends Tst(plt(Vot(xlt(Fot(bx(glt(xoe(Cx(xx(YN(FT(zT(V0(KN(HN(pn(Rh))))))))))))))))){constructor(...e){super(...e),this._handles=new hs,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=gr.WGS84,this.subtypeCode=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0}destroy(){var e;(e=this.source)==null||e.destroy(),this._handles=yn(this._handles)}normalizeCtorArgs(e,t){return typeof e=="string"?{url:e,...t}:e}load(e){var i;const t=ue(e)?e.signal:null;if(((i=this.portalItem)==null?void 0:i.loaded)&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(n=>this.initLayerProperties(n))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},e).catch(Eg).then(async()=>{if(this.url&&this.layerId==null&&/FeatureServer|MapServer\/*$/i.test(this.url)){const n=await this._fetchFirstLayerId(t);n!=null&&(this.layerId=n)}if(!this.url&&!this._hasMemorySource())throw new ze("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>this.finishLoadEditablePortalLayer(e));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,toe(e,t,this.url)}get createQueryVersion(){var e;return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),((e=this._get("createQueryVersion"))!=null?e:0)+1}get editingEnabled(){var e;return!(this.loaded&&!((e=this.capabilities)!=null&&e.operations.supportsEditing))&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}readIsTable(e,t){var r;return(t=(r=t==null?void 0:t.layerDefinition)!=null?r:t).type==="Table"||!t.geometryType}writeIsTable(e,t,r,i){i!=null&&i.writeLayerSchema&&Wo(r,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return roe(t.layerDefinition||t)}readObjectIdField(e,t){return ioe(t.layerDefinition||t)}get parsedUrl(){const e=vo(this.url);return e!=null&&(this.dynamicDataSource!=null?e.path=pg(e.path,"dynamicLayer"):this.layerId!=null&&(e.path=pg(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){w9(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){var n,o;const i=(n=(t=t.layerDefinition||t).drawingInfo)==null?void 0:n.renderer;if(i){const s=(o=E1(i,t,r))!=null?o:void 0;return s||Ylt.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),s}if(t.defaultSymbol)return t.types&&t.types.length?new yx({defaultSymbol:mI(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map(s=>({id:s.id,symbol:mI(s.symbol,s,r)}))}):new r0({symbol:mI(t.defaultSymbol,t,r)})}set source(e){const t=this._get("source");t!==e&&(EU(t)&&this._resetMemorySource(t),EU(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof dr?new Ku({layer:this,items:e}):e:null}readSource(e,t){var i;const r=IT.fromJSON(t.featureSet);return new Ku({layer:this,items:(i=r==null?void 0:r.features)!=null?i:[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r&&r.creatorField,n=r&&r.editorField;return e=e&&e.map(o=>iF.fromJSON(o)),this._fixTemplates(e,i),this._fixTemplates(e,n),e}readTitle(e,t){var n,o;const r=(o=(n=t.layerDefinition)==null?void 0:n.name)!=null?o:t.name,i=t.title||t.layerDefinition&&t.layerDefinition.title;if(r){const s=this.portalItem&&this.portalItem.title;if(this.sublayerTitleMode==="item-title")return this.url?Oot(this.url,r):r;let l=r;if(!l&&this.url){const a=Zh(this.url);ue(a)&&(l=a.title)}return l?(this.sublayerTitleMode==="item-title-and-service-name"&&s&&s!==l&&(l=s+" - "+l),GN(l)):void 0}if(this.sublayerTitleMode==="item-title"&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition&&t.layerDefinition.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const i=t.fields.find(n=>n.name.toLowerCase()===r);i&&(r=i.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r&&r.creatorField,n=r&&r.editorField;return e&&e.map(o=>(o=nF.fromJSON(o),this._fixTemplates(o.templates,i),this._fixTemplates(o.templates,n),o))}readVisible(e,t){return t.layerDefinition&&t.layerDefinition.defaultVisibility!=null?!!t.layerDefinition.defaultVisibility:t.visibility!=null?!!t.visibility:void 0}async addAttachment(e,t){return pst(this,e,t,Yo)}async updateAttachment(e,t,r){return hst(this,e,t,r,Yo)}async applyEdits(e,t){return fst(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return Soe(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await K7e(ut(()=>import("./FeatureLayerSource.58a80700.js"),["assets/FeatureLayerSource.58a80700.js","assets/clientSideDefaults.e21714f1.js","assets/QueryEngineCapabilities.78217f95.js","assets/executeForIds.4e97b9d4.js"]),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=kst(this);e.dynamicDataSource=this.dynamicDataSource;const t=ue(this.subtypeCode)?`${this.subtypeField} = ${this.subtypeCode}`:null,r=UN(this.definitionExpression,t);return e.where=r||"1=1",e}async deleteAttachments(e,t){return mst(this,e,t,Yo)}async fetchRecomputedExtents(e){return gst(this,e,Yo)}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(i==null)return null;let n=null;return r==null||r.some(o=>{const{id:s}=o;return s!=null&&(s.toString()===i.toString()&&(n=o),!!n)}),n}getFieldDomain(e,t){const r=t&&t.feature,i=this.getFeatureType(r);if(i){const n=i.domains&&i.domains[e];if(n&&n.type!=="inherited")return n}return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){return yst(this,e,t,Yo)}async queryFeatures(e,t){var n;const r=await this.load(),i=await r.source.queryFeatures((n=ea.from(e))!=null?n:r.createQuery(),t);if(i!=null&&i.features)for(const o of i.features)o.layer=o.sourceLayer=r;return i}async queryObjectIds(e,t){return vst(this,e,t,Yo)}async queryFeatureCount(e,t){return bst(this,e,t,Yo)}async queryExtent(e,t){return _st(this,e,t,Yo)}async queryRelatedFeatures(e,t){return wst(this,e,t,Yo)}async queryRelatedFeaturesCount(e,t){return xst(this,e,t,Yo)}async queryTopFeatures(e,t){var o;const{source:r,capabilities:i}=await this.load();if(!r.queryTopFeatures||!((o=i==null?void 0:i.query)!=null&&o.supportsTopFeaturesQuery))throw new ze(Yo,"Layer source does not support queryTopFeatures capability");const n=await r.queryTopFeatures(F2.from(e),t);if(n!=null&&n.features)for(const s of n.features)s.layer=s.sourceLayer=this;return n}async queryTopObjectIds(e,t){const{source:r,capabilities:i}=await this.load();if(!r.queryTopObjectIds||!(i!=null&&i.query.supportsTopFeaturesQuery))throw new ze(Yo,"Layer source does not support queryTopObjectIds capability");return r.queryTopObjectIds(F2.from(e),t)}async queryTopFeaturesExtent(e,t){var n;const{source:r,capabilities:i}=await this.load();if(!r.queryTopExtents||!((n=i==null?void 0:i.query)!=null&&n.supportsTopFeaturesQuery))throw new ze(Yo,"Layer source does not support queryTopExtents capability");return r.queryTopExtents(F2.from(e),t)}async queryTopFeatureCount(e,t){var n;const{source:r,capabilities:i}=await this.load();if(!r.queryTopCount||!((n=i==null?void 0:i.query)!=null&&n.supportsTopFeaturesQuery))throw new ze(Yo,"Layer source does not support queryFeatureCount capability");return r.queryTopCount(F2.from(e),t)}read(e,t){const r=e.featureCollection;if(r){const i=r.layers;i&&i.length===1&&(super.read(i[0],t),r.showLegend!=null&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&t.origin==="service"&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")}write(e,t){var o,s;t={...t,origin:(o=t==null?void 0:t.origin)!=null?o:void 0,writeLayerSchema:(s=t==null?void 0:t.writeLayerSchema)!=null?s:this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:n}=t;if(this.dynamicDataSource)return n==null||n.push(Z2(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(r==="web-scene"||r==="web-map"&&i!=="tables")return n==null||n.push(Z2(this,"using a table source cannot be written to web scenes and web maps")),null;if(this._hasMemorySource())return n==null||n.push(Z2(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&r==="web-map"&&i==="tables")return n==null||n.push(Z2(this,"using a non-table source cannot be written to tables in web maps")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new ze(Yo,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){var t;return!!this.loaded&&(((t=this.source)==null?void 0:t.type)==="memory"||koe(this,e))}async save(e){return(await ut(()=>import("./featureLayerUtils.effbd4ad.js"),["assets/featureLayerUtils.effbd4ad.js","assets/originUtils.2d0aad75.js","assets/multiOriginJSONSupportUtils.38b69b9c.js","assets/fetchService.9a203085.js","assets/jsonContext.e9416d90.js","assets/portalItemUtils.6b2af26d.js"])).save(this,e)}async saveAs(e,t){return(await ut(()=>import("./featureLayerUtils.effbd4ad.js"),["assets/featureLayerUtils.effbd4ad.js","assets/originUtils.2d0aad75.js","assets/multiOriginJSONSupportUtils.38b69b9c.js","assets/fetchService.9a203085.js","assets/jsonContext.e9416d90.js","assets/portalItemUtils.6b2af26d.js"])).saveAs(this,e,t)}_readEditingEnabled(e,t,r){var n;let i=(n=e.layerDefinition)==null?void 0:n.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&(r==null?void 0:r.origin)==="web-map"&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(t=>t.trim()).includes("editing")}_writeEditingEnabled(e,t,r,i){var n,o;if(!e){const s=(o=(n=this.capabilities)==null?void 0:n.operations)!=null&&o.supportsSync?"Query,Sync":"Query";Wo("layerDefinition.capabilities",s,t),r&&!(i!=null&&i.writeLayerSchema)&&(t.capabilities=s)}}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstLayerId(e){return ri(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t=>{const r=t.data;if(r)return Array.isArray(r.layers)&&r.layers.length>0?r.layers[0].id:Array.isArray(r.tables)&&r.tables.length>0?r.tables[0].id:void 0})}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",url:this.parsedUrl})),this._verifySource(),this._verifyFields(),w9(this.renderer,this.fieldsIndex),LX(this.timeInfo,this.fieldsIndex),Rlt(this,{origin:"service"})}async hasDataChanged(){return Cst(this)}async fetchPublishingStatus(){const e=this.source;return e!=null&&e.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){var t,r,i;const e=(r=(t=this.parsedUrl)==null?void 0:t.path)!=null?r:"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||e.search(/\/FeatureServer\//i)!==-1||((i=this.fields)==null?void 0:i.some(n=>n.type==="geometry"))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(r=>{const i=r.prototype&&r.prototype.attributes;i&&t&&delete i[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new ze("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new ze("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(t=>{t.layer=this,t.sourceLayer=this}),this._handles.add([e.on("after-add",t=>{t.item.layer=this,t.item.sourceLayer=this}),e.on("after-remove",t=>{t.item.layer=null,t.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(t=>{t.layer=null,t.sourceLayer=null}),this._handles.remove("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}};d([Tt("service","capabilities")],ir.prototype,"readCapabilities",null),d([f({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],ir.prototype,"charts",void 0),d([f({readOnly:!0})],ir.prototype,"createQueryVersion",null),d([f({json:{read:{source:"layerDefinition.copyrightText"}}})],ir.prototype,"copyright",void 0),d([f({json:{read:{source:"layerDefinition.displayField"}}})],ir.prototype,"displayField",void 0),d([f({types:Hm,readOnly:!0})],ir.prototype,"defaultSymbol",void 0),d([f({type:pl})],ir.prototype,"dynamicDataSource",void 0),d([f({type:Boolean})],ir.prototype,"editingEnabled",null),d([Tt(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],ir.prototype,"readEditingEnabled",null),d([Tt("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],ir.prototype,"readEditingEnabledFromWebMap",null),d([zt(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],ir.prototype,"writeEditingEnabled",null),d([zt("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],ir.prototype,"writeEditingEnabledToWebMap",null),d([f({...hI.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:fI}}}}})],ir.prototype,"fields",void 0),d([f(hI.fieldsIndex)],ir.prototype,"fieldsIndex",void 0),d([f({type:xot,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],ir.prototype,"formTemplate",void 0),d([f({json:{read:{source:"layerDefinition.extent"}}})],ir.prototype,"fullExtent",void 0),d([f({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:fI,writer(e,t,r){const i=e?B5.toJSON(e):null;i&&Wo(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:B5.read}}})],ir.prototype,"geometryType",void 0),d([f({json:{read:{source:"layerDefinition.hasM"}}})],ir.prototype,"hasM",void 0),d([f({json:{read:{source:"layerDefinition.hasZ"}}})],ir.prototype,"hasZ",void 0),d([f(Xne)],ir.prototype,"id",void 0),d([f({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],ir.prototype,"infoFor3D",void 0),d([f({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],ir.prototype,"isTable",void 0),d([Tt("service","isTable",["type","geometryType"]),Tt("isTable",["layerDefinition.type","layerDefinition.geometryType"])],ir.prototype,"readIsTable",null),d([zt("web-map","isTable")],ir.prototype,"writeIsTable",null),d([f(ZN)],ir.prototype,"labelsVisible",void 0),d([f({type:[wx],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:kU},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:kU},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],ir.prototype,"labelingInfo",void 0),d([f((()=>{const e=Ge(Qot);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(t,r,i){Wo(i,tT(t),r)}}},e})())],ir.prototype,"opacity",void 0),d([f(Kot)],ir.prototype,"legendEnabled",void 0),d([f({type:["show","hide"],json:(()=>{const e=Ge(eoe.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],ir.prototype,"listMode",void 0),d([Tt("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],ir.prototype,"readGlobalIdField",null),d([f({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:fI}}}}})],ir.prototype,"objectIdField",void 0),d([Tt("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],ir.prototype,"readObjectIdField",null),d([f({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],ir.prototype,"operationalLayerType",void 0),d([f(hI.outFields)],ir.prototype,"outFields",void 0),d([f({readOnly:!0})],ir.prototype,"parsedUrl",null),d([f({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ir.prototype,"path",void 0),d([f(DT)],ir.prototype,"popupEnabled",void 0),d([f({type:S0,json:{name:"popupInfo",write:!0}})],ir.prototype,"popupTemplate",void 0),d([f({readOnly:!0})],ir.prototype,"defaultPopupTemplate",null),d([f({types:vx,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:jne,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:(e,t,r)=>({ignoreOrigin:r==null?void 0:r.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r==null?void 0:r.writeLayerSchema})}}})],ir.prototype,"renderer",null),d([Tt("service","renderer",["drawingInfo.renderer","defaultSymbol"]),Tt("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],ir.prototype,"readRenderer",null),d([f((()=>{const e=Ge(Yot);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],ir.prototype,"screenSizePerspectiveEnabled",void 0),d([f({clonable:!1})],ir.prototype,"source",null),d([Qr("source")],ir.prototype,"castSource",null),d([Tt("portal-item","source",["featureSet"]),Tt("web-map","source",["featureSet"])],ir.prototype,"readSource",null),d([f({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],ir.prototype,"spatialReference",void 0),d([f({type:Number})],ir.prototype,"subtypeCode",void 0),d([f({type:[iF]})],ir.prototype,"templates",void 0),d([Tt("templates",["editFieldsInfo","creatorField","editorField","templates"])],ir.prototype,"readTemplates",null),d([f({type:woe})],ir.prototype,"timeInfo",void 0),d([f()],ir.prototype,"title",void 0),d([Tt("service","title",["name"]),Tt("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],ir.prototype,"readTitle",null),d([Tt("web-map","title",["layerDefinition.name","title"])],ir.prototype,"readTitleFromWebMap",null),d([f({type:String})],ir.prototype,"sublayerTitleMode",void 0),d([f({json:{read:!1}})],ir.prototype,"type",void 0),d([f({type:String})],ir.prototype,"typeIdField",void 0),d([Tt("service","typeIdField"),Tt("typeIdField",["layerDefinition.typeIdField"])],ir.prototype,"readTypeIdField",null),d([f({type:[nF]})],ir.prototype,"types",void 0),d([Tt("service","types",["types"]),Tt("types",["layerDefinition.types"])],ir.prototype,"readTypes",null),d([f({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],ir.prototype,"visible",void 0),d([Tt("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],ir.prototype,"readVisible",null),ir=d([se(Toe)],ir);const mI=Uh({types:dT}),Aoe=ir;var Klt=Object.freeze(Object.defineProperty({__proto__:null,default:Aoe},Symbol.toStringTag,{value:"Module"}));const Zlt=["$datastore","$map","$layer","$aggregatedfeatures"],Qlt="esri.widgets.Feature.support.arcadeFeatureUtils",Jlt=ft.getLogger(Qlt);function Xlt(e){return typeof e=="string"?fx(gN(e)):Array.isArray(e)?eat(e):(e==null?void 0:e.declaredClass)==="esri.arcade.Dictionary"?tat(e):e}function eat(e){return`<ul class="esri-widget__list">${e.map(t=>`<li>${typeof t=="string"?fx(gN(t)):t}</li>`).join("")}</ul>`}function tat(e){return`<table class="esri-widget__table">${e.keys().map(t=>{const r=e.field(t);return`<tr><th>${t}</th><td>${typeof r=="string"?fx(gN(r)):r}</td></tr>`}).join("")}</table>`}function rat({aggregatedFeatures:e,arcadeUtils:t,featureSetVars:r,context:i,viewInfo:n,map:o,graphic:s,interceptor:l}){r.forEach(a=>{const c=a.toLowerCase(),u={map:o,spatialReference:n.sr,interceptor:l};if(c==="$map"&&(i.vars[c]=t.convertMapToFeatureSetCollection(u)),c==="$layer"&&(i.vars[c]=t.convertFeatureLayerToFeatureSet({layer:s.sourceLayer,spatialReference:n.sr,interceptor:l})),c==="$datastore"&&(i.vars[c]=t.convertServiceUrlToWorkspace({url:s.sourceLayer.url,spatialReference:n.sr,interceptor:l})),c==="$aggregatedfeatures"){const p=s.layer,{fields:h,objectIdField:m,geometryType:y,spatialReference:v,displayField:_}=p,x=new Aoe({fields:h,objectIdField:m,geometryType:y,spatialReference:v,displayField:_,...p.type==="feature"?{templates:p.templates,typeIdField:p.typeIdField,types:p.types}:null,source:e});i.vars[c]=t.convertFeatureLayerToFeatureSet({layer:x,spatialReference:n.sr,interceptor:l})}})}function Moe(){return ut(()=>import("./arcadeUtils.8527a548.js").then(function(e){return e.ay}),["assets/arcadeUtils.8527a548.js","assets/number.2f540abd.js"])}function iat(e){return"createQuery"in e&&"queryFeatures"in e}async function nat({graphic:e,view:t}){const{isAggregate:r,layer:i}=e;if(!r||!i||(t==null?void 0:t.type)!=="2d")return[];const n=await t.whenLayerView(i);if(!iat(n))return[];const o=n.createQuery();o.aggregateIds=[e.getObjectId()];const{features:s}=await n.queryFeatures(o);return s}async function Ioe({expressionInfo:e,arcadeUtils:t,interceptor:r,spatialReference:i,map:n,graphic:o,view:s}){if(!e||!e.expression)return null;const l=t.createSyntaxTree(e.expression),a=Zlt.filter(m=>t.hasVariable(l,m)),[c]=await Promise.all([nat({graphic:o,view:s}),t.loadScriptDependencies(l,!0,a)]),u=t.getViewInfo({spatialReference:i}),p=t.createExecContext(o,u);p.interceptor=r,p.useAsync=!0,rat({aggregatedFeatures:c,arcadeUtils:t,featureSetVars:a,context:p,viewInfo:u,map:n,graphic:o,interceptor:r});const h=t.createFunction(l,p);return t.executeAsyncFunction(h,p).catch(m=>Jlt.error("arcade-execution-error",{error:m,graphic:o,expressionInfo:e}))}async function oat({expressionInfos:e,spatialReference:t,graphic:r,interceptor:i,map:n,view:o}){if(!e||!e.length)return{};const s=await Moe(),l={};for(const u of e)l[`expression/${u.name}`]=Ioe({expressionInfo:u,arcadeUtils:s,interceptor:i,spatialReference:t,map:n,graphic:r,view:o});const a=await Bs(l),c={};for(const u in a)c[u]=Xlt(a[u].value);return c}const sat=1;let ol=class extends fa(rr){constructor(e){super(e),this._abortController=null,this.expressionInfo=null,this.graphic=null,this.contentElement=null,this.contentElementViewModel=null,this.interceptor=null,this.view=null,this._cancelQuery=()=>{const{_abortController:t}=this;t&&t.abort(),this._abortController=null},this._createVM=()=>{var i,n;const t=(i=this.contentElement)==null?void 0:i.type;(n=this.contentElementViewModel)==null||n.destroy();const r=t==="fields"?new vT:t==="media"?new Lm:t==="text"?new gE:null;this._set("contentElementViewModel",r)},this._compile=async()=>{this._cancelQuery();const t=new AbortController;this._abortController=t,await this._compileExpression(),this._abortController===t&&(this._abortController=null)},this._compileThrottled=mv(this._compile,sat,this),this._compileExpression=async()=>{const{expressionInfo:t,graphic:r,interceptor:i,spatialReference:n,map:o,view:s,_abortController:l}=this;if(!(t&&r&&n&&o))return void this._set("contentElement",null);const a=await Moe();if(l!==this._abortController)return;const c=await Ioe({arcadeUtils:a,expressionInfo:t,graphic:r,interceptor:i,map:o,spatialReference:n,view:s});if(!c||c.declaredClass!=="esri.arcade.Dictionary")return void this._set("contentElement",null);const u=await c.castAsJsonAsync(l.signal),p=u==null?void 0:u.type,h=p==="media"?a1.fromJSON(u):p==="text"?Qv.fromJSON(u):p==="fields"?Zv.fromJSON(u):null;this._set("contentElement",h)},this.handles.add([Ot(()=>[this.expressionInfo,this.graphic,this.map,this.spatialReference,this.view],()=>this._compileThrottled(),si),Ot(()=>[this.contentElement],()=>this._createVM(),si)])}destroy(){var e;this._cancelQuery(),(e=this.contentElementViewModel)==null||e.destroy(),this._set("contentElementViewModel",null),this._set("contentElement",null)}get spatialReference(){var e,t;return(t=(e=this.view)==null?void 0:e.spatialReference)!=null?t:null}set spatialReference(e){this._override("spatialReference",e)}get state(){const{_abortController:e,contentElement:t,contentElementViewModel:r}=this;return e?"loading":t||r?"ready":"disabled"}get map(){var e,t;return(t=(e=this.view)==null?void 0:e.map)!=null?t:null}set map(e){this._override("map",e)}};d([f()],ol.prototype,"_abortController",void 0),d([f({type:BX})],ol.prototype,"expressionInfo",void 0),d([f({type:Hs})],ol.prototype,"graphic",void 0),d([f({readOnly:!0})],ol.prototype,"contentElement",void 0),d([f({readOnly:!0})],ol.prototype,"contentElementViewModel",void 0),d([f()],ol.prototype,"interceptor",void 0),d([f()],ol.prototype,"spatialReference",null),d([f({readOnly:!0})],ol.prototype,"state",null),d([f()],ol.prototype,"map",null),d([f()],ol.prototype,"view",void 0),ol=d([se("esri.widgets.Feature.FeatureExpression.FeatureExpressionViewModel")],ol);const oF=ol,Q2={iconLoading:"esri-icon-loading-indicator esri-rotating",base:"esri-feature-expression",loadingSpinnerContainer:"esri-feature__loading-container",spinner:"esri-feature__loading-spinner"};let Dk=class extends Ho{constructor(e,t){super(e,t),this.viewModel=new oF}initialize(){this.addHandles(Ot(()=>{var e;return(e=this.viewModel)==null?void 0:e.contentElementViewModel},()=>this._setupExpressionWidget(),si))}destroy(){this._destroyContentWidget()}renderLoading(){return Ue("div",{key:"loading-container",class:Q2.loadingSpinnerContainer},Ue("span",{class:this.classes(Q2.iconLoading,Q2.spinner)}))}render(){var t;const{state:e}=this.viewModel;return Ue("div",{class:Q2.base},e==="loading"?this.renderLoading():e==="disabled"?null:(t=this._contentWidget)==null?void 0:t.render())}_destroyContentWidget(){const{_contentWidget:e}=this;e&&(e.viewModel=null,e.destroy()),this._contentWidget=null}_setupExpressionWidget(){const{contentElementViewModel:e,contentElement:t}=this.viewModel,r=t==null?void 0:t.type;this._destroyContentWidget();const i=e?r==="fields"?new Sie({viewModel:e}):r==="media"?new cne({viewModel:e}):r==="text"?new yk({viewModel:e}):null:null;this._contentWidget=i,this.scheduleRender()}};d([f({type:oF})],Dk.prototype,"viewModel",void 0),Dk=d([se("esri.widgets.Feature.FeatureExpression")],Dk);const lat=Dk,gI=100;let Ri=class extends pn(C0(fa(rr))){constructor(e){super(e),this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featuresPerPage=10,this.description=null,this.graphic=null,this.layer=null,this.map=null,this.orderByFields=null,this.featureCount=0,this.relationshipId=null,this.showAllEnabled=!1,this.title=null,this._cancelQuery=()=>{const{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{const{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{const{_queryPageAbortController:t}=this;t&&t.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();const t=new AbortController;this._queryAbortController=t,await av(this._query()),this._queryAbortController===t&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._cancelQueryFeatureCount();const t=new AbortController;this._queryFeatureCountAbortController=t,await av(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null)},this._queryPageController=async()=>{const t=new AbortController;this._queryPageAbortController=t,await av(this._queryPage()),this._queryPageAbortController===t&&(this._queryPageAbortController=null)},this._queryThrottled=mv(this._queryController,gI,this),this._queryFeatureCountThrottled=mv(this._queryFeatureCountController,gI,this),this._queryPageThrottled=mv(this._queryPageController,gI,this),this._query=async()=>{const{_queryAbortController:t,relatedFeatures:r}=this;this._destroyRelatedFeatureViewModels(),this.featurePage=1,r.removeAll(),r.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:t==null?void 0:t.signal})))},this.handles.add([Ot(()=>[this.displayCount,this.graphic,this.layer,this.map,this.orderByFieldsFixedCasing,this.relationshipId,this.featuresPerPage,this.showAllEnabled],()=>this._queryThrottled(),si),Ot(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageThrottled()),Ot(()=>[this.layer,this.relationshipId,this.objectId],()=>this._queryFeatureCountThrottled())])}destroy(){this._destroyRelatedFeatureViewModels(),this.relatedFeatures.removeAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage()}set featurePage(e){const{featuresPerPage:t,featureCount:r}=this,i=1,n=Math.ceil(r/t)||1;this._set("featurePage",Math.min(Math.max(e,i),n))}get featurePage(){return this._get("featurePage")}get orderByFieldsFixedCasing(){const{orderByFields:e,relatedLayer:t}=this;return e&&(t==null?void 0:t.loaded)?e.map(r=>{const i=r.clone(),n=w1(r.field,t);return i.field=n,i}):e}get itemDescriptionFieldName(){var e,t;return((t=(e=this.orderByFieldsFixedCasing)==null?void 0:e[0])==null?void 0:t.field)||null}set displayCount(e){this._set("displayCount",Math.min(Math.max(e,0),10))}get displayCount(){return this._get("displayCount")}get objectId(){var e,t,r;return(r=(t=(e=this.graphic)==null?void 0:e.attributes)==null?void 0:t[this.objectIdField])!=null?r:null}get objectIdField(){var e;return((e=this.layer)==null?void 0:e.objectIdField)||null}get relatedFeatures(){return this._get("relatedFeatures")||new dr}get relatedLayer(){const{layer:e,map:t,relationship:r}=this;return e!=null&&e.loaded?Det(t,e,r):null}get relationship(){var r,i;const{relationshipId:e,layer:t}=this;return typeof e=="number"&&(i=(r=t==null?void 0:t.relationships)==null?void 0:r.find(({id:n})=>n===e))!=null?i:null}get relatedFeatureViewModels(){return this._get("relatedFeatureViewModels")||new dr}get state(){const{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,graphic:i,relatedLayer:n}=this;return t?"loading":e||r?"querying":i&&n?"ready":"disabled"}_destroyRelatedFeatureViewModels(){var e;(e=this.relatedFeatureViewModels)==null||e.forEach(t=>!t.destroyed&&t.destroy()),this.relatedFeatureViewModels.removeAll()}async _queryFeatureCount(){var c,u,p,h,m;const{layer:e,relatedLayer:t,relationshipId:r,objectId:i,_queryFeatureCountAbortController:n}=this;if(await(e==null?void 0:e.load()),!t||typeof i!="number"||!((u=(c=e==null?void 0:e.capabilities)==null?void 0:c.queryRelated)!=null&&u.supportsCount))return void this._set("featureCount",0);await t.load();const o=t.createQuery(),s=(m=(h=(p=e.capabilities)==null?void 0:p.queryRelated)==null?void 0:h.supportsCacheHint)!=null?m:!1,l=new k1({cacheHint:s,relationshipId:r,returnGeometry:!1,objectIds:[i],where:o.where}),a=await e.queryRelatedFeaturesCount(l,{signal:n==null?void 0:n.signal});this._set("featureCount",a[i]||0)}_sliceFeatures(e){const{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){const{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i}=this;!r||t<2||e.addMany(await this._queryRelatedFeatures({signal:i==null?void 0:i.signal}))}async _queryRelatedFeatures(e){var T,w,I,M,L;const{orderByFieldsFixedCasing:t,showAllEnabled:r,featuresPerPage:i,displayCount:n,layer:o,relationshipId:s,featurePage:l,featureCount:a,relatedLayer:c}=this;await(o==null?void 0:o.load());const{relationship:u,objectId:p}=this;if(!u||typeof p!="number"||!((w=(T=o==null?void 0:o.capabilities)==null?void 0:T.queryRelated)!=null&&w.supportsPagination))return[];const h=r?((l-1)*i+a)%a:0,m=r?i:n;if(!c)return[];await c.load();const y=c.objectIdField,v=[...t==null?void 0:t.map(R=>R.field),y],_=t==null?void 0:t.map(R=>`${R.field} ${R.order}`),x=((M=(I=o.capabilities)==null?void 0:I.queryRelated)==null?void 0:M.supportsCacheHint)||!1,S=c.createQuery(),C=new k1({orderByFields:_,start:h,num:m,outFields:v,cacheHint:x,relationshipId:s,returnGeometry:!1,objectIds:[p],where:S.where}),E=((L=(await o.queryRelatedFeatures(C,{signal:e==null?void 0:e.signal}))[p])==null?void 0:L.features)||[];return E.forEach(R=>R.sourceLayer=c),E}};d([f()],Ri.prototype,"_queryAbortController",void 0),d([f()],Ri.prototype,"_queryPageAbortController",void 0),d([f()],Ri.prototype,"_queryFeatureCountAbortController",void 0),d([f({value:1})],Ri.prototype,"featurePage",null),d([f()],Ri.prototype,"featuresPerPage",void 0),d([f({readOnly:!0})],Ri.prototype,"orderByFieldsFixedCasing",null),d([f()],Ri.prototype,"description",void 0),d([f({readOnly:!0})],Ri.prototype,"itemDescriptionFieldName",null),d([f({value:3})],Ri.prototype,"displayCount",null),d([f({type:Hs})],Ri.prototype,"graphic",void 0),d([f()],Ri.prototype,"layer",void 0),d([f()],Ri.prototype,"map",void 0),d([f({readOnly:!0})],Ri.prototype,"objectId",null),d([f({readOnly:!0})],Ri.prototype,"objectIdField",null),d([f()],Ri.prototype,"orderByFields",void 0),d([f({readOnly:!0})],Ri.prototype,"relatedFeatures",null),d([f({readOnly:!0})],Ri.prototype,"relatedLayer",null),d([f({readOnly:!0})],Ri.prototype,"relationship",null),d([f({readOnly:!0})],Ri.prototype,"featureCount",void 0),d([f({readOnly:!0})],Ri.prototype,"relatedFeatureViewModels",null),d([f()],Ri.prototype,"relationshipId",void 0),d([f()],Ri.prototype,"showAllEnabled",void 0),d([f({readOnly:!0})],Ri.prototype,"state",null),d([f()],Ri.prototype,"title",void 0),Ri=d([se("esri.widgets.Feature.FeatureRelationship.FeatureRelationshipViewModel")],Ri);const sF=Ri,Cu={base:"esri-feature-relationship",esriWidget:"esri-widget",listContainer:"esri-feature-relationship__list",listContainerQuerying:"esri-feature-relationship__list--querying",featureObserver:"esri-feature__feature-observer",stickySpinnerContainer:"esri-feature__sticky-loading-container",loadingSpinnerContainer:"esri-feature__loading-container",spinner:"esri-feature__loading-spinner",iconLoading:"esri-icon-loading-indicator esri-rotating"},TU={title:!0,description:!0};let Xo=class extends Ho{constructor(e,t){super(e,t),this._featureElementInfo=null,this._relatedFeatureIntersectionObserver=new IntersectionObserver(([r])=>{r!=null&&r.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this.headingLevel=2,this.viewModel=new sF,this.messages=null,this.messagesCommon=null,this.visibleElements={...TU},this._increaseFeaturePage=()=>{const{state:r,showAllEnabled:i,relatedFeatures:n,featuresPerPage:o,featurePage:s}=this.viewModel;r==="ready"&&i&&n.length>=o*s&&this.viewModel.featurePage++}}initialize(){this._featureElementInfo=new yT,this.addHandles([Ot(()=>[this.viewModel.description,this.viewModel.title,this.headingLevel],()=>this._setupFeatureElementInfo(),si),Ot(()=>[this.viewModel.state,this.viewModel.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),Cl(()=>this.viewModel.relatedFeatureViewModels,"change",()=>this._setupRelatedFeatureViewModels())])}loadDependencies(){return Promise.all([ut(()=>import("./calcite-list.62273999.js"),["assets/calcite-list.62273999.js","assets/interactive.d71a7a54.js"]),ut(()=>import("./calcite-list-item.26ae6654.js"),["assets/calcite-list-item.26ae6654.js","assets/conditionalSlot.024b12d1.js","assets/observers.905cc9f1.js","assets/interactive.d71a7a54.js"]),ut(()=>import("./calcite-icon.732b1a7e.js"),["assets/calcite-icon.732b1a7e.js","assets/icon.801bf0d0.js","assets/observers.905cc9f1.js"]),ut(()=>import("./calcite-notice.2e885bf1.js"),["assets/calcite-notice.2e885bf1.js","assets/conditionalSlot.024b12d1.js","assets/observers.905cc9f1.js","assets/icon.801bf0d0.js"])])}destroy(){this._unobserveRelatedFeatureObserver(),this._featureElementInfo=yn(this._featureElementInfo)}get displayShowAllButton(){const{showAllEnabled:e,featureCount:t,displayCount:r}=this.viewModel;return!e&&(t>r||r===0)}get displayListItems(){return this.displayShowAllButton||this.viewModel.relatedFeatureViewModels.length>0}get description(){return this.viewModel.description}set description(e){this.viewModel.description=e}get featureCountDescription(){const{messages:e}=this,{featureCount:t}=this.viewModel;return Vc(t===1?e==null?void 0:e.numberRecord:e==null?void 0:e.numberRecords,{number:t})}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}castVisibleElements(e){return{...TU,...e}}renderStickyLoading(){return this.viewModel.state==="querying"?Ue("div",{key:"sticky-loader",class:Cu.stickySpinnerContainer},this.renderLoadingIcon()):null}renderLoadingIcon(){return Ue("span",{class:this.classes(Cu.iconLoading,Cu.spinner)})}renderLoading(){return Ue("div",{key:"loading-container",class:Cu.loadingSpinnerContainer},this.renderLoadingIcon())}renderShowAllIconNode(){return Ue("calcite-icon",{scale:"s",icon:"list",slot:"content-end"})}renderChevronIconNode(){const e=tu(this.container)?"chevron-left":"chevron-right";return Ue("calcite-icon",{scale:"s",icon:e,slot:"content-end"})}renderRelatedFeature(e){var n,o;const{itemDescriptionFieldName:t}=this.viewModel,r=e.title;e.description=t&&((n=e.formattedAttributes)==null?void 0:n.global[t]);const i=e.state==="loading";return Ue("calcite-list-item",{key:e.uid,label:i?`${(o=this.messagesCommon)==null?void 0:o.loading}\u2026`:r,description:i?"\u2026":e.description,onclick:()=>this.emit("select-record",{featureViewModel:e})},this.renderChevronIconNode())}renderShowAllListItem(){var e;return this.displayShowAllButton?Ue("calcite-list-item",{key:"show-all-item",label:(e=this.messages)==null?void 0:e.showAll,description:this.featureCountDescription,onclick:()=>this.emit("show-all-records")},this.renderShowAllIconNode()):null}renderNoRelatedFeaturesMessage(){var e;return Ue("calcite-notice",{key:"no-related-features-message",icon:"information",open:!0,color:"blue",scale:"s",width:"full"},Ue("div",{slot:"message"},(e=this.messages)==null?void 0:e.noRelatedFeatures))}renderFeatureObserver(){return Ue("div",{key:"feature-observer",class:Cu.featureObserver,bind:this,afterCreate:this._relatedFeatureIntersectionObserverCreated})}renderList(){const{relatedFeatureViewModels:e}=this.viewModel;return Ue("calcite-list",null,e.toArray().map(t=>this.renderRelatedFeature(t)),this.renderShowAllListItem())}renderRelatedFeatures(){const{displayListItems:e}=this,{state:t}=this.viewModel;return Ue("div",{key:"list-container",class:this.classes(Cu.listContainer,{[Cu.listContainerQuerying]:t==="querying"})},e?this.renderList():t==="ready"?this.renderNoRelatedFeaturesMessage():null,this.renderStickyLoading(),this.renderFeatureObserver())}renderRelationshipNotFound(){var e;return Ue("calcite-notice",{key:"relationship-not-found",icon:"exclamation-mark-triangle",open:!0,color:"red",scale:"s",width:"full"},Ue("div",{slot:"message"},(e=this.messages)==null?void 0:e.relationshipNotFound))}render(){var t;const{state:e}=this.viewModel;return Ue("div",{class:this.classes(Cu.base,Cu.esriWidget)},(t=this._featureElementInfo)==null?void 0:t.render(),e==="loading"?this.renderLoading():e==="disabled"?this.renderRelationshipNotFound():this.renderRelatedFeatures())}_setupRelatedFeatureViewModels(){const{relatedFeatureViewModels:e}=this.viewModel,t="related-feature-viewmodels";this.removeHandles(t),e==null||e.forEach(r=>{this.addHandles(Ot(()=>[r.title,r.state],()=>this.scheduleRender(),si),t)}),this.scheduleRender()}_setupFeatureElementInfo(){const{headingLevel:e,visibleElements:t}=this,r=t.description&&this.description,i=t.title&&this.title;this._featureElementInfo.set({description:r,title:i,headingLevel:e})}async _handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();const{state:e,showAllEnabled:t}=this.viewModel;await U3(0),this._relatedFeatureIntersectionObserverNode&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode)}_relatedFeatureIntersectionObserverCreated(e){this._relatedFeatureIntersectionObserverNode=e}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode)}};d([f()],Xo.prototype,"_relatedFeatureIntersectionObserverNode",void 0),d([f({readOnly:!0})],Xo.prototype,"displayShowAllButton",null),d([f({readOnly:!0})],Xo.prototype,"displayListItems",null),d([f()],Xo.prototype,"description",null),d([f({readOnly:!0})],Xo.prototype,"featureCountDescription",null),d([f()],Xo.prototype,"headingLevel",void 0),d([f()],Xo.prototype,"title",null),d([f({type:sF})],Xo.prototype,"viewModel",void 0),d([f(),Bo("esri/widgets/Feature/t9n/Feature")],Xo.prototype,"messages",void 0),d([f(),Bo("esri/t9n/common")],Xo.prototype,"messagesCommon",void 0),d([f()],Xo.prototype,"visibleElements",void 0),d([Qr("visibleElements")],Xo.prototype,"castVisibleElements",null),Xo=d([se("esri.widgets.Feature.FeatureRelationship")],Xo);const AU=Xo;class aat{constructor(t,r){this.preLayerQueryCallback=t,this.preRequestCallback=r,this.preLayerQueryCallback||(this.preLayerQueryCallback=i=>{}),this.preRequestCallback||(this.preLayerQueryCallback=i=>{})}}var S_;const cat=1,MU="content-view-models",IU="relationship-view-models",PU={attachmentsContent:!0,chartAnimation:!0,customContent:!0,expressionContent:!0,fieldsContent:!0,mediaContent:!0,textContent:!0,relationshipContent:!0};let Yi=S_=class extends C0(rr){constructor(e){super(e),this._handles=new hs,this._error=null,this._featureAbortController=null,this._graphicChangedThrottled=mv(this._graphicChanged,cat,this),this._expressionAttributes=null,this._graphicExpressionAttributes=null,this.abilities={...PU},this.content=null,this.contentViewModels=[],this.description=null,this.defaultPopupTemplateEnabled=!1,this.formattedAttributes=null,this.lastEditInfo=null,this.relatedInfos=new Map,this.title="",this.view=null,this._isAllowedContentType=t=>{const{abilities:r}=this;return t.type==="attachments"&&r.attachmentsContent||t.type==="custom"&&r.customContent||t.type==="fields"&&r.fieldsContent||t.type==="media"&&r.mediaContent||t.type==="text"&&r.textContent||t.type==="expression"&&r.expressionContent||t.type==="relationship"&&r.relationshipContent},this._handles.add(Ot(()=>[this.graphic,this._effectivePopupTemplate,this.abilities],()=>this._graphicChangedThrottled(),si))}destroy(){this._clear(),this._cancelFeatureQuery(),this._error=null,this._handles.destroy(),this._handles=null,this.graphic=null,this._destroyContentViewModels(),this.relatedInfos.clear()}get _effectivePopupTemplate(){return ue(this.graphic)?this.graphic.getEffectivePopupTemplate(this.defaultPopupTemplateEnabled):null}get _fieldInfoMap(){return Aet(qB(this._effectivePopupTemplate),this._sourceLayer)}get _sourceLayer(){return fie(this.graphic)}castAbilities(e){return{...PU,...e}}get state(){return this.graphic?this._error?"error":this.waitingForContent?"loading":"ready":"disabled"}set graphic(e){this._set("graphic",e?e.clone():null)}get spatialReference(){var e,t;return(t=(e=this.view)==null?void 0:e.spatialReference)!=null?t:null}set spatialReference(e){this._override("spatialReference",e)}get map(){var e;return((e=this.view)==null?void 0:e.map)||null}set map(e){this._override("map",e)}get waitingForContent(){return!!this._featureAbortController}setActiveMedia(e,t){const r=this.contentViewModels[e];r instanceof Lm&&r.setActiveMedia(t)}nextMedia(e){const t=this.contentViewModels[e];t instanceof Lm&&t.next()}previousMedia(e){const t=this.contentViewModels[e];t instanceof Lm&&t.previous()}_clear(){this._set("title",""),this._set("content",null),this._set("formattedAttributes",null)}async _graphicChanged(){this._cancelFeatureQuery(),this._error=null,this._clear();const{graphic:e}=this;if(!e)return;const t=new AbortController;this._featureAbortController=t;try{await this._queryFeature({signal:t.signal})}catch(r){us(r)||(this._error=r,ft.getLogger(this.declaredClass).error("error","The popupTemplate could not be displayed for this feature.",{error:r,graphic:e,popupTemplate:this._effectivePopupTemplate}))}this._featureAbortController===t&&(this._featureAbortController=null)}_cancelFeatureQuery(){const{_featureAbortController:e}=this;e&&e.abort(),this._featureAbortController=null}_compileContentElement(e,t){return e.type==="attachments"?this._compileAttachments(e,t):e.type==="custom"?this._compileCustom(e,t):e.type==="fields"?this._compileFields(e,t):e.type==="media"?this._compileMedia(e,t):e.type==="text"?this._compileText(e,t):e.type==="expression"?this._compileExpression(e,t):e.type==="relationship"?this._compileRelationship(e,t):void 0}_compileContent(e){if(this._destroyContentViewModels(),this.graphic)return Array.isArray(e)?e.filter(this._isAllowedContentType).map((t,r)=>this._compileContentElement(t,r)):typeof e=="string"?this._compileText(new Qv({text:e}),0).text:e}_destroyContentViewModels(){var e,t;(e=this._handles)==null||e.remove(IU),(t=this._handles)==null||t.remove(MU),this.contentViewModels.forEach(r=>r&&!r.destroyed&&r.destroy()),this._set("contentViewModels",[])}_matchesFeature(e,t){var n;const r=(n=e==null?void 0:e.graphic)==null?void 0:n.getObjectId(),i=t==null?void 0:t.getObjectId();return ue(r)&&ue(i)&&r===i}_setRelatedFeaturesViewModels({relatedFeatureViewModels:e,relatedFeatures:t,map:r}){t==null||t.filter(Boolean).forEach(i=>{e.find(n=>this._matchesFeature(n,i))||e.add(new S_({abilities:{relationshipContent:!1},map:r,graphic:i}))}),e.forEach(i=>{(t==null?void 0:t.find(o=>this._matchesFeature(i,o)))||e.remove(i)})}_setExpressionContentVM(e,t){const{formattedAttributes:r}=this,{contentElement:i,contentElementViewModel:n}=e,o=i==null?void 0:i.type;n&&o&&(o==="fields"&&(this._createFieldsFormattedAttributes({contentElement:i,contentElementIndex:t,formattedAttributes:r}),n.set(this._createFieldsVMParams(i,t))),o==="media"&&(this._createMediaFormattedAttributes({contentElement:i,contentElementIndex:t,formattedAttributes:r}),n.set(this._createMediaVMParams(i,t))),o==="text"&&n.set(this._createTextVMParams(i)))}_compileRelationship(e,t){const{displayCount:r,orderByFields:i,relationshipId:n,title:o,description:s}=e,{_sourceLayer:l,graphic:a,map:c}=this,u=new sF({displayCount:r,graphic:a,orderByFields:i,relationshipId:n,layer:l,map:c,...this._compileTitleAndDesc({title:o,description:s})});return this.contentViewModels[t]=u,this._handles.add(Cl(()=>u.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels(u)),IU),e}_compileExpression(e,t){const{expressionInfo:r}=e,{graphic:i,map:n,spatialReference:o,view:s}=this,l=new oF({expressionInfo:r,graphic:i,interceptor:S_.interceptor,map:n,spatialReference:o,view:s});return this.contentViewModels[t]=l,this._handles.add(Ot(()=>l.contentElementViewModel,()=>this._setExpressionContentVM(l,t),si),MU),e}_compileAttachments(e,t){const{graphic:r}=this,{description:i,title:n}=e;return this.contentViewModels[t]=new vN({graphic:r,...this._compileTitleAndDesc({title:n,description:i})}),e}_compileCustom(e,t){const{graphic:r}=this,{creator:i,destroyer:n}=e;return this.contentViewModels[t]=new gE({graphic:r,creator:i,destroyer:n}),e}_compileTitleAndDesc({title:e,description:t}){const{_fieldInfoMap:r,_sourceLayer:i,graphic:n,formattedAttributes:o,_expressionAttributes:s}=this,{attributes:l}=n,a=o.global;return{title:$m({attributes:l,fieldInfoMap:r,globalAttributes:a,expressionAttributes:s,layer:i,text:e}),description:$m({attributes:l,fieldInfoMap:r,globalAttributes:a,expressionAttributes:s,layer:i,text:t})}}_createFieldsVMParams(e,t){var c;const{_effectivePopupTemplate:r,formattedAttributes:i}=this,n={...i.global,...i.content[t]},o=(c=(e==null?void 0:e.fieldInfos)||(r==null?void 0:r.fieldInfos))==null?void 0:c.filter(({fieldName:u})=>fN(u)||od(u)||n.hasOwnProperty(u)),s=r==null?void 0:r.expressionInfos,{description:l,title:a}=e;return{attributes:n,expressionInfos:s,fieldInfos:o,...this._compileTitleAndDesc({title:a,description:l})}}_compileFields(e,t){const r=e.clone(),i=new vT(this._createFieldsVMParams(e,t));return this.contentViewModels[t]=i,r.fieldInfos=i.formattedFieldInfos.slice(0),r}_createMediaVMParams(e,t){const{abilities:r,graphic:i,_fieldInfoMap:n,formattedAttributes:o,_effectivePopupTemplate:s,relatedInfos:l,_sourceLayer:a,_expressionAttributes:c}=this,{attributes:u}=i,{description:p,mediaInfos:h,title:m}=e;return{abilities:{chartAnimation:r.chartAnimation},activeMediaInfoIndex:e.activeMediaInfoIndex||0,attributes:u,layer:a,fieldInfoMap:n,formattedAttributes:{...o.global,...o.content[t]},expressionAttributes:c,mediaInfos:h,popupTemplate:s,relatedInfos:l,...this._compileTitleAndDesc({title:m,description:p})}}_compileMedia(e,t){const r=e.clone(),i=new Lm(this._createMediaVMParams(e,t));return r.mediaInfos=i.formattedMediaInfos.slice(0),this.contentViewModels[t]=i,r}_createTextVMParams(e){const{graphic:t,_fieldInfoMap:r,_sourceLayer:i,_expressionAttributes:n}=this;if(e&&e.text){const{attributes:o}=t,s=this.formattedAttributes.global;e.text=$m({attributes:o,fieldInfoMap:r,globalAttributes:s,expressionAttributes:n,layer:i,text:e.text})}return{graphic:t,creator:e.text}}_compileText(e,t){const r=e.clone();return this.contentViewModels[t]=new gE(this._createTextVMParams(r)),r}_compileLastEditInfo(){const{_effectivePopupTemplate:e,_sourceLayer:t,graphic:r}=this;if(!e)return;const{lastEditInfoEnabled:i}=e,n=t==null?void 0:t.editFieldsInfo;return i&&n?Tet(n,r.attributes):void 0}_compileTitle(e){const{_fieldInfoMap:t,_sourceLayer:r,graphic:i,_expressionAttributes:n}=this,{attributes:o}=i,s=this.formattedAttributes.global;return $m({attributes:o,fieldInfoMap:t,globalAttributes:s,expressionAttributes:n,layer:r,text:e})}async _getTitle(){const{_effectivePopupTemplate:e,graphic:t}=this,r=e==null?void 0:e.title;return fE(r,{graphic:t})}async _getContent(){const{_effectivePopupTemplate:e,graphic:t}=this,r=e==null?void 0:e.content;return fE(r,{graphic:t})}async _queryFeature(e){const{_featureAbortController:t,_sourceLayer:r,graphic:i,_effectivePopupTemplate:n,spatialReference:o,map:s,view:l}=this;if(t!==this._featureAbortController||!i)return;await Pet({graphic:i,popupTemplate:n,layer:r,spatialReference:o},e);const{content:{value:a},title:{value:c}}=await Bs({content:this._getContent(),title:this._getTitle()}),{expressionAttributes:{value:u}}=await Bs({checkForRelatedFeatures:this._checkForRelatedFeatures(e),expressionAttributes:oat({expressionInfos:n==null?void 0:n.expressionInfos,spatialReference:o,graphic:i,map:s,interceptor:S_.interceptor,view:l})});t===this._featureAbortController&&i&&(this._expressionAttributes=u,this._graphicExpressionAttributes={...i.attributes,...u},this._set("formattedAttributes",this._createFormattedAttributes(a)),this._set("title",this._compileTitle(c)),this._set("lastEditInfo",this._compileLastEditInfo()||null),this._set("content",this._compileContent(a)||null))}_createMediaFormattedAttributes({contentElement:e,contentElementIndex:t,formattedAttributes:r}){const{_effectivePopupTemplate:i,graphic:n,relatedInfos:o,_sourceLayer:s,_fieldInfoMap:l,_graphicExpressionAttributes:a}=this;r.content[t]=DM({fieldInfos:i==null?void 0:i.fieldInfos,graphic:n,attributes:{...a,...e.attributes},layer:s,fieldInfoMap:l,relatedInfos:o})}_createFieldsFormattedAttributes({contentElement:e,contentElementIndex:t,formattedAttributes:r}){if(e.fieldInfos){const{graphic:i,relatedInfos:n,_sourceLayer:o,_fieldInfoMap:s,_graphicExpressionAttributes:l}=this;r.content[t]=DM({fieldInfos:e.fieldInfos,graphic:i,attributes:{...l,...e.attributes},layer:o,fieldInfoMap:s,relatedInfos:n})}}_createFormattedAttributes(e){const{_effectivePopupTemplate:t,graphic:r,relatedInfos:i,_sourceLayer:n,_fieldInfoMap:o,_graphicExpressionAttributes:s}=this,l=t==null?void 0:t.fieldInfos,a={global:DM({fieldInfos:l,graphic:r,attributes:s,layer:n,fieldInfoMap:o,relatedInfos:i}),content:[]};return Array.isArray(e)&&e.forEach((c,u)=>{c.type==="fields"&&this._createFieldsFormattedAttributes({contentElement:c,contentElementIndex:u,formattedAttributes:a}),c.type==="media"&&this._createMediaFormattedAttributes({contentElement:c,contentElementIndex:u,formattedAttributes:a})}),a}_checkForRelatedFeatures(e){const{graphic:t,_effectivePopupTemplate:r}=this;return this._queryRelatedInfos(t,qB(r),e)}async _queryRelatedInfos(e,t,r){const{relatedInfos:i,_sourceLayer:n}=this;i.clear();const o=ue(n.associatedLayer)?await n.associatedLayer.load(r):n;if(!o)return;const s=t.filter(c=>c&&od(c.fieldName));if(!s||!s.length)return;t.forEach(c=>this._configureRelatedInfo(c,o));const l=await zit({relatedInfos:i,layer:o},r);Object.keys(l).forEach(c=>{var h;const u=i.get(c.toString()),p=(h=l[c])==null?void 0:h.value;u&&p&&(u.layerInfo=p.data)});const a=await jit({graphic:e,relatedInfos:i,layer:o},r);Object.keys(a).forEach(c=>{var u;Lit((u=a[c])==null?void 0:u.value,i.get(c.toString()))})}_configureRelatedInfo(e,t){const{relatedInfos:r}=this,i=ZO(e.fieldName);if(!i)return;const{layerId:n,fieldName:o}=i;if(!n)return;const s=r.get(n.toString())||Oit(n,t);s&&(Vit({relatedInfo:s,fieldName:o,fieldInfo:e}),this.relatedInfos.set(n,s))}};Yi.interceptor=new aat(Let,Ret),d([f()],Yi.prototype,"_error",void 0),d([f()],Yi.prototype,"_featureAbortController",void 0),d([f({readOnly:!0})],Yi.prototype,"_effectivePopupTemplate",null),d([f({readOnly:!0})],Yi.prototype,"_fieldInfoMap",null),d([f({readOnly:!0})],Yi.prototype,"_sourceLayer",null),d([f()],Yi.prototype,"abilities",void 0),d([Qr("abilities")],Yi.prototype,"castAbilities",null),d([f({readOnly:!0})],Yi.prototype,"content",void 0),d([f({readOnly:!0})],Yi.prototype,"contentViewModels",void 0),d([f()],Yi.prototype,"description",void 0),d([f({type:Boolean})],Yi.prototype,"defaultPopupTemplateEnabled",void 0),d([f({readOnly:!0})],Yi.prototype,"state",null),d([f({readOnly:!0})],Yi.prototype,"formattedAttributes",void 0),d([f({type:Hs,value:null})],Yi.prototype,"graphic",null),d([f({readOnly:!0})],Yi.prototype,"lastEditInfo",void 0),d([f({readOnly:!0})],Yi.prototype,"relatedInfos",void 0),d([f()],Yi.prototype,"spatialReference",null),d([f({readOnly:!0})],Yi.prototype,"title",void 0),d([f()],Yi.prototype,"map",null),d([f({readOnly:!0})],Yi.prototype,"waitingForContent",null),d([f()],Yi.prototype,"view",void 0),Yi=S_=d([se("esri.widgets.FeatureViewModel")],Yi);const lF=Yi,nn={iconText:"esri-icon-font-fallback-text",iconLoading:"esri-icon-loading-indicator esri-rotating",esriTable:"esri-widget__table",esriWidget:"esri-widget",base:"esri-feature",container:"esri-feature__size-container",title:"esri-feature__title",main:"esri-feature__main-container",btn:"esri-feature__button",icon:"esri-feature__icon",content:"esri-feature__content",contentNode:"esri-feature__content-node",contentElement:"esri-feature__content-element",text:"esri-feature__text",lastEditedInfo:"esri-feature__last-edited-info",fields:"esri-feature__fields",fieldHeader:"esri-feature__field-header",fieldData:"esri-feature__field-data",fieldDataDate:"esri-feature__field-data--date",loadingSpinnerContainer:"esri-feature__loading-container",spinner:"esri-feature__loading-spinner"},Poe=e=>{let t=class extends e{constructor(){super(...arguments),this.renderNodeContent=r=>kie(r)&&!r.destroyed?Ue("div",{class:nn.contentNode,key:r},r.render()):r instanceof HTMLElement?Ue("div",{class:nn.contentNode,key:r,bind:r,afterCreate:this._attachToNode}):Xet(r)?Ue("div",{class:nn.contentNode,key:r,bind:r.domNode,afterCreate:this._attachToNode}):null}_attachToNode(r){const i=this;r.appendChild(i)}};return t=d([se("esri.widgets.Feature.ContentMixin")],t),t};var rL;const $U={title:!0,content:!0,lastEditedInfo:!0},OU="relationship-handles";let so=rL=class extends Poe(Ho){constructor(e,t){super(e,t),this._contentWidgets=[],this.flowItems=null,this.headingLevel=2,this.messages=null,this.messagesCommon=null,this.messagesURIUtils=null,this.visibleElements={...$U},this.viewModel=new lF}initialize(){this.addHandles(Ot(()=>{var e;return(e=this.viewModel)==null?void 0:e.contentViewModels},()=>this._setupContentWidgets(),si))}loadDependencies(){return ut(()=>import("./calcite-notice.2e885bf1.js"),["assets/calcite-notice.2e885bf1.js","assets/conditionalSlot.024b12d1.js","assets/observers.905cc9f1.js","assets/icon.801bf0d0.js"])}destroy(){this._destroyContentWidgets()}get graphic(){return this.viewModel.graphic}set graphic(e){this.viewModel.graphic=e}get defaultPopupTemplateEnabled(){return this.viewModel.defaultPopupTemplateEnabled}set defaultPopupTemplateEnabled(e){this.viewModel.defaultPopupTemplateEnabled=e}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}get spatialReference(){return this.viewModel.spatialReference}set spatialReference(e){this.viewModel.spatialReference=e}get title(){return this.viewModel.title}castVisibleElements(e){return{...$U,...e}}get map(){return this.viewModel.map}set map(e){this.viewModel.map=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}render(){const{state:e}=this.viewModel,t=Ue("div",{class:nn.container,key:"container"},this.renderTitle(),e==="error"?this.renderError():e==="loading"?this.renderLoading():this.renderContentContainer());return Ue("div",{class:this.classes(nn.base,nn.esriWidget)},t)}setActiveMedia(e,t){return this.viewModel.setActiveMedia(e,t)}nextMedia(e){return this.viewModel.nextMedia(e)}previousMedia(e){return this.viewModel.previousMedia(e)}renderError(){const{messagesCommon:e,messages:t,visibleElements:r}=this;return Ue("calcite-notice",{active:!0,color:"red",icon:"exclamation-mark-circle",scale:"s"},r.title?Ue("div",{key:"error-title",slot:"title"},e.errorMessage):null,Ue("div",{key:"error-message",slot:"message"},t.loadingError))}renderLoading(){return Ue("div",{key:"loading-container",class:nn.loadingSpinnerContainer},Ue("span",{class:this.classes(nn.iconLoading,nn.spinner)}))}renderContentContainer(){const{visibleElements:e}=this;return e.content?Ue("div",{class:nn.main},[this.renderContent(),this.renderLastEditInfo()]):null}renderTitle(){const{visibleElements:e,title:t}=this;return e.title?Ue(bN,{level:this.headingLevel,class:nn.title,innerHTML:t}):null}renderContent(){const e=this.viewModel.content,t="content";if(!e)return null;if(Array.isArray(e))return e.length?Ue("div",{class:nn.contentNode,key:`${t}-content-elements`},e.map(this.renderContentElement,this)):null;if(typeof e=="string"){const r=this._contentWidgets[0];return!r||r.destroyed?null:Ue("div",{class:nn.contentNode,key:`${t}-content`},r.render())}return this.renderNodeContent(e)}renderContentElement(e,t){const{visibleElements:r}=this;if(typeof r.content!="boolean"&&!r.content[e.type])return null;switch(e.type){case"attachments":return this.renderAttachments(t);case"custom":return this.renderCustom(e,t);case"fields":return this.renderFields(t);case"media":return this.renderMedia(t);case"text":return this.renderText(e,t);case"expression":return this.renderExpression(t);case"relationship":return this.renderRelationship(t);default:return null}}renderAttachments(e){const t=this._contentWidgets[e];if(!t||t.destroyed)return null;const{state:r,attachmentInfos:i}=t.viewModel;return r==="loading"||i.length>0?Ue("div",{key:this._buildKey("attachments-element",e),class:this.classes(nn.contentElement)},t.render()):null}renderRelationship(e){const t=this._contentWidgets[e];return t&&!t.destroyed&&this.flowItems?Ue("div",{key:this._buildKey("relationship-element",e),class:nn.contentElement},t.render()):null}renderExpression(e){const t=this._contentWidgets[e];return!t||t.destroyed?null:Ue("div",{key:this._buildKey("expression-element",e),class:nn.contentElement},t.render())}renderCustom(e,t){const{creator:r}=e,i=this._contentWidgets[t];return!i||i.destroyed?null:r?Ue("div",{key:this._buildKey("custom-element",t),class:nn.contentElement},i.render()):null}renderFields(e){const t=this._contentWidgets[e];return!t||t.destroyed?null:Ue("div",{key:this._buildKey("fields-element",e),class:nn.contentElement},t.render())}renderMedia(e){const t=this._contentWidgets[e];return!t||t.destroyed?null:Ue("div",{key:this._buildKey("media-element",e),class:nn.contentElement},t.render())}renderLastEditInfo(){const{visibleElements:e,messages:t}=this,{lastEditInfo:r}=this.viewModel;if(!r||!e.lastEditedInfo)return null;const{date:i,user:n}=r,o=r.type==="edit"?n?t.lastEditedByUser:t.lastEdited:n?t.lastCreatedByUser:t.lastCreated,s=Vc(o,{date:i,user:n});return Ue("div",{key:"edit-info-element",class:this.classes(nn.lastEditedInfo,nn.contentElement)},s)}renderText(e,t){const r=e.text,i=this._contentWidgets[t];return!i||i.destroyed?null:r?Ue("div",{key:this._buildKey("text-element",t),class:this.classes(nn.contentElement,nn.text)},i.render()):null}_buildKey(e,...t){return`${e}__${this.get("viewModel.graphic.uid")||"0"}-${t.join("-")}`}_destroyContentWidget(e){e&&(e.viewModel=null,!e.destroyed&&e.destroy())}_destroyContentWidgets(){this.removeHandles(OU),this._contentWidgets.forEach(e=>this._destroyContentWidget(e)),this._contentWidgets=[]}_addFeatureRelationshipHandles(e){const{flowItems:t,visibleElements:r}=this;this.addHandles([Cl(()=>e,"select-record",({featureViewModel:i})=>{t&&(i.abilities={relationshipContent:!0},t.push(new rL({flowItems:t,viewModel:i,visibleElements:r})))}),Cl(()=>e,"show-all-records",()=>{if(!t)return;const{viewModel:i}=e;i.showAllEnabled=!0;const n=new AU({visibleElements:{title:!1,description:!1},viewModel:i});this._addFeatureRelationshipHandles(n),t.push(n)})],OU)}_setupContentWidgets(){this._destroyContentWidgets();const{headingLevel:e,visibleElements:t}=this,r=this.get("viewModel.content"),{contentViewModels:i}=this.viewModel;if(Array.isArray(r))r.forEach((n,o)=>{if(n.type==="attachments"&&(this._contentWidgets[o]=new Wet({displayType:n.displayType,headingLevel:t.title?e+1:e,viewModel:i[o]})),n.type==="fields"&&(this._contentWidgets[o]=new Sie({viewModel:i[o]})),n.type==="media"&&(this._contentWidgets[o]=new cne({viewModel:i[o]})),n.type==="text"&&(this._contentWidgets[o]=new yk({viewModel:i[o]})),n.type==="custom"&&(this._contentWidgets[o]=new yk({viewModel:i[o]})),n.type==="expression"&&(this._contentWidgets[o]=new lat({viewModel:i[o]})),n.type==="relationship"){const s=new AU({viewModel:i[o]});this._addFeatureRelationshipHandles(s),this._contentWidgets[o]=s}},this);else{const n=i[0];n&&!n.destroyed&&(this._contentWidgets[0]=new yk({viewModel:n}))}this.scheduleRender()}};d([f()],so.prototype,"graphic",null),d([f()],so.prototype,"defaultPopupTemplateEnabled",null),d([f()],so.prototype,"flowItems",void 0),d([f()],so.prototype,"headingLevel",void 0),d([f()],so.prototype,"label",null),d([f(),Bo("esri/widgets/Feature/t9n/Feature")],so.prototype,"messages",void 0),d([f(),Bo("esri/t9n/common")],so.prototype,"messagesCommon",void 0),d([f(),Bo("esri/widgets/support/t9n/uriUtils")],so.prototype,"messagesURIUtils",void 0),d([f()],so.prototype,"spatialReference",null),d([f({readOnly:!0})],so.prototype,"title",null),d([f()],so.prototype,"visibleElements",void 0),d([Qr("visibleElements")],so.prototype,"castVisibleElements",null),d([f()],so.prototype,"map",null),d([f()],so.prototype,"view",null),d([f({type:lF})],so.prototype,"viewModel",void 0),so=rL=d([se("esri.widgets.Feature")],so);const uat=so;var $oe;const Nk=Symbol("anchorHandles");let Yf=class extends Dd.EventedAccessor{constructor(e){super(e),this[$oe]=new hs,this.location=null,this.screenLocationEnabled=!1,this.view=null,this[Nk].add([ca(()=>oh(this.screenLocationEnabled?this.view:null,t=>[t.size,t.type==="3d"?t.camera:t.viewpoint]),()=>this.notifyChange("screenLocation")),Ot(()=>this.screenLocation,(t,r)=>{ue(t)&&ue(r)&&this.emit("view-change")})])}destroy(){this.view=null,this[Nk]=yn(this[Nk])}get screenLocation(){const{location:e,view:t,screenLocationEnabled:r}=this;return r&&ue(e)&&ue(t)&&t.ready?t.toScreen(e):null}};$oe=Nk,d([f()],Yf.prototype,"location",void 0),d([f()],Yf.prototype,"screenLocation",null),d([f()],Yf.prototype,"screenLocationEnabled",void 0),d([f()],Yf.prototype,"view",void 0),Yf=d([se("esri.widgets.support.AnchorElementViewModel")],Yf);const Ooe=Yf,dat="esri.widgets.CompassViewModel";let Fk=class extends Ooe{constructor(e){super(e),this.visible=!1}};d([f()],Fk.prototype,"visible",void 0),Fk=d([se(dat)],Fk);const Loe=Fk,yI={base:"esri-spinner",spinnerStart:"esri-spinner--start",spinnerFinish:"esri-spinner--finish"};let Kf=class extends Ho{constructor(e,t){super(e,t),this._animationDelay=500,this._animationPromise=null,this.viewModel=new Loe}initialize(){this.addHandles(Ot(()=>this.visible,e=>this._visibleChange(e)))}destroy(){this._animationPromise=null}get location(){return this.viewModel.location}set location(e){this.viewModel.location=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get visible(){return this.viewModel.visible}set visible(e){this.viewModel.visible=e}show(e){const{location:t,promise:r}=e;t&&(this.viewModel.location=t),this.visible=!0;const i=()=>this.hide();r&&r.catch(()=>{}).then(i)}hide(){this.visible=!1}render(){const{visible:e}=this,{screenLocation:t}=this.viewModel,r=!!t,i=e&&r,n=!e&&r,o={[yI.spinnerStart]:i,[yI.spinnerFinish]:n},s=this._getPositionStyles();return Ue("div",{class:this.classes(yI.base,o),styles:s})}_visibleChange(e){if(e)return void(this.viewModel.screenLocationEnabled=!0);const t=U3(this._animationDelay);this._animationPromise=t,t.catch(()=>{}).then(()=>{this._animationPromise===t&&(this.viewModel.screenLocationEnabled=!1,this._animationPromise=null)})}_getPositionStyles(){const{screenLocation:e,view:t}=this.viewModel;if(et(t)||et(e))return{};const{padding:r}=t;return{left:e.x-r.left+"px",top:e.y-r.top+"px"}}};d([f()],Kf.prototype,"location",null),d([f()],Kf.prototype,"view",null),d([f({type:Loe})],Kf.prototype,"viewModel",void 0),d([f()],Kf.prototype,"visible",null),Kf=d([se("esri.widgets.Spinner")],Kf);const pat=Kf,hat="OBJECTID";var LU;(function(e){e[e.size=22]="size",e[e.lineWidth=50]="lineWidth",e[e.maxSize=120]="maxSize",e[e.maxOutlineSize=80]="maxOutlineSize",e[e.tallSymbolWidth=20]="tallSymbolWidth"})(LU||(LU={}));function Roe(){const e=new Float32Array(6);return e[0]=1,e[3]=1,e}function fat(e){const t=new Float32Array(6);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function mat(e,t,r,i,n,o){const s=new Float32Array(6);return s[0]=e,s[1]=t,s[2]=r,s[3]=i,s[4]=n,s[5]=o,s}function gat(e,t){return new Float32Array(e,t,6)}function Doe(e,t,r,i){const n=t[i],o=t[i+1];e[i]=r[0]*n+r[2]*o+r[4],e[i+1]=r[1]*n+r[3]*o+r[5]}function yat(e,t,r,i=0,n=0,o=2){const s=n||t.length/o;for(let l=i;l<s;l++)Doe(e,t,r,l*o)}Object.freeze(Object.defineProperty({__proto__:null,create:Roe,clone:fat,fromValues:mat,createView:gat,transform:Doe,transformMany:yat},Symbol.toStringTag,{value:"Module"}));function vat(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function bat(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function _at(e,t,r,i,n,o,s){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=o,e[5]=s,e}function aF(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5];let a=r*o-i*n;return a?(a=1/a,e[0]=o*a,e[1]=-i*a,e[2]=-n*a,e[3]=r*a,e[4]=(n*l-o*s)*a,e[5]=(i*s-r*l)*a,e):null}function wat(e){return e[0]*e[3]-e[1]*e[2]}function Noe(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=r[0],u=r[1],p=r[2],h=r[3],m=r[4],y=r[5];return e[0]=i*c+o*u,e[1]=n*c+s*u,e[2]=i*p+o*h,e[3]=n*p+s*h,e[4]=i*m+o*y+l,e[5]=n*m+s*y+a,e}function jT(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=Math.sin(r),u=Math.cos(r);return e[0]=i*u+o*c,e[1]=n*u+s*c,e[2]=i*-c+o*u,e[3]=n*-c+s*u,e[4]=l,e[5]=a,e}function cF(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=r[0],u=r[1];return e[0]=i*c,e[1]=n*c,e[2]=o*u,e[3]=s*u,e[4]=l,e[5]=a,e}function M1(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=r[0],u=r[1];return e[0]=i,e[1]=n,e[2]=o,e[3]=s,e[4]=i*c+o*u+l,e[5]=n*c+s*u+a,e}function Foe(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=-r,e[3]=i,e[4]=0,e[5]=0,e}function zoe(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e[4]=0,e[5]=0,e}function uF(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=t[0],e[5]=t[1],e}function xat(e){return"mat2d("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}function Cat(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+1)}function kat(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e}function joe(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e}function Sat(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e}function Eat(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e}function Tat(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]}function Aat(e,t){const r=e[0],i=e[1],n=e[2],o=e[3],s=e[4],l=e[5],a=t[0],c=t[1],u=t[2],p=t[3],h=t[4],m=t[5],y=pa();return Math.abs(r-a)<=y*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-c)<=y*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(n-u)<=y*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(o-p)<=y*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-h)<=y*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(l-m)<=y*Math.max(1,Math.abs(l),Math.abs(m))}const Mat=Noe,Iat=joe;Object.freeze(Object.defineProperty({__proto__:null,copy:vat,identity:bat,set:_at,invert:aF,determinant:wat,multiply:Noe,rotate:jT,scale:cF,translate:M1,fromRotation:Foe,fromScaling:zoe,fromTranslation:uF,str:xat,frob:Cat,add:kat,subtract:joe,multiplyScalar:Sat,multiplyScalarAndAdd:Eat,exactEquals:Tat,equals:Aat,mul:Mat,sub:Iat},Symbol.toStringTag,{value:"Module"}));const RU=at("android");at("chrome")||RU&&RU>=4;vO();function Voe(e){return e&&"opacity"in e?e.opacity*Voe(e.parent):1}async function Pat(e,t){var _,x;if(!e)return;const r=e.sourceLayer,i=(_=ue(t)&&t.useSourceLayer?r:e.layer)!=null?_:r,n=Voe(i);if(ue(e.symbol)&&(!ue(t)||t.ignoreGraphicSymbol!==!0)){const S=e.symbol.type==="web-style"?await e.symbol.fetchSymbol({...t,cache:ue(t)?t.webStyleCache:null}):e.symbol.clone();return VM(S,null,n),S}const o=(x=ue(t)?t.renderer:null)!=null?x:i&&"renderer"in i?i.renderer:null;let s=o&&"getSymbolAsync"in o?await o.getSymbolAsync(e,t):null;if(!s)return;if(s=s.type==="web-style"?await s.fetchSymbol({...t,cache:ue(t)?t.webStyleCache:null}):s.clone(),!(o&&"visualVariables"in o&&o.visualVariables&&o.visualVariables.length))return VM(s,null,n),s;if("arcadeRequiredForVisualVariables"in o&&o.arcadeRequiredForVisualVariables&&(et(t)||et(t.arcade))){const S={...t};S.arcade=await xd(),t=S}const l=await ut(()=>Promise.resolve().then(function(){return zN}),void 0),a=[],c=[],u=[],p=[];for(const S of o.visualVariables)switch(S.type){case"color":a.push(S);break;case"opacity":c.push(S);break;case"rotation":p.push(S);break;case"size":S.target||u.push(S)}const h=!!a.length&&a[a.length-1],m=h?l.getColor(h,e,t):null,y=!!c.length&&c[c.length-1];let v=y?l.getOpacity(y,e,t):null;if(n!=null&&(v=v!=null?v*n:n),VM(s,m,v),u.length){const S=l.getAllSizes(u,e,t);await ort(s,S)}for(const S of p)srt(s,l.getRotationAngle(S,e,t),S.axis);return s}class $at{constructor(t,r){this._owner=r,this._properties={},this._afterDispatchHandle=null;for(const i in t){const n=t[i],o=new HJ(n,void 0,void 0,2,2);this._properties[i]={pool:o,acquired:[]}}this._afterDispatchHandle=pUe(()=>this._release())}destroy(){this._afterDispatchHandle&&(this._afterDispatchHandle.remove(),this._afterDispatchHandle=null);for(const t in this._properties){const r=this._properties[t];for(const i of r.acquired)d9(i)||r.pool.release(i);r.pool.destroy(),r.pool=null,r.acquired=null}this._properties=null,this._owner=null}get(t){const r=this._owner._get(t),i=this._properties[t];let n=i.pool.acquire();for(i.acquired.push(n);n===r;)i.acquired.push(n),n=i.pool.acquire();return n}_release(){for(const t in this._properties){const r=this._properties[t];let i=0;for(const n of r.acquired)d9(n)?r.acquired[i++]=n:r.pool.release(n);r.acquired.length=i}}}const Oat=at("mac")?"Meta":"Ctrl",VT={8:"Backspace",9:"Tab",13:"Enter",27:"Escape",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete"};for(let e=48;e<58;e++)VT[e]=String.fromCharCode(e);for(let e=1;e<25;e++)VT[111+e]=`F${e}`;for(let e=65;e<91;e++)VT[e]=[String.fromCharCode(e+32),String.fromCharCode(e)];function Lat(e){if(e.key!==void 0)return sm(e);const t=VT[e.keyCode];return Array.isArray(t)?e.shiftKey?t[1]:t[0]:t}function Rat(e){switch(e){case"Ctrl":case"Alt":case"Shift":case"Meta":case"Primary":return!0}return!1}class Dat{constructor(t,r=[]){this.eventType=t,this.keyModifiers=r}matches(t){if(t.type!==this.eventType)return!1;if(this.keyModifiers.length===0)return!0;const r=t.modifiers;for(const i of this.keyModifiers)if(!r.has(i))return!1;return!0}}const DU=ft.getLogger("esri.views.input.InputHandler");class to{constructor(t){this._manager=null,this._incoming={},this._outgoing={},this._incomingEventMatches=null,this._incomingEventTypes=null,this._outgoingEventTypes=null,this._hasSideEffects=t}get incomingEventMatches(){if(!this._incomingEventMatches){this._incomingEventMatches=[];for(const t in this._incoming){const r=this._incoming[t];for(const i of r)this._incomingEventMatches.push(i.match)}}return this._incomingEventMatches}get incomingEventTypes(){return this._incomingEventTypes||(this._incomingEventTypes=this.incomingEventMatches.map(t=>t.eventType)),this._incomingEventTypes}get outgoingEventTypes(){return this._outgoingEventTypes||(this._outgoingEventTypes=Object.keys(this._outgoing)),this._outgoingEventTypes}get hasSideEffects(){return this._hasSideEffects}get hasPendingInputs(){return!1}onInstall(t){this._manager?DU.error("This InputHandler has already been registered with an InputManager"):(t.setEventCallback(r=>this._handleEvent(r)),t.setUninstallCallback(()=>this._onUninstall()),this._manager=t)}onUninstall(){}registerIncoming(t,r,i){let n;typeof r=="function"?(i=r,n=[]):n=r||[];const o=typeof t=="string"?new Dat(t,n):t,s=()=>{this._incomingEventTypes=null,this._incomingEventMatches=null},l=u=>{const p=this._incoming[u.match.eventType];if(p){const h=p.indexOf(u);p.splice(h,1),s(),this._manager&&this._manager.updateDependencies()}},a=new Nat(o,i,{onPause:l,onRemove:l,onResume:u=>{const p=this._incoming[u.match.eventType];p&&!p.includes(u)&&(p.push(u),s(),this._manager&&this._manager.updateDependencies())}});let c=this._incoming[o.eventType];return c||(c=[],this._incoming[o.eventType]=c),c.push(a),s(),this._manager&&this._manager.updateDependencies(),a}registerOutgoing(t){if(this._outgoing[t])throw new Error("There is already a callback registered for this outgoing InputEvent: "+t);const r=new Fat(t,{onEmit:(i,n,o,s)=>{var l;(l=this._manager)==null||l.emit(i.eventType,n,o,s)},onRemove:i=>{var n;delete this._outgoing[i.eventType],(n=this._manager)==null||n.updateDependencies()}});return this._outgoing[t]=r,this._outgoingEventTypes=null,this._manager&&this._manager.updateDependencies(),r}startCapturingPointer(t){var r;(r=this._manager)==null||r.setPointerCapture(t,!0)}stopCapturingPointer(t){var r;(r=this._manager)==null||r.setPointerCapture(t,!1)}refreshHasPendingInputs(){var t;(t=this._manager)==null||t.refreshHasPendingInputs()}_onUninstall(){this._manager?(this.onUninstall(),this._manager=null):DU.error("This InputHandler is not registered with an InputManager")}_handleEvent(t){var i;const r=this._incoming[t.type];if(r){for(const n of r)if(n.match.matches(t)&&((i=n.callback)==null||i.call(n,t),t.shouldStopPropagation()))break}}}class Nat{constructor(t,r,i){this.match=t,this._callback=r,this._handler=i}pause(){this._handler.onPause(this)}resume(){this._handler.onResume(this)}remove(){this._handler.onRemove(this)}get callback(){return this._callback}}class Fat{constructor(t,r){this.eventType=t,this._removed=!1,this._handler=r}emit(t,r,i){this._removed||this._handler.onEmit(this,t,r,i)}remove(){this._removed=!0,this._handler.onRemove(this)}}class zat extends to{constructor(t){super(!0),this._onChange=t,this._value="mouse",this._x=null,this._y=null,this.registerIncoming("pointer-move",r=>{this._update(r.data)})}_update(t){const r=t.native.pointerType==="touch"?"touch":"mouse",{x:i,y:n}=t;r===this._value&&this._x===i&&this._y===n||(this._value=r,this._x=i,this._y=n,this._onChange(r,i,n))}}class CE{constructor(t){this._observable=new fD,this._value=t}get(){return Fr(this._observable),this._value}set(t){t!==this._value&&(this._value=t,this._observable.notify())}}class jat extends to{constructor(){super(!0),this._activeTouchPointerIds=new Set,this._multiTouchActive=new CE(!1),this._onPointerAdd=({data:t})=>{t.pointerType==="touch"&&(this._activeTouchPointerIds.add(t.native.pointerId),this._update())},this._onPointerRemove=({data:t})=>{t.pointerType==="touch"&&(this._activeTouchPointerIds.delete(t.native.pointerId),this._update())},this.registerIncoming("pointer-down",this._onPointerAdd),this.registerIncoming("pointer-up",this._onPointerRemove),this.registerIncoming("pointer-capture-lost",this._onPointerRemove),this.registerIncoming("pointer-cancel",this._onPointerRemove)}get multiTouchActive(){return this._multiTouchActive.get()}_update(){this._multiTouchActive.set(this._activeTouchPointerIds.size>1)}}let Rc=class extends rr{constructor(e){super(e),this._pointerCaptures=new Map,this._nameToGroup={},this._handlers=[],this._handlersPriority=[],this._currentPropagation=null,this._updateDependenciesAfterPropagation=!1,this._sourceEvents=new Set,this._keyModifiers=new Set,this._activeKeyModifiers=new Set,this._stoppedPropagationEventIds=new Set,this.primaryKey=Oat,this._latestPointerType="mouse",this._propertiesPool=new $at({latestPointerLocation:Bat},this),this.latestPointerLocation=null,this.test={timestamp:void 0,hasCurrentPropagation:()=>!!this._currentPropagation}}initialize(){this.eventSource.onEventReceived=this._onEventReceived.bind(this),this._installRecognizers()}destroy(){const e=Object.keys(this._nameToGroup);for(const t of e)this.uninstallHandlers(t);this.eventSource.destroy(),this._currentPropagation=null,this._propertiesPool.destroy()}get hasPendingInputs(){return this._handlers.some(e=>e.handler.hasPendingInputs)}get latestPointerType(){return this._latestPointerType}get multiTouchActive(){return this._multiTouchHandler.multiTouchActive}installHandlers(e,t,r=_h.INTERNAL){if(this._nameToGroup[e])return void ft.getLogger(this.declaredClass).error("There is already an InputHandler group registered under the name `"+e+"`");if(t.length===0)return void ft.getLogger(this.declaredClass).error("Can't register a group of zero handlers");const i={name:e,handlers:t.map(n=>({handler:n,active:!0,removed:!1,priorityIndex:0,groupPriority:r,eventCallback:null,uninstallCallback:null}))};this._nameToGroup[e]=i;for(let n=i.handlers.length-1;n>=0;n--){const o=i.handlers[n];this._handlers.push(o),o.handler.onInstall({updateDependencies:()=>{this.updateDependencies()},emit:(s,l,a,c,u)=>{this._emitInputEvent(o.priorityIndex+1,s,l,a,u,c)},setPointerCapture:(s,l)=>{this._setPointerCapture(i,o,s,l)},setEventCallback:s=>{o.eventCallback=s},setUninstallCallback:s=>{o.uninstallCallback=s},refreshHasPendingInputs:()=>{this.notifyChange("hasPendingInputs")}})}this.updateDependencies()}uninstallHandlers(e){const t=this._nameToGroup[e];t?(t.handlers.forEach(r=>{var i;r.removed=!0,(i=r.uninstallCallback)==null||i.call(r)}),delete this._nameToGroup[e],this._currentPropagation?this._currentPropagation.needsHandlerGarbageCollect=!0:this._garbageCollectRemovedHandlers()):ft.getLogger(this.declaredClass).error("There is no InputHandler group registered under the name `"+e+"`")}hasHandlers(e){return this._nameToGroup[e]!==void 0}updateDependencies(){if(this._currentPropagation)return void(this._updateDependenciesAfterPropagation=!0);this._updateDependenciesAfterPropagation=!1;const e=new Set,t=new Set;this._handlersPriority=[];for(let r=this._handlers.length-1;r>=0;r--){const i=this._handlers[r];i.priorityIndex=r,this._handlersPriority.push(i)}this._handlersPriority=this._sortHandlersPriority(this._handlersPriority);for(let r=this._handlersPriority.length-1;r>=0;r--){const i=this._handlersPriority[r];i.priorityIndex=r;let n=i.handler.hasSideEffects;if(!n){for(const o of i.handler.outgoingEventTypes)if(e.has(o)){n=!0;break}}if(n)for(const o of i.handler.incomingEventMatches){e.add(o.eventType);for(const s of o.keyModifiers)Rat(s)||t.add(s)}i.active=n}this._sourceEvents=e,this._keyModifiers=t,this._pointerCaptures.size>0&&this._sourceEvents.add("pointer-capture-lost"),this._keyModifiers.size>0&&(this._sourceEvents.add("key-down"),this._sourceEvents.add("key-up")),this.eventSource&&(this.eventSource.activeEvents=this._sourceEvents)}_setLatestPointer(e,t,r){this._latestPointerType=e;const i=this._get("latestPointerLocation");if(et(i)||i.x!==t||i.y!==r){const n=this._propertiesPool.get("latestPointerLocation");n.x=t,n.y=r,this._set("latestPointerLocation",n)}}_onEventReceived(e,t){if(e==="pointer-capture-lost"){const n=t;this._pointerCaptures.delete(n.native.pointerId)}this._updateKeyModifiers(e,t);const r=this.test.timestamp!=null?this.test.timestamp:t.native?t.native.timestamp:void 0,i=t.native?t.native.cancelable:void 0;this._emitInputEventFromSource(e,t,r,i)}_updateKeyModifiers(e,t){if(!t)return;let r=!1;const i=()=>{if(!r){const s=new Set;this._activeKeyModifiers.forEach(l=>{s.add(l)}),this._activeKeyModifiers=s,r=!0}},n=(s,l)=>{l&&!this._activeKeyModifiers.has(s)?(i(),this._activeKeyModifiers.add(s)):!l&&this._activeKeyModifiers.has(s)&&(i(),this._activeKeyModifiers.delete(s))};if(e==="key-down"||e==="key-up"){const s=t.key;this._keyModifiers.has(s)&&n(s,e==="key-down")}const o=t.native;n("Alt",!(!o||!o.altKey)),n("Ctrl",!(!o||!o.ctrlKey)),n("Shift",!(!o||!o.shiftKey)),n("Meta",!(!o||!o.metaKey)),n("Primary",this._activeKeyModifiers.has(this.primaryKey))}_installRecognizers(){this._latestPointerHandler=new zat((e,t,r)=>this._setLatestPointer(e,t,r)),this._multiTouchHandler=new jat,this.installHandlers("input-manager-logic",[this._latestPointerHandler,this._multiTouchHandler],_h.ALWAYS),this.recognizers.length>0&&this.installHandlers("default",this.recognizers,_h.INTERNAL)}_setPointerCapture(e,t,r,i){const n=e.name+"-"+t.priorityIndex,o=this._pointerCaptures.get(r.pointerId)||new Set;this._pointerCaptures.set(r.pointerId,o),i?(o.add(n),o.size===1&&this.eventSource&&this.eventSource.setPointerCapture(r,!0)):o.has(n)&&(o.delete(n),o.size===0&&(this._pointerCaptures.delete(r.pointerId),this.eventSource&&this.eventSource.setPointerCapture(r,!1)))}_garbageCollectRemovedHandlers(){this._handlers=this._handlers.filter(e=>!e.removed),this.updateDependencies()}_emitInputEventFromSource(e,t,r,i){this._emitInputEvent(0,e,t,r,i)}_emitInputEvent(e,t,r,i,n,o){const s=i!==void 0?i:this._currentPropagation?this._currentPropagation.timestamp:performance.now(),l=n!==void 0&&n,a={event:new Vat(t,r,s,o||this._activeKeyModifiers,l),priorityIndex:e};this._currentPropagation?this._currentPropagation.events.push(a):this._doNewPropagation(a)}_doNewPropagation(e){this._currentPropagation={events:new QS,currentHandler:null,needsHandlerGarbageCollect:!1,timestamp:e.event.timestamp},this._currentPropagation.events.push(e),this._continuePropagation()}_continuePropagation(){var t,r;const e=Hl(this._currentPropagation);for(;e.events.length>0;){const{event:i,priorityIndex:n}=e.events.pop(),o=i.data&&i.data.eventId;if(!(o!=null&&this._stoppedPropagationEventIds.has(o)))for(e.currentHandler=this._handlersPriority[n];e.currentHandler;){if(e.currentHandler.removed)e.needsHandlerGarbageCollect=!0;else{if(e.currentHandler.active&&!i.shouldStopPropagation()&&((r=(t=e.currentHandler).eventCallback)==null||r.call(t,i)),i.shouldStopPropagation()){o!=null&&this._stoppedPropagationEventIds.add(o);break}if(i.shouldPausePropagation(()=>this._continuePropagation()))return void this._pausePropagation({event:i,priorityIndex:e.currentHandler.priorityIndex+1})}e.currentHandler=this._handlersPriority[e.currentHandler.priorityIndex+1]}}e.needsHandlerGarbageCollect&&this._garbageCollectRemovedHandlers(),this.hasPendingInputs||this._stoppedPropagationEventIds.clear(),this._currentPropagation=null,this._updateDependenciesAfterPropagation&&this.updateDependencies()}_pausePropagation(e){const t=new QS;t.push(e);const r=this._currentPropagation;if(r){for(;r.events.length;)t.push(r.events.pop());r.events=t,r.currentHandler=null}}_compareHandlerPriority(e,t){if(e.handler.hasSideEffects!==t.handler.hasSideEffects)return e.handler.hasSideEffects?1:-1;if(e.groupPriority!==t.groupPriority)return e.groupPriority>t.groupPriority?-1:1;for(const r of e.handler.incomingEventMatches)for(const i of t.handler.incomingEventMatches){if(r.eventType!==i.eventType)continue;const n=r.keyModifiers.filter(o=>i.keyModifiers.includes(o));if(n.length===r.keyModifiers.length!=(n.length===i.keyModifiers.length))return r.keyModifiers.length>i.keyModifiers.length?-1:1}return e.priorityIndex>t.priorityIndex?-1:1}_sortHandlersPriority(e){const t=[];for(const r of e){let i=0;for(;i<t.length&&this._compareHandlerPriority(r,t[i])>=0;)i++;t.splice(i,0,r)}return t}get debug(){const e=t=>{const r=this._setPointerCapture;this._setPointerCapture=()=>{},t(),this._setPointerCapture=r};return{injectEvent:(t,r)=>{e(()=>{this._onEventReceived(t,r)})},disablePointerCapture:e}}};d([f({readOnly:!0})],Rc.prototype,"hasPendingInputs",null),d([f({constructOnly:!0})],Rc.prototype,"eventSource",void 0),d([f({constructOnly:!0})],Rc.prototype,"recognizers",void 0),d([f()],Rc.prototype,"_latestPointerType",void 0),d([f()],Rc.prototype,"latestPointerType",null),d([f()],Rc.prototype,"multiTouchActive",null),d([f({readOnly:!0})],Rc.prototype,"latestPointerLocation",void 0),Rc=d([se("esri.views.input.InputManager")],Rc);class Vat{constructor(t,r,i,n,o){this.type=t,this.data=r,this.timestamp=i,this.modifiers=n,this.cancelable=o,this._propagationState=Qp.NONE,this._resumeCallback=null}stopPropagation(){this._propagationState|=Qp.STOPPED}shouldStopPropagation(){return(this._propagationState&Qp.STOPPED)!=0}async(t){this._propagationState|=Qp.PAUSED;const r=(i,n)=>{this._propagationState&=~Qp.PAUSED;const o=this._resumeCallback;if(this._resumeCallback=null,o&&o(),n)throw i;return i};return(typeof t=="function"?t():t).then(i=>r(i,!1),i=>r(i,!0))}shouldPausePropagation(t){return!!(this._propagationState&Qp.PAUSED)&&(this._resumeCallback=t,!0)}preventDefault(){this.data.native.preventDefault()}}var Qp;(function(e){e[e.NONE=0]="NONE",e[e.STOPPED=1]="STOPPED",e[e.PAUSED=2]="PAUSED"})(Qp||(Qp={}));const _h={ALWAYS:1,DEFAULT:0,TOOL:-1,WIDGET:-2,INTERNAL:-3};class Bat{}function NU(e){return e&&typeof e.highlight=="function"}const BT={iconZoom:"esri-icon-zoom-in-magnifying-glass",iconTrash:"esri-icon-trash",iconBrowseClusteredFeatures:"esri-icon-table"},Dm=new k0({id:"zoom-to-feature",title:"{messages.zoom}",className:BT.iconZoom}),FU=new k0({id:"remove-selected-feature",title:"{messages.remove}",className:BT.iconTrash}),Ky=new k0({id:"zoom-to-clustered-features",title:"{messages.zoom}",className:BT.iconZoom}),Zy=new k0({id:"browse-clustered-features",title:"{messages.browseClusteredFeatures}",className:BT.iconBrowseClusteredFeatures}),Uat="esri.widgets.Popup.PopupViewModel",kE=ft.getLogger(Uat),Wat=e=>{const{event:t,view:r}=e,{action:i}=t,n=r&&r.popup;if(!i)return Promise.reject(new ze("trigger-action:missing-arguments","Event has no action"));if(!n)return Promise.reject(new ze("trigger-action:missing-arguments","view.popup is missing"));const{disabled:o,id:s}=i;if(!s)return Promise.reject(new ze("trigger-action:invalid-action","action.id is missing"));if(o)return Promise.reject(new ze("trigger-action:invalid-action","Action is disabled"));if(s===Dm.id)return Gat(n.viewModel).catch(M$);if(s===Ky.id)return qat(n.viewModel);if(s===Zy.id)return n.featureMenuOpen=!n.featureMenuOpen,n.viewModel.browseClusterEnabled=!n.viewModel.browseClusterEnabled,Promise.resolve();if(n.viewModel.browseClusterEnabled=!1,s===FU.id){n.close();const{selectedFeature:l}=n;if(!l)return Promise.reject(new ze(`trigger-action:${FU.id}`,"selectedFeature is required",{selectedFeature:l}));const{sourceLayer:a}=l;return a?a.remove(l):r.graphics.remove(l),Promise.resolve()}return Promise.resolve()};function Boe(e){const{selectedFeature:t,location:r,view:i}=e;return i?i.type==="3d"?t||r:e.get("selectedFeature.geometry")||r:null}function pm(e){var t,r;return(e==null?void 0:e.isAggregate)&&((r=(t=e==null?void 0:e.sourceLayer)==null?void 0:t.featureReduction)==null?void 0:r.type)==="cluster"}async function Hat(e,t){if((t==null?void 0:t.type)!=="3d"||!e||e.declaredClass!=="esri.Graphic")return!0;const r=t.getViewForGraphic(e);if(r&&"whenGraphicBounds"in r){let i;try{i=await r.whenGraphicBounds(e,{useViewElevation:!0})}catch{}return!i||!i.boundingBox||i.boundingBox[0]===i.boundingBox[3]&&i.boundingBox[1]===i.boundingBox[4]&&i.boundingBox[2]===i.boundingBox[5]}return!0}async function Gat(e){const{location:t,selectedFeature:r,view:i,zoomFactor:n}=e,o=Boe(e);if(!o){const c=new ze("zoom-to:invalid-target-or-view","Cannot zoom to location without a target and view.",{target:o,view:i});throw kE.error(c),c}const s=i.scale/n,l=e.get("selectedFeature.geometry")||t,a=l&&l.type==="point"&&await Hat(r,i);Dm.active=!0,Dm.disabled=!0;try{await e.zoomTo({target:{target:o,scale:a?s:void 0}})}catch{const u=new ze("zoom-to:invalid-graphic","Could not zoom to the location of the graphic.",{graphic:r});kE.error(u)}finally{Dm.active=!1,Dm.disabled=!1,e.zoomToLocation=null,a&&(e.location=l)}}async function qat(e){const{selectedFeature:t,view:r}=e;if((r==null?void 0:r.type)!=="2d"){const l=new ze("zoomToCluster:invalid-view","View must be 2d MapView.",{view:r});throw kE.error(l),l}if(!pm(t)){const l=new ze("zoomToCluster:invalid-selectedFeature","Selected feature must represent an aggregate/cluster graphic.",{selectedFeature:t});throw kE.error(l),l}const i=t.sourceLayer,n=await r.whenLayerView(i),o=n.createQuery();o.aggregateIds=[t.getObjectId()],Ky.active=!0,Ky.disabled=!0;const{extent:s}=await n.queryExtent(o);await e.zoomTo({target:s}),Ky.active=!1,Ky.disabled=!1}async function Yat(e){const{selectedFeature:t,view:r}=e,i=t.sourceLayer,n=await r.whenLayerView(i),o=n.createQuery();o.aggregateIds=[t.getObjectId()];const{extent:s}=await n.queryExtent(o);e.selectedClusterBoundaryFeature.geometry=s,r.graphics.add(e.selectedClusterBoundaryFeature)}async function Kat(e){const{selectedFeature:t,view:r}=e,i=t.sourceLayer,n=await r.whenLayerView(i),o=n.createQuery();o.aggregateIds=[t.getObjectId()],Zy.active=!0,Zy.disabled=!0;const{features:s}=await n.queryFeatures(o);Zy.active=!1,Zy.disabled=!1,r.popup.open({features:[t].concat(s),featureMenuOpen:!0})}function Zat(e){const t=e.features.filter(r=>pm(r));t.length&&(e.features=t)}const Uoe=e=>{let t=class extends e{constructor(...r){super(...r),this.goToOverride=null,this.view=null}callGoTo(r){const{view:i}=this;return this.goToOverride?this.goToOverride(i,r):i.goTo(r.target,r.options)}};return d([f()],t.prototype,"goToOverride",void 0),d([f()],t.prototype,"view",void 0),t=d([se("esri.widgets.support.GoTo")],t),t},fw=dr.ofType({key:"type",defaultKeyValue:"button",base:X3,typeMap:{button:k0,toggle:ree}}),Qat=()=>[Dm.clone()],Jat=()=>[Ky.clone(),Zy.clone()];let Zr=class extends Uoe(Ooe){constructor(e){super(e),this._handles=new hs,this._pendingPromises=new Set,this._fetchFeaturesController=null,this._selectedClusterFeature=null,this.featurePage=null,this.actions=new fw,this.activeFeature=null,this.defaultPopupTemplateEnabled=!1,this.autoCloseEnabled=!1,this.autoOpenEnabled=!0,this.browseClusterEnabled=!1,this.content=null,this.featuresPerPage=20,this.featureViewModelAbilities=null,this.featureViewModels=[],this.highlightEnabled=!0,this.includeDefaultActions=!0,this.selectedClusterBoundaryFeature=new Hs({symbol:new qh({outline:{width:1.5,color:"cyan"},style:"none"})}),this.title=null,this.updateLocationEnabled=!1,this.view=null,this.visible=!1,this.zoomFactor=4,this.zoomToLocation=null}get isLoadingFeature(){return this.featureViewModels.some(e=>e.waitingForContent)}initialize(){this._handles.add([Ot(()=>[this.autoOpenEnabled,this.view],()=>this._autoOpenEnabledChange()),this.on("view-change",()=>this._autoClose()),Ot(()=>[this.highlightEnabled,this.selectedFeature,this.visible,this.view],()=>this._highlightSelectedFeature()),Ot(()=>[this.highlightEnabled,this.activeFeature,this.visible,this.view],()=>this._highlightActiveFeature()),Ot(()=>{var e,t;return(t=(e=this.view)==null?void 0:e.animation)==null?void 0:t.state},e=>this._animationStateChange(e)),Ot(()=>this.location,e=>this._locationChange(e)),Ot(()=>this.selectedFeature,e=>this._selectedFeatureChange(e)),Ot(()=>[this.selectedFeatureIndex,this.featureCount,this.featuresPerPage],()=>this._selectedFeatureIndexChange()),Ot(()=>[this.featurePage,this.selectedFeatureIndex,this.featureCount,this.featuresPerPage,this.featureViewModels],()=>this._setGraphicOnFeatureViewModels()),Ot(()=>this.featureViewModels,()=>this._featureViewModelsChange()),this.on("trigger-action",e=>Wat({event:e,view:this.view})),ca(()=>!this.waitingForResult,()=>this._waitingForResultChange(),gg),Ot(()=>{var e,t;return[this.features,(e=this.view)==null?void 0:e.map,(t=this.view)==null?void 0:t.spatialReference]},()=>this._updateFeatureVMs()),Ot(()=>{var e;return(e=this.view)==null?void 0:e.scale},()=>this._viewScaleChange()),ca(()=>!this.visible,()=>this.browseClusterEnabled=!1),Ot(()=>this.browseClusterEnabled,e=>e?this.enableClusterBrowsing():this.disableClusterBrowsing())])}destroy(){this._cancelFetchingFeatures(),this._handles.destroy(),this._handles=null,this._pendingPromises.clear(),this.browseClusterEnabled=!1,this.view=null}get active(){return!(!this.visible||this.waitingForResult)}get allActions(){const e=this._get("allActions")||new fw;e.removeAll();const{actions:t,defaultActions:r,defaultPopupTemplateEnabled:i,includeDefaultActions:n,selectedFeature:o}=this,s=n?r.concat(t):t,l=o&&(typeof o.getEffectivePopupTemplate=="function"&&o.getEffectivePopupTemplate(i)||o.popupTemplate),a=l&&l.actions,c=l&&l.overwriteActions?a:a?a.concat(s):s;return c&&c.filter(Boolean).forEach(u=>e.add(u)),e}get defaultActions(){const e=this._get("defaultActions")||new fw;return e.removeAll(),e.addMany(pm(this.selectedFeature)?Jat():Qat()),e}get featureCount(){return this.features.length}get features(){return this._get("features")||[]}set features(e){const t=e||[];this._set("features",t);const{pendingPromisesCount:r,promiseCount:i,selectedFeatureIndex:n}=this,o=i&&t.length;o&&r&&n===-1?this.selectedFeatureIndex=0:o&&n!==-1||(this.selectedFeatureIndex=t.length?0:-1)}get location(){return this._get("location")||null}set location(e){const t=this.get("view.spatialReference.isWebMercator");e&&e.get("spatialReference.isWGS84")&&t&&(e=yh(e)),this._set("location",e)}get pendingPromisesCount(){return this._pendingPromises.size}get waitingForResult(){return!(!(!!this._fetchFeaturesController||this.pendingPromisesCount>0)||this.featureCount!==0)}get promiseCount(){return this.promises.length}get promises(){return this._get("promises")||[]}set promises(e){if(this._pendingPromises.clear(),this.features=[],!Array.isArray(e)||!e.length)return this._set("promises",[]),void this.notifyChange("pendingPromisesCount");this._set("promises",e),(e=e.slice(0)).forEach(t=>{this._pendingPromises.add(t);const r=n=>{this._pendingPromises.has(t)&&this._updateFeatures(n),this._updatePendingPromises(t)},i=()=>this._updatePendingPromises(t);t.then(r,i)}),this.notifyChange("pendingPromisesCount")}get selectedFeature(){const{features:e,selectedFeatureIndex:t}=this;return t===-1?null:e[t]||null}get selectedFeatureIndex(){const e=this._get("selectedFeatureIndex");return typeof e=="number"?e:-1}set selectedFeatureIndex(e){const{featureCount:t}=this;e=isNaN(e)||e<-1||!t?-1:(e+t)%t,this.activeFeature=null,this._set("selectedFeatureIndex",e)}get selectedFeatureViewModel(){return this.featureViewModels[this.selectedFeatureIndex]||null}get state(){return this.get("view.ready")?"ready":"disabled"}centerAtLocation(){const{view:e}=this,t=Boe(this);return t?this.callGoTo({target:{target:t,scale:e.scale}}):Promise.reject(new ze("center-at-location:invalid-target-or-view","Cannot center at a location without a target and view.",{target:t,view:e}))}zoomTo(e){return this.callGoTo(e)}clear(){this.set({promises:[],features:[],content:null,title:null,location:null,activeFeature:null})}fetchFeatures(e,t){const{view:r}=this;if(!r||!e)throw new ze("fetch-features:invalid-screenpoint-or-view","Cannot fetch features without a screenPoint and view.",{screenPoint:e,view:r});return r.fetchPopupFeatures(e,{event:t&&t.event,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,signal:t&&t.signal})}open(e){const t={updateLocationEnabled:!1,promises:[],fetchFeatures:!1,...e,visible:!0},{fetchFeatures:r}=t;delete t.fetchFeatures,r&&this._setFetchFeaturesPromises(t.location);const i=["actionsMenuOpen","collapsed","featureMenuOpen"];for(const n of i)delete t[n];this.set(t)}triggerAction(e){const t=this.allActions.getItemAt(e);t&&!t.disabled&&this.emit("trigger-action",{action:t})}next(){return this.selectedFeatureIndex=this.selectedFeatureIndex+1,this}previous(){return this.selectedFeatureIndex=this.selectedFeatureIndex-1,this}disableClusterBrowsing(){Zat(this),this._clearBrowsedClusterGraphics()}async enableClusterBrowsing(){const{view:e,selectedFeature:t}=this;(e==null?void 0:e.type)==="2d"?pm(t)?(await Yat(this),await Kat(this)):ft.getLogger(this.declaredClass).warn("enableClusterBrowsing:invalid-selectedFeature: Selected feature must represent an aggregate/cluster graphic.",t):ft.getLogger(this.declaredClass).warn("enableClusterBrowsing:invalid-view: View must be 2d MapView.",t)}_animationStateChange(e){this.zoomToLocation||(Dm.disabled=e==="waiting-for-target")}_clearBrowsedClusterGraphics(){var t;const e=(t=this.view)==null?void 0:t.graphics;e&&(e.remove(this.selectedClusterBoundaryFeature),e.remove(this._selectedClusterFeature)),this._selectedClusterFeature=null,this.selectedClusterBoundaryFeature.geometry=null}_viewScaleChange(){if(pm(this.selectedFeature))return this.browseClusterEnabled=!1,this.visible=!1,void this.clear();this.browseClusterEnabled&&(this.features=[this.selectedFeature])}_locationChange(e){const{selectedFeature:t,updateLocationEnabled:r}=this;r&&e&&(!t||t.geometry)&&this.centerAtLocation()}_selectedFeatureIndexChange(){this.featurePage=this.featureCount>1?Math.floor(this.selectedFeatureIndex/this.featuresPerPage)+1:null}_featureViewModelsChange(){this.featurePage=this.featureCount>1?1:null}_setGraphicOnFeatureViewModels(){const{features:e,featureCount:t,featurePage:r,featuresPerPage:i,featureViewModels:n}=this;if(r===null)return;const o=((r-1)*i+t)%t,s=o+i;n.slice(o,s).forEach((l,a)=>{l&&!l.graphic&&(l.graphic=e[o+a])})}async _selectedFeatureChange(e){if(!e)return;const{location:t,updateLocationEnabled:r,view:i}=this;if(this.browseClusterEnabled)return this._selectedClusterFeature&&(i.graphics.remove(this._selectedClusterFeature),this._selectedClusterFeature=null),pm(e)?void 0:(e.symbol=await Pat(e),this._selectedClusterFeature=e,void i.graphics.add(this._selectedClusterFeature));!r&&t||!e.geometry?r&&!e.geometry&&this.centerAtLocation().then(()=>{this.location=i.center.clone()}):this.location=this._getPointFromGeometry(e.geometry)}_waitingForResultChange(){!this.featureCount&&this.promises&&(this.visible=!1)}_setFetchFeaturesPromises(e){return this._fetchFeaturesWithController(this._getScreenPoint(e||this.location)).then(t=>{const{clientOnlyGraphics:r,promisesPerLayerView:i}=t,n=Promise.resolve(r),o=i.map(s=>s.promise);this.promises=[n,...o]})}_destroyFeatureVMs(){this.featureViewModels.forEach(e=>e&&!e.destroyed&&e.destroy()),this._set("featureViewModels",[])}_updateFeatureVMs(){const{selectedFeature:e,features:t,featureViewModels:r}=this;if(pm(e)||(this.browseClusterEnabled=!1),this._destroyFeatureVMs(),!t||!t.length)return;const i=r.slice(0),n=[];t.forEach((o,s)=>{var a,c;if(!o)return;let l=null;if(i.some((u,p)=>(u&&u.graphic===o&&(l=u,i.splice(p,1)),!!l)),l)n[s]=l;else{const u=new lF({abilities:this.featureViewModelAbilities,defaultPopupTemplateEnabled:this.defaultPopupTemplateEnabled,spatialReference:(a=this.view)==null?void 0:a.spatialReference,graphic:o===e?o:null,map:(c=this.view)==null?void 0:c.map,view:this.view});n[s]=u}}),i.forEach(o=>o&&!o.destroyed&&o.destroy()),this._set("featureViewModels",n)}_getScreenPoint(e){const{view:t}=this;return t&&e&&typeof t.toScreen=="function"?t.toScreen(e):null}_autoOpenEnabledChange(){const e="auto-fetch-features",{_handles:t,autoOpenEnabled:r}=this;if(t.remove(e),r&&this.view){const i=this.view.on("click",n=>{n.pointerType==="mouse"&&n.button!==0||this._fetchFeaturesAndOpen(n)},_h.WIDGET);t.add(i,e)}}_cancelFetchingFeatures(){const e=this._fetchFeaturesController;e&&e.abort(),this._fetchFeaturesController=null,this.notifyChange("waitingForResult")}_fetchFeaturesWithController(e,t){this._cancelFetchingFeatures();const r=new AbortController,{signal:i}=r;this._fetchFeaturesController=r,this.notifyChange("waitingForResult");const n=this.fetchFeatures(e,{signal:i,event:t});return n.catch(()=>{}).then(()=>{this._fetchFeaturesController=null,this.notifyChange("waitingForResult")}),n}_fetchFeaturesAndOpen(e){const{screenPoint:t,mapPoint:r}=e,{view:i}=this;this._fetchFeaturesWithController(t,e).then(n=>{const{clientOnlyGraphics:o,promisesPerLayerView:s,location:l}=n,a=[Promise.resolve(o),...s.map(c=>c.promise)];return i.popup.open({location:l||r,promises:a}),n})}_updatePendingPromises(e){e&&this._pendingPromises.has(e)&&(this._pendingPromises.delete(e),this.notifyChange("pendingPromisesCount"))}_autoClose(){this.autoCloseEnabled&&(this.visible=!1)}_getPointFromGeometry(e){var t;return et(e)?null:e.type==="point"?e:e.type==="extent"?e.center:e.type==="polygon"?e.centroid:e.type==="multipoint"||e.type==="polyline"?(t=e.extent)==null?void 0:t.center:null}async _getLayerView(e,t){return await e.when(),e.whenLayerView(t)}_getHighlightLayer(e){const{layer:t,sourceLayer:r}=e;return r&&"layer"in r&&r.layer?r.layer:(r==null?void 0:r.type)==="map-notes"||(r==null?void 0:r.type)==="subtype-group"?r:t}_getHighlightTarget(e,t){const r=t.type==="imagery"?void 0:"objectIdField"in t?t.objectIdField||hat:null,i=e.attributes;return i&&r&&i[r]||e}async _highlightActiveFeature(){const e="highlight-active-feature";this._handles.remove(e);const{highlightEnabled:t,view:r,activeFeature:i,visible:n}=this;if(!(i&&r&&t&&n))return;const o=this._getHighlightLayer(i);if(!(o&&o instanceof Rh))return;const s=this._getLayerView(r,o);this._highlightActiveFeaturePromise=s;const l=await s;if(!(l&&NU(l)&&this._highlightActiveFeaturePromise===s&&this.activeFeature&&this.highlightEnabled))return;const a=l.highlight(this._getHighlightTarget(i,o));this._handles.add(a,e)}async _highlightSelectedFeature(){const e="highlight-selected-feature";this._handles.remove(e);const{selectedFeature:t,highlightEnabled:r,view:i,visible:n}=this;if(!(t&&i&&r&&n))return;const o=this._getHighlightLayer(t);if(!(o&&o instanceof Rh))return;const s=this._getLayerView(i,o);this._highlightSelectedFeaturePromise=s;const l=await s;if(!(l&&NU(l)&&this._highlightSelectedFeaturePromise===s&&this.selectedFeature&&this.highlightEnabled&&this.visible))return;const a=l.highlight(this._getHighlightTarget(t,o));this._handles.add(a,e)}_updateFeatures(e){const{features:t}=this;if(!e||!e.length)return;if(!t.length)return void(this.features=e);const r=e.filter(i=>!t.includes(i));this.features=t.concat(r)}};d([f()],Zr.prototype,"featurePage",void 0),d([f()],Zr.prototype,"isLoadingFeature",null),d([f({type:fw})],Zr.prototype,"actions",void 0),d([f({readOnly:!0})],Zr.prototype,"active",null),d([f()],Zr.prototype,"activeFeature",void 0),d([f({readOnly:!0})],Zr.prototype,"allActions",null),d([f({type:Boolean})],Zr.prototype,"defaultPopupTemplateEnabled",void 0),d([f()],Zr.prototype,"autoCloseEnabled",void 0),d([f()],Zr.prototype,"autoOpenEnabled",void 0),d([f()],Zr.prototype,"browseClusterEnabled",void 0),d([f()],Zr.prototype,"content",void 0),d([f({type:fw,readOnly:!0})],Zr.prototype,"defaultActions",null),d([f({readOnly:!0})],Zr.prototype,"featureCount",null),d([f()],Zr.prototype,"features",null),d([f()],Zr.prototype,"featuresPerPage",void 0),d([f()],Zr.prototype,"featureViewModelAbilities",void 0),d([f({readOnly:!0})],Zr.prototype,"featureViewModels",void 0),d([f()],Zr.prototype,"highlightEnabled",void 0),d([f()],Zr.prototype,"includeDefaultActions",void 0),d([f({type:Nr})],Zr.prototype,"location",null),d([f({readOnly:!0})],Zr.prototype,"pendingPromisesCount",null),d([f({readOnly:!0})],Zr.prototype,"selectedClusterBoundaryFeature",void 0),d([f({readOnly:!0})],Zr.prototype,"waitingForResult",null),d([f({readOnly:!0})],Zr.prototype,"promiseCount",null),d([f()],Zr.prototype,"promises",null),d([f({value:null,readOnly:!0})],Zr.prototype,"selectedFeature",null),d([f({value:-1})],Zr.prototype,"selectedFeatureIndex",null),d([f({readOnly:!0})],Zr.prototype,"selectedFeatureViewModel",null),d([f({readOnly:!0})],Zr.prototype,"state",null),d([f()],Zr.prototype,"title",void 0),d([f()],Zr.prototype,"updateLocationEnabled",void 0),d([f()],Zr.prototype,"view",void 0),d([f()],Zr.prototype,"visible",void 0),d([f()],Zr.prototype,"zoomFactor",void 0),d([f()],Zr.prototype,"zoomToLocation",void 0),d([f()],Zr.prototype,"centerAtLocation",null),Zr=d([se("esri.widgets.Popup.PopupViewModel")],Zr);const Woe=Zr,zU="selected-index",Xat=0,jU="popup-spinner",Et={calciteThemeLight:"calcite-theme-light",calciteThemeDark:"calcite-theme-dark",iconLeftTriangleArrow:"esri-icon-left-triangle-arrow",iconRightTriangleArrow:"esri-icon-right-triangle-arrow",iconDockToTop:"esri-icon-maximize",iconDockToBottom:"esri-icon-dock-bottom",iconDockToLeft:"esri-icon-dock-left",iconDockToRight:"esri-icon-dock-right",iconClose:"esri-icon-close",iconUndock:"esri-icon-minimize",iconCheckMark:"esri-icon-check-mark",iconLoading:"esri-icon-loading-indicator",iconDefaultAction:"esri-icon-default-action",iconActionsMenu:"esri-icon-handle-horizontal",rotating:"esri-rotating",base:"esri-popup",widget:"esri-widget",main:"esri-popup__main-container",loadingContainer:"esri-popup__loading-container",isCollapsible:"esri-popup--is-collapsible",isCollapsed:"esri-popup--is-collapsed",shadow:"esri-popup--shadow",isDocked:"esri-popup--is-docked",isDockedTopLeft:"esri-popup--is-docked-top-left",isDockedTopCenter:"esri-popup--is-docked-top-center",isDockedTopRight:"esri-popup--is-docked-top-right",isDockedBottomLeft:"esri-popup--is-docked-bottom-left",isDockedBottomCenter:"esri-popup--is-docked-bottom-center",isDockedBottomRight:"esri-popup--is-docked-bottom-right",alignTopCenter:"esri-popup--aligned-top-center",alignBottomCenter:"esri-popup--aligned-bottom-center",alignTopLeft:"esri-popup--aligned-top-left",alignBottomLeft:"esri-popup--aligned-bottom-left",alignTopRight:"esri-popup--aligned-top-right",alignBottomRight:"esri-popup--aligned-bottom-right",isFeatureMenuOpen:"esri-popup--feature-menu-open",isActionsMenuOpen:"esri-popup--actions-menu-open",hasFeatureUpdated:"esri-popup--feature-updated",header:"esri-popup__header",headerButtons:"esri-popup__header-buttons",headerContainer:"esri-popup__header-container",headerContainerButton:"esri-popup__header-container--button",headerTitle:"esri-popup__header-title",content:"esri-popup__content",contentHasFlows:"esri-content--has-flows",contentFlowItem:"esri-content__flow-item",footer:"esri-popup__footer",footerHasPagination:"esri-popup__footer--has-pagination",footerHasActions:"esri-popup__footer--has-actions",footerHasActionsMenu:"esri-popup__footer--has-actions-menu",button:"esri-popup__button",buttonDisabled:"esri-popup__button--disabled",buttonDock:"esri-popup__button--dock",icon:"esri-popup__icon",iconDock:"esri-popup__icon--dock-icon",inlineActionsContainer:"esri-popup__inline-actions-container",actionsMenuButton:"esri-popup__actions-menu-button",actions:"esri-popup__actions",action:"esri-popup__action",actionImage:"esri-popup__action-image",actionText:"esri-popup__action-text",actionToggle:"esri-popup__action-toggle",actionToggleOn:"esri-popup__action-toggle--on",actionExit:"esri-popup__action--exit",pointer:"esri-popup__pointer",pointerDirection:"esri-popup__pointer-direction",navigation:"esri-popup__navigation",paginationPrevious:"esri-popup__pagination-previous",paginationNext:"esri-popup__pagination-next",paginationPreviousIconLTR:"esri-popup__pagination-previous-icon",paginationPreviousIconRTL:"esri-popup__pagination-previous-icon--rtl",paginationNextIconLTR:"esri-popup__pagination-next-icon",paginationNextIconRTL:"esri-popup__pagination-next-icon--rtl",featureMenu:"esri-popup__feature-menu",featureMenuList:"esri-popup__feature-menu-list",featureMenuItem:"esri-popup__feature-menu-item",featureMenuViewport:"esri-popup__feature-menu-viewport",featureMenuHeader:"esri-popup__feature-menu-header",featureMenuNote:"esri-popup__feature-menu-note",featureMenuSelected:"esri-popup__feature-menu-item--selected",featureMenuButton:"esri-popup__feature-menu-button",featureMenuTitle:"esri-popup__feature-menu-title",featureMenuObserver:"esri-popup__feature-menu-observer",featureMenuLoader:"esri-popup__feature-menu-loader",collapseButton:"esri-popup__collapse-button",collapseIcon:"esri-popup__collapse-icon"},VU={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},BU="esri-popup";function ku(e,t){return t===void 0?`${BU}__${e}`:`${BU}__${e}-${t}`}const UU={closeButton:!0,featureNavigation:!0};let ur=class extends Poe(Ho){constructor(e,t){super(e,t),this._blurClose=!1,this._blurContainer=!1,this._containerNode=null,this._mainContainerNode=null,this._featureMenuNode=null,this._actionsMenuNode=null,this._focusClose=!1,this._focusContainer=!1,this._focusDockButton=!1,this._focusFeatureMenuButton=!1,this._focusActionsMenuButton=!1,this._focusFirstFeature=!1,this._focusFirstAction=!1,this._handles=new hs,this._pointerOffsetInPx=16,this._spinner=null,this._feature=null,this._featureMenuIntersectionObserverCallback=([r])=>{r!=null&&r.isIntersecting&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._displaySpinnerThrottled=mv(()=>this._displaySpinner(),Xat),this._exitRelatedRecordsActions=new WeakMap,this._flowItems=new dr,this.alignment="auto",this.collapsed=!1,this.collapseEnabled=!0,this.dockEnabled=!1,this.featureMenuOpen=!1,this.headingLevel=2,this.maxInlineActions=3,this.messages=null,this.messagesCommon=null,this.spinnerEnabled=!0,this.viewModel=new Woe,this.visibleElements={...UU},this._addSelectedFeatureIndexHandle(),this.addHandles([Ot(()=>{var r;return(r=this.viewModel)==null?void 0:r.screenLocation},()=>this._positionContainer()),Ot(()=>{var r;return[(r=this.viewModel)==null?void 0:r.active,this.dockEnabled]},()=>this._toggleScreenLocationEnabled()),Ot(()=>{var r;return(r=this.viewModel)==null?void 0:r.screenLocation},(r,i)=>{!!r!=!!i&&this.reposition()}),Ot(()=>{var r,i,n,o,s,l;return[(i=(r=this.viewModel)==null?void 0:r.view)==null?void 0:i.padding,(o=(n=this.viewModel)==null?void 0:n.view)==null?void 0:o.size,(s=this.viewModel)==null?void 0:s.active,(l=this.viewModel)==null?void 0:l.location,this.alignment]},()=>this.reposition()),Ot(()=>this.spinnerEnabled,r=>this._spinnerEnabledChange(r)),Ot(()=>{var r,i;return(i=(r=this.viewModel)==null?void 0:r.view)==null?void 0:i.size},(r,i)=>this._updateDockEnabledForViewSize(r,i)),Ot(()=>{var r;return(r=this.viewModel)==null?void 0:r.view},(r,i)=>this._viewChange(r,i)),Ot(()=>{var r,i;return(i=(r=this.viewModel)==null?void 0:r.view)==null?void 0:i.ready},(r,i)=>this._viewReadyChange(r,i)),Ot(()=>{var r,i;return[(r=this.viewModel)==null?void 0:r.waitingForResult,(i=this.viewModel)==null?void 0:i.location]},()=>{this._hideSpinner(),this._displaySpinnerThrottled()}),Ot(()=>this.selectedFeatureWidget,()=>this._destroyFlowItemWidgets()),Ot(()=>{var r,i,n,o;return[(i=(r=this.selectedFeatureWidget)==null?void 0:r.viewModel)==null?void 0:i.title,(o=(n=this.selectedFeatureWidget)==null?void 0:n.viewModel)==null?void 0:o.state]},()=>this._setTitleFromFeatureWidget()),Ot(()=>{var r,i,n,o;return[(i=(r=this.selectedFeatureWidget)==null?void 0:r.viewModel)==null?void 0:i.content,(o=(n=this.selectedFeatureWidget)==null?void 0:n.viewModel)==null?void 0:o.state]},()=>this._setContentFromFeatureWidget()),ca(()=>!this.collapsed,()=>{var r,i;((i=(r=this.viewModel)==null?void 0:r.view)==null?void 0:i.widthBreakpoint)==="xsmall"&&this.viewModel.active&&this.collapseEnabled&&this.viewModel.centerAtLocation()}),Cl(()=>{var r;return(r=this.viewModel)==null?void 0:r.allActions},"change",()=>this._watchActions()),Ot(()=>{var r;return(r=this.viewModel)==null?void 0:r.allActions},()=>this._watchActions(),si),Ot(()=>{var r;return(r=this.viewModel)==null?void 0:r.featureViewModels},()=>this._featureMenuViewportScrollTop()),Cl(()=>this._flowItems,"change",()=>{this.notifyChange("_activeFlowItemWidget"),this.scheduleRender()}),Ot(()=>{var r,i,n,o;return[(i=(r=this._activeFlowItemWidget)==null?void 0:r.viewModel)==null?void 0:i.state,(o=(n=this._activeFlowItemWidget)==null?void 0:n.viewModel)==null?void 0:o.title]},()=>this.scheduleRender())])}loadDependencies(){return Promise.all([ut(()=>import("./calcite-flow.e3126bd3.js"),["assets/calcite-flow.e3126bd3.js","assets/observers.905cc9f1.js"]),ut(()=>import("./calcite-flow-item.b0c63329.js"),["assets/calcite-flow-item.b0c63329.js","assets/guid.ae96513b.js","assets/action.30bade26.js","assets/observers.905cc9f1.js","assets/interactive.d71a7a54.js","assets/icon.801bf0d0.js","assets/tooltip.19efc493.js"]),ut(()=>import("./calcite-action.4068477f.js"),["assets/calcite-action.4068477f.js","assets/action.30bade26.js","assets/observers.905cc9f1.js","assets/interactive.d71a7a54.js","assets/icon.801bf0d0.js","assets/guid.ae96513b.js"]),ut(()=>import("./calcite-tooltip.5bbcae3c.js"),["assets/calcite-tooltip.5bbcae3c.js","assets/tooltip.19efc493.js","assets/guid.ae96513b.js"]),ut(()=>import("./calcite-icon.732b1a7e.js"),["assets/calcite-icon.732b1a7e.js","assets/icon.801bf0d0.js","assets/observers.905cc9f1.js"])])}destroy(){var e,t;this._destroyFlowItemWidgets(),this._destroySelectedFeatureWidget(),this._destroySpinner(),(e=this._handles)==null||e.destroy(),this._unobserveFeatureMenuObserver(),(t=this._featureMenuIntersectionObserver)==null||t.disconnect(),this._handles=null}get actionsMenuId(){return`${this.id}-actions-menu`}get actionsMenuButtonId(){return`${this.id}-actions-menu-button`}get featureMenuId(){return`${this.id}-feature-menu`}get titleId(){return`${this.id}-popup-title`}get contentId(){return`${this.id}-popup-content`}get hasContent(){const{selectedFeatureWidget:e,viewModel:t}=this;if(!e)return!!(t!=null&&t.content);const r=e.viewModel;if((r==null?void 0:r.waitingForContent)||(r==null?void 0:r.state)==="error")return!0;const i=r==null?void 0:r.content;return Array.isArray(i)?!!i.length:!!i}get featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&this.visibleElements.featureNavigation}get collapsible(){return!!(this.collapseEnabled&&this.viewModel.title&&this.hasContent)}get featureMenuVisible(){return this.featureNavigationVisible&&this.featureMenuOpen}get contentCollapsed(){return this.collapsible&&!this.featureMenuVisible&&this.collapsed}get dividedActions(){return this._divideActions()}get _activeFlowItemWidget(){const{_flowItems:e}=this;return e.getItemAt(e.length-1)||null}get actions(){return this.viewModel.actions}set actions(e){this.viewModel.actions=e}set actionsMenuOpen(e){this._set("actionsMenuOpen",!!e)}get actionsMenuOpen(){return!!this.viewModel.active&&this._get("actionsMenuOpen")}get autoCloseEnabled(){return this.viewModel.autoCloseEnabled}set autoCloseEnabled(e){this.viewModel.autoCloseEnabled=e}get autoOpenEnabled(){return this.viewModel.autoOpenEnabled}set autoOpenEnabled(e){this.viewModel.autoOpenEnabled=e}get defaultPopupTemplateEnabled(){return this.viewModel.defaultPopupTemplateEnabled}set defaultPopupTemplateEnabled(e){this.viewModel.defaultPopupTemplateEnabled=e}get content(){return this.viewModel.content}set content(e){this.viewModel.content=e}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._get("dockOptions")||VU}set dockOptions(e){const t={...VU},r=this.get("viewModel.view.breakpoints"),i={};r&&(i.width=r.xsmall,i.height=r.xsmall);const n={...t,...e},o={...t.breakpoint,...i},{breakpoint:s}=n;s===!0?n.breakpoint=o:typeof s=="object"&&(n.breakpoint={...o,...s}),this._set("dockOptions",n),this._setCurrentDockPosition(),this.reposition()}get featureCount(){return this.viewModel.featureCount}get features(){return this.viewModel.features}set features(e){this.viewModel.features=e}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get highlightEnabled(){return this.viewModel.highlightEnabled}set highlightEnabled(e){this.viewModel.highlightEnabled=e}get location(){return this.viewModel.location}set location(e){this.viewModel.location=e}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}get promises(){return this.viewModel.promises}set promises(e){this.viewModel.promises=e}get selectedFeature(){return this.viewModel.selectedFeature}get selectedFeatureIndex(){return this.viewModel.selectedFeatureIndex}set selectedFeatureIndex(e){this.viewModel.selectedFeatureIndex=e}get selectedFeatureWidget(){const{_feature:e,visibleElements:t,headingLevel:r,_flowItems:i}=this,{selectedFeatureViewModel:n}=this.viewModel,o={...t,title:!1};return n?(e?(e.viewModel=n,e.visibleElements=o):this._feature=new uat({flowItems:i,headingLevel:r+1,viewModel:n,visibleElements:o}),this._feature):null}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}get updateLocationEnabled(){return this.viewModel.updateLocationEnabled}set updateLocationEnabled(e){this.viewModel.updateLocationEnabled=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get visible(){return this.viewModel.visible}set visible(e){this.viewModel.visible=e}castVisibleElements(e){return{...UU,...e}}blur(){const{active:e}=this.viewModel;e||ft.getLogger(this.declaredClass).warn("Popup can only be blurred when currently active."),this.visibleElements.closeButton?this._blurClose=!0:this._blurContainer=!0,this.scheduleRender()}clear(){return this.viewModel.clear()}close(){this.visible=!1}fetchFeatures(e,t){return this.viewModel.fetchFeatures(e,t)}focus(){const{active:e}=this.viewModel;e||ft.getLogger(this.declaredClass).warn("Popup can only be focused when currently active."),this.visibleElements.closeButton?this._focusClose=!0:this._focusContainer=!0,this.scheduleRender()}next(){return this.viewModel.next()}open(e){var n,o;this._handles.remove(zU);const t=!!e&&!!e.featureMenuOpen,r=!!e&&!!e.actionsMenuOpen,i={collapsed:!!e&&!!e.collapsed,actionsMenuOpen:r,featureMenuOpen:t};((o=(n=this.viewModel)==null?void 0:n.view)==null?void 0:o.widthBreakpoint)==="xsmall"&&(i.collapsed=!0),this.set(i),this.viewModel.open(e),this._shouldFocus(e),this._addSelectedFeatureIndexHandle()}previous(){return this.viewModel.previous()}reposition(){this.renderNow(),this._positionContainer(),this._setCurrentAlignment()}triggerAction(e){return this.viewModel.triggerAction(e)}render(){var y,v,_,x;const{actionsMenuOpen:e,dockEnabled:t,featureMenuVisible:r,dividedActions:i,currentAlignment:n,currentDockPosition:o}=this,{active:s}=this.viewModel,{menuActions:l}=i,a=s&&l.length>1&&e,c=s&&t,u=s&&!t,p=(v=(y=this.selectedFeature)==null?void 0:y.layer)==null?void 0:v.title,h=(x=(_=this.selectedFeature)==null?void 0:_.layer)==null?void 0:x.id,m={[Et.alignTopCenter]:n==="top-center",[Et.alignBottomCenter]:n==="bottom-center",[Et.alignTopLeft]:n==="top-left",[Et.alignBottomLeft]:n==="bottom-left",[Et.alignTopRight]:n==="top-right",[Et.alignBottomRight]:n==="bottom-right",[Et.isDocked]:c,[Et.shadow]:u,[Et.isDockedTopLeft]:o==="top-left",[Et.isDockedTopCenter]:o==="top-center",[Et.isDockedTopRight]:o==="top-right",[Et.isDockedBottomLeft]:o==="bottom-left",[Et.isDockedBottomCenter]:o==="bottom-center",[Et.isDockedBottomRight]:o==="bottom-right",[Et.isFeatureMenuOpen]:r,[Et.isActionsMenuOpen]:a};return Ue("div",{class:this.classes(Et.base,m),role:"presentation","data-layer-title":p,"data-layer-id":h,bind:this,afterCreate:this._positionContainer,afterUpdate:this._positionContainer},s?[this.renderMainContainer(),this.renderPointer()]:null)}renderLoadingIcon(){return Ue("span",{"aria-hidden":"true",class:this.classes(Et.icon,Et.iconLoading,Et.rotating)})}renderNavigationLoading(){const{messagesCommon:e}=this;return this.viewModel.pendingPromisesCount?Ue("div",{key:ku("loading-container"),role:"presentation",class:Et.loadingContainer,"aria-label":e.loading,title:e.loading},this.renderLoadingIcon()):null}renderPreviousIcon(){const e=tu(this.container),t={[Et.iconRightTriangleArrow]:e,[Et.paginationPreviousIconRTL]:e,[Et.iconLeftTriangleArrow]:!e,[Et.paginationPreviousIconLTR]:!e};return Ue("span",{"aria-hidden":"true",class:this.classes(Et.icon,t)})}renderPreviousButton(){const{messages:e}=this;return Ue("div",{role:"button",tabIndex:0,bind:this,onclick:this._previous,onkeydown:this._previous,class:this.classes(Et.button,Et.paginationPrevious),"aria-label":e.previous,title:e.previous},this.renderPreviousIcon())}renderNextIcon(){const e=tu(this.container),t={[Et.iconLeftTriangleArrow]:e,[Et.paginationNextIconRTL]:e,[Et.iconRightTriangleArrow]:!e,[Et.paginationNextIconLTR]:!e};return Ue("span",{"aria-hidden":"true",class:this.classes(Et.icon,t)})}renderNextButton(){const{messages:e}=this;return Ue("div",{role:"button",tabIndex:0,bind:this,onclick:this._next,onkeydown:this._next,class:this.classes(Et.button,Et.paginationNext),"aria-label":e.next,title:e.next},this.renderNextIcon())}renderFeatureMenuButton(){const{featureMenuOpen:e,featureMenuId:t,messagesCommon:r}=this,{featureCount:i,selectedFeatureIndex:n}=this.viewModel;return Ue("div",{role:"button",tabIndex:0,bind:this,onclick:this._toggleFeatureMenu,onkeydown:this._toggleFeatureMenu,afterCreate:this._focusFeatureMenuButtonNode,afterUpdate:this._focusFeatureMenuButtonNode,class:this.classes(Et.button,Et.featureMenuButton),"aria-haspopup":"true","aria-controls":t,"aria-expanded":e.toString(),"aria-label":r.menu,title:r.menu},this._getPageText(i,n))}renderNavigationButtons(){return this.featureNavigationVisible?[this.renderPreviousButton(),this.renderNavigationLoading()||this.renderFeatureMenuButton(),this.renderNextButton()]:null}renderDockIcon(){const{dockEnabled:e}=this,t=this._wouldDockTo(),r={[Et.iconUndock]:e,[Et.iconDock]:!e,[Et.iconDockToRight]:!e&&(t==="top-right"||t==="bottom-right"),[Et.iconDockToLeft]:!e&&(t==="top-left"||t==="bottom-left"),[Et.iconDockToTop]:!e&&t==="top-center",[Et.iconDockToBottom]:!e&&t==="bottom-center"};return Ue("span",{"aria-hidden":"true",class:this.classes(r,Et.icon)})}renderDockButton(){var n,o,s;const{dockEnabled:e,messages:t}=this,r=(o=(n=this.viewModel)==null?void 0:n.view)==null?void 0:o.widthBreakpoint,i=e?t.undock:t.dock;return r!=="xsmall"&&((s=this.dockOptions)==null?void 0:s.buttonEnabled)?Ue("div",{role:"button","aria-label":i,title:i,tabIndex:0,bind:this,onclick:this._toggleDockEnabled,onkeydown:this._toggleDockEnabled,afterCreate:this._focusDockButtonNode,afterUpdate:this._focusDockButtonNode,class:this.classes(Et.button,Et.buttonDock)},this.renderDockIcon()):null}renderTitle(){const{title:e}=this.viewModel,{titleId:t,collapsible:r,contentCollapsed:i,messagesCommon:n}=this,o={[Et.headerContainerButton]:r},s=Ue(bN,{level:this.headingLevel,class:Et.headerTitle,innerHTML:e}),l=r?Ue("button",{key:`${e}--collapsible`,id:t,title:i?n.expand:n.collapse,bind:this,enterAnimation:this._createFeatureUpdatedAnimation(),class:this.classes(Et.headerContainer,o),"aria-expanded":i?"false":"true",onclick:this._toggleCollapsed,type:"button"},s,Ue("calcite-icon",{class:Et.collapseIcon,key:"collapse-icon",icon:i?"chevron-down":"chevron-up",scale:"m"})):Ue("div",{key:e,id:t,bind:this,enterAnimation:this._createFeatureUpdatedAnimation(),class:this.classes(Et.headerContainer,o)},s);return e?l:null}renderCloseIcon(){return Ue("span",{"aria-hidden":"true",class:this.classes(Et.icon,Et.iconClose)})}renderCloseButton(){const{visibleElements:e,messagesCommon:t}=this;return e.closeButton?Ue("div",{role:"button",tabIndex:0,bind:this,onclick:this._close,onkeydown:this._close,class:Et.button,"aria-label":t.close,title:t.close,afterCreate:this._closeButtonNodeUpdated,afterUpdate:this._closeButtonNodeUpdated},this.renderCloseIcon()):null}renderHeader(){return Ue("header",{class:Et.header},this.renderTitle(),Ue("div",{class:Et.headerButtons},this.renderDockButton(),this.renderCloseButton()))}renderContentContainer(){const{contentId:e,hasContent:t,contentCollapsed:r,_flowItems:i,messagesCommon:n}=this,{content:o}=this.viewModel,s=i.toArray(),l={[Et.contentHasFlows]:!!s.length};return t&&!r?Ue("div",{key:o,enterAnimation:this._createFeatureUpdatedAnimation(),id:e,class:this.classes(Et.content,l)},Ue("calcite-flow",{bind:this,onCalciteFlowItemBack:this._handleBackClick},Ue("calcite-flow-item",{bind:this,"data-node-ref":"_rootFlowItemNode","intl-back":n.back,afterCreate:sE,key:"root-flow-item"},this.renderContent()),s.map(a=>this.renderFlowItem(a))),s.map(a=>this.renderFlowItemTooltip(a))):null}renderFlowItem(e){const{messages:t,messagesCommon:r}=this,i=yE();return Ue("calcite-flow-item",{class:this.classes({[Et.calciteThemeDark]:!i,[Et.calciteThemeLight]:i}),heading:e.title,"intl-back":r.back,description:this._getFlowItemDescription(e),key:`flow-item-${e.viewModel.uid}`},Ue("calcite-action",{class:Et.actionExit,icon:"move-up",label:t==null?void 0:t.exitRelatedRecords,text:t==null?void 0:t.exitRelatedRecords,slot:"header-actions-start",bind:this,afterCreate:n=>this._storeExitRelatedRecordsAction(e,n),onclick:this._destroyFlowItemWidgets}),Ue("div",{class:this.classes(Et.contentFlowItem,{[Et.calciteThemeDark]:i,[Et.calciteThemeLight]:!i})},e.render()))}renderFlowItemTooltip(e){const{messages:t,_exitRelatedRecordsActions:r}=this,i=yE();return Ue("calcite-tooltip",{class:this.classes({[Et.calciteThemeDark]:!i,[Et.calciteThemeLight]:i}),key:`exit-related-records-tooltip-${e.viewModel.uid}`,label:t==null?void 0:t.exitRelatedRecords,overlayPositioning:"fixed",referenceElement:r.get(e),placement:"top"},t==null?void 0:t.exitRelatedRecords)}renderActionsMenuButton(){const{actionsMenuId:e,actionsMenuButtonId:t,actionsMenuOpen:r,dividedActions:i,messagesCommon:n}=this,o=r?n.close:n.open,{menuActions:s}=i;return s.length?Ue("div",{key:ku("actions-menu-button"),class:this.classes(Et.button,Et.actionsMenuButton),role:"button",id:t,"aria-haspopup":"true","aria-controls":r?e:null,tabIndex:0,bind:this,onclick:this._toggleActionsMenu,onkeydown:this._toggleActionsMenu,afterCreate:this._focusActionsMenuButtonNode,afterUpdate:this._focusActionsMenuButtonNode,"aria-label":o,title:o},Ue("span",{"aria-hidden":"true",class:Et.iconActionsMenu})):null}renderMenuActions(){const{actionsMenuId:e,actionsMenuButtonId:t,actionsMenuOpen:r,dividedActions:i}=this,{menuActions:n}=i;return n.length&&r?Ue("ul",{id:e,role:"menu","aria-labelledby":t,key:ku("actions"),class:Et.actions,bind:this,onkeyup:this._handleActionMenuKeyup,afterCreate:this._actionsMenuNodeUpdated,afterUpdate:this._actionsMenuNodeUpdated},n.toArray().map(o=>this.renderAction({action:o,type:"menu-item"}))):null}renderInlineActions(){const{inlineActions:e}=this.dividedActions;return!!e.length&&e.toArray().map(t=>this.renderAction({action:t,type:"inline"}))}renderInlineActionsContainer(){const{inlineActions:e,menuActions:t}=this.dividedActions,r=!!e.length,i=!!t.length;return r||i?Ue("div",{key:"inline-actions-container","data-inline-actions":r.toString(),"data-menu-actions":i.toString(),class:Et.inlineActionsContainer},this.renderInlineActions(),this.renderActionsMenuButton(),this.renderMenuActions()):null}renderNavigation(){return this.featureNavigationVisible?Ue("section",{key:ku("navigation"),class:this.classes(Et.navigation)},this.renderNavigationButtons()):null}renderFooter(){const{featureNavigationVisible:e,dividedActions:t}=this,{inlineActions:r,menuActions:i}=t,n=!!r.length,o=!!i.length,s={[Et.footerHasPagination]:e,[Et.footerHasActions]:n,[Et.footerHasActionsMenu]:o};return e||n?Ue("div",{key:ku("feature-buttons"),class:this.classes(Et.footer,s)},this.renderInlineActionsContainer(),this.renderNavigation()):null}renderFeatureMenuContainer(){const{messages:e}=this,{featureViewModels:t,isLoadingFeature:r}=this.viewModel,i=Vc(e.selectedFeatures,{total:t.length});return Ue("section",{key:ku("menu"),class:Et.featureMenu},Ue("strong",{class:Et.featureMenuHeader},i),Ue("nav",{bind:this,class:Et.featureMenuViewport,"data-node-ref":"_featureMenuViewportNode",afterCreate:sE},this.renderFeatureMenu(),Ue("div",{class:Et.featureMenuObserver,bind:this,afterCreate:this._featureMenuIntersectionObserverCreated}),r?Ue("div",{class:Et.featureMenuLoader},this.renderLoadingIcon()):null))}renderPointer(){return this.dockEnabled?null:Ue("div",{key:ku("pointer"),class:Et.pointer,role:"presentation"},Ue("div",{class:this.classes(Et.pointerDirection,Et.shadow)}))}renderMainContainer(){const{dockEnabled:e,currentAlignment:t,currentDockPosition:r,titleId:i,contentId:n,collapsible:o,hasContent:s,contentCollapsed:l,visibleElements:a}=this,{title:c}=this.viewModel,u=t==="bottom-left"||t==="bottom-center"||t==="bottom-right"||r==="top-left"||r==="top-center"||r==="top-right",p=t==="top-left"||t==="top-center"||t==="top-right"||r==="bottom-left"||r==="bottom-center"||r==="bottom-right",h={[Et.shadow]:e,[Et.isCollapsible]:o,[Et.isCollapsed]:l};return Ue("div",{class:this.classes(Et.main,Et.widget,h),tabIndex:a.closeButton?null:-1,role:"dialog","aria-labelledby":c?i:"","aria-describedby":s&&!l?n:"",bind:this,onkeyup:this._handleMainKeyup,afterCreate:this._mainContainerNodeUpdated,afterUpdate:this._mainContainerNodeUpdated},u?this.renderFooter():null,u?this.renderFeatureMenuContainer():null,this.renderHeader(),this.renderContentContainer(),p?this.renderFooter():null,p?this.renderFeatureMenuContainer():null)}renderContent(){var t;const e=(t=this.viewModel)==null?void 0:t.content;return e?typeof e=="string"?Ue("div",{class:nn.contentNode,key:e,innerHTML:e}):this.renderNodeContent(e):null}renderActionText(e){return Ue("span",{key:"text",class:Et.actionText},e)}renderActionIcon(e){const t=this._getActionClass(e),r=this._getActionImage(e),i={[Et.iconLoading]:e.active,[Et.rotating]:e.active,[Et.icon]:!!t,[Et.actionImage]:!e.active&&!!r};return t&&(i[t]=!e.active),Ue("span",{key:"icon","aria-hidden":"true",class:this.classes(Et.icon,i),styles:this._getIconStyles(r)})}renderAction(e){const{action:t,type:r}=e,i=this._getActionTitle(t),n={[Et.action]:t.type!=="toggle",[Et.actionToggle]:t.type==="toggle",[Et.actionToggleOn]:t.type==="toggle"&&t.value,[Et.buttonDisabled]:t.disabled},o=[this.renderActionIcon(t),this.renderActionText(i)],s=r==="menu-item"?Ue("li",{key:t.uid,role:"menuitem",tabIndex:0,title:i,"aria-label":i,class:this.classes(Et.button,n),onkeyup:this._handleActionMenuItemKeyup,bind:this,"data-action-uid":t.uid,onclick:this._triggerAction,onkeydown:this._triggerAction},o):Ue("div",{key:t.uid,role:"button",tabIndex:0,title:i,"aria-label":i,class:this.classes(Et.button,n),onkeyup:this._handleActionMenuItemKeyup,bind:this,"data-action-uid":t.uid,onclick:this._triggerAction,onkeydown:this._triggerAction},o);return t.visible?s:null}renderFeatureMenuItem(e,t){const{messages:r,messagesCommon:i}=this,{selectedFeatureIndex:n,selectedFeatureViewModel:o}=this.viewModel,s=e===o,l={[Et.featureMenuSelected]:s},a=s?Ue("span",{key:ku(`feature-menu-selected-feature-${n}`),title:r.selectedFeature,"aria-label":r.selectedFeature,class:Et.iconCheckMark}):null,c=Ue("span",{innerHTML:e.title||i.untitled});return Ue("li",{role:"menuitem",tabIndex:-1,key:ku(`feature-menu-feature-${n}`),class:this.classes(l,Et.featureMenuItem),bind:this,"data-feature-index":t,onblur:this._removeActiveFeature,onfocus:this._setActiveFeature,onkeyup:this._handleFeatureMenuItemKeyup,onclick:this._selectFeature,onkeydown:this._selectFeature,onmouseover:this._setActiveFeature,onmouseleave:this._removeActiveFeature},Ue("span",{class:Et.featureMenuTitle},c,a))}renderFeatureMenu(){const{featureMenuId:e}=this,{featureViewModels:t}=this.viewModel;return t.length>1?Ue("ol",{class:Et.featureMenuList,id:e,bind:this,afterCreate:this._featureMenuNodeUpdated,afterUpdate:this._featureMenuNodeUpdated,onkeyup:this._handleFeatureMenuKeyup,role:"menu"},t.filter(r=>!!r.graphic).map((r,i)=>this.renderFeatureMenuItem(r,i))):null}_storeExitRelatedRecordsAction(e,t){this._exitRelatedRecordsActions.set(e,t),this.scheduleRender()}_getFlowItemDescription(e){return"featureCountDescription"in e?e.featureCountDescription:e.viewModel.description}_destroyFlowItemWidgets(){this._flowItems.removeAll().forEach(e=>{"showAllEnabled"in e.viewModel&&(e.viewModel.showAllEnabled=!1),e.viewModel=null,e.destroy()})}_handleBackClick(){const e=this._flowItems.pop();this._exitRelatedRecordsActions.delete(e),"showAllEnabled"in e.viewModel&&(e.viewModel.showAllEnabled=!1),e&&(e.viewModel=null,e.destroy())}_getActionTitle(e){const{messages:t,selectedFeature:r,messagesCommon:i}=this,{id:n}=e,o=r==null?void 0:r.attributes,s=n==="zoom-to-feature"?Vc(e.title,{messages:t}):n==="remove-selected-feature"?Vc(e.title,{messages:i}):n==="zoom-to-clustered-features"||n==="browse-clustered-features"?Vc(e.title,{messages:t}):e.title;return s&&o?Vc(s,o):s}_getActionClass(e){const{selectedFeature:t}=this,r=t==null?void 0:t.attributes,{className:i,image:n}=e,o=n||i?i:Et.iconDefaultAction;return o&&r?Vc(o,r):o}_getActionImage(e){const{selectedFeature:t}=this,r=t==null?void 0:t.attributes,{image:i}=e;return i&&r?Vc(i,r):i}_createFeatureUpdatedAnimation(){return _Je("enter",Et.hasFeatureUpdated)}_getInlineActionCount(){const{maxInlineActions:e,featureNavigationVisible:t}=this;if(typeof e!="number")return null;const r=Math.round(e);return Math.max(t?r-1:r,0)}_watchActions(){const{allActions:e}=this.viewModel;this.notifyChange("dividedActions");const t="actions";this._handles.remove(t),e&&e.forEach(r=>{this._handles.add(Ot(()=>[r.uid,r.active,r.className,r.disabled,r.id,r.title,r.image,r.visible],()=>this.scheduleRender()),t)})}_divideActions(){const{allActions:e}=this.viewModel,t=e.filter(o=>o.visible),r=this._getInlineActionCount(),i=r===null,n=r===0;return{inlineActions:i?t.slice(0):n?new dr:t.slice(0,r),menuActions:i?new dr:n?t.slice(0):t.slice(r)}}_featureMenuOpenChanged(e){e?this._focusFirstFeature=!0:this._focusFeatureMenuButton=!0}_actionsMenuOpenChanged(e){e?this._focusFirstAction=!0:this._focusActionsMenuButton=!0}_setTitleFromFeatureWidget(){var r,i;const{selectedFeatureWidget:e,messagesCommon:t}=this;e&&(this.viewModel.title=((r=e.viewModel)==null?void 0:r.state)==="error"?t.errorMessage:((i=e.viewModel)==null?void 0:i.title)||"")}_setContentFromFeatureWidget(){const{selectedFeatureWidget:e}=this;e&&(this.viewModel.content=e)}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_handleFeatureMenuKeyup(e){sm(e)==="Escape"&&(e.stopPropagation(),this._focusFeatureMenuButton=!0,this.featureMenuOpen=!1,this.scheduleRender())}_handleActionMenuKeyup(e){sm(e)==="Escape"&&(e.stopPropagation(),this._focusActionsMenuButton=!0,this.actionsMenuOpen=!1,this.scheduleRender())}_setActiveFeature(e){const{viewModel:t}=this,r=e.currentTarget["data-feature-index"];t.activeFeature=t.features[r]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_handleFeatureMenuItemKeyup(e){const t=sm(e),{_featureMenuNode:r}=this,i=e.currentTarget["data-feature-index"];if(!r)return;const n=r.querySelectorAll("li"),o=n.length;t!=="ArrowUp"?t!=="ArrowDown"?t!=="Home"?t!=="End"||(e.stopPropagation(),n[n.length-1].focus()):(e.stopPropagation(),n[0].focus()):(e.stopPropagation(),n[(i+1+o)%o].focus()):(e.stopPropagation(),n[(i-1+o)%o].focus())}_handleActionMenuItemKeyup(e){const t=sm(e),{_actionsMenuNode:r}=this,i=e.currentTarget.dataset.actionUid,{menuActions:n}=this.dividedActions,o=n.findIndex(a=>a.uid===i);if(!r)return;const s=r.querySelectorAll("li"),l=s.length;t!=="ArrowUp"?t!=="ArrowDown"?t!=="Home"?t!=="End"||(e.stopPropagation(),s[s.length-1].focus()):(e.stopPropagation(),s[0].focus()):(e.stopPropagation(),s[(o+1+l)%l].focus()):(e.stopPropagation(),s[(o-1+l)%l].focus())}_handleMainKeyup(e){const t=sm(e);t==="ArrowLeft"&&(e.stopPropagation(),this.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.next())}_spinnerEnabledChange(e){if(this._destroySpinner(),!e)return;const t=this.get("viewModel.view");this._createSpinner(t)}_hideSpinner(){const{_spinner:e}=this;e&&(e.location=null,e.hide())}_displaySpinner(){const{_spinner:e}=this;if(!e)return;const{location:t,waitingForResult:r}=this.viewModel;r?e.show({location:t}):e.hide()}_getIconStyles(e){return{"background-image":e?`url(${e})`:""}}async _shouldFocus(e){e.shouldFocus&&(await KD(()=>{var t;return((t=this.viewModel)==null?void 0:t.active)===!0}),this.focus())}_addSelectedFeatureIndexHandle(){const e=Ot(()=>{var t;return(t=this.viewModel)==null?void 0:t.selectedFeatureIndex},(t,r)=>this._selectedFeatureIndexUpdated(t,r));this._handles.add(e,zU)}_selectedFeatureIndexUpdated(e,t){const{featureCount:r}=this;r&&e!==t&&e!==-1&&(this._destroyFlowItemWidgets(),this.actionsMenuOpen=!1,this.featureMenuOpen=!1,this._mainContainerNode&&(this._mainContainerNode.scrollTop=0),this._rootFlowItemNode&&this._rootFlowItemNode.scrollContentTo({top:0}))}_destroySelectedFeatureWidget(){const{_feature:e}=this;e&&(e.viewModel=null,e&&!e.destroyed&&e.destroy()),this._feature=null}_isScreenLocationWithinView(e,t){return e.x>-1&&e.y>-1&&e.x<=t.width&&e.y<=t.height}_isOutsideView(e){const{popupHeight:t,popupWidth:r,screenLocation:i,side:n,view:o}=e;if(isNaN(r)||isNaN(t)||!o||!i)return!1;const s=o.padding;return n==="right"&&i.x+r/2>o.width-s.right||n==="left"&&i.x-r/2<s.left||n==="top"&&i.y-t<s.top||n==="bottom"&&i.y+t>o.height-s.bottom}_calculateAutoAlignment(e){if(e!=="auto")return e;const{_pointerOffsetInPx:t,_containerNode:r,_mainContainerNode:i,viewModel:n}=this,{screenLocation:o,view:s}=n;if(et(o)||!s||!r)return"top-center";if(!this._isScreenLocationWithinView(o,s))return this._get("currentAlignment")||"top-center";function l(C){return parseInt(C.replace(/[^-\d\.]/g,""),10)}const a=i?window.getComputedStyle(i,null):null,c=a?l(a.getPropertyValue("max-height")):0,u=a?l(a.getPropertyValue("height")):0,{height:p,width:h}=r.getBoundingClientRect(),m=h+t,y=Math.max(p,c,u)+t,v=this._isOutsideView({popupHeight:y,popupWidth:m,screenLocation:o,side:"right",view:s}),_=this._isOutsideView({popupHeight:y,popupWidth:m,screenLocation:o,side:"left",view:s}),x=this._isOutsideView({popupHeight:y,popupWidth:m,screenLocation:o,side:"top",view:s}),S=this._isOutsideView({popupHeight:y,popupWidth:m,screenLocation:o,side:"bottom",view:s});return _?x?"bottom-right":"top-right":v?x?"bottom-left":"top-left":x?S?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(e){return typeof e=="function"?e.call(this):e}_getCurrentAlignment(){const{alignment:e,dockEnabled:t}=this;return t||!this.viewModel.active?null:this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(e)))}_setCurrentAlignment(){this._set("currentAlignment",this._getCurrentAlignment())}_setCurrentDockPosition(){this._set("currentDockPosition",this._getCurrentDockPosition())}_calculatePositionResult(e){const t=["left","right"];return tu(this.container)&&t.reverse(),e.replace(/leading/gi,t[0]).replace(/trailing/gi,t[1])}_callDockPosition(e){return typeof e=="function"?e.call(this):e}_getDockPosition(){var e;return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition((e=this.dockOptions)==null?void 0:e.position)))}_getCurrentDockPosition(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null}_wouldDockTo(){return this.dockEnabled?null:this._getDockPosition()}_calculateAutoDockPosition(e){var s;if(e!=="auto")return e;const t=(s=this.viewModel)==null?void 0:s.view,r=tu(this.container)?"top-left":"top-right";if(!t)return r;const i=t.padding||{left:0,right:0,top:0,bottom:0},n=t.width-i.left-i.right,{breakpoints:o}=t;return o&&n<=o.xsmall?"bottom-center":r}_positionContainer(e=this._containerNode){if(e&&(this._containerNode=e),!e)return;const{screenLocation:t}=this.viewModel,{width:r}=e.getBoundingClientRect(),i=this._calculatePositionStyle(t,r);i&&(e.style.top=i.top,e.style.left=i.left,e.style.bottom=i.bottom,e.style.right=i.right)}_calculateFullWidth(e){const{currentAlignment:t,_pointerOffsetInPx:r}=this;return t==="top-left"||t==="bottom-left"||t==="top-right"||t==="bottom-right"?e+r:e}_calculateAlignmentPosition(e,t,r,i){const{currentAlignment:n,_pointerOffsetInPx:o}=this,s=i/2,l=r.height-t,a=r.width-e,{padding:c}=this.view;return n==="bottom-center"?{top:t+o-c.top,left:e-s-c.left}:n==="top-left"?{bottom:l+o-c.bottom,right:a+o-c.right}:n==="bottom-left"?{top:t+o-c.top,right:a+o-c.right}:n==="top-right"?{bottom:l+o-c.bottom,left:e+o-c.left}:n==="bottom-right"?{top:t+o-c.top,left:e+o-c.left}:n==="top-center"?{bottom:l+o-c.bottom,left:e-s-c.left}:void 0}_calculatePositionStyle(e,t){const{dockEnabled:r,view:i}=this;if(!i)return;if(r)return{left:"",top:"",right:"",bottom:""};if(et(e)||!t)return;const n=this._calculateFullWidth(t),o=this._calculateAlignmentPosition(e.x,e.y,i,n);return o?{top:o.top!==void 0?`${o.top}px`:"auto",left:o.left!==void 0?`${o.left}px`:"auto",bottom:o.bottom!==void 0?`${o.bottom}px`:"auto",right:o.right!==void 0?`${o.right}px`:"auto"}:void 0}_viewChange(e,t){e&&t&&(this.close(),this.clear())}_viewReadyChange(e,t){if(e){const r=this.get("viewModel.view");this._wireUpView(r)}else t&&(this.close(),this.clear())}_wireUpView(e){if(this._destroySpinner(),!e)return;const{spinnerEnabled:t}=this;t&&this._createSpinner(e),this._setDockEnabledForViewSize(this.dockOptions)}_dockingThresholdCrossed(e,t,r){const[i,n]=e,[o,s]=t,{width:l,height:a}=r;return i<=l&&o>l||i>l&&o<=l||n<=a&&s>a||n>a&&s<=a}_updateDockEnabledForViewSize(e,t){if(!e||!t)return;const r=this.get("viewModel.view.padding")||{left:0,right:0,top:0,bottom:0},i=r.left+r.right,n=r.top+r.bottom,o=[],s=[];o[0]=e[0]-i,o[1]=e[1]-n,s[0]=t[0]-i,s[1]=t[1]-n;const{dockOptions:l}=this,a=l.breakpoint;this._dockingThresholdCrossed(o,s,a)&&this._setDockEnabledForViewSize(l),this._setCurrentDockPosition()}_focusDockButtonNode(e){this._focusDockButton&&(this._focusDockButton=!1,e.focus())}_closeButtonNodeUpdated(e){return this._focusClose?(this._focusClose=!1,void e.focus()):this._blurClose?(this._blurClose=!1,void e.blur()):void 0}_mainContainerNodeUpdated(e){return this._mainContainerNode=e,this._focusContainer?(this._focusContainer=!1,void e.focus()):this._blurContainer?(this._blurContainer=!1,void e.blur()):void 0}_featureMenuNodeUpdated(e){if(this._featureMenuNode=e,!e||!this._focusFirstFeature)return;this._focusFirstFeature=!1;const t=e.querySelectorAll("li");t.length&&t[0].focus()}_actionsMenuNodeUpdated(e){if(this._actionsMenuNode=e,!e||!this._focusFirstAction)return;this._focusFirstAction=!1;const t=e.querySelectorAll("li");t.length&&t[0].focus()}_focusFeatureMenuButtonNode(e){this._focusFeatureMenuButton&&(this._focusFeatureMenuButton=!1,e.focus())}_focusActionsMenuButtonNode(e){this._focusActionsMenuButton&&(this._focusActionsMenuButton=!1,e.focus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&(this._featureMenuViewportNode.scrollTop=0)}_toggleScreenLocationEnabled(){const{dockEnabled:e,viewModel:t}=this;if(!t)return;const r=t.active&&!e;t.screenLocationEnabled=r}_shouldDockAtCurrentViewSize(e){var l,a;const t=e.breakpoint,r=(a=(l=this.viewModel)==null?void 0:l.view)==null?void 0:a.ui;if(!r)return!1;const{width:i,height:n}=r;if(isNaN(i)||isNaN(n))return!1;const o=t.hasOwnProperty("width")&&i<=t.width,s=t.hasOwnProperty("height")&&n<=t.height;return o||s}_setDockEnabledForViewSize(e){e.breakpoint&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(e))}_getPageText(e,t){return this.featureNavigationVisible?Vc(this.messages.pageText,{index:t+1,total:e}):null}_destroySpinner(){const{_spinner:e,view:t}=this;e&&(t&&t.ui&&t.ui.remove(this._spinner,jU),e.destroy(),this._spinner=null)}_createSpinner(e){e&&(this._spinner=new pat({view:e}),e.ui.add(this._spinner,{key:jU,position:"manual"}))}_toggleCollapsed(){this.collapsed=!this.collapsed}_close(){this.close(),this.view&&this.view.focus()}_toggleDockEnabled(){this.dockEnabled=!this.dockEnabled,this._focusDockButton=!0,this.scheduleRender()}_toggleFeatureMenu(){const e=!this.featureMenuOpen;this._featureMenuOpenChanged(e),this.actionsMenuOpen=!1,this.featureMenuOpen=e}_toggleActionsMenu(){const e=!this.actionsMenuOpen;this._actionsMenuOpenChanged(e),this.featureMenuOpen=!1,this.actionsMenuOpen=e}_triggerAction(e){const t=e.currentTarget.dataset.actionUid,{allActions:r}=this.viewModel,i=r.findIndex(o=>o.uid===t),n=r.getItemAt(i);n&&n.type==="toggle"&&(n.value=!n.value),this.actionsMenuOpen=!1,this.viewModel.triggerAction(i)}_selectFeature(e){const t=e.currentTarget["data-feature-index"];isNaN(t)||(this.viewModel.selectedFeatureIndex=t),this.featureMenuOpen=!1,this._focusFeatureMenuButton=!0,this.scheduleRender()}_next(){this.next()}_previous(){this.previous()}};d([f({readOnly:!0})],ur.prototype,"actionsMenuId",null),d([f({readOnly:!0})],ur.prototype,"actionsMenuButtonId",null),d([f({readOnly:!0})],ur.prototype,"featureMenuId",null),d([f({readOnly:!0})],ur.prototype,"titleId",null),d([f({readOnly:!0})],ur.prototype,"contentId",null),d([f({readOnly:!0})],ur.prototype,"hasContent",null),d([f({readOnly:!0})],ur.prototype,"featureNavigationVisible",null),d([f({readOnly:!0})],ur.prototype,"collapsible",null),d([f({readOnly:!0})],ur.prototype,"featureMenuVisible",null),d([f({readOnly:!0})],ur.prototype,"contentCollapsed",null),d([f({readOnly:!0})],ur.prototype,"dividedActions",null),d([f({readOnly:!0,dependsOn:["_flowItems.length"]})],ur.prototype,"_activeFlowItemWidget",null),d([f()],ur.prototype,"actions",null),d([f()],ur.prototype,"actionsMenuOpen",null),d([f()],ur.prototype,"alignment",void 0),d([f()],ur.prototype,"autoCloseEnabled",null),d([f()],ur.prototype,"autoOpenEnabled",null),d([f()],ur.prototype,"defaultPopupTemplateEnabled",null),d([f()],ur.prototype,"content",null),d([f()],ur.prototype,"collapsed",void 0),d([f()],ur.prototype,"collapseEnabled",void 0),d([f({readOnly:!0})],ur.prototype,"currentAlignment",null),d([f({readOnly:!0})],ur.prototype,"currentDockPosition",null),d([f()],ur.prototype,"dockOptions",null),d([f()],ur.prototype,"dockEnabled",void 0),d([f({readOnly:!0})],ur.prototype,"featureCount",null),d([f()],ur.prototype,"featureMenuOpen",void 0),d([f()],ur.prototype,"features",null),d([f()],ur.prototype,"goToOverride",null),d([f()],ur.prototype,"headingLevel",void 0),d([f()],ur.prototype,"highlightEnabled",null),d([f()],ur.prototype,"location",null),d([f()],ur.prototype,"label",null),d([f()],ur.prototype,"maxInlineActions",void 0),d([f(),Bo("esri/widgets/Popup/t9n/Popup")],ur.prototype,"messages",void 0),d([f(),Bo("esri/t9n/common")],ur.prototype,"messagesCommon",void 0),d([f()],ur.prototype,"promises",null),d([f({readOnly:!0})],ur.prototype,"selectedFeature",null),d([f()],ur.prototype,"selectedFeatureIndex",null),d([f({readOnly:!0})],ur.prototype,"selectedFeatureWidget",null),d([f()],ur.prototype,"spinnerEnabled",void 0),d([f()],ur.prototype,"title",null),d([f()],ur.prototype,"updateLocationEnabled",null),d([f()],ur.prototype,"view",null),d([f({type:Woe}),qet(["triggerAction","trigger-action"])],ur.prototype,"viewModel",void 0),d([f()],ur.prototype,"visible",null),d([f()],ur.prototype,"visibleElements",void 0),d([Qr("visibleElements")],ur.prototype,"castVisibleElements",null),d([Ul()],ur.prototype,"_close",null),d([Ul()],ur.prototype,"_toggleDockEnabled",null),d([Ul()],ur.prototype,"_toggleFeatureMenu",null),d([Ul()],ur.prototype,"_toggleActionsMenu",null),d([Ul()],ur.prototype,"_triggerAction",null),d([Ul()],ur.prototype,"_selectFeature",null),d([Ul()],ur.prototype,"_next",null),d([Ul()],ur.prototype,"_previous",null),ur=d([se("esri.widgets.Popup")],ur);const WU=ur,vI=[0,0];function ect(e){var i,n;const t=(e.ownerDocument||window.document).defaultView,r=e.getBoundingClientRect();return vI[0]=r.left+((i=t==null?void 0:t.pageXOffset)!=null?i:0),vI[1]=r.top+((n=t==null?void 0:t.pageYOffset)!=null?n:0),vI}function HU(e){e&&(dre(e),e.parentNode&&e.parentNode.removeChild(e))}function tct(e){const t=document.createElement("div");return e.appendChild(t),t}const Tb=16,J2=750,rct=512,ict=2,nct=e=>{let t=class extends e{constructor(...r){var i;super(...r),this._freqInfo={freq:Tb,time:J2},this._overlayRenderTaskHandle=null,this.height=0,this.overlay=null,this.position=null,this.resizing=!1,this.root=null,this.surface=null,this.suspended=!0,this.ui=null,this.userContent=null,this.width=0,this.widthBreakpoint=null,r.length!==0&&((i=r[0])==null?void 0:i.popup)!==void 0||(this.popup=new WU({view:this})),this.handles.add([Ot(()=>this.cursor,n=>{const{surface:o}=this;o&&o.setAttribute("data-cursor",n)}),Ot(()=>this.interacting,n=>{const{surface:o}=this;o&&o.setAttribute("data-interacting",n.toString())})])}initialize(){this.handles.add(Ot(()=>this.ui,(r,i)=>this._handleUIChange(r,i))),this._wireUI(this.ui),this.handles.add([this.on("focus",()=>this.notifyChange("focused")),this.on("blur",()=>this.notifyChange("focused"))])}destroy(){this.destroyed||(this.ui=yn(this.ui),this.popup&&!this.popup.destroyed&&this.popup.destroy(),this.container=null)}get container(){var r;return(r=this._get("container"))!=null?r:null}set container(r){const i=this._get("container"),n=oN(r),o=n instanceof HTMLDivElement?n:null;if(o||typeof r!="string"||ft.getLogger(this.declaredClass).error("#container",`element with id '${r}' not found`),i===o)return;const s="dom-size";if(this.handles.remove(s),this._stopMeasuring(),i&&(i.classList.remove("esri-view"),this._overlayRenderTaskHandle&&(this._overlayRenderTaskHandle.remove(),this._overlayRenderTaskHandle=null),this.overlay&&(this.overlay.destroy(),this._set("overlay",null)),this.root&&(HU(this.root),this._set("root",null)),this.userContent&&(vB(this.userContent,i),HU(this.userContent),this._set("userContent",null))),!o)return this._set("width",0),this._set("height",0),this._set("position",null),this._set("suspended",!0),this._set("surface",null),void this._set("container",null);o.classList.add("esri-view");const l=document.createElement("div");l.className="esri-view-user-storage",vB(o,l),o.appendChild(l),this._set("userContent",l);const a=document.createElement("div");a.className="esri-view-root",o.insertBefore(a,o.firstChild),this._set("root",a);const c=document.createElement("div");c.className="esri-view-surface",c.setAttribute("role","application"),c.tabIndex=0,a.appendChild(c),this._set("surface",c);const u=new AB;a.appendChild(u.surface),this._set("overlay",u),Ot(()=>u.needsRender,p=>{p&&!this._overlayRenderTaskHandle?this._overlayRenderTaskHandle=Hv({render:()=>{var h;return(h=this.overlay)==null?void 0:h.render()}}):this._overlayRenderTaskHandle=Dn(this._overlayRenderTaskHandle)}),this.forceDOMReadyCycle(),this.handles.add(Ot(()=>this.size,p=>{const[h,m]=p,y="esri-view-surface--inset-outline";h>=document.body.clientWidth||m>=document.body.clientHeight?c.classList.add(y):c.classList.remove(y)},si),s),this._set("container",o),this._startMeasuring()}get focused(){const r=document.activeElement===this.surface;return document.hasFocus()&&r}set popup(r){const i=this._get("popup");i&&i!==r&&i.destroy(),this._set("popup",r)}get size(){return[this.width,this.height]}blur(){this.surface&&this.surface.blur()}focus(){this.surface&&this.surface.focus()}pageToContainer(r,i,n){const o=this.position;return r-=o?o[0]:0,i-=o?o[1]:0,n?(n[0]=r,n[1]=i):n=[r,i],n}containerToPage(r,i,n){const o=this.position;return r+=o?o[0]:0,i+=o?o[1]:0,n?(n[0]=r,n[1]=i):n=[r,i],n}_handleUIChange(r,i){i&&(this.handles.remove("ui"),i.destroy()),r&&this._wireUI(r),this._set("ui",r)}_wireUI(r){this.handles.remove("ui"),r&&(r.view=this,this.handles.add([Ot(()=>this.root,i=>{r.container=i?tct(i):null},si),Ot(()=>this.popup,(i,n)=>{const o="popup",s="manual";n&&r.remove(n,o),i&&(i.view=r.view,r.add(i,{key:o,position:s}))},si)],"ui"))}_stopMeasuring(){this.handles.remove("measuring"),this._get("resizing")&&this._set("resizing",!1)}_startMeasuring(){const r=this._freqInfo;r.freq=Tb,r.time=J2,this.handles.add([(()=>{const i=()=>{r.freq=Tb,r.time=J2};return window.addEventListener("resize",i),{remove(){window.removeEventListener("resize",i)}}})(),Hv({prepare:i=>{const n=this._measure(),o=this._freqInfo;if(o.time+=i.deltaTime,n&&(o.freq=Tb,this._get("resizing")||this._set("resizing",!0)),o.time<o.freq)return;o.time=0;const s=this._position();o.freq=s||n?Tb:Math.min(J2,o.freq*ict),!n&&o.freq>=rct&&this._get("resizing")&&this._set("resizing",!1)}})],"measuring"),this._measure(),this._position()}_measure(){const r=this.container,i=r?r.clientWidth:0,n=r?r.clientHeight:0;if(i===0||n===0)return this.suspended||this._set("suspended",!0),!1;const o=this.width,s=this.height;return i===o&&n===s?(this.suspended&&this._set("suspended",!1),!1):(this._set("width",i),this._set("height",n),this.suspended&&this._set("suspended",!1),this.emit("resize",{oldWidth:o,oldHeight:s,width:i,height:n}),!0)}_position(){const r=this.container,i=this.position,n=r&&ect(r);return!!n&&(!i||n[0]!==i[0]||n[1]!==i[1])&&(this._set("position",[n[0],n[1]]),!0)}forceDOMReadyCycle(){}};return d([f()],t.prototype,"container",null),d([f({readOnly:!0})],t.prototype,"focused",null),d([f({readOnly:!0})],t.prototype,"height",void 0),d([f({type:WU})],t.prototype,"popup",null),d([f({type:AB})],t.prototype,"overlay",void 0),d([f({readOnly:!0})],t.prototype,"position",void 0),d([f({readOnly:!0})],t.prototype,"resizing",void 0),d([f({readOnly:!0})],t.prototype,"root",void 0),d([f({value:null,readOnly:!0})],t.prototype,"size",null),d([f({readOnly:!0})],t.prototype,"surface",void 0),d([f({readOnly:!0})],t.prototype,"suspended",void 0),d([f()],t.prototype,"ui",void 0),d([f({readOnly:!0})],t.prototype,"userContent",void 0),d([f({readOnly:!0})],t.prototype,"width",void 0),d([f()],t.prototype,"widthBreakpoint",void 0),t=d([se("esri.views.DOMContainer")],t),t},oct=e=>{let t=class extends e{async fetchPopupFeatures(r,i){await this.when();const{location:n,queryArea:o,layerViewsAndGraphics:s,clientOnlyGraphics:l}=await this._prepareFetchPopupFeatures(r,i),a=Promise.resolve(l),c=this._queryLayerPopupFeatures(o,s,i),u=c.map(p=>p.promise);return{location:n,clientOnlyGraphics:l,allGraphicsPromise:Z7e([a,...u]).then(p=>Array.from(new Set(p.flat()))),promisesPerLayerView:c}}_queryLayerPopupFeatures(r,i,n){return i.map(({layerView:o,graphics:s})=>{const l={clientGraphics:s,event:ue(n)?n.event:null,signal:ue(n)?n.signal:null,defaultPopupTemplateEnabled:!!ue(n)&&!!n.defaultPopupTemplateEnabled},a=o.fetchPopupFeatures(r,l);return{layerView:o,promise:a}})}_isValidPopupGraphic(r,i){return r&&!!r.getEffectivePopupTemplate(ue(i)&&i.defaultPopupTemplateEnabled)}async _prepareFetchPopupFeatures(r,i){const{clientGraphics:n,queryArea:o,location:s}=await this._popupHitTestGraphics(r,i),l=this._getFetchPopupLayerViews(),{layerViewsAndGraphics:a,clientOnlyGraphics:c}=this._graphicsPerFetchPopupLayerView(n,l);return{clientOnlyGraphics:c,layerViewsAndGraphics:a,queryArea:o,location:s}}async _popupHitTestGraphics(r,i){const{results:n,mapPoint:o}=await this.popupHitTest(r),s=n.filter(a=>a.type==="graphic"&&this._isValidPopupGraphic(a.graphic,i)),l=s.length?s[0].mapPoint:null;return{clientGraphics:s.map(a=>a.graphic),queryArea:o,location:o||l}}_getFetchPopupLayerViews(){const r=[];return this.allLayerViews.forEach(i=>{this._isValidPopupLayerView(i)&&r.push(i)}),ue(this.graphicsView)&&this._isValidPopupLayerView(this.graphicsView)&&r.push(this.graphicsView),r.reverse()}_isValidPopupLayerView(r){return ue(r)&&(!("layer"in r)||!r.suspended)&&"fetchPopupFeatures"in r}_graphicsPerFetchPopupLayerView(r,i){const n=[],o=new Map,s=i.map(l=>{const a=[];return"layer"in l?o.set(l.layer,a):o.set(l.graphics,a),{layerView:l,graphics:a}});for(const l of r){const a=o.get(l.layer)||o.get(l.sourceLayer)||null;a?a.push(l):n.push(l)}return{layerViewsAndGraphics:s,clientOnlyGraphics:n}}};return t=d([se("esri.views.PopupView")],t),t};async function dF(e,t){return await e.load(),sct(e,t)}async function sct(e,t){const r=[],i=(...o)=>{for(const s of o)et(s)||(Array.isArray(s)?i(...s):dr.isCollection(s)?s.forEach(l=>i(l)):uu.isLoadable(s)&&r.push(s))};t(i);let n=null;if(await ltt(r,async o=>{(await bT(lct(o)?o.loadAll():o.load())).ok!==!1||n||(n=o)}),n)throw n.loadError;return e}function lct(e){return"loadAll"in e&&typeof e.loadAll=="function"}async function act(e){if(!e)return;const t=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e,r=await Nte("esri/t9n/basemaps");return r[e]||r[t]}const iL={streets:{id:"streets",classic:!0,deprecated:!0,get thumbnailUrl(){return ui("esri/images/basemap/streets.jpg")},baseMapLayers:[{id:"streets-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Street Map",showLegend:!1,visibility:!0,opacity:1}]},satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},topo:{id:"topo",classic:!0,deprecated:!0,get thumbnailUrl(){return ui("esri/images/basemap/topo.jpg")},baseMapLayers:[{id:"topo-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Topo Map",showLegend:!1,visibility:!0,opacity:1}]},gray:{id:"gray",classic:!0,deprecated:!0,get thumbnailUrl(){return ui("esri/images/basemap/gray.jpg")},baseMapLayers:[{id:"gray-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"dark-gray":{id:"dark-gray",classic:!0,deprecated:!0,get thumbnailUrl(){return ui("esri/images/basemap/dark-gray.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"dark-gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"national-geographic":{id:"national-geographic",classic:!0,deprecated:!0,get thumbnailUrl(){return ui("esri/images/basemap/national-geographic.jpg")},baseMapLayers:[{id:"national-geographic-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer",title:"NatGeo World Map",showLegend:!1,layerType:"ArcGISTiledMapServiceLayer",visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return ui("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"arcgis-imagery":{get thumbnailUrl(){return ui("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return ui("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return ui("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return ui("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return ui("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return ui("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return ui("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return ui("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return ui("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return ui("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}};function pF(e){var t;return(e==null?void 0:e.type)==="feature"&&!e.url&&((t=e.source)==null?void 0:t.type)==="memory"}function cvt(e){var t;return(e==null?void 0:e.type)==="feature"&&((t=e.source)==null?void 0:t.type)==="feature-layer"}const cct=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),uct=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","ogc-feature","route","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function dct(e){return e.layerContainerType==="basemap"?cct:e.layerContainerType==="operational-layers"?uct:null}function pct(e,t){if(t.restrictedWebMapWriting){const r=dct(t);return!ue(r)||r.has(e.type)&&!pF(e)}return!0}function hct(e,t){if(pF(e)){const r=_0("featureCollection.layers",t),i=r&&r[0]&&r[0].layerDefinition;i&&bI(e,i)}else e.type==="stream"?bI(e,t.layerDefinition=t.layerDefinition||{}):e.type!=="group"&&bI(e,t)}function bI(e,t){"maxScale"in e&&(t.maxScale=$S(e.maxScale)),"minScale"in e&&(t.minScale=$S(e.minScale))}function fct(e,t){if(hct(e,t),"blendMode"in e&&(t.blendMode=e.blendMode,t.blendMode==="normal"&&delete t.blendMode),t.opacity=$S(e.opacity),t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&e.type!=="wmts")if(pF(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}function GU(e,t,r){if(!("write"in e)||!e.write)return r&&r.messages&&r.messages.push(new ze("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if(pct(e,r)){const i={};return e.write(i,r)?i:null}return ue(t)&&fct(e,t=Ge(t)),t}var zk;let mct=0;const Hoe="esri.Basemap";let jl=zk=class extends nx(uu){constructor(e){super(e),this.id=null,this.portalItem=null,this.spatialReference=null,this.thumbnailUrl=null,this.title="Basemap",this.id=Date.now().toString(16)+"-basemap-"+mct++,this.baseLayers=new dr,this.referenceLayers=new dr;const t=i=>{i.parent&&i.parent!==this&&"remove"in i.parent&&i.parent.remove(i),i.parent=this,i.type==="elevation"&&ft.getLogger(this.declaredClass).error(`Layer '${i.title}, id:${i.id}' of type '${i.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=i=>{i.parent=null};this.baseLayers.on("after-add",i=>t(i.item)),this.referenceLayers.on("after-add",i=>t(i.item)),this.baseLayers.on("after-remove",i=>r(i.item)),this.referenceLayers.on("after-remove",i=>r(i.item))}initialize(){this.when().catch(e=>{ft.getLogger(this.declaredClass).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){var r;const e=this.baseLayers.removeAll();for(const i of e)i.destroy();const t=this.referenceLayers.removeAll();for(const i of t)i.destroy();this.baseLayers.destroy(),this.referenceLayers.destroy(),(r=this.portalItem)==null||r.destroy(),this.portalItem=null}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}set baseLayers(e){this._set("baseLayers",fg(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const i=[];e&&(r={...r,layerContainerType:"basemap"},this.baseLayers.forEach(n=>{const o=GU(n,r.webmap?r.webmap.getLayerJSONFromResourceInfo(n):null,r);ue(o)&&i.push(o)}),this.referenceLayers.forEach(n=>{const o=GU(n,r.webmap?r.webmap.getLayerJSONFromResourceInfo(n):null,r);ue(o)&&(o.isReference=!0,i.push(o))})),t.baseMapLayers=i}set referenceLayers(e){this._set("referenceLayers",fg(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return dF(this,e=>{e(this.baseLayers,this.referenceLayers)})}clone(){const e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.slice(),referenceLayers:this.referenceLayers.slice()};return this.loaded&&(e.loadStatus="loaded"),new zk({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e=e||{},t&&t.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo&&this.resourceInfo.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(r=>{const i=Ge(r);return i.url&&pc(i.url)&&(i.url=`https:${i.url}`),i.templateUrl&&pc(i.templateUrl)&&(i.templateUrl=`https:${i.templateUrl}`),i})),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r}=this;vn(e);const i=[];if(t){const n=t.context?t.context.url:null;if(i.push(this._loadLayersFromJSON(t.data,n,e)),t.data.id&&!t.data.title){const o=t.data.id;i.push(act(o).then(s=>{s&&this.read({title:s},t.context)}))}}else r&&i.push(this._loadFromItem(r,e));await Promise.all(i)}async _loadLayersFromJSON(e,t,r){const i=this.resourceInfo&&this.resourceInfo.context,n=this.portalItem&&this.portalItem.portal||i&&i.portal||null,o=i&&i.origin==="web-scene"?"web-scene":"web-map",{populateOperationalLayers:s}=await ut(()=>import("./layersCreator.139c79ad.js"),["assets/layersCreator.139c79ad.js","assets/lazyLayerLoader.54408344.js","assets/portalLayers.7b8018b1.js","assets/layersLoader.1acfd9a9.js","assets/jsonContext.e9416d90.js","assets/portalItemUtils.6b2af26d.js"]),l=[];if(vn(r),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){const a={context:{origin:o,url:t,portal:n,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},c=s(this.baseLayers,e.baseMapLayers.filter(p=>!p.isReference),a);l.push(c);const u=s(this.referenceLayers,e.baseMapLayers.filter(p=>p.isReference),a);l.push(u)}await Bs(l)}async _loadFromItem(e,t){var o,s;const r=await e.load(t),i=await r.fetchData("json",t),n=vo((o=e.itemUrl)!=null?o:"");return this._set("resourceInfo",{data:(s=i.baseMap)!=null?s:{},context:{origin:"web-map",portal:e.portal||Ws.getDefault(),url:n}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:i.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||Ws.getDefault(),url:n}),this._loadLayersFromJSON(this.resourceInfo.data,n,t)}static fromId(e){const t=iL[e];if(t){if(t.deprecated){let r=null;e==="dark-gray"?r="dark-gray-vector":e==="gray"?r="gray-vector":e==="streets"?r="streets-vector":e==="topo"&&(r="topo-vector"),GJ(ft.getLogger(Hoe),`The ${e} basemap has entered mature support and is no longer being updated.`,{replacement:r,see:"https://arcg.is/1iq8aD",warnOnce:!0})}return zk.fromJSON(t)}return null}};d([f({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,i){this._writeBaseLayers(e,t,i)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:dr}},writer(e,t,r,i){this._writeBaseLayers(e,t,i)}}}}}})],jl.prototype,"baseLayers",null),d([f({type:String,json:{origins:{"web-scene":{write:!0}}}})],jl.prototype,"id",void 0),d([f({type:xE})],jl.prototype,"portalItem",void 0),d([f()],jl.prototype,"referenceLayers",null),d([f({readOnly:!0})],jl.prototype,"resourceInfo",void 0),d([f({type:gr})],jl.prototype,"spatialReference",void 0),d([f()],jl.prototype,"thumbnailUrl",void 0),d([f({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],jl.prototype,"title",void 0),d([zt("title")],jl.prototype,"writeTitle",null),jl=zk=d([se(Hoe)],jl);const n0=jl;var gct=Object.freeze(Object.defineProperty({__proto__:null,default:n0},Symbol.toStringTag,{value:"Module"})),nL;let jk=nL=class extends xt{constructor(e){super(e),this.type="none"}clone(){return new nL({type:this.type})}};d([pr({none:"none",stayAbove:"stay-above"})],jk.prototype,"type",void 0),jk=nL=d([se("esri.ground.NavigationConstraint")],jk);let Vi=class extends rr{constructor(){super(...arguments),this.SCENEVIEW_HITTEST_RETURN_INTERSECTOR=!1,this.DECONFLICTOR_SHOW_VISIBLE=!1,this.DECONFLICTOR_SHOW_INVISIBLE=!1,this.DECONFLICTOR_SHOW_GRID=!1,this.LABELS_SHOW_BORDER=!1,this.TEXT_SHOW_BASELINE=!1,this.TEXT_SHOW_BORDER=!1,this.OVERLAY_DRAW_DEBUG_TEXTURE=!1,this.OVERLAY_SHOW_CENTER=!1,this.SHOW_POI=!1,this.TESTS_DISABLE_OPTIMIZATIONS=!1,this.TESTS_DISABLE_FAST_UPDATES=!1,this.DRAW_MESH_GEOMETRY_NORMALS=!1,this.FEATURE_TILE_FETCH_SHOW_TILES=!1,this.FEATURE_TILE_TREE_SHOW_TILES=!1,this.TERRAIN_TILE_TREE_SHOW_TILES=!1,this.I3S_TREE_SHOW_TILES=!1,this.I3S_SHOW_MODIFICATIONS=!1,this.LOD_INSTANCE_RENDERER_DISABLE_UPDATES=!1,this.LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL=!1,this.EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES=!1,this.LINE_WIREFRAMES=!1,this.TERRAIN_USE_LEGACY_SHADING=!1}};d([f()],Vi.prototype,"SCENEVIEW_HITTEST_RETURN_INTERSECTOR",void 0),d([f()],Vi.prototype,"DECONFLICTOR_SHOW_VISIBLE",void 0),d([f()],Vi.prototype,"DECONFLICTOR_SHOW_INVISIBLE",void 0),d([f()],Vi.prototype,"DECONFLICTOR_SHOW_GRID",void 0),d([f()],Vi.prototype,"LABELS_SHOW_BORDER",void 0),d([f()],Vi.prototype,"TEXT_SHOW_BASELINE",void 0),d([f()],Vi.prototype,"TEXT_SHOW_BORDER",void 0),d([f()],Vi.prototype,"OVERLAY_DRAW_DEBUG_TEXTURE",void 0),d([f()],Vi.prototype,"OVERLAY_SHOW_CENTER",void 0),d([f()],Vi.prototype,"SHOW_POI",void 0),d([f()],Vi.prototype,"TESTS_DISABLE_OPTIMIZATIONS",void 0),d([f()],Vi.prototype,"TESTS_DISABLE_FAST_UPDATES",void 0),d([f()],Vi.prototype,"DRAW_MESH_GEOMETRY_NORMALS",void 0),d([f()],Vi.prototype,"FEATURE_TILE_FETCH_SHOW_TILES",void 0),d([f()],Vi.prototype,"FEATURE_TILE_TREE_SHOW_TILES",void 0),d([f()],Vi.prototype,"TERRAIN_TILE_TREE_SHOW_TILES",void 0),d([f()],Vi.prototype,"I3S_TREE_SHOW_TILES",void 0),d([f()],Vi.prototype,"I3S_SHOW_MODIFICATIONS",void 0),d([f()],Vi.prototype,"LOD_INSTANCE_RENDERER_DISABLE_UPDATES",void 0),d([f()],Vi.prototype,"LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL",void 0),d([f()],Vi.prototype,"EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES",void 0),d([f()],Vi.prototype,"LINE_WIREFRAMES",void 0),d([f()],Vi.prototype,"TERRAIN_USE_LEGACY_SHADING",void 0),Vi=d([se("esri.views.3d.support.DebugFlags")],Vi);const yct=new Vi;var oL;let Dc=oL=class extends nx(uu){constructor(e){super(e),this.opacity=1,this.shading=!yct.TERRAIN_USE_LEGACY_SHADING,this.surfaceColor=null,this.navigationConstraint=null,this.layers=new dr;const t=i=>{i.parent&&i.parent!==this&&"remove"in i.parent&&i.parent.remove(i),i.parent=this,i.type!=="elevation"&&i.type!=="base-elevation"&&ft.getLogger(this.declaredClass).error(`Layer '${i.title}, id:${i.id}' of type '${i.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)},r=i=>{i.parent=null};this.layers.on("after-add",i=>t(i.item)),this.layers.on("after-remove",i=>r(i.item))}initialize(){this.when().catch(e=>{ft.getLogger(this.declaredClass).error("#load()","Failed to load ground",e)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const e=this.layers.removeAll();for(const t of e)t.destroy();this.layers.destroy()}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}set layers(e){this._set("layers",fg(e,this._get("layers")))}writeLayers(e,t,r,i){const n=[];e&&(i={...i,layerContainerType:"ground"},e.forEach(o=>{if("write"in o){const s={};snt(o)().write(s,i)&&n.push(s)}else i&&i.messages&&i.messages.push(new ze("layer:unsupported",`Layers (${o.title}, ${o.id}) of type '${o.declaredClass}' cannot be persisted in the ground`,{layer:o}))})),t.layers=n}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return dF(this,e=>{e(this.layers)})}async queryElevation(e,t){await this.load({signal:t==null?void 0:t.signal});const{ElevationQuery:r}=await ut(()=>import("./ElevationQuery.e86913ed.js"),[]);vn(t);const i=new r,n=this.layers.filter(qU).toArray();return i.queryAll(n,e,t)}async createElevationSampler(e,t){await this.load({signal:t==null?void 0:t.signal});const{ElevationQuery:r}=await ut(()=>import("./ElevationQuery.e86913ed.js"),[]);vn(t);const i=new r,n=this.layers.filter(qU).toArray();return i.createSamplerAll(n,e,t)}clone(){const e={opacity:this.opacity,surfaceColor:Ge(this.surfaceColor),navigationConstraint:Ge(this.navigationConstraint),layers:this.layers.slice()};return this.loaded&&(e.loadStatus="loaded"),new oL({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}_loadFromSource(e){const t=this.resourceInfo;return t?this._loadLayersFromJSON(t.data,t.context,e):Promise.resolve()}_loadLayersFromJSON(e,t,r){const i=t&&t.origin||"web-scene",n=t&&t.portal||null,o=t&&t.url||null;return ut(()=>import("./layersCreator.139c79ad.js"),["assets/layersCreator.139c79ad.js","assets/lazyLayerLoader.54408344.js","assets/portalLayers.7b8018b1.js","assets/layersLoader.1acfd9a9.js","assets/jsonContext.e9416d90.js","assets/portalItemUtils.6b2af26d.js"]).then(({populateOperationalLayers:s})=>{vn(r);const l=[];if(e.layers&&Array.isArray(e.layers)){const a={context:{origin:i,url:o,portal:n,layerContainerType:"ground"},defaultLayerType:"ArcGISTiledElevationServiceLayer"};l.push(s(this.layers,e.layers,a))}return Bs(l)}).then(()=>{})}};function vct(e){return e&&"createElevationSampler"in e}function qU(e){return e.type==="elevation"||vct(e)}d([f({json:{read:!1}})],Dc.prototype,"layers",null),d([zt("layers")],Dc.prototype,"writeLayers",null),d([f({readOnly:!0})],Dc.prototype,"resourceInfo",void 0),d([f({type:Number,nonNullable:!0,range:{min:0,max:1},json:{type:ni,read:{reader:c1,source:"transparency"},write:{writer:(e,t)=>{t.transparency=tT(e)},target:"transparency"}}})],Dc.prototype,"opacity",void 0),d([f({type:Boolean,nonNullable:!0,json:{read:!1}})],Dc.prototype,"shading",void 0),d([f({type:wr,json:{type:[ni],write:(e,t)=>{t.surfaceColor=e.toJSON().slice(0,3)}}})],Dc.prototype,"surfaceColor",void 0),d([f({type:jk,json:{write:!0}})],Dc.prototype,"navigationConstraint",void 0),Dc=oL=d([se("esri.Ground")],Dc);const SE=Dc;function bct(e){var t;return!!(e&&e.loaded&&"capabilities"in e&&((t=e==null?void 0:e.capabilities)==null?void 0:t.operations)&&"supportsEditing"in e.capabilities.operations&&e.capabilities.operations.supportsEditing===!0)&&!("editingEnabled"in e&&!e.editingEnabled)}const YU=ft.getLogger("esri.support.basemapUtils");function _ct(){return{}}function wct(e){for(const t in e){const r=e[t];(r==null?void 0:r.destroyed)===!1&&r.destroy(),delete e[t]}}function xct(e,t){let r;if(typeof e=="string"){if(!(e in iL)){const i=Object.entries(iL).filter(([n,o])=>pi.apiKey&&!o.classic||!pi.apiKey&&o.classic&&!o.deprecated).map(([n])=>`"${n}"`).join(", ");return YU.warn(`Unable to find basemap definition for: ${e}. Try one of these: ${i}`),null}t&&(r=t[e]),r||(r=n0.fromId(e),t&&(t[e]=r))}else r=_n(n0,e);return r!=null&&r.destroyed&&(YU.warn("The provided basemap is already destroyed",{basemap:r}),r=null),r}function Cct(e){return new Jv({getCollections:()=>[e.tables,e.layers],getChildrenFunction:t=>{const r=[];return"tables"in t&&r.push(t.tables),"layers"in t&&r.push(t.layers),r},itemFilterFunction:t=>{const r=t.parent;return r&&"tables"in r&&r.tables.includes(t)}})}const KU={"world-elevation":{id:"worldElevation",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"},"world-topobathymetry":{id:"worldTopoBathymetry",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/TopoBathy3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"}};function kct(e){let t=null;if(typeof e=="string")if(e in KU){const r=KU[e];t=new SE({resourceInfo:{data:{layers:[r]}}})}else ft.getLogger("esri.support.groundUtils").warn(`Unable to find ground definition for: ${e}. Try "world-elevation"`);else t=_n(SE,e);return t}function sL(e,t,r){let i,n;if(e)for(let o=0,s=e.length;o<s;o++){if(i=e.getItemAt(o),i[t]===r)return i;if((i==null?void 0:i.type)==="group"&&(n=sL(i.layers,t,r),n))return n}}const Sct=e=>{let t=class extends e{constructor(...r){super(...r),this.layers=new dr;const i=s=>{s.parent&&"remove"in s.parent&&s.parent.remove(s)},n=s=>{s.parent=this,this.layerAdded(s),s.type!=="elevation"&&s.type!=="base-elevation"||ft.getLogger(this.declaredClass).error(`Layer 'title:${s.title}, id:${s.id}' of type '${s.type}' is not supported as an operational layer and will therefore be ignored.`)},o=s=>{s.parent=null,this.layerRemoved(s)};this.layers.on("before-add",s=>i(s.item)),this.layers.on("after-add",s=>n(s.item)),this.layers.on("after-remove",s=>o(s.item))}destroy(){const r=this.layers.removeAll();for(const i of r)this.layerRemoved(i),i.destroy();this.layers.destroy()}set layers(r){this._set("layers",fg(r,this._get("layers")))}add(r,i){const n=this.layers;if(i=n.getNextIndex(i),r instanceof Rh){const o=r;o.parent===this?this.reorder(o,i):n.add(o,i)}else Rd(r)?r.then(o=>{this.destroyed||this.add(o,i)}):ft.getLogger(this.declaredClass).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(r,i){const n=this.layers;i=n.getNextIndex(i),r.slice().forEach(o=>{o.parent!==this?(n.add(o,i),i+=1):this.reorder(o,i)})}findLayerById(r){return sL(this.layers,"id",r)}findLayerByUid(r){return sL(this.layers,"uid",r)}remove(r){return this.layers.remove(r)}removeMany(r){return this.layers.removeMany(r)}removeAll(){return this.layers.removeAll()}reorder(r,i){return this.layers.reorder(r,i)}layerAdded(r){}layerRemoved(r){}};return d([f()],t.prototype,"layers",null),t=d([se("esri.support.LayersMixin")],t),t};function lL(e,t,r){if(e)for(let i=0,n=e.length;i<n;i++){const o=e.getItemAt(i);if(o[t]===r)return o;if((o==null?void 0:o.type)==="group"){const s=lL(o.tables,t,r);if(s)return s}}}const Ect=e=>{let t=class extends e{constructor(...r){super(...r),this.tables=new dr,this.tables.on("after-add",i=>{const n=i.item;n.parent&&n.parent!==this&&"tables"in n.parent&&n.parent.tables.remove(n),n.parent=this,n.type!=="feature"&&ft.getLogger(this.declaredClass).error(`Layer 'title:${n.title}, id:${n.id}' of type '${n.type}' is not supported as a table and will therefore be ignored.`)}),this.tables.on("after-remove",i=>{i.item.parent=null})}destroy(){const r=this.tables.removeAll();for(const i of r)i.destroy();this.tables.destroy()}set tables(r){this._set("tables",fg(r,this._get("tables")))}findTableById(r){return lL(this.tables,"id",r)}findTableByUid(r){return lL(this.tables,"uid",r)}};return d([f()],t.prototype,"tables",null),t=d([se("esri.support.TablesMixin")],t),t};let Nc=class extends Ect(Sct(Dd.EventedMixin(rr))){constructor(e){super(e),this.allLayers=new Jv({getCollections:()=>{var t,r,i;return[(t=this.basemap)==null?void 0:t.baseLayers,(r=this.ground)==null?void 0:r.layers,this.layers,(i=this.basemap)==null?void 0:i.referenceLayers]},getChildrenFunction:t=>"layers"in t?t.layers:null}),this.allTables=Cct(this),this.basemap=null,this.editableLayers=new Jv({getCollections:()=>[this.allLayers],itemFilterFunction:bct}),this.ground=new SE,this._basemapCache=_ct()}destroy(){var e,t;this.allLayers.destroy(),this.allTables.destroy(),this.editableLayers.destroy(),(e=this.ground)==null||e.destroy(),(t=this.basemap)==null||t.destroy(),wct(this._basemapCache),this._basemapCache=null}castBasemap(e){return xct(e,this._basemapCache)}castGround(e){const t=kct(e);return et(t)?this._get("ground"):t}findLayerById(e){return this.allLayers.find(t=>t.id===e)}findTableById(e){return this.allTables.find(t=>t.id===e)}};d([f({readOnly:!0,dependsOn:[]})],Nc.prototype,"allLayers",void 0),d([f({readOnly:!0})],Nc.prototype,"allTables",void 0),d([f({type:n0})],Nc.prototype,"basemap",void 0),d([Qr("basemap")],Nc.prototype,"castBasemap",null),d([f({readOnly:!0})],Nc.prototype,"editableLayers",void 0),d([f({type:SE,nonNullable:!0})],Nc.prototype,"ground",void 0),d([Qr("ground")],Nc.prototype,"castGround",null),Nc=d([se("esri.Map")],Nc);const aL=Nc;let mw=class extends fa(dr){constructor(e){super(e),this.handles.add([this.on("before-add",t=>{et(t.item)&&t.preventDefault()}),this.on("after-add",t=>this._own(t.item)),this.on("after-remove",t=>this._release(t.item))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(dr.ofType(this.itemType.Type))(e):new dr(e)}};function ZU(e,t){return{type:e,cast:lte,set(r){const i=fg(r,this._get(t),e);i.owner=this,this._set(t,i)}}}d([f()],mw.prototype,"owner",null),mw=d([se("esri.core.support.OwningCollection")],mw);let EE=class extends mw{constructor(e){super(e),this.handles.add(this.on("before-add",t=>{et(t.item)||t.item.parent===this.owner&&(ft.getLogger(this.declaredClass).warn("Analysis inside the collection must be unique. Not adding this element again."),t.preventDefault())}))}_own(e){e.parent=this.owner}_release(e){e.parent=null}};EE=d([se("esri.support.AnalysesCollection")],EE);let gw=class extends mw{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};d([hD({Type:Hs,ensureType:_n(Hs)})],gw.prototype,"itemType",void 0),gw=d([se("esri.support.GraphicsCollection")],gw);let Rp=class extends rr{constructor(e){super(e),this.view=null,this.baseLayerViews=new dr,this.referenceLayerViews=new dr,this._loadingHandle=Ot(()=>{var t,r;return(r=(t=this.view)==null?void 0:t.map)==null?void 0:r.basemap},t=>{t&&t.load().catch(()=>{})},si)}destroy(){this._set("view",null),this._loadingHandle&&(this._loadingHandle.remove(),this._loadingHandle=null)}get suspended(){return!this.view||this.view.suspended}get updating(){var t,r;if(this.view&&this.view.suspended)return!1;const e=(r=(t=this.view)==null?void 0:t.map)==null?void 0:r.basemap;return!!e&&!!e.loaded&&(this.baseLayerViews.some(i=>i.updating)||this.referenceLayerViews.some(i=>i.updating))}};d([f({constructOnly:!0})],Rp.prototype,"view",void 0),d([f({readOnly:!0})],Rp.prototype,"baseLayerViews",void 0),d([f({readOnly:!0})],Rp.prototype,"referenceLayerViews",void 0),d([f({readOnly:!0})],Rp.prototype,"suspended",null),d([f({type:Boolean,readOnly:!0})],Rp.prototype,"updating",null),Rp=d([se("esri.views.BasemapView")],Rp);class Tct{constructor(t,r,i){this.layer=t,this.view=r,this.layerViewImporter=i,this._controller=new AbortController,this._deferred=_d(),this._started=!1,this.done=!1,aa(this._controller.signal,()=>{const n=new ze("cancelled:layerview-create","layerview creation cancelled",{layer:t});this._deferred.reject(n)})}get promise(){return this._deferred.promise}destroy(){this._controller.abort();const{layerView:t}=this;if(!t)return;const{layer:r,view:i}=this;r.emit("layerview-destroy",{view:i,layerView:t}),i.emit("layerview-destroy",{layer:r,layerView:t}),this.done=!0,this.layer=null,this.layerView=null,this.view=null,this.layerViewImporter=null}async start(){var n,o;if(this._started)return;this._started=!0;const{_controller:{signal:t},layer:r,view:i}=this;this._map=i.map;try{let s,l;if(await r.load({signal:t}),"prefetchResources"in r&&await r.prefetchResources({signal:t}),r.createLayerView)s=await r.createLayerView(i,{signal:t});else{if(!this.layerViewImporter.hasLayerViewModule(r))throw new ze("layer:view-not-supported","No layerview implementation was found");const u=await this.layerViewImporter.importLayerView(r);vn(t),s="default"in u?new u.default({layer:r,view:i}):new u({layer:r,view:i})}const a=()=>{l=Dn(l),s.destroyed||s.destroy(),s.layer=null,s.parent=null,s.view=null,this.done=!0};l=aa(t,a),vn(t);try{await s.when()}catch(u){throw a(),u}if(!((o=(n=this._map)==null?void 0:n.allLayers)==null?void 0:o.includes(r)))return a(),void this._deferred.reject(new ze("view:no-layerview-for-layer","The layer has been removed from the map",{layer:r}));this.layerView=s,r.emit("layerview-create",{view:i,layerView:s}),i.emit("layerview-create",{layer:r,layerView:s}),this.done=!0,this._deferred.resolve(s)}catch(s){r.emit("layerview-create-error",{view:i,error:s}),i.emit("layerview-create-error",{layer:r,error:s}),this.done=!0,this._deferred.reject(new ze("layerview:create-error","layerview creation failed",{layer:r,error:s}))}}}let Vl=class extends rr{constructor(e){super(e),this._layerLayerViewInfoMap=new Map,this._watchUpdatingTracking=new fv,this.supportsGround=!0,this._preloadLayerViewModules=()=>{var r;const t=(r=this.view.map)==null?void 0:r.allLayers;if(t)for(const i of t)this.layerViewImporter.hasLayerViewModule(i)&&this.layerViewImporter.importLayerView(i)},this._reschedule=()=>(et(this._workPromise)&&(this._workPromise=_d(),this._workPromise.promise.catch(()=>{})),this.removeHandles("reschedule"),this.addHandles(x0(this._doWork),"reschedule"),this._workPromise.promise),this._doWork=()=>{var s,l,a;const t=this.view.map;if(this._map!==t&&(this.clear(),this._map=t),et(this._workPromise))return void this.notifyChange("updating");this.removeHandles("reschedule"),this.removeHandles("collection-change");const r=[],i=c=>{if(!et(c))for(const u of c)u&&(r.push(u),this._createLayerView(u),"layers"in u&&u.layers&&i(u.layers))};for(const c of this._rootCollectionNames)i(this.get(c));this._refreshCollections();for(const[c,u]of this._layerLayerViewInfoMap)r.includes(c)||(this._layerLayerViewInfoMap.delete(u.layer),u.destroy());const n=r.filter(c=>c.type==="group").map(c=>c.layers),o=[(s=t==null?void 0:t.ground)==null?void 0:s.layers,(l=t==null?void 0:t.basemap)==null?void 0:l.baseLayers,(a=t==null?void 0:t.basemap)==null?void 0:a.referenceLayers,t==null?void 0:t.layers,...n].filter(c=>!!c);this.addHandles(o.map(c=>this._watchUpdatingTracking.addOnCollectionChange(()=>c,this._reschedule)),"collection-change"),this._workPromise.resolve(),this._workPromise=null}}initialize(){this.own([Cl(()=>{var e,t;return(t=(e=this.view)==null?void 0:e.map)==null?void 0:t.allLayers},"change",this._preloadLayerViewModules,{onListenerAdd:this._preloadLayerViewModules}),Ot(()=>{const e=this.view,t=e==null?void 0:e.map;return[t==null?void 0:t.basemap,t==null?void 0:t.ground,t==null?void 0:t.layers,e==null?void 0:e.ready]},()=>this._reschedule(),Gp)]),this._preloadLayerViewModules(),this._reschedule()}destroy(){this.clear(),this._watchUpdatingTracking.destroy(),this._map=null,ue(this._workPromise)&&(this._workPromise.reject(on()),this._workPromise=null)}get _layersToLayerViews(){const e=[["view.map.basemap.baseLayers","view.basemapView.baseLayerViews"],["view.map.layers","view.layerViews"],["view.map.basemap.referenceLayers","view.basemapView.referenceLayerViews"]];return this.supportsGround&&e.push(["view.map.ground.layers","view.groundView.layerViews"]),new Map(e)}get _rootCollectionNames(){return Array.from(this._layersToLayerViews.keys())}get updating(){return ue(this._workPromise)||this._watchUpdatingTracking.updating||L3(this._layerLayerViewInfoMap,e=>!e.done)}get updatingRemaining(){let e=0;for(const t of this._layerLayerViewInfoMap.values())t.done||++e;return e}clear(){if(!this.destroyed){for(const e of this._layerLayerViewInfoMap.values())e.destroy();this._layerLayerViewInfoMap.clear(),this._refreshCollections()}}async whenLayerView(e){if(await this._reschedule(),!this._layerLayerViewInfoMap.has(e))throw new ze("view:no-layerview-for-layer","No layerview has been found for the layer",{layer:e});return this._layerLayerViewInfoMap.get(e).promise}_refreshCollections(){for(const[e,t]of this._layersToLayerViews)this._populateLayerViewsOwners(this.get(e),this.get(t),this.view);this.notifyChange("updating"),this.notifyChange("updatingRemaining")}_populateLayerViewsOwners(e,t,r){if(!e||!t)return void(t&&t.removeAll());let i=0;for(const n of e){const o=this._layerLayerViewInfoMap.get(n);if(!o||!o.layerView)continue;const s=o.layerView;s.layer=n,s.parent=r,t.getItemAt(i)!==s&&t.splice(i,0,s),n.layers&&this._populateLayerViewsOwners(n.layers,s.layerViews,s),i+=1}i<t.length&&t.splice(i,t.length)}_createLayerView(e){if(this._layerLayerViewInfoMap.has(e))return this.view.ready&&this._layerLayerViewInfoMap.get(e).start(),this.notifyChange("updating"),void this.notifyChange("updatingRemaining");e.load().catch(()=>{}),this.layerViewImporter.hasLayerViewModule(e)&&this.layerViewImporter.importLayerView(e);const t=new Tct(e,this.view,this.layerViewImporter);t.promise.then(()=>this._refreshCollections(),r=>{var i,n;r&&(us(r)||r.name==="cancelled:layerview-create")||ft.getLogger(this.declaredClass).error(`Failed to create layerview for layer title:'${(i=e.title)!=null?i:"no title"}', id:'${(n=e.id)!=null?n:"no id"}' of type '${e.type}'.`,{layer:e,error:r}),this._refreshCollections()}),this._layerLayerViewInfoMap.set(e,t),this.view.ready&&t.start(),this.notifyChange("updating"),this.notifyChange("updatingRemaining")}};d([f()],Vl.prototype,"_workPromise",void 0),d([f({readOnly:!0})],Vl.prototype,"_watchUpdatingTracking",void 0),d([f({readOnly:!0})],Vl.prototype,"_layersToLayerViews",null),d([f({readOnly:!0})],Vl.prototype,"_rootCollectionNames",null),d([f()],Vl.prototype,"layerViewImporter",void 0),d([f()],Vl.prototype,"supportsGround",void 0),d([f({readOnly:!0})],Vl.prototype,"updating",null),d([f({readOnly:!0})],Vl.prototype,"updatingRemaining",null),d([f({constructOnly:!0})],Vl.prototype,"view",void 0),Vl=d([se("esri.views.LayerViewManager")],Vl);const Act=Vl;let sl=class extends rr{constructor(e){super(e),this.factor=1.5,this.offset=Rs(0,0),this.position=null,this.size=120,this.maskUrl=null,this.maskEnabled=!0,this.overlayUrl=null,this.overlayEnabled=!0,this.visible=!0}get version(){return this.commitProperty("factor"),this.commitProperty("offset"),this.commitProperty("position"),this.commitProperty("visible"),this.commitProperty("size"),this.commitProperty("maskUrl"),this.commitProperty("maskEnabled"),this.commitProperty("overlayUrl"),this.commitProperty("overlayEnabled"),(this._get("version")||0)+1}};d([f({type:Number})],sl.prototype,"factor",void 0),d([f({nonNullable:!0})],sl.prototype,"offset",void 0),d([f()],sl.prototype,"position",void 0),d([f({type:Number,range:{min:0}})],sl.prototype,"size",void 0),d([f()],sl.prototype,"maskUrl",void 0),d([f()],sl.prototype,"maskEnabled",void 0),d([f()],sl.prototype,"overlayUrl",void 0),d([f()],sl.prototype,"overlayEnabled",void 0),d([f({readOnly:!0})],sl.prototype,"version",null),d([f({type:Boolean})],sl.prototype,"visible",void 0),sl=d([se("esri.views.Magnifier")],sl);const Goe=sl;class Mct{constructor(){this._tasks=new Array,this._running=new CE(!1)}get length(){return this._tasks.length}get running(){return this._running.get()}destroy(){this.cancelAll()}runTask(t){for(;!t.done&&this._process(t);)t.madeProgress()}push(t,r,i){return this._running.set(!0),new Promise((n,o)=>this._tasks.push(new QU(n,o,t,r,i)))}unshift(t,r,i){return this._running.set(!0),new Promise((n,o)=>this._tasks.unshift(new QU(n,o,t,r,i)))}_process(t){var i;if(this._tasks.length===0)return!1;const r=this._tasks.shift();try{const n=la(r.signal);if(n&&!r.abortCallback)r.reject(on());else{const o=n?(i=r.abortCallback)==null?void 0:i.call(r,on()):r.callback(t);Rd(o)?o.then(r.resolve,r.reject):r.resolve(o)}}catch(n){r.reject(n)}return this._running.set(this._tasks.length>0),!0}cancelAll(){const t=on();for(const r of this._tasks)if(r.abortCallback){const i=r.abortCallback(t);r.resolve(i)}else r.reject(t);this._tasks.length=0,this._running.set(!1)}}class QU{constructor(t,r,i,n,o){this.resolve=t,this.reject=r,this.callback=i,this.signal=n,this.abortCallback=o}}let E_=class extends rr{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};d([f()],E_.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),d([f()],E_.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),E_=d([se("esri.views.support.DebugFlags")],E_);const Ict=new E_;var al;(function(e){e[e.ANIMATING=0]="ANIMATING",e[e.INTERACTING=1]="INTERACTING",e[e.IDLE=2]="IDLE"})(al||(al={}));var Xr;(function(e){e.RESOURCE_CONTROLLER="schedule",e.SLIDE="slide",e.STREAM_DATA_LOADER="stream loader",e.ELEVATION_QUERY="elevation query",e.TERRAIN_SURFACE="terrain",e.SURFACE_GEOMETRY_UPDATES="surface geometry updates",e.GRAPHICS_CORE="Graphics3D",e.I3S_CONTROLLER="I3S",e.POINT_CLOUD_LAYER="point cloud",e.FEATURE_TILE_FETCHER="feature fetcher",e.OVERLAY="overlay",e.STAGE="stage",e.GRAPHICS_DECONFLICTOR="graphics deconflictor",e.FILTER_VISIBILITY="Graphics3D filter visibility",e.SCALE_VISIBILITY="Graphics3D scale visibility",e.FRUSTUM_VISIBILITY="Graphics3D frustum visibility",e.POINT_OF_INTEREST_FREQUENT="POI frequent",e.POINT_OF_INTEREST_INFREQUENT="POI infrequent",e.LABELER="labeler",e.FEATURE_QUERY_ENGINE="feature query",e.FEATURE_TILE_TREE="feature tile tree",e.FEATURE_TILE_TREE_ACTIVE="fast feature tile tree",e.ELEVATION_ALIGNMENT="elevation alignment",e.TEXT_TEXTURE_ATLAS="text texture atlas",e.TEXTURE_UNLOAD="texture unload",e.LINE_OF_SIGHT_TOOL="line of sight tool",e.LINE_OF_SIGHT_TOOL_INTERACTIVE="interactive line of sight tool",e.ELEVATION_PROFILE="elevation profile",e.SNAPPING="snapping",e.SHADOW_ACCUMULATOR="shadow accumulator",e.CLOUDS_GENERATOR="cloud generator",e[e.TEST_PRIO=1]="TEST_PRIO"})(Xr||(Xr={}));const Wc=0,JU=new Map([[Xr.RESOURCE_CONTROLLER,Wc],[Xr.SLIDE,Wc],[Xr.STREAM_DATA_LOADER,Wc],[Xr.ELEVATION_QUERY,Wc],[Xr.TERRAIN_SURFACE,1],[Xr.SURFACE_GEOMETRY_UPDATES,1],[Xr.GRAPHICS_CORE,2],[Xr.I3S_CONTROLLER,2],[Xr.POINT_CLOUD_LAYER,2],[Xr.FEATURE_TILE_FETCHER,2],[Xr.OVERLAY,4],[Xr.STAGE,4],[Xr.GRAPHICS_DECONFLICTOR,4],[Xr.FILTER_VISIBILITY,4],[Xr.SCALE_VISIBILITY,4],[Xr.FRUSTUM_VISIBILITY,4],[Xr.CLOUDS_GENERATOR,4],[Xr.POINT_OF_INTEREST_FREQUENT,6],[Xr.POINT_OF_INTEREST_INFREQUENT,30],[Xr.LABELER,8],[Xr.FEATURE_QUERY_ENGINE,8],[Xr.FEATURE_TILE_TREE,16],[Xr.FEATURE_TILE_TREE_ACTIVE,Wc],[Xr.ELEVATION_ALIGNMENT,12],[Xr.TEXT_TEXTURE_ATLAS,12],[Xr.TEXTURE_UNLOAD,12],[Xr.LINE_OF_SIGHT_TOOL,16],[Xr.LINE_OF_SIGHT_TOOL_INTERACTIVE,Wc],[Xr.SNAPPING,Wc],[Xr.SHADOW_ACCUMULATOR,30]]),_I=32;function XU(e){return JU.has(e)?JU.get(e):typeof e=="number"?e:1}const eW=6.5,tW=1,Pct=30,rW=1e3/30,iW=100,nW=.9;var cL,hf;(function(e){class t{constructor(){this._updating=new CE(!0),this._microTaskQueued=!1,this._frameNumber=0,this.performanceInfo={total:new K_("total"),tasks:new Map},this._frameTaskTimes=new Map,this._budget=new i,this._state=al.INTERACTING,this._tasks=new gh,this._runQueue=new gh,this._load=0,this._idleStateCallbacks=new gh,this._idleUpdatesStartFired=!1,this._maxReschedule=_I,this._forceTask=!1,this._debug=!1,this._debugHandle=Ot(()=>Ict.SCHEDULER_LOG_SLOW_TASKS,s=>this._debug=s,si);for(const s of Object.keys(Xr))this.performanceInfo.tasks.set(Xr[s],new K_(Xr[s]));const o=this;this._test={FRAME_SAFETY_BUDGET:eW,INTERACTING_BUDGET:rW,IDLE_BUDGET:iW,get availableBudget(){return o._budget.budget},usedBudget:0,getBudget:()=>o._budget,setBudget:s=>o._budget=s,updateTask:s=>this._updateTask(s),getState:s=>this._getState(s),getRuntime:s=>this._getRuntime(s),frameTaskTimes:this._frameTaskTimes,resetRuntimes:()=>this._resetRuntimes(),getRunning:()=>this._getRunning()}}get updating(){return this._updating.get()}set updating(o){this._updating.set(o)}destroy(){this._tasks.toArray().forEach(o=>o.remove()),this._tasks.clear(),Dn(this._debugHandle),this._microTaskQueued=!1,this._updating.set(!1)}activate(){this._budget.done||this._microTaskQueued||(this._microTaskQueued=!0,queueMicrotask(()=>{this._microTaskQueued&&(this._microTaskQueued=!1,this._budget.done||(this._maxReschedule=_I,this._schedule(),this.frame()))}))}registerTask(o,s){const l=XU(o),a=new r(this,o,s,l);return this._tasks.push(a),this.performanceInfo.tasks.has(o)||this.performanceInfo.tasks.set(o,new K_(o)),a}registerIdleStateCallbacks(o,s){const l={idleBegin:o,idleEnd:s};this._idleStateCallbacks.push(l),this.state===al.IDLE&&this._idleUpdatesStartFired&&l.idleBegin();const a=this;return{remove:()=>this._removeIdleStateCallbacks(l),set idleBegin(c){a._idleUpdatesStartFired&&(l.idleEnd(),a._state===al.IDLE&&c()),l.idleBegin=c},set idleEnd(c){l.idleEnd=c}}}get load(){return this._load}set state(o){this._state!==o&&(this._state=o,this.state!==al.IDLE&&this._idleUpdatesStartFired&&(this._idleUpdatesStartFired=!1,this._idleStateCallbacks.forAll(s=>s.idleEnd())))}get state(){return this._state}updateBudget(o){this._test.usedBudget=0,++this._frameNumber;let s=eW,l=o.frameDuration,a=tW;switch(this.state){case al.IDLE:s=0,l=Math.max(iW,o.frameDuration),a=Pct;break;case al.INTERACTING:l=Math.max(rW,o.frameDuration);case al.ANIMATING:}return l=l-o.elapsedFrameTime-s,this.state!==al.IDLE&&l<tW&&!this._forceTask?(this._forceTask=!0,!1):(l=Math.max(l,a),this._budget.reset(l,this.state),this._maxReschedule=_I,this._updateLoad(),this._schedule())}frame(){switch(this._forceTask=!1,this._microTaskQueued=!1,this.state){case al.IDLE:this._idleUpdatesStartFired||(this._idleUpdatesStartFired=!0,this._idleStateCallbacks.forAll(o=>o.idleBegin())),this._runIdle();break;case al.INTERACTING:this._runInteracting();break;default:this._runAnimating()}this._test.usedBudget=this._budget.elapsed}stopFrame(){this._budget.reset(0,this._state),this._budget.madeProgress()}_removeIdleStateCallbacks(o){this._idleUpdatesStartFired&&o.idleEnd(),this._idleStateCallbacks.removeUnordered(o)}removeTask(o){this._tasks.removeUnordered(o),this._runQueue.removeUnordered(o)}_updateTask(o){this._tasks.forAll(s=>{s.name===o&&s.setPriority(o)})}_getState(o){if(this._runQueue.some(l=>l.name===o))return hf.SCHEDULED;let s=hf.IDLE;return this._tasks.forAll(l=>{l.name===o&&l.needsUpdate&&(l.schedulePriority<=1?s=hf.READY:s!==hf.READY&&(s=hf.WAITING))}),s}_getRuntime(o){let s=0;return this._tasks.forAll(l=>{l.name===o&&(s+=l.runtime)}),s}_resetRuntimes(){this._tasks.forAll(o=>o.runtime=0)}_getRunning(){const o=new Map;if(this._tasks.forAll(l=>{l.needsUpdate&&o.set(l.name,(o.get(l.name)||0)+1)}),o.size===0)return null;let s="";return o.forEach((l,a)=>{s+=l>1?` ${l}x ${a}`:` ${a}`}),s}_runIdle(){this._run()}_runInteracting(){this._run()}_runAnimating(){this._run()}_updateLoad(){const o=this._tasks.reduce((s,l)=>l.needsUpdate?++s:s,0);this._load=this._load*nW+o*(1-nW)}_schedule(){if(this._maxReschedule<=0)return!1;for(this._runQueue.filterInPlace(o=>!!o.needsUpdate||(o.schedulePriority=o.basePriority,!1)),this._tasks.forAll(o=>{o.basePriority===Wc&&o.needsUpdate&&!this._runQueue.includes(o)&&this._runQueue.unshift(o)});this._runQueue.length===0;){let o=!1,s=0;if(this._tasks.forAll(l=>{l.needsUpdate&&l.schedulePriority!==0&&l.basePriority!==Wc&&(!l.task.runOncePerFrame||l.lastFrameRun!==this._frameNumber)&&(o=!0,s=Math.max(s,l.basePriority),l.schedulePriority===1?(l.schedulePriority=0,this._runQueue.push(l)):--l.schedulePriority)}),!o)return this._updating.set(!1),!1;--this._maxReschedule}return this._updating.set(!0),!0}_run(){const o=this._budget.now();this._startFrameTaskTimes();do for(;this._runQueue.length>0;){const s=this._budget.now(),l=this._runQueue.pop();this._budget.resetProgress();try{l.task.runTask(this._budget)}catch(c){ft.getLogger("esri.views.support.Scheduler").error(`Exception in task "${l.name}"`,c)}l.schedulePriority=l.basePriority,l.lastFrameRun=this._frameNumber;const a=this._budget.now()-s;if(l.runtime+=a,this._frameTaskTimes.set(l.priority,this._frameTaskTimes.get(l.priority)+a),this._debug&&this._budget.elapsed>2*this._budget.budget&&console.log("Task",l.name,"used",this._budget.elapsed,"of max",this._budget.budget,"ms"),this._budget.remaining<=0)return this._updating.set(this._tasks.some(c=>c.needsUpdate)),void this._recordFrameTaskTimes(this._budget.now()-o)}while(this._schedule());this._updating.set(this._tasks.some(s=>s.needsUpdate)),this._recordFrameTaskTimes(this._budget.now()-o)}_startFrameTaskTimes(){for(const o of Object.keys(Xr))this._frameTaskTimes.set(Xr[o],0)}_recordFrameTaskTimes(o){this._frameTaskTimes.forEach((s,l)=>this.performanceInfo.tasks.get(l).record(s)),this.performanceInfo.total.record(o)}get test(){return this._test}}e.Scheduler=t;class r{constructor(o,s,l,a){this._scheduler=o,this.name=s,this._basePriority=a,this.lastFrameRun=0,this.runtime=0,this._queue=new Mct,this._handles=new hs,this.schedulePriority=this._basePriority,this._task=new CE(ue(l)?l:this._queue),this._handles.add(ca(()=>this.task.running,()=>o.activate()))}get task(){return this._task.get()}get updating(){return this._queue.running}remove(){this.processQueue(qoe),this._scheduler.removeTask(this),this.schedule=uL.schedule,this.reschedule=uL.reschedule,this._handles.destroy()}get basePriority(){return this._basePriority}setPriority(o){this.name=o;const s=XU(o);this._basePriority!==Wc&&this.schedulePriority===0||(this.schedulePriority=s),this._basePriority=s}get priority(){return this.name}set priority(o){this.setPriority(o)}get needsUpdate(){return this.updating||this.task.running}schedule(o,s,l){return this._queue.push(o,s,l)}reschedule(o,s,l){return this._queue.unshift(o,s,l)}processQueue(o){this._queue.runTask(o)}}class i{constructor(){this._begin=typeof performance!="undefined"?performance.now():0,this._budget=0,this._state=al.IDLE,this._done=!1,this._enabled=!0}run(o){return!this.done&&(o()===!0&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){this._done=this.elapsed>=this._budget&&this._enabled}get state(){return this._state}get enabled(){return this._enabled}set enabled(o){this._enabled=o}reset(o,s){this._begin=this.now(),this._budget=o,this._state=s,this._done=!1}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return performance.now()-this._begin}resetProgress(){this._done=!1}get hasProgressed(){return this._done}}e.Budget=i})(cL||(cL={})),function(e){e.SCHEDULED="s",e.READY="r",e.WAITING="w",e.IDLE="i"}(hf||(hf={}));const qoe=(()=>{const e=new cL.Budget;return e.enabled=!1,e})();class $ct{remove(){}processQueue(){}schedule(t,r,i){try{if(la(r)){const n=on();return i?Promise.resolve(i(n)):Promise.reject(n)}return I$(t(qoe))}catch(n){return Promise.reject(n)}}reschedule(t,r,i){return this.schedule(t,r,i)}}const uL=new $ct;let T_=class extends rr{constructor(e,t){var r;super({}),this._stage=e,this._textureRequests=new Map,this._frameTask=(r=t==null?void 0:t.registerTask(Xr.TEXTURE_UNLOAD))!=null?r:uL}normalizeCtorArgs(){return{}}destroy(){super.destroy(),this._frameTask.remove(),this._textureRequests.forEach(e=>this._releaseTextureRequest(e)),this._textureRequests.clear()}get updating(){return this._frameTask.updating}fromData(e,t,r){const i=this.makeUid(e);let n=this._textureRequests.get(i);return n||(n={referenceCount:0,texture:t(),textureAsync:null,abortController:null,onRemove:r},this._stage&&(this._stage.add(n.texture),this._stage.loadImmediate(n.texture)),this._textureRequests.set(i,n)),n.referenceCount++,{uid:i,texture:n.texture,release:()=>this._release(i)}}_release(e){const t=this._textureRequests.get(e);t?(t.referenceCount<1&&console.warn("TextureCollection: reference count is < 1 for "+e),t.referenceCount--,t.referenceCount<1&&this._frameTask.schedule(()=>this._releaseNow(e))):console.warn(`TextureCollection: texture doesn't exist: '${e}'`)}get test(){return{textureRequests:this._textureRequests}}_releaseNow(e){if(!this._textureRequests)return;const t=this._textureRequests.get(e);!t||t.referenceCount>0||(this._releaseTextureRequest(t),this._textureRequests.delete(e))}_releaseTextureRequest(e){var t;e.onRemove&&e.onRemove(),e.texture?(t=this._stage)==null||t.remove(e.texture):e.abortController&&(e.abortController.abort(),e.abortController=null)}makeUid(e,t=null){return ue(t)?`${e}.${t}px`:e}};d([f()],T_.prototype,"_frameTask",void 0),d([f()],T_.prototype,"updating",null),T_=d([se("esri.views.3d.support.TextureCollection")],T_);var oW;(function(e){e[e.Left=0]="Left",e[e.Middle=1]="Middle",e[e.Right=2]="Right"})(oW||(oW={}));const Yoe=["click","double-click","immediate-click","immediate-double-click","hold","drag","key-down","key-up","pointer-down","pointer-move","pointer-up","pointer-drag","mouse-wheel","pointer-enter","pointer-leave","gamepad","focus","blur"],Koe={};function Zoe(e){return!!Koe[e]}function Oct(e){for(const t of e)if(!Zoe(t))return!1;return!0}Yoe.forEach(e=>{Koe[e]=!0});class Lct{constructor(t){this._handlers=new Map,this._counter=0,this._handlerCounts=new Map,this.view=t,this.inputManager=null}connect(t){t&&this.disconnect(),this.inputManager=t,this._handlers.forEach(({handler:r,priority:i},n)=>this.inputManager.installHandlers(n,[r],i))}disconnect(){this.inputManager&&this._handlers.forEach((t,r)=>this.inputManager.uninstallHandlers(r)),this.inputManager=null}destroy(){this.disconnect(),this._handlers.clear(),this.view=null}on(t,r,i,n){const o=Array.isArray(t)?t:t.split(",");if(!Oct(o))return o.some(Zoe)&&console.error("Error: registering input events and other events on the view at the same time is not supported."),null;let s,l;Array.isArray(r)?l=r:(s=r,l=[]),typeof i=="function"?s=i:n=i,n=n!=null?n:_h.DEFAULT;const a=this._createUniqueGroupName(),c=new Rct(this.view,o,l,s);this._handlers.set(a,{handler:c,priority:n});for(const u of o){const p=this._handlerCounts.get(u)||0;this._handlerCounts.set(u,p+1)}return this.inputManager&&this.inputManager.installHandlers(a,[c],n),{remove:()=>this._removeHandler(a,o)}}hasHandler(t){return!!this._handlerCounts.get(t)}_removeHandler(t,r){if(this._handlers.has(t)){this._handlers.delete(t);for(const i of r){const n=this._handlerCounts.get(i);n===void 0?console.error("Trying to remove handler for event that has no handlers registered: ",i):n===1?this._handlerCounts.delete(i):this._handlerCounts.set(i,n-1)}}this.inputManager&&this.inputManager.uninstallHandlers(t)}_createUniqueGroupName(){return this._counter+=1,`viewEvents_${this._counter}`}}class Rct extends to{constructor(t,r,i,n){super(!0),this.view=t;for(const o of r)switch(o){case"click":this.registerIncoming("click",i,s=>n(this._wrapClick(s)));break;case"double-click":this.registerIncoming("double-click",i,s=>n(this._wrapDoubleClick(s)));break;case"immediate-click":this.registerIncoming("immediate-click",i,s=>n(this._wrapImmediateClick(s)));break;case"immediate-double-click":this.registerIncoming("immediate-double-click",i,s=>n(this._wrapImmediateDoubleClick(s)));break;case"hold":this.registerIncoming("hold",i,s=>n(this._wrapHold(s)));break;case"drag":this.registerIncoming("drag",i,s=>{const l=this._wrapDrag(s);l&&n(l)});break;case"key-down":this.registerIncoming("key-down",i,s=>n(this._wrapKeyDown(s)));break;case"key-up":this.registerIncoming("key-up",i,s=>n(this._wrapKeyUp(s)));break;case"pointer-down":this.registerIncoming("pointer-down",i,s=>n(this._wrapPointer(s,"pointer-down")));break;case"pointer-move":this.registerIncoming("pointer-move",i,s=>n(this._wrapPointer(s,"pointer-move")));break;case"pointer-up":this.registerIncoming("pointer-up",i,s=>n(this._wrapPointer(s,"pointer-up")));break;case"pointer-drag":this.registerIncoming("pointer-drag",i,s=>n(this._wrapPointerDrag(s)));break;case"mouse-wheel":this.registerIncoming("mouse-wheel",i,s=>n(this._wrapMouseWheel(s)));break;case"pointer-enter":this.registerIncoming("pointer-enter",i,s=>n(this._wrapPointer(s,"pointer-enter")));break;case"pointer-leave":this.registerIncoming("pointer-leave",i,s=>n(this._wrapPointer(s,"pointer-leave")));break;case"gamepad":this.registerIncoming("gamepad",i,s=>{n(this._wrapGamepad(s))});break;case"focus":this.registerIncoming("focus",i,s=>{n(this._wrapFocus(s))});break;case"blur":this.registerIncoming("blur",i,s=>{n(this._wrapBlur(s))})}}_wrapFocus(t){return{type:"focus",timestamp:t.timestamp,native:t.data.native,cancelable:t.cancelable,stopPropagation:()=>t.stopPropagation(),async:r=>t.async(r),preventDefault:()=>t.preventDefault()}}_wrapBlur(t){return{type:"blur",timestamp:t.timestamp,native:t.data.native,cancelable:t.cancelable,stopPropagation:()=>t.stopPropagation(),async:r=>t.async(r),preventDefault:()=>t.preventDefault()}}_wrapClick(t){const{pointerType:r,button:i,buttons:n,x:o,y:s,native:l,eventId:a}=t.data,{cancelable:c,timestamp:u}=t;return{type:"click",pointerType:r,button:i,buttons:n,x:o,y:s,native:l,timestamp:u,screenPoint:Rs(o,s),mapPoint:this._getMapPoint(o,s),eventId:a,cancelable:c,stopPropagation:()=>t.stopPropagation(),async:p=>t.async(p),preventDefault:()=>t.preventDefault()}}_wrapDoubleClick(t){const{pointerType:r,button:i,buttons:n,x:o,y:s,native:l,eventId:a}=t.data,{cancelable:c,timestamp:u}=t;return{type:"double-click",pointerType:r,button:i,buttons:n,x:o,y:s,native:l,timestamp:u,mapPoint:this._getMapPoint(o,s),eventId:a,cancelable:c,stopPropagation:()=>t.stopPropagation(),async:p=>t.async(p),preventDefault:()=>t.preventDefault()}}_wrapImmediateClick(t){const{pointerType:r,button:i,buttons:n,x:o,y:s,native:l,eventId:a}=t.data,c=l.pointerId,{cancelable:u,timestamp:p}=t;return{type:"immediate-click",pointerId:c,pointerType:r,button:i,buttons:n,x:o,y:s,native:l,timestamp:p,mapPoint:this._getMapPoint(o,s),eventId:a,cancelable:u,stopPropagation:()=>t.stopPropagation(),async:h=>t.async(h),preventDefault:()=>t.preventDefault()}}_wrapImmediateDoubleClick(t){const{pointerType:r,button:i,buttons:n,x:o,y:s,native:l,eventId:a}=t.data,c=l.pointerId,{cancelable:u,timestamp:p}=t;return{type:"immediate-double-click",pointerId:c,pointerType:r,button:i,buttons:n,x:o,y:s,native:l,timestamp:p,mapPoint:this._getMapPoint(o,s),eventId:a,cancelable:u,stopPropagation:()=>t.stopPropagation(),async:h=>t.async(h),preventDefault:()=>t.preventDefault()}}_wrapHold(t){const{pointerType:r,button:i,buttons:n,x:o,y:s,native:l}=t.data,{cancelable:a,timestamp:c}=t;return{type:"hold",pointerType:r,button:i,buttons:n,x:o,y:s,native:l,timestamp:c,mapPoint:this._getMapPoint(o,s),cancelable:a,stopPropagation:()=>t.stopPropagation(),async:u=>t.async(u),preventDefault:()=>t.preventDefault()}}_getMapPoint(t,r){return this.view.toMap(Rs(t,r),{exclude:[]})}_wrapDrag(t){const r=t.data,{x:i,y:n}=r.center,{action:o,pointerType:s,button:l}=r;if(o==="start"&&(this._latestDragStart=r),!this._latestDragStart)return;const a=r.pointer.native,c=r.buttons,{cancelable:u,timestamp:p}=t,h={x:this._latestDragStart.center.x,y:this._latestDragStart.center.y};return o==="end"&&(this._latestDragStart=void 0),{type:"drag",action:o,x:i,y:n,origin:h,pointerType:s,button:l,buttons:c,radius:r.radius,angle:Aee(r.angle),native:a,timestamp:p,cancelable:u,stopPropagation:()=>t.stopPropagation(),async:m=>t.async(m),preventDefault:()=>t.preventDefault()}}_wrapKeyDown(t){const{key:r,repeat:i,native:n}=t.data,{cancelable:o,timestamp:s}=t;return{type:"key-down",key:r,repeat:i,native:n,timestamp:s,cancelable:o,stopPropagation:()=>t.stopPropagation(),async:l=>t.async(l),preventDefault:()=>t.preventDefault()}}_wrapKeyUp(t){const{key:r,native:i}=t.data,{cancelable:n,timestamp:o}=t;return{type:"key-up",key:r,native:i,timestamp:o,cancelable:n,stopPropagation:()=>t.stopPropagation(),async:s=>t.async(s),preventDefault:()=>t.preventDefault()}}_wrapPointer(t,r){const{x:i,y:n,button:o,buttons:s,native:l,eventId:a}=t.data,c=l.pointerId,u=l.pointerType,{cancelable:p,timestamp:h}=t;return{type:r,x:i,y:n,pointerId:c,pointerType:u,button:o,buttons:s,native:l,timestamp:h,eventId:a,cancelable:p,stopPropagation:()=>t.stopPropagation(),async:m=>t.async(m),preventDefault:()=>t.preventDefault()}}_wrapPointerDrag(t){const{x:r,y:i,buttons:n,native:o,eventId:s}=t.data.currentEvent,{button:l}=t.data.startEvent,a=t.data.startEvent.native.pointerId,c=t.data.startEvent.native.pointerType,u=t.data.action,p={x:t.data.startEvent.x,y:t.data.startEvent.y},{cancelable:h,timestamp:m}=t;return{type:"pointer-drag",x:r,y:i,pointerId:a,pointerType:c,button:l,buttons:n,action:u,origin:p,native:o,timestamp:m,eventId:s,cancelable:h,stopPropagation:()=>t.stopPropagation(),async:y=>t.async(y),preventDefault:()=>t.preventDefault()}}_wrapMouseWheel(t){const{cancelable:r,data:i,timestamp:n}=t,{x:o,y:s,deltaY:l,native:a}=i;return{type:"mouse-wheel",x:o,y:s,deltaY:l,native:a,timestamp:n,cancelable:r,stopPropagation:()=>t.stopPropagation(),async:c=>t.async(c),preventDefault:()=>t.preventDefault()}}_wrapGamepad(t){const{action:r,state:i,device:n}=t.data,{cancelable:o,timestamp:s}=t,{buttons:l,axes:a}=i;return{type:"gamepad",device:n,timestamp:s,action:r,buttons:l,axes:a,cancelable:o,stopPropagation:()=>t.stopPropagation(),async:c=>t.async(c),preventDefault:()=>t.preventDefault()}}}var I1,sW,lW;(function(e){e[e.USER=0]="USER",e[e.MANAGER=1]="MANAGER"})(I1||(I1={})),function(e){e[e.None=0]="None",e[e.Unfocused=1]="Unfocused",e[e.Focused=2]="Focused",e[e.Unselected=4]="Unselected",e[e.Selected=8]="Selected",e[e.All=15]="All"}(sW||(sW={})),function(e){e[e.None=0]="None",e[e.Custom1=16]="Custom1",e[e.Custom2=32]="Custom2",e[e.Custom3=64]="Custom3",e[e.Custom4=128]="Custom4",e[e.Custom5=256]="Custom5",e[e.Custom6=512]="Custom6",e[e.Custom7=1024]="Custom7",e[e.Custom8=2048]="Custom8",e[e.Custom9=4096]="Custom9",e[e.Custom10=8192]="Custom10",e[e.Custom11=16384]="Custom11",e[e.Custom12=32768]="Custom12",e[e.All=65520]="All"}(lW||(lW={}));function Dct(e){return[e.on("before-add",t=>{const r=t.item;if(r==null||e.includes(r))return ft.getLogger("esri.views.interactive.interactiveToolUtils").warn("Tool is either already in the list of tools or tool is `null`. Not adding tool."),void t.preventDefault();r.onAdd()}),e.on("after-remove",t=>{const r=t.item;r.active&&(r.view.activeTool=null),r.destroy()})]}function dL(e){return e.visible&&e.getEditableFlag(I1.USER)&&e.getEditableFlag(I1.MANAGER)}function Fc(e){return Rs(e.x,e.y)}function Qoe(e,t){const r=(e instanceof HTMLElement?e:e.surface).getBoundingClientRect();return Rs(t.clientX-r.left,t.clientY-r.top)}function aW(e,t){return t instanceof Event?Qoe(e,t):Fc(t)}function cW(e){if(e instanceof Event)return!0;if(typeof e=="object"&&"type"in e)switch(e.type){case"click":case"double-click":case"pointer-down":case"pointer-drag":case"pointer-enter":case"pointer-leave":case"pointer-up":case"pointer-move":case"immediate-click":case"immediate-double-click":case"hold":case"drag":case"mouse-wheel":return!0;default:return!1}return!1}class Nct{constructor(){this._pointerLocations=new Map,this._hoveredManipulators=new Map,this._grabbedManipulators=new Map,this._draggedManipulators=new Map,this._stopDrag=!1,this._revertToNullActiveTool=!1,this._cursor=null}get cursor(){return this._cursor}handleInputEvent(t,r){const i=()=>t.stopPropagation();switch(t.type){case"pointer-move":uW(t.pointerType)&&this._pointerLocations.set(t.pointerId,{x:t.x,y:t.y,pointerType:t.pointerType});break;case"drag":this._grabbedManipulators.size>0&&(this._stopDrag=!0),this._stopDrag&&(i(),t.action==="end"&&(this._stopDrag=!1));break;case"pointer-down":{if(!dW(t))break;const n=Fc(t),o=this._intersect(n,t.pointerType,r.forEachTool);if(et(o))break;const s=o.manipulator,l=o.tool;!(ue(s)&&ue(l)&&s.interactive)||s.grabbable&&s.grabbableForEvent(t)||!s.grabbing||s.dragging||this._ungrabManipulatorBeforeDragging(s,t,r),ue(s)&&ue(l)&&s.interactive&&s.grabbable&&s.grabbableForEvent(t)&&!s.grabbing&&(this._grabbedManipulators.set(t.pointerId,{manipulator:s,tool:l,start:n,pointerType:t.pointerType}),this._grabbedManipulators.size===1&&et(r.activeTool)&&(this._revertToNullActiveTool=!0,r.setActiveTool(o.tool)),s.grabbing=!0,s.events.emit("grab-changed",{action:"start",pointerType:t.pointerType,screenPoint:n}),i());break}case"pointer-up":this._draggedManipulators.has(t.pointerId)||this._handlePointerEnd(t,r);break;case"pointer-drag":{if(!dW(t))break;const n=this._grabbedManipulators.get(t.pointerId),o=oh(n,({manipulator:u})=>u),s=oh(n,({tool:u})=>u);if(et(o)||et(s))break;const l=Fc(t);l.x=Us(l.x,0,r.view.width),l.y=Us(l.y,0,r.view.height);const a=n.start,c=this._draggedManipulators.get(t.pointerId);switch(t.action){case"start":case"update":t.action!=="update"&&this._grabbedManipulators.size!==1||(o.dragging=!0,c?o.events.emit("drag",{action:"update",start:a,screenPoint:l}):o.events.emit("drag",{action:"start",start:a,screenPoint:l,pointerType:t.pointerType}),this._draggedManipulators.set(t.pointerId,{tool:s,manipulator:o,start:a}));break;case"end":o.dragging=!1,c&&o.events.emit("drag",{action:"end",start:a,screenPoint:l}),this._draggedManipulators.delete(t.pointerId),this._handlePointerEnd(t,r)}i();break}case"immediate-click":{const n=Fc(t),o=this._intersect(n,t.pointerType,r.forEachTool);if(Fct(t)||r.forEachTool(c=>{if((!ue(o)||o.tool!==c||c.automaticManipulatorSelection)&&c.manipulators){let u=!1;c.manipulators.forEach(({manipulator:p})=>{p.selected&&(p.selected=!1,u=!0)}),u&&c.onManipulatorSelectionChanged&&c.onManipulatorSelectionChanged()}}),et(o))break;const{manipulator:s,tool:l}=o;if(!s.interactive)break;s.selectable&&l.automaticManipulatorSelection&&(s.selected=!s.selected,l.onManipulatorSelectionChanged&&l.onManipulatorSelectionChanged());const a=t.native.shiftKey;s.events.emit("immediate-click",{screenPoint:n,button:t.button,pointerType:t.pointerType,shiftKey:a,stopPropagation:i});break}case"click":{const n=Fc(t),o=this._intersect(n,t.pointerType,r.forEachTool),s=ue(o)?o.manipulator:null;if(et(s)||!s.interactive)break;const l=t.native.shiftKey;s.events.emit(t.type,{screenPoint:n,button:t.button,pointerType:t.pointerType,shiftKey:l}),i();break}case"double-click":{const n=Fc(t),o=this._intersect(n,t.pointerType,r.forEachTool),s=ue(o)?o.manipulator:null;if(et(s)||!s.interactive)break;const l=t.native.shiftKey;s.events.emit("double-click",{screenPoint:n,button:t.button,pointerType:t.pointerType,shiftKey:l,stopPropagation:i});break}case"immediate-double-click":{const n=Fc(t),o=this._intersect(n,t.pointerType,r.forEachTool),s=ue(o)?o.manipulator:null;if(et(s)||!s.interactive)break;const l=t.native.shiftKey;s.events.emit("immediate-double-click",{screenPoint:n,button:t.button,pointerType:t.pointerType,shiftKey:l,stopPropagation:i});break}}this._onFocusChange(r.forEachTool)}_ungrabManipulatorBeforeDragging(t,r,i){t.grabbing=!1,t.events.emit("grab-changed",{action:"end",pointerType:r.pointerType,screenPoint:Fc(r)}),this._grabbedManipulators.forEach(({manipulator:n},o)=>{n===t&&this._grabbedManipulators.delete(o)}),this._afterManipulatorUngrab(i.setActiveTool)}_handlePointerEnd(t,r){const i=oh(this._grabbedManipulators.get(t.pointerId),({manipulator:n})=>n);et(i)||i.grabbing&&(i.grabbing=!1,i.events.emit("grab-changed",{action:"end",pointerType:t.pointerType,screenPoint:Fc(t)}),this._grabbedManipulators.delete(t.pointerId),this._afterManipulatorUngrab(r.setActiveTool))}_cursorFromMap(t){let r=null;return L3(t,({manipulator:i})=>!(et(i)||!i.interactive)&&(i.grabbing&&i.grabCursor?(r=i.grabCursor,!0):!!i.cursor&&(r=i.cursor,!0))),r}_onFocusChange(t){this._updateCursor(),this._updateFocusedManipulatorTools(t)}_updateCursor(){this._grabbedManipulators.size>0?this._cursor=this._cursorFromMap(this._grabbedManipulators)||"grabbing":this._hoveredManipulators.size>0?this._cursor=this._cursorFromMap(this._hoveredManipulators)||"pointer":this._cursor=null}_updateFocusedManipulatorTools(t){const r=new Set,i=new Set;this._grabbedManipulators.forEach(({tool:n})=>{r.add(n)}),this._hoveredManipulators.forEach(({tool:n})=>{i.add(n)}),t(n=>{n.hasGrabbedManipulators=r.has(n),n.hasHoveredManipulators=i.has(n);const o=this._grabbedManipulators.values(),s=R7e(o,({tool:l})=>l===n);n.firstGrabbedManipulator=ue(s)?s.manipulator:null})}clearPointers(t,{forEachTool:r,setActiveTool:i},n=!0,o){const s=(l,a)=>l===t&&(et(o)||o===a);this._grabbedManipulators.forEach(({tool:l,manipulator:a,pointerType:c},u)=>{s(l,a)&&(this._grabbedManipulators.delete(u),a.grabbing=!1,a.events.emit("grab-changed",{action:"end",screenPoint:null,pointerType:c}))}),this._draggedManipulators.forEach(({tool:l,manipulator:a},c)=>{s(l,a)&&(this._draggedManipulators.delete(c),a.dragging=!1,a.events.emit("drag",{action:"cancel"}))}),n&&this._hoveredManipulators.forEach(({tool:l,manipulator:a},c)=>{s(l,a)&&(this._hoveredManipulators.delete(c),a.hovering=!1)}),this._afterManipulatorUngrab(i),this._onFocusChange(r)}_intersect(t,r,i){let n=null;return i(o=>{if(o.manipulators==null||!dL(o))return!1;const s=o.manipulators.intersect(t,r);return!et(s)&&(n={tool:o,manipulator:s},!0)}),n}updateHoveredStateFromKnownPointers(t){this._pointerLocations.forEach((r,i)=>{this._updateHoveredStateForPointerAtScreenPosition(Rs(r.x,r.y),i,r.pointerType,t)})}handleHoverEvent(t,r){t.type!=="pointer-up"&&t.type!=="immediate-click"&&t.type!=="pointer-move"||!uW(t.pointerType)||this._updateHoveredStateForPointerAtScreenPosition(Fc(t),t.pointerId,t.pointerType,r)}_updateHoveredStateForPointerAtScreenPosition(t,r,i,n){let o=this._intersect(t,i,n);const s=oh(this._hoveredManipulators.get(r),({manipulator:l})=>l);ue(o)&&!o.manipulator.interactive&&(o=null),ue(o)&&s===o.manipulator||(ue(s)&&(s.hovering=!1),ue(o)?(o.manipulator.hovering=!0,this._hoveredManipulators.set(r,o)):this._hoveredManipulators.delete(r),this._onFocusChange(n))}_afterManipulatorUngrab(t){this._grabbedManipulators.size===0&&this._revertToNullActiveTool&&(t(null),this._revertToNullActiveTool=!1)}}function uW(e){return e==="mouse"}function dW(e){return e.pointerType!=="mouse"||e.button===0}function Fct(e){return!!e.native.shiftKey}const pW="attached",wI="tools";let Uu=class extends mE{constructor(e){super(e),this._manipulatorState=new Nct,this.tools=new dr,this.cursor=null,this._forEachTool=t=>{for(const r of this.tools.items)if(t(r))return}}initialize(){this.handles.add([this.view.on(Yoe,e=>{this._handleInputEvent(e)},_h.TOOL),...Dct(this.tools),this.tools.on("before-add",({item:e})=>{this._updateToolEditableFlag(e)}),this.tools.on("before-remove",({item:e})=>{this._manipulatorState.clearPointers(e,this._manipulatorStateEventArgs),this._updateCursor()}),this.tools.on("change",()=>{this._refreshToolWatchers()})])}destroy(){this.detach(),this.handles.removeAll()}get _manipulatorStateEventArgs(){return{forEachTool:this._forEachTool,activeTool:this.activeTool,setActiveTool:e=>{this.activeTool=e},view:this.view}}set activeTool(e){if(ue(e)&&!this.view.ready)return void ft.getLogger(this.declaredClass).error("Cannot set active tool while view is not ready.");if(e===this.activeTool)return;const t=this.activeTool;this._set("activeTool",e),ue(t)&&t.deactivate(),ue(e)&&e.activate(),this._removeIncompleteTools(e);for(const r of this.tools){this._updateToolEditableFlag(r);const i=dL(r);!et(this.activeTool)&&i||this._manipulatorState.clearPointers(r,this._manipulatorStateEventArgs,!i)}this._updateCursor()}get updating(){var e,t;return this.updatingHandles.updating||this.tools.some(r=>r.updating)||((t=(e=this.textures)==null?void 0:e.updating)!=null?t:!1)}attach(){this.view.type==="3d"?(this._set("textures",new T_(this.view._stage,this.view.resourceController.scheduler)),this.handles.add([Ot(()=>{const{state:e}=this.view;return"camera"in e&&e.camera},()=>{this._forEachManipulator(e=>{e.onViewChange!=null&&e.onViewChange()})}),this.view.elevationProvider.on("elevation-change",e=>{this._forEachManipulator(t=>{t.onElevationChange!=null&&t.onElevationChange(e)})}),w0(()=>this._set("textures",yn(this.textures)))],pW)):this.handles.add(Ot(()=>this.view.extent,()=>{this._forEachManipulator(e=>{e.onViewChange!=null&&e.onViewChange()})}))}detach(){ue(this.activeTool)&&(this.activeTool=null),this.tools.removeAll(),this.handles.remove(pW)}_forEachManipulator(e){this._forEachTool(t=>{t.manipulators&&t.manipulators.forEach(({manipulator:r})=>e(r,t))})}_handleInputEvent(e){let t=!1;const r={...e,stopPropagation:()=>{t=!0,e.stopPropagation()}};ue(this.activeTool)?this.activeTool.handleInputEvent&&this.activeTool.handleInputEvent(r):this._forEachTool(i=>{!t&&i.visible&&i.handleInputEvent(r)}),!t&&e.type==="key-down"&&e.key==="Escape"&&this.activeTool&&(e.stopPropagation(),this.activeTool=null),this._manipulatorState.handleInputEvent(r,this._manipulatorStateEventArgs),!t&&ue(this.activeTool)&&this.activeTool.handleInputEventAfter(r),this._manipulatorState.handleHoverEvent(r,this._forEachTool),this._updateCursor()}_refreshToolWatchers(){this.handles.remove(wI),this._forEachTool(e=>{if(e instanceof rr){const t=Ot(()=>[e.cursor,e.visible,e.editable],()=>{dL(e)||this._manipulatorState.clearPointers(e,this._manipulatorStateEventArgs),this._updateCursor()});this.handles.add(t,wI)}e.manipulators&&this.handles.add([e.manipulators.on("after-remove",t=>{this._manipulatorState.clearPointers(e,this._manipulatorStateEventArgs,!0,t.item.manipulator)}),e.manipulators.on("change",()=>{this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool),this._updateCursor()})],wI)}),this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool),this._updateCursor()}_updateToolEditableFlag(e){e.setEditableFlag(I1.MANAGER,et(this.activeTool)||e===this.activeTool)}_updateCursor(){let e=this._manipulatorState.cursor;et(e)&&this._forEachTool(t=>!(!ue(t.cursor)||!t.visible)&&(e=t.cursor,!0)),this._get("cursor")!==e&&this._set("cursor",e)}_removeIncompleteTools(e){this.tools.filter(t=>(et(e)||t!==e)&&!t.created&&t.removeIncompleteOnCancel).forEach(t=>{this.tools.remove(t)})}};d([f({constructOnly:!0,nonNullable:!0})],Uu.prototype,"view",void 0),d([f({readOnly:!0,nonNullable:!0})],Uu.prototype,"textures",void 0),d([f({value:null})],Uu.prototype,"activeTool",null),d([f({readOnly:!0,type:dr})],Uu.prototype,"tools",void 0),d([f({readOnly:!0})],Uu.prototype,"cursor",void 0),d([f({readOnly:!0})],Uu.prototype,"updating",null),Uu=d([se("esri.views.ToolViewManager")],Uu);const zct=Uu;let Py=class extends rr{constructor(e){super(),this.nativeIndex=null,this._detectedDeviceType="unknown",e.mapping==="standard"?this._detectedDeviceType="standard":jct.test(e.id)?this._detectedDeviceType="spacemouse":this._detectedDeviceType="unknown",this.nativeIndex=e.index}get native(){const e=navigator.getGamepads?navigator.getGamepads():[];return this.nativeIndex!=null&&this.nativeIndex<e.length?e[this.nativeIndex]:null}get deviceType(){return this._detectedDeviceType}get axisThreshold(){return Vct[this.deviceType]}};d([f({nonNullable:!0,readOnly:!0})],Py.prototype,"nativeIndex",void 0),d([f({type:String,readOnly:!0})],Py.prototype,"deviceType",null),d([f({type:Number,readOnly:!0})],Py.prototype,"axisThreshold",null),Py=d([se("esri.views.input.gamepad.GamepadInputDevice")],Py);const jct=new RegExp("^(3dconnexion|space(mouse|navigator|pilot|explorer))","i"),Vct={standard:.15,spacemouse:.025,unknown:0},hF=Py;let A_=class extends rr{constructor(...e){super(...e),this.devices=new dr,this.enabledFocusMode="document"}};d([f({type:dr.ofType(hF),readOnly:!0})],A_.prototype,"devices",void 0),d([f({type:["document","view","none"]})],A_.prototype,"enabledFocusMode",void 0),A_=d([se("esri.views.input.gamepad.GamepadSettings")],A_);const Bct=A_;let Vk=class extends rr{constructor(){super(...arguments),this.gamepad=new Bct}};d([f({readOnly:!0})],Vk.prototype,"gamepad",void 0),Vk=d([se("esri.views.input.Input")],Vk);const Uct=Vk;let Dp=class extends rr{constructor(e){super(e),this.enabled=!0,this.device=null,this.mode="pan",this.tiltDirection="forward-down",this.velocityFactor=1}};d([f({type:Boolean,nonNullable:!0})],Dp.prototype,"enabled",void 0),d([f({type:hF})],Dp.prototype,"device",void 0),d([f({type:["pan","zoom"],nonNullable:!0})],Dp.prototype,"mode",void 0),d([f({type:["forward-down","forward-up"],nonNullable:!0})],Dp.prototype,"tiltDirection",void 0),d([f({type:Number,nonNullable:!0})],Dp.prototype,"velocityFactor",void 0),Dp=d([se("esri.views.navigation.gamepad.GamepadSettings")],Dp);const Joe=Dp;let Zf=class extends rr{constructor(e){super(e),this.browserTouchPanEnabled=!0,this.gamepad=new Joe,this.momentumEnabled=!0,this.mouseWheelZoomEnabled=!0}};d([f({type:Boolean})],Zf.prototype,"browserTouchPanEnabled",void 0),d([f({type:Joe,nonNullable:!0})],Zf.prototype,"gamepad",void 0),d([f({type:Boolean})],Zf.prototype,"momentumEnabled",void 0),d([f({type:Boolean})],Zf.prototype,"mouseWheelZoomEnabled",void 0),Zf=d([se("esri.views.navigation.Navigation")],Zf);const Xoe=Zf;var hW;function Wct(e){var i;const t=e.url?Zh(e.url):void 0;return!(((i=e.spatialReference)==null?void 0:i.vcsWkid)==null&&ue(t)&&t.serverType==="ImageServer")&&ese(e)&&e.heightModelInfo?e.heightModelInfo:Hct(e)?RT.deriveUnitFromSR(qct,e.spatialReference):null}function ese(e){return"heightModelInfo"in e}function tse(e){if(e.type==="unknown"||!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":return!0;default:return!1}}function Hct(e){return tse(e)?!!(e.capabilities&&e.capabilities.data&&e.capabilities.data.supportsZ):rse(e)}function Gct(e){return e.layers!=null||rse(e)||tse(e)||ese(e)}function rse(e){switch(e.type){case"building-scene":case"elevation":case"integrated-mesh":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"csv":case"dimension":case"geojson":case"feature":case"subtype-group":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}(function(e){e[e.Ok=0]="Ok",e[e.Units=1]="Units",e[e.HeightModel=2]="HeightModel",e[e.CRS=3]="CRS",e[e.Unsupported=4]="Unsupported"})(hW||(hW={}));const qct=new RT({heightModel:"gravity-related-height"});var TE;(function(e){e[e.Global=1]="Global",e[e.Local=2]="Local"})(TE||(TE={}));let pL,xI=null;async function Yct(e){xI||(xI=ut(()=>import("./geometryServiceUtils.13496f2d.js"),[]).then(t=>pL=t)),await xI,vn(e)}async function ise(e,t,r,i){if(!e)return null;const n=e.spatialReference;return yg()||Oh(n,t)?$0(e,t):pL?pL.projectGeometry(e,t,r,i):(await Promise.race([Yct(i),vg(i)]),ise(e,t,r,i))}let xi=class extends rr{constructor(e){super(e),this.required={tileInfo:!1,heightModelInfo:!1,extent:!1},this.defaultSpatialReference=null,this.userSpatialReference=null,this.sourcePreloadCount=10,this.priorityCollection=null,this.requiresExtentInSpatialReference=!0,this.suspended=!1,this._projectExtentTask={task:null,input:null,output:null,spatialReference:null}}destroy(){this._projectExtentTask.task&&(this._projectExtentTask.task=kS(this._projectExtentTask.task)),this._set("map",null)}get ready(){return!this._spatialReferenceTask.updating&&!this._tileInfoTask.updating&&!this._extentTask.updating}get heightModelInfoReady(){return!this._heightModelInfoTask.updating}get spatialReference(){return ue(this.userSpatialReference)?this.userSpatialReference:this._spatialReferenceTask.spatialReference}get extent(){return this._extentTask.extent}get heightModelInfo(){return this._heightModelInfoTask.heightModelInfo}get vcsWkid(){return this._heightModelInfoTask.vcsWkid}get latestVcsWkid(){return this._heightModelInfoTask.latestVcsWkid}get viewingMode(){return et(this.userSpatialReference)||this.userSpatialReference.equals(this._spatialReferenceTask.spatialReference)?this._spatialReferenceTask.viewingMode:null}get tileInfo(){return this._tileInfoTask.tileInfo}get mapCollections(){var r,i,n,o;const e=(r=this.map)==null?void 0:r.call(this),t=[];return ue(this.priorityCollection)&&t.push(this.priorityCollection),t.push({parent:e==null?void 0:e.basemap,layers:(i=e==null?void 0:e.basemap)==null?void 0:i.baseLayers},{layers:e==null?void 0:e.layers},{parent:e==null?void 0:e.ground,layers:(n=e==null?void 0:e.ground)==null?void 0:n.layers},{parent:e==null?void 0:e.basemap,layers:(o=e==null?void 0:e.basemap)==null?void 0:o.referenceLayers}),t}get _allLayers(){return this._collectLayers(this.mapCollections)}get _spatialReferenceTask(){var n;if(this.suspended)return(n=this._get("_spatialReferenceTask"))!=null?n:{updating:!1};const{layers:e,updating:t}=this._allLayers;let r=null;for(const o of e){const s=this._getSupportedSpatialReferences(o);if(s.length>0){const l=this._narrowDownSpatialReferenceCandidates(r,s);ue(l)&&(r=l)}if(ue(r)&&r.length===1)break}if(t&&(et(r)||r.length!==1))return{updating:!0};const i=this._pickSpatialReferenceCandidate(r);return{spatialReference:ue(i)?i.spatialReference:null,viewingMode:ue(i)?i.viewingMode:null,updating:!1}}get _tileInfoTask(){var r,i,n,o,s,l,a,c;if(!this.required.tileInfo)return(r=this._get("_tileInfoTask"))!=null?r:{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const{layers:e,updating:t}=this._collectLayers([{parent:(n=(i=this.map)==null?void 0:i.call(this))==null?void 0:n.basemap,layers:(l=(s=(o=this.map)==null?void 0:o.call(this))==null?void 0:s.basemap)==null?void 0:l.baseLayers},{layers:(c=(a=this.map)==null?void 0:a.call(this))==null?void 0:c.layers}]);if(e&&e.length>0&&"tileInfo"in e[0]){const u=e[0].tileInfo;return{tileInfo:u&&u.spatialReference.equals(this.spatialReference)?u:null,updating:!1}}return{updating:t}}get _heightModelInfoTask(){var r,i,n,o;if(!this.required.heightModelInfo||this.suspended&&((r=this._get("_heightModelInfoTask"))==null?void 0:r.heightModelInfo))return(i=this._get("_heightModelInfoTask"))!=null?i:{updating:!1};const{layers:e,updating:t}=this._allLayers;for(const s of e)if(Gct(s)){const l=Wct(s);if(l)return{heightModelInfo:l,vcsWkid:(n=s.spatialReference)==null?void 0:n.vcsWkid,latestVcsWkid:(o=s.spatialReference)==null?void 0:o.latestVcsWkid,updating:!1}}return{updating:t}}get _extentCandidatesTask(){var i,n;if(this.suspended||!this.required.extent)return(i=this._get("_extentCandidatesTask"))!=null?i:{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const e=this._allLayers,t=e.updating,r=[];for(const o of e.layers){const s="fullExtents"in o&&o.fullExtents||(ue(o.fullExtent)?[o.fullExtent]:[]),l=this.requiresExtentInSpatialReference?null:s[0],a=(n=s.find(c=>c.spatialReference.equals(this.spatialReference)))!=null?n:l;if(a)return{candidates:[{extent:a,layer:o}],updating:!1};if(this._getSupportedSpatialReferences(o).length>0)for(const c of s)r.push({extent:c,layer:o})}return{candidates:r,updating:t}}get _extentTask(){const{candidates:e,updating:t}=this._extentCandidatesTask;if(t)return{updating:t};if(et(e)||e.length===0)return{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const r=this._pickExtentCandidate(e),i=this.spatialReference;return r.extent.equals(this._projectExtentTask.input)&&i.equals(this._projectExtentTask.spatialReference)?{extent:this._projectExtentTask.output,updating:ue(this._projectExtentTask.task)&&!this._projectExtentTask.task.finished}:(ue(this._projectExtentTask.task)&&(this._projectExtentTask.task=kS(this._projectExtentTask.task)),this._projectExtentTask={input:r.extent.clone(),output:null,spatialReference:i.clone(),task:Eie(async n=>{try{const o=await ise(r.extent,i,r.layer.portalItem,n);this._projectExtentTask={...this._projectExtentTask,task:null,output:o}}catch{if(la(n))return;this._projectExtentTask={...this._projectExtentTask,task:null}}})},{updating:!0})}_narrowDownSpatialReferenceCandidates(e,t){if(et(e))return t;const r=[],i=(n,o)=>ue(n)?ue(o)?n===o&&n:n:o;for(const n of e)for(const o of t){if(!n.spatialReference.equals(o.spatialReference))continue;const s=i(n.viewingMode,o.viewingMode);if(s!==!1){r.push({spatialReference:n.spatialReference,viewingMode:s});break}}return r.length>0?r:null}_pickSpatialReferenceCandidate(e){const t=this.defaultSpatialReference;return et(e)||e.length<1?ue(t)?{spatialReference:t,viewingMode:null}:null:(ue(t)&&e.length>1&&e.some(({spatialReference:r})=>r.equals(t))&&(e=e.filter(({spatialReference:r})=>r.equals(t))),e.length>1&&e.some(({viewingMode:r})=>r!==TE.Local)&&(e=e.filter(({viewingMode:r})=>r!==TE.Local)),e[0])}_getSupportedSpatialReferences(e){const t="supportedSpatialReferences"in e&&e.supportedSpatialReferences||(e.spatialReference?[e.spatialReference]:[]);if(t.length===0)return[];const r=[];for(const i of t){const n=this.getSpatialReferenceSupport({spatialReference:i,layer:e});if(ue(n)){const o=ue(n.constraints)?n.constraints:[{spatialReference:i,viewingMode:null}];for(const{spatialReference:s,viewingMode:l}of o)(!this.requiresExtentInSpatialReference||et(this.userSpatialReference)||s.equals(this.userSpatialReference))&&r.push({spatialReference:s,viewingMode:l})}}return r}_pickExtentCandidate(e){const t=this.spatialReference;return e.find(({extent:r})=>t.equals(r.spatialReference))||e[0]}_collectLayers(e){var r;if(this._loadMaybe((r=this.map)==null?void 0:r.call(this))!=="loaded")return{layers:[],updating:!0};const t={layers:[],preloading:-1,updating:!1};for(const i of e)if(this._collectCollection(i,t),t.preloading===this.sourcePreloadCount)break;return{layers:t.layers,updating:t.updating}}_collectCollection(e,t){if(e.layers){switch(this._loadMaybe(e.parent)){case"loading":return t.updating=!0,void++t.preloading;case"failed":return}for(const r of e.layers){switch(this._loadMaybe(r)){case"failed":continue;case"loading":t.updating=!0,++t.preloading;break;case"loaded":t.updating||t.layers.push(r),"layers"in r&&this._collectCollection({layers:r.layers},t)}if(t.preloading===this.sourcePreloadCount)break}}}_loadMaybe(e){return e&&"loadStatus"in e?e.loadStatus==="not-loaded"?(e.load().catch(()=>{}),"loading"):e.loadStatus:"loaded"}};d([f()],xi.prototype,"required",void 0),d([f({constructOnly:!0})],xi.prototype,"map",void 0),d([f({constructOnly:!0})],xi.prototype,"getSpatialReferenceSupport",void 0),d([f()],xi.prototype,"defaultSpatialReference",void 0),d([f()],xi.prototype,"userSpatialReference",void 0),d([f()],xi.prototype,"sourcePreloadCount",void 0),d([f()],xi.prototype,"priorityCollection",void 0),d([f()],xi.prototype,"requiresExtentInSpatialReference",void 0),d([f()],xi.prototype,"suspended",void 0),d([f({readOnly:!0})],xi.prototype,"ready",null),d([f({readOnly:!0})],xi.prototype,"heightModelInfoReady",null),d([f({readOnly:!0})],xi.prototype,"spatialReference",null),d([f({readOnly:!0})],xi.prototype,"extent",null),d([f({readOnly:!0})],xi.prototype,"heightModelInfo",null),d([f({readOnly:!0})],xi.prototype,"vcsWkid",null),d([f({readOnly:!0})],xi.prototype,"latestVcsWkid",null),d([f({readOnly:!0})],xi.prototype,"viewingMode",null),d([f({readOnly:!0})],xi.prototype,"tileInfo",null),d([f({readOnly:!0})],xi.prototype,"mapCollections",null),d([f({readOnly:!0})],xi.prototype,"_allLayers",null),d([f({readOnly:!0})],xi.prototype,"_spatialReferenceTask",null),d([f({readOnly:!0})],xi.prototype,"_tileInfoTask",null),d([f({readOnly:!0})],xi.prototype,"_heightModelInfoTask",null),d([f({readOnly:!0})],xi.prototype,"_extentCandidatesTask",null),d([f()],xi.prototype,"_extentTask",null),d([f()],xi.prototype,"_projectExtentTask",void 0),xi=d([se("esri.views.support.DefaultsFromMap")],xi);var Bk;let xr=Bk=class extends fa(Dd.EventedMixin(oT(rr))){constructor(e){super(e),this._userSpatialReference=null,this._cursor=null,this.allLayerViews=new Jv({getCollections:()=>{var t,r,i;return[(t=this.basemapView)==null?void 0:t.baseLayerViews,(r=this.groundView)==null?void 0:r.layerViews,this.layerViews,(i=this.basemapView)==null?void 0:i.referenceLayerViews]},getChildrenFunction:t=>t.layerViews}),this.groundView=null,this.basemapView=null,this.fatalError=null,this.graphics=new gw,this.analyses=new EE,this.typeSpecificPreconditionsReady=!0,this.layerViews=new dr,this.magnifier=new Goe,this.padding={left:0,top:0,right:0,bottom:0},this.ready=!1,this.spatialReferenceWarningDelay=1e3,this.supportsGround=!0,this.timeExtent=null,this.type=null,this.scale=null,this.updating=!1,this.initialExtentRequired=!0,this.input=new Uct,this.navigation=new Xoe,this.layerViewManager=null,this.analysisViewManager=null,this.isHeightModelInfoRequired=!1,this.width=null,this.height=null,this.resizing=!1,this.suspended=!1,this.viewEvents=new Lct(this),this.persistableViewModels=new dr,this._isValid=!1,this._readyCycleForced=!1,this.handles.add(Ot(()=>this.preconditionsReady,t=>{var r,i;t?(this._currentSpatialReference=this.spatialReference,Bk.views.add(this)):(this._currentSpatialReference=null,Bk.views.remove(this)),this.notifyChange("spatialReference"),!t&&this.ready?((r=this.toolViewManager)==null||r.detach(),ue(this.analysisViewManager)&&this.analysisViewManager.detach(),(i=this.layerViewManager)==null||i.clear(),this._teardown()):t&&!this.ready&&(this._startup(),ue(this.analysisViewManager)&&this.analysisViewManager.attach(),this.toolViewManager.attach())},gg))}initialize(){this.addResolvingPromise(this.validate().then(()=>(this._isValid=!0,KD(()=>this.ready)))),this.basemapView=new Rp({view:this}),this.layerViewManager=new Act({view:this,layerViewImporter:{importLayerView:e=>this.importLayerView(e),hasLayerViewModule:e=>this.hasLayerViewModule(e)},supportsGround:this.supportsGround}),this.toolViewManager=new zct({view:this}),this._setupSpatialReferenceLogger(),this.handles.add([Ot(()=>this.initialExtentRequired,e=>this.defaultsFromMap.required={...this.defaultsFromMap.required,extent:e},{sync:!0,initial:!0}),Ot(()=>this.ready,e=>{this.defaultsFromMap&&(this.defaultsFromMap.suspended=e,this.defaultsFromMap.userSpatialReference=e?this.spatialReference:this._userSpatialReference)},{sync:!0}),Ot(()=>this._userSpatialReference,e=>{this.defaultsFromMap&&(this.defaultsFromMap.userSpatialReference=e)},{sync:!0,initial:!0})])}_setupSpatialReferenceLogger(){let e=null;this.handles.add([Ot(()=>{var t;return(t=this.defaultsFromMap)==null?void 0:t.ready},t=>{var i;const r=((i=this.map)==null?void 0:i.allLayers.length)>0;if(t&&!this.spatialReference&&r){if(ue(e))return;const n=w0(()=>e=kS(e));e=Eie(async o=>{try{await U3(this.spatialReferenceWarningDelay,null,o)}catch{return}finally{e=null}ft.getLogger(this.declaredClass).warn("#spatialReference","no spatial reference could be derived from the currently added map layers")}),this.handles.add(n,"spatial-reference-logger-task")}else this.handles.remove("spatial-reference-logger-task")},{sync:!0})])}destroy(){if(this.destroyed)return;this.viewEvents.destroy(),this.allLayerViews.destroy(),this.navigation&&(this.navigation.destroy(),this._set("navigation",null)),this.graphics=yn(this.graphics),this.analyses=yn(this.analyses),this.handles.remove("defaultsFromMap"),this.defaultsFromMap.destroy(),this._set("defaultsFromMap",null),yn(this.analysisViewManager),this.toolViewManager=yn(this.toolViewManager),this.layerViewManager=yn(this.layerViewManager),this.basemapView=yn(this.basemapView),this.invalidate(),this._emitter.clear(),this.handles.removeAll();const e=this.map;this.map=null,e==null||e.destroy()}_startup(){this._set("ready",!0)}_teardown(){this._set("ready",!1)}whenReady(){return Promise.resolve(this)}toMap(){return ft.getLogger(this.declaredClass).error("#toMap()","Not implemented on this instance of View"),null}get activeTool(){var e;return(e=this.toolViewManager)==null?void 0:e.activeTool}set activeTool(e){this.toolViewManager&&(this.toolViewManager.activeTool=e)}get animation(){return this._get("animation")}set animation(e){this._set("animation",e)}get _defaultsFromMapSettings(){return{}}get defaultsFromMap(){return new xi({required:{tileInfo:!1,heightModelInfo:!1,extent:!1},map:()=>this.map,getSpatialReferenceSupport:e=>this.getSpatialReferenceSupport(e),...this._defaultsFromMapSettings})}get extent(){return this._get("extent")}set extent(e){this._set("extent",e)}get heightModelInfo(){return this.getDefaultHeightModelInfo()}get interacting(){return this.navigating}get navigating(){return!1}get preconditionsReady(){var e;return!(this.fatalError||!this._isValid||this._readyCycleForced||!this.map||uu.isLoadable(this.map)&&!this.map.loaded||this.width===0||this.height===0||!this.spatialReference||!this._validateSpatialReference(this.spatialReference)||!this._currentSpatialReference&&!((e=this.defaultsFromMap)!=null&&e.ready)||!this.typeSpecificPreconditionsReady)}set map(e){e!==this._get("map")&&(e!=null&&e.destroyed&&(ft.getLogger(this.declaredClass).warn("#map","The provided map is already destroyed",{map:e}),e=null),uu.isLoadable(e)&&e.load().catch(()=>{}),this.constructed&&(this.forceReadyCycle(),this._currentSpatialReference=null),this._set("map",e))}get spatialReference(){var t,r;let e=this._userSpatialReference||this._currentSpatialReference||this.getDefaultSpatialReference()||null;return e&&((r=(t=this.defaultsFromMap)==null?void 0:t.required)==null?void 0:r.heightModelInfo)&&(e=e.clone(),e.vcsWkid=this.defaultsFromMap.vcsWkid,e.latestVcsWkid=this.defaultsFromMap.latestVcsWkid),e}set spatialReference(e){const t=!So(e,this._get("spatialReference"));this._set("_userSpatialReference",e),t&&(this._set("spatialReference",e),this._spatialReferenceChanged(e))}_spatialReferenceChanged(e){}get stationary(){return!this.animation&&!this.navigating&&!this.resizing}get tools(){var e;return(e=this.toolViewManager)==null?void 0:e.tools}get initialExtent(){var e;return(e=this.defaultsFromMap)==null?void 0:e.extent}get cursor(){const e=this.toolViewManager?this.toolViewManager.cursor:null;return ue(e)?e:this._cursor||"default"}set cursor(e){this._cursor=e,this.notifyChange("cursor")}get size(){return[this.width,this.height]}whenLayerView(e){return this.layerViewManager.whenLayerView(e)}getDefaultSpatialReference(){var e;return(e=this.defaultsFromMap)==null?void 0:e.spatialReference}getDefaultHeightModelInfo(){var e,t,r;return(r=(t=this.map&&"heightModelInfo"in this.map?this.map.heightModelInfo:void 0)!=null?t:(e=this.defaultsFromMap)==null?void 0:e.heightModelInfo)!=null?r:null}importLayerView(e){throw new ze("importLayerView() not implemented")}hasLayerViewModule(e){return!1}async validate(){}invalidate(){this._isValid=!1}getSpatialReferenceSupport(){return{constraints:null}}_validateSpatialReference(e){return ue(this.getSpatialReferenceSupport({spatialReference:e}))}when(e,t){return this.isResolved()&&!this.ready&&ft.getLogger(this.declaredClass).warn("#when()","Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use reactiveUtils.whenOnce(() => view.ready).then(...) instead."),super.when(e,t)}forceReadyCycle(){this.ready&&(ca(()=>this.preconditionsReady===!1,()=>this._readyCycleForced=!1,{once:!0}),this._readyCycleForced=!0)}addAndActivateTool(e){this.toolViewManager.tools.add(e),this.activeTool=e}tryFatalErrorRecovery(){this.fatalError=null}};xr.views=new dr,d([f()],xr.prototype,"_userSpatialReference",void 0),d([f()],xr.prototype,"activeTool",null),d([f({readOnly:!0})],xr.prototype,"allLayerViews",void 0),d([f()],xr.prototype,"groundView",void 0),d([f()],xr.prototype,"animation",null),d([f()],xr.prototype,"basemapView",void 0),d([f({readOnly:!0})],xr.prototype,"_defaultsFromMapSettings",null),d([f()],xr.prototype,"defaultsFromMap",null),d([f()],xr.prototype,"fatalError",void 0),d([f({type:li})],xr.prototype,"extent",null),d([f(ZU(gw,"graphics"))],xr.prototype,"graphics",void 0),d([f(ZU(EE,"analyses"))],xr.prototype,"analyses",void 0),d([f({readOnly:!0,type:RT})],xr.prototype,"heightModelInfo",null),d([f({readOnly:!0})],xr.prototype,"interacting",null),d([f({readOnly:!0})],xr.prototype,"navigating",null),d([f({readOnly:!0,dependsOn:["fatalError","_isValid","_readyCycleForced","map","map.loaded?","width","height","spatialReference","_currentSpatialReference","defaultsFromMap.ready","typeSpecificPreconditionsReady"]})],xr.prototype,"preconditionsReady",null),d([f({readOnly:!0})],xr.prototype,"typeSpecificPreconditionsReady",void 0),d([f({type:dr,readOnly:!0})],xr.prototype,"layerViews",void 0),d([f({type:Goe})],xr.prototype,"magnifier",void 0),d([f({value:null,type:aL})],xr.prototype,"map",null),d([f()],xr.prototype,"padding",void 0),d([f({readOnly:!0})],xr.prototype,"ready",void 0),d([f({type:gr})],xr.prototype,"spatialReference",null),d([f()],xr.prototype,"spatialReferenceWarningDelay",void 0),d([f()],xr.prototype,"stationary",null),d([f({readOnly:!0})],xr.prototype,"supportsGround",void 0),d([f({type:vc})],xr.prototype,"timeExtent",void 0),d([f()],xr.prototype,"tools",null),d([f()],xr.prototype,"toolViewManager",void 0),d([f({readOnly:!0})],xr.prototype,"type",void 0),d([f({type:Number})],xr.prototype,"scale",void 0),d([f({readOnly:!0})],xr.prototype,"updating",void 0),d([f({readOnly:!0})],xr.prototype,"initialExtentRequired",void 0),d([f({readOnly:!0})],xr.prototype,"initialExtent",null),d([f()],xr.prototype,"cursor",null),d([f({readOnly:!0})],xr.prototype,"input",void 0),d([f({type:Xoe,nonNullable:!0})],xr.prototype,"navigation",void 0),d([f()],xr.prototype,"layerViewManager",void 0),d([f()],xr.prototype,"analysisViewManager",void 0),d([f()],xr.prototype,"width",void 0),d([f()],xr.prototype,"height",void 0),d([f({readOnly:!0})],xr.prototype,"resizing",void 0),d([f({value:null,readOnly:!0})],xr.prototype,"size",null),d([f({readOnly:!0})],xr.prototype,"suspended",void 0),d([f({readOnly:!0})],xr.prototype,"viewEvents",void 0),d([f({readOnly:!0})],xr.prototype,"persistableViewModels",void 0),d([f()],xr.prototype,"_isValid",void 0),d([f()],xr.prototype,"_readyCycleForced",void 0),d([f()],xr.prototype,"_currentSpatialReference",void 0),xr=Bk=d([se("esri.views.View")],xr);const Kct=xr;let Np=class extends ZS{constructor(e){super(e),this.state="running",this.target=null,this._dfd=null}initialize(){this.addResolvingPromise(new Promise((e,t)=>this._dfd={resolve:e,reject:t}))}get done(){return this.state==="finished"||this.state==="stopped"}stop(){var e;this.state!=="stopped"&&this.state!=="finished"&&(this._set("state","stopped"),(e=this._dfd)==null||e.reject(new ze("ViewAnimation stopped")))}finish(){var e;this.state!=="stopped"&&this.state!=="finished"&&(this._set("state","finished"),(e=this._dfd)==null||e.resolve())}update(e,t){t||(t=Rd(e)?"waiting-for-target":"running"),this._set("target",e),this._set("state",t)}};d([f({readOnly:!0})],Np.prototype,"done",null),d([f({readOnly:!0,type:String})],Np.prototype,"state",void 0),d([f()],Np.prototype,"target",void 0),Np=d([se("esri.views.ViewAnimation")],Np),function(e){e.State={RUNNING:"running",STOPPED:"stopped",FINISHED:"finished",WAITING_FOR_TARGET:"waiting-for-target"}}(Np||(Np={}));const hL=Np;function hm(e,t,r,i){const n=3*e,o=3*(r-e)-n,s=1-n-o,l=3*t,a=3*(i-t)-l,c=1-l-a;function u(y){return((s*y+o)*y+n)*y}function p(y){return((c*y+a)*y+l)*y}function h(y){return(3*s*y+2*o)*y+n}function m(y,v){let _,x,S,C,E,T;for(S=y,T=0;T<8;T++){if(C=u(S)-y,Math.abs(C)<v)return S;if(E=h(S),Math.abs(E)<1e-6)break;S-=C/E}if(_=0,x=1,S=y,S<_)return _;if(S>x)return x;for(;_<x;){if(C=u(S),Math.abs(C-y)<v)return S;y>C?_=S:x=S,S=.5*(x-_)+_}return S}return function(y,v=1e-6){return p(m(y,v))}}const Zct=/^cubic-bezier\((.*)\)/,Wl={};function Qct(e){let t=Wl[e]||null;if(!t){const r=Zct.exec(e);if(r){const i=r[1].split(",").map(n=>parseFloat(n.trim()));i.length!==4||i.some(n=>isNaN(n))||(t=hm.apply(hm,i))}}return t}Wl.ease=hm(.25,.1,.25,1),Wl.linear=hm(0,0,1,1),Wl.easeIn=Wl["ease-in"]=hm(.42,0,1,1),Wl.easeOut=Wl["ease-out"]=hm(0,0,.58,1),Wl.easeInOut=Wl["ease-in-out"]=hm(.42,0,.58,1);function wh(){return[1,0,0,1,0,0]}function Jct(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function Xct(e,t,r,i,n,o){return[e,t,r,i,n,o]}function eut(e,t){return new Float64Array(e,t,6)}Object.freeze(Object.defineProperty({__proto__:null,create:wh,clone:Jct,fromValues:Xct,createView:eut},Symbol.toStringTag,{value:"Module"}));function P1(e,t){return e[0]=t[0],e[1]=t[1],e}function lo(e,t,r){return e[0]=t,e[1]=r,e}function nse(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function $1(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function ose(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function sse(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function tut(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function rut(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function iut(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function nut(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}function out(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e}function kx(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function sut(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}function Sx(e,t){const r=t[0]-e[0],i=t[1]-e[1];return Math.sqrt(r*r+i*i)}function AE(e,t){const r=t[0]-e[0],i=t[1]-e[1];return r*r+i*i}function ME(e){const t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function lse(e){const t=e[0],r=e[1];return t*t+r*r}function ase(e,t){return e[0]=-t[0],e[1]=-t[1],e}function lut(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function fL(e,t){const r=t[0],i=t[1];let n=r*r+i*i;return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n),e}function cse(e,t){return e[0]*t[0]+e[1]*t[1]}function use(e,t,r){const i=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=i,e}function aut(e,t,r,i){const n=t[0],o=t[1];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e}function cut(e,t){t=t||1;const r=2*eT()*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e}function uut(e,t,r){const i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n,e[1]=r[1]*i+r[3]*n,e}function Gc(e,t,r){const i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function dut(e,t,r){const i=t[0],n=t[1];return e[0]=r[0]*i+r[3]*n+r[6],e[1]=r[1]*i+r[4]*n+r[7],e}function put(e,t,r){const i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e}function hut(e,t,r,i){const n=t[0]-r[0],o=t[1]-r[1],s=Math.sin(i),l=Math.cos(i);return e[0]=n*l-o*s+r[0],e[1]=n*s+o*l+r[1],e}function fut(e,t){const r=e[0],i=e[1],n=t[0],o=t[1];let s=r*r+i*i;s>0&&(s=1/Math.sqrt(s));let l=n*n+o*o;l>0&&(l=1/Math.sqrt(l));const a=(r*n+i*o)*s*l;return a>1?0:a<-1?Math.PI:Math.acos(a)}function mut(e){return"vec2("+e[0]+", "+e[1]+")"}function gut(e,t){return e[0]===t[0]&&e[1]===t[1]}function yut(e,t){const r=e[0],i=e[1],n=t[0],o=t[1],s=pa();return Math.abs(r-n)<=s*Math.max(1,Math.abs(r),Math.abs(n))&&Math.abs(i-o)<=s*Math.max(1,Math.abs(i),Math.abs(o))}function vut(e,t,r,i,n){let o=t[0]-r[0],s=t[1]-r[1];const l=(i[0]*o+i[1]*s)*(n-1);return o=i[0]*l,s=i[1]*l,e[0]=t[0]+o,e[1]=t[1]+s,e}const but=ME,fF=$1,_ut=ose,wut=sse,xut=Sx,Cut=AE,kut=lse;Object.freeze(Object.defineProperty({__proto__:null,copy:P1,set:lo,add:nse,subtract:$1,multiply:ose,divide:sse,ceil:tut,floor:rut,min:iut,max:nut,round:out,scale:kx,scaleAndAdd:sut,distance:Sx,squaredDistance:AE,length:ME,squaredLength:lse,negate:ase,inverse:lut,normalize:fL,dot:cse,cross:use,lerp:aut,random:cut,transformMat2:uut,transformMat2d:Gc,transformMat3:dut,transformMat4:put,rotate:hut,angle:fut,str:mut,exactEquals:gut,equals:yut,projectAndScale:vut,len:but,sub:fF,mul:_ut,div:wut,dist:xut,sqrDist:Cut,sqrLen:kut},Symbol.toStringTag,{value:"Module"}));function bn(){return[0,0]}function Sut(e){return[e[0],e[1]]}function Ex(e,t){return[e,t]}function Eut(e){const t=bn(),r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t}function Tut(e,t){return new Float64Array(e,t,2)}function dse(){return bn()}function pse(){return Ex(1,1)}function hse(){return Ex(1,0)}function fse(){return Ex(0,1)}const Aut=dse(),Mut=pse(),Iut=hse(),Put=fse();Object.freeze(Object.defineProperty({__proto__:null,create:bn,clone:Sut,fromValues:Ex,fromArray:Eut,createView:Tut,zeros:dse,ones:pse,unitX:hse,unitY:fse,ZEROS:Aut,ONES:Mut,UNIT_X:Iut,UNIT_Y:Put},Symbol.toStringTag,{value:"Module"}));const mse=96,gse=39.37,$ut=180/Math.PI;function yse(e){return e.wkid?e:e.spatialReference||gr.WGS84}function mF(e,t){return t.type?lo(e,t.x,t.y):P1(e,t)}function vse(e){return Ig(e)}function yw(e,t){const r=Math.max(1,t[0]),i=Math.max(1,t[1]);return Math.max(e.width/r,e.height/i)*Vut(e.spatialReference)}async function M_(e,t,r,i){let n,o;if(!e||Array.isArray(e)&&!e.length)return null;if(dr.isCollection(e)&&(e=e.toArray()),Array.isArray(e)&&e.length&&typeof e[0]=="object"){const l=e.every(u=>"attributes"in u),a=e.some(u=>!u.geometry);let c=e;if(l&&a&&t&&t.allLayerViews){const u=new Map;for(const y of e){const v=y.layer,_=u.get(v)||[],x=y.attributes[v.objectIdField];x!=null&&_.push(x),u.set(v,_)}const p=[];u.forEach((y,v)=>{const _=t.allLayerViews.find(x=>x.layer.id===v.id);if("queryFeatures"in _){const x=v.createQuery();x.objectIds=y,x.returnGeometry=!0,p.push(_.queryFeatures(x))}});const h=await Promise.all(p),m=[];for(const y of h)if(y&&y.features&&y.features.length)for(const v of y.features)ue(v.geometry)&&m.push(v.geometry);c=m}for(const u of c)i=await M_(u,t,r,i);return i}if(Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number")n=new Nr(e);else if(e instanceof Wh)n=e;else if("geometry"in e){if(e.geometry)n=e.geometry;else if(e.layer){const l=e.layer,a=t.allLayerViews.find(c=>c.layer.id===l.id);if("queryFeatures"in a){const c=l.createQuery();c.objectIds=[e.attributes[l.objectIdField]],c.returnGeometry=!0;const u=await a.queryFeatures(c);n=cJ(u,"features",0,"geometry")}}}if(et(n)||(o=n.type==="point"?new li({xmin:n.x,ymin:n.y,xmax:n.x,ymax:n.y,spatialReference:n.spatialReference}):n.extent,!o))return null;yg()||Oh(o.spatialReference,r)||await vg();const s=$0(o,r);return s?i=i?i.union(s):s:null}function Out(e){if(e&&(!Array.isArray(e)||typeof e[0]!="number")&&(typeof e=="object"||Array.isArray(e)&&typeof e[0]=="object")){if("layer"in e&&e.layer&&e.layer.minScale&&e.layer.maxScale){const t=e.layer;return{min:t.minScale,max:t.maxScale}}if(Array.isArray(e)&&e.length&&e.every(t=>"layer"in t)){let t=0,r=0;for(const i of e){const n=i.layer;n&&n.minScale&&n.maxScale&&(t=n.minScale<t?n.minScale:t,r=n.maxScale>r?n.maxScale:r)}return t&&r?{min:t,max:r}:null}}}function CI(e,t){return So(yse(e),t)?e:$0(e,t)}async function Lut(e,t){if(!e||!t)return new nu({targetGeometry:new Nr,scale:0,rotation:0});let r=t.spatialReference;const{constraints:i,padding:n,viewpoint:o,size:s}=t,l=[n?s[0]-n.left-n.right:s[0],n?s[1]-n.top-n.bottom:s[1]];let a=null;e instanceof nu?a=e:e.viewpoint?a=e.viewpoint:e.target&&e.target.declaredClass==="esri.Viewpoint"&&(a=e.target);let c=null;a&&a.targetGeometry?c=a.targetGeometry:e instanceof li?c=e:(e||e&&("center"in e||"extent"in e||"target"in e))&&(c=await M_(e.center,t,r)||await M_(e.extent,t,r)||await M_(e.target,t,r)||await M_(e,t,r)),!c&&o&&o.targetGeometry?c=o.targetGeometry:!c&&t.extent&&(c=t.extent),r||(r=yse(t.spatialReference||t.extent||c)),yg()||So(c.spatialReference,r)||Oh(c,r)||await vg();const u=CI(c.center?c.center:c,r);let p=null;if(a&&ue(a.targetGeometry)&&a.targetGeometry.type==="point")p=a.scale;else if("scale"in e&&e.scale)p=e.scale;else if("zoom"in e&&e.zoom!==-1&&i&&i.effectiveLODs)p=i.zoomToScale(e.zoom);else if(Array.isArray(c)||c.type==="point"||c.type==="extent"&&c.width===0&&c.height===0){const v=CI(t.extent,r);p=ue(v)?yw(v,l):t.extent?yw(t.extent,l):o.scale}else p=yw(CI(c.extent,r),l);const h=Out(e);h&&(h.min&&h.min>p?p=h.min:h.max&&h.max<p&&(p=h.max));let m=0;a?m=a.rotation:e.hasOwnProperty("rotation")?m=e.rotation:o&&(m=o.rotation);let y=new nu({targetGeometry:u,scale:p,rotation:m});return i&&(y=i.fit(y),i.constrainByGeometry(y),i.rotationEnabled||(y.rotation=m)),y}function bc(e,t){const r=e.targetGeometry,i=t.targetGeometry;return r.x=i.x,r.y=i.y,r.spatialReference=i.spatialReference,e.scale=t.scale,e.rotation=t.rotation,e}function Rut(e,t,r){return r?lo(e,.5*(t[0]-r.right+r.left),.5*(t[1]-r.bottom+r.top)):kx(e,t,.5)}const Dut=function(){const e=bn();return function(t,r,i){const n=r.targetGeometry;mF(e,n);const o=.5*U0(r);return t.xmin=e[0]-o*i[0],t.ymin=e[1]-o*i[1],t.xmax=e[0]+o*i[0],t.ymax=e[1]+o*i[1],t.spatialReference=n.spatialReference,t}}();function Nut(e,t,r,i,n){return mL(e,t,r.center),e.scale=yw(r,i),n&&n.constraints&&n.constraints.constrain(e),e}function Fut(e,t,r,i){return vF(e,t,r,i),aF(e,e)}const bse=function(){const e=bn();return function(t,r,i){return fF(t,But(t,r),Rut(e,r,i))}}(),zut=function(){const e=wh(),t=bn();return function(r,i,n,o){const s=U0(i),l=gF(i);return lo(t,s,s),zoe(e,t),jT(e,e,l),M1(e,e,bse(t,n,o)),M1(e,e,[0,o.top-o.bottom]),lo(r,e[4],e[5])}}();function U0(e){return e.scale*jut(e.targetGeometry)}function jut(e){return ue(e)&&ho(e.spatialReference)?1/(vse(e.spatialReference)*gse*mse):1}function gF(e){return ED(e.rotation)||0}function Vut(e){return ho(e)?vse(e)*gse*mse:1}function But(e,t){return kx(e,t,.5)}const yF=function(){const e=bn(),t=bn(),r=bn();return function(i,n,o,s,l,a){return ase(e,n),kx(t,o,.5*a),lo(r,1/s*a,-1/s*a),uF(i,t),l&&jT(i,i,l),cF(i,i,r),M1(i,i,e),i}}(),vF=function(){const e=bn();return function(t,r,i,n){const o=U0(r),s=gF(r);return mF(e,r.targetGeometry),yF(t,e,i,o,s,n)}}(),Uut=function(){const e=bn();return function(t,r,i,n){const o=U0(r);return mF(e,r.targetGeometry),yF(t,e,i,o,0,n)}}();function Wut(e){const t=rc(e);return t?t.valid[1]-t.valid[0]:0}function Hut(e,t){return Math.round(Wut(e)/t)}const Gut=function(){const e=bn(),t=bn(),r=[0,0,0];return function(i,n,o){$1(e,i,n),fL(e,e),$1(t,i,o),fL(t,t),use(r,e,t);let s=Math.acos(cse(e,t)/(ME(e)*ME(t)))*$ut;return r[2]<0&&(s=-s),isNaN(s)&&(s=0),s}}(),qut=function(){const e=bn();return function(t,r,i,n){const o=t.targetGeometry;return bc(t,r),zut(e,r,i,n),o.x+=e[0],o.y+=e[1],t}}(),mL=function(e,t,r){bc(e,t);const i=e.targetGeometry;return i.x=r.x,i.y=r.y,i.spatialReference=r.spatialReference,e},Yut=function(){const e=bn();return function(t,r,i,n,o){o||(o="center"),fF(e,i,n),kx(e,e,.5);const s=e[0],l=e[1];switch(o){case"center":lo(e,0,0);break;case"left":lo(e,-s,0);break;case"top":lo(e,0,l);break;case"right":lo(e,s,0);break;case"bottom":lo(e,0,-l);break;case"top-left":lo(e,-s,l);break;case"bottom-left":lo(e,-s,-l);break;case"top-right":lo(e,s,l);break;case"bottom-right":lo(e,s,-l)}return UT(t,r,e),t}}();function uvt(e,t,r){return bc(e,t),e.rotation+=r,e}function Kut(e,t,r){return bc(e,t),e.rotation=r,e}const Zut=function(){const e=bn();return function(t,r,i,n,o){return bc(t,r),isNaN(i)||i===0||(wse(e,n,r,o),t.scale=r.scale*i,xse(e,e,t,o),UT(t,t,lo(e,e[0]-n[0],n[1]-e[1]))),t}}();function fW(e,t,r){return bc(e,t),e.scale=r,e}const _se=function(){const e=bn();return function(t,r,i,n,o,s){return bc(t,r),isNaN(i)||i===0||(wse(e,o,r,s),t.scale=r.scale*i,t.rotation+=n,xse(e,e,t,s),UT(t,t,lo(e,e[0]-o[0],o[1]-e[1]))),t}}(),dvt=function(){const e=bn(),t=bn();return function(r,i,n,o,s,l,a){return bse(t,l,a),nse(e,s,t),o?_se(r,i,n,o,e,l):Zut(r,i,n,e,l)}}(),wse=function(){const e=wh();return function(t,r,i,n){return Gc(t,r,Fut(e,i,n,1))}}(),xse=function(){const e=wh();return function(t,r,i,n){return Gc(t,r,vF(e,i,n,1))}}(),UT=function(){const e=bn(),t=wh();return function(r,i,n){bc(r,i);const o=U0(i),s=r.targetGeometry;return Foe(t,gF(i)),cF(t,t,Ex(o,o)),Gc(e,n,t),s.x+=e[0],s.y+=e[1],r}}();class Qut{constructor(t,r,i,n){const o=t.targetGeometry,s=r.targetGeometry;n?typeof n=="string"&&(n=Qct(n)||Wl.ease):n=Wl.ease,this.easing=n,this.duration=i,this.sCenterX=o.x,this.sCenterY=o.y,this.sScale=t.scale,this.sRotation=t.rotation,this.tCenterX=s.x,this.tCenterY=s.y,this.tScale=r.scale,this.tRotation=r.rotation,this.dCenterX=this.tCenterX-this.sCenterX,this.dCenterY=this.tCenterY-this.sCenterY,this.dScale=this.tScale-this.sScale,this.dRotation=this.tRotation-this.sRotation,this.dRotation>180?this.dRotation-=360:this.dRotation<-180&&(this.dRotation+=360)}applyRatio(t,r){const i=this.easing(r);let n,o,s,l;r>=1?(n=this.tCenterX,o=this.tCenterY,s=this.tRotation,l=this.tScale):(n=this.sCenterX+i*this.dCenterX,o=this.sCenterY+i*this.dCenterY,s=this.sRotation+i*this.dRotation,l=this.sScale+i*this.dScale),t.targetGeometry.x=n,t.targetGeometry.y=o,t.scale=l,t.rotation=s}}let Wu=class extends rr{constructor(e){super(e),this.duration=200,this.transition=null,this.easing=Wl.ease,this.view=null,this.viewpoint=null,this.viewpoint=new nu({targetGeometry:new Nr,scale:0,rotation:0}),this._updateTask=Hv({postRender:this._postRender.bind(this)}),this._updateTask.pause()}destroy(){this._updateTask.remove(),this._updateTask=null}animate(e,t,r){this.stop();const i=this.viewpoint;bc(i,t),this.transition=new Qut(this.viewpoint,e.target,r&&r.duration||this.duration,r&&r.easing||this.easing);const n=()=>{this.animation===e&&this._updateTask&&(e.state==="finished"&&(this.transition.applyRatio(this.viewpoint,1),this.view.state&&(this.view.state.viewpoint=this.viewpoint.clone())),this.animation=null,this.updateFunction=null)};return e.when(n,n),this._startTime=performance.now(),this._updateTask.resume(),this.animation=e,e}animateContinous(e,t){this.stop(),this.updateFunction=t,this.viewpoint=e;const r=new hL({target:e.clone()}),i=()=>{this.animation===r&&this._updateTask&&(this.animation=null,this.updateFunction=null)};return r.when(i,i),this._startTime=performance.now(),this._updateTask.resume(),this.animation=r,r}stop(){this.animation&&(this.animation.stop(),this.animation=null,this.updateFunction=null)}_postRender(e){const t=this.animation;if(t&&t.state!==hL.State.STOPPED){if(this.updateFunction)this.updateFunction(this.viewpoint,e.deltaTime);else{const r=(performance.now()-this._startTime)/this.transition.duration,i=r>=1;this.transition.applyRatio(this.viewpoint,r),i&&this.animation.finish()}this.view.state&&(this.view.state.viewpoint=this.viewpoint.clone())}else this._updateTask.pause()}};d([f()],Wu.prototype,"animation",void 0),d([f()],Wu.prototype,"duration",void 0),d([f()],Wu.prototype,"transition",void 0),d([f()],Wu.prototype,"easing",void 0),d([f()],Wu.prototype,"view",void 0),d([f()],Wu.prototype,"viewpoint",void 0),Wu=d([se("esri.views.2d.AnimationManager")],Wu);const Jut=Wu;class Xut{constructor(t){this.view=t,this._frameTaskHandle=null,this._updateRequested=!1,this.stationary=!0,this.animationInProgress=!1,this.prepare=()=>{this._updateParameters.state=this.view.state,this._updateParameters.stationary=this.view.stationary,this._updateParameters.pixelRatio=window.devicePixelRatio,this._updateParameters.renderingOptions=this.view.renderingOptions},this.update=()=>{this._updateRequested=!1;const{basemapView:r,graphicsView:i,labelManager:n,layerViews:o,state:{id:s}}=this.view;r.baseLayerViews.forEach(this._updateLayerView,this),o.forEach(this._updateLayerView,this),r.referenceLayerViews.forEach(this._updateLayerView,this),ue(n)&&(n.lastUpdateId!==s&&(n.viewChange(),n.lastUpdateId=s),n.updateRequested&&n.processUpdate(this._updateParameters)),ue(i)&&(i.lastUpdateId!==s&&(i.viewChange(),i.lastUpdateId=s),i.updateRequested&&i.processUpdate(this._updateParameters)),this.view.graphicsTileStore.setViewState(this._updateParameters.state),this.animationInProgress||this._updateRequested||this._frameTaskHandle.pause()}}destroy(){this.stop()}start(){if(this._frameTaskHandle)return;const t=this.view;this.stationary=t.stationary,this._updateParameters={state:t.state,pixelRatio:window.devicePixelRatio,stationary:this.stationary,renderingOptions:t.renderingOptions},this._stationaryHandle=Ot(()=>t.stationary,r=>{this.stationary=r,this.requestFrame()}),this._frameTaskHandle=Hv(this),this.requestUpdate()}stop(){this._frameTaskHandle&&(this._updateRequested=!1,this._stationaryHandle.remove(),this._frameTaskHandle.remove(),this._updateParameters=this._stationaryHandle=this._frameTaskHandle=null,this.stationary=!0,this.animationInProgress=!1)}requestUpdate(){this._updateRequested||(this._updateRequested=!0,this.requestFrame())}requestFrame(){this._frameTaskHandle&&this._frameTaskHandle.resume()}_updateLayerView(t){const r=this.view.state,i=t.lastUpdateId;i!=null&&(this.stationary||t.moving)||(t.moving=!0,t.moveStart()),i!==r.id&&t.viewChange(),this.stationary&&t.moving&&(t.moving=!1,t.moveEnd()),t.lastUpdateId=r.id,t.updateRequested&&t.processUpdate(this._updateParameters),"layerViews"in t&&t.layerViews.forEach(this._updateLayerView,this)}}function $n(){return Promise.all([ut(()=>import("./webglDeps.3a22daf6.js"),["assets/webglDeps.3a22daf6.js","assets/VertexArrayObject.729879be.js","assets/Texture.8e8dfb11.js","assets/enums.2d9e6f64.js","assets/ProgramTemplate.83fdf5b6.js","assets/programUtils.7e7bf03b.js"]),ut(()=>import("./mapViewDeps.e506022c.js"),["assets/mapViewDeps.e506022c.js","assets/_commonjsHelpers.773c2c82.js","assets/imageutils.2ce8d042.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/BufferPool.8a9a4ff1.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/enums.54326430.js","assets/programUtils.7e7bf03b.js","assets/RenderingContext.f389fdc6.js","assets/OrderIndependentTransparency.4d1575c0.js","assets/floatRGBA.c5518572.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/rasterizingUtils.b3483176.js","assets/Matcher.d9c9cebd.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/CircularArray.415a06a8.js","assets/imageUtils.753f41b1.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/BaseGraphicContainer.8f76c915.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/vec3f32.1121a836.js","assets/GraphicContainer.ec6ac6c0.js","assets/requestImageUtils.06d9d84a.js"])])}const Ab=()=>$n().then(()=>ut(()=>import("./TileLayerView2D.1badee94.js"),["assets/TileLayerView2D.1badee94.js","assets/imageUtils.b6e93973.js","assets/BitmapTileContainer.76242c82.js","assets/Bitmap.5c9e2d15.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/TileContainer.282da507.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/RefreshableLayerView.5868f703.js","assets/drapedUtils.b9509ff2.js"])),Mb=()=>$n().then(()=>ut(()=>import("./FeatureLayerView2D.bab9ad1d.js"),["assets/FeatureLayerView2D.bab9ad1d.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/LayerView.7c2db9bf.js","assets/schemaUtils.7eee5b9f.js","assets/visualVariablesUtils.88ca310b.js","assets/createSymbolSchema.30665f63.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/util.d5f4af7b.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),mW={"base-dynamic":()=>$n().then(()=>ut(()=>import("./BaseDynamicLayerView2D.2ba1106c.js"),["assets/BaseDynamicLayerView2D.2ba1106c.js","assets/BitmapContainer.941a277e.js","assets/WGLContainer.bbd0fcb8.js","assets/enums.2d9e6f64.js","assets/pixelUtils.f4eba4af.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/ExportStrategy.4fe2a8bd.js","assets/Bitmap.5c9e2d15.js","assets/RefreshableLayerView.5868f703.js"])),"base-tile":Ab,"bing-maps":Ab,csv:Mb,"geo-rss":()=>$n().then(()=>ut(()=>import("./GeoRSSLayerView2D.084d8754.js"),["assets/GeoRSSLayerView2D.084d8754.js","assets/LayerView.7c2db9bf.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/GraphicContainer.ec6ac6c0.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/VertexArrayObject.729879be.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js"])),feature:Mb,geojson:Mb,graphics:()=>$n().then(()=>ut(()=>import("./GraphicsLayerView2D.74cdc3ab.js"),["assets/GraphicsLayerView2D.74cdc3ab.js","assets/LayerView.7c2db9bf.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/GraphicContainer.ec6ac6c0.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/VertexArrayObject.729879be.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js"])),group:()=>$n().then(()=>ut(()=>import("./GroupLayerView2D.97e5b2e8.js"),["assets/GroupLayerView2D.97e5b2e8.js","assets/GroupContainer.28fa5b19.js","assets/WGLContainer.bbd0fcb8.js","assets/enums.2d9e6f64.js","assets/pixelUtils.f4eba4af.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js"])),imagery:()=>$n().then(()=>ut(()=>import("./ImageryLayerView2D.1e6adc86.js"),["assets/ImageryLayerView2D.1e6adc86.js","assets/RasterVFDisplayObject.3d55c126.js","assets/VertexArrayObject.729879be.js","assets/Texture.8e8dfb11.js","assets/enums.2d9e6f64.js","assets/VertexElementDescriptor.1fdca6da.js","assets/dataUtils.97a7b38c.js","assets/pixelUtils.f4eba4af.js","assets/WGLContainer.bbd0fcb8.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/MaterialKey.bbaab8f1.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js","assets/HighlightGraphicContainer.6b3263c8.js","assets/BitmapContainer.941a277e.js","assets/Bitmap.5c9e2d15.js","assets/ExportStrategy.4fe2a8bd.js","assets/rasterProjectionHelper.3c27ded5.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),"imagery-tile":()=>$n().then(()=>ut(()=>import("./ImageryTileLayerView2D.f3e850c7.js"),["assets/ImageryTileLayerView2D.f3e850c7.js","assets/multidimensionalUtils.6150b3b3.js","assets/RasterVFDisplayObject.3d55c126.js","assets/VertexArrayObject.729879be.js","assets/Texture.8e8dfb11.js","assets/enums.2d9e6f64.js","assets/VertexElementDescriptor.1fdca6da.js","assets/dataUtils.97a7b38c.js","assets/pixelUtils.f4eba4af.js","assets/WGLContainer.bbd0fcb8.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/MaterialKey.bbaab8f1.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/TileContainer.282da507.js","assets/RawBlockCache.cda67491.js","assets/rasterProjectionHelper.3c27ded5.js","assets/util.d5f4af7b.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),kml:()=>$n().then(()=>ut(()=>import("./KMLLayerView2D.f49949db.js"),["assets/KMLLayerView2D.f49949db.js","assets/kmlUtils.8643ad03.js","assets/Bitmap.5c9e2d15.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/BitmapContainer.941a277e.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/GraphicContainer.ec6ac6c0.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js","assets/rasterProjectionHelper.3c27ded5.js","assets/RenderingContext.f389fdc6.js","assets/programUtils.7e7bf03b.js","assets/OrderIndependentTransparency.4d1575c0.js"])),"map-image":()=>$n().then(()=>ut(()=>import("./MapImageLayerView2D.3bcba407.js"),["assets/MapImageLayerView2D.3bcba407.js","assets/BitmapContainer.941a277e.js","assets/WGLContainer.bbd0fcb8.js","assets/enums.2d9e6f64.js","assets/pixelUtils.f4eba4af.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js","assets/HighlightGraphicContainer.6b3263c8.js","assets/ExportStrategy.4fe2a8bd.js","assets/Bitmap.5c9e2d15.js","assets/drapedUtils.b9509ff2.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),"map-notes":()=>$n().then(()=>ut(()=>import("./MapNotesLayerView2D.63c0a41f.js"),["assets/MapNotesLayerView2D.63c0a41f.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/GroupContainer.28fa5b19.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/GraphicContainer.ec6ac6c0.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js"])),media:()=>$n().then(()=>ut(()=>import("./MediaLayerView2D.aa22ad43.js"),["assets/MediaLayerView2D.aa22ad43.js","assets/normalizeUtilsSync.f896b328.js","assets/mat3f64.6d32a1d7.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/VertexArrayObject.729879be.js","assets/vec3f32.1121a836.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js"])),"ogc-feature":()=>$n().then(()=>ut(()=>import("./OGCFeatureLayerView2D.87ff7445.js"),["assets/OGCFeatureLayerView2D.87ff7445.js","assets/FeatureLayerView2D.bab9ad1d.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/LayerView.7c2db9bf.js","assets/schemaUtils.7eee5b9f.js","assets/visualVariablesUtils.88ca310b.js","assets/createSymbolSchema.30665f63.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/util.d5f4af7b.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),"open-street-map":Ab,"oriented-imagery":Mb,route:()=>$n().then(()=>ut(()=>import("./RouteLayerView2D.6bcf0350.js"),["assets/RouteLayerView2D.6bcf0350.js","assets/Stop.236eb374.js","assets/LayerView.7c2db9bf.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/GraphicContainer.ec6ac6c0.js","assets/BaseGraphicContainer.8f76c915.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/VertexArrayObject.729879be.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/Matcher.d9c9cebd.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/vec3f32.1121a836.js"])),stream:()=>$n().then(()=>ut(()=>import("./StreamLayerView2D.cff3bed2.js"),["assets/StreamLayerView2D.cff3bed2.js","assets/FeatureLayerView2D.bab9ad1d.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/LayerView.7c2db9bf.js","assets/schemaUtils.7eee5b9f.js","assets/visualVariablesUtils.88ca310b.js","assets/createSymbolSchema.30665f63.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/util.d5f4af7b.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),"subtype-group":()=>$n().then(()=>ut(()=>import("./SubtypeGroupLayerView2D.5e275fee.js"),["assets/SubtypeGroupLayerView2D.5e275fee.js","assets/FeatureLayerView2D.bab9ad1d.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/LayerView.7c2db9bf.js","assets/schemaUtils.7eee5b9f.js","assets/visualVariablesUtils.88ca310b.js","assets/createSymbolSchema.30665f63.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/floatRGBA.c5518572.js","assets/util.d5f4af7b.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),tile:Ab,"vector-tile":()=>$n().then(()=>ut(()=>import("./VectorTileLayerView2D.ee54edcc.js"),["assets/VectorTileLayerView2D.ee54edcc.js","assets/enums.54326430.js","assets/Rect.95b0fd2e.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/rasterizingUtils.b3483176.js","assets/floatRGBA.c5518572.js","assets/VertexArrayObject.729879be.js","assets/config.82550349.js","assets/TileContainer.282da507.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/StyleRepository.43c45b26.js","assets/colorUtils.bb6424b7.js","assets/GeometryUtils.4f19e772.js","assets/Geometry.d049a63c.js","assets/LayerView.7c2db9bf.js"])),wcs:()=>$n().then(()=>ut(()=>import("./ImageryTileLayerView2D.f3e850c7.js"),["assets/ImageryTileLayerView2D.f3e850c7.js","assets/multidimensionalUtils.6150b3b3.js","assets/RasterVFDisplayObject.3d55c126.js","assets/VertexArrayObject.729879be.js","assets/Texture.8e8dfb11.js","assets/enums.2d9e6f64.js","assets/VertexElementDescriptor.1fdca6da.js","assets/dataUtils.97a7b38c.js","assets/pixelUtils.f4eba4af.js","assets/WGLContainer.bbd0fcb8.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/MaterialKey.bbaab8f1.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/TileContainer.282da507.js","assets/RawBlockCache.cda67491.js","assets/rasterProjectionHelper.3c27ded5.js","assets/util.d5f4af7b.js","assets/popupUtils.33b7306b.js","assets/RefreshableLayerView.5868f703.js"])),"web-tile":Ab,wfs:Mb,wms:()=>$n().then(()=>ut(()=>import("./WMSLayerView2D.0efe0374.js"),["assets/WMSLayerView2D.0efe0374.js","assets/BitmapContainer.941a277e.js","assets/WGLContainer.bbd0fcb8.js","assets/enums.2d9e6f64.js","assets/pixelUtils.f4eba4af.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/ExportStrategy.4fe2a8bd.js","assets/Bitmap.5c9e2d15.js","assets/RefreshableLayerView.5868f703.js","assets/ExportWMSImageParameters.04ece485.js"])),wmts:()=>$n().then(()=>ut(()=>import("./WMTSLayerView2D.402732ac.js"),["assets/WMTSLayerView2D.402732ac.js","assets/imageUtils.b6e93973.js","assets/BitmapTileContainer.76242c82.js","assets/Bitmap.5c9e2d15.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/TileContainer.282da507.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/LayerView.7c2db9bf.js","assets/RefreshableLayerView.5868f703.js"])),"line-of-sight":null,"base-elevation":null,"building-scene":null,dimension:null,elevation:null,"integrated-mesh":null,"point-cloud":null,voxel:null,scene:null,unknown:null,unsupported:null};function edt(e){const t=e.declaredClass?e.declaredClass.slice(e.declaredClass.lastIndexOf(".")+1):"Unknown",r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return new ze(`${r}:view-not-supported`,`${t} is not supported in 2D`)}const gW={hasLayerViewModule:e=>ue(mW[e.type]),importLayerView:e=>{const t=mW[e.type];if(et(t))throw edt(e);return t(e)}};function tdt(e,t){const{spatialReference:r}=t,i=[t.x,t.y];let n=Number.POSITIVE_INFINITY,o=0,s=0;const l=[0,0],a=e.type==="extent"?[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]:e.rings;for(const c of a)for(let u=0;u<c.length-1;u++){aWe(l,i,c,u);const p=Sx(i,l);p<n&&(n=p,o=l[0],s=l[1])}return{coordinate:new Nr({x:o,y:s,spatialReference:r}),distance:n}}var gL;let fm=gL=class extends CD(rr){constructor(e){super(e),this.geometry=null,this.spatialReference=null}get normalizedGeometry(){if(et(this.geometry)||!this.spatialReference)return null;if(!this.spatialReference.equals(this.geometry.spatialReference))try{return $0(this.geometry,this.spatialReference)}catch(e){return ft.getLogger(this.declaredClass).error("#constraints.geometry","could not project the geometry to the view's spatial reference",{geometry:this.geometry,spatialReference:this.spatialReference,error:e}),null}return this.geometry}constrain(e,t){if(et(this.normalizedGeometry))return e;const r=e.targetGeometry;if(this.normalizedGeometry.type==="extent"?Y3(this.normalizedGeometry,r):pX(this.normalizedGeometry,r))return e;const{coordinate:i}=tdt(this.normalizedGeometry,r);return i&&(e.targetGeometry=i),e}clone(){var e,t;return new gL({geometry:(e=this.geometry)==null?void 0:e.clone(),spatialReference:(t=this.spatialReference)==null?void 0:t.clone()})}};d([f({constructOnly:!0})],fm.prototype,"geometry",void 0),d([f({readOnly:!0})],fm.prototype,"normalizedGeometry",null),d([f({constructOnly:!0})],fm.prototype,"spatialReference",void 0),fm=gL=d([se("esri.views.2d.constraints.GeometryConstraint")],fm);var yL;let I_=yL=class extends CD(rr){constructor(){super(...arguments),this.enabled=!0,this.rotationEnabled=!0}constrain(e,t){return this.enabled&&t&&(this.rotationEnabled||(e.rotation=t.rotation)),e}clone(){return new yL({enabled:this.enabled,rotationEnabled:this.rotationEnabled})}};d([f()],I_.prototype,"enabled",void 0),d([f()],I_.prototype,"rotationEnabled",void 0),I_=yL=d([se("esri.views.2d.constraints.RotationConstraint")],I_);const Cse=I_;var vL;let As=vL=class extends CD(rr){constructor(e){super(e),this._lodByScale={},this._scales=[],this.effectiveLODs=null,this.effectiveMinZoom=-1,this.effectiveMaxZoom=-1,this.effectiveMinScale=0,this.effectiveMaxScale=0,this.lods=null,this.minZoom=-1,this.maxZoom=-1,this.minScale=0,this.maxScale=0,this.snapToZoom=!0}initialize(){let e,{lods:t,minScale:r,maxScale:i,minZoom:n,maxZoom:o}=this,s=-1,l=-1,a=!1,c=!1;if(r!==0&&i!==0&&r<i&&([r,i]=[i,r]),!t||!t.length)return this._set("effectiveMinScale",r),void this._set("effectiveMaxScale",i);t=t.map(u=>u.clone()),t.sort((u,p)=>p.scale-u.scale),t.forEach((u,p)=>u.level=p);for(const u of t)!a&&r>0&&r>=u.scale&&(s=u.level,a=!0),!c&&i>0&&i>=u.scale&&(l=e?e.level:-1,c=!0),e=u;n===-1&&(n=r===0?0:s),o===-1&&(o=i===0?t.length-1:l),n=Math.max(n,0),n=Math.min(n,t.length-1),o=Math.max(o,0),o=Math.min(o,t.length-1),n>o&&([n,o]=[o,n]),r=t[n].scale,i=t[o].scale,t.splice(0,n),t.splice(o-n+1,t.length),t.forEach((u,p)=>{this._lodByScale[u.scale]=u,this._scales[p]=u.scale}),this._set("effectiveLODs",t),this._set("effectiveMinZoom",n),this._set("effectiveMaxZoom",o),this._set("effectiveMinScale",r),this._set("effectiveMaxScale",i)}constrain(e,t){if(t&&e.scale===t.scale)return e;const r=this.effectiveMinScale,i=this.effectiveMaxScale,n=e.targetGeometry,o=t&&t.targetGeometry,s=i!==0&&e.scale<i,l=r!==0&&e.scale>r;if(s||l){const a=l?r:i;if(t&&o){const c=(a-t.scale)/(e.scale-t.scale);n.x=o.x+(n.x-o.x)*c,n.y=o.y+(n.y-o.y)*c}e.scale=a}return this.snapToZoom&&this.effectiveLODs&&(e.scale=this._getClosestScale(e.scale)),e}fit(e){if(!this.effectiveLODs||!this.snapToZoom)return this.constrain(e,null);const t=this.scaleToZoom(e.scale),r=Math.abs(t-Math.floor(t));return e.scale=this.zoomToScale(r>.99?Math.round(t):Math.floor(t)),e}zoomToScale(e){if(!this.effectiveLODs)return 0;e-=this.effectiveMinZoom,e=Math.max(0,e);const t=this._scales;if(e<=0)return t[0];if(e>=t.length)return t[t.length-1];const r=Math.round(e-.5),i=Math.round(e);return t[i]+(i-e)*(t[r]-t[i])}scaleToZoom(e){if(!this.effectiveLODs)return-1;const t=this._scales;let r,i;if(e>=t[0])return this.effectiveMinZoom;if(e<=t[t.length-1])return this.effectiveMaxZoom;for(let n=0;n<t.length-1;n++){if(r=t[n],i=t[n+1],i===e)return n+this.effectiveMinZoom+1;if(r>e&&i<e)return n+this.effectiveMinZoom+1-(e-i)/(r-i)}return-1}snapToClosestScale(e){if(!this.effectiveLODs)return e;const t=this.scaleToZoom(e);return this.zoomToScale(Math.round(t))}snapToNextScale(e,t=.5){if(!this.effectiveLODs)return e*t;const r=Math.round(this.scaleToZoom(e));return this.zoomToScale(r+1)}snapToPreviousScale(e,t=2){if(!this.effectiveLODs)return e*t;const r=Math.round(this.scaleToZoom(e));return this.zoomToScale(r-1)}clone(){return new vL({lods:this.lods,minZoom:this.minZoom,maxZoom:this.maxZoom,minScale:this.minScale,maxScale:this.maxScale})}_getClosestScale(e){return this._lodByScale[e]||(e=this._scales.reduce((t,r)=>Math.abs(r-e)<=Math.abs(t-e)?r:t,this._scales[0])),this._lodByScale[e].scale}};d([f({readOnly:!0})],As.prototype,"effectiveLODs",void 0),d([f({readOnly:!0})],As.prototype,"effectiveMinZoom",void 0),d([f({readOnly:!0})],As.prototype,"effectiveMaxZoom",void 0),d([f({readOnly:!0})],As.prototype,"effectiveMinScale",void 0),d([f({readOnly:!0})],As.prototype,"effectiveMaxScale",void 0),d([f()],As.prototype,"lods",void 0),d([f()],As.prototype,"minZoom",void 0),d([f()],As.prototype,"maxZoom",void 0),d([f()],As.prototype,"minScale",void 0),d([f()],As.prototype,"maxScale",void 0),d([f()],As.prototype,"snapToZoom",void 0),As=vL=d([se("esri.views.2d.constraints.ZoomConstraint")],As);const kse=As,rdt={base:null,key:"type",typeMap:{extent:li,polygon:wd}};let gn=class extends rr{constructor(e){super(e),this.lods=null,this.minScale=0,this.maxScale=0,this.minZoom=-1,this.maxZoom=-1,this.rotationEnabled=!0,this.snapToZoom=!0}destroy(){this.view=null}get effectiveLODs(){return this._zoom.effectiveLODs}get effectiveMinScale(){return this._zoom.effectiveMinScale}get effectiveMaxScale(){return this._zoom.effectiveMaxScale}get effectiveMinZoom(){return this._zoom.effectiveMinZoom}get effectiveMaxZoom(){return this._zoom.effectiveMaxZoom}set geometry(e){e?this._set("geometry",e):this._set("geometry",null)}get version(){var e,t,r;return`${(e=this._zoom)==null?void 0:e.uid}/${(t=this._rotation)==null?void 0:t.uid}/${(r=this._geometry)==null?void 0:r.uid}`}get _defaultLODs(){var r,i,n;const e=(i=(r=this.view)==null?void 0:r.defaultsFromMap)==null?void 0:i.tileInfo,t=(n=this.view)==null?void 0:n.spatialReference;return e&&t&&e.spatialReference.equals(t)?e.lods:null}get _geometry(){var e;return new fm({geometry:this.geometry,spatialReference:(e=this.view)==null?void 0:e.spatialReference})}get _rotation(){return new Cse({rotationEnabled:this.rotationEnabled})}get _zoom(){const e=this._get("_zoom"),t=this.lods||this._defaultLODs,r=this.minZoom,i=this.maxZoom,n=this.minScale,o=this.maxScale,s=this.snapToZoom;return e&&e.lods===t&&e.minZoom===r&&e.maxZoom===i&&e.minScale===n&&e.maxScale===o&&e.snapToZoom===s?e:new kse({lods:t,minZoom:r,maxZoom:i,minScale:n,maxScale:o,snapToZoom:s})}canZoomInTo(e){const t=this.effectiveMaxScale;return t===0||e>=t}canZoomOutTo(e){const t=this.effectiveMinScale;return t===0||e<=t}constrain(e,t){return this._zoom.constrain(e,t),this._rotation.constrain(e,t),this._geometry.constrain(e,t),e}constrainByGeometry(e){return this._geometry.constrain(e)}fit(e){return this._zoom.fit(e)}zoomToScale(e){return this._zoom.zoomToScale(e)}scaleToZoom(e){return this._zoom.scaleToZoom(e)}snapScale(e){return this._zoom.snapToClosestScale(e)}snapToNextScale(e){return this._zoom.snapToNextScale(e)}snapToPreviousScale(e){return this._zoom.snapToPreviousScale(e)}};d([f({readOnly:!0})],gn.prototype,"effectiveLODs",null),d([f({readOnly:!0})],gn.prototype,"effectiveMinScale",null),d([f({readOnly:!0})],gn.prototype,"effectiveMaxScale",null),d([f({readOnly:!0})],gn.prototype,"effectiveMinZoom",null),d([f({readOnly:!0})],gn.prototype,"effectiveMaxZoom",null),d([f({types:rdt,value:null})],gn.prototype,"geometry",null),d([f({type:[Di]})],gn.prototype,"lods",void 0),d([f()],gn.prototype,"minScale",void 0),d([f()],gn.prototype,"maxScale",void 0),d([f()],gn.prototype,"minZoom",void 0),d([f()],gn.prototype,"maxZoom",void 0),d([f()],gn.prototype,"rotationEnabled",void 0),d([f()],gn.prototype,"snapToZoom",void 0),d([f()],gn.prototype,"view",void 0),d([f({readOnly:!0})],gn.prototype,"version",null),d([f()],gn.prototype,"_defaultLODs",null),d([f({type:fm})],gn.prototype,"_geometry",null),d([f({type:Cse})],gn.prototype,"_rotation",null),d([f({readOnly:!0,type:kse})],gn.prototype,"_zoom",null),gn=d([se("esri.views.2d.MapViewConstraints")],gn);const Sse=gn;function idt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function ndt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Ese(e,t,r,i,n,o,s,l,a,c){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=o,e[5]=s,e[6]=l,e[7]=a,e[8]=c,e}function Tse(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function odt(e,t){if(e===t){const r=t[1],i=t[2],n=t[5];e[1]=t[3],e[2]=t[6],e[3]=r,e[5]=t[7],e[6]=i,e[7]=n}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function sdt(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5],a=t[6],c=t[7],u=t[8],p=u*s-l*c,h=-u*o+l*a,m=c*o-s*a;let y=r*p+i*h+n*m;return y?(y=1/y,e[0]=p*y,e[1]=(-u*i+n*c)*y,e[2]=(l*i-n*s)*y,e[3]=h*y,e[4]=(u*r-n*a)*y,e[5]=(-l*r+n*o)*y,e[6]=m*y,e[7]=(-c*r+i*a)*y,e[8]=(s*r-i*o)*y,e):null}function ldt(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5],a=t[6],c=t[7],u=t[8];return e[0]=s*u-l*c,e[1]=n*c-i*u,e[2]=i*l-n*s,e[3]=l*a-o*u,e[4]=r*u-n*a,e[5]=n*o-r*l,e[6]=o*c-s*a,e[7]=i*a-r*c,e[8]=r*s-i*o,e}function adt(e){const t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],s=e[5],l=e[6],a=e[7],c=e[8];return t*(c*o-s*a)+r*(-c*n+s*l)+i*(a*n-o*l)}function bF(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=t[6],u=t[7],p=t[8],h=r[0],m=r[1],y=r[2],v=r[3],_=r[4],x=r[5],S=r[6],C=r[7],E=r[8];return e[0]=h*i+m*s+y*c,e[1]=h*n+m*l+y*u,e[2]=h*o+m*a+y*p,e[3]=v*i+_*s+x*c,e[4]=v*n+_*l+x*u,e[5]=v*o+_*a+x*p,e[6]=S*i+C*s+E*c,e[7]=S*n+C*l+E*u,e[8]=S*o+C*a+E*p,e}function bL(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=t[6],u=t[7],p=t[8],h=r[0],m=r[1];return e[0]=i,e[1]=n,e[2]=o,e[3]=s,e[4]=l,e[5]=a,e[6]=h*i+m*s+c,e[7]=h*n+m*l+u,e[8]=h*o+m*a+p,e}function Ase(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=t[4],a=t[5],c=t[6],u=t[7],p=t[8],h=Math.sin(r),m=Math.cos(r);return e[0]=m*i+h*s,e[1]=m*n+h*l,e[2]=m*o+h*a,e[3]=m*s-h*i,e[4]=m*l-h*n,e[5]=m*a-h*o,e[6]=c,e[7]=u,e[8]=p,e}function cdt(e,t,r){const i=r[0],n=r[1],o=r[2];return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=n*t[3],e[4]=n*t[4],e[5]=n*t[5],e[6]=o*t[6],e[7]=o*t[7],e[8]=o*t[8],e}function udt(e,t,r){const i=r[0],n=r[1];return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=n*t[3],e[4]=n*t[4],e[5]=n*t[5],e}function ddt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function pdt(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function hdt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function fdt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}function mdt(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=r+r,l=i+i,a=n+n,c=r*s,u=i*s,p=i*l,h=n*s,m=n*l,y=n*a,v=o*s,_=o*l,x=o*a;return e[0]=1-p-y,e[3]=u-x,e[6]=h+_,e[1]=u+x,e[4]=1-c-y,e[7]=m-v,e[2]=h-_,e[5]=m+v,e[8]=1-c-p,e}function gdt(e,t){const r=t[0],i=t[1],n=t[2],o=t[4],s=t[5],l=t[6],a=t[8],c=t[9],u=t[10],p=u*s-l*c,h=-u*o+l*a,m=c*o-s*a,y=r*p+i*h+n*m;if(!y)return null;const v=1/y;return e[0]=p*v,e[1]=(-u*i+n*c)*v,e[2]=(l*i-n*s)*v,e[3]=h*v,e[4]=(u*r-n*a)*v,e[5]=(-l*r+n*o)*v,e[6]=m*v,e[7]=(-c*r+i*a)*v,e[8]=(s*r-i*o)*v,e}function ydt(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5],a=t[6],c=t[7],u=t[8],p=t[9],h=t[10],m=t[11],y=t[12],v=t[13],_=t[14],x=t[15],S=r*l-i*s,C=r*a-n*s,E=r*c-o*s,T=i*a-n*l,w=i*c-o*l,I=n*c-o*a,M=u*v-p*y,L=u*_-h*y,R=u*x-m*y,W=p*_-h*v,z=p*x-m*v,j=h*x-m*_;let U=S*j-C*z+E*W+T*R-w*L+I*M;return U?(U=1/U,e[0]=(l*j-a*z+c*W)*U,e[1]=(a*R-s*j-c*L)*U,e[2]=(s*z-l*R+c*M)*U,e[3]=(n*z-i*j-o*W)*U,e[4]=(r*j-n*R+o*L)*U,e[5]=(i*R-r*z-o*M)*U,e[6]=(v*I-_*w+x*T)*U,e[7]=(_*E-y*I-x*C)*U,e[8]=(y*w-v*E+x*S)*U,e):null}function vdt(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function bdt(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"}function _dt(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2)}function wdt(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e}function Mse(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e}function xdt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e}function Cdt(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e}function kdt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]}function Sdt(e,t){const r=e[0],i=e[1],n=e[2],o=e[3],s=e[4],l=e[5],a=e[6],c=e[7],u=e[8],p=t[0],h=t[1],m=t[2],y=t[3],v=t[4],_=t[5],x=t[6],S=t[7],C=t[8],E=pa();return Math.abs(r-p)<=E*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-h)<=E*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-m)<=E*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(o-y)<=E*Math.max(1,Math.abs(o),Math.abs(y))&&Math.abs(s-v)<=E*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-_)<=E*Math.max(1,Math.abs(l),Math.abs(_))&&Math.abs(a-x)<=E*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(c-S)<=E*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(u-C)<=E*Math.max(1,Math.abs(u),Math.abs(C))}function Edt(e){const t=pa(),r=e[0],i=e[1],n=e[2],o=e[3],s=e[4],l=e[5],a=e[6],c=e[7],u=e[8];return Math.abs(1-(r*r+o*o+a*a))<=t&&Math.abs(1-(i*i+s*s+c*c))<=t&&Math.abs(1-(n*n+l*l+u*u))<=t}const Tdt=bF,Adt=Mse;Object.freeze(Object.defineProperty({__proto__:null,fromMat4:idt,copy:ndt,set:Ese,identity:Tse,transpose:odt,invert:sdt,adjoint:ldt,determinant:adt,multiply:bF,translate:bL,rotate:Ase,scale:cdt,scaleByVec2:udt,fromTranslation:ddt,fromRotation:pdt,fromScaling:hdt,fromMat2d:fdt,fromQuat:mdt,normalFromMat4Legacy:gdt,normalFromMat4:ydt,projection:vdt,str:bdt,frob:_dt,add:wdt,subtract:Mse,multiplyScalar:xdt,multiplyScalarAndAdd:Cdt,exactEquals:kdt,equals:Sdt,isOrthoNormal:Edt,mul:Tdt,sub:Adt},Symbol.toStringTag,{value:"Module"}));function Uk(){const e=new Float32Array(9);return e[0]=1,e[4]=1,e[8]=1,e}function Mdt(e){const t=new Float32Array(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function Idt(e,t,r,i,n,o,s,l,a){const c=new Float32Array(9);return c[0]=e,c[1]=t,c[2]=r,c[3]=i,c[4]=n,c[5]=o,c[6]=s,c[7]=l,c[8]=a,c}function Pdt(e,t){return new Float32Array(e,t,9)}Object.freeze(Object.defineProperty({__proto__:null,create:Uk,clone:Mdt,fromValues:Idt,createView:Pdt},Symbol.toStringTag,{value:"Module"}));function Ise(){return new Float32Array(2)}function $dt(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t}function o0(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function Odt(e,t){return new Float32Array(e,t,2)}function Pse(){return Ise()}function $se(){return o0(1,1)}function Ose(){return o0(1,0)}function Lse(){return o0(0,1)}const Ldt=Pse(),Rdt=$se(),Ddt=Ose(),Ndt=Lse();Object.freeze(Object.defineProperty({__proto__:null,create:Ise,clone:$dt,fromValues:o0,createView:Odt,zeros:Pse,ones:$se,unitX:Ose,unitY:Lse,ZEROS:Ldt,ONES:Rdt,UNIT_X:Ddt,UNIT_Y:Ndt},Symbol.toStringTag,{value:"Module"}));function Fdt(e){return e instanceof Float32Array&&e.length>=2}function zdt(e){return Array.isArray(e)&&e.length>=2}function kI(e){return Fdt(e)||zdt(e)}var _L;const Su=[0,0];let Fp=_L=class extends xt{constructor(e){super(e),this._viewpoint2D={center:bn(),rotation:0,scale:0,spatialReference:null},this.center=[0,0],this.extent=new li,this.id=0,this.inverseTransform=wh(),this.resolution=0,this.rotation=0,this.scale=0,this.transform=wh(),this.transformNoRotation=wh(),this.displayMat3=Uk(),this.displayViewMat3=Uk(),this.viewMat3=Uk(),this.viewMat2d=Roe(),this.worldScreenWidth=0,this.size=[0,0]}set pixelRatio(e){this._set("pixelRatio",e),this._update()}set size(e){this._set("size",e),this._update()}set viewpoint(e){if(e){const t=this._viewpoint2D,r=e.targetGeometry;t.center[0]=r.x,t.center[1]=r.y,t.rotation=e.rotation,t.scale=e.scale,t.spatialReference=r.spatialReference}this._update()}copy(e){const t=this.size,r=this.viewpoint;return r&&t?(this.viewpoint=bc(r,e.viewpoint),this._set("size",P1(t,e.size))):(this.viewpoint=e.viewpoint.clone(),this._set("size",[e.size[0],e.size[1]])),this._set("pixelRatio",e.pixelRatio),this}clone(){return new _L({size:this.size,viewpoint:this.viewpoint.clone(),pixelRatio:this.pixelRatio})}toMap(e,t,r){return kI(t)?Gc(e,t,this.inverseTransform):(Su[0]=t,Su[1]=r,Gc(e,Su,this.inverseTransform))}toScreen(e,t,r){return kI(t)?Gc(e,t,this.transform):(Su[0]=t,Su[1]=r,Gc(e,Su,this.transform))}toScreenNoRotation(e,t,r){return kI(t)?Gc(e,t,this.transformNoRotation):(Su[0]=t,Su[1]=r,Gc(e,Su,this.transformNoRotation))}getScreenTransform(e,t){const{center:r}=this._viewpoint2D,i=this._get("pixelRatio")||1,n=this._get("size");return yF(e,r,n,t,0,i),e}_update(){const{center:e,spatialReference:t,scale:r,rotation:i}=this._viewpoint2D,n=this._get("pixelRatio")||1,o=this._get("size"),s=new nu({targetGeometry:new Nr(e[0],e[1],t),scale:r,rotation:i});if(this._set("viewpoint",s),!o||!t||!r)return;this.resolution=U0(s),this.rotation=i,this.scale=r,this.spatialReference=t,P1(this.center,e);const l=o[0]!==0?2/o[0]:0,a=o[1]!==0?-2/o[1]:0;Ese(this.displayMat3,l,0,0,0,a,0,-1,1,1);const c=Tse(this.viewMat3),u=o0(o[0]/2,o[1]/2),p=o0(-o[0]/2,-o[1]/2),h=ED(i);bL(c,c,u),Ase(c,c,h),bL(c,c,p),bF(this.displayViewMat3,this.displayMat3,c);const m=uF(this.viewMat2d,u);return jT(m,m,h),M1(m,m,p),Dut(this.extent,s,o),vF(this.transform,s,o,n),aF(this.inverseTransform,this.transform),Uut(this.transformNoRotation,s,o,n),this.worldScreenWidth=Hut(this.spatialReference,this.resolution),this._set("id",this.id+1),this}};d([f({readOnly:!0})],Fp.prototype,"id",void 0),d([f({value:1,json:{write:!0}})],Fp.prototype,"pixelRatio",null),d([f({json:{write:!0}})],Fp.prototype,"size",null),d([f()],Fp.prototype,"spatialReference",void 0),d([f({type:nu,json:{write:!0}})],Fp.prototype,"viewpoint",null),Fp=_L=d([se("esri.views.2d.ViewState")],Fp);const yW=Fp;var wL,xL;let Ju=wL=class extends rr{constructor(){super(...arguments),this.left=0,this.top=0,this.right=0,this.bottom=0}clone(){return new wL({left:this.left,top:this.top,right:this.right,bottom:this.bottom})}};d([f()],Ju.prototype,"left",void 0),d([f()],Ju.prototype,"top",void 0),d([f()],Ju.prototype,"right",void 0),d([f()],Ju.prototype,"bottom",void 0),Ju=wL=d([se("esri.views.2d.PaddedViewState.Padding")],Ju);let $y=xL=class extends yW{constructor(...e){super(...e),this.paddedViewState=new yW,this._updateContent=(()=>{const t=bn();return()=>{const r=this._get("size"),i=this._get("padding");if(!r||!i)return;const n=this.paddedViewState;lo(t,i.left+i.right,i.top+i.bottom),$1(t,r,t),P1(n.size,t);const o=n.viewpoint;o&&(this.viewpoint=o)}})(),this.addHandles(Ot(()=>[this.size,this.padding],()=>this._updateContent(),gg)),this.padding=new Ju,this.size=[0,0]}set padding(e){this._set("padding",e||new Ju)}set viewpoint(e){if(e){const t=e.clone();this.paddedViewState.viewpoint=e,qut(t,e,this._get("size"),this._get("padding"));const r=this._viewpoint2D,i=t.targetGeometry;r.center[0]=i.x,r.center[1]=i.y,r.rotation=t.rotation,r.scale=t.scale,r.spatialReference=i.spatialReference,this._update()}}clone(){return new xL({padding:this.padding.clone(),size:this.size.slice(),viewpoint:this.paddedViewState.viewpoint.clone(),pixelRatio:this.pixelRatio})}};d([f()],$y.prototype,"paddedViewState",void 0),d([f({type:Ju})],$y.prototype,"padding",null),d([f()],$y.prototype,"viewpoint",null),$y=xL=d([se("esri.views.2d.PaddedViewState")],$y);const jdt=$y;class Vdt{constructor(t,r){this.item=t,this.controller=r,this.promise=null}}class Rse{constructor(t){this._deferreds=new Map,this._controllers=new Map,this._processingItems=new Map,this._isPaused=!1,this._schedule=null,this._task=null,this.concurrency=1,t.concurrency&&(this.concurrency=t.concurrency),this._queue=new QS(t.peeker),this.process=t.process;const r=t.scheduler;t.priority&&ue(r)&&(this._task=r.registerTask(t.priority,this))}destroy(){this.clear(),this._schedule&&(this._schedule.remove(),this._schedule=null),this._task&&(this._task.remove(),this._task=null)}get length(){return this._processingItems.size+this._queue.length}abort(t){const r=this._controllers.get(t);r&&r.abort()}clear(){this._queue.clear();const 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,i)=>t(i))}get(t){const 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._isPaused||(this._isPaused=!0,this._cancelNext())}push(t,r){const i=this.get(t);if(i)return i;const n=new AbortController;let o=null;r&&(o=aa(r,()=>n.abort()));const s=()=>{const u=this._processingItems.get(t);u&&u.controller.abort(),l(),c.reject(on())},l=()=>{a.remove(),ue(o)&&o.remove(),this._deferreds.delete(t),this._controllers.delete(t),this._queue.remove(t),this._processingItems.delete(t),this._scheduleNext()},a=rD(n.signal,s),c=_d();return this._deferreds.set(t,c),this._controllers.set(t,n),c.promise.then(l,l),this._queue.push(t),this._scheduleNext(),c.promise}last(){return this._queue.last()}peek(){return this._queue.peek()}popLast(){return this._queue.popLast()}reset(){const t=[];this._processingItems.forEach(r=>t.push(r)),this._processingItems.clear();for(const r of t)this._queue.push(r.item),r.controller.abort();this._scheduleNext()}resume(){this._isPaused&&(this._isPaused=!1,this._scheduleNext())}takeAll(){const t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}get running(){return!this._isPaused&&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()}_scheduleNext(){this._task||this._isPaused||this._schedule||(this._schedule=x0(()=>{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(et(t))return;let r;const i=new AbortController,n=new Vdt(t,i);this._processingItems.set(t,n);try{r=this.process(t,i.signal)}catch(o){this._processError(n,o)}Rd(r)?(n.promise=r,r.then(o=>this._processResult(n,o),o=>this._processError(n,o))):this._processResult(n,r)}get test(){return{update:t=>this.runTask(t)}}}function Bdt(e,t){return e.length=0,t.forEach(r=>e.push(r)),e}const SI=new Set,X2=[],Hg=new Map,vW=[0,0];let sp=class extends rr{constructor(e){super(e),this._keyToItem=new Map,this.concurrency=6,this.strategy="scale-first",this.tileInfoView=null}initialize(){const{concurrency:e,process:t}=this;this._queue=new Rse({concurrency:e,process:(r,i)=>{const n=this._keyToItem.get(r);return t(n,{signal:i})},peeker:r=>r.values().next().value})}destroy(){this.clear(),this._queue=yn(this._queue)}get length(){return this._queue?this._queue.length:0}get onGoingCount(){return this._keyToItem.size}get updating(){return this.length>0||this.onGoingCount>0}abort(e){const t=typeof e=="string"?e:e.id;this._queue.abort(t)}clear(){this._queue.clear(),this._keyToItem.clear(),this.notifyChange("updating")}has(e){return typeof e=="string"?this._keyToItem.has(e):this._keyToItem.has(e.id)}isOngoing(e){const t=typeof e=="string"?e:e.id;return this.has(t)&&this._queue.isOngoing(t)}pause(){this._queue.pause()}push(e,t){const r=e.key.id+"-"+t;if(this.has(r))return this.get(r);const i=this._queue.push(r),n=()=>{this._keyToItem.delete(r),this.notifyChange("updating")};return this._keyToItem.set(r,e),i.then(n,n),this.notifyChange("updating"),i}reset(){this._queue.reset(),this.notifyChange("updating")}resume(){this._queue.resume()}_peekByScaleFirst(e){if(!this.state)return e.values().next().value;const t=this.tileInfoView;let r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;e.forEach(c=>{const u=this._keyToItem.get(c),p=this.tileInfoView.getTileScale(u.key);Hg.has(p)||(Hg.set(p,[]),r=Math.max(p,r),i=Math.min(p,i)),Hg.get(p).push(u.key),SI.add(p)});let n=this.state.scale;Hg.has(n)||(Bdt(X2,SI),X2.sort((c,u)=>c-u),n=X2.reduce((c,u)=>Math.abs(u-n)<Math.abs(c-n)?u:c,X2[0])),n=Math.min(n,r),n=Math.max(n,i);const o=Hg.get(n),s=t.getClosestInfoForScale(n),l=s.getColumnForX(this.state.center[0]),a=s.getRowForY(this.state.center[1]);return o.sort((c,u)=>{const p=s.denormalizeCol(c.col,c.world),h=s.denormalizeCol(u.col,u.world);return Math.sqrt((l-p)*(l-p)+(a-c.row)*(a-c.row))-Math.sqrt((l-h)*(l-h)+(a-u.row)*(a-u.row))}),SI.clear(),Hg.clear(),o[0].id}_peekByCenterFirst(e){if(!this.state)return e.values().next().value;const t=this.tileInfoView,r=this.state.center;let i,n=Number.POSITIVE_INFINITY;return e.forEach(o=>{const s=this._keyToItem.get(o);t.getTileCoords(vW,s.key);const l=Sx(vW,r);l<n&&(n=l,i=s.key)}),i.id}};d([f({constructOnly:!0})],sp.prototype,"concurrency",void 0),d([f({constructOnly:!0})],sp.prototype,"process",void 0),d([f()],sp.prototype,"state",void 0),d([f({constructOnly:!0})],sp.prototype,"strategy",void 0),d([f({constructOnly:!0})],sp.prototype,"tileInfoView",void 0),d([f({readOnly:!0})],sp.prototype,"updating",null),sp=d([se("esri.views.2d.tiling.PagedTileQueue")],sp);class $s{constructor(t,r,i,n){this.set(t,r,i,n)}static getId(t,r,i,n){return typeof t=="object"?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${r}/${i}/${n}`}get key(){return this}get id(){return this.toString()}set id(t){this.set(t)}get hash(){const t=4095&this.row,r=4095&this.col,i=63&this.level;return(3&this.world)<<30|r<<22|t<<8|i}acquire(t,r,i,n){this.set(t,r,i,n)}contains(t){const r=t.level-this.level;return r>=0&&this.row===t.row>>r&&this.col===t.col>>r&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new $s(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,r,i,n){if(t==null)this.level=0,this.row=0,this.col=0,this.world=0;else if(typeof t=="object")this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if(typeof t=="string"){const[o,s,l,a]=t.split("/");this.level=parseFloat(o),this.row=parseFloat(s),this.col=parseFloat(l),this.world=parseFloat(a)}else this.level=+t,this.row=+r,this.col=+i,this.world=+n||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new $s(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const t=this.level+1,r=this.row<<1,i=this.col<<1,n=this.world;return[new $s(t,r,i,n),new $s(t,r,i+1,n),new $s(t,r+1,i,n),new $s(t,r+1,i+1,n)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}$s.pool=new dc($s,null,null,25,50);function lp(e,t){return[e,t]}function ff(e,t,r){return e[0]=t,e[1]=r,e}function Udt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}const wa=new $s("0/0/0/0");class _F{constructor(t,r,i,n,o,s,l,a,c,u,p,h){this.level=t,this.resolution=r,this.scale=i,this.origin=n,this.first=o,this.last=s,this.size=l,this.norm=a,this.worldStart=c,this.worldEnd=u,this.worldSize=p,this.wrap=h}static create(t,r,i=null){const n=rc(t.spatialReference),o=r.origin||lp(t.origin.x,t.origin.y),s=lp(t.size[0]*r.resolution,t.size[1]*r.resolution),l=lp(-1/0,-1/0),a=lp(1/0,1/0),c=lp(1/0,1/0);ue(i)&&(ff(l,Math.max(0,Math.floor((i.xmin-o[0])/s[0])),Math.max(0,Math.floor((o[1]-i.ymax)/s[1]))),ff(a,Math.max(0,Math.floor((i.xmax-o[0])/s[0])),Math.max(0,Math.floor((o[1]-i.ymin)/s[1]))),ff(c,a[0]-l[0]+1,a[1]-l[1]+1));const{cols:u,rows:p}=r;let h,m,y,v;return!i&&u&&p&&(ff(l,u[0],p[0]),ff(a,u[1],p[1]),ff(c,u[1]-u[0]+1,p[1]-p[0]+1)),t.isWrappable?(h=lp(Math.ceil(Math.round((n.valid[1]-n.valid[0])/r.resolution)/t.size[0]),c[1]),m=lp(Math.floor((n.origin[0]-o[0])/s[0]),l[1]),y=lp(h[0]+m[0]-1,a[1]),v=!0):(m=l,y=a,h=c,v=!1),new _F(r.level,r.resolution,r.scale,o,l,a,c,s,m,y,h,v)}normalizeCol(t){if(!this.wrap)return t;const r=this.worldSize[0];return t<0?r-1-Math.abs((t+1)%r):t%r}denormalizeCol(t,r){return this.wrap?this.worldSize[0]*r+t:t}getWorldForColumn(t){return this.wrap?Math.floor(t/this.worldSize[0]):0}getFirstColumnForWorld(t){return t*this.worldSize[0]+this.first[0]}getLastColumnForWorld(t){return t*this.worldSize[0]+this.first[0]+this.size[0]-1}getColumnForX(t){return(t-this.origin[0])/this.norm[0]}getXForColumn(t){return this.origin[0]+t*this.norm[0]}getRowForY(t){return(this.origin[1]-t)/this.norm[1]}getYForRow(t){return this.origin[1]-t*this.norm[1]}getTileBounds(t,r,i=!1){wa.set(r);const n=i?wa.col:this.denormalizeCol(wa.col,wa.world),o=wa.row;return Udt(t,this.getXForColumn(n),this.getYForRow(o+1),this.getXForColumn(n+1),this.getYForRow(o)),t}getTileCoords(t,r,i=!1){wa.set(r);const n=i?wa.col:this.denormalizeCol(wa.col,wa.world);return Array.isArray(t)?ff(t,this.getXForColumn(n),this.getYForRow(wa.row)):(t.x=this.getXForColumn(n),t.y=this.getYForRow(wa.row)),t}}class s0{constructor(){this.spans=[]}acquire(t){this.lodInfo=t}release(){this.lodInfo=null,this.spans.length=0}forEach(t,r){const{spans:i,lodInfo:n}=this,{level:o}=n;if(i.length!==0)for(const{row:s,colFrom:l,colTo:a}of i)for(let c=l;c<=a;c++)t.call(r,o,s,n.normalizeCol(c),n.getWorldForColumn(c))}}s0.pool=new dc(s0);class EI{constructor(t,r,i){this.row=t,this.colFrom=r,this.colTo=i}}const Gi=new $s("0/0/0/0");class wF{constructor(t,r,i,n,o,s,l,a){this.x=t,this.ymin=r,this.ymax=i,this.invM=n,this.leftAdjust=o,this.rightAdjust=s,this.leftBound=l,this.rightBound=a}static create(t,r){t[1]>r[1]&&([t,r]=[r,t]);const[i,n]=t,[o,s]=r,l=o-i,a=s-n,c=a!==0?l/a:0,u=(Math.ceil(n)-n)*c,p=(Math.floor(n)-n)*c;return new wF(i,Math.floor(n),Math.ceil(s),c,l<0?u:p,l<0?p:u,l<0?o:i,l<0?i:o)}incrRow(){this.x+=this.invM}getLeftCol(){return Math.max(this.x+this.leftAdjust,this.leftBound)}getRightCol(){return Math.min(this.x+this.rightAdjust,this.rightBound)}}const el=[[0,0],[0,0],[0,0],[0,0]],Wdt=1e-6;class Hdt{constructor(t,r=null){this.tileInfo=t,this.fullExtent=r,this.scales=[],this._infoByScale={},this._infoByLevel={};const i=t.lods.slice();i.sort((o,s)=>s.scale-o.scale);const n=this._lodInfos=i.map(o=>_F.create(t,o,r));i.forEach((o,s)=>{this._infoByLevel[o.level]=n[s],this._infoByScale[o.scale]=n[s],this.scales[s]=o.scale},this),this._wrap=t.isWrappable}get spatialReference(){return this.tileInfo.spatialReference}getLODInfoAt(t){return this._infoByLevel[typeof t=="number"?t:t.level]}getTileBounds(t,r,i=!1){Gi.set(r);const n=this._infoByLevel[Gi.level];return n?n.getTileBounds(t,Gi,i):t}getTileCoords(t,r,i=!1){Gi.set(r);const n=this._infoByLevel[Gi.level];return n?n.getTileCoords(t,Gi,i):t}getTileCoverage(t,r=192,i="closest"){const n=i==="closest"?this.getClosestInfoForScale(t.scale):this.getSmallestInfoForScale(t.scale),o=s0.pool.acquire(n),s=this._wrap;let l,a,c,u=1/0,p=-1/0;const h=o.spans;el[0][0]=el[0][1]=el[1][1]=el[3][0]=-r,el[1][0]=el[2][0]=t.size[0]+r,el[2][1]=el[3][1]=t.size[1]+r;for(const _ of el)t.toMap(_,_),_[0]=n.getColumnForX(_[0]),_[1]=n.getRowForY(_[1]);const m=[];let y=3;for(let _=0;_<4;_++){if(el[_][1]===el[y][1]){y=_;continue}const x=wF.create(el[_],el[y]);u=Math.min(x.ymin,u),p=Math.max(x.ymax,p),m[x.ymin]===void 0&&(m[x.ymin]=[]),m[x.ymin].push(x),y=_}if(u==null||p==null||p-u>100)return null;let v=[];for(l=u;l<p;){m[l]!=null&&(v=v.concat(m[l])),a=1/0,c=-1/0;for(let _=v.length-1;_>=0;_--){const x=v[_];a=Math.min(a,x.getLeftCol()),c=Math.max(c,x.getRightCol())}if(a=Math.floor(a),c=Math.floor(c),l>=n.first[1]&&l<=n.last[1])if(s)if(n.size[0]<n.worldSize[0]){const _=Math.floor(c/n.worldSize[0]);for(let x=Math.floor(a/n.worldSize[0]);x<=_;x++)h.push(new EI(l,Math.max(n.getFirstColumnForWorld(x),a),Math.min(n.getLastColumnForWorld(x),c)))}else h.push(new EI(l,a,c));else a>n.last[0]||c<n.first[0]||(a=Math.max(a,n.first[0]),c=Math.min(c,n.last[0]),h.push(new EI(l,a,c)));l+=1;for(let _=v.length-1;_>=0;_--){const x=v[_];x.ymax>=l?x.incrRow():v.splice(_,1)}}return o}getTileParentId(t){Gi.set(t);const r=this._infoByLevel[Gi.level],i=this._lodInfos.indexOf(r)-1;return i<0?null:(this._getTileIdAtLOD(Gi,this._lodInfos[i],Gi),Gi.id)}getTileResolution(t){const r=this._infoByLevel[typeof t=="object"?t.level:t];return r?r.resolution:-1}getTileScale(t){const r=this._infoByLevel[t.level];return r?r.scale:-1}intersects(t,r){Gi.set(r);const i=this._infoByLevel[Gi.level],n=t.lodInfo;if(n.resolution>i.resolution){this._getTileIdAtLOD(Gi,n,Gi);const s=n.denormalizeCol(Gi.col,Gi.world);for(const l of t.spans)if(l.row===Gi.row&&l.colFrom<=s&&l.colTo>=s)return!0}if(n.resolution<i.resolution){const[s,l,a,c]=t.spans.reduce((v,_)=>(v[0]=Math.min(v[0],_.row),v[1]=Math.max(v[1],_.row),v[2]=Math.min(v[2],_.colFrom),v[3]=Math.max(v[3],_.colTo),v),[1/0,-1/0,1/0,-1/0]),u=i.denormalizeCol(Gi.col,Gi.world),p=n.getColumnForX(i.getXForColumn(u)),h=n.getRowForY(i.getYForRow(Gi.row)),m=n.getColumnForX(i.getXForColumn(u+1))-1,y=n.getRowForY(i.getYForRow(Gi.row+1))-1;return!(p>c||m<a||h>l||y<s)}const o=n.denormalizeCol(Gi.col,Gi.world);return t.spans.some(s=>s.row===Gi.row&&s.colFrom<=o&&s.colTo>=o)}normalizeBounds(t,r,i){if(t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],this._wrap){const n=rc(this.tileInfo.spatialReference),o=-i*(n.valid[1]-n.valid[0]);t[0]+=o,t[2]+=o}return t}getSmallestInfoForScale(t){const r=this.scales;if(this._infoByScale[t])return this._infoByScale[t];if(t>r[0])return this._infoByScale[r[0]];for(let i=1;i<r.length-1;i++)if(t>r[i]+Wdt)return this._infoByScale[r[i-1]];return this._infoByScale[r[r.length-1]]}getClosestInfoForScale(t){const r=this.scales;return this._infoByScale[t]||(t=r.reduce((i,n)=>Math.abs(n-t)<Math.abs(i-t)?n:i,r[0])),this._infoByScale[t]}scaleToLevel(t){const r=this.scales;if(this._infoByScale[t])return this._infoByScale[t].level;for(let i=r.length-1;i>=0;i--)if(t<r[i])return i===r.length-1?this._infoByScale[r[r.length-1]].level:this._infoByScale[r[i]].level+(r[i]-t)/(r[i]-r[i+1]);return this._infoByScale[r[0]].level}scaleToZoom(t){return this.tileInfo.scaleToZoom(t)}_getTileIdAtLOD(t,r,i){const n=this._infoByLevel[i.level];return t.set(i),r.resolution<n.resolution?null:(r.resolution===n.resolution||(t.level=r.level,t.col=Math.floor(i.col*n.resolution/r.resolution+.01),t.row=Math.floor(i.row*n.resolution/r.resolution+.01)),t)}}function Gdt(e,t){return e.length=0,t.forEach(r=>e.push(r)),e}const TI=new Set,eC=[],Gg=new Map,bW=[0,0];let Hu=class extends rr{constructor(e){super(e),this._keyToItem=new Map,this.concurrency=6,this.strategy="scale-first",this.tileInfoView=null}initialize(){const{concurrency:e,process:t,strategy:r}=this;this._queue=new Rse({concurrency:e,process:(i,n)=>{const o=this._keyToItem.get(i);return t(o,{signal:n})},peeker:r==="scale-first"?i=>this._peekByScaleFirst(i):i=>this._peekByCenterFirst(i)})}destroy(){this.clear(),this._queue=yn(this._queue)}get length(){return this._queue?this._queue.length:0}get onGoingCount(){return this._keyToItem.size}get updating(){return this.length>0||this.onGoingCount>0}abort(e){const t=typeof e=="string"?e:e.id;this._queue.abort(t)}clear(){this._queue.clear(),this._keyToItem.clear(),this.notifyChange("updating")}has(e){return typeof e=="string"?this._keyToItem.has(e):this._keyToItem.has(e.id)}isOngoing(e){const t=typeof e=="string"?e:e.id;return this.has(t)&&this._queue.isOngoing(t)}pause(){this._queue.pause()}push(e){const t=e.key.id;if(this._queue.has(t))return this._queue.get(t);const r=this._queue.push(t),i=()=>{this._keyToItem.delete(t),this.notifyChange("updating")};return this._keyToItem.set(t,e),r.then(i,i),this.notifyChange("updating"),r}reset(){this._queue.reset()}resume(){this._queue.resume()}_peekByScaleFirst(e){if(!this.state)return e.values().next().value;const t=this.tileInfoView;let r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;e.forEach(c=>{const u=this._keyToItem.get(c),p=this.tileInfoView.getTileScale(u.key);Gg.has(p)||(Gg.set(p,[]),r=Math.max(p,r),i=Math.min(p,i)),Gg.get(p).push(u.key),TI.add(p)});let n=this.state.scale;Gg.has(n)||(Gdt(eC,TI),eC.sort((c,u)=>c-u),n=eC.reduce((c,u)=>Math.abs(u-n)<Math.abs(c-n)?u:c,eC[0])),n=Math.min(n,r),n=Math.max(n,i);const o=Gg.get(n),s=t.getClosestInfoForScale(n),l=s.getColumnForX(this.state.center[0]),a=s.getRowForY(this.state.center[1]);return o.sort((c,u)=>{const p=s.denormalizeCol(c.col,c.world),h=s.denormalizeCol(u.col,u.world);return Math.sqrt((l-p)*(l-p)+(a-c.row)*(a-c.row))-Math.sqrt((l-h)*(l-h)+(a-u.row)*(a-u.row))}),TI.clear(),Gg.clear(),o[0].id}_peekByCenterFirst(e){if(!this.state)return e.values().next().value;const t=this.tileInfoView,r=this.state.center;let i,n=Number.POSITIVE_INFINITY;return e.forEach(o=>{const s=this._keyToItem.get(o);t.getTileCoords(bW,s.key);const l=Sx(bW,r);l<n&&(n=l,i=s.key)}),i.id}};d([f({constructOnly:!0})],Hu.prototype,"concurrency",void 0),d([f({constructOnly:!0})],Hu.prototype,"process",void 0),d([f()],Hu.prototype,"state",void 0),d([f({constructOnly:!0})],Hu.prototype,"strategy",void 0),d([f({constructOnly:!0})],Hu.prototype,"tileInfoView",void 0),d([f({readOnly:!0})],Hu.prototype,"updating",null),Hu=d([se("esri.views.2d.tiling.TileQueue")],Hu);const pvt=Hu;class qdt{constructor(t,r,i){this.maxSize=t,this._tileInfoView=r,this._removedFunc=i,this._tilePerId=new Map,this._tileKeysPerLevel=[]}has(t){return this._tilePerId.has(t)}get(t){return this._tilePerId.get(t)}pop(t){const r=this._tilePerId.get(t);if(!r)return;const i=r.key.level,n=this._tileKeysPerLevel[i];_W(this._tilePerId,t);for(let o=0;o<n.length;o++)if(n[o].id===t){n.splice(o,1);break}return r.visible=!0,r}add(t){t.visible=!1;const r=t.key,i=r.id;if(this._tilePerId.has(i))return;this._tilePerId.set(i,t);const n=r.level;this._tileKeysPerLevel[n]||(this._tileKeysPerLevel[n]=[]),this._tileKeysPerLevel[n].push(r)}prune(t,r,i){let n=this._tilePerId.size;if(n<=this.maxSize)return;let o=this._tileKeysPerLevel.length-1;for(;n>this.maxSize&&o>=0;)o!==t&&(n=this._pruneAroundCenterTile(n,r,i,o)),o--;n>this.maxSize&&(n=this._pruneAroundCenterTile(n,r,i,t))}_pruneAroundCenterTile(t,r,i,n){const o=this._tileKeysPerLevel[n];if(!o||o.length===0)return t;const{size:s,origin:l}=this._tileInfoView.tileInfo,a=i*s[0],c=i*s[1],u=[0,0],p=[0,0];for(o.sort((h,m)=>(u[0]=l.x+a*(h.col+.5),u[1]=l.y-c*(h.row+.5),p[0]=l.x+a*(m.col+.5),p[1]=l.y-c*(m.row+.5),AE(u,r)-AE(p,r)));o.length>0;){const h=o.pop();if(this._removeTile(h.id),--t===this.maxSize)break}return t}_removeTile(t){const r=this._tilePerId.get(t);this._removedFunc&&r&&this._removedFunc(r),_W(this._tilePerId,t)}}function _W(e,t){e.delete(t)}const mf=new $s(0,0,0,0),Il=new Map,qg=[],tC=[];class hvt{constructor(t){this._previousScale=Number.POSITIVE_INFINITY,this.cachePolicy="keep",this.coveragePolicy="closest",this.resampling=!0,this.tileIndex=new Map,this.tiles=[],this.buffer=192,this.acquireTile=t.acquireTile,this.releaseTile=t.releaseTile,this.tileInfoView=t.tileInfoView,this.resampling=t.resampling==null||!!t.resampling,t.cachePolicy&&(this.cachePolicy=t.cachePolicy),t.coveragePolicy&&(this.coveragePolicy=t.coveragePolicy),t.buffer!=null&&(this.buffer=t.buffer),t.cacheSize&&(this._tileCache=new qdt(t.cacheSize,this.tileInfoView,r=>{this.releaseTile(r)}))}destroy(){this.tileIndex.clear()}update(t){const{resampling:r,tileIndex:i}=this,n=this.tileInfoView.getTileCoverage(t.state,this.buffer,this.coveragePolicy);if(tC.length=0,qg.length=0,Il.clear(),!n)return;const{minScale:o,maxScale:s}=this.tileInfoView.tileInfo,{spans:l,lodInfo:a}=n,{level:c}=a,{scale:u,center:p,resolution:h}=t.state,m=!t.stationary&&u>this._previousScale;if(this._previousScale=u,this.tiles.length=0,!r&&(u>o||u<s))return this.tiles.length=0,Il.clear(),i.forEach(x=>{this.releaseTile(x)}),i.clear(),tC.length=0,qg.length=0,Il.clear(),s0.pool.release(n),!0;i.forEach(x=>x.visible=!0);let y=0,v=0;if(l.length>0)for(const{row:x,colFrom:S,colTo:C}of l)for(let E=S;E<=C;E++){y++;const T=mf.set(c,x,a.normalizeCol(E),a.getWorldForColumn(E)).id;if(i.has(T)){const w=i.get(T);w.isReady?(Il.set(T,w),v++):m||this._addParentTile(T,Il)}else{let w;if(this._tileCache&&this._tileCache.has(T)){if(w=this._tileCache.pop(T),this.tileIndex.set(T,w),w.isReady){Il.set(T,w),v++;continue}}else w=this.acquireTile(mf),this.tileIndex.set(T,w);m||this._addParentTile(T,Il)}}const _=v===y;i.forEach((x,S)=>{if(mf.set(S),Il.has(S))return;const C=this.tileInfoView.intersects(n,mf),E=this.cachePolicy==="purge"?mf.level!==c:mf.level>c;!C||!m&&_?!E&&C||qg.push(S):x.isReady?E&&this.cachePolicy==="purge"&&this._hasReadyAncestor(mf,c)?qg.push(S):tC.push(S):E&&qg.push(S)});for(const x of tC){const S=i.get(x);S&&S.isReady&&Il.set(x,S)}for(const x of qg){const S=i.get(x);this._tileCache?this._tileCache.add(S):this.releaseTile(S),i.delete(x)}return Il.forEach(x=>this.tiles.push(x)),i.forEach(x=>{Il.has(x.key.id)||(x.visible=!1)}),this._tileCache&&this._tileCache.prune(c,p,h),s0.pool.release(n),Il.clear(),_}clear(t=!0){const{tileIndex:r}=this;t&&r.forEach(i=>{this.releaseTile(i)}),r.clear()}updateCacheSize(t){this._tileCache&&(this._tileCache.maxSize=t)}_addParentTile(t,r){let i=t,n=null;for(;i=this.tileInfoView.getTileParentId(i),i;)if(this.tileIndex.has(i)){if(n=this.tileIndex.get(i),n&&n.isReady){r.has(n.key.id)||r.set(n.key.id,n);break}}else if(this._tileCache&&this._tileCache.has(i)&&(n=this._tileCache.pop(i),this.tileIndex.set(i,n),n&&n.isReady)){r.has(n.key.id)||r.set(n.key.id,n);break}}_hasReadyAncestor(t,r){const i=Sd();this.tileInfoView.getTileBounds(i,t,!0);for(const n of this.tileIndex.values())if(n.isReady&&n.key.level>=r&&n.key.level<t.level){const o=Sd();if(this.tileInfoView.getTileBounds(o,n.key,!0),gqe(o,i))return!0}return!1}}function xF(e,t){switch(t){case"primary":return e.pointerType==="touch"||e.button===0;case"secondary":return e.pointerType!=="touch"&&e.button===2;case"tertiary":return e.pointerType!=="touch"&&e.button===1}}class wW extends to{constructor(t,r){super(!0),this._view=t,this.registerIncoming("double-click",r,i=>this._handleDoubleClick(i,r))}_handleDoubleClick(t,r){xF(t.data,"primary")&&(t.stopPropagation(),r?this._view.mapViewNavigation.zoomOut([t.data.x,t.data.y]):this._view.mapViewNavigation.zoomIn([t.data.x,t.data.y]))}}class Ydt extends to{constructor(t,r,i){super(!0),this.view=t,this.pointerType=r,this.registerIncoming("double-tap-drag",i,n=>this._handleDoubleTapDrag(n))}_handleDoubleTapDrag(t){const{data:r}=t,{pointerType:i}=r;if(i!==this.pointerType)return;t.stopPropagation();const{action:n,delta:o}=r,{view:s}=this,{mapViewNavigation:l}=s;switch(n){case"begin":{const{scale:a}=s;this._startScale=a,this._currentScale=a,this._previousDelta=o,l.begin();break}case"update":{if(this._previousDelta.y===o.y)return;this._previousDelta=o;const a=1.015**o.y,c=this._startScale*a,u=c/this._currentScale;l.setViewpointImmediate(u),this._currentScale=c;break}case"end":{const{constraints:a}=s,{effectiveLODs:c,snapToZoom:u}=a;if(!u||!c)return void l.end();const p=a.snapScale(this._currentScale),h=(o.y>0?Math.max(p,a.snapToPreviousScale(this._startScale)):Math.min(p,a.snapToNextScale(this._startScale)))/this._currentScale;l.zoom(h);break}}}}class WT{constructor(t){this._callbacks=t,this._currentCount=0,this._callbacks.condition||(this._callbacks.condition=()=>!0)}handle(t){const r=t.data,i=r.pointers.size;switch(r.action){case"start":this._currentCount=i,this._emitStart(t);break;case"added":this._emitEnd(this._previousEvent),this._currentCount=i,this._emitStart(t);break;case"update":this._emitUpdate(t);break;case"removed":this._startEvent&&this._emitEnd(this._previousEvent),this._currentCount=i,this._emitStart(t);break;case"end":this._emitEnd(t),this._currentCount=0}this._previousEvent=t}_emitStart(t){var r,i;this._startEvent=t,(i=(r=this._callbacks).condition)!=null&&i.call(r,this._currentCount,t)&&this._callbacks.start(this._currentCount,t,this._startEvent)}_emitUpdate(t){var r,i;(i=(r=this._callbacks).condition)!=null&&i.call(r,this._currentCount,t)&&this._callbacks.update(this._currentCount,t,this._startEvent)}_emitEnd(t){var r,i;(i=(r=this._callbacks).condition)!=null&&i.call(r,this._currentCount,t)&&this._callbacks.end(this._currentCount,t,this._startEvent),this._startEvent=null}}class Kdt extends to{constructor(t,r,i){super(!0),this.view=t,this.pointerAction=r,this.registerIncoming("drag",i,n=>this._handleDrag(n)),this.registerIncoming("pointer-down",()=>this.stopMomentumNavigation())}onInstall(t){super.onInstall(t),this._dragEventSeparator=new WT({start:(r,i)=>{this.view.mapViewNavigation.pan.begin(this.view,i.data),i.stopPropagation()},update:(r,i)=>{this.view.mapViewNavigation.pan.update(this.view,i.data),i.stopPropagation()},end:(r,i)=>{this.view.mapViewNavigation.pan.end(this.view,i.data),i.stopPropagation()},condition:(r,i)=>r===1&&xF(i.data,this.pointerAction)})}_handleDrag(t){const r=this.view.mapViewNavigation;r.pinch.zoomMomentum||r.pinch.rotateMomentum?this.stopMomentumNavigation():this._dragEventSeparator.handle(t)}stopMomentumNavigation(){this.view.mapViewNavigation.pan.stopMomentumNavigation()}}class Zdt extends to{constructor(t,r,i){super(!0),this._view=t,this.pointerAction=r;const n=this._view.mapViewNavigation;this._dragEventSeparator=new WT({start:(o,s)=>{n.rotate.begin(this._view,s.data),s.stopPropagation()},update:(o,s)=>{n.rotate.update(this._view,s.data),s.stopPropagation()},end:(o,s)=>{n.rotate.end(),s.stopPropagation()},condition:(o,s)=>o===1&&xF(s.data,this.pointerAction)}),this.registerIncoming("drag",i,o=>this._dragEventSeparator.handle(o))}}function xa(e){let t=e*e;return e<0&&(t*=-1),t}function Qdt(e){return e.translation[0]=0,e.translation[1]=0,e.translation[2]=0,e.heading=0,e.tilt=0,e}function Jdt(e,t,r){const i=r,n=e.state,o=e.device,s=t.tiltDirection==="forward-down"?1:-1,l=1;return o.deviceType==="standard"?(i.translation[0]=xa(n.axes[0]),i.translation[1]=xa(n.axes[1]),i.translation[2]=xa(n.buttons[7])-xa(n.buttons[6]),i.heading=xa(n.axes[2]),i.tilt=xa(n.axes[3])):o.deviceType==="spacemouse"&&(i.translation[0]=1.2*xa(n.axes[0]),i.translation[1]=1.2*xa(n.axes[1]),i.translation[2]=2*-xa(n.axes[2]),i.heading=1.2*xa(n.axes[5]),i.tilt=1.2*xa(n.axes[3])),i.tilt*=s,mee(i.translation,i.translation,l),i}function Xdt(e){return e.translation[0]===0&&e.translation[1]===0&&e.translation[2]===0&&e.heading===0&&e.tilt===0&&e.zoom===0}class ept extends to{constructor(t){super(!0),this._view=t,this._frameTask=null,this._watchHandles=new hs,this._currentDevice=null,this._transformation={translation:[0,0,0],heading:0,tilt:0,zoom:0},this._handle=this.registerIncoming("gamepad",r=>this._handleGamePadEvent(r)),this._handle.pause()}onInstall(t){super.onInstall(t),this._watchHandles.add([Ot(()=>{var r;return(r=this._view.navigation.gamepad)==null?void 0:r.enabled},r=>{r?(this._handle.resume(),this._frameTask||(this._frameTask=Hv({update:i=>this._frameUpdate(i.deltaTime)}))):(this._handle.pause(),this._frameTask&&(this._frameTask.remove(),this._frameTask=null))},si)])}onUninstall(){this._watchHandles.removeAll(),this._frameTask&&(this._frameTask.remove(),this._frameTask=null),super.onUninstall()}_handleGamePadEvent(t){const r=this._view.navigation.gamepad.device;r&&t.data.device!==r||this._currentDevice&&this._currentDevice!==t.data.device||(t.data.action==="end"?(this._currentDevice=null,Qdt(this._transformation)):(this._currentDevice=t.data.device,Jdt(t.data,this._view.navigation.gamepad,this._transformation)))}_frameUpdate(t){const r=this._transformation;if(Xdt(r))return;const i=this._view.viewpoint.clone(),n=this._view.navigation.gamepad.velocityFactor,o=rpt*n*t;UT(i,i,[r.translation[0]*o,-r.translation[1]*o]);const s=1+r.translation[2]*ipt*t,l=this._view.constraints.rotationEnabled?-r.heading*tpt*t:0,a=this._view.size,c=[a[0]/2,a[1]];_se(i,i,s,l,c,a);const u=this._view.constraints.constrain(i,this._view.viewpoint);this._view.viewpoint=u}}const tpt=.06,rpt=.7,ipt=6e-4;class npt extends to{constructor(t,r,i){super(!0),this.view=t,this.keys=r,this._pressed=!1,this._keyMap={[r.left]:"left",[r.right]:"right",[r.up]:"up",[r.down]:"down"},this.registerIncoming("key-down",i,n=>this._handleKeyDown(n)),this.registerIncoming("key-up",i,n=>this._handleKeyUp(n)),this.registerIncoming("blur",i,()=>this._handleBlur())}_handleKeyDown(t){t.data.repeat||this._handleKey(t,!0)}_handleKeyUp(t){this._handleKey(t,!1)}_handleBlur(){this._pressed&&(this._pressed=!1,this.view.mapViewNavigation.stop())}_handleKey(t,r){const i=this._keyMap[t.data.key];if(this._pressed=i!=null,this._pressed){if(r)switch(this.view.mapViewNavigation.begin(),i){case"left":this.view.mapViewNavigation.continousPanLeft();break;case"right":this.view.mapViewNavigation.continousPanRight();break;case"up":this.view.mapViewNavigation.continousPanUp();break;case"down":this.view.mapViewNavigation.continousPanDown()}else this._pressed=!1,this.view.mapViewNavigation.stop();t.stopPropagation()}}}class opt extends to{constructor(t,r,i){super(!0),this.view=t,this.keys=r,this._pressed=!1,this._keyToDirection={[r.clockwiseOption1]:"clockwise",[r.clockwiseOption2]:"clockwise",[r.counterClockwiseOption1]:"counterClockwise",[r.counterClockwiseOption2]:"counterClockwise",[r.resetOption1]:"reset",[r.resetOption2]:"reset"},this.registerIncoming("key-down",i,n=>this._handleKeyDown(n)),this.registerIncoming("key-up",i,n=>this._handleKeyUp(n)),this.registerIncoming("blur",i,()=>this._handleBlur())}_handleKeyDown(t){t.data.repeat||this._handleKey(t,!0)}_handleKeyUp(t){this._handleKey(t,!1)}_handleBlur(){this._pressed&&(this._pressed=!1,this.view.mapViewNavigation.stop())}_handleKey(t,r){const i=t.modifiers;if(i.size>0&&!i.has("Shift")||!this.view.constraints.rotationEnabled)return;const n=this._keyToDirection[t.data.key];if(this._pressed=n!=null,this._pressed){if(r)switch(this.view.mapViewNavigation.begin(),n){case"clockwise":this.view.mapViewNavigation.continousRotateClockwise();break;case"counterClockwise":this.view.mapViewNavigation.continousRotateCounterclockwise();break;case"reset":this.view.mapViewNavigation.resetRotation()}else this._pressed=!1,this.view.mapViewNavigation.stop();t.stopPropagation()}}}var Qy;(function(e){e[e.IN=0]="IN",e[e.OUT=1]="OUT"})(Qy||(Qy={}));class spt extends to{constructor(t,r,i){super(!0),this.view=t,this.keys=r,this._keysToZoomAction={},this.registerIncoming("key-down",i,n=>this._handleKeyDown(n)),r.zoomIn.forEach(n=>this._keysToZoomAction[n]=Qy.IN),r.zoomOut.forEach(n=>this._keysToZoomAction[n]=Qy.OUT)}_handleKeyDown(t){this._handleKey(t)}_handleKey(t){const r=t.modifiers;if(r.size>0&&!r.has("Shift"))return;const{key:i}=t.data;if(!(i in this._keysToZoomAction))return;const n=this._keysToZoomAction[i],{mapViewNavigation:o}=this.view;let s=null;switch(n){case Qy.IN:s=o.zoomIn();break;case Qy.OUT:s=o.zoomOut();break;default:return}o.begin(),s.then(()=>o.end()),t.stopPropagation()}}const lpt=.6;class apt extends to{constructor(t,r){super(!0),this._view=t,this._canZoom=!0,this.registerIncoming("mouse-wheel",r,i=>this._handleMouseWheel(i))}_handleMouseWheel(t){if(!this._view.navigation.mouseWheelZoomEnabled||(t.preventDefault(),t.stopPropagation(),!this._canZoom))return;const r=this._view.mapViewNavigation,{x:i,y:n,deltaY:o}=t.data,s=1/lpt**(1/60*o),l=r.zoom(s,[i,n]);l&&(this._canZoom=!1,l.catch(()=>{}).then(()=>{this._canZoom=!0,r.end()}))}}class cpt extends to{constructor(t){super(!0),this.view=t,this.registerIncoming("drag",i=>this._handleDrag(i)),this.registerIncoming("pointer-down",()=>this._stopMomentumNavigation());const r=this.view.mapViewNavigation;this._dragEventSeparator=new WT({start:(i,n)=>{r.pinch.begin(this.view,n.data),n.stopPropagation()},update:(i,n)=>{r.pinch.update(this.view,n.data),n.stopPropagation()},end:(i,n)=>{r.pinch.end(this.view),n.stopPropagation()},condition:i=>i>=2})}_handleDrag(t){this._dragEventSeparator.handle(t)}_stopMomentumNavigation(){this.view.mapViewNavigation.pinch.stopMomentumNavigation()}}function xW(e){const t=e.native;return t?{buttons:t.buttons.map(r=>r.pressed?r.value?r.value:1:0),axes:t.axes.map(r=>ppt(r,e.axisThreshold))}:{buttons:[],axes:[]}}function upt(e,t){if(e.axes.length!==t.axes.length||e.buttons.length!==t.buttons.length)return!1;for(let r=0;r<e.axes.length;r++)if(e.axes[r]!==t.axes[r])return!1;for(let r=0;r<e.buttons.length;r++)if(e.buttons[r]!==t.buttons[r])return!1;return!0}function dpt(e){for(let t=0;t<e.axes.length;t++)if(e.axes[t]!==0)return!1;for(let t=0;t<e.buttons.length;t++)if(e.buttons[t]!==0)return!1;return!0}function ppt(e,t){const r=Math.abs(e);return r<t?0:Math.sign(e)*(r-t)/(1-t)}class hpt{constructor(t,r){this._element=t,this._input=r,this._hasEventListeners=!1,this._onConnectGamepad=o=>{this._connectGamepad(o.gamepad)},this._onDisconnectGamepad=o=>{const s=o.gamepad,l=s.index,a=this._inputDevices[l];a&&(this._emitGamepadEvent(s,xW(a),!1),this._inputDevices.splice(l,1),this._latestUpdate.splice(l,1),this._input.gamepad.devices.remove(a),this.ensurePollingState())},this._frameTask=null,this._latestUpdate=new Array,this._inputDevices=new Array,this._callback=null;const i="getGamepads"in window.navigator,n=window.isSecureContext;this.supported=i&&n,this.supported&&(this._forEachGamepad(o=>this._connectGamepad(o)),window.addEventListener("gamepadconnected",this._onConnectGamepad),window.addEventListener("gamepaddisconnected",this._onDisconnectGamepad),this.ensurePollingState())}destroy(){this.hasEventListeners=!1,this.supported&&(window.removeEventListener("gamepadconnected",this._onConnectGamepad),window.removeEventListener("gamepaddisconnected",this._onDisconnectGamepad))}set hasEventListeners(t){this._hasEventListeners!==t&&(this._hasEventListeners=t,this.ensurePollingState())}get _eventsEnabled(){return this.supported&&this._inputDevices.length>0&&this._hasEventListeners}set onEvent(t){this._callback=t}_connectGamepad(t){const r=new hF(t);r.deviceType!=="unknown"&&(this._inputDevices[t.index]=r,this._input.gamepad.devices.add(r)),this.ensurePollingState()}ensurePollingState(){this._eventsEnabled?this._startPolling():this._stopPolling()}_startPolling(){this._frameTask==null&&(this._frameTask=Hv({update:()=>this._readGamepadState()}))}_stopPolling(){this._frameTask!=null&&(this._frameTask.remove(),this._frameTask=null,this._latestUpdate=new Array)}_readGamepadState(){const t=document.hasFocus(),r=this._element.contains(document.activeElement),i=this._input.gamepad.enabledFocusMode==="document"&&!t||this._input.gamepad.enabledFocusMode==="view"&&!r;this._forEachGamepad(n=>{const o=this._inputDevices[n.index];if(!o)return;const s=this._latestUpdate[n.index],l=xW(o),a=i||dpt(l);s&&(s.timestamp===n.timestamp||!s.active&&a||upt(s.state,l))||this._emitGamepadEvent(n,l,!a)})}_forEachGamepad(t){const r=window.navigator.getGamepads();for(let i=0;i<r.length;i++){const n=r[i];this._validate(n)&&t(n)}}_emitGamepadEvent(t,r,i){const n=this._latestUpdate[t.index],o=n&&n.active;if(!o&&!i)return;const s=!o&&i?"start":o&&i?"update":"end";this._latestUpdate[t.index]={timestamp:t.timestamp,state:r,active:i},this._callback&&this._callback({device:this._inputDevices[t.index],state:r,action:s})}_validate(t){if(!t||!t.connected)return!1;for(let r=0;r<t.axes.length;r++)if(isNaN(t.axes[r]))return!1;return!0}}const CW=at("trident"),kW=at("edge"),fpt=at("chrome"),mpt=at("ff"),gpt=at("safari"),Yg={touchNone:"esri-view-surface--touch-none",touchPan:"esri-view-surface--touch-pan"};class HT{constructor(t,r){this._input=r,this._active={},this._activePointerCaptures=new Set,this._keyDownState=new Set,this._eventId=1,this._browserTouchPanningEnabled=!1,this._element=t,t.getAttribute("tabindex")||t.setAttribute("tabindex","0"),this._eventHandlers={"key-down":this._handleKey,"key-up":this._handleKey,"pointer-down":this._handlePointer,"pointer-move":this._handlePointerPreventDefault,"pointer-up":this._handlePointerPreventDefault,"pointer-enter":this._handlePointer,"pointer-leave":this._handlePointer,"pointer-cancel":this._handlePointer,"mouse-wheel":this._handleMouseWheel,"pointer-capture-lost":this._handlePointerCaptureLost},this._updateTouchAction(),this._element.addEventListener("keydown",this._preventAltKeyDefault),this._gamepadSource=new hpt(t,this._input),this._gamepadSource.onEvent=i=>this._callback("gamepad",i)}destroy(){this._callback=null,this.activeEvents=null,this._activePointerCaptures.forEach(t=>{this._releasePointerCaptureSafe(t)}),this._gamepadSource=yn(this._gamepadSource),this._activePointerCaptures=null,this._removeTouchAction(),this._element.removeEventListener("keydown",this._preventAltKeyDefault)}get browserTouchPanningEnabled(){return this._browserTouchPanningEnabled}set browserTouchPanningEnabled(t){this._browserTouchPanningEnabled=t,this._updateTouchAction(),this._updateTouchEventHandling()}set onEventReceived(t){this._callback=t}set activeEvents(t){for(const r in this._active)if(!t||!t.has(r)){const i=this._active[r];this._element.removeEventListener(AI[r],i),delete this._active[r]}t&&t.forEach(r=>{if(!this._active[r]&&AI[r]){const i=(this._eventHandlers[r]||this._handleDefault).bind(this,r);this._element.addEventListener(AI[r],i),this._active[r]=i}}),this._gamepadSource.hasEventListeners=t&&t.has("gamepad")}setPointerCapture(t,r){r?(this._element.setPointerCapture(t.pointerId),this._activePointerCaptures.add(t.pointerId)):(this._releasePointerCaptureSafe(t.pointerId),this._activePointerCaptures.delete(t.pointerId))}_updateTouchAction(){this._element.classList.remove(this._browserTouchPanningEnabled?Yg.touchNone:Yg.touchPan),this._element.classList.add(this._browserTouchPanningEnabled?Yg.touchPan:Yg.touchNone)}_updateTouchEventHandling(){this._browserTouchPanningEnabled?this._element.addEventListener("touchmove",this._preventMultiTouchPanning):this._element.removeEventListener("touchmove",this._preventMultiTouchPanning)}_removeTouchAction(){this._element.classList.remove(Yg.touchNone),this._element.classList.remove(Yg.touchPan),this._element.removeEventListener("touchmove",this._preventMultiTouchPanning)}_releasePointerCaptureSafe(t){try{if(this._element.hasPointerCapture&&!this._element.hasPointerCapture(t))return;this._element.releasePointerCapture(t)}catch{}}_updateNormalizedPointerLikeEvent(t,r){const i=Qoe(this._element,t);return HT.test.disableSubpixelCoordinates&&(i.x=Math.round(i.x),i.y=Math.round(i.y)),r.x=i.x,r.y=i.y,r}_handleKey(t,r){const i=Lat(r);i&&t==="key-up"&&this._keyDownState.delete(i);const n={native:r,key:i,repeat:i&&this._keyDownState.has(i)};i&&t==="key-down"&&this._keyDownState.add(n.key),this._callback(t,n)}_handlePointer(t,r){const i=this._updateNormalizedPointerLikeEvent(r,{native:r,x:0,y:0,pointerType:r.pointerType,button:r.button,buttons:r.buttons,eventId:this._eventId++});this._callback(t,i)}_handlePointerPreventDefault(t,r){const i=this._updateNormalizedPointerLikeEvent(r,{native:r,x:0,y:0,pointerType:r.pointerType,button:r.button,buttons:r.buttons,eventId:this._eventId++});r.preventDefault(),this._callback(t,i)}_handleMouseWheel(t,r){let i=r.deltaY;switch(r.deltaMode){case 0:(CW||kW)&&(i=i/document.documentElement.clientHeight*600);break;case 1:i*=30;break;case 2:i*=900}CW||kW?i*=.7:fpt||gpt?i*=.6:mpt&&(i*=1.375);const n=100,o=Math.abs(i);o>n&&(i=i/o*200/(1+Math.exp(-.02*(o-n))));const s=this._updateNormalizedPointerLikeEvent(r,{native:r,x:0,y:0,deltaY:i});this._callback(t,s)}_handlePointerCaptureLost(t,r){this._activePointerCaptures.delete(r.pointerId),this._handleDefault(t,r)}_handleDefault(t,r){const i={native:r};r.preventDefault(),this._callback(t,i)}_preventAltKeyDefault(t){t.key==="Alt"&&t.preventDefault()}_preventMultiTouchPanning(t){t.touches.length>1&&t.preventDefault()}}HT.test={disableSubpixelCoordinates:!1};const AI={"key-down":"keydown","key-up":"keyup","pointer-down":"pointerdown","pointer-up":"pointerup","pointer-move":"pointermove","mouse-wheel":"wheel","pointer-capture-got":"gotpointercapture","pointer-capture-lost":"lostpointercapture","context-menu":"contextmenu","pointer-enter":"pointerenter","pointer-leave":"pointerleave","pointer-cancel":"pointercancel",focus:"focus",blur:"blur"};class ypt extends to{constructor(){super(!0),this.registerIncoming("context-menu",t=>{t.data.native.preventDefault()})}}function CF(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function vpt(e,t){const r=t.x-e.x,i=t.y-e.y;return Math.sqrt(r*r+i*i)}function bpt(e,t){if(t?(t.radius=0,t.center.x=0,t.center.y=0):t={radius:0,center:Rs()},e.length===0)return t;if(e.length===1)return t.center.x=e[0].x,t.center.y=e[0].y,t;if(e.length===2){const[C,E]=e,[T,w]=[E.x-C.x,E.y-C.y];return t.radius=Math.sqrt(T*T+w*w)/2,t.center.x=(C.x+E.x)/2,t.center.y=(C.y+E.y)/2,t}let r=0,i=0;for(let C=0;C<e.length;C++)r+=e[C].x,i+=e[C].y;r/=e.length,i/=e.length;const n=e.map(C=>C.x-r),o=e.map(C=>C.y-i);let s=0,l=0,a=0,c=0,u=0,p=0,h=0;for(let C=0;C<n.length;C++){const E=n[C],T=o[C],w=E*E,I=T*T;s+=w,l+=I,a+=E*T,c+=w*E,u+=I*T,p+=E*I,h+=T*w}const m=.5*(c+p),y=.5*(u+h),v=s*l-a*a,_=(m*l-y*a)/v,x=(s*y-a*m)/v,S=Rs(_+r,x+i);return{radius:Math.sqrt(_*_+x*x+(s+l)/e.length),center:S}}function Km(e){const{native:t}=e,{pointerId:r,button:i,pointerType:n}=t;return n==="mouse"?`${r}:${i}`:`${n}`}const Kl={maximumDoubleClickDelay:250,maximumDoubleClickDistance:10,maximumDoubleTouchDelay:350,maximumDoubleTouchDistance:35};class _pt extends to{constructor(t=Kl.maximumDoubleClickDelay,r=Kl.maximumDoubleClickDistance,i=Kl.maximumDoubleTouchDelay,n=Kl.maximumDoubleTouchDistance,o=ix){super(!1),this._maximumDoubleClickDelay=t,this._maximumDoubleClickDistance=r,this._maximumDoubleTouchDelay=i,this._maximumDoubleTouchDistance=n,this._clock=o,this._pointerState=new Map,this._click=this.registerOutgoing("click"),this._doubleClick=this.registerOutgoing("double-click"),this.registerIncoming("immediate-click",this._handleImmediateClick.bind(this)),this.registerIncoming("pointer-down",this._handlePointerDown.bind(this))}onUninstall(){this._pointerState.forEach(t=>t.doubleClickTimer=Dn(t.doubleClickTimer))}get hasPendingInputs(){return L3(this._pointerState,t=>t.doubleClickTimer!=null)}_clearDoubleClickTimer(t,r){const i=this._pointerState.get(t);i&&(i.doubleClickTimer=Dn(i.doubleClickTimer),r&&this._click.emit(i.event.data,void 0,i.event.modifiers),this._pointerState.delete(t),this.refreshHasPendingInputs())}_doubleClickTimeoutExceeded(t){const r=this._pointerState.get(t);r.pointerDownCount===1&&this._click.emit(r.event.data,void 0,r.event.modifiers),r.doubleClickTimer=null,this._pointerState.delete(t),this.refreshHasPendingInputs()}_getPointerId(t){const{pointerId:r,pointerType:i,button:n}=t.native;return i==="mouse"?`${r}:${n}`:`${i}`}_handleImmediateClick(t){const r=t.data,{pointerType:i}=r.native,n=this._getPointerId(r);if(!this._pointerState.has(n))return void this._startClick(t);const o=this._pointerState.get(n),{data:s,modifiers:l}=o.event,a=i==="touch"?this._maximumDoubleTouchDistance:this._maximumDoubleClickDistance;CF(s,r)>a?(this._clearDoubleClickTimer(n,!0),this._startClick(t)):(this._clearDoubleClickTimer(n,!1),o.pointerDownCount===2&&this._doubleClick.emit(s,void 0,l))}_handlePointerDown(t){const r=Km(t.data),i=this._pointerState.get(r);i&&(i.pointerDownCount+=1)}_startClick(t){const{data:r}=t,{native:{pointerType:i}}=r,n=Km(r),o=i==="touch"?this._maximumDoubleTouchDelay:this._maximumDoubleClickDelay,s=this._clock.setTimeout(()=>this._doubleClickTimeoutExceeded(n),o),l=1;this._pointerState.set(n,{event:t,doubleClickTimer:s,pointerDownCount:l}),this.refreshHasPendingInputs()}}class wpt extends to{constructor(t=Kl.maximumDoubleClickDelay,r=Kl.maximumDoubleClickDistance,i=Kl.maximumDoubleTouchDelay,n=Kl.maximumDoubleTouchDistance,o=ix){super(!1),this._maximumDoubleClickDelay=t,this._maximumDoubleClickDistance=r,this._maximumDoubleTouchDelay=i,this._maximumDoubleTouchDistance=n,this._clock=o,this._doubleTapDragReady=!1,this._doubleTapDragActive=!1,this._dragStartCenter=Rs(0,0),this._pointerState=new Map,this._doubleTapDrag=this.registerOutgoing("double-tap-drag"),this._dragEventSeparator=new WT({start:(s,l)=>this._dragStart(s,l),update:(s,l)=>this._dragUpdate(l),end:(s,l)=>this._dragEnd(l)}),this.registerIncoming("drag",s=>this._dragEventSeparator.handle(s)),this.registerIncoming("pointer-down",s=>this._handlePointerDown(s)),this.registerIncoming("pointer-up",()=>this._handlePointerUp())}onUninstall(){this._pointerState.forEach(t=>{t.doubleTapTimeout=Dn(t.doubleTapTimeout)})}get hasPendingInputs(){return L3(this._pointerState,t=>t.doubleTapTimeout!=null)}_clearPointerDown(t){const r=this._pointerState.get(t);r&&(r.doubleTapTimeout=Dn(r.doubleTapTimeout),this._pointerState.delete(t),this.refreshHasPendingInputs())}_createDoubleTapDragData(t,r,i){const{button:n,buttons:o,pointer:s,pointers:l,pointerType:a,timestamp:c}=i;return{action:t,delta:r,button:n,buttons:o,pointer:s,pointers:l,pointerType:a,timestamp:c}}_dragStart(t,r){if(!this._doubleTapDragReady||t!==1)return;this._doubleTapDragReady=!1,this._doubleTapDragActive=!0;const{data:i,modifiers:n}=r,{center:o}=i;this._dragStartCenter=o;const s=this._createDoubleTapDragData("begin",Rs(0,0),i);this._doubleTapDrag.emit(s,void 0,n),r.stopPropagation()}_dragUpdate(t){if(!this._doubleTapDragActive)return;const{data:r,modifiers:i}=t,{center:n}=r,o=Rs(n.x-this._dragStartCenter.x,n.y-this._dragStartCenter.y),s=this._createDoubleTapDragData("update",o,r);this._doubleTapDrag.emit(s,void 0,i),t.stopPropagation()}_dragEnd(t){if(!this._doubleTapDragActive)return;const{data:r,modifiers:i}=t,{center:n}=r,o=Rs(n.x-this._dragStartCenter.x,n.y-this._dragStartCenter.y),s=this._createDoubleTapDragData("end",o,r);this._doubleTapDrag.emit(s,void 0,i),this._doubleTapDragActive=!1,t.stopPropagation()}_handlePointerDown(t){const{data:r}=t,i=Km(r),n=this._pointerState.get(i),{pointerType:o}=r.native;if(n){const s=o==="touch"?this._maximumDoubleTouchDistance:this._maximumDoubleClickDistance;this._clearPointerDown(i),CF(n.event.data,r)>s?this._storePointerDown(t):this._doubleTapDragReady=!0}else this._storePointerDown(t)}_handlePointerUp(){this._doubleTapDragReady=!1}_storePointerDown(t){const{data:r}=t,{pointerType:i}=r.native,n=Km(r),o=i==="touch"?this._maximumDoubleTouchDelay:this._maximumDoubleClickDelay,s=this._clock.setTimeout(()=>this._clearPointerDown(n),o);this._pointerState.set(n,{event:t,doubleTapTimeout:s}),this.refreshHasPendingInputs()}}class xpt extends to{constructor(t){super(!1),this._navigationTouch=t,this._startStateModifiers=new Set,this._activePointerMap=new Map,this._isDragging=!1,this._isCurrentDragSuppressed=!1,this._drag=this.registerOutgoing("drag"),this.registerIncoming("pointer-drag",this._handlePointerDrag.bind(this)),this.registerIncoming("pointer-up",this._handlePointerUpAndPointerLost.bind(this)),this.registerIncoming("pointer-capture-lost",this._handlePointerUpAndPointerLost.bind(this)),this.registerIncoming("pointer-cancel",this._handlePointerUpAndPointerLost.bind(this))}_createPayload(t,r,i,n){return{action:t,pointerType:this._pointerType,button:this._mouseButton,buttons:r.buttons,timestamp:n,pointers:Cpt(this._activePointerMap),pointer:r,angle:i.angle,radius:i.radius,center:i.center}}_addPointer(t){const r=t.native.pointerId,i=rC(this._activePointerMap).angle,n={event:t,initialAngle:0,lastAngle:0};this._activePointerMap.set(r,n);const o=Wk(n,Dse(this._activePointerMap));n.initialAngle=o,n.lastAngle=o,this._updatePointerAngles(i)}_updatePointer(t){if(t&&t.x==null&&t.y==null)return;const r=t.native.pointerId,i=this._activePointerMap.get(r);i?i.event=t:this._addPointer(t)}_removePointer(t){const r=rC(this._activePointerMap).angle;this._activePointerMap.delete(t),this._updatePointerAngles(r)}_updatePointerAngles(t){const r=rC(this._activePointerMap);this._activePointerMap.forEach(i=>{i.initialAngle=Wk(i,r)-t,i.lastAngle=Wk(i,r)-t})}_emitEvent(t,r,i){const n=rC(this._activePointerMap);this._drag.emit(this._createPayload(t,r,n,i),void 0,this._startStateModifiers)}_handlePointerUpAndPointerLost(t){const r=t.data.native.pointerId,i=t.timestamp;this._activePointerMap.get(r)&&(this._activePointerMap.size===1?(this._updatePointer(t.data),!this._isCurrentDragSuppressed&&this._emitEvent("end",t.data,i),this._isDragging=!1,this._isCurrentDragSuppressed=!1,this._removePointer(r)):(this._removePointer(r),this._emitEvent("removed",t.data,t.timestamp)))}_handlePointerDrag(t){const r=t.data,i=r.currentEvent,n=t.timestamp;switch(r.action){case"start":case"update":this._isDragging?this._activePointerMap.has(i.native.pointerId)?(this._updatePointer(i),!this._isCurrentDragSuppressed&&this._emitEvent("update",i,n)):(this._addPointer(i),this._emitEvent("added",i,n),this._isCurrentDragSuppressed=this._isSuppressed):(this._updatePointer(i),this._pointerType=t.data.startEvent.pointerType,this._mouseButton=t.data.startEvent.button,this._startStateModifiers=t.modifiers,this._isDragging=!0,this._isCurrentDragSuppressed=this._isSuppressed,!this._isCurrentDragSuppressed&&this._emitEvent("start",i,n))}}get _isSuppressed(){return!!this._navigationTouch&&!this._navigationTouch.browserTouchPanEnabled&&this._pointerType==="touch"&&this._activePointerMap.size===1}}function Dse(e){const t=[];return e.forEach(r=>{t.push(Rs(r.event.x,r.event.y))}),bpt(t)}function rC(e){const t=Dse(e);let r=0;return e.forEach(i=>{let n=Wk(i,t),o=n-i.lastAngle;for(;o>Math.PI;)o-=2*Math.PI;for(;o<-Math.PI;)o+=2*Math.PI;n=i.lastAngle+o,i.lastAngle=n,r+=n-i.initialAngle}),r/=e.size||1,{angle:r,radius:t.radius,center:t.center}}function Cpt(e){const t=new Map;return e.forEach((r,i)=>t.set(i,r.event)),t}function Wk(e,t){const r=e.event,i=r.x-t.center.x,n=r.y-t.center.y;return Math.atan2(n,i)}var SW;(function(e){e[e.Left=0]="Left",e[e.Middle=1]="Middle",e[e.Right=2]="Right",e[e.Back=3]="Back",e[e.Forward=4]="Forward",e[e.Undefined=-1]="Undefined"})(SW||(SW={}));class kpt extends to{constructor(t=Kl.maximumDoubleClickDelay,r=Kl.maximumDoubleClickDistance,i=Kl.maximumDoubleTouchDelay,n=Kl.maximumDoubleTouchDistance,o=ix){super(!1),this._maximumDoubleClickDelay=t,this._maximumDoubleClickDistance=r,this._maximumDoubleTouchDelay=i,this._maximumDoubleTouchDistance=n,this._clock=o,this._pointerState=new Map,this._immediateDoubleClick=this.registerOutgoing("immediate-double-click"),this.registerIncoming("pointer-down",this._handlePointerDown.bind(this)),this.registerIncoming("pointer-up",this._handlePointerUp.bind(this))}onUninstall(){this._pointerState.forEach(t=>{t.immediateDoubleClick&&t.immediateDoubleClick.timeoutHandle.remove()}),super.onUninstall()}_handlePointerDown(t){const r=t.data,i=Km(r);if(!this._pointerState.has(i)){const n={downButton:r.native.button,immediateDoubleClick:null};this._pointerState.set(i,n),this.startCapturingPointer(r.native)}}_handlePointerUp(t){const r=t.data,i=Km(r),n=this._pointerState.get(i);if(n&&n.downButton===r.native.button){const o=n.immediateDoubleClick;if(o){o.timeoutHandle.remove();const s=t.data.native.pointerType==="touch"?this._maximumDoubleTouchDistance:this._maximumDoubleClickDistance;CF(o,t.data)>s?this._startImmediateDoubleClick(t,n):(this._immediateDoubleClick.emit(t.data,void 0,o.modifiers),this._removeState(r))}else this._startImmediateDoubleClick(t,n)}}_startImmediateDoubleClick(t,r){const i=t.data.native.pointerType==="touch"?this._maximumDoubleTouchDelay:this._maximumDoubleClickDelay;r.immediateDoubleClick={x:t.data.x,y:t.data.y,modifiers:t.modifiers,timeoutHandle:this._clock.setTimeout(()=>this._removeState(t.data),i)}}_removeState(t){const r=Km(t);this._pointerState.delete(r),this.stopCapturingPointer(t.native),this.refreshHasPendingInputs()}}const Ib={maximumClickDelay:300,movementUntilMouseDrag:1.5,movementUntilPenDrag:6,movementUntilTouchDrag:6,holdDelay:500};class Spt extends to{constructor(t=Ib.maximumClickDelay,r=Ib.movementUntilMouseDrag,i=Ib.movementUntilPenDrag,n=Ib.movementUntilTouchDrag,o=Ib.holdDelay,s=ix){super(!1),this._maximumClickDelay=t,this._movementUntilMouseDrag=r,this._movementUntilPenDrag=i,this._movementUntilTouchDrag=n,this._holdDelay=o,this._clock=s,this._pointerState=new Map,this._pointerDrag=this.registerOutgoing("pointer-drag"),this._immediateClick=this.registerOutgoing("immediate-click"),this._pointerHold=this.registerOutgoing("hold"),this.registerIncoming("pointer-down",this._handlePointerDown.bind(this)),this.registerIncoming("pointer-up",l=>{this._handlePointerLoss(l,"pointer-up")}),this.registerIncoming("pointer-capture-lost",l=>{this._handlePointerLoss(l,"pointer-capture-lost")}),this.registerIncoming("pointer-cancel",l=>{this._handlePointerLoss(l,"pointer-cancel")}),this._moveHandle=this.registerIncoming("pointer-move",this._handlePointerMove.bind(this)),this._moveHandle.pause()}onUninstall(){this._pointerState.forEach(t=>{t.holdTimeout=Dn(t.holdTimeout)}),super.onUninstall()}_handlePointerDown(t){const r=t.data,i=r.native.pointerId;let n=null;this._pointerState.size===0&&(n=this._clock.setTimeout(()=>{const s=this._pointerState.get(i);if(s){if(!s.isDragging){const l=s.previousEvent;this._pointerHold.emit(l,void 0,t.modifiers),s.holdEmitted=!0}s.holdTimeout=null}},this._holdDelay));const o={startEvent:r,previousEvent:r,startTimestamp:t.timestamp,isDragging:!1,downButton:r.native.button,holdTimeout:n,modifiers:new Set};this._pointerState.set(i,o),this.startCapturingPointer(r.native),this._moveHandle.resume(),this._pointerState.size>1&&this._startDragging(t)}_createPointerDragData(t,r,i){return{action:t,startEvent:r.startEvent,previousEvent:r.previousEvent,currentEvent:i}}_handlePointerMove(t){const r=t.data,i=r.native.pointerId,n=this._pointerState.get(i);n&&(n.isDragging?this._pointerDrag.emit(this._createPointerDragData("update",n,r),void 0,n.modifiers):vpt(r,n.startEvent)>this._getDragThreshold(r.native.pointerType)&&this._startDragging(t),n.previousEvent=r)}_getDragThreshold(t){switch(t){case"touch":return this._movementUntilTouchDrag;case"pen":return this._movementUntilPenDrag;default:return this._movementUntilMouseDrag}}_startDragging(t){const r=t.data,i=r.native.pointerId;this._pointerState.forEach(n=>{n.holdTimeout!=null&&(n.holdTimeout.remove(),n.holdTimeout=null),n.isDragging||(n.modifiers=t.modifiers,n.isDragging=!0,i===n.startEvent.native.pointerId?this._pointerDrag.emit(this._createPointerDragData("start",n,r)):this._pointerDrag.emit(this._createPointerDragData("start",n,n.previousEvent),t.timestamp))})}_handlePointerLoss(t,r){const i=t.data,n=i.native.pointerId,o=this._pointerState.get(n);o&&(o.holdTimeout!=null&&(o.holdTimeout.remove(),o.holdTimeout=null),o.isDragging?this._pointerDrag.emit(this._createPointerDragData("end",o,r==="pointer-up"?i:o.previousEvent),void 0,o.modifiers):r==="pointer-up"&&o.downButton===i.native.button&&t.timestamp-o.startTimestamp<=this._maximumClickDelay&&!o.holdEmitted&&this._immediateClick.emit(i),this._pointerState.delete(n),this.stopCapturingPointer(i.native),this._pointerState.size===0&&this._moveHandle.pause())}}const iC={counter:"Ctrl",pan:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown"},zoom:{zoomIn:["=","+"],zoomOut:["-","_"]},rotate:{clockwiseOption1:"a",clockwiseOption2:"A",counterClockwiseOption1:"d",counterClockwiseOption2:"D",resetOption1:"n",resetOption2:"N"}};let Qf=class extends rr{constructor(){super(...arguments),this._handles=new hs}initialize(){const e=()=>{var t;return(t=this.view)==null?void 0:t.ready};this._handles.add([ca(()=>!e(),()=>this._disconnect()),ca(e,()=>this._connect())])}destroy(){this._handles&&(this._handles.removeAll(),this._handles=null),this._disconnect()}get latestPointerType(){var e;return(e=this._inputManager)==null?void 0:e.latestPointerType}get latestPointerLocation(){var e;return(e=this._inputManager)==null?void 0:e.latestPointerLocation}get multiTouchActive(){var e,t;return(t=(e=this._inputManager)==null?void 0:e.multiTouchActive)!=null?t:!1}_disconnect(){this.view.viewEvents.disconnect(),this._inputManager=yn(this._inputManager)}_connect(){const e=this.view.surface,t=new HT(e,this.view.input),r=[new kpt,new Spt,new _pt,new xpt(this.view.navigation),new wpt],i=new Rc({eventSource:t,recognizers:r});i.installHandlers("prevent-context-menu",[new ypt],_h.INTERNAL),i.installHandlers("navigation",[new cpt(this.view),new ept(this.view),new apt(this.view),new wW(this.view),new wW(this.view,[iC.counter]),new Kdt(this.view,"primary"),new npt(this.view,iC.pan),new spt(this.view,iC.zoom),new opt(this.view,iC.rotate),new Zdt(this.view,"secondary"),new Ydt(this.view,"touch")],_h.INTERNAL),this.view.viewEvents.connect(i),this._source=t,this._inputManager=i,Ot(()=>{var n,o;return(o=(n=this.view)==null?void 0:n.navigation)==null?void 0:o.browserTouchPanEnabled},n=>{this._source&&(this._source.browserTouchPanningEnabled=!n)},si)}get test(){return{inputManager:this._inputManager}}};d([f()],Qf.prototype,"view",void 0),d([f()],Qf.prototype,"latestPointerType",null),d([f()],Qf.prototype,"latestPointerLocation",null),d([f()],Qf.prototype,"multiTouchActive",null),Qf=d([se("esri.views.2d.input.MapViewInputManager")],Qf);const Ept=Qf;var EW,TW,AW,Nse={exports:{}};EW=Nse,TW=function(){function e(n,o,s,l,a){t(n,o,s||0,l||n.length-1,a||i)}function t(n,o,s,l,a){for(;l>s;){if(l-s>600){var c=l-s+1,u=o-s+1,p=Math.log(c),h=.5*Math.exp(2*p/3),m=.5*Math.sqrt(p*h*(c-h)/c)*(u-c/2<0?-1:1);t(n,o,Math.max(s,Math.floor(o-u*h/c+m)),Math.min(l,Math.floor(o+(c-u)*h/c+m)),a)}var y=n[o],v=s,_=l;for(r(n,s,o),a(n[l],y)>0&&r(n,s,l);v<_;){for(r(n,v,_),v++,_--;a(n[v],y)<0;)v++;for(;a(n[_],y)>0;)_--}a(n[s],y)===0?r(n,s,_):r(n,++_,l),_<=o&&(s=_+1),o<=_&&(l=_-1)}}function r(n,o,s){var l=n[o];n[o]=n[s],n[s]=l}function i(n,o){return n<o?-1:n>o?1:0}return e},(AW=TW())!==void 0&&(EW.exports=AW);const Tpt=Nse.exports;function IE(e,t){if(!(this instanceof IE))return new IE(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&(typeof t=="function"?this.toBBox=t:this._initFormat(t)),this.clear()}function Apt(e,t,r){if(!r)return t.indexOf(e);for(var i=0;i<t.length;i++)if(r(e,t[i]))return i;return-1}function Kg(e,t){P_(e,0,e.children.length,t,e)}function P_(e,t,r,i,n){n||(n=Oy(null)),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(var o,s=t;s<r;s++)o=e.children[s],$_(n,e.leaf?i(o):o);return n}function $_(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function MW(e,t){return e.minX-t.minX}function IW(e,t){return e.minY-t.minY}function MI(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function nC(e){return e.maxX-e.minX+(e.maxY-e.minY)}function Mpt(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function Ipt(e,t){var r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,n-r)*Math.max(0,o-i)}function II(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function oC(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function Oy(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function PW(e,t,r,i,n){for(var o,s=[t,r];s.length;)(r=s.pop())-(t=s.pop())<=i||(o=t+Math.ceil((r-t)/i/2)*i,Tpt(e,o,t,r,n),s.push(t,o,o,r))}IE.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],i=this.toBBox;if(!oC(e,t))return r;for(var n,o,s,l,a=[];t;){for(n=0,o=t.children.length;n<o;n++)s=t.children[n],oC(e,l=t.leaf?i(s):s)&&(t.leaf?r.push(s):II(e,l)?this._all(s,r):a.push(s));t=a.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!oC(e,t))return!1;for(var i,n,o,s,l=[];t;){for(i=0,n=t.children.length;i<n;i++)if(o=t.children[i],oC(e,s=t.leaf?r(o):o)){if(t.leaf||II(e,s))return!0;l.push(o)}t=l.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var i=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var n=this.data;this.data=i,i=n}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=Oy([]),this},remove:function(e,t){if(!e)return this;for(var r,i,n,o,s=this.data,l=this.toBBox(e),a=[],c=[];s||a.length;){if(s||(s=a.pop(),i=a[a.length-1],r=c.pop(),o=!0),s.leaf&&(n=Apt(e,s.children,t))!==-1)return s.children.splice(n,1),a.push(s),this._condense(a),this;o||s.leaf||!II(s,l)?i?(r++,s=i.children[r],o=!1):s=null:(a.push(s),c.push(r),r=0,i=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:MW,compareMinY:IW,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,i){var n,o=r-t+1,s=this._maxEntries;if(o<=s)return Kg(n=Oy(e.slice(t,r+1)),this.toBBox),n;i||(i=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,i-1))),(n=Oy([])).leaf=!1,n.height=i;var l,a,c,u,p=Math.ceil(o/s),h=p*Math.ceil(Math.sqrt(s));for(PW(e,t,r,h,this.compareMinX),l=t;l<=r;l+=h)for(PW(e,l,c=Math.min(l+h-1,r),p,this.compareMinY),a=l;a<=c;a+=p)u=Math.min(a+p-1,c),n.children.push(this._build(e,a,u,i-1));return Kg(n,this.toBBox),n},_chooseSubtree:function(e,t,r,i){for(var n,o,s,l,a,c,u,p;i.push(t),!t.leaf&&i.length-1!==r;){for(u=p=1/0,n=0,o=t.children.length;n<o;n++)a=MI(s=t.children[n]),(c=Mpt(e,s)-a)<p?(p=c,u=a<u?a:u,l=s):c===p&&a<u&&(u=a,l=s);t=l||t.children[0]}return t},_insert:function(e,t,r){var i=this.toBBox,n=r?e:i(e),o=[],s=this._chooseSubtree(n,this.data,t,o);for(s.children.push(e),$_(s,n);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(n,o,t)},_split:function(e,t){var r=e[t],i=r.children.length,n=this._minEntries;this._chooseSplitAxis(r,n,i);var o=this._chooseSplitIndex(r,n,i),s=Oy(r.children.splice(o,r.children.length-o));s.height=r.height,s.leaf=r.leaf,Kg(r,this.toBBox),Kg(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(r,s)},_splitRoot:function(e,t){this.data=Oy([e,t]),this.data.height=e.height+1,this.data.leaf=!1,Kg(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var i,n,o,s,l,a,c,u;for(a=c=1/0,i=t;i<=r-t;i++)s=Ipt(n=P_(e,0,i,this.toBBox),o=P_(e,i,r,this.toBBox)),l=MI(n)+MI(o),s<a?(a=s,u=i,c=l<c?l:c):s===a&&l<c&&(c=l,u=i);return u},_chooseSplitAxis:function(e,t,r){var i=e.leaf?this.compareMinX:MW,n=e.leaf?this.compareMinY:IW;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,n)&&e.children.sort(i)},_allDistMargin:function(e,t,r,i){e.children.sort(i);var n,o,s=this.toBBox,l=P_(e,0,t,s),a=P_(e,r-t,r,s),c=nC(l)+nC(a);for(n=t;n<r-t;n++)o=e.children[n],$_(l,e.leaf?s(o):o),c+=nC(l);for(n=r-t-1;n>=t;n--)o=e.children[n],$_(a,e.leaf?s(o):o),c+=nC(a);return c},_adjustParentBBoxes:function(e,t,r){for(var i=r;i>=0;i--)$_(t[i],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)e[r].children.length===0?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():Kg(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};class PE{constructor(t,r){this.key=new $s(0,0,0,0),this.bounds=Sd(),this.objectIds=new Set,this.key.set(r);const i=t.getLODInfoAt(this.key);this.tileInfoView=t,this.tileInfoView.getTileBounds(this.bounds,this.key,!0),this.resolution=i.resolution,this.scale=i.scale,this.level=i.level}get id(){return this.key.id}get extent(){return li.fromBounds(this.bounds,this.tileInfoView.tileInfo.spatialReference)}get transform(){return{originPosition:"upperLeft",scale:[this.resolution,this.resolution],translate:[this.bounds[0],this.bounds[3]]}}createChildTiles(){const t=this.key.getChildKeys(),r=rs.acquire();for(let i=0;i<t.length;i++)r[i]=new PE(this.tileInfoView,t[i]);return r}getQuantizationParameters(){return qie.fromJSON({mode:"view",originPosition:"upperLeft",tolerance:this.resolution,extent:{xmin:this.bounds[0],ymin:this.bounds[1],xmax:this.bounds[2],ymax:this.bounds[3],spatialReference:this.tileInfoView.tileInfo.spatialReference}})}}const gf={added:[],removed:[]},PI=new Set,Ppt=new $s(0,0,0,0);class $pt extends Dd{constructor(t){super(),this._tiles=new Map,this._index=IE(9,at("esri-csp-restrictions")?r=>({minX:r.bounds[0],minY:r.bounds[1],maxX:r.bounds[2],maxY:r.bounds[3]}):[".bounds[0]",".bounds[1]",".bounds[2]",".bounds[3]"]),this.tiles=[],this.tileScheme=t}destroy(){this.clear()}clear(){this.tiles.length=0,this._tiles.clear(),this._index.clear()}has(t){return this._tiles.has(t)}get(t){return this._tiles.get(t)}boundsIntersections(t){return this._index.search({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]})}updateTiles(t){const r={added:[],removed:[]};for(const i of t.added)if(!this.has(i)){const n=new PE(this.tileScheme,i);this._tiles.set(i,n),this._index.insert(n),r.added.push(n)}for(const i of t.removed)if(this.has(i)){const n=this.get(i);this._tiles.delete(i),this._index.remove(n),r.removed.push(n)}this.tiles.length=0,this._tiles.forEach(i=>this.tiles.push(i)),(r.added.length||r.removed.length)&&this.emit("update",r)}setViewState(t){const r=this.tileScheme.getTileCoverage(t,0);if(!r)return;const{spans:i,lodInfo:n}=r,{level:o}=n;if(i.length>0)for(const{row:s,colFrom:l,colTo:a}of i)for(let c=l;c<=a;c++){const u=Ppt.set(o,s,n.normalizeCol(c),n.getWorldForColumn(c)).id;if(PI.add(u),!this.has(u)){const p=new PE(this.tileScheme,u);this._tiles.set(u,p),this._index.insert(p),this.tiles.push(p),gf.added.push(p)}}for(let s=this.tiles.length-1;s>=0;s--){const l=this.tiles[s];PI.has(l.id)||(this._tiles.delete(l.id),this.tiles.splice(s,1),this._index.remove(l),gf.removed.push(l))}(gf.added.length||gf.removed.length)&&this.emit("update",gf),s0.pool.release(r),PI.clear(),gf.added.length=0,gf.removed.length=0}}let Opt=0,zp=class extends rr{constructor(){super(...arguments),this.color=new wr([0,255,255]),this.haloOpacity=1,this.fillOpacity=.25}get version(){return Opt++}};d([f({readOnly:!0})],zp.prototype,"version",null),d([f({type:wr})],zp.prototype,"color",void 0),d([f({type:wr})],zp.prototype,"haloColor",void 0),d([f()],zp.prototype,"haloOpacity",void 0),d([f()],zp.prototype,"fillOpacity",void 0),zp=d([se("esri.views.2d.support.HighlightOptions")],zp);const Fse=zp,Lpt=e=>e.includes("Brush");class zse{constructor(){this._names=new Map}begin(t){this._names.has(t)||(this._names.set(t,!1),Lpt(t)&&this.record("Esri.FirstDraw"),performance.mark(`Esri.${t}.Start`))}end(t){this._names.has(t)&&!this._names.get(t)&&(this._names.set(t,!0),performance.mark(`Esri.${t}.End`))}record(t){this._names.has(t)||(this._names.set(t,!0),performance.mark(`Esri.${t}`))}}function Rpt(e,t,r,i,n,o,s,l){let a;e.ignorePadding&&(i={left:0,right:0,top:0,bottom:0}),e.width!=null&&e.height!=null?a=[e.width,e.height]:e.width==null&&e.height!=null?a=[e.height,e.height]:e.width!=null&&e.height==null?a=[e.width,e.width]:e.width==null&&e.height==null&&(a=null);const c=r[0]-(i.left+i.right),u=r[1]-(i.top+i.bottom);let p,h,m=e.area||{x:0,y:0,width:c,height:u};if(a){const y=c/u,v=a[0]/a[1];if(v>y){const _=m.width/v;m={x:m.x,y:Math.round(m.y+(m.height-_)/2),width:m.width,height:Math.round(_)}}else{const _=m.height*v;m={x:Math.round(m.x+(m.width-_)/2),y:m.y,width:Math.round(_),height:m.height}}}else a=[m.width,m.height];return a[0]>m.width?(p=Math.min(a[0]/m.width,t),h=a[0]/m.width/p):(p=1,h=a[0]/m.width),{resolutionScale:p,cropArea:{x:Math.round((m.x+i.left)*p),y:Math.round((m.y+i.top)*p),width:Math.round(m.width*p),height:Math.round(m.height*p)},outputScale:h,format:n,quality:o,children:s,rotation:l}}function Dpt(e,t,r){const{ctx:i,canvas:n}=jse(e,r),o=i.getImageData(0,0,e.width,e.height),s=zpt(n,t);return Vse(n),{dataUrl:s,data:o}}function Npt(e,t){const{ctx:r,canvas:i}=jse(e,t),n=r.getImageData(0,0,e.width,e.height);return Vse(i),n}function jse(e,t){const r=Fpt();t.premultipliedAlpha&&Wpt(e),r.width=e.width,r.height=e.height;const i=r.getContext("2d");return i.putImageData(e,0,0),t.flipY&&Upt(i),{ctx:i,canvas:r}}function Vse(e){e.width=0,e.height=0}function Fpt(){return et($I)&&($I=document.createElement("canvas")),$I}let $I=null;function zpt(e,t){const r=Hpt[t.format],i=t.quality/100;return e.toDataURL(r,i)}function jpt(e,t){const r=Bpt(e),i=qpt[r];return{format:r,quality:Us(t!=null?t:i,0,100)}}function Vpt(e,t){return t/Math.max(e[0],e[1])}function fvt(e,t,r,i=0,n=0,o=e.width-i,s=e.height-n,l=!1){const{data:a}=e,{width:c,height:u,data:p}=t,h=o/c,m=s/u,y=Math.ceil(h/2),v=Math.ceil(m/2),_=e.width;for(let x=0;x<u;x++)for(let S=0;S<c;S++){const C=4*(S+(l?u-x-1:x)*c);let E=0,T=0,w=0,I=0,M=0,L=0;const R=(x+.5)*m;for(let W=Math.floor(x*m);W<(x+1)*m;W++){const z=Math.abs(R-(W+.5))/v,j=(S+.5)*h,U=z*z;for(let Z=Math.floor(S*h);Z<(S+1)*h;Z++){const Q=Math.abs(j-(Z+.5))/y,B=Math.sqrt(U+Q*Q);if(B>=1)continue;let V=2*B*B*B-3*B*B+1;const H=4*(i+Z+(n+W)*_);L+=V*a[H+3],T+=V,!r&&a[H+3]<255&&(V=V*a[H+3]/255),w+=V*a[H],I+=V*a[H+1],M+=V*a[H+2],E+=V}}p[C]=w/E,p[C+1]=I/E,p[C+2]=M/E,p[C+3]=L/T}return t}function Bpt(e){switch(e){case"png":case"jpg":case"jpeg":return e;default:return Gpt}}function Upt(e){e.save(),e.globalCompositeOperation="copy",e.scale(1,-1),e.translate(0,-e.canvas.height),e.drawImage(e.canvas,0,0),e.restore()}function Wpt(e){const t=e.data,r=t.length;for(let i=0;i<r;i+=4){const n=t[i+3];if(n!==255&&n>0){const o=255/n;t[i+0]=t[i+0]*o,t[i+1]=t[i+1]*o,t[i+2]=t[i+2]*o}}}const Hpt={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg"},$W=98,Gpt="png",qpt={png:100,jpg:$W,jpeg:$W};var Sn;function mvt(e,t,r={}){const i=Bse(e);for(;i.length>1;){const n=$E(t,i.shift(),r);if(ue(n))return n}return Ypt(t,i.shift(),r)}function Bse(e){const t=at("esri-force-webgl");if(t===Sn.WEBGL1||t===Sn.WEBGL2)return[t];switch(e){case"2d":return at("mac")&&at("chrome")?[Sn.WEBGL1,Sn.WEBGL2]:[Sn.WEBGL2,Sn.WEBGL1];case"3d":return[Sn.WEBGL2,Sn.WEBGL1]}}function Ypt(e,t,r={}){if(!window.WebGLRenderingContext)return OW(e,Kpt),null;const i=$E(e,t,r);return et(i)&&OW(e,Zpt),i}function $E(e,t,r={}){const i=t===Sn.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];let n=null;for(const o of i){try{n=e.getContext(o,r)}catch{}if(n)break}return n}function OW(e,t){const r=e.parentNode;r&&(r.innerHTML='<table style="background-color: #8CE; width: 100%; height: 100%;"><tr><td align="center"><div style="display: table-cell; vertical-align: middle;"><div style="">'+t+"</div></div></td></tr></table>")}(function(e){e[e.WEBGL1=1]="WEBGL1",e[e.WEBGL2=2]="WEBGL2"})(Sn||(Sn={}));const Kpt='This page requires a browser that supports WebGL.<br/><a href="http://get.webgl.org">Click here to upgrade your browser.</a>',Zpt=`It doesn't appear your computer can support WebGL.<br/><a href="http://get.webgl.org/troubleshooting/">Click here for more information.</a>`;let OI,LI;function Qpt(e){const t=Bse(e);for(;t.length>1;){const r=LW(t.shift());if(r.available)return r}return LW(t.shift())}function LW(e){switch(e){case Sn.WEBGL1:return Jpt();case Sn.WEBGL2:return Xpt()}}function Jpt(){return OI||(OI=rht()),OI}function Xpt(){return LI||(LI=iht()),LI}class Use{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1,this.supportsTextureHalfFloat=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1}}class eht extends Use{constructor(){super(...arguments),this.type=Sn.WEBGL1}}class tht extends Use{constructor(){super(...arguments),this.type=Sn.WEBGL2,this.supportsElementIndexUint=!0,this.supportsStandardDerivatives=!0,this.supportsInstancedArrays=!0,this.supportsTextureFloat=!0,this.supportsTextureHalfFloat=!0}}function Wse(e,t){var o;if(e===Sn.WEBGL1&&typeof WebGLRenderingContext=="undefined"||e===Sn.WEBGL2&&typeof WebGL2RenderingContext=="undefined")return null;const r=document.createElement("canvas");if(!r)return null;let i=$E(r,e,{failIfMajorPerformanceCaveat:!0});if(et(i)&&(i=$E(r,e),ue(i)&&(t.majorPerformanceCaveat=!0)),et(i))return i;if(e===Sn.WEBGL1){const s=(o=i.getParameter(i.VERSION))==null?void 0:o.match(/^WebGL\s+([\d.]*)/);if(s){const l=parseFloat(s[1]);t.available=l>=.94}}else t.available=!0;t.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const n=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return n&&(t.supportsHighPrecisionFragment=n.precision>0),i}function rht(){const e=new eht,t=Wse(Sn.WEBGL1,e);return et(t)||(e.supportsElementIndexUint=t.getExtension("OES_element_index_uint")!==null,e.supportsStandardDerivatives=t.getExtension("OES_standard_derivatives")!==null,e.supportsInstancedArrays=t.getExtension("ANGLE_instanced_arrays")!==null,e.supportsTextureFloat=t.getExtension("OES_texture_float")!==null,e.supportsTextureHalfFloat=t.getExtension("OES_texture_half_float")!==null,e.supportsColorBufferFloat=t.getExtension("WEBGL_color_buffer_float")!==null,e.supportsColorBufferFloatBlend=t.getExtension("EXT_float_blend")!==null,e.supportsColorBufferHalfFloat=t.getExtension("EXT_color_buffer_half_float")!==null),e}function iht(){const e=new tht,t=Wse(Sn.WEBGL2,e);return et(t)||(e.supportsColorBufferFloat=t.getExtension("EXT_color_buffer_float")!==null,e.supportsColorBufferFloatBlend=t.getExtension("EXT_float_blend")!==null,e.supportsColorBufferHalfFloat=e.supportsColorBufferFloat||t.getExtension("EXT_color_buffer_half_float")!==null),e}function nht(e){const t=Qpt(e);if(!t.available)return new ze("webgl:required","WebGL is required but not supported.");if(e==="3d"&&t.majorPerformanceCaveat)return new ze("webgl:major-performance-caveat-detected","Your WebGL implementation doesn't seem to support hardware accelerated rendering. Check your browser settings or if your GPU is in a blocklist.");if(!t.supportsHighPrecisionFragment)return new ze("webgl:high-precision-fragment-required","WebGL support for high precision fragment shaders is required but not supported.");if(!t.supportsVertexShaderSamplers)return new ze("webgl:vertex-shader-samplers-required","WebGL support for vertex shader samplers is required but not supported.");if(t.type===Sn.WEBGL1){if(!t.supportsElementIndexUint)return new ze("webgl:element-index-uint-required","WebGL support for uint vertex indices is required but not supported.");if(!t.supportsStandardDerivatives)return new ze("webgl:standard-derivatives-required","WebGL support for standard derivatives is required but not supported.");if(!t.supportsInstancedArrays)return new ze("webgl:instanced-arrays-required","WebGL support for instanced rendering is required but not supported.")}return null}function oht(e){return e&&"nodeType"in e}function sht(e){return e&&typeof e.render=="function"}const RW={component:"esri-component"};let Jf=class extends rr{constructor(){super(...arguments),this.widget=null}destroy(){this.widget&&this.widget.destroy(),this.node=null}get id(){return this.get("widget.id")||this.get("node.id")}set node(e){const t=this._get("node");e!==t&&(e&&e.classList.add(RW.component),t&&t.classList.remove(RW.component),this._set("node",e))}castNode(e){return e?typeof e=="string"||oht(e)?(this._set("widget",null),oN(e)):(sht(e)&&!e.domNode&&(e.domNode=document.createElement("div")),this._set("widget",e),e.domNode):(this._set("widget",null),null)}};d([f({dependsOn:[]})],Jf.prototype,"id",null),d([f()],Jf.prototype,"node",null),d([Qr("node")],Jf.prototype,"castNode",null),d([f({readOnly:!0})],Jf.prototype,"widget",void 0),Jf=d([se("esri.views.ui.Component")],Jf);const Hk=Jf,lht={left:0,top:0,bottom:0,right:0},Hse={bottom:30,top:15,right:15,left:15},RI="manual",Ko={ui:"esri-ui",corner:"esri-ui-corner",innerContainer:"esri-ui-inner-container",manualContainer:"esri-ui-manual-container",cornerContainer:"esri-ui-corner-container",topLeft:"esri-ui-top-left",topRight:"esri-ui-top-right",bottomLeft:"esri-ui-bottom-left",bottomRight:"esri-ui-bottom-right"};function aht(e){return e&&!e._started&&typeof e.postMixInProperties=="function"&&typeof e.buildRendering=="function"&&typeof e.postCreate=="function"&&typeof e.startup=="function"}function DI(e){const t=e,r=typeof t=="object"&&t!==null&&Object.getPrototypeOf(t);return(r===null||r===Object.prototype)&&("component"in t||"index"in t||"position"in t)?e:null}function NI(e,{top:t,bottom:r,left:i,right:n}){e.style.top=t,e.style.bottom=r,e.style.left=i,e.style.right=n}let Gu=class extends Dd.EventedAccessor{constructor(e){super(e),this._cornerNameToContainerLookup={},this._positionNameToContainerLookup={},this._components=new Array,this._componentToKey=new Map,this._handles=new hs,this.view=null,this._applyViewPadding=()=>{const t=this.container;t&&NI(t,this._toPxPosition(this._getViewPadding()))},this._applyUIPadding=()=>{const t=this._innerContainer;t&&NI(t,this._toPxPosition(this.padding))},this._initContainers()}initialize(){this._handles.add([Ot(()=>{var e;return[(e=this.view)==null?void 0:e.padding,this.container]},this._applyViewPadding,si),Ot(()=>this.padding,this._applyUIPadding,si)])}destroy(){this.container=null;for(const e of this._components)e.destroy();this._components.length=0,this._handles.destroy(),this._componentToKey.clear()}set container(e){const t=this._get("container");e!==t&&(e&&(e.classList.add(Ko.ui),Qet(e),this._attachContainers(e)),t&&(t.classList.remove(Ko.ui),NI(t,{top:"",bottom:"",left:"",right:""}),dre(t)),this._set("container",e))}get height(){const e=this.get("view.height")||0;if(e===0)return e;const t=this._getViewPadding(),r=t.top+t.bottom;return Math.max(e-r,0)}get padding(){return this._get("padding")}set padding(e){this._overrideIfSome("padding",e)}castPadding(e){return typeof e=="number"?{bottom:e,top:e,right:e,left:e}:{...Hse,...e}}get width(){const e=this.get("view.width")||0;if(e===0)return e;const t=this._getViewPadding(),r=t.left+t.right;return Math.max(e-r,0)}add(e,t){let r,i;if(Array.isArray(e))return void e.forEach(o=>this.add(o,t));const n=DI(e);n&&({index:r,position:t,component:e,key:i}=n),t&&typeof t=="object"&&({index:r,key:i,position:t}=t),!e||t&&!this._isValidPosition(t)||this._add(e,t,r,i)}remove(e,t){if(!e)return;if(Array.isArray(e))return e.map(i=>this.remove(i,t));const r=this._find(e);if(r){const i=this._componentToKey;if(i.has(e)&&i.get(e)!==t)return;const n=this._components.indexOf(r);return r.node.parentNode&&r.node.parentNode.removeChild(r.node),this._componentToKey.delete(e),this._components.splice(n,1)[0]}}empty(e){return Array.isArray(e)?e.map(t=>this.empty(t)).reduce((t,r)=>t.concat(r)):(e=e||RI)===RI?Array.prototype.slice.call(this._manualContainer.children).filter(t=>!t.classList.contains(Ko.corner)).map(t=>this.remove(t)):this._isValidPosition(e)?Array.prototype.slice.call(this._cornerNameToContainerLookup[e].children).map(this.remove,this):null}move(e,t){if(Array.isArray(e)&&e.forEach(o=>this.move(o,t)),!e)return;let r;const i=DI(e)||DI(t);if(i&&(r=i.index,t=i.position,e=i.component||e),t&&!this._isValidPosition(t))return;const n=this.remove(e);n&&this.add(n,{position:t,index:r})}find(e){if(!e)return null;const t=this._findById(e);return t&&(t.widget||t.node)}getPosition(e){for(const t in this._positionNameToContainerLookup)if(this._positionNameToContainerLookup[t].contains(e))return t;return null}_add(e,t,r,i){e instanceof Hk||(e=new Hk({node:e})),this._place({component:e,position:t,index:r}),this._components.push(e),i&&this._componentToKey.set(e,i)}_find(e){return e?e instanceof Hk?this._findByComponent(e):typeof e=="string"?this._findById(e):this._findByNode(e.domNode||e):null}_getViewPadding(){return this.get("view.padding")||lht}_attachContainers(e){e.appendChild(this._innerContainer),e.appendChild(this._manualContainer)}_initContainers(){const e=document.createElement("div");e.classList.add(Ko.innerContainer),e.classList.add(Ko.cornerContainer);const t=document.createElement("div");t.classList.add(Ko.innerContainer),t.classList.add(Ko.manualContainer);const r=document.createElement("div");r.classList.add(Ko.topLeft),r.classList.add(Ko.corner),e.appendChild(r);const i=document.createElement("div");i.classList.add(Ko.topRight),i.classList.add(Ko.corner),e.appendChild(i);const n=document.createElement("div");n.classList.add(Ko.bottomLeft),n.classList.add(Ko.corner),e.appendChild(n);const o=document.createElement("div");o.classList.add(Ko.bottomRight),o.classList.add(Ko.corner),e.appendChild(o),this._innerContainer=e,this._manualContainer=t;const s=tu();this._cornerNameToContainerLookup={"top-left":r,"top-right":i,"bottom-left":n,"bottom-right":o,"top-leading":s?i:r,"top-trailing":s?r:i,"bottom-leading":s?o:n,"bottom-trailing":s?n:o},this._positionNameToContainerLookup={manual:t,...this._cornerNameToContainerLookup}}_isValidPosition(e){return!!this._positionNameToContainerLookup[e]}_place(e){const t=e.component,r=e.position||RI,i=e.index,n=this._positionNameToContainerLookup[r],o=i>-1;if(aht(t.widget)&&t.widget.startup(),!o)return void n.appendChild(t.node);const s=Array.prototype.slice.call(n.children);if(i===0)return void(n.firstChild?yB(t.node,n.firstChild):n.appendChild(t.node));i>=s.length?n.appendChild(t.node):yB(t.node,s[i])}_toPxPosition(e){return{top:this._toPxUnit(e.top),left:this._toPxUnit(e.left),right:this._toPxUnit(e.right),bottom:this._toPxUnit(e.bottom)}}_toPxUnit(e){return e===0?"0":e+"px"}_findByComponent(e){let t,r=null;return this._components.some(i=>(t=i===e,t&&(r=i),t)),r}_findById(e){let t,r=null;return this._components.some(i=>(t=i.id===e,t&&(r=i),t)),r}_findByNode(e){let t,r=null;return this._components.some(i=>(t=i.node===e,t&&(r=i),t)),r}};d([f()],Gu.prototype,"container",null),d([f()],Gu.prototype,"height",null),d([f({value:Hse})],Gu.prototype,"padding",null),d([Qr("padding")],Gu.prototype,"castPadding",null),d([f()],Gu.prototype,"view",void 0),d([f()],Gu.prototype,"width",null),Gu=d([se("esri.views.ui.UI")],Gu);const cht=Gu;function DW(e,t){return e&&"copyright"in e&&(!t||typeof e.originOf=="function"&&e.originOf("copyright")==="user")}function uht(e,t){return e.length!==t.length||e.some((r,i)=>r.text!==t[i].text)}function sC(e,t,r){!r||!t||e.find(i=>i.layerView===t&&i.text===r)||e.push({text:r,layerView:t})}function dht(e){return e.type==="bing-maps"}const ap=[];let Ly=class extends mE{constructor(e){super(e),this._clear=()=>{this._fetchedAttributionData.clear(),this._pendingAttributions.clear(),this.handles.remove("suspension"),this.notifyChange("state")},this._pendingAttributions=new Set,this._fetchedAttributionData=new Map,this.items=new dr,this.view=null,this._allLayerViewsChange=t=>{this.handles.remove("suspension");const r=this.get("view.allLayerViews");r&&this.handles.add(r.map(i=>Ot(()=>{var n;return[i.suspended,(n=i.layer)==null?void 0:n.attributionVisible]},()=>this._updateAttributionItems())),"suspension"),t&&t.removed&&t.removed.forEach(i=>{this._pendingAttributions.delete(i),this._fetchedAttributionData.delete(i)}),this._updateAttributionItems()},this.handles.add([Cl(()=>{var t;return(t=this.view)==null?void 0:t.allLayerViews},"change",t=>this._allLayerViewsChange(t),{onListenerAdd:()=>this._allLayerViewsChange(),onListenerRemove:this._clear}),ca(()=>{var t;return((t=this.view)==null?void 0:t.stationary)===!0},()=>this._updateAttributionItems())])}destroy(){this.view=null,this._fetchedAttributionData.clear(),this._pendingAttributions.clear(),this.items.removeAll()}get state(){return this.get("view.ready")?this._pendingAttributions.size>0?"loading":"ready":"disabled"}_updateAttributionItems(){const e=this.get("view.allLayerViews");ap.length=0,e?(e.forEach(t=>{var n;if(t.suspended||!((n=t.layer)!=null&&n.attributionVisible))return;const r=t.layer;if(DW(r,"user"))return void sC(ap,t,r.copyright);if(r.hasAttributionData){if(this._fetchedAttributionData.has(t)){const o=this._fetchedAttributionData.get(t);return void(o?sC(ap,t,this._getDynamicAttribution(o,this.view,r)):DW(r)&&sC(ap,t,r.copyright))}return void this._fetchAttributionData(t)}const i=r.get("portalItem.accessInformation");sC(ap,t,i||r.copyright)}),uht(this.items,ap)&&(this.items.removeAll(),this.items.addMany(ap)),ap.length=0,this.notifyChange("state")):this._clear()}async _fetchAttributionData(e){if(this._pendingAttributions.has(e))return;this._pendingAttributions.add(e);const t=await bT(e.layer.fetchAttributionData());if(this._pendingAttributions.has(e)){const r=t.ok?this._createContributionIndex(t.value,dht(e.layer)):null;this._pendingAttributions.delete(e),this._fetchedAttributionData.set(e,r)}this._updateAttributionItems()}_createContributionIndex(e,t){const r=e.contributors,i={};if(!r)return i;for(let n=0;n<r.length;n++){const o=r[n],s=o.coverageAreas;if(!s)return;for(const l of s){const a=l.bbox,c=l.zoomMin-(t&&l.zoomMin?1:0),u=l.zoomMax-(t&&l.zoomMax?1:0),p={xmin:a[1],ymin:a[0],xmax:a[3],ymax:a[2],spatialReference:gr.WGS84},h={extent:yh(p),attribution:o.attribution||"",score:l.score!=null?l.score:100,id:n};for(let m=c;m<=u;m++)i[m]=i[m]||[],i[m].push(h)}}return i.maxKey=Math.max.apply(null,Object.keys(i)),i}_getDynamicAttribution(e,t,r){const{extent:i,scale:n}=t;let o=r.tileInfo.scaleToZoom(n);if(o=Math.min(e.maxKey,Math.round(o)),!i||o==null||o<=-1)return"";const s=e[o],l=q3(i.center.clone().normalize(),t.spatialReference),a={};return s?s.filter(c=>{const u=!a[c.id]&&l&&Y3(c.extent,l);return u&&(a[c.id]=!0),u}).sort((c,u)=>u.score-c.score||c.objectId-u.objectId).map(c=>c.attribution).join(", "):""}};d([f({readOnly:!0,type:dr})],Ly.prototype,"items",void 0),d([f({readOnly:!0})],Ly.prototype,"state",null),d([f()],Ly.prototype,"view",void 0),Ly=d([se("esri.widgets.Attribution.AttributionViewModel")],Ly);const Gse=Ly,cp={base:"esri-attribution esri-widget",poweredBy:"esri-attribution__powered-by",sources:"esri-attribution__sources",open:"esri-attribution--open",sourcesOpen:"esri-attribution__sources--open",link:"esri-attribution__link",widgetIcon:"esri-icon-description",interactive:"esri-interactive"};let es=class extends Ho{constructor(e,t){super(e,t),this._isOpen=!1,this._attributionTextOverflowed=!1,this._prevSourceNodeHeight=0,this._resizeObserver=new ResizeObserver(r=>r.forEach(({target:i})=>this._checkSourceTextOverflow(i))),this.iconClass=cp.widgetIcon,this.itemDelimiter=" | ",this.messages=null,this.viewModel=new Gse}initialize(){this.addHandles(Cl(()=>{var e;return(e=this.viewModel)==null?void 0:e.items},"change",()=>this.scheduleRender()))}destroy(){var e;(e=this._resizeObserver)==null||e.disconnect()}get _isInteractive(){return this._isOpen||this._attributionTextOverflowed}get attributionText(){return this.viewModel.items.reduce((e,t)=>(e.includes(t.text)||e.push(t.text),e),[]).join(this.itemDelimiter)}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}render(){const e={[cp.open]:this._isOpen};return Ue("div",{bind:this,class:this.classes(cp.base,e),dir:"ltr",onclick:this._toggleState,onkeydown:this._toggleState},this.renderSourcesNode(),this.renderPoweredBy())}renderPoweredBy(){return Ue("div",{class:cp.poweredBy},"Powered by"," ",Ue("a",{class:cp.link,href:"http://www.esri.com/",target:"_blank",rel:"noreferrer"},"Esri"))}renderSourcesNode(){const e=this._isOpen,t=this._isInteractive,r=t?"0":"",{attributionText:i}=this,n={[cp.sourcesOpen]:e,[cp.interactive]:t};return Ue("div",{afterCreate:this._afterSourcesNodeCreate,bind:this,class:this.classes(cp.sources,n),innerHTML:i,tabindex:r})}_afterSourcesNodeCreate(e){this._prevSourceNodeHeight=e.clientWidth,this._resizeObserver.observe(e)}_checkSourceTextOverflow(e){let t=!1;const{clientHeight:r,clientWidth:i,scrollWidth:n}=e,o=n>i,s=this._attributionTextOverflowed!==o;if(this._attributionTextOverflowed=o,s&&(t=!0),this._isOpen){const l=r<this._prevSourceNodeHeight;this._prevSourceNodeHeight=r,l&&(this._isOpen=!1,t=!0)}t&&this.scheduleRender()}_toggleState(){this._isInteractive&&(this._isOpen=!this._isOpen)}};d([f()],es.prototype,"_isOpen",void 0),d([f()],es.prototype,"_isInteractive",null),d([f()],es.prototype,"_attributionTextOverflowed",void 0),d([f()],es.prototype,"_prevSourceNodeHeight",void 0),d([f({readOnly:!0,dependsOn:["viewModel.items.length","itemDelimiter"]})],es.prototype,"attributionText",null),d([f()],es.prototype,"iconClass",void 0),d([f()],es.prototype,"itemDelimiter",void 0),d([f()],es.prototype,"label",null),d([f(),Bo("esri/widgets/Attribution/t9n/Attribution")],es.prototype,"messages",void 0),d([f()],es.prototype,"view",null),d([f({type:Gse})],es.prototype,"viewModel",void 0),d([Ul()],es.prototype,"_toggleState",null),es=d([se("esri.widgets.Attribution")],es);const pht=es,hht="esri.widgets.CompassViewModel";let Xf=class extends Uoe(rr){constructor(e){super(e),this._handles=new hs,this.orientation={x:0,y:0,z:0},this.view=null,this._updateForCamera=this._updateForCamera.bind(this),this._updateForRotation=this._updateForRotation.bind(this),this._updateRotationWatcher=this._updateRotationWatcher.bind(this)}initialize(){this._handles.add(Ot(()=>this.view,this._updateRotationWatcher,si))}destroy(){this._handles=Dn(this._handles),this.view=null}get canShowNorth(){const e=this.get("view.spatialReference");return!(!e||!e.isWebMercator&&!e.isGeographic)}get state(){return this.get("view.ready")?this.canShowNorth?"compass":"rotation":"disabled"}reset(){if(!this.get("view.ready"))return;const e={};this.view.type==="2d"?e.rotation=0:e.heading=0,this.callGoTo({target:e})}_updateForRotation(e){e!=null&&(this.orientation={z:e})}_updateForCamera(e){if(!e)return;const t=-e.heading;this.orientation={x:0,y:0,z:t}}_updateRotationWatcher(e){this._handles.removeAll(),e&&this._handles.add(e.type==="2d"?Ot(()=>e==null?void 0:e.rotation,this._updateForRotation,si):Ot(()=>e==null?void 0:e.camera,this._updateForCamera,si))}};d([f({readOnly:!0})],Xf.prototype,"canShowNorth",null),d([f()],Xf.prototype,"orientation",void 0),d([f({readOnly:!0})],Xf.prototype,"state",null),d([f()],Xf.prototype,"view",void 0),Xf=d([se(hht)],Xf);const qse=Xf,up={base:"esri-compass esri-widget--button esri-widget",text:"esri-icon-font-fallback-text",icon:"esri-compass__icon",rotationIcon:"esri-icon-dial",northIcon:"esri-icon-compass",widgetIcon:"esri-icon-locate-circled",interactive:"esri-interactive",disabled:"esri-disabled"};let zc=class extends Ho{constructor(e,t){super(e,t),this.iconClass=up.widgetIcon,this.messages=null,this.viewModel=new qse}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}reset(){return this.viewModel.reset()}render(){const{orientation:e,state:t}=this.viewModel,r=t==="disabled",i=(t==="rotation"?"rotation":"compass")=="compass",n=r?-1:0,o={[up.disabled]:r,[up.interactive]:!r},s={[up.northIcon]:i,[up.rotationIcon]:!i},{messages:l}=this;return Ue("div",{bind:this,class:this.classes(up.base,o),onclick:this._reset,onkeydown:this._reset,role:"button",tabIndex:n,"aria-label":l.reset,title:l.reset},Ue("span",{"aria-hidden":"true",class:this.classes(up.icon,s),styles:this._toRotationTransform(e)}),Ue("span",{class:up.text},l.reset))}_reset(){this.viewModel.reset()}_toRotationTransform(e){return{transform:`rotateZ(${e.z}deg)`}}};d([f()],zc.prototype,"goToOverride",null),d([f()],zc.prototype,"iconClass",void 0),d([f()],zc.prototype,"label",null),d([f(),Bo("esri/widgets/Compass/t9n/Compass")],zc.prototype,"messages",void 0),d([f()],zc.prototype,"view",null),d([f({type:qse})],zc.prototype,"viewModel",void 0),d([Ul()],zc.prototype,"_reset",null),zc=d([se("esri.widgets.Compass")],zc);const fht=zc;let Ry=class extends rr{constructor(e){super(e),this.navigationMode="pan",this.view=null}initialize(){this.own(ca(()=>{var e;return(e=this.view)==null?void 0:e.inputManager},()=>this._setNavigationMode()))}destroy(){this.view=null}get state(){return this.get("view.ready")&&this.view.type==="3d"?"ready":"disabled"}toggle(){this.state!=="disabled"&&(this.navigationMode=this.navigationMode!=="pan"?"pan":"rotate",this._setNavigationMode())}_setNavigationMode(){this.get("view.inputManager").primaryDragAction=this.navigationMode==="pan"?"pan":"rotate"}};d([f({readOnly:!0})],Ry.prototype,"state",null),d([f()],Ry.prototype,"navigationMode",void 0),d([f()],Ry.prototype,"view",void 0),Ry=d([se("esri.widgets.NavigationToggleViewModel")],Ry);const Yse=Ry,Pl={base:"esri-navigation-toggle esri-widget",button:"esri-navigation-toggle__button esri-widget--button",activeButton:"esri-navigation-toggle__button--active",panButton:"esri-navigation-toggle__button--pan",rotateButton:"esri-navigation-toggle__button--rotate",isLayoutHorizontal:"esri-navigation-toggle--horizontal",rotationIcon:"esri-icon-rotate",panIcon:"esri-icon-pan",widgetIcon:"esri-icon-pan2",disabled:"esri-disabled"};let jc=class extends Ho{constructor(e,t){super(e,t),this.iconClass=Pl.widgetIcon,this.messages=null,this.viewModel=new Yse}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}set layout(e){e!=="horizontal"&&(e="vertical"),this._set("layout",e)}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}toggle(){return this.viewModel.toggle()}render(){const e=this.get("viewModel.state")==="disabled",t=this.get("viewModel.navigationMode")==="pan",r={[Pl.disabled]:e,[Pl.isLayoutHorizontal]:this.layout==="horizontal"},i={[Pl.activeButton]:t},n={[Pl.activeButton]:!t},o=e?-1:0,s=this.messages.toggle;return Ue("div",{bind:this,class:this.classes(Pl.base,r),onclick:this._toggle,onkeydown:this._toggle,tabIndex:o,"aria-label":s,title:s},Ue("div",{class:this.classes(Pl.button,Pl.panButton,i)},Ue("span",{class:Pl.panIcon})),Ue("div",{class:this.classes(Pl.button,Pl.rotateButton,n)},Ue("span",{class:Pl.rotationIcon})))}_toggle(){this.toggle()}};d([f()],jc.prototype,"iconClass",void 0),d([f()],jc.prototype,"label",null),d([f({value:"vertical"})],jc.prototype,"layout",null),d([f(),Bo("esri/widgets/NavigationToggle/t9n/NavigationToggle")],jc.prototype,"messages",void 0),d([f()],jc.prototype,"view",null),d([f({type:Yse})],jc.prototype,"viewModel",void 0),d([Ul()],jc.prototype,"_toggle",null),jc=d([se("esri.widgets.NavigationToggle")],jc);const mht=jc,Pb={button:"esri-widget--button esri-widget",disabled:"esri-disabled",interactive:"esri-interactive",iconText:"esri-icon-font-fallback-text",icon:"esri-icon"};let jp=class extends Ho{constructor(){super(...arguments),this.enabled=!0,this.iconClass="",this.title=""}render(){const e=this.enabled?0:-1,t={[Pb.disabled]:!this.enabled,[Pb.interactive]:this.enabled},r={[this.iconClass]:!!this.iconClass};return Ue("div",{bind:this,class:this.classes(Pb.button,t),onclick:this._triggerAction,onkeydown:this._triggerAction,role:"button",tabIndex:e,title:this.title},Ue("span",{"aria-hidden":"true",role:"presentation",class:this.classes(Pb.icon,r)}),Ue("span",{class:Pb.iconText},this.title))}_triggerAction(){this.action.call(this)}};d([f()],jp.prototype,"action",void 0),d([f()],jp.prototype,"enabled",void 0),d([f()],jp.prototype,"iconClass",void 0),d([f()],jp.prototype,"title",void 0),d([Ul()],jp.prototype,"_triggerAction",null),jp=d([se("esri.widgets.IconButton")],jp);const NW=jp;let Dy=class extends rr{get canZoomIn(){if(!this.get("view.ready"))return!1;const e=this.get("view.animation.target.scale")||this.get("view.scale"),t=this.get("view.constraints.effectiveMaxScale");return t===0||e>t}get canZoomOut(){if(!this.get("view.ready"))return!1;const e=this.get("view.animation.target.scale")||this.get("view.scale"),t=this.get("view.constraints.effectiveMinScale");return t===0||e<t}};d([f({readOnly:!0})],Dy.prototype,"canZoomIn",null),d([f({readOnly:!0})],Dy.prototype,"canZoomOut",null),d([f()],Dy.prototype,"view",void 0),Dy=d([se("esri.widgets.Zoom.ZoomConditions2D")],Dy);const ght=Dy;let Ny=class extends rr{get canZoomIn(){return!!this.view.ready}get canZoomOut(){return!!this.view.ready}};d([f({readOnly:!0})],Ny.prototype,"canZoomIn",null),d([f({readOnly:!0})],Ny.prototype,"canZoomOut",null),d([f()],Ny.prototype,"view",void 0),Ny=d([se("esri.widgets.Zoom.ZoomConditions3D")],Ny);const yht=Ny;let Vp=class extends rr{constructor(e){super(e)}destroy(){this.view=null}get canZoomIn(){return ue(this._zoomConditions)&&this._zoomConditions.canZoomIn}get canZoomOut(){var e;return ue(this._zoomConditions)&&((e=this._zoomConditions)==null?void 0:e.canZoomOut)}get state(){var e;return(e=this.view)!=null&&e.ready?"ready":"disabled"}set view(e){e?e.type==="2d"?this._zoomConditions=new ght({view:e}):e.type==="3d"&&(this._zoomConditions=new yht({view:e})):this._zoomConditions=null,this._set("view",e)}zoomIn(){if(!this.canZoomIn)return;const e=this.view;e.type==="2d"?e.mapViewNavigation.zoomIn():av(e.goTo({zoomFactor:2}))}zoomOut(){if(!this.canZoomOut)return;const e=this.view;e.type==="2d"?e.mapViewNavigation.zoomOut():av(e.goTo({zoomFactor:.5}))}};d([f()],Vp.prototype,"_zoomConditions",void 0),d([f()],Vp.prototype,"canZoomIn",null),d([f()],Vp.prototype,"canZoomOut",null),d([f({readOnly:!0})],Vp.prototype,"state",null),d([f()],Vp.prototype,"view",null),Vp=d([se("esri.widgets.Zoom.ZoomViewModel")],Vp);const Kse=Vp,$b={base:"esri-zoom esri-widget",horizontalLayout:"esri-zoom--horizontal",zoomInIcon:"esri-icon-plus",zoomOutIcon:"esri-icon-minus",widgetIcon:"esri-icon-zoom-in-magnifying-glass"};let qu=class extends Ho{constructor(e,t){super(e,t),this.iconClass=$b.widgetIcon,this.messages=null,this.viewModel=new Kse}initialize(){this._zoomInButton=new NW({action:this.zoomIn.bind(this),iconClass:$b.zoomInIcon}),this._zoomOutButton=new NW({action:this.zoomOut.bind(this),iconClass:$b.zoomOutIcon})}destroy(){this._zoomInButton=yn(this._zoomInButton),this._zoomOutButton=yn(this._zoomOutButton)}get label(){var e,t;return(t=(e=this.messages)==null?void 0:e.widgetLabel)!=null?t:""}set label(e){this._overrideIfSome("label",e)}set layout(e){e!=="horizontal"&&(e="vertical"),this._set("layout",e)}set view(e){this.viewModel.view=e}get view(){return this.viewModel.view}render(){const e=this.viewModel,t={[$b.horizontalLayout]:this.layout==="horizontal"},{canZoomIn:r,canZoomOut:i}=e;this._zoomInButton.enabled=r,this._zoomOutButton.enabled=i;const{zoomIn:n,zoomOut:o}=this.messages;return this._zoomInButton.title=n,this._zoomOutButton.title=o,Ue("div",{class:this.classes($b.base,t)},this._zoomInButton.render(),this._zoomOutButton.render())}zoomIn(){return this.viewModel.zoomIn()}zoomOut(){return this.viewModel.zoomOut()}};d([f()],qu.prototype,"iconClass",void 0),d([f()],qu.prototype,"label",null),d([f({value:"vertical"})],qu.prototype,"layout",null),d([f(),Bo("esri/widgets/Zoom/t9n/Zoom")],qu.prototype,"messages",void 0),d([f()],qu.prototype,"view",null),d([f({type:Kse})],qu.prototype,"viewModel",void 0),qu=d([se("esri.widgets.Zoom")],qu);const vht=qu;function bht(e){return e&&e.view!==void 0}let Gk=class extends cht{constructor(e){super(e),this._defaultPositionLookup={attribution:"manual",compass:"top-left","navigation-toggle":"top-left",zoom:"top-left"},this.components=[]}initialize(){this._handles.add([Ot(()=>this.components,this._componentsWatcher.bind(this),si),Ot(()=>this.view,this._updateViewAwareWidgets.bind(this),si)])}_add(e,t,r,i){if(typeof e=="string"&&this._defaultPositionLookup[e]){if(this._find(e))return;e=this._createComponent(e)}super._add(e,t,r,i)}_removeComponents(e){e.forEach(t=>{const r=this._find(t);r&&(this.remove(r),r.destroy())})}_updateViewAwareWidgets(e){this.components.forEach(t=>{const r=this._find(t),i=r&&r.widget;bht(i)&&(i.view=e)})}_componentsWatcher(e,t){this._removeComponents(t),this._addComponents(e),this._adjustPadding(e)}_adjustPadding(e){if(!e.includes("attribution")&&!this._isOverridden("padding")){const{top:t}=this.padding;this.padding=t}}_addComponents(e){this.constructed&&e.forEach(t=>this.add(this._createComponent(t),this._defaultPositionLookup[t]))}_createComponent(e){const t=this._createWidget(e);if(t)return new Hk({id:e,node:t})}_createWidget(e){return e==="attribution"?this._createAttribution():e==="compass"?this._createCompass():e==="navigation-toggle"?this._createNavigationToggle():e==="zoom"?this._createZoom():void 0}_createAttribution(){return new pht({view:this.view})}_createCompass(){return new fht({view:this.view})}_createNavigationToggle(){return new mht({view:this.view})}_createZoom(){return new vht({view:this.view})}};d([f()],Gk.prototype,"components",void 0),Gk=d([se("esri.views.ui.DefaultUI")],Gk);const _ht=Gk;let qk=class extends _ht{constructor(e){super(e),this.components=["attribution","zoom"]}};d([f()],qk.prototype,"components",void 0),qk=d([se("esri.views.ui.2d.DefaultUI2D")],qk);const Zse=qk;var CL;let Yk=CL=class extends xt{constructor(e){super(e),this.color=new wr([0,0,0,1])}clone(){return new CL(Ge({color:this.color}))}};d([f({type:wr,json:{write:!0}})],Yk.prototype,"color",void 0),Yk=CL=d([se("esri.webmap.background.ColorBackground")],Yk);const wht=Yk;let Qse,Jse,Xse,ele,tle,rle;async function xht(){const[,{GraphicsView2D:e,GraphicContainer:t,LabelManager:r,MapViewNavigation:i,MagnifierView2D:n,Stage:o}]=await Promise.all([ut(()=>import("./webglDeps.3a22daf6.js"),["assets/webglDeps.3a22daf6.js","assets/VertexArrayObject.729879be.js","assets/Texture.8e8dfb11.js","assets/enums.2d9e6f64.js","assets/ProgramTemplate.83fdf5b6.js","assets/programUtils.7e7bf03b.js"]),ut(()=>import("./mapViewDeps.e506022c.js"),["assets/mapViewDeps.e506022c.js","assets/_commonjsHelpers.773c2c82.js","assets/imageutils.2ce8d042.js","assets/utils.eb2c3fd5.js","assets/Utils.e8554a0e.js","assets/enums.0295eb81.js","assets/enums.2d9e6f64.js","assets/Texture.8e8dfb11.js","assets/VertexElementDescriptor.1fdca6da.js","assets/MaterialKey.bbaab8f1.js","assets/BufferPool.8a9a4ff1.js","assets/WGLContainer.bbd0fcb8.js","assets/pixelUtils.f4eba4af.js","assets/VertexArrayObject.729879be.js","assets/ProgramTemplate.83fdf5b6.js","assets/StyleDefinition.d56936e4.js","assets/config.82550349.js","assets/GeometryUtils.51c4032a.js","assets/earcut.afc1d357.js","assets/enums.54326430.js","assets/programUtils.7e7bf03b.js","assets/RenderingContext.f389fdc6.js","assets/OrderIndependentTransparency.4d1575c0.js","assets/floatRGBA.c5518572.js","assets/ExpandedCIM.64535143.js","assets/BidiEngine.d8bba3fc.js","assets/Rect.95b0fd2e.js","assets/quantizationUtils.4f3ed95a.js","assets/GeometryUtils.4f19e772.js","assets/rasterizingUtils.b3483176.js","assets/Matcher.d9c9cebd.js","assets/visualVariablesUtils.4b17aac7.js","assets/visualVariablesUtils.88ca310b.js","assets/tileUtils.a1e62810.js","assets/TileClipper.7297efa2.js","assets/Geometry.d049a63c.js","assets/devEnvironmentUtils.d8d0484c.js","assets/CircularArray.415a06a8.js","assets/imageUtils.753f41b1.js","assets/ComputedAttributeStorage.dc79b701.js","assets/centroid.0c969b82.js","assets/BaseGraphicContainer.8f76c915.js","assets/normalizeUtilsSync.f896b328.js","assets/projectionSupport.2b4a8796.js","assets/json.879c9adc.js","assets/FeatureContainer.8e5dd053.js","assets/TileContainer.282da507.js","assets/schemaUtils.7eee5b9f.js","assets/createSymbolSchema.30665f63.js","assets/util.d5f4af7b.js","assets/vec3f32.1121a836.js","assets/GraphicContainer.ec6ac6c0.js","assets/requestImageUtils.06d9d84a.js"])]);Jse=e,Xse=t,ele=r,tle=i,rle=n,Qse=o}const FW=160;function Cht(e){return e&&e.declaredClass==="esri.Viewpoint"}let Pr=class extends wQe(nct(oct(Kct))){constructor(e){super(e),this._magnifierView=null,this._stage=null,this._resolveWhenReady=[],this.rootLayerViews=new Jv({getCollections:()=>{var t,r;return[(t=this.basemapView)==null?void 0:t.baseLayerViews,this.layerViews,(r=this.basemapView)==null?void 0:r.referenceLayerViews]},getChildrenFunction:()=>null}),this.featuresTilingScheme=null,this.fullOpacity=1,this.graphicsView=null,this.labelManager=null,this.mapViewNavigation=null,this.renderingOptions={samplingMode:"dynamic",edgeLabelsVisible:!0,labelsAnimationTime:125,labelCollisionsEnabled:!0},this.rendering=!1,this.supersampleScreenshotsEnabled=!1,this.supportsGround=!1,this._stationaryTimer=null,this.frameTask=new Xut(this),this._pePromise=null,this.floors=new dr,this.highlightOptions=new Fse,this.inputManager=new Ept({view:this}),this.map=null,this.resizeAlign="center",this.spatialReferenceLocked=!1,this.timeline=new zse,this.type="2d",this.ui=new Zse,this._pixelFormat={flipY:!0,premultipliedAlpha:!0},this.constraints=new Sse,this.padding={top:0,right:0,bottom:0,left:0},this.handles.add([Ot(()=>this.viewpoint,()=>{this._lastStationaryEventTimestamp=performance.now(),this._flipStationary(FW)},gg),this.on("resize",t=>this._resizeHandler(t)),Ot(()=>{var t;return(t=this.animationManager)==null?void 0:t.animation},t=>{this.animation=t})]),NKe()}destroy(){this._set("preconditionsReady",!1),this._gotoTask=this.frameTask=null,this.rootLayerViews.destroy(),this.inputManager.destroy(),this._set("inputManager",null)}get graphicsTileStore(){return new $pt(this.featuresTilingScheme)}get initialExtentRequired(){var s;const{scale:e,constraints:t,center:r,viewpoint:i,extent:n}=this;let o=this.zoom;return!(this.map&&"initialViewProperties"in this.map&&((s=this.map.initialViewProperties)==null?void 0:s.viewpoint))&&!n&&(t!=null&&t.effectiveLODs||(o=-1),(!r||e===0&&o===-1)&&(!i||!ue(i.targetGeometry)||i.targetGeometry.type!=="extent"&&!i.scale))}get resourceManager(){return this._stage.resourceManager}get textureManager(){return this._stage.painter.textureManager}get _defaultsFromMapSettings(){return{required:{tileInfo:!0,heightModelInfo:!1,extent:!1},requiresExtentInSpatialReference:this.spatialReferenceLocked}}get _projectionEngineLoaded(){return!!yg()||(this._pePromise||(this._pePromise=vg().finally(()=>{this._pePromise=null})),!1)}get typeSpecificPreconditionsReady(){const e=this._getDefaultViewpoint();if(!e)return!1;const t=this.spatialReference,r=e.targetGeometry;return!!Oh(r.spatialReference,t)||this._projectionEngineLoaded}set animation(e){const t=this._get("animation");if(e===t)return;if(t&&t.stop(),!e||e.isFulfilled())return void this._set("animation",null);this._set("animation",e),this.frameTask.animationInProgress=!0;const r=()=>{var i;e===this._get("animation")&&(this._set("animation",null),(i=this.frameTask)==null||i.requestFrame()),this.frameTask&&(this.frameTask.animationInProgress=!1)};e.when(r,r)}get background(){return Sht(this.map)?this.map.initialViewProperties.background:null}set background(e){this._override("background",e)}get center(){if(!this.ready)return this._get("center");const{center:e,spatialReference:t}=this.state.paddedViewState;return new Nr({x:e[0],y:e[1],spatialReference:t})}set center(e){if(e==null)return;if(!this.ready)return this._set("center",e),void this.notifyChange("initialExtentRequired");let t;try{t=this._project(e,this.spatialReference)}catch(i){return void ft.getLogger(this.declaredClass).error(new ze("mapview:invalid-center","could not project the value in the view's spatial reference",{input:e,error:i}))}const r=this.viewpoint;mL(r,r,t),this.viewpoint=r}set constraints(e){const t=this._get("constraints");t&&(this.handles.remove("map-view-constraints"),t.destroy()),this._set("constraints",e),e&&(e.view=this,this.ready&&(this.state.viewpoint=e.fit(this.state.paddedViewState.viewpoint)),this.handles.add(Ot(()=>e.version,()=>{this.ready&&this.state&&(this.state.viewpoint=e.fit(this.state.paddedViewState.viewpoint))},gg),"map-view-constraints"))}get extent(){return this.ready?this.state.paddedViewState.extent.clone():this._get("extent")}set extent(e){if(e==null)return;if(!e.width||!e.height)return void ft.getLogger(this.declaredClass).error(new ze("mapview:invalid-extent","invalid extent size"));if(!this.ready)return this._set("extent",e),this._set("center",null),this._set("viewpoint",null),this._set("scale",0),this._set("zoom",-1),void this.notifyChange("initialExtentRequired");let t;try{t=this._project(e,this.spatialReference)}catch(i){return void ft.getLogger(this.declaredClass).error(new ze("mapview:invalid-extent","could not project the value in the view's spatial reference",{error:i}))}const r=this.viewpoint;Nut(r,r,t,this.size,{constraints:this.constraints}),this.viewpoint=r}get padding(){return this.ready?this.state.padding:this._get("padding")}set padding(e){this.ready?(this.state.padding=e,this._set("padding",this.state.padding)):this._set("padding",e)}get resolution(){return this.state?this.state.resolution:0}get rotation(){return this.ready?this.state.rotation:this._get("rotation")}set rotation(e){if(isNaN(e))return;if(!this.ready)return void this._set("rotation",e);const t=this.viewpoint;Kut(t,t,e),this.viewpoint=t}get scale(){return this.ready?this.state.scale:this._get("scale")}set scale(e){if(!e||isNaN(e))return;if(!this.ready){this._set("scale",e),this._set("zoom",-1);const r=this._get("extent");return r&&(this._set("extent",null),this._set("center",r.center)),void this.notifyChange("initialExtentRequired")}const t=this.viewpoint;fW(t,t,e),this.viewpoint=t}get stationary(){return!(this.animation||this.navigating||this.resizing||this._stationaryTimer)}get updating(){var t,r,i;const e=!this.destroyed&&(!this.layerViewManager||!this.labelManager||!this.graphicsView||this.layerViewManager.updating===!0||this.labelManager.updating===!0||this.graphicsView.updating===!0||this.allLayerViews.some(n=>!n.destroyed&&!("layerViews"in n)&&n.updating===!0));if(at("esri-2d-log-updating")){const n=this.allLayerViews.reduce((o,s)=>({...o,[s.layer.id]:!s.destroyed&&!("layerViews"in s)&&s.updating}),{});console.log(`Updating MapView: ${e}
- -> Null LayerViewManager: ${!this.layerViewManager}
- -> Null LabelManager: ${!this.labelManager}
- -> Null GraphicsView: ${!this.graphicsView}
- -> layerViewManager.updating: ${(t=this.layerViewManager)==null?void 0:t.updating}
- -> labelManager.updating: ${(r=this.labelManager)==null?void 0:r.updating}
- -> graphicsView.updating: ${(i=this.graphicsView)==null?void 0:i.updating}
- -> allLayerViews: ${JSON.stringify(n)}
- `)}return e}get viewpoint(){if(!this.ready)return this._get("viewpoint");const e=this.state.paddedViewState;return e&&e.viewpoint.clone()}set viewpoint(e){if(e==null)return;if(!this.ready)return this._set("viewpoint",e),this._set("extent",null),this._set("center",null),this._set("zoom",-1),this._set("scale",0),void this.notifyChange("initialExtentRequired");let t,r;try{t=this._project(e,this.spatialReference),!e.scale||isNaN(e.scale)?r=new ze("mapview:invalid-viewpoint",`invalid scale value of ${e.scale}`):et(e.targetGeometry)&&(r=new ze("mapview:invalid-viewpoint","geometry not defined"))}catch(n){r=new ze("mapview:invalid-viewpoint","could not project the value in the view's spatial reference",{error:n})}if(r)return void ft.getLogger(this.declaredClass).error(r);this._scaleBeforeChangingSpatialReference=null;const i=new nu({targetGeometry:new Nr,scale:0,rotation:0});bc(i,t),this.constraints.constrain(i,this.state.paddedViewState.viewpoint),this.state.viewpoint=i,this.frameTask.requestFrame(),this._set("viewpoint",i)}get zoom(){return this.ready?this.constraints.scaleToZoom(this.scale):this._get("zoom")}set zoom(e){if(e==null)return;if(!this.ready){this._set("zoom",e),this._set("scale",0);const r=this._get("extent");return r&&(this._set("extent",null),this._set("center",r.center)),void this.notifyChange("initialExtentRequired")}if(!this.constraints.effectiveLODs)return void this._set("zoom",-1);const t=this.viewpoint;fW(t,t,this.constraints.zoomToScale(e)),this.viewpoint=t,this._set("zoom",this.constraints.scaleToZoom(this.scale))}get navigating(){return!(!this.mapViewNavigation||!this.mapViewNavigation.interacting)}goTo(e,t){if(e)return this.animation&&(this.animation=null),this._createAnimation(),KD(()=>this.ready,t).then(()=>{const r={animate:!0,...t},i=Lut(e,this);return this.animation.update(i),this._gotoTask={},r.animate?this._gotoAnimated(i,r):this._gotoImmediate(i,r)});ft.getLogger(this.declaredClass).error("#goTo()","target cannot be null or undefined")}async hitTest(e,t){const r=cW(e)?aW(this,e):e;if(!this.ready||isNaN(r.x)||isNaN(r.y))return{screenPoint:r,results:[]};let i=new Set,n=!1,o=null,s=null;t!=null&&t.include?jW(t.include,zW(this,u=>i.add(u),u=>{o||(o=new Set),o.add(u)},u=>i.add(u),()=>n=!0)):(n=!0,i=new Set(this.allLayerViews)),t!=null&&t.exclude&&jW(t.exclude,zW(this,u=>i.delete(u),u=>{s||(s=new Set),s.add(u)}));const l=this.allLayerViews.filter(u=>!u.suspended&&i.has(u)).reverse(),a=this.toMap(r);let c=[...n?this.graphicsView.hitTest(a).map(u=>({type:"graphic",graphic:u,layer:null,mapPoint:a})):[],...await Promise.all(l.map(u=>u.hitTest(a,r)).toArray())].filter(ue).flat().filter(ue);return o&&(c=c.filter(u=>!("graphic"in u)||!u.graphic||o.has(kL(u.graphic)))),s&&(c=c.filter(u=>!("graphic"in u)||!u.graphic||s.has(kL(u.graphic)))),{screenPoint:r,results:c}}async takeScreenshot(e){const t=this._createScreenshotPlan(e),r=await this._stage.takeScreenshot(t);return Dpt(r,{format:t.format,quality:t.quality,rotation:0,disableDecorations:!1},this._pixelFormat)}async _takeScreenshot(e){const t=this._createScreenshotPlan(e),r=await this._stage.takeScreenshot(t);return Npt(r,this._pixelFormat)}_createScreenshotPlan(e){e=e||{};const t=this.supersampleScreenshotsEnabled?Math.min(4,Vpt(this.size,Math.min(4096,this._stage.context.parameters.maxTextureSize))):1;let r;e.layers?(r=[],e.layers.forEach(o=>{const s=this.allLayerViews.find(l=>l.layer.id===o.id);s&&"container"in s&&s.container&&r.push(s.container)})):r=this._stage.children;const{format:i,quality:n}=jpt(e.format,e.quality);return Rpt(e,t,this.size,this.padding,i,n,r,e.rotation)}get test(){return{takeScreenshot:e=>this._takeScreenshot(e)}}toMap(e){if(!this.ready)return null;const t=cW(e)?aW(this,e):e,r=[0,0],[i,n]=this.state.toMap(r,[t.x,t.y]),o=this.spatialReference;return new Nr({x:i,y:n,spatialReference:o})}toScreen(e){if(!this.ready)return null;const t=this._project(e,this.spatialReference),r=[t.x,t.y];return this.state.toScreen(r,r),Rs(r[0],r[1])}on(e,t,r,i){return this.inputManager&&this.viewEvents.on(e,t,r,i)||super.on(e,t)}hasEventListener(e){return super.hasEventListener(e)||this.viewEvents.hasHandler(e)}whenLayerView(e){return super.whenLayerView(e)}graphicChanged(e){this.graphicsView&&this.graphicsView.graphicUpdateHandler(e)}whenReady(){return new Promise(e=>{this.ready?e(this):this._resolveWhenReady.push(e)})}forceDOMReadyCycle(){this.forceReadyCycle()}getDefaultSpatialReference(){var e,t,r;return this.map&&"initialViewProperties"in this.map&&((t=(e=this.map)==null?void 0:e.initialViewProperties)==null?void 0:t.spatialReference)||((r=this.defaultsFromMap)==null?void 0:r.spatialReference)||null}hasLayerViewModule(e){return gW.hasLayerViewModule(e)}importLayerView(e){return gW.importLayerView(e)}pixelSizeAt(){return this.ready?this.state.resolution:(ft.getLogger(this.declaredClass).error("#pixelSizeAt()","Map view cannot be used before it is ready"),null)}popupHitTest(e){return this.hitTest(e).then(t=>({...t,mapPoint:this.toMap(e)}))}requestUpdate(){this.ready&&this.frameTask.requestUpdate()}validate(){let e=nht(this.type);return at("safari")&&at("safari")<9&&(e=new ze("mapview:browser-not-supported","This browser is not supported by MapView (Safari < 9)",{type:"safari",requiredVersion:9,detectedVersion:at("safari")})),ue(e)?(ft.getLogger(this.declaredClass).warn("#validate()",e.message),Promise.reject(e)):xht()}_createAnimation(){return this.animation&&!this.animation.done||(this.animation=new hL),this.animation}_cancellableGoTo(e,t,r){const i=()=>e===this._gotoTask,n=r.then(()=>{i()&&(this.animation=null)}).catch(s=>{throw i()&&(this.animation=null,t.done||(t.stop(),this.frameTask.animationInProgress=!1)),s}),o=new Promise(s=>s(n));return t.when().catch(()=>{i()&&o.cancel&&o.cancel()}),o}_gotoImmediate(e,t){const r=this._gotoTask,i=this.animation,n=e.then(o=>{if(vn(t),r!==this._gotoTask)throw new ze("view:goto-interrupted","Goto was interrupted");this.viewpoint=i.target=o,i.finish()});return this._cancellableGoTo(r,i,n)}_flipStationary(e){return this._stationaryTimer!==null||(this._stationaryTimer=setTimeout(()=>{this._stationaryTimer=null;const t=performance.now()-this._lastStationaryEventTimestamp;t<FW&&(this._stationaryTimer=this._flipStationary(t))},e)),this._stationaryTimer}_getDefaultViewpoint(){var _,x,S,C;const{constraints:e,initialExtent:t,map:r,padding:i,size:n}=this;if(!e)return null;const o=r&&"initialViewProperties"in r&&r.initialViewProperties,s={zoom:this._get("zoom"),scale:this._get("scale"),center:this._get("center"),extent:this._get("extent"),rotation:this._get("rotation"),viewpoint:this._get("viewpoint"),spatialReference:this._userSpatialReference};e.effectiveLODs?s.zoom!==-1&&(s.scale=e.zoomToScale(s.zoom)):s.zoom=-1;let l=null,a=null,c=0;const u=s.viewpoint&&s.viewpoint.rotation,p=s.viewpoint&&s.viewpoint.targetGeometry;ue(p)&&(p.type==="extent"?l=p:p.type==="point"&&(a=p,c=s.viewpoint.scale));const h=s.extent||l||((x=(_=o==null?void 0:o.viewpoint)==null?void 0:_.targetGeometry)==null?void 0:x.extent)||t,m=s.center||a||(h==null?void 0:h.center),y=s.scale||c||((S=o==null?void 0:o.viewpoint)==null?void 0:S.scale)||h&&yw(h,[n[0]-i.left-i.right,n[1]-i.top-i.bottom]),v=s.rotation||u||((C=o==null?void 0:o.viewpoint)==null?void 0:C.rotation)||0;return m&&y?new nu({targetGeometry:m,scale:y,rotation:v}):null}_gotoAnimated(e,t){const r=this._gotoTask,i=this.animation,n=e.then(o=>{if(vn(t),r!==this._gotoTask)throw new ze("view:goto-interrupted","Goto was interrupted");return i.update(o),this.animationManager.animate(i,this.viewpoint,t),i.when().then(()=>{},()=>{})});return this._cancellableGoTo(r,i,n)}_project(e,t){var n;const r=e&&e.targetGeometry||e;if(!t)return e;if(!r)return null;if(t.imageCoordinateSystem||((n=r.spatialReference)==null?void 0:n.imageCoordinateSystem)||So(t,r.spatialReference))return e;const i=$0(r,t);if(!i)throw new ze("mapview:projection-not-possible","projecting input geometry to target spatial reference returned a null value",{geometry:r,spatialReference:t});return Cht(e)?(e.targetGeometry=i,e):i}_resizeHandler(e){if(!this.ready)return;const t=this.state;let r=this.state.paddedViewState.viewpoint;const i=this.state.paddedViewState.size.concat();t.size=[e.width,e.height],Yut(r,r,i,this.state.paddedViewState.size,this.resizeAlign),r=this.constraints.constrain(r,null),this.state.viewpoint=r}_startup(){var l,a;this.timeline.begin("MapView Startup");const e=this._getDefaultViewpoint(),t=e.targetGeometry;try{this._project(e,this.spatialReference)}catch(c){ft.getLogger(this.declaredClass).warn(new cs("mapview:startup-projection-error","projection of initial viewpoint to the view's spatial reference, defaulting to the initial viewpoint.",{center:t.toJSON(),spatialReference:this.spatialReference,error:c})),e.targetGeometry=((l=this.defaultsFromMap.extent)==null?void 0:l.center)||new Nr({x:0,y:0,spatialReference:this.spatialReference})}(a=this.constraints)==null||a.fit(e),this._set("state",new jdt({padding:this._get("padding"),size:this.size,viewpoint:e})),this.graphics.owner=this;const r=new Qse(this.surface,{canvas:this.renderCanvas,supersampleScreenshots:this.supersampleScreenshotsEnabled,contextOptions:{disabledExtensions:this.deactivatedWebGLExtensions,debugWebGLExtensions:this.debugWebGLExtensions},renderingOptions:this.renderingOptions,timeline:this.timeline});this._stage=r,this._magnifierView=new rle,this._magnifierView.magnifier=this.magnifier;const i=new ele({view:this});this._set("labelManager",i);const n=new Jut({view:this});this._set("animationManager",n);const o=new tle({view:this,animationManager:n});this._set("mapViewNavigation",o),this._setupSpatialReferenceDependentProperties(),this.handles.add([this.rootLayerViews.on("change",()=>this._updateStageChildren()),r.on("post-render",()=>this._set("rendering",r.renderRequested)),r.on("will-render",()=>this._set("rendering",r.renderRequested)),r.on("webgl-error",c=>this.fatalError=c.error),Ot(()=>this.stationary,c=>r.stationary=c,Gp),Ot(()=>this.background,c=>{r.background=c,this._magnifierView.background=c},Gp),Ot(()=>this.magnifier,c=>this._magnifierView.magnifier=c,Gp),Ot(()=>this.renderingOptions,c=>r.renderingOptions=c,Gp),Ot(()=>this.highlightOptions,c=>r.highlightOptions=c,Gp),Ot(()=>this.state.id,()=>r.state=this.state,Gp)],"map-view"),this._updateStageChildren();const s=this._resolveWhenReady;this._resolveWhenReady=[],s.forEach(c=>c(this)),this.timeline.end("MapView Startup"),this.frameTask&&this.frameTask.start(),this._set("ready",!0)}_teardown(){this._destroySpatialReferenceDependentProperties(),this.handles.remove("map-view"),this.mapViewNavigation.destroy(),this._set("mapViewNavigation",null),this.animationManager.destroy(),this._set("animationManager",null),this.layerViewManager.clear(),this.labelManager.destroy(),this._magnifierView.destroy(),this._stage.destroy(),this._stage=null,this._set("graphicsView",null),this._magnifierView=null,this._set("labelManager",null),this._set("mapViewNavigation",null),this.graphics.owner=null,this.frameTask&&this.frameTask.stop(),this._stationaryTimer&&(clearTimeout(this._stationaryTimer),this._stationaryTimer=null),this._set("ready",!1);const{center:[e,t],spatialReference:r,rotation:i,scale:n}=this.state.paddedViewState,o=new Nr({x:e,y:t,spatialReference:r});this._set("viewpoint",null),this._set("extent",null),this._set("center",o),this._set("zoom",-1),this._set("rotation",i),this._set("scale",n),this._set("spatialReference",r),this._set("state",null),this.animation=null}_updateStageChildren(){this._stage.removeAllChildren(),this.rootLayerViews.forEach(t=>{this._stage.addChild(t.container)});const e=this.graphicsView;this._stage.addChild(e.container),this._stage.addChild(this._magnifierView)}_setupSpatialReferenceDependentProperties(){const e=new Hdt(eu.create({spatialReference:this.spatialReference,size:512,numLODs:36}));this._set("featuresTilingScheme",e);const t=new Jse({view:this,graphics:this.graphics,requestUpdateCallback:()=>this.requestUpdate(),container:new Xse(e)});this.frameTask.graphicsView=t,this._set("graphicsView",t)}_destroySpatialReferenceDependentProperties(){const e=this.graphicsView;this._set("graphicsView",null),this.frameTask.graphicsView=null,e.destroy(),this._set("featuresTilingScheme",null)}_spatialReferenceChanged(e){if(!this.ready)return;this.frameTask.stop();for(const l of this.allLayerViews)l.processDetach();this._destroySpatialReferenceDependentProperties();const t=this.state.paddedViewState.clone();if(et(this._scaleBeforeChangingSpatialReference))this._scaleBeforeChangingSpatialReference=t.scale;else{const l=t.viewpoint.clone();l.scale=this._scaleBeforeChangingSpatialReference,t.viewpoint=l}const r=t.clone(),[i,n]=t.center;let o=null;try{o=this._project(new Nr({x:i,y:n,spatialReference:t.spatialReference}),e)}catch(l){yg()||ft.getLogger(this.declaredClass).warn(new cs("mapview:spatial-reference-change","could not project the view's center to the new spatial reference",{center:o.toJSON(),spatialReference:e,error:l}))}o||(o=new Nr({x:0,y:0,spatialReference:e}));const s=mL(new nu({targetGeometry:new Nr,scale:0,rotation:0}),t.viewpoint,o);r.viewpoint=s;try{const a=[t.size[0]/2,t.size[1]/2],c=[a[0]+20,a[1]],u=t.toMap([0,0],c),{x:p,y:h}=this._project(new Nr({x:u[0],y:u[1],spatialReference:t.spatialReference}),e);u[0]=p,u[1]=h,r.toScreen(u,u);const m=Gut(a,u,c),y=Math.hypot(u[0]-a[0],u[1]-a[1])/20;!Number.isFinite(y)||Math.abs(y)>4?(s.rotation=0,s.targetGeometry=new Nr({x:0,y:0,spatialReference:e})):(s.scale*=y,s.scale>at("mapview-srswitch-adjust-rotation-scale-threshold")?s.rotation=0:s.rotation+=Number.isFinite(m)?m:0)}catch{}this._get("constraints").constrain(s,null),this._get("state").viewpoint=s,this._stage.state=this.state,this._setupSpatialReferenceDependentProperties();for(const l of this.allLayerViews)l.processAttach();this.frameTask.requestFrame(),this.frameTask.start(),this._updateStageChildren()}};Pr.type="2d",d([f({readOnly:!0})],Pr.prototype,"animationManager",void 0),d([f({constructOnly:!0})],Pr.prototype,"deactivatedWebGLExtensions",void 0),d([f({constructOnly:!0})],Pr.prototype,"debugWebGLExtensions",void 0),d([f({readOnly:!0})],Pr.prototype,"featuresTilingScheme",void 0),d([f({readOnly:!0})],Pr.prototype,"fullOpacity",void 0),d([f({readOnly:!0})],Pr.prototype,"graphicsTileStore",null),d([f()],Pr.prototype,"graphicsView",void 0),d([f({readOnly:!0})],Pr.prototype,"state",void 0),d([f()],Pr.prototype,"initialExtentRequired",null),d([f()],Pr.prototype,"labelManager",void 0),d([f({readOnly:!0})],Pr.prototype,"resourceManager",null),d([f({readOnly:!0})],Pr.prototype,"textureManager",null),d([f({readOnly:!0})],Pr.prototype,"mapViewNavigation",void 0),d([f({constructOnly:!0})],Pr.prototype,"renderCanvas",void 0),d([f()],Pr.prototype,"renderingOptions",void 0),d([f({readOnly:!0})],Pr.prototype,"rendering",void 0),d([f({constructOnly:!0})],Pr.prototype,"supersampleScreenshotsEnabled",void 0),d([f({readOnly:!0})],Pr.prototype,"supportsGround",void 0),d([f()],Pr.prototype,"_stationaryTimer",void 0),d([f()],Pr.prototype,"_defaultsFromMapSettings",null),d([f()],Pr.prototype,"_pePromise",void 0),d([f({readOnly:!0})],Pr.prototype,"typeSpecificPreconditionsReady",null),d([f()],Pr.prototype,"animation",null),d([f({type:wht})],Pr.prototype,"background",null),d([f({value:null,type:Nr,dependsOn:["state.id","ready"]})],Pr.prototype,"center",null),d([f({type:Sse})],Pr.prototype,"constraints",null),d([f({value:null,type:li,dependsOn:["state.id","ready"]})],Pr.prototype,"extent",null),d([f()],Pr.prototype,"floors",void 0),d([f({type:Fse})],Pr.prototype,"highlightOptions",void 0),d([f({readOnly:!0})],Pr.prototype,"inputManager",void 0),d([f()],Pr.prototype,"map",void 0),d([f({value:{top:0,right:0,bottom:0,left:0},cast:e=>({top:0,right:0,bottom:0,left:0,...e})})],Pr.prototype,"padding",null),d([f()],Pr.prototype,"resizeAlign",void 0),d([f({readOnly:!0,dependsOn:["state.id"]})],Pr.prototype,"resolution",null),d([f({value:0,type:Number,dependsOn:["state.id","ready"]})],Pr.prototype,"rotation",null),d([f({value:0,type:Number,dependsOn:["state.id","ready"]})],Pr.prototype,"scale",null),d([f({constructOnly:!0})],Pr.prototype,"spatialReferenceLocked",void 0),d([f()],Pr.prototype,"stationary",null),d([f({type:zse,readOnly:!0})],Pr.prototype,"timeline",void 0),d([f({readOnly:!0})],Pr.prototype,"type",void 0),d([f({readOnly:!0})],Pr.prototype,"updating",null),d([f({value:null,type:nu,dependsOn:["state.id","ready"]})],Pr.prototype,"viewpoint",null),d([f({value:-1,dependsOn:["state.id","ready"]})],Pr.prototype,"zoom",null),d([f({readOnly:!0})],Pr.prototype,"navigating",null),d([f({type:Zse})],Pr.prototype,"ui",void 0),Pr=d([se("esri.views.MapView")],Pr);const kht=Pr;function kL(e){var r,i,n,o;const t=e.getObjectId();return t?`${(o=(n=(r=e.layer)==null?void 0:r.uid)!=null?n:(i=e.sourceLayer)==null?void 0:i.uid)!=null?o:"MapView"}/${t}`:`"MapView/${e.uid}`}function zW(e,t,r,i,n){return o=>{if(o instanceof Hs){if(o.layer===e)n==null||n();else{const s=e.allLayerViews.find(l=>l.layer===o.layer);s&&(i==null||i(s))}r(kL(o))}else{const s=e.allLayerViews.find(l=>l.layer===o);s&&t(s)}}}function jW(e,t){if(e)if(OS(e))for(const r of e)if(OS(r))for(const i of r)t(i);else t(r);else t(e)}function Sht(e){return(e==null?void 0:e.declaredClass)==="esri.WebMap"}var SL;let Bp=SL=class extends xt{constructor(e){super(e)}clone(){return new SL({customLayerParameters:Ge(this.customLayerParameters),customParameters:Ge(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};d([f({json:{type:Object,write:!0}})],Bp.prototype,"customLayerParameters",void 0),d([f({json:{type:Object,write:!0}})],Bp.prototype,"customParameters",void 0),d([f({type:String,json:{write:!0}})],Bp.prototype,"layerIdentifier",void 0),d([f({type:String,json:{write:!0}})],Bp.prototype,"tileMatrixSet",void 0),d([f({type:String,json:{write:!0}})],Bp.prototype,"url",void 0),Bp=SL=d([se("esri.layer.support.WMTSLayerInfo")],Bp);let un=class extends bx(xx(Cx(FT(zT(V0(Rh)))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new li(-20037508342787e-6,-2003750834278e-5,2003750834278e-5,20037508342787e-6,gr.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=gr.WebMercator,this.subDomains=null,this.tileInfo=new eu({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new Nr({x:-20037508342787e-6,y:20037508342787e-6,spatialReference:gr.WebMercator}),spatialReference:gr.WebMercator,lods:[new Di({level:0,scale:591657527591555e-6,resolution:156543.033928}),new Di({level:1,scale:295828763795777e-6,resolution:78271.5169639999}),new Di({level:2,scale:147914381897889e-6,resolution:39135.7584820001}),new Di({level:3,scale:73957190948944e-6,resolution:19567.8792409999}),new Di({level:4,scale:36978595474472e-6,resolution:9783.93962049996}),new Di({level:5,scale:18489297737236e-6,resolution:4891.96981024998}),new Di({level:6,scale:9244648868618e-6,resolution:2445.98490512499}),new Di({level:7,scale:4622324434309e-6,resolution:1222.99245256249}),new Di({level:8,scale:2311162217155e-6,resolution:611.49622628138}),new Di({level:9,scale:1155581108577e-6,resolution:305.748113140558}),new Di({level:10,scale:577790.554289,resolution:152.874056570411}),new Di({level:11,scale:288895.277144,resolution:76.4370282850732}),new Di({level:12,scale:144447.638572,resolution:38.2185141425366}),new Di({level:13,scale:72223.819286,resolution:19.1092570712683}),new Di({level:14,scale:36111.909643,resolution:9.55462853563415}),new Di({level:15,scale:18055.954822,resolution:4.77731426794937}),new Di({level:16,scale:9027.977411,resolution:2.38865713397468}),new Di({level:17,scale:4513.988705,resolution:1.19432856685505}),new Di({level:18,scale:2256.994353,resolution:.597164283559817}),new Di({level:19,scale:1128.497176,resolution:.298582141647617}),new Di({level:20,scale:564.248588,resolution:.14929107082380833}),new Di({level:21,scale:282.124294,resolution:.07464553541190416}),new Di({level:22,scale:141.062147,resolution:.03732276770595208}),new Di({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return typeof e=="string"?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let r="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const i=new ud(this.urlTemplate);!(!!this.subDomains&&this.subDomains.length>0)&&i.authority.includes("{subDomain}")&&(r="is missing 'subDomains' property")}else r="spatialReference must match tileInfo.spatialReference";else r="is missing the required 'urlTemplate' property value";if(r)throw new ze("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${r}`)});return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||t.fullExtent&&t.fullExtent.spatialReference&&gr.fromJSON(t.fullExtent.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,i=new ud(t),n=i.scheme?i.scheme+"://":"//",o=n+i.authority+"/";if(i.authority.includes("{subDomain}")){if(r&&r.length>0&&i.authority.split(".").length>1)for(const s of r)e.push(n+i.authority.replace(/\{subDomain\}/gi,s)+"/")}else e.push(o);return e.map(s=>(s.charAt(s.length-1)!=="/"&&(s+="/"),s))}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new ud(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){e&&pc(e)&&(e="https:"+e),e&&(e=e.replace(/\{z\}/gi,"{level}").replace(/\{x\}/gi,"{col}").replace(/\{y\}/gi,"{row}"),e=Xl(e)),t.templateUrl=e}fetchTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),s={responseType:"image",signal:n,query:{...this.refreshParameters}};return ri(o,s).then(l=>l.data)}async fetchImageBitmapTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),s={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:l}=await ri(o,s);return createImageBitmap(l)}getTileUrl(e,t,r){const i=this.levelValues[e];return this.tileServers[t%this.tileServers.length]+uc(this.urlPath,{level:i,z:i,col:r,x:r,row:t,y:t})}};d([f({type:String,value:"",json:{write:!0}})],un.prototype,"copyright",void 0),d([f({type:li,json:{write:!0},nonNullable:!0})],un.prototype,"fullExtent",void 0),d([f({readOnly:!0,json:{read:!1,write:!1}})],un.prototype,"legendEnabled",void 0),d([f({type:["show","hide"]})],un.prototype,"listMode",void 0),d([f({json:{read:!0,write:!0}})],un.prototype,"blendMode",void 0),d([f()],un.prototype,"levelValues",null),d([f({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],un.prototype,"isReference",void 0),d([f({type:["WebTiledLayer"],value:"WebTiledLayer"})],un.prototype,"operationalLayerType",void 0),d([f({readOnly:!0,json:{read:!1,write:!1}})],un.prototype,"popupEnabled",void 0),d([f({type:gr})],un.prototype,"spatialReference",void 0),d([Tt("spatialReference",["spatialReference","fullExtent.spatialReference"])],un.prototype,"readSpatialReference",null),d([f({type:[String],json:{write:!0}})],un.prototype,"subDomains",void 0),d([f({type:eu,json:{write:!0}})],un.prototype,"tileInfo",void 0),d([f({readOnly:!0})],un.prototype,"tileServers",null),d([f({json:{read:!1}})],un.prototype,"type",void 0),d([f()],un.prototype,"urlPath",null),d([f({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],un.prototype,"urlTemplate",void 0),d([Tt("urlTemplate",["urlTemplate","templateUrl"])],un.prototype,"readUrlTemplate",null),d([zt("urlTemplate",{templateUrl:{type:String}})],un.prototype,"writeUrlTemplate",null),d([f({type:Bp,json:{write:!0}})],un.prototype,"wmtsInfo",void 0),un=d([se("esri.layers.WebTileLayer")],un);const ile=un;var gvt=Object.freeze(Object.defineProperty({__proto__:null,default:ile},Symbol.toStringTag,{value:"Module"})),EL;const Zg=new nN("0/0/0",0,0,0,void 0);let Up=EL=class extends bx(Cx(xx(Rh))){constructor(){super(...arguments),this.tileInfo=eu.create({spatialReference:gr.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new li(-20037508342787e-6,-2003750834278e-5,2003750834278e-5,20037508342787e-6,gr.WebMercator),this.spatialReference=gr.WebMercator}getTileBounds(e,t,r,i){const n=i||Sd();return Zg.level=e,Zg.row=t,Zg.col=r,Zg.extent=n,this.tileInfo.updateTileInfo(Zg),Zg.extent=void 0,n}fetchTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),s={responseType:"image",signal:n,query:{...this.refreshParameters}};return ri(o!=null?o:"",s).then(l=>l.data)}async fetchImageBitmapTile(e,t,r,i={}){const{signal:n}=i;if(this.fetchTile!==EL.prototype.fetchTile)return createImageBitmap(await this.fetchTile(e,t,r,i));const o=this.getTileUrl(e,t,r),s={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:l}=await ri(o!=null?o:"",s);return createImageBitmap(l)}getTileUrl(){throw new ze("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};d([f({type:eu})],Up.prototype,"tileInfo",void 0),d([f({type:["show","hide"]})],Up.prototype,"listMode",void 0),d([f({readOnly:!0,value:"base-tile"})],Up.prototype,"type",void 0),d([f({nonNullable:!0})],Up.prototype,"fullExtent",void 0),d([f()],Up.prototype,"spatialReference",void 0),Up=EL=d([se("esri.layers.BaseTileLayer")],Up);const Eht=Up,Tht={type:eu,json:{origins:{service:{read:{source:["tileInfo","minScale","maxScale","minLOD","maxLOD"],reader:Aht}}}}};function Aht(e,t,r,i){if(!e)return null;const{minScale:n,maxScale:o,minLOD:s,maxLOD:l}=t;if(s!=null&&l!=null)return i&&i.ignoreMinMaxLOD?eu.fromJSON(e):eu.fromJSON({...e,lods:e.lods.filter(({level:a})=>a!=null&&a>=s&&a<=l)});if(n!==0&&o!==0){const a=p=>Math.round(1e4*p)/1e4,c=n?a(n):1/0,u=o?a(o):-1/0;return eu.fromJSON({...e,lods:e.lods.filter(p=>{const h=a(p.scale);return h<=c&&h>=u})})}return eu.fromJSON(e)}class xv{constructor(){this.location={left:0,top:0,width:0,height:0},this._allAvailability="unknown",this.byteSize=40}getAvailability(t,r){if(this._allAvailability!=="unknown")return this._allAvailability;const i=(t-this.location.top)*this.location.width+(r-this.location.left),n=i%8,o=i>>3,s=this._tileAvailabilityBitSet;return o<0||o>s.length?"unknown":s[o]&1<<n?"available":"unavailable"}_updateFromData(t){const r=this.location.width,i=this.location.height;let n=!0,o=!0;const s=Math.ceil(r*i/8),l=new Uint8Array(s);let a=0;for(let c=0;c<t.length;c++){const u=c%8;t[c]?(o=!1,l[a]|=1<<u):n=!1,u===7&&++a}o?this._allAvailability="unavailable":n?this._allAvailability="available":(this._allAvailability="unknown",this._tileAvailabilityBitSet=l,this.byteSize+=l.length)}static fromDefinition(t,r){const i=t.service.request||ri,{row:n,col:o,width:s,height:l}=t,a={query:{f:"json"}};return r=r?{...a,...r}:a,i(Mht(t),r).then(c=>c.data).catch(c=>{if(c&&c.details&&c.details.httpStatus===422)return{location:{top:n,left:o,width:s,height:l},valid:!0,data:IBe(s*l,0)};throw c}).then(c=>{if(c.location&&(c.location.top!==n||c.location.left!==o||c.location.width!==s||c.location.height!==l))throw new ze("tilemap:location-mismatch","Tilemap response for different location than requested",{response:c,definition:{top:n,left:o,width:s,height:l}});return xv.fromJSON(c)})}static fromJSON(t){xv._validateJSON(t);const r=new xv;return r.location=Object.freeze(Ge(t.location)),r._updateFromData(t.data),Object.freeze(r)}static _validateJSON(t){if(!t||!t.location)throw new ze("tilemap:missing-location","Location missing from tilemap response");if(t.valid===!1)throw new ze("tilemap:invalid","Tilemap response was marked as invalid");if(!t.data)throw new ze("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(t.data))throw new ze("tilemap:data-mismatch","Data must be an array of numbers");if(t.data.length!==t.location.width*t.location.height)throw new ze("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}}function VW(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function Mht(e){let t;if(e.service.type==="vector-tile")t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;else{const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}const r=e.service.query;return r&&(t=`${t}?${r}`),t}var mm;let Fa=mm=class extends fa(rr){constructor(e){super(e),this._pendingTilemapRequests={},this._availableLevels={},this.levels=5,this.cacheByteSize=2*_1.MEGABYTES,this.request=ri,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new Ene(this.cacheByteSize),this.addHandles([Ot(()=>{const{layer:e}=this;return[e==null?void 0:e.parsedUrl,e==null?void 0:e.tileServers,e==null?void 0:e.apiKey,e==null?void 0:e.customParameters]},()=>this._initializeTilemapDefinition()),Ot(()=>{var e,t;return(t=(e=this.layer)==null?void 0:e.tileInfo)==null?void 0:t.lods},e=>this._initializeAvailableLevels(e),Gp)]),this._initializeTilemapDefinition()}castLevels(e){return e<=2?(ft.getLogger(this.declaredClass).error("Minimum levels for Tilemap is 3, but got ",e),3):e}get size(){return 1<<this.levels}fetchTilemap(e,t,r,i){if(!this._availableLevels[e])return Promise.reject(new ze("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const n=this._tmpTilemapDefinition,o=this._tilemapFromCache(e,t,r,n);if(o)return Promise.resolve(o);const s=i&&i.signal;return i={...i,signal:null},new Promise((l,a)=>{aa(s,()=>a(on()));const c=VW(n);let u=this._pendingTilemapRequests[c];if(!u){u=xv.fromDefinition(n,i).then(h=>(this._tilemapCache.put(c,h,h.byteSize),h));const p=()=>delete this._pendingTilemapRequests[c];this._pendingTilemapRequests[c]=u,u.then(p,p)}u.then(l,a)})}getAvailability(e,t,r){if(!this._availableLevels[e])return"unavailable";const i=this._tilemapFromCache(e,t,r,this._tmpTilemapDefinition);return i?i.getAvailability(t,r):"unknown"}fetchAvailability(e,t,r,i){return this._availableLevels[e]?this.fetchTilemap(e,t,r,i).catch(n=>n).then(n=>{if(n instanceof xv){const o=n.getAvailability(t,r);if(o==="unavailable")throw new ze("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:r});return o}if(us(n))throw n;return"unknown"}):Promise.reject(new ze("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`))}fetchAvailabilityUpsample(e,t,r,i,n){i.level=e,i.row=t,i.col=r;const o=this.layer.tileInfo;o.updateTileInfo(i);const s=this.fetchAvailability(e,t,r,n).catch(l=>{if(us(l))throw l;if(o.upsampleTile(i))return this.fetchAvailabilityUpsample(i.level,i.row,i.col,i);throw l});return this._fetchAvailabilityUpsamplePrefetch(i.id,e,t,r,n,s),s}async _fetchAvailabilityUpsamplePrefetch(e,t,r,i,n,o){if(!this._prefetchingEnabled)return;const s=`prefetch-${e}`;if(this.handles.has(s))return;const l=new AbortController;o.then(()=>l.abort(),()=>l.abort());let a=!1;const c={remove(){a||(a=!0,l.abort())}};if(this.handles.add(c,s),await iUe(10,l.signal).catch(()=>{}),a||(a=!0,this.handles.remove(s)),la(l))return;const u=new nN(e,t,r,i),p={...n,signal:l.signal},h=this.layer.tileInfo;for(let m=0;mm._prefetches.length<mm._maxPrefetch&&h.upsampleTile(u);++m){const y=this.fetchAvailability(u.level,u.row,u.col,p);mm._prefetches.push(y);const v=()=>{mm._prefetches.removeUnordered(y)};y.then(v,v)}}_initializeTilemapDefinition(){var i;if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:r}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:$h({...e.query,...r,token:t!=null?t:(i=e.query)==null?void 0:i.token}),tileServers:this.layer.tileServers,request:this.request,type:this.layer.type},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,r,i){i.level=e,i.row=t-t%this.size,i.col=r-r%this.size;const n=VW(i);return this._tilemapCache.get(n)}_initializeAvailableLevels(e){this._availableLevels={},e&&e.forEach(t=>this._availableLevels[t.level]=!0)}get test(){const e=this;return{get prefetchingEnabled(){return e._prefetchingEnabled},set prefetchingEnabled(t){e._prefetchingEnabled=t},hasTilemap:(t,r,i)=>!!e._tilemapFromCache(t,r,i,e._tmpTilemapDefinition)}}};Fa._maxPrefetch=4,Fa._prefetches=new gh({initialSize:mm._maxPrefetch}),d([f({constructOnly:!0,type:Number})],Fa.prototype,"levels",void 0),d([Qr("levels")],Fa.prototype,"castLevels",null),d([f({readOnly:!0,type:Number})],Fa.prototype,"size",null),d([f({constructOnly:!0,type:Number})],Fa.prototype,"cacheByteSize",void 0),d([f({constructOnly:!0})],Fa.prototype,"layer",void 0),d([f({constructOnly:!0})],Fa.prototype,"request",void 0),Fa=mm=d([se("esri.layers.support.TilemapCache")],Fa);const Iht=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}readMinScale(r,i){return i.minLOD!=null&&i.maxLOD!=null?r:0}readMaxScale(r,i){return i.minLOD!=null&&i.maxLOD!=null?r:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(r,i){return i.capabilities&&i.capabilities.includes("Tilemap")?new Fa({layer:this}):null}};return d([f({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),d([f()],t.prototype,"minScale",void 0),d([Tt("service","minScale")],t.prototype,"readMinScale",null),d([f()],t.prototype,"maxScale",void 0),d([Tt("service","maxScale")],t.prototype,"readMaxScale",null),d([f({type:gr})],t.prototype,"spatialReference",void 0),d([f({readOnly:!0})],t.prototype,"supportsBlankTile",null),d([f(Tht)],t.prototype,"tileInfo",void 0),d([f()],t.prototype,"tilemapCache",void 0),d([Tt("service","tilemapCache",["capabilities"])],t.prototype,"readTilemapCache",null),d([f()],t.prototype,"version",void 0),t=d([se("esri.layers.mixins.ArcGISCachedService")],t),t};class OE{constructor(t,r,i=""){this.major=t,this.minor=r,this._context=i}lessThan(t,r){return this.major<t||t===this.major&&this.minor<r}since(t,r){return!this.lessThan(t,r)}validate(t){if(this.major!==t.major){const r=this._context&&this._context+":",i=this._context&&this._context+" ";throw new ze(r+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:t})}}clone(){return new OE(this.major,this.minor,this._context)}static parse(t,r=""){const[i,n]=t.split("."),o=/^\s*\d+\s*$/;if(!i||!i.match||!i.match(o))throw new ze((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!n||!n.match||!n.match(o))throw new ze((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const s=parseInt(i,10),l=parseInt(n,10);return new OE(s,l,r)}}const nle=e=>{let t=class extends e{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesPromise=null,this._allLayersAndTablesMap=null}readCapabilities(r,i){var S,C;const n=i.capabilities&&i.capabilities.split(",").map(E=>E.toLowerCase().trim());if(!n)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};const o=this.type,s=n.includes("data"),l=n.includes("query"),a=n.includes("map"),c=!!i.exportTilesAllowed,u=n.includes("tilemap"),p=o!=="tile"&&!!i.supportsDynamicLayers,h=o!=="tile"&&(!i.tileInfo||p),m=o!=="tile"&&(!i.tileInfo||p),y=o!=="tile",v=i.cimVersion&&OE.parse(i.cimVersion),_=(S=v==null?void 0:v.since(1,4))!=null?S:!1,x=(C=v==null?void 0:v.since(2,0))!=null?C:!1;return{operations:{supportsExportMap:a,supportsExportTiles:c,supportsIdentify:l,supportsQuery:s,supportsTileMap:u},exportMap:a?{supportsArcadeExpressionForLabeling:_,supportsSublayersChanges:y,supportsDynamicLayers:p,supportsSublayerVisibility:h,supportsSublayerDefinitionExpression:m,supportsCIMSymbols:x}:null,exportTiles:c?{maxExportTilesCount:+i.maxExportTilesCount}:null}}readVersion(r,i){let n=i.currentVersion;return n||(n=i.hasOwnProperty("capabilities")||i.hasOwnProperty("tables")?10:i.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),n}async fetchSublayerInfo(r,i){var n;return await this.fetchAllLayersAndTables(i),(n=this._allLayersAndTablesMap)==null?void 0:n.get(r)}async fetchAllLayersAndTables(r){await this.load(r),this._allLayersAndTablesPromise||(this._allLayersAndTablesPromise=ri(vo(this.url).path+"/layers",{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey}}).then(n=>{this._allLayersAndTablesMap=new Map;for(const o of n.data.layers)this._allLayersAndTablesMap.set(o.id,o);return{result:n.data}},n=>({error:n})));const i=await this._allLayersAndTablesPromise;if(vn(r),"result"in i)return i.result;throw i.error}};return d([f({readOnly:!0})],t.prototype,"capabilities",void 0),d([Tt("service","capabilities",["capabilities","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],t.prototype,"readCapabilities",null),d([f({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),d([f({type:li})],t.prototype,"fullExtent",void 0),d([f(Xne)],t.prototype,"id",void 0),d([f({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],t.prototype,"legendEnabled",void 0),d([f(DT)],t.prototype,"popupEnabled",void 0),d([f({type:gr})],t.prototype,"spatialReference",void 0),d([f({readOnly:!0})],t.prototype,"version",void 0),d([Tt("version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],t.prototype,"readVersion",null),t=d([se("esri.layers.mixins.ArcGISMapService")],t),t};var Kk;function FI(e){return e&&e.type==="esriSMS"}function zI(e,t,r){var n;const i=this.originIdOf(t)>=Ls(r.origin);return{ignoreOrigin:!0,allowNull:i,enabled:!!r&&((n=r.layer)==null?void 0:n.type)==="map-image"&&(r.writeSublayerStructure||i)}}function BW(e,t,r){var i;return{enabled:!!r&&((i=r.layer)==null?void 0:i.type)==="tile"&&this._isOverridden(t)}}function $l(e,t,r){return{ignoreOrigin:!0,enabled:r&&r.writeSublayerStructure||!1}}function lC(e,t,r){return{ignoreOrigin:!0,enabled:!!r&&(r.writeSublayerStructure||this.originIdOf(t)>=Ls(r.origin))}}let Pht=0;const em=new Set;em.add("layer"),em.add("parent"),em.add("loaded"),em.add("loadStatus"),em.add("loadError"),em.add("loadWarnings");let $r=Kk=class extends fa(V0(C0(uu))){constructor(e){super(e),this.capabilities=void 0,this.fields=null,this.fullExtent=null,this.geometryType=null,this.globalIdField=null,this.legendEnabled=!0,this.objectIdField=null,this.popupEnabled=!0,this.popupTemplate=null,this.sourceJSON=null,this.title=null,this.typeIdField=null,this.types=null}async load(e){return this.addResolvingPromise((async()=>{var r,i;if(!this.layer&&!this.url)throw new ze("sublayer:missing-layer","Sublayer can't be loaded without being part of a layer",{sublayer:this});let t=null;if(!this.layer||this.originIdOf("url")>Ht.SERVICE||((r=this.source)==null?void 0:r.type)==="data-layer")t=(await ri(this.url,{responseType:"json",query:{f:"json"},...e})).data;else{let n=this.id;((i=this.source)==null?void 0:i.type)==="map-layer"&&(n=this.source.mapLayerId),t=await this.layer.fetchSublayerInfo(n,e)}t&&(this.sourceJSON=t,this.read({layerDefinition:t},{origin:"service"}))})()),this}readCapabilities(e,t){const r=(e=(t=t.layerDefinition||t).capabilities||e)?e.toLowerCase().split(",").map(o=>o.trim()):[],i=this.url?Zh(this.url):null,n=r.includes(ue(i)&&i.serverType==="MapServer"?"data":"query");return{exportMap:{supportsModification:!!t.canModifyLayer},operations:{supportsQuery:n}}}set definitionExpression(e){this._setAndNotifyLayer("definitionExpression",e)}get fieldsIndex(){return new Coe(this.fields||[])}set floorInfo(e){this._setAndNotifyLayer("floorInfo",e)}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields){for(const r of t.fields)if(r.type==="esriFieldTypeGlobalID")return r.name}}get id(){const e=this._get("id");return e!=null?e:Pht++}set id(e){this._get("id")!==e&&(this.get("layer.capabilities.exportMap.supportsDynamicLayers")!==!1?this._set("id",e):this._logLockedError("id","capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'"))}set labelingInfo(e){this._setAndNotifyLayer("labelingInfo",e)}writeLabelingInfo(e,t,r,i){e&&e.length&&(t.layerDefinition={drawingInfo:{labelingInfo:e.map(n=>n.write({},i))}})}set labelsVisible(e){this._setAndNotifyLayer("labelsVisible",e)}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach(t=>t.layer=e)}set listMode(e){this._set("listMode",e)}set minScale(e){this._setAndNotifyLayer("minScale",e)}readMinScale(e,t){return t.minScale||t.layerDefinition&&t.layerDefinition.minScale||0}set maxScale(e){this._setAndNotifyLayer("maxScale",e)}readMaxScale(e,t){return t.maxScale||t.layerDefinition&&t.layerDefinition.maxScale||0}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;if(t.fields){for(const r of t.fields)if(r.type==="esriFieldTypeOID")return r.name}}set opacity(e){this._setAndNotifyLayer("opacity",e)}readOpacity(e,t){const r=t.layerDefinition;return 1-.01*(r.transparency!=null?r.transparency:r.drawingInfo.transparency)}writeOpacity(e,t,r,i){t.layerDefinition={drawingInfo:{transparency:100-100*e}}}writeParent(e,t){this.parent&&this.parent!==this.layer?t.parentLayerId=R3(this.parent.id):t.parentLayerId=-1}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){if(e){for(const t of e.getSymbols())if(mg(t)){ft.getLogger(this.declaredClass).warn("Sublayer renderer should use 2D symbols");break}}this._setAndNotifyLayer("renderer",e)}get source(){return this._get("source")||new id({mapLayerId:this.id})}set source(e){this._setAndNotifyLayer("source",e)}set sublayers(e){this._handleSublayersChange(e,this._get("sublayers")),this._set("sublayers",e)}castSublayers(e){return _n(dr.ofType(Kk),e)}writeSublayers(e,t,r){this.get("sublayers.length")&&(t[r]=this.sublayers.map(i=>i.id).toArray().reverse())}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const i=t.fields.find(n=>n.name.toLowerCase()===r);i&&(r=i.name)}return r}get url(){var i,n;const e=(n=(i=this.layer)==null?void 0:i.parsedUrl)!=null?n:this._lastParsedUrl,t=this.source;if(!e)return null;if(this._lastParsedUrl=e,(t==null?void 0:t.type)==="map-layer")return`${e.path}/${t.mapLayerId}`;const r={layer:JSON.stringify({source:this.source})};return`${e.path}/dynamicLayer?${$h(r)}`}set url(e){this._overrideIfSome("url",e)}set visible(e){this._setAndNotifyLayer("visible",e)}writeVisible(e,t,r,i){t[r]=this.getAtOrigin("defaultVisibility","service")||e}clone(){const{store:e}=Nn(this),t=new Kk;return Nn(t).store=e.clone(em),this.commitProperty("url"),t._lastParsedUrl=this._lastParsedUrl,t}createPopupTemplate(e){return Soe(this,e)}createQuery(){return new ea({returnGeometry:!0,where:this.definitionExpression||"1=1"})}async createFeatureLayer(){var r,i;if(this.hasOwnProperty("sublayers"))return null;const e=(r=this.layer)==null?void 0:r.parsedUrl,t=new(await ut(()=>Promise.resolve().then(function(){return Klt}),void 0)).default({url:e.path});return e&&this.source&&(this.source.type==="map-layer"?t.layerId=this.source.mapLayerId:t.dynamicDataSource=this.source),this.layer.refreshInterval!=null&&(t.refreshInterval=this.layer.refreshInterval),this.definitionExpression&&(t.definitionExpression=this.definitionExpression),this.floorInfo&&(t.floorInfo=Ge(this.floorInfo)),this.originIdOf("labelingInfo")>Ht.SERVICE&&(t.labelingInfo=Ge(this.labelingInfo)),this.originIdOf("labelsVisible")>Ht.DEFAULTS&&(t.labelsVisible=this.labelsVisible),this.originIdOf("legendEnabled")>Ht.DEFAULTS&&(t.legendEnabled=this.legendEnabled),this.originIdOf("visible")>Ht.DEFAULTS&&(t.visible=this.visible),this.originIdOf("minScale")>Ht.DEFAULTS&&(t.minScale=this.minScale),this.originIdOf("maxScale")>Ht.DEFAULTS&&(t.maxScale=this.maxScale),this.originIdOf("opacity")>Ht.DEFAULTS&&(t.opacity=this.opacity),this.originIdOf("popupTemplate")>Ht.DEFAULTS&&(t.popupTemplate=Ge(this.popupTemplate)),this.originIdOf("renderer")>Ht.SERVICE&&(t.renderer=Ge(this.renderer)),((i=this.source)==null?void 0:i.type)==="data-layer"&&(t.dynamicDataSource=this.source.clone()),this.originIdOf("title")>Ht.DEFAULTS&&(t.title=this.title),this.layer.type==="map-image"&&this.layer.originIdOf("customParameters")>Ht.DEFAULTS&&(t.customParameters=this.layer.customParameters),this.layer.type==="tile"&&this.layer.originIdOf("customParameters")>Ht.DEFAULTS&&(t.customParameters=this.layer.customParameters),t}getField(e){return this.fieldsIndex.get(e)}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(i==null)return null;let n=null;return r.some(o=>{const{id:s}=o;return s!=null&&(s.toString()===i.toString()&&(n=o),!!n)}),n}getFieldDomain(e,t){const r=t&&t.feature,i=this.getFeatureType(r);if(i){const n=i.domains&&i.domains[e];if(n&&n.type!=="inherited")return n}return this._getLayerDomain(e)}async queryFeatures(e=this.createQuery(),t){var s,l,a,c,u,p;if(await this.load(),!((l=(s=this.capabilities)==null?void 0:s.operations)!=null&&l.supportsQuery))throw new ze("Sublayer.queryFeatures","this layer doesn't support queries.");const[{executeQuery:r},{default:i}]=await Promise.all([ut(()=>Promise.resolve().then(function(){return rit}),void 0),ut(()=>Promise.resolve().then(function(){return iit}),void 0)]),n=await r(this.url,ea.from(e),(c=(a=this.layer)==null?void 0:a.spatialReference)!=null?c:null,{...t,query:{...(u=this.layer)==null?void 0:u.customParameters,token:(p=this.layer)==null?void 0:p.apiKey}}),o=i.fromJSON(n.data);if(o!=null&&o.features)for(const h of o.features)h.sourceLayer=this;return o}toExportImageJSON(e){var o;const t={id:this.id,source:((o=this.source)==null?void 0:o.toJSON())||{mapLayerId:this.id,type:"mapLayer"}},r=UN(e,this.definitionExpression);ue(r)&&(t.definitionExpression=r);const i=["renderer","labelingInfo","opacity","labelsVisible"].reduce((s,l)=>(s[l]=this.originIdOf(l),s),{});if(Object.keys(i).some(s=>i[s]>Ht.SERVICE)){const s=t.drawingInfo={};if(i.renderer>Ht.SERVICE&&(s.renderer=this.renderer?this.renderer.toJSON():null),i.labelsVisible>Ht.SERVICE&&(s.showLabels=this.labelsVisible),this.labelsVisible&&i.labelingInfo>Ht.SERVICE){!this.loaded&&this.labelingInfo.some(a=>!a.labelPlacement)&&ft.getLogger(this.declaredClass).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`,{sublayer:this});let l=this.labelingInfo;ue(this.geometryType)&&(l=Olt(this.labelingInfo,VS.toJSON(this.geometryType))),s.labelingInfo=l.filter(a=>a.labelPlacement).map(a=>a.toJSON({origin:"service",layer:this.layer})),s.showLabels=!0}i.opacity>Ht.SERVICE&&(s.transparency=100-100*this.opacity),this._assignDefaultSymbolColors(s.renderer)}return t}_assignDefaultSymbolColors(e){this._forEachSimpleMarkerSymbols(e,t=>{t.color||t.style!=="esriSMSX"&&t.style!=="esriSMSCross"||(t.outline&&t.outline.color?t.color=t.outline.color:t.color=[0,0,0,0])})}_forEachSimpleMarkerSymbols(e,t){if(e){const r="uniqueValueInfos"in e?e.uniqueValueInfos:"classBreakInfos"in e?e.classBreakInfos:[];for(const i of r)FI(i.symbol)&&t(i.symbol);"symbol"in e&&FI(e.symbol)&&t(e.symbol),"defaultSymbol"in e&&FI(e.defaultSymbol)&&t(e.defaultSymbol)}}_setAndNotifyLayer(e,t){const r=this.layer,i=this._get(e);let n,o;switch(e){case"definitionExpression":case"floorInfo":n="supportsSublayerDefinitionExpression";case"minScale":case"maxScale":case"visible":n="supportsSublayerVisibility";break;case"labelingInfo":case"labelsVisible":case"opacity":case"renderer":case"source":n="supportsDynamicLayers",o="supportsModification"}const s=Nn(this).getDefaultOrigin();if(s!=="service"){if(n&&this.get(`layer.capabilities.exportMap.${n}`)===!1)return void this._logLockedError(e,`capability not available 'layer.capabilities.exportMap.${n}'`);if(o&&this.get(`capabilities.exportMap.${o}`)===!1)return void this._logLockedError(e,`capability not available 'capabilities.exportMap.${o}'`)}e!=="source"||this.loadStatus==="not-loaded"?(this._set(e,t),s!=="service"&&i!==t&&r&&r.emit&&r.emit("sublayer-update",{propertyName:e,target:this})):this._logLockedError(e,"'source' can't be changed after calling sublayer.load()")}_handleSublayersChange(e,t){t&&(t.forEach(r=>{r.parent=null,r.layer=null}),this.handles.removeAll()),e&&(e.forEach(r=>{r.parent=this,r.layer=this.layer}),this.handles.add([e.on("after-add",({item:r})=>{r.parent=this,r.layer=this.layer}),e.on("after-remove",({item:r})=>{r.parent=null,r.layer=null}),e.on("before-changes",r=>{const i=this.get("layer.capabilities.exportMap.supportsSublayersChanges");i==null||i||(ft.getLogger(this.declaredClass).error(new ze("sublayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{sublayer:this,layer:this.layer})),r.preventDefault())})]))}_logLockedError(e,t){ft.getLogger(this.declaredClass).error(new ze("sublayer:locked",`Property '${String(e)}' can't be changed on Sublayer from the layer '${this.layer.id}'`,{reason:t,sublayer:this,layer:this.layer}))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};$r.test={isMapImageLayerOverridePolicy:e=>e===$l||e===zI,isTileImageLayerOverridePolicy:e=>e===BW},d([f({readOnly:!0})],$r.prototype,"capabilities",void 0),d([Tt("service","capabilities",["layerDefinition.canModifyLayer","layerDefinition.capabilities"])],$r.prototype,"readCapabilities",null),d([f({type:String,value:null,json:{name:"layerDefinition.definitionExpression",write:{allowNull:!0,overridePolicy:zI}}})],$r.prototype,"definitionExpression",null),d([f({type:[AT],json:{origins:{service:{read:{source:"layerDefinition.fields"}}}}})],$r.prototype,"fields",void 0),d([f({readOnly:!0})],$r.prototype,"fieldsIndex",null),d([f({type:ooe,value:null,json:{name:"layerDefinition.floorInfo",read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo",overridePolicy:zI},origins:{"web-scene":{read:!1,write:!1}}}})],$r.prototype,"floorInfo",null),d([f({type:li,json:{read:{source:"layerDefinition.extent"}}})],$r.prototype,"fullExtent",void 0),d([f({type:VS.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:VS.read}}}}})],$r.prototype,"geometryType",void 0),d([f({type:String})],$r.prototype,"globalIdField",void 0),d([Tt("service","globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],$r.prototype,"readGlobalIdFieldFromService",null),d([f({type:ni,json:{write:{ignoreOrigin:!0}}})],$r.prototype,"id",null),d([f({value:null,type:[wx],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo"},write:{target:"layerDefinition.drawingInfo.labelingInfo",overridePolicy:$l}}})],$r.prototype,"labelingInfo",null),d([zt("labelingInfo")],$r.prototype,"writeLabelingInfo",null),d([f({type:Boolean,value:!0,json:{read:{source:"layerDefinition.drawingInfo.showLabels"},write:{target:"layerDefinition.drawingInfo.showLabels",overridePolicy:$l}}})],$r.prototype,"labelsVisible",null),d([f({value:null})],$r.prototype,"layer",null),d([f({type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend",overridePolicy:lC}}})],$r.prototype,"legendEnabled",void 0),d([f({type:["show","hide","hide-children"],value:"show",json:{read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],$r.prototype,"listMode",null),d([f({type:Number,value:0,json:{write:{overridePolicy:$l}}})],$r.prototype,"minScale",null),d([Tt("minScale",["minScale","layerDefinition.minScale"])],$r.prototype,"readMinScale",null),d([f({type:Number,value:0,json:{write:{overridePolicy:$l}}})],$r.prototype,"maxScale",null),d([Tt("maxScale",["maxScale","layerDefinition.maxScale"])],$r.prototype,"readMaxScale",null),d([f({readOnly:!0})],$r.prototype,"effectiveScaleRange",null),d([f({type:String})],$r.prototype,"objectIdField",void 0),d([Tt("service","objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],$r.prototype,"readObjectIdFieldFromService",null),d([f({type:Number,value:1,json:{write:{target:"layerDefinition.drawingInfo.transparency",overridePolicy:$l}}})],$r.prototype,"opacity",null),d([Tt("opacity",["layerDefinition.drawingInfo.transparency","layerDefinition.transparency"])],$r.prototype,"readOpacity",null),d([zt("opacity")],$r.prototype,"writeOpacity",null),d([f({json:{type:ni,write:{target:"parentLayerId",writerEnsuresNonNull:!0,overridePolicy:$l}}})],$r.prototype,"parent",void 0),d([zt("parent")],$r.prototype,"writeParent",null),d([f({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy:lC,writer(e,t,r){t[r]=!e}}}})],$r.prototype,"popupEnabled",void 0),d([f({type:S0,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:lC}}})],$r.prototype,"popupTemplate",void 0),d([f({readOnly:!0})],$r.prototype,"defaultPopupTemplate",null),d([f({types:vx,value:null,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:$l},origins:{"web-scene":{types:jne,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:$l}}}}})],$r.prototype,"renderer",null),d([f({types:{key:"type",base:null,typeMap:{"data-layer":pl,"map-layer":id}},cast(e){if(e){if("mapLayerId"in e)return Jw(id,e);if("dataSource"in e)return Jw(pl,e)}return e},json:{name:"layerDefinition.source",write:{overridePolicy:$l}}})],$r.prototype,"source",null),d([f()],$r.prototype,"sourceJSON",void 0),d([f({value:null,json:{type:[ni],write:{target:"subLayerIds",allowNull:!0,overridePolicy:$l}}})],$r.prototype,"sublayers",null),d([Qr("sublayers")],$r.prototype,"castSublayers",null),d([zt("sublayers")],$r.prototype,"writeSublayers",null),d([f({type:String,json:{name:"name",write:{overridePolicy:lC}}})],$r.prototype,"title",void 0),d([f({type:String})],$r.prototype,"typeIdField",void 0),d([Tt("typeIdField",["layerDefinition.typeIdField"])],$r.prototype,"readTypeIdField",null),d([f({type:[nF],json:{origins:{service:{read:{source:"layerDefinition.types"}}}}})],$r.prototype,"types",void 0),d([f({type:String,json:{read:{source:"layerUrl"},write:{target:"layerUrl",overridePolicy:BW}}})],$r.prototype,"url",null),d([f({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"},write:{target:"defaultVisibility",overridePolicy:$l}}})],$r.prototype,"visible",null),d([zt("visible")],$r.prototype,"writeVisible",null),$r=Kk=d([se("esri.layers.support.Sublayer")],$r);const Tx=$r;function UW(e,t,r){return t.flatten(({sublayers:n})=>n).length!==e.length?!0:!!e.some(n=>n.originIdOf("minScale")>r||n.originIdOf("maxScale")>r||n.originIdOf("renderer")>r||n.originIdOf("labelingInfo")>r||n.originIdOf("opacity")>r||n.originIdOf("labelsVisible")>r||n.originIdOf("source")>r)||!ole(e,t)}function $ht(e,t,r){return!!e.some(i=>{const n=i.source;return!(!n||n.type==="map-layer"&&n.mapLayerId===i.id&&(et(n.gdbVersion)||n.gdbVersion===r))||i.originIdOf("renderer")>Ht.SERVICE||i.originIdOf("labelingInfo")>Ht.SERVICE||i.originIdOf("opacity")>Ht.SERVICE||i.originIdOf("labelsVisible")>Ht.SERVICE})||!ole(e,t)}function ole(e,t){if(!e||!e.length||et(t))return!0;const r=t.slice().reverse().flatten(({sublayers:o})=>o&&o.toArray().reverse()).map(o=>o.id).toArray();if(e.length>r.length)return!1;let i=0;const n=r.length;for(const{id:o}of e){for(;i<n&&r[i]!==o;)i++;if(i>=n)return!1}return!0}function Oht(e){return!!e&&e.some(t=>t.minScale!=null||t.layerDefinition&&t.layerDefinition.minScale!=null)}const Lht=ft.getLogger("esri.layers.TileLayer");function Rht(e,t){const r=[],i={};return e&&e.forEach(n=>{const o=new Tx;if(o.read(n,t),i[o.id]=o,n.parentLayerId!=null&&n.parentLayerId!==-1){const s=i[n.parentLayerId];s.sublayers||(s.sublayers=[]),s.sublayers.unshift(o)}else r.unshift(o)}),r}const jI=dr.ofType(Tx);function sle(e,t){e&&e.forEach(r=>{t(r),r.sublayers&&r.sublayers.length&&sle(r.sublayers,t)})}const lle=e=>{let t=class extends e{constructor(...r){super(...r),this.allSublayers=new Jv({getCollections:()=>[this.sublayers],getChildrenFunction:i=>i.sublayers}),this.sublayersSourceJSON={[Ht.SERVICE]:{},[Ht.PORTAL_ITEM]:{},[Ht.WEB_SCENE]:{},[Ht.WEB_MAP]:{}},this.addHandles(Ot(()=>this.sublayers,(i,n)=>this._handleSublayersChange(i,n),gg))}readSublayers(r,i){if(!i||!r)return;const{sublayersSourceJSON:n}=this,o=Ls(i.origin);if(o<Ht.SERVICE||(n[o]={context:i,visibleLayers:r.visibleLayers||n[o].visibleLayers,layers:r.layers||n[o].layers},o>Ht.SERVICE))return;this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers);const{sublayers:s,origin:l}=this.createSublayersForOrigin("web-document"),a=Nn(this);a.setDefaultOrigin(l),this._set("sublayers",new jI(s)),a.setDefaultOrigin("user")}findSublayerById(r){return this.allSublayers.find(i=>i.id===r)}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(r){const i=Ls(r==="web-document"?"web-map":r);let n=Ht.SERVICE,o=this.sublayersSourceJSON[Ht.SERVICE].layers,s=this.sublayersSourceJSON[Ht.SERVICE].context,l=null;const a=[Ht.PORTAL_ITEM,Ht.WEB_SCENE,Ht.WEB_MAP].filter(y=>y<=i);for(const y of a){const v=this.sublayersSourceJSON[y];Oht(v.layers)&&(n=y,o=v.layers,s=v.context,v.visibleLayers&&(l={visibleLayers:v.visibleLayers,context:v.context}))}const c=[Ht.PORTAL_ITEM,Ht.WEB_SCENE,Ht.WEB_MAP].filter(y=>y>n&&y<=i);let u=null;for(const y of c){const{layers:v,visibleLayers:_,context:x}=this.sublayersSourceJSON[y];v&&(u={layers:v,context:x}),_&&(l={visibleLayers:_,context:x})}const p=Rht(o,s),h=new Map,m=new Set;if(u)for(const y of u.layers)h.set(y.id,y);if(l)for(const y of l.visibleLayers)m.add(y);return sle(p,y=>{u&&y.read(h.get(y.id),u.context),l&&y.read({defaultVisibility:m.has(y.id)},l.context)}),{origin:t1(n),sublayers:new jI({items:p})}}read(r,i){super.read(r,i),this.readSublayers(r,i)}_handleSublayersChange(r,i){i&&(i.forEach(n=>{n.parent=null,n.layer=null}),this.handles.remove("sublayers-owner")),r&&(r.forEach(n=>{n.parent=this,n.layer=this}),this.handles.add([r.on("after-add",({item:n})=>{n.parent=this,n.layer=this}),r.on("after-remove",({item:n})=>{n.parent=null,n.layer=null})],"sublayers-owner"),this.type==="tile"&&this.handles.add(r.on("before-changes",n=>{Lht.error(new ze("tilelayer:sublayers-non-modifiable","ISublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),n.preventDefault()}),"sublayers-owner"))}};return d([f({readOnly:!0})],t.prototype,"allSublayers",void 0),d([f({readOnly:!0,type:dr.ofType(Tx)})],t.prototype,"serviceSublayers",void 0),d([f({value:null,type:jI,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],t.prototype,"sublayers",void 0),d([f({readOnly:!0})],t.prototype,"sublayersSourceJSON",void 0),t=d([se("esri.layers.mixins.SublayersOwner")],t),t},WW=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let xn=class extends bx(lle(Cx(FT(zT(Iht(nle(YN(V0(fa(xx(HN(KN(Rh))))))))))))){constructor(...e){super(...e),this.listMode="show",this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return typeof e=="string"?{url:e,...t}:e}load(e){const t=ue(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(Eg).then(()=>this._fetchService(t))),Promise.resolve(this)}get attributionDataUrl(){var t;const e=(t=this.parsedUrl)==null?void 0:t.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}readSpatialReference(e,t){return(e=e||t.tileInfo&&t.tileInfo.spatialReference)&&gr.fromJSON(e)}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:l})=>l&&l.toArray().reverse()).toArray(),o=[],s={writeSublayerStructure:!1,...i};n.forEach(l=>{const a=l.write({},s);o.push(a)}),o.some(l=>Object.keys(l).length>1)&&(t.layers=o)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl.path)}castTileServers(e){return Array.isArray(e)?e.map(t=>vo(t).path):null}fetchTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),s={responseType:"image",signal:n,query:{...this.refreshParameters}};return ri(o,s).then(l=>l.data)}async fetchImageBitmapTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),s={responseType:"blob",signal:n,query:{...this.refreshParameters}},l=await ri(o,s);return createImageBitmap(l.data)}getTileUrl(e,t,r){const i=!this.tilemapCache&&this.supportsBlankTile,n=$h({...this.parsedUrl.query,blankTile:!i&&null,...this.customParameters,token:this.apiKey}),o=this.tileServers;return`${o&&o.length?o[t%o.length]:this.parsedUrl.path}/tile/${e}/${t}/${r}${n?"?"+n:""}`}_fetchService(e){return new Promise((t,r)=>{if(this.sourceJSON){if(this.sourceJSON.bandCount!=null&&this.sourceJSON.pixelSizeX!=null)throw new ze("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new ze("tile-layer:undefined-url","layer's url is not defined");const i=Zh(this.parsedUrl.path);if(ue(i)&&i.serverType==="ImageServer")throw new ze("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");ri(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,r)}).then(t=>{if(t.ssl&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),this.version===10.1&&!qN(this.url))return this._fetchServerVersion(this.url,e).then(r=>{this.read({currentVersion:r})}).catch(()=>{})})}_fetchServerVersion(e,t){if(!Pot(e))return Promise.reject();const r=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return ri(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(i=>{if(i.data&&i.data.currentVersion)return i.data.currentVersion;throw new ze("tile-layer:version-not-available")})}_getMapName(e){const t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i);return t&&t[2]}_getDefaultAttribution(e){if(!e)return;let t;e=e.toLowerCase();for(let r=0,i=WW.length;r<i;r++)if(t=WW[r],t.toLowerCase().includes(e))return fl("//static.arcgis.com/attribution/"+t)}_getDefaultTileServers(e){const t=e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i)!==-1,r=e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i)!==-1;return t||r?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile.__isDefault__}};d([f({readOnly:!0})],xn.prototype,"attributionDataUrl",null),d([f({type:["show","hide","hide-children"]})],xn.prototype,"listMode",void 0),d([f({json:{read:!0,write:!0}})],xn.prototype,"blendMode",void 0),d([f({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],xn.prototype,"isReference",void 0),d([f({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],xn.prototype,"operationalLayerType",void 0),d([f({type:Boolean})],xn.prototype,"resampling",void 0),d([f()],xn.prototype,"sourceJSON",void 0),d([f({type:gr})],xn.prototype,"spatialReference",void 0),d([Tt("spatialReference",["spatialReference","tileInfo"])],xn.prototype,"readSpatialReference",null),d([f({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],xn.prototype,"path",void 0),d([f({readOnly:!0})],xn.prototype,"sublayers",void 0),d([zt("sublayers",{layers:{type:[Tx]}})],xn.prototype,"writeSublayers",null),d([f({json:{read:!1,write:!1}})],xn.prototype,"popupEnabled",void 0),d([f()],xn.prototype,"tileServers",null),d([Qr("tileServers")],xn.prototype,"castTileServers",null),d([f({readOnly:!0,json:{read:!1}})],xn.prototype,"type",void 0),d([f(QN)],xn.prototype,"url",void 0),xn=d([se("esri.layers.TileLayer")],xn),xn.prototype.fetchTile.__isDefault__=!0;const ale=xn;var yvt=Object.freeze(Object.defineProperty({__proto__:null,default:ale},Symbol.toStringTag,{value:"Module"}));const cle=96;function Dht(e,t){const r=t||e.extent,i=e.width,n=Ig(r&&r.spatialReference);return r&&i?r.width/i*n*Vte*cle:0}function vvt(e,t){return e/(Ig(t)*Vte*cle)}function bvt(e){var r;const t=e.layer;return"floorInfo"in t&&((r=t.floorInfo)==null?void 0:r.floorField)&&"floors"in e.view?ule(e.view.floors,t.floorInfo.floorField):null}function HW(e,t){var r;return"floorInfo"in t&&((r=t.floorInfo)==null?void 0:r.floorField)?ule(e,t.floorInfo.floorField):null}function ule(e,t){if(!(e!=null&&e.length))return null;const r=e.filter(i=>i!=="").map(i=>`'${i}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}const Nht={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let ll=class extends fa(rr){constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(t=>{const r=HW(this.floors,t);return t.toExportImageJSON(r)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&$ht(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",t=>this.notifyChange(Nht[t.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(t=>t.id).join(","):"show:-1":null}get layerDefs(){var r;const e=!!((r=this.floors)!=null&&r.length),t=this.visibleSublayers.filter(i=>i.definitionExpression!=null||e&&i.floorInfo!=null);return t.length?JSON.stringify(t.reduce((i,n)=>{const o=HW(this.floors,n),s=UN(o,n.definitionExpression);return ue(s)&&(i[n.id]=s),i},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=n=>{const o=this.scale,s=o===0,l=n.minScale===0||o<=n.minScale,a=n.maxScale===0||o>=n.maxScale;n.visible&&(s||l&&a)&&(n.sublayers?n.sublayers.forEach(r):e.unshift(n))};t&&t.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((n,o)=>e[o]!==n)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};d([f({readOnly:!0})],ll.prototype,"dynamicLayers",null),d([f()],ll.prototype,"floors",void 0),d([f({readOnly:!0})],ll.prototype,"hasDynamicLayers",null),d([f()],ll.prototype,"layer",null),d([f({readOnly:!0})],ll.prototype,"layers",null),d([f({readOnly:!0})],ll.prototype,"layerDefs",null),d([f({type:Number})],ll.prototype,"scale",void 0),d([f(Jot)],ll.prototype,"timeExtent",void 0),d([f({readOnly:!0})],ll.prototype,"version",null),d([f({readOnly:!0})],ll.prototype,"visibleSublayers",null),ll=d([se("esri.layers.mixins.ExportImageParameters")],ll);let Cn=class extends bx(xoe(Cx(lle(nle(YN(FT(zT(V0(xx(HN(KN(fa(Rh))))))))))))){constructor(...e){super(...e),this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return typeof e=="string"?{url:e,...t}:e}load(e){const t=ue(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(Eg).then(()=>this._fetchService(t))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:c})=>c&&c.toArray().reverse()).toArray();let o=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap.supportsDynamicLayers){const c=Ls(i.origin);if(c===Ht.PORTAL_ITEM){const u=this.createSublayersForOrigin("service").sublayers;o=UW(n,u,Ht.SERVICE)}else if(c>Ht.PORTAL_ITEM){const u=this.createSublayersForOrigin("portal-item");o=UW(n,u.sublayers,Ls(u.origin))}}const s=[],l={writeSublayerStructure:o,...i};let a=o;n.forEach(c=>{const u=c.write({},l);s.push(u),a=a||c.originOf("visible")==="user"}),s.some(c=>Object.keys(c).length>1)&&(t.layers=s),a&&(t.visibleLayers=n.filter(c=>c.visible).map(c=>c.id))}createExportImageParameters(e,t,r,i){const n=i&&i.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const o=new ll({layer:this,floors:i==null?void 0:i.floors,scale:Dht({extent:e,width:t})*n}),s=o.toJSON();o.destroy();const l=!i||!i.rotation||this.version<10.3?{}:{rotation:-i.rotation},a=e&&e.spatialReference,c=a.wkid||JSON.stringify(a.toJSON());s.dpi*=n;const u={};if(i!=null&&i.timeExtent){const{start:p,end:h}=i.timeExtent.toJSON();u.time=p&&h&&p===h?""+p:`${p!=null?p:"null"},${h!=null?h:"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:c,imageSR:c,size:t+","+r,...s,...l,...u}}async fetchImage(e,t,r,i){return this._fetchImage("image",e,t,r,i)}async fetchImageBitmap(e,t,r,i){const n=await this._fetchImage("blob",e,t,r,i);return createImageBitmap(n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await ri(this.url,t),{extent:i,fullExtent:n,timeExtent:o}=r,s=i||n;return{fullExtent:s&&li.fromJSON(s),timeExtent:o&&vc.fromJSON({start:o[0],end:o[1]})}}loadAll(){return dF(this,e=>{e(this.allSublayers)})}serviceSupportsSpatialReference(e){return koe(this,e)}async _fetchImage(e,t,r,i,n){var l;const o={responseType:e,signal:(l=n==null?void 0:n.signal)!=null?l:null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,n),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},s=this.parsedUrl.path+"/export";if(o.query.dynamicLayers!=null&&!this.capabilities.exportMap.supportsDynamicLayers)throw new ze("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:a}=await ri(s,o);return a}catch(a){throw us(a)?a:new ze("mapimagelayer:image-fetch-error",`Unable to load image: ${s}`,{error:a})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await ri(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};d([f({type:Boolean})],Cn.prototype,"datesInUnknownTimezone",void 0),d([f()],Cn.prototype,"dpi",void 0),d([f()],Cn.prototype,"gdbVersion",void 0),d([f()],Cn.prototype,"imageFormat",void 0),d([Tt("imageFormat",["supportedImageFormatTypes"])],Cn.prototype,"readImageFormat",null),d([f({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],Cn.prototype,"imageMaxHeight",void 0),d([f({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],Cn.prototype,"imageMaxWidth",void 0),d([f()],Cn.prototype,"imageTransparency",void 0),d([f({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Cn.prototype,"isReference",void 0),d([f({json:{read:!1,write:!1}})],Cn.prototype,"labelsVisible",void 0),d([f({type:["ArcGISMapServiceLayer"]})],Cn.prototype,"operationalLayerType",void 0),d([f({json:{read:!1,write:!1}})],Cn.prototype,"popupEnabled",void 0),d([f()],Cn.prototype,"sourceJSON",void 0),d([f({json:{write:{ignoreOrigin:!0}}})],Cn.prototype,"sublayers",void 0),d([zt("sublayers",{layers:{type:[Tx]},visibleLayers:{type:[ni]}})],Cn.prototype,"writeSublayers",null),d([f({type:["show","hide","hide-children"]})],Cn.prototype,"listMode",void 0),d([f({json:{read:!1},readOnly:!0,value:"map-image"})],Cn.prototype,"type",void 0),d([f(QN)],Cn.prototype,"url",void 0),Cn=d([se("esri.layers.MapImageLayer")],Cn);const dle=Cn;var _vt=Object.freeze(Object.defineProperty({__proto__:null,default:dle},Symbol.toStringTag,{value:"Module"}));class kF{constructor(t){this._initMap(t)}_initMap(t){let r=this;if(t&&t.baseMapUrl){let i=this._initBasemap(t.baseMapUrl);this._map=new aL({basemap:i})}else this._map=new aL({basemap:r._initBasemapMapbox()});this._mapView=new kht({container:t.selector,map:r._map}),this._mapView.ui.components=[]}_initBasemap(t){let r=Eht.createSubclass({properties:{urlTemplate:null},getTileUrl:function(o,s,l){let a=Math.pow(2,o)-s-1;return this.urlTemplate.replace("{z}",o).replace("{x}",l).replace("{y}",a)}}),i=new r({urlTemplate:t+"/{z}/{x}/{y}.png",title:"\u57FA\u7840\u56FE\u5C42"});return i.on("layerview-create",function(){_self.onViewReady&&_self.onViewReady()}),i.on("layerview-create-error",function(o){_self.onViewReady&&_self.onViewReady()}),new n0({baseLayers:[i]})}_initBasemapMapbox(){let t=this,r="https://api.mapbox.com/styles/v1/chenchen1990/ckvgc14xrh7mo14qowdw4wrkf/tiles/512/{z}/{x}/{y}?access_token=pk.eyJ1IjoiY2hlbmNoZW4xOTkwIiwiYSI6ImNrbzA3eTY1OTA3dXkyd20zdG40ZGdmNXYifQ.xWKxjBG6mEDh55_oln0nAg",i=new ile(r,{subDomains:["a","b","c"]});return i.on("layerview-create",function(){t.onViewReady&&t.onViewReady()}),i.on("layerview-create-error",function(o){t.onViewReady&&t.onViewReady()}),new n0({baseLayers:[i]})}}Object.assign(kF.prototype,{zoomToExtent:function(e){let t=new gr({wkid:4326}),r=new li({xmin:parseFloat(e.xmin),ymin:parseFloat(e.ymin),xmax:parseFloat(e.xmax),ymax:parseFloat(e.ymax),spatialReference:t});this._mapView.extent=r}});Object.assign(kF.prototype,{addTileLayer:function(e,t,r){if(!!e){var i=new ale({url:e.url,title:e.title});i.on("layerview-create",function(){t&&t()}),i.on("layerview-create-error",function(n){r&&r(n.error.message)}),this._map.add(i,0)}},addDynamicLayer:function(e,t,r){if(!e||!e.subids||!e.subids.length)return;let i=[];for(let o of e.subids)i.push({id:o,definitionExpression:e.filter==null?"":e.filter});var n=new dle({url:e.url,title:e.title,sublayers:i,visible:e.visible==null?!1:e.visible});n.on("layerview-create",function(){n.sublayers.find(function(o){o.labelsVisible=e.labelVisible===void 0?!1:e.labelVisible}),t&&t()}),n.on("layerview-create-error",function(o){r&&r(o.error.message)}),this._map.add(n,1)},removeLayer:function(e,t,r){let i=this._map.allLayers.find(function(n){return n.title===e});i?(this._map.layers.remove(i),t&&t()):r&&r("\u540D\u79F0\u4E3A"+e+"\u7684\u56FE\u5C42\u4E0D\u80FD\u5B58\u5728\uFF01")},setLayerIsVisibleByName:function(e,t){console.log("\u56FE\u5C42\u7BA1\u7406====",e,t),this._map.layers.forEach(function(r,i){if(r.title&&r.title.toLocaleLowerCase()==e.toLocaleLowerCase())return r.visible=t,i})},setLabelVisibleByName:function(e,t){this._map.layers.forEach(function(r,i){r.title.toLocaleLowerCase()==e.toLocaleLowerCase()&&r.sublayers.find(function(n){n.labelsVisible=t})})}});const Fht={id:"esriMap",class:"cr-esri-map"},zht={data(){return{layerConfig:void 0}},created(){},mounted(){let e=this;this.EMapAPI=new kF({selector:"esriMap"}),this.EMapAPI.onViewReady=function(){e.emit("onViewReady","\u7EC4\u4EF6\u5E95\u56FE\u521D\u59CB\u5316\u5B8C\u6210")};let t={xmin:118.032810723,ymin:34.901398239,xmax:118.51750693,ymax:35.521009885};this.EMapAPI.zoomToExtent(t)},methods:{LoadRasterServer(e,t){if(e){let r;for(let i of e[0].layerList)if(i.layerType==="base"&&i.layerIsVisible==="1"){r=i;break}if(!r)return;this.EMapAPI.addTileLayer({url:r.layerURL,title:"YX_LAYER"},function(){t&&t()},function(i){console.log(i)})}},LoadVectorServer(e,t){if(e){let r=[];for(let i of e[0].layerList)i.layerType==="server"&&r.push(i),i.layerType==="server"&&i.isCase==="1"&&(this.caseServerUrl=i.layerURL+"/"+i.lyrIdx,this.caseQueryFilter=i.layerIsFilter);this.mapQueryUrl=e[0].layerList[0].layerURL,this.appendVectorLayers(0,r,function(){t&&t()})}},appendVectorLayers(e,t,r){let i=this;if(e===t.length)r&&r();else{let n=t[e];this.EMapAPI.addDynamicLayer({url:n.layerURL,title:n.eName,subids:[parseInt(n.lyrIdx)],visible:n.layerIsVisible==="1",labelVisible:n.labelIsVisible==="1",filter:n.layerIsFilter},function(){i.appendVectorLayers(e+1,t,r)},function(o){i.appendVectorLayers(e+1,t,r)})}}}},jht=Object.assign(zht,{__name:"EMap",emits:["onViewReady"],setup(e,{expose:t,emit:r}){const{proxy:i}=Xt();return t({loadServer:function(l){i.layerConfig=l[0],i.LoadRasterServer(l,function(){i.LoadVectorServer(l,function(){console.log("\u56FE\u5C42\u52A0\u8F7D\u5B8C\u6210\uFF01")})})},setLayerVisible:function(l){console.log("\u8981\u6C42\u63A7\u5236\u56FE\u5C42\u663E\u793A/\u9690\u85CF",JSON.stringify(l)),l.type==="s"?i.EMapAPI.setLayerIsVisibleByName(l.id,l.visible):l.type==="r"&&i.layerConfig.layerList.forEach((a,c)=>{a.eName===l.id&&i.EMapAPI.removeLayer("YX_LAYER",function(){i.EMapAPI.addTileLayer({url:a.layerURL,title:"YX_LAYER"},function(){},function(u){})},function(u){console.log("\u79FB\u9664\u5F71\u50CF\u56FE\u5C42\u5931\u8D25\uFF01")})})},setLabelVisible:function(l){console.log("\u8981\u6C42\u63A7\u5236\u56FE\u5C42\u6807\u6CE8\u663E\u793A/\u9690\u85CF",JSON.stringify(l)),l.type==="s"&&i.EMapAPI.setLabelVisibleByName(l.id,l.visible)}}),(l,a)=>($(),K("div",Fht))}});const Vht={data(){return{leftTools:[],rightTools:[],showRightPopup:!1,showOverlay:!1,poputNavTitle:"",layerConfig:void 0,layers:[]}},created(){this.leftTools.push({title:"\u957F\u5EA6\u91CF\u6D4B",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u5BF9\u8C61\u7684\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u957F\u5EA6\u5E76\u5C55\u793A",icon:"app-icon-map-measurelength",id:"length"}),this.leftTools.push({title:"\u9762\u79EF\u91CF\u6D4B",describe:"\u5728\u5730\u56FE\u4E0A\u70B9\u51FB\u9700\u8981\u6D4B\u91CF\u7684\u5BF9\u8C61\u7279\u5F81\u4F4D\u7F6E,\u5373\u53EF\u5B9E\u65F6\u8BA1\u7B97\u9762\u79EF\u5E76\u5C55\u793A",icon:"app-icon-map-measurearea",id:"area"}),this.leftTools.push({title:"\u91CD\u7F6E\u5730\u56FE",describe:"\u70B9\u51FB\u5373\u53EF\u91CD\u7F6E\u5730\u56FE\u8303\u56F4\u4E3A\u521D\u59CB\u663E\u793A\u8303\u56F4",icon:"app-icon-map-initlocation",id:"initMapExtent"}),this.leftTools.push({title:"\u5750\u6807\u67E5\u8BE2",describe:"\u5728\u5730\u56FE\u4E0A\u9700\u8981\u67E5\u8BE2\u5750\u6807\u7684\u4F4D\u7F6E\u4E0A\u70B9\u51FB,\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5730\u7406\u5750\u6807",icon:"app-icon-map-querycoord",id:"coordQuery"}),this.leftTools.push({title:"\u5750\u6807\u5B9A\u4F4D",describe:"\u70B9\u51FB\u540E,\u5F39\u51FA\u5750\u6807\u8F93\u5165\u6846,\u8F93\u5165\u6B63\u786E\u7684\u4F4D\u7F6E\u5750\u6807\u540E\u70B9\u51FB\u5B9A\u4F4D,\u5373\u53EF\u5728\u5730\u56FE\u4E0A\u5C55\u793A\u5750\u6807\u4F4D\u7F6E",icon:"app-icon-map-inputcoord-location",id:"inputLocation"}),this.rightTools.push({title:"\u56FE\u5C42\u7BA1\u7406",describe:"\u70B9\u51FB\u5373\u53EF\u6253\u5F00\u56FE\u5C42\u63A7\u5236\u7A97\u53E3,\u8FDB\u884C\u56FE\u5C42\u53CA\u6807\u6CE8\u7684\u663E\u793A/\u9690\u85CF",icon:"app-icon-map-layer",id:"layerControl"}),this.rightTools.push({title:"\u70B9\u51FB\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u9700\u8981\u67E5\u8BE2\u7684\u4F4D\u7F6E\u5355\u51FB\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u4F4D\u7F6E\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-point",id:"queryByPoint"}),this.rightTools.push({title:"\u533A\u57DF\u67E5\u8BE2",describe:"\u70B9\u51FB\u540E\uFF0C\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u67E5\u8BE2\u533A\u57DF\uFF0C\u5355\u51FB\u5F00\u59CB\u67E5\u8BE2\uFF0C\u5373\u53EF\u67E5\u8BE2\u8BE5\u533A\u57DF\u5185\u7684\u5168\u90E8\u53EF\u89C1\u56FE\u5C42\u6570\u636E",icon:"app-icon-map-query-polygon",id:"queryByPolygon"}),this.rightTools.push({title:"\u6E05\u626B\u5DE5\u5177",describe:"\u6E05\u9664\u5730\u56FE\u4E0A\u7684\u5404\u7C7B\u7ED8\u5236\u5185\u5BB9",icon:"app-icon-map-clean",id:"cleanDraw"})},mounted(){this.layers=[{code:"14971460056420802570000",name:"\u6D4B\u8BD5\u6570\u636E",items:[{title:"\u6D4B\u8BD5\u6570\u636E1",islabel:!0,ischecked:!1,labelIsChecked:!0,icon:"app-icon-map-measurelength"},{title:"\u6D4B\u8BD5\u6570\u636E2",islabel:!1,ischecked:!1,labelIsChecked:!0,icon:"app-icon-map-measurelength"}]}]},methods:{onViewReady(e){let t=this;plusGetStorage({key:"layer",success:function(r){t.layerConfig=JSON.parse(r),t.$refs.emap.loadServer(t.layerConfig)},error:function(){}})},onToolsClick(e){switch(e){case"layerControl":this.showRightPopup=!0,this.poputNavTitle="\u56FE\u5C42\u7BA1\u7406",this._showLayerControl();break;default:En.alert({title:"\u70B9\u51FB\u4E86",message:e});break}},onLayerChange(e){this.$refs.emap.setLayerVisible(e),e.type==="r"&&(console.log(e.pname),console.log(e.type,this.$refs[e.pname+"1"]),this.$refs[e.pname+"1"].setChecked(!1))},onLabelChange(e){this.$refs.emap.setLabelVisible(e)},_showLayerControl(){this.layers=[];for(let e of this.layerConfig[0].categoryList)this.layers.push({code:e.cyCode,name:e.cyName,items:[]});for(let e of this.layerConfig[0].layerList)for(let t of this.layers)if(t.code===e.pCode){t.items.push({pname:"f"+t.cyCode,title:e.cName,islabel:e.layerType==="server",ischecked:e.layerIsVisible==="1",labelIsChecked:e.labelIsVisible==="1",icon:e.layerType==="server"?"app-icon-layer-item-vector":"app-icon-layer-item-raster",id:e.eName,type:e.layerType==="server"?"s":"r"});break}}}},Bht={class:"cr-tools-left"},Uht={class:"cr-tools-right"},Wht={class:"cr-popup-content"},Hht={class:"cr-poput-nav-title"},Ght={class:"cr-popup-main-content"},qht={class:"cr-layer-control-group-item"},Yht={class:"cr-group-nav"};function Kht(e,t,r,i,n,o){const s=jht,l=GG,a=xBe,c=aR;return $(),K(bt,null,[Y(s,{onOnViewReady:o.onViewReady,ref:"emap"},null,8,["onOnViewReady"]),G("view",Bht,[($(!0),K(bt,null,or(n.leftTools,(u,p)=>($(),Te(l,{id:u.id,title:u.title,describe:u.describe,icon:u.icon,onOnclick:o.onToolsClick},null,8,["id","title","describe","icon","onOnclick"]))),256))]),G("view",Uht,[($(!0),K(bt,null,or(n.rightTools,(u,p)=>($(),Te(l,{id:u.id,title:u.title,describe:u.describe,icon:u.icon,onOnclick:o.onToolsClick},null,8,["id","title","describe","icon","onOnclick"]))),256))]),Y(c,{show:n.showRightPopup,"onUpdate:show":t[1]||(t[1]=u=>n.showRightPopup=u),position:"right",style:St({width:"35%",height:"calc(100% - 51px)",top:"calc(50% - 25px)"}),overlay:n.showOverlay},{default:me(()=>[G("div",Wht,[G("div",{class:"cr-poput-nav",onClick:t[0]||(t[0]=u=>n.showRightPopup=!1)},[G("span",Hht,rt(n.poputNavTitle),1)]),G("div",Ght,[($(!0),K(bt,null,or(n.layers,(u,p)=>($(),K("div",qht,[G("span",Yht,rt(u.name),1),($(!0),K(bt,null,or(u.items,(h,m)=>($(),Te(a,{ref_for:!0,ref:h.pname+m,config:h,onLayerchange:o.onLayerChange,onLabelchange:o.onLabelChange},null,8,["config","onLayerchange","onLabelchange"]))),256))]))),256))])])]),_:1},8,["show","style","overlay"])],64)}var Zht=Dh(Vht,[["render",Kht]]);const Qht={};function Jht(e,t){return $(),K("view",null,"\u901A\u8BAF\u5F55")}var Xht=Dh(Qht,[["render",Jht]]);const eft={};function tft(e,t){return $(),K("view",null,"\u8BBE\u7F6E")}var rft=Dh(eft,[["render",tft]]);const ift={data(){return{images:[{src:"./public/img/ico_img_add.png",isAdd:!0}]}},methods:{onRemovePhoto(){this.images.length>1&&this.images.shift()},onImage(e){let t=this;e.isAdd?plusCamera(void 0,function(r){console.log(r.path),t.images.unshift({src:r.data,isAdd:!1,path:r.path})},function(r){console.log("\u9519\u8BEF\uFF1A"+r)}):plusPreviewImage(e.path)}},mounted(){localStorage.setItem("Layer",JSON.stringify({userId:"\u6211\u662F\u4E00\u4E2A\u7528\u6237"}));let e=JSON.parse(localStorage.getItem("Layer1"));console.log("aaa",e)}},nft={class:"cr-img-panel"},oft=["src","onClick"];function sft(e,t,r,i,n,o){const s=rS,l=gpe;return $(),Te(l,null,{right:me(()=>[Y(s,{square:"",type:"danger",text:"\u5220\u9664",onClick:o.onRemovePhoto},null,8,["onClick"])]),default:me(()=>[G("div",nft,[($(!0),K(bt,null,or(n.images,(a,c)=>($(),K("img",{src:a.src,class:N(a.isAdd?"cr-img-add":"cr-img-normal"),onClick:u=>o.onImage(a)},null,10,oft))),256))])]),_:1})}var ple=Dh(ift,[["render",sft]]);const lft={class:"jt-view"},aft={data(){return{showTab:[!1,!1,!0,!1,!1]}},methods:{onChange(e){console.log(this.showTab.length);for(let t=0;t<this.showTab.length;t++)this.showTab[t]=!1;this.showTab[e]=!0}},mounted(){let e=this;plusSetIpAndCom({ip:"218.59.194.82",com:"9093",success:function(){console.log("\u5B58\u50A8\u6210\u529F\uFF01")},error:function(t){console.log(t)}}),plusGetIpAndCom({success:function(t){console.log(JSON.stringify(t))},error:function(t){console.log(t)}}),sendAjax({data:{userId:"yk"},ashxName:"appQueryCategoryAndLayers",waitMessage:"\u56FE\u5C42\u83B7\u53D6\u4E2D...",success:function(t){plusSaveStorage({key:"layer",value:JSON.stringify(t),success:function(){console.log("\u56FE\u5C42\u6570\u636E\u83B7\u53D6\u6210\u529F\uFF01")},error:function(r){console.log("\u56FE\u5C42\u6570\u636E\u83B7\u53D6\u5931\u8D25===",r)}})},error:function(t){console.log(t)},loading:function(t){e.toast=sc.loading({duration:0,forbidClick:!0,message:t})},complete:function(){e.toast.clear()}})}},cft=Object.assign(aft,{__name:"App",setup(e){return(t,r)=>($(),K("div",lft,[kt(G("div",null,[Y(ple)],512),[[Vt,t.showTab[0]]]),kt(G("div",null,[Y(Zht)],512),[[Vt,t.showTab[1]]]),kt(G("div",null,[Y(yBe)],512),[[Vt,t.showTab[2]]]),kt(G("div",null,[Y(Xht)],512),[[Vt,t.showTab[3]]]),kt(G("div",null,[Y(rft)],512),[[Vt,t.showTab[4]]])]))}});/*!
- * vue-router v4.1.6
- * (c) 2022 Eduardo San Martin Morote
- * @license MIT
- */const Fy=typeof window!="undefined";function uft(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ki=Object.assign;function VI(e,t){const r={};for(const i in t){const n=t[i];r[i]=fc(n)?n.map(e):e(n)}return r}const vw=()=>{},fc=Array.isArray,dft=/\/$/,pft=e=>e.replace(dft,"");function BI(e,t,r="/"){let i,n={},o="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(i=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),n=e(o)),l>-1&&(i=i||t.slice(0,l),s=t.slice(l,t.length)),i=gft(i!=null?i:t,r),{fullPath:i+(o&&"?")+o+s,path:i,query:n,hash:s}}function hft(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function GW(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fft(e,t,r){const i=t.matched.length-1,n=r.matched.length-1;return i>-1&&i===n&&l0(t.matched[i],r.matched[n])&&hle(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function l0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hle(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!mft(e[r],t[r]))return!1;return!0}function mft(e,t){return fc(e)?qW(e,t):fc(t)?qW(t,e):e===t}function qW(e,t){return fc(t)?e.length===t.length&&e.every((r,i)=>r===t[i]):e.length===1&&e[0]===t}function gft(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),i=e.split("/");let n=r.length-1,o,s;for(o=0;o<i.length;o++)if(s=i[o],s!==".")if(s==="..")n>1&&n--;else break;return r.slice(0,n).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}var O1;(function(e){e.pop="pop",e.push="push"})(O1||(O1={}));var bw;(function(e){e.back="back",e.forward="forward",e.unknown=""})(bw||(bw={}));function yft(e){if(!e)if(Fy){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pft(e)}const vft=/^[^#]+#/;function bft(e,t){return e.replace(vft,"#")+t}function _ft(e,t){const r=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-r.left-(t.left||0),top:i.top-r.top-(t.top||0)}}const GT=()=>({left:window.pageXOffset,top:window.pageYOffset});function wft(e){let t;if("el"in e){const r=e.el,i=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;t=_ft(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function YW(e,t){return(history.state?history.state.position-t:-1)+e}const TL=new Map;function xft(e,t){TL.set(e,t)}function Cft(e){const t=TL.get(e);return TL.delete(e),t}let kft=()=>location.protocol+"//"+location.host;function fle(e,t){const{pathname:r,search:i,hash:n}=t,o=e.indexOf("#");if(o>-1){let l=n.includes(e.slice(o))?e.slice(o).length:1,a=n.slice(l);return a[0]!=="/"&&(a="/"+a),GW(a,"")}return GW(r,e)+i+n}function Sft(e,t,r,i){let n=[],o=[],s=null;const l=({state:h})=>{const m=fle(e,location),y=r.value,v=t.value;let _=0;if(h){if(r.value=m,t.value=h,s&&s===y){s=null;return}_=v?h.position-v.position:0}else i(m);n.forEach(x=>{x(r.value,y,{delta:_,type:O1.pop,direction:_?_>0?bw.forward:bw.back:bw.unknown})})};function a(){s=r.value}function c(h){n.push(h);const m=()=>{const y=n.indexOf(h);y>-1&&n.splice(y,1)};return o.push(m),m}function u(){const{history:h}=window;!h.state||h.replaceState(ki({},h.state,{scroll:GT()}),"")}function p(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u),{pauseListeners:a,listen:c,destroy:p}}function KW(e,t,r,i=!1,n=!1){return{back:e,current:t,forward:r,replaced:i,position:window.history.length,scroll:n?GT():null}}function Eft(e){const{history:t,location:r}=window,i={value:fle(e,r)},n={value:t.state};n.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const p=e.indexOf("#"),h=p>-1?(r.host&&document.querySelector("base")?e:e.slice(p))+a:kft()+e+a;try{t[u?"replaceState":"pushState"](c,"",h),n.value=c}catch(m){console.error(m),r[u?"replace":"assign"](h)}}function s(a,c){const u=ki({},t.state,KW(n.value.back,a,n.value.forward,!0),c,{position:n.value.position});o(a,u,!0),i.value=a}function l(a,c){const u=ki({},n.value,t.state,{forward:a,scroll:GT()});o(u.current,u,!0);const p=ki({},KW(i.value,a,null),{position:u.position+1},c);o(a,p,!1),i.value=a}return{location:i,state:n,push:l,replace:s}}function Tft(e){e=yft(e);const t=Eft(e),r=Sft(e,t.state,t.location,t.replace);function i(o,s=!0){s||r.pauseListeners(),history.go(o)}const n=ki({location:"",base:e,go:i,createHref:bft.bind(null,e)},t,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function Aft(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Tft(e)}function Mft(e){return typeof e=="string"||e&&typeof e=="object"}function mle(e){return typeof e=="string"||typeof e=="symbol"}const dp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},gle=Symbol("");var ZW;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ZW||(ZW={}));function a0(e,t){return ki(new Error,{type:e,[gle]:!0},t)}function Eu(e,t){return e instanceof Error&&gle in e&&(t==null||!!(e.type&t))}const QW="[^/]+?",Ift={sensitive:!1,strict:!1,start:!0,end:!0},Pft=/[.+*?^${}()[\]/\\]/g;function $ft(e,t){const r=ki({},Ift,t),i=[];let n=r.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(n+="/");for(let p=0;p<c.length;p++){const h=c[p];let m=40+(r.sensitive?.25:0);if(h.type===0)p||(n+="/"),n+=h.value.replace(Pft,"\\$&"),m+=40;else if(h.type===1){const{value:y,repeatable:v,optional:_,regexp:x}=h;o.push({name:y,repeatable:v,optional:_});const S=x||QW;if(S!==QW){m+=10;try{new RegExp(`(${S})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${y}" (${S}): `+E.message)}}let C=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;p||(C=_&&c.length<2?`(?:/${C})`:"/"+C),_&&(C+="?"),n+=C,m+=20,_&&(m+=-8),v&&(m+=-20),S===".*"&&(m+=-50)}u.push(m)}i.push(u)}if(r.strict&&r.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}r.strict||(n+="/?"),r.end?n+="$":r.strict&&(n+="(?:/|$)");const s=new RegExp(n,r.sensitive?"":"i");function l(c){const u=c.match(s),p={};if(!u)return null;for(let h=1;h<u.length;h++){const m=u[h]||"",y=o[h-1];p[y.name]=m&&y.repeatable?m.split("/"):m}return p}function a(c){let u="",p=!1;for(const h of e){(!p||!u.endsWith("/"))&&(u+="/"),p=!1;for(const m of h)if(m.type===0)u+=m.value;else if(m.type===1){const{value:y,repeatable:v,optional:_}=m,x=y in c?c[y]:"";if(fc(x)&&!v)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const S=fc(x)?x.join("/"):x;if(!S)if(_)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):p=!0);else throw new Error(`Missing required param "${y}"`);u+=S}}return u||"/"}return{re:s,score:i,keys:o,parse:l,stringify:a}}function Oft(e,t){let r=0;for(;r<e.length&&r<t.length;){const i=t[r]-e[r];if(i)return i;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Lft(e,t){let r=0;const i=e.score,n=t.score;for(;r<i.length&&r<n.length;){const o=Oft(i[r],n[r]);if(o)return o;r++}if(Math.abs(n.length-i.length)===1){if(JW(i))return 1;if(JW(n))return-1}return n.length-i.length}function JW(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Rft={type:0,value:""},Dft=/[a-zA-Z0-9_]/;function Nft(e){if(!e)return[[]];if(e==="/")return[[Rft]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${r})/"${c}": ${m}`)}let r=0,i=r;const n=[];let o;function s(){o&&n.push(o),o=[]}let l=0,a,c="",u="";function p(){!c||(r===0?o.push({type:0,value:c}):r===1||r===2||r===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&r!==2){i=r,r=4;continue}switch(r){case 0:a==="/"?(c&&p(),s()):a===":"?(p(),r=1):h();break;case 4:h(),r=i;break;case 1:a==="("?r=2:Dft.test(a)?h():(p(),r=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:r=3:u+=a;break;case 3:p(),r=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${c}"`),p(),s(),n}function Fft(e,t,r){const i=$ft(Nft(e.path),r),n=ki(i,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function zft(e,t){const r=[],i=new Map;t=tH({strict:!1,end:!0,sensitive:!1},t);function n(u){return i.get(u)}function o(u,p,h){const m=!h,y=jft(u);y.aliasOf=h&&h.record;const v=tH(t,u),_=[y];if("alias"in u){const C=typeof u.alias=="string"?[u.alias]:u.alias;for(const E of C)_.push(ki({},y,{components:h?h.record.components:y.components,path:E,aliasOf:h?h.record:y}))}let x,S;for(const C of _){const{path:E}=C;if(p&&E[0]!=="/"){const T=p.record.path,w=T[T.length-1]==="/"?"":"/";C.path=p.record.path+(E&&w+E)}if(x=Fft(C,p,v),h?h.alias.push(x):(S=S||x,S!==x&&S.alias.push(x),m&&u.name&&!eH(x)&&s(u.name)),y.children){const T=y.children;for(let w=0;w<T.length;w++)o(T[w],x,h&&h.children[w])}h=h||x,(x.record.components&&Object.keys(x.record.components).length||x.record.name||x.record.redirect)&&a(x)}return S?()=>{s(S)}:vw}function s(u){if(mle(u)){const p=i.get(u);p&&(i.delete(u),r.splice(r.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=r.indexOf(u);p>-1&&(r.splice(p,1),u.record.name&&i.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return r}function a(u){let p=0;for(;p<r.length&&Lft(u,r[p])>=0&&(u.record.path!==r[p].record.path||!yle(u,r[p]));)p++;r.splice(p,0,u),u.record.name&&!eH(u)&&i.set(u.record.name,u)}function c(u,p){let h,m={},y,v;if("name"in u&&u.name){if(h=i.get(u.name),!h)throw a0(1,{location:u});v=h.record.name,m=ki(XW(p.params,h.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&XW(u.params,h.keys.map(S=>S.name))),y=h.stringify(m)}else if("path"in u)y=u.path,h=r.find(S=>S.re.test(y)),h&&(m=h.parse(y),v=h.record.name);else{if(h=p.name?i.get(p.name):r.find(S=>S.re.test(p.path)),!h)throw a0(1,{location:u,currentLocation:p});v=h.record.name,m=ki({},p.params,u.params),y=h.stringify(m)}const _=[];let x=h;for(;x;)_.unshift(x.record),x=x.parent;return{name:v,path:y,params:m,matched:_,meta:Bft(_)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:n}}function XW(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}function jft(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Vft(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Vft(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const i in e.components)t[i]=typeof r=="boolean"?r:r[i];return t}function eH(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bft(e){return e.reduce((t,r)=>ki(t,r.meta),{})}function tH(e,t){const r={};for(const i in e)r[i]=i in t?t[i]:e[i];return r}function yle(e,t){return t.children.some(r=>r===e||yle(e,r))}const vle=/#/g,Uft=/&/g,Wft=/\//g,Hft=/=/g,Gft=/\?/g,ble=/\+/g,qft=/%5B/g,Yft=/%5D/g,_le=/%5E/g,Kft=/%60/g,wle=/%7B/g,Zft=/%7C/g,xle=/%7D/g,Qft=/%20/g;function SF(e){return encodeURI(""+e).replace(Zft,"|").replace(qft,"[").replace(Yft,"]")}function Jft(e){return SF(e).replace(wle,"{").replace(xle,"}").replace(_le,"^")}function AL(e){return SF(e).replace(ble,"%2B").replace(Qft,"+").replace(vle,"%23").replace(Uft,"%26").replace(Kft,"`").replace(wle,"{").replace(xle,"}").replace(_le,"^")}function Xft(e){return AL(e).replace(Hft,"%3D")}function emt(e){return SF(e).replace(vle,"%23").replace(Gft,"%3F")}function tmt(e){return e==null?"":emt(e).replace(Wft,"%2F")}function LE(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function rmt(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<i.length;++n){const o=i[n].replace(ble," "),s=o.indexOf("="),l=LE(s<0?o:o.slice(0,s)),a=s<0?null:LE(o.slice(s+1));if(l in t){let c=t[l];fc(c)||(c=t[l]=[c]),c.push(a)}else t[l]=a}return t}function rH(e){let t="";for(let r in e){const i=e[r];if(r=Xft(r),i==null){i!==void 0&&(t+=(t.length?"&":"")+r);continue}(fc(i)?i.map(o=>o&&AL(o)):[i&&AL(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function imt(e){const t={};for(const r in e){const i=e[r];i!==void 0&&(t[r]=fc(i)?i.map(n=>n==null?null:""+n):i==null?i:""+i)}return t}const nmt=Symbol(""),iH=Symbol(""),EF=Symbol(""),Cle=Symbol(""),ML=Symbol("");function Ob(){let e=[];function t(i){return e.push(i),()=>{const n=e.indexOf(i);n>-1&&e.splice(n,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Jp(e,t,r,i,n){const o=i&&(i.enterCallbacks[n]=i.enterCallbacks[n]||[]);return()=>new Promise((s,l)=>{const a=p=>{p===!1?l(a0(4,{from:r,to:t})):p instanceof Error?l(p):Mft(p)?l(a0(2,{from:t,to:p})):(o&&i.enterCallbacks[n]===o&&typeof p=="function"&&o.push(p),s())},c=e.call(i&&i.instances[n],t,r,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(p=>l(p))})}function UI(e,t,r,i){const n=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(omt(l)){const c=(l.__vccOpts||l)[t];c&&n.push(Jp(c,r,i,o,s))}else{let a=l();n.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const u=uft(c)?c.default:c;o.components[s]=u;const h=(u.__vccOpts||u)[t];return h&&Jp(h,r,i,o,s)()}))}}return n}function omt(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nH(e){const t=_t(EF),r=_t(Cle),i=O(()=>t.resolve(g(e.to))),n=O(()=>{const{matched:a}=i.value,{length:c}=a,u=a[c-1],p=r.matched;if(!u||!p.length)return-1;const h=p.findIndex(l0.bind(null,u));if(h>-1)return h;const m=oH(a[c-2]);return c>1&&oH(u)===m&&p[p.length-1].path!==m?p.findIndex(l0.bind(null,a[c-2])):h}),o=O(()=>n.value>-1&&cmt(r.params,i.value.params)),s=O(()=>n.value>-1&&n.value===r.matched.length-1&&hle(r.params,i.value.params));function l(a={}){return amt(a)?t[g(e.replace)?"replace":"push"](g(e.to)).catch(vw):Promise.resolve()}return{route:i,href:O(()=>i.value.href),isActive:o,isExactActive:s,navigate:l}}const smt=ye({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:nH,setup(e,{slots:t}){const r=kr(nH(e)),{options:i}=_t(EF),n=O(()=>({[sH(e.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[sH(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&t.default(r);return e.custom?o:Lt("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:n.value},o)}}}),lmt=smt;function amt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cmt(e,t){for(const r in t){const i=t[r],n=e[r];if(typeof i=="string"){if(i!==n)return!1}else if(!fc(n)||n.length!==i.length||i.some((o,s)=>o!==n[s]))return!1}return!0}function oH(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sH=(e,t,r)=>e!=null?e:t!=null?t:r,umt=ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const i=_t(ML),n=O(()=>e.route||i.value),o=_t(iH,0),s=O(()=>{let c=g(o);const{matched:u}=n.value;let p;for(;(p=u[c])&&!p.components;)c++;return c}),l=O(()=>n.value.matched[s.value]);cr(iH,O(()=>s.value+1)),cr(nmt,l),cr(ML,n);const a=F();return Ve(()=>[a.value,l.value,e.name],([c,u,p],[h,m,y])=>{u&&(u.instances[p]=c,m&&m!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!l0(u,m)||!h)&&(u.enterCallbacks[p]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=n.value,u=e.name,p=l.value,h=p&&p.components[u];if(!h)return lH(r.default,{Component:h,route:c});const m=p.props[u],y=m?m===!0?c.params:typeof m=="function"?m(c):m:null,_=Lt(h,ki({},y,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(p.instances[u]=null)},ref:a}));return lH(r.default,{Component:_,route:c})||_}}});function lH(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const dmt=umt;function pmt(e){const t=zft(e.routes,e),r=e.parseQuery||rmt,i=e.stringifyQuery||rH,n=e.history,o=Ob(),s=Ob(),l=Ob(),a=gi(dp);let c=dp;Fy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=VI.bind(null,de=>""+de),p=VI.bind(null,tmt),h=VI.bind(null,LE);function m(de,_e){let ae,X;return mle(de)?(ae=t.getRecordMatcher(de),X=_e):X=de,t.addRoute(X,ae)}function y(de){const _e=t.getRecordMatcher(de);_e&&t.removeRoute(_e)}function v(){return t.getRoutes().map(de=>de.record)}function _(de){return!!t.getRecordMatcher(de)}function x(de,_e){if(_e=ki({},_e||a.value),typeof de=="string"){const ne=BI(r,de,_e.path),pe=t.resolve({path:ne.path},_e),ge=n.createHref(ne.fullPath);return ki(ne,pe,{params:h(pe.params),hash:LE(ne.hash),redirectedFrom:void 0,href:ge})}let ae;if("path"in de)ae=ki({},de,{path:BI(r,de.path,_e.path).path});else{const ne=ki({},de.params);for(const pe in ne)ne[pe]==null&&delete ne[pe];ae=ki({},de,{params:p(de.params)}),_e.params=p(_e.params)}const X=t.resolve(ae,_e),he=de.hash||"";X.params=u(h(X.params));const $e=hft(i,ki({},de,{hash:Jft(he),path:X.path})),Je=n.createHref($e);return ki({fullPath:$e,hash:he,query:i===rH?imt(de.query):de.query||{}},X,{redirectedFrom:void 0,href:Je})}function S(de){return typeof de=="string"?BI(r,de,a.value.path):ki({},de)}function C(de,_e){if(c!==de)return a0(8,{from:_e,to:de})}function E(de){return I(de)}function T(de){return E(ki(S(de),{replace:!0}))}function w(de){const _e=de.matched[de.matched.length-1];if(_e&&_e.redirect){const{redirect:ae}=_e;let X=typeof ae=="function"?ae(de):ae;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ki({query:de.query,hash:de.hash,params:"path"in X?{}:de.params},X)}}function I(de,_e){const ae=c=x(de),X=a.value,he=de.state,$e=de.force,Je=de.replace===!0,ne=w(ae);if(ne)return I(ki(S(ne),{state:typeof ne=="object"?ki({},he,ne.state):he,force:$e,replace:Je}),_e||ae);const pe=ae;pe.redirectedFrom=_e;let ge;return!$e&&fft(i,X,ae)&&(ge=a0(16,{to:pe,from:X}),ee(X,X,!0,!1)),(ge?Promise.resolve(ge):L(pe,X)).catch(Se=>Eu(Se)?Eu(Se,2)?Se:H(Se):B(Se,pe,X)).then(Se=>{if(Se){if(Eu(Se,2))return I(ki({replace:Je},S(Se.to),{state:typeof Se.to=="object"?ki({},he,Se.to.state):he,force:$e}),_e||pe)}else Se=W(pe,X,!0,Je,he);return R(pe,X,Se),Se})}function M(de,_e){const ae=C(de,_e);return ae?Promise.reject(ae):Promise.resolve()}function L(de,_e){let ae;const[X,he,$e]=hmt(de,_e);ae=UI(X.reverse(),"beforeRouteLeave",de,_e);for(const ne of X)ne.leaveGuards.forEach(pe=>{ae.push(Jp(pe,de,_e))});const Je=M.bind(null,de,_e);return ae.push(Je),Qg(ae).then(()=>{ae=[];for(const ne of o.list())ae.push(Jp(ne,de,_e));return ae.push(Je),Qg(ae)}).then(()=>{ae=UI(he,"beforeRouteUpdate",de,_e);for(const ne of he)ne.updateGuards.forEach(pe=>{ae.push(Jp(pe,de,_e))});return ae.push(Je),Qg(ae)}).then(()=>{ae=[];for(const ne of de.matched)if(ne.beforeEnter&&!_e.matched.includes(ne))if(fc(ne.beforeEnter))for(const pe of ne.beforeEnter)ae.push(Jp(pe,de,_e));else ae.push(Jp(ne.beforeEnter,de,_e));return ae.push(Je),Qg(ae)}).then(()=>(de.matched.forEach(ne=>ne.enterCallbacks={}),ae=UI($e,"beforeRouteEnter",de,_e),ae.push(Je),Qg(ae))).then(()=>{ae=[];for(const ne of s.list())ae.push(Jp(ne,de,_e));return ae.push(Je),Qg(ae)}).catch(ne=>Eu(ne,8)?ne:Promise.reject(ne))}function R(de,_e,ae){for(const X of l.list())X(de,_e,ae)}function W(de,_e,ae,X,he){const $e=C(de,_e);if($e)return $e;const Je=_e===dp,ne=Fy?history.state:{};ae&&(X||Je?n.replace(de.fullPath,ki({scroll:Je&&ne&&ne.scroll},he)):n.push(de.fullPath,he)),a.value=de,ee(de,_e,ae,Je),H()}let z;function j(){z||(z=n.listen((de,_e,ae)=>{if(!Ne.listening)return;const X=x(de),he=w(X);if(he){I(ki(he,{replace:!0}),X).catch(vw);return}c=X;const $e=a.value;Fy&&xft(YW($e.fullPath,ae.delta),GT()),L(X,$e).catch(Je=>Eu(Je,12)?Je:Eu(Je,2)?(I(Je.to,X).then(ne=>{Eu(ne,20)&&!ae.delta&&ae.type===O1.pop&&n.go(-1,!1)}).catch(vw),Promise.reject()):(ae.delta&&n.go(-ae.delta,!1),B(Je,X,$e))).then(Je=>{Je=Je||W(X,$e,!1),Je&&(ae.delta&&!Eu(Je,8)?n.go(-ae.delta,!1):ae.type===O1.pop&&Eu(Je,20)&&n.go(-1,!1)),R(X,$e,Je)}).catch(vw)}))}let U=Ob(),Z=Ob(),Q;function B(de,_e,ae){H(de);const X=Z.list();return X.length?X.forEach(he=>he(de,_e,ae)):console.error(de),Promise.reject(de)}function V(){return Q&&a.value!==dp?Promise.resolve():new Promise((de,_e)=>{U.add([de,_e])})}function H(de){return Q||(Q=!de,j(),U.list().forEach(([_e,ae])=>de?ae(de):_e()),U.reset()),de}function ee(de,_e,ae,X){const{scrollBehavior:he}=e;if(!Fy||!he)return Promise.resolve();const $e=!ae&&Cft(YW(de.fullPath,0))||(X||!ae)&&history.state&&history.state.scroll||null;return Ct().then(()=>he(de,_e,$e)).then(Je=>Je&&wft(Je)).catch(Je=>B(Je,de,_e))}const ce=de=>n.go(de);let re;const fe=new Set,Ne={currentRoute:a,listening:!0,addRoute:m,removeRoute:y,hasRoute:_,getRoutes:v,resolve:x,options:e,push:E,replace:T,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:Z.add,isReady:V,install(de){const _e=this;de.component("RouterLink",lmt),de.component("RouterView",dmt),de.config.globalProperties.$router=_e,Object.defineProperty(de.config.globalProperties,"$route",{enumerable:!0,get:()=>g(a)}),Fy&&!re&&a.value===dp&&(re=!0,E(n.location).catch(he=>{}));const ae={};for(const he in dp)ae[he]=O(()=>a.value[he]);de.provide(EF,_e),de.provide(Cle,kr(ae)),de.provide(ML,a);const X=de.unmount;fe.add(de),de.unmount=function(){fe.delete(de),fe.size<1&&(c=dp,z&&z(),z=null,a.value=dp,re=!1,Q=!1),X()}}};return Ne}function Qg(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function hmt(e,t){const r=[],i=[],n=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const l=t.matched[s];l&&(e.matched.find(c=>l0(c,l))?i.push(l):r.push(l));const a=e.matched[s];a&&(t.matched.find(c=>l0(c,a))||n.push(a))}return[r,i,n]}const fmt=[{path:"/",component:ple},{path:"/map",component:q4}],mmt=pmt({history:Aft(),routes:fmt});const TF=tR(cft);TF.use(mmt);TF.use(mze);TF.mount("#app");export{f as $,$ee as A,Ise as B,rD as C,Q7e as D,mu as E,Uk as F,dee as G,ddt as H,cdt as I,Ase as J,Ex as K,ED as L,bL as M,Dd as N,zse as O,Hv as P,V3 as Q,Ot as R,si as S,fvt as T,ri as U,Us as V,Jn as W,NN as X,fa as Y,mv as Z,d as _,ue as a,Ctt as a$,se as a0,rr as a1,_h as a2,Rs as a3,TD as a4,mee as a5,nu as a6,Nr as a7,ca as a8,UT as a9,tne as aA,ls as aB,IE as aC,_yt as aD,xgt as aE,hgt as aF,Bmt as aG,C0 as aH,Qpt as aI,fqe as aJ,mqe as aK,gr as aL,Eg as aM,pD as aN,$X as aO,zmt as aP,dD as aQ,uD as aR,svt as aS,lvt as aT,ovt as aU,Tse as aV,bF as aW,o0 as aX,Ge as aY,Aie as aZ,xtt as a_,pgt as aa,E0 as ab,bse as ac,nse as ad,_se as ae,bn as af,Rut as ag,uvt as ah,Gut as ai,P1 as aj,dvt as ak,ut as al,hs as am,Eie as an,Bgt as ao,rc as ap,Sd as aq,wd as ar,Z3 as as,Eyt as at,Wm as au,hWe as av,wgt as aw,ine as ax,Oyt as ay,w7 as az,VBe as b,alt as b$,Vyt as b0,wr as b1,Hl as b2,dc as b3,oh as b4,Y4 as b5,U3 as b6,Ua as b7,yX as b8,lD as b9,Qgt as bA,ho as bB,So as bC,GC as bD,lB as bE,$s as bF,Nyt as bG,Ayt as bH,oi as bI,uF as bJ,iot as bK,Kyt as bL,not as bM,qyt as bN,Ws as bO,vo as bP,A0 as bQ,Yyt as bR,Hst as bS,Gst as bT,qst as bU,la as bV,Ene as bW,Jnt as bX,UN as bY,Olt as bZ,avt as b_,fWe as ba,aWe as bb,N$ as bc,vX as bd,Fmt as be,Vmt as bf,Roe as bg,Foe as bh,Noe as bi,yat as bj,Gc as bk,M1 as bl,jT as bm,fgt as bn,kd as bo,ygt as bp,Gmt as bq,Z4 as br,ox as bs,lg as bt,N2 as bu,Fie as bv,pWe as bw,Om as bx,Wy as by,J_ as bz,Emt as c,Kmt as c$,Cit as c0,Ih as c1,lne as c2,Iyt as c3,Tyt as c4,Lrt as c5,Dyt as c6,x7 as c7,_mt as c8,wmt as c9,li as cA,Hdt as cB,pvt as cC,hvt as cD,Wh as cE,fg as cF,Gp as cG,Cl as cH,oT as cI,Hs as cJ,Tt as cK,IT as cL,ZS as cM,av as cN,FKe as cO,s0 as cP,jot as cQ,zot as cR,Jot as cS,RX as cT,qmt as cU,ea as cV,bvt as cW,xd as cX,Xmt as cY,Ymt as cZ,Zmt as c_,Coe as ca,Aut as cb,udt as cc,xit as cd,sne as ce,Ese as cf,_at as cg,Nb as ch,Ig as ci,QS as cj,ui as ck,Yr as cl,Ag as cm,Jee as cn,Qr as co,xt as cp,Bs as cq,Rlt as cr,xE as cs,dr as ct,Rh as cu,Pot as cv,zb as cw,$0 as cx,Xa as cy,K3 as cz,TBe as d,hX as d$,Qmt as d0,n1 as d1,vl as d2,aHe as d3,YJ as d4,moe as d5,goe as d6,ult as d7,KD as d8,Jmt as d9,dn as dA,CM as dB,ID as dC,I9 as dD,Umt as dE,Egt as dF,Ogt as dG,Dht as dH,$ht as dI,HW as dJ,Tg as dK,vc as dL,Jw as dM,zt as dN,b9 as dO,jie as dP,xrt as dQ,byt as dR,ll as dS,Yh as dT,_J as dU,vvt as dV,mgt as dW,Zgt as dX,ldt as dY,nGe as dZ,odt as d_,ggt as da,eu as db,S0 as dc,Zyt as dd,r0 as de,lte as df,gg as dg,mE as dh,gw as di,YGe as dj,yg as dk,vg as dl,Oh as dm,aO as dn,Zi as dp,lO as dq,uO as dr,iE as ds,KZe as dt,Wut as du,$mt as dv,ute as dw,Yee as dx,Nie as dy,$h as dz,vmt as e,wqe as e$,Jv as e0,Ao as e1,pn as e2,Hm as e3,pr as e4,Mdt as e5,Qnt as e6,hm as e7,_gt as e8,q3 as e9,Iht as eA,YN as eB,FT as eC,zT as eD,V0 as eE,bmt as eF,RT as eG,QN as eH,pg as eI,cJ as eJ,Ugt as eK,LUe as eL,Wyt as eM,Hnt as eN,Ys as eO,Zit as eP,Qit as eQ,ZWe as eR,du as eS,RUe as eT,Cgt as eU,$gt as eV,Lyt as eW,Iie as eX,vyt as eY,Dn as eZ,yn as e_,aJ as ea,K7e as eb,nN as ec,bT as ed,gqe as ee,Bo as ef,Ho as eg,Ue as eh,Vc as ei,sE as ej,w0 as ek,kie as el,pJ as em,u1 as en,ud as eo,zgt as ep,mYe as eq,Xl as er,iT as es,_0 as et,fl as eu,Hgt as ev,Zh as ew,$ot as ex,Vgt as ey,OBe as ez,kmt as f,CGe as f$,qoe as f0,uJ as f1,v$ as f2,Vst as f3,Bst as f4,Ust as f5,Gtt as f6,egt as f7,IX as f8,Wmt as f9,VHe as fA,xGe as fB,ngt as fC,Aee as fD,wZe as fE,rZe as fF,iGe as fG,Ygt as fH,eyt as fI,Zte as fJ,px as fK,DZe as fL,dGe as fM,RZe as fN,MHe as fO,idt as fP,Dmt as fQ,Rmt as fR,H3 as fS,G3 as fT,ydt as fU,Edt as fV,sZe as fW,Xv as fX,Nl as fY,pa as fZ,wGe as f_,jmt as fa,ZUe as fb,iWe as fc,Y3 as fd,Nmt as fe,ZKe as ff,dX as fg,Ryt as fh,Cyt as fi,nne as fj,Jie as fk,ic as fl,Imt as fm,gh as fn,Cmt as fo,Tpt as fp,Tmt as fq,Amt as fr,p6 as fs,bee as ft,agt as fu,hGe as fv,JHe as fw,pee as fx,h6 as fy,gee as fz,ze as g,yee as g$,MGe as g0,LGe as g1,Tee as g2,See as g3,Eee as g4,OGe as g5,zGe as g6,jGe as g7,bGe as g8,eT as g9,nre as gA,AT as gB,Fyt as gC,Z_ as gD,Qrt as gE,Hrt as gF,d7 as gG,Gie as gH,$yt as gI,hKe as gJ,Hyt as gK,Z7e as gL,HM as gM,GM as gN,kyt as gO,Wi as gP,wyt as gQ,xmt as gR,$pt as gS,Myt as gT,MT as gU,Mmt as gV,oGe as gW,ni as gX,bv as gY,ott as gZ,ah as g_,Xyt as ga,yyt as gb,O3 as gc,qN as gd,tit as ge,Jrt as gf,xyt as gg,Pyt as gh,Hie as gi,_1 as gj,eit as gk,myt as gl,gyt as gm,bgt as gn,_d as go,fv as gp,woe as gq,qot as gr,vrt as gs,Syt as gt,VWe as gu,gD as gv,rgt as gw,igt as gx,tgt as gy,cgt as gz,at as h,Smt as h$,XHe as h0,KHe as h1,vee as h2,LS as h3,Tut as h4,PHe as h5,Lnt as h6,LT as h7,j0 as h8,pZe as h9,nw as hA,q6 as hB,pyt as hC,dyt as hD,_n as hE,Srt as hF,Rd as hG,gX as hH,uh as hI,Agt as hJ,Lgt as hK,Rgt as hL,Ngt as hM,Ggt as hN,ret as hO,Vie as hP,CO as hQ,k1 as hR,VO as hS,F2 as hT,pl as hU,dit as hV,uu as hW,Sot as hX,Wo as hY,Xrt as hZ,pF as h_,ugt as ha,LBe as hb,Omt as hc,Yqe as hd,zD as he,R7e as hf,VS as hg,rs as hh,oyt as hi,lyt as hj,Fre as hk,tyt as hl,iyt as hm,hyt as hn,nyt as ho,cyt as hp,qJe as hq,fyt as hr,uyt as hs,syt as ht,ayt as hu,ryt as hv,LXe as hw,Xqe as hx,zyt as hy,mg as hz,zBe as i,OT as i$,Aoe as i0,cvt as i1,Jyt as i2,Not as i3,DJe as i4,bx as i5,Eht as i6,evt as i7,Z7 as i8,Soe as i9,YZe as iA,Ect as iB,Sct as iC,Cct as iD,GU as iE,Nn as iF,xx as iG,i1 as iH,Kot as iI,ha as iJ,cT as iK,qh as iL,glt as iM,KN as iN,plt as iO,Vot as iP,xoe as iQ,w9 as iR,LX as iS,ZN as iT,wx as iU,kU as iV,Lk as iW,vx as iX,Yot as iY,iF as iZ,nF as i_,jne as ia,DT as ib,Mlt as ic,cs as id,sct as ie,Oee as ig,Cx as ih,HN as ii,dF as ij,tvt as ik,Zot as il,Xne as im,Oot as io,GN as ip,Rot as iq,Dot as ir,FBe as is,jBe as it,jD as iu,hg as iv,nx as iw,_9 as ix,iKe as iy,Gl as iz,ogt as j,pst as j$,WM as j0,m7e as j1,koe as j2,F0 as j3,DN as j4,fne as j5,ort as j6,ynt as j7,srt as j8,bne as j9,vgt as jA,kgt as jB,A9 as jC,ile as jD,Di as jE,eee as jF,ete as jG,ymt as jH,E1 as jI,Fot as jJ,Gyt as jK,Ht as jL,bh as jM,yU as jN,ooe as jO,c1 as jP,est as jQ,Xot as jR,Uh as jS,dT as jT,TN as jU,xot as jV,Fd as jW,nvt as jX,ivt as jY,rvt as jZ,Tst as j_,Sne as ja,bE as jb,yx as jc,une as jd,dw as je,Lot as jf,Aht as jg,Fa as jh,Jgt as ji,PJ as jj,F3 as jk,cx as jl,d1 as jm,Ls as jn,_l as jo,sYe as jp,nT as jq,lYe as jr,Wgt as js,Pmt as jt,EBe as ju,PD as jv,Tgt as jw,Sgt as jx,ZU as jy,P0 as jz,gmt as k,jgt as k$,hst as k0,fst as k1,kst as k2,mst as k3,gst as k4,yst as k5,vst as k6,bst as k7,_st as k8,wst as k9,Ph as kA,soe as kB,_D as kC,foe as kD,Wg as kE,Yie as kF,Ldt as kG,Rdt as kH,Idt as kI,DBe as kJ,yYe as kK,Mgt as kL,Igt as kM,NZe as kN,$He as kO,oZe as kP,_T as kQ,TE as kR,OE as kS,ZXe as kT,Pgt as kU,Fgt as kV,hZe as kW,lZe as kX,Xgt as kY,ND as kZ,uee as k_,xst as ka,Cst as kb,x0 as kc,NBe as kd,nc as ke,pc as kf,Dgt as kg,qgt as kh,ote as ki,zHe as kj,lgt as kk,fee as kl,IHe as km,hee as kn,Qot as ko,Qyt as kp,AUe as kq,u9 as kr,te as ks,Kgt as kt,Bp as ku,Uyt as kv,Byt as kw,rF as kx,Hmt as ky,Cd as kz,vn as l,dgt as l0,$Ye as l1,zN as l2,jyt as l3,Klt as l4,gvt as l5,yvt as l6,_vt as l7,us as m,Lmt as n,mvt as o,sgt as p,M$ as q,Sn as r,ft as s,et as t,qm as u,aa as v,on as w,Rse as x,pi as y,lo as z};
|