var e=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,i,r)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,c=(e,t)=>{for(var i in t||(t={}))l.call(t,i)&&s(e,i,t[i]);if(n)for(var i of n(t))a.call(t,i)&&s(e,i,t[i]);return e},d=(e,t)=>r(e,o(t));const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");class p{static uuid(e="D"){let t,i=[];i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(let r=0;r<36;r++)i[r]||(t=0|16*Math.random(),i[r]=u[19==r?3&t|8:t]);return e+"-"+i.join("")}static merge(e,...t){let i,r,o,n;for(r=0,o=t.length;r0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}static addClass(e,t){if(void 0!==e.classList){let i=p.splitWords(t);for(let t=0,r=i.length;t\n\t\t\t比例尺:\n\t\t\t\n\t\t\t\t${this._scale}\n\t\t\t\n\t\t\n\t\t\n\t\t\t空间信息\n\t\t\t刷帧率:|\n\t\t\n\t\t`}get show(){return this._show}set show(e){e?this.createStatusBar():this.removeStatusBar(),this._show=e}initListener(){const e=this,t=this._viewer.scene;this._scaleListener=function(){let i=t.canvas.clientWidth,r=t.canvas.clientHeight,o=t.camera.getPickRay(new Cesium.Cartesian2(i/2|0,r-1)),n=t.camera.getPickRay(new Cesium.Cartesian2(1+i/2|0,r-1)),l=t.globe,a=l.pick(o,t),s=l.pick(n,t);if(a&&s){let t=new Cesium.EllipsoidGeodesic,i=l.ellipsoid.cartesianToCartographic(a),r=l.ellipsoid.cartesianToCartographic(s);t.setEndPoints(i,r);let o=t.surfaceDistance,n=e.closest(o/10);e._scale=n<1?1e3*n+"m":n+"km"}document.getElementsByClassName("scale-border")[0].innerText=e._scale,document.getElementsByClassName("cesium-performanceDisplay-ms").length>0&&(document.getElementById("status_ms").innerText=document.getElementsByClassName("cesium-performanceDisplay-ms")[0].innerText),document.getElementsByClassName("cesium-performanceDisplay-fps").length>0&&(document.getElementById("status_fps").innerText=document.getElementsByClassName("cesium-performanceDisplay-fps")[0].innerText)}}createStatusBar(){const e=this._viewer;this.initHandler(e),this.initScale(e,!0),this._domContainer=h.create("div","lk-status-bar",document.getElementById(this._viewer._container.id)),this._domContainer.innerHTML=this.statusDom}removeStatusBar(){this.initScale(this._viewer,!1),this._handler&&this._handler.destroy(),this._domContainer&&h.remove(this._domContainer)}initHandler(e){const t=this;this._handler=new Cesium.ScreenSpaceEventHandler(e.scene.canvas);this._handler.setInputAction((function(i){let r=i.endPosition;const o=e.scene.camera.pickEllipsoid(r,e.scene.globe.ellipsoid);if(o){let i=Cesium.Cartographic.fromCartesian(o);t._posX=Cesium.Math.toDegrees(i.longitude).toFixed(8),t._posY=Cesium.Math.toDegrees(i.latitude).toFixed(8),t._posZ=Cesium.Math.toDegrees(i.height).toFixed(2);const r=e.camera.positionCartographic.height;t._cameraHeight=r<1e3?r.toFixed(2)+"m":(r/1e3).toFixed(2)+"km",t._pitch=Number(e.scene.camera.pitch).toFixed(2),t._heading=Number(e.scene.camera.heading).toFixed(2),document.getElementById("status_spaceInfo").innerHTML=`\n\t\t\t\t经度:${t._posX}\n\t\t\t\t纬度:${t._posY}\n\t\t\t\t相机高度:${t._cameraHeight}\n\t\t\t\t`}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}initScale(e,t){const i=e.scene;t?i.postRender.addEventListener(this._scaleListener):i.postRender.removeEventListener(this._scaleListener)}closest(e){const t=[.001,.002,.003,.005,.01,.015,.02,.025,.03,.035,.04,.045,.05,.06,.07,.08,.09,.1,.12,.15,.2,.25,.3,.5,1,2,3,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,120,150,200,250,300,500,1e3,2e3,5e3,1e4,1e5,5e5,1e6];let i=t[0],r=Math.abs(i-e);for(let o=1;o{new Cesium.sampleTerrainMostDetailed(r,i).then((function(t){e(t)}))}))}var b=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",setSessionid:m,guid:function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},getGuid:g,getHeigthByLngLat:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t.longitude)&&!Cesium.defined(t.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");t.level=Cesium.defaultValue(t.level,11);let i=Cesium.Cartographic.fromDegrees(t.longitude,t.latitude),r=e.terrainProvider;return new Promise(((e,o)=>{new Cesium.sampleTerrain(r,t.level,[i]).then((function(t){t&&e(t[0].height)}))}))},getHeigthByPoints:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("options is required.");t.level=Cesium.defaultValue(t.level,11);let i=[],r=t.points;for(let n=0;n{new Cesium.sampleTerrain(o,t.level,i).then((function(t){t&&e(t)}))}))},getHeigthByPointsMostDetailed:v,getHeigthByPointMostDetailed:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("points is required.");let i=Cesium.Cartographic.fromDegrees(t[0],t[1]),r=e.terrainProvider;return new Promise(((e,t)=>{new Cesium.sampleTerrainMostDetailed(r,i).then((function(t){e(t)}))}))}});class _{constructor(e){if(!Cesium.defined(e)||!Cesium.defined(e.container))throw new Cesium.DeveloperError("options.container is required.");Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxNzM5YjQ3MC03YmMxLTRmMjAtOTk4Yi0yNDMyMDZlOTQzYTYiLCJpZCI6NTU5MjAsImlhdCI6MTYyNDI0NTM5NX0.diydVWFzw5C5rQlHaFYkdDJoSorcdex81KpWcntyICo",this._viewer=this._initMap(e),this._imageryLayers=this._viewer.imageryLayers,this._primitives=this._viewer.scene.primitives,this._entities=this._viewer.entities,this._dataSources=this._viewer.dataSources,this._defaultSkyBox=this._viewer.scene.skyBox,this.statusBar=new f(this._viewer),console.log(Cesium.buildModuleUrl.getCesiumBaseUrl())}_initMap(e){var t=new Cesium.SingleTileImageryProvider({url:"jt3dSDK/imgs/earth_3.jpg"});if(Cesium.defined(e.imageryProviderType)){if(!Cesium.defined(e.imageryProviderUrl))throw new Cesium.DeveloperError("imageryProviderType and imageryProviderUrl are required.");"SingleTileImageryProvider"==e.imageryProviderType?t=new Cesium.SingleTileImageryProvider({url:e.imageryProviderUrl}):"OpenStreetMapImageryProvider"==e.imageryProviderType?t=new Cesium.OpenStreetMapImageryProvider({url:e.imageryProviderUrl}):"ArcGisMapServerImageryProvider"==e.imageryProviderType&&(t=new Cesium.ArcGisMapServerImageryProvider({url:e.imageryProviderUrl}))}let i=new Cesium.Viewer(e.container,{animation:!0,timeline:!0,shadows:!1,shouldAnimate:!0,baseLayerPicker:!1,navigationHelpButton:!1,homeButton:!1,fullscreenButton:!1,sceneModePicker:!1,scene3DOnly:!0,infoBox:!1,clampToGround:!0,geocoder:!1,imageryProvider:t,selectionIndicator:!1,contextOptions:{webgl:{alpha:!0,depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0}}});function r(e,t,i){var r=new Cesium.JulianDate;Cesium.JulianDate.addHours(e,8,r);var o,n=Cesium.JulianDate.toGregorianDate(r);if(i)o="";else if(o=new Date(n.year,n.month-1,n.day),o=n.year+"-"+o.toLocaleString("zh-cn",{month:"short"}).split("月").join("-")+n.day+" ",t||n.hour+n.minute===0)return o;let l,a,s;return l=n.hour<10?`0${n.hour}`:n.hour,a=n.minute<10?`0${n.minute}`:n.minute,s=n.second<10?`0${n.second}`:n.second,o+l+":"+a+":"+s}return i._cesiumWidget._creditContainer.style.display="none",i.scene.globe.show=!0,i.scene.globe.depthTestAgainstTerrain=!0,i.scene.globe.enableLighting=!1,i.scene.requestRenderMode=!1,i.scene.debugShowFramesPerSecond=!0,i.scene.skyAtmosphere.show=!1,i.scene.skyBox.show=!0,i.scene.sun.show=!0,i.scene.moon.show=!1,i.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),i.animation.viewModel.dateFormatter=r,i.animation.viewModel.timeFormatter=function(e,t){return r(e,t,!0)},i.timeline.makeLabel=r,i}_setView(e){if(!Cesium.defined(e.longitude)&&!Cesium.defined(e.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");Cesium.Check.typeOf.number("longitude",e.longitude),Cesium.Check.typeOf.number("latitude",e.latitude),this._viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),orientation:{heading:Cesium.Math.toRadians(Cesium.defaultValue(e.heading,0)),pitch:Cesium.Math.toRadians(Cesium.defaultValue(e.pitch,-90)),roll:e.roll}})}_getChinaPostion(){return Cesium.Cartesian3.fromDegrees(116.435314,40.960521,1e7)}_flytoChina(){this._viewer.camera.flyTo({destination:this._getChinaPostion(),duration:8})}}Object.assign(_.prototype,{setViewChina:function(){this._setView({longitude:103.84,latitude:31.15,height:24e6,heading:0,pitch:-90,roll:0})},fullMap:function(e){return new Promise(((t,i)=>{let r=this;this._entities.removeById("fullMapRectangle"),e.isRemove=Cesium.defaultValue(e.isRemove,!0),e.duration=Cesium.defaultValue(e.duration,3),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,-90),e.range=Cesium.defaultValue(e.range,0);var o=Cesium.Rectangle.fromDegrees(e.west,e.south,e.east,e.north),n=this._entities.add({id:"fullMapRectangle",name:"fullMapRectangle",rectangle:{coordinates:o,material:Cesium.Color.GREEN.withAlpha(0),height:10,outline:!1}});this._viewer.flyTo(n,{duration:e.duration,offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}}).then((function(i){i&&(e.isRemove&&n&&(r._entities.remove(n),n=null),t(!0))})).catch((function(e){console.log(e)}))}))},setMapNorth(){let e=this._viewer,t=Cesium.Math.toDegrees(e.camera.pitch).toFixed(0);var i=e.camera.pickEllipsoid(new Cesium.Cartesian2(e.canvas.clientWidth/2,e.canvas.clientHeight/2)),r=Cesium.Ellipsoid.WGS84.cartesianToCartographic(i);let o=180*r.longitude/Math.PI,n=180*r.latitude/Math.PI,l=180*e.camera.positionCartographic.longitude/Math.PI,a=180*e.camera.positionCartographic.latitude/Math.PI,s=e.camera.positionCartographic.height.toFixed(0);var c=Cesium.Cartographic.fromDegrees(l,a,s),d=Cesium.Cartographic.fromDegrees(o,n,0),u=new Cesium.EllipsoidGeodesic;u.setEndPoints(c,d);var p=u.surfaceDistance;let h=Math.sqrt(Math.pow(p,2)+Math.pow(s-0,2));this.centerEntity&&e.entities.remove(this.centerEntity),this.centerEntity=e.entities.add({position:Cesium.Cartesian3.fromDegrees(o,n,0),point:{color:Cesium.Color.RED,pixelSize:1}});let f=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(0),Cesium.Math.toRadians(t),h);e.zoomTo(this.centerEntity,f)},setMapSpinByPoint(e,t){let i=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).speed=Cesium.defaultValue(t.speed,30);var r=e;r=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0);var o=i.entities.add(new Cesium.Entity({point:new Cesium.PointGraphics({color:new Cesium.Color(1,1,0),pixelSize:6,outlineColor:new Cesium.Color(0,1,1)}),position:r})),n=360/t.speed,l=i.camera.heading,a=i.camera.pitch;t.pitch&&(a=Cesium.Math.toRadians(t.pitch));var s=i.camera.positionCartographic.height;t.pitch&&(a=t.height);var c=Cesium.JulianDate.fromDate(new Date);i.clock.startTime=c.clone(),i.clock.currentTime=c.clone(),i.clock.clockRange=Cesium.ClockRange.CLAMPED,i.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK;var d=function(){var e=Cesium.JulianDate.secondsDifference(i.clock.currentTime,i.clock.startTime),t=Cesium.Math.toRadians(e*n)+l;i.scene.camera.setView({destination:r,orientation:{heading:t,pitch:a}}),i.scene.camera.moveBackward(s),Cesium.JulianDate.compare(i.clock.currentTime,i.clock.stopTime)>=0&&i.clock.onTick.removeEventListener(d),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(e){i.clock.onTick.removeEventListener(d),i.entities.remove(o)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)};i.clock.onTick.addEventListener(d)}});const y=52.35987755982988,x=3.141592653589793,w=.006693421622965943;class k{static BD09ToGCJ02(e,t){let i=+e-.0065,r=+t-.006,o=Math.sqrt(i*i+r*r)-2e-5*Math.sin(r*y),n=Math.atan2(r,i)-3e-6*Math.cos(i*y);return[o*Math.cos(n),o*Math.sin(n)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*y),r=Math.atan2(t,e)+3e-6*Math.cos(e*y);return[i*Math.cos(r)+.0065,i*Math.sin(r)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[e+i[0],t+i[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}}static delta(e,t){let i=this.transformLng(e-105,t-35),r=this.transformLat(e-105,t-35);const o=t/180*x;let n=Math.sin(o);n=1-w*n*n;const l=Math.sqrt(n);return i=180*i/(6378245/l*Math.cos(o)*x),r=180*r/(6378245*(1-w)/(n*l)*x),[i,r]}static transformLng(e,t){let i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*x)+20*Math.sin(2*e*x))/3,i+=2*(20*Math.sin(e*x)+40*Math.sin(e/3*x))/3,i+=2*(150*Math.sin(e/12*x)+300*Math.sin(e/30*x))/3,i}static transformLat(e,t){let i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*x)+20*Math.sin(2*e*x))/3,i+=2*(20*Math.sin(t*x)+40*Math.sin(t/3*x))/3,i+=2*(160*Math.sin(t/12*x)+320*Math.sin(t*x/30))/3,i}static out_of_china(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}static getCatesian3FromPX(e,t){let i=e.scene.drillPick(t),r=null,o=!1,n=!1;for(let a in i){let n=i[a];if((n&&n.primitive instanceof Cesium.Cesium3DTileFeature||n&&n.primitive instanceof Cesium.Cesium3DTileset||n&&n.primitive instanceof Cesium.Model)&&(o=!0),o&&(e.scene.pick(t),r=e.scene.pickPosition(t),r)){let e=Cesium.Cartographic.fromCartesian(r);e.height<0&&(e.height=0);let t=Cesium.Math.toDegrees(e.longitude),i=Cesium.Math.toDegrees(e.latitude),o=e.height;r=this.transformWGS84ToCartesian({lng:t,lat:i,alt:o})}}let l=e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider;if(!o&&!l){let i=e.scene.camera.getPickRay(t);if(!i)return null;r=e.scene.globe.pick(i,e.scene),n=!0}if(o||n||!l||(r=e.scene.camera.pickEllipsoid(t,e.scene.globe.ellipsoid)),r){let e=this.transformCartesianToWGS84(r);return e.alt<0&&(r=this.transformWGS84ToCartesian(e,.1)),r}return!1}static transformWGS84ToCartesian(e,t){return e?Cesium.Cartesian3.fromDegrees(e.lng||e.lon,e.lat,e.alt=t||e.alt,Cesium.Ellipsoid.WGS84):Cesium.Cartesian3.ZERO}static transformCartesianToWGS84(e){let t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e);return{lng:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude),alt:t.height}}static Cartesian3ListToWGS84(e){let t=Cesium.Ellipsoid.WGS84,i=[];for(let r=0;r{this._transformProjection(r)})),this._addImageryProvider(e.id,r),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addTileMapServiceImagery:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url};e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);var r=new Cesium.TileMapServiceImageryProvider(i);this._addImageryProvider(e.id,r),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addWebMapTileService:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");if(!Cesium.defined(e.layers))throw new Cesium.DeveloperError("options.layers is required.");if(!Cesium.defined(e.style))throw new Cesium.DeveloperError("options.style is required.");if(!Cesium.defined(e.tileMatrixSetID))throw new Cesium.DeveloperError("options.tileMatrixSetID is required.");e.id=e.id||this._guid();let i={url:e.url,layer:e.layers,style:e.style,tileMatrixSetID:e.tileMatrixSetID,format:Cesium.defaultValue(e.format,"image/png")};e.tileMatrixLabels&&(i.tileMatrixLabels=e.tileMatrixLabels),e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);let r=new Cesium.WebMapTileServiceImageryProvider(i);this._addImageryProvider(e.id,r),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addWebMapService:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");if(!Cesium.defined(e.layers))throw new Cesium.DeveloperError("options.layers is required.");e.id=e.id||this._guid();let i={url:e.url,layer:e.layers,parameters:{transparent:!0,request:"GetMap",format:"image/png"}};e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);let r=new Cesium.WebMapServiceImageryProvider(i);this._addImageryProvider(e.id,r),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addArcGisMapServer:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url};e.layers&&(i.layers=e.layers);let r=new Cesium.ArcGisMapServerImageryProvider(i);this._addImageryProvider(e.id,r),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addCesium3DTileset:function(e,t){let i=this;if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let r={url:e.url,skipLevelOfDetail:!0};new Cesium.Cesium3DTileset(r).readyPromise.then((r=>{console.log("加载完成"),window[e.id]=r,i._addScenePrimitives(r),i.set3DTilePosition({serviceId:e.id,height:e.height}),i.set3DTileStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)})).catch((function(e){console.log(e)}))},addCesium3DTilesetBm:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url,skipLevelOfDetail:!0};new Cesium.Cesium3DTileset(i).readyPromise.then((i=>{console.log("加载完成"),window[e.id]=i,_self._addScenePrimitives(i),_self.set3DTileBMStyle({serviceId:e.id,color:e.color}),t&&t(e.id)})).catch((function(e){console.log(e)}))},addPolygonImageMaterial:function(e,t){if(!Cesium.defined(e.points))throw new Cesium.DeveloperError("options.points is required.");e.points.length<3&&reject("面对象,点数至少3个");let i=[];i=e.points instanceof Cesium.Cartesian3?e.points:e.points.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),e.id=e.id||this._guid(),e.alpha=e.alpha||1,this.classificationType=Cesium.ClassificationType.BOTH,"Terrain"===e.classificationType?this.classificationType=Cesium.ClassificationType.TERRAIN:"3DTiles"===e.classificationType&&(this.classificationType=Cesium.ClassificationType.CESIUM_3D_TILE),e.url?(Cesium.Entity.supportsMaterialsforEntitiesOnTerrain(this._viewer.scene)||window.alert("Terrain Entity materials are not supported on this platform"),this.material=new Cesium.ImageMaterialProperty({image:e.url,repeat:Cesium.Cartesian2(1,1),transparent:!0,color:Cesium.Color.WHITE.withAlpha(e.alpha)})):this.material=Cesium.Color.RED.withAlpha(e.alpha),window[e.id]=this._viewer.entities.add({id:e.id,polygon:{hierarchy:i,material:this.material,classificationType:this.classificationType}}),t&&t(e.id)},addEntitiesGltf:function(e,t){let i,r=this._viewer;if(!Cesium.defined(e.points))throw resolve("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,0),e.roll=Cesium.defaultValue(e.roll,0),e.alpha=Cesium.defaultValue(e.alpha,1),i=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);var o=Cesium.Math.toRadians(e.heading),n=e.pitch,l=e.roll,a=new Cesium.HeadingPitchRoll(o,n,l),s=r.entities.add({id:e.id,position:i,orientation:Cesium.Transforms.headingPitchRollQuaternion(i,a),model:{uri:e.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(e.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1}});e.minimumPixelSize&&(s.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(s.model.maximumScale=e.maximumScale),e.silhouetteColor&&(s.model.silhouetteColor=new Cesium.Color(e.silhouetteColor[0]/255,e.silhouetteColor[1]/255,e.silhouetteColor[2]/255,e.silhouetteColor[3])),window[e.id]=s,t&&t(e.id)},addScenePrimitivesGltf(e,t){let i,r=this._viewer;if(!Cesium.defined(e.points))throw resolve("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.scale=Cesium.defaultValue(e.scale,1),i=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);const o=Cesium.Transforms.eastNorthUpToFixedFrame(i);let n=r.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:o,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));n.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(n.modelMatrix,e,n.modelMatrix)})),window[e.id]=n,t&&t(e.id)},addPolylineByGeoJson(e,t){let i=this;if(this._viewer,!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.clampToGround=Cesium.defaultValue(e.clampToGround,!0),e.width=Cesium.defaultValue(e.width,3),e.minHeigh=Cesium.defaultValue(e.minHeigh,0),e.maxHeigh=Cesium.defaultValue(e.maxHeigh,2e8),Cesium.GeoJsonDataSource.load(e.url,{clampToGround:e.clampToGround}).then((r=>{i._viewer.dataSources.add(r),r.name=e.id;let o=r.entities.values,n=new C(e);for(var l=0;l{e.billboard={image:o.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:o.scale,pixelOffset:new Cesium.Cartesian2(0,o.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=n.text;e.properties[n.textField]&&(t=e.properties[n.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:n.font,fillColor:n.fillColor,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:n.showBackground,backgroundColor:n.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,n.pixelOffset),scale:n.scale},n.scaleByDistance&&(n.scaleByDistance.near=Cesium.defaultValue(n.scaleByDistance.near,0),n.scaleByDistance.nearValue=Cesium.defaultValue(n.scaleByDistance.nearValue,0),n.scaleByDistance.far=Cesium.defaultValue(n.scaleByDistance.far,1),n.scaleByDistance.farValue=Cesium.defaultValue(n.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(n.scaleByDistance.near,n.scaleByDistance.nearValue,n.scaleByDistance.far,n.scaleByDistance.farValue))})),t&&t(e.id)}))}}),Object.assign(T.prototype,{set3DTileStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].style=new Cesium.Cesium3DTileStyle({color:"color('rgba(255,255,255,"+e.alpha+")')"})},set3DTileBMStyle:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");e.color=e.color?"vec4("+e.color[0]+"/255, "+e.color[1]+"/255, "+e.color[2]+"/255, "+e.color[3]+")":"vec4(0.0, 0.58, 0.86, 1.0)",window[e.serviceId].readyPromise.then((t=>{t.boundingSphere.radius,t.boundingSphere.radius>1e4&&t.boundingSphere.radius,t.style=new Cesium.Cesium3DTileStyle({color:e.color}),t.tileVisible.addEventListener((e=>{let t=e.content,i=t.featuresLength;for(let r=0;r{const r=i._sourcePrograms[t],o=i._rendererResources.sourceShaders[r.fragmentShader];let n="";-1!==o.indexOf(" v_positionEC;")?n="v_positionEC":-1!==o.indexOf(" v_pos;")&&(n="v_pos");const l=`vec4(${e.color.toString()})`;i._rendererResources.sourceShaders[r.fragmentShader]=`\n\t\t\t\t\t\t\t\t\t\t\t\t varying vec3 ${n};\n\t\t\t\t\t\t\t\t\t\t\t\t void main(void){\n\t\t\t\t\t\t\t\t\t\t\t\t\tvec4 v_helsing_position = czm_inverseModelView * vec4(${n},1); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat _baseHeight = -30.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat vtxf_height = v_helsing_position.z - _baseHeight;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_pl = fract(czm_frameNumber / 120.0) * 3.14159265 * 2.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_sd = vtxf_height / 30.0 + sin(stc_pl) * 0.1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor = ${l};\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor *= vec4(stc_sd, stc_sd, stc_sd, 1.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* 扫描线 */\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat glowRange = 80.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_a13 = fract(czm_frameNumber / 460.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_h = clamp(v_helsing_position.z / glowRange, 0.0, 1.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tstc_a13 = abs(stc_a13 - 0.5) * 1.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_diff = step(0.003, abs(stc_h - stc_a13));\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor.rgb += gl_FragColor.rgb * (1.0 - stc_diff);\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t`})),i._shouldRegenerateShaders=!0)}}))})),this._viewer.scene.requestRender()},set3DTilePosition:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");e.height=Cesium.defaultValue(e.height,0);let t=window[e.serviceId].boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center),r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,e.height),o=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),n=Cesium.Cartesian3.subtract(r,o,new Cesium.Cartesian3);window[e.serviceId].modelMatrix=Cesium.Matrix4.fromTranslation(n),this._viewer.scene.requestRender()},setLayersStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let t=window[e.serviceId];Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),t.alpha=e.alpha,Cesium.defined(e.brightness)&&Cesium.Check.typeOf.number("brightness",e.brightness),e.brightness=Cesium.defaultValue(e.brightness,1),t.brightness=e.brightness,Cesium.defined(e.contrast)&&Cesium.Check.typeOf.number("contrast",e.contrast),e.contrast=Cesium.defaultValue(e.contrast,1),t.contrast=e.contrast,Cesium.defined(e.gamma)&&Cesium.Check.typeOf.number("gamma",e.gamma),e.gamma=Cesium.defaultValue(e.gamma,1),t.gamma=e.gamma,Cesium.defined(e.hue)&&Cesium.Check.typeOf.number("hue",e.hue),e.hue=Cesium.defaultValue(e.hue,0),t.hue=e.hue,Cesium.defined(e.saturation)&&Cesium.Check.typeOf.number("saturation",e.saturation),e.saturation=Cesium.defaultValue(e.saturation,1),t.saturation=e.saturation},setPolygonImageMaterial(e){Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].polygon.material.color._value.alpha=e.alpha},setModelStyle(e){Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1);let t=window[e.serviceId];t.model?t.model.color._value.alpha=e.alpha:t.color._value.alpha=e.alpha},setTerrainExaggeration(e){Cesium.defined(e.terrainExaggeration)&&Cesium.Check.typeOf.number("terrainExaggeration",e.terrainExaggeration),e.terrainExaggeration=Cesium.defaultValue(e.terrainExaggeration,1),this._viewer.scene.globe.terrainExaggeration=e.terrainExaggeration}}),Object.assign(T.prototype,{removeImageryProvider(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._removeImageryProvider(e.serviceId),t(!0)}))},removeTerrain(){return new Promise(((e,t)=>{this._setEllipsoidTerrain(),e(!0)}))},removeScenePrimitives(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._removeScenePrimitives(e.serviceId),t(!0)}))},removeEntity(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._viewer.entities.remove(window[e.serviceId]),window[e.serviceId]=null,t(!0)}))},removeDataSources(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let o=t.dataSources.getByName(e.serviceId);o.forEach(((e,r)=>{t.dataSources.remove(e),r===o.length-1&&i(!0)}))}))}}),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()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[i]:("00"+t[i]).substr((""+t[i]).length)));return e};class E{constructor({viewer:e,url:t,opacity:i=.75,show:r=!0}={}){this._viewer=e,this._url=t,this._opacity=i,this._renderName=this._guid();let o=new Cesium.CustomDataSource(this._renderName);this._viewer.dataSources.add(o),this._entities=o.entities,this._renderEntities=new Map,this._isUpdateTile=r,this._isDebug=!1,this._init()}_init(){let e=this;this._provider=new Cesium.ArcGisMapServerImageryProvider({url:e._url}),this._provider.readyPromise.then((function(t){e._rectangle=e._provider.rectangle,e._isDebug&&e._printDebug(),e._viewer.scene.postRender.addEventListener((()=>{e._isUpdateTile&&(e._isUpdateTile=!1,e._renderTiles())}))}))}_guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}_printDebug(){this._provider.tilingScheme;let e=new Cesium.GeographicTilingScheme;this._drawDebugRectangle(this._rectangle,Cesium.Color.GREEN),e.tileXYToRectangle(1696,312,10)}_drawDebugRectangle(e,t){let i=this._calculateRectangleOutlineCoordinates(e),r=new Cesium.Entity({name:this._renderName,polyline:{positions:i,material:t,width:10,clampToGround:!0}});this._entities.add(r)}_console(...e){this._isDebug&&console.log("==="+(new Date).Format("yyyy-MM-dd HH:mm:ss")+">>>",e)}_renderTiles(){let e=this,t=this._viewer.scene.globe._surface._tilesToRender;void 0!==t&&0!==t.length?new Promise(((e,i)=>{t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),e(t)})).then((t=>{e._asyncProjectionTiles(t)})):this._isUpdateTile=!0}_createKey(e,t,i){return`${this._renderName}_${e}_${t}_${i}`}_asyncProjectionTiles(e){let t=[];for(let o of e){let e=this._projectionTile(o);for(let i of e){let e=this._createKey(i.x,i.y,i.level);if(void 0===t.find((e=>e.x===i.x&&e.y===i.y))){let r=!1;for(let o of t)if(Cesium.Rectangle.intersection(o.rectangle,i.rectangle)){o.childTiles.push(e),r=!0;break}r||t.push({key:e,x:i.x,y:i.y,level:i.level,rectangle:i.rectangle,childTiles:[]})}}}let i=t.length,r=[];for(;i--;){let e=t[i];if(e.childTiles.length>=1){let o=this._createFourTiles(e);for(let e of o)r.push(e);t.splice(i,1)}}for(let o of r)t.push(o);t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),this._renderTilesToViewer(t)}_createTileByRectangleAndLevel(e,t){let i=Cesium.Rectangle.center(e),r=parseInt(t)+1,o=this._provider.tilingScheme.positionToTileXY(i,r);if(void 0!==o)return{key:this._createKey(o.x,o.y,r),x:o.x,y:o.y,level:r,rectangle:e,childTiles:[]}}_createFourTiles(e){let t=[],i=[],r=e.rectangle;t.push(Cesium.Rectangle.subsection(r,0,0,.5,.5)),t.push(Cesium.Rectangle.subsection(r,.5,0,1,.5)),t.push(Cesium.Rectangle.subsection(r,0,.5,.5,1)),t.push(Cesium.Rectangle.subsection(r,.5,.5,1,1));for(let o of t)if(Cesium.Rectangle.intersection(o,this._rectangle)){let t=this._createTileByRectangleAndLevel(o,e.level);void 0!==t&&i.push(t)}return i}_renderTilesToViewer(e){let t=this,i=[];for(let[r,o]of this._renderEntities){void 0===e.find((e=>e.key===r))&&i.push(r)}for(let r of i)this._renderEntities.delete(r),this._entities.removeById(r);for(let r of e)if(!this._renderEntities.has(r.key)){let e=this._renderSimpleTileToViewer(r);this._renderEntities.set(r.key,e);let i=new Blob([`(${S.toString()})()`]),o=new Worker(URL.createObjectURL(i));o.postMessage({key:r.key,url:this._url,x:r.x,y:r.y,level:r.level}),o.onmessage=function(e){t._console(`render x:${e.data.x} y:${e.data.y} level:${e.data.level}`);let i=t._entities.getById(e.data.key);if(void 0!==i){e.data.key;const r=t._createCanvas(e.data,e.data.image,t._isDebug);i.rectangle.material=r}o.terminate()}}this._isUpdateTile=!0}_renderSimpleTileToViewer(e){const t=this._createCanvas(e,void 0,this._isDebug);let i=this._calculateRectangleOutlineCoordinates(e.rectangle),r=new Cesium.Entity({name:this._renderName,id:e.key,rectangle:{coordinates:e.rectangle,material:t},polyline:{positions:i,material:Cesium.Color.YELLOW.withAlpha(this._isDebug?1:0),width:1,clampToGround:!0}});return this._entities.add(r)}_createCanvas(e,t,i){let r=this._provider;const o=document.createElement("canvas");o.width=r.tileWidth,o.height=r.tileHeight;const n=o.getContext("2d");return void 0!==t&&(n.globalAlpha=this._opacity,n.drawImage(event.data.image,0,0,o.width,o.height)),void 0!==i&&!0===i&&(n.globalAlpha=1,n.font="20px Arial",n.textAlign="center",n.fillStyle="rgba(255,255,0)",n.strokeStyle="rgba(255,255,255,1)",n.lineWidth=2,n.strokeText(`L: ${e.level}`,126,86),n.fillText(`L: ${e.level}`,126,86),n.strokeText(`X: ${e.x}`,126,136),n.fillText(`X: ${e.x}`,126,136),n.strokeText(`Y: ${e.y}`,126,186),n.fillText(`Y: ${e.y}`,126,186)),o}_projectionTile(e){let t=e._rectangle,i=parseInt(e.level),r=this._provider.tilingScheme,o=[];if(void 0===Cesium.Rectangle.intersection(t,this._rectangle))return o;let n=r.positionToTileXY(Cesium.Rectangle.northwest(t),i),l=r.positionToTileXY(Cesium.Rectangle.southeast(t),i);if(void 0!==n&&void 0!==l)for(let a=n.x;a<=l.x;a++)for(let e=n.y;e<=l.y;e++){let t=r.tileXYToRectangle(a,e,i);Cesium.Rectangle.intersection(t,this._rectangle)&&o.push({x:a,y:e,level:i,rectangle:t})}else if(void 0!==n){let e=r.tileXYToRectangle(n.x,n.y,i);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:n.x,y:n.y,level:i,rectangle:e})}else if(void 0!==l){let e=r.tileXYToRectangle(l.x,l.y,i);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:l.x,y:l.y,level:i,rectangle:e})}return o}_calculateRectangleOutlineCoordinates(e){let t=Cesium.Rectangle.southeast(e),i=Cesium.Cartographic.toCartesian(t),r=Cesium.Rectangle.southwest(e),o=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.northeast(e),l=Cesium.Cartographic.toCartesian(n),a=Cesium.Rectangle.northwest(e);return[o,i,l,Cesium.Cartographic.toCartesian(a),o]}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var i=[],r=0;r>>",i+" Not found")},r.send()}}Object.assign(E.prototype,{hide:function(){this._console("隐藏"),this._isUpdateTile=!1,this._removeEntityByName(this._renderName),this._renderEntities.clear()},show:function(){this._console("显示"),this._isUpdateTile=!0},setOpacity:function(e){void 0!==e&&"number"==typeof e&&(e>=1&&(this._opacity=1),e<=0&&(this._opacity=0),this._opacity=parseFloat(e))}});class A{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._locationEntity=null}}Object.assign(A.prototype,{flyToPoint:function(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.longitude)||!Cesium.defined(e.latitude))throw new Cesium.DeveloperError("options.longitude and options.latitude are required.");e.height=Cesium.defaultValue(e.height,0),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,-90),e.range=Cesium.defaultValue(e.range,0),e.duration=Cesium.defaultValue(e.duration,3);var r=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),0);this._viewer.camera.flyToBoundingSphere(r,{duration:e.duration,complete:function(){t(!0)},offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}})}))},flyToEntityByPoints:function(e,t,i){return new Promise(((r,o)=>{let n=this;if(i=i||{},void 0===e||void 0===e.length)return void o("输入的坐标集合异常!");let l=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));switch(n._locationEntity&&n._viewer.entities.remove(n._locationEntity),t){case"point":n._locationEntity=n._viewer.entities.add({position:l[0],point:{pixelSize:1}});break;case"polyline":l.length<2?o("线对象定位,点数至少2个"):n._locationEntity=n._viewer.entities.add({polyline:{positions:l,clampToGround:!0,material:new Cesium.Color(255,0,0,.5),width:1}});break;case"polygon":l.length<3?o("面对象定位,点数至少3个"):n._locationEntity=n._viewer.entities.add({polygon:{hierarchy:{positions:l},material:new Cesium.Color(255,0,0,.5),outline:!0}});break;default:o("坐标异常!")}i.duration=Cesium.defaultValue(i.duration,3),i.heading=Cesium.defaultValue(i.heading,0),i.pitch=Cesium.defaultValue(i.pitch,-90),i.range=Cesium.defaultValue(i.range,0),n._viewer.flyTo(n._locationEntity,{duration:i.duration,offset:{heading:Cesium.Math.toRadians(i.heading),pitch:Cesium.Math.toRadians(i.pitch),range:i.range}}).then((function(e){e&&r(n._locationEntity)}))}))},flyToEntity:function(e,t){return new Promise(((i,r)=>{let o=this;t=t||{},o._locationEntity&&o._viewer.entities.remove(o._locationEntity),o._locationEntity=e,t.duration=Cesium.defaultValue(t.duration,3),t.heading=Cesium.defaultValue(t.heading,0),t.pitch=Cesium.defaultValue(t.pitch,-90),t.range=Cesium.defaultValue(t.range,0),o._viewer.flyTo(o._locationEntity,{duration:t.duration,offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}}).then((function(e){e&&i(o._locationEntity)}))}))},zoomToTilesets(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("tileset is required.");(t=t||{}).heading=Cesium.defaultValue(t.heading,120),t.pitch=Cesium.defaultValue(t.pitch,-10),t.range=Cesium.defaultValue(t.range,450),t.duration=Cesium.defaultValue(t.duration,3);let o=e.boundingSphere;this._viewer.camera.flyToBoundingSphere(o,{duration:t.duration,complete:function(){i(!0)},offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}})}))},flyToTileset(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("tileset is required.");(t=t||{}).heading=Cesium.defaultValue(t.heading,120),t.pitch=Cesium.defaultValue(t.pitch,-10),t.range=Cesium.defaultValue(t.range,450),t.duration=Cesium.defaultValue(t.duration,3),this._viewer.flyTo(e,{duration:t.duration,offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}}).then((function(e){e&&i(!0)}))}))}});const P=function(e,t,i){let r,o,n,l,a=document.getElementById("toolTip");if(e&&"object"==typeof e&&(r=e),r&&r.origin?("center"===r.origin&&(o=15,n=-12),"top"===r.origin&&(o=15,n=-44),"bottom"===r.origin&&(o=15,n=20)):(o=15,n=20),r&&r.color?("white"===r.color&&(l="background: rgba(255, 255, 255, 0.8);color: black;"),"black"===r.color&&(l="background: rgba(0, 0, 0, 0.65);color: white;"),"yellow"===r.color&&(l="color: black;background-color: #ffcc33;border: 1px solid white;")):l="background: rgba(0, 0, 0, 0.65);color: white;",!a){const e=document.getElementsByClassName("cesium-viewer")[0];let t=document.createElement("div");e.append(t);let i='';e.insertAdjacentHTML("beforeend",i),a=document.getElementById("toolTip")}return i?(a.innerHTML=e,a.style.left=t.x+o+"px",a.style.top=t.y+n+"px",a.style.display="block"):a.style.display="none",{tooltip:a,style:r,showAt:function(e,t){this.tooltip.innerHTML=t,this.style&&this.style.origin?("center"===this.style.origin&&(o=15,n=-this.tooltip.offsetHeight/2),"top"===this.style.origin&&(o=15,n=-this.tooltip.offsetHeight-20),"bottom"===this.style.origin&&(o=15,n=20)):(o=15,n=-this.tooltip.offsetHeight/2),this.tooltip.style.left=e.x+o+"px",this.tooltip.style.top=e.y+n+"px",this.tooltip.style.display="block"},show:function(e){this.tooltip.style.display=e?"block":"none"}}};class I{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]}}_distance(e,t){let i=Cesium.Cartographic.fromCartesian(e),r=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,r);let n=o.surfaceDistance;return n=Math.sqrt(Math.pow(n,2)+Math.pow(r.height-i.height,2)),n}_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)?I.RuntimeEnvironment.App:I.RuntimeEnvironment.Web}_isRuntimeApp(){return this._checkAppOrWeb()===I.RuntimeEnvironment.App}_isRuntimeWeb(){return this._checkAppOrWeb()===I.RuntimeEnvironment.Web}_createOperationMainDom(){let e=document.createElement("div");e.id="drawButtonDiv",e.style.width="80px",e.style.backgroundColor="rgba(5, 45, 155, 0.7)",e.style.borderRadius="5px",e.style.display="flex",e.style.flexDirection="column",e.style.padding="8px",e.style.justifyContent="center",e.style.position="absolute",e.style.bottom="150px",e.style.right="10px";let t=document.createElement("button");t.id="btnDrawComplete",t.style.height="30px",t.style.backgroundColor="rgba(88, 185, 45, 1.0)",t.style.color="rgb(255, 255, 255)",t.style.border="0px solid red",t.style.borderRadius="5px",t.innerHTML="完成",t.style.fontSize="13px",t.style.cursor="pointer",e.appendChild(t),document.body.appendChild(e)}_showTooltipMessage(e){let t=document.getElementById("messageMainDom");null!=t&&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 i="";i+="
",i+="
"+e+"
",t.innerHTML=i,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}} /*! * author: [object Object] * @sakitam-gis/kriging v0.1.0 * build-time: 2019-7-6 20:41 * LICENSE: MIT * (c) 2019-2019 https://github.com/sakitam-gis/kriging.js */ function D(e){return Math.max.apply(null,e)}function M(e){return Math.min.apply(null,e)}function L(e,t){for(var i=[],r=0;ri!=e[o][1]>i&&t<(e[o][0]-e[r][0])*(i-e[r][1])/(e[o][1]-e[r][1])+e[r][0]&&(n=!n);return n}function R(e,t){for(var i=0,r=L(0,t*t);i=a&&(a=Math.abs(e[r*t+o]),v=r,g=o);if(++m[g],v!==g){for(n=0;n=0;n--)if(f[n]!==h[n])for(o=0;oi?t+(r-t)/i:t+(r-t)/i*(e/i*1.5-.5*Math.pow(e/i,3))}function G(e,t,i){var r,o=Array(i.n);for(r=0;r{let r=k.getCatesian3FromPX(e._viewer,i.position);if(t="左键创建视角终点,右键结束通视分析",this._isRuntimeApp()&&(t="再次单击创建视角终点",e._showTooltipMessage(t)),r){if(e._resultObject.viewPoint){e._resultObject.targetPoint=r;let t=e._viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"目标位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t);let i=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e._resultObject.targetPoint,e._resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),o=new Cesium.Ray(e._resultObject.viewPoint,i),n=e._viewer.scene.pickFromRay(o,e._resultObject.objectExclude);if(n){let t=e._distance(e._resultObject.viewPoint,e._resultObject.targetPoint),i=e._distance(e._resultObject.viewPoint,n.position),o=e._distance(n.position,e._resultObject.targetPoint);if(console.log(t,i,o),t>i){let l=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,n.position],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(l);let a=e._viewer.entities.add({polyline:{positions:[n.position,e._resultObject.targetPoint],material:Cesium.Color.RED,width:3}});e._resultObject.entities.push(a),e._resultObject.targetPoints.push({targetPoint:r,visual:!1,distance:[t,i,o]})}else{let n=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,e._resultObject.targetPoint],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(n),e._resultObject.targetPoints.push({targetPoint:r,visual:!0,distance:[t,i,o]})}}}else{e._resultObject.viewPoint=r;let t=e._viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"观察位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t)}2===e._resultObject.objectExclude.length&&this._isRuntimeApp()&&(e._createOperationMainDom(),document.getElementById("btnDrawComplete").onclick=()=>{P(t,i.endPosition,!1),e.handler.destroy();let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),e.handler.setInputAction((function(i){e._isRuntimeApp()||P(t,i.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.handler.setInputAction((i=>{P(t,i.endPosition,!1),e.handler.destroy()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)},clearAll(){this._resultObject.entities.forEach((e=>{this._viewer.entities.remove(e)})),this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},this.handler&&this.handler.destroy();let e=document.getElementById("drawButtonDiv");e&&document.body.removeChild(e)}}),I.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});var Y={train:function(e,t,i,r,o,n){var l,a,s,c,d={t:e,x:t,y:i,nugget:0,range:0,sill:0,A:1/3,n:0,model:W,K:[],M:[]};switch(r){case"gaussian":d.model=V;break;case"exponential":d.model=W;break;case"spherical":d.model=H;break;default:d.model=W}var u=e.length,p=Array((u*u-u)/2);for(l=0,s=0;l30?30:(u*u-u)/2,f=d.range/h,m=L(0,h),g=L(0,h);if(h<30)for(c=0;c=(u*u-u)/2)););s>0&&(m[c]/=s,g[c]/=s,c++)}if(c<2)return d}u=c,d.range=m[u-1]-m[0];var v=L(1,2*u),b=Array(u),_=d.A;for(l=0;lc[1]&&(c[1]=e[r][o][0]),e[r][o][1]d[1]&&(d[1]=e[r][o][1]);var u=Array(2),p=Array(2),h=Array(2),f=Array(2),m=Math.ceil((c[1]-c[0])/i),g=Math.ceil((d[1]-d[0])/i),v=Array(m+1);for(r=0;r<=m;r++)v[r]=Array(g+1);for(r=0;rh[1]&&(h[1]=e[r][o][0]),e[r][o][1]f[1]&&(f[1]=e[r][o][1]);for(u[0]=Math.floor((h[0]-(h[0]-c[0])%i-c[0])/i),u[1]=Math.ceil((h[1]-(h[1]-c[1])%i-c[0])/i),p[0]=Math.floor((f[0]-(f[0]-d[0])%i-d[0])/i),p[1]=Math.ceil((f[1]-(f[1]-d[1])%i-d[0])/i),o=u[0];o<=u[1];o++)for(n=p[0];n<=p[1];n++)a=c[0]+o*i,s=d[0]+n*i,O(e[r],a,s)&&(v[o][n]=G(a,s,t))}return{xlim:c,ylim:d,width:i,data:v,zlim:[M(t.t),D(t.t)]}}},plot:function(e,t,i,r,o){var n=e.getContext("2d"),l=t.data,a=t.zlim,s=t.width;if(n){n.clearRect(0,0,e.width,e.height);var c=[i[1]-i[0],r[1]-r[0],a[1]-a[0]],d=void 0,u=void 0,p=void 0,h=void 0,f=void 0,m=l.length,g=l[0].length,v=Math.ceil(s*e.width/(i[1]-i[0])),b=Math.ceil(s*e.height/(r[1]-r[0]));for(d=0;d1&&(f=1),n.fillStyle=o[Math.floor((o.length-1)*f)],n.fillRect(Math.round(p-v/2),Math.round(h-b/2),v,b))}},max:D,min:M,pip:O,rep:L,matrixDiag:R,matrixTranspose:z,matrixAdd:N,matrixMultiply:B,matrixChol:j,matrixChol2inv:U,matrixSolve:F,variogramGaussian:V,variogramExponential:W,variogramSpherical:H},q={centimeters:637100880,centimetres:637100880,degrees:6371008.8/111325,feet:20902260.511392,inches:6371008.8*39.37,kilometers:6371.0088,kilometres:6371.0088,meters:6371008.8,metres:6371008.8,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:6371008.8/1852,radians:1,yards:6371008.8*1.0936};function Q(e,t,i){void 0===i&&(i={});var r={type:"Feature"};return(0===i.id||i.id)&&(r.id=i.id),i.bbox&&(r.bbox=i.bbox),r.properties=t||{},r.geometry=e,r}function Z(e,t,i){if(void 0===i&&(i={}),!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(!te(e[0])||!te(e[1]))throw new Error("coordinates must contain numbers");return Q({type:"Point",coordinates:e},t,i)}function X(e,t,i){void 0===i&&(i={});for(var r=0,o=e;re[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=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 ae(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function se(e){return"Feature"===e.type?e.geometry:e}ne.default=ne;var ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ue(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})})),t}var pe={exports:{}};function he(e,t,i,r,o){fe(e,t,i||0,r||e.length-1,o||ge)}function fe(e,t,i,r,o){for(;r>i;){if(r-i>600){var n=r-i+1,l=t-i+1,a=Math.log(n),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(n-s)/n)*(l-n/2<0?-1:1);fe(e,t,Math.max(i,Math.floor(t-l*s/n+c)),Math.min(r,Math.floor(t+(n-l)*s/n+c)),o)}var d=e[t],u=i,p=r;for(me(e,i,t),o(e[r],d)>0&&me(e,i,r);u0;)p--}0===o(e[i],d)?me(e,i,p):me(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function me(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function ge(e,t){return et?1:0}function ve(e,t,i){if(!i)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function Ae(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Pe(e,t,i,r,o){const n=[t,i];for(;n.length;){if((i=n.pop())-(t=n.pop())<=r)continue;const l=t+Math.ceil((i-t)/r/2)*r;he(e,l,t,i,o),n.push(t,l,l,i)}}var Ie=ue(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const i=[];if(!Se(e,t))return i;const r=this.toBBox,o=[];for(;t;){for(let n=0;n=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(r,o,t)}_split(e,t){const i=e[t],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);const n=this._chooseSplitIndex(i,o,r),l=Ae(i.children.splice(n,i.children.length-n));l.height=i.height,l.leaf=i.leaf,be(i,this.toBBox),be(l,this.toBBox),t?e[t-1].children.push(l):this._splitRoot(i,l)}_splitRoot(e,t){this.data=Ae([e,t]),this.data.height=e.height+1,this.data.leaf=!1,be(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let r,o=1/0,n=1/0;for(let l=t;l<=i-t;l++){const t=_e(e,0,l,this.toBBox),a=_e(e,l,i,this.toBBox),s=Te(t,a),c=ke(t)+ke(a);s=t;s--){const t=e.children[s];ye(l,e.leaf?o(t):t),a+=Ce(l)}return a}_adjustParentBBoxes(e,t,i){for(let r=i;r>=0;r--)ye(t[r],e)}_condense(e){for(let t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():be(e[i],this.toBBox)}}}));function De(e,t){return et?1:0}var Me=ue(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=[],t=De){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,r=t[e];for(;e>0;){const o=e-1>>1,n=t[o];if(i(r,n)>=0)break;t[e]=n,e=o}t[e]=r}_down(e){const{data:t,compare:i}=this,r=this.length>>1,o=t[e];for(;e=0)break;t[e]=n,e=r}t[e]=o}}})),Le={exports:{}},Oe=function(e,t,i,r){var o=e[0],n=e[1],l=!1;void 0===i&&(i=0),void 0===r&&(r=t.length);for(var a=(r-i)/2,s=0,c=a-1;sn!=h>n&&o<(p-d)*(n-u)/(h-u)+d&&(l=!l)}return l},Re=function(e,t,i,r){var o=e[0],n=e[1],l=!1;void 0===i&&(i=0),void 0===r&&(r=t.length);for(var a=r-i,s=0,c=a-1;sn!=h>n&&o<(p-d)*(n-u)/(h-u)+d&&(l=!l)}return l};Le.exports=function(e,t,i,r){return t.length>0&&Array.isArray(t[0])?Re(e,t,i,r):Oe(e,t,i,r)},Le.exports.nested=Re,Le.exports.flat=Oe;var ze={exports:{}};!function(e){const t=134217729,i=33306690738754706e-32;function r(e,t,i,r,o){let n,l,a,s,c=t[0],d=r[0],u=0,p=0;d>c==d>-c?(n=c,c=t[++u]):(n=d,d=r[++p]);let h=0;if(uc==d>-c?(a=n-((l=c+n)-c),c=t[++u]):(a=n-((l=d+n)-d),d=r[++p]),n=l,0!==a&&(o[h++]=a);uc==d>-c?(a=n-((l=n+c)-(s=l-n))+(c-s),c=t[++u]):(a=n-((l=n+d)-(s=l-n))+(d-s),d=r[++p]),n=l,0!==a&&(o[h++]=a);for(;u0!=b>0)return _;const y=Math.abs(v+b);return Math.abs(_)>=n*y?_:-function(e,o,n,h,f,m,g){let v,b,_,y,x,w,k,C,T,E,S,A,P,I,D,M,L,O;const R=e-f,z=n-f,N=o-m,B=h-m;x=(D=(C=R-(k=(w=t*R)-(w-R)))*(E=B-(T=(w=t*B)-(w-B)))-((I=R*B)-k*T-C*T-k*E))-(S=D-(L=(C=N-(k=(w=t*N)-(w-N)))*(E=z-(T=(w=t*z)-(w-z)))-((M=N*z)-k*T-C*T-k*E))),s[0]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),s[1]=P-(S+x)+(x-M),x=(O=A+S)-A,s[2]=A-(O-x)+(S-x),s[3]=O;let j=function(e,t){let i=t[0];for(let r=1;r=U||-j>=U)return j;if(v=e-(R+(x=e-R))+(x-f),_=n-(z+(x=n-z))+(x-f),b=o-(N+(x=o-N))+(x-m),y=h-(B+(x=h-B))+(x-m),0===v&&0===b&&0===_&&0===y)return j;if(U=a*g+i*Math.abs(j),(j+=R*y+B*v-(N*_+z*b))>=U||-j>=U)return j;x=(D=(C=v-(k=(w=t*v)-(w-v)))*(E=B-(T=(w=t*B)-(w-B)))-((I=v*B)-k*T-C*T-k*E))-(S=D-(L=(C=b-(k=(w=t*b)-(w-b)))*(E=z-(T=(w=t*z)-(w-z)))-((M=b*z)-k*T-C*T-k*E))),p[0]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),p[1]=P-(S+x)+(x-M),x=(O=A+S)-A,p[2]=A-(O-x)+(S-x),p[3]=O;const F=r(4,s,4,p,c);x=(D=(C=R-(k=(w=t*R)-(w-R)))*(E=y-(T=(w=t*y)-(w-y)))-((I=R*y)-k*T-C*T-k*E))-(S=D-(L=(C=N-(k=(w=t*N)-(w-N)))*(E=_-(T=(w=t*_)-(w-_)))-((M=N*_)-k*T-C*T-k*E))),p[0]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),p[1]=P-(S+x)+(x-M),x=(O=A+S)-A,p[2]=A-(O-x)+(S-x),p[3]=O;const V=r(F,c,4,p,d);x=(D=(C=v-(k=(w=t*v)-(w-v)))*(E=y-(T=(w=t*y)-(w-y)))-((I=v*y)-k*T-C*T-k*E))-(S=D-(L=(C=b-(k=(w=t*b)-(w-b)))*(E=_-(T=(w=t*_)-(w-_)))-((M=b*_)-k*T-C*T-k*E))),p[0]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),p[1]=P-(S+x)+(x-M),x=(O=A+S)-A,p[2]=A-(O-x)+(S-x),p[3]=O;const W=r(V,d,4,p,u);return u[W-1]}(e,o,h,f,m,g,y)},e.orient2dfast=function(e,t,i,r,o,n){return(t-n)*(i-o)-(e-o)*(r-n)},Object.defineProperty(e,"__esModule",{value:!0})}(ze.exports);var Ne=Ie,Be=Me,je=Le.exports,Ue=ze.exports.orient2d;function Fe(e,t,i){t=Math.max(0,void 0===t?2:t),i=i||0;var r=function(e){for(var t=e[0],i=e[0],r=e[0],o=e[0],n=0;nr[0]&&(r=l),l[1]o[1]&&(o=l)}var a=[t,i,r,o],s=a.slice();for(n=0;n=2&&qe(t[t.length-2],t[t.length-1],e[i])<=0;)t.pop();t.push(e[i])}for(var r=[],o=e.length-1;o>=0;o--){for(;r.length>=2&&qe(r[r.length-2],r[r.length-1],e[o])<=0;)r.pop();r.push(e[o])}return r.pop(),t.pop(),t.concat(r)}(s)}(e),o=new Ne(16);o.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},o.compareMinX=function(e,t){return e[0]-t[0]},o.compareMinY=function(e,t){return e[1]-t[1]},o.load(e);for(var n,l=[],a=0;an||a.push({node:d,dist:u})}for(;a.length&&!a.peek().node.children;){var p=a.pop(),h=p.node,f=Ke(h,t,i),m=Ke(h,r,o);if(p.dist=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Ye(e,t,i){for(var r,o,n,l,a=Math.min(e[0],t[0]),s=Math.min(e[1],t[1]),c=Math.max(e[0],t[0]),d=Math.max(e[1],t[1]),u=i.search({minX:a,minY:s,maxX:c,maxY:d}),p=0;p0!=qe(r,o,l)>0&&qe(n,l,r)>0!=qe(n,l,o)>0)return!1;return!0}function qe(e,t,i){return Ue(e[0],e[1],t[0],t[1],i[0],i[1])}function Qe(e){var t=e.p,i=e.next.p;return e.minX=Math.min(t[0],i[0]),e.minY=Math.min(t[1],i[1]),e.maxX=Math.max(t[0],i[0]),e.maxY=Math.max(t[1],i[1]),e}function Ze(e,t){var i={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function Xe(e,t){var i=e[0]-t[0],r=e[1]-t[1];return i*i+r*r}function Ke(e,t,i){var r=t[0],o=t[1],n=i[0]-r,l=i[1]-o;if(0!==n||0!==l){var a=((e[0]-r)*n+(e[1]-o)*l)/(n*n+l*l);a>1?(r=i[0],o=i[1]):a>0&&(r+=n*a,o+=l*a)}return(n=e[0]-r)*n+(l=e[1]-o)*l}function Je(e,t,i,r,o,n,l,a){var s,c,d,u,p=i-e,h=r-t,f=l-o,m=a-n,g=e-o,v=t-n,b=p*p+h*h,_=p*f+h*m,y=f*f+m*m,x=p*g+h*v,w=f*g+m*v,k=b*y-_*_,C=k,T=k;0===k?(c=0,C=1,u=w,T=y):(u=b*w-_*x,(c=_*w-y*x)<0?(c=0,u=w,T=y):c>C&&(c=C,u=w+_,T=y)),u<0?(u=0,-x<0?c=0:-x>b?c=C:(c=-x,C=b)):u>T&&(u=T,-x+_<0?c=0:-x+_>b?c=C:(c=-x+_,C=b));var E=(1-(d=0===u?0:u/T))*o+d*l-((1-(s=0===c?0:c/C))*e+s*i),S=(1-d)*n+d*a-((1-s)*t+s*r);return E*E+S*S}function $e(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}Be.default&&(Be=Be.default),pe.exports=Fe,pe.exports.default=Fe;var et=pe.exports;function tt(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=le(e),o=se(t),n=o.type,l=t.bbox,a=o.coordinates;if(l&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,l))return!1;"Polygon"===n&&(a=[a]);for(var s=!1,c=0;ce[1]!=c>e[1]&&e[0]<(s-l)*(e[1]-a)/(c-a)+l&&(r=!r)}return r}function rt(e,t,i){void 0===i&&(i={});var r=le(e),o=le(t),n=ee(o[1]-r[1]),l=ee(o[0]-r[0]),a=ee(r[1]),s=ee(o[1]),c=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(a)*Math.cos(s);return function(e,t){void 0===t&&(t="kilometers");var i=q[t];if(!i)throw new Error(t+" units is invalid");return e*i}(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),i.units)}function ot(e,t,i,r){void 0===r&&(r={});var o=le(e),n=ee(o[0]),l=ee(o[1]),a=ee(i),s=function(e,t){void 0===t&&(t="kilometers");var i=q[t];if(!i)throw new Error(t+" units is invalid");return e/i}(t,r.units),c=Math.asin(Math.sin(l)*Math.cos(s)+Math.cos(l)*Math.sin(s)*Math.cos(a));return Z([$(n+Math.atan2(Math.sin(a)*Math.sin(s)*Math.cos(l),Math.cos(s)-Math.sin(l)*Math.sin(c))),$(c)],r.properties)}function nt(e,t,i){if(void 0===i&&(i={}),!0===i.final)return function(e,t){var i=nt(t,e);return i=(i+180)%360}(e,t);var r=le(e),o=le(t),n=ee(r[0]),l=ee(o[0]),a=ee(r[1]),s=ee(o[1]),c=Math.sin(l-n)*Math.cos(s),d=Math.cos(a)*Math.sin(s)-Math.sin(a)*Math.cos(s)*Math.cos(l-n);return $(Math.atan2(c,d))}function lt(e,t){return ot(e,rt(e,t)/2,nt(e,t))}function at(e,t){void 0===t&&(t={});var i=0,r=0,o=0;return ie(e,(function(e){i+=e[0],r+=e[1],o++}),!0),Z([i/o,r/o],t.properties)}function st(e,t){switch(void 0===t&&(t={}),function(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}(e)){case"Point":return Z(le(e),t.properties);case"Polygon":var i=[];ie(e,(function(e){i.push(e)}));var r,o,n,l,a,s,c,d,u=at(e,{properties:t.properties}),p=u.geometry.coordinates,h=0,f=0,m=0,g=i.map((function(e){return[e[0]-p[0],e[1]-p[1]]}));for(r=0;r3?X([r]):null}(e);return b?st(b,{properties:t.properties}):at(e,{properties:t.properties})}}function ct(e){if(!e)throw new Error("geojson is required");var t=[];return oe(e,(function(e){!function(e,t){var i=[],r=e.geometry;if(null!==r){switch(r.type){case"Polygon":i=ae(r);break;case"LineString":i=[ae(r)]}i.forEach((function(i){(function(e,t){var i=[];return e.reduce((function(e,r){var o,n,l,a,s,c,d=K([e,r],t);return d.bbox=(n=r,l=(o=e)[0],a=o[1],s=n[0],c=n[1],[ls?l:s,a>c?a:c]),i.push(d),r})),i})(i,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),J(t)}var dt={exports:{}};function ut(e,t,i,r,o){pt(e,t,i||0,r||e.length-1,o||ft)}function pt(e,t,i,r,o){for(;r>i;){if(r-i>600){var n=r-i+1,l=t-i+1,a=Math.log(n),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(n-s)/n)*(l-n/2<0?-1:1);pt(e,t,Math.max(i,Math.floor(t-l*s/n+c)),Math.min(r,Math.floor(t+(n-l)*s/n+c)),o)}var d=e[t],u=i,p=r;for(ht(e,i,t),o(e[r],d)>0&&ht(e,i,r);u0;)p--}0===o(e[i],d)?ht(e,i,p):ht(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function ht(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function ft(e,t){return et?1:0}function mt(e,t,i){if(!i)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function Et(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function St(e,t,i,r,o){const n=[t,i];for(;n.length;){if((i=n.pop())-(t=n.pop())<=r)continue;const l=t+Math.ceil((i-t)/r/2)*r;ut(e,l,t,i,o),n.push(t,l,l,i)}}var At=ue(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const i=[];if(!Tt(e,t))return i;const r=this.toBBox,o=[];for(;t;){for(let n=0;n=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(r,o,t)}_split(e,t){const i=e[t],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);const n=this._chooseSplitIndex(i,o,r),l=Et(i.children.splice(n,i.children.length-n));l.height=i.height,l.leaf=i.leaf,gt(i,this.toBBox),gt(l,this.toBBox),t?e[t-1].children.push(l):this._splitRoot(i,l)}_splitRoot(e,t){this.data=Et([e,t]),this.data.height=e.height+1,this.data.leaf=!1,gt(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let r,o=1/0,n=1/0;for(let l=t;l<=i-t;l++){const t=vt(e,0,l,this.toBBox),a=vt(e,l,i,this.toBBox),s=kt(t,a),c=xt(t)+xt(a);s=t;s--){const t=e.children[s];bt(l,e.leaf?o(t):t),a+=wt(l)}return a}_adjustParentBBoxes(e,t,i){for(let r=i;r>=0;r--)bt(t[r],e)}_condense(e){for(let t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():gt(e[i],this.toBBox)}}})),Pt={};!function(e){function t(e,t,i){void 0===i&&(i={});var r={type:"Feature"};return(0===i.id||i.id)&&(r.id=i.id),i.bbox&&(r.bbox=i.bbox),r.properties=t||{},r.geometry=e,r}function i(e,i,r){if(void 0===r&&(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(!p(e[0])||!p(e[1]))throw new Error("coordinates must contain numbers");return t({type:"Point",coordinates:e},i,r)}function r(e,i,r){void 0===r&&(r={});for(var o=0,n=e;o=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i},e.radiansToLength=c,e.lengthToRadians=d,e.lengthToDegrees=function(e,t){return u(d(e,t))},e.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},e.radiansToDegrees=u,e.degreesToRadians=function(e){return e%360*Math.PI/180},e.convertLength=function(e,t,i){if(void 0===t&&(t="kilometers"),void 0===i&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(d(e,t),i)},e.convertArea=function(t,i,r){if(void 0===i&&(i="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var o=e.areaFactors[i];if(!o)throw new Error("invalid original units");var n=e.areaFactors[r];if(!n)throw new Error("invalid final units");return t/o*n},e.isNumber=p,e.isObject=function(e){return!!e&&e.constructor===Object},e.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!p(e))throw new Error("bbox must only contain numbers")}))},e.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}}(Pt);var It={};Object.defineProperty(It,"__esModule",{value:!0});var Dt=Pt;function Mt(e,t,i){if(null!==e)for(var r,o,n,l,a,s,c,d,u=0,p=0,h=e.type,f="FeatureCollection"===h,m="Feature"===h,g=f?e.features.length:1,v=0;va||p>s||h>c)return l=n,a=i,s=p,c=h,void(o=0);var f=Dt.lineString([l,n],e.properties);if(!1===t(f,i,r,h,o))return!1;o++,l=n}))&&void 0}}}))}function Bt(e,t){if(!e)throw new Error("geojson is required");zt(e,(function(e,i,r){if(null!==e.geometry){var o=e.geometry.type,n=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,i,r,0,0))return!1;break;case"Polygon":for(var l=0;le[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2] line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var o=i[0][0],n=i[0][1],l=i[1][0],a=i[1][1],s=r[0][0],c=r[0][1],d=r[1][0],u=r[1][1],p=(u-c)*(l-o)-(d-s)*(a-n),h=(d-s)*(n-c)-(u-c)*(o-s),f=(l-o)*(n-c)-(a-n)*(o-s);if(0===p)return null;var m=h/p,g=f/p;return m>=0&&m<=1&&g>=0&&g<=1?Z([o+m*(l-o),n+m*(a-n)]):null}function Jt(e,t,i){void 0===i&&(i={});for(var r=le(e),o=ae(t),n=0;no)return!1}else if(0!==h)return!1;return r?"start"===r?Math.abs(u)>=Math.abs(p)?u>0?a0?s=Math.abs(p)?u>0?a<=n&&n0?s<=l&&l=Math.abs(p)?u>0?a0?s=Math.abs(p)?u>0?a<=n&&n<=c:c<=n&&n<=a:p>0?s<=l&&l<=d:d<=l&&l<=s}function ei(e,t){var i=se(e),r=se(t),o=i.type,n=r.type;switch(o){case"Point":switch(n){case"MultiPoint":return function(e,t){var i,r=!1;for(i=0;it[0])&&(!(e[2]t[1])&&!(e[3]1?function(e,t,i){return void 0===i&&(i={}),Q({type:"MultiLineString",coordinates:e},t,i)}(e,t):K(e[0],t)}function li(e,t){var i=!0;return oe(e,(function(e){oe(t,(function(t){if(!1===i)return!1;i=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return i=e.coordinates,r=t.coordinates,!(i[0]===r[0]&&i[1]===r[1]);case"LineString":return!ai(t,e);case"Polygon":return!tt(e,t)}break;case"LineString":switch(t.type){case"Point":return!ai(e,t);case"LineString":return!function(e,t){if(Xt(e,t).features.length>0)return!0;return!1}(e,t);case"Polygon":return!si(t,e)}break;case"Polygon":switch(t.type){case"Point":return!tt(t,e);case"LineString":return!si(e,t);case"Polygon":return!function(e,t){for(var i=0,r=e.coordinates[0];i0)return!0;return!1}(t,e)}}var i,r;return!1}(e.geometry,t.geometry)}))})),i}function ai(e,t){for(var i=0;i0}function ci(e,t,i){var r=i[0]-e[0],o=i[1]-e[1],n=t[0]-e[0],l=t[1]-e[1];return 0==r*l-o*n&&(Math.abs(n)>=Math.abs(l)?n>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:l>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1])}function di(e,t){var i=!1;return oe(e,(function(e){oe(t,(function(t){if(!0===i)return!0;i=!li(e.geometry,t.geometry)}))})),i}function ui(e,t,i){return void 0===i&&(i={}),function(e,t,i,r){void 0===r&&(r={});for(var o=[],n=e[0],l=e[1],a=e[2],s=e[3],c=t/rt([n,l],[a,l],r)*(a-n),d=i/rt([n,l],[n,s],r)*(s-l),u=a-n,p=s-l,h=Math.floor(u/c),f=Math.floor(p/d),m=(p-f*d)/2,g=n+(u-h*c)/2,v=0;v=e?r=t?2*Math.PI-o:Math.PI+o,o=180*o/Math.PI,o}getPitch(e,t){let i=Cesium.Transforms.eastNorthUpToFixedFrame(e);const r=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);let o=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(i,i),r,r);return Cesium.Cartesian3.normalize(o,o),Cesium.Math.PI_OVER_TWO-Cesium.Math.acosClamped(o.z)}updateViewShed(){this.clear(),this.setLightCamera(),this.addVisualPyramid(),this.createFrustum()}clear(){this.pyramid&&(this.viewer.entities.removeById(this.pyramid.id),this.pyramid=void 0),this.frustumPrimitive&&(this.viewer.scene.primitives.remove(this.frustumPrimitive),this.frustumPrimitive=void 0),this.debugModelMatrixPrimitive&&(this.viewer.scene.primitives.remove(this.debugModelMatrixPrimitive),this.debugModelMatrixPrimitive=void 0)}addVisualPyramid(){let e=this.ViewShedOptions,t=e.viewPosition,i=Number(e.visualRange),r=Cesium.Transforms.eastNorthUpToFixedFrame(t);this.debugModelMatrixPrimitive=this.viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({modelMatrix:r,length:5}));const o=e.horizontalViewAngle/2,n=e.verticalViewAngle/2,l=Cesium.Math.toDegrees(e.pitch),a=new Cesium.EllipsoidGraphics({radii:new Cesium.Cartesian3(i,i,i),minimumClock:Cesium.Math.toRadians(90-e.direction-o),maximumClock:Cesium.Math.toRadians(90-e.direction+o),minimumCone:Cesium.Math.toRadians(90-l-n),maximumCone:Cesium.Math.toRadians(90-l+n),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN.withAlpha(.5)}),s=new Cesium.Entity({position:t,ellipsoid:a});this.pyramid=this.viewer.entities.add(s)}setLightCamera(){this.lightCamera||(this.lightCamera=new Cesium.Camera(this.viewer.scene));let e=this.ViewShedOptions,t=Number(e.visualRange);this.lightCamera.position=e.viewPosition,this.lightCamera.frustum.near=.1,this.lightCamera.frustum.far=t;const i=Cesium.Math.toRadians(e.horizontalViewAngle),r=Cesium.Math.toRadians(e.verticalViewAngle);this.lightCamera.frustum.aspectRatio=t*Math.tan(i/2)*2/(t*Math.tan(r/2)*2),this.lightCamera.frustum.fov=i>r?i:r,this.lightCamera.setView({destination:e.viewPosition,orientation:{heading:Cesium.Math.toRadians(e.direction||0),pitch:e.pitch||0,roll:0}})}createFrustum(){const e=new Cesium.Cartesian3,t=new Cesium.Matrix3,i=new Cesium.Quaternion,r=this.lightCamera.directionWC,o=this.lightCamera.upWC;let n=this.lightCamera.rightWC;n=Cesium.Cartesian3.negate(n,e);let l=t;Cesium.Matrix3.setColumn(l,0,n,l),Cesium.Matrix3.setColumn(l,1,o,l),Cesium.Matrix3.setColumn(l,2,r,l);let a=Cesium.Quaternion.fromRotationMatrix(l,i),s=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:this.ViewShedOptions.viewPosition,orientation:a}),id:"视椎体轮廓线"+Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(0,1,0,1)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumPrimitive=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:s,appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1,closed:!0})}))}addViewershedPolygon(e){let t=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(e)),height:0,extrudedHeight:0,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,stRotation:0,ellipsoid:Cesium.Ellipsoid.WGS84,granularity:Cesium.Math.RADIANS_PER_DEGREE,perPositionHeight:!1,closeTop:!0,closeBottom:!0,arcType:Cesium.ArcType.GEODESIC}),i=new Cesium.GeometryInstance({geometry:t,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.viewershedPolygon=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.EllipsoidSurfaceAppearance({aboveGround:!0,material:new Cesium.Material({fabric:{type:"Image",uniforms:{image:this.returnImgae()}}})})}))}drawViewershed(e){const t=this.cartesian3ToDegree(this.ViewShedOptions.viewPosition),i=this.ViewShedOptions.visualRange,r=this.ViewShedOptions.direction;let o=this.computeBoundaryOptions(t,i,r);const n=o.bbox;let l=X([o.boundaryPoints]);const a=this.ViewShedOptions.visualRange/(1e3*e);let s=function(e,t,i){void 0===i&&(i={}),i.mask&&!i.units&&(i.units="kilometers");for(var r=[],o=e[0],n=e[1],l=e[2],a=e[3],s=t/rt([o,n],[l,n],i)*(l-o),c=t/rt([o,n],[o,a],i)*(a-n),d=l-o,u=a-n,p=Math.floor(d/s),h=(u-Math.floor(u/c)*c)/2,f=o+(d-p*s)/2;f<=l;){for(var m=n+h;m<=a;){var g=Z([f,m],i.properties);i.mask?ei(g,i.mask)&&r.push(g):r.push(g),m+=c}f+=s}return J(r)}(n,a,{mask:l});console.log(this.ViewShedOptions.visualRange,e,a);let c=this.createTargetPoints(s,a,t),d=Y.train(c.values,c.lngs,c.lats,"exponential",0,100),u=Y.grid([o.boundaryPoints],d,a/1e3);this.canvasEle.width=3840,this.canvasEle.height=2160,Y.plot(this.canvasEle,u,[n[0],n[2]],[n[1],n[3]],["#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080"]),this.addViewershedPolygon(o.positionArr)}computeBoundaryOptions(e,t,i){let r=6356725;const o=e[0],n=e[1],l=[o,n,o,n];let a=[],s=[];a.push(o,n),s.push([o,n]);let c=i+45>360?i-45-360:i-45,d=c+90;for(let u=c;u<=d;u++){let e=t*Math.sin(u*Math.PI/180),i=t*Math.cos(u*Math.PI/180),c=r+21412*(90-n)/90,d=o+e/(c*Math.cos(n*Math.PI/180))*180/Math.PI,p=n+i/c*180/Math.PI;a.push(d,p),s.push([d,p]),this.refreshBBox(l,d,p)}return s.push([o,n]),{positionArr:a,boundaryPoints:s,bbox:l}}refreshBBox(e,t,i){e[0]=te[2]?t:e[2],e[3]=i>e[3]?i:e[3]}createTargetPoints(e,t,i){let r=[this.frustumPrimitive,this.pyramid,this.debugModelMatrixPrimitive],o=[],n=[],l=[],a=this.getHeight(i[0],i[1],r);[].push({x:i[0],y:i[1],z:a});let s=this.ViewShedOptions.viewPosition;for(let c=0;ct?o.push(0):o.push(1),n.push(a),l.push(d)}}return{values:o,lngs:n,lats:l}}returnImgae(){return this.canvasEle.toDataURL("image/png")}}Object.assign(pi.prototype,{createViewshed:function(e){let t=this,i=t.viewer.scene;t.initHandler(),t.clearAll();let r=0,o="左键点击创建起点";t.handler=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas),t.handler.setInputAction((n=>{if(r++,1===r){o="左键点击创建终点";let e=i.pickPosition(n.position),r=t.cartesian3ToDegree(e);t.handler.setInputAction((function(n){P(o,n.endPosition,!0);let l=i.pickPosition(n.endPosition);if(Cesium.defined(l)){let i=t.cartesian3ToDegree(l),o=Cesium.Cartesian3.distance(l,e),n=t.getAngle(r[0],r[1],i[0],i[1]),a=t.getPitch(e,l);t.ViewShedOptions={viewPosition:e,endPosition:l,direction:n,pitch:a,horizontalViewAngle:90,verticalViewAngle:60,visibleAreaColor:Cesium.Color.GREEN,invisibleAreaColor:Cesium.Color.RED,visualRange:o},t.updateViewShed()}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}2===r&&(t.initHandler(),t.drawViewershed(e),P(o,n.endPosition,!1))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),t.handler.setInputAction((function(e){P(o,e.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)},clearAll:function(){this.clear(),this.viewershedPolygon&&(this.viewer.scene.primitives.remove(this.viewershedPolygon),this.viewershedPolygon=void 0)}});class hi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._stopTime=null}}Object.assign(hi.prototype,{startSunShine(e){e=e||{},Cesium.defined(e.startTime)||(e.startTime=(new Date).getTime()),Cesium.defined(e.stopTime)||(e.stopTime=(new Date).getTime()+1e3),Cesium.defined(e.speed)||(e.speed=1600),this._stopTime?(this._viewer.clock.shouldAnimate=!0,this._viewer.clock.currentTime=this._stopTime):(this._viewer.scene.globe.enableLighting=!0,this._viewer.shadows=!0,this._viewer.clock.startTime=Cesium.JulianDate.fromDate(new Date(e.startTime)),this._viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e.startTime)),this._viewer.clock.stopTime=Cesium.JulianDate.fromDate(new Date(e.stopTime)),console.log(this._viewer.clock.currentTime),this._viewer.clock.clockRange=Cesium.ClockRange.LOOP_STOP,this._viewer.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER,this._viewer.clock.multiplier=e.speed,this._viewer.clock.canAnimate=!0,this._viewer.clock.shouldAnimate=!0)},stopSunShine(){this._stopTime=this._viewer.clock.currentTime,console.log(this._viewer.clock.currentTime),this._viewer.clock.shouldAnimate=!1},removeSunShine(){this._stopTime&&(this._viewer.clock.shouldAnimate=!0,this._viewer.clock.currentTime=this._stopTime,console.log(this._viewer.clock.currentTime)),this._viewer.scene.globe.enableLighting=!1,this._viewer.shadows=!1,this._stopTime=null}}),Object.assign(hi.prototype,{start(e){document.getElementsByClassName("cesium-viewer-animationContainer").length>0&&(document.getElementsByClassName("cesium-viewer-animationContainer")[0].style.display="block"),document.getElementsByClassName("cesium-viewer-timelineContainer").length>0&&(document.getElementsByClassName("cesium-viewer-timelineContainer")[0].style.display="block"),this._viewer.shadows=!0,e=e||{},Cesium.defined(e.startTime)||(e.startTime=new Date((new Date).toLocaleDateString()).getTime(),console.log("当天凌晨0点",new Date((new Date).toLocaleDateString()))),Cesium.defined(e.stopTime)||(e.stopTime=new Date((new Date).toLocaleDateString()).getTime()+864e5-1,console.log("当天23点59分59秒",new Date(new Date((new Date).toLocaleDateString()).getTime()+144e5))),Cesium.defined(e.speed)||(e.speed=1600);let t=Cesium.JulianDate.fromDate(new Date(e.startTime)),i=Cesium.JulianDate.fromDate(new Date(e.stopTime));viewer.timeline.zoomTo(t,i);let r=viewer.clock;r.shouldAnimate=!1,r.startTime=t,r.stopTime=i,r.currentTime=t,r.clockRange=Cesium.ClockRange.UNBOUNDED,r.multiplier=e.speed},remove(){document.getElementsByClassName("cesium-viewer-animationContainer").length>0&&(document.getElementsByClassName("cesium-viewer-animationContainer")[0].style.display="none"),document.getElementsByClassName("cesium-viewer-timelineContainer").length>0&&(document.getElementsByClassName("cesium-viewer-timelineContainer")[0].style.display="none"),this._viewer.shadows=!1,this._viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date((new Date).getTime())),this._viewer.clock.shouldAnimate=!1}});class fi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._profileEntities=[]}_interPoints(e,t){let i=[],r=[];for(let l=0;lo&&(o=i);let n=parseInt(o/2);n>1e3&&(n=1e3),n<2&&(n=2);for(let l=0;l{let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));this.removeProfileAnalysis(),t.clampToGround=!0,console.log(o);let n=this._interPoints(o,[t]);console.log(n),i(n)}))},removeProfileAnalysis(){let e=this;e._profileEntities&&e._profileEntities.length>0&&e._profileEntities.forEach((t=>{e._viewer.entities.remove(t)})),e._profileEntities=[]}});class mi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this.delEntitys=[],this.maxHeigh=-1e6}_VolumeAnalysis(e){let t=this,i=0,r=0,o=0,n=0;const l=e.geom.indices,a=e.geom.attributes.position.values;for(let c=0;cthis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,0),height:o}}}Object.assign(mi.prototype,{createPolygonGeo(e,t){return new Promise(((i,r)=>{let o=this;(t=t||{}).precision=Cesium.defaultValue(t.precision,256),t.height=Cesium.defaultValue(t.height,10),o.remove();let n=[];for(let t=0;t{let i=e[2]||0;t=i,iCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),r=this;r.data=i,r.baseHeight=t.baseHeight,r.targetY=t.baseHeight+t.height;let o=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(r.data),height:r.baseHeight,extrudedHeight:r.baseHeight+3e3}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(t.color).withAlpha(t.alpha)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});r.limitHeightPrimitive=r._viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:o,releaseGeometryInstances:!1,classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),r._setPolygon(t)},removePrimitive(){this.HiePolygon&&this._viewer.entities.remove(this.HiePolygon),this.limitHeightPrimitive&&this._viewer.scene.primitives.remove(this.limitHeightPrimitive)},changeHeight(e){if(!this.limitHeightPrimitive)return;this.targetY=this.baseHeight+e;let t=Cesium.Cartographic.fromCartesian(this.limitHeightPrimitive._primitive._boundingSpheres[0].center),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight),r=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight+e),o=Cesium.Cartesian3.subtract(r,i,new Cesium.Cartesian3);this.limitHeightPrimitive._primitive.modelMatrix=Cesium.Matrix4.fromTranslation(o)}});class vi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._camera=this._viewer.camera,this._scene=this._viewer.scene,this.targetY=0,this._mouseHandler()}_mouseHandler(){let e,t=this,i=t._viewer,r=t._scene;new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(t){let i=r.pick(t.position);Cesium.defined(i)&&Cesium.defined(i.id)&&Cesium.defined(i.id.plane)&&(e=i.id.plane,e.material=Cesium.Color.RED.withAlpha(.05),e.outlineColor=Cesium.Color.RED,r.screenSpaceCameraController.enableInputs=!1)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(){Cesium.defined(e)&&(e.material=Cesium.Color.RED.withAlpha(.1),e.outlineColor=Cesium.Color.RED,e=void 0),r.screenSpaceCameraController.enableInputs=!0}),Cesium.ScreenSpaceEventType.LEFT_UP),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(i){if(Cesium.defined(e)){let e=i.startPosition.y-i.endPosition.y;t.targetY+=e}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}_createPlaneUpdateFunction(e){let t=this;return function(){return e.distance=t.targetY,e}}_createPlane(e,t,i){let r=this._getOriginCoordinateSystemPoint(e,i),o=this._getOriginCoordinateSystemPoint(t,i),n=new Cesium.Cartesian3(0,0,10),l=Cesium.Cartesian3.subtract(o,r,new Cesium.Cartesian3),a=Cesium.Cartesian3.cross(l,n,new Cesium.Cartesian3);a=Cesium.Cartesian3.normalize(a,a);let s=Cesium.Plane.fromPointNormal(r,a);return Cesium.ClippingPlane.fromPlane(s)}_getOriginCoordinateSystemPoint(e,t){let i=Cesium.Cartesian3.fromDegrees(e[0],e[1]);return Cesium.Matrix4.multiplyByPoint(t,i,new Cesium.Cartesian3(0,0,0))}_getInverseTransform(e){let t;const i=e.root.transform;return t=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform),Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}_isDirRes(e,t){var i=[];e.forEach((e=>{i.push([e.lng,e.lat])}));let r=function(e){for(var t,i,r=ae(e),o=0,n=1;n0}(K(i));var o=[];if(t)if(r)for(var n=0,l=e.length-1;l>=0;l--)o[n]=e[l],n++;else o=e;else if(r)o=e;else for(n=0,l=e.length-1;l>=0;l--)o[n]=e[l],n++;return o}}Object.assign(vi.prototype,{activate(e){let t=this,i=t._viewer,r=t._getInverseTransform(e);[].push(t._createPlane([121.55814450142213,37.39658788787028],[121.65814450142213,37.49658788787028],r));let o=new Cesium.ClippingPlaneCollection({planes:[new Cesium.ClippingPlane(new Cesium.Cartesian3(0,1,0),-10)],edgeWidth:1});return t.tileset=e,e.clippingPlanes=o,e.debugShowBoundingVolume=!1,e.readyPromise.then((function(){let r=e.boundingSphere,n=r.radius;if(i.zoomTo(e,new Cesium.HeadingPitchRange(.5,-.2,n/5)),!Cesium.Matrix4.equals(e.root.transform,Cesium.Matrix4.IDENTITY)){const t=Cesium.Matrix4.getTranslation(e.root.transform,new Cesium.Cartesian3),i=Cesium.Cartographic.fromCartesian(t),r=Cesium.Cartographic.fromCartesian(e.boundingSphere.center).height-i.height;o.modelMatrix=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0,0,r))}for(let e=0;eCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let i=this.viewer;this.clear();let r=[],o=Cesium.Cartesian3.subtract(e[0],e[1],new Cesium.Cartesian3).x>0;this.excavateMinHeight=999999999;for(let n=0;n{let i=[],r=e.reduce((function(e,t,r,o){var n=10*r,l=n+10,a=o.slice(n,l);return 0!=a.length&&(i[r]=a),i}),[]);t._calculateSlope(r),t._openTip()}))}_createPolygonInsrance(e,t){let i=[];for(let o=1;o0?[Cesium.Cartographic.toCartesian(n),Cesium.Cartographic.toCartesian(l)]:[Cesium.Cartographic.toCartesian(l),Cesium.Cartographic.toCartesian(n)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:a,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}_calculateSlope(e){let t=this,i=[],r=[];for(let l=0;la&&(a=t,s=e)}let c=new Cesium.Cartographic(n.longitude,n.latitude,0),d=new Cesium.Cartographic(o[s].longitude,o[s].latitude,0),u=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(c),Cesium.Cartographic.toCartesian(d)),p=Math.abs(a/u),h=t._calculateSlopeColor(p,.4);const f=t._createPolygonInsrance(o,h);r.push(f);let m=s>4?o[s-4]:o[s+4],g=o[s];const v=t._createArrowInstance(g,n,m,a,p);i.push(v)}const o=t._viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:r,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),n=t._viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));t.result.push(n,o)}_calculateSlopeColor(e,t){return e<.00872686779075879?"rgba(85,182,43,"+t+")":e<.03492076949174773?"rgba(135,211,43,"+t+")":e<.08748866352592401?"rgba(204,244,44,"+t+")":e<.2679491924311227?"rgba(245,233,44,"+t+")":e<.7002075382097097?"rgba(255,138,43,"+t+")":e<1.4281480067421144?"rgba(255,84,43,"+t+")":"rgba(255,32,43,"+t+")"}}Object.assign(xi.prototype,{createNew4Distance(e,t,i){let r=this;(i=i||{}).distance=i.distance||.1;let o=200*i.distance>35?35:200*i.distance;r.arrowWidth=o<15?15:o;let n=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));r.clearAll();let l=k.Cartesian3ListToWGS84(n),a=[],s=1e4,c=1e4,d=-1e4,u=-1e3;for(let f=0;fd?t:d,u=i>u?i:u}a.push(a[0]);let p=[s,c,d,u];X([a]);let h=ui(p,i.distance,{});r._createEllipse(h)},createNew4Num(e,t,i){let r=this;(i=i||{}).num=Cesium.defaultValue(i.num,10);let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));r.clearAll();let n=k.Cartesian3ListToWGS84(o),l=[],a=1e4,s=1e4,c=-1e4,d=-1e3;for(let v=0;vc?t:c,d=i>d?i:d}l.push(l[0]);let u=[a,s,c,d],p=c-a,h=d-s;h=h>p?h:p;const f=h/i.num;let m=2e3*f>35?35:2e3*f;r.arrowWidth=m<15?15:m,X([l]);let g=ui(u,f,{units:"degrees"});r._createEllipse(g)},clearAll(){this.result.forEach((e=>{this._viewer.scene.primitives.remove(e)})),this.result=[],this.handler&&(this.handler.destroy(),this.handler=void 0)}});let wi={TerrainExcavation:yi,SlopeAspect:xi};class ki{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}_initRain(){this.rainStage=new Cesium.PostProcessStage({name:"jt_rain",fragmentShader:this._rain(),uniforms:{tiltAngle:()=>this.tiltAngle,rainSize:()=>this.rainSize,rainSpeed:()=>this.rainSpeed}}),this._viewer.scene.postProcessStages.add(this.rainStage)}_initSnow(){this.snowStage=new Cesium.PostProcessStage({name:"jt_snow",fragmentShader:this._snow(),uniforms:{snowSize:()=>this.snowSize,snowSpeed:()=>this.snowSpeed}}),this._viewer.scene.postProcessStages.add(this.snowStage)}_initFog(){this.fogStage=new Cesium.PostProcessStage({name:"jt_fog",fragmentShader:this._fog(),uniforms:{visibility:()=>this.visibility,fogColor:()=>this.color}}),this._viewer.scene.postProcessStages.add(this.fogStage)}_rain(){return"uniform sampler2D colorTexture;\n\t varying vec2 v_textureCoordinates;\n\t uniform float tiltAngle;\n\t uniform float rainSize;\n\t uniform float rainSpeed;\n\t float hash(float x) {\n\t return fract(sin(x * 133.3) * 13.13);\n\t }\n\t void main(void) {\n\t float time = czm_frameNumber / rainSpeed;\n\t vec2 resolution = czm_viewport.zw;\n\t vec2 uv = (gl_FragCoord.xy * 2. - resolution.xy) / min(resolution.x, resolution.y);\n\t vec3 c = vec3(.6, .7, .8);\n\t float a = tiltAngle;\n\t float si = sin(a), co = cos(a);\n\t uv *= mat2(co, -si, si, co);\n\t uv *= length(uv + vec2(0, 4.9)) * rainSize + 1.;\n\t float v = 1. - sin(hash(floor(uv.x * 100.)) * 2.);\n\t float b = clamp(abs(sin(20. * time * v + uv.y * (5. / (2. + v)))) - .95, 0., 1.) * 20.;\n\t c *= v * b;\n\t gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c, 1), .5);\n\t }\n\t "}_snow(){return"uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSpeed;\n uniform float snowSize;\n float snow(vec2 uv,float scale)\n {\n float time=czm_frameNumber/snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution=czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c=0.;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor=mix(texture2D(colorTexture,v_textureCoordinates),vec4(finalColor,1),.5);\n }\n "}_fog(){return"uniform sampler2D colorTexture;\n\t uniform sampler2D depthTexture;\n\t uniform float visibility;\n\t uniform vec4 fogColor;\n\t varying vec2 v_textureCoordinates; \n\t void main(void) \n\t { \n\t vec4 origcolor = texture2D(colorTexture, v_textureCoordinates); \n\t float depth = czm_readDepth(depthTexture, v_textureCoordinates); \n\t vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates); \n\t float f = visibility * (depthcolor.r - 0.3) / 0.2; \n\t if (f < 0.0) f = 0.0; \n\t else if (f > 1.0) f = 1.0; \n\t gl_FragColor = mix(origcolor, fogColor, f); \n\t }\n"}_removeSnow(){this._viewer&&this.snowStage&&(this._viewer.scene.postProcessStages.remove(this.snowStage),delete this.snowSize,delete this.snowSpeed)}_removeRain(){this._viewer&&this.rainStage&&(this._viewer.scene.postProcessStages.remove(this.rainStage),delete this.tiltAngle,delete this.rainSize,delete this.rainSpeed)}_removeFog(){this._viewer&&this.fogStage&&(this._viewer.scene.postProcessStages.remove(this.fogStage),delete this.visibility,delete this.color)}}Object.assign(ki.prototype,{addRainEffect(e){e=e||{},this.tiltAngle=Cesium.defaultValue(e.tiltAngle,-.6),this.rainSize=Cesium.defaultValue(e.rainSize,.3),this.rainSpeed=Cesium.defaultValue(e.rainSpeed,60),this._initRain()},addSnowEffect(e){e=e||{},this.snowSize=Cesium.defaultValue(e.snowSize,.02),this.snowSpeed=Cesium.defaultValue(e.snowSpeed,60),this._initSnow()},addFogEffect(e){e=e||{},this.visibility=Cesium.defaultValue(e.visibility,.1),this.color=Cesium.defaultValue(e.color,new Cesium.Color(.8,.8,.8,.5)),this._show=Cesium.defaultValue(e.show,!0),this._initFog()},removeEffect(){this.snowStage&&this._removeSnow(),this.rainStage&&this._removeRain(),this.fogStage&&this._removeFog()}});const Ci=Cesium.BoxGeometry,Ti=Cesium.Cartesian3,Ei=Cesium.defaultValue,Si=Cesium.defined,Ai=Cesium.destroyObject,Pi=Cesium.DeveloperError,Ii=Cesium.GeometryPipeline,Di=Cesium.Matrix3,Mi=Cesium.Matrix4,Li=Cesium.Transforms,Oi=Cesium.VertexFormat,Ri=Cesium.BufferUsage,zi=Cesium.CubeMap,Ni=Cesium.DrawCommand,Bi=Cesium.loadCubeMap,ji=Cesium.RenderState,Ui=Cesium.VertexArray,Fi=Cesium.BlendingState,Vi=Cesium.SceneMode,Wi=Cesium.ShaderProgram,Hi=Cesium.ShaderSource;Cesium.defined(Cesium.Matrix4.getRotation)||(Cesium.Matrix4.getRotation=Cesium.Matrix4.getMatrix3);class Gi{constructor(e){this.sources=e.sources,this._sources=void 0,this.show=Ei(e.show,!0),this._command=new Ni({modelMatrix:Mi.clone(Mi.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}}const Yi=new Di;Gi.prototype.update=function(e,t){const i=this;if(!this.show)return;if(e.mode!==Vi.SCENE3D&&e.mode!==Vi.MORPHING)return;if(!e.passes.render)return;const r=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!(Si(e.positiveX)&&Si(e.negativeX)&&Si(e.positiveY)&&Si(e.negativeY)&&Si(e.positiveZ)&&Si(e.negativeZ)))throw new Pi("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(typeof e.positiveX!=typeof e.negativeX||typeof e.positiveX!=typeof e.positiveY||typeof e.positiveX!=typeof e.negativeY||typeof e.positiveX!=typeof e.positiveZ||typeof e.positiveX!=typeof e.negativeZ)throw new Pi("this.sources properties must all be the same type.");"string"==typeof e.positiveX?Bi(r,this._sources).then((function(e){i._cubeMap=i._cubeMap&&i._cubeMap.destroy(),i._cubeMap=e})):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new zi({context:r,source:e}))}const o=this._command;if(o.modelMatrix=Li.eastNorthUpToFixedFrame(e.camera._positionWC),!Si(o.vertexArray)){o.uniformMap={u_cubeMap:function(){return i._cubeMap},u_rotateMatrix:function(){return Mi.getRotation(o.modelMatrix,Yi)}};const e=Ci.createGeometry(Ci.fromDimensions({dimensions:new Ti(2,2,2),vertexFormat:Oi.POSITION_ONLY})),t=this._attributeLocations=Ii.createAttributeLocations(e);o.vertexArray=Ui.fromGeometry({context:r,geometry:e,attributeLocations:t,bufferUsage:Ri._DRAW}),o.renderState=ji.fromCache({blending:Fi.ALPHA_BLEND})}if(!Si(o.shaderProgram)||this._useHdr!==t){const e=new Hi({defines:[t?"HDR":""],sources:["uniform samplerCube u_cubeMap;\n varying vec3 v_texCoord;\n void main()\n {\n vec4 color = textureCube(u_cubeMap, normalize(v_texCoord));\n gl_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n }\n "]});o.shaderProgram=Wi.fromCache({context:r,vertexShaderSource:"attribute vec3 position;\n varying vec3 v_texCoord;\n uniform mat3 u_rotateMatrix;\n void main()\n {\n vec3 p = czm_viewRotation * u_rotateMatrix * (czm_temeToPseudoFixed * (czm_entireFrustum.y * position));\n gl_Position = czm_projection * vec4(p, 1.0);\n v_texCoord = position.xyz;\n }\n ",fragmentShaderSource:e,attributeLocations:this._attributeLocations}),this._useHdr=t}return Si(this._cubeMap)?o:void 0},Gi.prototype.isDestroyed=function(){return!1},Gi.prototype.destroy=function(){const e=this._command;return e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram=e.shaderProgram&&e.shaderProgram.destroy(),this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),Ai(this)};class qi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._farSkyBox=e.scene.skyBox}}Object.assign(qi.prototype,{setGroundSkyBox(e){if((e=e||{}).height=e.height||2e5,e.type=e.type||"蓝天",e.sources){if(!(Cesium.defined(e.sources.positiveX)&&Cesium.defined(e.sources.negativeX)&&Cesium.defined(e.sources.positiveY)&&Cesium.defined(e.sources.negativeY)&&Cesium.defined(e.sources.positiveZ)&&Cesium.defined(e.sources.negativeZ)))throw new Cesium.DeveloperError("options.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.")}else switch(e.type){case"晚霞":e.sources={positiveX:"/jt3dSDK/imgs/skybox/01/px.png",negativeX:"/jt3dSDK/imgs/skybox/01/nx.png",positiveY:"/jt3dSDK/imgs/skybox/01/py.png",negativeY:"/jt3dSDK/imgs/skybox/01/ny.png",positiveZ:"/jt3dSDK/imgs/skybox/01/pz.png",negativeZ:"/jt3dSDK/imgs/skybox/01/nz.png"};break;case"阴天":e.sources={positiveX:"/jt3dSDK/imgs/skybox/02/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/02/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/02/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/02/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/02/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/02/nz.jpg"};break;case"蓝天":e.sources={positiveX:"/jt3dSDK/imgs/skybox/03/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/03/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/03/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/03/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/03/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/03/nz.jpg"};break;case"紫色星空":e.sources={positiveX:"/jt3dSDK/imgs/skybox/04/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/04/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/04/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/04/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/04/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/04/nz.jpg"};break;case"蓝色星空":e.sources={positiveX:"/jt3dSDK/imgs/skybox/05/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/05/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/05/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/05/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/05/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/05/nz.jpg"}}let t=this,i=new Gi({sources:e.sources,show:!0});t._viewer.scene.postRender.addEventListener((()=>{var r=t._viewer.camera.position;Cesium.Cartographic.fromCartesian(r).heightCesium.Cartesian3.fromDegrees(e.lng,e.lat,e.height))),r=[];for(let e=0;e{let e=new Cesium.SampledPositionProperty;for(let r=0;r{let r=this;r.clearFlyPaths();let o=r._viewer.camera.position;var n={orientation:{heading:r._viewer.camera.heading,pitch:r._viewer.camera.pitch,roll:r._viewer.camera.roll},position:o,clampToGround:!0,geometry:{type:"LineString",coordinates:e}};r._draw3DObj=n,t(!0)}))},clearFlyPaths(){this._draw3DObj=null,this._viewer.trackedEntity=void 0,this._viewer.entities.remove(this.entityFly)},startFly(e,t){this._draw3DObj?this._startFly(this._draw3DObj,e):t&&t("漫游路线不存在")},pauseFly(){var e=this._viewer.clockViewModel;e.shouldAnimate?e.shouldAnimate=!1:this._viewer.clockViewModel.canAnimate&&(e.shouldAnimate=!0)},forwardFly(){var e=this._viewer.clockViewModel,t=e.multiplier;t<0&&(e.multiplier=-t),e.shouldAnimate=!0},backwardsFly(){var e=this._viewer.clockViewModel,t=e.multiplier;t>0&&(e.multiplier=-t),e.shouldAnimate=!0},outFly(){var e=Cesium.JulianDate.fromDate(new Date);this._viewer.clock.startTime=e.clone();var t=Cesium.JulianDate.addSeconds(e,3e8,new Cesium.JulianDate);this._viewer.clock.stopTime=t.clone(),this.clearFlyPaths()}});class er{constructor(e,t,i){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!t)throw new Cesium.DeveloperError("no positions Array!");this.viewer=e,this.entity=void 0,(i=i||{}).time=Cesium.defaultValue(i.time,360),i.speed=Cesium.defaultValue(i.speed,10),i.isPathShow=Cesium.defaultValue(i.isPathShow,!0),i.height=Cesium.defaultValue(i.height,5),i.role=Cesium.defaultValue(i.role,1),i.followedX=Cesium.defaultValue(i.followedX,50),i.followedZ=Cesium.defaultValue(i.followedZ,10),this.time=i.time,this.speed=i.speed,this.isPathShow=i.isPathShow,this.height=i.height,this.role=i.role,this.followedX=i.followedX,this.followedZ=i.followedZ,this.model=i.model,this.billboard=i.billboard,this.point=i.point,this.label=i.label,this.property=this.ComputeRoamingLineProperty(t,this.time)}ComputeRoamingLineProperty(e,t){let i=[];i=e[0]instanceof Cesium.Cartesian3?e:e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let r=[];for(let u=0;u{let t=new Cesium.SampledPositionProperty;for(let r=0;r0&&(this.viewer.clock.multiplier=-e),this.viewer.clock.shouldAnimate=!0}ChangeRoamingSpeed(e){this.viewer.clock.multiplier=e}EndRoaming(){void 0!==this.entity&&this.viewer.entities.remove(this.entity),this.viewer.trackedEntity=void 0,this.viewer.clock.shouldAnimate=!1;let e=this.viewer.clock.onTick.numberOfListeners;for(let t=0;t{let o;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||m();let n=t.label||{};n.text=Cesium.defaultValue(n.text,"金田CIM三维基础平台"),n.font=Cesium.defaultValue(n.font,"24px Helvetica"),n.fillColor instanceof Array?n.fillColor=new Cesium.Color(n.fillColor[0]/255,n.fillColor[1]/255,n.fillColor[2]/255,n.fillColor[3]):"string"==typeof n.fillColor?n.fillColor=new Cesium.Color.fromCssColorString(n.fillColor):n.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),n.outlineColor instanceof Array?n.outlineColor=new Cesium.Color(n.outlineColor[0]/255,n.outlineColor[1]/255,n.outlineColor[2]/255,n.outlineColor[3]):"string"==typeof n.outlineColor?n.outlineColor=new Cesium.Color.fromCssColorString(n.outlineColor):n.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),n.outlineWidth=Cesium.defaultValue(n.outlineWidth,1),n.showBackground=Cesium.defaultValue(n.showBackground,!1),n.backgroundColor instanceof Array?n.backgroundColor=new Cesium.Color(n.backgroundColor[0]/255,n.backgroundColor[1]/255,n.backgroundColor[2]/255,n.backgroundColor[3]):"string"==typeof n.backgroundColor?n.backgroundColor=new Cesium.Color.fromCssColorString(n.backgroundColor):n.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),n.backgroundPadding&&(n.backgroundPadding=new Cesium.Cartesian2(n.backgroundPadding,n.backgroundPadding));let l=new Cesium.Entity({id:t.id,position:o,label:{text:n.text,font:n.font,fillColor:n.fillColor,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:n.showBackground,backgroundColor:n.backgroundColor,backgroundPadding:n.backgroundPadding,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}});n.pixelOffset&&(n.pixelOffset.x=Cesium.defaultValue(n.pixelOffset.x,0),n.pixelOffset.y=Cesium.defaultValue(n.pixelOffset.y,0),l.label.pixelOffset=new Cesium.Cartesian2(n.pixelOffset.x,n.pixelOffset.y)),n.scaleByDistance&&(n.scaleByDistance.near=Cesium.defaultValue(n.scaleByDistance.near,0),n.scaleByDistance.nearValue=Cesium.defaultValue(n.scaleByDistance.nearValue,0),n.scaleByDistance.far=Cesium.defaultValue(n.scaleByDistance.far,1),n.scaleByDistance.farValue=Cesium.defaultValue(n.scaleByDistance.farValue,0),l.label.scaleByDistance=new Cesium.NearFarScalar(n.scaleByDistance.near,n.scaleByDistance.nearValue,n.scaleByDistance.far,n.scaleByDistance.farValue)),this._viewer.entities.add(l),i(l)}))},addPoint(e,t){return new Promise(((i,r)=>{let o;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||m();let n=t.point||{};n.pixelSize=Cesium.defaultValue(n.pixelSize,10),n.color instanceof Array?n.color=new Cesium.Color(n.color[0]/255,n.color[1]/255,n.color[2]/255,n.color[3]):"string"==typeof n.color?n.color=new Cesium.Color.fromCssColorString(n.color):n.color=new Cesium.Color.fromCssColorString("#FFF"),n.outlineColor instanceof Array?n.outlineColor=new Cesium.Color(n.outlineColor[0]/255,n.outlineColor[1]/255,n.outlineColor[2]/255,n.outlineColor[3]):"string"==typeof n.outlineColor?n.outlineColor=new Cesium.Color.fromCssColorString(n.outlineColor):n.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),n.outlineWidth=Cesium.defaultValue(n.outlineWidth,1);let l=new Cesium.Entity({id:t.id,position:o,point:{pixelSize:n.pixelSize,color:n.color,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor instanceof Array?e.fillColor=new Cesium.Color(e.fillColor[0]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):"string"==typeof e.fillColor?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor):e.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):"string"==typeof e.outlineColor?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor):e.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor instanceof Array?e.backgroundColor=new Cesium.Color(e.backgroundColor[0]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):"string"==typeof e.backgroundColor?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),e.backgroundPadding&&(e.backgroundPadding=new Cesium.Cartesian2(e.backgroundPadding,e.backgroundPadding)),l.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY},e.scaleByDistance&&(e.scaleByDistance.near=Cesium.defaultValue(e.scaleByDistance.near,0),e.scaleByDistance.nearValue=Cesium.defaultValue(e.scaleByDistance.nearValue,0),e.scaleByDistance.far=Cesium.defaultValue(e.scaleByDistance.far,1),e.scaleByDistance.farValue=Cesium.defaultValue(e.scaleByDistance.farValue,0),l.label.scaleByDistance=new Cesium.NearFarScalar(e.scaleByDistance.near,e.scaleByDistance.nearValue,e.scaleByDistance.far,e.scaleByDistance.farValue))}this._viewer.entities.add(l),i(l)}))},addBillboard(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");let o;o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||m();let n=t.billboard||{};n.image=n.imgUrl||"/jt3dSDK/imgs/point/point3.png",n.scale=Cesium.defaultValue(n.scale,1),n.pixelOffset=Cesium.defaultValue(n.pixelOffset,0);let l=new Cesium.Entity({id:t.id,name:"add billboard",position:o,billboard:{image:n.image,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:n.scale,pixelOffset:new Cesium.Cartesian2(0,n.pixelOffset),heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});if(n.scaleByDistance&&(n.scaleByDistance.near=Cesium.defaultValue(n.scaleByDistance.near,0),n.scaleByDistance.nearValue=Cesium.defaultValue(n.scaleByDistance.nearValue,0),n.scaleByDistance.far=Cesium.defaultValue(n.scaleByDistance.far,1),n.scaleByDistance.farValue=Cesium.defaultValue(n.scaleByDistance.farValue,0),l.billboard.scaleByDistance=new Cesium.NearFarScalar(n.scaleByDistance.near,n.scaleByDistance.nearValue,n.scaleByDistance.far,n.scaleByDistance.farValue)),t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor instanceof Array?e.fillColor=new Cesium.Color(e.fillColor[0]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):"string"==typeof e.fillColor?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor):e.fillColor=new Cesium.Color.fromCssColorString("#ff0000"),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):"string"==typeof e.outlineColor?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor):e.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor instanceof Array?e.backgroundColor=new Cesium.Color(e.backgroundColor[0]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):"string"==typeof e.backgroundColor?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.backgroundPadding&&(e.backgroundPadding=new Cesium.Cartesian2(e.backgroundPadding,e.backgroundPadding)),l.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:e.backgroundPadding,disableDepthTestDistance:Number.POSITIVE_INFINITY},e.pixelOffset&&(e.pixelOffset.x=Cesium.defaultValue(e.pixelOffset.x,0),e.pixelOffset.y=Cesium.defaultValue(e.pixelOffset.y,0),l.label.pixelOffset=new Cesium.Cartesian2(e.pixelOffset.x,e.pixelOffset.y)),e.scaleByDistance&&(e.scaleByDistance.near=Cesium.defaultValue(e.scaleByDistance.near,0),e.scaleByDistance.nearValue=Cesium.defaultValue(e.scaleByDistance.nearValue,0),e.scaleByDistance.far=Cesium.defaultValue(e.scaleByDistance.far,1),e.scaleByDistance.farValue=Cesium.defaultValue(e.scaleByDistance.farValue,0),l.label.scaleByDistance=new Cesium.NearFarScalar(e.scaleByDistance.near,e.scaleByDistance.nearValue,e.scaleByDistance.far,e.scaleByDistance.farValue))}this._viewer.entities.add(l),i(l)}))},addModel:function(e,t){let i=this;return this._viewer,new Promise(((r,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");let n;n=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||m();let l=t.model||{};l.alpha=Cesium.defaultValue(l.alpha,1),l.heading=Cesium.defaultValue(l.heading,0),l.pitch=Cesium.defaultValue(l.pitch,0),l.roll=Cesium.defaultValue(l.roll,0);var a=Cesium.Math.toRadians(l.heading),s=l.pitch,c=l.roll;new Cesium.HeadingPitchRoll(a,s,c);let d=new Cesium.Entity({id:t.id,position:n,model:{uri:l.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(l.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});l.minimumPixelSize&&(d.model.minimumPixelSize=l.minimumPixelSize),l.maximumScale&&(d.model.maximumScale=l.maximumScale),l.silhouetteColor&&(l.silhouetteColor instanceof Array?d.model.silhouetteColor=new Cesium.Color(l.silhouetteColor[0]/255,l.silhouetteColor[1]/255,l.silhouetteColor[2]/255,l.silhouetteColor[3]):"string"==typeof l.silhouetteColor&&(d.model.silhouetteColor=new Cesium.Color.fromCssColorString(l.silhouetteColor))),l.silhouetteSize=Cesium.defaultValue(l.silhouetteSize,1),i._viewer.entities.add(d),r(d)}))},generatePoint(e,t){return new Promise(((i,r)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).id=t.id||m();let n=t.point||{};n.pixelSize=Cesium.defaultValue(n.pixelSize,10),n.color instanceof Array?n.color=new Cesium.Color(n.color[0]/255,n.color[1]/255,n.color[2]/255,n.color[3]):"string"==typeof n.color?n.color=new Cesium.Color.fromCssColorString(n.color):n.color=new Cesium.Color.fromCssColorString("#FFF"),n.outlineColor instanceof Array?n.outlineColor=new Cesium.Color(n.outlineColor[0]/255,n.outlineColor[1]/255,n.outlineColor[2]/255,n.outlineColor[3]):"string"==typeof n.outlineColor?n.outlineColor=new Cesium.Color.fromCssColorString(n.outlineColor):n.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),n.outlineWidth=Cesium.defaultValue(n.outlineWidth,1),v(o._viewer,[e]).then((function(r){let l=Cesium.Cartesian3.fromDegrees(e[0],e[1],r[0].height),a=new Cesium.Entity({id:t.id,position:l,point:{pixelSize:n.pixelSize,color:n.color,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,heightReference:Cesium.HeightReference.NONE,disableDepthTestDistance:r[0].height}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor instanceof Array?e.fillColor=new Cesium.Color(e.fillColor[0]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):"string"==typeof e.fillColor?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor):e.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):"string"==typeof e.outlineColor?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor):e.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor instanceof Array?e.backgroundColor=new Cesium.Color(e.backgroundColor[0]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):"string"==typeof e.backgroundColor?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),e.pixelOffset=Cesium.defaultValue(e.pixelOffset,0),e.scale=Cesium.defaultValue(e.scale,1),a.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,e.pixelOffset),scale:e.scale}}o._viewer.entities.add(a),i(a)}))}))},addBillboardByGeoJson:function(e,t){return new Promise(((r,o)=>{let n=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m();let l=t.billboard||{};l.imgUrl=Cesium.defaultValue(l.imgUrl,"./jt3dSDK/imgs/point/point3.png"),l.scale=Cesium.defaultValue(l.scale,1),l.pixelOffset=Cesium.defaultValue(l.pixelOffset,0);let a=t.label||{};a.text=Cesium.defaultValue(a.text,""),a.textField=Cesium.defaultValue(a.textField,""),a.font=Cesium.defaultValue(a.font,"24px Helvetica"),a.fillColor instanceof Array?a.fillColor=new Cesium.Color(a.fillColor[0]/255,a.fillColor[1]/255,a.fillColor[2]/255,a.fillColor[3]):"string"==typeof a.fillColor?a.fillColor=new Cesium.Color.fromCssColorString(a.fillColor):a.fillColor=new Cesium.Color.fromCssColorString("#ff0000"),a.outlineColor instanceof Array?a.outlineColor=new Cesium.Color(a.outlineColor[0]/255,a.outlineColor[1]/255,a.outlineColor[2]/255,a.outlineColor[3]):"string"==typeof a.outlineColor?a.outlineColor=new Cesium.Color.fromCssColorString(a.outlineColor):a.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00"),a.outlineWidth=Cesium.defaultValue(a.outlineWidth,1),a.showBackground=Cesium.defaultValue(a.showBackground,!1),a.backgroundColor instanceof Array?a.backgroundColor=new Cesium.Color(a.backgroundColor[0]/255,a.backgroundColor[1]/255,a.backgroundColor[2]/255,a.backgroundColor[3]):"string"==typeof a.backgroundColor?a.backgroundColor=new Cesium.Color.fromCssColorString(a.backgroundColor):a.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00"),a.pixelOffset=Cesium.defaultValue(a.pixelOffset,0),a.scale=Cesium.defaultValue(a.scale,1);new Cesium.GeoJsonDataSource(t.id).load(e,{clampToGround:!0}).then((function(e){n.dataSources.add(e);e.entities.values.forEach((e=>{e.billboard={image:l.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:l.scale,pixelOffset:new Cesium.Cartesian2(0,l.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=a.text;e.properties[a.textField]&&(t=e.properties[a.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:a.font,fillColor:a.fillColor,outlineColor:a.outlineColor,outlineWidth:a.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:a.showBackground,backgroundColor:a.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,a.pixelOffset),scale:a.scale},a.scaleByDistance&&(a.scaleByDistance.near=Cesium.defaultValue(a.scaleByDistance.near,0),a.scaleByDistance.nearValue=Cesium.defaultValue(a.scaleByDistance.nearValue,0),a.scaleByDistance.far=Cesium.defaultValue(a.scaleByDistance.far,1),a.scaleByDistance.farValue=Cesium.defaultValue(a.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(a.scaleByDistance.near,a.scaleByDistance.nearValue,a.scaleByDistance.far,a.scaleByDistance.farValue))}))}))}))},addGltf:function(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e.points))throw i("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw i("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||m(),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,0),e.roll=Cesium.defaultValue(e.roll,0),e.alpha=Cesium.defaultValue(e.alpha,1),o=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);var n=Cesium.Math.toRadians(e.heading),l=e.pitch,a=e.roll,s=new Cesium.HeadingPitchRoll(n,l,a),c=t.entities.add({id:e.id,position:o,orientation:Cesium.Transforms.headingPitchRollQuaternion(o,s),model:{uri:e.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(e.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1}});e.minimumPixelSize&&(c.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(c.model.maximumScale=e.maximumScale),e.silhouetteColor&&(e.silhouetteColor instanceof Array?e.silhouetteColor=new Cesium.Color(e.silhouetteColor[0]/255,e.silhouetteColor[1]/255,e.silhouetteColor[2]/255,e.silhouetteColor[3]):"string"==typeof e.silhouetteColor?e.silhouetteColor=new Cesium.Color.fromCssColorString(e.silhouetteColor):e.silhouetteColor=new Cesium.Color.fromCssColorString("#FFFF00")),window[e.id]=c,i(e.id)}))},addModelFromGltf(e,t){let i=this._viewer;return new Promise(((e,r)=>{if(!Cesium.defined(t.points))throw e("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(t.url))throw e("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;t.id=t.id||m(),t.scale=Cesium.defaultValue(t.scale,1),o=t.points instanceof Cesium.Cartesian3?t.points:Cesium.Cartesian3.fromDegrees(t.points[0],t.points[1],t.points[2]||0);const n=Cesium.Transforms.eastNorthUpToFixedFrame(o);let l=i.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:t.url,modelMatrix:n,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));l.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(l.modelMatrix,e,l.modelMatrix)})),window[t.id]=l,e(t.id)}))}});class ir{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ir.prototype,{drawPolylineByGeoJson:function(e,t){return new Promise(((i,r)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.width=Cesium.defaultValue(t.width,3),t.minHeigh=Cesium.defaultValue(t.minHeigh,0),t.maxHeigh=Cesium.defaultValue(t.maxHeigh,2e8),Cesium.GeoJsonDataSource.load(e,{clampToGround:t.clampToGround}).then((e=>{o.dataSources.add(e),e.name=t.id;let r=e.entities.values,n=new Cesium.DistanceDisplayCondition(t.minHeigh,t.maxHeigh),l=new C(t);for(var a=0;a{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.width=t.width||5;let n=new C(t);i(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:n,clampToGround:!0}}))}))},PolylineArrowMaterialProperty:function(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.width=t.width||5;let n=new C(t);i(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:n,clampToGround:!0}}))}))},drawGlowingLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,t.glowPower=t.glowPower||.25,t.taperPower=t.taperPower||1,i(this._viewer.entities.add({id:t.id,name:"Glowing blue line on the surface",polyline:{clampToGround:!0,positions:o,width:t.width,followSurface:!0,material:new Cesium.PolylineGlowMaterialProperty({color:t.color,glowPower:t.glowPower,taperPower:t.taperPower})}}))}))},drawSpecifyColorLine(e,t){return new Promise(((i,r)=>{Cesium.defined(e)||r("points is required."),e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,i(this._viewer.entities.add({id:t.id,name:"Red line on the surface",polyline:{clampToGround:!0,positions:o,width:t.width,material:t.color}}))}))},drawSpecifyColorAndOutlineColorLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,t.outlineColor&&(t.outlineColor instanceof Array?t.outlineColor=new Cesium.Color(t.outlineColor[0]/255,t.outlineColor[1]/255,t.outlineColor[2]/255,t.outlineColor[3]):"string"==typeof t.outlineColor?t.outlineColor=new Cesium.Color.fromCssColorString(t.outlineColor):t.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00")),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),i(this._viewer.entities.add({id:t.id,name:"Orange line with black outline at height and following the surface",polyline:{clampToGround:!0,positions:o,width:t.width,material:new Cesium.PolylineOutlineMaterialProperty({color:t.color,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor})}}))}))},drawSpecifyColorArrowStaticStateLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,i(this._viewer.entities.add({id:t.id,name:"Purple straight arrow at height",polyline:{clampToGround:!0,positions:o,width:t.width,followSurface:!1,material:new Cesium.PolylineArrowMaterialProperty(t.color)}}))}))},drawDashedLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,t.gapColor&&(t.gapColor instanceof Array?t.gapColor=new Cesium.Color(t.gapColor[0]/255,t.gapColor[1]/255,t.gapColor[2]/255,t.gapColor[3]):"string"==typeof t.gapColor?t.gapColor=new Cesium.Color.fromCssColorString(t.gapColor):t.gapColor=new Cesium.Color.fromCssColorString("#FFFF00")),t.dashLength=t.dashLength||16,t.dashPattern=t.dashPattern||255,i(this._viewer.entities.add({id:t.id,name:"CYAN dashed line",polyline:{clampToGround:!0,positions:o,width:t.width,material:new Cesium.PolylineDashMaterialProperty({color:t.color,gapColor:t.gapColor,dashLength:t.dashLength,dashPattern:t.dashPattern})}}))}))}});class rr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._drawEntities=[],this._polygonEntity=null}}Object.assign(rr.prototype,{drawPolygonByGeoJson(e,t){return new Promise(((i,r)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.color=Cesium.defaultValue(t.color,"#FF0000"),t.outlineColor=Cesium.defaultValue(t.outlineColor,"#FFFF00"),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),t.extrudedHeight=Cesium.defaultValue(t.extrudedHeight,0),Cesium.GeoJsonDataSource.load(e,{clampToGround:!0,stroke:Cesium.Color.WHITE,strokeWidth:3,fill:Cesium.Color.RED.withAlpha(.5)}).then((e=>{o._viewer.dataSources.add(e),e.name=t.id;let r=e.entities.values;for(let i=0;i{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<3&&r("面对象,点数至少3个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.fill=t.fill||!0,t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000"),t.outline=t.outline||!1,t.outlineColor?t.outlineColor=new Cesium.Color(t.outlineColor[0]/255,t.outlineColor[1]/255,t.outlineColor[2]/255,t.outlineColor[3]):t.outlineColor=new Cesium.Color.fromCssColorString("#000"),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1);let n=new Cesium.Entity({id:t.id,name:"Generate surfaces based on coordinate points",polygon:{hierarchy:o,material:t.color,fill:t.fill,outline:t.outline,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor}});t.outline&&(n.polyline={positions:n.polygon.hierarchy._value.positions,width:t.outlineWidth,material:t.outlineColor,clampToGround:!0}),this._viewer.entities.add(n),i(n)}))}}),Cesium.Primitive.prototype.setUseGeometry=function(e){this._useGeometry=e},Cesium.Primitive.prototype.getUseGeometry=function(){return this._useGeometry};class or{constructor(e,t){this._viewer=e,this._init(t)}_init(e){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/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCw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CWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._sketchEntityName="sketchEntity",this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchTempPolyline=void 0,this._sketchPolyline=void 0,this._sketchTempPolygon=void 0,this._sketchPolygon=void 0,this._sketchTempAltituePolyline=void 0,this._sketchAltitudePolyline=void 0,this._sketchAltitudeInitHeight=0,this._sketchTempSpatialPolyline=void 0,this._sketchSpatialPolyline=void 0,this._sketchTempCircle=void 0,this._sketchCircle=void 0,this._sketchTempRectangle=void 0,this._sketchRectangle=void 0,this._sketchTempTriangleAltitudePolyline=void 0,this._sketchTriangleAltituePolyline=void 0,this._sketchTempSpatialTriangle=void 0,this._sketchSpatialTriangle=void 0,this._lineLabel=void 0,this._polygonLabel=void 0,(e=e||{}).isDrawPoint?this._isDrawPoint=e.isDrawPoint:this._isDrawPoint=!1,e.isRetainDrawPoint?this._isRetainDrawPoint=e.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),e&&e.iconType)switch(e.iconType){case or.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case or.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case or.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case or.SketchIconType.Violet:this._sketchPointImage=this._iconViolet;break;default:this._sketchPointImage=this._iconNormal}else this._sketchPointImage=this._iconNormal}_arcToDegree(e){return e/Math.PI*180}_toColor(e,t,i,r){let o=new Cesium.Color(0,0,0,1);return"number"!=typeof e||"number"!=typeof t||"number"!=typeof i||"number"!=typeof r||e<0||e>255||t<0||t>255||i<0||i>255||r<0||r>1?o:new Cesium.Color(e/255,t/255,i/255,r)}_toColorFromArray(e){if(!e||void 0===e.length||0===e.length)return new Cesium.Color(1,1,1,1);let t=255,i=255,r=255,o=1;return 1===e.length?t=parseInt(e[0]):2===e.length?(t=parseInt(e[0]),i=parseInt(e[1])):3===e.length?(t=parseInt(e[0]),i=parseInt(e[1]),r=parseInt(e[2])):e.length>=4&&(t=parseInt(e[0]),i=parseInt(e[1]),r=parseInt(e[2]),o=parseFloat(e[3])),new Cesium.Color(t/255,i/255,r/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(e){let t,i=this._viewer.scene.camera.getPickRay(e),r=this._viewer.scene.globe.pick(i,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(r),Cesium.defined(r)&&(t={x:r.x,y:r.y,z:r.z}),t}_getScreenClickPositionAndHeight(e){var t=void 0,i=void 0,r=void 0,o=this._viewer.scene.camera.getPickRay(e),n=this._viewer.scene.globe.pick(o,this._viewer.scene),l=Cesium.Ellipsoid.WGS84.cartesianToCartographic(n);if(null==this._viewer.scene.pick(e))t=this._arcToDegree(l.longitude),i=this._arcToDegree(l.latitude),r=l.height;else{var a=this._viewer.scene.pickPosition(e);if(Cesium.defined(a)){l=Cesium.Cartographic.fromCartesian(a);t=this._arcToDegree(l.longitude),i=this._arcToDegree(l.latitude),r=l.height}}return{lng:t,lat:i,height:r}}_transfromFromScreenPoint(e){let t=this._getScreenClickPositionAndHeight(e);return{gLocation:t,sLocation:Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.height)}}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var i=[],r=0;r0&&(i._sketchPoints.pop(),i._sketchOutputPoints.pop(),t.onUndo&&t.onUndo())})),this._registerLeftDoubleClickEvent(e,(function(e){i._clearEvent(),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)}))},_sketchDrawPolyline(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolyline)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){if(i._sketchTempPoints.length>2){if(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),i._isDrawPoint){let e=i._pointEntitys[i._pointEntitys.length-1];i._entities.remove(e),i._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<2?t.onError&&t.onError("点数少于两个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolyline),i._createPolyline(),i._isRetainDrawPoint||i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))}))},_sketchDrawSpatialPolyline(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempSpatialPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempSpatialPolyline)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<2?t.onError&&t.onError("绘制点少于2个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempSpatialPolyline),i._createSpatialPolyline(),i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))})),this._registerRightClickEvent(e,(function(e){i._sketchTempPoints.length>2&&(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo())}))},_sketchDrawPolygon(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolygon(),i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolygon)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){if(i._sketchTempPoints.length>2){if(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),i._isDrawPoint){let e=i._pointEntitys[i._pointEntitys.length-1];i._entities.remove(e),i._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolygon),i._removeEntityByObject(i._sketchTempPolyline),i._createPolygon(),i._isRetainDrawPoint||i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))}))},_sketchDrawCircle:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0===i._sketchTempPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation.clone()),i._sketchOutputPoints.push(o.gLocation),i._createTempCircle(o.sLocation),t.onAdded&&t.onAdded(o.sLocation);else{if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.sLocation);let e=i._sketchEllipseCenterPosition,t=i._sketchTempPoints[1];i._ellipseOutlineCoordinates=[];for(let o=5;o<360;){let r=i._rotatedPointByAngle(t,e,o);i._ellipseOutlineCoordinates.push(r),o+=5}i._ellipseOutlineCoordinates.push(i._ellipseOutlineCoordinates[0]);let r=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[0]),n=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[1]),l=new Cesium.EllipsoidGeodesic;l.setEndPoints(r,n),i._sketchEllipseRadius=l.surfaceDistance,i._sketchEllipseRadius<=0&&(i._sketchEllipseRadius=1)}i._removePointEntitys(),i._removeEntityByObject(i._sketchTempCircle),i._createCircle(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchOutputPoints[0],i._sketchEllipseRadius)}})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&Cesium.defined(i._sketchTempCircle)){var t=i._viewer.scene.pickPosition(e.endPosition);null!=t&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(t))}}))},_sketchDrawHeightPolyline:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0===i._sketchTempPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchAltitudeInitHeight=o.gLocation.height,i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation.clone()),t.onAdded&&t.onAdded(o.sLocation);else{if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.sLocation);let e=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[1]);i._sketchEllipseCenterPosition=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height),i._sketchAltitudePolylinePostions=[],i._sketchAltitudePolylinePostions.push(i._sketchTempPoints[0]);let r=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);i._sketchAltitudePolylinePostions.push(r);let n=new Cesium.EllipsoidGeodesic;n.setEndPoints(e,t),i._sketchEllipseRadius=n.surfaceDistance,i._sketchEllipseRadius<=0&&(i._sketchEllipseRadius=1);let l=t.height-e.height;i._sketchEllipseHeight=l+i._sketchAltitudeInitHeight}i._removePointEntitys(),i._removeEntityByObject(i._sketchTempAltituePolyline),i._createAltitudePolyline(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition)}})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&null!=i._sketchTempPoints&&0!=i._sketchTempPoints.length){var r=i._viewer.scene.pickPosition(e.endPosition);null!=r&&i._sketchTempPoints.length>=2&&(Cesium.defined(i._sketchTempAltituePolyline)?(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r)):i._createTempAltitudePolyline(),t.onMoving&&t.onMoving(i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition))}}))},_sketchDrawRectangle:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0===i._sketchTempPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchTempPoints.push(o.gLocation),i._sketchTempPoints.push(o.gLocation),i._sketchPoints.push(o.gLocation),i._createTempRectangle(),t.onAdded&&t.onAdded(o.sLocation);else{if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.gLocation);let e=parseFloat(i._sketchTempPoints[0].lng),t=parseFloat(i._sketchTempPoints[0].lat),r=parseFloat(i._sketchTempPoints[1].lng),n=parseFloat(i._sketchTempPoints[1].lat);i._rectangleCoordinates=[0,0,1,1],e2&&(i._sketchPoints.pop(),i._sketchOutputPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo(i._sketchPoints))})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolygon),i._removeEntityByObject(i._sketchTempPolyline),i._createPolygonBody({height:30,color:[255,255,0,.9]}),i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))}))},_sketchDrawTriangleA:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){if(Cesium.defined(i._sketchTempAltituePolyline))return;let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0==i._sketchPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation),i._createTempSpatialTriangle(),t.onAdded&&t.onAdded(o.sLocation);else if(i._sketchPoints.length>0){if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.sLocation),i._sketchSpatialTrianglePositions=[],i._sketchSpatialTrianglePositions.push(i._sketchTempPoints[0].clone()),i._sketchSpatialTrianglePositions.push(i._sketchTempPoints[1].clone());let e=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[1]),r=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);i._sketchSpatialTrianglePositions.push(r),i._sketchSpatialTrianglePositions.push(i._sketchTempPoints[0].clone())}i._removePointEntitys(),i._removeEntityByObject(i._sketchTempSpatialTriangle),i._createSpatialTriangle(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchSpatialTrianglePositions)}})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&void 0!==i._sketchPoints&&0!==i._sketchPoints.length){var r=i._viewer.scene.pickPosition(e.endPosition);null!=r&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r),t.onMoving&&t.onMoving(r))}}))},sketchTools:function(e,t){let i=this;switch(this._clear(),i._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case or.SketchType.Point:i._sketchDrawPoint(i._sketchEventHandler,t);break;case or.SketchType.Line:i._sketchDrawPolyline(i._sketchEventHandler,t);break;case or.SketchType.Polygon:i._sketchDrawPolygon(i._sketchEventHandler,t);break;case or.SketchType.Height:i._sketchDrawHeightPolyline(i._sketchEventHandler,t);break;case or.SketchType.Spatial:i._sketchDrawSpatialPolyline(i._sketchEventHandler,t);break;case or.SketchType.Circle:i._sketchDrawCircle(i._sketchEventHandler,t);break;case or.SketchType.Rectangle:i._sketchDrawRectangle(i._sketchEventHandler,t);break;case or.SketchType.Triangle:i._sketchDrawTriangleA(i._sketchEventHandler,t);break;case or.SketchType.PolygonBody:i._sketchDrawPolygonBody(i._sketchEventHandler,t);break;case or.SketchType.MultiplePoint:i._sketchDrawMultiplePoint(i._sketchEventHandler,t)}},sketchDrawFeacture:function(e,t,i){let r=this;if(void 0===e||void 0===e.length||e.length<2)i&&i.onError&&i.onError("输入的坐标集合异常!");else{this._sketchPoints=[];for(let t=0;t255)},_checkAlpha:function(e){if(null==e)return!1;if("number"!=typeof e)return!1;let t=parseFloat(e);return!(t<0||t>1)},_checkColorAndAlpha:function(e){let t;if(e&&void 0!==e.length&&0!==e.length)return 1===e.length&&this._checkColor(e[0])?t=[e[0],0,0,1]:2===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])?t=[e[0],e[1],0,1]:3===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])?t=[e[0],e[1],e[2],1]:4===e.length&&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},sketchEditPickPolygonBody:function(e){let t=this._sketchPickPolygonBody;if(void 0===t)return void(e.onComplete&&e.onComplete("未拾取对象或拾取的对象不符合要求!"));let i=t._useGeometry.color,r=t._useGeometry.height;this._sketchPoints=t._useGeometry.cPoints,this._sketchOutputPoints=t._useGeometry.gPoints,e&&e.height&&"number"==typeof e.height&&(r=parseInt(e.height)),e&&e.color&&this._checkColorAndAlpha(e.color)&&(i=this._checkColorAndAlpha(e.color)),this._viewer.scene.primitives.remove(t),this._createPolygonBody({color:i,height:r}),e.onComplete&&e.onComplete(void 0)},sketchRemovePickPolygonBody:function(e){let t=this._sketchPickPolygonBody;void 0!==t?(this._viewer.scene.primitives.remove(t),e&&e(void 0)):e&&e("未拾取对象或拾取的对象不符合要求!")},sketchPick:function(e){let t=this,i=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);i.setInputAction((function(r){let o=t._viewer.scene.pick(r.position);o&&o.primitive&&null!=o.primitive._useGeometry?(t._sketchPickPolygonBody=o.primitive,e&&e({color:o.primitive._useGeometry.color,height:o.primitive._useGeometry.height})):(t._sketchPickPolygonBody=void 0,e&&e(void 0)),i.destroy(),i=null}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}}),or.SketchType=Object.freeze({Point:"point",MultiplePoint:"multiplePoint",Line:"line",Polygon:"polygon",Height:"height",Spatial:"spatial",Circle:"circle",Rectangle:"rectangle",Triangle:"triangle",PolygonBody:"polygonBody",DrawPoint:"drawPoint",DrawMultiplePoint:"drawMultiplePoint",DrawPolyline:"drawPolyline",DrawPolygon:"drawPolygon"}),or.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"}),or.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class nr{constructor(e,t){this._viewer=e,(t=t||{}).isDrawPoint?this._isDrawPoint=t.isDrawPoint:this._isDrawPoint=!1,t.isRetainDrawPoint?this._isRetainDrawPoint=t.isRetainDrawPoint:this._isRetainDrawPoint=!1,t.isClear?this._isClear=t.isClear:this._isClear=!1,this._sketchViewModel=new or(e,{iconType:or.SketchIconType.Blue,isDrawPoint:this._isDrawPoint,isRetainDrawPoint:this._isRetainDrawPoint});let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i),this._init()}_init(){this._measureEntityName="MeasureEntity",this._entities=this._viewer.entities,this._measurePointImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajt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xP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(e){let t=this._entities;if(!t||!t.values)return;let i=[];for(let r=0;r",t.innerHTML=i,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}}function lr(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}Object.assign(nr.prototype,{_tooltipInit:function(e){this._tooltipId="tooltipJt";let t=document.getElementById(this._tooltipId);if(null===t){t=document.createElement("div"),t.id=this._tooltipId,document.body.appendChild(t);let e="";e+="top: 30px;",e+="left: 30px;",e+="position: absolute;",e+="display: flex;",e+="align-items: center;",e+="width: 12x0px;",e+="height: auto;",e+="background-color: rgba(0, 0, 0, 0.65);",e+="border-radius: 5px;",e+="color: rgb(255, 255, 255);",e+="font-size: 12px;",e+="font-family: 'Alimama_ShuHeiTi_Bold';",e+="padding: 8px;",e+="border:solid 1px rgb(255,0,0);",t.setAttribute("style",e)}null!=e&&(t.innerHTML=e),document.onmousemove=function(e){t.style.left=e.clientX+10+"px",t.style.top=e.clientY-t.offsetHeight/2+"px"}},_tooltipRemove:function(){let e=document.getElementById(this._tooltipId);null!=e&&document.body.removeChild(e)},_tooltipSetText:function(e){let t=document.getElementById(this._tooltipId);null!=t&&(t.innerHTML=e)}}),Object.assign(nr.prototype,{clear:function(){this._clear(!0),this._initMousePointerStyle()}}),Object.assign(nr.prototype,{measureLength:function(e){let t=this;this._tempEntitys=[],this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量"),this._isRuntimeWeb()?this._sketchViewModel.sketchTools(or.SketchType.Line,{onAdded:function(e,i){if(1===e.length)t._createPoint(e[0],"起点");else{let i=t._measureDistance(e),r=[e[e.length-2],e[e.length-1]];i+=" +"+t._measureDistance(r),t._tempEntitys.push(t._createPoint(e[e.length-1],i))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(or.SketchType.Line,{onAdded:function(i,r){if(1===i.length){t._tooltipRemove(),t._createPoint(i[0],"起点"),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{if(t._sketchViewModel._sketchTempPoints.length>2){if(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._sketchViewModel._isDrawPoint){let e=t._sketchViewModel._pointEntitys[t._sketchViewModel._pointEntitys.length-1];t._sketchViewModel._entities.remove(e),t._sketchViewModel._pointEntitys.pop()}t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<2)return void(e&&e("点数少于两个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolyline),t._sketchViewModel._createPolyline(),t._sketchViewModel._isRetainDrawPoint||t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}else{let e=t._measureDistance(i),r=[i[i.length-2],i[i.length-1]];e+=" +"+t._measureDistance(r),t._tempEntitys.push(t._createPoint(i[i.length-1],e))}}})},measureSpatialLength:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量"),this._tempEntitys=[],this._isRuntimeWeb()?this._sketchViewModel.sketchTools(or.SketchType.Spatial,{onAdded:function(e,i){if(1===e.length)t._createPoint(e[0],"起点");else{let i=t._measureSpaceDistance(e);t._tempEntitys.push(t._createPoint(e[e.length-1],i))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(or.SketchType.Spatial,{onAdded:function(i,r){if(1===i.length){t._tooltipRemove(),t._createPoint(i[0],"起点"),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{t._sketchViewModel._sketchTempPoints.length>2&&(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop())},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<2)return void(e&&e("点数少于两个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempSpatialPolyline),t._sketchViewModel._createSpatialPolyline(),t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}else{let e=t._measureSpaceDistance(i);t._tempEntitys.push(t._createPoint(i[i.length-1],e))}}})},measureArea:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量");var i="";this._isRuntimeWeb()?this._sketchViewModel.sketchTools(or.SketchType.Polygon,{onAdded:function(e,r){if(t._measureTempPoints.push(t._cartesianToGeography(e[e.length-1])),1===e.length)i="起点",t._createPoint(e[0],new Cesium.CallbackProperty((function(){return i}),!1));else if(e.length>=3){let r=t._measureArea(t._measureTempPoints,e);i=r>1e5?(r/1e5).toFixed(2)+"km²":r.toFixed(2)+"m²"}},onUndo:function(){t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(or.SketchType.Polygon,{onAdded:function(r,o){if(t._measureTempPoints.push(t._cartesianToGeography(r[r.length-1])),1===r.length){t._tooltipRemove(),i="起点",t._createPoint(r[0],new Cesium.CallbackProperty((function(){return i}),!1)),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{if(t._sketchViewModel._sketchTempPoints.length>2){if(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._sketchViewModel._isDrawPoint){let e=t._sketchViewModel._pointEntitys[t._sketchViewModel._pointEntitys.length-1];t._entities.remove(e),t._sketchViewModel._pointEntitys.pop()}t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")}},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<3)return void(e&&e("点数少于3个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolygon),t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolyline),t._sketchViewModel._createPolygon(),t._sketchViewModel._isRetainDrawPoint||t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}else if(r.length>=3){let e=t._measureArea(t._measureTempPoints,r);i=e>1e5?(e/1e5).toFixed(2)+"km²":e.toFixed(2)+"m²"}}})},measureHeight:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始绘制线"):this._tooltipInit("单击开始绘制线"),this._sketchViewModel.sketchTools(or.SketchType.Height,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e,i){let r=t._calculatePolylineAltitudeHeight(e);t._altitudeLabelPosition=i,t._altitudeLabelText=r,void 0===t._altitudeDynamicLabel&&t._createAltitudeDynamicLabel()},onError:function(t){e&&e(t)},onComplete:function(e,i){let r=t._calculatePolylineAltitudeHeight(e);t._entities.remove(t._altitudeDynamicLabel),t._createLabel(i,r),t._initMousePointerStyle(),t._tooltipRemove()}})},measureTriangle:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始绘制线"):this._tooltipInit("单击开始绘制线"),this._sketchViewModel.sketchTools(or.SketchType.Triangle,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e){t._tooltipSetText("再次单击结束测量")},onError:function(t){e&&e(t)},onComplete:function(e){t._initMousePointerStyle(),t._tooltipRemove();let i=[e[0],e[1]],r=t._measureSpaceDistance(i),o=[e[1],e[2]],n=t._measureSpaceDistance(o),l=[e[2],e[0]],a=t._calculatePolylineAltitudeHeight(l);t._createLabel(e[0],"斜距:"+r),t._createLabel(e[1],"平距:"+n),t._createLabel(e[2],"高度:"+a)}})}}),Object.assign(nr.prototype,{queryByPoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._isRuntimeApp()?this._showTooltipMessage("点击位置进行查询"):this._tooltipInit("单击位置进行查询"),this._sketchViewModel.sketchTools(or.SketchType.Point,{onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove(),t._createPoint(i);let o=r.lng+","+r.lat;e&&e(o)}})},queryByMultiplePoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("点击位置绘制
左键双击结束绘制"),this._tempEntitys=[],this._sketchViewModel.sketchTools(or.SketchType.MultiplePoint,{onAdded:function(e,i){let r=i.lng.toFixed(6)+","+i.lat.toFixed(6);t._tempEntitys.push(t._createPoint(e,r))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove();let o=[];for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,r){let o;i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e{if(i._sketchViewModel._sketchTempPoints.length>2&&(i._sketchViewModel._sketchPoints.pop(),i._sketchViewModel._sketchTempPoints.splice(i._sketchViewModel._sketchTempPoints.length-1,1),i._sketchViewModel._isDrawPoint)){let e=i._sketchViewModel._pointEntitys[i._sketchViewModel._pointEntitys.length-1];i._sketchViewModel._entities.remove(e),i._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(i._sketchViewModel._sketchPoints.length<2)return void(t&&t("点数少于两个,禁止结束绘制!"));let r;i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolyline),i._sketchViewModel._createPolyline(),i._sketchViewModel._isRetainDrawPoint||i._sketchViewModel._removePointEntitys(),i._sketchViewModel._clearEvent(i._sketchViewModel._sketchEventHandler),i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,r){let o;i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e{if(i._sketchViewModel._sketchTempPoints.length>2&&(i._sketchViewModel._sketchPoints.pop(),i._sketchViewModel._sketchTempPoints.splice(i._sketchViewModel._sketchTempPoints.length-1,1),i._sketchViewModel._isDrawPoint)){let e=i._sketchViewModel._pointEntitys[i._sketchViewModel._pointEntitys.length-1];i._entities.remove(e),i._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(i._sketchViewModel._sketchPoints.length<3)return void(t&&t("点数少于3个,禁止结束绘制!"));let r;i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolygon),i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolyline),i._sketchViewModel._createPolygon(),i._sketchViewModel._isRetainDrawPoint||i._sketchViewModel._removePointEntitys(),i._sketchViewModel._clearEvent(i._sketchViewModel._sketchEventHandler),i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e左键双击结束绘制")},onUndo:function(e){0===e.length?t._tooltipInit("点击开始绘制"):e.length<3?t._tooltipInit("右键单击回退"):t._tooltipInit("右键单击回退
左键双击结束绘制")},onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove(),e&&e()}})},drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawPolygon,t)}}),Object.assign(nr.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}}),Object.assign(nr.prototype,{pickPolygonBody:function(e){this._sketchViewModel.sketchPick((function(t){void 0===t?e&&e(void 0):e&&e({color:t.color,height:t.height})}))},setPolygonBody:function(e){this._sketchViewModel.sketchEditPickPolygonBody({color:e.color,height:e.height,onComplete:e.onComplete})},removePolygonBody:function(e){this._sketchViewModel.sketchRemovePickPolygonBody(e)}}),nr.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});const ar=()=>{},sr=Object.assign,cr=Object.prototype.hasOwnProperty,dr=(e,t)=>cr.call(e,t),ur=Array.isArray,pr=e=>"[object Map]"===gr(e),hr=e=>"symbol"==typeof e,fr=e=>null!==e&&"object"==typeof e,mr=Object.prototype.toString,gr=e=>mr.call(e),vr=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,br=(e,t)=>!Object.is(e,t);let _r;const yr=[];class xr{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&_r&&(this.parent=_r,this.index=(_r.scopes||(_r.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(yr.push(this),_r=this)}off(){this.active&&(yr.pop(),_r=yr[yr.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function wr(e){_r&&_r.cleanups.push(e)}const kr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Cr=e=>(e.w&Ar)>0,Tr=e=>(e.n&Ar)>0,Er=new WeakMap;let Sr=0,Ar=1;const Pr=[];let Ir;const Dr=Symbol(""),Mr=Symbol("");class Lr{constructor(e,t=null,i){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||_r)&&t.active&&t.effects.push(e)}(this,i)}run(){if(!this.active)return this.fn();if(!Pr.includes(this))try{return Pr.push(Ir=this),zr.push(Rr),Rr=!0,Ar=1<<++Sr,Sr<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let i=0;for(let r=0;r0?Pr[e-1]:void 0}}stop(){this.active&&(Or(this),this.onStop&&this.onStop(),this.active=!1)}}function Or(e){const{deps:t}=e;if(t.length){for(let i=0;i{("length"===t||t>=r)&&a.push(e)}));else switch(void 0!==i&&a.push(l.get(i)),t){case"add":ur(e)?vr(i)&&a.push(l.get("length")):(a.push(l.get(Dr)),pr(e)&&a.push(l.get(Mr)));break;case"delete":ur(e)||(a.push(l.get(Dr)),pr(e)&&a.push(l.get(Mr)));break;case"set":pr(e)&&a.push(l.get(Dr))}if(1===a.length)a[0]&&Wr(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Wr(kr(e))}}function Wr(e,t){for(const i of ur(e)?e:[...e])(i!==Ir||i.allowRecurse)&&(i.scheduler?i.scheduler():i.run())}const Hr=lr("__proto__,__v_isRef,__isVue"),Gr=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(hr)),Yr=Kr(),qr=Kr(!1,!0),Qr=Kr(!0),Zr=Xr();function Xr(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const i=Ro(this);for(let t=0,o=this.length;t{e[t]=function(...e){Nr();const i=Ro(this)[t].apply(this,e);return Br(),i}})),e}function Kr(e=!1,t=!1){return function(i,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?t?So:Eo:t?To:Co).get(i))return i;const n=ur(i);if(!e&&n&&dr(Zr,r))return Reflect.get(Zr,r,o);const l=Reflect.get(i,r,o);if(hr(r)?Gr.has(r):Hr(r))return l;if(e||jr(i,0,r),t)return l;if(Fo(l)){return!n||!vr(r)?l.value:l}return fr(l)?e?Io(l):Po(l):l}}function Jr(e=!1){return function(t,i,r,o){let n=t[i];if(!e&&!Lo(r)&&(r=Ro(r),n=Ro(n),!ur(t)&&Fo(n)&&!Fo(r)))return n.value=r,!0;const l=ur(t)&&vr(i)?Number(i)!0,deleteProperty:(e,t)=>!0},to=sr({},$r,{get:qr,set:Jr(!0)}),io=e=>e,ro=e=>Reflect.getPrototypeOf(e);function oo(e,t,i=!1,r=!1){const o=Ro(e=e.__v_raw),n=Ro(t);t!==n&&!i&&jr(o,0,t),!i&&jr(o,0,n);const{has:l}=ro(o),a=r?io:i?Bo:No;return l.call(o,t)?a(e.get(t)):l.call(o,n)?a(e.get(n)):void(e!==o&&e.get(t))}function no(e,t=!1){const i=this.__v_raw,r=Ro(i),o=Ro(e);return e!==o&&!t&&jr(r,0,e),!t&&jr(r,0,o),e===o?i.has(e):i.has(e)||i.has(o)}function lo(e,t=!1){return e=e.__v_raw,!t&&jr(Ro(e),0,Dr),Reflect.get(e,"size",e)}function ao(e){e=Ro(e);const t=Ro(this);return ro(t).has.call(t,e)||(t.add(e),Vr(t,"add",e,e)),this}function so(e,t){t=Ro(t);const i=Ro(this),{has:r,get:o}=ro(i);let n=r.call(i,e);n||(e=Ro(e),n=r.call(i,e));const l=o.call(i,e);return i.set(e,t),n?br(t,l)&&Vr(i,"set",e,t):Vr(i,"add",e,t),this}function co(e){const t=Ro(this),{has:i,get:r}=ro(t);let o=i.call(t,e);o||(e=Ro(e),o=i.call(t,e)),r&&r.call(t,e);const n=t.delete(e);return o&&Vr(t,"delete",e,void 0),n}function uo(){const e=Ro(this),t=0!==e.size,i=e.clear();return t&&Vr(e,"clear",void 0,void 0),i}function po(e,t){return function(i,r){const o=this,n=o.__v_raw,l=Ro(n),a=t?io:e?Bo:No;return!e&&jr(l,0,Dr),n.forEach(((e,t)=>i.call(r,a(e),a(t),o)))}}function ho(e,t,i){return function(...r){const o=this.__v_raw,n=Ro(o),l=pr(n),a="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,c=o[e](...r),d=i?io:t?Bo:No;return!t&&jr(n,0,s?Mr:Dr),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function fo(e){return function(...t){return"delete"!==e&&this}}function mo(){const e={get(e){return oo(this,e)},get size(){return lo(this)},has:no,add:ao,set:so,delete:co,clear:uo,forEach:po(!1,!1)},t={get(e){return oo(this,e,!1,!0)},get size(){return lo(this)},has:no,add:ao,set:so,delete:co,clear:uo,forEach:po(!1,!0)},i={get(e){return oo(this,e,!0)},get size(){return lo(this,!0)},has(e){return no.call(this,e,!0)},add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear"),forEach:po(!0,!1)},r={get(e){return oo(this,e,!0,!0)},get size(){return lo(this,!0)},has(e){return no.call(this,e,!0)},add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear"),forEach:po(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=ho(o,!1,!1),i[o]=ho(o,!0,!1),t[o]=ho(o,!1,!0),r[o]=ho(o,!0,!0)})),[e,i,t,r]}const[go,vo,bo,_o]=mo();function yo(e,t){const i=t?e?_o:bo:e?vo:go;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(dr(i,r)&&r in t?i:t,r,o)}const xo={get:yo(!1,!1)},wo={get:yo(!1,!0)},ko={get:yo(!0,!1)},Co=new WeakMap,To=new WeakMap,Eo=new WeakMap,So=new WeakMap;function Ao(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>gr(e).slice(8,-1))(e))}function Po(e){return e&&e.__v_isReadonly?e:Do(e,!1,$r,xo,Co)}function Io(e){return Do(e,!0,eo,ko,Eo)}function Do(e,t,i,r,o){if(!fr(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const n=o.get(e);if(n)return n;const l=Ao(e);if(0===l)return e;const a=new Proxy(e,2===l?r:i);return o.set(e,a),a}function Mo(e){return Lo(e)?Mo(e.__v_raw):!(!e||!e.__v_isReactive)}function Lo(e){return!(!e||!e.__v_isReadonly)}function Oo(e){return Mo(e)||Lo(e)}function Ro(e){const t=e&&e.__v_raw;return t?Ro(t):e}function zo(e){return((e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})})(e,"__v_skip",!0),e}const No=e=>fr(e)?Po(e):e,Bo=e=>fr(e)?Io(e):e;function jo(e){Ur()&&((e=Ro(e)).dep||(e.dep=kr()),Fr(e.dep))}function Uo(e,t){(e=Ro(e)).dep&&Wr(e.dep)}function Fo(e){return Boolean(e&&!0===e.__v_isRef)}function Vo(e){return Ho(e,!1)}function Wo(e){return Ho(e,!0)}function Ho(e,t){return Fo(e)?e:new Go(e,t)}class Go{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ro(e),this._value=t?e:No(e)}get value(){return jo(this),this._value}set value(e){e=this._shallow?e:Ro(e),br(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:No(e),Uo(this))}}function Yo(e){Uo(e)}function qo(e){return Fo(e)?e.value:e}const Qo={get:(e,t,i)=>qo(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const o=e[t];return Fo(o)&&!Fo(i)?(o.value=i,!0):Reflect.set(e,t,i,r)}};function Zo(e){return Mo(e)?e:new Proxy(e,Qo)}function Xo(e){const t=ur(e)?new Array(e.length):{};for(const i in e)t[i]=Jo(e,i);return t}class Ko{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Jo(e,t,i){const r=e[t];return Fo(r)?r:new Ko(e,t,i)}class $o{constructor(e,t,i){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Lr(e,(()=>{this._dirty||(this._dirty=!0,Uo(this))})),this.__v_isReadonly=i}get value(){const e=Ro(this);return jo(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function en(e,t){let i,r;const o="function"==typeof e;o?(i=e,r=ar):(i=e.get,r=e.set);return new $o(i,r,o||!r)}function tn(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}function rn(e){if(xn(e)){const t={};for(let i=0;i{if(e){const i=e.split(nn);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}function an(e){let t="";if(Tn(e))t=e;else if(xn(e))for(let i=0;inull==e?"":xn(e)||En(e)&&(e.toString===An||!Cn(e.toString))?JSON.stringify(e,cn,2):String(e),cn=(e,t)=>t&&t.__v_isRef?cn(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,i])=>(e[`${t} =>`]=i,e)),{})}:kn(t)?{[`Set(${t.size})`]:[...t.values()]}:!En(t)||xn(t)||In(t)?t:String(t),dn={},un=[],pn=()=>{},hn=()=>!1,fn=/^on[^a-z]/,mn=e=>fn.test(e),gn=e=>e.startsWith("onUpdate:"),vn=Object.assign,bn=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},_n=Object.prototype.hasOwnProperty,yn=(e,t)=>_n.call(e,t),xn=Array.isArray,wn=e=>"[object Map]"===Pn(e),kn=e=>"[object Set]"===Pn(e),Cn=e=>"function"==typeof e,Tn=e=>"string"==typeof e,En=e=>null!==e&&"object"==typeof e,Sn=e=>En(e)&&Cn(e.then)&&Cn(e.catch),An=Object.prototype.toString,Pn=e=>An.call(e),In=e=>"[object Object]"===Pn(e),Dn=tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Ln=/-(\w)/g,On=Mn((e=>e.replace(Ln,((e,t)=>t?t.toUpperCase():"")))),Rn=/\B([A-Z])/g,zn=Mn((e=>e.replace(Rn,"-$1").toLowerCase())),Nn=Mn((e=>e.charAt(0).toUpperCase()+e.slice(1))),Bn=Mn((e=>e?`on${Nn(e)}`:"")),jn=(e,t)=>!Object.is(e,t),Un=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Wn;function Hn(e,t,...i){const r=e.vnode.props||dn;let o=i;const n=t.startsWith("update:"),l=n&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:n}=r[e]||dn;n?o=i.map((e=>e.trim())):t&&(o=i.map(Vn))}let a,s=r[a=Bn(t)]||r[a=Bn(On(t))];!s&&n&&(s=r[a=Bn(zn(t))]),s&&xs(s,e,6,o);const c=r[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,xs(c,e,6,o)}}function Gn(e,t,i=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const n=e.emits;let l={},a=!1;if(!Cn(e)){const r=e=>{const i=Gn(e,t,!0);i&&(a=!0,vn(l,i))};!i&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return n||a?(xn(n)?n.forEach((e=>l[e]=null)):vn(l,n),r.set(e,l),l):(r.set(e,null),null)}function Yn(e,t){return!(!e||!mn(t))&&(t=t.slice(2).replace(/Once$/,""),yn(e,t[0].toLowerCase()+t.slice(1))||yn(e,zn(t))||yn(e,t))}let qn=null,Qn=null;function Zn(e){const t=qn;return qn=e,Qn=e&&e.type.__scopeId||null,t}function Xn(e,t=qn,i){if(!t)return e;if(e._n)return e;const r=(...i)=>{r._d&&Pa(-1);const o=Zn(t),n=e(...i);return Zn(o),r._d&&Pa(1),n};return r._n=!0,r._c=!0,r._d=!0,r}function Kn(e){const{type:t,vnode:i,proxy:r,withProxy:o,props:n,propsOptions:[l],slots:a,attrs:s,emit:c,render:d,renderCache:u,data:p,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const b=Zn(e);try{if(4&i.shapeFlag){const e=o||r;g=Wa(d.call(e,e,u,n,h,p,f)),v=s}else{const e=t;0,g=Wa(e.length>1?e(n,{attrs:s,slots:a,emit:c}):e(n,null)),v=t.props?s:Jn(s)}}catch(y){Ta.length=0,ws(y,e,1),g=ja(ka)}let _=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=_;e.length&&7&t&&(l&&e.some(gn)&&(v=$n(v,l)),_=Ua(_,v))}return i.dirs&&(_.dirs=_.dirs?_.dirs.concat(i.dirs):i.dirs),i.transition&&(_.transition=i.transition),g=_,Zn(b),g}const Jn=e=>{let t;for(const i in e)("class"===i||"style"===i||mn(i))&&((t||(t={}))[i]=e[i]);return t},$n=(e,t)=>{const i={};for(const r in e)gn(r)&&r.slice(9)in t||(i[r]=e[r]);return i};function el(e,t,i){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o1)return i&&Cn(t)?t.call(r.proxy):t}}const rl=[Function,Array],ol={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rl,onEnter:rl,onAfterEnter:rl,onEnterCancelled:rl,onBeforeLeave:rl,onLeave:rl,onAfterLeave:rl,onLeaveCancelled:rl,onBeforeAppear:rl,onAppear:rl,onAfterAppear:rl,onAppearCancelled:rl},setup(e,{slots:t}){const i=os(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xl((()=>{e.isMounted=!0})),Cl((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const n=t.default&&dl(t.default(),!0);if(!n||!n.length)return;const l=Ro(e),{mode:a}=l,s=n[0];if(r.isLeaving)return al(s);const c=sl(s);if(!c)return al(s);const d=ll(c,l,r,i);cl(c,d);const u=i.subTree,p=u&&sl(u);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==ka&&(!Oa(c,p)||h)){const e=ll(p,l,r,i);if(cl(p,e),"out-in"===a)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,i.update()},al(s);"in-out"===a&&c.type!==ka&&(e.delayLeave=(e,t,i)=>{nl(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=i})}return s}}};function nl(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function ll(e,t,i,r){const{appear:o,mode:n,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=t,_=String(e.key),y=nl(i,e),x=(e,t)=>{e&&xs(e,r,9,t)},w={mode:n,persisted:l,beforeEnter(t){let r=a;if(!i.isMounted){if(!o)return;r=m||a}t._leaveCb&&t._leaveCb(!0);const n=y[_];n&&Oa(e,n)&&n.el._leaveCb&&n.el._leaveCb(),x(r,[t])},enter(e){let t=s,r=c,n=d;if(!i.isMounted){if(!o)return;t=g||s,r=v||c,n=b||d}let l=!1;const a=e._enterCb=t=>{l||(l=!0,x(t?n:r,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),i.isUnmounting)return r();x(u,[t]);let n=!1;const l=t._leaveCb=i=>{n||(n=!0,r(),x(i?f:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,p?(p(t,l),p.length<=1&&l()):l()},clone:e=>ll(e,t,i,r)};return w}function al(e){if(hl(e))return(e=Ua(e)).children=null,e}function sl(e){return hl(e)?e.children?e.children[0]:void 0:e}function cl(e,t){6&e.shapeFlag&&e.component?cl(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function dl(e,t=!1){let i=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,hl=e=>e.type.__isKeepAlive;function fl(e,t){gl(e,"a",t)}function ml(e,t){gl(e,"da",t)}function gl(e,t,i=rs){const r=e.__wdc||(e.__wdc=()=>{let t=i;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(bl(t,r,i),i){let e=i.parent;for(;e&&e.parent;)hl(e.parent.vnode)&&vl(r,t,i,e),e=e.parent}}function vl(e,t,i,r){const o=bl(t,e,r,!0);Tl((()=>{bn(r[t],o)}),i)}function bl(e,t,i=rs,r=!1){if(i){const o=i[e]||(i[e]=[]),n=t.__weh||(t.__weh=(...r)=>{if(i.isUnmounted)return;Nr(),ns(i);const o=xs(t,i,e,r);return ls(),Br(),o});return r?o.unshift(n):o.push(n),n}}const _l=e=>(t,i=rs)=>(!ss||"sp"===e)&&bl(e,t,i),yl=_l("bm"),xl=_l("m"),wl=_l("bu"),kl=_l("u"),Cl=_l("bum"),Tl=_l("um"),El=_l("sp"),Sl=_l("rtg"),Al=_l("rtc");function Pl(e,t=rs){bl("ec",e,t)}let Il=!0;function Dl(e){const t=Ol(e),i=e.proxy,r=e.ctx;Il=!1,t.beforeCreate&&Ml(t.beforeCreate,e,"bc");const{data:o,computed:n,methods:l,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:_,unmounted:y,render:x,renderTracked:w,renderTriggered:k,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:S,components:A,directives:P,filters:I}=t;if(c&&function(e,t,i=pn,r=!1){xn(e)&&(e=Bl(e));for(const o in e){const i=e[o];let n;n=En(i)?"default"in i?il(i.from||o,i.default,!0):il(i.from||o):il(i),Fo(n)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:e=>n.value=e}):t[o]=n}}(c,r,null,e.appContext.config.unwrapInjectedRef),l)for(const M in l){const e=l[M];Cn(e)&&(r[M]=e.bind(i))}if(o){const t=o.call(i,i);En(t)&&(e.data=Po(t))}if(Il=!0,n)for(const M in n){const e=n[M],t=en({get:Cn(e)?e.bind(i,i):Cn(e.get)?e.get.bind(i,i):pn,set:!Cn(e)&&Cn(e.set)?e.set.bind(i):pn});Object.defineProperty(r,M,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(a)for(const M in a)Ll(a[M],r,i,M);if(s){const e=Cn(s)?s.call(i):s;Reflect.ownKeys(e).forEach((t=>{tl(t,e[t])}))}function D(e,t){xn(t)?t.forEach((t=>e(t.bind(i)))):t&&e(t.bind(i))}if(d&&Ml(d,e,"c"),D(yl,u),D(xl,p),D(wl,h),D(kl,f),D(fl,m),D(ml,g),D(Pl,C),D(Al,w),D(Sl,k),D(Cl,b),D(Tl,y),D(El,T),xn(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===pn&&(e.render=x),null!=S&&(e.inheritAttrs=S),A&&(e.components=A),P&&(e.directives=P)}function Ml(e,t,i){xs(xn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,i)}function Ll(e,t,i,r){const o=r.includes(".")?Zs(i,r):()=>i[r];if(Tn(e)){const i=t[e];Cn(i)&&Ys(o,i)}else if(Cn(e))Ys(o,e.bind(i));else if(En(e))if(xn(e))e.forEach((e=>Ll(e,t,i,r)));else{const r=Cn(e.handler)?e.handler.bind(i):t[e.handler];Cn(r)&&Ys(o,r,e)}}function Ol(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:o,optionsCache:n,config:{optionMergeStrategies:l}}=e.appContext,a=n.get(t);let s;return a?s=a:o.length||i||r?(s={},o.length&&o.forEach((e=>Rl(s,e,l,!0))),Rl(s,t,l)):s=t,n.set(t,s),s}function Rl(e,t,i,r=!1){const{mixins:o,extends:n}=t;n&&Rl(e,n,i,!0),o&&o.forEach((t=>Rl(e,t,i,!0)));for(const l in t)if(r&&"expose"===l);else{const r=zl[l]||i&&i[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const zl={data:Nl,props:Ul,emits:Ul,methods:Ul,computed:Ul,beforeCreate:jl,created:jl,beforeMount:jl,mounted:jl,beforeUpdate:jl,updated:jl,beforeDestroy:jl,beforeUnmount:jl,destroyed:jl,unmounted:jl,activated:jl,deactivated:jl,errorCaptured:jl,serverPrefetch:jl,components:Ul,directives:Ul,watch:function(e,t){if(!e)return t;if(!t)return e;const i=vn(Object.create(null),e);for(const r in t)i[r]=jl(e[r],t[r]);return i},provide:Nl,inject:function(e,t){return Ul(Bl(e),Bl(t))}};function Nl(e,t){return t?e?function(){return vn(Cn(e)?e.call(this,this):e,Cn(t)?t.call(this,this):t)}:t:e}function Bl(e){if(xn(e)){const t={};for(let i=0;i{s=!0;const[i,r]=Hl(e,t,!0);vn(l,i),r&&a.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!n&&!s)return r.set(e,un),un;if(xn(n))for(let d=0;d-1,i[1]=r<0||t-1||yn(i,"default"))&&a.push(e)}}}const c=[l,a];return r.set(e,c),c}function Gl(e){return"$"!==e[0]}function Yl(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function ql(e,t){return Yl(e)===Yl(t)}function Ql(e,t){return xn(t)?t.findIndex((t=>ql(t,e))):Cn(t)&&ql(t,e)?0:-1}const Zl=e=>"_"===e[0]||"$stable"===e,Xl=e=>xn(e)?e.map(Wa):[Wa(e)],Kl=(e,t,i)=>{const r=Xn(((...e)=>Xl(t(...e))),i);return r._c=!1,r},Jl=(e,t,i)=>{const r=e._ctx;for(const o in e){if(Zl(o))continue;const i=e[o];if(Cn(i))t[o]=Kl(0,i,r);else if(null!=i){const e=Xl(i);t[o]=()=>e}}},$l=(e,t)=>{const i=Xl(t);e.slots.default=()=>i};function ea(e,t){if(null===qn)return e;const i=qn.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o(n.has(e)||(e&&Cn(e.install)?(n.add(e),e.install(a,...t)):Cn(e)&&(n.add(e),e(a,...t))),a),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),a),component:(e,t)=>t?(o.components[e]=t,a):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,a):o.directives[e],mount(n,s,c){if(!l){const d=ja(i,r);return d.appContext=o,s&&t?t(d,n):e(d,n,c),l=!0,a._container=n,n.__vue_app__=a,ps(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,a)};return a}}function na(e,t,i,r,o=!1){if(xn(e))return void e.forEach(((e,n)=>na(e,t&&(xn(t)?t[n]:t),i,r,o)));if(pl(r)&&!o)return;const n=4&r.shapeFlag?ps(r.component)||r.component.proxy:r.el,l=o?null:n,{i:a,r:s}=e,c=t&&t.r,d=a.refs===dn?a.refs={}:a.refs,u=a.setupState;if(null!=c&&c!==s&&(Tn(c)?(d[c]=null,yn(u,c)&&(u[c]=null)):Fo(c)&&(c.value=null)),Cn(s))ys(s,a,12,[l,d]);else{const t=Tn(s),r=Fo(s);if(t||r){const r=()=>{if(e.f){const i=t?d[s]:s.value;o?xn(i)&&bn(i,n):xn(i)?i.includes(n)||i.push(n):t?d[s]=[n]:(s.value=[n],e.k&&(d[e.k]=s.value))}else t?(d[s]=l,yn(u,s)&&(u[s]=l)):Fo(s)&&(s.value=l,e.k&&(d[e.k]=l))};l?(r.id=-1,la(r,i)):r()}}}const la=function(e,t){t&&t.pendingBranch?xn(e)?t.effects.push(...e):t.effects.push(e):js(e,Ds,Is,Ms)};function aa(e){return function(e,t){(Wn||(Wn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:n,createText:l,createComment:a,setText:s,setElementText:c,parentNode:d,nextSibling:u,setScopeId:p=pn,cloneNode:h,insertStaticContent:f}=e,m=(e,t,i,r=null,o=null,n=null,l=!1,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Oa(e,t)&&(r=W(e),B(e,o,n,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case wa:g(e,t,i,r);break;case ka:v(e,t,i,r);break;case Ca:null==e&&b(t,i,r,l);break;case xa:A(e,t,i,r,o,n,l,a,s);break;default:1&u?x(e,t,i,r,o,n,l,a,s):6&u?P(e,t,i,r,o,n,l,a,s):(64&u||128&u)&&c.process(e,t,i,r,o,n,l,a,s,G)}null!=d&&o&&na(d,e&&e.ref,n,t||e,!t)},g=(e,t,r,o)=>{if(null==e)i(t.el=l(t.children),r,o);else{const i=t.el=e.el;t.children!==e.children&&s(i,t.children)}},v=(e,t,r,o)=>{null==e?i(t.el=a(t.children||""),r,o):t.el=e.el},b=(e,t,i,r)=>{[e.el,e.anchor]=f(e.children,t,i,r)},_=({el:e,anchor:t},r,o)=>{let n;for(;e&&e!==t;)n=u(e),i(e,r,o),e=n;i(t,r,o)},y=({el:e,anchor:t})=>{let i;for(;e&&e!==t;)i=u(e),r(e),e=i;r(t)},x=(e,t,i,r,o,n,l,a,s)=>{l=l||"svg"===t.type,null==e?w(t,i,r,o,n,l,a,s):T(e,t,o,n,l,a,s)},w=(e,t,r,l,a,s,d,u)=>{let p,f;const{type:m,props:g,shapeFlag:v,transition:b,patchFlag:_,dirs:y}=e;if(e.el&&void 0!==h&&-1===_)p=e.el=h(e.el);else{if(p=e.el=n(e.type,s,g&&g.is,g),8&v?c(p,e.children):16&v&&C(e.children,p,null,l,a,s&&"foreignObject"!==m,d,u),y&&ta(e,null,l,"created"),g){for(const t in g)"value"===t||Dn(t)||o(p,t,null,g[t],s,e.children,l,a,V);"value"in g&&o(p,"value",null,g.value),(f=g.onVnodeBeforeMount)&&qa(f,l,e)}k(p,e,e.scopeId,d,l)}y&&ta(e,null,l,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&b&&!b.persisted;x&&b.beforeEnter(p),i(p,t,r),((f=g&&g.onVnodeMounted)||x||y)&&la((()=>{f&&qa(f,l,e),x&&b.enter(p),y&&ta(e,null,l,"mounted")}),a)},k=(e,t,i,r,o)=>{if(i&&p(e,i),r)for(let n=0;n{for(let c=s;c{const s=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const h=e.props||dn,f=t.props||dn;let m;i&&sa(i,!1),(m=f.onVnodeBeforeUpdate)&&qa(m,i,t,e),p&&ta(t,e,i,"beforeUpdate"),i&&sa(i,!0);const g=n&&"foreignObject"!==t.type;if(u?E(e.dynamicChildren,u,s,i,r,g,l):a||O(e,t,s,null,i,r,g,l,!1),d>0){if(16&d)S(s,t,h,f,i,r,n);else if(2&d&&h.class!==f.class&&o(s,"class",null,f.class,n),4&d&&o(s,"style",h.style,f.style,n),8&d){const l=t.dynamicProps;for(let t=0;t{m&&qa(m,i,t,e),p&&ta(t,e,i,"updated")}),r)},E=(e,t,i,r,o,n,l)=>{for(let a=0;a{if(i!==r){for(const s in r){if(Dn(s))continue;const c=r[s],d=i[s];c!==d&&"value"!==s&&o(e,s,d,c,a,t.children,n,l,V)}if(i!==dn)for(const s in i)Dn(s)||s in r||o(e,s,i[s],null,a,t.children,n,l,V);"value"in r&&o(e,"value",i.value,r.value)}},A=(e,t,r,o,n,a,s,c,d)=>{const u=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(i(u,r,o),i(p,r,o),C(t.children,r,p,n,a,s,c,d)):h>0&&64&h&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,r,n,a,s,c),(null!=t.key||n&&t===n.subTree)&&ca(e,t,!0)):O(e,t,r,p,n,a,s,c,d)},P=(e,t,i,r,o,n,l,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,i,r,l,s):I(t,i,r,o,n,l,s):D(e,t,s)},I=(e,t,i,r,o,n,l)=>{const a=e.component=function(e,t,i){const r=e.type,o=(t?t.appContext:e.appContext)||ts,n={uid:is++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new xr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hl(r,o),emitsOptions:Gn(r,o),emit:null,emitted:null,propsDefaults:dn,inheritAttrs:r.inheritAttrs,ctx:dn,data:dn,props:dn,attrs:dn,slots:dn,refs:dn,setupState:dn,setupContext:null,suspense:i,suspenseId:i?i.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};n.ctx={_:n},n.root=t?t.root:n,n.emit=Hn.bind(null,n),e.ce&&e.ce(n);return n}(e,r,o);if(hl(e)&&(a.ctx.renderer=G),function(e,t=!1){ss=t;const{props:i,children:r}=e.vnode,o=as(e);Fl(e,i,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const i=t._;i?(e.slots=Ro(t),Fn(t,"_",i)):Jl(t,e.slots={})}else e.slots={},t&&$l(e,t);Fn(e.slots,Ra,1)})(e,r);const n=o?function(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=zo(new Proxy(e.ctx,es));const{setup:r}=i;if(r){const i=e.setupContext=r.length>1?us(e):null;ns(e),Nr();const o=ys(r,e,0,[e.props,i]);if(Br(),ls(),Sn(o)){if(o.then(ls,ls),t)return o.then((i=>{cs(e,i,t)})).catch((t=>{ws(t,e,0)}));e.asyncDep=o}else cs(e,o,t)}else ds(e,t)}(e,t):void 0;ss=!1}(a),a.asyncDep){if(o&&o.registerDep(a,M),!e.el){const e=a.subTree=ja(ka);v(null,e,t,i)}}else M(a,e,t,i,o,n,l)},D=(e,t,i)=>{const r=t.component=e.component;if(function(e,t,i){const{props:r,children:o,component:n}=e,{props:l,children:a,patchFlag:s}=t,c=n.emitsOptions;if(t.dirs||t.transition)return!0;if(!(i&&s>=0))return!(!o&&!a||a&&a.$stable)||r!==l&&(r?!l||el(r,l,c):!!l);if(1024&s)return!0;if(16&s)return r?el(r,l,c):!!l;if(8&s){const e=t.dynamicProps;for(let t=0;tEs&&Ts.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},M=(e,t,i,r,o,n,l)=>{const a=()=>{if(e.isMounted){let t,{next:i,bu:r,u:a,parent:s,vnode:c}=e,u=i;sa(e,!1),i?(i.el=c.el,L(e,i,l)):i=c,r&&Un(r),(t=i.props&&i.props.onVnodeBeforeUpdate)&&qa(t,s,i,c),sa(e,!0);const p=Kn(e),h=e.subTree;e.subTree=p,m(h,p,d(h.el),W(h),e,o,n),i.el=p.el,null===u&&function({vnode:e,parent:t},i){for(;t&&t.subTree===e;)(e=t.vnode).el=i,t=t.parent}(e,p.el),a&&la(a,o),(t=i.props&&i.props.onVnodeUpdated)&&la((()=>qa(t,s,i,c)),o)}else{let l;const{el:a,props:s}=t,{bm:c,m:d,parent:u}=e,p=pl(t);if(sa(e,!1),c&&Un(c),!p&&(l=s&&s.onVnodeBeforeMount)&&qa(l,u,t),sa(e,!0),a&&q){const i=()=>{e.subTree=Kn(e),q(a,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&i())):i()}else{const l=e.subTree=Kn(e);m(null,l,i,r,e,o,n),t.el=l.el}if(d&&la(d,o),!p&&(l=s&&s.onVnodeMounted)){const e=t;la((()=>qa(l,u,e)),o)}256&t.shapeFlag&&e.a&&la(e.a,o),e.isMounted=!0,t=i=r=null}},s=e.effect=new Lr(a,(()=>Ns(e.update)),e.scope),c=e.update=s.run.bind(s);c.id=e.uid,sa(e,!0),c()},L=(e,t,i)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,i,r){const{props:o,attrs:n,vnode:{patchFlag:l}}=e,a=Ro(o),[s]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;Vl(e,t,o,n)&&(c=!0);for(const n in a)t&&(yn(t,n)||(r=zn(n))!==n&&yn(t,r))||(s?!i||void 0===i[n]&&void 0===i[r]||(o[n]=Wl(s,a,n,void 0,e,!0)):delete o[n]);if(n!==a)for(const e in n)t&&yn(t,e)||(delete n[e],c=!0)}else if(8&l){const i=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:o}=e;let n=!0,l=dn;if(32&r.shapeFlag){const e=t._;e?i&&1===e?n=!1:(vn(o,t),i||1!==e||delete o._):(n=!t.$stable,Jl(t,o)),l=t}else t&&($l(e,t),l={default:1});if(n)for(const a in o)Zl(a)||a in l||delete o[a]})(e,t.children,i),Nr(),Us(void 0,e.update),Br()},O=(e,t,i,r,o,n,l,a,s=!1)=>{const d=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void z(d,p,i,r,o,n,l,a,s);if(256&h)return void R(d,p,i,r,o,n,l,a,s)}8&f?(16&u&&V(d,o,n),p!==d&&c(i,p)):16&u?16&f?z(d,p,i,r,o,n,l,a,s):V(d,o,n,!0):(8&u&&c(i,""),16&f&&C(p,i,r,o,n,l,a,s))},R=(e,t,i,r,o,n,l,a,s)=>{t=t||un;const c=(e=e||un).length,d=t.length,u=Math.min(c,d);let p;for(p=0;pd?V(e,o,n,!0,!1,u):C(t,i,r,o,n,l,a,s,u)},z=(e,t,i,r,o,n,l,a,s)=>{let c=0;const d=t.length;let u=e.length-1,p=d-1;for(;c<=u&&c<=p;){const r=e[c],d=t[c]=s?Ha(t[c]):Wa(t[c]);if(!Oa(r,d))break;m(r,d,i,null,o,n,l,a,s),c++}for(;c<=u&&c<=p;){const r=e[u],c=t[p]=s?Ha(t[p]):Wa(t[p]);if(!Oa(r,c))break;m(r,c,i,null,o,n,l,a,s),u--,p--}if(c>u){if(c<=p){const e=p+1,u=ep)for(;c<=u;)B(e[c],o,n,!0),c++;else{const h=c,f=c,g=new Map;for(c=f;c<=p;c++){const e=t[c]=s?Ha(t[c]):Wa(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const _=p-f+1;let y=!1,x=0;const w=new Array(_);for(c=0;c<_;c++)w[c]=0;for(c=h;c<=u;c++){const r=e[c];if(b>=_){B(r,o,n,!0);continue}let d;if(null!=r.key)d=g.get(r.key);else for(v=f;v<=p;v++)if(0===w[v-f]&&Oa(r,t[v])){d=v;break}void 0===d?B(r,o,n,!0):(w[d-f]=c+1,d>=x?x=d:y=!0,m(r,t[d],i,null,o,n,l,a,s),b++)}const k=y?function(e){const t=e.slice(),i=[0];let r,o,n,l,a;const s=e.length;for(r=0;r>1,e[i[a]]0&&(t[r]=i[n-1]),i[n]=r)}}n=i.length,l=i[n-1];for(;n-- >0;)i[n]=l,l=t[l];return i}(w):un;for(v=k.length-1,c=_-1;c>=0;c--){const e=f+c,u=t[e],p=e+1{const{el:l,type:a,transition:s,children:c,shapeFlag:d}=e;if(6&d)return void N(e.component.subTree,t,r,o);if(128&d)return void e.suspense.move(t,r,o);if(64&d)return void a.move(e,t,r,G);if(a===xa){i(l,t,r);for(let e=0;es.enter(l)),n);else{const{leave:e,delayLeave:o,afterLeave:n}=s,a=()=>i(l,t,r),c=()=>{e(l,(()=>{a(),n&&n()}))};o?o(l,a,c):c()}else i(l,t,r)},B=(e,t,i,r=!1,o=!1)=>{const{type:n,props:l,ref:a,children:s,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p}=e;if(null!=a&&na(a,null,i,e,!0),256&d)return void t.ctx.deactivate(e);const h=1&d&&p,f=!pl(e);let m;if(f&&(m=l&&l.onVnodeBeforeUnmount)&&qa(m,t,e),6&d)F(e.component,i,r);else{if(128&d)return void e.suspense.unmount(i,r);h&&ta(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,i,o,G,r):c&&(n!==xa||u>0&&64&u)?V(c,t,i,!1,!0):(n===xa&&384&u||!o&&16&d)&&V(s,t,i),r&&j(e)}(f&&(m=l&&l.onVnodeUnmounted)||h)&&la((()=>{m&&qa(m,t,e),h&&ta(e,null,t,"unmounted")}),i)},j=e=>{const{type:t,el:i,anchor:o,transition:n}=e;if(t===xa)return void U(i,o);if(t===Ca)return void y(e);const l=()=>{r(i),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&e.shapeFlag&&n&&!n.persisted){const{leave:t,delayLeave:r}=n,o=()=>t(i,l);r?r(e.el,l,o):o()}else l()},U=(e,t)=>{let i;for(;e!==t;)i=u(e),r(e),e=i;r(t)},F=(e,t,i)=>{const{bum:r,scope:o,update:n,subTree:l,um:a}=e;r&&Un(r),o.stop(),n&&(n.active=!1,B(l,e,t,i)),a&&la(a,t),la((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,i,r=!1,o=!1,n=0)=>{for(let l=n;l6&e.shapeFlag?W(e.component.subTree):128&e.shapeFlag?e.suspense.next():u(e.anchor||e.el),H=(e,t,i)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,i),Fs(),t._vnode=e},G={p:m,um:B,m:N,r:j,mt:I,mc:C,pc:O,pbc:E,n:W,o:e};let Y,q;t&&([Y,q]=t(G));return{render:H,hydrate:Y,createApp:oa(H,Y)}}(e)}function sa({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function ca(e,t,i=!1){const r=e.children,o=t.children;if(xn(r)&&xn(o))for(let n=0;ne&&(e.disabled||""===e.disabled),ua=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,pa=(e,t)=>{const i=e&&e.to;if(Tn(i)){if(t){return t(i)}return null}return i};function ha(e,t,i,{o:{insert:r},m:o},n=2){0===n&&r(e.targetAnchor,t,i);const{el:l,anchor:a,shapeFlag:s,children:c,props:d}=e,u=2===n;if(u&&r(l,t,i),(!u||da(d))&&16&s)for(let p=0;p{16&b&&d(_,e,t,o,n,l,a,s)};v?g(i,c):u&&g(u,p)}else{t.el=e.el;const r=t.anchor=e.anchor,d=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=da(e.props),g=m?i:d,b=m?r:h;if(l=l||ua(d),y?(p(e.dynamicChildren,y,g,o,n,l,a),ca(e,t,!0)):s||u(e,t,g,b,o,n,l,a,!1),v)m||ha(t,i,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=pa(t.props,f);e&&ha(t,e,null,c,0)}else m&&ha(t,d,h,c,1)}},remove(e,t,i,r,{um:o,o:{remove:n}},l){const{shapeFlag:a,children:s,anchor:c,targetAnchor:d,target:u,props:p}=e;if(u&&n(d),(l||!da(p))&&(n(c),16&a))for(let h=0;h0?Ea||un:null,Ta.pop(),Ea=Ta[Ta.length-1]||null,Aa>0&&Ea&&Ea.push(e),e}function Da(e,t,i,r,o,n){return Ia(Ba(e,t,i,r,o,n,!0))}function Ma(e,t,i,r,o){return Ia(ja(e,t,i,r,o,!0))}function La(e){return!!e&&!0===e.__v_isVNode}function Oa(e,t){return e.type===t.type&&e.key===t.key}const Ra="__vInternal",za=({key:e})=>null!=e?e:null,Na=({ref:e,ref_key:t,ref_for:i})=>null!=e?Tn(e)||Fo(e)||Cn(e)?{i:qn,r:e,k:t,f:!!i}:e:null;function Ba(e,t=null,i=null,r=0,o=null,n=(e===xa?0:1),l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&za(t),ref:t&&Na(t),scopeId:Qn,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return a?(Ga(s,i),128&n&&e.normalize(s)):i&&(s.shapeFlag|=Tn(i)?8:16),Aa>0&&!l&&Ea&&(s.patchFlag>0||6&n)&&32!==s.patchFlag&&Ea.push(s),s}const ja=function(e,t=null,i=null,r=0,o=null,n=!1){e&&e!==ga||(e=ka);if(La(e)){const r=Ua(e,t,!0);return i&&Ga(r,i),r}l=e,Cn(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?Oo(e)||Ra in e?vn({},e):e:null}(t);let{class:e,style:i}=t;e&&!Tn(e)&&(t.class=an(e)),En(i)&&(Oo(i)&&!xn(i)&&(i=vn({},i)),t.style=rn(i))}const a=Tn(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:En(e)?4:Cn(e)?2:0;return Ba(e,t,i,r,o,a,n,!0)};function Ua(e,t,i=!1){const{props:r,ref:o,patchFlag:n,children:l}=e,a=t?Ya(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&za(a),ref:t&&t.ref?i&&o?xn(o)?o.concat(Na(t)):[o,Na(t)]:Na(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xa?-1===n?16:16|n:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ua(e.ssContent),ssFallback:e.ssFallback&&Ua(e.ssFallback),el:e.el,anchor:e.anchor}}function Fa(e=" ",t=0){return ja(wa,null,e,t)}function Va(e="",t=!1){return t?(Sa(),Ma(ka,null,e)):ja(ka,null,e)}function Wa(e){return null==e||"boolean"==typeof e?ja(ka):xn(e)?ja(xa,null,e.slice()):"object"==typeof e?Ha(e):ja(wa,null,String(e))}function Ha(e){return null===e.el||e.memo?e:Ua(e)}function Ga(e,t){let i=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(xn(t))i=16;else if("object"==typeof t){if(65&r){const i=t.default;return void(i&&(i._c&&(i._d=!1),Ga(e,i()),i._c&&(i._d=!0)))}{i=32;const r=t._;r||Ra in t?3===r&&qn&&(1===qn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=qn}}else Cn(t)?(t={default:t,_ctx:qn},i=32):(t=String(t),64&r?(i=16,t=[Fa(t)]):i=8);e.children=t,e.shapeFlag|=i}function Ya(...e){const t={};for(let i=0;it(e,i,void 0,n&&n[i])));else{const i=Object.keys(e);o=new Array(i.length);for(let r=0,l=i.length;r!La(e)||e.type!==ka&&!(e.type===xa&&!Ka(e.children))))?e:null}const Ja=e=>e?as(e)?ps(e)||e.proxy:Ja(e.parent):null,$a=vn(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=>Ja(e.parent),$root:e=>Ja(e.root),$emit:e=>e.emit,$options:e=>Ol(e),$forceUpdate:e=>()=>Ns(e.update),$nextTick:e=>zs.bind(e.proxy),$watch:e=>Qs.bind(e)}),es={get({_:e},t){const{ctx:i,setupState:r,data:o,props:n,accessCache:l,type:a,appContext:s}=e;let c;if("$"!==t[0]){const a=l[t];if(void 0!==a)switch(a){case 1:return r[t];case 2:return o[t];case 4:return i[t];case 3:return n[t]}else{if(r!==dn&&yn(r,t))return l[t]=1,r[t];if(o!==dn&&yn(o,t))return l[t]=2,o[t];if((c=e.propsOptions[0])&&yn(c,t))return l[t]=3,n[t];if(i!==dn&&yn(i,t))return l[t]=4,i[t];Il&&(l[t]=0)}}const d=$a[t];let u,p;return d?("$attrs"===t&&jr(e,0,t),d(e)):(u=a.__cssModules)&&(u=u[t])?u:i!==dn&&yn(i,t)?(l[t]=4,i[t]):(p=s.config.globalProperties,yn(p,t)?p[t]:void 0)},set({_:e},t,i){const{data:r,setupState:o,ctx:n}=e;if(o!==dn&&yn(o,t))o[t]=i;else if(r!==dn&&yn(r,t))r[t]=i;else if(yn(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(n[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:o,propsOptions:n}},l){let a;return!!i[l]||e!==dn&&yn(e,l)||t!==dn&&yn(t,l)||(a=n[0])&&yn(a,l)||yn(r,l)||yn($a,l)||yn(o.config.globalProperties,l)}},ts=ia();let is=0;let rs=null;const os=()=>rs||qn,ns=e=>{rs=e,e.scope.on()},ls=()=>{rs&&rs.scope.off(),rs=null};function as(e){return 4&e.vnode.shapeFlag}let ss=!1;function cs(e,t,i){Cn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:En(t)&&(e.setupState=Zo(t)),ds(e,i)}function ds(e,t,i){const r=e.type;e.render||(e.render=r.render||pn),ns(e),Nr(),Dl(e),Br(),ls()}function us(e){const t=t=>{e.exposed=t||{}};let i;return{get attrs(){return i||(i=function(e){return new Proxy(e.attrs,{get:(t,i)=>(jr(e,0,"$attrs"),t[i])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ps(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Zo(zo(e.exposed)),{get:(t,i)=>i in t?t[i]:i in $a?$a[i](e):void 0}))}const hs=/(?:^|[-_])(\w)/g;function fs(e){return Cn(e)&&e.displayName||e.name}function ms(e,t,i=!1){let r=fs(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const i=e=>{for(const i in e)if(e[i]===t)return i};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?r.replace(hs,(e=>e.toUpperCase())).replace(/[-_]/g,""):i?"App":"Anonymous"}const gs=[];function vs(e,...t){Nr();const i=gs.length?gs[gs.length-1].component:null,r=i&&i.appContext.config.warnHandler,o=function(){let e=gs[gs.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)ys(r,i,11,[e+t.join(""),i&&i.proxy,o.map((({vnode:e})=>`at <${ms(i,e.type)}>`)).join("\n"),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push("\n",...function(e){const t=[];return e.forEach(((e,i)=>{t.push(...0===i?[]:["\n"],...function({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${ms(e.component,e.type,r)}`,n=">"+i;return e.props?[o,...bs(e.props),n]:[o+n]}(e))})),t}(o)),console.warn(...i)}Br()}function bs(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach((i=>{t.push(..._s(i,e[i]))})),i.length>3&&t.push(" ..."),t}function _s(e,t,i){return Tn(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?i?t:[`${e}=${t}`]:Fo(t)?(t=_s(e,Ro(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Cn(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ro(t),i?t:[`${e}=`,t])}function ys(e,t,i,r){let o;try{o=r?e(...r):e()}catch(n){ws(n,t,i)}return o}function xs(e,t,i,r){if(Cn(e)){const o=ys(e,t,i,r);return o&&Sn(o)&&o.catch((e=>{ws(e,t,i)})),o}const o=[];for(let n=0;n>>1;Vs(Ts[r])Vs(e)-Vs(t))),Ms=0;Msnull==e.id?1/0:e.id;function Ws(e){Cs=!1,ks=!0,Us(e),Ts.sort(((e,t)=>Vs(e)-Vs(t)));try{for(Es=0;Ese.value,d=!!e._shallow):Mo(e)?(s=()=>e,r=!0):xn(e)?(u=!0,d=e.some(Mo),s=()=>e.map((e=>Fo(e)?e.value:Mo(e)?Xs(e):Cn(e)?ys(e,a,2):void 0))):s=Cn(e)?t?()=>ys(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),xs(e,a,3,[p])}:pn,t&&r){const e=s;s=()=>Xs(e())}let p=e=>{c=g.onStop=()=>{ys(e,a,4)}};if(ss)return p=pn,t?i&&xs(t,a,3,[s(),u?[]:void 0,p]):s(),pn;let h=u?[]:Gs;const f=()=>{if(g.active)if(t){const e=g.run();(r||d||(u?e.some(((e,t)=>jn(e,h[t]))):jn(e,h)))&&(c&&c(),xs(t,a,3,[e,h===Gs?void 0:h,p]),h=e)}else g.run()};let m;f.allowRecurse=!!t,m="sync"===o?f:"post"===o?()=>la(f,a&&a.suspense):()=>{!a||a.isMounted?function(e){js(e,As,Ss,Ps)}(f):f()};const g=new Lr(s,m);return t?i?f():h=g.run():"post"===o?la(g.run.bind(g),a&&a.suspense):g.run(),()=>{g.stop(),a&&a.scope&&bn(a.scope.effects,g)}}function Qs(e,t,i){const r=this.proxy,o=Tn(e)?e.includes(".")?Zs(r,e):()=>r[e]:e.bind(r,r);let n;Cn(t)?n=t:(n=t.handler,i=t);const l=rs;ns(this);const a=qs(o,n.bind(r),i);return l?ns(l):ls(),a}function Zs(e,t){const i=t.split(".");return()=>{let t=e;for(let e=0;e{Xs(e,t)}));else if(In(e))for(const i in e)Xs(e[i],t);return e}function Ks(){return Js().slots}function Js(){const e=os();return e.setupContext||(e.setupContext=us(e))}function $s(e,t,i){const r=arguments.length;return 2===r?En(t)&&!xn(t)?La(t)?ja(e,null,[t]):ja(e,t):ja(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):3===r&&La(i)&&(i=[i]),ja(e,t,i))}const ec="3.2.25";function tc(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}const ic=tc("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function rc(e){return!!e||""===e}function oc(e,t){if(e===t)return!0;let i=sc(e),r=sc(t);if(i||r)return!(!i||!r)&&e.getTime()===t.getTime();if(i=ac(e),r=ac(t),i||r)return!(!i||!r)&&function(e,t){if(e.length!==t.length)return!1;let i=!0;for(let r=0;i&&re instanceof Date,cc=e=>"string"==typeof e,dc=e=>null!==e&&"object"==typeof e,uc=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},pc=/-(\w)/g,hc=uc((e=>e.replace(pc,((e,t)=>t?t.toUpperCase():"")))),fc=/\B([A-Z])/g,mc=uc((e=>e.replace(fc,"-$1").toLowerCase())),gc=uc((e=>e.charAt(0).toUpperCase()+e.slice(1))),vc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bc="undefined"!=typeof document?document:null,_c=new Map,yc={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const o=t?bc.createElementNS("http://www.w3.org/2000/svg",e):bc.createElement(e,i?{is:i}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>bc.createTextNode(e),createComment:e=>bc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,i,r){const o=i?i.previousSibling:t.lastChild;let n=_c.get(e);if(!n){const t=bc.createElement("template");if(t.innerHTML=r?`${e}`:e,n=t.content,r){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}_c.set(e,n)}return t.insertBefore(n.cloneNode(!0),i),[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}};const xc=/\s*!important$/;function wc(e,t,i){if(ac(i))i.forEach((i=>wc(e,t,i)));else if(t.startsWith("--"))e.setProperty(t,i);else{const r=function(e,t){const i=Cc[t];if(i)return i;let r=On(t);if("filter"!==r&&r in e)return Cc[t]=r;r=gc(r);for(let o=0;odocument.createEvent("Event").timeStamp&&(Ec=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Sc=!!(e&&Number(e[1])<=53)}let Ac=0;const Pc=Promise.resolve(),Ic=()=>{Ac=0};function Dc(e,t,i,r){e.addEventListener(t,i,r)}function Mc(e,t,i,r,o=null){const n=e._vei||(e._vei={}),l=n[t];if(r&&l)l.value=r;else{const[i,a]=function(e){let t;if(Lc.test(e)){let i;for(t={};i=e.match(Lc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[mc(e.slice(2)),t]}(t);if(r){Dc(e,i,n[t]=function(e,t){const i=e=>{const r=e.timeStamp||Ec();(Sc||r>=i.attached-1)&&xs(function(e,t){if(ac(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,i.value),t,5,[e])};return i.value=e,i.attached=(()=>Ac||(Pc.then(Ic),Ac=Ec()))(),i}(r,o),a)}else l&&(!function(e,t,i,r){e.removeEventListener(t,i,r)}(e,i,l,a),n[t]=void 0)}}const Lc=/(?:Once|Passive|Capture)$/;const Oc=/^on[a-z]/;function Rc(e,t){const i=ul(e);class r extends Nc{constructor(e){super(i,e,t)}}return r.def=i,r}const zc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Nc extends zc{constructor(e,t={},i){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,zs((()=>{this._connected||(ud(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let i=0;i{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:i}=e,r=!ac(t),o=t?r?Object.keys(t):t:[];let n;if(r)for(const l in this._props){const e=t[l];(e===Number||e&&e.type===Number)&&(this._props[l]=vc(this._props[l]),(n||(n=Object.create(null)))[l]=!0)}this._numberProps=n;for(const l of Object.keys(this))"_"!==l[0]&&this._setProp(l,this[l],!0,!1);for(const l of o.map(hc))Object.defineProperty(this,l,{get(){return this._getProp(l)},set(e){this._setProp(l,e)}});this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=vc(t)),this._setProp(hc(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,i=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),i&&(!0===t?this.setAttribute(mc(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(mc(e),t+""):t||this.removeAttribute(mc(e))))}_update(){ud(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ja(this._def,lc({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Nc){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const Bc="transition",jc=(e,{slots:t})=>$s(ol,function(e){const t={};for(const A in e)A in Uc||(t[A]=e[A]);if(!1===e.css)return t;const{name:i="v",type:r,duration:o,enterFromClass:n=`${i}-enter-from`,enterActiveClass:l=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:s=n,appearActiveClass:c=l,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:p=`${i}-leave-active`,leaveToClass:h=`${i}-leave-to`}=e,f=function(e){if(null==e)return null;if(dc(e))return[Wc(e.enter),Wc(e.leave)];{const t=Wc(e);return[t,t]}}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:_,onLeave:y,onLeaveCancelled:x,onBeforeAppear:w=v,onAppear:k=b,onAppearCancelled:C=_}=t,T=(e,t,i)=>{Gc(e,t?d:a),Gc(e,t?c:l),i&&i()},E=(e,t)=>{Gc(e,h),Gc(e,p),t&&t()},S=e=>(t,i)=>{const o=e?k:b,l=()=>T(t,e,i);Fc(o,[t,l]),Yc((()=>{Gc(t,e?s:n),Hc(t,e?d:a),Vc(o)||Qc(t,r,m,l)}))};return lc(t,{onBeforeEnter(e){Fc(v,[e]),Hc(e,n),Hc(e,l)},onBeforeAppear(e){Fc(w,[e]),Hc(e,s),Hc(e,c)},onEnter:S(!1),onAppear:S(!0),onLeave(e,t){const i=()=>E(e,t);Hc(e,u),document.body.offsetHeight,Hc(e,p),Yc((()=>{Gc(e,u),Hc(e,h),Vc(y)||Qc(e,r,g,i)})),Fc(y,[e,i])},onEnterCancelled(e){T(e,!1),Fc(_,[e])},onAppearCancelled(e){T(e,!0),Fc(C,[e])},onLeaveCancelled(e){E(e),Fc(x,[e])}})}(e),t);jc.displayName="Transition";const Uc={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};jc.props=lc({},ol.props,Uc);const Fc=(e,t=[])=>{ac(e)?e.forEach((e=>e(...t))):e&&e(...t)},Vc=e=>!!e&&(ac(e)?e.some((e=>e.length>1)):e.length>1);function Wc(e){return vc(e)}function Hc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Gc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:i}=e;i&&(i.delete(t),i.size||(e._vtc=void 0))}function Yc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let qc=0;function Qc(e,t,i,r){const o=e._endId=++qc,n=()=>{o===e._endId&&r()};if(i)return setTimeout(n,i);const{type:l,timeout:a,propCount:s}=function(e,t){const i=window.getComputedStyle(e),r=e=>(i[e]||"").split(", "),o=r("transitionDelay"),n=r("transitionDuration"),l=Zc(o,n),a=r("animationDelay"),s=r("animationDuration"),c=Zc(a,s);let d=null,u=0,p=0;t===Bc?l>0&&(d=Bc,u=l,p=n.length):"animation"===t?c>0&&(d="animation",u=c,p=s.length):(u=Math.max(l,c),d=u>0?l>c?Bc:"animation":null,p=d?d===Bc?n.length:s.length:0);const h=d===Bc&&/\b(transform|all)(,|$)/.test(i.transitionProperty);return{type:d,timeout:u,propCount:p,hasTransform:h}}(e,t);if(!l)return r();const c=l+"end";let d=0;const u=()=>{e.removeEventListener(c,p),n()},p=t=>{t.target===e&&++d>=s&&u()};setTimeout((()=>{dXc(t)+Xc(e[i]))))}function Xc(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const Kc=e=>{const t=e.props["onUpdate:modelValue"];return ac(t)?e=>((e,t)=>{for(let i=0;i{if(t.target.composing)return;let r=e.value;i?r=r.trim():n&&(r=vc(r)),e._assign(r)})),i&&Dc(e,"change",(()=>{e.value=e.value.trim()})),t||(Dc(e,"compositionstart",Jc),Dc(e,"compositionend",$c),Dc(e,"change",$c))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:i,trim:r,number:o}},n){if(e._assign=Kc(n),e.composing)return;if(document.activeElement===e){if(i)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&vc(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},td={created(e,{value:t},i){e.checked=oc(t,i.props.value),e._assign=Kc(i),Dc(e,"change",(()=>{e._assign(function(e){return"_value"in e?e._value:e.value}(e))}))},beforeUpdate(e,{value:t,oldValue:i},r){e._assign=Kc(r),t!==i&&(e.checked=oc(t,r.props.value))}};const id=["ctrl","shift","alt","meta"],rd={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>id.some((i=>e[`${i}Key`]&&!t.includes(i)))},od=(e,t)=>(i,...r)=>{for(let e=0;ei=>{if(!("key"in i))return;const r=mc(i.key);return t.some((e=>e===r||nd[e]===r))?e(i):void 0},ad={beforeMount(e,{value:t},{transition:i}){e._vod="none"===e.style.display?"":e.style.display,i&&t?i.beforeEnter(e):sd(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),sd(e,!0),r.enter(e)):r.leave(e,(()=>{sd(e,!1)})):sd(e,t))},beforeUnmount(e,{value:t}){sd(e,t)}};function sd(e,t){e.style.display=t?e._vod:"none"}const cd=lc({patchProp:(e,t,i,r,o=!1,n,l,a,s)=>{"class"===t?function(e,t,i){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,i){const r=e.style,o=cc(i);if(i&&!o){for(const e in i)wc(r,e,i[e]);if(t&&!cc(t))for(const e in t)null==i[e]&&wc(r,e,"")}else{const n=r.display;o?t!==i&&(r.cssText=i):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=n)}}(e,i,r):(e=>nc.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||Mc(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,i,r){if(r)return"innerHTML"===t||"textContent"===t||!(!(t in e)||!Oc.test(t)||(o=i,"function"!=typeof o));var o;if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Oc.test(t)&&cc(i))return!1;return t in e}(e,t,r,o))?function(e,t,i,r,o,n,l){if("innerHTML"===t||"textContent"===t)return r&&l(r,o,n),void(e[t]=null==i?"":i);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=i;const r=null==i?"":i;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==i&&e.removeAttribute(t))}if(""===i||null==i){const r=typeof e[t];if("boolean"===r)return void(e[t]=rc(i));if(null==i&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(a){}return void e.removeAttribute(t)}}try{e[t]=i}catch(s){}}(e,t,r,n,l,a,s):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,i,r,o){if(r&&t.startsWith("xlink:"))null==i?e.removeAttributeNS(Tc,t.slice(6,t.length)):e.setAttributeNS(Tc,t,i);else{const r=ic(t);null==i||r&&!rc(i)?e.removeAttribute(t):e.setAttribute(t,r?"":i)}}(e,t,r,o))}},yc);let dd;const ud=(...e)=>{(dd||(dd=aa(cd))).render(...e)};var pd="object"==typeof global&&global&&global.Object===Object&&global,hd="object"==typeof self&&self&&self.Object===Object&&self,fd=pd||hd||Function("return this")(),md=fd.Symbol,gd=Object.prototype,vd=gd.hasOwnProperty,bd=gd.toString,_d=md?md.toStringTag:void 0;var yd=Object.prototype.toString;var xd=md?md.toStringTag:void 0;function wd(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xd&&xd in Object(e)?function(e){var t=vd.call(e,_d),i=e[_d];try{e[_d]=void 0;var r=!0}catch(n){}var o=bd.call(e);return r&&(t?e[_d]=i:delete e[_d]),o}(e):function(e){return yd.call(e)}(e)}function kd(e){return null!=e&&"object"==typeof e}function Cd(e){return"symbol"==typeof e||kd(e)&&"[object Symbol]"==wd(e)}var Td=Array.isArray,Ed=md?md.prototype:void 0,Sd=Ed?Ed.toString:void 0;function Ad(e){if("string"==typeof e)return e;if(Td(e))return function(e,t){for(var i=-1,r=null==e?0:e.length,o=Array(r);++i-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var ru=Object.prototype;function ou(e){return kd(e)&&"[object Arguments]"==wd(e)}var nu=Object.prototype,lu=nu.hasOwnProperty,au=nu.propertyIsEnumerable,su=ou(function(){return arguments}())?ou:function(e){return kd(e)&&lu.call(e,"callee")&&!au.call(e,"callee")};var cu="object"==typeof exports&&exports&&!exports.nodeType&&exports,du=cu&&"object"==typeof module&&module&&!module.nodeType&&module,uu=du&&du.exports===cu?fd.Buffer:void 0,pu=(uu?uu.isBuffer:void 0)||function(){return!1},hu={};hu["[object Float32Array]"]=hu["[object Float64Array]"]=hu["[object Int8Array]"]=hu["[object Int16Array]"]=hu["[object Int32Array]"]=hu["[object Uint8Array]"]=hu["[object Uint8ClampedArray]"]=hu["[object Uint16Array]"]=hu["[object Uint32Array]"]=!0,hu["[object Arguments]"]=hu["[object Array]"]=hu["[object ArrayBuffer]"]=hu["[object Boolean]"]=hu["[object DataView]"]=hu["[object Date]"]=hu["[object Error]"]=hu["[object Function]"]=hu["[object Map]"]=hu["[object Number]"]=hu["[object Object]"]=hu["[object RegExp]"]=hu["[object Set]"]=hu["[object String]"]=hu["[object WeakMap]"]=!1;var fu,mu="object"==typeof exports&&exports&&!exports.nodeType&&exports,gu=mu&&"object"==typeof module&&module&&!module.nodeType&&module,vu=gu&&gu.exports===mu&&pd.process,bu=function(){try{var e=gu&&gu.require&&gu.require("util").types;return e||vu&&vu.binding&&vu.binding("util")}catch(t){}}(),_u=bu&&bu.isTypedArray,yu=_u?(fu=_u,function(e){return fu(e)}):function(e){return kd(e)&&iu(e.length)&&!!hu[wd(e)]},xu=Object.prototype.hasOwnProperty;function wu(e,t){var i=Td(e),r=!i&&su(e),o=!i&&!r&&pu(e),n=!i&&!r&&!o&&yu(e),l=i||r||o||n,a=l?function(e,t){for(var i=-1,r=Array(e);++i-1},Ru.prototype.set=function(e,t){var i=this.__data__,r=Lu(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this};var zu=Kd(fd,"Map");function Nu(e,t){var i,r,o=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?o["string"==typeof t?"string":"hash"]:o.map}function Bu(e){var t=-1,i=null==e?0:e.length;for(this.clear();++ta))return!1;var c=n.get(e),d=n.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,h=2&i?new cp:void 0;for(n.set(e,t),n.set(t,e);++u=t||i<0||u&&e-c>=n}function g(){var e=xp();if(m(e))return v(e);a=setTimeout(g,function(e){var i=t-(e-s);return u?kp(i,n-(e-c)):i}(e))}function v(e){return a=void 0,p&&r?h(e):(r=o=void 0,l)}function b(){var e=xp(),i=m(e);if(r=arguments,o=this,s=e,i){if(void 0===a)return f(s);if(u)return clearTimeout(a),a=setTimeout(g,t),h(s)}return void 0===a&&(a=setTimeout(g,t)),l}return t=Nd(t)||0,Md(i)&&(d=!!i.leading,n=(u="maxWait"in i)?wp(Nd(i.maxWait)||0,t):n,p="trailing"in i?!!i.trailing:p),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=s=o=a=void 0},b.flush=function(){return void 0===a?l:v(xp())},b}function Tp(e){for(var t=-1,i=null==e?0:e.length,r={};++tr=>{const o=null==e?void 0:e(r);if(!1===i||!o)return null==t?void 0:t(r)};var Pp;const Ip="undefined"!=typeof window,Dp=e=>"boolean"==typeof e,Mp=e=>"number"==typeof e,Lp=()=>{};function Op(e){return"function"==typeof e?e():qo(e)}function Rp(e){return!!_r&&(wr(e),!0)}function zp(e,t,i={}){const{immediate:r=!0}=i,o=Vo(!1);let n=null;function l(){n&&(clearTimeout(n),n=null)}function a(){o.value=!1,l()}function s(...i){l(),o.value=!0,n=setTimeout((()=>{o.value=!1,n=null,e(...i)}),Op(t))}return r&&(o.value=!0,Ip&&s()),Rp(a),{isPending:o,start:s,stop:a}}function Np(e){var t;const i=Op(e);return null!=(t=null==i?void 0:i.$el)?t:i}Ip&&(null==(Pp=null==window?void 0:window.navigator)?void 0:Pp.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Bp=Ip?window:void 0;function jp(...e){let t,i,r,o;if("string"==typeof e[0]?([i,r,o]=e,t=Bp):[t,i,r,o]=e,!t)return Lp;let n=Lp;const l=Ys((()=>Np(t)),(e=>{n(),e&&(e.addEventListener(i,r,o),n=()=>{e.removeEventListener(i,r,o),n=Lp})}),{immediate:!0,flush:"post"}),a=()=>{l(),n()};return Rp(a),a}function Up(e,t=!1){const i=Vo(),r=()=>i.value=Boolean(e());return r(),function(e,t=!0){os()?xl(e):t?e():zs(e)}(r,t),i}const Fp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vp="__vueuse_ssr_handlers__";Fp[Vp]=Fp[Vp]||{},Fp[Vp];var Wp,Hp,Gp=Object.getOwnPropertySymbols,Yp=Object.prototype.hasOwnProperty,qp=Object.prototype.propertyIsEnumerable;function Qp(e,t,i={}){const r=i,{window:o=Bp}=r,n=((e,t)=>{var i={};for(var r in e)Yp.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Gp)for(var r of Gp(e))t.indexOf(r)<0&&qp.call(e,r)&&(i[r]=e[r]);return i})(r,["window"]);let l;const a=Up((()=>o&&"ResizeObserver"in o)),s=()=>{l&&(l.disconnect(),l=void 0)},c=Ys((()=>Np(e)),(e=>{s(),a.value&&o&&e&&(l=new ResizeObserver(t),l.observe(e,n))}),{immediate:!0,flush:"post"}),d=()=>{s(),c()};return Rp(d),{isSupported:a,stop:d}}(Hp=Wp||(Wp={})).UP="UP",Hp.RIGHT="RIGHT",Hp.DOWN="DOWN",Hp.LEFT="LEFT",Hp.NONE="NONE";var Zp=Object.defineProperty,Xp=Object.getOwnPropertySymbols,Kp=Object.prototype.hasOwnProperty,Jp=Object.prototype.propertyIsEnumerable,$p=(e,t,i)=>t in e?Zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;((e,t)=>{for(var i in t||(t={}))Kp.call(t,i)&&$p(e,i,t[i]);if(Xp)for(var i of Xp(t))Jp.call(t,i)&&$p(e,i,t[i])})({linear:function(e){return e}},{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]});const eh=e=>{let t,i;return"touchend"===e.type?(i=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(i=e.touches[0].clientY,t=e.touches[0].clientX):(i=e.clientY,t=e.clientX),{clientX:t,clientY:i}},th=()=>{},ih=Object.prototype.hasOwnProperty,rh=(e,t)=>ih.call(e,t),oh=Array.isArray,nh=e=>"function"==typeof e,lh=e=>"string"==typeof e,ah=e=>null!==e&&"object"==typeof e,sh=e=>ah(e)&&nh(e.then)&&nh(e.catch),ch=Object.prototype.toString,dh=e=>(e=>ch.call(e))(e).slice(8,-1),uh=/-(\w)/g,ph=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})((e=>e.replace(uh,((e,t)=>t?t.toUpperCase():"")))),hh=e=>void 0===e,fh=e=>"undefined"!=typeof Element&&e instanceof Element,mh=e=>Object.keys(e);class gh extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function vh(e,t){throw new gh(`[${e}] ${t}`)}const bh=(e="")=>e.split(" ").filter((e=>!!e.trim())),_h=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function yh(e,t="px"){return e?lh(e)?e:Mp(e)?`${e}${t}`:void 0:""}let xh; /*! Element Plus Icons Vue v2.0.9 */ var wh=(e,t)=>{let i=e.__vccOpts||e;for(let[r,o]of t)i[r]=o;return i},kh={name:"ArrowDown"},Ch={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Th=[Ba("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)];var Eh=wh(kh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Ch,Th)}],["__file","arrow-down.vue"]]),Sh={name:"ArrowRight"},Ah={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ph=[Ba("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)];var Ih=wh(Sh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Ah,Ph)}],["__file","arrow-right.vue"]]),Dh={name:"ArrowUp"},Mh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Lh=[Ba("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)];var Oh=wh(Dh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Mh,Lh)}],["__file","arrow-up.vue"]]),Rh={name:"CircleCheck"},zh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nh=[Ba("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),Ba("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)];var Bh=wh(Rh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",zh,Nh)}],["__file","circle-check.vue"]]),jh={name:"CircleClose"},Uh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Fh=[Ba("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),Ba("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)];var Vh=wh(jh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Uh,Fh)}],["__file","circle-close.vue"]]),Wh={name:"Close"},Hh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gh=[Ba("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)];var Yh=wh(Wh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Hh,Gh)}],["__file","close.vue"]]),qh={name:"Delete"},Qh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zh=[Ba("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)];var Xh=wh(qh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Qh,Zh)}],["__file","delete.vue"]]),Kh={name:"Edit"},Jh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$h=[Ba("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),Ba("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)];var ef=wh(Kh,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",Jh,$h)}],["__file","edit.vue"]]),tf={name:"Hide"},rf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},of=[Ba("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),Ba("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)];var nf=wh(tf,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",rf,of)}],["__file","hide.vue"]]),lf={name:"Loading"},af={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sf=[Ba("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)];var cf=wh(lf,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",af,sf)}],["__file","loading.vue"]]),df={name:"Minus"},uf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pf=[Ba("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)];var hf=wh(df,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",uf,pf)}],["__file","minus.vue"]]),ff={name:"Plus"},mf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gf=[Ba("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)];var vf=wh(ff,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",mf,gf)}],["__file","plus.vue"]]),bf={name:"Setting"},_f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yf=[Ba("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)];var xf=wh(bf,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",_f,yf)}],["__file","setting.vue"]]),wf={name:"View"},kf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Cf=[Ba("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)];var Tf=wh(wf,[["render",function(e,t,i,r,o,n){return Sa(),Da("svg",kf,Cf)}],["__file","view.vue"]]);const Ef=(e,t)=>{if(!ah(e)||ah(i=e)&&i.__epPropKey)return e;var i;const{values:r,required:o,default:n,type:l,validator:a}=e,s={type:l,required:!!o,validator:r||a?i=>{let o=!1,l=[];if(r&&(l=Array.from(r),rh(e,"default")&&l.push(n),o||(o=l.includes(i))),a&&(o||(o=a(i))),!o&&l.length>0){const e=[...new Set(l)].map((e=>JSON.stringify(e))).join(", ");vs(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(i)}.`)}return o}:void 0,__epPropKey:!0};return rh(e,"default")&&(s.default=n),s},Sf=e=>Tp(Object.entries(e).map((([e,t])=>[e,Ef(t,e)]))),Af=[String,Object,Function],Pf={Close:Yh},If={validating:cf,success:Bh,error:Vh},Df=(e,t)=>{if(e.install=i=>{for(const r of[e,...Object.values(null!=t?t:{})])i.component(r.name,r)},t)for(const[i,r]of Object.entries(t))e[i]=r;return e},Mf=e=>(e.install=th,e),Lf="Tab",Of="Enter",Rf="Space",zf="Escape",Nf="Backspace",Bf=["","default","small","large"],jf={large:40,default:32,small:24},Uf=e=>["",...Bf].includes(e);var Ff=(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))(Ff||{});const Vf=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Wf=()=>Math.floor(1e4*Math.random()),Hf=["class","style"],Gf=/^on[A-Z]/,Yf=Symbol("buttonGroupContextKey"),qf=Symbol("collapseContextKey"),Qf=Symbol(),Zf=Symbol("dialogInjectionKey"),Xf=Symbol("formContextKey"),Kf=Symbol("formItemContextKey"),Jf=Symbol("radioGroupKey"),$f=Symbol("scrollbarContextKey"),em=Symbol("popper"),tm=Symbol("popperContent"),im=e=>{const t=os();return en((()=>{var i,r;return null!=(r=(null==(i=t.proxy)?void 0:i.$props)[e])?r:void 0}))},rm=Vo();function om(e,t){const i=os()?il(Qf,rm):rm;return e?en((()=>{var r,o;return null!=(o=null==(r=i.value)?void 0:r[e])?o:t})):i}const nm=(e,t)=>{var i;const r=[...new Set([...mh(e),...mh(t)])],o={};for(const n of r)o[n]=null!=(i=t[n])?i:e[n];return o},lm=Ef({type:String,values:Bf,required:!1}),am=(e,t={})=>{const i=Vo(void 0),r=t.prop?i:im("size"),o=t.global?i:om("size"),n=t.form?{size:void 0}:il(Xf,void 0),l=t.formItem?{size:void 0}:il(Kf,void 0);return en((()=>r.value||qo(e)||(null==l?void 0:l.size)||(null==n?void 0:n.size)||o.value||""))},sm=e=>{const t=im("disabled"),i=il(Xf,void 0);return en((()=>t.value||qo(e)||(null==i?void 0:i.disabled)||!1))},cm=({from:e,replacement:t,scope:i,version:r,ref:o,type:n="API"},l)=>{Ys((()=>qo(l)),(e=>{}),{immediate:!0})},dm=(e,t,i)=>{let r={offsetX:0,offsetY:0};const o=t=>{const i=t.clientX,o=t.clientY,{offsetX:n,offsetY:l}=r,a=e.value.getBoundingClientRect(),s=a.left,c=a.top,d=a.width,u=a.height,p=document.documentElement.clientWidth,h=document.documentElement.clientHeight,f=-s+n,m=-c+l,g=p-s-d+n,v=h-c-u+l,b=t=>{const a=Math.min(Math.max(n+t.clientX-i,f),g),s=Math.min(Math.max(l+t.clientY-o,m),v);r={offsetX:a,offsetY:s},e.value.style.transform=`translate(${yh(a)}, ${yh(s)})`},_=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",_)},n=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};xl((()=>{Hs((()=>{i.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):n()}))})),Cl((()=>{n()}))},um=(e,t,i,r,o)=>{let n=`${e}-${t}`;return i&&(n+=`-${i}`),r&&(n+=`__${r}`),o&&(n+=`--${o}`),n},pm=e=>{const t=om("namespace","el");return{namespace:t,b:(i="")=>um(t.value,e,i,"",""),e:i=>i?um(t.value,e,"",i,""):"",m:i=>i?um(t.value,e,"","",i):"",be:(i,r)=>i&&r?um(t.value,e,i,r,""):"",em:(i,r)=>i&&r?um(t.value,e,"",i,r):"",bm:(i,r)=>i&&r?um(t.value,e,i,"",r):"",bem:(i,r,o)=>i&&r&&o?um(t.value,e,i,r,o):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const i={};for(const r in e)e[r]&&(i[`--${t.value}-${r}`]=e[r]);return i},cssVarName:e=>`--${t.value}-${e}`,cssVarBlock:i=>{const r={};for(const o in i)i[o]&&(r[`--${t.value}-${e}-${o}`]=i[o]);return r},cssVarBlockName:i=>`--${t.value}-${e}-${i}`}},hm={prefix:Math.floor(1e4*Math.random()),current:0},fm=Symbol("elIdInjection"),mm=e=>{const t=il(fm,hm),i=om("namespace","el");return en((()=>qo(e)||`${i.value}-id-${t.prefix}-${t.current++}`))},gm=()=>({form:il(Xf,void 0),formItem:il(Kf,void 0)}),vm=(e,{formItemContext:t,disableIdGeneration:i,disableIdManagement:r})=>{i||(i=Vo(!1)),r||(r=Vo(!1));const o=Vo();let n;const l=en((()=>{var i;return!!(!e.label&&t&&t.inputIds&&(null==(i=t.inputIds)?void 0:i.length)<=1)}));return xl((()=>{n=Ys([Jo(e,"id"),i],(([e,i])=>{const n=null!=e?e:i?void 0:mm().value;n!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||i||!n||t.addInputId(n)),o.value=n)}),{immediate:!0})})),Tl((()=>{n&&n(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:l,inputId:o}};var bm={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 _m=e=>(t,i)=>ym(t,i,qo(e)),ym=(e,t,i)=>Gu(i,e,e).replace(/\{(\w+)\}/g,((e,i)=>{var r;return`${null!=(r=null==t?void 0:t[i])?r:`{${i}}`}`})),xm=()=>{const e=om("locale");return(e=>({lang:en((()=>qo(e).name)),locale:Fo(e)?e:Vo(e),t:_m(e)}))(en((()=>e.value||bm)))},wm=e=>{Fo(e)||vh("[useLockscreen]","You need to pass a ref param to this function");const t=pm("popup"),i=en((()=>t.bm("parent","hidden")));if(!Ip||_h(document.body,i.value))return;let r=0,o=!1,n="0";const l=()=>{var e,t;e=document.body,t=i.value,e&&t.trim()&&e.classList.remove(...bh(t)),o&&(document.body.style.width=n)};Ys(e,(e=>{if(!e)return void l();o=!_h(document.body,i.value),o&&(n=document.body.style.width),r=(e=>{var t;if(!Ip)return 0;if(void 0!==xh)return xh;const i=document.createElement("div");i.className=`${e}-scrollbar__wrap`,i.style.visibility="hidden",i.style.width="100px",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const r=i.offsetWidth;i.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",i.appendChild(o);const n=o.offsetWidth;return null==(t=i.parentNode)||t.removeChild(i),xh=r-n,xh})(t.namespace.value);const a=document.documentElement.clientHeight{var i;if(!Ip||!e||!t)return"";let r=ph(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(i=document.defaultView)?void 0:i.getComputedStyle(e,"");return o?o[r]:""}catch(o){return e.style[r]}})(document.body,"overflowY");var c,d;r>0&&(a||"scroll"===s)&&o&&(document.body.style.width=`calc(100% - ${r}px)`),c=document.body,d=i.value,c&&d.trim()&&c.classList.add(...bh(d))})),wr((()=>l()))},km=Ef({type:Boolean,default:null}),Cm=Ef({type:Function}),Tm=e=>{if(!e)return{onClick:th,onMousedown:th,onMouseup:th};let t=!1,i=!1;return{onClick:r=>{t&&i&&e(r),t=i=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{i=e.target===e.currentTarget}}};let Em=[];const Sm=e=>{const t=e;t.key===zf&&Em.forEach((e=>e(t)))};let Am;const Pm=`el-popper-container-${Wf()}`,Im=`#${Pm}`,Dm=()=>{yl((()=>{Ip&&(Am&&document.body.querySelector(Im)||(Am=(()=>{const e=document.createElement("div");return e.id=Pm,document.body.appendChild(e),e})()))}))},Mm=Sf({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),Lm=({showAfter:e,hideAfter:t,open:i,close:r})=>{const{registerTimeout:o}=function(){let e;const t=()=>window.clearTimeout(e);return Rp((()=>t())),{registerTimeout:(i,r)=>{t(),e=window.setTimeout(i,r)},cancelTimeout:t}}();return{onOpen:t=>{o((()=>{i(t)}),qo(e))},onClose:e=>{o((()=>{r(e)}),qo(t))}}},Om=Symbol("elForwardRef"),Rm=Vo(0),zm=()=>{const e=om("zIndex",2e3),t=en((()=>e.value+Rm.value));return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Rm.value++,t.value)}};var Nm=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i};const Bm=Sf({size:{type:[Number,String]},color:{type:String}});const jm=Df(Nm(ul(d(c({},{name:"ElIcon",inheritAttrs:!1}),{props:Bm,setup(e){const t=e,i=pm("icon"),r=en((()=>{const{size:e,color:i}=t;return e||i?{fontSize:hh(e)?void 0:yh(e),"--color":i}:{}}));return(e,t)=>(Sa(),Da("i",Ya({class:qo(i).b(),style:qo(r)},e.$attrs),[Xa(e.$slots,"default")],16))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]));let Um;const Fm=["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 Vm(e,t=1,i){var r;Um||(Um=document.createElement("textarea"),document.body.appendChild(Um));const{paddingSize:o,borderSize:n,boxSizing:l,contextStyle:a}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Fm.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:r,borderSize:o,boxSizing:i}}(e);Um.setAttribute("style",`${a};\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`),Um.value=e.value||e.placeholder||"";let s=Um.scrollHeight;const c={};"border-box"===l?s+=n:"content-box"===l&&(s-=o),Um.value="";const d=Um.scrollHeight-o;if(Mp(t)){let e=d*t;"border-box"===l&&(e=e+o+n),s=Math.max(e,s),c.minHeight=`${e}px`}if(Mp(i)){let e=d*i;"border-box"===l&&(e=e+o+n),s=Math.min(e,s)}return c.height=`${s}px`,null==(r=Um.parentNode)||r.removeChild(Um),Um=void 0,c}const Wm=Sf({id:{type:String,default:void 0},size:lm,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Af},prefixIcon:{type:Af},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:[Object,Array,String],default:()=>({})}}),Hm={"update:modelValue":e=>lh(e),input:e=>lh(e),change:e=>lh(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},Gm=["role"],Ym=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],qm=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];const Qm=Df(Nm(ul(d(c({},{name:"ElInput",inheritAttrs:!1}),{props:Wm,emits:Hm,setup(e,{expose:t,emit:i}){const r=e,o={suffix:"append",prefix:"prepend"},n=os(),l=Js().attrs,a=Ks(),s=en((()=>{const e={};return"combobox"===r.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e})),d=((e={})=>{const{excludeListeners:t=!1,excludeKeys:i}=e,r=en((()=>((null==i?void 0:i.value)||[]).concat(Hf))),o=os();return en(o?()=>{var e;return Tp(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(r.value.includes(e)||t&&Gf.test(e)))))}:()=>({}))})({excludeKeys:en((()=>Object.keys(s.value)))}),{form:u,formItem:p}=gm(),{inputId:h}=vm(r,{formItemContext:p}),f=am(),m=sm(),g=pm("input"),v=pm("textarea"),b=Wo(),_=Wo(),y=Vo(!1),x=Vo(!1),w=Vo(!1),k=Vo(!1),C=Vo(),T=Wo(r.inputStyle),E=en((()=>b.value||_.value)),S=en((()=>{var e;return null!=(e=null==u?void 0:u.statusIcon)&&e})),A=en((()=>(null==p?void 0:p.validateState)||"")),P=en((()=>A.value&&If[A.value])),I=en((()=>k.value?Tf:nf)),D=en((()=>[l.style,r.inputStyle])),M=en((()=>[r.inputStyle,T.value,{resize:r.resize}])),L=en((()=>Sp(r.modelValue)?"":String(r.modelValue))),O=en((()=>r.clearable&&!m.value&&!r.readonly&&!!L.value&&(y.value||x.value))),R=en((()=>r.showPassword&&!m.value&&!r.readonly&&!!L.value&&(!!L.value||y.value))),z=en((()=>r.showWordLimit&&!!d.value.maxlength&&("text"===r.type||"textarea"===r.type)&&!m.value&&!r.readonly&&!r.showPassword)),N=en((()=>Array.from(L.value).length)),B=en((()=>!!z.value&&N.value>Number(d.value.maxlength))),j=en((()=>!!a.suffix||!!r.suffixIcon||O.value||r.showPassword||z.value||!!A.value&&S.value)),[U,F]=function(e){const t=Vo();return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:r,value:o}=e.value;if(null==i||null==r)return;const n=o.slice(0,Math.max(0,i)),l=o.slice(Math.max(0,r));t.value={selectionStart:i,selectionEnd:r,value:o,beforeTxt:n,afterTxt:l}},function(){if(null==e.value||null==t.value)return;const{value:i}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:n}=t.value;if(null==r||null==o||null==n)return;let l=i.length;if(i.endsWith(o))l=i.length-o.length;else if(i.startsWith(r))l=r.length;else{const e=r[n-1],t=i.indexOf(e,n-1);-1!==t&&(l=t+1)}e.value.setSelectionRange(l,l)}]}(b);Qp(_,(e=>{if(!z.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;C.value={right:`calc(100% - ${i+15+6}px)`}}));const V=()=>{const{type:e,autosize:t}=r;if(Ip&&"textarea"===e)if(t){const e=ah(t)?t.minRows:void 0,i=ah(t)?t.maxRows:void 0;T.value=c({},Vm(_.value,e,i))}else T.value={minHeight:Vm(_.value).minHeight}},W=()=>{const e=E.value;e&&e.value!==L.value&&(e.value=L.value)},H=e=>{const{el:t}=n.vnode;if(!t)return;const i=Array.from(t.querySelectorAll(`.${g.e(e)}`)).find((e=>e.parentNode===t));if(!i)return;const r=o[e];a[r]?i.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${g.be("group",r)}`).offsetWidth}px)`:i.removeAttribute("style")},G=()=>{H("prefix"),H("suffix")},Y=async e=>{U();let{value:t}=e.target;r.formatter&&(t=r.parser?r.parser(t):t,t=r.formatter(t)),w.value||(t!==L.value?(i("update:modelValue",t),i("input",t),await zs(),W(),F()):W())},q=e=>{i("change",e.target.value)},Q=e=>{i("compositionstart",e),w.value=!0},Z=e=>{var t;i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";w.value=!Vf(o)},X=e=>{i("compositionend",e),w.value&&(w.value=!1,Y(e))},K=()=>{k.value=!k.value,J()},J=async()=>{var e;await zs(),null==(e=E.value)||e.focus()},$=e=>{y.value=!0,i("focus",e)},ee=e=>{var t;y.value=!1,i("blur",e),r.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"blur").catch((e=>{})))},te=e=>{x.value=!1,i("mouseleave",e)},ie=e=>{x.value=!0,i("mouseenter",e)},re=e=>{i("keydown",e)},oe=()=>{i("update:modelValue",""),i("change",""),i("clear"),i("input","")};return Ys((()=>r.modelValue),(()=>{var e;zs((()=>V())),r.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),Ys(L,(()=>W())),Ys((()=>r.type),(async()=>{await zs(),W(),V(),G()})),xl((async()=>{!r.formatter&&r.parser,W(),G(),await zs(),V()})),kl((async()=>{await zs(),G()})),t({input:b,textarea:_,ref:E,textareaStyle:M,autosize:Jo(r,"autosize"),focus:J,blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:oe,resizeTextarea:V}),(e,t)=>ea((Sa(),Da("div",Ya(qo(s),{class:["textarea"===e.type?qo(v).b():qo(g).b(),qo(g).m(qo(f)),qo(g).is("disabled",qo(m)),qo(g).is("exceed",qo(B)),{[qo(g).b("group")]:e.$slots.prepend||e.$slots.append,[qo(g).bm("group","append")]:e.$slots.append,[qo(g).bm("group","prepend")]:e.$slots.prepend,[qo(g).m("prefix")]:e.$slots.prefix||e.prefixIcon,[qo(g).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[qo(g).bm("suffix","password-clear")]:qo(O)&&qo(R)},e.$attrs.class],style:qo(D),role:e.containerRole,onMouseenter:ie,onMouseleave:te}),[Va(" input "),"textarea"!==e.type?(Sa(),Da(xa,{key:0},[Va(" prepend slot "),e.$slots.prepend?(Sa(),Da("div",{key:0,class:an(qo(g).be("group","prepend"))},[Xa(e.$slots,"prepend")],2)):Va("v-if",!0),Ba("div",{class:an([qo(g).e("wrapper"),qo(g).is("focus",y.value)])},[Va(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Sa(),Da("span",{key:0,class:an(qo(g).e("prefix"))},[Ba("span",{class:an(qo(g).e("prefix-inner"))},[Xa(e.$slots,"prefix"),e.prefixIcon?(Sa(),Ma(qo(jm),{key:0,class:an(qo(g).e("icon"))},{default:Xn((()=>[(Sa(),Ma(va(e.prefixIcon)))])),_:1},8,["class"])):Va("v-if",!0)],2)],2)):Va("v-if",!0),Ba("input",Ya({id:qo(h),ref_key:"input",ref:b,class:qo(g).e("inner")},qo(d),{type:e.showPassword?k.value?"text":"password":e.type,disabled:qo(m),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,onCompositionstart:Q,onCompositionupdate:Z,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:re}),null,16,Ym),Va(" suffix slot "),qo(j)?(Sa(),Da("span",{key:1,class:an(qo(g).e("suffix"))},[Ba("span",{class:an(qo(g).e("suffix-inner"))},[qo(O)&&qo(R)&&qo(z)?Va("v-if",!0):(Sa(),Da(xa,{key:0},[Xa(e.$slots,"suffix"),e.suffixIcon?(Sa(),Ma(qo(jm),{key:0,class:an(qo(g).e("icon"))},{default:Xn((()=>[(Sa(),Ma(va(e.suffixIcon)))])),_:1},8,["class"])):Va("v-if",!0)],64)),qo(O)?(Sa(),Ma(qo(jm),{key:1,class:an([qo(g).e("icon"),qo(g).e("clear")]),onMousedown:od(qo(th),["prevent"]),onClick:oe},{default:Xn((()=>[ja(qo(Vh))])),_:1},8,["class","onMousedown"])):Va("v-if",!0),qo(R)?(Sa(),Ma(qo(jm),{key:2,class:an([qo(g).e("icon"),qo(g).e("password")]),onClick:K},{default:Xn((()=>[(Sa(),Ma(va(qo(I))))])),_:1},8,["class"])):Va("v-if",!0),qo(z)?(Sa(),Da("span",{key:3,class:an(qo(g).e("count"))},[Ba("span",{class:an(qo(g).e("count-inner"))},sn(qo(N))+" / "+sn(qo(d).maxlength),3)],2)):Va("v-if",!0),qo(A)&&qo(P)&&qo(S)?(Sa(),Ma(qo(jm),{key:4,class:an([qo(g).e("icon"),qo(g).e("validateIcon"),qo(g).is("loading","validating"===qo(A))])},{default:Xn((()=>[(Sa(),Ma(va(qo(P))))])),_:1},8,["class"])):Va("v-if",!0)],2)],2)):Va("v-if",!0)],2),Va(" append slot "),e.$slots.append?(Sa(),Da("div",{key:1,class:an(qo(g).be("group","append"))},[Xa(e.$slots,"append")],2)):Va("v-if",!0)],64)):(Sa(),Da(xa,{key:1},[Va(" textarea "),Ba("textarea",Ya({id:qo(h),ref_key:"textarea",ref:_,class:qo(v).e("inner")},qo(d),{tabindex:e.tabindex,disabled:qo(m),readonly:e.readonly,autocomplete:e.autocomplete,style:qo(M),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:Q,onCompositionupdate:Z,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:re}),null,16,qm),qo(z)?(Sa(),Da("span",{key:0,style:rn(C.value),class:an(qo(g).e("count"))},sn(qo(N))+" / "+sn(qo(d).maxlength),7)):Va("v-if",!0)],64))],16,Gm)),[[ad,"hidden"!==e.type]])}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),Zm={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"}};var Xm=Nm(ul({__name:"thumb",props:Sf({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),setup(e){const t=e,i=il($f),r=pm("scrollbar");i||vh("Thumb","can not inject scrollbar context");const o=Vo(),n=Vo(),l=Vo({}),a=Vo(!1);let s=!1,c=!1,d=Ip?document.onselectstart:null;const u=en((()=>Zm[t.vertical?"vertical":"horizontal"])),p=en((()=>(({move:e,size:t,bar:i})=>({[i.size]:t,transform:`translate${i.axis}(${e}%)`}))({size:t.size,move:t.move,bar:u.value}))),h=en((()=>o.value[u.value.offset]**2/i.wrapElement[u.value.scrollSize]/t.ratio/n.value[u.value.offset])),f=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),g(e);const i=e.currentTarget;i&&(l.value[u.value.axis]=i[u.value.offset]-(e[u.value.client]-i.getBoundingClientRect()[u.value.direction]))},m=e=>{if(!n.value||!o.value||!i.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[u.value.direction]-e[u.value.client])-n.value[u.value.offset]/2)*h.value/o.value[u.value.offset];i.wrapElement[u.value.scroll]=t*i.wrapElement[u.value.scrollSize]/100},g=e=>{e.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),d=document.onselectstart,document.onselectstart=()=>!1},v=e=>{if(!o.value||!n.value)return;if(!1===s)return;const t=l.value[u.value.axis];if(!t)return;const r=100*(-1*(o.value.getBoundingClientRect()[u.value.direction]-e[u.value.client])-(n.value[u.value.offset]-t))*h.value/o.value[u.value.offset];i.wrapElement[u.value.scroll]=r*i.wrapElement[u.value.scrollSize]/100},b=()=>{s=!1,l.value[u.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),_(),c&&(a.value=!1)};Cl((()=>{_(),document.removeEventListener("mouseup",b)}));const _=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return jp(Jo(i,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),jp(Jo(i,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=s})),(e,t)=>(Sa(),Ma(jc,{name:qo(r).b("fade"),persisted:""},{default:Xn((()=>[ea(Ba("div",{ref_key:"instance",ref:o,class:an([qo(r).e("bar"),qo(r).is(qo(u).key)]),onMousedown:m},[Ba("div",{ref_key:"thumb",ref:n,class:an(qo(r).e("thumb")),style:rn(qo(p)),onMousedown:f},null,38)],34),[[ad,e.always||a.value]])])),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);var Km=Nm(ul({__name:"bar",props:Sf({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(e,{expose:t}){const i=e,r=Vo(0),o=Vo(0);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;o.value=100*e.scrollTop/t*i.ratioY,r.value=100*e.scrollLeft/n*i.ratioX}}}),(e,t)=>(Sa(),Da(xa,null,[ja(Xm,{move:r.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),ja(Xm,{move:o.value,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Jm=Sf({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:[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}}),$m={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Mp)};const eg=Df(Nm(ul(d(c({},{name:"ElScrollbar"}),{props:Jm,emits:$m,setup(e,{expose:t,emit:i}){const r=e,o=pm("scrollbar");let n,l;const a=Vo(),s=Vo(),c=Vo(),d=Vo("0"),u=Vo("0"),p=Vo(),h=Vo(1),f=Vo(1),m=en((()=>{const e={};return r.height&&(e.height=yh(r.height)),r.maxHeight&&(e.maxHeight=yh(r.maxHeight)),[r.wrapStyle,e]})),g=()=>{var e;s.value&&(null==(e=p.value)||e.handleScroll(s.value),i("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};const v=()=>{if(!s.value)return;const e=s.value.offsetHeight-4,t=s.value.offsetWidth-4,i=e**2/s.value.scrollHeight,o=t**2/s.value.scrollWidth,n=Math.max(i,r.minSize),l=Math.max(o,r.minSize);h.value=i/(e-i)/(n/(e-n)),f.value=o/(t-o)/(l/(t-l)),u.value=n+4r.noresize),(e=>{e?(null==n||n(),null==l||l()):(({stop:n}=Qp(c,v)),l=jp("resize",v))}),{immediate:!0}),Ys((()=>[r.maxHeight,r.height]),(()=>{r.native||zs((()=>{var e;v(),s.value&&(null==(e=p.value)||e.handleScroll(s.value))}))})),tl($f,Po({scrollbarElement:a,wrapElement:s})),xl((()=>{r.native||zs((()=>{v()}))})),kl((()=>v())),t({wrap$:s,update:v,scrollTo:function(e,t){ah(e)?s.value.scrollTo(e):Mp(e)&&Mp(t)&&s.value.scrollTo(e,t)},setScrollTop:e=>{Mp(e)&&(s.value.scrollTop=e)},setScrollLeft:e=>{Mp(e)&&(s.value.scrollLeft=e)},handleScroll:g}),(e,t)=>(Sa(),Da("div",{ref_key:"scrollbar$",ref:a,class:an(qo(o).b())},[Ba("div",{ref_key:"wrap$",ref:s,class:an([e.wrapClass,qo(o).e("wrap"),{[qo(o).em("wrap","hidden-default")]:!e.native}]),style:rn(qo(m)),onScroll:g},[(Sa(),Ma(va(e.tag),{ref_key:"resize$",ref:c,class:an([qo(o).e("view"),e.viewClass]),style:rn(e.viewStyle)},{default:Xn((()=>[Xa(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?Va("v-if",!0):(Sa(),Ma(Km,{key:0,ref_key:"barRef",ref:p,height:u.value,width:d.value,always:e.always,"ratio-x":f.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]])),tg=Sf({role:{type:String,values:["dialog","grid","listbox","menu","tooltip","tree"],default:"tooltip"}});var ig=Nm(ul(d(c({},{name:"ElPopperRoot",inheritAttrs:!1}),{props:tg,setup(e,{expose:t}){const i=e,r={triggerRef:Vo(),popperInstanceRef:Vo(),contentRef:Vo(),referenceRef:Vo(),role:en((()=>i.role))};return t(r),tl(em,r),(e,t)=>Xa(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const rg=Sf({arrowOffset:{type:Number,default:5}});var og=Nm(ul(d(c({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:rg,setup(e,{expose:t}){const i=e,r=pm("popper"),{arrowOffset:o,arrowRef:n}=il(tm,void 0);return Ys((()=>i.arrowOffset),(e=>{o.value=e})),Cl((()=>{n.value=void 0})),t({arrowRef:n}),(e,t)=>(Sa(),Da("span",{ref_key:"arrowRef",ref:n,class:an(qo(r).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const ng=ul({name:"ElOnlyChild",setup(e,{slots:t,attrs:i}){var r;const o=il(Om),n=(l=null!=(r=null==o?void 0:o.setForwardRef)?r:th,{mounted(e){l(e)},updated(e){l(e)},unmounted(){l(null)}});var l;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,i);if(!r)return null;if(r.length>1)return null;const o=lg(r);return o?ea(Ua(o,i),[[n]]):null}}});function lg(e){if(!e)return null;const t=e;for(const i of t){if(ah(i))switch(i.type){case ka:continue;case wa:case"svg":return ag(i);case xa:return lg(i.children);default:return i}return ag(i)}return null}function ag(e){const t=pm("only-child");return ja("span",{class:t.e("content")},[e])}const sg=Sf({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var cg=Nm(ul(d(c({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:sg,setup(e,{expose:t}){const i=e,{role:r,triggerRef:o}=il(em,void 0);var n;n=o,tl(Om,{setForwardRef:e=>{n.value=e}});const l=en((()=>s.value?i.id:void 0)),a=en((()=>{if(r&&"tooltip"===r.value)return i.open&&i.id?i.id:void 0})),s=en((()=>{if(r&&"tooltip"!==r.value)return r.value})),c=en((()=>s.value?`${i.open}`:void 0));let d;return xl((()=>{Ys((()=>i.virtualRef),(e=>{e&&(o.value=Np(e))}),{immediate:!0}),Ys((()=>o.value),((e,t)=>{null==d||d(),d=void 0,fh(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const n=i[r];n&&(e.addEventListener(r.slice(2).toLowerCase(),n),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),n))})),d=Ys([l,a,s,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((i,r)=>{Sp(t[r])?e.removeAttribute(i):e.setAttribute(i,t[r])}))}),{immediate:!0})),fh(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Cl((()=>{null==d||d(),d=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Va("v-if",!0):(Sa(),Ma(qo(ng),Ya({key:0},e.$attrs,{"aria-controls":qo(l),"aria-describedby":qo(a),"aria-expanded":qo(c),"aria-haspopup":qo(s)}),{default:Xn((()=>[Xa(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),dg="top",ug="bottom",pg="right",hg="left",fg="auto",mg=[dg,ug,pg,hg],gg="start",vg="end",bg="viewport",_g="popper",yg=mg.reduce((function(e,t){return e.concat([t+"-"+gg,t+"-"+vg])}),[]),xg=[].concat(mg,[fg]).reduce((function(e,t){return e.concat([t,t+"-"+gg,t+"-"+vg])}),[]),wg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kg(e){return e?(e.nodeName||"").toLowerCase():null}function Cg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tg(e){return e instanceof Cg(e).Element||e instanceof Element}function Eg(e){return e instanceof Cg(e).HTMLElement||e instanceof HTMLElement}function Sg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cg(e).ShadowRoot||e instanceof ShadowRoot)}var Ag={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!Eg(o)||!kg(o)||(Object.assign(o.style,i),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},n=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});!Eg(r)||!kg(r)||(Object.assign(r.style,n),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Pg(e){return e.split("-")[0]}var Ig=Math.max,Dg=Math.min,Mg=Math.round;function Lg(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),r=1,o=1;if(Eg(e)&&t){var n=e.offsetHeight,l=e.offsetWidth;l>0&&(r=Mg(i.width)/l||1),n>0&&(o=Mg(i.height)/n||1)}return{width:i.width/r,height:i.height/o,top:i.top/o,right:i.right/r,bottom:i.bottom/o,left:i.left/r,x:i.left/r,y:i.top/o}}function Og(e){var t=Lg(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function Rg(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Sg(i)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zg(e){return Cg(e).getComputedStyle(e)}function Ng(e){return["table","td","th"].indexOf(kg(e))>=0}function Bg(e){return((Tg(e)?e.ownerDocument:e.document)||window.document).documentElement}function jg(e){return"html"===kg(e)?e:e.assignedSlot||e.parentNode||(Sg(e)?e.host:null)||Bg(e)}function Ug(e){return Eg(e)&&"fixed"!==zg(e).position?e.offsetParent:null}function Fg(e){for(var t=Cg(e),i=Ug(e);i&&Ng(i)&&"static"===zg(i).position;)i=Ug(i);return i&&("html"===kg(i)||"body"===kg(i)&&"static"===zg(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Eg(e)&&"fixed"===zg(e).position)return null;var i=jg(e);for(Sg(i)&&(i=i.host);Eg(i)&&["html","body"].indexOf(kg(i))<0;){var r=zg(i);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return i;i=i.parentNode}return null}(e)||t}function Vg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wg(e,t,i){return Ig(e,Dg(t,i))}function Hg(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gg(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var Yg={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,r=e.name,o=e.options,n=i.elements.arrow,l=i.modifiersData.popperOffsets,a=Pg(i.placement),s=Vg(a),c=[hg,pg].indexOf(a)>=0?"height":"width";if(n&&l){var d=function(e,t){return Hg("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gg(e,mg))}(o.padding,i),u=Og(n),p="y"===s?dg:hg,h="y"===s?ug:pg,f=i.rects.reference[c]+i.rects.reference[s]-l[s]-i.rects.popper[c],m=l[s]-i.rects.reference[s],g=Fg(n),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,_=d[p],y=v-u[c]-d[h],x=v/2-u[c]/2+b,w=Wg(_,x,y),k=s;i.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!Rg(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qg(e){return e.split("-")[1]}var Qg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zg(e){var t,i=e.popper,r=e.popperRect,o=e.placement,n=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=l.x,h=void 0===p?0:p,f=l.y,m=void 0===f?0:f,g="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),_=hg,y=dg,x=window;if(c){var w=Fg(i),k="clientHeight",C="clientWidth";if(w===Cg(i)&&("static"!==zg(w=Bg(i)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth")),w=w,o===dg||(o===hg||o===pg)&&n===vg)y=ug,m-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=s?1:-1;if(o===hg||(o===dg||o===ug)&&n===vg)_=pg,h-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-r.width,h*=s?1:-1}var T,E=Object.assign({position:a},c&&Qg),S=!0===d?function(e){var t=e.x,i=e.y,r=window.devicePixelRatio||1;return{x:Mg(t*r)/r||0,y:Mg(i*r)/r||0}}({x:h,y:m}):{x:h,y:m};return h=S.x,m=S.y,s?Object.assign({},E,((T={})[y]=b?"0":"",T[_]=v?"0":"",T.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},E,((t={})[y]=b?m+"px":"",t[_]=v?h+"px":"",t.transform="",t))}var Xg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,r=i.gpuAcceleration,o=void 0===r||r,n=i.adaptive,l=void 0===n||n,a=i.roundOffsets,s=void 0===a||a,c={placement:Pg(t.placement),variation:qg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Zg(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zg(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Kg={passive:!0};var Jg={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=e.options,o=r.scroll,n=void 0===o||o,l=r.resize,a=void 0===l||l,s=Cg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&c.forEach((function(e){e.addEventListener("scroll",i.update,Kg)})),a&&s.addEventListener("resize",i.update,Kg),function(){n&&c.forEach((function(e){e.removeEventListener("scroll",i.update,Kg)})),a&&s.removeEventListener("resize",i.update,Kg)}},data:{}},$g={left:"right",right:"left",bottom:"top",top:"bottom"};function ev(e){return e.replace(/left|right|bottom|top/g,(function(e){return $g[e]}))}var tv={start:"end",end:"start"};function iv(e){return e.replace(/start|end/g,(function(e){return tv[e]}))}function rv(e){var t=Cg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ov(e){return Lg(Bg(e)).left+rv(e).scrollLeft}function nv(e){var t=zg(e),i=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+r)}function lv(e){return["html","body","#document"].indexOf(kg(e))>=0?e.ownerDocument.body:Eg(e)&&nv(e)?e:lv(jg(e))}function av(e,t){var i;void 0===t&&(t=[]);var r=lv(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),n=Cg(r),l=o?[n].concat(n.visualViewport||[],nv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(av(jg(l)))}function sv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cv(e,t){return t===bg?sv(function(e){var t=Cg(e),i=Bg(e),r=t.visualViewport,o=i.clientWidth,n=i.clientHeight,l=0,a=0;return r&&(o=r.width,n=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:n,x:l+ov(e),y:a}}(e)):Tg(t)?function(e){var t=Lg(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}(t):sv(function(e){var t,i=Bg(e),r=rv(e),o=null==(t=e.ownerDocument)?void 0:t.body,n=Ig(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ig(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+ov(e),s=-r.scrollTop;return"rtl"===zg(o||i).direction&&(a+=Ig(i.clientWidth,o?o.clientWidth:0)-n),{width:n,height:l,x:a,y:s}}(Bg(e)))}function dv(e,t,i){var r="clippingParents"===t?function(e){var t=av(jg(e)),i=["absolute","fixed"].indexOf(zg(e).position)>=0&&Eg(e)?Fg(e):e;return Tg(i)?t.filter((function(e){return Tg(e)&&Rg(e,i)&&"body"!==kg(e)})):[]}(e):[].concat(t),o=[].concat(r,[i]),n=o[0],l=o.reduce((function(t,i){var r=cv(e,i);return t.top=Ig(r.top,t.top),t.right=Dg(r.right,t.right),t.bottom=Dg(r.bottom,t.bottom),t.left=Ig(r.left,t.left),t}),cv(e,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function uv(e){var t,i=e.reference,r=e.element,o=e.placement,n=o?Pg(o):null,l=o?qg(o):null,a=i.x+i.width/2-r.width/2,s=i.y+i.height/2-r.height/2;switch(n){case dg:t={x:a,y:i.y-r.height};break;case ug:t={x:a,y:i.y+i.height};break;case pg:t={x:i.x+i.width,y:s};break;case hg:t={x:i.x-r.width,y:s};break;default:t={x:i.x,y:i.y}}var c=n?Vg(n):null;if(null!=c){var d="y"===c?"height":"width";switch(l){case gg:t[c]=t[c]-(i[d]/2-r[d]/2);break;case vg:t[c]=t[c]+(i[d]/2-r[d]/2)}}return t}function pv(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=void 0===r?e.placement:r,n=i.boundary,l=void 0===n?"clippingParents":n,a=i.rootBoundary,s=void 0===a?bg:a,c=i.elementContext,d=void 0===c?_g:c,u=i.altBoundary,p=void 0!==u&&u,h=i.padding,f=void 0===h?0:h,m=Hg("number"!=typeof f?f:Gg(f,mg)),g=d===_g?"reference":_g,v=e.rects.popper,b=e.elements[p?g:d],_=dv(Tg(b)?b:b.contextElement||Bg(e.elements.popper),l,s),y=Lg(e.elements.reference),x=uv({reference:y,element:v,strategy:"absolute",placement:o}),w=sv(Object.assign({},v,x)),k=d===_g?w:y,C={top:_.top-k.top+m.top,bottom:k.bottom-_.bottom+m.bottom,left:_.left-k.left+m.left,right:k.right-_.right+m.right},T=e.modifiersData.offset;if(d===_g&&T){var E=T[o];Object.keys(C).forEach((function(e){var t=[pg,ug].indexOf(e)>=0?1:-1,i=[dg,ug].indexOf(e)>=0?"y":"x";C[e]+=E[i]*t}))}return C}var hv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=i.mainAxis,n=void 0===o||o,l=i.altAxis,a=void 0===l||l,s=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,m=i.allowedAutoPlacements,g=t.options.placement,v=Pg(g),b=s||(v===g||!f?[ev(g)]:function(e){if(Pg(e)===fg)return[];var t=ev(e);return[iv(e),t,iv(t)]}(g)),_=[g].concat(b).reduce((function(e,i){return e.concat(Pg(i)===fg?function(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=i.boundary,n=i.rootBoundary,l=i.padding,a=i.flipVariations,s=i.allowedAutoPlacements,c=void 0===s?xg:s,d=qg(r),u=d?a?yg:yg.filter((function(e){return qg(e)===d})):mg,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var h=p.reduce((function(t,i){return t[i]=pv(e,{placement:i,boundary:o,rootBoundary:n,padding:l})[Pg(i)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=_[0],T=0;T<_.length;T++){var E=_[T],S=Pg(E),A=qg(E)===gg,P=[dg,ug].indexOf(S)>=0,I=P?"width":"height",D=pv(t,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),M=P?A?pg:hg:A?ug:dg;y[I]>x[I]&&(M=ev(M));var L=ev(M),O=[];if(n&&O.push(D[S]<=0),a&&O.push(D[M]<=0,D[L]<=0),O.every((function(e){return e}))){C=E,k=!1;break}w.set(E,O)}if(k)for(var R=function(e){var t=_.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},z=f?3:1;z>0;z--){if("break"===R(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fv(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function mv(e){return[dg,pg,ug,hg].some((function(t){return e[t]>=0}))}var gv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,r=t.rects.reference,o=t.rects.popper,n=t.modifiersData.preventOverflow,l=pv(t,{elementContext:"reference"}),a=pv(t,{altBoundary:!0}),s=fv(l,r),c=fv(a,o,n),d=mv(s),u=mv(c);t.modifiersData[i]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};var vv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.offset,n=void 0===o?[0,0]:o,l=xg.reduce((function(e,i){return e[i]=function(e,t,i){var r=Pg(e),o=[hg,dg].indexOf(r)>=0?-1:1,n="function"==typeof i?i(Object.assign({},t,{placement:e})):i,l=n[0],a=n[1];return l=l||0,a=(a||0)*o,[hg,pg].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}(i,t.rects,n),e}),{}),a=l[t.placement],s=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=l}};var bv={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=uv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var _v={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.mainAxis,n=void 0===o||o,l=i.altAxis,a=void 0!==l&&l,s=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,p=i.tether,h=void 0===p||p,f=i.tetherOffset,m=void 0===f?0:f,g=pv(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:d}),v=Pg(t.placement),b=qg(t.placement),_=!b,y=Vg(v),x=function(e){return"x"===e?"y":"x"}(y),w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(n){var P,I="y"===y?dg:hg,D="y"===y?ug:pg,M="y"===y?"height":"width",L=w[y],O=L+g[I],R=L-g[D],z=h?-C[M]/2:0,N=b===gg?k[M]:C[M],B=b===gg?-C[M]:-k[M],j=t.elements.arrow,U=h&&j?Og(j):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[I],W=F[D],H=Wg(0,k[M],U[M]),G=_?k[M]/2-z-H-V-E.mainAxis:N-H-V-E.mainAxis,Y=_?-k[M]/2+z+H+W+E.mainAxis:B+H+W+E.mainAxis,q=t.elements.arrow&&Fg(t.elements.arrow),Q=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,Z=null!=(P=null==S?void 0:S[y])?P:0,X=L+Y-Z,K=Wg(h?Dg(O,L+G-Z-Q):O,L,h?Ig(R,X):R);w[y]=K,A[y]=K-L}if(a){var J,$="x"===y?dg:hg,ee="x"===y?ug:pg,te=w[x],ie="y"===x?"height":"width",re=te+g[$],oe=te-g[ee],ne=-1!==[dg,hg].indexOf(v),le=null!=(J=null==S?void 0:S[x])?J:0,ae=ne?re:te-k[ie]-C[ie]-le+E.altAxis,se=ne?te+k[ie]+C[ie]-le-E.altAxis:oe,ce=h&&ne?function(e,t,i){var r=Wg(e,t,i);return r>i?i:r}(ae,te,se):Wg(h?ae:re,te,h?se:oe);w[x]=ce,A[x]=ce-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function yv(e,t,i){void 0===i&&(i=!1);var r=Eg(t),o=Eg(t)&&function(e){var t=e.getBoundingClientRect(),i=Mg(t.width)/e.offsetWidth||1,r=Mg(t.height)/e.offsetHeight||1;return 1!==i||1!==r}(t),n=Bg(t),l=Lg(e,o),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!i)&&(("body"!==kg(t)||nv(n))&&(a=function(e){return e!==Cg(e)&&Eg(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):rv(e)}(t)),Eg(t)?((s=Lg(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):n&&(s.x=ov(n))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function xv(e){var t=new Map,i=new Set,r=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),r}function wv(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}var kv={placement:"bottom",modifiers:[],strategy:"absolute"};function Cv(){for(var e=arguments.length,t=new Array(e),i=0;i{const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t},Av=(e,t)=>{for(const i of e)if(!Pv(i,t))return i},Pv=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Iv=(e,t)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Dv(e,t){const i=[...e],r=e.indexOf(t);return-1!==r&&i.splice(r,1),i}const Mv=(()=>{let e=[];return{push:t=>{const i=e[0];i&&t!==i&&i.pause(),e=Dv(e,t),e.unshift(t)},remove:t=>{var i,r;e=Dv(e,t),null==(r=null==(i=e[0])?void 0:i.resume)||r.call(i)}}})(),Lv={cancelable:!0,bubbles:!1},Ov=Symbol("elFocusTrap");var Rv=Nm(ul({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:["focusAfterTrapped","focusAfterReleased","focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const i=Vo();let r,o;var n;n=i=>{e.trapped&&!l.paused&&t("release-requested",i)},xl((()=>{0===Em.length&&document.addEventListener("keydown",Sm),Ip&&Em.push(n)})),Cl((()=>{Em=Em.filter((e=>e!==n)),0===Em.length&&Ip&&document.removeEventListener("keydown",Sm)}));const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=i=>{if(!e.loop&&!e.trapped)return;if(l.paused)return;const{key:r,altKey:o,ctrlKey:n,metaKey:a,currentTarget:s,shiftKey:c}=i,{loop:d}=e,u=r===Lf&&!o&&!n&&!a,p=document.activeElement;if(u&&p){const e=s,[r,o]=(e=>{const t=Sv(e);return[Av(t,e),Av(t.reverse(),e)]})(e);r&&o?c||p!==o?c&&[r,e].includes(p)&&(i.preventDefault(),d&&Iv(o,!0),t("focusout-prevented")):(i.preventDefault(),d&&Iv(r,!0),t("focusout-prevented")):p===e&&(i.preventDefault(),t("focusout-prevented"))}};tl(Ov,{focusTrapRef:i,onKeydown:a}),Ys((()=>e.focusTrapEl),(e=>{e&&(i.value=e)}),{immediate:!0}),Ys([i],(([e],[t])=>{e&&(e.addEventListener("keydown",a),e.addEventListener("focusin",d),e.addEventListener("focusout",u)),t&&(t.removeEventListener("keydown",a),t.removeEventListener("focusin",d),t.removeEventListener("focusout",u))}));const s=e=>{t("focusAfterTrapped",e)},c=e=>t("focusAfterReleased",e),d=r=>{const n=qo(i);if(!n)return;const a=r.target,s=a&&n.contains(a);s&&t("focusin",r),l.paused||e.trapped&&(s?o=a:Iv(o,!0))},u=r=>{const n=qo(i);if(!l.paused&&n)if(e.trapped){const t=r.relatedTarget;Sp(t)||n.contains(t)||setTimeout((()=>{!l.paused&&e.trapped&&Iv(o,!0)}),0)}else{const e=r.target;e&&n.contains(e)||t("focusout",r)}};async function p(){await zs();const t=qo(i);if(t){Mv.push(l);const i=document.activeElement;r=i;if(!t.contains(i)){const r=new Event("focus-trap.focus-after-trapped",Lv);t.addEventListener("focus-trap.focus-after-trapped",s),t.dispatchEvent(r),r.defaultPrevented||zs((()=>{let r=e.focusStartEl;lh(r)||(Iv(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const i=document.activeElement;for(const r of e)if(Iv(r,t),document.activeElement!==i)return})(Sv(t),!0),document.activeElement!==i&&"container"!==r||Iv(t)}))}}}function h(){const e=qo(i);if(e){e.removeEventListener("focus-trap.focus-after-trapped",s);const t=new Event("focus-trap.focus-after-released",Lv);e.addEventListener("focus-trap.focus-after-released",c),e.dispatchEvent(t),t.defaultPrevented||Iv(null!=r?r:document.body,!0),e.removeEventListener("focus-trap.focus-after-released",s),Mv.remove(l)}}return xl((()=>{e.trapped&&p(),Ys((()=>e.trapped),(e=>{e?p():h()}))})),Cl((()=>{e.trapped&&h()})),{onKeydown:a}}}),[["render",function(e,t,i,r,o,n){return Xa(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const zv=Sf({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:xg,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Nv=Sf(d(c({},zv),{id:String,style:{type:[String,Array,Object]},className:{type:[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:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number})),Bv=(e,t)=>{const{placement:i,strategy:r,popperOptions:o}=e,n=d(c({placement:i,strategy:r},o),{modifiers:jv(e)});return function(e,{arrowEl:t,arrowOffset:i}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=i?i:5}})}(n,t),function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(n,null==o?void 0:o.modifiers),n};function jv(e){const{offset:t,gpuAcceleration:i,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:null!=r?r:[]}},{name:"computeStyles",options:{gpuAcceleration:i,adaptive:i}}]}var Uv=Nm(ul(d(c({},{name:"ElPopperContent"}),{props:Nv,emits:["mouseenter","mouseleave","focus","blur","close"],setup(e,{expose:t,emit:i}){const r=e,{popperInstanceRef:o,contentRef:n,triggerRef:l,role:a}=il(em,void 0),s=il(Kf,void 0),{nextZIndex:u}=zm(),p=pm("popper"),h=Vo(),f=Vo("first"),m=Vo(),g=Vo();tl(tm,{arrowRef:m,arrowOffset:g}),s&&(s.addInputId||s.removeInputId)&&tl(Kf,d(c({},s),{addInputId:th,removeInputId:th}));const v=Vo(r.zIndex||u()),b=Vo(!1);let _;const y=en((()=>(e=>{if(Ip)return Np(e)})(r.referenceEl)||qo(l))),x=en((()=>[{zIndex:qo(v)},r.popperStyle])),w=en((()=>[p.b(),p.is("pure",r.pure),p.is(r.effect),r.popperClass])),k=en((()=>a&&"dialog"===a.value?"false":void 0)),C=(e=!0)=>{var t;null==(t=qo(o))||t.update(),e&&(v.value=r.zIndex||u())},T=()=>{var e,t;const i={name:"eventListeners",enabled:r.visible};null==(t=null==(e=qo(o))?void 0:e.setOptions)||t.call(e,(e=>d(c({},e),{modifiers:[...e.modifiers||[],i]}))),C(!1),r.visible&&r.focusOnShow?b.value=!0:!1===r.visible&&(b.value=!1)},E=()=>{i("focus")},S=()=>{f.value="first",i("blur")},A=e=>{var t;r.visible&&!b.value&&(e.target&&(f.value=e.target),b.value=!0,e.relatedTarget&&(null==(t=e.relatedTarget)||t.focus()))},P=()=>{r.trapping||(b.value=!1)},I=()=>{b.value=!1,i("close")};return xl((()=>{let e;Ys(y,(t=>{var i;null==e||e();const l=qo(o);if(null==(i=null==l?void 0:l.destroy)||i.call(l),t){const i=qo(h);n.value=i,o.value=(({referenceEl:e,popperContentEl:t,arrowEl:i})=>{const o=Bv(r,{arrowEl:i,arrowOffset:qo(g)});return Ev(e,t,o)})({referenceEl:t,popperContentEl:i,arrowEl:qo(m)}),e=Ys((()=>t.getBoundingClientRect()),(()=>C()),{immediate:!0})}else o.value=void 0}),{immediate:!0}),Ys((()=>r.triggerTargetEl),((e,t)=>{null==_||_(),_=void 0;const i=qo(e||h.value),o=qo(t||h.value);if(fh(i)){const{ariaLabel:e,id:t}=Xo(r);_=Ys([a,e,k,t],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{Sp(e[r])?i.removeAttribute(t):i.setAttribute(t,e[r])}))}),{immediate:!0})}fh(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),Ys((()=>r.visible),T,{immediate:!0}),Ys((()=>Bv(r,{arrowEl:qo(m),arrowOffset:qo(g)})),(e=>{var t;return null==(t=o.value)?void 0:t.setOptions(e)}))})),Cl((()=>{null==_||_(),_=void 0})),t({popperContentRef:h,popperInstanceRef:o,updatePopper:C,contentStyle:x}),(e,t)=>(Sa(),Da("div",{ref_key:"popperContentRef",ref:h,style:rn(qo(x)),class:an(qo(w)),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[ja(qo(Rv),{trapped:b.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:E,onFocusAfterReleased:S,onFocusin:A,onFocusoutPrevented:P,onReleaseRequested:I},{default:Xn((()=>[Xa(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Fv=Df(ig),Vv=pm("tooltip"),Wv=Sf(d(c(c({},Mm),Nv),{appendTo:{type:[String,Object],default:Im},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:{type:String,default:`${Vv.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Hv=Sf(d(c({},sg),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Of,Rf]}})),Gv=Sf({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),Yv=Symbol("elTooltip");var qv=Nm(ul({name:"ElTooltipContent",components:{ElPopperContent:Uv},inheritAttrs:!1,props:Wv,setup(e){const t=Vo(null),i=Vo(!1),r=Vo(!1),o=Vo(!1),n=Vo(!1),{controlled:l,id:a,open:s,trigger:c,onClose:d,onOpen:u,onShow:p,onHide:h,onBeforeShow:f,onBeforeHide:m}=il(Yv,void 0),g=en((()=>e.persistent));Cl((()=>{n.value=!0}));const v=en((()=>!!qo(g)||qo(s))),b=en((()=>!e.disabled&&qo(s))),_=en((()=>{var t;return null!=(t=e.style)?t:{}})),y=en((()=>!qo(s))),x=()=>{if(qo(l))return!0},w=Ap(x,(()=>{e.enterable&&"hover"===qo(c)&&u()})),k=Ap(x,(()=>{"hover"===qo(c)&&d()}));let C;return Ys((()=>qo(s)),(e=>{e||null==C||C()}),{flush:"post"}),{ariaHidden:y,entering:r,leaving:o,id:a,intermediateOpen:i,contentStyle:_,contentRef:t,destroyed:n,shouldRender:v,shouldShow:b,onClose:d,open:s,onAfterShow:()=>{p(),C=function(e,t,i={}){const{window:r=Bp,ignore:o,capture:n=!0,detectIframe:l=!1}=i;if(!r)return;const a=Vo(!0);let s;const c=i=>{r.clearTimeout(s);const n=Np(e),l=i.composedPath();n&&n!==i.target&&!l.includes(n)&&a.value&&(o&&o.length>0&&o.some((e=>{const t=Np(e);return t&&(i.target===t||l.includes(t))}))||t(i))},d=[jp(r,"click",c,{passive:!0,capture:n}),jp(r,"pointerdown",(t=>{const i=Np(e);a.value=!!i&&!t.composedPath().includes(i)}),{passive:!0}),jp(r,"pointerup",(e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,s=r.setTimeout((()=>c(e)),50)}}),{passive:!0}),l&&jp(r,"blur",(i=>{var r;const o=Np(e);"IFRAME"!==(null==(r=document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(i)}))].filter(Boolean);return()=>d.forEach((e=>e()))}(en((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(qo(l))return;"hover"!==qo(c)&&d()}))},onBeforeEnter:()=>{var e,i;null==(i=null==(e=t.value)?void 0:e.updatePopper)||i.call(e),null==f||f()},onBeforeLeave:()=>{null==m||m()},onContentEnter:w,onContentLeave:k,onTransitionLeave:()=>{h()},onBlur:()=>{e.virtualTriggering||d()}}}}),[["render",function(e,t,i,r,o,n){const l=ma("el-popper-content");return Sa(),Ma(fa,{disabled:!e.teleported,to:e.appendTo},[ja(jc,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:Xn((()=>[e.shouldRender?ea((Sa(),Ma(l,Ya({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:Xn((()=>[Va(" Workaround bug #6378 "),e.destroyed?Va("v-if",!0):Xa(e.$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","onBlur","onClose"])),[[ad,e.shouldShow]]):Va("v-if",!0)])),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Qv=(e,t,i)=>r=>{((e,t)=>oh(e)?e.includes(t):e===t)(qo(e),t)&&i(r)};var Zv=Nm(ul({name:"ElTooltipTrigger",components:{ElPopperTrigger:cg},props:Hv,setup(e){const t=pm("tooltip"),{controlled:i,id:r,open:o,onOpen:n,onClose:l,onToggle:a}=il(Yv,void 0),s=Vo(null),c=()=>{if(qo(i)||e.disabled)return!0},d=Jo(e,"trigger"),u=Ap(c,Qv(d,"hover",n)),p=Ap(c,Qv(d,"hover",l)),h=Ap(c,Qv(d,"click",(e=>{0===e.button&&a(e)}))),f=Ap(c,Qv(d,"focus",n));return{onBlur:Ap(c,Qv(d,"focus",l)),onContextMenu:Ap(c,Qv(d,"contextmenu",(e=>{e.preventDefault(),a(e)}))),onFocus:f,onMouseenter:u,onMouseleave:p,onClick:h,onKeydown:Ap(c,(t=>{const{code:i}=t;e.triggerKeys.includes(i)&&(t.preventDefault(),a(t))})),open:o,id:r,triggerRef:s,ns:t}}}),[["render",function(e,t,i,r,o,n){const l=ma("el-popper-trigger");return Sa(),Ma(l,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:an(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:Xn((()=>[Xa(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:Xv,useModelToggle:Kv,useModelToggleEmits:Jv}=(e=>{const t=`update:${e}`,i=`onUpdate:${e}`;return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:n,shouldProceed:l,onShow:a,onHide:s})=>{const d=os(),{emit:u}=d,p=d.props,h=en((()=>nh(p[i]))),f=en((()=>null===p[e])),m=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),nh(a)&&a(e))},g=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),nh(s)&&s(e))},v=e=>{if(!0===p.disabled||nh(l)&&!l())return;const i=h.value&&Ip;i&&u(t,!0),!f.value&&i||m(e)},b=e=>{if(!0===p.disabled||!Ip)return;const i=h.value&&Ip;i&&u(t,!1),!f.value&&i||g(e)},_=e=>{Dp(e)&&(p.disabled&&e?h.value&&u(t,!1):r.value!==e&&(e?m():g()))};return Ys((()=>p[e]),_),n&&void 0!==d.appContext.config.globalProperties.$route&&Ys((()=>c({},d.proxy.$route)),(()=>{n.value&&r.value&&b()})),xl((()=>{_(p[e])})),{hide:b,show:v,toggle:()=>{r.value?b():v()},hasUpdateHandler:h}},useModelToggleProps:{[e]:km,[i]:Cm},useModelToggleEmits:[t]}})("visible"),$v=ul({name:"ElTooltip",components:{ElPopper:Fv,ElPopperArrow:og,ElTooltipContent:qv,ElTooltipTrigger:Zv},props:c(c(c(c(c(c({},tg),Xv),Wv),Hv),rg),Gv),emits:[...Jv,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){Dm();const i=en((()=>(hh(e.openDelay),e.openDelay||e.showAfter))),r=en((()=>(hh(e.visibleArrow),Dp(e.visibleArrow)?e.visibleArrow:e.showArrow))),o=mm(),n=Vo(null),l=Vo(null),a=()=>{var e;const t=qo(n);t&&(null==(e=t.popperInstanceRef)||e.update())},s=Vo(!1),c=Vo(void 0),{show:d,hide:u,hasUpdateHandler:p}=Kv({indicator:s,toggleReason:c}),{onOpen:h,onClose:f}=Lm({showAfter:i,hideAfter:Jo(e,"hideAfter"),open:d,close:u}),m=en((()=>Dp(e.visible)&&!p.value));tl(Yv,{controlled:m,id:o,open:Io(s),trigger:Jo(e,"trigger"),onOpen:e=>{h(e)},onClose:e=>{f(e)},onToggle:e=>{qo(s)?f(e):h(e)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:a}),Ys((()=>e.disabled),(e=>{e&&s.value&&(s.value=!1)}));return ml((()=>s.value&&u())),{compatShowAfter:i,compatShowArrow:r,popperRef:n,contentRef:l,open:s,hide:u,isFocusInsideContent:()=>{var e,t;const i=null==(t=null==(e=l.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return i&&i.contains(document.activeElement)},updatePopper:a,onOpen:h,onClose:f}}}),eb=["innerHTML"],tb={key:1};const ib=Df(Nm($v,[["render",function(e,t,i,r,o,n){const l=ma("el-tooltip-trigger"),a=ma("el-popper-arrow"),s=ma("el-tooltip-content"),c=ma("el-popper");return Sa(),Ma(c,{ref:"popperRef",role:e.role},{default:Xn((()=>[ja(l,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Xn((()=>[e.$slots.default?Xa(e.$slots,"default",{key:0}):Va("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ja(s,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Xn((()=>[Xa(e.$slots,"content",{},(()=>[e.rawContent?(Sa(),Da("span",{key:0,innerHTML:e.content},null,8,eb)):(Sa(),Da("span",tb,sn(e.content),1))])),e.compatShowArrow?(Sa(),Ma(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Va("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"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),rb=Sf({size:lm,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Af},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Af,default:()=>cf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),ob={click:e=>e instanceof MouseEvent};function nb(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var i=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function lb(e){return Math.min(1,Math.max(0,e))}function ab(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sb(e){return e<=1?"".concat(100*Number(e),"%"):e}function cb(e){return 1===e.length?"0"+e:String(e)}function db(e,t,i){e=nb(e,255),t=nb(t,255),i=nb(i,255);var r=Math.max(e,t,i),o=Math.min(e,t,i),n=0,l=0,a=(r+o)/2;if(r===o)l=0,n=0;else{var s=r-o;switch(l=a>.5?s/(2-r-o):s/(r+o),r){case e:n=(t-i)/s+(t1&&(i-=1),i<1/6?e+6*i*(t-e):i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function pb(e,t,i){e=nb(e,255),t=nb(t,255),i=nb(i,255);var r=Math.max(e,t,i),o=Math.min(e,t,i),n=0,l=r,a=r-o,s=0===r?0:a/r;if(r===o)n=0;else{switch(r){case e:n=(t-i)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=vb(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=i.format)&&void 0!==r?r:o.format,this.gradientType=i.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,i=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ab(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=pb(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=pb(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=db(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=db(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),hb(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,i,r,o){var n,l=[cb(Math.round(e).toString(16)),cb(Math.round(t).toString(16)),cb(Math.round(i).toString(16)),cb((n=r,Math.round(255*parseFloat(n)).toString(16)))];return o&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},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 e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(i,")"):"rgba(".concat(e,", ").concat(t,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*nb(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*nb(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+hb(this.r,this.g,this.b,!1),t=0,i=Object.entries(gb);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(i=this.toRgbString()),"prgb"===e&&(i=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(i=this.toHexString()),"hex3"===e&&(i=this.toHexString(!0)),"hex4"===e&&(i=this.toHex8String(!0)),"hex8"===e&&(i=this.toHex8String()),"name"===e&&(i=this.toName()),"hsl"===e&&(i=this.toHslString()),"hsv"===e&&(i=this.toHsvString()),i||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var i=this.toHsl();return i.l+=t/100,i.l=lb(i.l),new e(i)},e.prototype.brighten=function(t){void 0===t&&(t=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(-t/100*255))),i.g=Math.max(0,Math.min(255,i.g-Math.round(-t/100*255))),i.b=Math.max(0,Math.min(255,i.b-Math.round(-t/100*255))),new e(i)},e.prototype.darken=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.l-=t/100,i.l=lb(i.l),new e(i)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.s-=t/100,i.s=lb(i.s),new e(i)},e.prototype.saturate=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.s+=t/100,i.s=lb(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var i=this.toHsl(),r=(i.h+t)%360;return i.h=r<0?360+r:r,new e(i)},e.prototype.mix=function(t,i){void 0===i&&(i=50);var r=this.toRgb(),o=new e(t).toRgb(),n=i/100;return new e({r:(o.r-r.r)*n+r.r,g:(o.g-r.g)*n+r.g,b:(o.b-r.b)*n+r.b,a:(o.a-r.a)*n+r.a})},e.prototype.analogous=function(t,i){void 0===t&&(t=6),void 0===i&&(i=30);var r=this.toHsl(),o=360/i,n=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,n.push(new e(r));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var i=this.toHsv(),r=i.h,o=i.s,n=i.v,l=[],a=1/t;t--;)l.push(new e({h:r,s:o,v:n})),n=(n+a)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),i=t.h;return[this,new e({h:(i+72)%360,s:t.s,l:t.l}),new e({h:(i+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var i=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(i.r-r.r)*i.a,g:r.g+(i.g-r.g)*i.a,b:r.b+(i.b-r.b)*i.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var i=this.toHsl(),r=i.h,o=[this],n=360/t,l=1;l"text"===r.type)));const n=il(Yf,void 0),l=om("button"),a=pm("button"),{form:s}=gm(),c=am(en((()=>null==n?void 0:n.size))),d=sm(),u=Vo(),p=en((()=>r.type||(null==n?void 0:n.type)||"")),h=en((()=>{var e,t,i;return null!=(i=null!=(t=r.autoInsertSpace)?t:null==(e=l.value)?void 0:e.autoInsertSpace)&&i})),f=en((()=>{var e;const t=null==(e=o.default)?void 0:e.call(o);if(h.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===wa){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),m=function(e){const t=sm(),i=pm("button");return en((()=>{let r={};const o=e.color;if(o){const n=new kb(o),l=e.dark?n.tint(20).toString():Cb(n,20);if(e.plain)r=i.cssVarBlock({"bg-color":e.dark?Cb(n,90):n.tint(90).toString(),"text-color":o,"border-color":e.dark?Cb(n,50):n.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(r[i.cssVarBlockName("disabled-bg-color")]=e.dark?Cb(n,90):n.tint(90).toString(),r[i.cssVarBlockName("disabled-text-color")]=e.dark?Cb(n,50):n.tint(50).toString(),r[i.cssVarBlockName("disabled-border-color")]=e.dark?Cb(n,80):n.tint(80).toString());else{const a=e.dark?Cb(n,30):n.tint(30).toString(),s=n.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(r=i.cssVarBlock({"bg-color":o,"text-color":s,"border-color":o,"hover-bg-color":a,"hover-text-color":s,"hover-border-color":a,"active-bg-color":l,"active-border-color":l}),t.value){const t=e.dark?Cb(n,50):n.tint(50).toString();r[i.cssVarBlockName("disabled-bg-color")]=t,r[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,r[i.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(r),g=e=>{"reset"===r.nativeType&&(null==s||s.resetFields()),i("click",e)};return t({ref:u,size:c,type:p,disabled:d,shouldAddSpace:f}),(e,t)=>(Sa(),Da("button",{ref_key:"_ref",ref:u,class:an([qo(a).b(),qo(a).m(qo(p)),qo(a).m(qo(c)),qo(a).is("disabled",qo(d)),qo(a).is("loading",e.loading),qo(a).is("plain",e.plain),qo(a).is("round",e.round),qo(a).is("circle",e.circle),qo(a).is("text",e.text),qo(a).is("link",e.link),qo(a).is("has-bg",e.bg)]),"aria-disabled":qo(d)||e.loading,disabled:qo(d)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:rn(qo(m)),onClick:g},[e.loading?(Sa(),Da(xa,{key:0},[e.$slots.loading?Xa(e.$slots,"loading",{key:0}):(Sa(),Ma(qo(jm),{key:1,class:an(qo(a).is("loading"))},{default:Xn((()=>[(Sa(),Ma(va(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Sa(),Ma(qo(jm),{key:1},{default:Xn((()=>[e.icon?(Sa(),Ma(va(e.icon),{key:0})):Xa(e.$slots,"icon",{key:1})])),_:3})):Va("v-if",!0),e.$slots.default?(Sa(),Da("span",{key:2,class:an({[qo(a).em("text","expand")]:qo(f)})},[Xa(e.$slots,"default")],2)):Va("v-if",!0)],14,Tb))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Sb={size:rb.size,type:rb.type};var Ab=Nm(ul(d(c({},{name:"ElButtonGroup"}),{props:Sb,setup(e){const t=e;tl(Yf,Po({size:Jo(t,"size"),type:Jo(t,"type")}));const i=pm("button");return(e,t)=>(Sa(),Da("div",{class:an(`${qo(i).b("group")}`)},[Xa(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Pb=Df(Eb,{ButtonGroup:Ab}),Ib=Mf(Ab),Db=new Map;let Mb;function Lb(e,t){let i=[];return Array.isArray(t.arg)?i=t.arg:fh(t.arg)&&i.push(t.arg),function(r,o){const n=t.instance.popperRef,l=r.target,a=null==o?void 0:o.target,s=!t||!t.instance,c=!l||!a,d=e.contains(l)||e.contains(a),u=e===l,p=i.length&&i.some((e=>null==e?void 0:e.contains(l)))||i.length&&i.includes(a),h=n&&(n.contains(l)||n.contains(a));s||c||d||u||p||h||t.value(r,o)}}Ip&&(document.addEventListener("mousedown",(e=>Mb=e)),document.addEventListener("mouseup",(e=>{for(const t of Db.values())for(const{documentHandler:i}of t)i(e,Mb)})));const Ob={beforeMount(e,t){Db.has(e)||Db.set(e,[]),Db.get(e).push({documentHandler:Lb(e,t),bindingFn:t.value})},updated(e,t){Db.has(e)||Db.set(e,[]);const i=Db.get(e),r=i.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Lb(e,t),bindingFn:t.value};r>=0?i.splice(r,1,o):i.push(o)},unmounted(e){Db.delete(e)}},Rb={beforeMount(e,t){let i=null,r=null;const o=()=>t.value&&t.value(),n=()=>{r&&(clearTimeout(r),r=null),i&&(clearInterval(i),i=null)};e.addEventListener("mousedown",(e=>{0===e.button&&(o(),document.addEventListener("mouseup",n,{once:!0}),n(),r=setTimeout((()=>{i=setInterval((()=>{o()}),100)}),600))}))}},zb=Sf({size:lm,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Nb=Sf(d(c({},zb),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),Bb={"update:modelValue":e=>lh(e)||Mp(e)||Dp(e),change:e=>lh(e)||Mp(e)||Dp(e)},jb=(e,t)=>{const i=Vo(),r=il(Jf,void 0),o=en((()=>!!r)),n=en({get:()=>o.value?r.modelValue:e.modelValue,set(n){o.value?r.changeEvent(n):t&&t("update:modelValue",n),i.value.checked=e.modelValue===e.label}}),l=am(en((()=>null==r?void 0:r.size))),a=sm(en((()=>null==r?void 0:r.disabled))),s=Vo(!1),c=en((()=>a.value||o.value&&n.value!==e.label?-1:0));return{radioRef:i,isGroup:o,radioGroup:r,focus:s,size:l,disabled:a,tabIndex:c,modelValue:n}},Ub=["value","name","disabled"];var Fb=Nm(ul(d(c({},{name:"ElRadio"}),{props:Nb,emits:Bb,setup(e,{emit:t}){const i=e,r=pm("radio"),{radioRef:o,radioGroup:n,focus:l,size:a,disabled:s,modelValue:c}=jb(i,t);function d(){zs((()=>t("change",c.value)))}return(e,t)=>{var i;return Sa(),Da("label",{class:an([qo(r).b(),qo(r).is("disabled",qo(s)),qo(r).is("focus",qo(l)),qo(r).is("bordered",e.border),qo(r).is("checked",qo(c)===e.label),qo(r).m(qo(a))])},[Ba("span",{class:an([qo(r).e("input"),qo(r).is("disabled",qo(s)),qo(r).is("checked",qo(c)===e.label)])},[ea(Ba("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Fo(c)?c.value=e:null),class:an(qo(r).e("original")),value:e.label,name:e.name||(null==(i=qo(n))?void 0:i.name),disabled:qo(s),type:"radio",onFocus:t[1]||(t[1]=e=>l.value=!0),onBlur:t[2]||(t[2]=e=>l.value=!1),onChange:d},null,42,Ub),[[td,qo(c)]]),Ba("span",{class:an(qo(r).e("inner"))},null,2)],2),Ba("span",{class:an(qo(r).e("label")),onKeydown:t[3]||(t[3]=od((()=>{}),["stop"]))},[Xa(e.$slots,"default",{},(()=>[Fa(sn(e.label),1)]))],34)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Vb=Sf(d(c({},zb),{name:{type:String,default:""}})),Wb=["value","name","disabled"];var Hb=Nm(ul(d(c({},{name:"ElRadioButton"}),{props:Vb,setup(e){const t=e,i=pm("radio"),{radioRef:r,focus:o,size:n,disabled:l,modelValue:a,radioGroup:s}=jb(t),c=en((()=>({backgroundColor:(null==s?void 0:s.fill)||"",borderColor:(null==s?void 0:s.fill)||"",boxShadow:(null==s?void 0:s.fill)?`-1px 0 0 0 ${s.fill}`:"",color:(null==s?void 0:s.textColor)||""})));return(e,t)=>{var d;return Sa(),Da("label",{class:an([qo(i).b("button"),qo(i).is("active",qo(a)===e.label),qo(i).is("disabled",qo(l)),qo(i).is("focus",qo(o)),qo(i).bm("button",qo(n))])},[ea(Ba("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>Fo(a)?a.value=e:null),class:an(qo(i).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(d=qo(s))?void 0:d.name),disabled:qo(l),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,Wb),[[td,qo(a)]]),Ba("span",{class:an(qo(i).be("button","inner")),style:rn(qo(a)===e.label?qo(c):{}),onKeydown:t[3]||(t[3]=od((()=>{}),["stop"]))},[Xa(e.$slots,"default",{},(()=>[Fa(sn(e.label),1)]))],38)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Gb=Sf({id:{type:String,default:void 0},size:lm,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}}),Yb=Bb,qb=["id","aria-label","aria-labelledby"];var Qb=Nm(ul(d(c({},{name:"ElRadioGroup"}),{props:Gb,emits:Yb,setup(e,{emit:t}){const i=e,r=pm("radio"),o=mm(),n=Vo(),{formItem:l}=gm(),{inputId:a,isLabeledByFormItem:s}=vm(i,{formItemContext:l});xl((()=>{const e=n.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const u=en((()=>i.name||o.value));return tl(Jf,Po(d(c({},Xo(i)),{changeEvent:e=>{t("update:modelValue",e),zs((()=>t("change",e)))},name:u}))),Ys((()=>i.modelValue),(()=>{i.validateEvent&&(null==l||l.validate("change").catch((e=>{})))})),(e,t)=>(Sa(),Da("div",{id:qo(a),ref_key:"radioGroupRef",ref:n,class:an(qo(r).b("group")),role:"radiogroup","aria-label":qo(s)?void 0:e.label||"radio-group","aria-labelledby":qo(s)?qo(l).labelId:void 0},[Xa(e.$slots,"default")],10,qb))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);Df(Fb,{RadioButton:Hb,RadioGroup:Qb});const Zb=Mf(Qb),Xb=Mf(Hb),Kb=Sf({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Bf,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Jb={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent};const $b=Df(Nm(ul(d(c({},{name:"ElTag"}),{props:Kb,emits:Jb,setup(e,{emit:t}){const i=e,r=am(),o=pm("tag"),n=en((()=>{const{type:e,hit:t,effect:n,closable:l,round:a}=i;return[o.b(),o.is("closable",l),o.m(e),o.m(r.value),o.m(n),o.is("hit",t),o.is("round",a)]})),l=e=>{t("close",e)},a=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(Sa(),Da("span",{key:0,class:an(qo(n)),style:rn({backgroundColor:e.color}),onClick:a},[Ba("span",{class:an(qo(o).e("content"))},[Xa(e.$slots,"default")],2),e.closable?(Sa(),Ma(qo(jm),{key:0,class:an(qo(o).e("close")),onClick:od(l,["stop"])},{default:Xn((()=>[ja(qo(Yh))])),_:1},8,["class","onClick"])):Va("v-if",!0)],6)):(Sa(),Ma(jc,{key:1,name:`${qo(o).namespace.value}-zoom-in-center`,appear:""},{default:Xn((()=>[Ba("span",{class:an(qo(n)),style:rn({backgroundColor:e.color}),onClick:a},[Ba("span",{class:an(qo(o).e("content"))},[Xa(e.$slots,"default")],2),e.closable?(Sa(),Ma(qo(jm),{key:0,class:an(qo(o).e("close")),onClick:od(l,["stop"])},{default:Xn((()=>[ja(qo(Yh))])),_:1},8,["class","onClick"])):Va("v-if",!0)],6)])),_:3},8,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]])),e_=e=>typeof Mp(e),t_=Sf({accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}}),i_={"update:modelValue":e_,change:e_};var r_=Nm(ul(d(c({},{name:"ElCollapse"}),{props:t_,emits:i_,setup(e,{expose:t,emit:i}){const r=e,o=pm("collapse"),n=Vo(Yu(r.modelValue)),l=e=>{n.value=e;const t=r.accordion?n.value[0]:n.value;i("update:modelValue",t),i("change",t)};return Ys((()=>r.modelValue),(()=>n.value=Yu(r.modelValue)),{deep:!0}),tl(qf,{activeNames:n,handleItemClick:e=>{if(r.accordion)l([!n.value[0]&&0!==n.value[0]||n.value[0]!==e?e:""]);else{const t=[...n.value],i=t.indexOf(e);i>-1?t.splice(i,1):t.push(e),l(t)}}}),t({activeNames:n,setActiveNames:l}),(e,t)=>(Sa(),Da("div",{class:an(qo(o).b()),role:"tablist","aria-multiselectable":"true"},[Xa(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);var o_=Nm(ul(d(c({},{name:"ElCollapseTransition"}),{setup(e){const t=pm("collapse-transition"),i={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return(e,r)=>(Sa(),Ma(jc,Ya({name:qo(t).b()},function(e){const t={};for(const i in e)t[Bn(i)]=e[i];return t}(i)),{default:Xn((()=>[Xa(e.$slots,"default")])),_:3},16,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);o_.install=e=>{e.component(o_.name,o_)};const n_=o_,l_=Sf({title:{type:String,default:""},name:{type:[String,Number],default:()=>Wf()},disabled:Boolean}),a_=["aria-expanded","aria-controls","aria-describedby"],s_=["id","tabindex","onKeypress"],c_=["id","aria-hidden","aria-labelledby"];var d_=Nm(ul(d(c({},{name:"ElCollapseItem"}),{props:l_,setup(e,{expose:t}){const i=e,r=il(qf),o=pm("collapse"),n=Vo(!1),l=Vo(!1),a=Vo(Wf()),s=en((()=>null==r?void 0:r.activeNames.value.includes(i.name))),c=()=>{setTimeout((()=>{l.value?l.value=!1:n.value=!0}),50)},d=()=>{i.disabled||(null==r||r.handleItemClick(i.name),n.value=!1,l.value=!0)},u=()=>{null==r||r.handleItemClick(i.name)};return t({isActive:s}),(e,t)=>(Sa(),Da("div",{class:an([qo(o).b("item"),qo(o).is("active",qo(s)),qo(o).is("disabled",e.disabled)])},[Ba("div",{role:"tab","aria-expanded":qo(s),"aria-controls":qo(o).b(`content-${a.value}`),"aria-describedby":qo(o).b(`content-${a.value}`)},[Ba("div",{id:qo(o).b(`head-${a.value}`),class:an([qo(o).be("item","header"),qo(o).is("active",qo(s)),{focusing:n.value&&!e.disabled}]),role:"button",tabindex:e.disabled?-1:0,onClick:d,onKeypress:ld(od(u,["stop","prevent"]),["space","enter"]),onFocus:c,onBlur:t[0]||(t[0]=e=>n.value=!1)},[Xa(e.$slots,"title",{},(()=>[Fa(sn(e.title),1)])),ja(qo(jm),{class:an([qo(o).be("item","arrow"),qo(o).is("active",qo(s))])},{default:Xn((()=>[ja(qo(Ih))])),_:1},8,["class"])],42,s_)],8,a_),ja(qo(n_),null,{default:Xn((()=>[ea(Ba("div",{id:qo(o).b(`content-${a.value}`),class:an(qo(o).be("item","wrap")),role:"tabpanel","aria-hidden":!qo(s),"aria-labelledby":qo(o).b(`head-${a.value}`)},[Ba("div",{class:an(qo(o).be("item","content"))},[Xa(e.$slots,"default")],2)],10,c_),[[ad,qo(s)]])])),_:3})],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const u_=Df(r_,{CollapseItem:d_}),p_=Mf(d_);let h_=!1;function f_(e,t){if(!Ip)return;const i=function(e){var i;null==(i=t.drag)||i.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,h_=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;h_||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r),document.addEventListener("touchmove",i),document.addEventListener("touchend",r),h_=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}var m_=Nm(ul({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=pm("color-alpha-slider"),i=os(),r=Wo(null),o=Wo(null),n=Vo(0),l=Vo(0),a=Vo(null);function s(t){const o=i.vnode.el.getBoundingClientRect(),{clientX:n,clientY:l}=eh(t);if(e.vertical){let t=l-o.top;t=Math.max(r.value.offsetHeight/2,t),t=Math.min(t,o.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((t-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*100))}else{let t=n-o.left;t=Math.max(r.value.offsetWidth/2,t),t=Math.min(t,o.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((t-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*100))}}function c(){n.value=function(){if(e.vertical)return 0;const t=i.vnode.el,o=e.color.get("alpha");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/100):0}(),l.value=function(){const t=i.vnode.el;if(!e.vertical)return 0;const o=e.color.get("alpha");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/100):0}(),a.value=function(){if(e.color&&e.color.value){const{r:t,g:i,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${i}, ${r}, 0) 0%, rgba(${t}, ${i}, ${r}, 1) 100%)`}return null}()}return Ys((()=>e.color.get("alpha")),(()=>{c()})),Ys((()=>e.color.value),(()=>{c()})),xl((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};f_(o.value,e),f_(r.value,e),c()})),{thumb:r,bar:o,thumbLeft:n,thumbTop:l,background:a,handleClick:function(e){e.target!==r.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,i,r,o,n){return Sa(),Da("div",{class:an([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ba("div",{ref:"bar",class:an(e.ns.e("bar")),style:rn({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,6),Ba("div",{ref:"thumb",class:an(e.ns.e("thumb")),style:rn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);var g_=Nm(ul({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=pm("color-hue-slider"),i=os(),r=Vo(null),o=Vo(null),n=Vo(0),l=Vo(0),a=en((()=>e.color.get("hue")));function s(t){const o=i.vnode.el.getBoundingClientRect(),{clientX:n,clientY:l}=eh(t);let a;if(e.vertical){let e=l-o.top;e=Math.min(e,o.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),a=Math.round((e-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*360)}else{let e=n-o.left;e=Math.min(e,o.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),a=Math.round((e-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*360)}e.color.set("hue",a)}function c(){n.value=function(){const t=i.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/360):0}(),l.value=function(){const t=i.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/360):0}()}return Ys((()=>a.value),(()=>{c()})),xl((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};f_(o.value,e),f_(r.value,e),c()})),{bar:o,thumb:r,thumbLeft:n,thumbTop:l,hueValue:a,handleClick:function(e){e.target!==r.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,i,r,o,n){return Sa(),Da("div",{class:an([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ba("div",{ref:"bar",class:an(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Ba("div",{ref:"thumb",class:an(e.ns.e("thumb")),style:rn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const v_=Symbol(),b_=function(e,t,i){return[e,t*i/((e=(2-t)*i)<1?e:2-e)||0,e/2]},__=function(e,t){var i;"string"==typeof(i=e)&&i.includes(".")&&1===Number.parseFloat(i)&&(e="100%");const r=function(e){return"string"==typeof e&&e.includes("%")}(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)},y_={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},x_=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),i=e%16;return`${y_[t]||t}${y_[i]||i}`},w_=function({r:e,g:t,b:i}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+i)?"":`#${x_(e)}${x_(t)}${x_(i)}`},k_={A:10,B:11,C:12,D:13,E:14,F:15},C_=function(e){return 2===e.length?16*(k_[e[0].toUpperCase()]||+e[0])+(k_[e[1].toUpperCase()]||+e[1]):k_[e[1].toUpperCase()]||+e[1]},T_=function(e,t,i){e=__(e,255),t=__(t,255),i=__(i,255);const r=Math.max(e,t,i),o=Math.min(e,t,i);let n;const l=r,a=r-o,s=0===r?0:a/r;if(r===o)n=0;else{switch(r){case e:n=(t-i)/a+(t{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(e.includes("hsl")){const i=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3){const{h:e,s:r,v:o}=function(e,t,i){i/=100;let r=t/=100;const o=Math.max(i,.01);return t*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,{h:e,s:100*(0===i?2*r/(o+r):2*t/(i+t)),v:(i+t)/2*100}}(i[0],i[1],i[2]);t(e,r,o)}}else if(e.includes("hsv")){const i=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3&&t(i[0],i[1],i[2])}else if(e.includes("rgb")){const i=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3){const{h:e,s:r,v:o}=T_(i[0],i[1],i[2]);t(e,r,o)}}else if(e.includes("#")){const i=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(i))return;let r,o,n;3===i.length?(r=C_(i[0]+i[0]),o=C_(i[1]+i[1]),n=C_(i[2]+i[2])):6!==i.length&&8!==i.length||(r=C_(i.slice(0,2)),o=C_(i.slice(2,4)),n=C_(i.slice(4,6))),8===i.length?this._alpha=C_(i.slice(6))/255*100:3!==i.length&&6!==i.length||(this._alpha=100);const{h:l,s:a,v:s}=T_(r,o,n);t(l,a,s)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:i,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=b_(e,t/100,i/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(i)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${w_(E_(e,t,i))}${x_(255*r/100)}`;break;default:{const{r:r,g:o,b:n}=E_(e,t,i);this.value=`rgba(${r}, ${o}, ${n}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=b_(e,t/100,i/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(i)}%)`;break;case"rgb":{const{r:r,g:o,b:n}=E_(e,t,i);this.value=`rgb(${r}, ${o}, ${n})`;break}default:this.value=w_(E_(e,t,i))}}}const A_=ul({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=pm("color-predefine"),{currentColor:i}=il(v_),r=Vo(o(e.colors,e.color));function o(e,t){return e.map((e=>{const i=new S_;return i.enableAlpha=!0,i.format="rgba",i.fromString(e),i.selected=i.value===t.value,i}))}return Ys((()=>i.value),(e=>{const t=new S_;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),Hs((()=>{r.value=o(e.colors,e.color)})),{rgbaColors:r,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),P_=["onClick"];var I_=Nm(A_,[["render",function(e,t,i,r,o,n){return Sa(),Da("div",{class:an(e.ns.b())},[Ba("div",{class:an(e.ns.e("colors"))},[(Sa(!0),Da(xa,null,Qa(e.rgbaColors,((t,i)=>(Sa(),Da("div",{key:e.colors[i],class:an([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(i)},[Ba("div",{style:rn({backgroundColor:t.value})},null,4)],10,P_)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const D_=ul({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=pm("color-svpanel"),i=os(),r=Vo(0),o=Vo(0),n=Vo("hsl(0, 100%, 50%)"),l=en((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function a(){const t=e.color.get("saturation"),l=e.color.get("value"),a=i.vnode.el,{clientWidth:s,clientHeight:c}=a;o.value=t*s/100,r.value=(100-l)*c/100,n.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function s(t){const n=i.vnode.el.getBoundingClientRect(),{clientX:l,clientY:a}=eh(t);let s=l-n.left,c=a-n.top;s=Math.max(0,s),s=Math.min(s,n.width),c=Math.max(0,c),c=Math.min(c,n.height),o.value=s,r.value=c,e.color.set({saturation:s/n.width*100,value:100-c/n.height*100})}return Ys((()=>l.value),(()=>{a()})),xl((()=>{f_(i.vnode.el,{drag:e=>{s(e)},end:e=>{s(e)}}),a()})),{cursorTop:r,cursorLeft:o,background:n,colorValue:l,handleDrag:s,update:a,ns:t}}}),M_=[Ba("div",null,null,-1)];const L_=ul({name:"ElColorPicker",components:{ElButton:Pb,ElTooltip:ib,ElInput:Qm,ElIcon:jm,Close:Yh,ArrowDown:Eh,SvPanel:Nm(D_,[["render",function(e,t,i,r,o,n){return Sa(),Da("div",{class:an(e.ns.b()),style:rn({backgroundColor:e.background})},[Ba("div",{class:an(e.ns.e("white"))},null,2),Ba("div",{class:an(e.ns.e("black"))},null,2),Ba("div",{class:an(e.ns.e("cursor")),style:rn({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},M_,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]),HueSlider:g_,AlphaSlider:m_,Predefine:I_},directives:{ClickOutside:Ob},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Uf},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change","update:modelValue"],setup(e,{emit:t}){const{t:i}=xm(),r=pm("color"),{form:o,formItem:n}=gm(),{inputId:l,isLabeledByFormItem:a}=vm(e,{formItemContext:n}),s=Vo(),c=Vo(),d=Vo(),u=Vo(null);let p=!0;const h=Po(new S_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),f=Vo(!1),m=Vo(!1),g=Vo(""),v=en((()=>e.modelValue||m.value?function(e,t){if(!(e instanceof S_))throw new TypeError("color should be instance of _color Class");const{r:i,g:r,b:o}=e.toRgb();return t?`rgba(${i}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${i}, ${r}, ${o})`}(h,e.showAlpha):"transparent")),b=am(),_=en((()=>!(!e.disabled&&!(null==o?void 0:o.disabled)))),y=en((()=>e.modelValue||m.value?h.value:"")),x=en((()=>a.value?void 0:e.label||i("el.colorpicker.defaultLabel"))),w=en((()=>a.value?null==n?void 0:n.labelId:void 0));Ys((()=>e.modelValue),(e=>{e?e&&e!==h.value&&(p=!1,h.fromString(e)):m.value=!1})),Ys((()=>y.value),(e=>{g.value=e,p&&t("active-change",e),p=!0})),Ys((()=>h.value),(()=>{e.modelValue||m.value||(m.value=!0)}));const k=Cp((function(e){f.value=e}),100);function C(){zs((()=>{e.modelValue?h.fromString(e.modelValue):(h.value="",zs((()=>{m.value=!1})))}))}return xl((()=>{e.modelValue&&(g.value=y.value)})),Ys((()=>f.value),(()=>{zs((()=>{var e,t,i;null==(e=s.value)||e.update(),null==(t=c.value)||t.update(),null==(i=d.value)||i.update()}))})),tl(v_,{currentColor:y}),{color:h,colorDisabled:_,colorSize:b,displayedColor:v,showPanelColor:m,showPicker:f,customInput:g,buttonId:l,buttonAriaLabel:x,buttonAriaLabelledby:w,handleConfirm:function(){h.fromString(g.value)},hide:function(){k(!1),C()},handleTrigger:function(){_.value||k(!f.value)},clear:function(){k(!1),t("update:modelValue",null),t("change",null),null!==e.modelValue&&e.validateEvent&&(null==n||n.validate("change").catch((e=>{}))),C()},confirmValue:function(){const i=h.value;t("update:modelValue",i),t("change",i),e.validateEvent&&(null==n||n.validate("change").catch((e=>{}))),k(!1),zs((()=>{const t=new S_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});h.compare(t)||C()}))},t:i,ns:r,hue:s,svPanel:c,alpha:d,popper:u}}}),O_=["id","aria-label","aria-labelledby","aria-description","tabindex"];var R_=Nm(L_,[["render",function(e,t,i,r,o,n){const l=ma("hue-slider"),a=ma("sv-panel"),s=ma("alpha-slider"),c=ma("predefine"),d=ma("el-input"),u=ma("el-button"),p=ma("arrow-down"),h=ma("el-icon"),f=ma("close"),m=ma("el-tooltip"),g=ba("click-outside");return Sa(),Ma(m,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:""},{content:Xn((()=>[ea((Sa(),Da("div",null,[Ba("div",{class:an(e.ns.be("dropdown","main-wrapper"))},[ja(l,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),ja(a,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(Sa(),Ma(s,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Va("v-if",!0),e.predefine?(Sa(),Ma(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Va("v-if",!0),Ba("div",{class:an(e.ns.be("dropdown","btns"))},[Ba("span",{class:an(e.ns.be("dropdown","value"))},[ja(d,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:ld(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),ja(u,{class:an(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:Xn((()=>[Fa(sn(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),ja(u,{plain:"",size:"small",class:an(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:Xn((()=>[Fa(sn(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[g,e.hide]])])),default:Xn((()=>[Ba("div",{id:e.buttonId,class:an([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=ld(((...t)=>e.handleTrigger&&e.handleTrigger(...t)),["enter"]))},[e.colorDisabled?(Sa(),Da("div",{key:0,class:an(e.ns.be("picker","mask"))},null,2)):Va("v-if",!0),Ba("div",{class:an(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[Ba("span",{class:an([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Ba("span",{class:an(e.ns.be("picker","color-inner")),style:rn({backgroundColor:e.displayedColor})},[ea(ja(h,{class:an([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:Xn((()=>[ja(p)])),_:1},8,["class"]),[[ad,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?Va("v-if",!0):(Sa(),Ma(h,{key:0,class:an([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:Xn((()=>[ja(f)])),_:1},8,["class"]))],6)],2)],2)],42,O_)])),_:1},8,["visible","popper-class","transition"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);R_.install=e=>{e.component(R_.name,R_)};const z_=R_,N_={},B_=Df(ul({name:"ElConfigProvider",props:Sf({a11y:{type:Boolean,default:!0},locale:{type:Object},size:lm,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}}),setup(e,{slots:t}){Ys((()=>e.message),(e=>{Object.assign(N_,null!=e?e:{})}),{immediate:!0,deep:!0});const i=((e,t,i=!1)=>{var r;const o=!!os(),n=o?om():void 0,l=null!=(r=null==t?void 0:t.provide)?r:o?tl:void 0;if(!l)return;const a=en((()=>{const t=qo(e);return(null==n?void 0:n.value)?nm(n.value,t):t}));return l(Qf,a),!i&&rm.value||(rm.value=a.value),a})(e);return()=>Xa(t,"default",{config:null==i?void 0:i.value})}}));const j_=ul({name:"ElOverlay",props:Sf({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}}),emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:i}){const r=pm("overlay"),{onClick:o,onMousedown:n,onMouseup:l}=Tm(e.customMaskEvent?void 0:e=>{i("click",e)});return()=>e.mask?ja("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:n,onMouseup:l},[Xa(t,"default")],Ff.STYLE|Ff.CLASS|Ff.PROPS,["onClick","onMouseup","onMousedown"]):$s("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Xa(t,"default")])}}),U_=Sf({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Af},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),F_=["aria-label"],V_=["id"];var W_=Nm(ul(d(c({},{name:"ElDialogContent"}),{props:U_,emits:{close:()=>!0},setup(e){const t=e,{t:i}=xm(),{Close:r}=Pf,{dialogRef:o,headerRef:n,bodyId:l,ns:a,style:s}=il(Zf),{focusTrapRef:c}=il(Ov),d=((...e)=>t=>{e.forEach((e=>{nh(e)?e(t):e.value=t}))})(c,o),u=en((()=>t.draggable));return dm(o,n,u),(e,t)=>(Sa(),Da("div",{ref:qo(d),class:an([qo(a).b(),qo(a).is("fullscreen",e.fullscreen),qo(a).is("draggable",qo(u)),qo(a).is("align-center",e.alignCenter),{[qo(a).m("center")]:e.center},e.customClass]),style:rn(qo(s)),tabindex:"-1",onClick:t[1]||(t[1]=od((()=>{}),["stop"]))},[Ba("header",{ref_key:"headerRef",ref:n,class:an(qo(a).e("header"))},[Xa(e.$slots,"header",{},(()=>[Ba("span",{role:"heading",class:an(qo(a).e("title"))},sn(e.title),3)])),e.showClose?(Sa(),Da("button",{key:0,"aria-label":qo(i)("el.dialog.close"),class:an(qo(a).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[ja(qo(jm),{class:an(qo(a).e("close"))},{default:Xn((()=>[(Sa(),Ma(va(e.closeIcon||qo(r))))])),_:1},8,["class"])],10,F_)):Va("v-if",!0)],2),Ba("div",{id:qo(l),class:an(qo(a).e("body"))},[Xa(e.$slots,"default")],10,V_),e.$slots.footer?(Sa(),Da("footer",{key:0,class:an(qo(a).e("footer"))},[Xa(e.$slots,"footer")],2)):Va("v-if",!0)],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const H_=Sf(d(c({},U_),{appendToBody:{type:Boolean,default:!1},beforeClose:{type: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}})),G_={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,"update:modelValue":e=>Dp(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Y_=["aria-label","aria-labelledby","aria-describedby"];const q_=Df(Nm(ul(d(c({},{name:"ElDialog",inheritAttrs:!1}),{props:H_,emits:G_,setup(e,{expose:t}){const i=e,r=Ks();cm({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"},en((()=>!!r.title))),cm({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"},en((()=>!!i.customClass)));const o=pm("dialog"),n=Vo(),l=Vo(),a=Vo(),{visible:s,titleId:c,bodyId:d,style:u,overlayDialogStyle:p,rendered:h,zIndex:f,afterEnter:m,afterLeave:g,beforeLeave:v,handleClose:b,onModalClick:_,onOpenAutoFocus:y,onCloseAutoFocus:x,onCloseRequested:w}=((e,t)=>{const i=os().emit,{nextZIndex:r}=zm();let o="";const n=mm(),l=mm(),a=Vo(!1),s=Vo(!1),c=Vo(!1),d=Vo(e.zIndex||r());let u,p;const h=om("namespace","el"),f=en((()=>{const t={},i=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(t[`${i}-margin-top`]=e.top),e.width&&(t[`${i}-width`]=yh(e.width))),t})),m=en((()=>e.alignCenter?{display:"flex"}:{}));function g(){null==p||p(),null==u||u(),e.openDelay&&e.openDelay>0?({stop:u}=zp((()=>_()),e.openDelay)):_()}function v(){null==u||u(),null==p||p(),e.closeDelay&&e.closeDelay>0?({stop:p}=zp((()=>y()),e.closeDelay)):y()}function b(){e.beforeClose?e.beforeClose((function(e){e||(s.value=!0,a.value=!1)})):v()}function _(){Ip&&(a.value=!0)}function y(){a.value=!1}return e.lockScroll&&wm(a),Ys((()=>e.modelValue),(o=>{o?(s.value=!1,g(),c.value=!0,d.value=e.zIndex?d.value++:r(),zs((()=>{i("open"),t.value&&(t.value.scrollTop=0)}))):a.value&&v()})),Ys((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),xl((()=>{e.modelValue&&(a.value=!0,c.value=!0,g())})),{afterEnter:function(){i("opened")},afterLeave:function(){i("closed"),i("update:modelValue",!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){i("close")},handleClose:b,onModalClick:function(){e.closeOnClickModal&&b()},close:v,doClose:y,onOpenAutoFocus:function(){i("openAutoFocus")},onCloseAutoFocus:function(){i("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&b()},titleId:n,bodyId:l,closed:s,style:f,overlayDialogStyle:m,rendered:c,visible:a,zIndex:d}})(i,n);tl(Zf,{dialogRef:n,headerRef:l,bodyId:d,ns:o,rendered:h,style:u});const k=Tm(_),C=en((()=>i.draggable&&!i.fullscreen));return t({visible:s,dialogContentRef:a}),(e,t)=>(Sa(),Ma(fa,{to:"body",disabled:!e.appendToBody},[ja(jc,{name:"dialog-fade",onAfterEnter:qo(m),onAfterLeave:qo(g),onBeforeLeave:qo(v),persisted:""},{default:Xn((()=>[ea(ja(qo(j_),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":qo(f)},{default:Xn((()=>[Ba("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:qo(c),"aria-describedby":qo(d),class:an(`${qo(o).namespace.value}-overlay-dialog`),style:rn(qo(p)),onClick:t[0]||(t[0]=(...e)=>qo(k).onClick&&qo(k).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>qo(k).onMousedown&&qo(k).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>qo(k).onMouseup&&qo(k).onMouseup(...e))},[ja(qo(Rv),{loop:"",trapped:qo(s),"focus-start-el":"container",onFocusAfterTrapped:qo(y),onFocusAfterReleased:qo(x),onReleaseRequested:qo(w)},{default:Xn((()=>[qo(h)?(Sa(),Ma(W_,Ya({key:0,ref_key:"dialogContentRef",ref:a},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:qo(C),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:qo(b)}),Za({header:Xn((()=>[e.$slots.title?Xa(e.$slots,"title",{key:1}):Xa(e.$slots,"header",{key:0,close:qo(b),titleId:qo(c),titleClass:qo(o).e("title")})])),default:Xn((()=>[Xa(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:Xn((()=>[Xa(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Va("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,Y_)])),_:3},8,["mask","overlay-class","z-index"]),[[ad,qo(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),Q_=Sf({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:lm,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Mp(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}}),Z_={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>Mp(e)||Sp(e),"update:modelValue":e=>Mp(e)||Sp(e)},X_=["aria-label","onKeydown"],K_=["aria-label","onKeydown"];const J_=Df(Nm(ul(d(c({},{name:"ElInputNumber"}),{props:Q_,emits:Z_,setup(e,{expose:t,emit:i}){const r=e,{t:o}=xm(),n=pm("input-number"),l=Vo(),a=Po({currentValue:r.modelValue,userInput:null}),{formItem:s}=gm(),c=en((()=>Mp(r.modelValue)&&b(r.modelValue,-1)Mp(r.modelValue)&&b(r.modelValue)>r.max)),u=en((()=>{const e=v(r.step);return hh(r.precision)?Math.max(v(r.modelValue),e):(r.precision,r.precision)})),p=en((()=>r.controls&&"right"===r.controlsPosition)),h=am(),f=sm(),m=en((()=>{if(null!==a.userInput)return a.userInput;let e=a.currentValue;if(Sp(e))return"";if(Mp(e)){if(Number.isNaN(e))return"";hh(r.precision)||(e=e.toFixed(r.precision))}return e})),g=(e,t)=>{if(hh(t)&&(t=u.value),0===t)return Math.round(e);let i=String(e);const r=i.indexOf(".");if(-1===r)return e;if(!i.replace(".","").split("")[r+t])return e;const o=i.length;return"5"===i.charAt(o-1)&&(i=`${i.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(i).toFixed(t))},v=e=>{if(Sp(e))return 0;const t=e.toString(),i=t.indexOf(".");let r=0;return-1!==i&&(r=t.length-i-1),r},b=(e,t=1)=>Mp(e)?g(e+r.step*t):a.currentValue,_=()=>{if(r.readonly||f.value||d.value)return;const e=r.modelValue||0,t=b(e);w(t)},y=()=>{if(r.readonly||f.value||c.value)return;const e=r.modelValue||0,t=b(e,-1);w(t)},x=(e,t)=>{const{max:o,min:n,step:l,precision:a,stepStrictly:s,valueOnClear:c}=r;let d=Number(e);if(Sp(e)||Number.isNaN(d))return null;if(""===e){if(null===c)return null;d=lh(c)?{min:n,max:o}[c]:c}return s&&(d=g(Math.round(d/l)*l,a)),hh(a)||(d=g(d,a)),(d>o||do?o:n,t&&i("update:modelValue",d)),d},w=e=>{var t;const o=a.currentValue,n=x(e);o!==n&&(a.userInput=null,i("update:modelValue",n),i("input",n),i("change",n,o),r.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"change").catch((e=>{}))),a.currentValue=n)},k=e=>a.userInput=e,C=e=>{const t=""!==e?Number(e):"";(Mp(t)&&!Number.isNaN(t)||""===e)&&w(t),a.userInput=null},T=e=>{i("focus",e)},E=e=>{var t;i("blur",e),r.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))};return Ys((()=>r.modelValue),(e=>{a.currentValue=x(e,!0),a.userInput=null}),{immediate:!0}),xl((()=>{var e;const{min:t,max:o,modelValue:n}=r,s=null==(e=l.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(o)?s.setAttribute("aria-valuemax",String(o)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",String(a.currentValue)),s.setAttribute("aria-disabled",String(f.value)),!Mp(n)&&null!=n){let e=Number(n);Number.isNaN(e)&&(e=null),i("update:modelValue",e)}})),kl((()=>{var e;const t=null==(e=l.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${a.currentValue}`)})),t({focus:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(Sa(),Da("div",{class:an([qo(n).b(),qo(n).m(qo(h)),qo(n).is("disabled",qo(f)),qo(n).is("without-controls",!e.controls),qo(n).is("controls-right",qo(p))]),onDragstart:t[0]||(t[0]=od((()=>{}),["prevent"]))},[e.controls?ea((Sa(),Da("span",{key:0,role:"button","aria-label":qo(o)("el.inputNumber.decrease"),class:an([qo(n).e("decrease"),qo(n).is("disabled",qo(c))]),onKeydown:ld(y,["enter"])},[ja(qo(jm),null,{default:Xn((()=>[qo(p)?(Sa(),Ma(qo(Eh),{key:0})):(Sa(),Ma(qo(hf),{key:1}))])),_:1})],42,X_)),[[qo(Rb),y]]):Va("v-if",!0),e.controls?ea((Sa(),Da("span",{key:1,role:"button","aria-label":qo(o)("el.inputNumber.increase"),class:an([qo(n).e("increase"),qo(n).is("disabled",qo(d))]),onKeydown:ld(_,["enter"])},[ja(qo(jm),null,{default:Xn((()=>[qo(p)?(Sa(),Ma(qo(Oh),{key:0})):(Sa(),Ma(qo(vf),{key:1}))])),_:1})],42,K_)),[[qo(Rb),_]]):Va("v-if",!0),ja(qo(Qm),{id:e.id,ref_key:"input",ref:l,type:"number",step:e.step,"model-value":qo(m),placeholder:e.placeholder,readonly:e.readonly,disabled:qo(f),size:qo(h),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[ld(od(_,["prevent"]),["up"]),ld(od(y,["prevent"]),["down"])],onBlur:E,onFocus:T,onInput:k,onChange:C},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]));var $_=Nm(ul({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=pm("select"),i=Po({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:o,isDisabled:n,select:l,hoverItem:a}=function(e,t){const i=il("ElSelect"),r=il("ElSelectGroup",{disabled:!1}),o=en((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),n=en((()=>i.props.multiple?u(i.props.modelValue,e.value):p(e.value,i.props.modelValue))),l=en((()=>{if(i.props.multiple){const e=i.props.modelValue||[];return!n.value&&e.length>=i.props.multipleLimit&&i.props.multipleLimit>0}return!1})),a=en((()=>e.label||(o.value?"":e.value))),s=en((()=>e.value||e.label||"")),c=en((()=>e.disabled||t.groupDisabled||l.value)),d=os(),u=(e=[],t)=>{if(o.value){const r=i.props.valueKey;return e&&e.some((e=>Ro(Gu(e,r))===Gu(t,r)))}return e&&e.includes(t)},p=(e,t)=>{if(o.value){const{valueKey:r}=i.props;return Gu(e,r)===Gu(t,r)}return e===t};Ys((()=>a.value),(()=>{e.created||i.props.remote||i.setSelected()})),Ys((()=>e.value),((t,r)=>{const{remote:o,valueKey:n}=i.props;if(Object.is(t,r)||(i.onOptionDestroy(r,d.proxy),i.onOptionCreate(d.proxy)),!e.created&&!o){if(n&&"object"==typeof t&&"object"==typeof r&&t[n]===r[n])return;i.setSelected()}})),Ys((()=>r.disabled),(()=>{t.groupDisabled=r.disabled}),{immediate:!0});const{queryChange:h}=Ro(i);return Ys(h,(r=>{const{query:o}=qo(r),n=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(o),"i");t.visible=n.test(a.value)||e.created,t.visible||i.filteredOptionsCount--})),{select:i,currentLabel:a,currentValue:s,itemSelected:n,isDisabled:c,hoverItem:()=>{e.disabled||r.disabled||(i.hoverIndex=i.optionsArray.indexOf(d.proxy))}}}(e,i),{visible:s,hover:c}=Xo(i),d=os().proxy;return l.onOptionCreate(d),Cl((()=>{const e=d.value,{selected:t}=l,i=(l.props.multiple?t:[t]).some((e=>e.value===d.value));zs((()=>{l.cachedOptions.get(e)!==d||i||l.cachedOptions.delete(e)})),l.onOptionDestroy(e,d)})),{ns:t,currentLabel:r,itemSelected:o,isDisabled:n,select:l,hoverItem:a,visible:s,hover:c,selectOptionClick:function(){!0!==e.disabled&&!0!==i.groupDisabled&&l.handleOptionSelect(d,!0)},states:i}}}),[["render",function(e,t,i,r,o,n){return ea((Sa(),Da("li",{class:an([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=od(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[Xa(e.$slots,"default",{},(()=>[Ba("span",null,sn(e.currentLabel),1)]))],34)),[[ad,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const ey=ul({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=il("ElSelect"),t=pm("select"),i=en((()=>e.props.popperClass)),r=en((()=>e.props.multiple)),o=en((()=>e.props.fitInputWidth)),n=Vo("");function l(){var t;n.value=`${null==(t=e.selectWrapper)?void 0:t.offsetWidth}px`}return xl((()=>{l(),Qp(e.selectWrapper,l)})),{ns:t,minWidth:n,popperClass:i,isMultiple:r,isFitInputWidth:o}}});const ty=(e,t,i)=>{const{t:r}=xm(),o=pm("select"),n=Vo(null),l=Vo(null),a=Vo(null),s=Vo(null),c=Vo(null),d=Vo(null),u=Vo(-1),p=Wo({query:""}),h=Wo(""),{form:f,formItem:m}=gm(),g=en((()=>!e.filterable||e.multiple||!t.visible)),v=en((()=>e.disabled||(null==f?void 0:f.disabled))),b=en((()=>{const i=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue;return e.clearable&&!v.value&&t.inputHovering&&i})),_=en((()=>e.remote&&e.filterable?"":e.suffixIcon)),y=en((()=>o.is("reverse",_.value&&t.visible))),x=en((()=>e.remote?300:0)),w=en((()=>e.loading?e.loadingText||r("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||r("el.select.noMatch"):0===t.options.size?e.noDataText||r("el.select.noData"):null))),k=en((()=>Array.from(t.options.values()))),C=en((()=>Array.from(t.cachedOptions.values()))),T=en((()=>{const i=k.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!i})),E=am(),S=en((()=>["small"].includes(E.value)?"small":"default")),A=en({get:()=>t.visible&&!1!==w.value,set(e){t.visible=e}});Ys([()=>v.value,()=>E.value,()=>null==f?void 0:f.size],(()=>{zs((()=>{P()}))})),Ys((()=>e.placeholder),(e=>{t.cachedPlaceHolder=t.currentPlaceholder=e})),Ys((()=>e.modelValue),((i,r)=>{e.multiple&&(P(),i&&i.length>0||l.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",I(t.query))),L(),e.filterable&&!e.multiple&&(t.inputLength=20),!Ep(i,r)&&e.validateEvent&&(null==m||m.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),Ys((()=>t.visible),(r=>{var o,n,s;r?(null==(n=null==(o=a.value)?void 0:o.updatePopper)||n.call(o),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?null==(s=l.value)||s.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),I(t.query),e.multiple||e.remote||(p.value.query="",Yo(p),Yo(h)))):(l.value&&l.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,R(),zs((()=>{l.value&&""===l.value.value&&0===t.selected.length&&(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))),i.emit("visible-change",r)})),Ys((()=>t.options.entries()),(()=>{var i,r,o;if(!Ip)return;null==(r=null==(i=a.value)?void 0:i.updatePopper)||r.call(i),e.multiple&&P();const n=(null==(o=c.value)?void 0:o.querySelectorAll("input"))||[];Array.from(n).includes(document.activeElement)||L(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&M()}),{flush:"post"}),Ys((()=>t.hoverIndex),(e=>{"number"==typeof e&&e>-1&&(u.value=k.value[e]||{}),k.value.forEach((e=>{e.hover=u.value===e}))}));const P=()=>{e.collapseTags&&!e.filterable||zs((()=>{var e,i;if(!n.value)return;const r=n.value.$el.querySelector("input"),o=s.value,l=(c=E.value||(null==f?void 0:f.size),jf[c||"default"]);var c;r.style.height=(0===t.selected.length?l:Math.max(o?o.clientHeight+(o.clientHeight>l?6:0):0,l))-2+"px",t.tagInMultiLine=Number.parseFloat(r.style.height)>=l,t.visible&&!1!==w.value&&(null==(i=null==(e=a.value)?void 0:e.updatePopper)||i.call(e))}))},I=async i=>{t.previousQuery===i||t.isOnComposition||(null!==t.previousQuery||"function"!=typeof e.filterMethod&&"function"!=typeof e.remoteMethod?(t.previousQuery=i,zs((()=>{var e,i;t.visible&&(null==(i=null==(e=a.value)?void 0:e.updatePopper)||i.call(e))})),t.hoverIndex=-1,e.multiple&&e.filterable&&zs((()=>{const i=15*l.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,i):i,D(),P()})),e.remote&&"function"==typeof e.remoteMethod?(t.hoverIndex=-1,e.remoteMethod(i)):"function"==typeof e.filterMethod?(e.filterMethod(i),Yo(h)):(t.filteredOptionsCount=t.optionsCount,p.value.query=i,Yo(p),Yo(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await zs(),M())):t.previousQuery=i)},D=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=l.value.value?"":t.cachedPlaceHolder)},M=()=>{const e=k.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),i=e.find((e=>e.created)),r=e[0];t.hoverIndex=V(k.value,i||r)},L=()=>{var i;if(!e.multiple){const r=O(e.modelValue);return(null==(i=r.props)?void 0:i.created)?(t.createdLabel=r.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=r.currentLabel,t.selected=r,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const r=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{r.push(O(e))})),t.selected=r,zs((()=>{P()}))},O=i=>{let r;const o="object"===dh(i).toLowerCase(),n="null"===dh(i).toLowerCase(),l="undefined"===dh(i).toLowerCase();for(let s=t.cachedOptions.size-1;s>=0;s--){const t=C.value[s];if(o?Gu(t.value,e.valueKey)===Gu(i,e.valueKey):t.value===i){r={value:i,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(r)return r;const a={value:i,currentLabel:o?i.label:n||l?"":i};return e.multiple&&(a.hitState=!1),a},R=()=>{setTimeout((()=>{const i=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((e=>k.value.findIndex((t=>Gu(t,i)===Gu(e,i)))))):t.hoverIndex=-1:t.hoverIndex=k.value.findIndex((e=>q(e)===q(t.selected)))}),300)},z=()=>{var e;t.inputWidth=null==(e=n.value)?void 0:e.$el.getBoundingClientRect().width},N=Cp((()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,I(t.query))}),x.value),B=Cp((e=>{I(e.target.value)}),x.value),j=t=>{Ep(e.modelValue,t)||i.emit("change",t)},U=r=>{r.stopPropagation();const o=e.multiple?[]:"";if("string"!=typeof o)for(const e of t.selected)e.isDisabled&&o.push(e.value);i.emit("update:modelValue",o),j(o),t.visible=!1,i.emit("clear")},F=(r,o)=>{var n;if(e.multiple){const o=(e.modelValue||[]).slice(),a=V(o,r.value);a>-1?o.splice(a,1):(e.multipleLimit<=0||o.length{H(r)}))},V=(t=[],i)=>{if(!ah(i))return t.indexOf(i);const r=e.valueKey;let o=-1;return t.some(((e,t)=>Ro(Gu(e,r))===Gu(i,r)&&(o=t,!0))),o},W=()=>{t.softFocus=!0;const e=l.value||n.value;e&&(null==e||e.focus())},H=e=>{var t,i,r,n,l;const s=Array.isArray(e)?e[0]:e;let c=null;if(null==s?void 0:s.value){const e=k.value.filter((e=>e.value===s.value));e.length>0&&(c=e[0].$el)}if(a.value&&c){const e=null==(n=null==(r=null==(i=null==(t=a.value)?void 0:t.popperRef)?void 0:i.contentRef)?void 0:r.querySelector)?void 0:n.call(r,`.${o.be("dropdown","wrap")}`);e&&function(e,t){if(!Ip)return;if(!t)return void(e.scrollTop=0);const i=[];let r=t.offsetParent;for(;null!==r&&e!==r&&e.contains(r);)i.push(r),r=r.offsetParent;const o=t.offsetTop+i.reduce(((e,t)=>e+t.offsetTop),0),n=o+t.offsetHeight,l=e.scrollTop,a=l+e.clientHeight;oa&&(e.scrollTop=n-e.clientHeight)}(e,c)}null==(l=d.value)||l.handleScroll()},G=e=>{if(!Array.isArray(t.selected))return;const i=t.selected[t.selected.length-1];return i?!0===e||!1===e?(i.hitState=e,e):(i.hitState=!i.hitState,i.hitState):void 0},Y=()=>{var e;v.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&(null==(e=l.value||n.value)||e.focus()))},q=t=>ah(t.value)?Gu(t.value,e.valueKey):t.value,Q=en((()=>k.value.filter((e=>e.visible)).every((e=>e.disabled)))),Z=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!Q.value){"next"===e?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):"prev"===e&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const i=k.value[t.hoverIndex];!0!==i.disabled&&!0!==i.states.groupDisabled&&i.visible||Z(e),zs((()=>H(u.value)))}}else t.visible=!0};return{optionsArray:k,selectSize:E,handleResize:()=>{var t,i;z(),null==(i=null==(t=a.value)?void 0:t.updatePopper)||i.call(t),e.multiple&&!e.filterable&&P()},debouncedOnInputChange:N,debouncedQueryChange:B,deletePrevTag:r=>{if(r.target.value.length<=0&&!G()){const t=e.modelValue.slice();t.pop(),i.emit("update:modelValue",t),j(t)}1===r.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)},deleteTag:(r,o)=>{const n=t.selected.indexOf(o);if(n>-1&&!v.value){const t=e.modelValue.slice();t.splice(n,1),i.emit("update:modelValue",t),j(t),i.emit("remove-tag",o.value)}r.stopPropagation()},deleteSelected:U,handleOptionSelect:F,scrollToOption:H,readonly:g,resetInputHeight:P,showClose:b,iconComponent:_,iconReverse:y,showNewOption:T,collapseTagSize:S,setSelected:L,managePlaceholder:D,selectDisabled:v,emptyText:w,toggleLastOptionHitState:G,resetInputState:e=>{e.code!==Nf&&G(!1),t.inputLength=15*l.value.value.length+20,P()},handleComposition:e=>{const i=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,zs((()=>I(i)));else{const e=i[i.length-1]||"";t.isOnComposition=!Vf(e)}},onOptionCreate:e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},onOptionDestroy:(e,i)=>{t.options.get(e)===i&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},handleMenuEnter:()=>{zs((()=>H(t.selected)))},handleFocus:r=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),i.emit("focus",r))},blur:()=>{var e;t.visible=!1,null==(e=n.value)||e.blur()},handleBlur:e=>{zs((()=>{t.isSilentBlur?t.isSilentBlur=!1:i.emit("blur",e)})),t.softFocus=!1},handleClearClick:e=>{U(e)},handleClose:()=>{t.visible=!1},handleKeydownEscape:e=>{t.visible&&(e.preventDefault(),e.stopPropagation(),t.visible=!1)},toggleMenu:Y,selectOption:()=>{t.visible?k.value[t.hoverIndex]&&F(k.value[t.hoverIndex],void 0):Y()},getValueKey:q,navigateOptions:Z,dropMenuVisible:A,queryChange:p,groupQueryChange:h,reference:n,input:l,tooltipRef:a,tags:s,selectWrapper:c,scrollbar:d}},iy=ul({name:"ElSelect",componentName:"ElSelect",components:{ElInput:Qm,ElSelectMenu:Nm(ey,[["render",function(e,t,i,r,o,n){return Sa(),Da("div",{class:an([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:rn({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Xa(e.$slots,"default")],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]),ElOption:$_,ElTag:$b,ElScrollbar:eg,ElTooltip:ib,ElIcon:jm},directives:{ClickOutside:Ob},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:Uf},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:Wv.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Vh},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Oh},tagType:d(c({},Kb.type),{default:"info"}),validateEvent:{type:Boolean,default:!0}},emits:["update:modelValue","change","remove-tag","clear","visible-change","focus","blur"],setup(e,t){const i=pm("select"),r=pm("input"),{t:o}=xm(),n=function(e){const{t:t}=xm();return Po({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})}(e),{optionsArray:l,selectSize:a,readonly:s,handleResize:c,collapseTagSize:d,debouncedOnInputChange:u,debouncedQueryChange:p,deletePrevTag:h,deleteTag:f,deleteSelected:m,handleOptionSelect:g,scrollToOption:v,setSelected:b,resetInputHeight:_,managePlaceholder:y,showClose:x,selectDisabled:w,iconComponent:k,iconReverse:C,showNewOption:T,emptyText:E,toggleLastOptionHitState:S,resetInputState:A,handleComposition:P,onOptionCreate:I,onOptionDestroy:D,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:R,handleClearClick:z,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:U,getValueKey:F,navigateOptions:V,dropMenuVisible:W,reference:H,input:G,tooltipRef:Y,tags:q,selectWrapper:Q,scrollbar:Z,queryChange:X,groupQueryChange:K}=ty(e,n,t),{focus:J}=($=H,{focus:()=>{var e,t;null==(t=null==(e=$.value)?void 0:e.focus)||t.call(e)}});var $;const{inputWidth:ee,selected:te,inputLength:ie,filteredOptionsCount:re,visible:oe,softFocus:ne,selectedLabel:le,hoverIndex:ae,query:se,inputHovering:ce,currentPlaceholder:de,menuVisibleOnFocus:ue,isOnComposition:pe,isSilentBlur:he,options:fe,cachedOptions:me,optionsCount:ge,prefixWidth:ve,tagInMultiLine:be}=Xo(n),_e=en((()=>{const t=[i.b()],r=qo(a);return r&&t.push(i.m(r)),e.disabled&&t.push(i.m("disabled")),t})),ye=en((()=>({maxWidth:qo(ee)-32+"px",width:"100%"})));tl("ElSelect",Po({props:e,options:fe,optionsArray:l,cachedOptions:me,optionsCount:ge,filteredOptionsCount:re,hoverIndex:ae,handleOptionSelect:g,onOptionCreate:I,onOptionDestroy:D,selectWrapper:Q,selected:te,setSelected:b,queryChange:X,groupQueryChange:K})),xl((()=>{n.cachedPlaceHolder=de.value=e.placeholder||o("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(de.value=""),Qp(Q,c),e.remote&&e.multiple&&_(),zs((()=>{const e=H.value&&H.value.$el;if(e&&(ee.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${r.e("prefix")}`);ve.value=Math.max(t.getBoundingClientRect().width+5,30)}})),b()})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit("update:modelValue",[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit("update:modelValue","");const xe=en((()=>{var e,t;return null==(t=null==(e=Y.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tagInMultiLine:be,prefixWidth:ve,selectSize:a,readonly:s,handleResize:c,collapseTagSize:d,debouncedOnInputChange:u,debouncedQueryChange:p,deletePrevTag:h,deleteTag:f,deleteSelected:m,handleOptionSelect:g,scrollToOption:v,inputWidth:ee,selected:te,inputLength:ie,filteredOptionsCount:re,visible:oe,softFocus:ne,selectedLabel:le,hoverIndex:ae,query:se,inputHovering:ce,currentPlaceholder:de,menuVisibleOnFocus:ue,isOnComposition:pe,isSilentBlur:he,options:fe,resetInputHeight:_,managePlaceholder:y,showClose:x,selectDisabled:w,iconComponent:k,iconReverse:C,showNewOption:T,emptyText:E,toggleLastOptionHitState:S,resetInputState:A,handleComposition:P,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:R,handleClearClick:z,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:U,getValueKey:F,navigateOptions:V,dropMenuVisible:W,focus:J,reference:H,input:G,tooltipRef:Y,popperPaneRef:xe,tags:q,selectWrapper:Q,scrollbar:Z,wrapperKls:_e,selectTagsStyle:ye,nsSelect:i}}}),ry={class:"select-trigger"},oy=["disabled","autocomplete"],ny={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};var ly=Nm(iy,[["render",function(e,t,i,r,o,n){const l=ma("el-tag"),a=ma("el-tooltip"),s=ma("el-icon"),c=ma("el-input"),d=ma("el-option"),u=ma("el-scrollbar"),p=ma("el-select-menu"),h=ba("click-outside");return ea((Sa(),Da("div",{ref:"selectWrapper",class:an(e.wrapperKls),onClick:t[22]||(t[22]=od(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[ja(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:"bottom-start",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:Xn((()=>[Ba("div",ry,[e.multiple?(Sa(),Da("div",{key:0,ref:"tags",class:an(e.nsSelect.e("tags")),style:rn(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(Sa(),Da("span",{key:0,class:an([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[ja(l,{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]=t=>e.deleteTag(t,e.selected[0]))},{default:Xn((()=>[Ba("span",{class:an(e.nsSelect.e("tags-text")),style:rn({maxWidth:e.inputWidth-123+"px"})},sn(e.selected[0].currentLabel),7)])),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(Sa(),Ma(l,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Xn((()=>[e.collapseTagsTooltip?(Sa(),Ma(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Xn((()=>[Ba("span",{class:an(e.nsSelect.e("tags-text"))},"+ "+sn(e.selected.length-1),3)])),content:Xn((()=>[Ba("div",{class:an(e.nsSelect.e("collapse-tags"))},[(Sa(!0),Da(xa,null,Qa(e.selected.slice(1),((t,i)=>(Sa(),Da("div",{key:i,class:an(e.nsSelect.e("collapse-tag"))},[(Sa(),Ma(l,{key:e.getValueKey(t),class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:i=>e.deleteTag(i,t)},{default:Xn((()=>[Ba("span",{class:an(e.nsSelect.e("tags-text")),style:rn({maxWidth:e.inputWidth-75+"px"})},sn(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"]))],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):(Sa(),Da("span",{key:1,class:an(e.nsSelect.e("tags-text"))},"+ "+sn(e.selected.length-1),3))])),_:1},8,["size","type"])):Va("v-if",!0)],2)):Va("v-if",!0),Va("
"),e.collapseTags?Va("v-if",!0):(Sa(),Ma(jc,{key:1,onAfterLeave:e.resetInputHeight},{default:Xn((()=>[Ba("span",{class:an([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(Sa(!0),Da(xa,null,Qa(e.selected,(t=>(Sa(),Ma(l,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:i=>e.deleteTag(i,t)},{default:Xn((()=>[Ba("span",{class:an(e.nsSelect.e("tags-text")),style:rn({maxWidth:e.inputWidth-75+"px"})},sn(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),Va("
"),e.filterable?ea((Sa(),Da("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.query=t),type:"text",class:an([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:rn({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]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[3]||(t[3]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeyup:t[4]||(t[4]=(...t)=>e.managePlaceholder&&e.managePlaceholder(...t)),onKeydown:[t[5]||(t[5]=(...t)=>e.resetInputState&&e.resetInputState(...t)),t[6]||(t[6]=ld(od((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[7]||(t[7]=ld(od((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[8]||(t[8]=ld(((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t)),["esc"])),t[9]||(t[9]=ld(od(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=ld(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[11]||(t[11]=ld((t=>e.visible=!1),["tab"]))],onCompositionstart:t[12]||(t[12]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[13]||(t[13]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[14]||(t[14]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onInput:t[15]||(t[15]=(...t)=>e.debouncedQueryChange&&e.debouncedQueryChange(...t))},null,46,oy)),[[ed,e.query]]):Va("v-if",!0)],6)):Va("v-if",!0),ja(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=t=>e.selectedLabel=t),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:an([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]=ld(od((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[18]||(t[18]=ld(od((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),ld(od(e.selectOption,["stop","prevent"]),["enter"]),ld(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=ld((t=>e.visible=!1),["tab"]))],onMouseenter:t[20]||(t[20]=t=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=t=>e.inputHovering=!1)},Za({suffix:Xn((()=>[e.iconComponent&&!e.showClose?(Sa(),Ma(s,{key:0,class:an([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Xn((()=>[(Sa(),Ma(va(e.iconComponent)))])),_:1},8,["class"])):Va("v-if",!0),e.showClose&&e.clearIcon?(Sa(),Ma(s,{key:1,class:an([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Xn((()=>[(Sa(),Ma(va(e.clearIcon)))])),_:1},8,["class","onClick"])):Va("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:Xn((()=>[Ba("div",ny,[Xa(e.$slots,"prefix")])]))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])])),content:Xn((()=>[ja(p,null,{default:Xn((()=>[ea(ja(u,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:an([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:Xn((()=>[e.showNewOption?(Sa(),Ma(d,{key:0,value:e.query,created:!0},null,8,["value"])):Va("v-if",!0),Xa(e.$slots,"default")])),_:3},8,["wrap-class","view-class","class"]),[[ad,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(Sa(),Da(xa,{key:0},[e.$slots.empty?Xa(e.$slots,"empty",{key:0}):(Sa(),Da("p",{key:1,class:an(e.nsSelect.be("dropdown","empty"))},sn(e.emptyText),3))],64)):Va("v-if",!0)])),_:3})])),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[h,e.handleClose,e.popperPaneRef]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);var ay=Nm(ul({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=pm("select"),i=Vo(!0),r=os(),o=Vo([]);tl("ElSelectGroup",Po(c({},Xo(e))));const n=il("ElSelect");xl((()=>{o.value=l(r.subTree)}));const l=e=>{const t=[];return Array.isArray(e.children)&&e.children.forEach((e=>{var i;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(i=e.children)?void 0:i.length)&&t.push(...l(e))})),t},{groupQueryChange:a}=Ro(n);return Ys(a,(()=>{i.value=o.value.some((e=>!0===e.visible))})),{visible:i,ns:t}}}),[["render",function(e,t,i,r,o,n){return ea((Sa(),Da("ul",{class:an(e.ns.be("group","wrap"))},[Ba("li",{class:an(e.ns.be("group","title"))},sn(e.label),3),Ba("li",null,[Ba("ul",{class:an(e.ns.b("group"))},[Xa(e.$slots,"default")],2)])],2)),[[ad,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const sy=Df(ly,{Option:$_,OptionGroup:ay}),cy=Mf($_);Mf(ay);const dy=Sf({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:Af},inactiveIcon:{type:Af},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:Function},size:{type:String,validator:Uf},tabindex:{type:[String,Number]}}),uy={"update:modelValue":e=>Dp(e)||lh(e)||Mp(e),change:e=>Dp(e)||lh(e)||Mp(e),input:e=>Dp(e)||lh(e)||Mp(e)},py=["onClick"],hy=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],fy=["aria-hidden"],my=["aria-hidden"],gy=["aria-hidden"],vy=["aria-hidden"];const by=Df(Nm(ul(d(c({},{name:"ElSwitch"}),{props:dy,emits:uy,setup(e,{expose:t,emit:i}){const r=e,o="ElSwitch",n=os(),{formItem:l}=gm(),a=am(),s=pm("switch");cm({from:'"value"',replacement:'"model-value" or "v-model"',scope:o,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},en((()=>{var e;return!!(null==(e=n.vnode.props)?void 0:e.value)})));const{inputId:d}=vm(r,{formItemContext:l}),u=sm(en((()=>r.loading))),p=Vo(!1!==r.modelValue),h=Vo(),f=Vo(),m=en((()=>[s.b(),s.m(a.value),s.is("disabled",u.value),s.is("checked",b.value)])),g=en((()=>({width:yh(r.width)})));Ys((()=>r.modelValue),(()=>{p.value=!0})),Ys((()=>r.value),(()=>{p.value=!1}));const v=en((()=>p.value?r.modelValue:r.value)),b=en((()=>v.value===r.activeValue));[r.activeValue,r.inactiveValue].includes(v.value)||(i("update:modelValue",r.inactiveValue),i("change",r.inactiveValue),i("input",r.inactiveValue)),Ys(b,(e=>{var t;h.value.checked=e,r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"change").catch((e=>{})))}));const _=()=>{const e=b.value?r.inactiveValue:r.activeValue;i("update:modelValue",e),i("change",e),i("input",e),zs((()=>{h.value.checked=b.value}))},y=()=>{if(u.value)return;const{beforeChange:e}=r;if(!e)return void _();const t=e();[sh(t),Dp(t)].includes(!0)||vh(o,"beforeChange must return type `Promise` or `boolean`"),sh(t)?t.then((e=>{e&&_()})).catch((e=>{})):t&&_()},x=en((()=>s.cssVarBlock(c(c(c({},r.activeColor?{"on-color":r.activeColor}:null),r.inactiveColor?{"off-color":r.inactiveColor}:null),r.borderColor?{"border-color":r.borderColor}:null))));return xl((()=>{h.value.checked=b.value})),t({focus:()=>{var e,t;null==(t=null==(e=h.value)?void 0:e.focus)||t.call(e)},checked:b}),(e,t)=>(Sa(),Da("div",{class:an(qo(m)),style:rn(qo(x)),onClick:od(y,["prevent"])},[Ba("input",{id:qo(d),ref_key:"input",ref:h,class:an(qo(s).e("input")),type:"checkbox",role:"switch","aria-checked":qo(b),"aria-disabled":qo(u),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:qo(u),tabindex:e.tabindex,onChange:_,onKeydown:ld(y,["enter"])},null,42,hy),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Va("v-if",!0):(Sa(),Da("span",{key:0,class:an([qo(s).e("label"),qo(s).em("label","left"),qo(s).is("active",!qo(b))])},[e.inactiveIcon?(Sa(),Ma(qo(jm),{key:0},{default:Xn((()=>[(Sa(),Ma(va(e.inactiveIcon)))])),_:1})):Va("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Sa(),Da("span",{key:1,"aria-hidden":qo(b)},sn(e.inactiveText),9,fy)):Va("v-if",!0)],2)),Ba("span",{ref_key:"core",ref:f,class:an(qo(s).e("core")),style:rn(qo(g))},[e.inlinePrompt?(Sa(),Da("div",{key:0,class:an(qo(s).e("inner"))},[e.activeIcon||e.inactiveIcon?(Sa(),Da(xa,{key:0},[e.activeIcon?(Sa(),Ma(qo(jm),{key:0,class:an([qo(s).is("icon"),qo(b)?qo(s).is("show"):qo(s).is("hide")])},{default:Xn((()=>[(Sa(),Ma(va(e.activeIcon)))])),_:1},8,["class"])):Va("v-if",!0),e.inactiveIcon?(Sa(),Ma(qo(jm),{key:1,class:an([qo(s).is("icon"),qo(b)?qo(s).is("hide"):qo(s).is("show")])},{default:Xn((()=>[(Sa(),Ma(va(e.inactiveIcon)))])),_:1},8,["class"])):Va("v-if",!0)],64)):e.activeText||e.inactiveIcon?(Sa(),Da(xa,{key:1},[e.activeText?(Sa(),Da("span",{key:0,class:an([qo(s).is("text"),qo(b)?qo(s).is("show"):qo(s).is("hide")]),"aria-hidden":!qo(b)},sn(e.activeText.substring(0,3)),11,my)):Va("v-if",!0),e.inactiveText?(Sa(),Da("span",{key:1,class:an([qo(s).is("text"),qo(b)?qo(s).is("hide"):qo(s).is("show")]),"aria-hidden":qo(b)},sn(e.inactiveText.substring(0,3)),11,gy)):Va("v-if",!0)],64)):Va("v-if",!0)],2)):Va("v-if",!0),Ba("div",{class:an(qo(s).e("action"))},[e.loading?(Sa(),Ma(qo(jm),{key:0,class:an(qo(s).is("loading"))},{default:Xn((()=>[ja(qo(cf))])),_:1},8,["class"])):Va("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Va("v-if",!0):(Sa(),Da("span",{key:1,class:an([qo(s).e("label"),qo(s).em("label","right"),qo(s).is("active",qo(b))])},[e.activeIcon?(Sa(),Ma(qo(jm),{key:0},{default:Xn((()=>[(Sa(),Ma(va(e.activeIcon)))])),_:1})):Va("v-if",!0),!e.activeIcon&&e.activeText?(Sa(),Da("span",{key:1,"aria-hidden":!qo(b)},sn(e.activeText),9,vy)):Va("v-if",!0)],2))],14,py))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]])); /*! Element Plus v2.2.16 */var _y,yy,xy={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}},wy={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"}}}; /*! Element Plus v2.2.16 */_y="undefined"!=typeof window?window:ce,yy=function(e,t){var i=[],r=Object.getPrototypeOf,o=i.slice,n=function(e){return i.concat.apply([],e)},l=i.push,a=i.indexOf,s={},c=s.toString,d=s.hasOwnProperty,u=d.toString,p=u.call(Object),h={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,i){var r,o,n=(i=i||g).createElement("script");if(n.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&n.setAttribute(r,o);i.head.appendChild(n).parentNode.removeChild(n)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[c.call(e)]||"object":typeof e}var y="3.6.3",x=function(e,t){return new x.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,i=_(e);return!f(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:y,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,i){return e.call(t,i,t)})))},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(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp(N+"|>"),Y=new RegExp(U),q=new RegExp("^"+B+"$"),Q={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){p()},le=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(I=O.call(x.childNodes),x.childNodes),I[x.childNodes.length].nodeType}catch(Te){L={apply:I.length?function(e,t){M.apply(e,O.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}function ae(e,t,r,o){var n,a,c,d,u,f,v,b=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!o&&(p(t),t=t||h,m)){if(11!==x&&(u=$.exec(e)))if(n=u[1]){if(9===x){if(!(c=t.getElementById(n)))return r;if(c.id===n)return r.push(c),r}else if(b&&(c=b.getElementById(n))&&_(t,c)&&c.id===n)return r.push(c),r}else{if(u[2])return L.apply(r,t.getElementsByTagName(e)),r;if((n=u[3])&&i.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(n)),r}if(i.qsa&&!S[e+" "]&&(!g||!g.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(v=e,b=t,1===x&&(G.test(e)||H.test(e))){for((b=ee.test(e)&&ve(t.parentNode)||t)===t&&i.scope||((d=t.getAttribute("id"))?d=d.replace(re,oe):t.setAttribute("id",d=y)),a=(f=l(e)).length;a--;)f[a]=(d?"#"+d:":scope")+" "+_e(f[a]);v=f.join(",")}try{if(i.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return L.apply(r,b.querySelectorAll(v)),r}catch(w){S(e,!0)}finally{d===y&&t.removeAttribute("id")}}}return s(e.replace(V,"$1"),t,r,o)}function se(){var e=[];return function t(i,o){return e.push(i+" ")>r.cacheLength&&delete t[e.shift()],t[i+" "]=o}}function ce(e){return e[y]=!0,e}function de(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Te){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var i=e.split("|"),o=i.length;o--;)r.attrHandle[i[o]]=t}function pe(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&le(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(i,r){for(var o,n=e([],i.length,t),l=n.length;l--;)i[o=n[l]]&&(i[o]=!(r[o]=i[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ae.support={},n=ae.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!Z.test(t||i&&i.nodeName||"HTML")},p=ae.setDocument=function(e){var t,o,l=e?e.ownerDocument||e:x;return l!=h&&9===l.nodeType&&l.documentElement?(f=(h=l).documentElement,m=!n(h),x!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ne,!1):o.attachEvent&&o.attachEvent("onunload",ne)),i.scope=de((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.cssSupportsSelector=de((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),i.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=de((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(h.getElementsByClassName),i.getById=de((function(e){return f.appendChild(e).id=y,!h.getElementsByName||!h.getElementsByName(y).length})),i.getById?(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,r,o,n=t.getElementById(e);if(n){if((i=n.getAttributeNode("id"))&&i.value===e)return[n];for(o=t.getElementsByName(e),r=0;n=o[r++];)if((i=n.getAttributeNode("id"))&&i.value===e)return[n]}return[]}}),r.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],o=0,n=t.getElementsByTagName(e);if("*"===e){for(;i=n[o++];)1===i.nodeType&&r.push(i);return r}return n},r.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=J.test(h.querySelectorAll))&&(de((function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+z+")"),e.querySelectorAll("[id~="+y+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de((function(e){i.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",U)})),i.cssSupportsSelector||g.push(":has"),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),_=t||J.test(f.contains)?function(e,t){var i=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==x&&_(x,e)?-1:t==h||t.ownerDocument==x&&_(x,t)?1:d?R(d,e)-R(d,t):0:4&r?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,r=0,o=e.parentNode,n=t.parentNode,l=[e],a=[t];if(!o||!n)return e==h?-1:t==h?1:o?-1:n?1:d?R(d,e)-R(d,t):0;if(o===n)return pe(e,t);for(i=e;i=i.parentNode;)l.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;l[r]===a[r];)r++;return r?pe(l[r],a[r]):l[r]==x?-1:a[r]==x?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(p(e),i.matchesSelector&&m&&!S[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=b.call(e,t);if(r||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Te){S(t,!0)}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=h&&p(e),_(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=h&&p(e);var o=r.attrHandle[t.toLowerCase()],n=o&&P.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==n?n:i.attributes||!m?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},ae.escape=function(e){return(e+"").replace(re,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],o=0,n=0;if(u=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(A),u){for(;t=e[n++];)t===e[n]&&(o=r.push(n));for(;o--;)e.splice(r[o],1)}return d=null,e},o=ae.getText=function(e){var t,i="",r=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=o(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[r++];)i+=o(t);return i},(r=ae.selectors={cacheLength:50,createPseudo:ce,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&Y.test(i)&&(t=l(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+N+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.slice(-i.length)===i:"~="===t?(" "+o.replace(F," ")+" ").indexOf(i)>-1:"|="===t&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,r,o){var n="nth"!==e.slice(0,3),l="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,i,s){var c,d,u,p,h,f,m=n!==l?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!s&&!a,_=!1;if(g){if(n){for(;m;){for(p=t;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[l?g.firstChild:g.lastChild],l&&b){for(_=(h=(c=(d=(u=(p=g)[y]||(p[y]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(_=h=0)||f.pop();)if(1===p.nodeType&&++_&&p===t){d[e]=[w,h,_];break}}else if(b&&(_=h=(c=(d=(u=(p=t)[y]||(p[y]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===_)for(;(p=++h&&p&&p[m]||(_=h=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++_||(b&&((d=(u=p[y]||(p[y]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]=[w,_]),p!==t)););return(_-=o)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,t){var i,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[y]?o(t):o.length>1?(i=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var r,n=o(e,t),l=n.length;l--;)e[r=R(e,n[l])]=!(i[r]=n[l])})):function(e){return o(e,0,i)}):o}},pseudos:{not:ce((function(e){var t=[],i=[],r=a(e.replace(V,"$1"));return r[y]?ce((function(e,t,i,o){for(var n,l=r(e,null,o,[]),a=e.length;a--;)(n=l[a])&&(e[a]=!(t[a]=n))})):function(e,o,n){return t[0]=e,r(t,null,n,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return q.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,i){return[i<0?i+t:i]})),even:ge((function(e,t){for(var i=0;it?t:i;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,i){for(var r=i<0?i+t:i;++r1?function(t,i,r){for(var o=e.length;o--;)if(!e[o](t,i,r))return!1;return!0}:e[0]}function we(e,t,i,r,o){for(var n,l=[],a=0,s=e.length,c=null!=t;a-1&&(n[c]=!(l[c]=u))}}else v=we(v===l?v.splice(f,v.length):v),o?o(null,l,v,s):L.apply(l,v)}))}function Ce(e){for(var t,i,o,n=e.length,l=r.relative[e[0].type],a=l||r.relative[" "],s=l?1:0,d=ye((function(e){return e===t}),a,!0),u=ye((function(e){return R(t,e)>-1}),a,!0),p=[function(e,i,r){var o=!l&&(r||i!==c)||((t=i).nodeType?d(e,i,r):u(e,i,r));return t=null,o}];s1&&xe(p),s>1&&_e(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(V,"$1"),i,s0,o=e.length>0,n=function(n,l,a,s,d){var u,f,g,v=0,b="0",_=n&&[],y=[],x=c,k=n||o&&r.find.TAG("*",d),C=w+=null==x?1:Math.random()||.1,T=k.length;for(d&&(c=l==h||l||d);b!==T&&null!=(u=k[b]);b++){if(o&&u){for(f=0,l||u.ownerDocument==h||(p(u),a=!m);g=e[f++];)if(g(u,l||h,a)){s.push(u);break}d&&(w=C)}i&&((u=!g&&u)&&v--,n&&_.push(u))}if(v+=b,i&&b!==v){for(f=0;g=t[f++];)g(_,y,l,a);if(n){if(v>0)for(;b--;)_[b]||y[b]||(y[b]=D.call(s));y=we(y)}L.apply(s,y),d&&!n&&y.length>0&&v+t.length>1&&ae.uniqueSort(s)}return d&&(w=C,c=x),_};return i?ce(n):n}(n,o))).selector=e}return a},s=ae.select=function(e,t,i,o){var n,s,c,d,u,p="function"==typeof e&&e,h=!o&&l(e=p.selector||e);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===t.nodeType&&m&&r.relative[s[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(n=Q.needsContext.test(e)?0:s.length;n--&&(c=s[n],!r.relative[d=c.type]);)if((u=r.find[d])&&(o=u(c.matches[0].replace(te,ie),ee.test(s[0].type)&&ve(t.parentNode)||t))){if(s.splice(n,1),!(e=o.length&&_e(s)))return L.apply(i,o),i;break}}return(p||a(e,h))(o,t,!m,i,!t||ee.test(e)&&ve(t.parentNode)||t),i},i.sortStable=y.split("").sort(A).join("")===y,i.detectDuplicates=!!u,p(),i.sortDetached=de((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),de((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&de((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||ue(z,(function(e,t,i){var r;if(!i)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ae}(e);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var C=function(e,t,i){for(var r=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(i))break;r.push(e)}return r},T=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},E=x.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,i){return f(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==i})):t.nodeType?x.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?x.grep(e,(function(e){return a.call(t,e)>-1!==i})):x.filter(t,e,i)}x.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,i,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t1?x.uniqueSort(i):i},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&E.test(e)?x(e):e||[],!1).length}});var I,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,i){var r,o;if(!e)return this;if(i=i||I,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),A.test(r[1])&&x.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=g.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==i.ready?i.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,I=x(g);var M=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),i=t.length;return this.filter((function(){for(var e=0;e-1:1===i.nodeType&&x.find.matchesSelector(i,e))){n.push(i);break}return this.pushStack(n.length>1?x.uniqueSort(n):n)},index:function(e){return e?"string"==typeof e?a.call(x(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,i){return C(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,i){return C(e,"nextSibling",i)},prevUntil:function(e,t,i){return C(e,"previousSibling",i)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(i,r){var o=x.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(o=x.filter(r,o)),this.length>1&&(L[e]||x.uniqueSort(o),M.test(e)&&o.reverse()),this.pushStack(o)}}));var R=/[^\x20\t\r\n\f]+/g;function z(e){return e}function N(e){throw e}function B(e,t,i,r){var o;try{e&&f(o=e.promise)?o.call(e).done(t).fail(i):e&&f(o=e.then)?o.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(n){i.apply(void 0,[n])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(R)||[],(function(e,i){t[i]=!0})),t}(e):x.extend({},e);var t,i,r,o,n=[],l=[],a=-1,s=function(){for(o=o||e.once,r=t=!0;l.length;a=-1)for(i=l.shift();++a-1;)n.splice(i,1),i<=a&&a--})),this},has:function(e){return e?x.inArray(e,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return o=l=[],n=i="",this},disabled:function(){return!n},lock:function(){return o=l=[],i||t||(n=i=""),this},locked:function(){return!!o},fireWith:function(e,i){return o||(i=[e,(i=i||[]).slice?i.slice():i],l.push(i),t||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(t){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return n.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(t){x.each(i,(function(i,r){var o=f(e[r[4]])&&e[r[4]];n[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,o){var n=0;function l(t,i,r,o){return function(){var a=this,s=arguments,c=function(){var e,c;if(!(t=n&&(r!==N&&(a=void 0,s=[e]),i.rejectWith(a,s))}};t?d():(x.Deferred.getStackHook&&(d.stackTrace=x.Deferred.getStackHook()),e.setTimeout(d))}}return x.Deferred((function(e){i[0][3].add(l(0,e,f(o)?o:z,e.notifyWith)),i[1][3].add(l(0,e,f(t)?t:z)),i[2][3].add(l(0,e,f(r)?r:N))})).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},n={};return x.each(i,(function(e,t){var l=t[2],a=t[5];o[t[1]]=l.add,a&&l.add((function(){r=a}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),l.add(t[3].fire),n[t[0]]=function(){return n[t[0]+"With"](this===n?void 0:this,arguments),this},n[t[0]+"With"]=l.fireWith})),o.promise(n),t&&t.call(n,n),n},when:function(e){var t=arguments.length,i=t,r=Array(i),n=o.call(arguments),l=x.Deferred(),a=function(e){return function(i){r[e]=this,n[e]=arguments.length>1?o.call(arguments):i,--t||l.resolveWith(r,n)}};if(t<=1&&(B(e,l.done(a(i)).resolve,l.reject,!t),"pending"===l.state()||f(n[i]&&n[i].then)))return l.then();for(;i--;)B(n[i],a(i),l.reject);return l.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&j.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var U=x.Deferred();function F(){g.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),x.ready()}x.fn.ready=function(e){return U.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||U.resolveWith(g,[x]))}}),x.ready.then=U.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(x.ready):(g.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var V=function(e,t,i,r,o,n,l){var a=0,s=e.length,c=null==i;if("object"===_(i))for(a in o=!0,i)V(e,t,a,i[a],!0,n,l);else if(void 0!==r&&(o=!0,f(r)||(l=!0),c&&(l?(t.call(e,r),t=null):(c=t,t=function(e,t,i){return c.call(x(e),i)})),t))for(;a1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),x.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),i&&(!r||Array.isArray(i)?r=Z.access(e,t,x.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=x.queue(e,t),r=i.length,o=i.shift(),n=x._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),r--),o&&("fx"===t&&i.unshift("inprogress"),delete n.stop,o.call(e,(function(){x.dequeue(e,t)}),n)),!r&&n&&n.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Z.get(e,i)||Z.access(e,i,{empty:x.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",i])}))})}}),x.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;ue=g.createDocumentFragment().appendChild(g.createElement("div")),(pe=g.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),ue.appendChild(pe),h.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",h.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",h.option=!!ue.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?x.merge([e],i):i}function be(e,t){for(var i=0,r=e.length;i",""]);var _e=/<|&#?\w+;/;function ye(e,t,i,r,o){for(var n,l,a,s,c,d,u=t.createDocumentFragment(),p=[],h=0,f=e.length;h-1)o&&o.push(n);else if(c=oe(n),l=ve(u.appendChild(n),"script"),c&&be(l),i)for(d=0;n=l[d++];)me.test(n.type||"")&&i.push(n);return u}var xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Ce(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,i,r,o,n){var l,a;if("object"==typeof t){for(a in"string"!=typeof i&&(r=r||i,i=void 0),t)Te(e,a,i,r,t[a],n);return e}if(null==r&&null==o?(o=i,r=i=void 0):null==o&&("string"==typeof i?(o=r,r=void 0):(o=r,r=i,i=void 0)),!1===o)o=ke;else if(!o)return e;return 1===n&&(l=o,(o=function(e){return x().off(e),l.apply(this,arguments)}).guid=l.guid||(l.guid=x.guid++)),e.each((function(){x.event.add(this,t,o,r,i)}))}function Ee(e,t,i){i?(Z.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var r,n,l=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(l.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(l=o.call(arguments),Z.set(this,t,l),r=i(this,t),this[t](),l!==(n=Z.get(this,t))||r?Z.set(this,t,!1):n={},l!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else l.length&&(Z.set(this,t,{value:x.event.trigger(x.extend(l[0],x.Event.prototype),l.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&x.event.add(e,t,we)}x.event={global:{},add:function(e,t,i,r,o){var n,l,a,s,c,d,u,p,h,f,m,g=Z.get(e);if(q(e))for(i.handler&&(i=(n=i).handler,o=n.selector),o&&x.find.matchesSelector(re,o),i.guid||(i.guid=x.guid++),(s=g.events)||(s=g.events=Object.create(null)),(l=g.handle)||(l=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(R)||[""]).length;c--;)h=m=(a=xe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h&&(u=x.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=x.event.special[h]||{},d=x.extend({type:h,origType:m,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:f.join(".")},n),(p=s[h])||((p=s[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,f,l)||e.addEventListener&&e.addEventListener(h,l)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),x.event.global[h]=!0)},remove:function(e,t,i,r,o){var n,l,a,s,c,d,u,p,h,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(s=g.events)){for(c=(t=(t||"").match(R)||[""]).length;c--;)if(h=m=(a=xe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(u=x.event.special[h]||{},p=s[h=(r?u.delegateType:u.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=n=p.length;n--;)d=p[n],!o&&m!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(p.splice(n,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||x.removeEvent(e,h,g.handle),delete s[h])}else for(h in s)x.event.remove(e,h+t[c],i,r,!0);x.isEmptyObject(s)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,i,r,o,n,l,a=new Array(arguments.length),s=x.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[s.type]||[],d=x.event.special[s.type]||{};for(a[0]=s,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(n=[],l={},i=0;i-1:x.find(o,this,null,[c]).length),l[o]&&n.push(r);n.length&&a.push({elem:c,handlers:n})}return c=this,s\s*$/g;function Ie(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var i,r,o,n,l,a;if(1===t.nodeType){if(Z.hasData(e)&&(a=Z.get(e).events))for(o in Z.remove(t,"handle events"),a)for(i=0,r=a[o].length;i1&&"string"==typeof g&&!h.checkClone&&Ae.test(g))return e.each((function(o){var n=e.eq(o);v&&(t[0]=g.call(this,o,n.html())),Oe(n,t,i,r)}));if(p&&(l=(o=ye(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=l),l||r)){for(s=(a=x.map(ve(o,"script"),De)).length;u0&&be(l,!u&&ve(e,"script")),d},cleanData:function(e){for(var t,i,r,o=x.event.special,n=0;void 0!==(i=e[n]);n++)if(q(i)){if(t=i[Z.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(i,r):x.removeEvent(i,r,t.handle);i[Z.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return V(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Oe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;i=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-n-s-a-.5))||0),s}function $e(e,t,i){var r=Be(e),o=(!h.boxSizingReliable()||i)&&"border-box"===x.css(e,"boxSizing",!1,r),n=o,l=Ve(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(ze.test(l)){if(!i)return l;l="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&S(e,"tr")||"auto"===l||!parseFloat(l)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===x.css(e,"boxSizing",!1,r),(n=a in e)&&(l=e[a])),(l=parseFloat(l)||0)+Je(e,t,i||(o?"border":"content"),n,r,l)+"px"}function et(e,t,i,r,o){return new et.prototype.init(e,t,i,r,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ve(e,"opacity");return""===i?"1":i}}}},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(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,n,l,a=Y(t),s=Ne.test(t),c=e.style;if(s||(t=qe(a)),l=x.cssHooks[t]||x.cssHooks[a],void 0===i)return l&&"get"in l&&void 0!==(o=l.get(e,!1,r))?o:c[t];"string"==(n=typeof i)&&(o=te.exec(i))&&o[1]&&(i=ae(e,t,o),n="number"),null!=i&&i==i&&("number"!==n||s||(i+=o&&o[3]||(x.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),l&&"set"in l&&void 0===(i=l.set(e,i,r))||(s?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,r){var o,n,l,a=Y(t);return Ne.test(t)||(t=qe(a)),(l=x.cssHooks[t]||x.cssHooks[a])&&"get"in l&&(o=l.get(e,!0,i)),void 0===o&&(o=Ve(e,t,r)),"normal"===o&&t in Xe&&(o=Xe[t]),""===i||i?(n=parseFloat(o),!0===i||isFinite(n)?n||0:o):o}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,i,r){if(i)return!Qe.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$e(e,t,r):je(e,Ze,(function(){return $e(e,t,r)}))},set:function(e,i,r){var o,n=Be(e),l=!h.scrollboxSize()&&"absolute"===n.position,a=(l||r)&&"border-box"===x.css(e,"boxSizing",!1,n),s=r?Je(e,t,r,a,n):0;return a&&l&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(n[t])-Je(e,t,"border",!1,n)-.5)),s&&(o=te.exec(i))&&"px"!==(o[3]||"px")&&(e.style[t]=i,i=x.css(e,t)),Ke(0,i,s)}}})),x.cssHooks.marginLeft=We(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-je(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(i){for(var r=0,o={},n="string"==typeof i?i.split(" "):[i];r<4;r++)o[e+ie[r]+t]=n[r]||n[r-2]||n[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=Ke)})),x.fn.extend({css:function(e,t){return V(this,(function(e,t,i){var r,o,n={},l=0;if(Array.isArray(t)){for(r=Be(e),o=t.length;l1)}}),x.Tween=et,et.prototype={constructor:et,init:function(e,t,i,r,o,n){this.elem=e,this.prop=i,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=n||(x.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=et.prototype.init,x.fx.step={};var tt,it,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function nt(){it&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,x.fx.interval),x.fx.tick())}function lt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function at(e,t){var i,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(i=ie[r])]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function st(e,t,i){for(var r,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),n=0,l=o.length;n1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,i){var r,o,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===e.getAttribute?x.prop(e,t,i):(1===n&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?dt:void 0)),void 0!==i?null===i?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,i,t))?r:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&S(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r=0,o=t&&t.match(R);if(o&&1===e.nodeType)for(;i=o[r++];)e.removeAttribute(i)}}),dt={set:function(e,t,i){return!1===t?x.removeAttr(e,i):e.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=ut[t]||x.find.attr;ut[t]=function(e,t,r){var o,n,l=t.toLowerCase();return r||(n=ut[l],ut[l]=o,o=null!=i(e,t,r)?l:null,ut[l]=n),o}}));var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ft(e){return(e.match(R)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}x.fn.extend({prop:function(e,t){return V(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,i){var r,o,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(r=o.set(e,i,t))?r:e[t]=i:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,i,r,o,n,l;return f(e)?this.each((function(t){x(this).addClass(e.call(this,t,mt(this)))})):(t=gt(e)).length?this.each((function(){if(r=mt(this),i=1===this.nodeType&&" "+ft(r)+" "){for(n=0;n-1;)i=i.replace(" "+o+" "," ");l=ft(i),r!==l&&this.setAttribute("class",l)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,r,o,n,l=typeof e,a="string"===l||Array.isArray(e);return f(e)?this.each((function(i){x(this).toggleClass(e.call(this,i,mt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(i=gt(e),this.each((function(){if(a)for(n=x(this),o=0;o-1)return!0;return!1}});var vt=/\r/g;x.fn.extend({val:function(e){var t,i,r,o=this[0];return arguments.length?(r=f(e),this.each((function(i){var o;1===this.nodeType&&(null==(o=r?e.call(this,i,x(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(vt,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:ft(x.text(e))}},select:{get:function(e){var t,i,r,o=e.options,n=e.selectedIndex,l="select-one"===e.type,a=l?null:[],s=l?n+1:o.length;for(r=n<0?s:l?n:0;r-1)&&(i=!0);return i||(e.selectedIndex=-1),n}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},h.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var bt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,i,r,o){var n,l,a,s,c,u,p,h,v=[r||g],b=d.call(t,"type")?t.type:t,_=d.call(t,"namespace")?t.namespace.split("."):[];if(l=h=a=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!bt.test(b+x.event.triggered)&&(b.indexOf(".")>-1&&(_=b.split("."),b=_.shift(),_.sort()),c=b.indexOf(":")<0&&"on"+b,(t=t[x.expando]?t:new x.Event(b,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),i=null==i?[t]:x.makeArray(i,[t]),p=x.event.special[b]||{},o||!p.trigger||!1!==p.trigger.apply(r,i))){if(!o&&!p.noBubble&&!m(r)){for(s=p.delegateType||b,bt.test(s+b)||(l=l.parentNode);l;l=l.parentNode)v.push(l),a=l;a===(r.ownerDocument||g)&&v.push(a.defaultView||a.parentWindow||e)}for(n=0;(l=v[n++])&&!t.isPropagationStopped();)h=l,t.type=n>1?s:p.bindType||b,(u=(Z.get(l,"events")||Object.create(null))[t.type]&&Z.get(l,"handle"))&&u.apply(l,i),(u=c&&l[c])&&u.apply&&q(l)&&(t.result=u.apply(l,i),!1===t.result&&t.preventDefault());return t.type=b,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),i)||!q(r)||c&&f(r[b])&&!m(r)&&((a=r[c])&&(r[c]=null),x.event.triggered=b,t.isPropagationStopped()&&h.addEventListener(b,_t),r[b](),t.isPropagationStopped()&&h.removeEventListener(b,_t),x.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,i){var r=x.extend(new x.Event,i,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return x.event.trigger(e,t,i,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t);o||r.addEventListener(e,i,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,i,!0),Z.remove(r,t))}}}));var yt=e.location,xt={guid:Date.now()},wt=/\?/;x.parseXML=function(t){var i,r;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return r=i&&i.getElementsByTagName("parsererror")[0],i&&!r||x.error("Invalid XML: "+(r?x.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var kt=/\[\]$/,Ct=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function St(e,t,i,r){var o;if(Array.isArray(t))x.each(t,(function(t,o){i||kt.test(e)?r(e,o):St(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,i,r)}));else if(i||"object"!==_(t))r(e,t);else for(o in t)St(e+"["+o+"]",t[o],i,r)}x.param=function(e,t){var i,r=[],o=function(e,t){var i=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){o(this.name,this.value)}));else for(i in e)St(i,e[i],t,o);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:i.replace(Ct,"\r\n")}})).get()}});var At=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ot={},Rt={},zt="*/".concat("*"),Nt=g.createElement("a");function Bt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,o=0,n=t.toLowerCase().match(R)||[];if(f(i))for(;r=n[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function jt(e,t,i,r){var o={},n=e===Rt;function l(a){var s;return o[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,i,r);return"string"!=typeof c||n||o[c]?n?!(s=c):void 0:(t.dataTypes.unshift(c),l(c),!1)})),s}return l(t.dataTypes[0])||!o["*"]&&l("*")}function Ut(e,t){var i,r,o=x.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:r||(r={}))[i]=t[i]);return r&&x.extend(!0,e,r),e}Nt.href=yt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,x.ajaxSettings),t):Ut(x.ajaxSettings,e)},ajaxPrefilter:Bt(Ot),ajaxTransport:Bt(Rt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var r,o,n,l,a,s,c,d,u,p,h=x.ajaxSetup({},i),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?x(f):x.event,v=x.Deferred(),b=x.Callbacks("once memory"),_=h.statusCode||{},y={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!l)for(l={};t=Dt.exec(n);)l[t[1].toLowerCase()+" "]=(l[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=l[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?n:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||k;return r&&r.abort(t),T(0,t),this}};if(v.promise(C),h.url=((t||h.url||yt.href)+"").replace(Lt,yt.protocol+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(R)||[""],null==h.crossDomain){s=g.createElement("a");try{s.href=h.url,s.href=s.href,h.crossDomain=Nt.protocol+"//"+Nt.host!=s.protocol+"//"+s.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),jt(Ot,h,i,C),c)return C;for(u in(d=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(At,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(wt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(It,"$1"),p=(wt.test(o)?"&":"?")+"_="+xt.guid+++p),h.url=o+p),h.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||i.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||c))return C.abort();if(k="abort",b.add(h.complete),C.done(h.success),C.fail(h.error),r=jt(Rt,h,i,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(a=e.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,r.send(y,T)}catch(E){if(c)throw E;T(-1,E)}}else T(-1,"No Transport");function T(t,i,l,s){var u,p,g,y,w,k=i;c||(c=!0,a&&e.clearTimeout(a),r=void 0,n=s||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,l&&(y=function(e,t,i){for(var r,o,n,l,a=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){s.unshift(o);break}if(s[0]in i)n=s[0];else{for(o in i){if(!s[0]||e.converters[o+" "+s[0]]){n=o;break}l||(l=o)}n=n||l}if(n)return n!==s[0]&&s.unshift(n),i[n]}(h,C,l)),!u&&x.inArray("script",h.dataTypes)>-1&&x.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(e,t,i,r){var o,n,l,a,s,c={},d=e.dataTypes.slice();if(d[1])for(l in e.converters)c[l.toLowerCase()]=e.converters[l];for(n=d.shift();n;)if(e.responseFields[n]&&(i[e.responseFields[n]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=n,n=d.shift())if("*"===n)n=s;else if("*"!==s&&s!==n){if(!(l=c[s+" "+n]||c["* "+n]))for(o in c)if((a=o.split(" "))[1]===n&&(l=c[s+" "+a[0]]||c["* "+a[0]])){!0===l?l=c[o]:!0!==c[o]&&(n=a[0],d.unshift(a[1]));break}if(!0!==l)if(l&&e.throws)t=l(t);else try{t=l(t)}catch(E){return{state:"parsererror",error:l?E:"No conversion from "+s+" to "+n}}}return{state:"success",data:t}}(h,y,C,u),u?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(x.etag[o]=w)),204===t||"HEAD"===h.type?k="nocontent":304===t?k="notmodified":(k=y.state,p=y.data,u=!(g=y.error))):(g=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(i||k)+"",u?v.resolveWith(f,[p,k,C]):v.rejectWith(f,[C,k,g]),C.statusCode(_),_=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?p:g]),b.fireWith(f,[C,k]),d&&(m.trigger("ajaxComplete",[C,h]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,i){return x.get(e,t,i,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,i,r,o){return f(i)&&(o=o||r,r=i,i=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:i,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,i){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,i)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(i){x(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Ft={0:200,1223:204},Vt=x.ajaxSettings.xhr();h.cors=!!Vt&&"withCredentials"in Vt,h.ajax=Vt=!!Vt,x.ajaxTransport((function(t){var i,r;if(h.cors||Vt&&!t.crossDomain)return{send:function(o,n){var l,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(l in t.xhrFields)a[l]=t.xhrFields[l];for(l in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(l,o[l]);i=function(e){return function(){i&&(i=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?n(0,"error"):n(a.status,a.statusText):n(Ft[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),r=a.onerror=a.ontimeout=i("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){i&&r()}))},i=i("abort");try{a.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s}},abort:function(){i&&i()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=x("