var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(t,r,i)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,s=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&a(e,r,t[r]);if(o)for(var r of o(t))n.call(t,r)&&a(e,r,t[r]);return e},c=(e,i)=>t(e,r(i)),d=(e,t,r)=>(a(e,"symbol"!=typeof t?t+"":t,r),r);const p="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");class u{static uuid(e="D"){let t,r=[];r[8]=r[13]=r[18]=r[23]="-",r[14]="4";for(let i=0;i<36;i++)r[i]||(t=0|16*Math.random(),r[i]=p[19==i?3&t|8:t]);return e+"-"+r.join("")}static merge(e,...t){let r,i,o,l;for(i=0,o=t.length;i0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(r)}static addClass(e,t){if(void 0!==e.classList){let r=u.splitWords(t);for(let t=0,i=r.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 r=t.canvas.clientWidth,i=t.canvas.clientHeight,o=t.camera.getPickRay(new Cesium.Cartesian2(r/2|0,i-1)),l=t.camera.getPickRay(new Cesium.Cartesian2(1+r/2|0,i-1)),n=t.globe,a=n.pick(o,t),s=n.pick(l,t);if(a&&s){let t=new Cesium.EllipsoidGeodesic,r=n.ellipsoid.cartesianToCartographic(a),i=n.ellipsoid.cartesianToCartographic(s);t.setEndPoints(r,i);let o=t.surfaceDistance,l=e.closest(o/10);e._scale=l<1?1e3*l+"m":l+"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(e){let r=t._getScreenClickPositionAndHeight(e.endPosition);Cesium.defined(r)&&r.lng&&(t._posX=r.lng.toFixed(8),t._posY=r.lat.toFixed(8),t._posZ=r.height.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._posZ}\n\t\t\t\t`)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}initScale(e,t){const r=e.scene;t?r.postRender.addEventListener(this._scaleListener):r.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 r=t[0],i=Math.abs(r-e);for(let o=1;o{new Cesium.sampleTerrain(i,t.level,[r]).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 r=[],i=t.points;for(let l=0;l{new Cesium.sampleTerrain(o,t.level,r).then((function(t){t&&e(t)}))}))},getHeigthByPointsMostDetailed:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("points is required.");let r=[];for(let o=0;o{new Cesium.sampleTerrainMostDetailed(i,r).then((function(t){e(t)}))}))},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 r=Cesium.Cartographic.fromDegrees(t[0],t[1]),i=e.terrainProvider;return new Promise(((e,t)=>{new Cesium.sampleTerrainMostDetailed(i,r).then((function(t){e(t)}))}))},createTooltip:function(e){var t=function(e){var t=document.createElement("DIV");t.className="twipsy right";var r=document.createElement("DIV");r.className="twipsy-arrow",t.appendChild(r);var i=document.createElement("DIV");i.className="twipsy-inner",t.appendChild(i),this._div=t,this._title=i,e.appendChild(t)};return t.prototype.setVisible=function(e){this._div.style.display=e?"block":"none"},t.prototype.showAt=function(e,t){e&&t&&(this.setVisible(!0),this._title.innerHTML=t,this._div.style.left=e.x+10+"px",this._div.style.top=e.y-this._div.clientHeight/2+"px")},new t(e)}});class v{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 r=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 i(e,t,r){var i=new Cesium.JulianDate;Cesium.JulianDate.addHours(e,8,i);var o,l=Cesium.JulianDate.toGregorianDate(i);if(r)o="";else if(o=new Date(l.year,l.month-1,l.day),o=l.year+"-"+o.toLocaleString("zh-cn",{month:"short"}).split("月").join("-")+l.day+" ",t||l.hour+l.minute===0)return o;let n,a,s;return n=l.hour<10?`0${l.hour}`:l.hour,a=l.minute<10?`0${l.minute}`:l.minute,s=l.second<10?`0${l.second}`:l.second,o+n+":"+a+":"+s}return r._cesiumWidget._creditContainer.style.display="none",r.scene.globe.show=!0,r.scene.globe.depthTestAgainstTerrain=!0,r.scene.globe.enableLighting=!1,r.scene.requestRenderMode=!1,r.scene.debugShowFramesPerSecond=!0,r.scene.skyAtmosphere.show=!1,r.scene.skyBox.show=!0,r.scene.sun.show=!0,r.scene.moon.show=!1,r.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),r.animation.viewModel.dateFormatter=i,r.animation.viewModel.timeFormatter=function(e,t){return i(e,t,!0)},r.timeline.makeLabel=i,r}_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(v.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,r)=>{let i=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),l=this._entities.add({id:"fullMapRectangle",name:"fullMapRectangle",rectangle:{coordinates:o,material:Cesium.Color.GREEN.withAlpha(0),height:10,outline:!1}});this._viewer.flyTo(l,{duration:e.duration,offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}}).then((function(r){r&&(e.isRemove&&l&&(i._entities.remove(l),l=null),t(!0))})).catch((function(e){console.log(e)}))}))},setMapNorth(){let e=this._viewer,t=Cesium.Math.toDegrees(e.camera.pitch).toFixed(0);var r=e.camera.pickEllipsoid(new Cesium.Cartesian2(e.canvas.clientWidth/2,e.canvas.clientHeight/2)),i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(r);let o=180*i.longitude/Math.PI,l=180*i.latitude/Math.PI,n=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(n,a,s),d=Cesium.Cartographic.fromDegrees(o,l,0),p=new Cesium.EllipsoidGeodesic;p.setEndPoints(c,d);var u=p.surfaceDistance;let h=Math.sqrt(Math.pow(u,2)+Math.pow(s-0,2));this.centerEntity&&e.entities.remove(this.centerEntity),this.centerEntity=e.entities.add({position:Cesium.Cartesian3.fromDegrees(o,l,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 r=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).speed=Cesium.defaultValue(t.speed,30);var i=e;i=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0);var o=r.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:i})),l=360/t.speed,n=r.camera.heading,a=r.camera.pitch;t.pitch&&(a=Cesium.Math.toRadians(t.pitch));var s=r.camera.positionCartographic.height;t.pitch&&(a=t.height);var c=Cesium.JulianDate.fromDate(new Date);r.clock.startTime=c.clone(),r.clock.currentTime=c.clone(),r.clock.clockRange=Cesium.ClockRange.CLAMPED,r.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK;var d=function(){var e=Cesium.JulianDate.secondsDifference(r.clock.currentTime,r.clock.startTime),t=Cesium.Math.toRadians(e*l)+n;r.scene.camera.setView({destination:i,orientation:{heading:t,pitch:a}}),r.scene.camera.moveBackward(s),Cesium.JulianDate.compare(r.clock.currentTime,r.clock.stopTime)>=0&&r.clock.onTick.removeEventListener(d),new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(e){r.clock.onTick.removeEventListener(d),r.entities.remove(o)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)};r.clock.onTick.addEventListener(d)}});const _=52.35987755982988,y=3.141592653589793,x=.006693421622965943;class w{static BD09ToGCJ02(e,t){let r=+e-.0065,i=+t-.006,o=Math.sqrt(r*r+i*i)-2e-5*Math.sin(i*_),l=Math.atan2(i,r)-3e-6*Math.cos(r*_);return[o*Math.cos(l),o*Math.sin(l)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*_),i=Math.atan2(t,e)+3e-6*Math.cos(e*_);return[r*Math.cos(i)+.0065,r*Math.sin(i)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let r=this.delta(e,t);return[e+r[0],t+r[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let r=this.delta(e,t);return[2*e-(e+r[0]),2*t-(t+r[1])]}}static delta(e,t){let r=this.transformLng(e-105,t-35),i=this.transformLat(e-105,t-35);const o=t/180*y;let l=Math.sin(o);l=1-x*l*l;const n=Math.sqrt(l);return r=180*r/(6378245/n*Math.cos(o)*y),i=180*i/(6378245*(1-x)/(l*n)*y),[r,i]}static transformLng(e,t){let r=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*y)+20*Math.sin(2*e*y))/3,r+=2*(20*Math.sin(e*y)+40*Math.sin(e/3*y))/3,r+=2*(150*Math.sin(e/12*y)+300*Math.sin(e/30*y))/3,r}static transformLat(e,t){let r=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*y)+20*Math.sin(2*e*y))/3,r+=2*(20*Math.sin(t*y)+40*Math.sin(t/3*y))/3,r+=2*(160*Math.sin(t/12*y)+320*Math.sin(t*y/30))/3,r}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 r=e.scene.drillPick(t),i=null,o=!1,l=!1;for(let a in r){let l=r[a];if((l&&l.primitive instanceof Cesium.Cesium3DTileFeature||l&&l.primitive instanceof Cesium.Cesium3DTileset||l&&l.primitive instanceof Cesium.Model)&&(o=!0),o&&(e.scene.pick(t),i=e.scene.pickPosition(t),i)){let e=Cesium.Cartographic.fromCartesian(i);e.height<0&&(e.height=0);let t=Cesium.Math.toDegrees(e.longitude),r=Cesium.Math.toDegrees(e.latitude),o=e.height;i=this.transformWGS84ToCartesian({lng:t,lat:r,alt:o})}}let n=e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider;if(!o&&!n){let r=e.scene.camera.getPickRay(t);if(!r)return null;i=e.scene.globe.pick(r,e.scene),l=!0}if(o||l||!n||(i=e.scene.camera.pickEllipsoid(t,e.scene.globe.ellipsoid)),i){let e=this.transformCartesianToWGS84(i);return e.alt<0&&(i=this.transformWGS84ToCartesian(e,.1)),i}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,r=[];for(let i=0;i{this._transformProjection(i)})),this._addImageryProvider(e.id,i),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 r={url:e.url};e.minimumLevel&&(r.minimumLevel=e.minimumLevel),e.maximumLevel?r.maximumLevel=e.maximumLevel:r.maximumLevel=18;var i=new Cesium.TileMapServiceImageryProvider(r);this._addImageryProvider(e.id,i),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 r={url:e.url,layer:e.layers,style:e.style,tileMatrixSetID:e.tileMatrixSetID,format:Cesium.defaultValue(e.format,"image/png")};e.tileMatrixLabels&&(r.tileMatrixLabels=e.tileMatrixLabels),e.minimumLevel&&(r.minimumLevel=e.minimumLevel),e.maximumLevel?r.maximumLevel=e.maximumLevel:r.maximumLevel=18;let i=new Cesium.WebMapTileServiceImageryProvider(r);this._addImageryProvider(e.id,i),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 r={url:e.url,layers:e.layers};e.parameters?r.parameters=e.parameters:r.parameters={service:"WMS",transparent:!0,request:"GetMap",format:"image/png"},e.minimumLevel&&(r.minimumLevel=e.minimumLevel),e.maximumLevel?r.maximumLevel=e.maximumLevel:r.maximumLevel=18;let i=new Cesium.WebMapServiceImageryProvider(r);this._addImageryProvider(e.id,i),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 r={url:e.url};e.layers&&(r.layers=e.layers);let i=new Cesium.ArcGisMapServerImageryProvider(r);this._addImageryProvider(e.id,i),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addCesium3DTileset:function(e,t){let r=this;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,r._addScenePrimitives(i),r.set3DTilePosition({serviceId:e.id,height:e.height}),r.set3DTileStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)})).catch((function(e){console.log(e)}))},addCesium3DTilesetBm:function(e,t){let r=this;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,r._addScenePrimitives(i),r.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 r=[];r=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:r,material:this.material,classificationType:this.classificationType}}),t&&t(e.id)},addEntitiesGltf:function(e,t){let r,i=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),r=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),l=e.pitch,n=e.roll,a=new Cesium.HeadingPitchRoll(o,l,n),s=i.entities.add({id:e.id,position:r,orientation:Cesium.Transforms.headingPitchRollQuaternion(r,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 r,i=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),r=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(r);let l=i.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:o,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[e.id]=l,t&&t(e.id)},addPolylineByGeoJson(e,t){let r=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((i=>{r._viewer.dataSources.add(i),i.name=e.id;let o=i.entities.values,l=new k(e);for(var n=0;n{if(t.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},o.scaleByDistance&&(o.scaleByDistance.near=Cesium.defaultValue(o.scaleByDistance.near,0),o.scaleByDistance.nearValue=Cesium.defaultValue(o.scaleByDistance.nearValue,0),o.scaleByDistance.far=Cesium.defaultValue(o.scaleByDistance.far,1),o.scaleByDistance.farValue=Cesium.defaultValue(o.scaleByDistance.farValue,0),t.billboard.scaleByDistance=new Cesium.NearFarScalar(o.scaleByDistance.near,o.scaleByDistance.nearValue,o.scaleByDistance.far,o.scaleByDistance.farValue)),e.label){let r=e.label||{};r.text=Cesium.defaultValue(r.text,""),r.textField=Cesium.defaultValue(r.textField,""),r.font=Cesium.defaultValue(r.font,"24px Helvetica"),r.fillColor instanceof Array?r.fillColor=new Cesium.Color(r.fillColor[0]/255,r.fillColor[1]/255,r.fillColor[2]/255,r.fillColor[3]):"string"==typeof e.color?r.fillColor=new Cesium.Color.fromCssColorString(r.fillColor):r.fillColor=new Cesium.Color.fromCssColorString("#ff0000"),r.outlineColor instanceof Array?r.outlineColor=new Cesium.Color(r.outlineColor[0]/255,r.outlineColor[1]/255,r.outlineColor[2]/255,r.outlineColor[3]):r.outlineColor instanceof String?r.outlineColor=new Cesium.Color.fromCssColorString(r.outlineColor):r.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00"),r.outlineWidth=Cesium.defaultValue(r.outlineWidth,1),r.showBackground=Cesium.defaultValue(r.showBackground,!1),r.backgroundColor instanceof Array?r.backgroundColor=new Cesium.Color(r.backgroundColor[0]/255,r.backgroundColor[1]/255,r.backgroundColor[2]/255,r.backgroundColor[3]):r.backgroundColor instanceof String?r.backgroundColor=new Cesium.Color.fromCssColorString(r.backgroundColor):r.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00"),r.pixelOffset=Cesium.defaultValue(r.pixelOffset,0),r.scale=Cesium.defaultValue(r.scale,1),r.near=Cesium.defaultValue(r.near,150),r.nearValue=Cesium.defaultValue(r.nearValue,1),r.far=Cesium.defaultValue(r.far,2400),r.farValue=Cesium.defaultValue(r.farValue,0);let o=r.text;t.properties[r.textField]&&(o=t.properties[r.textField]._value),""===o&&(o=(i+1).toString()),t.label={text:o.toString(),font:r.font,fillColor:r.fillColor,outlineColor:r.outlineColor,outlineWidth:r.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:r.showBackground,backgroundColor:r.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,r.pixelOffset),scale:r.scale},r.scaleByDistance&&(r.scaleByDistance.near=Cesium.defaultValue(r.scaleByDistance.near,0),r.scaleByDistance.nearValue=Cesium.defaultValue(r.scaleByDistance.nearValue,0),r.scaleByDistance.far=Cesium.defaultValue(r.scaleByDistance.far,1),r.scaleByDistance.farValue=Cesium.defaultValue(r.scaleByDistance.farValue,0),t.label.scaleByDistance=new Cesium.NearFarScalar(r.scaleByDistance.near,r.scaleByDistance.nearValue,r.scaleByDistance.far,r.scaleByDistance.farValue))}})),t&&t(e.id)}))},addBillboardByJson(e,t){let r=this._viewer;if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i=e.billboard||{};i.imgUrl=Cesium.defaultValue(i.imgUrl,"jt3dSDK/imgs/point/point3.png"),i.scale=Cesium.defaultValue(i.scale,1),i.pixelOffset=Cesium.defaultValue(i.pixelOffset,0),fetch(e.url).then((e=>e.json())).then((o=>{for(var l=0;l{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,r=t.featuresLength;for(let i=0;i{const i=r._sourcePrograms[t],o=r._rendererResources.sourceShaders[i.fragmentShader];let l="";-1!==o.indexOf(" v_positionEC;")?l="v_positionEC":-1!==o.indexOf(" v_pos;")&&(l="v_pos");const n=`vec4(${e.color.toString()})`;r._rendererResources.sourceShaders[i.fragmentShader]=`\n\t\t\t\t\t\t\t\t\t\t\t\t varying vec3 ${l};\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(${l},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 = ${n};\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`})),r._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,r=Cesium.Cartographic.fromCartesian(t.center),i=Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,e.height),o=Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,0),l=Cesium.Cartesian3.subtract(i,o,new Cesium.Cartesian3);window[e.serviceId].modelMatrix=Cesium.Matrix4.fromTranslation(l),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(C.prototype,{removeImageryProvider(e){return new Promise(((t,r)=>{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,r)=>{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,r)=>{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(((r,i)=>{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,i)=>{t.dataSources.remove(e),i===o.length-1&&r(!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 r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};class E{constructor({viewer:e,url:t,opacity:r=.75,show:i=!0}={}){this._viewer=e,this._url=t,this._opacity=r,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=i,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 r=this._calculateRectangleOutlineCoordinates(e),i=new Cesium.Entity({name:this._renderName,polyline:{positions:r,material:t,width:10,clampToGround:!0}});this._entities.add(i)}_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,r)=>{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,r){return`${this._renderName}_${e}_${t}_${r}`}_asyncProjectionTiles(e){let t=[];for(let o of e){let e=this._projectionTile(o);for(let r of e){let e=this._createKey(r.x,r.y,r.level);if(void 0===t.find((e=>e.x===r.x&&e.y===r.y))){let i=!1;for(let o of t)if(Cesium.Rectangle.intersection(o.rectangle,r.rectangle)){o.childTiles.push(e),i=!0;break}i||t.push({key:e,x:r.x,y:r.y,level:r.level,rectangle:r.rectangle,childTiles:[]})}}}let r=t.length,i=[];for(;r--;){let e=t[r];if(e.childTiles.length>=1){let o=this._createFourTiles(e);for(let e of o)i.push(e);t.splice(r,1)}}for(let o of i)t.push(o);t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),this._renderTilesToViewer(t)}_createTileByRectangleAndLevel(e,t){let r=Cesium.Rectangle.center(e),i=parseInt(t)+1,o=this._provider.tilingScheme.positionToTileXY(r,i);if(void 0!==o)return{key:this._createKey(o.x,o.y,i),x:o.x,y:o.y,level:i,rectangle:e,childTiles:[]}}_createFourTiles(e){let t=[],r=[],i=e.rectangle;t.push(Cesium.Rectangle.subsection(i,0,0,.5,.5)),t.push(Cesium.Rectangle.subsection(i,.5,0,1,.5)),t.push(Cesium.Rectangle.subsection(i,0,.5,.5,1)),t.push(Cesium.Rectangle.subsection(i,.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&&r.push(t)}return r}_renderTilesToViewer(e){let t=this,r=[];for(let[i,o]of this._renderEntities){void 0===e.find((e=>e.key===i))&&r.push(i)}for(let i of r)this._renderEntities.delete(i),this._entities.removeById(i);for(let i of e)if(!this._renderEntities.has(i.key)){let e=this._renderSimpleTileToViewer(i);this._renderEntities.set(i.key,e);let r=new Blob([`(${T.toString()})()`]),o=new Worker(URL.createObjectURL(r));o.postMessage({key:i.key,url:this._url,x:i.x,y:i.y,level:i.level}),o.onmessage=function(e){t._console(`render x:${e.data.x} y:${e.data.y} level:${e.data.level}`);let r=t._entities.getById(e.data.key);if(void 0!==r){e.data.key;const i=t._createCanvas(e.data,e.data.image,t._isDebug);r.rectangle.material=i}o.terminate()}}this._isUpdateTile=!0}_renderSimpleTileToViewer(e){const t=this._createCanvas(e,void 0,this._isDebug);let r=this._calculateRectangleOutlineCoordinates(e.rectangle),i=new Cesium.Entity({name:this._renderName,id:e.key,rectangle:{coordinates:e.rectangle,material:t},polyline:{positions:r,material:Cesium.Color.YELLOW.withAlpha(this._isDebug?1:0),width:1,clampToGround:!0}});return this._entities.add(i)}_createCanvas(e,t,r){let i=this._provider;const o=document.createElement("canvas");o.width=i.tileWidth,o.height=i.tileHeight;const l=o.getContext("2d");return void 0!==t&&(l.globalAlpha=this._opacity,l.drawImage(event.data.image,0,0,o.width,o.height)),void 0!==r&&!0===r&&(l.globalAlpha=1,l.font="20px Arial",l.textAlign="center",l.fillStyle="rgba(255,255,0)",l.strokeStyle="rgba(255,255,255,1)",l.lineWidth=2,l.strokeText(`L: ${e.level}`,126,86),l.fillText(`L: ${e.level}`,126,86),l.strokeText(`X: ${e.x}`,126,136),l.fillText(`X: ${e.x}`,126,136),l.strokeText(`Y: ${e.y}`,126,186),l.fillText(`Y: ${e.y}`,126,186)),o}_projectionTile(e){let t=e._rectangle,r=parseInt(e.level),i=this._provider.tilingScheme,o=[];if(void 0===Cesium.Rectangle.intersection(t,this._rectangle))return o;let l=i.positionToTileXY(Cesium.Rectangle.northwest(t),r),n=i.positionToTileXY(Cesium.Rectangle.southeast(t),r);if(void 0!==l&&void 0!==n)for(let a=l.x;a<=n.x;a++)for(let e=l.y;e<=n.y;e++){let t=i.tileXYToRectangle(a,e,r);Cesium.Rectangle.intersection(t,this._rectangle)&&o.push({x:a,y:e,level:r,rectangle:t})}else if(void 0!==l){let e=i.tileXYToRectangle(l.x,l.y,r);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:l.x,y:l.y,level:r,rectangle:e})}else if(void 0!==n){let e=i.tileXYToRectangle(n.x,n.y,r);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:n.x,y:n.y,level:r,rectangle:e})}return o}_calculateRectangleOutlineCoordinates(e){let t=Cesium.Rectangle.southeast(e),r=Cesium.Cartographic.toCartesian(t),i=Cesium.Rectangle.southwest(e),o=Cesium.Cartographic.toCartesian(i),l=Cesium.Rectangle.northeast(e),n=Cesium.Cartographic.toCartesian(l),a=Cesium.Rectangle.northwest(e);return[o,r,n,Cesium.Cartographic.toCartesian(a),o]}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var r=[],i=0;i>>",r+" Not found")},i.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,r)=>{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 i=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),0);this._viewer.camera.flyToBoundingSphere(i,{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,r){return new Promise(((i,o)=>{let l=this;if(r=r||{},void 0===e||void 0===e.length)return void o("输入的坐标集合异常!");let n=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));switch(l._locationEntity&&l._viewer.entities.remove(l._locationEntity),t){case"point":l._locationEntity=l._viewer.entities.add({position:n[0],point:{pixelSize:1}});break;case"polyline":n.length<2?o("线对象定位,点数至少2个"):l._locationEntity=l._viewer.entities.add({polyline:{positions:n,clampToGround:!0,material:new Cesium.Color(255,0,0,.5),width:1}});break;case"polygon":n.length<3?o("面对象定位,点数至少3个"):l._locationEntity=l._viewer.entities.add({polygon:{hierarchy:{positions:n},material:new Cesium.Color(255,0,0,.5),outline:!0}});break;default:o("坐标异常!")}r.duration=Cesium.defaultValue(r.duration,3),r.heading=Cesium.defaultValue(r.heading,0),r.pitch=Cesium.defaultValue(r.pitch,-90),r.range=Cesium.defaultValue(r.range,0),l._viewer.flyTo(l._locationEntity,{duration:r.duration,offset:{heading:Cesium.Math.toRadians(r.heading),pitch:Cesium.Math.toRadians(r.pitch),range:r.range}}).then((function(e){e&&i(l._locationEntity)}))}))},flyToEntity:function(e,t){return new Promise(((r,i)=>{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&&r(o._locationEntity)}))}))},zoomToTilesets(e,t){return new Promise(((r,i)=>{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(){r(!0)},offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}})}))},flyToTileset(e,t){return new Promise(((r,i)=>{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&&r(!0)}))}))}});const S=function(e,t,r){let i,o,l,n,a=document.getElementById("toolTip");if(e&&"object"==typeof e&&(i=e),i&&i.origin?("center"===i.origin&&(o=15,l=-12),"top"===i.origin&&(o=15,l=-44),"bottom"===i.origin&&(o=15,l=20)):(o=15,l=20),i&&i.color?("white"===i.color&&(n="background: rgba(255, 255, 255, 0.8);color: black;"),"black"===i.color&&(n="background: rgba(0, 0, 0, 0.65);color: white;"),"yellow"===i.color&&(n="color: black;background-color: #ffcc33;border: 1px solid white;")):n="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 r='';e.insertAdjacentHTML("beforeend",r),a=document.getElementById("toolTip")}return r?(a.innerHTML=e,a.style.left=t.x+o+"px",a.style.top=t.y+l+"px",a.style.display="block"):a.style.display="none",{tooltip:a,style:i,showAt:function(e,t){this.tooltip.innerHTML=t,this.style&&this.style.origin?("center"===this.style.origin&&(o=15,l=-this.tooltip.offsetHeight/2),"top"===this.style.origin&&(o=15,l=-this.tooltip.offsetHeight-20),"bottom"===this.style.origin&&(o=15,l=20)):(o=15,l=-this.tooltip.offsetHeight/2),this.tooltip.style.left=e.x+o+"px",this.tooltip.style.top=e.y+l+"px",this.tooltip.style.display="block"},show:function(e){this.tooltip.style.display=e?"block":"none"}}};class P{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 r=Cesium.Cartographic.fromCartesian(e),i=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(r,i);let l=o.surfaceDistance;return l=Math.sqrt(Math.pow(l,2)+Math.pow(i.height-r.height,2)),l}_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)?P.RuntimeEnvironment.App:P.RuntimeEnvironment.Web}_isRuntimeApp(){return this._checkAppOrWeb()===P.RuntimeEnvironment.App}_isRuntimeWeb(){return this._checkAppOrWeb()===P.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 r="";r+="
",r+="
"+e+"
",t.innerHTML=r,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 I(e){return Math.min.apply(null,e)}function M(e,t){for(var r=[],i=0;ir!=e[o][1]>r&&t<(e[o][0]-e[i][0])*(r-e[i][1])/(e[o][1]-e[i][1])+e[i][0]&&(l=!l);return l}function O(e,t){for(var r=0,i=M(0,t*t);r=a&&(a=Math.abs(e[i*t+o]),b=i,m=o);if(++g[m],b!==m){for(l=0;l=0;l--)if(f[l]!==h[l])for(o=0;or?t+(i-t)/r:t+(i-t)/r*(e/r*1.5-.5*Math.pow(e/r,3))}function H(e,t,r){var i,o=Array(r.n);for(i=0;i{let i=w._transfromFromScreenPoint(e._viewer,r.position);if(t="左键创建视角终点,右键结束通视分析",this._isRuntimeApp()&&(t="再次单击创建视角终点",e._showTooltipMessage(t)),!Cesium.defined(i.sLocation))return;let o=i.sLocation;if(e._resultObject.viewPoint){e._resultObject.targetPoint=o;let t=e._viewer.entities.add({position:o,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 r=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e._resultObject.targetPoint,e._resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),i=new Cesium.Ray(e._resultObject.viewPoint,r),l=e._viewer.scene.pickFromRay(i,e._resultObject.objectExclude);if(l){let t=e._distance(e._resultObject.viewPoint,e._resultObject.targetPoint),r=e._distance(e._resultObject.viewPoint,l.position),i=e._distance(l.position,e._resultObject.targetPoint);if(console.log(t,r,i),t>r){let n=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,l.position],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(n);let a=e._viewer.entities.add({polyline:{positions:[l.position,e._resultObject.targetPoint],material:Cesium.Color.RED,width:3}});e._resultObject.entities.push(a),e._resultObject.targetPoints.push({targetPoint:o,visual:!1,distance:[t,r,i]})}else{let l=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,e._resultObject.targetPoint],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(l),e._resultObject.targetPoints.push({targetPoint:o,visual:!0,distance:[t,r,i]})}}}else{e._resultObject.viewPoint=o;let t=e._viewer.entities.add({position:o,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=()=>{S(t,r.endPosition,!1),e.handler.destroy();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}),Cesium.ScreenSpaceEventType.LEFT_CLICK),e.handler.setInputAction((function(r){e._isRuntimeApp()||S(t,r.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.handler.setInputAction((r=>{S(t,r.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)}}),P.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});var G={train:function(e,t,r,i,o,l){var n,a,s,c,d={t:e,x:t,y:r,nugget:0,range:0,sill:0,A:1/3,n:0,model:V,K:[],M:[]};switch(i){case"gaussian":d.model=U;break;case"exponential":d.model=V;break;case"spherical":d.model=W;break;default:d.model=V}var p=e.length,u=Array((p*p-p)/2);for(n=0,s=0;n30?30:(p*p-p)/2,f=d.range/h,g=M(0,h),m=M(0,h);if(h<30)for(c=0;c=(p*p-p)/2)););s>0&&(g[c]/=s,m[c]/=s,c++)}if(c<2)return d}p=c,d.range=g[p-1]-g[0];var b=M(1,2*p),v=Array(p),_=d.A;for(n=0;nc[1]&&(c[1]=e[i][o][0]),e[i][o][1]d[1]&&(d[1]=e[i][o][1]);var p=Array(2),u=Array(2),h=Array(2),f=Array(2),g=Math.ceil((c[1]-c[0])/r),m=Math.ceil((d[1]-d[0])/r),b=Array(g+1);for(i=0;i<=g;i++)b[i]=Array(m+1);for(i=0;ih[1]&&(h[1]=e[i][o][0]),e[i][o][1]f[1]&&(f[1]=e[i][o][1]);for(p[0]=Math.floor((h[0]-(h[0]-c[0])%r-c[0])/r),p[1]=Math.ceil((h[1]-(h[1]-c[1])%r-c[0])/r),u[0]=Math.floor((f[0]-(f[0]-d[0])%r-d[0])/r),u[1]=Math.ceil((f[1]-(f[1]-d[1])%r-d[0])/r),o=p[0];o<=p[1];o++)for(l=u[0];l<=u[1];l++)a=c[0]+o*r,s=d[0]+l*r,L(e[i],a,s)&&(b[o][l]=H(a,s,t))}return{xlim:c,ylim:d,width:r,data:b,zlim:[I(t.t),D(t.t)]}}},plot:function(e,t,r,i,o){var l=e.getContext("2d"),n=t.data,a=t.zlim,s=t.width;if(l){l.clearRect(0,0,e.width,e.height);var c=[r[1]-r[0],i[1]-i[0],a[1]-a[0]],d=void 0,p=void 0,u=void 0,h=void 0,f=void 0,g=n.length,m=n[0].length,b=Math.ceil(s*e.width/(r[1]-r[0])),v=Math.ceil(s*e.height/(i[1]-i[0]));for(d=0;d1&&(f=1),l.fillStyle=o[Math.floor((o.length-1)*f)],l.fillRect(Math.round(u-b/2),Math.round(h-v/2),b,v))}},max:D,min:I,pip:L,rep:M,matrixDiag:O,matrixTranspose:z,matrixAdd:R,matrixMultiply:N,matrixChol:B,matrixChol2inv:j,matrixSolve:F,variogramGaussian:U,variogramExponential:V,variogramSpherical:W},Y={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,r){void 0===r&&(r={});var i={type:"Feature"};return(0===r.id||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Z(e,t,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(!ee(e[0])||!ee(e[1]))throw new Error("coordinates must contain numbers");return q({type:"Point",coordinates:e},t,r)}function X(e,t,r){void 0===r&&(r={});for(var i=0,o=e;ie[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 ne(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 ae(e){return"Feature"===e.type?e.geometry:e}oe.default=oe;var se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function de(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})})),t}var pe={exports:{}};function ue(e,t,r,i,o){he(e,t,r||0,i||e.length-1,o||ge)}function he(e,t,r,i,o){for(;i>r;){if(i-r>600){var l=i-r+1,n=t-r+1,a=Math.log(l),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(l-s)/l)*(n-l/2<0?-1:1);he(e,t,Math.max(r,Math.floor(t-n*s/l+c)),Math.min(i,Math.floor(t+(l-n)*s/l+c)),o)}var d=e[t],p=r,u=i;for(fe(e,r,t),o(e[i],d)>0&&fe(e,r,i);p0;)u--}0===o(e[r],d)?fe(e,r,u):fe(e,++u,i),u<=t&&(r=u+1),t<=u&&(i=u-1)}}function fe(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function ge(e,t){return et?1:0}function me(e,t,r){if(!r)return t.indexOf(e);for(let i=0;i=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 Se(e,t,r,i,o){const l=[t,r];for(;l.length;){if((r=l.pop())-(t=l.pop())<=i)continue;const n=t+Math.ceil((r-t)/i/2)*i;ue(e,n,t,r,o),l.push(t,n,n,r)}}var Pe=de(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 r=[];if(!Te(e,t))return r;const i=this.toBBox,o=[];for(;t;){for(let l=0;l=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)}_split(e,t){const r=e[t],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const l=this._chooseSplitIndex(r,o,i),n=Ae(r.children.splice(l,r.children.length-l));n.height=r.height,n.leaf=r.leaf,be(r,this.toBBox),be(n,this.toBBox),t?e[t-1].children.push(n):this._splitRoot(r,n)}_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,r){let i,o=1/0,l=1/0;for(let n=t;n<=r-t;n++){const t=ve(e,0,n,this.toBBox),a=ve(e,n,r,this.toBBox),s=Ce(t,a),c=we(t)+we(a);s=t;s--){const t=e.children[s];_e(n,e.leaf?o(t):t),a+=ke(n)}return a}_adjustParentBBoxes(e,t,r){for(let i=r;i>=0;i--)_e(t[i],e)}_condense(e){for(let t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children,t.splice(t.indexOf(e[r]),1)):this.clear():be(e[r],this.toBBox)}}}));function De(e,t){return et?1:0}var Ie=de(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 r=(this.length>>1)-1;r>=0;r--)this._down(r)}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:r}=this,i=t[e];for(;e>0;){const o=e-1>>1,l=t[o];if(r(i,l)>=0)break;t[e]=l,e=o}t[e]=i}_down(e){const{data:t,compare:r}=this,i=this.length>>1,o=t[e];for(;e=0)break;t[e]=l,e=i}t[e]=o}}})),Me={exports:{}},Le=function(e,t,r,i){var o=e[0],l=e[1],n=!1;void 0===r&&(r=0),void 0===i&&(i=t.length);for(var a=(i-r)/2,s=0,c=a-1;sl!=h>l&&o<(u-d)*(l-p)/(h-p)+d&&(n=!n)}return n},Oe=function(e,t,r,i){var o=e[0],l=e[1],n=!1;void 0===r&&(r=0),void 0===i&&(i=t.length);for(var a=i-r,s=0,c=a-1;sl!=h>l&&o<(u-d)*(l-p)/(h-p)+d&&(n=!n)}return n};Me.exports=function(e,t,r,i){return t.length>0&&Array.isArray(t[0])?Oe(e,t,r,i):Le(e,t,r,i)},Me.exports.nested=Oe,Me.exports.flat=Le;var ze={exports:{}};!function(e){const t=134217729,r=33306690738754706e-32;function i(e,t,r,i,o){let l,n,a,s,c=t[0],d=i[0],p=0,u=0;d>c==d>-c?(l=c,c=t[++p]):(l=d,d=i[++u]);let h=0;if(pc==d>-c?(a=l-((n=c+l)-c),c=t[++p]):(a=l-((n=d+l)-d),d=i[++u]),l=n,0!==a&&(o[h++]=a);pc==d>-c?(a=l-((n=l+c)-(s=n-l))+(c-s),c=t[++p]):(a=l-((n=l+d)-(s=n-l))+(d-s),d=i[++u]),l=n,0!==a&&(o[h++]=a);for(;p0!=v>0)return _;const y=Math.abs(b+v);return Math.abs(_)>=l*y?_:-function(e,o,l,h,f,g,m){let b,v,_,y,x,w,k,C,E,T,A,S,P,D,I,M,L,O;const z=e-f,R=l-f,N=o-g,B=h-g;x=(I=(C=z-(k=(w=t*z)-(w-z)))*(T=B-(E=(w=t*B)-(w-B)))-((D=z*B)-k*E-C*E-k*T))-(A=I-(L=(C=N-(k=(w=t*N)-(w-N)))*(T=R-(E=(w=t*R)-(w-R)))-((M=N*R)-k*E-C*E-k*T))),s[0]=I-(A+x)+(x-L),x=(P=D-((S=D+A)-(x=S-D))+(A-x))-(A=P-M),s[1]=P-(A+x)+(x-M),x=(O=S+A)-S,s[2]=S-(O-x)+(A-x),s[3]=O;let j=function(e,t){let r=t[0];for(let i=1;i=F||-j>=F)return j;if(b=e-(z+(x=e-z))+(x-f),_=l-(R+(x=l-R))+(x-f),v=o-(N+(x=o-N))+(x-g),y=h-(B+(x=h-B))+(x-g),0===b&&0===v&&0===_&&0===y)return j;if(F=a*m+r*Math.abs(j),(j+=z*y+B*b-(N*_+R*v))>=F||-j>=F)return j;x=(I=(C=b-(k=(w=t*b)-(w-b)))*(T=B-(E=(w=t*B)-(w-B)))-((D=b*B)-k*E-C*E-k*T))-(A=I-(L=(C=v-(k=(w=t*v)-(w-v)))*(T=R-(E=(w=t*R)-(w-R)))-((M=v*R)-k*E-C*E-k*T))),u[0]=I-(A+x)+(x-L),x=(P=D-((S=D+A)-(x=S-D))+(A-x))-(A=P-M),u[1]=P-(A+x)+(x-M),x=(O=S+A)-S,u[2]=S-(O-x)+(A-x),u[3]=O;const U=i(4,s,4,u,c);x=(I=(C=z-(k=(w=t*z)-(w-z)))*(T=y-(E=(w=t*y)-(w-y)))-((D=z*y)-k*E-C*E-k*T))-(A=I-(L=(C=N-(k=(w=t*N)-(w-N)))*(T=_-(E=(w=t*_)-(w-_)))-((M=N*_)-k*E-C*E-k*T))),u[0]=I-(A+x)+(x-L),x=(P=D-((S=D+A)-(x=S-D))+(A-x))-(A=P-M),u[1]=P-(A+x)+(x-M),x=(O=S+A)-S,u[2]=S-(O-x)+(A-x),u[3]=O;const V=i(U,c,4,u,d);x=(I=(C=b-(k=(w=t*b)-(w-b)))*(T=y-(E=(w=t*y)-(w-y)))-((D=b*y)-k*E-C*E-k*T))-(A=I-(L=(C=v-(k=(w=t*v)-(w-v)))*(T=_-(E=(w=t*_)-(w-_)))-((M=v*_)-k*E-C*E-k*T))),u[0]=I-(A+x)+(x-L),x=(P=D-((S=D+A)-(x=S-D))+(A-x))-(A=P-M),u[1]=P-(A+x)+(x-M),x=(O=S+A)-S,u[2]=S-(O-x)+(A-x),u[3]=O;const W=i(V,d,4,u,p);return p[W-1]}(e,o,h,f,g,m,y)},e.orient2dfast=function(e,t,r,i,o,l){return(t-l)*(r-o)-(e-o)*(i-l)},Object.defineProperty(e,"__esModule",{value:!0})}(ze.exports);var Re=Pe,Ne=Ie,Be=Me.exports,je=ze.exports.orient2d;function Fe(e,t,r){t=Math.max(0,void 0===t?2:t),r=r||0;var i=function(e){for(var t=e[0],r=e[0],i=e[0],o=e[0],l=0;li[0]&&(i=n),n[1]o[1]&&(o=n)}var a=[t,r,i,o],s=a.slice();for(l=0;l=2&&Ye(t[t.length-2],t[t.length-1],e[r])<=0;)t.pop();t.push(e[r])}for(var i=[],o=e.length-1;o>=0;o--){for(;i.length>=2&&Ye(i[i.length-2],i[i.length-1],e[o])<=0;)i.pop();i.push(e[o])}return i.pop(),t.pop(),t.concat(i)}(s)}(e),o=new Re(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 l,n=[],a=0;al||a.push({node:d,dist:p})}for(;a.length&&!a.peek().node.children;){var u=a.pop(),h=u.node,f=Qe(h,t,r),g=Qe(h,i,o);if(u.dist=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Ge(e,t,r){for(var i,o,l,n,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]),p=r.search({minX:a,minY:s,maxX:c,maxY:d}),u=0;u0!=Ye(i,o,n)>0&&Ye(l,n,i)>0!=Ye(l,n,o)>0)return!1;return!0}function Ye(e,t,r){return je(e[0],e[1],t[0],t[1],r[0],r[1])}function qe(e){var t=e.p,r=e.next.p;return e.minX=Math.min(t[0],r[0]),e.minY=Math.min(t[1],r[1]),e.maxX=Math.max(t[0],r[0]),e.maxY=Math.max(t[1],r[1]),e}function Ze(e,t){var r={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(r.next=t.next,r.prev=t,t.next.prev=r,t.next=r):(r.prev=r,r.next=r),r}function Xe(e,t){var r=e[0]-t[0],i=e[1]-t[1];return r*r+i*i}function Qe(e,t,r){var i=t[0],o=t[1],l=r[0]-i,n=r[1]-o;if(0!==l||0!==n){var a=((e[0]-i)*l+(e[1]-o)*n)/(l*l+n*n);a>1?(i=r[0],o=r[1]):a>0&&(i+=l*a,o+=n*a)}return(l=e[0]-i)*l+(n=e[1]-o)*n}function Ke(e,t,r,i,o,l,n,a){var s,c,d,p,u=r-e,h=i-t,f=n-o,g=a-l,m=e-o,b=t-l,v=u*u+h*h,_=u*f+h*g,y=f*f+g*g,x=u*m+h*b,w=f*m+g*b,k=v*y-_*_,C=k,E=k;0===k?(c=0,C=1,p=w,E=y):(p=v*w-_*x,(c=_*w-y*x)<0?(c=0,p=w,E=y):c>C&&(c=C,p=w+_,E=y)),p<0?(p=0,-x<0?c=0:-x>v?c=C:(c=-x,C=v)):p>E&&(p=E,-x+_<0?c=0:-x+_>v?c=C:(c=-x+_,C=v));var T=(1-(d=0===p?0:p/E))*o+d*n-((1-(s=0===c?0:c/C))*e+s*r),A=(1-d)*l+d*a-((1-s)*t+s*i);return T*T+A*A}function Je(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}Ne.default&&(Ne=Ne.default),pe.exports=Fe,pe.exports.default=Fe;var $e=pe.exports;function et(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=le(e),o=ae(t),l=o.type,n=t.bbox,a=o.coordinates;if(n&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,n))return!1;"Polygon"===l&&(a=[a]);for(var s=!1,c=0;ce[1]!=c>e[1]&&e[0]<(s-n)*(e[1]-a)/(c-a)+n&&(i=!i)}return i}function rt(e,t,r){void 0===r&&(r={});var i=le(e),o=le(t),l=$(o[1]-i[1]),n=$(o[0]-i[0]),a=$(i[1]),s=$(o[1]),c=Math.pow(Math.sin(l/2),2)+Math.pow(Math.sin(n/2),2)*Math.cos(a)*Math.cos(s);return function(e,t){void 0===t&&(t="kilometers");var r=Y[t];if(!r)throw new Error(t+" units is invalid");return e*r}(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),r.units)}function it(e,t,r,i){void 0===i&&(i={});var o=le(e),l=$(o[0]),n=$(o[1]),a=$(r),s=function(e,t){void 0===t&&(t="kilometers");var r=Y[t];if(!r)throw new Error(t+" units is invalid");return e/r}(t,i.units),c=Math.asin(Math.sin(n)*Math.cos(s)+Math.cos(n)*Math.sin(s)*Math.cos(a));return Z([J(l+Math.atan2(Math.sin(a)*Math.sin(s)*Math.cos(n),Math.cos(s)-Math.sin(n)*Math.sin(c))),J(c)],i.properties)}function ot(e,t,r){if(void 0===r&&(r={}),!0===r.final)return function(e,t){var r=ot(t,e);return r=(r+180)%360}(e,t);var i=le(e),o=le(t),l=$(i[0]),n=$(o[0]),a=$(i[1]),s=$(o[1]),c=Math.sin(n-l)*Math.cos(s),d=Math.cos(a)*Math.sin(s)-Math.sin(a)*Math.cos(s)*Math.cos(n-l);return J(Math.atan2(c,d))}function lt(e,t){return it(e,rt(e,t)/2,ot(e,t))}function nt(e,t){void 0===t&&(t={});var r=0,i=0,o=0;return te(e,(function(e){r+=e[0],i+=e[1],o++}),!0),Z([r/o,i/o],t.properties)}function at(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 r=[];te(e,(function(e){r.push(e)}));var i,o,l,n,a,s,c,d,p=nt(e,{properties:t.properties}),u=p.geometry.coordinates,h=0,f=0,g=0,m=r.map((function(e){return[e[0]-u[0],e[1]-u[1]]}));for(i=0;i3?X([i]):null}(e);return v?at(v,{properties:t.properties}):nt(e,{properties:t.properties})}}function st(e){if(!e)throw new Error("geojson is required");var t=[];return ie(e,(function(e){!function(e,t){var r=[],i=e.geometry;if(null!==i){switch(i.type){case"Polygon":r=ne(i);break;case"LineString":r=[ne(i)]}r.forEach((function(r){(function(e,t){var r=[];return e.reduce((function(e,i){var o,l,n,a,s,c,d=Q([e,i],t);return d.bbox=(l=i,n=(o=e)[0],a=o[1],s=l[0],c=l[1],[ns?n:s,a>c?a:c]),r.push(d),i})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),K(t)}var ct={exports:{}};function dt(e,t,r,i,o){pt(e,t,r||0,i||e.length-1,o||ht)}function pt(e,t,r,i,o){for(;i>r;){if(i-r>600){var l=i-r+1,n=t-r+1,a=Math.log(l),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(l-s)/l)*(n-l/2<0?-1:1);pt(e,t,Math.max(r,Math.floor(t-n*s/l+c)),Math.min(i,Math.floor(t+(l-n)*s/l+c)),o)}var d=e[t],p=r,u=i;for(ut(e,r,t),o(e[i],d)>0&&ut(e,r,i);p0;)u--}0===o(e[r],d)?ut(e,r,u):ut(e,++u,i),u<=t&&(r=u+1),t<=u&&(i=u-1)}}function ut(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function ht(e,t){return et?1:0}function ft(e,t,r){if(!r)return t.indexOf(e);for(let i=0;i=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 Tt(e,t,r,i,o){const l=[t,r];for(;l.length;){if((r=l.pop())-(t=l.pop())<=i)continue;const n=t+Math.ceil((r-t)/i/2)*i;dt(e,n,t,r,o),l.push(t,n,n,r)}}var At=de(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 r=[];if(!Ct(e,t))return r;const i=this.toBBox,o=[];for(;t;){for(let l=0;l=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)}_split(e,t){const r=e[t],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const l=this._chooseSplitIndex(r,o,i),n=Et(r.children.splice(l,r.children.length-l));n.height=r.height,n.leaf=r.leaf,gt(r,this.toBBox),gt(n,this.toBBox),t?e[t-1].children.push(n):this._splitRoot(r,n)}_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,r){let i,o=1/0,l=1/0;for(let n=t;n<=r-t;n++){const t=mt(e,0,n,this.toBBox),a=mt(e,n,r,this.toBBox),s=wt(t,a),c=yt(t)+yt(a);s=t;s--){const t=e.children[s];bt(n,e.leaf?o(t):t),a+=xt(n)}return a}_adjustParentBBoxes(e,t,r){for(let i=r;i>=0;i--)bt(t[i],e)}_condense(e){for(let t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children,t.splice(t.indexOf(e[r]),1)):this.clear():gt(e[r],this.toBBox)}}})),St={};!function(e){function t(e,t,r){void 0===r&&(r={});var i={type:"Feature"};return(0===r.id||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function r(e,r,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(!u(e[0])||!u(e[1]))throw new Error("coordinates must contain numbers");return t({type:"Point",coordinates:e},r,i)}function i(e,r,i){void 0===i&&(i={});for(var o=0,l=e;o=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},e.radiansToLength=c,e.lengthToRadians=d,e.lengthToDegrees=function(e,t){return p(d(e,t))},e.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},e.radiansToDegrees=p,e.degreesToRadians=function(e){return e%360*Math.PI/180},e.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(d(e,t),r)},e.convertArea=function(t,r,i){if(void 0===r&&(r="meters"),void 0===i&&(i="kilometers"),!(t>=0))throw new Error("area must be a positive number");var o=e.areaFactors[r];if(!o)throw new Error("invalid original units");var l=e.areaFactors[i];if(!l)throw new Error("invalid final units");return t/o*l},e.isNumber=u,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(!u(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")}}(St);var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});var Dt=St;function It(e,t,r){if(null!==e)for(var i,o,l,n,a,s,c,d,p=0,u=0,h=e.type,f="FeatureCollection"===h,g="Feature"===h,m=f?e.features.length:1,b=0;ba||u>s||h>c)return n=l,a=r,s=u,c=h,void(o=0);var f=Dt.lineString([n,l],e.properties);if(!1===t(f,r,i,h,o))return!1;o++,n=l}))&&void 0}}}))}function Nt(e,t){if(!e)throw new Error("geojson is required");zt(e,(function(e,r,i){if(null!==e.geometry){var o=e.geometry.type,l=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,r,i,0,0))return!1;break;case"Polygon":for(var n=0;ne[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2] line1 must only contain 2 coordinates");if(2!==i.length)throw new Error(" line2 must only contain 2 coordinates");var o=r[0][0],l=r[0][1],n=r[1][0],a=r[1][1],s=i[0][0],c=i[0][1],d=i[1][0],p=i[1][1],u=(p-c)*(n-o)-(d-s)*(a-l),h=(d-s)*(l-c)-(p-c)*(o-s),f=(n-o)*(l-c)-(a-l)*(o-s);if(0===u)return null;var g=h/u,m=f/u;return g>=0&&g<=1&&m>=0&&m<=1?Z([o+g*(n-o),l+g*(a-l)]):null}function Kt(e,t,r){void 0===r&&(r={});for(var i=le(e),o=ne(t),l=0;lo)return!1}else if(0!==h)return!1;return i?"start"===i?Math.abs(p)>=Math.abs(u)?p>0?a0?s=Math.abs(u)?p>0?a<=l&&l0?s<=n&&n=Math.abs(u)?p>0?a0?s=Math.abs(u)?p>0?a<=l&&l<=c:c<=l&&l<=a:u>0?s<=n&&n<=d:d<=n&&n<=s}function $t(e,t){var r=ae(e),i=ae(t),o=r.type,l=i.type;switch(o){case"Point":switch(l){case"MultiPoint":return function(e,t){var r,i=!1;for(r=0;rt[0])&&(!(e[2]t[1])&&!(e[3]1?function(e,t,r){return void 0===r&&(r={}),q({type:"MultiLineString",coordinates:e},t,r)}(e,t):Q(e[0],t)}function lr(e,t){var r=!0;return ie(e,(function(e){ie(t,(function(t){if(!1===r)return!1;r=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return r=e.coordinates,i=t.coordinates,!(r[0]===i[0]&&r[1]===i[1]);case"LineString":return!nr(t,e);case"Polygon":return!et(e,t)}break;case"LineString":switch(t.type){case"Point":return!nr(e,t);case"LineString":return!function(e,t){if(Xt(e,t).features.length>0)return!0;return!1}(e,t);case"Polygon":return!ar(t,e)}break;case"Polygon":switch(t.type){case"Point":return!et(t,e);case"LineString":return!ar(e,t);case"Polygon":return!function(e,t){for(var r=0,i=e.coordinates[0];r0)return!0;return!1}(t,e)}}var r,i;return!1}(e.geometry,t.geometry)}))})),r}function nr(e,t){for(var r=0;r0}function sr(e,t,r){var i=r[0]-e[0],o=r[1]-e[1],l=t[0]-e[0],n=t[1]-e[1];return 0==i*n-o*l&&(Math.abs(l)>=Math.abs(n)?l>0?e[0]<=r[0]&&r[0]<=t[0]:t[0]<=r[0]&&r[0]<=e[0]:n>0?e[1]<=r[1]&&r[1]<=t[1]:t[1]<=r[1]&&r[1]<=e[1])}function cr(e,t){var r=!1;return ie(e,(function(e){ie(t,(function(t){if(!0===r)return!0;r=!lr(e.geometry,t.geometry)}))})),r}function dr(e,t,r){return void 0===r&&(r={}),function(e,t,r,i){void 0===i&&(i={});for(var o=[],l=e[0],n=e[1],a=e[2],s=e[3],c=t/rt([l,n],[a,n],i)*(a-l),d=r/rt([l,n],[l,s],i)*(s-n),p=a-l,u=s-n,h=Math.floor(p/c),f=Math.floor(u/d),g=(u-f*d)/2,m=l+(p-h*c)/2,b=0;b=e?i=t?2*Math.PI-o:Math.PI+o,o=180*o/Math.PI,o}getPitch(e,t){let r=Cesium.Transforms.eastNorthUpToFixedFrame(e);const i=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);let o=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(r,r),i,i);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,r=Number(e.visualRange),i=Cesium.Transforms.eastNorthUpToFixedFrame(t);this.debugModelMatrixPrimitive=this.viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({modelMatrix:i,length:5}));const o=e.horizontalViewAngle/2,l=e.verticalViewAngle/2,n=Cesium.Math.toDegrees(e.pitch),a=new Cesium.EllipsoidGraphics({radii:new Cesium.Cartesian3(r,r,r),minimumClock:Cesium.Math.toRadians(90-e.direction-o),maximumClock:Cesium.Math.toRadians(90-e.direction+o),minimumCone:Cesium.Math.toRadians(90-n-l),maximumCone:Cesium.Math.toRadians(90-n+l),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 r=Cesium.Math.toRadians(e.horizontalViewAngle),i=Cesium.Math.toRadians(e.verticalViewAngle);this.lightCamera.frustum.aspectRatio=t*Math.tan(r/2)*2/(t*Math.tan(i/2)*2),this.lightCamera.frustum.fov=r>i?r:i,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,r=new Cesium.Quaternion,i=this.lightCamera.directionWC,o=this.lightCamera.upWC;let l=this.lightCamera.rightWC;l=Cesium.Cartesian3.negate(l,e);let n=t;Cesium.Matrix3.setColumn(n,0,l,n),Cesium.Matrix3.setColumn(n,1,o,n),Cesium.Matrix3.setColumn(n,2,i,n);let a=Cesium.Quaternion.fromRotationMatrix(n,r),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}),r=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:r,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),r=this.ViewShedOptions.visualRange,i=this.ViewShedOptions.direction;let o=this.computeBoundaryOptions(t,r,i);const l=o.bbox;let n=X([o.boundaryPoints]);const a=this.ViewShedOptions.visualRange/(1e3*e);let s=function(e,t,r){void 0===r&&(r={}),r.mask&&!r.units&&(r.units="kilometers");for(var i=[],o=e[0],l=e[1],n=e[2],a=e[3],s=t/rt([o,l],[n,l],r)*(n-o),c=t/rt([o,l],[o,a],r)*(a-l),d=n-o,p=a-l,u=Math.floor(d/s),h=(p-Math.floor(p/c)*c)/2,f=o+(d-u*s)/2;f<=n;){for(var g=l+h;g<=a;){var m=Z([f,g],r.properties);r.mask?$t(m,r.mask)&&i.push(m):i.push(m),g+=c}f+=s}return K(i)}(l,a,{mask:n});console.log(this.ViewShedOptions.visualRange,e,a);let c=this.createTargetPoints(s,a,t),d=G.train(c.values,c.lngs,c.lats,"exponential",0,100),p=G.grid([o.boundaryPoints],d,a/1e3);this.canvasEle.width=3840,this.canvasEle.height=2160,G.plot(this.canvasEle,p,[l[0],l[2]],[l[1],l[3]],["#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080"]),this.addViewershedPolygon(o.positionArr)}computeBoundaryOptions(e,t,r){let i=6356725;const o=e[0],l=e[1],n=[o,l,o,l];let a=[],s=[];a.push(o,l),s.push([o,l]);let c=r+45>360?r-45-360:r-45,d=c+90;for(let p=c;p<=d;p++){let e=t*Math.sin(p*Math.PI/180),r=t*Math.cos(p*Math.PI/180),c=i+21412*(90-l)/90,d=o+e/(c*Math.cos(l*Math.PI/180))*180/Math.PI,u=l+r/c*180/Math.PI;a.push(d,u),s.push([d,u]),this.refreshBBox(n,d,u)}return s.push([o,l]),{positionArr:a,boundaryPoints:s,bbox:n}}refreshBBox(e,t,r){e[0]=te[2]?t:e[2],e[3]=r>e[3]?r:e[3]}createTargetPoints(e,t,r){let i=[this.frustumPrimitive,this.pyramid,this.debugModelMatrixPrimitive],o=[],l=[],n=[],a=this.getHeight(r[0],r[1],i);[].push({x:r[0],y:r[1],z:a});let s=this.ViewShedOptions.viewPosition;for(let c=0;ct?o.push(0):o.push(1),l.push(a),n.push(d)}}return{values:o,lngs:l,lats:n}}returnImgae(){return this.canvasEle.toDataURL("image/png")}}Object.assign(pr.prototype,{createViewshed:function(e){let t=this,r=t.viewer.scene;t.initHandler(),t.clearAll();let i=0,o="左键点击创建起点";t.handler=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas),t.handler.setInputAction((l=>{if(i++,1===i){o="左键点击创建终点";let e=r.pickPosition(l.position),i=t.cartesian3ToDegree(e);t.handler.setInputAction((function(l){S(o,l.endPosition,!0);let n=r.pickPosition(l.endPosition);if(Cesium.defined(n)){let r=t.cartesian3ToDegree(n),o=Cesium.Cartesian3.distance(n,e),l=t.getAngle(i[0],i[1],r[0],r[1]),a=t.getPitch(e,n);t.ViewShedOptions={viewPosition:e,endPosition:n,direction:l,pitch:a,horizontalViewAngle:90,verticalViewAngle:60,visibleAreaColor:Cesium.Color.GREEN,invisibleAreaColor:Cesium.Color.RED,visualRange:o},t.updateViewShed()}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}2===i&&(t.initHandler(),t.drawViewershed(e),S(o,l.endPosition,!1))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),t.handler.setInputAction((function(e){S(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 ur{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._stopTime=null}}Object.assign(ur.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(ur.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)),r=Cesium.JulianDate.fromDate(new Date(e.stopTime));viewer.timeline.zoomTo(t,r);let i=viewer.clock;i.shouldAnimate=!1,i.startTime=t,i.stopTime=r,i.currentTime=t,i.clockRange=Cesium.ClockRange.UNBOUNDED,i.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 hr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._profileEntities=[]}_interPoints(e,t){let r=[],i=[];for(let n=0;no&&(o=r);let l=parseInt(o/2);l>1e3&&(l=1e3),l<2&&(l=2);for(let n=0;n{let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));this.removeProfileAnalysis(),t.clampToGround=!0,console.log(o);let l=this._interPoints(o,[t]);console.log(l),r(l)}))},removeProfileAnalysis(){let e=this;e._profileEntities&&e._profileEntities.length>0&&e._profileEntities.forEach((t=>{e._viewer.entities.remove(t)})),e._profileEntities=[]}});class fr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this.delEntitys=[],this.maxHeigh=-1e6}_VolumeAnalysis(e){let t=this,r=0,i=0,o=0,l=0;const n=e.geom.indices,a=e.geom.attributes.position.values;for(let c=0;cthis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),height:o}}}Object.assign(fr.prototype,{createPolygonGeo(e,t){return new Promise(((r,i)=>{let o=this;(t=t||{}).precision=Cesium.defaultValue(t.precision,256),t.height=Cesium.defaultValue(t.height,10),o.remove();let l=[];for(let t=0;t{let r=e[2]||0;t=r,rCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),i=this;i.data=r,i.baseHeight=t.baseHeight,i.targetY=t.baseHeight+t.height;let o=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(i.data),height:i.baseHeight,extrudedHeight:i.baseHeight+3e3}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(t.color).withAlpha(t.alpha)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});i.limitHeightPrimitive=i._viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:o,releaseGeometryInstances:!1,classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),i._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),r=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight+e),o=Cesium.Cartesian3.subtract(i,r,new Cesium.Cartesian3);this.limitHeightPrimitive._primitive.modelMatrix=Cesium.Matrix4.fromTranslation(o)}});class mr{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,r=t._viewer,i=t._scene;new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(t){let r=i.pick(t.position);Cesium.defined(r)&&Cesium.defined(r.id)&&Cesium.defined(r.id.plane)&&(e=r.id.plane,e.material=Cesium.Color.RED.withAlpha(.05),e.outlineColor=Cesium.Color.RED,i.screenSpaceCameraController.enableInputs=!1)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(){Cesium.defined(e)&&(e.material=Cesium.Color.RED.withAlpha(.1),e.outlineColor=Cesium.Color.RED,e=void 0),i.screenSpaceCameraController.enableInputs=!0}),Cesium.ScreenSpaceEventType.LEFT_UP),new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(r){if(Cesium.defined(e)){let e=r.startPosition.y-r.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,r){let i=this._getOriginCoordinateSystemPoint(e,r),o=this._getOriginCoordinateSystemPoint(t,r),l=new Cesium.Cartesian3(0,0,10),n=Cesium.Cartesian3.subtract(o,i,new Cesium.Cartesian3),a=Cesium.Cartesian3.cross(n,l,new Cesium.Cartesian3);a=Cesium.Cartesian3.normalize(a,a);let s=Cesium.Plane.fromPointNormal(i,a);return Cesium.ClippingPlane.fromPlane(s)}_getOriginCoordinateSystemPoint(e,t){let r=Cesium.Cartesian3.fromDegrees(e[0],e[1]);return Cesium.Matrix4.multiplyByPoint(t,r,new Cesium.Cartesian3(0,0,0))}_getInverseTransform(e){let t;const r=e.root.transform;return t=r&&r.equals(Cesium.Matrix4.IDENTITY)||!r?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform),Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}_isDirRes(e,t){var r=[];e.forEach((e=>{r.push([e.lng,e.lat])}));let i=function(e){for(var t,r,i=ne(e),o=0,l=1;l0}(Q(r));var o=[];if(t)if(i)for(var l=0,n=e.length-1;n>=0;n--)o[l]=e[n],l++;else o=e;else if(i)o=e;else for(l=0,n=e.length-1;n>=0;n--)o[l]=e[n],l++;return o}}Object.assign(mr.prototype,{activate(e){let t=this,r=t._viewer,i=t._getInverseTransform(e);[].push(t._createPlane([121.55814450142213,37.39658788787028],[121.65814450142213,37.49658788787028],i));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 i=e.boundingSphere,l=i.radius;if(r.zoomTo(e,new Cesium.HeadingPitchRange(.5,-.2,l/5)),!Cesium.Matrix4.equals(e.root.transform,Cesium.Matrix4.IDENTITY)){const t=Cesium.Matrix4.getTranslation(e.root.transform,new Cesium.Cartesian3),r=Cesium.Cartographic.fromCartesian(t),i=Cesium.Cartographic.fromCartesian(e.boundingSphere.center).height-r.height;o.modelMatrix=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0,0,i))}for(let e=0;eCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let r=this.viewer;this.clear();let i=[],o=Cesium.Cartesian3.subtract(e[0],e[1],new Cesium.Cartesian3).x>0;this.excavateMinHeight=999999999;for(let l=0;l{let r=[],i=e.reduce((function(e,t,i,o){var l=10*i,n=l+10,a=o.slice(l,n);return 0!=a.length&&(r[i]=a),r}),[]);t._calculateSlope(i),t._openTip()}))}_createPolygonInsrance(e,t){let r=[];for(let o=1;o0?[Cesium.Cartographic.toCartesian(l),Cesium.Cartographic.toCartesian(n)]:[Cesium.Cartographic.toCartesian(n),Cesium.Cartographic.toCartesian(l)];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,r=[],i=[];for(let n=0;na&&(a=t,s=e)}let c=new Cesium.Cartographic(l.longitude,l.latitude,0),d=new Cesium.Cartographic(o[s].longitude,o[s].latitude,0),p=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(c),Cesium.Cartographic.toCartesian(d)),u=Math.abs(a/p),h=t._calculateSlopeColor(u,.4);const f=t._createPolygonInsrance(o,h);i.push(f);let g=s>4?o[s-4]:o[s+4],m=o[s];const b=t._createArrowInstance(m,l,g,a,u);r.push(b)}const o=t._viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),l=t._viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:r,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));t.result.push(l,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(yr.prototype,{createNew4Distance(e,t,r){let i=this;(r=r||{}).distance=r.distance||.1;let o=200*r.distance>35?35:200*r.distance;i.arrowWidth=o<15?15:o;let l=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));i.clearAll();let n=w.Cartesian3ListToWGS84(l),a=[],s=1e4,c=1e4,d=-1e4,p=-1e3;for(let f=0;fd?t:d,p=r>p?r:p}a.push(a[0]);let u=[s,c,d,p];X([a]);let h=dr(u,r.distance,{});i._createEllipse(h)},createNew4Num(e,t,r){let i=this;(r=r||{}).num=Cesium.defaultValue(r.num,10);let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));i.clearAll();let l=w.Cartesian3ListToWGS84(o),n=[],a=1e4,s=1e4,c=-1e4,d=-1e3;for(let b=0;bc?t:c,d=r>d?r:d}n.push(n[0]);let p=[a,s,c,d],u=c-a,h=d-s;h=h>u?h:u;const f=h/r.num;let g=2e3*f>35?35:2e3*f;i.arrowWidth=g<15?15:g,X([n]);let m=dr(p,f,{units:"degrees"});i._createEllipse(m)},clearAll(){this.result.forEach((e=>{this._viewer.scene.primitives.remove(e)})),this.result=[],this.handler&&(this.handler.destroy(),this.handler=void 0)}});let xr={TerrainExcavation:_r,SlopeAspect:yr};class wr{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(wr.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 kr=Cesium.BoxGeometry,Cr=Cesium.Cartesian3,Er=Cesium.defaultValue,Tr=Cesium.defined,Ar=Cesium.destroyObject,Sr=Cesium.DeveloperError,Pr=Cesium.GeometryPipeline,Dr=Cesium.Matrix3,Ir=Cesium.Matrix4,Mr=Cesium.Transforms,Lr=Cesium.VertexFormat,Or=Cesium.BufferUsage,zr=Cesium.CubeMap,Rr=Cesium.DrawCommand,Nr=Cesium.loadCubeMap,Br=Cesium.RenderState,jr=Cesium.VertexArray,Fr=Cesium.BlendingState,Ur=Cesium.SceneMode,Vr=Cesium.ShaderProgram,Wr=Cesium.ShaderSource;Cesium.defined(Cesium.Matrix4.getRotation)||(Cesium.Matrix4.getRotation=Cesium.Matrix4.getMatrix3);class Hr{constructor(e){this.sources=e.sources,this._sources=void 0,this.show=Er(e.show,!0),this._command=new Rr({modelMatrix:Ir.clone(Ir.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}}const Gr=new Dr;Hr.prototype.update=function(e,t){const r=this;if(!this.show)return;if(e.mode!==Ur.SCENE3D&&e.mode!==Ur.MORPHING)return;if(!e.passes.render)return;const i=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!(Tr(e.positiveX)&&Tr(e.negativeX)&&Tr(e.positiveY)&&Tr(e.negativeY)&&Tr(e.positiveZ)&&Tr(e.negativeZ)))throw new Sr("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 Sr("this.sources properties must all be the same type.");"string"==typeof e.positiveX?Nr(i,this._sources).then((function(e){r._cubeMap=r._cubeMap&&r._cubeMap.destroy(),r._cubeMap=e})):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new zr({context:i,source:e}))}const o=this._command;if(o.modelMatrix=Mr.eastNorthUpToFixedFrame(e.camera._positionWC),!Tr(o.vertexArray)){o.uniformMap={u_cubeMap:function(){return r._cubeMap},u_rotateMatrix:function(){return Ir.getRotation(o.modelMatrix,Gr)}};const e=kr.createGeometry(kr.fromDimensions({dimensions:new Cr(2,2,2),vertexFormat:Lr.POSITION_ONLY})),t=this._attributeLocations=Pr.createAttributeLocations(e);o.vertexArray=jr.fromGeometry({context:i,geometry:e,attributeLocations:t,bufferUsage:Or._DRAW}),o.renderState=Br.fromCache({blending:Fr.ALPHA_BLEND})}if(!Tr(o.shaderProgram)||this._useHdr!==t){const e=new Wr({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=Vr.fromCache({context:i,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 Tr(this._cubeMap)?o:void 0},Hr.prototype.isDestroyed=function(){return!1},Hr.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(),Ar(this)};class Yr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._farSkyBox=e.scene.skyBox}}Object.assign(Yr.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,r=new Hr({sources:e.sources,show:!0});t._viewer.scene.postRender.addEventListener((()=>{var i=t._viewer.camera.position;Cesium.Cartographic.fromCartesian(i).heightCesium.Cartesian3.fromDegrees(e.lng,e.lat,e.height))),i=[];for(let e=0;e{let e=new Cesium.SampledPositionProperty;for(let i=0;i{let i=this;i.clearFlyPaths();let o=i._viewer.camera.position;var l={orientation:{heading:i._viewer.camera.heading,pitch:i._viewer.camera.pitch,roll:i._viewer.camera.roll},position:o,clampToGround:!0,geometry:{type:"LineString",coordinates:e}};i._draw3DObj=l,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 $r{constructor(e,t,r){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,(r=r||{}).time=Cesium.defaultValue(r.time,360),r.speed=Cesium.defaultValue(r.speed,10),r.isPathShow=Cesium.defaultValue(r.isPathShow,!0),r.height=Cesium.defaultValue(r.height,5),r.role=Cesium.defaultValue(r.role,1),r.followedX=Cesium.defaultValue(r.followedX,50),r.followedZ=Cesium.defaultValue(r.followedZ,10),this.time=r.time,this.speed=r.speed,this.isPathShow=r.isPathShow,this.height=r.height,this.role=r.role,this.followedX=r.followedX,this.followedZ=r.followedZ,this.model=r.model,this.billboard=r.billboard,this.point=r.point,this.label=r.label,this.property=this.ComputeRoamingLineProperty(t,this.time)}ComputeRoamingLineProperty(e,t){let r=[];r=e[0]instanceof Cesium.Cartesian3?e:e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let i=[];for(let p=0;p{let t=new Cesium.SampledPositionProperty;for(let i=0;i0&&(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||g();let l=t.label||{};l.text=Cesium.defaultValue(l.text,"金田CIM三维基础平台"),l.font=Cesium.defaultValue(l.font,"24px Helvetica"),l.fillColor instanceof Array?l.fillColor=new Cesium.Color(l.fillColor[0]/255,l.fillColor[1]/255,l.fillColor[2]/255,l.fillColor[3]):"string"==typeof l.fillColor?l.fillColor=new Cesium.Color.fromCssColorString(l.fillColor):l.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),l.outlineColor instanceof Array?l.outlineColor=new Cesium.Color(l.outlineColor[0]/255,l.outlineColor[1]/255,l.outlineColor[2]/255,l.outlineColor[3]):"string"==typeof l.outlineColor?l.outlineColor=new Cesium.Color.fromCssColorString(l.outlineColor):l.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),l.outlineWidth=Cesium.defaultValue(l.outlineWidth,1),l.showBackground=Cesium.defaultValue(l.showBackground,!1),l.backgroundColor instanceof Array?l.backgroundColor=new Cesium.Color(l.backgroundColor[0]/255,l.backgroundColor[1]/255,l.backgroundColor[2]/255,l.backgroundColor[3]):"string"==typeof l.backgroundColor?l.backgroundColor=new Cesium.Color.fromCssColorString(l.backgroundColor):l.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),l.backgroundPadding&&(l.backgroundPadding=new Cesium.Cartesian2(l.backgroundPadding,l.backgroundPadding));let n=new Cesium.Entity({id:t.id,position:o,label:{text:l.text,font:l.font,fillColor:l.fillColor,outlineColor:l.outlineColor,outlineWidth:l.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:l.showBackground,backgroundColor:l.backgroundColor,backgroundPadding:l.backgroundPadding,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}});l.pixelOffset&&(l.pixelOffset.x=Cesium.defaultValue(l.pixelOffset.x,0),l.pixelOffset.y=Cesium.defaultValue(l.pixelOffset.y,0),n.label.pixelOffset=new Cesium.Cartesian2(l.pixelOffset.x,l.pixelOffset.y)),l.scaleByDistance&&(l.scaleByDistance.near=Cesium.defaultValue(l.scaleByDistance.near,0),l.scaleByDistance.nearValue=Cesium.defaultValue(l.scaleByDistance.nearValue,0),l.scaleByDistance.far=Cesium.defaultValue(l.scaleByDistance.far,1),l.scaleByDistance.farValue=Cesium.defaultValue(l.scaleByDistance.farValue,0),n.label.scaleByDistance=new Cesium.NearFarScalar(l.scaleByDistance.near,l.scaleByDistance.nearValue,l.scaleByDistance.far,l.scaleByDistance.farValue)),this._viewer.entities.add(n),r(n)}))},addPoint(e,t){return new Promise(((r,i)=>{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||g();let l=t.point||{};l.pixelSize=Cesium.defaultValue(l.pixelSize,10),l.color instanceof Array?l.color=new Cesium.Color(l.color[0]/255,l.color[1]/255,l.color[2]/255,l.color[3]):"string"==typeof l.color?l.color=new Cesium.Color.fromCssColorString(l.color):l.color=new Cesium.Color.fromCssColorString("#FFF"),l.outlineColor instanceof Array?l.outlineColor=new Cesium.Color(l.outlineColor[0]/255,l.outlineColor[1]/255,l.outlineColor[2]/255,l.outlineColor[3]):"string"==typeof l.outlineColor?l.outlineColor=new Cesium.Color.fromCssColorString(l.outlineColor):l.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),l.outlineWidth=Cesium.defaultValue(l.outlineWidth,1);let n=new Cesium.Entity({id:t.id,position:o,point:{pixelSize:l.pixelSize,color:l.color,outlineColor:l.outlineColor,outlineWidth:l.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)),n.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),n.label.scaleByDistance=new Cesium.NearFarScalar(e.scaleByDistance.near,e.scaleByDistance.nearValue,e.scaleByDistance.far,e.scaleByDistance.farValue))}this._viewer.entities.add(n),r(n)}))},addBillboard(e,t){return new Promise(((r,i)=>{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||g();let l=t.billboard||{};l.image=l.imgUrl||"jt3dSDK/imgs/point/point3.png",l.scale=Cesium.defaultValue(l.scale,1),l.pixelOffset=Cesium.defaultValue(l.pixelOffset,0);let n=new Cesium.Entity({id:t.id,name:"add billboard",position:o,billboard:{image:l.image,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:l.scale,pixelOffset:new Cesium.Cartesian2(0,l.pixelOffset),heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});if(l.scaleByDistance&&(l.scaleByDistance.near=Cesium.defaultValue(l.scaleByDistance.near,0),l.scaleByDistance.nearValue=Cesium.defaultValue(l.scaleByDistance.nearValue,0),l.scaleByDistance.far=Cesium.defaultValue(l.scaleByDistance.far,1),l.scaleByDistance.farValue=Cesium.defaultValue(l.scaleByDistance.farValue,0),n.billboard.scaleByDistance=new Cesium.NearFarScalar(l.scaleByDistance.near,l.scaleByDistance.nearValue,l.scaleByDistance.far,l.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)),n.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),n.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),n.label.scaleByDistance=new Cesium.NearFarScalar(e.scaleByDistance.near,e.scaleByDistance.nearValue,e.scaleByDistance.far,e.scaleByDistance.farValue))}this._viewer.entities.add(n),r(n)}))},addModel:function(e,t){let r=this;return this._viewer,new Promise(((i,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");let l;l=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||g();let n=t.model||{};n.alpha=Cesium.defaultValue(n.alpha,1),n.heading=Cesium.defaultValue(n.heading,0),n.pitch=Cesium.defaultValue(n.pitch,0),n.roll=Cesium.defaultValue(n.roll,0);var a=Cesium.Math.toRadians(n.heading),s=n.pitch,c=n.roll;new Cesium.HeadingPitchRoll(a,s,c);let d=new Cesium.Entity({id:t.id,position:l,model:{uri:n.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(n.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}});n.minimumPixelSize&&(d.model.minimumPixelSize=n.minimumPixelSize),n.maximumScale&&(d.model.maximumScale=n.maximumScale),n.silhouetteColor&&(n.silhouetteColor instanceof Array?d.model.silhouetteColor=new Cesium.Color(n.silhouetteColor[0]/255,n.silhouetteColor[1]/255,n.silhouetteColor[2]/255,n.silhouetteColor[3]):"string"==typeof n.silhouetteColor&&(d.model.silhouetteColor=new Cesium.Color.fromCssColorString(n.silhouetteColor))),n.silhouetteSize=Cesium.defaultValue(n.silhouetteSize,1),r._viewer.entities.add(d),i(d)}))},addBillboardByGeoJson:function(e,t){return new Promise(((r,o)=>{let l=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||g();let n=t.billboard||{};n.imgUrl=Cesium.defaultValue(n.imgUrl,"jt3dSDK/imgs/point/point3.png"),n.scale=Cesium.defaultValue(n.scale,1),n.pixelOffset=Cesium.defaultValue(n.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){l.dataSources.add(e);e.entities.values.forEach((e=>{e.billboard={image:n.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:n.scale,pixelOffset:new Cesium.Cartesian2(0,n.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(((r,i)=>{if(!Cesium.defined(e.points))throw r("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw r("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||g(),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 l=Cesium.Math.toRadians(e.heading),n=e.pitch,a=e.roll,s=new Cesium.HeadingPitchRoll(l,n,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,r(e.id)}))},addModelFromGltf(e,t){let r=this._viewer;return new Promise(((e,i)=>{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||g(),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 l=Cesium.Transforms.eastNorthUpToFixedFrame(o);let n=r.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:t.url,modelMatrix:l,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[t.id]=n,e(t.id)}))}});class ti{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ti.prototype,{drawPolylineByGeoJson:function(e,t){return new Promise(((r,i)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||g(),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 i=e.entities.values,l=new Cesium.DistanceDisplayCondition(t.minHeigh,t.maxHeigh),n=new k(t);for(var a=0;a{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),t.width=t.width||5;let l=new k(t);r(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:l,clampToGround:!0}}))}))},PolylineArrowMaterialProperty:function(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),t.width=t.width||5;let l=new k(t);r(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:l,clampToGround:!0}}))}))},drawGlowingLine(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),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,r(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(((r,i)=>{Cesium.defined(e)||i("points is required."),e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),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,r(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(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),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),r(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(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),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,r(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(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),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,r(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 ri{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._drawEntities=[],this._polygonEntity=null}}function ii(e){this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this.color=e.color||Color.BLUE,this.duration=e.duration||1e3,this.trailImage=e.trailImage,this._time=(new Date).getTime()}Object.assign(ri.prototype,{drawPolygonByGeoJson(e,t){return new Promise(((r,i)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||g(),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 i=e.entities.values;for(let r=0;r{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<3&&i("面对象,点数至少3个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||g(),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 l=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&&(l.polyline={positions:l.polygon.hierarchy._value.positions,width:t.outlineWidth,material:t.outlineColor,clampToGround:!0}),this._viewer.entities.add(l),r(l)}))}}),Object.defineProperties(ii.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});var oi="wallType"+parseInt(1e3*Math.random());ii.prototype.getType=function(e){return oi},ii.prototype.getValue=function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.image=this.trailImage,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),viewer.scene.requestRender(),t},ii.prototype.equals=function(e){return this===e||e instanceof ii&&Cesium.Property.equals(this._color,e._color)},Cesium.Material._materialCache.addMaterial(oi,{fabric:{type:oi,uniforms:{color:new Cesium.Color(1,0,0,.5),image:Cesium.Material.DefaultImageId,time:-20},source:function(e){if(e&&e.get){var t="czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;";return"vertical"==e.direction?t+="vec4 colorImage = texture2D(image, vec2(fract(st.s), fract(float("+e.count+")*st.t"+e.order+" time)));\n ":t+="vec4 colorImage = texture2D(image, vec2(fract(float("+e.count+")*st.s "+e.order+" time), fract(st.t)));\n ",t+="vec4 fragColor;\n fragColor.rgb = (colorImage.rgb+color.rgb) / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.diffuse = colorImage.rgb;\n material.alpha = colorImage.a;\n material.emission = fragColor.rgb;\n return material;\n }"}}({get:!0,count:3,direction:"vertical",order:"-"})},translucent:function(e){return!0}}),Cesium.DynamicWallMaterialProperty=ii;class li{constructor(e){this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=e.color}get isConstant(){return!1}get definitionChanged(){return this._definitionChanged}getType(e){return Cesium.Material.WallDiffuseMaterialType}getValue(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t}equals(e){return this===e||e instanceof li&&Cesium.Property.equals(this._color,e._color)}}Object.defineProperties(li.prototype,{color:Cesium.createPropertyDescriptor("color")}),Cesium.WallDiffuseMaterialProperty=li,Cesium.Material.WallDiffuseMaterialProperty="WallDiffuseMaterialProperty",Cesium.Material.WallDiffuseMaterialType="WallDiffuseMaterialType",Cesium.Material.WallDiffuseMaterialSource="\n uniform vec4 color;\n czm_material czm_getMaterial(czm_materialInput materialInput){\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n material.diffuse = color.rgb * 2.0;\n material.alpha = color.a * (1.0 - fract(st.t)) * 0.8;\n return material;\n }\n \n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.WallDiffuseMaterialType,{fabric:{type:Cesium.Material.WallDiffuseMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1)},source:Cesium.Material.WallDiffuseMaterialSource},translucent:function(e){return!0}});class ni{constructor(e,t){this._viewer=e,t=t||{},this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=t.color||Cesium.Color.BLUE,this.duration=t.duration||1e3,this.trailImage=Cesium.defaultValue(t.trailImage,"jt3dSDK/imgs/polylinematerial/image.png"),this._time=(new Date).getTime(),this._materialTypeName="WallMaterial"+this._guid(),this._param={color:this.color._value.toCssColorString(),image:this.trailImage,duration:this.duration,count:0,direction:"",order:""},Cesium.Material._materialCache.addMaterial(this._materialTypeName,{fabric:{type:this._materialTypeName,uniforms:{time:-20,color:new Cesium.Color(1,0,0,.5),image:t.trailImage},source:this._getDirectionWallShader(t.param)},translucent:function(e){return!0}})}_guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}getType(e){return this._materialTypeName}getValue(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BLUE,t.color),t.image=this.trailImage,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),this._viewer.scene.requestRender(),t}equals(e){return this===e||e instanceof ni&&Cesium.Property.equals(this._color,e._color)&&e._param.order===this._param.order&&e._param.count===this._param.count&&e._param.direction===this._param.direction&&e.duration===this.duration}_getDirectionWallShader(e){let t=Cesium.defaultValue(e,{}),r=void 0!==t.count&&"number"==typeof t.count&&t.count>0?t.count:1,i="horizontal"===t.direction?"horizontal":"vertical",o="+"===t.order?"+":"-";this._param.count=r,this._param.direction=i,this._param.order=o;let l="";return l+="czm_material czm_getMaterial(czm_materialInput materialInput){\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n","vertical"===i?l+=" vec4 colorImage = texture2D(image,vec2(st.s,fract(float("+r+")*st.t "+o+" time)));\n":"horizontal"===i&&(l+=" vec4 colorImage = texture2D(image, vec2(fract(float("+r+")*st.s "+o+" time), st.t));\n"),l+=" vec4 fragColor;\n fragColor.rgb = color.rgb / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb;\n material.emission = fragColor.rgb;\n return material;\n}",l}}Object.defineProperties(ni.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});class ai{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ai.prototype,{drawWallByGeoJson:function(e,t){return new Promise(((r,i)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||g(),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),fetch(e).then((e=>e.json())).then((e=>{for(var t=0;tCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));o.entities.add({name:"立体墙效果",wall:{positions:r,maximumHeights:new Array(r.length).fill(5e3),minimunHeights:new Array(r.length).fill(0),material:new Cesium.DynamicWallMaterialProperty({trailImage:"jt3dSDK/imgs/wallmaterial/wl.png",color:Cesium.Color.CYAN,duration:1500})}})}r(!0)}))}))}}),Cesium.Primitive.prototype.setUseGeometry=function(e){this._useGeometry=e},Cesium.Primitive.prototype.getUseGeometry=function(){return this._useGeometry};class si{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,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",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",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 si.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case si.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case si.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case si.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,r,i){let o=new Cesium.Color(0,0,0,1);return"number"!=typeof e||"number"!=typeof t||"number"!=typeof r||"number"!=typeof i||e<0||e>255||t<0||t>255||r<0||r>255||i<0||i>1?o:new Cesium.Color(e/255,t/255,r/255,i)}_toColorFromArray(e){if(!e||void 0===e.length||0===e.length)return new Cesium.Color(1,1,1,1);let t=255,r=255,i=255,o=1;return 1===e.length?t=parseInt(e[0]):2===e.length?(t=parseInt(e[0]),r=parseInt(e[1])):3===e.length?(t=parseInt(e[0]),r=parseInt(e[1]),i=parseInt(e[2])):e.length>=4&&(t=parseInt(e[0]),r=parseInt(e[1]),i=parseInt(e[2]),o=parseFloat(e[3])),new Cesium.Color(t/255,r/255,i/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(e){let t,r=this._viewer.scene.camera.getPickRay(e),i=this._viewer.scene.globe.pick(r,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(i),Cesium.defined(i)&&(t={x:i.x,y:i.y,z:i.z}),t}_getScreenClickPositionAndHeight(e){var t=void 0,r=void 0,i=void 0,o=this._viewer.scene.camera.getPickRay(e),l=this._viewer.scene.globe.pick(o,this._viewer.scene),n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(l);if(null==this._viewer.scene.pick(e))t=this._arcToDegree(n.longitude),r=this._arcToDegree(n.latitude),i=n.height;else{var a=this._viewer.scene.pickPosition(e);if(Cesium.defined(a)){n=Cesium.Cartographic.fromCartesian(a);t=this._arcToDegree(n.longitude),r=this._arcToDegree(n.latitude),i=n.height}}return{lng:t,lat:r,height:i}}_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 r=[],i=0;i0&&(r._sketchPoints.pop(),r._sketchOutputPoints.pop(),t.onUndo&&t.onUndo())})),this._registerLeftDoubleClickEvent(e,(function(e){r._clearEvent(),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)}))},_sketchDrawPolyline(e,t){let r=this;this._registerLeftClickEvent(e,(function(e){let i=r._transfromFromScreenPoint(e.position);Cesium.defined(i.sLocation)&&(r._isDrawPoint&&r._createPoint(i.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempPolyline(),r._sketchTempPoints.push(i.sLocation.clone())),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let i=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(i.sLocation)&&Cesium.defined(r._sketchTempPolyline)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation),t.onMoving&&t.onMoving(i.sLocation))})),this._registerRightClickEvent(e,(function(e){if(r._sketchTempPoints.length>2){if(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint){let e=r._pointEntitys[r._pointEntitys.length-1];r._entities.remove(e),r._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<2?t.onError&&t.onError("点数少于两个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempPolyline),r._createPolyline(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))}))},_sketchDrawSpatialPolyline(e,t){let r=this;this._registerLeftClickEvent(e,(function(e){let i=r._transfromFromScreenPoint(e.position);Cesium.defined(i.sLocation)&&(r._isDrawPoint&&r._createPoint(i.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempSpatialPolyline(),r._sketchTempPoints.push(i.sLocation.clone())),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let i=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(i.sLocation)&&Cesium.defined(r._sketchTempSpatialPolyline)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation),t.onMoving&&t.onMoving(i.sLocation))})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<2?t.onError&&t.onError("绘制点少于2个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempSpatialPolyline),r._createSpatialPolyline(),r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))})),this._registerRightClickEvent(e,(function(e){r._sketchTempPoints.length>2&&(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo())}))},_sketchDrawPolygon(e,t){let r=this;this._registerLeftClickEvent(e,(function(e){let i=r._transfromFromScreenPoint(e.position);Cesium.defined(i.sLocation)&&(r._isDrawPoint&&r._createPoint(i.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempPolygon(),r._createTempPolyline(),r._sketchTempPoints.push(i.sLocation.clone())),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let i=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(i.sLocation)&&Cesium.defined(r._sketchTempPolygon)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation),t.onMoving&&t.onMoving(i.sLocation))})),this._registerRightClickEvent(e,(function(e){if(r._sketchTempPoints.length>2){if(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint){let e=r._pointEntitys[r._pointEntitys.length-1];r._entities.remove(e),r._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempPolygon),r._removeEntityByObject(r._sketchTempPolyline),r._createPolygon(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))}))},_sketchDrawCircle:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchTempPoints.push(o.sLocation.clone()),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),r._sketchOutputPoints.push(o.gLocation),r._createTempCircle(o.sLocation),t.onAdded&&t.onAdded(o.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation);let e=r._sketchEllipseCenterPosition,t=r._sketchTempPoints[1];r._ellipseOutlineCoordinates=[];for(let o=5;o<360;){let i=r._rotatedPointByAngle(t,e,o);r._ellipseOutlineCoordinates.push(i),o+=5}r._ellipseOutlineCoordinates.push(r._ellipseOutlineCoordinates[0]);let i=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),l=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]),n=new Cesium.EllipsoidGeodesic;n.setEndPoints(i,l),r._sketchEllipseRadius=n.surfaceDistance,r._sketchEllipseRadius<=0&&(r._sketchEllipseRadius=1)}r._removePointEntitys(),r._removeEntityByObject(r._sketchTempCircle),r._createCircle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchOutputPoints[0],r._sketchEllipseRadius)}})),this._registerMouseMoveEvent(e,(function(e){if(!r._isRuntimeApp()&&Cesium.defined(r._sketchTempCircle)){var t=r._viewer.scene.pickPosition(e.endPosition);null!=t&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(t))}}))},_sketchDrawHeightPolyline:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchAltitudeInitHeight=o.gLocation.height,r._sketchTempPoints.push(o.sLocation.clone()),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),t.onAdded&&t.onAdded(o.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation);let e=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]);r._sketchEllipseCenterPosition=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height),r._sketchAltitudePolylinePostions=[],r._sketchAltitudePolylinePostions.push(r._sketchTempPoints[0]);let i=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);r._sketchAltitudePolylinePostions.push(i);let l=new Cesium.EllipsoidGeodesic;l.setEndPoints(e,t),r._sketchEllipseRadius=l.surfaceDistance,r._sketchEllipseRadius<=0&&(r._sketchEllipseRadius=1);let n=t.height-e.height;r._sketchEllipseHeight=n+r._sketchAltitudeInitHeight}r._removePointEntitys(),r._removeEntityByObject(r._sketchTempAltituePolyline),r._createAltitudePolyline(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition)}})),this._registerMouseMoveEvent(e,(function(e){if(!r._isRuntimeApp()&&null!=r._sketchTempPoints&&0!=r._sketchTempPoints.length){var i=r._viewer.scene.pickPosition(e.endPosition);null!=i&&r._sketchTempPoints.length>=2&&(Cesium.defined(r._sketchTempAltituePolyline)?(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i)):r._createTempAltitudePolyline(),t.onMoving&&t.onMoving(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition))}}))},_sketchDrawRectangle:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchTempPoints.push(o.gLocation),r._sketchTempPoints.push(o.gLocation),r._sketchPoints.push(o.gLocation),r._createTempRectangle(),t.onAdded&&t.onAdded(o.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.gLocation);let e=parseFloat(r._sketchTempPoints[0].lng),t=parseFloat(r._sketchTempPoints[0].lat),i=parseFloat(r._sketchTempPoints[1].lng),l=parseFloat(r._sketchTempPoints[1].lat);r._rectangleCoordinates=[0,0,1,1],e2&&(r._sketchPoints.pop(),r._sketchOutputPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo(r._sketchPoints))})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempPolygon),r._removeEntityByObject(r._sketchTempPolyline),r._createPolygonBody({height:30,color:[255,255,0,.9]}),r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))}))},_sketchDrawTriangleA:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){if(Cesium.defined(r._sketchTempAltituePolyline))return;let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0==r._sketchPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchTempPoints.push(o.sLocation.clone()),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation),r._createTempSpatialTriangle(),t.onAdded&&t.onAdded(o.sLocation);else if(r._sketchPoints.length>0){if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation),r._sketchSpatialTrianglePositions=[],r._sketchSpatialTrianglePositions.push(r._sketchTempPoints[0].clone()),r._sketchSpatialTrianglePositions.push(r._sketchTempPoints[1].clone());let e=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]),i=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);r._sketchSpatialTrianglePositions.push(i),r._sketchSpatialTrianglePositions.push(r._sketchTempPoints[0].clone())}r._removePointEntitys(),r._removeEntityByObject(r._sketchTempSpatialTriangle),r._createSpatialTriangle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchSpatialTrianglePositions)}})),this._registerMouseMoveEvent(e,(function(e){if(!r._isRuntimeApp()&&void 0!==r._sketchPoints&&0!==r._sketchPoints.length){var i=r._viewer.scene.pickPosition(e.endPosition);null!=i&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i),t.onMoving&&t.onMoving(i))}}))},sketchTools:function(e,t){let r=this;switch(this._clear(),r._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case si.SketchType.Point:r._sketchDrawPoint(r._sketchEventHandler,t);break;case si.SketchType.Line:r._sketchDrawPolyline(r._sketchEventHandler,t);break;case si.SketchType.Polygon:r._sketchDrawPolygon(r._sketchEventHandler,t);break;case si.SketchType.Height:r._sketchDrawHeightPolyline(r._sketchEventHandler,t);break;case si.SketchType.Spatial:r._sketchDrawSpatialPolyline(r._sketchEventHandler,t);break;case si.SketchType.Circle:r._sketchDrawCircle(r._sketchEventHandler,t);break;case si.SketchType.Rectangle:r._sketchDrawRectangle(r._sketchEventHandler,t);break;case si.SketchType.Triangle:r._sketchDrawTriangleA(r._sketchEventHandler,t);break;case si.SketchType.PolygonBody:r._sketchDrawPolygonBody(r._sketchEventHandler,t);break;case si.SketchType.MultiplePoint:r._sketchDrawMultiplePoint(r._sketchEventHandler,t)}},sketchDrawFeacture:function(e,t,r){let i=this;if(void 0===e||void 0===e.length||e.length<2)r&&r.onError&&r.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 r=t._useGeometry.color,i=t._useGeometry.height;this._sketchPoints=t._useGeometry.cPoints,this._sketchOutputPoints=t._useGeometry.gPoints,e&&e.height&&"number"==typeof e.height&&(i=parseInt(e.height)),e&&e.color&&this._checkColorAndAlpha(e.color)&&(r=this._checkColorAndAlpha(e.color)),this._viewer.scene.primitives.remove(t),this._createPolygonBody({color:r,height:i}),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,r=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);r.setInputAction((function(i){let o=t._viewer.scene.pick(i.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)),r.destroy(),r=null}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}}),si.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"}),si.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"}),si.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class ci{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 si(e,{iconType:si.SketchIconType.Blue,isDrawPoint:this._isDrawPoint,isRetainDrawPoint:this._isRetainDrawPoint});let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r),this._init()}_init(){this._measureEntityName="MeasureEntity",this._entities=this._viewer.entities,this._measurePointImage="data:image/png;base64,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",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(e){let t=this._entities;if(!t||!t.values)return;let r=[];for(let i=0;i",t.innerHTML=r,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}}function di(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o!!r[e.toLowerCase()]:e=>!!r[e]}Object.assign(ci.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(ci.prototype,{clear:function(){this._clear(!0),this._initMousePointerStyle()}}),Object.assign(ci.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(si.SketchType.Line,{onAdded:function(e,r){if(1===e.length)t._createPoint(e[0],"起点");else{let r=t._measureDistance(e),i=[e[e.length-2],e[e.length-1]];r+=" +"+t._measureDistance(i),t._tempEntitys.push(t._createPoint(e[e.length-1],r))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,r){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,r){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(si.SketchType.Line,{onAdded:function(r,i){if(1===r.length){t._tooltipRemove(),t._createPoint(r[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 r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}else{let e=t._measureDistance(r),i=[r[r.length-2],r[r.length-1]];e+=" +"+t._measureDistance(i),t._tempEntitys.push(t._createPoint(r[r.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(si.SketchType.Spatial,{onAdded:function(e,r){if(1===e.length)t._createPoint(e[0],"起点");else{let r=t._measureSpaceDistance(e);t._tempEntitys.push(t._createPoint(e[e.length-1],r))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,r){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,r){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(si.SketchType.Spatial,{onAdded:function(r,i){if(1===r.length){t._tooltipRemove(),t._createPoint(r[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 r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}else{let e=t._measureSpaceDistance(r);t._tempEntitys.push(t._createPoint(r[r.length-1],e))}}})},measureArea:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量");var r="";this._isRuntimeWeb()?this._sketchViewModel.sketchTools(si.SketchType.Polygon,{onAdded:function(e,i){if(t._measureTempPoints.push(t._cartesianToGeography(e[e.length-1])),1===e.length)r="起点",t._createPoint(e[0],new Cesium.CallbackProperty((function(){return r}),!1));else if(e.length>=3){let i=t._measureArea(t._measureTempPoints,e);r=i>1e5?(i/1e5).toFixed(2)+"km²":i.toFixed(2)+"m²"}},onUndo:function(){t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")},onMoving:function(e,r){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,r){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(si.SketchType.Polygon,{onAdded:function(i,o){if(t._measureTempPoints.push(t._cartesianToGeography(i[i.length-1])),1===i.length){t._tooltipRemove(),r="起点",t._createPoint(i[0],new Cesium.CallbackProperty((function(){return r}),!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 r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}else if(i.length>=3){let e=t._measureArea(t._measureTempPoints,i);r=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(si.SketchType.Height,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e,r){let i=t._calculatePolylineAltitudeHeight(e);t._altitudeLabelPosition=r,t._altitudeLabelText=i,void 0===t._altitudeDynamicLabel&&t._createAltitudeDynamicLabel()},onError:function(t){e&&e(t)},onComplete:function(e,r){let i=t._calculatePolylineAltitudeHeight(e);t._entities.remove(t._altitudeDynamicLabel),t._createLabel(r,i),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(si.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 r=[e[0],e[1]],i=t._measureSpaceDistance(r),o=[e[1],e[2]],l=t._measureSpaceDistance(o),n=[e[2],e[0]],a=t._calculatePolylineAltitudeHeight(n);t._createLabel(e[0],"斜距:"+i),t._createLabel(e[1],"平距:"+l),t._createLabel(e[2],"高度:"+a)}})}}),Object.assign(ci.prototype,{queryByPoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._isRuntimeApp()?this._showTooltipMessage("点击位置进行查询"):this._tooltipInit("单击位置进行查询"),this._sketchViewModel.sketchTools(si.SketchType.Point,{onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove(),t._createPoint(r);let o=i.lng+","+i.lat;e&&e(o)}})},queryByMultiplePoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("点击位置绘制
左键双击结束绘制"),this._tempEntitys=[],this._sketchViewModel.sketchTools(si.SketchType.MultiplePoint,{onAdded:function(e,r){let i=r.lng.toFixed(6)+","+r.lat.toFixed(6);t._tempEntitys.push(t._createPoint(e,i))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove();let o=[];for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,i){let o;r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e{if(r._sketchViewModel._sketchTempPoints.length>2&&(r._sketchViewModel._sketchPoints.pop(),r._sketchViewModel._sketchTempPoints.splice(r._sketchViewModel._sketchTempPoints.length-1,1),r._sketchViewModel._isDrawPoint)){let e=r._sketchViewModel._pointEntitys[r._sketchViewModel._pointEntitys.length-1];r._sketchViewModel._entities.remove(e),r._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(r._sketchViewModel._sketchPoints.length<2)return void(t&&t("点数少于两个,禁止结束绘制!"));let i;r._sketchViewModel._removeEntityByObject(r._sketchViewModel._sketchTempPolyline),r._sketchViewModel._createPolyline(),r._sketchViewModel._isRetainDrawPoint||r._sketchViewModel._removePointEntitys(),r._sketchViewModel._clearEvent(r._sketchViewModel._sketchEventHandler),r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,i){let o;r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e{if(r._sketchViewModel._sketchTempPoints.length>2&&(r._sketchViewModel._sketchPoints.pop(),r._sketchViewModel._sketchTempPoints.splice(r._sketchViewModel._sketchTempPoints.length-1,1),r._sketchViewModel._isDrawPoint)){let e=r._sketchViewModel._pointEntitys[r._sketchViewModel._pointEntitys.length-1];r._entities.remove(e),r._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(r._sketchViewModel._sketchPoints.length<3)return void(t&&t("点数少于3个,禁止结束绘制!"));let i;r._sketchViewModel._removeEntityByObject(r._sketchViewModel._sketchTempPolygon),r._sketchViewModel._removeEntityByObject(r._sketchViewModel._sketchTempPolyline),r._sketchViewModel._createPolygon(),r._sketchViewModel._isRetainDrawPoint||r._sketchViewModel._removePointEntitys(),r._sketchViewModel._clearEvent(r._sketchViewModel._sketchEventHandler),r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e左键双击结束绘制")},onUndo:function(e){0===e.length?t._tooltipInit("点击开始绘制"):e.length<3?t._tooltipInit("右键单击回退"):t._tooltipInit("右键单击回退
左键双击结束绘制")},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove(),e&&e()}})},drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,si.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,si.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,si.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,si.SketchType.DrawPolygon,t)}}),Object.assign(ci.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}}),Object.assign(ci.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)}}),ci.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});const pi=()=>{},ui=Object.assign,hi=Object.prototype.hasOwnProperty,fi=(e,t)=>hi.call(e,t),gi=Array.isArray,mi=e=>"[object Map]"===yi(e),bi=e=>"symbol"==typeof e,vi=e=>null!==e&&"object"==typeof e,_i=Object.prototype.toString,yi=e=>_i.call(e),xi=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,wi=(e,t)=>!Object.is(e,t);let ki;const Ci=[];class Ei{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&ki&&(this.parent=ki,this.index=(ki.scopes||(ki.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(Ci.push(this),ki=this)}off(){this.active&&(Ci.pop(),ki=Ci[Ci.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 Ti(e){ki&&ki.cleanups.push(e)}const Ai=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Si=e=>(e.w&Mi)>0,Pi=e=>(e.n&Mi)>0,Di=new WeakMap;let Ii=0,Mi=1;const Li=[];let Oi;const zi=Symbol(""),Ri=Symbol("");class Ni{constructor(e,t=null,r){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||ki)&&t.active&&t.effects.push(e)}(this,r)}run(){if(!this.active)return this.fn();if(!Li.includes(this))try{return Li.push(Oi=this),Fi.push(ji),ji=!0,Mi=1<<++Ii,Ii<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let i=0;i0?Li[e-1]:void 0}}stop(){this.active&&(Bi(this),this.onStop&&this.onStop(),this.active=!1)}}function Bi(e){const{deps:t}=e;if(t.length){for(let r=0;r{("length"===t||t>=i)&&a.push(e)}));else switch(void 0!==r&&a.push(n.get(r)),t){case"add":gi(e)?xi(r)&&a.push(n.get("length")):(a.push(n.get(zi)),mi(e)&&a.push(n.get(Ri)));break;case"delete":gi(e)||(a.push(n.get(zi)),mi(e)&&a.push(n.get(Ri)));break;case"set":mi(e)&&a.push(n.get(zi))}if(1===a.length)a[0]&&qi(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);qi(Ai(e))}}function qi(e,t){for(const r of gi(e)?e:[...e])(r!==Oi||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const Zi=di("__proto__,__v_isRef,__isVue"),Xi=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(bi)),Qi=to(),Ki=to(!1,!0),Ji=to(!0),$i=eo();function eo(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const r=jo(this);for(let t=0,o=this.length;t{e[t]=function(...e){Ui();const r=jo(this)[t].apply(this,e);return Vi(),r}})),e}function to(e=!1,t=!1){return function(r,i,o){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&o===(e?t?Io:Do:t?Po:So).get(r))return r;const l=gi(r);if(!e&&l&&fi($i,i))return Reflect.get($i,i,o);const n=Reflect.get(r,i,o);if(bi(i)?Xi.has(i):Zi(i))return n;if(e||Wi(r,0,i),t)return n;if(Go(n)){return!l||!xi(i)?n.value:n}return vi(n)?e?Oo(n):Lo(n):n}}function ro(e=!1){return function(t,r,i,o){let l=t[r];if(!e&&!No(i)&&(i=jo(i),l=jo(l),!gi(t)&&Go(l)&&!Go(i)))return l.value=i,!0;const n=gi(t)&&xi(r)?Number(r)!0,deleteProperty:(e,t)=>!0},lo=ui({},io,{get:Ki,set:ro(!0)}),no=e=>e,ao=e=>Reflect.getPrototypeOf(e);function so(e,t,r=!1,i=!1){const o=jo(e=e.__v_raw),l=jo(t);t!==l&&!r&&Wi(o,0,t),!r&&Wi(o,0,l);const{has:n}=ao(o),a=i?no:r?Vo:Uo;return n.call(o,t)?a(e.get(t)):n.call(o,l)?a(e.get(l)):void(e!==o&&e.get(t))}function co(e,t=!1){const r=this.__v_raw,i=jo(r),o=jo(e);return e!==o&&!t&&Wi(i,0,e),!t&&Wi(i,0,o),e===o?r.has(e):r.has(e)||r.has(o)}function po(e,t=!1){return e=e.__v_raw,!t&&Wi(jo(e),0,zi),Reflect.get(e,"size",e)}function uo(e){e=jo(e);const t=jo(this);return ao(t).has.call(t,e)||(t.add(e),Yi(t,"add",e,e)),this}function ho(e,t){t=jo(t);const r=jo(this),{has:i,get:o}=ao(r);let l=i.call(r,e);l||(e=jo(e),l=i.call(r,e));const n=o.call(r,e);return r.set(e,t),l?wi(t,n)&&Yi(r,"set",e,t):Yi(r,"add",e,t),this}function fo(e){const t=jo(this),{has:r,get:i}=ao(t);let o=r.call(t,e);o||(e=jo(e),o=r.call(t,e)),i&&i.call(t,e);const l=t.delete(e);return o&&Yi(t,"delete",e,void 0),l}function go(){const e=jo(this),t=0!==e.size,r=e.clear();return t&&Yi(e,"clear",void 0,void 0),r}function mo(e,t){return function(r,i){const o=this,l=o.__v_raw,n=jo(l),a=t?no:e?Vo:Uo;return!e&&Wi(n,0,zi),l.forEach(((e,t)=>r.call(i,a(e),a(t),o)))}}function bo(e,t,r){return function(...i){const o=this.__v_raw,l=jo(o),n=mi(l),a="entries"===e||e===Symbol.iterator&&n,s="keys"===e&&n,c=o[e](...i),d=r?no:t?Vo:Uo;return!t&&Wi(l,0,s?Ri:zi),{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 vo(e){return function(...t){return"delete"!==e&&this}}function _o(){const e={get(e){return so(this,e)},get size(){return po(this)},has:co,add:uo,set:ho,delete:fo,clear:go,forEach:mo(!1,!1)},t={get(e){return so(this,e,!1,!0)},get size(){return po(this)},has:co,add:uo,set:ho,delete:fo,clear:go,forEach:mo(!1,!0)},r={get(e){return so(this,e,!0)},get size(){return po(this,!0)},has(e){return co.call(this,e,!0)},add:vo("add"),set:vo("set"),delete:vo("delete"),clear:vo("clear"),forEach:mo(!0,!1)},i={get(e){return so(this,e,!0,!0)},get size(){return po(this,!0)},has(e){return co.call(this,e,!0)},add:vo("add"),set:vo("set"),delete:vo("delete"),clear:vo("clear"),forEach:mo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=bo(o,!1,!1),r[o]=bo(o,!0,!1),t[o]=bo(o,!1,!0),i[o]=bo(o,!0,!0)})),[e,r,t,i]}const[yo,xo,wo,ko]=_o();function Co(e,t){const r=t?e?ko:wo:e?xo:yo;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(fi(r,i)&&i in t?r:t,i,o)}const Eo={get:Co(!1,!1)},To={get:Co(!1,!0)},Ao={get:Co(!0,!1)},So=new WeakMap,Po=new WeakMap,Do=new WeakMap,Io=new WeakMap;function Mo(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=>yi(e).slice(8,-1))(e))}function Lo(e){return e&&e.__v_isReadonly?e:zo(e,!1,io,Eo,So)}function Oo(e){return zo(e,!0,oo,Ao,Do)}function zo(e,t,r,i,o){if(!vi(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const n=Mo(e);if(0===n)return e;const a=new Proxy(e,2===n?i:r);return o.set(e,a),a}function Ro(e){return No(e)?Ro(e.__v_raw):!(!e||!e.__v_isReactive)}function No(e){return!(!e||!e.__v_isReadonly)}function Bo(e){return Ro(e)||No(e)}function jo(e){const t=e&&e.__v_raw;return t?jo(t):e}function Fo(e){return((e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})})(e,"__v_skip",!0),e}const Uo=e=>vi(e)?Lo(e):e,Vo=e=>vi(e)?Oo(e):e;function Wo(e){Hi()&&((e=jo(e)).dep||(e.dep=Ai()),Gi(e.dep))}function Ho(e,t){(e=jo(e)).dep&&qi(e.dep)}function Go(e){return Boolean(e&&!0===e.__v_isRef)}function Yo(e){return Zo(e,!1)}function qo(e){return Zo(e,!0)}function Zo(e,t){return Go(e)?e:new Xo(e,t)}class Xo{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:jo(e),this._value=t?e:Uo(e)}get value(){return Wo(this),this._value}set value(e){e=this._shallow?e:jo(e),wi(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Uo(e),Ho(this))}}function Qo(e){Ho(e)}function Ko(e){return Go(e)?e.value:e}const Jo={get:(e,t,r)=>Ko(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const o=e[t];return Go(o)&&!Go(r)?(o.value=r,!0):Reflect.set(e,t,r,i)}};function $o(e){return Ro(e)?e:new Proxy(e,Jo)}function el(e){const t=gi(e)?new Array(e.length):{};for(const r in e)t[r]=rl(e,r);return t}class tl{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,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 rl(e,t,r){const i=e[t];return Go(i)?i:new tl(e,t,r)}class il{constructor(e,t,r){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Ni(e,(()=>{this._dirty||(this._dirty=!0,Ho(this))})),this.__v_isReadonly=r}get value(){const e=jo(this);return Wo(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ol(e,t){let r,i;const o="function"==typeof e;o?(r=e,i=pi):(r=e.get,i=e.set);return new il(r,i,o||!i)}function ll(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o!!r[e.toLowerCase()]:e=>!!r[e]}function nl(e){if(Cl(e)){const t={};for(let r=0;r{if(e){const r=e.split(sl);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}function dl(e){let t="";if(Sl(e))t=e;else if(Cl(e))for(let r=0;rnull==e?"":Cl(e)||Pl(e)&&(e.toString===Il||!Al(e.toString))?JSON.stringify(e,ul,2):String(e),ul=(e,t)=>t&&t.__v_isRef?ul(e,t.value):El(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,r])=>(e[`${t} =>`]=r,e)),{})}:Tl(t)?{[`Set(${t.size})`]:[...t.values()]}:!Pl(t)||Cl(t)||Ll(t)?t:String(t),hl={},fl=[],gl=()=>{},ml=()=>!1,bl=/^on[^a-z]/,vl=e=>bl.test(e),_l=e=>e.startsWith("onUpdate:"),yl=Object.assign,xl=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},wl=Object.prototype.hasOwnProperty,kl=(e,t)=>wl.call(e,t),Cl=Array.isArray,El=e=>"[object Map]"===Ml(e),Tl=e=>"[object Set]"===Ml(e),Al=e=>"function"==typeof e,Sl=e=>"string"==typeof e,Pl=e=>null!==e&&"object"==typeof e,Dl=e=>Pl(e)&&Al(e.then)&&Al(e.catch),Il=Object.prototype.toString,Ml=e=>Il.call(e),Ll=e=>"[object Object]"===Ml(e),Ol=ll(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zl=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Rl=/-(\w)/g,Nl=zl((e=>e.replace(Rl,((e,t)=>t?t.toUpperCase():"")))),Bl=/\B([A-Z])/g,jl=zl((e=>e.replace(Bl,"-$1").toLowerCase())),Fl=zl((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ul=zl((e=>e?`on${Fl(e)}`:"")),Vl=(e,t)=>!Object.is(e,t),Wl=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Gl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Yl;function ql(e,t,...r){const i=e.vnode.props||hl;let o=r;const l=t.startsWith("update:"),n=l&&t.slice(7);if(n&&n in i){const e=`${"modelValue"===n?"model":n}Modifiers`,{number:t,trim:l}=i[e]||hl;l?o=r.map((e=>e.trim())):t&&(o=r.map(Gl))}let a,s=i[a=Ul(t)]||i[a=Ul(Nl(t))];!s&&l&&(s=i[a=Ul(jl(t))]),s&&Es(s,e,6,o);const c=i[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Es(c,e,6,o)}}function Zl(e,t,r=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const l=e.emits;let n={},a=!1;if(!Al(e)){const i=e=>{const r=Zl(e,t,!0);r&&(a=!0,yl(n,r))};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return l||a?(Cl(l)?l.forEach((e=>n[e]=null)):yl(n,l),i.set(e,n),n):(i.set(e,null),null)}function Xl(e,t){return!(!e||!vl(t))&&(t=t.slice(2).replace(/Once$/,""),kl(e,t[0].toLowerCase()+t.slice(1))||kl(e,jl(t))||kl(e,t))}let Ql=null,Kl=null;function Jl(e){const t=Ql;return Ql=e,Kl=e&&e.type.__scopeId||null,t}function $l(e,t=Ql,r){if(!t)return e;if(e._n)return e;const i=(...r)=>{i._d&&La(-1);const o=Jl(t),l=e(...r);return Jl(o),i._d&&La(1),l};return i._n=!0,i._c=!0,i._d=!0,i}function en(e){const{type:t,vnode:r,proxy:i,withProxy:o,props:l,propsOptions:[n],slots:a,attrs:s,emit:c,render:d,renderCache:p,data:u,setupState:h,ctx:f,inheritAttrs:g}=e;let m,b;const v=Jl(e);try{if(4&r.shapeFlag){const e=o||i;m=qa(d.call(e,e,p,l,h,u,f)),b=s}else{const e=t;0,m=qa(e.length>1?e(l,{attrs:s,slots:a,emit:c}):e(l,null)),b=t.props?s:tn(s)}}catch(y){Pa.length=0,Ts(y,e,1),m=Wa(Aa)}let _=m;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(n&&e.some(_l)&&(b=rn(b,n)),_=Ha(_,b))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),m=_,Jl(v),m}const tn=e=>{let t;for(const r in e)("class"===r||"style"===r||vl(r))&&((t||(t={}))[r]=e[r]);return t},rn=(e,t)=>{const r={};for(const i in e)_l(i)&&i.slice(9)in t||(r[i]=e[i]);return r};function on(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o1)return r&&Al(t)?t.call(i.proxy):t}}const an=[Function,Array],sn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:an,onEnter:an,onAfterEnter:an,onEnterCancelled:an,onBeforeLeave:an,onLeave:an,onAfterLeave:an,onLeaveCancelled:an,onBeforeAppear:an,onAppear:an,onAfterAppear:an,onAppearCancelled:an},setup(e,{slots:t}){const r=ss(),i=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return En((()=>{e.isMounted=!0})),Sn((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const l=t.default&&fn(t.default(),!0);if(!l||!l.length)return;const n=jo(e),{mode:a}=n,s=l[0];if(i.isLeaving)return pn(s);const c=un(s);if(!c)return pn(s);const d=dn(c,n,i,r);hn(c,d);const p=r.subTree,u=p&&un(p);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(u&&u.type!==Aa&&(!Ba(c,u)||h)){const e=dn(u,n,i,r);if(hn(u,e),"out-in"===a)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,r.update()},pn(s);"in-out"===a&&c.type!==Aa&&(e.delayLeave=(e,t,r)=>{cn(i,u)[String(u.key)]=u,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=r})}return s}}};function cn(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function dn(e,t,r,i){const{appear:o,mode:l,persisted:n=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:u,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:g,onAppear:m,onAfterAppear:b,onAppearCancelled:v}=t,_=String(e.key),y=cn(r,e),x=(e,t)=>{e&&Es(e,i,9,t)},w={mode:l,persisted:n,beforeEnter(t){let i=a;if(!r.isMounted){if(!o)return;i=g||a}t._leaveCb&&t._leaveCb(!0);const l=y[_];l&&Ba(e,l)&&l.el._leaveCb&&l.el._leaveCb(),x(i,[t])},enter(e){let t=s,i=c,l=d;if(!r.isMounted){if(!o)return;t=m||s,i=b||c,l=v||d}let n=!1;const a=e._enterCb=t=>{n||(n=!0,x(t?l:i,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,i){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),r.isUnmounting)return i();x(p,[t]);let l=!1;const n=t._leaveCb=r=>{l||(l=!0,i(),x(r?f:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,u?(u(t,n),u.length<=1&&n()):n()},clone:e=>dn(e,t,r,i)};return w}function pn(e){if(bn(e))return(e=Ha(e)).children=null,e}function un(e){return bn(e)?e.children?e.children[0]:void 0:e}function hn(e,t){6&e.shapeFlag&&e.component?hn(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 fn(e,t=!1){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,bn=e=>e.type.__isKeepAlive;function vn(e,t){yn(e,"a",t)}function _n(e,t){yn(e,"da",t)}function yn(e,t,r=as){const i=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(wn(t,i,r),r){let e=r.parent;for(;e&&e.parent;)bn(e.parent.vnode)&&xn(i,t,r,e),e=e.parent}}function xn(e,t,r,i){const o=wn(t,e,i,!0);Pn((()=>{xl(i[t],o)}),r)}function wn(e,t,r=as,i=!1){if(r){const o=r[e]||(r[e]=[]),l=t.__weh||(t.__weh=(...i)=>{if(r.isUnmounted)return;Ui(),cs(r);const o=Es(t,r,e,i);return ds(),Vi(),o});return i?o.unshift(l):o.push(l),l}}const kn=e=>(t,r=as)=>(!us||"sp"===e)&&wn(e,t,r),Cn=kn("bm"),En=kn("m"),Tn=kn("bu"),An=kn("u"),Sn=kn("bum"),Pn=kn("um"),Dn=kn("sp"),In=kn("rtg"),Mn=kn("rtc");function Ln(e,t=as){wn("ec",e,t)}let On=!0;function zn(e){const t=Bn(e),r=e.proxy,i=e.ctx;On=!1,t.beforeCreate&&Rn(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:n,watch:a,provide:s,inject:c,created:d,beforeMount:p,mounted:u,beforeUpdate:h,updated:f,activated:g,deactivated:m,beforeDestroy:b,beforeUnmount:v,destroyed:_,unmounted:y,render:x,renderTracked:w,renderTriggered:k,errorCaptured:C,serverPrefetch:E,expose:T,inheritAttrs:A,components:S,directives:P,filters:D}=t;if(c&&function(e,t,r=gl,i=!1){Cl(e)&&(e=Vn(e));for(const o in e){const r=e[o];let l;l=Pl(r)?"default"in r?nn(r.from||o,r.default,!0):nn(r.from||o):nn(r),Go(l)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[o]=l}}(c,i,null,e.appContext.config.unwrapInjectedRef),n)for(const M in n){const e=n[M];Al(e)&&(i[M]=e.bind(r))}if(o){const t=o.call(r,r);Pl(t)&&(e.data=Lo(t))}if(On=!0,l)for(const M in l){const e=l[M],t=ol({get:Al(e)?e.bind(r,r):Al(e.get)?e.get.bind(r,r):gl,set:!Al(e)&&Al(e.set)?e.set.bind(r):gl});Object.defineProperty(i,M,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(a)for(const M in a)Nn(a[M],i,r,M);if(s){const e=Al(s)?s.call(r):s;Reflect.ownKeys(e).forEach((t=>{ln(t,e[t])}))}function I(e,t){Cl(t)?t.forEach((t=>e(t.bind(r)))):t&&e(t.bind(r))}if(d&&Rn(d,e,"c"),I(Cn,p),I(En,u),I(Tn,h),I(An,f),I(vn,g),I(_n,m),I(Ln,C),I(Mn,w),I(In,k),I(Sn,v),I(Pn,y),I(Dn,E),Cl(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>r[e],set:t=>r[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===gl&&(e.render=x),null!=A&&(e.inheritAttrs=A),S&&(e.components=S),P&&(e.directives=P)}function Rn(e,t,r){Es(Cl(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,r)}function Nn(e,t,r,i){const o=i.includes(".")?$s(r,i):()=>r[i];if(Sl(e)){const r=t[e];Al(r)&&Qs(o,r)}else if(Al(e))Qs(o,e.bind(r));else if(Pl(e))if(Cl(e))e.forEach((e=>Nn(e,t,r,i)));else{const i=Al(e.handler)?e.handler.bind(r):t[e.handler];Al(i)&&Qs(o,i,e)}}function Bn(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:n}}=e.appContext,a=l.get(t);let s;return a?s=a:o.length||r||i?(s={},o.length&&o.forEach((e=>jn(s,e,n,!0))),jn(s,t,n)):s=t,l.set(t,s),s}function jn(e,t,r,i=!1){const{mixins:o,extends:l}=t;l&&jn(e,l,r,!0),o&&o.forEach((t=>jn(e,t,r,!0)));for(const n in t)if(i&&"expose"===n);else{const i=Fn[n]||r&&r[n];e[n]=i?i(e[n],t[n]):t[n]}return e}const Fn={data:Un,props:Hn,emits:Hn,methods:Hn,computed:Hn,beforeCreate:Wn,created:Wn,beforeMount:Wn,mounted:Wn,beforeUpdate:Wn,updated:Wn,beforeDestroy:Wn,beforeUnmount:Wn,destroyed:Wn,unmounted:Wn,activated:Wn,deactivated:Wn,errorCaptured:Wn,serverPrefetch:Wn,components:Hn,directives:Hn,watch:function(e,t){if(!e)return t;if(!t)return e;const r=yl(Object.create(null),e);for(const i in t)r[i]=Wn(e[i],t[i]);return r},provide:Un,inject:function(e,t){return Hn(Vn(e),Vn(t))}};function Un(e,t){return t?e?function(){return yl(Al(e)?e.call(this,this):e,Al(t)?t.call(this,this):t)}:t:e}function Vn(e){if(Cl(e)){const t={};for(let r=0;r{s=!0;const[r,i]=Zn(e,t,!0);yl(n,r),i&&a.push(...i)};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!l&&!s)return i.set(e,fl),fl;if(Cl(l))for(let d=0;d-1,r[1]=i<0||t-1||kl(r,"default"))&&a.push(e)}}}const c=[n,a];return i.set(e,c),c}function Xn(e){return"$"!==e[0]}function Qn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Kn(e,t){return Qn(e)===Qn(t)}function Jn(e,t){return Cl(t)?t.findIndex((t=>Kn(t,e))):Al(t)&&Kn(t,e)?0:-1}const $n=e=>"_"===e[0]||"$stable"===e,ea=e=>Cl(e)?e.map(qa):[qa(e)],ta=(e,t,r)=>{const i=$l(((...e)=>ea(t(...e))),r);return i._c=!1,i},ra=(e,t,r)=>{const i=e._ctx;for(const o in e){if($n(o))continue;const r=e[o];if(Al(r))t[o]=ta(0,r,i);else if(null!=r){const e=ea(r);t[o]=()=>e}}},ia=(e,t)=>{const r=ea(t);e.slots.default=()=>r};function oa(e,t){if(null===Ql)return e;const r=Ql.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o(l.has(e)||(e&&Al(e.install)?(l.add(e),e.install(a,...t)):Al(e)&&(l.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(l,s,c){if(!n){const d=Wa(r,i);return d.appContext=o,s&&t?t(d,l):e(d,l,c),n=!0,a._container=l,l.__vue_app__=a,ms(d.component)||d.component.proxy}},unmount(){n&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,a)};return a}}function ca(e,t,r,i,o=!1){if(Cl(e))return void e.forEach(((e,l)=>ca(e,t&&(Cl(t)?t[l]:t),r,i,o)));if(mn(i)&&!o)return;const l=4&i.shapeFlag?ms(i.component)||i.component.proxy:i.el,n=o?null:l,{i:a,r:s}=e,c=t&&t.r,d=a.refs===hl?a.refs={}:a.refs,p=a.setupState;if(null!=c&&c!==s&&(Sl(c)?(d[c]=null,kl(p,c)&&(p[c]=null)):Go(c)&&(c.value=null)),Al(s))Cs(s,a,12,[n,d]);else{const t=Sl(s),i=Go(s);if(t||i){const i=()=>{if(e.f){const r=t?d[s]:s.value;o?Cl(r)&&xl(r,l):Cl(r)?r.includes(l)||r.push(l):t?d[s]=[l]:(s.value=[l],e.k&&(d[e.k]=s.value))}else t?(d[s]=n,kl(p,s)&&(p[s]=n)):Go(s)&&(s.value=n,e.k&&(d[e.k]=n))};n?(i.id=-1,da(i,r)):i()}}}const da=function(e,t){t&&t.pendingBranch?Cl(e)?t.effects.push(...e):t.effects.push(e):Ws(e,zs,Os,Rs)};function pa(e){return function(e,t){(Yl||(Yl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:l,createText:n,createComment:a,setText:s,setElementText:c,parentNode:d,nextSibling:p,setScopeId:u=gl,cloneNode:h,insertStaticContent:f}=e,g=(e,t,r,i=null,o=null,l=null,n=!1,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ba(e,t)&&(i=W(e),B(e,o,l,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:p}=t;switch(c){case Ta:m(e,t,r,i);break;case Aa:b(e,t,r,i);break;case Sa:null==e&&v(t,r,i,n);break;case Ea:S(e,t,r,i,o,l,n,a,s);break;default:1&p?x(e,t,r,i,o,l,n,a,s):6&p?P(e,t,r,i,o,l,n,a,s):(64&p||128&p)&&c.process(e,t,r,i,o,l,n,a,s,G)}null!=d&&o&&ca(d,e&&e.ref,l,t||e,!t)},m=(e,t,i,o)=>{if(null==e)r(t.el=n(t.children),i,o);else{const r=t.el=e.el;t.children!==e.children&&s(r,t.children)}},b=(e,t,i,o)=>{null==e?r(t.el=a(t.children||""),i,o):t.el=e.el},v=(e,t,r,i)=>{[e.el,e.anchor]=f(e.children,t,r,i)},_=({el:e,anchor:t},i,o)=>{let l;for(;e&&e!==t;)l=p(e),r(e,i,o),e=l;r(t,i,o)},y=({el:e,anchor:t})=>{let r;for(;e&&e!==t;)r=p(e),i(e),e=r;i(t)},x=(e,t,r,i,o,l,n,a,s)=>{n=n||"svg"===t.type,null==e?w(t,r,i,o,l,n,a,s):E(e,t,o,l,n,a,s)},w=(e,t,i,n,a,s,d,p)=>{let u,f;const{type:g,props:m,shapeFlag:b,transition:v,patchFlag:_,dirs:y}=e;if(e.el&&void 0!==h&&-1===_)u=e.el=h(e.el);else{if(u=e.el=l(e.type,s,m&&m.is,m),8&b?c(u,e.children):16&b&&C(e.children,u,null,n,a,s&&"foreignObject"!==g,d,p),y&&la(e,null,n,"created"),m){for(const t in m)"value"===t||Ol(t)||o(u,t,null,m[t],s,e.children,n,a,V);"value"in m&&o(u,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Ka(f,n,e)}k(u,e,e.scopeId,d,n)}y&&la(e,null,n,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;x&&v.beforeEnter(u),r(u,t,i),((f=m&&m.onVnodeMounted)||x||y)&&da((()=>{f&&Ka(f,n,e),x&&v.enter(u),y&&la(e,null,n,"mounted")}),a)},k=(e,t,r,i,o)=>{if(r&&u(e,r),i)for(let l=0;l{for(let c=s;c{const s=t.el=e.el;let{patchFlag:d,dynamicChildren:p,dirs:u}=t;d|=16&e.patchFlag;const h=e.props||hl,f=t.props||hl;let g;r&&ua(r,!1),(g=f.onVnodeBeforeUpdate)&&Ka(g,r,t,e),u&&la(t,e,r,"beforeUpdate"),r&&ua(r,!0);const m=l&&"foreignObject"!==t.type;if(p?T(e.dynamicChildren,p,s,r,i,m,n):a||O(e,t,s,null,r,i,m,n,!1),d>0){if(16&d)A(s,t,h,f,r,i,l);else if(2&d&&h.class!==f.class&&o(s,"class",null,f.class,l),4&d&&o(s,"style",h.style,f.style,l),8&d){const n=t.dynamicProps;for(let t=0;t{g&&Ka(g,r,t,e),u&&la(t,e,r,"updated")}),i)},T=(e,t,r,i,o,l,n)=>{for(let a=0;a{if(r!==i){for(const s in i){if(Ol(s))continue;const c=i[s],d=r[s];c!==d&&"value"!==s&&o(e,s,d,c,a,t.children,l,n,V)}if(r!==hl)for(const s in r)Ol(s)||s in i||o(e,s,r[s],null,a,t.children,l,n,V);"value"in i&&o(e,"value",r.value,i.value)}},S=(e,t,i,o,l,a,s,c,d)=>{const p=t.el=e?e.el:n(""),u=t.anchor=e?e.anchor:n("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(r(p,i,o),r(u,i,o),C(t.children,i,u,l,a,s,c,d)):h>0&&64&h&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,i,l,a,s,c),(null!=t.key||l&&t===l.subTree)&&ha(e,t,!0)):O(e,t,i,u,l,a,s,c,d)},P=(e,t,r,i,o,l,n,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,r,i,n,s):D(t,r,i,o,l,n,s):I(e,t,s)},D=(e,t,r,i,o,l,n)=>{const a=e.component=function(e,t,r){const i=e.type,o=(t?t.appContext:e.appContext)||ls,l={uid:ns++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ei(!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:Zn(i,o),emitsOptions:Zl(i,o),emit:null,emitted:null,propsDefaults:hl,inheritAttrs:i.inheritAttrs,ctx:hl,data:hl,props:hl,attrs:hl,slots:hl,refs:hl,setupState:hl,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};l.ctx={_:l},l.root=t?t.root:l,l.emit=ql.bind(null,l),e.ce&&e.ce(l);return l}(e,i,o);if(bn(e)&&(a.ctx.renderer=G),function(e,t=!1){us=t;const{props:r,children:i}=e.vnode,o=ps(e);Gn(e,r,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const r=t._;r?(e.slots=jo(t),Hl(t,"_",r)):ra(t,e.slots={})}else e.slots={},t&&ia(e,t);Hl(e.slots,ja,1)})(e,i);const l=o?function(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Fo(new Proxy(e.ctx,os));const{setup:i}=r;if(i){const r=e.setupContext=i.length>1?gs(e):null;cs(e),Ui();const o=Cs(i,e,0,[e.props,r]);if(Vi(),ds(),Dl(o)){if(o.then(ds,ds),t)return o.then((r=>{hs(e,r,t)})).catch((t=>{Ts(t,e,0)}));e.asyncDep=o}else hs(e,o,t)}else fs(e,t)}(e,t):void 0;us=!1}(a),a.asyncDep){if(o&&o.registerDep(a,M),!e.el){const e=a.subTree=Wa(Aa);b(null,e,t,r)}}else M(a,e,t,r,o,l,n)},I=(e,t,r)=>{const i=t.component=e.component;if(function(e,t,r){const{props:i,children:o,component:l}=e,{props:n,children:a,patchFlag:s}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&s>=0))return!(!o&&!a||a&&a.$stable)||i!==n&&(i?!n||on(i,n,c):!!n);if(1024&s)return!0;if(16&s)return i?on(i,n,c):!!n;if(8&s){const e=t.dynamicProps;for(let t=0;tDs&&Ps.splice(t,1)}(i.update),i.update()}else t.component=e.component,t.el=e.el,i.vnode=t},M=(e,t,r,i,o,l,n)=>{const a=()=>{if(e.isMounted){let t,{next:r,bu:i,u:a,parent:s,vnode:c}=e,p=r;ua(e,!1),r?(r.el=c.el,L(e,r,n)):r=c,i&&Wl(i),(t=r.props&&r.props.onVnodeBeforeUpdate)&&Ka(t,s,r,c),ua(e,!0);const u=en(e),h=e.subTree;e.subTree=u,g(h,u,d(h.el),W(h),e,o,l),r.el=u.el,null===p&&function({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}(e,u.el),a&&da(a,o),(t=r.props&&r.props.onVnodeUpdated)&&da((()=>Ka(t,s,r,c)),o)}else{let n;const{el:a,props:s}=t,{bm:c,m:d,parent:p}=e,u=mn(t);if(ua(e,!1),c&&Wl(c),!u&&(n=s&&s.onVnodeBeforeMount)&&Ka(n,p,t),ua(e,!0),a&&q){const r=()=>{e.subTree=en(e),q(a,e.subTree,e,o,null)};u?t.type.__asyncLoader().then((()=>!e.isUnmounted&&r())):r()}else{const n=e.subTree=en(e);g(null,n,r,i,e,o,l),t.el=n.el}if(d&&da(d,o),!u&&(n=s&&s.onVnodeMounted)){const e=t;da((()=>Ka(n,p,e)),o)}256&t.shapeFlag&&e.a&&da(e.a,o),e.isMounted=!0,t=r=i=null}},s=e.effect=new Ni(a,(()=>Us(e.update)),e.scope),c=e.update=s.run.bind(s);c.id=e.uid,ua(e,!0),c()},L=(e,t,r)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,i){const{props:o,attrs:l,vnode:{patchFlag:n}}=e,a=jo(o),[s]=e.propsOptions;let c=!1;if(!(i||n>0)||16&n){let i;Yn(e,t,o,l)&&(c=!0);for(const l in a)t&&(kl(t,l)||(i=jl(l))!==l&&kl(t,i))||(s?!r||void 0===r[l]&&void 0===r[i]||(o[l]=qn(s,a,l,void 0,e,!0)):delete o[l]);if(l!==a)for(const e in l)t&&kl(t,e)||(delete l[e],c=!0)}else if(8&n){const r=e.vnode.dynamicProps;for(let i=0;i{const{vnode:i,slots:o}=e;let l=!0,n=hl;if(32&i.shapeFlag){const e=t._;e?r&&1===e?l=!1:(yl(o,t),r||1!==e||delete o._):(l=!t.$stable,ra(t,o)),n=t}else t&&(ia(e,t),n={default:1});if(l)for(const a in o)$n(a)||a in n||delete o[a]})(e,t.children,r),Ui(),Hs(void 0,e.update),Vi()},O=(e,t,r,i,o,l,n,a,s=!1)=>{const d=e&&e.children,p=e?e.shapeFlag:0,u=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void R(d,u,r,i,o,l,n,a,s);if(256&h)return void z(d,u,r,i,o,l,n,a,s)}8&f?(16&p&&V(d,o,l),u!==d&&c(r,u)):16&p?16&f?R(d,u,r,i,o,l,n,a,s):V(d,o,l,!0):(8&p&&c(r,""),16&f&&C(u,r,i,o,l,n,a,s))},z=(e,t,r,i,o,l,n,a,s)=>{t=t||fl;const c=(e=e||fl).length,d=t.length,p=Math.min(c,d);let u;for(u=0;ud?V(e,o,l,!0,!1,p):C(t,r,i,o,l,n,a,s,p)},R=(e,t,r,i,o,l,n,a,s)=>{let c=0;const d=t.length;let p=e.length-1,u=d-1;for(;c<=p&&c<=u;){const i=e[c],d=t[c]=s?Za(t[c]):qa(t[c]);if(!Ba(i,d))break;g(i,d,r,null,o,l,n,a,s),c++}for(;c<=p&&c<=u;){const i=e[p],c=t[u]=s?Za(t[u]):qa(t[u]);if(!Ba(i,c))break;g(i,c,r,null,o,l,n,a,s),p--,u--}if(c>p){if(c<=u){const e=u+1,p=eu)for(;c<=p;)B(e[c],o,l,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=u;c++){const e=t[c]=s?Za(t[c]):qa(t[c]);null!=e.key&&m.set(e.key,c)}let b,v=0;const _=u-f+1;let y=!1,x=0;const w=new Array(_);for(c=0;c<_;c++)w[c]=0;for(c=h;c<=p;c++){const i=e[c];if(v>=_){B(i,o,l,!0);continue}let d;if(null!=i.key)d=m.get(i.key);else for(b=f;b<=u;b++)if(0===w[b-f]&&Ba(i,t[b])){d=b;break}void 0===d?B(i,o,l,!0):(w[d-f]=c+1,d>=x?x=d:y=!0,g(i,t[d],r,null,o,l,n,a,s),v++)}const k=y?function(e){const t=e.slice(),r=[0];let i,o,l,n,a;const s=e.length;for(i=0;i>1,e[r[a]]0&&(t[i]=r[l-1]),r[l]=i)}}l=r.length,n=r[l-1];for(;l-- >0;)r[l]=n,n=t[n];return r}(w):fl;for(b=k.length-1,c=_-1;c>=0;c--){const e=f+c,p=t[e],u=e+1{const{el:n,type:a,transition:s,children:c,shapeFlag:d}=e;if(6&d)return void N(e.component.subTree,t,i,o);if(128&d)return void e.suspense.move(t,i,o);if(64&d)return void a.move(e,t,i,G);if(a===Ea){r(n,t,i);for(let e=0;es.enter(n)),l);else{const{leave:e,delayLeave:o,afterLeave:l}=s,a=()=>r(n,t,i),c=()=>{e(n,(()=>{a(),l&&l()}))};o?o(n,a,c):c()}else r(n,t,i)},B=(e,t,r,i=!1,o=!1)=>{const{type:l,props:n,ref:a,children:s,dynamicChildren:c,shapeFlag:d,patchFlag:p,dirs:u}=e;if(null!=a&&ca(a,null,r,e,!0),256&d)return void t.ctx.deactivate(e);const h=1&d&&u,f=!mn(e);let g;if(f&&(g=n&&n.onVnodeBeforeUnmount)&&Ka(g,t,e),6&d)U(e.component,r,i);else{if(128&d)return void e.suspense.unmount(r,i);h&&la(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,r,o,G,i):c&&(l!==Ea||p>0&&64&p)?V(c,t,r,!1,!0):(l===Ea&&384&p||!o&&16&d)&&V(s,t,r),i&&j(e)}(f&&(g=n&&n.onVnodeUnmounted)||h)&&da((()=>{g&&Ka(g,t,e),h&&la(e,null,t,"unmounted")}),r)},j=e=>{const{type:t,el:r,anchor:o,transition:l}=e;if(t===Ea)return void F(r,o);if(t===Sa)return void y(e);const n=()=>{i(r),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:i}=l,o=()=>t(r,n);i?i(e.el,n,o):o()}else n()},F=(e,t)=>{let r;for(;e!==t;)r=p(e),i(e),e=r;i(t)},U=(e,t,r)=>{const{bum:i,scope:o,update:l,subTree:n,um:a}=e;i&&Wl(i),o.stop(),l&&(l.active=!1,B(n,e,t,r)),a&&da(a,t),da((()=>{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,r,i=!1,o=!1,l=0)=>{for(let n=l;n6&e.shapeFlag?W(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),H=(e,t,r)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,r),Gs(),t._vnode=e},G={p:g,um:B,m:N,r:j,mt:D,mc:C,pc:O,pbc:T,n:W,o:e};let Y,q;t&&([Y,q]=t(G));return{render:H,hydrate:Y,createApp:sa(H,Y)}}(e)}function ua({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function ha(e,t,r=!1){const i=e.children,o=t.children;if(Cl(i)&&Cl(o))for(let l=0;le&&(e.disabled||""===e.disabled),ga=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,ma=(e,t)=>{const r=e&&e.to;if(Sl(r)){if(t){return t(r)}return null}return r};function ba(e,t,r,{o:{insert:i},m:o},l=2){0===l&&i(e.targetAnchor,t,r);const{el:n,anchor:a,shapeFlag:s,children:c,props:d}=e,p=2===l;if(p&&i(n,t,r),(!p||fa(d))&&16&s)for(let u=0;u{16&v&&d(_,e,t,o,l,n,a,s)};b?m(r,c):p&&m(p,u)}else{t.el=e.el;const i=t.anchor=e.anchor,d=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=fa(e.props),m=g?r:d,v=g?i:h;if(n=n||ga(d),y?(u(e.dynamicChildren,y,m,o,l,n,a),ha(e,t,!0)):s||p(e,t,m,v,o,l,n,a,!1),b)g||ba(t,r,i,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ma(t.props,f);e&&ba(t,e,null,c,0)}else g&&ba(t,d,h,c,1)}},remove(e,t,r,i,{um:o,o:{remove:l}},n){const{shapeFlag:a,children:s,anchor:c,targetAnchor:d,target:p,props:u}=e;if(p&&l(d),(n||!fa(u))&&(l(c),16&a))for(let h=0;h0?Da||fl:null,Pa.pop(),Da=Pa[Pa.length-1]||null,Ma>0&&Da&&Da.push(e),e}function za(e,t,r,i,o,l){return Oa(Va(e,t,r,i,o,l,!0))}function Ra(e,t,r,i,o){return Oa(Wa(e,t,r,i,o,!0))}function Na(e){return!!e&&!0===e.__v_isVNode}function Ba(e,t){return e.type===t.type&&e.key===t.key}const ja="__vInternal",Fa=({key:e})=>null!=e?e:null,Ua=({ref:e,ref_key:t,ref_for:r})=>null!=e?Sl(e)||Go(e)||Al(e)?{i:Ql,r:e,k:t,f:!!r}:e:null;function Va(e,t=null,r=null,i=0,o=null,l=(e===Ea?0:1),n=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fa(t),ref:t&&Ua(t),scopeId:Kl,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return a?(Xa(s,r),128&l&&e.normalize(s)):r&&(s.shapeFlag|=Sl(r)?8:16),Ma>0&&!n&&Da&&(s.patchFlag>0||6&l)&&32!==s.patchFlag&&Da.push(s),s}const Wa=function(e,t=null,r=null,i=0,o=null,l=!1){e&&e!==ya||(e=Aa);if(Na(e)){const i=Ha(e,t,!0);return r&&Xa(i,r),i}n=e,Al(n)&&"__vccOpts"in n&&(e=e.__vccOpts);var n;if(t){t=function(e){return e?Bo(e)||ja in e?yl({},e):e:null}(t);let{class:e,style:r}=t;e&&!Sl(e)&&(t.class=dl(e)),Pl(r)&&(Bo(r)&&!Cl(r)&&(r=yl({},r)),t.style=nl(r))}const a=Sl(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Pl(e)?4:Al(e)?2:0;return Va(e,t,r,i,o,a,l,!0)};function Ha(e,t,r=!1){const{props:i,ref:o,patchFlag:l,children:n}=e,a=t?Qa(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Fa(a),ref:t&&t.ref?r&&o?Cl(o)?o.concat(Ua(t)):[o,Ua(t)]:Ua(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ea?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ha(e.ssContent),ssFallback:e.ssFallback&&Ha(e.ssFallback),el:e.el,anchor:e.anchor}}function Ga(e=" ",t=0){return Wa(Ta,null,e,t)}function Ya(e="",t=!1){return t?(Ia(),Ra(Aa,null,e)):Wa(Aa,null,e)}function qa(e){return null==e||"boolean"==typeof e?Wa(Aa):Cl(e)?Wa(Ea,null,e.slice()):"object"==typeof e?Za(e):Wa(Ta,null,String(e))}function Za(e){return null===e.el||e.memo?e:Ha(e)}function Xa(e,t){let r=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(Cl(t))r=16;else if("object"==typeof t){if(65&i){const r=t.default;return void(r&&(r._c&&(r._d=!1),Xa(e,r()),r._c&&(r._d=!0)))}{r=32;const i=t._;i||ja in t?3===i&&Ql&&(1===Ql.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Ql}}else Al(t)?(t={default:t,_ctx:Ql},r=32):(t=String(t),64&i?(r=16,t=[Ga(t)]):r=8);e.children=t,e.shapeFlag|=r}function Qa(...e){const t={};for(let r=0;rt(e,r,void 0,l&&l[r])));else{const r=Object.keys(e);o=new Array(r.length);for(let i=0,n=r.length;i!Na(e)||e.type!==Aa&&!(e.type===Ea&&!ts(e.children))))?e:null}const rs=e=>e?ps(e)?ms(e)||e.proxy:rs(e.parent):null,is=yl(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=>rs(e.parent),$root:e=>rs(e.root),$emit:e=>e.emit,$options:e=>Bn(e),$forceUpdate:e=>()=>Us(e.update),$nextTick:e=>Fs.bind(e.proxy),$watch:e=>Js.bind(e)}),os={get({_:e},t){const{ctx:r,setupState:i,data:o,props:l,accessCache:n,type:a,appContext:s}=e;let c;if("$"!==t[0]){const a=n[t];if(void 0!==a)switch(a){case 1:return i[t];case 2:return o[t];case 4:return r[t];case 3:return l[t]}else{if(i!==hl&&kl(i,t))return n[t]=1,i[t];if(o!==hl&&kl(o,t))return n[t]=2,o[t];if((c=e.propsOptions[0])&&kl(c,t))return n[t]=3,l[t];if(r!==hl&&kl(r,t))return n[t]=4,r[t];On&&(n[t]=0)}}const d=is[t];let p,u;return d?("$attrs"===t&&Wi(e,0,t),d(e)):(p=a.__cssModules)&&(p=p[t])?p:r!==hl&&kl(r,t)?(n[t]=4,r[t]):(u=s.config.globalProperties,kl(u,t)?u[t]:void 0)},set({_:e},t,r){const{data:i,setupState:o,ctx:l}=e;if(o!==hl&&kl(o,t))o[t]=r;else if(i!==hl&&kl(i,t))i[t]=r;else if(kl(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(l[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:o,propsOptions:l}},n){let a;return!!r[n]||e!==hl&&kl(e,n)||t!==hl&&kl(t,n)||(a=l[0])&&kl(a,n)||kl(i,n)||kl(is,n)||kl(o.config.globalProperties,n)}},ls=na();let ns=0;let as=null;const ss=()=>as||Ql,cs=e=>{as=e,e.scope.on()},ds=()=>{as&&as.scope.off(),as=null};function ps(e){return 4&e.vnode.shapeFlag}let us=!1;function hs(e,t,r){Al(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pl(t)&&(e.setupState=$o(t)),fs(e,r)}function fs(e,t,r){const i=e.type;e.render||(e.render=i.render||gl),cs(e),Ui(),zn(e),Vi(),ds()}function gs(e){const t=t=>{e.exposed=t||{}};let r;return{get attrs(){return r||(r=function(e){return new Proxy(e.attrs,{get:(t,r)=>(Wi(e,0,"$attrs"),t[r])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ms(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($o(Fo(e.exposed)),{get:(t,r)=>r in t?t[r]:r in is?is[r](e):void 0}))}const bs=/(?:^|[-_])(\w)/g;function vs(e){return Al(e)&&e.displayName||e.name}function _s(e,t,r=!1){let i=vs(t);if(!i&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(i=e[1])}if(!i&&e&&e.parent){const r=e=>{for(const r in e)if(e[r]===t)return r};i=r(e.components||e.parent.type.components)||r(e.appContext.components)}return i?i.replace(bs,(e=>e.toUpperCase())).replace(/[-_]/g,""):r?"App":"Anonymous"}const ys=[];function xs(e,...t){Ui();const r=ys.length?ys[ys.length-1].component:null,i=r&&r.appContext.config.warnHandler,o=function(){let e=ys[ys.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}();if(i)Cs(i,r,11,[e+t.join(""),r&&r.proxy,o.map((({vnode:e})=>`at <${_s(r,e.type)}>`)).join("\n"),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push("\n",...function(e){const t=[];return e.forEach(((e,r)=>{t.push(...0===r?[]:["\n"],...function({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=!!e.component&&null==e.component.parent,o=` at <${_s(e.component,e.type,i)}`,l=">"+r;return e.props?[o,...ws(e.props),l]:[o+l]}(e))})),t}(o)),console.warn(...r)}Vi()}function ws(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach((r=>{t.push(...ks(r,e[r]))})),r.length>3&&t.push(" ..."),t}function ks(e,t,r){return Sl(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?r?t:[`${e}=${t}`]:Go(t)?(t=ks(e,jo(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Al(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=jo(t),r?t:[`${e}=`,t])}function Cs(e,t,r,i){let o;try{o=i?e(...i):e()}catch(l){Ts(l,t,r)}return o}function Es(e,t,r,i){if(Al(e)){const o=Cs(e,t,r,i);return o&&Dl(o)&&o.catch((e=>{Ts(e,t,r)})),o}const o=[];for(let l=0;l>>1;Ys(Ps[i])Ys(e)-Ys(t))),Rs=0;Rsnull==e.id?1/0:e.id;function qs(e){Ss=!1,As=!0,Hs(e),Ps.sort(((e,t)=>Ys(e)-Ys(t)));try{for(Ds=0;Dse.value,d=!!e._shallow):Ro(e)?(s=()=>e,i=!0):Cl(e)?(p=!0,d=e.some(Ro),s=()=>e.map((e=>Go(e)?e.value:Ro(e)?ec(e):Al(e)?Cs(e,a,2):void 0))):s=Al(e)?t?()=>Cs(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),Es(e,a,3,[u])}:gl,t&&i){const e=s;s=()=>ec(e())}let u=e=>{c=m.onStop=()=>{Cs(e,a,4)}};if(us)return u=gl,t?r&&Es(t,a,3,[s(),p?[]:void 0,u]):s(),gl;let h=p?[]:Xs;const f=()=>{if(m.active)if(t){const e=m.run();(i||d||(p?e.some(((e,t)=>Vl(e,h[t]))):Vl(e,h)))&&(c&&c(),Es(t,a,3,[e,h===Xs?void 0:h,u]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===o?f:"post"===o?()=>da(f,a&&a.suspense):()=>{!a||a.isMounted?function(e){Ws(e,Ms,Is,Ls)}(f):f()};const m=new Ni(s,g);return t?r?f():h=m.run():"post"===o?da(m.run.bind(m),a&&a.suspense):m.run(),()=>{m.stop(),a&&a.scope&&xl(a.scope.effects,m)}}function Js(e,t,r){const i=this.proxy,o=Sl(e)?e.includes(".")?$s(i,e):()=>i[e]:e.bind(i,i);let l;Al(t)?l=t:(l=t.handler,r=t);const n=as;cs(this);const a=Ks(o,l.bind(i),r);return n?cs(n):ds(),a}function $s(e,t){const r=t.split(".");return()=>{let t=e;for(let e=0;e{ec(e,t)}));else if(Ll(e))for(const r in e)ec(e[r],t);return e}function tc(){return rc().slots}function rc(){const e=ss();return e.setupContext||(e.setupContext=gs(e))}function ic(e,t,r){const i=arguments.length;return 2===i?Pl(t)&&!Cl(t)?Na(t)?Wa(e,null,[t]):Wa(e,t):Wa(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):3===i&&Na(r)&&(r=[r]),Wa(e,t,r))}const oc="3.2.25";function lc(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o!!r[e.toLowerCase()]:e=>!!r[e]}const nc=lc("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ac(e){return!!e||""===e}function sc(e,t){if(e===t)return!0;let r=uc(e),i=uc(t);if(r||i)return!(!r||!i)&&e.getTime()===t.getTime();if(r=pc(e),i=pc(t),r||i)return!(!r||!i)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&ie instanceof Date,hc=e=>"string"==typeof e,fc=e=>null!==e&&"object"==typeof e,gc=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},mc=/-(\w)/g,bc=gc((e=>e.replace(mc,((e,t)=>t?t.toUpperCase():"")))),vc=/\B([A-Z])/g,_c=gc((e=>e.replace(vc,"-$1").toLowerCase())),yc=gc((e=>e.charAt(0).toUpperCase()+e.slice(1))),xc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},wc="undefined"!=typeof document?document:null,kc=new Map,Cc={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const o=t?wc.createElementNS("http://www.w3.org/2000/svg",e):wc.createElement(e,r?{is:r}:void 0);return"select"===e&&i&&null!=i.multiple&&o.setAttribute("multiple",i.multiple),o},createText:e=>wc.createTextNode(e),createComment:e=>wc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wc.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,r,i){const o=r?r.previousSibling:t.lastChild;let l=kc.get(e);if(!l){const t=wc.createElement("template");if(t.innerHTML=i?`${e}`:e,l=t.content,i){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}kc.set(e,l)}return t.insertBefore(l.cloneNode(!0),r),[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};const Ec=/\s*!important$/;function Tc(e,t,r){if(pc(r))r.forEach((r=>Tc(e,t,r)));else if(t.startsWith("--"))e.setProperty(t,r);else{const i=function(e,t){const r=Sc[t];if(r)return r;let i=Nl(t);if("filter"!==i&&i in e)return Sc[t]=i;i=yc(i);for(let o=0;odocument.createEvent("Event").timeStamp&&(Dc=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Ic=!!(e&&Number(e[1])<=53)}let Mc=0;const Lc=Promise.resolve(),Oc=()=>{Mc=0};function zc(e,t,r,i){e.addEventListener(t,r,i)}function Rc(e,t,r,i,o=null){const l=e._vei||(e._vei={}),n=l[t];if(i&&n)n.value=i;else{const[r,a]=function(e){let t;if(Nc.test(e)){let r;for(t={};r=e.match(Nc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[_c(e.slice(2)),t]}(t);if(i){zc(e,r,l[t]=function(e,t){const r=e=>{const i=e.timeStamp||Dc();(Ic||i>=r.attached-1)&&Es(function(e,t){if(pc(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,r.value),t,5,[e])};return r.value=e,r.attached=(()=>Mc||(Lc.then(Oc),Mc=Dc()))(),r}(i,o),a)}else n&&(!function(e,t,r,i){e.removeEventListener(t,r,i)}(e,r,n,a),l[t]=void 0)}}const Nc=/(?:Once|Passive|Capture)$/;const Bc=/^on[a-z]/;function jc(e,t){const r=gn(e);class i extends Uc{constructor(e){super(r,e,t)}}return i.def=r,i}const Fc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Uc extends Fc{constructor(e,t={},r){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Fs((()=>{this._connected||(gd(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:r}=e,i=!pc(t),o=t?i?Object.keys(t):t:[];let l;if(i)for(const n in this._props){const e=t[n];(e===Number||e&&e.type===Number)&&(this._props[n]=xc(this._props[n]),(l||(l=Object.create(null)))[n]=!0)}this._numberProps=l;for(const n of Object.keys(this))"_"!==n[0]&&this._setProp(n,this[n],!0,!1);for(const n of o.map(bc))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(e){this._setProp(n,e)}});this._applyStyles(r),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=xc(t)),this._setProp(bc(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,r=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),r&&(!0===t?this.setAttribute(_c(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(_c(e),t+""):t||this.removeAttribute(_c(e))))}_update(){gd(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Wa(this._def,dc({},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 Uc){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 Vc="transition",Wc=(e,{slots:t})=>ic(sn,function(e){const t={};for(const S in e)S in Hc||(t[S]=e[S]);if(!1===e.css)return t;const{name:r="v",type:i,duration:o,enterFromClass:l=`${r}-enter-from`,enterActiveClass:n=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:s=l,appearActiveClass:c=n,appearToClass:d=a,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:u=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,f=function(e){if(null==e)return null;if(fc(e))return[qc(e.enter),qc(e.leave)];{const t=qc(e);return[t,t]}}(o),g=f&&f[0],m=f&&f[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:y,onLeaveCancelled:x,onBeforeAppear:w=b,onAppear:k=v,onAppearCancelled:C=_}=t,E=(e,t,r)=>{Xc(e,t?d:a),Xc(e,t?c:n),r&&r()},T=(e,t)=>{Xc(e,h),Xc(e,u),t&&t()},A=e=>(t,r)=>{const o=e?k:v,n=()=>E(t,e,r);Gc(o,[t,n]),Qc((()=>{Xc(t,e?s:l),Zc(t,e?d:a),Yc(o)||Jc(t,i,g,n)}))};return dc(t,{onBeforeEnter(e){Gc(b,[e]),Zc(e,l),Zc(e,n)},onBeforeAppear(e){Gc(w,[e]),Zc(e,s),Zc(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const r=()=>T(e,t);Zc(e,p),document.body.offsetHeight,Zc(e,u),Qc((()=>{Xc(e,p),Zc(e,h),Yc(y)||Jc(e,i,m,r)})),Gc(y,[e,r])},onEnterCancelled(e){E(e,!1),Gc(_,[e])},onAppearCancelled(e){E(e,!0),Gc(C,[e])},onLeaveCancelled(e){T(e),Gc(x,[e])}})}(e),t);Wc.displayName="Transition";const Hc={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};Wc.props=dc({},sn.props,Hc);const Gc=(e,t=[])=>{pc(e)?e.forEach((e=>e(...t))):e&&e(...t)},Yc=e=>!!e&&(pc(e)?e.some((e=>e.length>1)):e.length>1);function qc(e){return xc(e)}function Zc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Xc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Qc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Kc=0;function Jc(e,t,r,i){const o=e._endId=++Kc,l=()=>{o===e._endId&&i()};if(r)return setTimeout(l,r);const{type:n,timeout:a,propCount:s}=function(e,t){const r=window.getComputedStyle(e),i=e=>(r[e]||"").split(", "),o=i("transitionDelay"),l=i("transitionDuration"),n=$c(o,l),a=i("animationDelay"),s=i("animationDuration"),c=$c(a,s);let d=null,p=0,u=0;t===Vc?n>0&&(d=Vc,p=n,u=l.length):"animation"===t?c>0&&(d="animation",p=c,u=s.length):(p=Math.max(n,c),d=p>0?n>c?Vc:"animation":null,u=d?d===Vc?l.length:s.length:0);const h=d===Vc&&/\b(transform|all)(,|$)/.test(r.transitionProperty);return{type:d,timeout:p,propCount:u,hasTransform:h}}(e,t);if(!n)return i();const c=n+"end";let d=0;const p=()=>{e.removeEventListener(c,u),l()},u=t=>{t.target===e&&++d>=s&&p()};setTimeout((()=>{ded(t)+ed(e[r]))))}function ed(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const td=e=>{const t=e.props["onUpdate:modelValue"];return pc(t)?e=>((e,t)=>{for(let r=0;r{if(t.target.composing)return;let i=e.value;r?i=i.trim():l&&(i=xc(i)),e._assign(i)})),r&&zc(e,"change",(()=>{e.value=e.value.trim()})),t||(zc(e,"compositionstart",rd),zc(e,"compositionend",id),zc(e,"change",id))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:i,number:o}},l){if(e._assign=td(l),e.composing)return;if(document.activeElement===e){if(r)return;if(i&&e.value.trim()===t)return;if((o||"number"===e.type)&&xc(e.value)===t)return}const n=null==t?"":t;e.value!==n&&(e.value=n)}},ld={created(e,{value:t},r){e.checked=sc(t,r.props.value),e._assign=td(r),zc(e,"change",(()=>{e._assign(function(e){return"_value"in e?e._value:e.value}(e))}))},beforeUpdate(e,{value:t,oldValue:r},i){e._assign=td(i),t!==r&&(e.checked=sc(t,i.props.value))}};const nd=["ctrl","shift","alt","meta"],ad={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)=>nd.some((r=>e[`${r}Key`]&&!t.includes(r)))},sd=(e,t)=>(r,...i)=>{for(let e=0;er=>{if(!("key"in r))return;const i=_c(r.key);return t.some((e=>e===i||cd[e]===i))?e(r):void 0},pd={beforeMount(e,{value:t},{transition:r}){e._vod="none"===e.style.display?"":e.style.display,r&&t?r.beforeEnter(e):ud(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),ud(e,!0),i.enter(e)):i.leave(e,(()=>{ud(e,!1)})):ud(e,t))},beforeUnmount(e,{value:t}){ud(e,t)}};function ud(e,t){e.style.display=t?e._vod:"none"}const hd=dc({patchProp:(e,t,r,i,o=!1,l,n,a,s)=>{"class"===t?function(e,t,r){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}(e,i,o):"style"===t?function(e,t,r){const i=e.style,o=hc(r);if(r&&!o){for(const e in r)Tc(i,e,r[e]);if(t&&!hc(t))for(const e in t)null==r[e]&&Tc(i,e,"")}else{const l=i.display;o?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=l)}}(e,r,i):(e=>cc.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||Rc(e,t,0,i,n):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,r,i){if(i)return"innerHTML"===t||"textContent"===t||!(!(t in e)||!Bc.test(t)||(o=r,"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(Bc.test(t)&&hc(r))return!1;return t in e}(e,t,i,o))?function(e,t,r,i,o,l,n){if("innerHTML"===t||"textContent"===t)return i&&n(i,o,l),void(e[t]=null==r?"":r);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=r;const i=null==r?"":r;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==r&&e.removeAttribute(t))}if(""===r||null==r){const i=typeof e[t];if("boolean"===i)return void(e[t]=ac(r));if(null==r&&"string"===i)return e[t]="",void e.removeAttribute(t);if("number"===i){try{e[t]=0}catch(a){}return void e.removeAttribute(t)}}try{e[t]=r}catch(s){}}(e,t,i,l,n,a,s):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,r,i,o){if(i&&t.startsWith("xlink:"))null==r?e.removeAttributeNS(Pc,t.slice(6,t.length)):e.setAttributeNS(Pc,t,r);else{const i=nc(t);null==r||i&&!ac(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}(e,t,i,o))}},Cc);let fd;const gd=(...e)=>{(fd||(fd=pa(hd))).render(...e)};var md="object"==typeof global&&global&&global.Object===Object&&global,bd="object"==typeof self&&self&&self.Object===Object&&self,vd=md||bd||Function("return this")(),_d=vd.Symbol,yd=Object.prototype,xd=yd.hasOwnProperty,wd=yd.toString,kd=_d?_d.toStringTag:void 0;var Cd=Object.prototype.toString;var Ed=_d?_d.toStringTag:void 0;function Td(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ed&&Ed in Object(e)?function(e){var t=xd.call(e,kd),r=e[kd];try{e[kd]=void 0;var i=!0}catch(l){}var o=wd.call(e);return i&&(t?e[kd]=r:delete e[kd]),o}(e):function(e){return Cd.call(e)}(e)}function Ad(e){return null!=e&&"object"==typeof e}function Sd(e){return"symbol"==typeof e||Ad(e)&&"[object Symbol]"==Td(e)}var Pd=Array.isArray,Dd=_d?_d.prototype:void 0,Id=Dd?Dd.toString:void 0;function Md(e){if("string"==typeof e)return e;if(Pd(e))return function(e,t){for(var r=-1,i=null==e?0:e.length,o=Array(i);++r-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var ap=Object.prototype;function sp(e){return Ad(e)&&"[object Arguments]"==Td(e)}var cp=Object.prototype,dp=cp.hasOwnProperty,pp=cp.propertyIsEnumerable,up=sp(function(){return arguments}())?sp:function(e){return Ad(e)&&dp.call(e,"callee")&&!pp.call(e,"callee")};var hp="object"==typeof exports&&exports&&!exports.nodeType&&exports,fp=hp&&"object"==typeof module&&module&&!module.nodeType&&module,gp=fp&&fp.exports===hp?vd.Buffer:void 0,mp=(gp?gp.isBuffer:void 0)||function(){return!1},bp={};bp["[object Float32Array]"]=bp["[object Float64Array]"]=bp["[object Int8Array]"]=bp["[object Int16Array]"]=bp["[object Int32Array]"]=bp["[object Uint8Array]"]=bp["[object Uint8ClampedArray]"]=bp["[object Uint16Array]"]=bp["[object Uint32Array]"]=!0,bp["[object Arguments]"]=bp["[object Array]"]=bp["[object ArrayBuffer]"]=bp["[object Boolean]"]=bp["[object DataView]"]=bp["[object Date]"]=bp["[object Error]"]=bp["[object Function]"]=bp["[object Map]"]=bp["[object Number]"]=bp["[object Object]"]=bp["[object RegExp]"]=bp["[object Set]"]=bp["[object String]"]=bp["[object WeakMap]"]=!1;var vp,_p="object"==typeof exports&&exports&&!exports.nodeType&&exports,yp=_p&&"object"==typeof module&&module&&!module.nodeType&&module,xp=yp&&yp.exports===_p&&md.process,wp=function(){try{var e=yp&&yp.require&&yp.require("util").types;return e||xp&&xp.binding&&xp.binding("util")}catch(t){}}(),kp=wp&&wp.isTypedArray,Cp=kp?(vp=kp,function(e){return vp(e)}):function(e){return Ad(e)&&np(e.length)&&!!bp[Td(e)]},Ep=Object.prototype.hasOwnProperty;function Tp(e,t){var r=Pd(e),i=!r&&up(e),o=!r&&!i&&mp(e),l=!r&&!i&&!o&&Cp(e),n=r||i||o||l,a=n?function(e,t){for(var r=-1,i=Array(e);++r-1},jp.prototype.set=function(e,t){var r=this.__data__,i=Np(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};var Fp=tp(vd,"Map");function Up(e,t){var r,i,o=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Vp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ta))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var p=-1,u=!0,h=2&r?new hu:void 0;for(l.set(e,t),l.set(t,e);++p=t||r<0||p&&e-c>=l}function m(){var e=Eu();if(g(e))return b(e);a=setTimeout(m,function(e){var r=t-(e-s);return p?Au(r,l-(e-c)):r}(e))}function b(e){return a=void 0,u&&i?h(e):(i=o=void 0,n)}function v(){var e=Eu(),r=g(e);if(i=arguments,o=this,s=e,r){if(void 0===a)return f(s);if(p)return clearTimeout(a),a=setTimeout(m,t),h(s)}return void 0===a&&(a=setTimeout(m,t)),n}return t=Ud(t)||0,Rd(r)&&(d=!!r.leading,l=(p="maxWait"in r)?Tu(Ud(r.maxWait)||0,t):l,u="trailing"in r?!!r.trailing:u),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=s=o=a=void 0},v.flush=function(){return void 0===a?n:b(Eu())},v}function Pu(e){for(var t=-1,r=null==e?0:e.length,i={};++ti=>{const o=null==e?void 0:e(i);if(!1===r||!o)return null==t?void 0:t(i)};var Lu;const Ou="undefined"!=typeof window,zu=e=>"boolean"==typeof e,Ru=e=>"number"==typeof e,Nu=()=>{};function Bu(e){return"function"==typeof e?e():Ko(e)}function ju(e){return!!ki&&(Ti(e),!0)}function Fu(e,t,r={}){const{immediate:i=!0}=r,o=Yo(!1);let l=null;function n(){l&&(clearTimeout(l),l=null)}function a(){o.value=!1,n()}function s(...r){n(),o.value=!0,l=setTimeout((()=>{o.value=!1,l=null,e(...r)}),Bu(t))}return i&&(o.value=!0,Ou&&s()),ju(a),{isPending:o,start:s,stop:a}}function Uu(e){var t;const r=Bu(e);return null!=(t=null==r?void 0:r.$el)?t:r}Ou&&(null==(Lu=null==window?void 0:window.navigator)?void 0:Lu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Vu=Ou?window:void 0;function Wu(...e){let t,r,i,o;if("string"==typeof e[0]?([r,i,o]=e,t=Vu):[t,r,i,o]=e,!t)return Nu;let l=Nu;const n=Qs((()=>Uu(t)),(e=>{l(),e&&(e.addEventListener(r,i,o),l=()=>{e.removeEventListener(r,i,o),l=Nu})}),{immediate:!0,flush:"post"}),a=()=>{n(),l()};return ju(a),a}function Hu(e,t=!1){const r=Yo(),i=()=>r.value=Boolean(e());return i(),function(e,t=!0){ss()?En(e):t?e():Fs(e)}(i,t),r}const Gu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yu="__vueuse_ssr_handlers__";Gu[Yu]=Gu[Yu]||{},Gu[Yu];var qu,Zu,Xu=Object.getOwnPropertySymbols,Qu=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable;function Ju(e,t,r={}){const i=r,{window:o=Vu}=i,l=((e,t)=>{var r={};for(var i in e)Qu.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&Xu)for(var i of Xu(e))t.indexOf(i)<0&&Ku.call(e,i)&&(r[i]=e[i]);return r})(i,["window"]);let n;const a=Hu((()=>o&&"ResizeObserver"in o)),s=()=>{n&&(n.disconnect(),n=void 0)},c=Qs((()=>Uu(e)),(e=>{s(),a.value&&o&&e&&(n=new ResizeObserver(t),n.observe(e,l))}),{immediate:!0,flush:"post"}),d=()=>{s(),c()};return ju(d),{isSupported:a,stop:d}}(Zu=qu||(qu={})).UP="UP",Zu.RIGHT="RIGHT",Zu.DOWN="DOWN",Zu.LEFT="LEFT",Zu.NONE="NONE";var $u=Object.defineProperty,eh=Object.getOwnPropertySymbols,th=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable,ih=(e,t,r)=>t in e?$u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;((e,t)=>{for(var r in t||(t={}))th.call(t,r)&&ih(e,r,t[r]);if(eh)for(var r of eh(t))rh.call(t,r)&&ih(e,r,t[r])})({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 oh=e=>{let t,r;return"touchend"===e.type?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}},lh=()=>{},nh=Object.prototype.hasOwnProperty,ah=(e,t)=>nh.call(e,t),sh=Array.isArray,ch=e=>"function"==typeof e,dh=e=>"string"==typeof e,ph=e=>null!==e&&"object"==typeof e,uh=e=>ph(e)&&ch(e.then)&&ch(e.catch),hh=Object.prototype.toString,fh=e=>(e=>hh.call(e))(e).slice(8,-1),gh=/-(\w)/g,mh=(e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))})((e=>e.replace(gh,((e,t)=>t?t.toUpperCase():"")))),bh=e=>void 0===e,vh=e=>"undefined"!=typeof Element&&e instanceof Element,_h=e=>Object.keys(e);class yh extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function xh(e,t){throw new yh(`[${e}] ${t}`)}const wh=(e="")=>e.split(" ").filter((e=>!!e.trim())),kh=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function Ch(e,t="px"){return e?dh(e)?e:Ru(e)?`${e}${t}`:void 0:""}let Eh; /*! Element Plus Icons Vue v2.0.9 */ var Th=(e,t)=>{let r=e.__vccOpts||e;for(let[i,o]of t)r[i]=o;return r},Ah={name:"ArrowDown"},Sh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ph=[Va("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 Dh=Th(Ah,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Sh,Ph)}],["__file","arrow-down.vue"]]),Ih={name:"ArrowRight"},Mh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Lh=[Va("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 Oh=Th(Ih,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Mh,Lh)}],["__file","arrow-right.vue"]]),zh={name:"ArrowUp"},Rh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nh=[Va("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 Bh=Th(zh,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Rh,Nh)}],["__file","arrow-up.vue"]]),jh={name:"CircleCheck"},Fh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Uh=[Va("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),Va("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 Vh=Th(jh,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Fh,Uh)}],["__file","circle-check.vue"]]),Wh={name:"CircleClose"},Hh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gh=[Va("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),Va("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 Yh=Th(Wh,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Hh,Gh)}],["__file","circle-close.vue"]]),qh={name:"Close"},Zh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xh=[Va("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 Qh=Th(qh,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Zh,Xh)}],["__file","close.vue"]]),Kh={name:"Delete"},Jh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$h=[Va("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 ef=Th(Kh,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Jh,$h)}],["__file","delete.vue"]]),tf={name:"Edit"},rf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},of=[Va("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),Va("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 lf=Th(tf,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",rf,of)}],["__file","edit.vue"]]),nf={name:"Hide"},af={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sf=[Va("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),Va("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 cf=Th(nf,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",af,sf)}],["__file","hide.vue"]]),df={name:"Loading"},pf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uf=[Va("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 hf=Th(df,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",pf,uf)}],["__file","loading.vue"]]),ff={name:"Minus"},gf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mf=[Va("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)];var bf=Th(ff,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",gf,mf)}],["__file","minus.vue"]]),vf={name:"Plus"},_f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yf=[Va("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 xf=Th(vf,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",_f,yf)}],["__file","plus.vue"]]),wf={name:"Setting"},kf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Cf=[Va("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 Ef=Th(wf,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",kf,Cf)}],["__file","setting.vue"]]),Tf={name:"View"},Af={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Sf=[Va("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 Pf=Th(Tf,[["render",function(e,t,r,i,o,l){return Ia(),za("svg",Af,Sf)}],["__file","view.vue"]]);const Df=(e,t)=>{if(!ph(e)||ph(r=e)&&r.__epPropKey)return e;var r;const{values:i,required:o,default:l,type:n,validator:a}=e,s={type:n,required:!!o,validator:i||a?r=>{let o=!1,n=[];if(i&&(n=Array.from(i),ah(e,"default")&&n.push(l),o||(o=n.includes(r))),a&&(o||(o=a(r))),!o&&n.length>0){const e=[...new Set(n)].map((e=>JSON.stringify(e))).join(", ");xs(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(r)}.`)}return o}:void 0,__epPropKey:!0};return ah(e,"default")&&(s.default=l),s},If=e=>Pu(Object.entries(e).map((([e,t])=>[e,Df(t,e)]))),Mf=[String,Object,Function],Lf={Close:Qh},Of={validating:hf,success:Vh,error:Yh},zf=(e,t)=>{if(e.install=r=>{for(const i of[e,...Object.values(null!=t?t:{})])r.component(i.name,i)},t)for(const[r,i]of Object.entries(t))e[r]=i;return e},Rf=e=>(e.install=lh,e),Nf="Tab",Bf="Enter",jf="Space",Ff="Escape",Uf="Backspace",Vf=["","default","small","large"],Wf={large:40,default:32,small:24},Hf=e=>["",...Vf].includes(e);var Gf=(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))(Gf||{});const Yf=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),qf=()=>Math.floor(1e4*Math.random()),Zf=["class","style"],Xf=/^on[A-Z]/,Qf=Symbol("buttonGroupContextKey"),Kf=Symbol("collapseContextKey"),Jf=Symbol(),$f=Symbol("dialogInjectionKey"),eg=Symbol("formContextKey"),tg=Symbol("formItemContextKey"),rg=Symbol("radioGroupKey"),ig=Symbol("scrollbarContextKey"),og=Symbol("popper"),lg=Symbol("popperContent"),ng=e=>{const t=ss();return ol((()=>{var r,i;return null!=(i=(null==(r=t.proxy)?void 0:r.$props)[e])?i:void 0}))},ag=Yo();function sg(e,t){const r=ss()?nn(Jf,ag):ag;return e?ol((()=>{var i,o;return null!=(o=null==(i=r.value)?void 0:i[e])?o:t})):r}const cg=(e,t)=>{var r;const i=[...new Set([..._h(e),..._h(t)])],o={};for(const l of i)o[l]=null!=(r=t[l])?r:e[l];return o},dg=Df({type:String,values:Vf,required:!1}),pg=(e,t={})=>{const r=Yo(void 0),i=t.prop?r:ng("size"),o=t.global?r:sg("size"),l=t.form?{size:void 0}:nn(eg,void 0),n=t.formItem?{size:void 0}:nn(tg,void 0);return ol((()=>i.value||Ko(e)||(null==n?void 0:n.size)||(null==l?void 0:l.size)||o.value||""))},ug=e=>{const t=ng("disabled"),r=nn(eg,void 0);return ol((()=>t.value||Ko(e)||(null==r?void 0:r.disabled)||!1))},hg=({from:e,replacement:t,scope:r,version:i,ref:o,type:l="API"},n)=>{Qs((()=>Ko(n)),(e=>{}),{immediate:!0})},fg=(e,t,r)=>{let i={offsetX:0,offsetY:0};const o=t=>{const r=t.clientX,o=t.clientY,{offsetX:l,offsetY:n}=i,a=e.value.getBoundingClientRect(),s=a.left,c=a.top,d=a.width,p=a.height,u=document.documentElement.clientWidth,h=document.documentElement.clientHeight,f=-s+l,g=-c+n,m=u-s-d+l,b=h-c-p+n,v=t=>{const a=Math.min(Math.max(l+t.clientX-r,f),m),s=Math.min(Math.max(n+t.clientY-o,g),b);i={offsetX:a,offsetY:s},e.value.style.transform=`translate(${Ch(a)}, ${Ch(s)})`},_=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",_)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};En((()=>{Zs((()=>{r.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):l()}))})),Sn((()=>{l()}))},gg=(e,t,r,i,o)=>{let l=`${e}-${t}`;return r&&(l+=`-${r}`),i&&(l+=`__${i}`),o&&(l+=`--${o}`),l},mg=e=>{const t=sg("namespace","el");return{namespace:t,b:(r="")=>gg(t.value,e,r,"",""),e:r=>r?gg(t.value,e,"",r,""):"",m:r=>r?gg(t.value,e,"","",r):"",be:(r,i)=>r&&i?gg(t.value,e,r,i,""):"",em:(r,i)=>r&&i?gg(t.value,e,"",r,i):"",bm:(r,i)=>r&&i?gg(t.value,e,r,"",i):"",bem:(r,i,o)=>r&&i&&o?gg(t.value,e,r,i,o):"",is:(e,...t)=>{const r=!(t.length>=1)||t[0];return e&&r?`is-${e}`:""},cssVar:e=>{const r={};for(const i in e)e[i]&&(r[`--${t.value}-${i}`]=e[i]);return r},cssVarName:e=>`--${t.value}-${e}`,cssVarBlock:r=>{const i={};for(const o in r)r[o]&&(i[`--${t.value}-${e}-${o}`]=r[o]);return i},cssVarBlockName:r=>`--${t.value}-${e}-${r}`}},bg={prefix:Math.floor(1e4*Math.random()),current:0},vg=Symbol("elIdInjection"),_g=e=>{const t=nn(vg,bg),r=sg("namespace","el");return ol((()=>Ko(e)||`${r.value}-id-${t.prefix}-${t.current++}`))},yg=()=>({form:nn(eg,void 0),formItem:nn(tg,void 0)}),xg=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:i})=>{r||(r=Yo(!1)),i||(i=Yo(!1));const o=Yo();let l;const n=ol((()=>{var r;return!!(!e.label&&t&&t.inputIds&&(null==(r=t.inputIds)?void 0:r.length)<=1)}));return En((()=>{l=Qs([rl(e,"id"),r],(([e,r])=>{const l=null!=e?e:r?void 0:_g().value;l!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==i?void 0:i.value)||r||!l||t.addInputId(l)),o.value=l)}),{immediate:!0})})),Pn((()=>{l&&l(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:n,inputId:o}};var wg={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 kg=e=>(t,r)=>Cg(t,r,Ko(e)),Cg=(e,t,r)=>Xp(r,e,e).replace(/\{(\w+)\}/g,((e,r)=>{var i;return`${null!=(i=null==t?void 0:t[r])?i:`{${r}}`}`})),Eg=()=>{const e=sg("locale");return(e=>({lang:ol((()=>Ko(e).name)),locale:Go(e)?e:Yo(e),t:kg(e)}))(ol((()=>e.value||wg)))},Tg=e=>{Go(e)||xh("[useLockscreen]","You need to pass a ref param to this function");const t=mg("popup"),r=ol((()=>t.bm("parent","hidden")));if(!Ou||kh(document.body,r.value))return;let i=0,o=!1,l="0";const n=()=>{var e,t;e=document.body,t=r.value,e&&t.trim()&&e.classList.remove(...wh(t)),o&&(document.body.style.width=l)};Qs(e,(e=>{if(!e)return void n();o=!kh(document.body,r.value),o&&(l=document.body.style.width),i=(e=>{var t;if(!Ou)return 0;if(void 0!==Eh)return Eh;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const i=r.offsetWidth;r.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",r.appendChild(o);const l=o.offsetWidth;return null==(t=r.parentNode)||t.removeChild(r),Eh=i-l,Eh})(t.namespace.value);const a=document.documentElement.clientHeight{var r;if(!Ou||!e||!t)return"";let i=mh(t);"float"===i&&(i="cssFloat");try{const t=e.style[i];if(t)return t;const o=null==(r=document.defaultView)?void 0:r.getComputedStyle(e,"");return o?o[i]:""}catch(o){return e.style[i]}})(document.body,"overflowY");var c,d;i>0&&(a||"scroll"===s)&&o&&(document.body.style.width=`calc(100% - ${i}px)`),c=document.body,d=r.value,c&&d.trim()&&c.classList.add(...wh(d))})),Ti((()=>n()))},Ag=Df({type:Boolean,default:null}),Sg=Df({type:Function}),Pg=e=>{if(!e)return{onClick:lh,onMousedown:lh,onMouseup:lh};let t=!1,r=!1;return{onClick:i=>{t&&r&&e(i),t=r=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{r=e.target===e.currentTarget}}};let Dg=[];const Ig=e=>{const t=e;t.key===Ff&&Dg.forEach((e=>e(t)))};let Mg;const Lg=`el-popper-container-${qf()}`,Og=`#${Lg}`,zg=()=>{Cn((()=>{Ou&&(Mg&&document.body.querySelector(Og)||(Mg=(()=>{const e=document.createElement("div");return e.id=Lg,document.body.appendChild(e),e})()))}))},Rg=If({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),Ng=({showAfter:e,hideAfter:t,open:r,close:i})=>{const{registerTimeout:o}=function(){let e;const t=()=>window.clearTimeout(e);return ju((()=>t())),{registerTimeout:(r,i)=>{t(),e=window.setTimeout(r,i)},cancelTimeout:t}}();return{onOpen:t=>{o((()=>{r(t)}),Ko(e))},onClose:e=>{o((()=>{i(e)}),Ko(t))}}},Bg=Symbol("elForwardRef"),jg=Yo(0),Fg=()=>{const e=sg("zIndex",2e3),t=ol((()=>e.value+jg.value));return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(jg.value++,t.value)}};var Ug=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r};const Vg=If({size:{type:[Number,String]},color:{type:String}});const Wg=zf(Ug(gn(c(s({},{name:"ElIcon",inheritAttrs:!1}),{props:Vg,setup(e){const t=e,r=mg("icon"),i=ol((()=>{const{size:e,color:r}=t;return e||r?{fontSize:bh(e)?void 0:Ch(e),"--color":r}:{}}));return(e,t)=>(Ia(),za("i",Qa({class:Ko(r).b(),style:Ko(i)},e.$attrs),[es(e.$slots,"default")],16))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]));let Hg;const Gg=["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 Yg(e,t=1,r){var i;Hg||(Hg=document.createElement("textarea"),document.body.appendChild(Hg));const{paddingSize:o,borderSize:l,boxSizing:n,contextStyle:a}=function(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),i=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:Gg.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:i,borderSize:o,boxSizing:r}}(e);Hg.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`),Hg.value=e.value||e.placeholder||"";let s=Hg.scrollHeight;const c={};"border-box"===n?s+=l:"content-box"===n&&(s-=o),Hg.value="";const d=Hg.scrollHeight-o;if(Ru(t)){let e=d*t;"border-box"===n&&(e=e+o+l),s=Math.max(e,s),c.minHeight=`${e}px`}if(Ru(r)){let e=d*r;"border-box"===n&&(e=e+o+l),s=Math.min(e,s)}return c.height=`${s}px`,null==(i=Hg.parentNode)||i.removeChild(Hg),Hg=void 0,c}const qg=If({id:{type:String,default:void 0},size:dg,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:Mf},prefixIcon:{type:Mf},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:()=>({})}}),Zg={"update:modelValue":e=>dh(e),input:e=>dh(e),change:e=>dh(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},Xg=["role"],Qg=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],Kg=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];const Jg=zf(Ug(gn(c(s({},{name:"ElInput",inheritAttrs:!1}),{props:qg,emits:Zg,setup(e,{expose:t,emit:r}){const i=e,o={suffix:"append",prefix:"prepend"},l=ss(),n=rc().attrs,a=tc(),c=ol((()=>{const e={};return"combobox"===i.containerRole&&(e["aria-haspopup"]=n["aria-haspopup"],e["aria-owns"]=n["aria-owns"],e["aria-expanded"]=n["aria-expanded"]),e})),d=((e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,i=ol((()=>((null==r?void 0:r.value)||[]).concat(Zf))),o=ss();return ol(o?()=>{var e;return Pu(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(i.value.includes(e)||t&&Xf.test(e)))))}:()=>({}))})({excludeKeys:ol((()=>Object.keys(c.value)))}),{form:p,formItem:u}=yg(),{inputId:h}=xg(i,{formItemContext:u}),f=pg(),g=ug(),m=mg("input"),b=mg("textarea"),v=qo(),_=qo(),y=Yo(!1),x=Yo(!1),w=Yo(!1),k=Yo(!1),C=Yo(),E=qo(i.inputStyle),T=ol((()=>v.value||_.value)),A=ol((()=>{var e;return null!=(e=null==p?void 0:p.statusIcon)&&e})),S=ol((()=>(null==u?void 0:u.validateState)||"")),P=ol((()=>S.value&&Of[S.value])),D=ol((()=>k.value?Pf:cf)),I=ol((()=>[n.style,i.inputStyle])),M=ol((()=>[i.inputStyle,E.value,{resize:i.resize}])),L=ol((()=>Iu(i.modelValue)?"":String(i.modelValue))),O=ol((()=>i.clearable&&!g.value&&!i.readonly&&!!L.value&&(y.value||x.value))),z=ol((()=>i.showPassword&&!g.value&&!i.readonly&&!!L.value&&(!!L.value||y.value))),R=ol((()=>i.showWordLimit&&!!d.value.maxlength&&("text"===i.type||"textarea"===i.type)&&!g.value&&!i.readonly&&!i.showPassword)),N=ol((()=>Array.from(L.value).length)),B=ol((()=>!!R.value&&N.value>Number(d.value.maxlength))),j=ol((()=>!!a.suffix||!!i.suffixIcon||O.value||i.showPassword||R.value||!!S.value&&A.value)),[F,U]=function(e){const t=Yo();return[function(){if(null==e.value)return;const{selectionStart:r,selectionEnd:i,value:o}=e.value;if(null==r||null==i)return;const l=o.slice(0,Math.max(0,r)),n=o.slice(Math.max(0,i));t.value={selectionStart:r,selectionEnd:i,value:o,beforeTxt:l,afterTxt:n}},function(){if(null==e.value||null==t.value)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:l}=t.value;if(null==i||null==o||null==l)return;let n=r.length;if(r.endsWith(o))n=r.length-o.length;else if(r.startsWith(i))n=i.length;else{const e=i[l-1],t=r.indexOf(e,l-1);-1!==t&&(n=t+1)}e.value.setSelectionRange(n,n)}]}(v);Ju(_,(e=>{if(!R.value||"both"!==i.resize)return;const t=e[0],{width:r}=t.contentRect;C.value={right:`calc(100% - ${r+15+6}px)`}}));const V=()=>{const{type:e,autosize:t}=i;if(Ou&&"textarea"===e)if(t){const e=ph(t)?t.minRows:void 0,r=ph(t)?t.maxRows:void 0;E.value=s({},Yg(_.value,e,r))}else E.value={minHeight:Yg(_.value).minHeight}},W=()=>{const e=T.value;e&&e.value!==L.value&&(e.value=L.value)},H=e=>{const{el:t}=l.vnode;if(!t)return;const r=Array.from(t.querySelectorAll(`.${m.e(e)}`)).find((e=>e.parentNode===t));if(!r)return;const i=o[e];a[i]?r.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${m.be("group",i)}`).offsetWidth}px)`:r.removeAttribute("style")},G=()=>{H("prefix"),H("suffix")},Y=async e=>{F();let{value:t}=e.target;i.formatter&&(t=i.parser?i.parser(t):t,t=i.formatter(t)),w.value||(t!==L.value?(r("update:modelValue",t),r("input",t),await Fs(),W(),U()):W())},q=e=>{r("change",e.target.value)},Z=e=>{r("compositionstart",e),w.value=!0},X=e=>{var t;r("compositionupdate",e);const i=null==(t=e.target)?void 0:t.value,o=i[i.length-1]||"";w.value=!Yf(o)},Q=e=>{r("compositionend",e),w.value&&(w.value=!1,Y(e))},K=()=>{k.value=!k.value,J()},J=async()=>{var e;await Fs(),null==(e=T.value)||e.focus()},$=e=>{y.value=!0,r("focus",e)},ee=e=>{var t;y.value=!1,r("blur",e),i.validateEvent&&(null==(t=null==u?void 0:u.validate)||t.call(u,"blur").catch((e=>{})))},te=e=>{x.value=!1,r("mouseleave",e)},re=e=>{x.value=!0,r("mouseenter",e)},ie=e=>{r("keydown",e)},oe=()=>{r("update:modelValue",""),r("change",""),r("clear"),r("input","")};return Qs((()=>i.modelValue),(()=>{var e;Fs((()=>V())),i.validateEvent&&(null==(e=null==u?void 0:u.validate)||e.call(u,"change").catch((e=>{})))})),Qs(L,(()=>W())),Qs((()=>i.type),(async()=>{await Fs(),W(),V(),G()})),En((async()=>{!i.formatter&&i.parser,W(),G(),await Fs(),V()})),An((async()=>{await Fs(),G()})),t({input:v,textarea:_,ref:T,textareaStyle:M,autosize:rl(i,"autosize"),focus:J,blur:()=>{var e;return null==(e=T.value)?void 0:e.blur()},select:()=>{var e;null==(e=T.value)||e.select()},clear:oe,resizeTextarea:V}),(e,t)=>oa((Ia(),za("div",Qa(Ko(c),{class:["textarea"===e.type?Ko(b).b():Ko(m).b(),Ko(m).m(Ko(f)),Ko(m).is("disabled",Ko(g)),Ko(m).is("exceed",Ko(B)),{[Ko(m).b("group")]:e.$slots.prepend||e.$slots.append,[Ko(m).bm("group","append")]:e.$slots.append,[Ko(m).bm("group","prepend")]:e.$slots.prepend,[Ko(m).m("prefix")]:e.$slots.prefix||e.prefixIcon,[Ko(m).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[Ko(m).bm("suffix","password-clear")]:Ko(O)&&Ko(z)},e.$attrs.class],style:Ko(I),role:e.containerRole,onMouseenter:re,onMouseleave:te}),[Ya(" input "),"textarea"!==e.type?(Ia(),za(Ea,{key:0},[Ya(" prepend slot "),e.$slots.prepend?(Ia(),za("div",{key:0,class:dl(Ko(m).be("group","prepend"))},[es(e.$slots,"prepend")],2)):Ya("v-if",!0),Va("div",{class:dl([Ko(m).e("wrapper"),Ko(m).is("focus",y.value)])},[Ya(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Ia(),za("span",{key:0,class:dl(Ko(m).e("prefix"))},[Va("span",{class:dl(Ko(m).e("prefix-inner"))},[es(e.$slots,"prefix"),e.prefixIcon?(Ia(),Ra(Ko(Wg),{key:0,class:dl(Ko(m).e("icon"))},{default:$l((()=>[(Ia(),Ra(xa(e.prefixIcon)))])),_:1},8,["class"])):Ya("v-if",!0)],2)],2)):Ya("v-if",!0),Va("input",Qa({id:Ko(h),ref_key:"input",ref:v,class:Ko(m).e("inner")},Ko(d),{type:e.showPassword?k.value?"text":"password":e.type,disabled:Ko(g),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:Z,onCompositionupdate:X,onCompositionend:Q,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:ie}),null,16,Qg),Ya(" suffix slot "),Ko(j)?(Ia(),za("span",{key:1,class:dl(Ko(m).e("suffix"))},[Va("span",{class:dl(Ko(m).e("suffix-inner"))},[Ko(O)&&Ko(z)&&Ko(R)?Ya("v-if",!0):(Ia(),za(Ea,{key:0},[es(e.$slots,"suffix"),e.suffixIcon?(Ia(),Ra(Ko(Wg),{key:0,class:dl(Ko(m).e("icon"))},{default:$l((()=>[(Ia(),Ra(xa(e.suffixIcon)))])),_:1},8,["class"])):Ya("v-if",!0)],64)),Ko(O)?(Ia(),Ra(Ko(Wg),{key:1,class:dl([Ko(m).e("icon"),Ko(m).e("clear")]),onMousedown:sd(Ko(lh),["prevent"]),onClick:oe},{default:$l((()=>[Wa(Ko(Yh))])),_:1},8,["class","onMousedown"])):Ya("v-if",!0),Ko(z)?(Ia(),Ra(Ko(Wg),{key:2,class:dl([Ko(m).e("icon"),Ko(m).e("password")]),onClick:K},{default:$l((()=>[(Ia(),Ra(xa(Ko(D))))])),_:1},8,["class"])):Ya("v-if",!0),Ko(R)?(Ia(),za("span",{key:3,class:dl(Ko(m).e("count"))},[Va("span",{class:dl(Ko(m).e("count-inner"))},pl(Ko(N))+" / "+pl(Ko(d).maxlength),3)],2)):Ya("v-if",!0),Ko(S)&&Ko(P)&&Ko(A)?(Ia(),Ra(Ko(Wg),{key:4,class:dl([Ko(m).e("icon"),Ko(m).e("validateIcon"),Ko(m).is("loading","validating"===Ko(S))])},{default:$l((()=>[(Ia(),Ra(xa(Ko(P))))])),_:1},8,["class"])):Ya("v-if",!0)],2)],2)):Ya("v-if",!0)],2),Ya(" append slot "),e.$slots.append?(Ia(),za("div",{key:1,class:dl(Ko(m).be("group","append"))},[es(e.$slots,"append")],2)):Ya("v-if",!0)],64)):(Ia(),za(Ea,{key:1},[Ya(" textarea "),Va("textarea",Qa({id:Ko(h),ref_key:"textarea",ref:_,class:Ko(b).e("inner")},Ko(d),{tabindex:e.tabindex,disabled:Ko(g),readonly:e.readonly,autocomplete:e.autocomplete,style:Ko(M),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:Z,onCompositionupdate:X,onCompositionend:Q,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:ie}),null,16,Kg),Ko(R)?(Ia(),za("span",{key:0,style:nl(C.value),class:dl(Ko(m).e("count"))},pl(Ko(N))+" / "+pl(Ko(d).maxlength),7)):Ya("v-if",!0)],64))],16,Xg)),[[pd,"hidden"!==e.type]])}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),$g={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 em=Ug(gn({__name:"thumb",props:If({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),setup(e){const t=e,r=nn(ig),i=mg("scrollbar");r||xh("Thumb","can not inject scrollbar context");const o=Yo(),l=Yo(),n=Yo({}),a=Yo(!1);let s=!1,c=!1,d=Ou?document.onselectstart:null;const p=ol((()=>$g[t.vertical?"vertical":"horizontal"])),u=ol((()=>(({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}))({size:t.size,move:t.move,bar:p.value}))),h=ol((()=>o.value[p.value.offset]**2/r.wrapElement[p.value.scrollSize]/t.ratio/l.value[p.value.offset])),f=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),m(e);const r=e.currentTarget;r&&(n.value[p.value.axis]=r[p.value.offset]-(e[p.value.client]-r.getBoundingClientRect()[p.value.direction]))},g=e=>{if(!l.value||!o.value||!r.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[p.value.direction]-e[p.value.client])-l.value[p.value.offset]/2)*h.value/o.value[p.value.offset];r.wrapElement[p.value.scroll]=t*r.wrapElement[p.value.scrollSize]/100},m=e=>{e.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),d=document.onselectstart,document.onselectstart=()=>!1},b=e=>{if(!o.value||!l.value)return;if(!1===s)return;const t=n.value[p.value.axis];if(!t)return;const i=100*(-1*(o.value.getBoundingClientRect()[p.value.direction]-e[p.value.client])-(l.value[p.value.offset]-t))*h.value/o.value[p.value.offset];r.wrapElement[p.value.scroll]=i*r.wrapElement[p.value.scrollSize]/100},v=()=>{s=!1,n.value[p.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),_(),c&&(a.value=!1)};Sn((()=>{_(),document.removeEventListener("mouseup",v)}));const _=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Wu(rl(r,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),Wu(rl(r,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=s})),(e,t)=>(Ia(),Ra(Wc,{name:Ko(i).b("fade"),persisted:""},{default:$l((()=>[oa(Va("div",{ref_key:"instance",ref:o,class:dl([Ko(i).e("bar"),Ko(i).is(Ko(p).key)]),onMousedown:g},[Va("div",{ref_key:"thumb",ref:l,class:dl(Ko(i).e("thumb")),style:nl(Ko(u)),onMousedown:f},null,38)],34),[[pd,e.always||a.value]])])),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);var tm=Ug(gn({__name:"bar",props:If({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(e,{expose:t}){const r=e,i=Yo(0),o=Yo(0);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,l=e.offsetWidth-4;o.value=100*e.scrollTop/t*r.ratioY,i.value=100*e.scrollLeft/l*r.ratioX}}}),(e,t)=>(Ia(),za(Ea,null,[Wa(em,{move:i.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),Wa(em,{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 rm=If({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}}),im={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ru)};const om=zf(Ug(gn(c(s({},{name:"ElScrollbar"}),{props:rm,emits:im,setup(e,{expose:t,emit:r}){const i=e,o=mg("scrollbar");let l,n;const a=Yo(),s=Yo(),c=Yo(),d=Yo("0"),p=Yo("0"),u=Yo(),h=Yo(1),f=Yo(1),g=ol((()=>{const e={};return i.height&&(e.height=Ch(i.height)),i.maxHeight&&(e.maxHeight=Ch(i.maxHeight)),[i.wrapStyle,e]})),m=()=>{var e;s.value&&(null==(e=u.value)||e.handleScroll(s.value),r("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};const b=()=>{if(!s.value)return;const e=s.value.offsetHeight-4,t=s.value.offsetWidth-4,r=e**2/s.value.scrollHeight,o=t**2/s.value.scrollWidth,l=Math.max(r,i.minSize),n=Math.max(o,i.minSize);h.value=r/(e-r)/(l/(e-l)),f.value=o/(t-o)/(n/(t-n)),p.value=l+4i.noresize),(e=>{e?(null==l||l(),null==n||n()):(({stop:l}=Ju(c,b)),n=Wu("resize",b))}),{immediate:!0}),Qs((()=>[i.maxHeight,i.height]),(()=>{i.native||Fs((()=>{var e;b(),s.value&&(null==(e=u.value)||e.handleScroll(s.value))}))})),ln(ig,Lo({scrollbarElement:a,wrapElement:s})),En((()=>{i.native||Fs((()=>{b()}))})),An((()=>b())),t({wrap$:s,update:b,scrollTo:function(e,t){ph(e)?s.value.scrollTo(e):Ru(e)&&Ru(t)&&s.value.scrollTo(e,t)},setScrollTop:e=>{Ru(e)&&(s.value.scrollTop=e)},setScrollLeft:e=>{Ru(e)&&(s.value.scrollLeft=e)},handleScroll:m}),(e,t)=>(Ia(),za("div",{ref_key:"scrollbar$",ref:a,class:dl(Ko(o).b())},[Va("div",{ref_key:"wrap$",ref:s,class:dl([e.wrapClass,Ko(o).e("wrap"),{[Ko(o).em("wrap","hidden-default")]:!e.native}]),style:nl(Ko(g)),onScroll:m},[(Ia(),Ra(xa(e.tag),{ref_key:"resize$",ref:c,class:dl([Ko(o).e("view"),e.viewClass]),style:nl(e.viewStyle)},{default:$l((()=>[es(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?Ya("v-if",!0):(Ia(),Ra(tm,{key:0,ref_key:"barRef",ref:u,height:p.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"]])),lm=If({role:{type:String,values:["dialog","grid","listbox","menu","tooltip","tree"],default:"tooltip"}});var nm=Ug(gn(c(s({},{name:"ElPopperRoot",inheritAttrs:!1}),{props:lm,setup(e,{expose:t}){const r=e,i={triggerRef:Yo(),popperInstanceRef:Yo(),contentRef:Yo(),referenceRef:Yo(),role:ol((()=>r.role))};return t(i),ln(og,i),(e,t)=>es(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const am=If({arrowOffset:{type:Number,default:5}});var sm=Ug(gn(c(s({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:am,setup(e,{expose:t}){const r=e,i=mg("popper"),{arrowOffset:o,arrowRef:l}=nn(lg,void 0);return Qs((()=>r.arrowOffset),(e=>{o.value=e})),Sn((()=>{l.value=void 0})),t({arrowRef:l}),(e,t)=>(Ia(),za("span",{ref_key:"arrowRef",ref:l,class:dl(Ko(i).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const cm=gn({name:"ElOnlyChild",setup(e,{slots:t,attrs:r}){var i;const o=nn(Bg),l=(n=null!=(i=null==o?void 0:o.setForwardRef)?i:lh,{mounted(e){n(e)},updated(e){n(e)},unmounted(){n(null)}});var n;return()=>{var e;const i=null==(e=t.default)?void 0:e.call(t,r);if(!i)return null;if(i.length>1)return null;const o=dm(i);return o?oa(Ha(o,r),[[l]]):null}}});function dm(e){if(!e)return null;const t=e;for(const r of t){if(ph(r))switch(r.type){case Aa:continue;case Ta:case"svg":return pm(r);case Ea:return dm(r.children);default:return r}return pm(r)}return null}function pm(e){const t=mg("only-child");return Wa("span",{class:t.e("content")},[e])}const um=If({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var hm=Ug(gn(c(s({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:um,setup(e,{expose:t}){const r=e,{role:i,triggerRef:o}=nn(og,void 0);var l;l=o,ln(Bg,{setForwardRef:e=>{l.value=e}});const n=ol((()=>s.value?r.id:void 0)),a=ol((()=>{if(i&&"tooltip"===i.value)return r.open&&r.id?r.id:void 0})),s=ol((()=>{if(i&&"tooltip"!==i.value)return i.value})),c=ol((()=>s.value?`${r.open}`:void 0));let d;return En((()=>{Qs((()=>r.virtualRef),(e=>{e&&(o.value=Uu(e))}),{immediate:!0}),Qs((()=>o.value),((e,t)=>{null==d||d(),d=void 0,vh(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((i=>{var o;const l=r[i];l&&(e.addEventListener(i.slice(2).toLowerCase(),l),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,i.slice(2).toLowerCase(),l))})),d=Qs([n,a,s,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((r,i)=>{Iu(t[i])?e.removeAttribute(r):e.setAttribute(r,t[i])}))}),{immediate:!0})),vh(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Sn((()=>{null==d||d(),d=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Ya("v-if",!0):(Ia(),Ra(Ko(cm),Qa({key:0},e.$attrs,{"aria-controls":Ko(n),"aria-describedby":Ko(a),"aria-expanded":Ko(c),"aria-haspopup":Ko(s)}),{default:$l((()=>[es(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"]]),fm="top",gm="bottom",mm="right",bm="left",vm="auto",_m=[fm,gm,mm,bm],ym="start",xm="end",wm="viewport",km="popper",Cm=_m.reduce((function(e,t){return e.concat([t+"-"+ym,t+"-"+xm])}),[]),Em=[].concat(_m,[vm]).reduce((function(e,t){return e.concat([t,t+"-"+ym,t+"-"+xm])}),[]),Tm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Am(e){return e?(e.nodeName||"").toLowerCase():null}function Sm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pm(e){return e instanceof Sm(e).Element||e instanceof Element}function Dm(e){return e instanceof Sm(e).HTMLElement||e instanceof HTMLElement}function Im(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Sm(e).ShadowRoot||e instanceof ShadowRoot)}var Mm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];!Dm(o)||!Am(o)||(Object.assign(o.style,r),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});!Dm(i)||!Am(i)||(Object.assign(i.style,l),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Lm(e){return e.split("-")[0]}var Om=Math.max,zm=Math.min,Rm=Math.round;function Nm(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),i=1,o=1;if(Dm(e)&&t){var l=e.offsetHeight,n=e.offsetWidth;n>0&&(i=Rm(r.width)/n||1),l>0&&(o=Rm(r.height)/l||1)}return{width:r.width/i,height:r.height/o,top:r.top/o,right:r.right/i,bottom:r.bottom/o,left:r.left/i,x:r.left/i,y:r.top/o}}function Bm(e){var t=Nm(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function jm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Im(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Fm(e){return Sm(e).getComputedStyle(e)}function Um(e){return["table","td","th"].indexOf(Am(e))>=0}function Vm(e){return((Pm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wm(e){return"html"===Am(e)?e:e.assignedSlot||e.parentNode||(Im(e)?e.host:null)||Vm(e)}function Hm(e){return Dm(e)&&"fixed"!==Fm(e).position?e.offsetParent:null}function Gm(e){for(var t=Sm(e),r=Hm(e);r&&Um(r)&&"static"===Fm(r).position;)r=Hm(r);return r&&("html"===Am(r)||"body"===Am(r)&&"static"===Fm(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Dm(e)&&"fixed"===Fm(e).position)return null;var r=Wm(e);for(Im(r)&&(r=r.host);Dm(r)&&["html","body"].indexOf(Am(r))<0;){var i=Fm(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(e)||t}function Ym(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qm(e,t,r){return Om(e,zm(t,r))}function Zm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Xm(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var Qm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,i=e.name,o=e.options,l=r.elements.arrow,n=r.modifiersData.popperOffsets,a=Lm(r.placement),s=Ym(a),c=[bm,mm].indexOf(a)>=0?"height":"width";if(l&&n){var d=function(e,t){return Zm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Xm(e,_m))}(o.padding,r),p=Bm(l),u="y"===s?fm:bm,h="y"===s?gm:mm,f=r.rects.reference[c]+r.rects.reference[s]-n[s]-r.rects.popper[c],g=n[s]-r.rects.reference[s],m=Gm(l),b=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,_=d[u],y=b-p[c]-d[h],x=b/2-p[c]/2+v,w=qm(_,x,y),k=s;r.modifiersData[i]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,r=e.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"==typeof i&&!(i=t.elements.popper.querySelector(i))||!jm(t.elements.popper,i)||(t.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Km(e){return e.split("-")[1]}var Jm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $m(e){var t,r=e.popper,i=e.popperRect,o=e.placement,l=e.variation,n=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=n.x,h=void 0===u?0:u,f=n.y,g=void 0===f?0:f,m="function"==typeof d?d({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var b=n.hasOwnProperty("x"),v=n.hasOwnProperty("y"),_=bm,y=fm,x=window;if(c){var w=Gm(r),k="clientHeight",C="clientWidth";if(w===Sm(r)&&("static"!==Fm(w=Vm(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth")),w=w,o===fm||(o===bm||o===mm)&&l===xm)y=gm,g-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-i.height,g*=s?1:-1;if(o===bm||(o===fm||o===gm)&&l===xm)_=mm,h-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-i.width,h*=s?1:-1}var E,T=Object.assign({position:a},c&&Jm),A=!0===d?function(e){var t=e.x,r=e.y,i=window.devicePixelRatio||1;return{x:Rm(t*i)/i||0,y:Rm(r*i)/i||0}}({x:h,y:g}):{x:h,y:g};return h=A.x,g=A.y,s?Object.assign({},T,((E={})[y]=v?"0":"",E[_]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",E)):Object.assign({},T,((t={})[y]=v?g+"px":"",t[_]=b?h+"px":"",t.transform="",t))}var eb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,i=r.gpuAcceleration,o=void 0===i||i,l=r.adaptive,n=void 0===l||l,a=r.roundOffsets,s=void 0===a||a,c={placement:Lm(t.placement),variation:Km(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,$m(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,$m(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:{}},tb={passive:!0};var rb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,i=e.options,o=i.scroll,l=void 0===o||o,n=i.resize,a=void 0===n||n,s=Sm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach((function(e){e.addEventListener("scroll",r.update,tb)})),a&&s.addEventListener("resize",r.update,tb),function(){l&&c.forEach((function(e){e.removeEventListener("scroll",r.update,tb)})),a&&s.removeEventListener("resize",r.update,tb)}},data:{}},ib={left:"right",right:"left",bottom:"top",top:"bottom"};function ob(e){return e.replace(/left|right|bottom|top/g,(function(e){return ib[e]}))}var lb={start:"end",end:"start"};function nb(e){return e.replace(/start|end/g,(function(e){return lb[e]}))}function ab(e){var t=Sm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function sb(e){return Nm(Vm(e)).left+ab(e).scrollLeft}function cb(e){var t=Fm(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}function db(e){return["html","body","#document"].indexOf(Am(e))>=0?e.ownerDocument.body:Dm(e)&&cb(e)?e:db(Wm(e))}function pb(e,t){var r;void 0===t&&(t=[]);var i=db(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=Sm(i),n=o?[l].concat(l.visualViewport||[],cb(i)?i:[]):i,a=t.concat(n);return o?a:a.concat(pb(Wm(n)))}function ub(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hb(e,t){return t===wm?ub(function(e){var t=Sm(e),r=Vm(e),i=t.visualViewport,o=r.clientWidth,l=r.clientHeight,n=0,a=0;return i&&(o=i.width,l=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(n=i.offsetLeft,a=i.offsetTop)),{width:o,height:l,x:n+sb(e),y:a}}(e)):Pm(t)?function(e){var t=Nm(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):ub(function(e){var t,r=Vm(e),i=ab(e),o=null==(t=e.ownerDocument)?void 0:t.body,l=Om(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),n=Om(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+sb(e),s=-i.scrollTop;return"rtl"===Fm(o||r).direction&&(a+=Om(r.clientWidth,o?o.clientWidth:0)-l),{width:l,height:n,x:a,y:s}}(Vm(e)))}function fb(e,t,r){var i="clippingParents"===t?function(e){var t=pb(Wm(e)),r=["absolute","fixed"].indexOf(Fm(e).position)>=0&&Dm(e)?Gm(e):e;return Pm(r)?t.filter((function(e){return Pm(e)&&jm(e,r)&&"body"!==Am(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),l=o[0],n=o.reduce((function(t,r){var i=hb(e,r);return t.top=Om(i.top,t.top),t.right=zm(i.right,t.right),t.bottom=zm(i.bottom,t.bottom),t.left=Om(i.left,t.left),t}),hb(e,l));return n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function gb(e){var t,r=e.reference,i=e.element,o=e.placement,l=o?Lm(o):null,n=o?Km(o):null,a=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2;switch(l){case fm:t={x:a,y:r.y-i.height};break;case gm:t={x:a,y:r.y+r.height};break;case mm:t={x:r.x+r.width,y:s};break;case bm:t={x:r.x-i.width,y:s};break;default:t={x:r.x,y:r.y}}var c=l?Ym(l):null;if(null!=c){var d="y"===c?"height":"width";switch(n){case ym:t[c]=t[c]-(r[d]/2-i[d]/2);break;case xm:t[c]=t[c]+(r[d]/2-i[d]/2)}}return t}function mb(e,t){void 0===t&&(t={});var r=t,i=r.placement,o=void 0===i?e.placement:i,l=r.boundary,n=void 0===l?"clippingParents":l,a=r.rootBoundary,s=void 0===a?wm:a,c=r.elementContext,d=void 0===c?km:c,p=r.altBoundary,u=void 0!==p&&p,h=r.padding,f=void 0===h?0:h,g=Zm("number"!=typeof f?f:Xm(f,_m)),m=d===km?"reference":km,b=e.rects.popper,v=e.elements[u?m:d],_=fb(Pm(v)?v:v.contextElement||Vm(e.elements.popper),n,s),y=Nm(e.elements.reference),x=gb({reference:y,element:b,strategy:"absolute",placement:o}),w=ub(Object.assign({},b,x)),k=d===km?w:y,C={top:_.top-k.top+g.top,bottom:k.bottom-_.bottom+g.bottom,left:_.left-k.left+g.left,right:k.right-_.right+g.right},E=e.modifiersData.offset;if(d===km&&E){var T=E[o];Object.keys(C).forEach((function(e){var t=[mm,gm].indexOf(e)>=0?1:-1,r=[fm,gm].indexOf(e)>=0?"y":"x";C[e]+=T[r]*t}))}return C}var bb={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=r.mainAxis,l=void 0===o||o,n=r.altAxis,a=void 0===n||n,s=r.fallbackPlacements,c=r.padding,d=r.boundary,p=r.rootBoundary,u=r.altBoundary,h=r.flipVariations,f=void 0===h||h,g=r.allowedAutoPlacements,m=t.options.placement,b=Lm(m),v=s||(b===m||!f?[ob(m)]:function(e){if(Lm(e)===vm)return[];var t=ob(e);return[nb(e),t,nb(t)]}(m)),_=[m].concat(v).reduce((function(e,r){return e.concat(Lm(r)===vm?function(e,t){void 0===t&&(t={});var r=t,i=r.placement,o=r.boundary,l=r.rootBoundary,n=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?Em:s,d=Km(i),p=d?a?Cm:Cm.filter((function(e){return Km(e)===d})):_m,u=p.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=p);var h=u.reduce((function(t,r){return t[r]=mb(e,{placement:r,boundary:o,rootBoundary:l,padding:n})[Lm(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:d,rootBoundary:p,padding:c,flipVariations:f,allowedAutoPlacements:g}):r)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=_[0],E=0;E<_.length;E++){var T=_[E],A=Lm(T),S=Km(T)===ym,P=[fm,gm].indexOf(A)>=0,D=P?"width":"height",I=mb(t,{placement:T,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),M=P?S?mm:bm:S?gm:fm;y[D]>x[D]&&(M=ob(M));var L=ob(M),O=[];if(l&&O.push(I[A]<=0),a&&O.push(I[M]<=0,I[L]<=0),O.every((function(e){return e}))){C=T,k=!1;break}w.set(T,O)}if(k)for(var z=function(e){var t=_.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},R=f?3:1;R>0;R--){if("break"===z(R))break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vb(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function _b(e){return[fm,mm,gm,bm].some((function(t){return e[t]>=0}))}var yb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,i=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,n=mb(t,{elementContext:"reference"}),a=mb(t,{altBoundary:!0}),s=vb(n,i),c=vb(a,o,l),d=_b(s),p=_b(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}};var xb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,i=e.name,o=r.offset,l=void 0===o?[0,0]:o,n=Em.reduce((function(e,r){return e[r]=function(e,t,r){var i=Lm(e),o=[bm,fm].indexOf(i)>=0?-1:1,l="function"==typeof r?r(Object.assign({},t,{placement:e})):r,n=l[0],a=l[1];return n=n||0,a=(a||0)*o,[bm,mm].indexOf(i)>=0?{x:a,y:n}:{x:n,y:a}}(r,t.rects,l),e}),{}),a=n[t.placement],s=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=n}};var wb={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=gb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var kb={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name,o=r.mainAxis,l=void 0===o||o,n=r.altAxis,a=void 0!==n&&n,s=r.boundary,c=r.rootBoundary,d=r.altBoundary,p=r.padding,u=r.tether,h=void 0===u||u,f=r.tetherOffset,g=void 0===f?0:f,m=mb(t,{boundary:s,rootBoundary:c,padding:p,altBoundary:d}),b=Lm(t.placement),v=Km(t.placement),_=!v,y=Ym(b),x=function(e){return"x"===e?"y":"x"}(y),w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,T="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(w){if(l){var P,D="y"===y?fm:bm,I="y"===y?gm:mm,M="y"===y?"height":"width",L=w[y],O=L+m[D],z=L-m[I],R=h?-C[M]/2:0,N=v===ym?k[M]:C[M],B=v===ym?-C[M]:-k[M],j=t.elements.arrow,F=h&&j?Bm(j):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=U[D],W=U[I],H=qm(0,k[M],F[M]),G=_?k[M]/2-R-H-V-T.mainAxis:N-H-V-T.mainAxis,Y=_?-k[M]/2+R+H+W+T.mainAxis:B+H+W+T.mainAxis,q=t.elements.arrow&&Gm(t.elements.arrow),Z=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,X=null!=(P=null==A?void 0:A[y])?P:0,Q=L+Y-X,K=qm(h?zm(O,L+G-X-Z):O,L,h?Om(z,Q):z);w[y]=K,S[y]=K-L}if(a){var J,$="x"===y?fm:bm,ee="x"===y?gm:mm,te=w[x],re="y"===x?"height":"width",ie=te+m[$],oe=te-m[ee],le=-1!==[fm,bm].indexOf(b),ne=null!=(J=null==A?void 0:A[x])?J:0,ae=le?ie:te-k[re]-C[re]-ne+T.altAxis,se=le?te+k[re]+C[re]-ne-T.altAxis:oe,ce=h&&le?function(e,t,r){var i=qm(e,t,r);return i>r?r:i}(ae,te,se):qm(h?ae:ie,te,h?se:oe);w[x]=ce,S[x]=ce-te}t.modifiersData[i]=S}},requiresIfExists:["offset"]};function Cb(e,t,r){void 0===r&&(r=!1);var i=Dm(t),o=Dm(t)&&function(e){var t=e.getBoundingClientRect(),r=Rm(t.width)/e.offsetWidth||1,i=Rm(t.height)/e.offsetHeight||1;return 1!==r||1!==i}(t),l=Vm(t),n=Nm(e,o),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!r)&&(("body"!==Am(t)||cb(l))&&(a=function(e){return e!==Sm(e)&&Dm(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):ab(e)}(t)),Dm(t)?((s=Nm(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=sb(l))),{x:n.left+a.scrollLeft-s.x,y:n.top+a.scrollTop-s.y,width:n.width,height:n.height}}function Eb(e){var t=new Map,r=new Set,i=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),i}function Tb(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Ab={placement:"bottom",modifiers:[],strategy:"absolute"};function Sb(){for(var e=arguments.length,t=new Array(e),r=0;r{const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t},Mb=(e,t)=>{for(const r of e)if(!Lb(r,t))return r},Lb=(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},Ob=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function zb(e,t){const r=[...e],i=e.indexOf(t);return-1!==i&&r.splice(i,1),r}const Rb=(()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=zb(e,t),e.unshift(t)},remove:t=>{var r,i;e=zb(e,t),null==(i=null==(r=e[0])?void 0:r.resume)||i.call(r)}}})(),Nb={cancelable:!0,bubbles:!1},Bb=Symbol("elFocusTrap");var jb=Ug(gn({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 r=Yo();let i,o;var l;l=r=>{e.trapped&&!n.paused&&t("release-requested",r)},En((()=>{0===Dg.length&&document.addEventListener("keydown",Ig),Ou&&Dg.push(l)})),Sn((()=>{Dg=Dg.filter((e=>e!==l)),0===Dg.length&&Ou&&document.removeEventListener("keydown",Ig)}));const n={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=r=>{if(!e.loop&&!e.trapped)return;if(n.paused)return;const{key:i,altKey:o,ctrlKey:l,metaKey:a,currentTarget:s,shiftKey:c}=r,{loop:d}=e,p=i===Nf&&!o&&!l&&!a,u=document.activeElement;if(p&&u){const e=s,[i,o]=(e=>{const t=Ib(e);return[Mb(t,e),Mb(t.reverse(),e)]})(e);i&&o?c||u!==o?c&&[i,e].includes(u)&&(r.preventDefault(),d&&Ob(o,!0),t("focusout-prevented")):(r.preventDefault(),d&&Ob(i,!0),t("focusout-prevented")):u===e&&(r.preventDefault(),t("focusout-prevented"))}};ln(Bb,{focusTrapRef:r,onKeydown:a}),Qs((()=>e.focusTrapEl),(e=>{e&&(r.value=e)}),{immediate:!0}),Qs([r],(([e],[t])=>{e&&(e.addEventListener("keydown",a),e.addEventListener("focusin",d),e.addEventListener("focusout",p)),t&&(t.removeEventListener("keydown",a),t.removeEventListener("focusin",d),t.removeEventListener("focusout",p))}));const s=e=>{t("focusAfterTrapped",e)},c=e=>t("focusAfterReleased",e),d=i=>{const l=Ko(r);if(!l)return;const a=i.target,s=a&&l.contains(a);s&&t("focusin",i),n.paused||e.trapped&&(s?o=a:Ob(o,!0))},p=i=>{const l=Ko(r);if(!n.paused&&l)if(e.trapped){const t=i.relatedTarget;Iu(t)||l.contains(t)||setTimeout((()=>{!n.paused&&e.trapped&&Ob(o,!0)}),0)}else{const e=i.target;e&&l.contains(e)||t("focusout",i)}};async function u(){await Fs();const t=Ko(r);if(t){Rb.push(n);const r=document.activeElement;i=r;if(!t.contains(r)){const i=new Event("focus-trap.focus-after-trapped",Nb);t.addEventListener("focus-trap.focus-after-trapped",s),t.dispatchEvent(i),i.defaultPrevented||Fs((()=>{let i=e.focusStartEl;dh(i)||(Ob(i),document.activeElement!==i&&(i="first")),"first"===i&&((e,t=!1)=>{const r=document.activeElement;for(const i of e)if(Ob(i,t),document.activeElement!==r)return})(Ib(t),!0),document.activeElement!==r&&"container"!==i||Ob(t)}))}}}function h(){const e=Ko(r);if(e){e.removeEventListener("focus-trap.focus-after-trapped",s);const t=new Event("focus-trap.focus-after-released",Nb);e.addEventListener("focus-trap.focus-after-released",c),e.dispatchEvent(t),t.defaultPrevented||Ob(null!=i?i:document.body,!0),e.removeEventListener("focus-trap.focus-after-released",s),Rb.remove(n)}}return En((()=>{e.trapped&&u(),Qs((()=>e.trapped),(e=>{e?u():h()}))})),Sn((()=>{e.trapped&&h()})),{onKeydown:a}}}),[["render",function(e,t,r,i,o,l){return es(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Fb=If({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Em,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Ub=If(c(s({},Fb),{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})),Vb=(e,t)=>{const{placement:r,strategy:i,popperOptions:o}=e,l=c(s({placement:r,strategy:i},o),{modifiers:Wb(e)});return function(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=r?r:5}})}(l,t),function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(l,null==o?void 0:o.modifiers),l};function Wb(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:i}=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!=i?i:[]}},{name:"computeStyles",options:{gpuAcceleration:r,adaptive:r}}]}var Hb=Ug(gn(c(s({},{name:"ElPopperContent"}),{props:Ub,emits:["mouseenter","mouseleave","focus","blur","close"],setup(e,{expose:t,emit:r}){const i=e,{popperInstanceRef:o,contentRef:l,triggerRef:n,role:a}=nn(og,void 0),d=nn(tg,void 0),{nextZIndex:p}=Fg(),u=mg("popper"),h=Yo(),f=Yo("first"),g=Yo(),m=Yo();ln(lg,{arrowRef:g,arrowOffset:m}),d&&(d.addInputId||d.removeInputId)&&ln(tg,c(s({},d),{addInputId:lh,removeInputId:lh}));const b=Yo(i.zIndex||p()),v=Yo(!1);let _;const y=ol((()=>(e=>{if(Ou)return Uu(e)})(i.referenceEl)||Ko(n))),x=ol((()=>[{zIndex:Ko(b)},i.popperStyle])),w=ol((()=>[u.b(),u.is("pure",i.pure),u.is(i.effect),i.popperClass])),k=ol((()=>a&&"dialog"===a.value?"false":void 0)),C=(e=!0)=>{var t;null==(t=Ko(o))||t.update(),e&&(b.value=i.zIndex||p())},E=()=>{var e,t;const r={name:"eventListeners",enabled:i.visible};null==(t=null==(e=Ko(o))?void 0:e.setOptions)||t.call(e,(e=>c(s({},e),{modifiers:[...e.modifiers||[],r]}))),C(!1),i.visible&&i.focusOnShow?v.value=!0:!1===i.visible&&(v.value=!1)},T=()=>{r("focus")},A=()=>{f.value="first",r("blur")},S=e=>{var t;i.visible&&!v.value&&(e.target&&(f.value=e.target),v.value=!0,e.relatedTarget&&(null==(t=e.relatedTarget)||t.focus()))},P=()=>{i.trapping||(v.value=!1)},D=()=>{v.value=!1,r("close")};return En((()=>{let e;Qs(y,(t=>{var r;null==e||e();const n=Ko(o);if(null==(r=null==n?void 0:n.destroy)||r.call(n),t){const r=Ko(h);l.value=r,o.value=(({referenceEl:e,popperContentEl:t,arrowEl:r})=>{const o=Vb(i,{arrowEl:r,arrowOffset:Ko(m)});return Db(e,t,o)})({referenceEl:t,popperContentEl:r,arrowEl:Ko(g)}),e=Qs((()=>t.getBoundingClientRect()),(()=>C()),{immediate:!0})}else o.value=void 0}),{immediate:!0}),Qs((()=>i.triggerTargetEl),((e,t)=>{null==_||_(),_=void 0;const r=Ko(e||h.value),o=Ko(t||h.value);if(vh(r)){const{ariaLabel:e,id:t}=el(i);_=Qs([a,e,k,t],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,i)=>{Iu(e[i])?r.removeAttribute(t):r.setAttribute(t,e[i])}))}),{immediate:!0})}vh(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),Qs((()=>i.visible),E,{immediate:!0}),Qs((()=>Vb(i,{arrowEl:Ko(g),arrowOffset:Ko(m)})),(e=>{var t;return null==(t=o.value)?void 0:t.setOptions(e)}))})),Sn((()=>{null==_||_(),_=void 0})),t({popperContentRef:h,popperInstanceRef:o,updatePopper:C,contentStyle:x}),(e,t)=>(Ia(),za("div",{ref_key:"popperContentRef",ref:h,style:nl(Ko(x)),class:dl(Ko(w)),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[Wa(Ko(jb),{trapped:v.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:T,onFocusAfterReleased:A,onFocusin:S,onFocusoutPrevented:P,onReleaseRequested:D},{default:$l((()=>[es(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 Gb=zf(nm),Yb=mg("tooltip"),qb=If(c(s(s({},Rg),Ub),{appendTo:{type:[String,Object],default:Og},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:{type:String,default:`${Yb.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Zb=If(c(s({},um),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Bf,jf]}})),Xb=If({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),Qb=Symbol("elTooltip");var Kb=Ug(gn({name:"ElTooltipContent",components:{ElPopperContent:Hb},inheritAttrs:!1,props:qb,setup(e){const t=Yo(null),r=Yo(!1),i=Yo(!1),o=Yo(!1),l=Yo(!1),{controlled:n,id:a,open:s,trigger:c,onClose:d,onOpen:p,onShow:u,onHide:h,onBeforeShow:f,onBeforeHide:g}=nn(Qb,void 0),m=ol((()=>e.persistent));Sn((()=>{l.value=!0}));const b=ol((()=>!!Ko(m)||Ko(s))),v=ol((()=>!e.disabled&&Ko(s))),_=ol((()=>{var t;return null!=(t=e.style)?t:{}})),y=ol((()=>!Ko(s))),x=()=>{if(Ko(n))return!0},w=Mu(x,(()=>{e.enterable&&"hover"===Ko(c)&&p()})),k=Mu(x,(()=>{"hover"===Ko(c)&&d()}));let C;return Qs((()=>Ko(s)),(e=>{e||null==C||C()}),{flush:"post"}),{ariaHidden:y,entering:i,leaving:o,id:a,intermediateOpen:r,contentStyle:_,contentRef:t,destroyed:l,shouldRender:b,shouldShow:v,onClose:d,open:s,onAfterShow:()=>{u(),C=function(e,t,r={}){const{window:i=Vu,ignore:o,capture:l=!0,detectIframe:n=!1}=r;if(!i)return;const a=Yo(!0);let s;const c=r=>{i.clearTimeout(s);const l=Uu(e),n=r.composedPath();l&&l!==r.target&&!n.includes(l)&&a.value&&(o&&o.length>0&&o.some((e=>{const t=Uu(e);return t&&(r.target===t||n.includes(t))}))||t(r))},d=[Wu(i,"click",c,{passive:!0,capture:l}),Wu(i,"pointerdown",(t=>{const r=Uu(e);a.value=!!r&&!t.composedPath().includes(r)}),{passive:!0}),Wu(i,"pointerup",(e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,s=i.setTimeout((()=>c(e)),50)}}),{passive:!0}),n&&Wu(i,"blur",(r=>{var i;const o=Uu(e);"IFRAME"!==(null==(i=document.activeElement)?void 0:i.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(r)}))].filter(Boolean);return()=>d.forEach((e=>e()))}(ol((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(Ko(n))return;"hover"!==Ko(c)&&d()}))},onBeforeEnter:()=>{var e,r;null==(r=null==(e=t.value)?void 0:e.updatePopper)||r.call(e),null==f||f()},onBeforeLeave:()=>{null==g||g()},onContentEnter:w,onContentLeave:k,onTransitionLeave:()=>{h()},onBlur:()=>{e.virtualTriggering||d()}}}}),[["render",function(e,t,r,i,o,l){const n=_a("el-popper-content");return Ia(),Ra(va,{disabled:!e.teleported,to:e.appendTo},[Wa(Wc,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:$l((()=>[e.shouldRender?oa((Ia(),Ra(n,Qa({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:$l((()=>[Ya(" Workaround bug #6378 "),e.destroyed?Ya("v-if",!0):es(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"])),[[pd,e.shouldShow]]):Ya("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 Jb=(e,t,r)=>i=>{((e,t)=>sh(e)?e.includes(t):e===t)(Ko(e),t)&&r(i)};var $b=Ug(gn({name:"ElTooltipTrigger",components:{ElPopperTrigger:hm},props:Zb,setup(e){const t=mg("tooltip"),{controlled:r,id:i,open:o,onOpen:l,onClose:n,onToggle:a}=nn(Qb,void 0),s=Yo(null),c=()=>{if(Ko(r)||e.disabled)return!0},d=rl(e,"trigger"),p=Mu(c,Jb(d,"hover",l)),u=Mu(c,Jb(d,"hover",n)),h=Mu(c,Jb(d,"click",(e=>{0===e.button&&a(e)}))),f=Mu(c,Jb(d,"focus",l));return{onBlur:Mu(c,Jb(d,"focus",n)),onContextMenu:Mu(c,Jb(d,"contextmenu",(e=>{e.preventDefault(),a(e)}))),onFocus:f,onMouseenter:p,onMouseleave:u,onClick:h,onKeydown:Mu(c,(t=>{const{code:r}=t;e.triggerKeys.includes(r)&&(t.preventDefault(),a(t))})),open:o,id:i,triggerRef:s,ns:t}}}),[["render",function(e,t,r,i,o,l){const n=_a("el-popper-trigger");return Ia(),Ra(n,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:dl(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:$l((()=>[es(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:ev,useModelToggle:tv,useModelToggleEmits:rv}=(e=>{const t=`update:${e}`,r=`onUpdate:${e}`;return{useModelToggle:({indicator:i,toggleReason:o,shouldHideWhenRouteChanges:l,shouldProceed:n,onShow:a,onHide:c})=>{const d=ss(),{emit:p}=d,u=d.props,h=ol((()=>ch(u[r]))),f=ol((()=>null===u[e])),g=e=>{!0!==i.value&&(i.value=!0,o&&(o.value=e),ch(a)&&a(e))},m=e=>{!1!==i.value&&(i.value=!1,o&&(o.value=e),ch(c)&&c(e))},b=e=>{if(!0===u.disabled||ch(n)&&!n())return;const r=h.value&&Ou;r&&p(t,!0),!f.value&&r||g(e)},v=e=>{if(!0===u.disabled||!Ou)return;const r=h.value&&Ou;r&&p(t,!1),!f.value&&r||m(e)},_=e=>{zu(e)&&(u.disabled&&e?h.value&&p(t,!1):i.value!==e&&(e?g():m()))};return Qs((()=>u[e]),_),l&&void 0!==d.appContext.config.globalProperties.$route&&Qs((()=>s({},d.proxy.$route)),(()=>{l.value&&i.value&&v()})),En((()=>{_(u[e])})),{hide:v,show:b,toggle:()=>{i.value?v():b()},hasUpdateHandler:h}},useModelToggleProps:{[e]:Ag,[r]:Sg},useModelToggleEmits:[t]}})("visible"),iv=gn({name:"ElTooltip",components:{ElPopper:Gb,ElPopperArrow:sm,ElTooltipContent:Kb,ElTooltipTrigger:$b},props:s(s(s(s(s(s({},lm),ev),qb),Zb),am),Xb),emits:[...rv,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){zg();const r=ol((()=>(bh(e.openDelay),e.openDelay||e.showAfter))),i=ol((()=>(bh(e.visibleArrow),zu(e.visibleArrow)?e.visibleArrow:e.showArrow))),o=_g(),l=Yo(null),n=Yo(null),a=()=>{var e;const t=Ko(l);t&&(null==(e=t.popperInstanceRef)||e.update())},s=Yo(!1),c=Yo(void 0),{show:d,hide:p,hasUpdateHandler:u}=tv({indicator:s,toggleReason:c}),{onOpen:h,onClose:f}=Ng({showAfter:r,hideAfter:rl(e,"hideAfter"),open:d,close:p}),g=ol((()=>zu(e.visible)&&!u.value));ln(Qb,{controlled:g,id:o,open:Oo(s),trigger:rl(e,"trigger"),onOpen:e=>{h(e)},onClose:e=>{f(e)},onToggle:e=>{Ko(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}),Qs((()=>e.disabled),(e=>{e&&s.value&&(s.value=!1)}));return _n((()=>s.value&&p())),{compatShowAfter:r,compatShowArrow:i,popperRef:l,contentRef:n,open:s,hide:p,isFocusInsideContent:()=>{var e,t;const r=null==(t=null==(e=n.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return r&&r.contains(document.activeElement)},updatePopper:a,onOpen:h,onClose:f}}}),ov=["innerHTML"],lv={key:1};const nv=zf(Ug(iv,[["render",function(e,t,r,i,o,l){const n=_a("el-tooltip-trigger"),a=_a("el-popper-arrow"),s=_a("el-tooltip-content"),c=_a("el-popper");return Ia(),Ra(c,{ref:"popperRef",role:e.role},{default:$l((()=>[Wa(n,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:$l((()=>[e.$slots.default?es(e.$slots,"default",{key:0}):Ya("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Wa(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:$l((()=>[es(e.$slots,"content",{},(()=>[e.rawContent?(Ia(),za("span",{key:0,innerHTML:e.content},null,8,ov)):(Ia(),za("span",lv,pl(e.content),1))])),e.compatShowArrow?(Ia(),Ra(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Ya("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"]])),av=If({size:dg,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Mf},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Mf,default:()=>hf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),sv={click:e=>e instanceof MouseEvent};function cv(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 dv(e){return Math.min(1,Math.max(0,e))}function pv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uv(e){return e<=1?"".concat(100*Number(e),"%"):e}function hv(e){return 1===e.length?"0"+e:String(e)}function fv(e,t,r){e=cv(e,255),t=cv(t,255),r=cv(r,255);var i=Math.max(e,t,r),o=Math.min(e,t,r),l=0,n=0,a=(i+o)/2;if(i===o)n=0,l=0;else{var s=i-o;switch(n=a>.5?s/(2-i-o):s/(i+o),i){case e:l=(t-r)/s+(t1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function mv(e,t,r){e=cv(e,255),t=cv(t,255),r=cv(r,255);var i=Math.max(e,t,r),o=Math.min(e,t,r),l=0,n=i,a=i-o,s=0===i?0:a/i;if(i===o)l=0;else{switch(i){case e:l=(t-r)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=xv(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!==(i=r.format)&&void 0!==i?i:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=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,r=e.g/255,i=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=pv(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=mv(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=mv(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=fv(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=fv(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),bv(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,r,i,o){var l,n=[hv(Math.round(e).toString(16)),hv(Math.round(t).toString(16)),hv(Math.round(r).toString(16)),hv((l=i,Math.round(255*parseFloat(l)).toString(16)))];return o&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))&&n[3].startsWith(n[3].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)+n[3].charAt(0):n.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),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*cv(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*cv(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="#"+bv(this.r,this.g,this.b,!1),t=0,r=Object.entries(yv);t=0;return t||!i||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||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 r=this.toHsl();return r.l+=t/100,r.l=dv(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=dv(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=dv(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=dv(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var i=this.toRgb(),o=new e(t).toRgb(),l=r/100;return new e({r:(o.r-i.r)*l+i.r,g:(o.g-i.g)*l+i.g,b:(o.b-i.b)*l+i.b,a:(o.a-i.a)*l+i.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var i=this.toHsl(),o=360/r,l=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,l.push(new e(i));return l},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 r=this.toHsv(),i=r.h,o=r.s,l=r.v,n=[],a=1/t;t--;)n.push(new e({h:i,s:o,v:l})),l=(l+a)%1;return n},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(r.r-i.r)*r.a,g:i.g+(r.g-i.g)*r.a,b:i.b+(r.b-i.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,o=[this],l=360/t,n=1;n"text"===i.type)));const l=nn(Qf,void 0),n=sg("button"),a=mg("button"),{form:s}=yg(),c=pg(ol((()=>null==l?void 0:l.size))),d=ug(),p=Yo(),u=ol((()=>i.type||(null==l?void 0:l.type)||"")),h=ol((()=>{var e,t,r;return null!=(r=null!=(t=i.autoInsertSpace)?t:null==(e=n.value)?void 0:e.autoInsertSpace)&&r})),f=ol((()=>{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)===Ta){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),g=function(e){const t=ug(),r=mg("button");return ol((()=>{let i={};const o=e.color;if(o){const l=new Av(o),n=e.dark?l.tint(20).toString():Sv(l,20);if(e.plain)i=r.cssVarBlock({"bg-color":e.dark?Sv(l,90):l.tint(90).toString(),"text-color":o,"border-color":e.dark?Sv(l,50):l.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":n,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":n}),t.value&&(i[r.cssVarBlockName("disabled-bg-color")]=e.dark?Sv(l,90):l.tint(90).toString(),i[r.cssVarBlockName("disabled-text-color")]=e.dark?Sv(l,50):l.tint(50).toString(),i[r.cssVarBlockName("disabled-border-color")]=e.dark?Sv(l,80):l.tint(80).toString());else{const a=e.dark?Sv(l,30):l.tint(30).toString(),s=l.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(i=r.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":n,"active-border-color":n}),t.value){const t=e.dark?Sv(l,50):l.tint(50).toString();i[r.cssVarBlockName("disabled-bg-color")]=t,i[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,i[r.cssVarBlockName("disabled-border-color")]=t}}}return i}))}(i),m=e=>{"reset"===i.nativeType&&(null==s||s.resetFields()),r("click",e)};return t({ref:p,size:c,type:u,disabled:d,shouldAddSpace:f}),(e,t)=>(Ia(),za("button",{ref_key:"_ref",ref:p,class:dl([Ko(a).b(),Ko(a).m(Ko(u)),Ko(a).m(Ko(c)),Ko(a).is("disabled",Ko(d)),Ko(a).is("loading",e.loading),Ko(a).is("plain",e.plain),Ko(a).is("round",e.round),Ko(a).is("circle",e.circle),Ko(a).is("text",e.text),Ko(a).is("link",e.link),Ko(a).is("has-bg",e.bg)]),"aria-disabled":Ko(d)||e.loading,disabled:Ko(d)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:nl(Ko(g)),onClick:m},[e.loading?(Ia(),za(Ea,{key:0},[e.$slots.loading?es(e.$slots,"loading",{key:0}):(Ia(),Ra(Ko(Wg),{key:1,class:dl(Ko(a).is("loading"))},{default:$l((()=>[(Ia(),Ra(xa(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Ia(),Ra(Ko(Wg),{key:1},{default:$l((()=>[e.icon?(Ia(),Ra(xa(e.icon),{key:0})):es(e.$slots,"icon",{key:1})])),_:3})):Ya("v-if",!0),e.$slots.default?(Ia(),za("span",{key:2,class:dl({[Ko(a).em("text","expand")]:Ko(f)})},[es(e.$slots,"default")],2)):Ya("v-if",!0)],14,Pv))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Iv={size:av.size,type:av.type};var Mv=Ug(gn(c(s({},{name:"ElButtonGroup"}),{props:Iv,setup(e){const t=e;ln(Qf,Lo({size:rl(t,"size"),type:rl(t,"type")}));const r=mg("button");return(e,t)=>(Ia(),za("div",{class:dl(`${Ko(r).b("group")}`)},[es(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Lv=zf(Dv,{ButtonGroup:Mv}),Ov=Rf(Mv),zv=new Map;let Rv;function Nv(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:vh(t.arg)&&r.push(t.arg),function(i,o){const l=t.instance.popperRef,n=i.target,a=null==o?void 0:o.target,s=!t||!t.instance,c=!n||!a,d=e.contains(n)||e.contains(a),p=e===n,u=r.length&&r.some((e=>null==e?void 0:e.contains(n)))||r.length&&r.includes(a),h=l&&(l.contains(n)||l.contains(a));s||c||d||p||u||h||t.value(i,o)}}Ou&&(document.addEventListener("mousedown",(e=>Rv=e)),document.addEventListener("mouseup",(e=>{for(const t of zv.values())for(const{documentHandler:r}of t)r(e,Rv)})));const Bv={beforeMount(e,t){zv.has(e)||zv.set(e,[]),zv.get(e).push({documentHandler:Nv(e,t),bindingFn:t.value})},updated(e,t){zv.has(e)||zv.set(e,[]);const r=zv.get(e),i=r.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Nv(e,t),bindingFn:t.value};i>=0?r.splice(i,1,o):r.push(o)},unmounted(e){zv.delete(e)}},jv={beforeMount(e,t){let r=null,i=null;const o=()=>t.value&&t.value(),l=()=>{i&&(clearTimeout(i),i=null),r&&(clearInterval(r),r=null)};e.addEventListener("mousedown",(e=>{0===e.button&&(o(),document.addEventListener("mouseup",l,{once:!0}),l(),i=setTimeout((()=>{r=setInterval((()=>{o()}),100)}),600))}))}},Fv=If({size:dg,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Uv=If(c(s({},Fv),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),Vv={"update:modelValue":e=>dh(e)||Ru(e)||zu(e),change:e=>dh(e)||Ru(e)||zu(e)},Wv=(e,t)=>{const r=Yo(),i=nn(rg,void 0),o=ol((()=>!!i)),l=ol({get:()=>o.value?i.modelValue:e.modelValue,set(l){o.value?i.changeEvent(l):t&&t("update:modelValue",l),r.value.checked=e.modelValue===e.label}}),n=pg(ol((()=>null==i?void 0:i.size))),a=ug(ol((()=>null==i?void 0:i.disabled))),s=Yo(!1),c=ol((()=>a.value||o.value&&l.value!==e.label?-1:0));return{radioRef:r,isGroup:o,radioGroup:i,focus:s,size:n,disabled:a,tabIndex:c,modelValue:l}},Hv=["value","name","disabled"];var Gv=Ug(gn(c(s({},{name:"ElRadio"}),{props:Uv,emits:Vv,setup(e,{emit:t}){const r=e,i=mg("radio"),{radioRef:o,radioGroup:l,focus:n,size:a,disabled:s,modelValue:c}=Wv(r,t);function d(){Fs((()=>t("change",c.value)))}return(e,t)=>{var r;return Ia(),za("label",{class:dl([Ko(i).b(),Ko(i).is("disabled",Ko(s)),Ko(i).is("focus",Ko(n)),Ko(i).is("bordered",e.border),Ko(i).is("checked",Ko(c)===e.label),Ko(i).m(Ko(a))])},[Va("span",{class:dl([Ko(i).e("input"),Ko(i).is("disabled",Ko(s)),Ko(i).is("checked",Ko(c)===e.label)])},[oa(Va("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Go(c)?c.value=e:null),class:dl(Ko(i).e("original")),value:e.label,name:e.name||(null==(r=Ko(l))?void 0:r.name),disabled:Ko(s),type:"radio",onFocus:t[1]||(t[1]=e=>n.value=!0),onBlur:t[2]||(t[2]=e=>n.value=!1),onChange:d},null,42,Hv),[[ld,Ko(c)]]),Va("span",{class:dl(Ko(i).e("inner"))},null,2)],2),Va("span",{class:dl(Ko(i).e("label")),onKeydown:t[3]||(t[3]=sd((()=>{}),["stop"]))},[es(e.$slots,"default",{},(()=>[Ga(pl(e.label),1)]))],34)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Yv=If(c(s({},Fv),{name:{type:String,default:""}})),qv=["value","name","disabled"];var Zv=Ug(gn(c(s({},{name:"ElRadioButton"}),{props:Yv,setup(e){const t=e,r=mg("radio"),{radioRef:i,focus:o,size:l,disabled:n,modelValue:a,radioGroup:s}=Wv(t),c=ol((()=>({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 Ia(),za("label",{class:dl([Ko(r).b("button"),Ko(r).is("active",Ko(a)===e.label),Ko(r).is("disabled",Ko(n)),Ko(r).is("focus",Ko(o)),Ko(r).bm("button",Ko(l))])},[oa(Va("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":t[0]||(t[0]=e=>Go(a)?a.value=e:null),class:dl(Ko(r).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(d=Ko(s))?void 0:d.name),disabled:Ko(n),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,qv),[[ld,Ko(a)]]),Va("span",{class:dl(Ko(r).be("button","inner")),style:nl(Ko(a)===e.label?Ko(c):{}),onKeydown:t[3]||(t[3]=sd((()=>{}),["stop"]))},[es(e.$slots,"default",{},(()=>[Ga(pl(e.label),1)]))],38)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Xv=If({id:{type:String,default:void 0},size:dg,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}}),Qv=Vv,Kv=["id","aria-label","aria-labelledby"];var Jv=Ug(gn(c(s({},{name:"ElRadioGroup"}),{props:Xv,emits:Qv,setup(e,{emit:t}){const r=e,i=mg("radio"),o=_g(),l=Yo(),{formItem:n}=yg(),{inputId:a,isLabeledByFormItem:d}=xg(r,{formItemContext:n});En((()=>{const e=l.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const p=ol((()=>r.name||o.value));return ln(rg,Lo(c(s({},el(r)),{changeEvent:e=>{t("update:modelValue",e),Fs((()=>t("change",e)))},name:p}))),Qs((()=>r.modelValue),(()=>{r.validateEvent&&(null==n||n.validate("change").catch((e=>{})))})),(e,t)=>(Ia(),za("div",{id:Ko(a),ref_key:"radioGroupRef",ref:l,class:dl(Ko(i).b("group")),role:"radiogroup","aria-label":Ko(d)?void 0:e.label||"radio-group","aria-labelledby":Ko(d)?Ko(n).labelId:void 0},[es(e.$slots,"default")],10,Kv))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);zf(Gv,{RadioButton:Zv,RadioGroup:Jv});const $v=Rf(Jv),e_=Rf(Zv),t_=If({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Vf,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),r_={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent};const i_=zf(Ug(gn(c(s({},{name:"ElTag"}),{props:t_,emits:r_,setup(e,{emit:t}){const r=e,i=pg(),o=mg("tag"),l=ol((()=>{const{type:e,hit:t,effect:l,closable:n,round:a}=r;return[o.b(),o.is("closable",n),o.m(e),o.m(i.value),o.m(l),o.is("hit",t),o.is("round",a)]})),n=e=>{t("close",e)},a=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(Ia(),za("span",{key:0,class:dl(Ko(l)),style:nl({backgroundColor:e.color}),onClick:a},[Va("span",{class:dl(Ko(o).e("content"))},[es(e.$slots,"default")],2),e.closable?(Ia(),Ra(Ko(Wg),{key:0,class:dl(Ko(o).e("close")),onClick:sd(n,["stop"])},{default:$l((()=>[Wa(Ko(Qh))])),_:1},8,["class","onClick"])):Ya("v-if",!0)],6)):(Ia(),Ra(Wc,{key:1,name:`${Ko(o).namespace.value}-zoom-in-center`,appear:""},{default:$l((()=>[Va("span",{class:dl(Ko(l)),style:nl({backgroundColor:e.color}),onClick:a},[Va("span",{class:dl(Ko(o).e("content"))},[es(e.$slots,"default")],2),e.closable?(Ia(),Ra(Ko(Wg),{key:0,class:dl(Ko(o).e("close")),onClick:sd(n,["stop"])},{default:$l((()=>[Wa(Ko(Qh))])),_:1},8,["class","onClick"])):Ya("v-if",!0)],6)])),_:3},8,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]])),o_=e=>typeof Ru(e),l_=If({accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}}),n_={"update:modelValue":o_,change:o_};var a_=Ug(gn(c(s({},{name:"ElCollapse"}),{props:l_,emits:n_,setup(e,{expose:t,emit:r}){const i=e,o=mg("collapse"),l=Yo(Qp(i.modelValue)),n=e=>{l.value=e;const t=i.accordion?l.value[0]:l.value;r("update:modelValue",t),r("change",t)};return Qs((()=>i.modelValue),(()=>l.value=Qp(i.modelValue)),{deep:!0}),ln(Kf,{activeNames:l,handleItemClick:e=>{if(i.accordion)n([!l.value[0]&&0!==l.value[0]||l.value[0]!==e?e:""]);else{const t=[...l.value],r=t.indexOf(e);r>-1?t.splice(r,1):t.push(e),n(t)}}}),t({activeNames:l,setActiveNames:n}),(e,t)=>(Ia(),za("div",{class:dl(Ko(o).b()),role:"tablist","aria-multiselectable":"true"},[es(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);var s_=Ug(gn(c(s({},{name:"ElCollapseTransition"}),{setup(e){const t=mg("collapse-transition"),r={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,i)=>(Ia(),Ra(Wc,Qa({name:Ko(t).b()},function(e){const t={};for(const r in e)t[Ul(r)]=e[r];return t}(r)),{default:$l((()=>[es(e.$slots,"default")])),_:3},16,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);s_.install=e=>{e.component(s_.name,s_)};const c_=s_,d_=If({title:{type:String,default:""},name:{type:[String,Number],default:()=>qf()},disabled:Boolean}),p_=["aria-expanded","aria-controls","aria-describedby"],u_=["id","tabindex","onKeypress"],h_=["id","aria-hidden","aria-labelledby"];var f_=Ug(gn(c(s({},{name:"ElCollapseItem"}),{props:d_,setup(e,{expose:t}){const r=e,i=nn(Kf),o=mg("collapse"),l=Yo(!1),n=Yo(!1),a=Yo(qf()),s=ol((()=>null==i?void 0:i.activeNames.value.includes(r.name))),c=()=>{setTimeout((()=>{n.value?n.value=!1:l.value=!0}),50)},d=()=>{r.disabled||(null==i||i.handleItemClick(r.name),l.value=!1,n.value=!0)},p=()=>{null==i||i.handleItemClick(r.name)};return t({isActive:s}),(e,t)=>(Ia(),za("div",{class:dl([Ko(o).b("item"),Ko(o).is("active",Ko(s)),Ko(o).is("disabled",e.disabled)])},[Va("div",{role:"tab","aria-expanded":Ko(s),"aria-controls":Ko(o).b(`content-${a.value}`),"aria-describedby":Ko(o).b(`content-${a.value}`)},[Va("div",{id:Ko(o).b(`head-${a.value}`),class:dl([Ko(o).be("item","header"),Ko(o).is("active",Ko(s)),{focusing:l.value&&!e.disabled}]),role:"button",tabindex:e.disabled?-1:0,onClick:d,onKeypress:dd(sd(p,["stop","prevent"]),["space","enter"]),onFocus:c,onBlur:t[0]||(t[0]=e=>l.value=!1)},[es(e.$slots,"title",{},(()=>[Ga(pl(e.title),1)])),Wa(Ko(Wg),{class:dl([Ko(o).be("item","arrow"),Ko(o).is("active",Ko(s))])},{default:$l((()=>[Wa(Ko(Oh))])),_:1},8,["class"])],42,u_)],8,p_),Wa(Ko(c_),null,{default:$l((()=>[oa(Va("div",{id:Ko(o).b(`content-${a.value}`),class:dl(Ko(o).be("item","wrap")),role:"tabpanel","aria-hidden":!Ko(s),"aria-labelledby":Ko(o).b(`head-${a.value}`)},[Va("div",{class:dl(Ko(o).be("item","content"))},[es(e.$slots,"default")],2)],10,h_),[[pd,Ko(s)]])])),_:3})],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const g_=zf(a_,{CollapseItem:f_}),m_=Rf(f_);let b_=!1;function v_(e,t){if(!Ou)return;const r=function(e){var r;null==(r=t.drag)||r.call(t,e)},i=function(e){var o;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",i),document.onselectstart=null,document.ondragstart=null,b_=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;b_||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),b_=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}var __=Ug(gn({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=mg("color-alpha-slider"),r=ss(),i=qo(null),o=qo(null),l=Yo(0),n=Yo(0),a=Yo(null);function s(t){const o=r.vnode.el.getBoundingClientRect(),{clientX:l,clientY:n}=oh(t);if(e.vertical){let t=n-o.top;t=Math.max(i.value.offsetHeight/2,t),t=Math.min(t,o.height-i.value.offsetHeight/2),e.color.set("alpha",Math.round((t-i.value.offsetHeight/2)/(o.height-i.value.offsetHeight)*100))}else{let t=l-o.left;t=Math.max(i.value.offsetWidth/2,t),t=Math.min(t,o.width-i.value.offsetWidth/2),e.color.set("alpha",Math.round((t-i.value.offsetWidth/2)/(o.width-i.value.offsetWidth)*100))}}function c(){l.value=function(){if(e.vertical)return 0;const t=r.vnode.el,o=e.color.get("alpha");return t?Math.round(o*(t.offsetWidth-i.value.offsetWidth/2)/100):0}(),n.value=function(){const t=r.vnode.el;if(!e.vertical)return 0;const o=e.color.get("alpha");return t?Math.round(o*(t.offsetHeight-i.value.offsetHeight/2)/100):0}(),a.value=function(){if(e.color&&e.color.value){const{r:t,g:r,b:i}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${r}, ${i}, 0) 0%, rgba(${t}, ${r}, ${i}, 1) 100%)`}return null}()}return Qs((()=>e.color.get("alpha")),(()=>{c()})),Qs((()=>e.color.value),(()=>{c()})),En((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};v_(o.value,e),v_(i.value,e),c()})),{thumb:i,bar:o,thumbLeft:l,thumbTop:n,background:a,handleClick:function(e){e.target!==i.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,r,i,o,l){return Ia(),za("div",{class:dl([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Va("div",{ref:"bar",class:dl(e.ns.e("bar")),style:nl({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,6),Va("div",{ref:"thumb",class:dl(e.ns.e("thumb")),style:nl({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 y_=Ug(gn({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=mg("color-hue-slider"),r=ss(),i=Yo(null),o=Yo(null),l=Yo(0),n=Yo(0),a=ol((()=>e.color.get("hue")));function s(t){const o=r.vnode.el.getBoundingClientRect(),{clientX:l,clientY:n}=oh(t);let a;if(e.vertical){let e=n-o.top;e=Math.min(e,o.height-i.value.offsetHeight/2),e=Math.max(i.value.offsetHeight/2,e),a=Math.round((e-i.value.offsetHeight/2)/(o.height-i.value.offsetHeight)*360)}else{let e=l-o.left;e=Math.min(e,o.width-i.value.offsetWidth/2),e=Math.max(i.value.offsetWidth/2,e),a=Math.round((e-i.value.offsetWidth/2)/(o.width-i.value.offsetWidth)*360)}e.color.set("hue",a)}function c(){l.value=function(){const t=r.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-i.value.offsetWidth/2)/360):0}(),n.value=function(){const t=r.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-i.value.offsetHeight/2)/360):0}()}return Qs((()=>a.value),(()=>{c()})),En((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};v_(o.value,e),v_(i.value,e),c()})),{bar:o,thumb:i,thumbLeft:l,thumbTop:n,hueValue:a,handleClick:function(e){e.target!==i.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,r,i,o,l){return Ia(),za("div",{class:dl([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Va("div",{ref:"bar",class:dl(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Va("div",{ref:"thumb",class:dl(e.ns.e("thumb")),style:nl({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 x_=Symbol(),w_=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},k_=function(e,t){var r;"string"==typeof(r=e)&&r.includes(".")&&1===Number.parseFloat(r)&&(e="100%");const i=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),i&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},C_={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},E_=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${C_[t]||t}${C_[r]||r}`},T_=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${E_(e)}${E_(t)}${E_(r)}`},A_={A:10,B:11,C:12,D:13,E:14,F:15},S_=function(e){return 2===e.length?16*(A_[e[0].toUpperCase()]||+e[0])+(A_[e[1].toUpperCase()]||+e[1]):A_[e[1].toUpperCase()]||+e[1]},P_=function(e,t,r){e=k_(e,255),t=k_(t,255),r=k_(r,255);const i=Math.max(e,t,r),o=Math.min(e,t,r);let l;const n=i,a=i-o,s=0===i?0:a/i;if(i===o)l=0;else{switch(i){case e:l=(t-r)/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,r)),this.doOnChange()};if(e.includes("hsl")){const r=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===r.length?this._alpha=100*Number.parseFloat(r[3]):3===r.length&&(this._alpha=100),r.length>=3){const{h:e,s:i,v:o}=function(e,t,r){r/=100;let i=t/=100;const o=Math.max(r,.01);return t*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,{h:e,s:100*(0===r?2*i/(o+i):2*t/(r+t)),v:(r+t)/2*100}}(r[0],r[1],r[2]);t(e,i,o)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===r.length?this._alpha=100*Number.parseFloat(r[3]):3===r.length&&(this._alpha=100),r.length>=3&&t(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=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===r.length?this._alpha=100*Number.parseFloat(r[3]):3===r.length&&(this._alpha=100),r.length>=3){const{h:e,s:i,v:o}=P_(r[0],r[1],r[2]);t(e,i,o)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,o,l;3===r.length?(i=S_(r[0]+r[0]),o=S_(r[1]+r[1]),l=S_(r[2]+r[2])):6!==r.length&&8!==r.length||(i=S_(r.slice(0,2)),o=S_(r.slice(2,4)),l=S_(r.slice(4,6))),8===r.length?this._alpha=S_(r.slice(6))/255*100:3!==r.length&&6!==r.length||(this._alpha=100);const{h:n,s:a,v:s}=P_(i,o,l);t(n,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:r,_alpha:i,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const i=w_(e,t/100,r/100);this.value=`hsla(${e}, ${Math.round(100*i[1])}%, ${Math.round(100*i[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${T_(D_(e,t,r))}${E_(255*i/100)}`;break;default:{const{r:i,g:o,b:l}=D_(e,t,r);this.value=`rgba(${i}, ${o}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const i=w_(e,t/100,r/100);this.value=`hsl(${e}, ${Math.round(100*i[1])}%, ${Math.round(100*i[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(r)}%)`;break;case"rgb":{const{r:i,g:o,b:l}=D_(e,t,r);this.value=`rgb(${i}, ${o}, ${l})`;break}default:this.value=T_(D_(e,t,r))}}}const M_=gn({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=mg("color-predefine"),{currentColor:r}=nn(x_),i=Yo(o(e.colors,e.color));function o(e,t){return e.map((e=>{const r=new I_;return r.enableAlpha=!0,r.format="rgba",r.fromString(e),r.selected=r.value===t.value,r}))}return Qs((()=>r.value),(e=>{const t=new I_;t.fromString(e),i.value.forEach((e=>{e.selected=t.compare(e)}))})),Zs((()=>{i.value=o(e.colors,e.color)})),{rgbaColors:i,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),L_=["onClick"];var O_=Ug(M_,[["render",function(e,t,r,i,o,l){return Ia(),za("div",{class:dl(e.ns.b())},[Va("div",{class:dl(e.ns.e("colors"))},[(Ia(!0),za(Ea,null,Ja(e.rgbaColors,((t,r)=>(Ia(),za("div",{key:e.colors[r],class:dl([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(r)},[Va("div",{style:nl({backgroundColor:t.value})},null,4)],10,L_)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const z_=gn({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=mg("color-svpanel"),r=ss(),i=Yo(0),o=Yo(0),l=Yo("hsl(0, 100%, 50%)"),n=ol((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function a(){const t=e.color.get("saturation"),n=e.color.get("value"),a=r.vnode.el,{clientWidth:s,clientHeight:c}=a;o.value=t*s/100,i.value=(100-n)*c/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function s(t){const l=r.vnode.el.getBoundingClientRect(),{clientX:n,clientY:a}=oh(t);let s=n-l.left,c=a-l.top;s=Math.max(0,s),s=Math.min(s,l.width),c=Math.max(0,c),c=Math.min(c,l.height),o.value=s,i.value=c,e.color.set({saturation:s/l.width*100,value:100-c/l.height*100})}return Qs((()=>n.value),(()=>{a()})),En((()=>{v_(r.vnode.el,{drag:e=>{s(e)},end:e=>{s(e)}}),a()})),{cursorTop:i,cursorLeft:o,background:l,colorValue:n,handleDrag:s,update:a,ns:t}}}),R_=[Va("div",null,null,-1)];const N_=gn({name:"ElColorPicker",components:{ElButton:Lv,ElTooltip:nv,ElInput:Jg,ElIcon:Wg,Close:Qh,ArrowDown:Dh,SvPanel:Ug(z_,[["render",function(e,t,r,i,o,l){return Ia(),za("div",{class:dl(e.ns.b()),style:nl({backgroundColor:e.background})},[Va("div",{class:dl(e.ns.e("white"))},null,2),Va("div",{class:dl(e.ns.e("black"))},null,2),Va("div",{class:dl(e.ns.e("cursor")),style:nl({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},R_,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]),HueSlider:y_,AlphaSlider:__,Predefine:O_},directives:{ClickOutside:Bv},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Hf},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:r}=Eg(),i=mg("color"),{form:o,formItem:l}=yg(),{inputId:n,isLabeledByFormItem:a}=xg(e,{formItemContext:l}),s=Yo(),c=Yo(),d=Yo(),p=Yo(null);let u=!0;const h=Lo(new I_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),f=Yo(!1),g=Yo(!1),m=Yo(""),b=ol((()=>e.modelValue||g.value?function(e,t){if(!(e instanceof I_))throw new TypeError("color should be instance of _color Class");const{r:r,g:i,b:o}=e.toRgb();return t?`rgba(${r}, ${i}, ${o}, ${e.get("alpha")/100})`:`rgb(${r}, ${i}, ${o})`}(h,e.showAlpha):"transparent")),v=pg(),_=ol((()=>!(!e.disabled&&!(null==o?void 0:o.disabled)))),y=ol((()=>e.modelValue||g.value?h.value:"")),x=ol((()=>a.value?void 0:e.label||r("el.colorpicker.defaultLabel"))),w=ol((()=>a.value?null==l?void 0:l.labelId:void 0));Qs((()=>e.modelValue),(e=>{e?e&&e!==h.value&&(u=!1,h.fromString(e)):g.value=!1})),Qs((()=>y.value),(e=>{m.value=e,u&&t("active-change",e),u=!0})),Qs((()=>h.value),(()=>{e.modelValue||g.value||(g.value=!0)}));const k=Su((function(e){f.value=e}),100);function C(){Fs((()=>{e.modelValue?h.fromString(e.modelValue):(h.value="",Fs((()=>{g.value=!1})))}))}return En((()=>{e.modelValue&&(m.value=y.value)})),Qs((()=>f.value),(()=>{Fs((()=>{var e,t,r;null==(e=s.value)||e.update(),null==(t=c.value)||t.update(),null==(r=d.value)||r.update()}))})),ln(x_,{currentColor:y}),{color:h,colorDisabled:_,colorSize:v,displayedColor:b,showPanelColor:g,showPicker:f,customInput:m,buttonId:n,buttonAriaLabel:x,buttonAriaLabelledby:w,handleConfirm:function(){h.fromString(m.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==l||l.validate("change").catch((e=>{}))),C()},confirmValue:function(){const r=h.value;t("update:modelValue",r),t("change",r),e.validateEvent&&(null==l||l.validate("change").catch((e=>{}))),k(!1),Fs((()=>{const t=new I_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});h.compare(t)||C()}))},t:r,ns:i,hue:s,svPanel:c,alpha:d,popper:p}}}),B_=["id","aria-label","aria-labelledby","aria-description","tabindex"];var j_=Ug(N_,[["render",function(e,t,r,i,o,l){const n=_a("hue-slider"),a=_a("sv-panel"),s=_a("alpha-slider"),c=_a("predefine"),d=_a("el-input"),p=_a("el-button"),u=_a("arrow-down"),h=_a("el-icon"),f=_a("close"),g=_a("el-tooltip"),m=wa("click-outside");return Ia(),Ra(g,{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:$l((()=>[oa((Ia(),za("div",null,[Va("div",{class:dl(e.ns.be("dropdown","main-wrapper"))},[Wa(n,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),Wa(a,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(Ia(),Ra(s,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Ya("v-if",!0),e.predefine?(Ia(),Ra(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Ya("v-if",!0),Va("div",{class:dl(e.ns.be("dropdown","btns"))},[Va("span",{class:dl(e.ns.be("dropdown","value"))},[Wa(d,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:dd(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),Wa(p,{class:dl(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:$l((()=>[Ga(pl(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),Wa(p,{plain:"",size:"small",class:dl(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:$l((()=>[Ga(pl(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[m,e.hide]])])),default:$l((()=>[Va("div",{id:e.buttonId,class:dl([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]=dd(((...t)=>e.handleTrigger&&e.handleTrigger(...t)),["enter"]))},[e.colorDisabled?(Ia(),za("div",{key:0,class:dl(e.ns.be("picker","mask"))},null,2)):Ya("v-if",!0),Va("div",{class:dl(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[Va("span",{class:dl([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Va("span",{class:dl(e.ns.be("picker","color-inner")),style:nl({backgroundColor:e.displayedColor})},[oa(Wa(h,{class:dl([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:$l((()=>[Wa(u)])),_:1},8,["class"]),[[pd,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?Ya("v-if",!0):(Ia(),Ra(h,{key:0,class:dl([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:$l((()=>[Wa(f)])),_:1},8,["class"]))],6)],2)],2)],42,B_)])),_:1},8,["visible","popper-class","transition"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);j_.install=e=>{e.component(j_.name,j_)};const F_=j_,U_={},V_=zf(gn({name:"ElConfigProvider",props:If({a11y:{type:Boolean,default:!0},locale:{type:Object},size:dg,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}){Qs((()=>e.message),(e=>{Object.assign(U_,null!=e?e:{})}),{immediate:!0,deep:!0});const r=((e,t,r=!1)=>{var i;const o=!!ss(),l=o?sg():void 0,n=null!=(i=null==t?void 0:t.provide)?i:o?ln:void 0;if(!n)return;const a=ol((()=>{const t=Ko(e);return(null==l?void 0:l.value)?cg(l.value,t):t}));return n(Jf,a),!r&&ag.value||(ag.value=a.value),a})(e);return()=>es(t,"default",{config:null==r?void 0:r.value})}}));const W_=gn({name:"ElOverlay",props:If({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:r}){const i=mg("overlay"),{onClick:o,onMousedown:l,onMouseup:n}=Pg(e.customMaskEvent?void 0:e=>{r("click",e)});return()=>e.mask?Wa("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:l,onMouseup:n},[es(t,"default")],Gf.STYLE|Gf.CLASS|Gf.PROPS,["onClick","onMouseup","onMousedown"]):ic("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[es(t,"default")])}}),H_=If({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Mf},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),G_=["aria-label"],Y_=["id"];var q_=Ug(gn(c(s({},{name:"ElDialogContent"}),{props:H_,emits:{close:()=>!0},setup(e){const t=e,{t:r}=Eg(),{Close:i}=Lf,{dialogRef:o,headerRef:l,bodyId:n,ns:a,style:s}=nn($f),{focusTrapRef:c}=nn(Bb),d=((...e)=>t=>{e.forEach((e=>{ch(e)?e(t):e.value=t}))})(c,o),p=ol((()=>t.draggable));return fg(o,l,p),(e,t)=>(Ia(),za("div",{ref:Ko(d),class:dl([Ko(a).b(),Ko(a).is("fullscreen",e.fullscreen),Ko(a).is("draggable",Ko(p)),Ko(a).is("align-center",e.alignCenter),{[Ko(a).m("center")]:e.center},e.customClass]),style:nl(Ko(s)),tabindex:"-1",onClick:t[1]||(t[1]=sd((()=>{}),["stop"]))},[Va("header",{ref_key:"headerRef",ref:l,class:dl(Ko(a).e("header"))},[es(e.$slots,"header",{},(()=>[Va("span",{role:"heading",class:dl(Ko(a).e("title"))},pl(e.title),3)])),e.showClose?(Ia(),za("button",{key:0,"aria-label":Ko(r)("el.dialog.close"),class:dl(Ko(a).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[Wa(Ko(Wg),{class:dl(Ko(a).e("close"))},{default:$l((()=>[(Ia(),Ra(xa(e.closeIcon||Ko(i))))])),_:1},8,["class"])],10,G_)):Ya("v-if",!0)],2),Va("div",{id:Ko(n),class:dl(Ko(a).e("body"))},[es(e.$slots,"default")],10,Y_),e.$slots.footer?(Ia(),za("footer",{key:0,class:dl(Ko(a).e("footer"))},[es(e.$slots,"footer")],2)):Ya("v-if",!0)],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Z_=If(c(s({},H_),{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}})),X_={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,"update:modelValue":e=>zu(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Q_=["aria-label","aria-labelledby","aria-describedby"];const K_=zf(Ug(gn(c(s({},{name:"ElDialog",inheritAttrs:!1}),{props:Z_,emits:X_,setup(e,{expose:t}){const r=e,i=tc();hg({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"},ol((()=>!!i.title))),hg({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"},ol((()=>!!r.customClass)));const o=mg("dialog"),l=Yo(),n=Yo(),a=Yo(),{visible:s,titleId:c,bodyId:d,style:p,overlayDialogStyle:u,rendered:h,zIndex:f,afterEnter:g,afterLeave:m,beforeLeave:b,handleClose:v,onModalClick:_,onOpenAutoFocus:y,onCloseAutoFocus:x,onCloseRequested:w}=((e,t)=>{const r=ss().emit,{nextZIndex:i}=Fg();let o="";const l=_g(),n=_g(),a=Yo(!1),s=Yo(!1),c=Yo(!1),d=Yo(e.zIndex||i());let p,u;const h=sg("namespace","el"),f=ol((()=>{const t={},r=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(t[`${r}-margin-top`]=e.top),e.width&&(t[`${r}-width`]=Ch(e.width))),t})),g=ol((()=>e.alignCenter?{display:"flex"}:{}));function m(){null==u||u(),null==p||p(),e.openDelay&&e.openDelay>0?({stop:p}=Fu((()=>_()),e.openDelay)):_()}function b(){null==p||p(),null==u||u(),e.closeDelay&&e.closeDelay>0?({stop:u}=Fu((()=>y()),e.closeDelay)):y()}function v(){e.beforeClose?e.beforeClose((function(e){e||(s.value=!0,a.value=!1)})):b()}function _(){Ou&&(a.value=!0)}function y(){a.value=!1}return e.lockScroll&&Tg(a),Qs((()=>e.modelValue),(o=>{o?(s.value=!1,m(),c.value=!0,d.value=e.zIndex?d.value++:i(),Fs((()=>{r("open"),t.value&&(t.value.scrollTop=0)}))):a.value&&b()})),Qs((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),En((()=>{e.modelValue&&(a.value=!0,c.value=!0,m())})),{afterEnter:function(){r("opened")},afterLeave:function(){r("closed"),r("update:modelValue",!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){r("close")},handleClose:v,onModalClick:function(){e.closeOnClickModal&&v()},close:b,doClose:y,onOpenAutoFocus:function(){r("openAutoFocus")},onCloseAutoFocus:function(){r("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&v()},titleId:l,bodyId:n,closed:s,style:f,overlayDialogStyle:g,rendered:c,visible:a,zIndex:d}})(r,l);ln($f,{dialogRef:l,headerRef:n,bodyId:d,ns:o,rendered:h,style:p});const k=Pg(_),C=ol((()=>r.draggable&&!r.fullscreen));return t({visible:s,dialogContentRef:a}),(e,t)=>(Ia(),Ra(va,{to:"body",disabled:!e.appendToBody},[Wa(Wc,{name:"dialog-fade",onAfterEnter:Ko(g),onAfterLeave:Ko(m),onBeforeLeave:Ko(b),persisted:""},{default:$l((()=>[oa(Wa(Ko(W_),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":Ko(f)},{default:$l((()=>[Va("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Ko(c),"aria-describedby":Ko(d),class:dl(`${Ko(o).namespace.value}-overlay-dialog`),style:nl(Ko(u)),onClick:t[0]||(t[0]=(...e)=>Ko(k).onClick&&Ko(k).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>Ko(k).onMousedown&&Ko(k).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>Ko(k).onMouseup&&Ko(k).onMouseup(...e))},[Wa(Ko(jb),{loop:"",trapped:Ko(s),"focus-start-el":"container",onFocusAfterTrapped:Ko(y),onFocusAfterReleased:Ko(x),onReleaseRequested:Ko(w)},{default:$l((()=>[Ko(h)?(Ia(),Ra(q_,Qa({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:Ko(C),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:Ko(v)}),$a({header:$l((()=>[e.$slots.title?es(e.$slots,"title",{key:1}):es(e.$slots,"header",{key:0,close:Ko(v),titleId:Ko(c),titleClass:Ko(o).e("title")})])),default:$l((()=>[es(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:$l((()=>[es(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Ya("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,Q_)])),_:3},8,["mask","overlay-class","z-index"]),[[pd,Ko(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),J_=If({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:dg,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Ru(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}}),$_={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>Ru(e)||Iu(e),"update:modelValue":e=>Ru(e)||Iu(e)},ey=["aria-label","onKeydown"],ty=["aria-label","onKeydown"];const ry=zf(Ug(gn(c(s({},{name:"ElInputNumber"}),{props:J_,emits:$_,setup(e,{expose:t,emit:r}){const i=e,{t:o}=Eg(),l=mg("input-number"),n=Yo(),a=Lo({currentValue:i.modelValue,userInput:null}),{formItem:s}=yg(),c=ol((()=>Ru(i.modelValue)&&v(i.modelValue,-1)Ru(i.modelValue)&&v(i.modelValue)>i.max)),p=ol((()=>{const e=b(i.step);return bh(i.precision)?Math.max(b(i.modelValue),e):(i.precision,i.precision)})),u=ol((()=>i.controls&&"right"===i.controlsPosition)),h=pg(),f=ug(),g=ol((()=>{if(null!==a.userInput)return a.userInput;let e=a.currentValue;if(Iu(e))return"";if(Ru(e)){if(Number.isNaN(e))return"";bh(i.precision)||(e=e.toFixed(i.precision))}return e})),m=(e,t)=>{if(bh(t)&&(t=p.value),0===t)return Math.round(e);let r=String(e);const i=r.indexOf(".");if(-1===i)return e;if(!r.replace(".","").split("")[i+t])return e;const o=r.length;return"5"===r.charAt(o-1)&&(r=`${r.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(r).toFixed(t))},b=e=>{if(Iu(e))return 0;const t=e.toString(),r=t.indexOf(".");let i=0;return-1!==r&&(i=t.length-r-1),i},v=(e,t=1)=>Ru(e)?m(e+i.step*t):a.currentValue,_=()=>{if(i.readonly||f.value||d.value)return;const e=i.modelValue||0,t=v(e);w(t)},y=()=>{if(i.readonly||f.value||c.value)return;const e=i.modelValue||0,t=v(e,-1);w(t)},x=(e,t)=>{const{max:o,min:l,step:n,precision:a,stepStrictly:s,valueOnClear:c}=i;let d=Number(e);if(Iu(e)||Number.isNaN(d))return null;if(""===e){if(null===c)return null;d=dh(c)?{min:l,max:o}[c]:c}return s&&(d=m(Math.round(d/n)*n,a)),bh(a)||(d=m(d,a)),(d>o||do?o:l,t&&r("update:modelValue",d)),d},w=e=>{var t;const o=a.currentValue,l=x(e);o!==l&&(a.userInput=null,r("update:modelValue",l),r("input",l),r("change",l,o),i.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"change").catch((e=>{}))),a.currentValue=l)},k=e=>a.userInput=e,C=e=>{const t=""!==e?Number(e):"";(Ru(t)&&!Number.isNaN(t)||""===e)&&w(t),a.userInput=null},E=e=>{r("focus",e)},T=e=>{var t;r("blur",e),i.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))};return Qs((()=>i.modelValue),(e=>{a.currentValue=x(e,!0),a.userInput=null}),{immediate:!0}),En((()=>{var e;const{min:t,max:o,modelValue:l}=i,s=null==(e=n.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)),!Ru(l)&&null!=l){let e=Number(l);Number.isNaN(e)&&(e=null),r("update:modelValue",e)}})),An((()=>{var e;const t=null==(e=n.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${a.currentValue}`)})),t({focus:()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(Ia(),za("div",{class:dl([Ko(l).b(),Ko(l).m(Ko(h)),Ko(l).is("disabled",Ko(f)),Ko(l).is("without-controls",!e.controls),Ko(l).is("controls-right",Ko(u))]),onDragstart:t[0]||(t[0]=sd((()=>{}),["prevent"]))},[e.controls?oa((Ia(),za("span",{key:0,role:"button","aria-label":Ko(o)("el.inputNumber.decrease"),class:dl([Ko(l).e("decrease"),Ko(l).is("disabled",Ko(c))]),onKeydown:dd(y,["enter"])},[Wa(Ko(Wg),null,{default:$l((()=>[Ko(u)?(Ia(),Ra(Ko(Dh),{key:0})):(Ia(),Ra(Ko(bf),{key:1}))])),_:1})],42,ey)),[[Ko(jv),y]]):Ya("v-if",!0),e.controls?oa((Ia(),za("span",{key:1,role:"button","aria-label":Ko(o)("el.inputNumber.increase"),class:dl([Ko(l).e("increase"),Ko(l).is("disabled",Ko(d))]),onKeydown:dd(_,["enter"])},[Wa(Ko(Wg),null,{default:$l((()=>[Ko(u)?(Ia(),Ra(Ko(Bh),{key:0})):(Ia(),Ra(Ko(xf),{key:1}))])),_:1})],42,ty)),[[Ko(jv),_]]):Ya("v-if",!0),Wa(Ko(Jg),{id:e.id,ref_key:"input",ref:n,type:"number",step:e.step,"model-value":Ko(g),placeholder:e.placeholder,readonly:e.readonly,disabled:Ko(f),size:Ko(h),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[dd(sd(_,["prevent"]),["up"]),dd(sd(y,["prevent"]),["down"])],onBlur:T,onFocus:E,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 iy=Ug(gn({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=mg("select"),r=Lo({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:n,hoverItem:a}=function(e,t){const r=nn("ElSelect"),i=nn("ElSelectGroup",{disabled:!1}),o=ol((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),l=ol((()=>r.props.multiple?p(r.props.modelValue,e.value):u(e.value,r.props.modelValue))),n=ol((()=>{if(r.props.multiple){const e=r.props.modelValue||[];return!l.value&&e.length>=r.props.multipleLimit&&r.props.multipleLimit>0}return!1})),a=ol((()=>e.label||(o.value?"":e.value))),s=ol((()=>e.value||e.label||"")),c=ol((()=>e.disabled||t.groupDisabled||n.value)),d=ss(),p=(e=[],t)=>{if(o.value){const i=r.props.valueKey;return e&&e.some((e=>jo(Xp(e,i))===Xp(t,i)))}return e&&e.includes(t)},u=(e,t)=>{if(o.value){const{valueKey:i}=r.props;return Xp(e,i)===Xp(t,i)}return e===t};Qs((()=>a.value),(()=>{e.created||r.props.remote||r.setSelected()})),Qs((()=>e.value),((t,i)=>{const{remote:o,valueKey:l}=r.props;if(Object.is(t,i)||(r.onOptionDestroy(i,d.proxy),r.onOptionCreate(d.proxy)),!e.created&&!o){if(l&&"object"==typeof t&&"object"==typeof i&&t[l]===i[l])return;r.setSelected()}})),Qs((()=>i.disabled),(()=>{t.groupDisabled=i.disabled}),{immediate:!0});const{queryChange:h}=jo(r);return Qs(h,(i=>{const{query:o}=Ko(i),l=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(o),"i");t.visible=l.test(a.value)||e.created,t.visible||r.filteredOptionsCount--})),{select:r,currentLabel:a,currentValue:s,itemSelected:l,isDisabled:c,hoverItem:()=>{e.disabled||i.disabled||(r.hoverIndex=r.optionsArray.indexOf(d.proxy))}}}(e,r),{visible:s,hover:c}=el(r),d=ss().proxy;return n.onOptionCreate(d),Sn((()=>{const e=d.value,{selected:t}=n,r=(n.props.multiple?t:[t]).some((e=>e.value===d.value));Fs((()=>{n.cachedOptions.get(e)!==d||r||n.cachedOptions.delete(e)})),n.onOptionDestroy(e,d)})),{ns:t,currentLabel:i,itemSelected:o,isDisabled:l,select:n,hoverItem:a,visible:s,hover:c,selectOptionClick:function(){!0!==e.disabled&&!0!==r.groupDisabled&&n.handleOptionSelect(d,!0)},states:r}}}),[["render",function(e,t,r,i,o,l){return oa((Ia(),za("li",{class:dl([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]=sd(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[es(e.$slots,"default",{},(()=>[Va("span",null,pl(e.currentLabel),1)]))],34)),[[pd,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const oy=gn({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=nn("ElSelect"),t=mg("select"),r=ol((()=>e.props.popperClass)),i=ol((()=>e.props.multiple)),o=ol((()=>e.props.fitInputWidth)),l=Yo("");function n(){var t;l.value=`${null==(t=e.selectWrapper)?void 0:t.offsetWidth}px`}return En((()=>{n(),Ju(e.selectWrapper,n)})),{ns:t,minWidth:l,popperClass:r,isMultiple:i,isFitInputWidth:o}}});const ly=(e,t,r)=>{const{t:i}=Eg(),o=mg("select"),l=Yo(null),n=Yo(null),a=Yo(null),s=Yo(null),c=Yo(null),d=Yo(null),p=Yo(-1),u=qo({query:""}),h=qo(""),{form:f,formItem:g}=yg(),m=ol((()=>!e.filterable||e.multiple||!t.visible)),b=ol((()=>e.disabled||(null==f?void 0:f.disabled))),v=ol((()=>{const r=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue;return e.clearable&&!b.value&&t.inputHovering&&r})),_=ol((()=>e.remote&&e.filterable?"":e.suffixIcon)),y=ol((()=>o.is("reverse",_.value&&t.visible))),x=ol((()=>e.remote?300:0)),w=ol((()=>e.loading?e.loadingText||i("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||i("el.select.noMatch"):0===t.options.size?e.noDataText||i("el.select.noData"):null))),k=ol((()=>Array.from(t.options.values()))),C=ol((()=>Array.from(t.cachedOptions.values()))),E=ol((()=>{const r=k.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!r})),T=pg(),A=ol((()=>["small"].includes(T.value)?"small":"default")),S=ol({get:()=>t.visible&&!1!==w.value,set(e){t.visible=e}});Qs([()=>b.value,()=>T.value,()=>null==f?void 0:f.size],(()=>{Fs((()=>{P()}))})),Qs((()=>e.placeholder),(e=>{t.cachedPlaceHolder=t.currentPlaceholder=e})),Qs((()=>e.modelValue),((r,i)=>{e.multiple&&(P(),r&&r.length>0||n.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",D(t.query))),L(),e.filterable&&!e.multiple&&(t.inputLength=20),!Du(r,i)&&e.validateEvent&&(null==g||g.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),Qs((()=>t.visible),(i=>{var o,l,s;i?(null==(l=null==(o=a.value)?void 0:o.updatePopper)||l.call(o),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?null==(s=n.value)||s.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),D(t.query),e.multiple||e.remote||(u.value.query="",Qo(u),Qo(h)))):(n.value&&n.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,z(),Fs((()=>{n.value&&""===n.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))),r.emit("visible-change",i)})),Qs((()=>t.options.entries()),(()=>{var r,i,o;if(!Ou)return;null==(i=null==(r=a.value)?void 0:r.updatePopper)||i.call(r),e.multiple&&P();const l=(null==(o=c.value)?void 0:o.querySelectorAll("input"))||[];Array.from(l).includes(document.activeElement)||L(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&M()}),{flush:"post"}),Qs((()=>t.hoverIndex),(e=>{"number"==typeof e&&e>-1&&(p.value=k.value[e]||{}),k.value.forEach((e=>{e.hover=p.value===e}))}));const P=()=>{e.collapseTags&&!e.filterable||Fs((()=>{var e,r;if(!l.value)return;const i=l.value.$el.querySelector("input"),o=s.value,n=(c=T.value||(null==f?void 0:f.size),Wf[c||"default"]);var c;i.style.height=(0===t.selected.length?n:Math.max(o?o.clientHeight+(o.clientHeight>n?6:0):0,n))-2+"px",t.tagInMultiLine=Number.parseFloat(i.style.height)>=n,t.visible&&!1!==w.value&&(null==(r=null==(e=a.value)?void 0:e.updatePopper)||r.call(e))}))},D=async r=>{t.previousQuery===r||t.isOnComposition||(null!==t.previousQuery||"function"!=typeof e.filterMethod&&"function"!=typeof e.remoteMethod?(t.previousQuery=r,Fs((()=>{var e,r;t.visible&&(null==(r=null==(e=a.value)?void 0:e.updatePopper)||r.call(e))})),t.hoverIndex=-1,e.multiple&&e.filterable&&Fs((()=>{const r=15*n.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,r):r,I(),P()})),e.remote&&"function"==typeof e.remoteMethod?(t.hoverIndex=-1,e.remoteMethod(r)):"function"==typeof e.filterMethod?(e.filterMethod(r),Qo(h)):(t.filteredOptionsCount=t.optionsCount,u.value.query=r,Qo(u),Qo(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Fs(),M())):t.previousQuery=r)},I=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=n.value.value?"":t.cachedPlaceHolder)},M=()=>{const e=k.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),r=e.find((e=>e.created)),i=e[0];t.hoverIndex=V(k.value,r||i)},L=()=>{var r;if(!e.multiple){const i=O(e.modelValue);return(null==(r=i.props)?void 0:r.created)?(t.createdLabel=i.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=i.currentLabel,t.selected=i,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const i=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{i.push(O(e))})),t.selected=i,Fs((()=>{P()}))},O=r=>{let i;const o="object"===fh(r).toLowerCase(),l="null"===fh(r).toLowerCase(),n="undefined"===fh(r).toLowerCase();for(let s=t.cachedOptions.size-1;s>=0;s--){const t=C.value[s];if(o?Xp(t.value,e.valueKey)===Xp(r,e.valueKey):t.value===r){i={value:r,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(i)return i;const a={value:r,currentLabel:o?r.label:l||n?"":r};return e.multiple&&(a.hitState=!1),a},z=()=>{setTimeout((()=>{const r=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((e=>k.value.findIndex((t=>Xp(t,r)===Xp(e,r)))))):t.hoverIndex=-1:t.hoverIndex=k.value.findIndex((e=>q(e)===q(t.selected)))}),300)},R=()=>{var e;t.inputWidth=null==(e=l.value)?void 0:e.$el.getBoundingClientRect().width},N=Su((()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,D(t.query))}),x.value),B=Su((e=>{D(e.target.value)}),x.value),j=t=>{Du(e.modelValue,t)||r.emit("change",t)},F=i=>{i.stopPropagation();const o=e.multiple?[]:"";if("string"!=typeof o)for(const e of t.selected)e.isDisabled&&o.push(e.value);r.emit("update:modelValue",o),j(o),t.visible=!1,r.emit("clear")},U=(i,o)=>{var l;if(e.multiple){const o=(e.modelValue||[]).slice(),a=V(o,i.value);a>-1?o.splice(a,1):(e.multipleLimit<=0||o.length{H(i)}))},V=(t=[],r)=>{if(!ph(r))return t.indexOf(r);const i=e.valueKey;let o=-1;return t.some(((e,t)=>jo(Xp(e,i))===Xp(r,i)&&(o=t,!0))),o},W=()=>{t.softFocus=!0;const e=n.value||l.value;e&&(null==e||e.focus())},H=e=>{var t,r,i,l,n;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==(l=null==(i=null==(r=null==(t=a.value)?void 0:t.popperRef)?void 0:r.contentRef)?void 0:i.querySelector)?void 0:l.call(i,`.${o.be("dropdown","wrap")}`);e&&function(e,t){if(!Ou)return;if(!t)return void(e.scrollTop=0);const r=[];let i=t.offsetParent;for(;null!==i&&e!==i&&e.contains(i);)r.push(i),i=i.offsetParent;const o=t.offsetTop+r.reduce(((e,t)=>e+t.offsetTop),0),l=o+t.offsetHeight,n=e.scrollTop,a=n+e.clientHeight;oa&&(e.scrollTop=l-e.clientHeight)}(e,c)}null==(n=d.value)||n.handleScroll()},G=e=>{if(!Array.isArray(t.selected))return;const r=t.selected[t.selected.length-1];return r?!0===e||!1===e?(r.hitState=e,e):(r.hitState=!r.hitState,r.hitState):void 0},Y=()=>{var e;b.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&(null==(e=n.value||l.value)||e.focus()))},q=t=>ph(t.value)?Xp(t.value,e.valueKey):t.value,Z=ol((()=>k.value.filter((e=>e.visible)).every((e=>e.disabled)))),X=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!Z.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 r=k.value[t.hoverIndex];!0!==r.disabled&&!0!==r.states.groupDisabled&&r.visible||X(e),Fs((()=>H(p.value)))}}else t.visible=!0};return{optionsArray:k,selectSize:T,handleResize:()=>{var t,r;R(),null==(r=null==(t=a.value)?void 0:t.updatePopper)||r.call(t),e.multiple&&!e.filterable&&P()},debouncedOnInputChange:N,debouncedQueryChange:B,deletePrevTag:i=>{if(i.target.value.length<=0&&!G()){const t=e.modelValue.slice();t.pop(),r.emit("update:modelValue",t),j(t)}1===i.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)},deleteTag:(i,o)=>{const l=t.selected.indexOf(o);if(l>-1&&!b.value){const t=e.modelValue.slice();t.splice(l,1),r.emit("update:modelValue",t),j(t),r.emit("remove-tag",o.value)}i.stopPropagation()},deleteSelected:F,handleOptionSelect:U,scrollToOption:H,readonly:m,resetInputHeight:P,showClose:v,iconComponent:_,iconReverse:y,showNewOption:E,collapseTagSize:A,setSelected:L,managePlaceholder:I,selectDisabled:b,emptyText:w,toggleLastOptionHitState:G,resetInputState:e=>{e.code!==Uf&&G(!1),t.inputLength=15*n.value.value.length+20,P()},handleComposition:e=>{const r=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,Fs((()=>D(r)));else{const e=r[r.length-1]||"";t.isOnComposition=!Yf(e)}},onOptionCreate:e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},onOptionDestroy:(e,r)=>{t.options.get(e)===r&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},handleMenuEnter:()=>{Fs((()=>H(t.selected)))},handleFocus:i=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),r.emit("focus",i))},blur:()=>{var e;t.visible=!1,null==(e=l.value)||e.blur()},handleBlur:e=>{Fs((()=>{t.isSilentBlur?t.isSilentBlur=!1:r.emit("blur",e)})),t.softFocus=!1},handleClearClick:e=>{F(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]&&U(k.value[t.hoverIndex],void 0):Y()},getValueKey:q,navigateOptions:X,dropMenuVisible:S,queryChange:u,groupQueryChange:h,reference:l,input:n,tooltipRef:a,tags:s,selectWrapper:c,scrollbar:d}},ny=gn({name:"ElSelect",componentName:"ElSelect",components:{ElInput:Jg,ElSelectMenu:Ug(oy,[["render",function(e,t,r,i,o,l){return Ia(),za("div",{class:dl([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:nl({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[es(e.$slots,"default")],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]),ElOption:iy,ElTag:i_,ElScrollbar:om,ElTooltip:nv,ElIcon:Wg},directives:{ClickOutside:Bv},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:Hf},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:qb.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Yh},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Bh},tagType:c(s({},t_.type),{default:"info"}),validateEvent:{type:Boolean,default:!0}},emits:["update:modelValue","change","remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=mg("select"),i=mg("input"),{t:o}=Eg(),l=function(e){const{t:t}=Eg();return Lo({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:n,selectSize:a,readonly:s,handleResize:c,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:u,deletePrevTag:h,deleteTag:f,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,setSelected:v,resetInputHeight:_,managePlaceholder:y,showClose:x,selectDisabled:w,iconComponent:k,iconReverse:C,showNewOption:E,emptyText:T,toggleLastOptionHitState:A,resetInputState:S,handleComposition:P,onOptionCreate:D,onOptionDestroy:I,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:z,handleClearClick:R,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:F,getValueKey:U,navigateOptions:V,dropMenuVisible:W,reference:H,input:G,tooltipRef:Y,tags:q,selectWrapper:Z,scrollbar:X,queryChange:Q,groupQueryChange:K}=ly(e,l,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:re,filteredOptionsCount:ie,visible:oe,softFocus:le,selectedLabel:ne,hoverIndex:ae,query:se,inputHovering:ce,currentPlaceholder:de,menuVisibleOnFocus:pe,isOnComposition:ue,isSilentBlur:he,options:fe,cachedOptions:ge,optionsCount:me,prefixWidth:be,tagInMultiLine:ve}=el(l),_e=ol((()=>{const t=[r.b()],i=Ko(a);return i&&t.push(r.m(i)),e.disabled&&t.push(r.m("disabled")),t})),ye=ol((()=>({maxWidth:Ko(ee)-32+"px",width:"100%"})));ln("ElSelect",Lo({props:e,options:fe,optionsArray:n,cachedOptions:ge,optionsCount:me,filteredOptionsCount:ie,hoverIndex:ae,handleOptionSelect:m,onOptionCreate:D,onOptionDestroy:I,selectWrapper:Z,selected:te,setSelected:v,queryChange:Q,groupQueryChange:K})),En((()=>{l.cachedPlaceHolder=de.value=e.placeholder||o("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(de.value=""),Ju(Z,c),e.remote&&e.multiple&&_(),Fs((()=>{const e=H.value&&H.value.$el;if(e&&(ee.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${i.e("prefix")}`);be.value=Math.max(t.getBoundingClientRect().width+5,30)}})),v()})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit("update:modelValue",[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit("update:modelValue","");const xe=ol((()=>{var e,t;return null==(t=null==(e=Y.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tagInMultiLine:ve,prefixWidth:be,selectSize:a,readonly:s,handleResize:c,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:u,deletePrevTag:h,deleteTag:f,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,inputWidth:ee,selected:te,inputLength:re,filteredOptionsCount:ie,visible:oe,softFocus:le,selectedLabel:ne,hoverIndex:ae,query:se,inputHovering:ce,currentPlaceholder:de,menuVisibleOnFocus:pe,isOnComposition:ue,isSilentBlur:he,options:fe,resetInputHeight:_,managePlaceholder:y,showClose:x,selectDisabled:w,iconComponent:k,iconReverse:C,showNewOption:E,emptyText:T,toggleLastOptionHitState:A,resetInputState:S,handleComposition:P,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:z,handleClearClick:R,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:F,getValueKey:U,navigateOptions:V,dropMenuVisible:W,focus:J,reference:H,input:G,tooltipRef:Y,popperPaneRef:xe,tags:q,selectWrapper:Z,scrollbar:X,wrapperKls:_e,selectTagsStyle:ye,nsSelect:r}}}),ay={class:"select-trigger"},sy=["disabled","autocomplete"],cy={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};var dy=Ug(ny,[["render",function(e,t,r,i,o,l){const n=_a("el-tag"),a=_a("el-tooltip"),s=_a("el-icon"),c=_a("el-input"),d=_a("el-option"),p=_a("el-scrollbar"),u=_a("el-select-menu"),h=wa("click-outside");return oa((Ia(),za("div",{ref:"selectWrapper",class:dl(e.wrapperKls),onClick:t[22]||(t[22]=sd(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[Wa(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:$l((()=>[Va("div",ay,[e.multiple?(Ia(),za("div",{key:0,ref:"tags",class:dl(e.nsSelect.e("tags")),style:nl(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(Ia(),za("span",{key:0,class:dl([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[Wa(n,{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:$l((()=>[Va("span",{class:dl(e.nsSelect.e("tags-text")),style:nl({maxWidth:e.inputWidth-123+"px"})},pl(e.selected[0].currentLabel),7)])),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(Ia(),Ra(n,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:$l((()=>[e.collapseTagsTooltip?(Ia(),Ra(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:$l((()=>[Va("span",{class:dl(e.nsSelect.e("tags-text"))},"+ "+pl(e.selected.length-1),3)])),content:$l((()=>[Va("div",{class:dl(e.nsSelect.e("collapse-tags"))},[(Ia(!0),za(Ea,null,Ja(e.selected.slice(1),((t,r)=>(Ia(),za("div",{key:r,class:dl(e.nsSelect.e("collapse-tag"))},[(Ia(),Ra(n,{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:r=>e.deleteTag(r,t)},{default:$l((()=>[Va("span",{class:dl(e.nsSelect.e("tags-text")),style:nl({maxWidth:e.inputWidth-75+"px"})},pl(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"]))],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):(Ia(),za("span",{key:1,class:dl(e.nsSelect.e("tags-text"))},"+ "+pl(e.selected.length-1),3))])),_:1},8,["size","type"])):Ya("v-if",!0)],2)):Ya("v-if",!0),Ya("
"),e.collapseTags?Ya("v-if",!0):(Ia(),Ra(Wc,{key:1,onAfterLeave:e.resetInputHeight},{default:$l((()=>[Va("span",{class:dl([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(Ia(!0),za(Ea,null,Ja(e.selected,(t=>(Ia(),Ra(n,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:r=>e.deleteTag(r,t)},{default:$l((()=>[Va("span",{class:dl(e.nsSelect.e("tags-text")),style:nl({maxWidth:e.inputWidth-75+"px"})},pl(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),Ya("
"),e.filterable?oa((Ia(),za("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.query=t),type:"text",class:dl([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:nl({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]=dd(sd((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[7]||(t[7]=dd(sd((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[8]||(t[8]=dd(((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t)),["esc"])),t[9]||(t[9]=dd(sd(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=dd(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[11]||(t[11]=dd((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,sy)),[[od,e.query]]):Ya("v-if",!0)],6)):Ya("v-if",!0),Wa(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:dl([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]=dd(sd((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[18]||(t[18]=dd(sd((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),dd(sd(e.selectOption,["stop","prevent"]),["enter"]),dd(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=dd((t=>e.visible=!1),["tab"]))],onMouseenter:t[20]||(t[20]=t=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=t=>e.inputHovering=!1)},$a({suffix:$l((()=>[e.iconComponent&&!e.showClose?(Ia(),Ra(s,{key:0,class:dl([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:$l((()=>[(Ia(),Ra(xa(e.iconComponent)))])),_:1},8,["class"])):Ya("v-if",!0),e.showClose&&e.clearIcon?(Ia(),Ra(s,{key:1,class:dl([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:$l((()=>[(Ia(),Ra(xa(e.clearIcon)))])),_:1},8,["class","onClick"])):Ya("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:$l((()=>[Va("div",cy,[es(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:$l((()=>[Wa(u,null,{default:$l((()=>[oa(Wa(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:dl([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:$l((()=>[e.showNewOption?(Ia(),Ra(d,{key:0,value:e.query,created:!0},null,8,["value"])):Ya("v-if",!0),es(e.$slots,"default")])),_:3},8,["wrap-class","view-class","class"]),[[pd,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(Ia(),za(Ea,{key:0},[e.$slots.empty?es(e.$slots,"empty",{key:0}):(Ia(),za("p",{key:1,class:dl(e.nsSelect.be("dropdown","empty"))},pl(e.emptyText),3))],64)):Ya("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 py=Ug(gn({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=mg("select"),r=Yo(!0),i=ss(),o=Yo([]);ln("ElSelectGroup",Lo(s({},el(e))));const l=nn("ElSelect");En((()=>{o.value=n(i.subTree)}));const n=e=>{const t=[];return Array.isArray(e.children)&&e.children.forEach((e=>{var r;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(r=e.children)?void 0:r.length)&&t.push(...n(e))})),t},{groupQueryChange:a}=jo(l);return Qs(a,(()=>{r.value=o.value.some((e=>!0===e.visible))})),{visible:r,ns:t}}}),[["render",function(e,t,r,i,o,l){return oa((Ia(),za("ul",{class:dl(e.ns.be("group","wrap"))},[Va("li",{class:dl(e.ns.be("group","title"))},pl(e.label),3),Va("li",null,[Va("ul",{class:dl(e.ns.b("group"))},[es(e.$slots,"default")],2)])],2)),[[pd,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const uy=zf(dy,{Option:iy,OptionGroup:py}),hy=Rf(iy);Rf(py);const fy=If({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:Mf},inactiveIcon:{type:Mf},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:Hf},tabindex:{type:[String,Number]}}),gy={"update:modelValue":e=>zu(e)||dh(e)||Ru(e),change:e=>zu(e)||dh(e)||Ru(e),input:e=>zu(e)||dh(e)||Ru(e)},my=["onClick"],by=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],vy=["aria-hidden"],_y=["aria-hidden"],yy=["aria-hidden"],xy=["aria-hidden"];const wy=zf(Ug(gn(c(s({},{name:"ElSwitch"}),{props:fy,emits:gy,setup(e,{expose:t,emit:r}){const i=e,o="ElSwitch",l=ss(),{formItem:n}=yg(),a=pg(),c=mg("switch");hg({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"},ol((()=>{var e;return!!(null==(e=l.vnode.props)?void 0:e.value)})));const{inputId:d}=xg(i,{formItemContext:n}),p=ug(ol((()=>i.loading))),u=Yo(!1!==i.modelValue),h=Yo(),f=Yo(),g=ol((()=>[c.b(),c.m(a.value),c.is("disabled",p.value),c.is("checked",v.value)])),m=ol((()=>({width:Ch(i.width)})));Qs((()=>i.modelValue),(()=>{u.value=!0})),Qs((()=>i.value),(()=>{u.value=!1}));const b=ol((()=>u.value?i.modelValue:i.value)),v=ol((()=>b.value===i.activeValue));[i.activeValue,i.inactiveValue].includes(b.value)||(r("update:modelValue",i.inactiveValue),r("change",i.inactiveValue),r("input",i.inactiveValue)),Qs(v,(e=>{var t;h.value.checked=e,i.validateEvent&&(null==(t=null==n?void 0:n.validate)||t.call(n,"change").catch((e=>{})))}));const _=()=>{const e=v.value?i.inactiveValue:i.activeValue;r("update:modelValue",e),r("change",e),r("input",e),Fs((()=>{h.value.checked=v.value}))},y=()=>{if(p.value)return;const{beforeChange:e}=i;if(!e)return void _();const t=e();[uh(t),zu(t)].includes(!0)||xh(o,"beforeChange must return type `Promise` or `boolean`"),uh(t)?t.then((e=>{e&&_()})).catch((e=>{})):t&&_()},x=ol((()=>c.cssVarBlock(s(s(s({},i.activeColor?{"on-color":i.activeColor}:null),i.inactiveColor?{"off-color":i.inactiveColor}:null),i.borderColor?{"border-color":i.borderColor}:null))));return En((()=>{h.value.checked=v.value})),t({focus:()=>{var e,t;null==(t=null==(e=h.value)?void 0:e.focus)||t.call(e)},checked:v}),(e,t)=>(Ia(),za("div",{class:dl(Ko(g)),style:nl(Ko(x)),onClick:sd(y,["prevent"])},[Va("input",{id:Ko(d),ref_key:"input",ref:h,class:dl(Ko(c).e("input")),type:"checkbox",role:"switch","aria-checked":Ko(v),"aria-disabled":Ko(p),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:Ko(p),tabindex:e.tabindex,onChange:_,onKeydown:dd(y,["enter"])},null,42,by),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Ya("v-if",!0):(Ia(),za("span",{key:0,class:dl([Ko(c).e("label"),Ko(c).em("label","left"),Ko(c).is("active",!Ko(v))])},[e.inactiveIcon?(Ia(),Ra(Ko(Wg),{key:0},{default:$l((()=>[(Ia(),Ra(xa(e.inactiveIcon)))])),_:1})):Ya("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Ia(),za("span",{key:1,"aria-hidden":Ko(v)},pl(e.inactiveText),9,vy)):Ya("v-if",!0)],2)),Va("span",{ref_key:"core",ref:f,class:dl(Ko(c).e("core")),style:nl(Ko(m))},[e.inlinePrompt?(Ia(),za("div",{key:0,class:dl(Ko(c).e("inner"))},[e.activeIcon||e.inactiveIcon?(Ia(),za(Ea,{key:0},[e.activeIcon?(Ia(),Ra(Ko(Wg),{key:0,class:dl([Ko(c).is("icon"),Ko(v)?Ko(c).is("show"):Ko(c).is("hide")])},{default:$l((()=>[(Ia(),Ra(xa(e.activeIcon)))])),_:1},8,["class"])):Ya("v-if",!0),e.inactiveIcon?(Ia(),Ra(Ko(Wg),{key:1,class:dl([Ko(c).is("icon"),Ko(v)?Ko(c).is("hide"):Ko(c).is("show")])},{default:$l((()=>[(Ia(),Ra(xa(e.inactiveIcon)))])),_:1},8,["class"])):Ya("v-if",!0)],64)):e.activeText||e.inactiveIcon?(Ia(),za(Ea,{key:1},[e.activeText?(Ia(),za("span",{key:0,class:dl([Ko(c).is("text"),Ko(v)?Ko(c).is("show"):Ko(c).is("hide")]),"aria-hidden":!Ko(v)},pl(e.activeText.substring(0,3)),11,_y)):Ya("v-if",!0),e.inactiveText?(Ia(),za("span",{key:1,class:dl([Ko(c).is("text"),Ko(v)?Ko(c).is("hide"):Ko(c).is("show")]),"aria-hidden":Ko(v)},pl(e.inactiveText.substring(0,3)),11,yy)):Ya("v-if",!0)],64)):Ya("v-if",!0)],2)):Ya("v-if",!0),Va("div",{class:dl(Ko(c).e("action"))},[e.loading?(Ia(),Ra(Ko(Wg),{key:0,class:dl(Ko(c).is("loading"))},{default:$l((()=>[Wa(Ko(hf))])),_:1},8,["class"])):Ya("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Ya("v-if",!0):(Ia(),za("span",{key:1,class:dl([Ko(c).e("label"),Ko(c).em("label","right"),Ko(c).is("active",Ko(v))])},[e.activeIcon?(Ia(),Ra(Ko(Wg),{key:0},{default:$l((()=>[(Ia(),Ra(xa(e.activeIcon)))])),_:1})):Ya("v-if",!0),!e.activeIcon&&e.activeText?(Ia(),za("span",{key:1,"aria-hidden":!Ko(v)},pl(e.activeText),9,xy)):Ya("v-if",!0)],2))],14,my))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]])); /*! Element Plus v2.2.16 */var ky,Cy,Ey={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:"取消"}}},Ty={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 */ky="undefined"!=typeof window?window:se,Cy=function(e,t){var r=[],i=Object.getPrototypeOf,o=r.slice,l=function(e){return r.concat.apply([],e)},n=r.push,a=r.indexOf,s={},c=s.toString,d=s.hasOwnProperty,p=d.toString,u=p.call(Object),h={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,r){var i,o,l=(r=r||m).createElement("script");if(l.text=e,t)for(i in b)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&l.setAttribute(i,o);r.head.appendChild(l).parentNode.removeChild(l)}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,r=_(e);return!f(e)&&!g(e)&&("array"===r||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,r){return e.call(t,r,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,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp(N+"|>"),Y=new RegExp(F),q=new RegExp("^"+B+"$"),Z={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+F),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("^(?:"+R+")$","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")},X=/HTML$/i,Q=/^(?: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"),re=function(e,t){var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ie=/([\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},le=function(){u()},ne=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(D=O.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(Ee){L={apply:D.length?function(e,t){M.apply(e,O.call(t))}:function(e,t){for(var r=e.length,i=0;e[r++]=t[i++];);e.length=r-1}}}function ae(e,t,i,o){var l,a,c,d,p,f,b,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!o&&(u(t),t=t||h,g)){if(11!==x&&(p=$.exec(e)))if(l=p[1]){if(9===x){if(!(c=t.getElementById(l)))return i;if(c.id===l)return i.push(c),i}else if(v&&(c=v.getElementById(l))&&_(t,c)&&c.id===l)return i.push(c),i}else{if(p[2])return L.apply(i,t.getElementsByTagName(e)),i;if((l=p[3])&&r.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(l)),i}if(r.qsa&&!A[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===x&&(G.test(e)||H.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&r.scope||((d=t.getAttribute("id"))?d=d.replace(ie,oe):t.setAttribute("id",d=y)),a=(f=n(e)).length;a--;)f[a]=(d?"#"+d:":scope")+" "+_e(f[a]);b=f.join(",")}try{if(r.cssSupportsSelector&&!CSS.supports("selector(:is("+b+"))"))throw new Error;return L.apply(i,v.querySelectorAll(b)),i}catch(w){A(e,!0)}finally{d===y&&t.removeAttribute("id")}}}return s(e.replace(V,"$1"),t,i,o)}function se(){var e=[];return function t(r,o){return e.push(r+" ")>i.cacheLength&&delete t[e.shift()],t[r+" "]=o}}function ce(e){return e[y]=!0,e}function de(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Ee){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var r=e.split("|"),o=r.length;o--;)i.attrHandle[r[o]]=t}function ue(e,t){var r=t&&e,i=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(r)for(;r=r.nextSibling;)if(r===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 r=t.nodeName.toLowerCase();return("input"===r||"button"===r)&&t.type===e}}function ge(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&&ne(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(r,i){for(var o,l=e([],r.length,t),n=l.length;n--;)r[o=l[n]]&&(r[o]=!(i[o]=r[o]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in r=ae.support={},l=ae.isXML=function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!X.test(t||r&&r.nodeName||"HTML")},u=ae.setDocument=function(e){var t,o,n=e?e.ownerDocument||e:x;return n!=h&&9===n.nodeType&&n.documentElement?(f=(h=n).documentElement,g=!l(h),x!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",le,!1):o.attachEvent&&o.attachEvent("onunload",le)),r.scope=de((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),r.cssSupportsSelector=de((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),r.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),r.getElementsByTagName=de((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),r.getElementsByClassName=J.test(h.getElementsByClassName),r.getById=de((function(e){return f.appendChild(e).id=y,!h.getElementsByName||!h.getElementsByName(y).length})),r.getById?(i.filter.ID=function(e){var t=e.replace(te,re);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var r=t.getElementById(e);return r?[r]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,re);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var r,i,o,l=t.getElementById(e);if(l){if((r=l.getAttributeNode("id"))&&r.value===e)return[l];for(o=t.getElementsByName(e),i=0;l=o[i++];)if((r=l.getAttributeNode("id"))&&r.value===e)return[l]}return[]}}),i.find.TAG=r.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):r.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,i=[],o=0,l=t.getElementsByTagName(e);if("*"===e){for(;r=l[o++];)1===r.nodeType&&i.push(r);return i}return l},i.find.CLASS=r.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},b=[],m=[],(r.qsa=J.test(h.querySelectorAll))&&(de((function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),e.querySelectorAll("[id~="+y+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.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&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(r.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de((function(e){r.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",F)})),r.cssSupportsSelector||m.push(":has"),m=m.length&&new RegExp(m.join("|")),b=b.length&&new RegExp(b.join("|")),t=J.test(f.compareDocumentPosition),_=t||J.test(f.contains)?function(e,t){var r=9===e.nodeType&&e.documentElement||e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return p=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!r.sortDetached&&t.compareDocumentPosition(e)===i?e==h||e.ownerDocument==x&&_(x,e)?-1:t==h||t.ownerDocument==x&&_(x,t)?1:d?z(d,e)-z(d,t):0:4&i?-1:1)}:function(e,t){if(e===t)return p=!0,0;var r,i=0,o=e.parentNode,l=t.parentNode,n=[e],a=[t];if(!o||!l)return e==h?-1:t==h?1:o?-1:l?1:d?z(d,e)-z(d,t):0;if(o===l)return ue(e,t);for(r=e;r=r.parentNode;)n.unshift(r);for(r=t;r=r.parentNode;)a.unshift(r);for(;n[i]===a[i];)i++;return i?ue(n[i],a[i]):n[i]==x?-1:a[i]==x?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(u(e),r.matchesSelector&&g&&!A[t+" "]&&(!b||!b.test(t))&&(!m||!m.test(t)))try{var i=v.call(e,t);if(i||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(Ee){A(t,!0)}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=h&&u(e),_(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=h&&u(e);var o=i.attrHandle[t.toLowerCase()],l=o&&P.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==l?l:r.attributes||!g?e.getAttribute(t):(l=e.getAttributeNode(t))&&l.specified?l.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,l=0;if(p=!r.detectDuplicates,d=!r.sortStable&&e.slice(0),e.sort(S),p){for(;t=e[l++];)t===e[l]&&(o=i.push(l));for(;o--;)e.splice(i[o],1)}return d=null,e},o=ae.getText=function(e){var t,r="",i=0,l=e.nodeType;if(l){if(1===l||9===l||11===l){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=o(e)}else if(3===l||4===l)return e.nodeValue}else for(;t=e[i++];)r+=o(t);return r},(i=ae.selectors={cacheLength:50,createPseudo:ce,match:Z,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,re),e[3]=(e[3]||e[4]||e[5]||"").replace(te,re),"~="===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,r=!e[6]&&e[2];return Z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&Y.test(r)&&(t=n(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,re).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,r){return function(i){var o=ae.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(U," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,i,o){var l="nth"!==e.slice(0,3),n="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,r,s){var c,d,p,u,h,f,g=l!==n?"nextSibling":"previousSibling",m=t.parentNode,b=a&&t.nodeName.toLowerCase(),v=!s&&!a,_=!1;if(m){if(l){for(;g;){for(u=t;u=u[g];)if(a?u.nodeName.toLowerCase()===b:1===u.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[n?m.firstChild:m.lastChild],n&&v){for(_=(h=(c=(d=(p=(u=m)[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],u=h&&m.childNodes[h];u=++h&&u&&u[g]||(_=h=0)||f.pop();)if(1===u.nodeType&&++_&&u===t){d[e]=[w,h,_];break}}else if(v&&(_=h=(c=(d=(p=(u=t)[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===_)for(;(u=++h&&u&&u[g]||(_=h=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==b:1!==u.nodeType)||!++_||(v&&((d=(p=u[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[e]=[w,_]),u!==t)););return(_-=o)===i||_%i==0&&_/i>=0}}},PSEUDO:function(e,t){var r,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[y]?o(t):o.length>1?(r=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,r){for(var i,l=o(e,t),n=l.length;n--;)e[i=z(e,l[n])]=!(r[i]=l[n])})):function(e){return o(e,0,r)}):o}},pseudos:{not:ce((function(e){var t=[],r=[],i=a(e.replace(V,"$1"));return i[y]?ce((function(e,t,r,o){for(var l,n=i(e,null,o,[]),a=e.length;a--;)(l=n[a])&&(e[a]=!(t[a]=l))})):function(e,o,l){return t[0]=e,i(t,null,l,r),t[0]=null,!r.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,re),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,re).toLowerCase(),function(t){var r;do{if(r=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var r=e.location&&e.location.hash;return r&&r.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:ge(!1),disabled:ge(!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!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.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:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,r){return[r<0?r+t:r]})),even:me((function(e,t){for(var r=0;rt?t:r;--i>=0;)e.push(i);return e})),gt:me((function(e,t,r){for(var i=r<0?r+t:r;++i1?function(t,r,i){for(var o=e.length;o--;)if(!e[o](t,r,i))return!1;return!0}:e[0]}function we(e,t,r,i,o){for(var l,n=[],a=0,s=e.length,c=null!=t;a-1&&(l[c]=!(n[c]=p))}}else b=we(b===n?b.splice(f,b.length):b),o?o(null,n,b,s):L.apply(n,b)}))}function Ce(e){for(var t,r,o,l=e.length,n=i.relative[e[0].type],a=n||i.relative[" "],s=n?1:0,d=ye((function(e){return e===t}),a,!0),p=ye((function(e){return z(t,e)>-1}),a,!0),u=[function(e,r,i){var o=!n&&(i||r!==c)||((t=r).nodeType?d(e,r,i):p(e,r,i));return t=null,o}];s1&&xe(u),s>1&&_e(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(V,"$1"),r,s0,o=e.length>0,l=function(l,n,a,s,d){var p,f,m,b=0,v="0",_=l&&[],y=[],x=c,k=l||o&&i.find.TAG("*",d),C=w+=null==x?1:Math.random()||.1,E=k.length;for(d&&(c=n==h||n||d);v!==E&&null!=(p=k[v]);v++){if(o&&p){for(f=0,n||p.ownerDocument==h||(u(p),a=!g);m=e[f++];)if(m(p,n||h,a)){s.push(p);break}d&&(w=C)}r&&((p=!m&&p)&&b--,l&&_.push(p))}if(b+=v,r&&v!==b){for(f=0;m=t[f++];)m(_,y,n,a);if(l){if(b>0)for(;v--;)_[v]||y[v]||(y[v]=I.call(s));y=we(y)}L.apply(s,y),d&&!l&&y.length>0&&b+t.length>1&&ae.uniqueSort(s)}return d&&(w=C,c=x),_};return r?ce(l):l}(l,o))).selector=e}return a},s=ae.select=function(e,t,r,o){var l,s,c,d,p,u="function"==typeof e&&e,h=!o&&n(e=u.selector||e);if(r=r||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===t.nodeType&&g&&i.relative[s[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,re),t)||[])[0]))return r;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(l=Z.needsContext.test(e)?0:s.length;l--&&(c=s[l],!i.relative[d=c.type]);)if((p=i.find[d])&&(o=p(c.matches[0].replace(te,re),ee.test(s[0].type)&&be(t.parentNode)||t))){if(s.splice(l,1),!(e=o.length&&_e(s)))return L.apply(r,o),r;break}}return(u||a(e,h))(o,t,!g,r,!t||ee.test(e)&&be(t.parentNode)||t),r},r.sortStable=y.split("").sort(S).join("")===y,r.detectDuplicates=!!p,u(),r.sortDetached=de((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),de((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),r.attributes&&de((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||pe(R,(function(e,t,r){var i;if(!r)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.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,r){for(var i=[],o=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(r))break;i.push(e)}return i},E=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},T=x.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,r){return f(t)?x.grep(e,(function(e,i){return!!t.call(e,i,e)!==r})):t.nodeType?x.grep(e,(function(e){return e===t!==r})):"string"!=typeof t?x.grep(e,(function(e){return a.call(t,e)>-1!==r})):x.filter(t,e,r)}x.filter=function(e,t,r){var i=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,e)?[i]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,r,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t1?x.uniqueSort(r):r},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&&T.test(e)?x(e):e||[],!1).length}});var D,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,r){var i,o;if(!e)return this;if(r=r||D,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),S.test(i[1])&&x.isPlainObject(t))for(i in t)f(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=m.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==r.ready?r.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,D=x(m);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),r=t.length;return this.filter((function(){for(var e=0;e-1:1===r.nodeType&&x.find.matchesSelector(r,e))){l.push(r);break}return this.pushStack(l.length>1?x.uniqueSort(l):l)},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,r){return C(e,"parentNode",r)},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,r){return C(e,"nextSibling",r)},prevUntil:function(e,t,r){return C(e,"previousSibling",r)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(r,i){var o=x.map(this,t,r);return"Until"!==e.slice(-5)&&(i=r),i&&"string"==typeof i&&(o=x.filter(i,o)),this.length>1&&(L[e]||x.uniqueSort(o),M.test(e)&&o.reverse()),this.pushStack(o)}}));var z=/[^\x20\t\r\n\f]+/g;function R(e){return e}function N(e){throw e}function B(e,t,r,i){var o;try{e&&f(o=e.promise)?o.call(e).done(t).fail(r):e&&f(o=e.then)?o.call(e,t,r):t.apply(void 0,[e].slice(i))}catch(l){r.apply(void 0,[l])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(z)||[],(function(e,r){t[r]=!0})),t}(e):x.extend({},e);var t,r,i,o,l=[],n=[],a=-1,s=function(){for(o=o||e.once,i=t=!0;n.length;a=-1)for(r=n.shift();++a-1;)l.splice(r,1),r<=a&&a--})),this},has:function(e){return e?x.inArray(e,l)>-1:l.length>0},empty:function(){return l&&(l=[]),this},disable:function(){return o=n=[],l=r="",this},disabled:function(){return!l},lock:function(){return o=n=[],r||t||(l=r=""),this},locked:function(){return!!o},fireWith:function(e,r){return o||(r=[e,(r=r||[]).slice?r.slice():r],n.push(r),t||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(t){var r=[["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"]],i="pending",o={state:function(){return i},always:function(){return l.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(r,(function(r,i){var o=f(e[i[4]])&&e[i[4]];l[i[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[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,o){var l=0;function n(t,r,i,o){return function(){var a=this,s=arguments,c=function(){var e,c;if(!(t=l&&(i!==N&&(a=void 0,s=[e]),r.rejectWith(a,s))}};t?d():(x.Deferred.getStackHook&&(d.stackTrace=x.Deferred.getStackHook()),e.setTimeout(d))}}return x.Deferred((function(e){r[0][3].add(n(0,e,f(o)?o:R,e.notifyWith)),r[1][3].add(n(0,e,f(t)?t:R)),r[2][3].add(n(0,e,f(i)?i:N))})).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},l={};return x.each(r,(function(e,t){var n=t[2],a=t[5];o[t[1]]=n.add,a&&n.add((function(){i=a}),r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),n.add(t[3].fire),l[t[0]]=function(){return l[t[0]+"With"](this===l?void 0:this,arguments),this},l[t[0]+"With"]=n.fireWith})),o.promise(l),t&&t.call(l,l),l},when:function(e){var t=arguments.length,r=t,i=Array(r),l=o.call(arguments),n=x.Deferred(),a=function(e){return function(r){i[e]=this,l[e]=arguments.length>1?o.call(arguments):r,--t||n.resolveWith(i,l)}};if(t<=1&&(B(e,n.done(a(r)).resolve,n.reject,!t),"pending"===n.state()||f(l[r]&&l[r].then)))return n.then();for(;r--;)B(l[r],a(r),n.reject);return n.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,r){e.console&&e.console.warn&&t&&j.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,r)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var F=x.Deferred();function U(){m.removeEventListener("DOMContentLoaded",U),e.removeEventListener("load",U),x.ready()}x.fn.ready=function(e){return F.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||F.resolveWith(m,[x]))}}),x.ready.then=F.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(x.ready):(m.addEventListener("DOMContentLoaded",U),e.addEventListener("load",U));var V=function(e,t,r,i,o,l,n){var a=0,s=e.length,c=null==r;if("object"===_(r))for(a in o=!0,r)V(e,t,a,r[a],!0,l,n);else if(void 0!==i&&(o=!0,f(i)||(n=!0),c&&(n?(t.call(e,i),t=null):(c=t,t=function(e,t,r){return c.call(x(e),r)})),t))for(;a1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),x.extend({queue:function(e,t,r){var i;if(e)return t=(t||"fx")+"queue",i=X.get(e,t),r&&(!i||Array.isArray(r)?i=X.access(e,t,x.makeArray(r)):i.push(r)),i||[]},dequeue:function(e,t){t=t||"fx";var r=x.queue(e,t),i=r.length,o=r.shift(),l=x._queueHooks(e,t);"inprogress"===o&&(o=r.shift(),i--),o&&("fx"===t&&r.unshift("inprogress"),delete l.stop,o.call(e,(function(){x.dequeue(e,t)}),l)),!i&&l&&l.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return X.get(e,r)||X.access(e,r,{empty:x.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",r])}))})}}),x.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;pe=m.createDocumentFragment().appendChild(m.createElement("div")),(ue=m.createElement("input")).setAttribute("type","radio"),ue.setAttribute("checked","checked"),ue.setAttribute("name","t"),pe.appendChild(ue),h.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="",h.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="",h.option=!!pe.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?x.merge([e],r):r}function ve(e,t){for(var r=0,i=e.length;r",""]);var _e=/<|&#?\w+;/;function ye(e,t,r,i,o){for(var l,n,a,s,c,d,p=t.createDocumentFragment(),u=[],h=0,f=e.length;h-1)o&&o.push(l);else if(c=oe(l),n=be(p.appendChild(l),"script"),c&&ve(n),r)for(d=0;l=n[d++];)ge.test(l.type||"")&&r.push(l);return p}var xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Ce(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,r,i,o,l){var n,a;if("object"==typeof t){for(a in"string"!=typeof r&&(i=i||r,r=void 0),t)Ee(e,a,r,i,t[a],l);return e}if(null==i&&null==o?(o=r,i=r=void 0):null==o&&("string"==typeof r?(o=i,i=void 0):(o=i,i=r,r=void 0)),!1===o)o=ke;else if(!o)return e;return 1===l&&(n=o,(o=function(e){return x().off(e),n.apply(this,arguments)}).guid=n.guid||(n.guid=x.guid++)),e.each((function(){x.event.add(this,t,o,i,r)}))}function Te(e,t,r){r?(X.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var i,l,n=X.get(this,t);if(1&e.isTrigger&&this[t]){if(n.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=o.call(arguments),X.set(this,t,n),i=r(this,t),this[t](),n!==(l=X.get(this,t))||i?X.set(this,t,!1):l={},n!==l)return e.stopImmediatePropagation(),e.preventDefault(),l&&l.value}else n.length&&(X.set(this,t,{value:x.event.trigger(x.extend(n[0],x.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&x.event.add(e,t,we)}x.event={global:{},add:function(e,t,r,i,o){var l,n,a,s,c,d,p,u,h,f,g,m=X.get(e);if(q(e))for(r.handler&&(r=(l=r).handler,o=l.selector),o&&x.find.matchesSelector(ie,o),r.guid||(r.guid=x.guid++),(s=m.events)||(s=m.events=Object.create(null)),(n=m.handle)||(n=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)h=g=(a=xe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h&&(p=x.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=x.event.special[h]||{},d=x.extend({type:h,origType:g,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:f.join(".")},l),(u=s[h])||((u=s[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,f,n)||e.addEventListener&&e.addEventListener(h,n)),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?u.splice(u.delegateCount++,0,d):u.push(d),x.event.global[h]=!0)},remove:function(e,t,r,i,o){var l,n,a,s,c,d,p,u,h,f,g,m=X.hasData(e)&&X.get(e);if(m&&(s=m.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(h=g=(a=xe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(p=x.event.special[h]||{},u=s[h=(i?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),n=l=u.length;l--;)d=u[l],!o&&g!==d.origType||r&&r.guid!==d.guid||a&&!a.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(u.splice(l,1),d.selector&&u.delegateCount--,p.remove&&p.remove.call(e,d));n&&!u.length&&(p.teardown&&!1!==p.teardown.call(e,f,m.handle)||x.removeEvent(e,h,m.handle),delete s[h])}else for(h in s)x.event.remove(e,h+t[c],r,i,!0);x.isEmptyObject(s)&&X.remove(e,"handle events")}},dispatch:function(e){var t,r,i,o,l,n,a=new Array(arguments.length),s=x.event.fix(e),c=(X.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(l=[],n={},r=0;r-1:x.find(o,this,null,[c]).length),n[o]&&l.push(i);l.length&&a.push({elem:c,handlers:l})}return c=this,s\s*$/g;function De(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ie(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 r,i,o,l,n,a;if(1===t.nodeType){if(X.hasData(e)&&(a=X.get(e).events))for(o in X.remove(t,"handle events"),a)for(r=0,i=a[o].length;r1&&"string"==typeof m&&!h.checkClone&&Se.test(m))return e.each((function(o){var l=e.eq(o);b&&(t[0]=m.call(this,o,l.html())),Oe(l,t,r,i)}));if(u&&(n=(o=ye(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=n),n||i)){for(s=(a=x.map(be(o,"script"),Ie)).length;p0&&ve(n,!p&&be(e,"script")),d},cleanData:function(e){for(var t,r,i,o=x.event.special,l=0;void 0!==(r=e[l]);l++)if(q(r)){if(t=r[X.expando]){if(t.events)for(i in t.events)o[i]?x.event.remove(r,i):x.removeEvent(r,i,t.handle);r[X.expando]=void 0}r[Q.expando]&&(r[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(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||De(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(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(be(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]||{},r=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!me[(fe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;r=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-l-s-a-.5))||0),s}function $e(e,t,r){var i=Be(e),o=(!h.boxSizingReliable()||r)&&"border-box"===x.css(e,"boxSizing",!1,i),l=o,n=Ve(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(n)){if(!r)return n;n="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&A(e,"tr")||"auto"===n||!parseFloat(n)&&"inline"===x.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===x.css(e,"boxSizing",!1,i),(l=a in e)&&(n=e[a])),(n=parseFloat(n)||0)+Je(e,t,r||(o?"border":"content"),l,i,n)+"px"}function et(e,t,r,i,o){return new et.prototype.init(e,t,r,i,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Ve(e,"opacity");return""===r?"1":r}}}},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,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,l,n,a=Y(t),s=Ne.test(t),c=e.style;if(s||(t=qe(a)),n=x.cssHooks[t]||x.cssHooks[a],void 0===r)return n&&"get"in n&&void 0!==(o=n.get(e,!1,i))?o:c[t];"string"==(l=typeof r)&&(o=te.exec(r))&&o[1]&&(r=ae(e,t,o),l="number"),null!=r&&r==r&&("number"!==l||s||(r+=o&&o[3]||(x.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),n&&"set"in n&&void 0===(r=n.set(e,r,i))||(s?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,i){var o,l,n,a=Y(t);return Ne.test(t)||(t=qe(a)),(n=x.cssHooks[t]||x.cssHooks[a])&&"get"in n&&(o=n.get(e,!0,r)),void 0===o&&(o=Ve(e,t,i)),"normal"===o&&t in Qe&&(o=Qe[t]),""===r||r?(l=parseFloat(o),!0===r||isFinite(l)?l||0:o):o}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,r,i){if(r)return!Ze.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$e(e,t,i):je(e,Xe,(function(){return $e(e,t,i)}))},set:function(e,r,i){var o,l=Be(e),n=!h.scrollboxSize()&&"absolute"===l.position,a=(n||i)&&"border-box"===x.css(e,"boxSizing",!1,l),s=i?Je(e,t,i,a,l):0;return a&&n&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(l[t])-Je(e,t,"border",!1,l)-.5)),s&&(o=te.exec(r))&&"px"!==(o[3]||"px")&&(e.style[t]=r,r=x.css(e,t)),Ke(0,r,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(r){for(var i=0,o={},l="string"==typeof r?r.split(" "):[r];i<4;i++)o[e+re[i]+t]=l[i]||l[i-2]||l[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=Ke)})),x.fn.extend({css:function(e,t){return V(this,(function(e,t,r){var i,o,l={},n=0;if(Array.isArray(t)){for(i=Be(e),o=t.length;n1)}}),x.Tween=et,et.prototype={constructor:et,init:function(e,t,r,i,o,l){this.elem=e,this.prop=r,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=l||(x.cssNumber[r]?"":"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,r=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),r&&r.set?r.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,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function lt(){rt&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(lt):e.setTimeout(lt,x.fx.interval),x.fx.tick())}function nt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function at(e,t){var r,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(r=re[i])]=o["padding"+r]=e;return t&&(o.opacity=o.width=e),o}function st(e,t,r){for(var i,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),l=0,n=o.length;l1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,r){var i,o,l=e.nodeType;if(3!==l&&8!==l&&2!==l)return void 0===e.getAttribute?x.prop(e,t,r):(1===l&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?dt:void 0)),void 0!==r?null===r?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,r,t))?i:(e.setAttribute(t,r+""),r):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=x.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&A(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,i=0,o=t&&t.match(z);if(o&&1===e.nodeType)for(;r=o[i++];)e.removeAttribute(r)}}),dt={set:function(e,t,r){return!1===t?x.removeAttr(e,r):e.setAttribute(r,r),r}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var r=pt[t]||x.find.attr;pt[t]=function(e,t,i){var o,l,n=t.toLowerCase();return i||(l=pt[n],pt[n]=o,o=null!=r(e,t,i)?n:null,pt[n]=l),o}}));var ut=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ft(e){return(e.match(z)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}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,r){var i,o,l=e.nodeType;if(3!==l&&8!==l&&2!==l)return 1===l&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==r?o&&"set"in o&&void 0!==(i=o.set(e,r,t))?i:e[t]=r:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):ut.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,r,i,o,l,n;return f(e)?this.each((function(t){x(this).addClass(e.call(this,t,gt(this)))})):(t=mt(e)).length?this.each((function(){if(i=gt(this),r=1===this.nodeType&&" "+ft(i)+" "){for(l=0;l-1;)r=r.replace(" "+o+" "," ");n=ft(r),i!==n&&this.setAttribute("class",n)}})):this:this.attr("class","")},toggleClass:function(e,t){var r,i,o,l,n=typeof e,a="string"===n||Array.isArray(e);return f(e)?this.each((function(r){x(this).toggleClass(e.call(this,r,gt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(r=mt(e),this.each((function(){if(a)for(l=x(this),o=0;o-1)return!0;return!1}});var bt=/\r/g;x.fn.extend({val:function(e){var t,r,i,o=this[0];return arguments.length?(i=f(e),this.each((function(r){var o;1===this.nodeType&&(null==(o=i?e.call(this,r,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!==(r=t.get(o,"value"))?r:"string"==typeof(r=o.value)?r.replace(bt,""):null==r?"":r: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,r,i,o=e.options,l=e.selectedIndex,n="select-one"===e.type,a=n?null:[],s=n?l+1:o.length;for(i=l<0?s:n?l:0;i-1)&&(r=!0);return r||(e.selectedIndex=-1),l}}}}),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 vt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,r,i,o){var l,n,a,s,c,p,u,h,b=[i||m],v=d.call(t,"type")?t.type:t,_=d.call(t,"namespace")?t.namespace.split("."):[];if(n=h=a=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!vt.test(v+x.event.triggered)&&(v.indexOf(".")>-1&&(_=v.split("."),v=_.shift(),_.sort()),c=v.indexOf(":")<0&&"on"+v,(t=t[x.expando]?t:new x.Event(v,"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=i),r=null==r?[t]:x.makeArray(r,[t]),u=x.event.special[v]||{},o||!u.trigger||!1!==u.trigger.apply(i,r))){if(!o&&!u.noBubble&&!g(i)){for(s=u.delegateType||v,vt.test(s+v)||(n=n.parentNode);n;n=n.parentNode)b.push(n),a=n;a===(i.ownerDocument||m)&&b.push(a.defaultView||a.parentWindow||e)}for(l=0;(n=b[l++])&&!t.isPropagationStopped();)h=n,t.type=l>1?s:u.bindType||v,(p=(X.get(n,"events")||Object.create(null))[t.type]&&X.get(n,"handle"))&&p.apply(n,r),(p=c&&n[c])&&p.apply&&q(n)&&(t.result=p.apply(n,r),!1===t.result&&t.preventDefault());return t.type=v,o||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(b.pop(),r)||!q(i)||c&&f(i[v])&&!g(i)&&((a=i[c])&&(i[c]=null),x.event.triggered=v,t.isPropagationStopped()&&h.addEventListener(v,_t),i[v](),t.isPropagationStopped()&&h.removeEventListener(v,_t),x.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(e,t,r){var i=x.extend(new x.Event,r,{type:e,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var r=this[0];if(r)return x.event.trigger(e,t,r,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var r=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=X.access(i,t);o||i.addEventListener(e,r,!0),X.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=X.access(i,t)-1;o?X.access(i,t,o):(i.removeEventListener(e,r,!0),X.remove(i,t))}}}));var yt=e.location,xt={guid:Date.now()},wt=/\?/;x.parseXML=function(t){var r,i;if(!t||"string"!=typeof t)return null;try{r=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return i=r&&r.getElementsByTagName("parsererror")[0],r&&!i||x.error("Invalid XML: "+(i?x.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t)),r};var kt=/\[\]$/,Ct=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function At(e,t,r,i){var o;if(Array.isArray(t))x.each(t,(function(t,o){r||kt.test(e)?i(e,o):At(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,r,i)}));else if(r||"object"!==_(t))i(e,t);else for(o in t)At(e+"["+o+"]",t[o],r,i)}x.param=function(e,t){var r,i=[],o=function(e,t){var r=f(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){o(this.name,this.value)}));else for(r in e)At(r,e[r],t,o);return i.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")&&Tt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var r=x(this).val();return null==r?null:Array.isArray(r)?x.map(r,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:r.replace(Ct,"\r\n")}})).get()}});var St=/%20/g,Pt=/#.*$/,Dt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ot={},zt={},Rt="*/".concat("*"),Nt=m.createElement("a");function Bt(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var i,o=0,l=t.toLowerCase().match(z)||[];if(f(r))for(;i=l[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(r)):(e[i]=e[i]||[]).push(r)}}function jt(e,t,r,i){var o={},l=e===zt;function n(a){var s;return o[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,r,i);return"string"!=typeof c||l||o[c]?l?!(s=c):void 0:(t.dataTypes.unshift(c),n(c),!1)})),s}return n(t.dataTypes[0])||!o["*"]&&n("*")}function Ft(e,t){var r,i,o=x.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((o[r]?e:i||(i={}))[r]=t[r]);return i&&x.extend(!0,e,i),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:{"*":Rt,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?Ft(Ft(e,x.ajaxSettings),t):Ft(x.ajaxSettings,e)},ajaxPrefilter:Bt(Ot),ajaxTransport:Bt(zt),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0),r=r||{};var i,o,l,n,a,s,c,d,p,u,h=x.ajaxSetup({},r),f=h.context||h,g=h.context&&(f.nodeType||f.jquery)?x(f):x.event,b=x.Deferred(),v=x.Callbacks("once memory"),_=h.statusCode||{},y={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!n)for(n={};t=It.exec(l);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?l: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 i&&i.abort(t),E(0,t),this}};if(b.promise(C),h.url=((t||h.url||yt.href)+"").replace(Lt,yt.protocol+"//"),h.type=r.method||r.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(z)||[""],null==h.crossDomain){s=m.createElement("a");try{s.href=h.url,s.href=s.href,h.crossDomain=Nt.protocol+"//"+Nt.host!=s.protocol+"//"+s.host}catch(T){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),jt(Ot,h,r,C),c)return C;for(p 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(St,"+")):(u=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(Dt,"$1"),u=(wt.test(o)?"&":"?")+"_="+xt.guid+++u),h.url=o+u),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||r.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]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||c))return C.abort();if(k="abort",v.add(h.complete),C.done(h.success),C.fail(h.error),i=jt(zt,h,r,C)){if(C.readyState=1,d&&g.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(a=e.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,i.send(y,E)}catch(T){if(c)throw T;E(-1,T)}}else E(-1,"No Transport");function E(t,r,n,s){var p,u,m,y,w,k=r;c||(c=!0,a&&e.clearTimeout(a),i=void 0,l=s||"",C.readyState=t>0?4:0,p=t>=200&&t<300||304===t,n&&(y=function(e,t,r){for(var i,o,l,n,a=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){s.unshift(o);break}if(s[0]in r)l=s[0];else{for(o in r){if(!s[0]||e.converters[o+" "+s[0]]){l=o;break}n||(n=o)}l=l||n}if(l)return l!==s[0]&&s.unshift(l),r[l]}(h,C,n)),!p&&x.inArray("script",h.dataTypes)>-1&&x.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(e,t,r,i){var o,l,n,a,s,c={},d=e.dataTypes.slice();if(d[1])for(n in e.converters)c[n.toLowerCase()]=e.converters[n];for(l=d.shift();l;)if(e.responseFields[l]&&(r[e.responseFields[l]]=t),!s&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=l,l=d.shift())if("*"===l)l=s;else if("*"!==s&&s!==l){if(!(n=c[s+" "+l]||c["* "+l]))for(o in c)if((a=o.split(" "))[1]===l&&(n=c[s+" "+a[0]]||c["* "+a[0]])){!0===n?n=c[o]:!0!==c[o]&&(l=a[0],d.unshift(a[1]));break}if(!0!==n)if(n&&e.throws)t=n(t);else try{t=n(t)}catch(T){return{state:"parsererror",error:n?T:"No conversion from "+s+" to "+l}}}return{state:"success",data:t}}(h,y,C,p),p?(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,u=y.data,p=!(m=y.error))):(m=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(r||k)+"",p?b.resolveWith(f,[u,k,C]):b.rejectWith(f,[C,k,m]),C.statusCode(_),_=void 0,d&&g.trigger(p?"ajaxSuccess":"ajaxError",[C,h,p?u:m]),v.fireWith(f,[C,k]),d&&(g.trigger("ajaxComplete",[C,h]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,r){return x.get(e,t,r,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,r,i,o){return f(r)&&(o=o||i,i=r,r=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:r,success:i},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,r){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,r)}})},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),r=t.contents();r.length?r.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(r){x(this).wrapAll(t?e.call(this,r):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 Ut={0:200,1223:204},Vt=x.ajaxSettings.xhr();h.cors=!!Vt&&"withCredentials"in Vt,h.ajax=Vt=!!Vt,x.ajaxTransport((function(t){var r,i;if(h.cors||Vt&&!t.crossDomain)return{send:function(o,l){var n,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(n in t.xhrFields)a[n]=t.xhrFields[n];for(n in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(n,o[n]);r=function(e){return function(){r&&(r=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?l(0,"error"):l(a.status,a.statusText):l(Ut[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=r(),i=a.onerror=a.ontimeout=r("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){r&&i()}))},r=r("abort");try{a.send(t.hasContent&&t.data||null)}catch(s){if(r)throw s}},abort:function(){r&&r()}}})),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,r;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=x("