var e=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,r,o)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,c=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&s(e,r,t[r]);if(l)for(var r of l(t))a.call(t,r)&&s(e,r,t[r]);return e},d=(e,t)=>r(e,o(t));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 o=0;o<36;o++)r[o]||(t=0|16*Math.random(),r[o]=p[19==o?3&t|8:t]);return e+"-"+r.join("")}static merge(e,...t){let r,o,i,l;for(o=0,i=t.length;o0&&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,o=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,o=t.canvas.clientHeight,i=t.camera.getPickRay(new Cesium.Cartesian2(r/2|0,o-1)),l=t.camera.getPickRay(new Cesium.Cartesian2(1+r/2|0,o-1)),n=t.globe,a=n.pick(i,t),s=n.pick(l,t);if(a&&s){let t=new Cesium.EllipsoidGeodesic,r=n.ellipsoid.cartesianToCartographic(a),o=n.ellipsoid.cartesianToCartographic(s);t.setEndPoints(r,o);let i=t.surfaceDistance,l=e.closest(i/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],o=Math.abs(r-e);for(let i=1;i{new Cesium.sampleTerrainMostDetailed(o,r).then((function(t){e(t)}))}))}var v=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",setSessionid:g,guid:function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},getGuid:m,getHeigthByLngLat:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t.longitude)&&!Cesium.defined(t.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");t.level=Cesium.defaultValue(t.level,11);let r=Cesium.Cartographic.fromDegrees(t.longitude,t.latitude),o=e.terrainProvider;return new Promise(((e,i)=>{new Cesium.sampleTerrain(o,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=[],o=t.points;for(let l=0;l{new Cesium.sampleTerrain(i,t.level,r).then((function(t){t&&e(t)}))}))},getHeigthByPointsMostDetailed:b,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]),o=e.terrainProvider;return new Promise(((e,t)=>{new Cesium.sampleTerrainMostDetailed(o,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 o=document.createElement("DIV");o.className="twipsy-inner",t.appendChild(o),this._div=t,this._title=o,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 _{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 o(e,t,r){var o=new Cesium.JulianDate;Cesium.JulianDate.addHours(e,8,o);var i,l=Cesium.JulianDate.toGregorianDate(o);if(r)i="";else if(i=new Date(l.year,l.month-1,l.day),i=l.year+"-"+i.toLocaleString("zh-cn",{month:"short"}).split("月").join("-")+l.day+" ",t||l.hour+l.minute===0)return i;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,i+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=o,r.animation.viewModel.timeFormatter=function(e,t){return o(e,t,!0)},r.timeline.makeLabel=o,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(_.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 o=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 i=Cesium.Rectangle.fromDegrees(e.west,e.south,e.east,e.north),l=this._entities.add({id:"fullMapRectangle",name:"fullMapRectangle",rectangle:{coordinates:i,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&&(o._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)),o=Cesium.Ellipsoid.WGS84.cartesianToCartographic(r);let i=180*o.longitude/Math.PI,l=180*o.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(i,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(i,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 o=e;o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0);var i=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:o})),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:o,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(i)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)};r.clock.onTick.addEventListener(d)}});const y=52.35987755982988,x=3.141592653589793,w=.006693421622965943;class k{static BD09ToGCJ02(e,t){let r=+e-.0065,o=+t-.006,i=Math.sqrt(r*r+o*o)-2e-5*Math.sin(o*y),l=Math.atan2(o,r)-3e-6*Math.cos(r*y);return[i*Math.cos(l),i*Math.sin(l)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*y),o=Math.atan2(t,e)+3e-6*Math.cos(e*y);return[r*Math.cos(o)+.0065,r*Math.sin(o)+.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),o=this.transformLat(e-105,t-35);const i=t/180*x;let l=Math.sin(i);l=1-w*l*l;const n=Math.sqrt(l);return r=180*r/(6378245/n*Math.cos(i)*x),o=180*o/(6378245*(1-w)/(l*n)*x),[r,o]}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*x)+20*Math.sin(2*e*x))/3,r+=2*(20*Math.sin(e*x)+40*Math.sin(e/3*x))/3,r+=2*(150*Math.sin(e/12*x)+300*Math.sin(e/30*x))/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*x)+20*Math.sin(2*e*x))/3,r+=2*(20*Math.sin(t*x)+40*Math.sin(t/3*x))/3,r+=2*(160*Math.sin(t/12*x)+320*Math.sin(t*x/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),o=null,i=!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)&&(i=!0),i&&(e.scene.pick(t),o=e.scene.pickPosition(t),o)){let e=Cesium.Cartographic.fromCartesian(o);e.height<0&&(e.height=0);let t=Cesium.Math.toDegrees(e.longitude),r=Cesium.Math.toDegrees(e.latitude),i=e.height;o=this.transformWGS84ToCartesian({lng:t,lat:r,alt:i})}}let n=e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider;if(!i&&!n){let r=e.scene.camera.getPickRay(t);if(!r)return null;o=e.scene.globe.pick(r,e.scene),l=!0}if(i||l||!n||(o=e.scene.camera.pickEllipsoid(t,e.scene.globe.ellipsoid)),o){let e=this.transformCartesianToWGS84(o);return e.alt<0&&(o=this.transformWGS84ToCartesian(e,.1)),o}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 o=0;o{this._transformProjection(o)})),this._addImageryProvider(e.id,o),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 o=new Cesium.TileMapServiceImageryProvider(r);this._addImageryProvider(e.id,o),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 o=new Cesium.WebMapTileServiceImageryProvider(r);this._addImageryProvider(e.id,o),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 o=new Cesium.WebMapServiceImageryProvider(r);this._addImageryProvider(e.id,o),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 o=new Cesium.ArcGisMapServerImageryProvider(r);this._addImageryProvider(e.id,o),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 o={url:e.url,skipLevelOfDetail:!0};new Cesium.Cesium3DTileset(o).readyPromise.then((o=>{console.log("加载完成"),window[e.id]=o,r._addScenePrimitives(o),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 o={url:e.url,skipLevelOfDetail:!0};new Cesium.Cesium3DTileset(o).readyPromise.then((o=>{console.log("加载完成"),window[e.id]=o,r._addScenePrimitives(o),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,o=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 i=Cesium.Math.toRadians(e.heading),l=e.pitch,n=e.roll,a=new Cesium.HeadingPitchRoll(i,l,n),s=o.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,o=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 i=Cesium.Transforms.eastNorthUpToFixedFrame(r);let l=o.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:i,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((o=>{r._viewer.dataSources.add(o),o.name=e.id;let i=o.entities.values,l=new C(e);for(var n=0;n{e.billboard={image:o.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:o.scale,pixelOffset:new Cesium.Cartesian2(0,o.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=l.text;e.properties[l.textField]&&(t=e.properties[l.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),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:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,l.pixelOffset),scale:l.scale},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),e.label.scaleByDistance=new Cesium.NearFarScalar(l.scaleByDistance.near,l.scaleByDistance.nearValue,l.scaleByDistance.far,l.scaleByDistance.farValue))})),t&&t(e.id)}))}}),Object.assign(E.prototype,{set3DTileStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].style=new Cesium.Cesium3DTileStyle({color:"color('rgba(255,255,255,"+e.alpha+")')"})},set3DTileBMStyle:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");e.color=e.color?"vec4("+e.color[0]+"/255, "+e.color[1]+"/255, "+e.color[2]+"/255, "+e.color[3]+")":"vec4(0.0, 0.58, 0.86, 1.0)",window[e.serviceId].readyPromise.then((t=>{t.boundingSphere.radius,t.boundingSphere.radius>1e4&&t.boundingSphere.radius,t.style=new Cesium.Cesium3DTileStyle({color:e.color}),t.tileVisible.addEventListener((e=>{let t=e.content,r=t.featuresLength;for(let o=0;o{const o=r._sourcePrograms[t],i=r._rendererResources.sourceShaders[o.fragmentShader];let l="";-1!==i.indexOf(" v_positionEC;")?l="v_positionEC":-1!==i.indexOf(" v_pos;")&&(l="v_pos");const n=`vec4(${e.color.toString()})`;r._rendererResources.sourceShaders[o.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),o=Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,e.height),i=Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,0),l=Cesium.Cartesian3.subtract(o,i,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(E.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,o)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let i=t.dataSources.getByName(e.serviceId);i.forEach(((e,o)=>{t.dataSources.remove(e),o===i.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 T{constructor({viewer:e,url:t,opacity:r=.75,show:o=!0}={}){this._viewer=e,this._url=t,this._opacity=r,this._renderName=this._guid();let i=new Cesium.CustomDataSource(this._renderName);this._viewer.dataSources.add(i),this._entities=i.entities,this._renderEntities=new Map,this._isUpdateTile=o,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),o=new Cesium.Entity({name:this._renderName,polyline:{positions:r,material:t,width:10,clampToGround:!0}});this._entities.add(o)}_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 i of e){let e=this._projectionTile(i);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 o=!1;for(let i of t)if(Cesium.Rectangle.intersection(i.rectangle,r.rectangle)){i.childTiles.push(e),o=!0;break}o||t.push({key:e,x:r.x,y:r.y,level:r.level,rectangle:r.rectangle,childTiles:[]})}}}let r=t.length,o=[];for(;r--;){let e=t[r];if(e.childTiles.length>=1){let i=this._createFourTiles(e);for(let e of i)o.push(e);t.splice(r,1)}}for(let i of o)t.push(i);t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),this._renderTilesToViewer(t)}_createTileByRectangleAndLevel(e,t){let r=Cesium.Rectangle.center(e),o=parseInt(t)+1,i=this._provider.tilingScheme.positionToTileXY(r,o);if(void 0!==i)return{key:this._createKey(i.x,i.y,o),x:i.x,y:i.y,level:o,rectangle:e,childTiles:[]}}_createFourTiles(e){let t=[],r=[],o=e.rectangle;t.push(Cesium.Rectangle.subsection(o,0,0,.5,.5)),t.push(Cesium.Rectangle.subsection(o,.5,0,1,.5)),t.push(Cesium.Rectangle.subsection(o,0,.5,.5,1)),t.push(Cesium.Rectangle.subsection(o,.5,.5,1,1));for(let i of t)if(Cesium.Rectangle.intersection(i,this._rectangle)){let t=this._createTileByRectangleAndLevel(i,e.level);void 0!==t&&r.push(t)}return r}_renderTilesToViewer(e){let t=this,r=[];for(let[o,i]of this._renderEntities){void 0===e.find((e=>e.key===o))&&r.push(o)}for(let o of r)this._renderEntities.delete(o),this._entities.removeById(o);for(let o of e)if(!this._renderEntities.has(o.key)){let e=this._renderSimpleTileToViewer(o);this._renderEntities.set(o.key,e);let r=new Blob([`(${S.toString()})()`]),i=new Worker(URL.createObjectURL(r));i.postMessage({key:o.key,url:this._url,x:o.x,y:o.y,level:o.level}),i.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 o=t._createCanvas(e.data,e.data.image,t._isDebug);r.rectangle.material=o}i.terminate()}}this._isUpdateTile=!0}_renderSimpleTileToViewer(e){const t=this._createCanvas(e,void 0,this._isDebug);let r=this._calculateRectangleOutlineCoordinates(e.rectangle),o=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(o)}_createCanvas(e,t,r){let o=this._provider;const i=document.createElement("canvas");i.width=o.tileWidth,i.height=o.tileHeight;const l=i.getContext("2d");return void 0!==t&&(l.globalAlpha=this._opacity,l.drawImage(event.data.image,0,0,i.width,i.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)),i}_projectionTile(e){let t=e._rectangle,r=parseInt(e.level),o=this._provider.tilingScheme,i=[];if(void 0===Cesium.Rectangle.intersection(t,this._rectangle))return i;let l=o.positionToTileXY(Cesium.Rectangle.northwest(t),r),n=o.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=o.tileXYToRectangle(a,e,r);Cesium.Rectangle.intersection(t,this._rectangle)&&i.push({x:a,y:e,level:r,rectangle:t})}else if(void 0!==l){let e=o.tileXYToRectangle(l.x,l.y,r);Cesium.Rectangle.intersection(e,this._rectangle)&&i.push({x:l.x,y:l.y,level:r,rectangle:e})}else if(void 0!==n){let e=o.tileXYToRectangle(n.x,n.y,r);Cesium.Rectangle.intersection(e,this._rectangle)&&i.push({x:n.x,y:n.y,level:r,rectangle:e})}return i}_calculateRectangleOutlineCoordinates(e){let t=Cesium.Rectangle.southeast(e),r=Cesium.Cartographic.toCartesian(t),o=Cesium.Rectangle.southwest(e),i=Cesium.Cartographic.toCartesian(o),l=Cesium.Rectangle.northeast(e),n=Cesium.Cartographic.toCartesian(l),a=Cesium.Rectangle.northwest(e);return[i,r,n,Cesium.Cartographic.toCartesian(a),i]}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var r=[],o=0;o>>",r+" Not found")},o.send()}}Object.assign(T.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 o=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),0);this._viewer.camera.flyToBoundingSphere(o,{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(((o,i)=>{let l=this;if(r=r||{},void 0===e||void 0===e.length)return void i("输入的坐标集合异常!");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?i("线对象定位,点数至少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?i("面对象定位,点数至少3个"):l._locationEntity=l._viewer.entities.add({polygon:{hierarchy:{positions:n},material:new Cesium.Color(255,0,0,.5),outline:!0}});break;default:i("坐标异常!")}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&&o(l._locationEntity)}))}))},flyToEntity:function(e,t){return new Promise(((r,o)=>{let i=this;t=t||{},i._locationEntity&&i._viewer.entities.remove(i._locationEntity),i._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),i._viewer.flyTo(i._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(i._locationEntity)}))}))},zoomToTilesets(e,t){return new Promise(((r,o)=>{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 i=e.boundingSphere;this._viewer.camera.flyToBoundingSphere(i,{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,o)=>{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 P=function(e,t,r){let o,i,l,n,a=document.getElementById("toolTip");if(e&&"object"==typeof e&&(o=e),o&&o.origin?("center"===o.origin&&(i=15,l=-12),"top"===o.origin&&(i=15,l=-44),"bottom"===o.origin&&(i=15,l=20)):(i=15,l=20),o&&o.color?("white"===o.color&&(n="background: rgba(255, 255, 255, 0.8);color: black;"),"black"===o.color&&(n="background: rgba(0, 0, 0, 0.65);color: white;"),"yellow"===o.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+i+"px",a.style.top=t.y+l+"px",a.style.display="block"):a.style.display="none",{tooltip:a,style:o,showAt:function(e,t){this.tooltip.innerHTML=t,this.style&&this.style.origin?("center"===this.style.origin&&(i=15,l=-this.tooltip.offsetHeight/2),"top"===this.style.origin&&(i=15,l=-this.tooltip.offsetHeight-20),"bottom"===this.style.origin&&(i=15,l=20)):(i=15,l=-this.tooltip.offsetHeight/2),this.tooltip.style.left=e.x+i+"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 I{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]}}_distance(e,t){let r=Cesium.Cartographic.fromCartesian(e),o=Cesium.Cartographic.fromCartesian(t),i=new Cesium.EllipsoidGeodesic;i.setEndPoints(r,o);let l=i.surfaceDistance;return l=Math.sqrt(Math.pow(l,2)+Math.pow(o.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)?I.RuntimeEnvironment.App:I.RuntimeEnvironment.Web}_isRuntimeApp(){return this._checkAppOrWeb()===I.RuntimeEnvironment.App}_isRuntimeWeb(){return this._checkAppOrWeb()===I.RuntimeEnvironment.Web}_createOperationMainDom(){let e=document.createElement("div");e.id="drawButtonDiv",e.style.width="80px",e.style.backgroundColor="rgba(5, 45, 155, 0.7)",e.style.borderRadius="5px",e.style.display="flex",e.style.flexDirection="column",e.style.padding="8px",e.style.justifyContent="center",e.style.position="absolute",e.style.bottom="150px",e.style.right="10px";let t=document.createElement("button");t.id="btnDrawComplete",t.style.height="30px",t.style.backgroundColor="rgba(88, 185, 45, 1.0)",t.style.color="rgb(255, 255, 255)",t.style.border="0px solid red",t.style.borderRadius="5px",t.innerHTML="完成",t.style.fontSize="13px",t.style.cursor="pointer",e.appendChild(t),document.body.appendChild(e)}_showTooltipMessage(e){let t=document.getElementById("messageMainDom");null!=t&&document.body.removeChild(t),t=document.createElement("div"),t.style.width="30%",t.style.backgroundColor="rgba(237, 248, 230, 1.0)",t.style.height="45px",t.style.border="solid 2px rgb(219, 241, 208)",t.style.borderRadius="8px",t.style.display="flex",t.style.alignItems="center",t.style.paddingLeft="10px",t.style.color="rgb(91, 188, 48)",t.style.fontSize="14px",t.style.fontWeight="600",t.style.position="absolute",t.style.left="35%",t.style.transition="transform 1s",t.style.transform="translateY(-90px)",t.style.top="0px",t.style.zIndex=1e3,document.body.appendChild(t);let 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 M(e){return Math.min.apply(null,e)}function L(e,t){for(var r=[],o=0;or!=e[i][1]>r&&t<(e[i][0]-e[o][0])*(r-e[o][1])/(e[i][1]-e[o][1])+e[o][0]&&(l=!l);return l}function z(e,t){for(var r=0,o=L(0,t*t);r=a&&(a=Math.abs(e[o*t+i]),b=o,m=i);if(++g[m],b!==m){for(l=0;l=0;l--)if(f[l]!==h[l])for(i=0;ir?t+(o-t)/r:t+(o-t)/r*(e/r*1.5-.5*Math.pow(e/r,3))}function G(e,t,r){var o,i=Array(r.n);for(o=0;o{let o=k._transfromFromScreenPoint(e._viewer,r.position);if(t="左键创建视角终点,右键结束通视分析",this._isRuntimeApp()&&(t="再次单击创建视角终点",e._showTooltipMessage(t)),!Cesium.defined(o.sLocation))return;let i=o.sLocation;if(e._resultObject.viewPoint){e._resultObject.targetPoint=i;let t=e._viewer.entities.add({position:i,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),o=new Cesium.Ray(e._resultObject.viewPoint,r),l=e._viewer.scene.pickFromRay(o,e._resultObject.objectExclude);if(l){let t=e._distance(e._resultObject.viewPoint,e._resultObject.targetPoint),r=e._distance(e._resultObject.viewPoint,l.position),o=e._distance(l.position,e._resultObject.targetPoint);if(console.log(t,r,o),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:i,visual:!1,distance:[t,r,o]})}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:i,visual:!0,distance:[t,r,o]})}}}else{e._resultObject.viewPoint=i;let t=e._viewer.entities.add({position:i,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"观察位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t)}2===e._resultObject.objectExclude.length&&this._isRuntimeApp()&&(e._createOperationMainDom(),document.getElementById("btnDrawComplete").onclick=()=>{P(t,r.endPosition,!1),e.handler.destroy();let o=document.getElementById("drawButtonDiv");o&&document.body.removeChild(o)})}),Cesium.ScreenSpaceEventType.LEFT_CLICK),e.handler.setInputAction((function(r){e._isRuntimeApp()||P(t,r.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.handler.setInputAction((r=>{P(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)}}),I.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});var Y={train:function(e,t,r,o,i,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:W,K:[],M:[]};switch(o){case"gaussian":d.model=V;break;case"exponential":d.model=W;break;case"spherical":d.model=H;break;default:d.model=W}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=L(0,h),m=L(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=L(1,2*p),v=Array(p),_=d.A;for(n=0;nc[1]&&(c[1]=e[o][i][0]),e[o][i][1]d[1]&&(d[1]=e[o][i][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(o=0;o<=g;o++)b[o]=Array(m+1);for(o=0;oh[1]&&(h[1]=e[o][i][0]),e[o][i][1]f[1]&&(f[1]=e[o][i][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),i=p[0];i<=p[1];i++)for(l=u[0];l<=u[1];l++)a=c[0]+i*r,s=d[0]+l*r,O(e[o],a,s)&&(b[i][l]=G(a,s,t))}return{xlim:c,ylim:d,width:r,data:b,zlim:[M(t.t),D(t.t)]}}},plot:function(e,t,r,o,i){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],o[1]-o[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/(o[1]-o[0]));for(d=0;d1&&(f=1),l.fillStyle=i[Math.floor((i.length-1)*f)],l.fillRect(Math.round(u-b/2),Math.round(h-v/2),b,v))}},max:D,min:M,pip:O,rep:L,matrixDiag:z,matrixTranspose:R,matrixAdd:N,matrixMultiply:B,matrixChol:j,matrixChol2inv:U,matrixSolve:F,variogramGaussian:V,variogramExponential:W,variogramSpherical:H},q={centimeters:637100880,centimetres:637100880,degrees:6371008.8/111325,feet:20902260.511392,inches:6371008.8*39.37,kilometers:6371.0088,kilometres:6371.0088,meters:6371008.8,metres:6371008.8,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:6371008.8/1852,radians:1,yards:6371008.8*1.0936};function Z(e,t,r){void 0===r&&(r={});var o={type:"Feature"};return(0===r.id||r.id)&&(o.id=r.id),r.bbox&&(o.bbox=r.bbox),o.properties=t||{},o.geometry=e,o}function Q(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(!te(e[0])||!te(e[1]))throw new Error("coordinates must contain numbers");return Z({type:"Point",coordinates:e},t,r)}function X(e,t,r){void 0===r&&(r={});for(var o=0,i=e;oe[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ae(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function se(e){return"Feature"===e.type?e.geometry:e}le.default=le;var ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pe(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})})),t}var ue={exports:{}};function he(e,t,r,o,i){fe(e,t,r||0,o||e.length-1,i||me)}function fe(e,t,r,o,i){for(;o>r;){if(o-r>600){var l=o-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);fe(e,t,Math.max(r,Math.floor(t-n*s/l+c)),Math.min(o,Math.floor(t+(l-n)*s/l+c)),i)}var d=e[t],p=r,u=o;for(ge(e,r,t),i(e[o],d)>0&&ge(e,r,o);p0;)u--}0===i(e[r],d)?ge(e,r,u):ge(e,++u,o),u<=t&&(r=u+1),t<=u&&(o=u-1)}}function ge(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function me(e,t){return et?1:0}function be(e,t,r){if(!r)return t.indexOf(e);for(let o=0;o=e.minX&&t.maxY>=e.minY}function Ae(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Pe(e,t,r,o,i){const l=[t,r];for(;l.length;){if((r=l.pop())-(t=l.pop())<=o)continue;const n=t+Math.ceil((r-t)/o/2)*o;he(e,n,t,r,i),l.push(t,n,n,r)}}var Ie=pe(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(!Se(e,t))return r;const o=this.toBBox,i=[];for(;t;){for(let l=0;l=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(o,i,t)}_split(e,t){const r=e[t],o=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,o);const l=this._chooseSplitIndex(r,i,o),n=Ae(r.children.splice(l,r.children.length-l));n.height=r.height,n.leaf=r.leaf,ve(r,this.toBBox),ve(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,ve(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let o,i=1/0,l=1/0;for(let n=t;n<=r-t;n++){const t=_e(e,0,n,this.toBBox),a=_e(e,n,r,this.toBBox),s=Ee(t,a),c=ke(t)+ke(a);s=t;s--){const t=e.children[s];ye(n,e.leaf?i(t):t),a+=Ce(n)}return a}_adjustParentBBoxes(e,t,r){for(let o=r;o>=0;o--)ye(t[o],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():ve(e[r],this.toBBox)}}}));function De(e,t){return et?1:0}var Me=pe(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,o=t[e];for(;e>0;){const i=e-1>>1,l=t[i];if(r(o,l)>=0)break;t[e]=l,e=i}t[e]=o}_down(e){const{data:t,compare:r}=this,o=this.length>>1,i=t[e];for(;e=0)break;t[e]=l,e=o}t[e]=i}}})),Le={exports:{}},Oe=function(e,t,r,o){var i=e[0],l=e[1],n=!1;void 0===r&&(r=0),void 0===o&&(o=t.length);for(var a=(o-r)/2,s=0,c=a-1;sl!=h>l&&i<(u-d)*(l-p)/(h-p)+d&&(n=!n)}return n},ze=function(e,t,r,o){var i=e[0],l=e[1],n=!1;void 0===r&&(r=0),void 0===o&&(o=t.length);for(var a=o-r,s=0,c=a-1;sl!=h>l&&i<(u-d)*(l-p)/(h-p)+d&&(n=!n)}return n};Le.exports=function(e,t,r,o){return t.length>0&&Array.isArray(t[0])?ze(e,t,r,o):Oe(e,t,r,o)},Le.exports.nested=ze,Le.exports.flat=Oe;var Re={exports:{}};!function(e){const t=134217729,r=33306690738754706e-32;function o(e,t,r,o,i){let l,n,a,s,c=t[0],d=o[0],p=0,u=0;d>c==d>-c?(l=c,c=t[++p]):(l=d,d=o[++u]);let h=0;if(pc==d>-c?(a=l-((n=c+l)-c),c=t[++p]):(a=l-((n=d+l)-d),d=o[++u]),l=n,0!==a&&(i[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=o[++u]),l=n,0!==a&&(i[h++]=a);for(;p0!=v>0)return _;const y=Math.abs(b+v);return Math.abs(_)>=l*y?_:-function(e,i,l,h,f,g,m){let b,v,_,y,x,w,k,C,E,T,S,A,P,I,D,M,L,O;const z=e-f,R=l-f,N=i-g,B=h-g;x=(D=(C=z-(k=(w=t*z)-(w-z)))*(T=B-(E=(w=t*B)-(w-B)))-((I=z*B)-k*E-C*E-k*T))-(S=D-(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]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),s[1]=P-(S+x)+(x-M),x=(O=A+S)-A,s[2]=A-(O-x)+(S-x),s[3]=O;let j=function(e,t){let r=t[0];for(let o=1;o=U||-j>=U)return j;if(b=e-(z+(x=e-z))+(x-f),_=l-(R+(x=l-R))+(x-f),v=i-(N+(x=i-N))+(x-g),y=h-(B+(x=h-B))+(x-g),0===b&&0===v&&0===_&&0===y)return j;if(U=a*m+r*Math.abs(j),(j+=z*y+B*b-(N*_+R*v))>=U||-j>=U)return j;x=(D=(C=b-(k=(w=t*b)-(w-b)))*(T=B-(E=(w=t*B)-(w-B)))-((I=b*B)-k*E-C*E-k*T))-(S=D-(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]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),u[1]=P-(S+x)+(x-M),x=(O=A+S)-A,u[2]=A-(O-x)+(S-x),u[3]=O;const F=o(4,s,4,u,c);x=(D=(C=z-(k=(w=t*z)-(w-z)))*(T=y-(E=(w=t*y)-(w-y)))-((I=z*y)-k*E-C*E-k*T))-(S=D-(L=(C=N-(k=(w=t*N)-(w-N)))*(T=_-(E=(w=t*_)-(w-_)))-((M=N*_)-k*E-C*E-k*T))),u[0]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),u[1]=P-(S+x)+(x-M),x=(O=A+S)-A,u[2]=A-(O-x)+(S-x),u[3]=O;const V=o(F,c,4,u,d);x=(D=(C=b-(k=(w=t*b)-(w-b)))*(T=y-(E=(w=t*y)-(w-y)))-((I=b*y)-k*E-C*E-k*T))-(S=D-(L=(C=v-(k=(w=t*v)-(w-v)))*(T=_-(E=(w=t*_)-(w-_)))-((M=v*_)-k*E-C*E-k*T))),u[0]=D-(S+x)+(x-L),x=(P=I-((A=I+S)-(x=A-I))+(S-x))-(S=P-M),u[1]=P-(S+x)+(x-M),x=(O=A+S)-A,u[2]=A-(O-x)+(S-x),u[3]=O;const W=o(V,d,4,u,p);return p[W-1]}(e,i,h,f,g,m,y)},e.orient2dfast=function(e,t,r,o,i,l){return(t-l)*(r-i)-(e-i)*(o-l)},Object.defineProperty(e,"__esModule",{value:!0})}(Re.exports);var Ne=Ie,Be=Me,je=Le.exports,Ue=Re.exports.orient2d;function Fe(e,t,r){t=Math.max(0,void 0===t?2:t),r=r||0;var o=function(e){for(var t=e[0],r=e[0],o=e[0],i=e[0],l=0;lo[0]&&(o=n),n[1]i[1]&&(i=n)}var a=[t,r,o,i],s=a.slice();for(l=0;l=2&&qe(t[t.length-2],t[t.length-1],e[r])<=0;)t.pop();t.push(e[r])}for(var o=[],i=e.length-1;i>=0;i--){for(;o.length>=2&&qe(o[o.length-2],o[o.length-1],e[i])<=0;)o.pop();o.push(e[i])}return o.pop(),t.pop(),t.concat(o)}(s)}(e),i=new Ne(16);i.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},i.compareMinX=function(e,t){return e[0]-t[0]},i.compareMinY=function(e,t){return e[1]-t[1]},i.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=Ke(h,t,r),g=Ke(h,o,i);if(u.dist=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Ye(e,t,r){for(var o,i,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!=qe(o,i,n)>0&&qe(l,n,o)>0!=qe(l,n,i)>0)return!1;return!0}function qe(e,t,r){return Ue(e[0],e[1],t[0],t[1],r[0],r[1])}function Ze(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 Qe(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],o=e[1]-t[1];return r*r+o*o}function Ke(e,t,r){var o=t[0],i=t[1],l=r[0]-o,n=r[1]-i;if(0!==l||0!==n){var a=((e[0]-o)*l+(e[1]-i)*n)/(l*l+n*n);a>1?(o=r[0],i=r[1]):a>0&&(o+=l*a,i+=n*a)}return(l=e[0]-o)*l+(n=e[1]-i)*n}function Je(e,t,r,o,i,l,n,a){var s,c,d,p,u=r-e,h=o-t,f=n-i,g=a-l,m=e-i,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))*i+d*n-((1-(s=0===c?0:c/C))*e+s*r),S=(1-d)*l+d*a-((1-s)*t+s*o);return T*T+S*S}function $e(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}Be.default&&(Be=Be.default),ue.exports=Fe,ue.exports.default=Fe;var et=ue.exports;function tt(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var o=ne(e),i=se(t),l=i.type,n=t.bbox,a=i.coordinates;if(n&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(o,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&&(o=!o)}return o}function ot(e,t,r){void 0===r&&(r={});var o=ne(e),i=ne(t),l=ee(i[1]-o[1]),n=ee(i[0]-o[0]),a=ee(o[1]),s=ee(i[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=q[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,o){void 0===o&&(o={});var i=ne(e),l=ee(i[0]),n=ee(i[1]),a=ee(r),s=function(e,t){void 0===t&&(t="kilometers");var r=q[t];if(!r)throw new Error(t+" units is invalid");return e/r}(t,o.units),c=Math.asin(Math.sin(n)*Math.cos(s)+Math.cos(n)*Math.sin(s)*Math.cos(a));return Q([$(l+Math.atan2(Math.sin(a)*Math.sin(s)*Math.cos(n),Math.cos(s)-Math.sin(n)*Math.sin(c))),$(c)],o.properties)}function lt(e,t,r){if(void 0===r&&(r={}),!0===r.final)return function(e,t){var r=lt(t,e);return r=(r+180)%360}(e,t);var o=ne(e),i=ne(t),l=ee(o[0]),n=ee(i[0]),a=ee(o[1]),s=ee(i[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 $(Math.atan2(c,d))}function nt(e,t){return it(e,ot(e,t)/2,lt(e,t))}function at(e,t){void 0===t&&(t={});var r=0,o=0,i=0;return re(e,(function(e){r+=e[0],o+=e[1],i++}),!0),Q([r/i,o/i],t.properties)}function st(e,t){switch(void 0===t&&(t={}),function(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}(e)){case"Point":return Q(ne(e),t.properties);case"Polygon":var r=[];re(e,(function(e){r.push(e)}));var o,i,l,n,a,s,c,d,p=at(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(o=0;o3?X([o]):null}(e);return v?st(v,{properties:t.properties}):at(e,{properties:t.properties})}}function ct(e){if(!e)throw new Error("geojson is required");var t=[];return ie(e,(function(e){!function(e,t){var r=[],o=e.geometry;if(null!==o){switch(o.type){case"Polygon":r=ae(o);break;case"LineString":r=[ae(o)]}r.forEach((function(r){(function(e,t){var r=[];return e.reduce((function(e,o){var i,l,n,a,s,c,d=K([e,o],t);return d.bbox=(l=o,n=(i=e)[0],a=i[1],s=l[0],c=l[1],[ns?n:s,a>c?a:c]),r.push(d),o})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),J(t)}var dt={exports:{}};function pt(e,t,r,o,i){ut(e,t,r||0,o||e.length-1,i||ft)}function ut(e,t,r,o,i){for(;o>r;){if(o-r>600){var l=o-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);ut(e,t,Math.max(r,Math.floor(t-n*s/l+c)),Math.min(o,Math.floor(t+(l-n)*s/l+c)),i)}var d=e[t],p=r,u=o;for(ht(e,r,t),i(e[o],d)>0&&ht(e,r,o);p0;)u--}0===i(e[r],d)?ht(e,r,u):ht(e,++u,o),u<=t&&(r=u+1),t<=u&&(o=u-1)}}function ht(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function ft(e,t){return et?1:0}function gt(e,t,r){if(!r)return t.indexOf(e);for(let o=0;o=e.minX&&t.maxY>=e.minY}function Tt(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function St(e,t,r,o,i){const l=[t,r];for(;l.length;){if((r=l.pop())-(t=l.pop())<=o)continue;const n=t+Math.ceil((r-t)/o/2)*o;pt(e,n,t,r,i),l.push(t,n,n,r)}}var At=pe(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(!Et(e,t))return r;const o=this.toBBox,i=[];for(;t;){for(let l=0;l=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(o,i,t)}_split(e,t){const r=e[t],o=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,o);const l=this._chooseSplitIndex(r,i,o),n=Tt(r.children.splice(l,r.children.length-l));n.height=r.height,n.leaf=r.leaf,mt(r,this.toBBox),mt(n,this.toBBox),t?e[t-1].children.push(n):this._splitRoot(r,n)}_splitRoot(e,t){this.data=Tt([e,t]),this.data.height=e.height+1,this.data.leaf=!1,mt(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let o,i=1/0,l=1/0;for(let n=t;n<=r-t;n++){const t=bt(e,0,n,this.toBBox),a=bt(e,n,r,this.toBBox),s=kt(t,a),c=xt(t)+xt(a);s=t;s--){const t=e.children[s];vt(n,e.leaf?i(t):t),a+=wt(n)}return a}_adjustParentBBoxes(e,t,r){for(let o=r;o>=0;o--)vt(t[o],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():mt(e[r],this.toBBox)}}})),Pt={};!function(e){function t(e,t,r){void 0===r&&(r={});var o={type:"Feature"};return(0===r.id||r.id)&&(o.id=r.id),r.bbox&&(o.bbox=r.bbox),o.properties=t||{},o.geometry=e,o}function r(e,r,o){if(void 0===o&&(o={}),!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,o)}function o(e,r,o){void 0===o&&(o={});for(var i=0,l=e;i=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,o){if(void 0===r&&(r="meters"),void 0===o&&(o="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=e.areaFactors[r];if(!i)throw new Error("invalid original units");var l=e.areaFactors[o];if(!l)throw new Error("invalid final units");return t/i*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")}}(Pt);var It={};Object.defineProperty(It,"__esModule",{value:!0});var Dt=Pt;function Mt(e,t,r){if(null!==e)for(var o,i,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(i=0);var f=Dt.lineString([n,l],e.properties);if(!1===t(f,r,o,h,i))return!1;i++,n=l}))&&void 0}}}))}function Bt(e,t){if(!e)throw new Error("geojson is required");Rt(e,(function(e,r,o){if(null!==e.geometry){var i=e.geometry.type,l=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,r,o,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!==o.length)throw new Error(" line2 must only contain 2 coordinates");var i=r[0][0],l=r[0][1],n=r[1][0],a=r[1][1],s=o[0][0],c=o[0][1],d=o[1][0],p=o[1][1],u=(p-c)*(n-i)-(d-s)*(a-l),h=(d-s)*(l-c)-(p-c)*(i-s),f=(n-i)*(l-c)-(a-l)*(i-s);if(0===u)return null;var g=h/u,m=f/u;return g>=0&&g<=1&&m>=0&&m<=1?Q([i+g*(n-i),l+g*(a-l)]):null}function Jt(e,t,r){void 0===r&&(r={});for(var o=ne(e),i=ae(t),l=0;li)return!1}else if(0!==h)return!1;return o?"start"===o?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 er(e,t){var r=se(e),o=se(t),i=r.type,l=o.type;switch(i){case"Point":switch(l){case"MultiPoint":return function(e,t){var r,o=!1;for(r=0;rt[0])&&(!(e[2]t[1])&&!(e[3]1?function(e,t,r){return void 0===r&&(r={}),Z({type:"MultiLineString",coordinates:e},t,r)}(e,t):K(e[0],t)}function nr(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,o=t.coordinates,!(r[0]===o[0]&&r[1]===o[1]);case"LineString":return!ar(t,e);case"Polygon":return!tt(e,t)}break;case"LineString":switch(t.type){case"Point":return!ar(e,t);case"LineString":return!function(e,t){if(Xt(e,t).features.length>0)return!0;return!1}(e,t);case"Polygon":return!sr(t,e)}break;case"Polygon":switch(t.type){case"Point":return!tt(t,e);case"LineString":return!sr(e,t);case"Polygon":return!function(e,t){for(var r=0,o=e.coordinates[0];r0)return!0;return!1}(t,e)}}var r,o;return!1}(e.geometry,t.geometry)}))})),r}function ar(e,t){for(var r=0;r0}function cr(e,t,r){var o=r[0]-e[0],i=r[1]-e[1],l=t[0]-e[0],n=t[1]-e[1];return 0==o*n-i*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 dr(e,t){var r=!1;return ie(e,(function(e){ie(t,(function(t){if(!0===r)return!0;r=!nr(e.geometry,t.geometry)}))})),r}function pr(e,t,r){return void 0===r&&(r={}),function(e,t,r,o){void 0===o&&(o={});for(var i=[],l=e[0],n=e[1],a=e[2],s=e[3],c=t/ot([l,n],[a,n],o)*(a-l),d=r/ot([l,n],[l,s],o)*(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?o=t?2*Math.PI-i:Math.PI+i,i=180*i/Math.PI,i}getPitch(e,t){let r=Cesium.Transforms.eastNorthUpToFixedFrame(e);const o=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);let i=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(r,r),o,o);return Cesium.Cartesian3.normalize(i,i),Cesium.Math.PI_OVER_TWO-Cesium.Math.acosClamped(i.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),o=Cesium.Transforms.eastNorthUpToFixedFrame(t);this.debugModelMatrixPrimitive=this.viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({modelMatrix:o,length:5}));const i=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-i),maximumClock:Cesium.Math.toRadians(90-e.direction+i),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),o=Cesium.Math.toRadians(e.verticalViewAngle);this.lightCamera.frustum.aspectRatio=t*Math.tan(r/2)*2/(t*Math.tan(o/2)*2),this.lightCamera.frustum.fov=r>o?r:o,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,o=this.lightCamera.directionWC,i=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,i,n),Cesium.Matrix3.setColumn(n,2,o,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,o=this.ViewShedOptions.direction;let i=this.computeBoundaryOptions(t,r,o);const l=i.bbox;let n=X([i.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 o=[],i=e[0],l=e[1],n=e[2],a=e[3],s=t/ot([i,l],[n,l],r)*(n-i),c=t/ot([i,l],[i,a],r)*(a-l),d=n-i,p=a-l,u=Math.floor(d/s),h=(p-Math.floor(p/c)*c)/2,f=i+(d-u*s)/2;f<=n;){for(var g=l+h;g<=a;){var m=Q([f,g],r.properties);r.mask?er(m,r.mask)&&o.push(m):o.push(m),g+=c}f+=s}return J(o)}(l,a,{mask:n});console.log(this.ViewShedOptions.visualRange,e,a);let c=this.createTargetPoints(s,a,t),d=Y.train(c.values,c.lngs,c.lats,"exponential",0,100),p=Y.grid([i.boundaryPoints],d,a/1e3);this.canvasEle.width=3840,this.canvasEle.height=2160,Y.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(i.positionArr)}computeBoundaryOptions(e,t,r){let o=6356725;const i=e[0],l=e[1],n=[i,l,i,l];let a=[],s=[];a.push(i,l),s.push([i,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=o+21412*(90-l)/90,d=i+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([i,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 o=[this.frustumPrimitive,this.pyramid,this.debugModelMatrixPrimitive],i=[],l=[],n=[],a=this.getHeight(r[0],r[1],o);[].push({x:r[0],y:r[1],z:a});let s=this.ViewShedOptions.viewPosition;for(let c=0;ct?i.push(0):i.push(1),l.push(a),n.push(d)}}return{values:i,lngs:l,lats:n}}returnImgae(){return this.canvasEle.toDataURL("image/png")}}Object.assign(ur.prototype,{createViewshed:function(e){let t=this,r=t.viewer.scene;t.initHandler(),t.clearAll();let o=0,i="左键点击创建起点";t.handler=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas),t.handler.setInputAction((l=>{if(o++,1===o){i="左键点击创建终点";let e=r.pickPosition(l.position),o=t.cartesian3ToDegree(e);t.handler.setInputAction((function(l){P(i,l.endPosition,!0);let n=r.pickPosition(l.endPosition);if(Cesium.defined(n)){let r=t.cartesian3ToDegree(n),i=Cesium.Cartesian3.distance(n,e),l=t.getAngle(o[0],o[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:i},t.updateViewShed()}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}2===o&&(t.initHandler(),t.drawViewershed(e),P(i,l.endPosition,!1))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),t.handler.setInputAction((function(e){P(i,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 hr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._stopTime=null}}Object.assign(hr.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(hr.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 o=viewer.clock;o.shouldAnimate=!1,o.startTime=t,o.stopTime=r,o.currentTime=t,o.clockRange=Cesium.ClockRange.UNBOUNDED,o.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 fr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._profileEntities=[]}_interPoints(e,t){let r=[],o=[];for(let n=0;ni&&(i=r);let l=parseInt(i/2);l>1e3&&(l=1e3),l<2&&(l=2);for(let n=0;n{let i=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));this.removeProfileAnalysis(),t.clampToGround=!0,console.log(i);let l=this._interPoints(i,[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 gr{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,o=0,i=0,l=0;const n=e.geom.indices,a=e.geom.attributes.position.values;for(let c=0;cthis.maxHeigh&&(this.maxHeigh=i),{heightPos:Cesium.Cartesian3.fromRadians(o.longitude,o.latitude,i),noHeightPos:Cesium.Cartesian3.fromRadians(o.longitude,o.latitude,0),height:i}}}Object.assign(gr.prototype,{createPolygonGeo(e,t){return new Promise(((r,o)=>{let i=this;(t=t||{}).precision=Cesium.defaultValue(t.precision,256),t.height=Cesium.defaultValue(t.height,10),i.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))),o=this;o.data=r,o.baseHeight=t.baseHeight,o.targetY=t.baseHeight+t.height;let i=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(o.data),height:o.baseHeight,extrudedHeight:o.baseHeight+3e3}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(t.color).withAlpha(t.alpha)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});o.limitHeightPrimitive=o._viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:i,releaseGeometryInstances:!1,classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),o._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),o=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight+e),i=Cesium.Cartesian3.subtract(o,r,new Cesium.Cartesian3);this.limitHeightPrimitive._primitive.modelMatrix=Cesium.Matrix4.fromTranslation(i)}});class br{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,o=t._scene;new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(t){let r=o.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,o.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),o.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 o=this._getOriginCoordinateSystemPoint(e,r),i=this._getOriginCoordinateSystemPoint(t,r),l=new Cesium.Cartesian3(0,0,10),n=Cesium.Cartesian3.subtract(i,o,new Cesium.Cartesian3),a=Cesium.Cartesian3.cross(n,l,new Cesium.Cartesian3);a=Cesium.Cartesian3.normalize(a,a);let s=Cesium.Plane.fromPointNormal(o,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 o=function(e){for(var t,r,o=ae(e),i=0,l=1;l0}(K(r));var i=[];if(t)if(o)for(var l=0,n=e.length-1;n>=0;n--)i[l]=e[n],l++;else i=e;else if(o)i=e;else for(l=0,n=e.length-1;n>=0;n--)i[l]=e[n],l++;return i}}Object.assign(br.prototype,{activate(e){let t=this,r=t._viewer,o=t._getInverseTransform(e);[].push(t._createPlane([121.55814450142213,37.39658788787028],[121.65814450142213,37.49658788787028],o));let i=new Cesium.ClippingPlaneCollection({planes:[new Cesium.ClippingPlane(new Cesium.Cartesian3(0,1,0),-10)],edgeWidth:1});return t.tileset=e,e.clippingPlanes=i,e.debugShowBoundingVolume=!1,e.readyPromise.then((function(){let o=e.boundingSphere,l=o.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),o=Cesium.Cartographic.fromCartesian(e.boundingSphere.center).height-r.height;i.modelMatrix=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0,0,o))}for(let e=0;eCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let r=this.viewer;this.clear();let o=[],i=Cesium.Cartesian3.subtract(e[0],e[1],new Cesium.Cartesian3).x>0;this.excavateMinHeight=999999999;for(let l=0;l{let r=[],o=e.reduce((function(e,t,o,i){var l=10*o,n=l+10,a=i.slice(l,n);return 0!=a.length&&(r[o]=a),r}),[]);t._calculateSlope(o),t._openTip()}))}_createPolygonInsrance(e,t){let r=[];for(let i=1;i0?[Cesium.Cartographic.toCartesian(l),Cesium.Cartographic.toCartesian(n)]:[Cesium.Cartographic.toCartesian(n),Cesium.Cartographic.toCartesian(l)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:i},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=[],o=[];for(let n=0;na&&(a=t,s=e)}let c=new Cesium.Cartographic(l.longitude,l.latitude,0),d=new Cesium.Cartographic(i[s].longitude,i[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(i,h);o.push(f);let g=s>4?i[s-4]:i[s+4],m=i[s];const b=t._createArrowInstance(m,l,g,a,u);r.push(b)}const i=t._viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:o,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,i)}_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(xr.prototype,{createNew4Distance(e,t,r){let o=this;(r=r||{}).distance=r.distance||.1;let i=200*r.distance>35?35:200*r.distance;o.arrowWidth=i<15?15:i;let l=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));o.clearAll();let n=k.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=pr(u,r.distance,{});o._createEllipse(h)},createNew4Num(e,t,r){let o=this;(r=r||{}).num=Cesium.defaultValue(r.num,10);let i=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));o.clearAll();let l=k.Cartesian3ListToWGS84(i),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;o.arrowWidth=g<15?15:g,X([n]);let m=pr(p,f,{units:"degrees"});o._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 wr={TerrainExcavation:yr,SlopeAspect:xr};class kr{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(kr.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 Cr=Cesium.BoxGeometry,Er=Cesium.Cartesian3,Tr=Cesium.defaultValue,Sr=Cesium.defined,Ar=Cesium.destroyObject,Pr=Cesium.DeveloperError,Ir=Cesium.GeometryPipeline,Dr=Cesium.Matrix3,Mr=Cesium.Matrix4,Lr=Cesium.Transforms,Or=Cesium.VertexFormat,zr=Cesium.BufferUsage,Rr=Cesium.CubeMap,Nr=Cesium.DrawCommand,Br=Cesium.loadCubeMap,jr=Cesium.RenderState,Ur=Cesium.VertexArray,Fr=Cesium.BlendingState,Vr=Cesium.SceneMode,Wr=Cesium.ShaderProgram,Hr=Cesium.ShaderSource;Cesium.defined(Cesium.Matrix4.getRotation)||(Cesium.Matrix4.getRotation=Cesium.Matrix4.getMatrix3);class Gr{constructor(e){this.sources=e.sources,this._sources=void 0,this.show=Tr(e.show,!0),this._command=new Nr({modelMatrix:Mr.clone(Mr.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}}const Yr=new Dr;Gr.prototype.update=function(e,t){const r=this;if(!this.show)return;if(e.mode!==Vr.SCENE3D&&e.mode!==Vr.MORPHING)return;if(!e.passes.render)return;const o=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!(Sr(e.positiveX)&&Sr(e.negativeX)&&Sr(e.positiveY)&&Sr(e.negativeY)&&Sr(e.positiveZ)&&Sr(e.negativeZ)))throw new Pr("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 Pr("this.sources properties must all be the same type.");"string"==typeof e.positiveX?Br(o,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 Rr({context:o,source:e}))}const i=this._command;if(i.modelMatrix=Lr.eastNorthUpToFixedFrame(e.camera._positionWC),!Sr(i.vertexArray)){i.uniformMap={u_cubeMap:function(){return r._cubeMap},u_rotateMatrix:function(){return Mr.getRotation(i.modelMatrix,Yr)}};const e=Cr.createGeometry(Cr.fromDimensions({dimensions:new Er(2,2,2),vertexFormat:Or.POSITION_ONLY})),t=this._attributeLocations=Ir.createAttributeLocations(e);i.vertexArray=Ur.fromGeometry({context:o,geometry:e,attributeLocations:t,bufferUsage:zr._DRAW}),i.renderState=jr.fromCache({blending:Fr.ALPHA_BLEND})}if(!Sr(i.shaderProgram)||this._useHdr!==t){const e=new Hr({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 "]});i.shaderProgram=Wr.fromCache({context:o,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 Sr(this._cubeMap)?i:void 0},Gr.prototype.isDestroyed=function(){return!1},Gr.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 qr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._farSkyBox=e.scene.skyBox}}Object.assign(qr.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 Gr({sources:e.sources,show:!0});t._viewer.scene.postRender.addEventListener((()=>{var o=t._viewer.camera.position;Cesium.Cartographic.fromCartesian(o).heightCesium.Cartesian3.fromDegrees(e.lng,e.lat,e.height))),o=[];for(let e=0;e{let e=new Cesium.SampledPositionProperty;for(let o=0;o{let o=this;o.clearFlyPaths();let i=o._viewer.camera.position;var l={orientation:{heading:o._viewer.camera.heading,pitch:o._viewer.camera.pitch,roll:o._viewer.camera.roll},position:i,clampToGround:!0,geometry:{type:"LineString",coordinates:e}};o._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 eo{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 o=[];for(let p=0;p{let t=new Cesium.SampledPositionProperty;for(let o=0;o0&&(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 i;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");i=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:i,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,o)=>{let i;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");i=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:i,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,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");let i;i=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:i,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(((o,i)=>{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),o(d)}))},generatePoint(e,t){return new Promise(((r,o)=>{let i=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(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),b(i._viewer,[e]).then((function(o){let n=Cesium.Cartesian3.fromDegrees(e[0],e[1],o[0].height),a=new Cesium.Entity({id:t.id,position:n,point:{pixelSize:l.pixelSize,color:l.color,outlineColor:l.outlineColor,outlineWidth:l.outlineWidth,heightReference:Cesium.HeightReference.NONE,disableDepthTestDistance:o[0].height}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor instanceof Array?e.fillColor=new Cesium.Color(e.fillColor[0]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):"string"==typeof e.fillColor?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor):e.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):"string"==typeof e.outlineColor?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor):e.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor instanceof Array?e.backgroundColor=new Cesium.Color(e.backgroundColor[0]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):"string"==typeof e.backgroundColor?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),e.pixelOffset=Cesium.defaultValue(e.pixelOffset,0),e.scale=Cesium.defaultValue(e.scale,1),a.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,e.pixelOffset),scale:e.scale}}i._viewer.entities.add(a),r(a)}))}))},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,o)=>{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 i;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),i=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:i,orientation:Cesium.Transforms.headingPitchRollQuaternion(i,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,o)=>{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 i;t.id=t.id||g(),t.scale=Cesium.defaultValue(t.scale,1),i=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(i);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 ro{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ro.prototype,{drawPolylineByGeoJson:function(e,t){return new Promise(((r,o)=>{let i=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=>{i.dataSources.add(e),e.name=t.id;let o=e.entities.values,l=new Cesium.DistanceDisplayCondition(t.minHeigh,t.maxHeigh),n=new C(t);for(var a=0;a{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&o("线对象,点数至少2个");let i=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 C(t);r(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:i,width:t.width,material:l,clampToGround:!0}}))}))},PolylineArrowMaterialProperty:function(e,t){return new Promise(((r,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&o("线对象,点数至少2个");let i=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 C(t);r(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:i,width:t.width,material:l,clampToGround:!0}}))}))},drawGlowingLine(e,t){return new Promise(((r,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&o("线对象,点数至少2个");let i=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:i,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,o)=>{Cesium.defined(e)||o("points is required."),e.length<2&&o("线对象,点数至少2个");let i=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:i,width:t.width,material:t.color}}))}))},drawSpecifyColorAndOutlineColorLine(e,t){return new Promise(((r,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&o("线对象,点数至少2个");let i=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:i,width:t.width,material:new Cesium.PolylineOutlineMaterialProperty({color:t.color,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor})}}))}))},drawSpecifyColorArrowStaticStateLine(e,t){return new Promise(((r,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&o("线对象,点数至少2个");let i=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:i,width:t.width,followSurface:!1,material:new Cesium.PolylineArrowMaterialProperty(t.color)}}))}))},drawDashedLine(e,t){return new Promise(((r,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&o("线对象,点数至少2个");let i=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:i,width:t.width,material:new Cesium.PolylineDashMaterialProperty({color:t.color,gapColor:t.gapColor,dashLength:t.dashLength,dashPattern:t.dashPattern})}}))}))}});class oo{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._drawEntities=[],this._polygonEntity=null}}Object.assign(oo.prototype,{drawPolygonByGeoJson(e,t){return new Promise(((r,o)=>{let i=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=>{i._viewer.dataSources.add(e),e.name=t.id;let o=e.entities.values;for(let r=0;r{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<3&&o("面对象,点数至少3个");let i=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:i,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)}))}}),Cesium.Primitive.prototype.setUseGeometry=function(e){this._useGeometry=e},Cesium.Primitive.prototype.getUseGeometry=function(){return this._useGeometry};class io{constructor(e,t){this._viewer=e,this._init(t)}_init(e){if(this._viewer.scene.globe.depthTestAgainstTerrain=!0,this._viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._entities=this._viewer.entities,this._pointEntitys=[],this._sketchPointImage=void 0,this._iconNormal="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFub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oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._sketchEntityName="sketchEntity",this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchTempPolyline=void 0,this._sketchPolyline=void 0,this._sketchTempPolygon=void 0,this._sketchPolygon=void 0,this._sketchTempAltituePolyline=void 0,this._sketchAltitudePolyline=void 0,this._sketchAltitudeInitHeight=0,this._sketchTempSpatialPolyline=void 0,this._sketchSpatialPolyline=void 0,this._sketchTempCircle=void 0,this._sketchCircle=void 0,this._sketchTempRectangle=void 0,this._sketchRectangle=void 0,this._sketchTempTriangleAltitudePolyline=void 0,this._sketchTriangleAltituePolyline=void 0,this._sketchTempSpatialTriangle=void 0,this._sketchSpatialTriangle=void 0,this._lineLabel=void 0,this._polygonLabel=void 0,(e=e||{}).isDrawPoint?this._isDrawPoint=e.isDrawPoint:this._isDrawPoint=!1,e.isRetainDrawPoint?this._isRetainDrawPoint=e.isRetainDrawPoint:this._isRetainDrawPoint=!1,this._param={moveLineWidth:2,lineWidth:2,moveAltitudeLineWidth:2,altitudeLineWidth:2,spatialLineWidth:2,moveEllipseColor:[0,255,0,.5],moveEllipseOutline:!0,moveEllipseOutlineColor:[255,0,0,.5],moveEllipseOutlineWidth:1,spatialLineWidth:2,ellipseColor:[0,0,255,.5],ellipseOutline:!0,ellipseOutlineColor:[255,0,0,.5],ellipseOutlineWidth:1},this._setMoveLineStyle(void 0),this._setLineStyle(void 0),this._setMovePolygonStyle(void 0),this._setPolygonStyle(void 0),this._setMoveAltitudeLineStyle(void 0),this._setAltitudeLineStyle(void 0),this._setMoveEllipseStyle(void 0),this._setEllipseStyle(void 0),this._setSpatialLineStyle(void 0),e&&e.iconType)switch(e.iconType){case io.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case io.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case io.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case io.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,o){let i=new Cesium.Color(0,0,0,1);return"number"!=typeof e||"number"!=typeof t||"number"!=typeof r||"number"!=typeof o||e<0||e>255||t<0||t>255||r<0||r>255||o<0||o>1?i:new Cesium.Color(e/255,t/255,r/255,o)}_toColorFromArray(e){if(!e||void 0===e.length||0===e.length)return new Cesium.Color(1,1,1,1);let t=255,r=255,o=255,i=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]),o=parseInt(e[2])):e.length>=4&&(t=parseInt(e[0]),r=parseInt(e[1]),o=parseInt(e[2]),i=parseFloat(e[3])),new Cesium.Color(t/255,r/255,o/255,i)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(e){let t,r=this._viewer.scene.camera.getPickRay(e),o=this._viewer.scene.globe.pick(r,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(o),Cesium.defined(o)&&(t={x:o.x,y:o.y,z:o.z}),t}_getScreenClickPositionAndHeight(e){var t=void 0,r=void 0,o=void 0,i=this._viewer.scene.camera.getPickRay(e),l=this._viewer.scene.globe.pick(i,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),o=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),o=n.height}}return{lng:t,lat:r,height:o}}_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=[],o=0;o0&&(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 o=r._transfromFromScreenPoint(e.position);Cesium.defined(o.sLocation)&&(r._isDrawPoint&&r._createPoint(o.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempPolyline(),r._sketchTempPoints.push(o.sLocation.clone())),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),r._sketchOutputPoints.push(o.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let o=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(o.sLocation)&&Cesium.defined(r._sketchTempPolyline)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation),t.onMoving&&t.onMoving(o.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(o){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 o=r._transfromFromScreenPoint(e.position);Cesium.defined(o.sLocation)&&(r._isDrawPoint&&r._createPoint(o.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempSpatialPolyline(),r._sketchTempPoints.push(o.sLocation.clone())),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),r._sketchOutputPoints.push(o.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let o=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(o.sLocation)&&Cesium.defined(r._sketchTempSpatialPolyline)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation),t.onMoving&&t.onMoving(o.sLocation))})),this._registerLeftDoubleClickEvent(e,(function(o){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 o=r._transfromFromScreenPoint(e.position);Cesium.defined(o.sLocation)&&(r._isDrawPoint&&r._createPoint(o.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempPolygon(),r._createTempPolyline(),r._sketchTempPoints.push(o.sLocation.clone())),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),r._sketchOutputPoints.push(o.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let o=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(o.sLocation)&&Cesium.defined(r._sketchTempPolygon)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation),t.onMoving&&t.onMoving(o.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(o){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(o){let i=r._transfromFromScreenPoint(o.position);if(Cesium.defined(i.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(i.sLocation,"起点"),r._sketchTempPoints.push(i.sLocation.clone()),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),r._createTempCircle(i.sLocation),t.onAdded&&t.onAdded(i.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation);let e=r._sketchEllipseCenterPosition,t=r._sketchTempPoints[1];r._ellipseOutlineCoordinates=[];for(let i=5;i<360;){let o=r._rotatedPointByAngle(t,e,i);r._ellipseOutlineCoordinates.push(o),i+=5}r._ellipseOutlineCoordinates.push(r._ellipseOutlineCoordinates[0]);let o=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),l=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]),n=new Cesium.EllipsoidGeodesic;n.setEndPoints(o,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(o){let i=r._transfromFromScreenPoint(o.position);if(Cesium.defined(i.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(i.sLocation,"起点"),r._sketchAltitudeInitHeight=i.gLocation.height,r._sketchTempPoints.push(i.sLocation.clone()),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),t.onAdded&&t.onAdded(i.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.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 o=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);r._sketchAltitudePolylinePostions.push(o);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 o=r._viewer.scene.pickPosition(e.endPosition);null!=o&&r._sketchTempPoints.length>=2&&(Cesium.defined(r._sketchTempAltituePolyline)?(r._sketchTempPoints.pop(),r._sketchTempPoints.push(o)):r._createTempAltitudePolyline(),t.onMoving&&t.onMoving(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition))}}))},_sketchDrawRectangle:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(o){let i=r._transfromFromScreenPoint(o.position);if(Cesium.defined(i.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(i.sLocation,"起点"),r._sketchTempPoints.push(i.gLocation),r._sketchTempPoints.push(i.gLocation),r._sketchPoints.push(i.gLocation),r._createTempRectangle(),t.onAdded&&t.onAdded(i.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.gLocation);let e=parseFloat(r._sketchTempPoints[0].lng),t=parseFloat(r._sketchTempPoints[0].lat),o=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(o){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(o){if(Cesium.defined(r._sketchTempAltituePolyline))return;let i=r._transfromFromScreenPoint(o.position);if(Cesium.defined(i.sLocation))if(0==r._sketchPoints.length)r._isDrawPoint&&r._createPoint(i.sLocation,"起点"),r._sketchTempPoints.push(i.sLocation.clone()),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation),r._createTempSpatialTriangle(),t.onAdded&&t.onAdded(i.sLocation);else if(r._sketchPoints.length>0){if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.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]),o=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);r._sketchSpatialTrianglePositions.push(o),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 o=r._viewer.scene.pickPosition(e.endPosition);null!=o&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(o),t.onMoving&&t.onMoving(o))}}))},sketchTools:function(e,t){let r=this;switch(this._clear(),r._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case io.SketchType.Point:r._sketchDrawPoint(r._sketchEventHandler,t);break;case io.SketchType.Line:r._sketchDrawPolyline(r._sketchEventHandler,t);break;case io.SketchType.Polygon:r._sketchDrawPolygon(r._sketchEventHandler,t);break;case io.SketchType.Height:r._sketchDrawHeightPolyline(r._sketchEventHandler,t);break;case io.SketchType.Spatial:r._sketchDrawSpatialPolyline(r._sketchEventHandler,t);break;case io.SketchType.Circle:r._sketchDrawCircle(r._sketchEventHandler,t);break;case io.SketchType.Rectangle:r._sketchDrawRectangle(r._sketchEventHandler,t);break;case io.SketchType.Triangle:r._sketchDrawTriangleA(r._sketchEventHandler,t);break;case io.SketchType.PolygonBody:r._sketchDrawPolygonBody(r._sketchEventHandler,t);break;case io.SketchType.MultiplePoint:r._sketchDrawMultiplePoint(r._sketchEventHandler,t)}},sketchDrawFeacture:function(e,t,r){let o=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,o=t._useGeometry.height;this._sketchPoints=t._useGeometry.cPoints,this._sketchOutputPoints=t._useGeometry.gPoints,e&&e.height&&"number"==typeof e.height&&(o=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:o}),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(o){let i=t._viewer.scene.pick(o.position);i&&i.primitive&&null!=i.primitive._useGeometry?(t._sketchPickPolygonBody=i.primitive,e&&e({color:i.primitive._useGeometry.color,height:i.primitive._useGeometry.height})):(t._sketchPickPolygonBody=void 0,e&&e(void 0)),r.destroy(),r=null}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}}),io.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"}),io.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"}),io.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class lo{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 io(e,{iconType:io.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,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEA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IscX04zp4YflDG0iM73aRZnfffMeD+M2jnWJ4Ovx7FYI3K0IKB7Dj8xevqGxpbT80nE3r8RN16Asbamt45eFZCBWDw1AP3v7lP330j0OlZbTdvvzhP6Av3XroqeCQEiFUjJWWaw7WH7n/N5WP9w+EuxP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(e){let t=this._entities;if(!t||!t.values)return;let r=[];for(let o=0;o",t.innerHTML=r,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}}function no(e,t){const r=Object.create(null),o=e.split(",");for(let i=0;i!!r[e.toLowerCase()]:e=>!!r[e]}Object.assign(lo.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(lo.prototype,{clear:function(){this._clear(!0),this._initMousePointerStyle()}}),Object.assign(lo.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(io.SketchType.Line,{onAdded:function(e,r){if(1===e.length)t._createPoint(e[0],"起点");else{let r=t._measureDistance(e),o=[e[e.length-2],e[e.length-1]];r+=" +"+t._measureDistance(o),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(io.SketchType.Line,{onAdded:function(r,o){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),o=[r[r.length-2],r[r.length-1]];e+=" +"+t._measureDistance(o),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(io.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(io.SketchType.Spatial,{onAdded:function(r,o){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(io.SketchType.Polygon,{onAdded:function(e,o){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 o=t._measureArea(t._measureTempPoints,e);r=o>1e5?(o/1e5).toFixed(2)+"km²":o.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(io.SketchType.Polygon,{onAdded:function(o,i){if(t._measureTempPoints.push(t._cartesianToGeography(o[o.length-1])),1===o.length){t._tooltipRemove(),r="起点",t._createPoint(o[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(o.length>=3){let e=t._measureArea(t._measureTempPoints,o);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(io.SketchType.Height,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e,r){let o=t._calculatePolylineAltitudeHeight(e);t._altitudeLabelPosition=r,t._altitudeLabelText=o,void 0===t._altitudeDynamicLabel&&t._createAltitudeDynamicLabel()},onError:function(t){e&&e(t)},onComplete:function(e,r){let o=t._calculatePolylineAltitudeHeight(e);t._entities.remove(t._altitudeDynamicLabel),t._createLabel(r,o),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(io.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]],o=t._measureSpaceDistance(r),i=[e[1],e[2]],l=t._measureSpaceDistance(i),n=[e[2],e[0]],a=t._calculatePolylineAltitudeHeight(n);t._createLabel(e[0],"斜距:"+o),t._createLabel(e[1],"平距:"+l),t._createLabel(e[2],"高度:"+a)}})}}),Object.assign(lo.prototype,{queryByPoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._isRuntimeApp()?this._showTooltipMessage("点击位置进行查询"):this._tooltipInit("单击位置进行查询"),this._sketchViewModel.sketchTools(io.SketchType.Point,{onComplete:function(r,o){t._initMousePointerStyle(),t._tooltipRemove(),t._createPoint(r);let i=o.lng+","+o.lat;e&&e(i)}})},queryByMultiplePoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("点击位置绘制
左键双击结束绘制"),this._tempEntitys=[],this._sketchViewModel.sketchTools(io.SketchType.MultiplePoint,{onAdded:function(e,r){let o=r.lng.toFixed(6)+","+r.lat.toFixed(6);t._tempEntitys.push(t._createPoint(e,o))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(r,o){t._initMousePointerStyle(),t._tooltipRemove();let i=[];for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,o){let i;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 o;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,o){let i;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 o;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,o){t._initMousePointerStyle(),t._tooltipRemove(),e&&e()}})},drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,io.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,io.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,io.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,io.SketchType.DrawPolygon,t)}}),Object.assign(lo.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}}),Object.assign(lo.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)}}),lo.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});const ao=()=>{},so=Object.assign,co=Object.prototype.hasOwnProperty,po=(e,t)=>co.call(e,t),uo=Array.isArray,ho=e=>"[object Map]"===bo(e),fo=e=>"symbol"==typeof e,go=e=>null!==e&&"object"==typeof e,mo=Object.prototype.toString,bo=e=>mo.call(e),vo=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,_o=(e,t)=>!Object.is(e,t);let yo;const xo=[];class wo{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&yo&&(this.parent=yo,this.index=(yo.scopes||(yo.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(xo.push(this),yo=this)}off(){this.active&&(xo.pop(),yo=xo[xo.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 ko(e){yo&&yo.cleanups.push(e)}const Co=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Eo=e=>(e.w&Po)>0,To=e=>(e.n&Po)>0,So=new WeakMap;let Ao=0,Po=1;const Io=[];let Do;const Mo=Symbol(""),Lo=Symbol("");class Oo{constructor(e,t=null,r){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||yo)&&t.active&&t.effects.push(e)}(this,r)}run(){if(!this.active)return this.fn();if(!Io.includes(this))try{return Io.push(Do=this),No.push(Ro),Ro=!0,Po=1<<++Ao,Ao<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let o=0;o0?Io[e-1]:void 0}}stop(){this.active&&(zo(this),this.onStop&&this.onStop(),this.active=!1)}}function zo(e){const{deps:t}=e;if(t.length){for(let r=0;r{("length"===t||t>=o)&&a.push(e)}));else switch(void 0!==r&&a.push(n.get(r)),t){case"add":uo(e)?vo(r)&&a.push(n.get("length")):(a.push(n.get(Mo)),ho(e)&&a.push(n.get(Lo)));break;case"delete":uo(e)||(a.push(n.get(Mo)),ho(e)&&a.push(n.get(Lo)));break;case"set":ho(e)&&a.push(n.get(Mo))}if(1===a.length)a[0]&&Ho(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Ho(Co(e))}}function Ho(e,t){for(const r of uo(e)?e:[...e])(r!==Do||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const Go=no("__proto__,__v_isRef,__isVue"),Yo=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(fo)),qo=Jo(),Zo=Jo(!1,!0),Qo=Jo(!0),Xo=Ko();function Ko(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const r=zi(this);for(let t=0,i=this.length;t{e[t]=function(...e){Bo();const r=zi(this)[t].apply(this,e);return jo(),r}})),e}function Jo(e=!1,t=!1){return function(r,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&i===(e?t?Si:Ti:t?Ei:Ci).get(r))return r;const l=uo(r);if(!e&&l&&po(Xo,o))return Reflect.get(Xo,o,i);const n=Reflect.get(r,o,i);if(fo(o)?Yo.has(o):Go(o))return n;if(e||Uo(r,0,o),t)return n;if(Fi(n)){return!l||!vo(o)?n.value:n}return go(n)?e?Ii(n):Pi(n):n}}function $o(e=!1){return function(t,r,o,i){let l=t[r];if(!e&&!Li(o)&&(o=zi(o),l=zi(l),!uo(t)&&Fi(l)&&!Fi(o)))return l.value=o,!0;const n=uo(t)&&vo(r)?Number(r)!0,deleteProperty:(e,t)=>!0},ri=so({},ei,{get:Zo,set:$o(!0)}),oi=e=>e,ii=e=>Reflect.getPrototypeOf(e);function li(e,t,r=!1,o=!1){const i=zi(e=e.__v_raw),l=zi(t);t!==l&&!r&&Uo(i,0,t),!r&&Uo(i,0,l);const{has:n}=ii(i),a=o?oi:r?Bi:Ni;return n.call(i,t)?a(e.get(t)):n.call(i,l)?a(e.get(l)):void(e!==i&&e.get(t))}function ni(e,t=!1){const r=this.__v_raw,o=zi(r),i=zi(e);return e!==i&&!t&&Uo(o,0,e),!t&&Uo(o,0,i),e===i?r.has(e):r.has(e)||r.has(i)}function ai(e,t=!1){return e=e.__v_raw,!t&&Uo(zi(e),0,Mo),Reflect.get(e,"size",e)}function si(e){e=zi(e);const t=zi(this);return ii(t).has.call(t,e)||(t.add(e),Wo(t,"add",e,e)),this}function ci(e,t){t=zi(t);const r=zi(this),{has:o,get:i}=ii(r);let l=o.call(r,e);l||(e=zi(e),l=o.call(r,e));const n=i.call(r,e);return r.set(e,t),l?_o(t,n)&&Wo(r,"set",e,t):Wo(r,"add",e,t),this}function di(e){const t=zi(this),{has:r,get:o}=ii(t);let i=r.call(t,e);i||(e=zi(e),i=r.call(t,e)),o&&o.call(t,e);const l=t.delete(e);return i&&Wo(t,"delete",e,void 0),l}function pi(){const e=zi(this),t=0!==e.size,r=e.clear();return t&&Wo(e,"clear",void 0,void 0),r}function ui(e,t){return function(r,o){const i=this,l=i.__v_raw,n=zi(l),a=t?oi:e?Bi:Ni;return!e&&Uo(n,0,Mo),l.forEach(((e,t)=>r.call(o,a(e),a(t),i)))}}function hi(e,t,r){return function(...o){const i=this.__v_raw,l=zi(i),n=ho(l),a="entries"===e||e===Symbol.iterator&&n,s="keys"===e&&n,c=i[e](...o),d=r?oi:t?Bi:Ni;return!t&&Uo(l,0,s?Lo:Mo),{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 fi(e){return function(...t){return"delete"!==e&&this}}function gi(){const e={get(e){return li(this,e)},get size(){return ai(this)},has:ni,add:si,set:ci,delete:di,clear:pi,forEach:ui(!1,!1)},t={get(e){return li(this,e,!1,!0)},get size(){return ai(this)},has:ni,add:si,set:ci,delete:di,clear:pi,forEach:ui(!1,!0)},r={get(e){return li(this,e,!0)},get size(){return ai(this,!0)},has(e){return ni.call(this,e,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:ui(!0,!1)},o={get(e){return li(this,e,!0,!0)},get size(){return ai(this,!0)},has(e){return ni.call(this,e,!0)},add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear"),forEach:ui(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=hi(i,!1,!1),r[i]=hi(i,!0,!1),t[i]=hi(i,!1,!0),o[i]=hi(i,!0,!0)})),[e,r,t,o]}const[mi,bi,vi,_i]=gi();function yi(e,t){const r=t?e?_i:vi:e?bi:mi;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(po(r,o)&&o in t?r:t,o,i)}const xi={get:yi(!1,!1)},wi={get:yi(!1,!0)},ki={get:yi(!0,!1)},Ci=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Si=new WeakMap;function Ai(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=>bo(e).slice(8,-1))(e))}function Pi(e){return e&&e.__v_isReadonly?e:Di(e,!1,ei,xi,Ci)}function Ii(e){return Di(e,!0,ti,ki,Ti)}function Di(e,t,r,o,i){if(!go(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=i.get(e);if(l)return l;const n=Ai(e);if(0===n)return e;const a=new Proxy(e,2===n?o:r);return i.set(e,a),a}function Mi(e){return Li(e)?Mi(e.__v_raw):!(!e||!e.__v_isReactive)}function Li(e){return!(!e||!e.__v_isReadonly)}function Oi(e){return Mi(e)||Li(e)}function zi(e){const t=e&&e.__v_raw;return t?zi(t):e}function Ri(e){return((e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})})(e,"__v_skip",!0),e}const Ni=e=>go(e)?Pi(e):e,Bi=e=>go(e)?Ii(e):e;function ji(e){Fo()&&((e=zi(e)).dep||(e.dep=Co()),Vo(e.dep))}function Ui(e,t){(e=zi(e)).dep&&Ho(e.dep)}function Fi(e){return Boolean(e&&!0===e.__v_isRef)}function Vi(e){return Hi(e,!1)}function Wi(e){return Hi(e,!0)}function Hi(e,t){return Fi(e)?e:new Gi(e,t)}class Gi{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:zi(e),this._value=t?e:Ni(e)}get value(){return ji(this),this._value}set value(e){e=this._shallow?e:zi(e),_o(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Ni(e),Ui(this))}}function Yi(e){Ui(e)}function qi(e){return Fi(e)?e.value:e}const Zi={get:(e,t,r)=>qi(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const i=e[t];return Fi(i)&&!Fi(r)?(i.value=r,!0):Reflect.set(e,t,r,o)}};function Qi(e){return Mi(e)?e:new Proxy(e,Zi)}function Xi(e){const t=uo(e)?new Array(e.length):{};for(const r in e)t[r]=Ji(e,r);return t}class Ki{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 Ji(e,t,r){const o=e[t];return Fi(o)?o:new Ki(e,t,r)}class $i{constructor(e,t,r){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Oo(e,(()=>{this._dirty||(this._dirty=!0,Ui(this))})),this.__v_isReadonly=r}get value(){const e=zi(this);return ji(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function el(e,t){let r,o;const i="function"==typeof e;i?(r=e,o=ao):(r=e.get,o=e.set);return new $i(r,o,i||!o)}function tl(e,t){const r=Object.create(null),o=e.split(",");for(let i=0;i!!r[e.toLowerCase()]:e=>!!r[e]}function rl(e){if(yl(e)){const t={};for(let r=0;r{if(e){const r=e.split(il);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}function nl(e){let t="";if(Cl(e))t=e;else if(yl(e))for(let r=0;rnull==e?"":yl(e)||El(e)&&(e.toString===Sl||!kl(e.toString))?JSON.stringify(e,sl,2):String(e),sl=(e,t)=>t&&t.__v_isRef?sl(e,t.value):xl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,r])=>(e[`${t} =>`]=r,e)),{})}:wl(t)?{[`Set(${t.size})`]:[...t.values()]}:!El(t)||yl(t)||Pl(t)?t:String(t),cl={},dl=[],pl=()=>{},ul=()=>!1,hl=/^on[^a-z]/,fl=e=>hl.test(e),gl=e=>e.startsWith("onUpdate:"),ml=Object.assign,bl=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},vl=Object.prototype.hasOwnProperty,_l=(e,t)=>vl.call(e,t),yl=Array.isArray,xl=e=>"[object Map]"===Al(e),wl=e=>"[object Set]"===Al(e),kl=e=>"function"==typeof e,Cl=e=>"string"==typeof e,El=e=>null!==e&&"object"==typeof e,Tl=e=>El(e)&&kl(e.then)&&kl(e.catch),Sl=Object.prototype.toString,Al=e=>Sl.call(e),Pl=e=>"[object Object]"===Al(e),Il=tl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dl=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Ml=/-(\w)/g,Ll=Dl((e=>e.replace(Ml,((e,t)=>t?t.toUpperCase():"")))),Ol=/\B([A-Z])/g,zl=Dl((e=>e.replace(Ol,"-$1").toLowerCase())),Rl=Dl((e=>e.charAt(0).toUpperCase()+e.slice(1))),Nl=Dl((e=>e?`on${Rl(e)}`:"")),Bl=(e,t)=>!Object.is(e,t),jl=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Fl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Vl;function Wl(e,t,...r){const o=e.vnode.props||cl;let i=r;const l=t.startsWith("update:"),n=l&&t.slice(7);if(n&&n in o){const e=`${"modelValue"===n?"model":n}Modifiers`,{number:t,trim:l}=o[e]||cl;l?i=r.map((e=>e.trim())):t&&(i=r.map(Fl))}let a,s=o[a=Nl(t)]||o[a=Nl(Ll(t))];!s&&l&&(s=o[a=Nl(zl(t))]),s&&xs(s,e,6,i);const c=o[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,xs(c,e,6,i)}}function Hl(e,t,r=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const l=e.emits;let n={},a=!1;if(!kl(e)){const o=e=>{const r=Hl(e,t,!0);r&&(a=!0,ml(n,r))};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return l||a?(yl(l)?l.forEach((e=>n[e]=null)):ml(n,l),o.set(e,n),n):(o.set(e,null),null)}function Gl(e,t){return!(!e||!fl(t))&&(t=t.slice(2).replace(/Once$/,""),_l(e,t[0].toLowerCase()+t.slice(1))||_l(e,zl(t))||_l(e,t))}let Yl=null,ql=null;function Zl(e){const t=Yl;return Yl=e,ql=e&&e.type.__scopeId||null,t}function Ql(e,t=Yl,r){if(!t)return e;if(e._n)return e;const o=(...r)=>{o._d&&Pa(-1);const i=Zl(t),l=e(...r);return Zl(i),o._d&&Pa(1),l};return o._n=!0,o._c=!0,o._d=!0,o}function Xl(e){const{type:t,vnode:r,proxy:o,withProxy:i,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=Zl(e);try{if(4&r.shapeFlag){const e=i||o;m=Wa(d.call(e,e,p,l,h,u,f)),b=s}else{const e=t;0,m=Wa(e.length>1?e(l,{attrs:s,slots:a,emit:c}):e(l,null)),b=t.props?s:Kl(s)}}catch(y){Ea.length=0,ws(y,e,1),m=ja(ka)}let _=m;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(n&&e.some(gl)&&(b=Jl(b,n)),_=Ua(_,b))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),m=_,Zl(v),m}const Kl=e=>{let t;for(const r in e)("class"===r||"style"===r||fl(r))&&((t||(t={}))[r]=e[r]);return t},Jl=(e,t)=>{const r={};for(const o in e)gl(o)&&o.slice(9)in t||(r[o]=e[o]);return r};function $l(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i1)return r&&kl(t)?t.call(o.proxy):t}}const rn=[Function,Array],on={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rn,onEnter:rn,onAfterEnter:rn,onEnterCancelled:rn,onBeforeLeave:rn,onLeave:rn,onAfterLeave:rn,onLeaveCancelled:rn,onBeforeAppear:rn,onAppear:rn,onAfterAppear:rn,onAppearCancelled:rn},setup(e,{slots:t}){const r=is(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xn((()=>{e.isMounted=!0})),Cn((()=>{e.isUnmounting=!0})),e}();let i;return()=>{const l=t.default&&dn(t.default(),!0);if(!l||!l.length)return;const n=zi(e),{mode:a}=n,s=l[0];if(o.isLeaving)return an(s);const c=sn(s);if(!c)return an(s);const d=nn(c,n,o,r);cn(c,d);const p=r.subTree,u=p&&sn(p);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(u&&u.type!==ka&&(!Oa(c,u)||h)){const e=nn(u,n,o,r);if(cn(u,e),"out-in"===a)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,r.update()},an(s);"in-out"===a&&c.type!==ka&&(e.delayLeave=(e,t,r)=>{ln(o,u)[String(u.key)]=u,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=r})}return s}}};function ln(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function nn(e,t,r,o){const{appear:i,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=ln(r,e),x=(e,t)=>{e&&xs(e,o,9,t)},w={mode:l,persisted:n,beforeEnter(t){let o=a;if(!r.isMounted){if(!i)return;o=g||a}t._leaveCb&&t._leaveCb(!0);const l=y[_];l&&Oa(e,l)&&l.el._leaveCb&&l.el._leaveCb(),x(o,[t])},enter(e){let t=s,o=c,l=d;if(!r.isMounted){if(!i)return;t=m||s,o=b||c,l=v||d}let n=!1;const a=e._enterCb=t=>{n||(n=!0,x(t?l:o,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,o){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),r.isUnmounting)return o();x(p,[t]);let l=!1;const n=t._leaveCb=r=>{l||(l=!0,o(),x(r?f:h,[t]),t._leaveCb=void 0,y[i]===e&&delete y[i])};y[i]=e,u?(u(t,n),u.length<=1&&n()):n()},clone:e=>nn(e,t,r,o)};return w}function an(e){if(hn(e))return(e=Ua(e)).children=null,e}function sn(e){return hn(e)?e.children?e.children[0]:void 0:e}function cn(e,t){6&e.shapeFlag&&e.component?cn(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 dn(e,t=!1){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,hn=e=>e.type.__isKeepAlive;function fn(e,t){mn(e,"a",t)}function gn(e,t){mn(e,"da",t)}function mn(e,t,r=os){const o=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(vn(t,o,r),r){let e=r.parent;for(;e&&e.parent;)hn(e.parent.vnode)&&bn(o,t,r,e),e=e.parent}}function bn(e,t,r,o){const i=vn(t,e,o,!0);En((()=>{bl(o[t],i)}),r)}function vn(e,t,r=os,o=!1){if(r){const i=r[e]||(r[e]=[]),l=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Bo(),ls(r);const i=xs(t,r,e,o);return ns(),jo(),i});return o?i.unshift(l):i.push(l),l}}const _n=e=>(t,r=os)=>(!ss||"sp"===e)&&vn(e,t,r),yn=_n("bm"),xn=_n("m"),wn=_n("bu"),kn=_n("u"),Cn=_n("bum"),En=_n("um"),Tn=_n("sp"),Sn=_n("rtg"),An=_n("rtc");function Pn(e,t=os){vn("ec",e,t)}let In=!0;function Dn(e){const t=On(e),r=e.proxy,o=e.ctx;In=!1,t.beforeCreate&&Mn(t.beforeCreate,e,"bc");const{data:i,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:S,components:A,directives:P,filters:I}=t;if(c&&function(e,t,r=pl,o=!1){yl(e)&&(e=Bn(e));for(const i in e){const r=e[i];let l;l=El(r)?"default"in r?tn(r.from||i,r.default,!0):tn(r.from||i):tn(r),Fi(l)&&o?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[i]=l}}(c,o,null,e.appContext.config.unwrapInjectedRef),n)for(const M in n){const e=n[M];kl(e)&&(o[M]=e.bind(r))}if(i){const t=i.call(r,r);El(t)&&(e.data=Pi(t))}if(In=!0,l)for(const M in l){const e=l[M],t=el({get:kl(e)?e.bind(r,r):kl(e.get)?e.get.bind(r,r):pl,set:!kl(e)&&kl(e.set)?e.set.bind(r):pl});Object.defineProperty(o,M,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(a)for(const M in a)Ln(a[M],o,r,M);if(s){const e=kl(s)?s.call(r):s;Reflect.ownKeys(e).forEach((t=>{en(t,e[t])}))}function D(e,t){yl(t)?t.forEach((t=>e(t.bind(r)))):t&&e(t.bind(r))}if(d&&Mn(d,e,"c"),D(yn,p),D(xn,u),D(wn,h),D(kn,f),D(fn,g),D(gn,m),D(Pn,C),D(An,w),D(Sn,k),D(Cn,v),D(En,y),D(Tn,E),yl(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===pl&&(e.render=x),null!=S&&(e.inheritAttrs=S),A&&(e.components=A),P&&(e.directives=P)}function Mn(e,t,r){xs(yl(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,r)}function Ln(e,t,r,o){const i=o.includes(".")?Qs(r,o):()=>r[o];if(Cl(e)){const r=t[e];kl(r)&&Ys(i,r)}else if(kl(e))Ys(i,e.bind(r));else if(El(e))if(yl(e))e.forEach((e=>Ln(e,t,r,o)));else{const o=kl(e.handler)?e.handler.bind(r):t[e.handler];kl(o)&&Ys(i,o,e)}}function On(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:n}}=e.appContext,a=l.get(t);let s;return a?s=a:i.length||r||o?(s={},i.length&&i.forEach((e=>zn(s,e,n,!0))),zn(s,t,n)):s=t,l.set(t,s),s}function zn(e,t,r,o=!1){const{mixins:i,extends:l}=t;l&&zn(e,l,r,!0),i&&i.forEach((t=>zn(e,t,r,!0)));for(const n in t)if(o&&"expose"===n);else{const o=Rn[n]||r&&r[n];e[n]=o?o(e[n],t[n]):t[n]}return e}const Rn={data:Nn,props:Un,emits:Un,methods:Un,computed:Un,beforeCreate:jn,created:jn,beforeMount:jn,mounted:jn,beforeUpdate:jn,updated:jn,beforeDestroy:jn,beforeUnmount:jn,destroyed:jn,unmounted:jn,activated:jn,deactivated:jn,errorCaptured:jn,serverPrefetch:jn,components:Un,directives:Un,watch:function(e,t){if(!e)return t;if(!t)return e;const r=ml(Object.create(null),e);for(const o in t)r[o]=jn(e[o],t[o]);return r},provide:Nn,inject:function(e,t){return Un(Bn(e),Bn(t))}};function Nn(e,t){return t?e?function(){return ml(kl(e)?e.call(this,this):e,kl(t)?t.call(this,this):t)}:t:e}function Bn(e){if(yl(e)){const t={};for(let r=0;r{s=!0;const[r,o]=Hn(e,t,!0);ml(n,r),o&&a.push(...o)};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!s)return o.set(e,dl),dl;if(yl(l))for(let d=0;d-1,r[1]=o<0||t-1||_l(r,"default"))&&a.push(e)}}}const c=[n,a];return o.set(e,c),c}function Gn(e){return"$"!==e[0]}function Yn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function qn(e,t){return Yn(e)===Yn(t)}function Zn(e,t){return yl(t)?t.findIndex((t=>qn(t,e))):kl(t)&&qn(t,e)?0:-1}const Qn=e=>"_"===e[0]||"$stable"===e,Xn=e=>yl(e)?e.map(Wa):[Wa(e)],Kn=(e,t,r)=>{const o=Ql(((...e)=>Xn(t(...e))),r);return o._c=!1,o},Jn=(e,t,r)=>{const o=e._ctx;for(const i in e){if(Qn(i))continue;const r=e[i];if(kl(r))t[i]=Kn(0,r,o);else if(null!=r){const e=Xn(r);t[i]=()=>e}}},$n=(e,t)=>{const r=Xn(t);e.slots.default=()=>r};function ea(e,t){if(null===Yl)return e;const r=Yl.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i(l.has(e)||(e&&kl(e.install)?(l.add(e),e.install(a,...t)):kl(e)&&(l.add(e),e(a,...t))),a),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(l,s,c){if(!n){const d=ja(r,o);return d.appContext=i,s&&t?t(d,l):e(d,l,c),n=!0,a._container=l,l.__vue_app__=a,us(d.component)||d.component.proxy}},unmount(){n&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function la(e,t,r,o,i=!1){if(yl(e))return void e.forEach(((e,l)=>la(e,t&&(yl(t)?t[l]:t),r,o,i)));if(un(o)&&!i)return;const l=4&o.shapeFlag?us(o.component)||o.component.proxy:o.el,n=i?null:l,{i:a,r:s}=e,c=t&&t.r,d=a.refs===cl?a.refs={}:a.refs,p=a.setupState;if(null!=c&&c!==s&&(Cl(c)?(d[c]=null,_l(p,c)&&(p[c]=null)):Fi(c)&&(c.value=null)),kl(s))ys(s,a,12,[n,d]);else{const t=Cl(s),o=Fi(s);if(t||o){const o=()=>{if(e.f){const r=t?d[s]:s.value;i?yl(r)&&bl(r,l):yl(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,_l(p,s)&&(p[s]=n)):Fi(s)&&(s.value=n,e.k&&(d[e.k]=n))};n?(o.id=-1,na(o,r)):o()}}}const na=function(e,t){t&&t.pendingBranch?yl(e)?t.effects.push(...e):t.effects.push(e):js(e,Ds,Is,Ms)};function aa(e){return function(e,t){(Vl||(Vl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:l,createText:n,createComment:a,setText:s,setElementText:c,parentNode:d,nextSibling:p,setScopeId:u=pl,cloneNode:h,insertStaticContent:f}=e,g=(e,t,r,o=null,i=null,l=null,n=!1,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Oa(e,t)&&(o=W(e),B(e,i,l,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:p}=t;switch(c){case wa:m(e,t,r,o);break;case ka:b(e,t,r,o);break;case Ca:null==e&&v(t,r,o,n);break;case xa:A(e,t,r,o,i,l,n,a,s);break;default:1&p?x(e,t,r,o,i,l,n,a,s):6&p?P(e,t,r,o,i,l,n,a,s):(64&p||128&p)&&c.process(e,t,r,o,i,l,n,a,s,G)}null!=d&&i&&la(d,e&&e.ref,l,t||e,!t)},m=(e,t,o,i)=>{if(null==e)r(t.el=n(t.children),o,i);else{const r=t.el=e.el;t.children!==e.children&&s(r,t.children)}},b=(e,t,o,i)=>{null==e?r(t.el=a(t.children||""),o,i):t.el=e.el},v=(e,t,r,o)=>{[e.el,e.anchor]=f(e.children,t,r,o)},_=({el:e,anchor:t},o,i)=>{let l;for(;e&&e!==t;)l=p(e),r(e,o,i),e=l;r(t,o,i)},y=({el:e,anchor:t})=>{let r;for(;e&&e!==t;)r=p(e),o(e),e=r;o(t)},x=(e,t,r,o,i,l,n,a,s)=>{n=n||"svg"===t.type,null==e?w(t,r,o,i,l,n,a,s):E(e,t,i,l,n,a,s)},w=(e,t,o,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&&ta(e,null,n,"created"),m){for(const t in m)"value"===t||Il(t)||i(u,t,null,m[t],s,e.children,n,a,V);"value"in m&&i(u,"value",null,m.value),(f=m.onVnodeBeforeMount)&&qa(f,n,e)}k(u,e,e.scopeId,d,n)}y&&ta(e,null,n,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;x&&v.beforeEnter(u),r(u,t,o),((f=m&&m.onVnodeMounted)||x||y)&&na((()=>{f&&qa(f,n,e),x&&v.enter(u),y&&ta(e,null,n,"mounted")}),a)},k=(e,t,r,o,i)=>{if(r&&u(e,r),o)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||cl,f=t.props||cl;let g;r&&sa(r,!1),(g=f.onVnodeBeforeUpdate)&&qa(g,r,t,e),u&&ta(t,e,r,"beforeUpdate"),r&&sa(r,!0);const m=l&&"foreignObject"!==t.type;if(p?T(e.dynamicChildren,p,s,r,o,m,n):a||O(e,t,s,null,r,o,m,n,!1),d>0){if(16&d)S(s,t,h,f,r,o,l);else if(2&d&&h.class!==f.class&&i(s,"class",null,f.class,l),4&d&&i(s,"style",h.style,f.style,l),8&d){const n=t.dynamicProps;for(let t=0;t{g&&qa(g,r,t,e),u&&ta(t,e,r,"updated")}),o)},T=(e,t,r,o,i,l,n)=>{for(let a=0;a{if(r!==o){for(const s in o){if(Il(s))continue;const c=o[s],d=r[s];c!==d&&"value"!==s&&i(e,s,d,c,a,t.children,l,n,V)}if(r!==cl)for(const s in r)Il(s)||s in o||i(e,s,r[s],null,a,t.children,l,n,V);"value"in o&&i(e,"value",r.value,o.value)}},A=(e,t,o,i,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,o,i),r(u,o,i),C(t.children,o,u,l,a,s,c,d)):h>0&&64&h&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,o,l,a,s,c),(null!=t.key||l&&t===l.subTree)&&ca(e,t,!0)):O(e,t,o,u,l,a,s,c,d)},P=(e,t,r,o,i,l,n,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?i.ctx.activate(t,r,o,n,s):I(t,r,o,i,l,n,s):D(e,t,s)},I=(e,t,r,o,i,l,n)=>{const a=e.component=function(e,t,r){const o=e.type,i=(t?t.appContext:e.appContext)||ts,l={uid:rs++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new wo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hn(o,i),emitsOptions:Hl(o,i),emit:null,emitted:null,propsDefaults:cl,inheritAttrs:o.inheritAttrs,ctx:cl,data:cl,props:cl,attrs:cl,slots:cl,refs:cl,setupState:cl,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=Wl.bind(null,l),e.ce&&e.ce(l);return l}(e,o,i);if(hn(e)&&(a.ctx.renderer=G),function(e,t=!1){ss=t;const{props:r,children:o}=e.vnode,i=as(e);Fn(e,r,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const r=t._;r?(e.slots=zi(t),Ul(t,"_",r)):Jn(t,e.slots={})}else e.slots={},t&&$n(e,t);Ul(e.slots,za,1)})(e,o);const l=i?function(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Ri(new Proxy(e.ctx,es));const{setup:o}=r;if(o){const r=e.setupContext=o.length>1?ps(e):null;ls(e),Bo();const i=ys(o,e,0,[e.props,r]);if(jo(),ns(),Tl(i)){if(i.then(ns,ns),t)return i.then((r=>{cs(e,r,t)})).catch((t=>{ws(t,e,0)}));e.asyncDep=i}else cs(e,i,t)}else ds(e,t)}(e,t):void 0;ss=!1}(a),a.asyncDep){if(i&&i.registerDep(a,M),!e.el){const e=a.subTree=ja(ka);b(null,e,t,r)}}else M(a,e,t,r,i,l,n)},D=(e,t,r)=>{const o=t.component=e.component;if(function(e,t,r){const{props:o,children:i,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!(!i&&!a||a&&a.$stable)||o!==n&&(o?!n||$l(o,n,c):!!n);if(1024&s)return!0;if(16&s)return o?$l(o,n,c):!!n;if(8&s){const e=t.dynamicProps;for(let t=0;tTs&&Es.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},M=(e,t,r,o,i,l,n)=>{const a=()=>{if(e.isMounted){let t,{next:r,bu:o,u:a,parent:s,vnode:c}=e,p=r;sa(e,!1),r?(r.el=c.el,L(e,r,n)):r=c,o&&jl(o),(t=r.props&&r.props.onVnodeBeforeUpdate)&&qa(t,s,r,c),sa(e,!0);const u=Xl(e),h=e.subTree;e.subTree=u,g(h,u,d(h.el),W(h),e,i,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&&na(a,i),(t=r.props&&r.props.onVnodeUpdated)&&na((()=>qa(t,s,r,c)),i)}else{let n;const{el:a,props:s}=t,{bm:c,m:d,parent:p}=e,u=un(t);if(sa(e,!1),c&&jl(c),!u&&(n=s&&s.onVnodeBeforeMount)&&qa(n,p,t),sa(e,!0),a&&q){const r=()=>{e.subTree=Xl(e),q(a,e.subTree,e,i,null)};u?t.type.__asyncLoader().then((()=>!e.isUnmounted&&r())):r()}else{const n=e.subTree=Xl(e);g(null,n,r,o,e,i,l),t.el=n.el}if(d&&na(d,i),!u&&(n=s&&s.onVnodeMounted)){const e=t;na((()=>qa(n,p,e)),i)}256&t.shapeFlag&&e.a&&na(e.a,i),e.isMounted=!0,t=r=o=null}},s=e.effect=new Oo(a,(()=>Ns(e.update)),e.scope),c=e.update=s.run.bind(s);c.id=e.uid,sa(e,!0),c()},L=(e,t,r)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,o){const{props:i,attrs:l,vnode:{patchFlag:n}}=e,a=zi(i),[s]=e.propsOptions;let c=!1;if(!(o||n>0)||16&n){let o;Vn(e,t,i,l)&&(c=!0);for(const l in a)t&&(_l(t,l)||(o=zl(l))!==l&&_l(t,o))||(s?!r||void 0===r[l]&&void 0===r[o]||(i[l]=Wn(s,a,l,void 0,e,!0)):delete i[l]);if(l!==a)for(const e in l)t&&_l(t,e)||(delete l[e],c=!0)}else if(8&n){const r=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:i}=e;let l=!0,n=cl;if(32&o.shapeFlag){const e=t._;e?r&&1===e?l=!1:(ml(i,t),r||1!==e||delete i._):(l=!t.$stable,Jn(t,i)),n=t}else t&&($n(e,t),n={default:1});if(l)for(const a in i)Qn(a)||a in n||delete i[a]})(e,t.children,r),Bo(),Us(void 0,e.update),jo()},O=(e,t,r,o,i,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,o,i,l,n,a,s);if(256&h)return void z(d,u,r,o,i,l,n,a,s)}8&f?(16&p&&V(d,i,l),u!==d&&c(r,u)):16&p?16&f?R(d,u,r,o,i,l,n,a,s):V(d,i,l,!0):(8&p&&c(r,""),16&f&&C(u,r,o,i,l,n,a,s))},z=(e,t,r,o,i,l,n,a,s)=>{t=t||dl;const c=(e=e||dl).length,d=t.length,p=Math.min(c,d);let u;for(u=0;ud?V(e,i,l,!0,!1,p):C(t,r,o,i,l,n,a,s,p)},R=(e,t,r,o,i,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 o=e[c],d=t[c]=s?Ha(t[c]):Wa(t[c]);if(!Oa(o,d))break;g(o,d,r,null,i,l,n,a,s),c++}for(;c<=p&&c<=u;){const o=e[p],c=t[u]=s?Ha(t[u]):Wa(t[u]);if(!Oa(o,c))break;g(o,c,r,null,i,l,n,a,s),p--,u--}if(c>p){if(c<=u){const e=u+1,p=eu)for(;c<=p;)B(e[c],i,l,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=u;c++){const e=t[c]=s?Ha(t[c]):Wa(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 o=e[c];if(v>=_){B(o,i,l,!0);continue}let d;if(null!=o.key)d=m.get(o.key);else for(b=f;b<=u;b++)if(0===w[b-f]&&Oa(o,t[b])){d=b;break}void 0===d?B(o,i,l,!0):(w[d-f]=c+1,d>=x?x=d:y=!0,g(o,t[d],r,null,i,l,n,a,s),v++)}const k=y?function(e){const t=e.slice(),r=[0];let o,i,l,n,a;const s=e.length;for(o=0;o>1,e[r[a]]0&&(t[o]=r[l-1]),r[l]=o)}}l=r.length,n=r[l-1];for(;l-- >0;)r[l]=n,n=t[n];return r}(w):dl;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,o,i);if(128&d)return void e.suspense.move(t,o,i);if(64&d)return void a.move(e,t,o,G);if(a===xa){r(n,t,o);for(let e=0;es.enter(n)),l);else{const{leave:e,delayLeave:i,afterLeave:l}=s,a=()=>r(n,t,o),c=()=>{e(n,(()=>{a(),l&&l()}))};i?i(n,a,c):c()}else r(n,t,o)},B=(e,t,r,o=!1,i=!1)=>{const{type:l,props:n,ref:a,children:s,dynamicChildren:c,shapeFlag:d,patchFlag:p,dirs:u}=e;if(null!=a&&la(a,null,r,e,!0),256&d)return void t.ctx.deactivate(e);const h=1&d&&u,f=!un(e);let g;if(f&&(g=n&&n.onVnodeBeforeUnmount)&&qa(g,t,e),6&d)F(e.component,r,o);else{if(128&d)return void e.suspense.unmount(r,o);h&&ta(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,r,i,G,o):c&&(l!==xa||p>0&&64&p)?V(c,t,r,!1,!0):(l===xa&&384&p||!i&&16&d)&&V(s,t,r),o&&j(e)}(f&&(g=n&&n.onVnodeUnmounted)||h)&&na((()=>{g&&qa(g,t,e),h&&ta(e,null,t,"unmounted")}),r)},j=e=>{const{type:t,el:r,anchor:i,transition:l}=e;if(t===xa)return void U(r,i);if(t===Ca)return void y(e);const n=()=>{o(r),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:o}=l,i=()=>t(r,n);o?o(e.el,n,i):i()}else n()},U=(e,t)=>{let r;for(;e!==t;)r=p(e),o(e),e=r;o(t)},F=(e,t,r)=>{const{bum:o,scope:i,update:l,subTree:n,um:a}=e;o&&jl(o),i.stop(),l&&(l.active=!1,B(n,e,t,r)),a&&na(a,t),na((()=>{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,o=!1,i=!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),Fs(),t._vnode=e},G={p:g,um:B,m:N,r:j,mt:I,mc:C,pc:O,pbc:T,n:W,o:e};let Y,q;t&&([Y,q]=t(G));return{render:H,hydrate:Y,createApp:ia(H,Y)}}(e)}function sa({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function ca(e,t,r=!1){const o=e.children,i=t.children;if(yl(o)&&yl(i))for(let l=0;le&&(e.disabled||""===e.disabled),pa=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,ua=(e,t)=>{const r=e&&e.to;if(Cl(r)){if(t){return t(r)}return null}return r};function ha(e,t,r,{o:{insert:o},m:i},l=2){0===l&&o(e.targetAnchor,t,r);const{el:n,anchor:a,shapeFlag:s,children:c,props:d}=e,p=2===l;if(p&&o(n,t,r),(!p||da(d))&&16&s)for(let u=0;u{16&v&&d(_,e,t,i,l,n,a,s)};b?m(r,c):p&&m(p,u)}else{t.el=e.el;const o=t.anchor=e.anchor,d=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=da(e.props),m=g?r:d,v=g?o:h;if(n=n||pa(d),y?(u(e.dynamicChildren,y,m,i,l,n,a),ca(e,t,!0)):s||p(e,t,m,v,i,l,n,a,!1),b)g||ha(t,r,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ua(t.props,f);e&&ha(t,e,null,c,0)}else g&&ha(t,d,h,c,1)}},remove(e,t,r,o,{um:i,o:{remove:l}},n){const{shapeFlag:a,children:s,anchor:c,targetAnchor:d,target:p,props:u}=e;if(p&&l(d),(n||!da(u))&&(l(c),16&a))for(let h=0;h0?Ta||dl:null,Ea.pop(),Ta=Ea[Ea.length-1]||null,Aa>0&&Ta&&Ta.push(e),e}function Da(e,t,r,o,i,l){return Ia(Ba(e,t,r,o,i,l,!0))}function Ma(e,t,r,o,i){return Ia(ja(e,t,r,o,i,!0))}function La(e){return!!e&&!0===e.__v_isVNode}function Oa(e,t){return e.type===t.type&&e.key===t.key}const za="__vInternal",Ra=({key:e})=>null!=e?e:null,Na=({ref:e,ref_key:t,ref_for:r})=>null!=e?Cl(e)||Fi(e)||kl(e)?{i:Yl,r:e,k:t,f:!!r}:e:null;function Ba(e,t=null,r=null,o=0,i=null,l=(e===xa?0:1),n=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ra(t),ref:t&&Na(t),scopeId:ql,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:o,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Ga(s,r),128&l&&e.normalize(s)):r&&(s.shapeFlag|=Cl(r)?8:16),Aa>0&&!n&&Ta&&(s.patchFlag>0||6&l)&&32!==s.patchFlag&&Ta.push(s),s}const ja=function(e,t=null,r=null,o=0,i=null,l=!1){e&&e!==ma||(e=ka);if(La(e)){const o=Ua(e,t,!0);return r&&Ga(o,r),o}n=e,kl(n)&&"__vccOpts"in n&&(e=e.__vccOpts);var n;if(t){t=function(e){return e?Oi(e)||za in e?ml({},e):e:null}(t);let{class:e,style:r}=t;e&&!Cl(e)&&(t.class=nl(e)),El(r)&&(Oi(r)&&!yl(r)&&(r=ml({},r)),t.style=rl(r))}const a=Cl(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:El(e)?4:kl(e)?2:0;return Ba(e,t,r,o,i,a,l,!0)};function Ua(e,t,r=!1){const{props:o,ref:i,patchFlag:l,children:n}=e,a=t?Ya(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ra(a),ref:t&&t.ref?r&&i?yl(i)?i.concat(Na(t)):[i,Na(t)]:Na(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xa?-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&&Ua(e.ssContent),ssFallback:e.ssFallback&&Ua(e.ssFallback),el:e.el,anchor:e.anchor}}function Fa(e=" ",t=0){return ja(wa,null,e,t)}function Va(e="",t=!1){return t?(Sa(),Ma(ka,null,e)):ja(ka,null,e)}function Wa(e){return null==e||"boolean"==typeof e?ja(ka):yl(e)?ja(xa,null,e.slice()):"object"==typeof e?Ha(e):ja(wa,null,String(e))}function Ha(e){return null===e.el||e.memo?e:Ua(e)}function Ga(e,t){let r=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(yl(t))r=16;else if("object"==typeof t){if(65&o){const r=t.default;return void(r&&(r._c&&(r._d=!1),Ga(e,r()),r._c&&(r._d=!0)))}{r=32;const o=t._;o||za in t?3===o&&Yl&&(1===Yl.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Yl}}else kl(t)?(t={default:t,_ctx:Yl},r=32):(t=String(t),64&o?(r=16,t=[Fa(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ya(...e){const t={};for(let r=0;rt(e,r,void 0,l&&l[r])));else{const r=Object.keys(e);i=new Array(r.length);for(let o=0,n=r.length;o!La(e)||e.type!==ka&&!(e.type===xa&&!Ka(e.children))))?e:null}const Ja=e=>e?as(e)?us(e)||e.proxy:Ja(e.parent):null,$a=ml(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ja(e.parent),$root:e=>Ja(e.root),$emit:e=>e.emit,$options:e=>On(e),$forceUpdate:e=>()=>Ns(e.update),$nextTick:e=>Rs.bind(e.proxy),$watch:e=>Zs.bind(e)}),es={get({_:e},t){const{ctx:r,setupState:o,data:i,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 o[t];case 2:return i[t];case 4:return r[t];case 3:return l[t]}else{if(o!==cl&&_l(o,t))return n[t]=1,o[t];if(i!==cl&&_l(i,t))return n[t]=2,i[t];if((c=e.propsOptions[0])&&_l(c,t))return n[t]=3,l[t];if(r!==cl&&_l(r,t))return n[t]=4,r[t];In&&(n[t]=0)}}const d=$a[t];let p,u;return d?("$attrs"===t&&Uo(e,0,t),d(e)):(p=a.__cssModules)&&(p=p[t])?p:r!==cl&&_l(r,t)?(n[t]=4,r[t]):(u=s.config.globalProperties,_l(u,t)?u[t]:void 0)},set({_:e},t,r){const{data:o,setupState:i,ctx:l}=e;if(i!==cl&&_l(i,t))i[t]=r;else if(o!==cl&&_l(o,t))o[t]=r;else if(_l(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:o,appContext:i,propsOptions:l}},n){let a;return!!r[n]||e!==cl&&_l(e,n)||t!==cl&&_l(t,n)||(a=l[0])&&_l(a,n)||_l(o,n)||_l($a,n)||_l(i.config.globalProperties,n)}},ts=ra();let rs=0;let os=null;const is=()=>os||Yl,ls=e=>{os=e,e.scope.on()},ns=()=>{os&&os.scope.off(),os=null};function as(e){return 4&e.vnode.shapeFlag}let ss=!1;function cs(e,t,r){kl(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:El(t)&&(e.setupState=Qi(t)),ds(e,r)}function ds(e,t,r){const o=e.type;e.render||(e.render=o.render||pl),ls(e),Bo(),Dn(e),jo(),ns()}function ps(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)=>(Uo(e,0,"$attrs"),t[r])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function us(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qi(Ri(e.exposed)),{get:(t,r)=>r in t?t[r]:r in $a?$a[r](e):void 0}))}const hs=/(?:^|[-_])(\w)/g;function fs(e){return kl(e)&&e.displayName||e.name}function gs(e,t,r=!1){let o=fs(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const r=e=>{for(const r in e)if(e[r]===t)return r};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?o.replace(hs,(e=>e.toUpperCase())).replace(/[-_]/g,""):r?"App":"Anonymous"}const ms=[];function bs(e,...t){Bo();const r=ms.length?ms[ms.length-1].component:null,o=r&&r.appContext.config.warnHandler,i=function(){let e=ms[ms.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 o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)ys(o,r,11,[e+t.join(""),r&&r.proxy,i.map((({vnode:e})=>`at <${gs(r,e.type)}>`)).join("\n"),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.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)`:"",o=!!e.component&&null==e.component.parent,i=` at <${gs(e.component,e.type,o)}`,l=">"+r;return e.props?[i,...vs(e.props),l]:[i+l]}(e))})),t}(i)),console.warn(...r)}jo()}function vs(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach((r=>{t.push(..._s(r,e[r]))})),r.length>3&&t.push(" ..."),t}function _s(e,t,r){return Cl(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?r?t:[`${e}=${t}`]:Fi(t)?(t=_s(e,zi(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):kl(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=zi(t),r?t:[`${e}=`,t])}function ys(e,t,r,o){let i;try{i=o?e(...o):e()}catch(l){ws(l,t,r)}return i}function xs(e,t,r,o){if(kl(e)){const i=ys(e,t,r,o);return i&&Tl(i)&&i.catch((e=>{ws(e,t,r)})),i}const i=[];for(let l=0;l>>1;Vs(Es[o])Vs(e)-Vs(t))),Ms=0;Msnull==e.id?1/0:e.id;function Ws(e){Cs=!1,ks=!0,Us(e),Es.sort(((e,t)=>Vs(e)-Vs(t)));try{for(Ts=0;Tse.value,d=!!e._shallow):Mi(e)?(s=()=>e,o=!0):yl(e)?(p=!0,d=e.some(Mi),s=()=>e.map((e=>Fi(e)?e.value:Mi(e)?Xs(e):kl(e)?ys(e,a,2):void 0))):s=kl(e)?t?()=>ys(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),xs(e,a,3,[u])}:pl,t&&o){const e=s;s=()=>Xs(e())}let u=e=>{c=m.onStop=()=>{ys(e,a,4)}};if(ss)return u=pl,t?r&&xs(t,a,3,[s(),p?[]:void 0,u]):s(),pl;let h=p?[]:Gs;const f=()=>{if(m.active)if(t){const e=m.run();(o||d||(p?e.some(((e,t)=>Bl(e,h[t]))):Bl(e,h)))&&(c&&c(),xs(t,a,3,[e,h===Gs?void 0:h,u]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===i?f:"post"===i?()=>na(f,a&&a.suspense):()=>{!a||a.isMounted?function(e){js(e,As,Ss,Ps)}(f):f()};const m=new Oo(s,g);return t?r?f():h=m.run():"post"===i?na(m.run.bind(m),a&&a.suspense):m.run(),()=>{m.stop(),a&&a.scope&&bl(a.scope.effects,m)}}function Zs(e,t,r){const o=this.proxy,i=Cl(e)?e.includes(".")?Qs(o,e):()=>o[e]:e.bind(o,o);let l;kl(t)?l=t:(l=t.handler,r=t);const n=os;ls(this);const a=qs(i,l.bind(o),r);return n?ls(n):ns(),a}function Qs(e,t){const r=t.split(".");return()=>{let t=e;for(let e=0;e{Xs(e,t)}));else if(Pl(e))for(const r in e)Xs(e[r],t);return e}function Ks(){return Js().slots}function Js(){const e=is();return e.setupContext||(e.setupContext=ps(e))}function $s(e,t,r){const o=arguments.length;return 2===o?El(t)&&!yl(t)?La(t)?ja(e,null,[t]):ja(e,t):ja(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):3===o&&La(r)&&(r=[r]),ja(e,t,r))}const ec="3.2.25";function tc(e,t){const r=Object.create(null),o=e.split(",");for(let i=0;i!!r[e.toLowerCase()]:e=>!!r[e]}const rc=tc("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function oc(e){return!!e||""===e}function ic(e,t){if(e===t)return!0;let r=sc(e),o=sc(t);if(r||o)return!(!r||!o)&&e.getTime()===t.getTime();if(r=ac(e),o=ac(t),r||o)return!(!r||!o)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&oe instanceof Date,cc=e=>"string"==typeof e,dc=e=>null!==e&&"object"==typeof e,pc=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},uc=/-(\w)/g,hc=pc((e=>e.replace(uc,((e,t)=>t?t.toUpperCase():"")))),fc=/\B([A-Z])/g,gc=pc((e=>e.replace(fc,"-$1").toLowerCase())),mc=pc((e=>e.charAt(0).toUpperCase()+e.slice(1))),bc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vc="undefined"!=typeof document?document:null,_c=new Map,yc={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const i=t?vc.createElementNS("http://www.w3.org/2000/svg",e):vc.createElement(e,r?{is:r}:void 0);return"select"===e&&o&&null!=o.multiple&&i.setAttribute("multiple",o.multiple),i},createText:e=>vc.createTextNode(e),createComment:e=>vc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vc.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,o){const i=r?r.previousSibling:t.lastChild;let l=_c.get(e);if(!l){const t=vc.createElement("template");if(t.innerHTML=o?`${e}`:e,l=t.content,o){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}_c.set(e,l)}return t.insertBefore(l.cloneNode(!0),r),[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};const xc=/\s*!important$/;function wc(e,t,r){if(ac(r))r.forEach((r=>wc(e,t,r)));else if(t.startsWith("--"))e.setProperty(t,r);else{const o=function(e,t){const r=Cc[t];if(r)return r;let o=Ll(t);if("filter"!==o&&o in e)return Cc[t]=o;o=mc(o);for(let i=0;idocument.createEvent("Event").timeStamp&&(Tc=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Sc=!!(e&&Number(e[1])<=53)}let Ac=0;const Pc=Promise.resolve(),Ic=()=>{Ac=0};function Dc(e,t,r,o){e.addEventListener(t,r,o)}function Mc(e,t,r,o,i=null){const l=e._vei||(e._vei={}),n=l[t];if(o&&n)n.value=o;else{const[r,a]=function(e){let t;if(Lc.test(e)){let r;for(t={};r=e.match(Lc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[gc(e.slice(2)),t]}(t);if(o){Dc(e,r,l[t]=function(e,t){const r=e=>{const o=e.timeStamp||Tc();(Sc||o>=r.attached-1)&&xs(function(e,t){if(ac(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=(()=>Ac||(Pc.then(Ic),Ac=Tc()))(),r}(o,i),a)}else n&&(!function(e,t,r,o){e.removeEventListener(t,r,o)}(e,r,n,a),l[t]=void 0)}}const Lc=/(?:Once|Passive|Capture)$/;const Oc=/^on[a-z]/;function zc(e,t){const r=pn(e);class o extends Nc{constructor(e){super(r,e,t)}}return o.def=r,o}const Rc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Nc extends Rc{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,Rs((()=>{this._connected||(pd(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,o=!ac(t),i=t?o?Object.keys(t):t:[];let l;if(o)for(const n in this._props){const e=t[n];(e===Number||e&&e.type===Number)&&(this._props[n]=bc(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 i.map(hc))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=bc(t)),this._setProp(hc(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,r=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),r&&(!0===t?this.setAttribute(gc(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(gc(e),t+""):t||this.removeAttribute(gc(e))))}_update(){pd(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ja(this._def,nc({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Nc){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const Bc="transition",jc=(e,{slots:t})=>$s(on,function(e){const t={};for(const A in e)A in Uc||(t[A]=e[A]);if(!1===e.css)return t;const{name:r="v",type:o,duration:i,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(dc(e))return[Wc(e.enter),Wc(e.leave)];{const t=Wc(e);return[t,t]}}(i),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)=>{Gc(e,t?d:a),Gc(e,t?c:n),r&&r()},T=(e,t)=>{Gc(e,h),Gc(e,u),t&&t()},S=e=>(t,r)=>{const i=e?k:v,n=()=>E(t,e,r);Fc(i,[t,n]),Yc((()=>{Gc(t,e?s:l),Hc(t,e?d:a),Vc(i)||Zc(t,o,g,n)}))};return nc(t,{onBeforeEnter(e){Fc(b,[e]),Hc(e,l),Hc(e,n)},onBeforeAppear(e){Fc(w,[e]),Hc(e,s),Hc(e,c)},onEnter:S(!1),onAppear:S(!0),onLeave(e,t){const r=()=>T(e,t);Hc(e,p),document.body.offsetHeight,Hc(e,u),Yc((()=>{Gc(e,p),Hc(e,h),Vc(y)||Zc(e,o,m,r)})),Fc(y,[e,r])},onEnterCancelled(e){E(e,!1),Fc(_,[e])},onAppearCancelled(e){E(e,!0),Fc(C,[e])},onLeaveCancelled(e){T(e),Fc(x,[e])}})}(e),t);jc.displayName="Transition";const Uc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};jc.props=nc({},on.props,Uc);const Fc=(e,t=[])=>{ac(e)?e.forEach((e=>e(...t))):e&&e(...t)},Vc=e=>!!e&&(ac(e)?e.some((e=>e.length>1)):e.length>1);function Wc(e){return bc(e)}function Hc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Gc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Yc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let qc=0;function Zc(e,t,r,o){const i=e._endId=++qc,l=()=>{i===e._endId&&o()};if(r)return setTimeout(l,r);const{type:n,timeout:a,propCount:s}=function(e,t){const r=window.getComputedStyle(e),o=e=>(r[e]||"").split(", "),i=o("transitionDelay"),l=o("transitionDuration"),n=Qc(i,l),a=o("animationDelay"),s=o("animationDuration"),c=Qc(a,s);let d=null,p=0,u=0;t===Bc?n>0&&(d=Bc,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?Bc:"animation":null,u=d?d===Bc?l.length:s.length:0);const h=d===Bc&&/\b(transform|all)(,|$)/.test(r.transitionProperty);return{type:d,timeout:p,propCount:u,hasTransform:h}}(e,t);if(!n)return o();const c=n+"end";let d=0;const p=()=>{e.removeEventListener(c,u),l()},u=t=>{t.target===e&&++d>=s&&p()};setTimeout((()=>{dXc(t)+Xc(e[r]))))}function Xc(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const Kc=e=>{const t=e.props["onUpdate:modelValue"];return ac(t)?e=>((e,t)=>{for(let r=0;r{if(t.target.composing)return;let o=e.value;r?o=o.trim():l&&(o=bc(o)),e._assign(o)})),r&&Dc(e,"change",(()=>{e.value=e.value.trim()})),t||(Dc(e,"compositionstart",Jc),Dc(e,"compositionend",$c),Dc(e,"change",$c))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:o,number:i}},l){if(e._assign=Kc(l),e.composing)return;if(document.activeElement===e){if(r)return;if(o&&e.value.trim()===t)return;if((i||"number"===e.type)&&bc(e.value)===t)return}const n=null==t?"":t;e.value!==n&&(e.value=n)}},td={created(e,{value:t},r){e.checked=ic(t,r.props.value),e._assign=Kc(r),Dc(e,"change",(()=>{e._assign(function(e){return"_value"in e?e._value:e.value}(e))}))},beforeUpdate(e,{value:t,oldValue:r},o){e._assign=Kc(o),t!==r&&(e.checked=ic(t,o.props.value))}};const rd=["ctrl","shift","alt","meta"],od={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)=>rd.some((r=>e[`${r}Key`]&&!t.includes(r)))},id=(e,t)=>(r,...o)=>{for(let e=0;er=>{if(!("key"in r))return;const o=gc(r.key);return t.some((e=>e===o||ld[e]===o))?e(r):void 0},ad={beforeMount(e,{value:t},{transition:r}){e._vod="none"===e.style.display?"":e.style.display,r&&t?r.beforeEnter(e):sd(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),sd(e,!0),o.enter(e)):o.leave(e,(()=>{sd(e,!1)})):sd(e,t))},beforeUnmount(e,{value:t}){sd(e,t)}};function sd(e,t){e.style.display=t?e._vod:"none"}const cd=nc({patchProp:(e,t,r,o,i=!1,l,n,a,s)=>{"class"===t?function(e,t,r){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,r){const o=e.style,i=cc(r);if(r&&!i){for(const e in r)wc(o,e,r[e]);if(t&&!cc(t))for(const e in t)null==r[e]&&wc(o,e,"")}else{const l=o.display;i?t!==r&&(o.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=l)}}(e,r,o):(e=>lc.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||Mc(e,t,0,o,n):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,r,o){if(o)return"innerHTML"===t||"textContent"===t||!(!(t in e)||!Oc.test(t)||(i=r,"function"!=typeof i));var i;if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Oc.test(t)&&cc(r))return!1;return t in e}(e,t,o,i))?function(e,t,r,o,i,l,n){if("innerHTML"===t||"textContent"===t)return o&&n(o,i,l),void(e[t]=null==r?"":r);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=r;const o=null==r?"":r;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==r&&e.removeAttribute(t))}if(""===r||null==r){const o=typeof e[t];if("boolean"===o)return void(e[t]=oc(r));if(null==r&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(a){}return void e.removeAttribute(t)}}try{e[t]=r}catch(s){}}(e,t,o,l,n,a,s):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,r,o,i){if(o&&t.startsWith("xlink:"))null==r?e.removeAttributeNS(Ec,t.slice(6,t.length)):e.setAttributeNS(Ec,t,r);else{const o=rc(t);null==r||o&&!oc(r)?e.removeAttribute(t):e.setAttribute(t,o?"":r)}}(e,t,o,i))}},yc);let dd;const pd=(...e)=>{(dd||(dd=aa(cd))).render(...e)};var ud="object"==typeof global&&global&&global.Object===Object&&global,hd="object"==typeof self&&self&&self.Object===Object&&self,fd=ud||hd||Function("return this")(),gd=fd.Symbol,md=Object.prototype,bd=md.hasOwnProperty,vd=md.toString,_d=gd?gd.toStringTag:void 0;var yd=Object.prototype.toString;var xd=gd?gd.toStringTag:void 0;function wd(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xd&&xd in Object(e)?function(e){var t=bd.call(e,_d),r=e[_d];try{e[_d]=void 0;var o=!0}catch(l){}var i=vd.call(e);return o&&(t?e[_d]=r:delete e[_d]),i}(e):function(e){return yd.call(e)}(e)}function kd(e){return null!=e&&"object"==typeof e}function Cd(e){return"symbol"==typeof e||kd(e)&&"[object Symbol]"==wd(e)}var Ed=Array.isArray,Td=gd?gd.prototype:void 0,Sd=Td?Td.toString:void 0;function Ad(e){if("string"==typeof e)return e;if(Ed(e))return function(e,t){for(var r=-1,o=null==e?0:e.length,i=Array(o);++r-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var op=Object.prototype;function ip(e){return kd(e)&&"[object Arguments]"==wd(e)}var lp=Object.prototype,np=lp.hasOwnProperty,ap=lp.propertyIsEnumerable,sp=ip(function(){return arguments}())?ip:function(e){return kd(e)&&np.call(e,"callee")&&!ap.call(e,"callee")};var cp="object"==typeof exports&&exports&&!exports.nodeType&&exports,dp=cp&&"object"==typeof module&&module&&!module.nodeType&&module,pp=dp&&dp.exports===cp?fd.Buffer:void 0,up=(pp?pp.isBuffer:void 0)||function(){return!1},hp={};hp["[object Float32Array]"]=hp["[object Float64Array]"]=hp["[object Int8Array]"]=hp["[object Int16Array]"]=hp["[object Int32Array]"]=hp["[object Uint8Array]"]=hp["[object Uint8ClampedArray]"]=hp["[object Uint16Array]"]=hp["[object Uint32Array]"]=!0,hp["[object Arguments]"]=hp["[object Array]"]=hp["[object ArrayBuffer]"]=hp["[object Boolean]"]=hp["[object DataView]"]=hp["[object Date]"]=hp["[object Error]"]=hp["[object Function]"]=hp["[object Map]"]=hp["[object Number]"]=hp["[object Object]"]=hp["[object RegExp]"]=hp["[object Set]"]=hp["[object String]"]=hp["[object WeakMap]"]=!1;var fp,gp="object"==typeof exports&&exports&&!exports.nodeType&&exports,mp=gp&&"object"==typeof module&&module&&!module.nodeType&&module,bp=mp&&mp.exports===gp&&ud.process,vp=function(){try{var e=mp&&mp.require&&mp.require("util").types;return e||bp&&bp.binding&&bp.binding("util")}catch(t){}}(),_p=vp&&vp.isTypedArray,yp=_p?(fp=_p,function(e){return fp(e)}):function(e){return kd(e)&&rp(e.length)&&!!hp[wd(e)]},xp=Object.prototype.hasOwnProperty;function wp(e,t){var r=Ed(e),o=!r&&sp(e),i=!r&&!o&&up(e),l=!r&&!o&&!i&&yp(e),n=r||o||i||l,a=n?function(e,t){for(var r=-1,o=Array(e);++r-1},zp.prototype.set=function(e,t){var r=this.__data__,o=Lp(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};var Rp=Kd(fd,"Map");function Np(e,t){var r,o,i=e.__data__;return("string"==(o=typeof(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Bp(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 cu:void 0;for(l.set(e,t),l.set(t,e);++p=t||r<0||p&&e-c>=l}function m(){var e=xu();if(g(e))return b(e);a=setTimeout(m,function(e){var r=t-(e-s);return p?ku(r,l-(e-c)):r}(e))}function b(e){return a=void 0,u&&o?h(e):(o=i=void 0,n)}function v(){var e=xu(),r=g(e);if(o=arguments,i=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=Nd(t)||0,Md(r)&&(d=!!r.leading,l=(p="maxWait"in r)?wu(Nd(r.maxWait)||0,t):l,u="trailing"in r?!!r.trailing:u),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=s=i=a=void 0},v.flush=function(){return void 0===a?n:b(xu())},v}function Eu(e){for(var t=-1,r=null==e?0:e.length,o={};++to=>{const i=null==e?void 0:e(o);if(!1===r||!i)return null==t?void 0:t(o)};var Pu;const Iu="undefined"!=typeof window,Du=e=>"boolean"==typeof e,Mu=e=>"number"==typeof e,Lu=()=>{};function Ou(e){return"function"==typeof e?e():qi(e)}function zu(e){return!!yo&&(ko(e),!0)}function Ru(e,t,r={}){const{immediate:o=!0}=r,i=Vi(!1);let l=null;function n(){l&&(clearTimeout(l),l=null)}function a(){i.value=!1,n()}function s(...r){n(),i.value=!0,l=setTimeout((()=>{i.value=!1,l=null,e(...r)}),Ou(t))}return o&&(i.value=!0,Iu&&s()),zu(a),{isPending:i,start:s,stop:a}}function Nu(e){var t;const r=Ou(e);return null!=(t=null==r?void 0:r.$el)?t:r}Iu&&(null==(Pu=null==window?void 0:window.navigator)?void 0:Pu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Bu=Iu?window:void 0;function ju(...e){let t,r,o,i;if("string"==typeof e[0]?([r,o,i]=e,t=Bu):[t,r,o,i]=e,!t)return Lu;let l=Lu;const n=Ys((()=>Nu(t)),(e=>{l(),e&&(e.addEventListener(r,o,i),l=()=>{e.removeEventListener(r,o,i),l=Lu})}),{immediate:!0,flush:"post"}),a=()=>{n(),l()};return zu(a),a}function Uu(e,t=!1){const r=Vi(),o=()=>r.value=Boolean(e());return o(),function(e,t=!0){is()?xn(e):t?e():Rs(e)}(o,t),r}const Fu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vu="__vueuse_ssr_handlers__";Fu[Vu]=Fu[Vu]||{},Fu[Vu];var Wu,Hu,Gu=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable;function Zu(e,t,r={}){const o=r,{window:i=Bu}=o,l=((e,t)=>{var r={};for(var o in e)Yu.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&Gu)for(var o of Gu(e))t.indexOf(o)<0&&qu.call(e,o)&&(r[o]=e[o]);return r})(o,["window"]);let n;const a=Uu((()=>i&&"ResizeObserver"in i)),s=()=>{n&&(n.disconnect(),n=void 0)},c=Ys((()=>Nu(e)),(e=>{s(),a.value&&i&&e&&(n=new ResizeObserver(t),n.observe(e,l))}),{immediate:!0,flush:"post"}),d=()=>{s(),c()};return zu(d),{isSupported:a,stop:d}}(Hu=Wu||(Wu={})).UP="UP",Hu.RIGHT="RIGHT",Hu.DOWN="DOWN",Hu.LEFT="LEFT",Hu.NONE="NONE";var Qu=Object.defineProperty,Xu=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,$u=(e,t,r)=>t in e?Qu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;((e,t)=>{for(var r in t||(t={}))Ku.call(t,r)&&$u(e,r,t[r]);if(Xu)for(var r of Xu(t))Ju.call(t,r)&&$u(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 eh=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}},th=()=>{},rh=Object.prototype.hasOwnProperty,oh=(e,t)=>rh.call(e,t),ih=Array.isArray,lh=e=>"function"==typeof e,nh=e=>"string"==typeof e,ah=e=>null!==e&&"object"==typeof e,sh=e=>ah(e)&&lh(e.then)&&lh(e.catch),ch=Object.prototype.toString,dh=e=>(e=>ch.call(e))(e).slice(8,-1),ph=/-(\w)/g,uh=(e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))})((e=>e.replace(ph,((e,t)=>t?t.toUpperCase():"")))),hh=e=>void 0===e,fh=e=>"undefined"!=typeof Element&&e instanceof Element,gh=e=>Object.keys(e);class mh extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function bh(e,t){throw new mh(`[${e}] ${t}`)}const vh=(e="")=>e.split(" ").filter((e=>!!e.trim())),_h=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function yh(e,t="px"){return e?nh(e)?e:Mu(e)?`${e}${t}`:void 0:""}let xh; /*! Element Plus Icons Vue v2.0.9 */ var wh=(e,t)=>{let r=e.__vccOpts||e;for(let[o,i]of t)r[o]=i;return r},kh={name:"ArrowDown"},Ch={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Eh=[Ba("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var Th=wh(kh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Ch,Eh)}],["__file","arrow-down.vue"]]),Sh={name:"ArrowRight"},Ah={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ph=[Ba("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Ih=wh(Sh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Ah,Ph)}],["__file","arrow-right.vue"]]),Dh={name:"ArrowUp"},Mh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Lh=[Ba("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1)];var Oh=wh(Dh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Mh,Lh)}],["__file","arrow-up.vue"]]),zh={name:"CircleCheck"},Rh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nh=[Ba("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ba("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1)];var Bh=wh(zh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Rh,Nh)}],["__file","circle-check.vue"]]),jh={name:"CircleClose"},Uh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Fh=[Ba("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Ba("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)];var Vh=wh(jh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Uh,Fh)}],["__file","circle-close.vue"]]),Wh={name:"Close"},Hh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gh=[Ba("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var Yh=wh(Wh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Hh,Gh)}],["__file","close.vue"]]),qh={name:"Delete"},Zh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Qh=[Ba("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var Xh=wh(qh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Zh,Qh)}],["__file","delete.vue"]]),Kh={name:"Edit"},Jh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$h=[Ba("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),Ba("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)];var ef=wh(Kh,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",Jh,$h)}],["__file","edit.vue"]]),tf={name:"Hide"},rf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},of=[Ba("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),Ba("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1)];var lf=wh(tf,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",rf,of)}],["__file","hide.vue"]]),nf={name:"Loading"},af={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sf=[Ba("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)];var cf=wh(nf,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",af,sf)}],["__file","loading.vue"]]),df={name:"Minus"},pf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uf=[Ba("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)];var hf=wh(df,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",pf,uf)}],["__file","minus.vue"]]),ff={name:"Plus"},gf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mf=[Ba("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1)];var bf=wh(ff,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",gf,mf)}],["__file","plus.vue"]]),vf={name:"Setting"},_f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yf=[Ba("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)];var xf=wh(vf,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",_f,yf)}],["__file","setting.vue"]]),wf={name:"View"},kf={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Cf=[Ba("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)];var Ef=wh(wf,[["render",function(e,t,r,o,i,l){return Sa(),Da("svg",kf,Cf)}],["__file","view.vue"]]);const Tf=(e,t)=>{if(!ah(e)||ah(r=e)&&r.__epPropKey)return e;var r;const{values:o,required:i,default:l,type:n,validator:a}=e,s={type:n,required:!!i,validator:o||a?r=>{let i=!1,n=[];if(o&&(n=Array.from(o),oh(e,"default")&&n.push(l),i||(i=n.includes(r))),a&&(i||(i=a(r))),!i&&n.length>0){const e=[...new Set(n)].map((e=>JSON.stringify(e))).join(", ");bs(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(r)}.`)}return i}:void 0,__epPropKey:!0};return oh(e,"default")&&(s.default=l),s},Sf=e=>Eu(Object.entries(e).map((([e,t])=>[e,Tf(t,e)]))),Af=[String,Object,Function],Pf={Close:Yh},If={validating:cf,success:Bh,error:Vh},Df=(e,t)=>{if(e.install=r=>{for(const o of[e,...Object.values(null!=t?t:{})])r.component(o.name,o)},t)for(const[r,o]of Object.entries(t))e[r]=o;return e},Mf=e=>(e.install=th,e),Lf="Tab",Of="Enter",zf="Space",Rf="Escape",Nf="Backspace",Bf=["","default","small","large"],jf={large:40,default:32,small:24},Uf=e=>["",...Bf].includes(e);var Ff=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ff||{});const Vf=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Wf=()=>Math.floor(1e4*Math.random()),Hf=["class","style"],Gf=/^on[A-Z]/,Yf=Symbol("buttonGroupContextKey"),qf=Symbol("collapseContextKey"),Zf=Symbol(),Qf=Symbol("dialogInjectionKey"),Xf=Symbol("formContextKey"),Kf=Symbol("formItemContextKey"),Jf=Symbol("radioGroupKey"),$f=Symbol("scrollbarContextKey"),eg=Symbol("popper"),tg=Symbol("popperContent"),rg=e=>{const t=is();return el((()=>{var r,o;return null!=(o=(null==(r=t.proxy)?void 0:r.$props)[e])?o:void 0}))},og=Vi();function ig(e,t){const r=is()?tn(Zf,og):og;return e?el((()=>{var o,i;return null!=(i=null==(o=r.value)?void 0:o[e])?i:t})):r}const lg=(e,t)=>{var r;const o=[...new Set([...gh(e),...gh(t)])],i={};for(const l of o)i[l]=null!=(r=t[l])?r:e[l];return i},ng=Tf({type:String,values:Bf,required:!1}),ag=(e,t={})=>{const r=Vi(void 0),o=t.prop?r:rg("size"),i=t.global?r:ig("size"),l=t.form?{size:void 0}:tn(Xf,void 0),n=t.formItem?{size:void 0}:tn(Kf,void 0);return el((()=>o.value||qi(e)||(null==n?void 0:n.size)||(null==l?void 0:l.size)||i.value||""))},sg=e=>{const t=rg("disabled"),r=tn(Xf,void 0);return el((()=>t.value||qi(e)||(null==r?void 0:r.disabled)||!1))},cg=({from:e,replacement:t,scope:r,version:o,ref:i,type:l="API"},n)=>{Ys((()=>qi(n)),(e=>{}),{immediate:!0})},dg=(e,t,r)=>{let o={offsetX:0,offsetY:0};const i=t=>{const r=t.clientX,i=t.clientY,{offsetX:l,offsetY:n}=o,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-i,g),b);o={offsetX:a,offsetY:s},e.value.style.transform=`translate(${yh(a)}, ${yh(s)})`},_=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",_)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};xn((()=>{Hs((()=>{r.value?t.value&&e.value&&t.value.addEventListener("mousedown",i):l()}))})),Cn((()=>{l()}))},pg=(e,t,r,o,i)=>{let l=`${e}-${t}`;return r&&(l+=`-${r}`),o&&(l+=`__${o}`),i&&(l+=`--${i}`),l},ug=e=>{const t=ig("namespace","el");return{namespace:t,b:(r="")=>pg(t.value,e,r,"",""),e:r=>r?pg(t.value,e,"",r,""):"",m:r=>r?pg(t.value,e,"","",r):"",be:(r,o)=>r&&o?pg(t.value,e,r,o,""):"",em:(r,o)=>r&&o?pg(t.value,e,"",r,o):"",bm:(r,o)=>r&&o?pg(t.value,e,r,"",o):"",bem:(r,o,i)=>r&&o&&i?pg(t.value,e,r,o,i):"",is:(e,...t)=>{const r=!(t.length>=1)||t[0];return e&&r?`is-${e}`:""},cssVar:e=>{const r={};for(const o in e)e[o]&&(r[`--${t.value}-${o}`]=e[o]);return r},cssVarName:e=>`--${t.value}-${e}`,cssVarBlock:r=>{const o={};for(const i in r)r[i]&&(o[`--${t.value}-${e}-${i}`]=r[i]);return o},cssVarBlockName:r=>`--${t.value}-${e}-${r}`}},hg={prefix:Math.floor(1e4*Math.random()),current:0},fg=Symbol("elIdInjection"),gg=e=>{const t=tn(fg,hg),r=ig("namespace","el");return el((()=>qi(e)||`${r.value}-id-${t.prefix}-${t.current++}`))},mg=()=>({form:tn(Xf,void 0),formItem:tn(Kf,void 0)}),bg=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:o})=>{r||(r=Vi(!1)),o||(o=Vi(!1));const i=Vi();let l;const n=el((()=>{var r;return!!(!e.label&&t&&t.inputIds&&(null==(r=t.inputIds)?void 0:r.length)<=1)}));return xn((()=>{l=Ys([Ji(e,"id"),r],(([e,r])=>{const l=null!=e?e:r?void 0:gg().value;l!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==o?void 0:o.value)||r||!l||t.addInputId(l)),i.value=l)}),{immediate:!0})})),En((()=>{l&&l(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)})),{isLabeledByFormItem:n,inputId:i}};var vg={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 _g=e=>(t,r)=>yg(t,r,qi(e)),yg=(e,t,r)=>Gp(r,e,e).replace(/\{(\w+)\}/g,((e,r)=>{var o;return`${null!=(o=null==t?void 0:t[r])?o:`{${r}}`}`})),xg=()=>{const e=ig("locale");return(e=>({lang:el((()=>qi(e).name)),locale:Fi(e)?e:Vi(e),t:_g(e)}))(el((()=>e.value||vg)))},wg=e=>{Fi(e)||bh("[useLockscreen]","You need to pass a ref param to this function");const t=ug("popup"),r=el((()=>t.bm("parent","hidden")));if(!Iu||_h(document.body,r.value))return;let o=0,i=!1,l="0";const n=()=>{var e,t;e=document.body,t=r.value,e&&t.trim()&&e.classList.remove(...vh(t)),i&&(document.body.style.width=l)};Ys(e,(e=>{if(!e)return void n();i=!_h(document.body,r.value),i&&(l=document.body.style.width),o=(e=>{var t;if(!Iu)return 0;if(void 0!==xh)return xh;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 o=r.offsetWidth;r.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",r.appendChild(i);const l=i.offsetWidth;return null==(t=r.parentNode)||t.removeChild(r),xh=o-l,xh})(t.namespace.value);const a=document.documentElement.clientHeight{var r;if(!Iu||!e||!t)return"";let o=uh(t);"float"===o&&(o="cssFloat");try{const t=e.style[o];if(t)return t;const i=null==(r=document.defaultView)?void 0:r.getComputedStyle(e,"");return i?i[o]:""}catch(i){return e.style[o]}})(document.body,"overflowY");var c,d;o>0&&(a||"scroll"===s)&&i&&(document.body.style.width=`calc(100% - ${o}px)`),c=document.body,d=r.value,c&&d.trim()&&c.classList.add(...vh(d))})),ko((()=>n()))},kg=Tf({type:Boolean,default:null}),Cg=Tf({type:Function}),Eg=e=>{if(!e)return{onClick:th,onMousedown:th,onMouseup:th};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{r=e.target===e.currentTarget}}};let Tg=[];const Sg=e=>{const t=e;t.key===Rf&&Tg.forEach((e=>e(t)))};let Ag;const Pg=`el-popper-container-${Wf()}`,Ig=`#${Pg}`,Dg=()=>{yn((()=>{Iu&&(Ag&&document.body.querySelector(Ig)||(Ag=(()=>{const e=document.createElement("div");return e.id=Pg,document.body.appendChild(e),e})()))}))},Mg=Sf({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),Lg=({showAfter:e,hideAfter:t,open:r,close:o})=>{const{registerTimeout:i}=function(){let e;const t=()=>window.clearTimeout(e);return zu((()=>t())),{registerTimeout:(r,o)=>{t(),e=window.setTimeout(r,o)},cancelTimeout:t}}();return{onOpen:t=>{i((()=>{r(t)}),qi(e))},onClose:e=>{i((()=>{o(e)}),qi(t))}}},Og=Symbol("elForwardRef"),zg=Vi(0),Rg=()=>{const e=ig("zIndex",2e3),t=el((()=>e.value+zg.value));return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(zg.value++,t.value)}};var Ng=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r};const Bg=Sf({size:{type:[Number,String]},color:{type:String}});const jg=Df(Ng(pn(d(c({},{name:"ElIcon",inheritAttrs:!1}),{props:Bg,setup(e){const t=e,r=ug("icon"),o=el((()=>{const{size:e,color:r}=t;return e||r?{fontSize:hh(e)?void 0:yh(e),"--color":r}:{}}));return(e,t)=>(Sa(),Da("i",Ya({class:qi(r).b(),style:qi(o)},e.$attrs),[Xa(e.$slots,"default")],16))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]));let Ug;const Fg=["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 Vg(e,t=1,r){var o;Ug||(Ug=document.createElement("textarea"),document.body.appendChild(Ug));const{paddingSize:i,borderSize:l,boxSizing:n,contextStyle:a}=function(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Fg.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:o,borderSize:i,boxSizing:r}}(e);Ug.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`),Ug.value=e.value||e.placeholder||"";let s=Ug.scrollHeight;const c={};"border-box"===n?s+=l:"content-box"===n&&(s-=i),Ug.value="";const d=Ug.scrollHeight-i;if(Mu(t)){let e=d*t;"border-box"===n&&(e=e+i+l),s=Math.max(e,s),c.minHeight=`${e}px`}if(Mu(r)){let e=d*r;"border-box"===n&&(e=e+i+l),s=Math.min(e,s)}return c.height=`${s}px`,null==(o=Ug.parentNode)||o.removeChild(Ug),Ug=void 0,c}const Wg=Sf({id:{type:String,default:void 0},size:ng,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Af},prefixIcon:{type:Af},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})}}),Hg={"update:modelValue":e=>nh(e),input:e=>nh(e),change:e=>nh(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},Gg=["role"],Yg=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],qg=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];const Zg=Df(Ng(pn(d(c({},{name:"ElInput",inheritAttrs:!1}),{props:Wg,emits:Hg,setup(e,{expose:t,emit:r}){const o=e,i={suffix:"append",prefix:"prepend"},l=is(),n=Js().attrs,a=Ks(),s=el((()=>{const e={};return"combobox"===o.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,o=el((()=>((null==r?void 0:r.value)||[]).concat(Hf))),i=is();return el(i?()=>{var e;return Eu(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!(o.value.includes(e)||t&&Gf.test(e)))))}:()=>({}))})({excludeKeys:el((()=>Object.keys(s.value)))}),{form:p,formItem:u}=mg(),{inputId:h}=bg(o,{formItemContext:u}),f=ag(),g=sg(),m=ug("input"),b=ug("textarea"),v=Wi(),_=Wi(),y=Vi(!1),x=Vi(!1),w=Vi(!1),k=Vi(!1),C=Vi(),E=Wi(o.inputStyle),T=el((()=>v.value||_.value)),S=el((()=>{var e;return null!=(e=null==p?void 0:p.statusIcon)&&e})),A=el((()=>(null==u?void 0:u.validateState)||"")),P=el((()=>A.value&&If[A.value])),I=el((()=>k.value?Ef:lf)),D=el((()=>[n.style,o.inputStyle])),M=el((()=>[o.inputStyle,E.value,{resize:o.resize}])),L=el((()=>Su(o.modelValue)?"":String(o.modelValue))),O=el((()=>o.clearable&&!g.value&&!o.readonly&&!!L.value&&(y.value||x.value))),z=el((()=>o.showPassword&&!g.value&&!o.readonly&&!!L.value&&(!!L.value||y.value))),R=el((()=>o.showWordLimit&&!!d.value.maxlength&&("text"===o.type||"textarea"===o.type)&&!g.value&&!o.readonly&&!o.showPassword)),N=el((()=>Array.from(L.value).length)),B=el((()=>!!R.value&&N.value>Number(d.value.maxlength))),j=el((()=>!!a.suffix||!!o.suffixIcon||O.value||o.showPassword||R.value||!!A.value&&S.value)),[U,F]=function(e){const t=Vi();return[function(){if(null==e.value)return;const{selectionStart:r,selectionEnd:o,value:i}=e.value;if(null==r||null==o)return;const l=i.slice(0,Math.max(0,r)),n=i.slice(Math.max(0,o));t.value={selectionStart:r,selectionEnd:o,value:i,beforeTxt:l,afterTxt:n}},function(){if(null==e.value||null==t.value)return;const{value:r}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:l}=t.value;if(null==o||null==i||null==l)return;let n=r.length;if(r.endsWith(i))n=r.length-i.length;else if(r.startsWith(o))n=o.length;else{const e=o[l-1],t=r.indexOf(e,l-1);-1!==t&&(n=t+1)}e.value.setSelectionRange(n,n)}]}(v);Zu(_,(e=>{if(!R.value||"both"!==o.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}=o;if(Iu&&"textarea"===e)if(t){const e=ah(t)?t.minRows:void 0,r=ah(t)?t.maxRows:void 0;E.value=c({},Vg(_.value,e,r))}else E.value={minHeight:Vg(_.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 o=i[e];a[o]?r.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${m.be("group",o)}`).offsetWidth}px)`:r.removeAttribute("style")},G=()=>{H("prefix"),H("suffix")},Y=async e=>{U();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t,t=o.formatter(t)),w.value||(t!==L.value?(r("update:modelValue",t),r("input",t),await Rs(),W(),F()):W())},q=e=>{r("change",e.target.value)},Z=e=>{r("compositionstart",e),w.value=!0},Q=e=>{var t;r("compositionupdate",e);const o=null==(t=e.target)?void 0:t.value,i=o[o.length-1]||"";w.value=!Vf(i)},X=e=>{r("compositionend",e),w.value&&(w.value=!1,Y(e))},K=()=>{k.value=!k.value,J()},J=async()=>{var e;await Rs(),null==(e=T.value)||e.focus()},$=e=>{y.value=!0,r("focus",e)},ee=e=>{var t;y.value=!1,r("blur",e),o.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)},oe=e=>{r("keydown",e)},ie=()=>{r("update:modelValue",""),r("change",""),r("clear"),r("input","")};return Ys((()=>o.modelValue),(()=>{var e;Rs((()=>V())),o.validateEvent&&(null==(e=null==u?void 0:u.validate)||e.call(u,"change").catch((e=>{})))})),Ys(L,(()=>W())),Ys((()=>o.type),(async()=>{await Rs(),W(),V(),G()})),xn((async()=>{!o.formatter&&o.parser,W(),G(),await Rs(),V()})),kn((async()=>{await Rs(),G()})),t({input:v,textarea:_,ref:T,textareaStyle:M,autosize:Ji(o,"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:ie,resizeTextarea:V}),(e,t)=>ea((Sa(),Da("div",Ya(qi(s),{class:["textarea"===e.type?qi(b).b():qi(m).b(),qi(m).m(qi(f)),qi(m).is("disabled",qi(g)),qi(m).is("exceed",qi(B)),{[qi(m).b("group")]:e.$slots.prepend||e.$slots.append,[qi(m).bm("group","append")]:e.$slots.append,[qi(m).bm("group","prepend")]:e.$slots.prepend,[qi(m).m("prefix")]:e.$slots.prefix||e.prefixIcon,[qi(m).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[qi(m).bm("suffix","password-clear")]:qi(O)&&qi(z)},e.$attrs.class],style:qi(D),role:e.containerRole,onMouseenter:re,onMouseleave:te}),[Va(" input "),"textarea"!==e.type?(Sa(),Da(xa,{key:0},[Va(" prepend slot "),e.$slots.prepend?(Sa(),Da("div",{key:0,class:nl(qi(m).be("group","prepend"))},[Xa(e.$slots,"prepend")],2)):Va("v-if",!0),Ba("div",{class:nl([qi(m).e("wrapper"),qi(m).is("focus",y.value)])},[Va(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Sa(),Da("span",{key:0,class:nl(qi(m).e("prefix"))},[Ba("span",{class:nl(qi(m).e("prefix-inner"))},[Xa(e.$slots,"prefix"),e.prefixIcon?(Sa(),Ma(qi(jg),{key:0,class:nl(qi(m).e("icon"))},{default:Ql((()=>[(Sa(),Ma(ba(e.prefixIcon)))])),_:1},8,["class"])):Va("v-if",!0)],2)],2)):Va("v-if",!0),Ba("input",Ya({id:qi(h),ref_key:"input",ref:v,class:qi(m).e("inner")},qi(d),{type:e.showPassword?k.value?"text":"password":e.type,disabled:qi(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:Q,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:oe}),null,16,Yg),Va(" suffix slot "),qi(j)?(Sa(),Da("span",{key:1,class:nl(qi(m).e("suffix"))},[Ba("span",{class:nl(qi(m).e("suffix-inner"))},[qi(O)&&qi(z)&&qi(R)?Va("v-if",!0):(Sa(),Da(xa,{key:0},[Xa(e.$slots,"suffix"),e.suffixIcon?(Sa(),Ma(qi(jg),{key:0,class:nl(qi(m).e("icon"))},{default:Ql((()=>[(Sa(),Ma(ba(e.suffixIcon)))])),_:1},8,["class"])):Va("v-if",!0)],64)),qi(O)?(Sa(),Ma(qi(jg),{key:1,class:nl([qi(m).e("icon"),qi(m).e("clear")]),onMousedown:id(qi(th),["prevent"]),onClick:ie},{default:Ql((()=>[ja(qi(Vh))])),_:1},8,["class","onMousedown"])):Va("v-if",!0),qi(z)?(Sa(),Ma(qi(jg),{key:2,class:nl([qi(m).e("icon"),qi(m).e("password")]),onClick:K},{default:Ql((()=>[(Sa(),Ma(ba(qi(I))))])),_:1},8,["class"])):Va("v-if",!0),qi(R)?(Sa(),Da("span",{key:3,class:nl(qi(m).e("count"))},[Ba("span",{class:nl(qi(m).e("count-inner"))},al(qi(N))+" / "+al(qi(d).maxlength),3)],2)):Va("v-if",!0),qi(A)&&qi(P)&&qi(S)?(Sa(),Ma(qi(jg),{key:4,class:nl([qi(m).e("icon"),qi(m).e("validateIcon"),qi(m).is("loading","validating"===qi(A))])},{default:Ql((()=>[(Sa(),Ma(ba(qi(P))))])),_:1},8,["class"])):Va("v-if",!0)],2)],2)):Va("v-if",!0)],2),Va(" append slot "),e.$slots.append?(Sa(),Da("div",{key:1,class:nl(qi(m).be("group","append"))},[Xa(e.$slots,"append")],2)):Va("v-if",!0)],64)):(Sa(),Da(xa,{key:1},[Va(" textarea "),Ba("textarea",Ya({id:qi(h),ref_key:"textarea",ref:_,class:qi(b).e("inner")},qi(d),{tabindex:e.tabindex,disabled:qi(g),readonly:e.readonly,autocomplete:e.autocomplete,style:qi(M),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:Z,onCompositionupdate:Q,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:oe}),null,16,qg),qi(R)?(Sa(),Da("span",{key:0,style:rl(C.value),class:nl(qi(m).e("count"))},al(qi(N))+" / "+al(qi(d).maxlength),7)):Va("v-if",!0)],64))],16,Gg)),[[ad,"hidden"!==e.type]])}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),Qg={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 Xg=Ng(pn({__name:"thumb",props:Sf({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),setup(e){const t=e,r=tn($f),o=ug("scrollbar");r||bh("Thumb","can not inject scrollbar context");const i=Vi(),l=Vi(),n=Vi({}),a=Vi(!1);let s=!1,c=!1,d=Iu?document.onselectstart:null;const p=el((()=>Qg[t.vertical?"vertical":"horizontal"])),u=el((()=>(({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}))({size:t.size,move:t.move,bar:p.value}))),h=el((()=>i.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||!i.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/i.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(!i.value||!l.value)return;if(!1===s)return;const t=n.value[p.value.axis];if(!t)return;const o=100*(-1*(i.value.getBoundingClientRect()[p.value.direction]-e[p.value.client])-(l.value[p.value.offset]-t))*h.value/i.value[p.value.offset];r.wrapElement[p.value.scroll]=o*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)};Cn((()=>{_(),document.removeEventListener("mouseup",v)}));const _=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return ju(Ji(r,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),ju(Ji(r,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=s})),(e,t)=>(Sa(),Ma(jc,{name:qi(o).b("fade"),persisted:""},{default:Ql((()=>[ea(Ba("div",{ref_key:"instance",ref:i,class:nl([qi(o).e("bar"),qi(o).is(qi(p).key)]),onMousedown:g},[Ba("div",{ref_key:"thumb",ref:l,class:nl(qi(o).e("thumb")),style:rl(qi(u)),onMousedown:f},null,38)],34),[[ad,e.always||a.value]])])),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);var Kg=Ng(pn({__name:"bar",props:Sf({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(e,{expose:t}){const r=e,o=Vi(0),i=Vi(0);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,l=e.offsetWidth-4;i.value=100*e.scrollTop/t*r.ratioY,o.value=100*e.scrollLeft/l*r.ratioX}}}),(e,t)=>(Sa(),Da(xa,null,[ja(Xg,{move:o.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),ja(Xg,{move:i.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 Jg=Sf({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),$g={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Mu)};const em=Df(Ng(pn(d(c({},{name:"ElScrollbar"}),{props:Jg,emits:$g,setup(e,{expose:t,emit:r}){const o=e,i=ug("scrollbar");let l,n;const a=Vi(),s=Vi(),c=Vi(),d=Vi("0"),p=Vi("0"),u=Vi(),h=Vi(1),f=Vi(1),g=el((()=>{const e={};return o.height&&(e.height=yh(o.height)),o.maxHeight&&(e.maxHeight=yh(o.maxHeight)),[o.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,i=t**2/s.value.scrollWidth,l=Math.max(r,o.minSize),n=Math.max(i,o.minSize);h.value=r/(e-r)/(l/(e-l)),f.value=i/(t-i)/(n/(t-n)),p.value=l+4o.noresize),(e=>{e?(null==l||l(),null==n||n()):(({stop:l}=Zu(c,b)),n=ju("resize",b))}),{immediate:!0}),Ys((()=>[o.maxHeight,o.height]),(()=>{o.native||Rs((()=>{var e;b(),s.value&&(null==(e=u.value)||e.handleScroll(s.value))}))})),en($f,Pi({scrollbarElement:a,wrapElement:s})),xn((()=>{o.native||Rs((()=>{b()}))})),kn((()=>b())),t({wrap$:s,update:b,scrollTo:function(e,t){ah(e)?s.value.scrollTo(e):Mu(e)&&Mu(t)&&s.value.scrollTo(e,t)},setScrollTop:e=>{Mu(e)&&(s.value.scrollTop=e)},setScrollLeft:e=>{Mu(e)&&(s.value.scrollLeft=e)},handleScroll:m}),(e,t)=>(Sa(),Da("div",{ref_key:"scrollbar$",ref:a,class:nl(qi(i).b())},[Ba("div",{ref_key:"wrap$",ref:s,class:nl([e.wrapClass,qi(i).e("wrap"),{[qi(i).em("wrap","hidden-default")]:!e.native}]),style:rl(qi(g)),onScroll:m},[(Sa(),Ma(ba(e.tag),{ref_key:"resize$",ref:c,class:nl([qi(i).e("view"),e.viewClass]),style:rl(e.viewStyle)},{default:Ql((()=>[Xa(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?Va("v-if",!0):(Sa(),Ma(Kg,{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"]])),tm=Sf({role:{type:String,values:["dialog","grid","listbox","menu","tooltip","tree"],default:"tooltip"}});var rm=Ng(pn(d(c({},{name:"ElPopperRoot",inheritAttrs:!1}),{props:tm,setup(e,{expose:t}){const r=e,o={triggerRef:Vi(),popperInstanceRef:Vi(),contentRef:Vi(),referenceRef:Vi(),role:el((()=>r.role))};return t(o),en(eg,o),(e,t)=>Xa(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const om=Sf({arrowOffset:{type:Number,default:5}});var im=Ng(pn(d(c({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:om,setup(e,{expose:t}){const r=e,o=ug("popper"),{arrowOffset:i,arrowRef:l}=tn(tg,void 0);return Ys((()=>r.arrowOffset),(e=>{i.value=e})),Cn((()=>{l.value=void 0})),t({arrowRef:l}),(e,t)=>(Sa(),Da("span",{ref_key:"arrowRef",ref:l,class:nl(qi(o).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const lm=pn({name:"ElOnlyChild",setup(e,{slots:t,attrs:r}){var o;const i=tn(Og),l=(n=null!=(o=null==i?void 0:i.setForwardRef)?o:th,{mounted(e){n(e)},updated(e){n(e)},unmounted(){n(null)}});var n;return()=>{var e;const o=null==(e=t.default)?void 0:e.call(t,r);if(!o)return null;if(o.length>1)return null;const i=nm(o);return i?ea(Ua(i,r),[[l]]):null}}});function nm(e){if(!e)return null;const t=e;for(const r of t){if(ah(r))switch(r.type){case ka:continue;case wa:case"svg":return am(r);case xa:return nm(r.children);default:return r}return am(r)}return null}function am(e){const t=ug("only-child");return ja("span",{class:t.e("content")},[e])}const sm=Sf({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var cm=Ng(pn(d(c({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:sm,setup(e,{expose:t}){const r=e,{role:o,triggerRef:i}=tn(eg,void 0);var l;l=i,en(Og,{setForwardRef:e=>{l.value=e}});const n=el((()=>s.value?r.id:void 0)),a=el((()=>{if(o&&"tooltip"===o.value)return r.open&&r.id?r.id:void 0})),s=el((()=>{if(o&&"tooltip"!==o.value)return o.value})),c=el((()=>s.value?`${r.open}`:void 0));let d;return xn((()=>{Ys((()=>r.virtualRef),(e=>{e&&(i.value=Nu(e))}),{immediate:!0}),Ys((()=>i.value),((e,t)=>{null==d||d(),d=void 0,fh(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((o=>{var i;const l=r[o];l&&(e.addEventListener(o.slice(2).toLowerCase(),l),null==(i=null==t?void 0:t.removeEventListener)||i.call(t,o.slice(2).toLowerCase(),l))})),d=Ys([n,a,s,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((r,o)=>{Su(t[o])?e.removeAttribute(r):e.setAttribute(r,t[o])}))}),{immediate:!0})),fh(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Cn((()=>{null==d||d(),d=void 0})),t({triggerRef:i}),(e,t)=>e.virtualTriggering?Va("v-if",!0):(Sa(),Ma(qi(lm),Ya({key:0},e.$attrs,{"aria-controls":qi(n),"aria-describedby":qi(a),"aria-expanded":qi(c),"aria-haspopup":qi(s)}),{default:Ql((()=>[Xa(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),dm="top",pm="bottom",um="right",hm="left",fm="auto",gm=[dm,pm,um,hm],mm="start",bm="end",vm="viewport",_m="popper",ym=gm.reduce((function(e,t){return e.concat([t+"-"+mm,t+"-"+bm])}),[]),xm=[].concat(gm,[fm]).reduce((function(e,t){return e.concat([t,t+"-"+mm,t+"-"+bm])}),[]),wm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function km(e){return e?(e.nodeName||"").toLowerCase():null}function Cm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Em(e){return e instanceof Cm(e).Element||e instanceof Element}function Tm(e){return e instanceof Cm(e).HTMLElement||e instanceof HTMLElement}function Sm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cm(e).ShadowRoot||e instanceof ShadowRoot)}var Am={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]||{},o=t.attributes[e]||{},i=t.elements[e];!Tm(i)||!km(i)||(Object.assign(i.style,r),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.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 o=t.elements[e],i=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});!Tm(o)||!km(o)||(Object.assign(o.style,l),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Pm(e){return e.split("-")[0]}var Im=Math.max,Dm=Math.min,Mm=Math.round;function Lm(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),o=1,i=1;if(Tm(e)&&t){var l=e.offsetHeight,n=e.offsetWidth;n>0&&(o=Mm(r.width)/n||1),l>0&&(i=Mm(r.height)/l||1)}return{width:r.width/o,height:r.height/i,top:r.top/i,right:r.right/o,bottom:r.bottom/i,left:r.left/o,x:r.left/o,y:r.top/i}}function Om(e){var t=Lm(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function zm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Sm(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Rm(e){return Cm(e).getComputedStyle(e)}function Nm(e){return["table","td","th"].indexOf(km(e))>=0}function Bm(e){return((Em(e)?e.ownerDocument:e.document)||window.document).documentElement}function jm(e){return"html"===km(e)?e:e.assignedSlot||e.parentNode||(Sm(e)?e.host:null)||Bm(e)}function Um(e){return Tm(e)&&"fixed"!==Rm(e).position?e.offsetParent:null}function Fm(e){for(var t=Cm(e),r=Um(e);r&&Nm(r)&&"static"===Rm(r).position;)r=Um(r);return r&&("html"===km(r)||"body"===km(r)&&"static"===Rm(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Tm(e)&&"fixed"===Rm(e).position)return null;var r=jm(e);for(Sm(r)&&(r=r.host);Tm(r)&&["html","body"].indexOf(km(r))<0;){var o=Rm(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}function Vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wm(e,t,r){return Im(e,Dm(t,r))}function Hm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gm(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var Ym={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,i=e.options,l=r.elements.arrow,n=r.modifiersData.popperOffsets,a=Pm(r.placement),s=Vm(a),c=[hm,um].indexOf(a)>=0?"height":"width";if(l&&n){var d=function(e,t){return Hm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gm(e,gm))}(i.padding,r),p=Om(l),u="y"===s?dm:hm,h="y"===s?pm:um,f=r.rects.reference[c]+r.rects.reference[s]-n[s]-r.rects.popper[c],g=n[s]-r.rects.reference[s],m=Fm(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=Wm(_,x,y),k=s;r.modifiersData[o]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||!zm(t.elements.popper,o)||(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qm(e){return e.split("-")[1]}var Zm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qm(e){var t,r=e.popper,o=e.popperRect,i=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"),_=hm,y=dm,x=window;if(c){var w=Fm(r),k="clientHeight",C="clientWidth";if(w===Cm(r)&&("static"!==Rm(w=Bm(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth")),w=w,i===dm||(i===hm||i===um)&&l===bm)y=pm,g-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-o.height,g*=s?1:-1;if(i===hm||(i===dm||i===pm)&&l===bm)_=um,h-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-o.width,h*=s?1:-1}var E,T=Object.assign({position:a},c&&Zm),S=!0===d?function(e){var t=e.x,r=e.y,o=window.devicePixelRatio||1;return{x:Mm(t*o)/o||0,y:Mm(r*o)/o||0}}({x:h,y:g}):{x:h,y:g};return h=S.x,g=S.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 Xm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,i=void 0===o||o,l=r.adaptive,n=void 0===l||l,a=r.roundOffsets,s=void 0===a||a,c={placement:Pm(t.placement),variation:qm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Qm(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,Qm(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:{}},Km={passive:!0};var Jm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,l=void 0===i||i,n=o.resize,a=void 0===n||n,s=Cm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach((function(e){e.addEventListener("scroll",r.update,Km)})),a&&s.addEventListener("resize",r.update,Km),function(){l&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Km)})),a&&s.removeEventListener("resize",r.update,Km)}},data:{}},$m={left:"right",right:"left",bottom:"top",top:"bottom"};function eb(e){return e.replace(/left|right|bottom|top/g,(function(e){return $m[e]}))}var tb={start:"end",end:"start"};function rb(e){return e.replace(/start|end/g,(function(e){return tb[e]}))}function ob(e){var t=Cm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ib(e){return Lm(Bm(e)).left+ob(e).scrollLeft}function lb(e){var t=Rm(e),r=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function nb(e){return["html","body","#document"].indexOf(km(e))>=0?e.ownerDocument.body:Tm(e)&&lb(e)?e:nb(jm(e))}function ab(e,t){var r;void 0===t&&(t=[]);var o=nb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Cm(o),n=i?[l].concat(l.visualViewport||[],lb(o)?o:[]):o,a=t.concat(n);return i?a:a.concat(ab(jm(n)))}function sb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cb(e,t){return t===vm?sb(function(e){var t=Cm(e),r=Bm(e),o=t.visualViewport,i=r.clientWidth,l=r.clientHeight,n=0,a=0;return o&&(i=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(n=o.offsetLeft,a=o.offsetTop)),{width:i,height:l,x:n+ib(e),y:a}}(e)):Em(t)?function(e){var t=Lm(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):sb(function(e){var t,r=Bm(e),o=ob(e),i=null==(t=e.ownerDocument)?void 0:t.body,l=Im(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),n=Im(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+ib(e),s=-o.scrollTop;return"rtl"===Rm(i||r).direction&&(a+=Im(r.clientWidth,i?i.clientWidth:0)-l),{width:l,height:n,x:a,y:s}}(Bm(e)))}function db(e,t,r){var o="clippingParents"===t?function(e){var t=ab(jm(e)),r=["absolute","fixed"].indexOf(Rm(e).position)>=0&&Tm(e)?Fm(e):e;return Em(r)?t.filter((function(e){return Em(e)&&zm(e,r)&&"body"!==km(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),l=i[0],n=i.reduce((function(t,r){var o=cb(e,r);return t.top=Im(o.top,t.top),t.right=Dm(o.right,t.right),t.bottom=Dm(o.bottom,t.bottom),t.left=Im(o.left,t.left),t}),cb(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 pb(e){var t,r=e.reference,o=e.element,i=e.placement,l=i?Pm(i):null,n=i?qm(i):null,a=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(l){case dm:t={x:a,y:r.y-o.height};break;case pm:t={x:a,y:r.y+r.height};break;case um:t={x:r.x+r.width,y:s};break;case hm:t={x:r.x-o.width,y:s};break;default:t={x:r.x,y:r.y}}var c=l?Vm(l):null;if(null!=c){var d="y"===c?"height":"width";switch(n){case mm:t[c]=t[c]-(r[d]/2-o[d]/2);break;case bm:t[c]=t[c]+(r[d]/2-o[d]/2)}}return t}function ub(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,l=r.boundary,n=void 0===l?"clippingParents":l,a=r.rootBoundary,s=void 0===a?vm:a,c=r.elementContext,d=void 0===c?_m:c,p=r.altBoundary,u=void 0!==p&&p,h=r.padding,f=void 0===h?0:h,g=Hm("number"!=typeof f?f:Gm(f,gm)),m=d===_m?"reference":_m,b=e.rects.popper,v=e.elements[u?m:d],_=db(Em(v)?v:v.contextElement||Bm(e.elements.popper),n,s),y=Lm(e.elements.reference),x=pb({reference:y,element:b,strategy:"absolute",placement:i}),w=sb(Object.assign({},b,x)),k=d===_m?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===_m&&E){var T=E[i];Object.keys(C).forEach((function(e){var t=[um,pm].indexOf(e)>=0?1:-1,r=[dm,pm].indexOf(e)>=0?"y":"x";C[e]+=T[r]*t}))}return C}var hb={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=r.mainAxis,l=void 0===i||i,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=Pm(m),v=s||(b===m||!f?[eb(m)]:function(e){if(Pm(e)===fm)return[];var t=eb(e);return[rb(e),t,rb(t)]}(m)),_=[m].concat(v).reduce((function(e,r){return e.concat(Pm(r)===fm?function(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=r.boundary,l=r.rootBoundary,n=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?xm:s,d=qm(o),p=d?a?ym:ym.filter((function(e){return qm(e)===d})):gm,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]=ub(e,{placement:r,boundary:i,rootBoundary:l,padding:n})[Pm(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],S=Pm(T),A=qm(T)===mm,P=[dm,pm].indexOf(S)>=0,I=P?"width":"height",D=ub(t,{placement:T,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),M=P?A?um:hm:A?pm:dm;y[I]>x[I]&&(M=eb(M));var L=eb(M),O=[];if(l&&O.push(D[S]<=0),a&&O.push(D[M]<=0,D[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[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fb(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 gb(e){return[dm,um,pm,hm].some((function(t){return e[t]>=0}))}var mb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,i=t.rects.popper,l=t.modifiersData.preventOverflow,n=ub(t,{elementContext:"reference"}),a=ub(t,{altBoundary:!0}),s=fb(n,o),c=fb(a,i,l),d=gb(s),p=gb(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 bb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,i=r.offset,l=void 0===i?[0,0]:i,n=xm.reduce((function(e,r){return e[r]=function(e,t,r){var o=Pm(e),i=[hm,dm].indexOf(o)>=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)*i,[hm,um].indexOf(o)>=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[o]=n}};var vb={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=pb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var _b={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,i=r.mainAxis,l=void 0===i||i,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=ub(t,{boundary:s,rootBoundary:c,padding:p,altBoundary:d}),b=Pm(t.placement),v=qm(t.placement),_=!v,y=Vm(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),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(l){var P,I="y"===y?dm:hm,D="y"===y?pm:um,M="y"===y?"height":"width",L=w[y],O=L+m[I],z=L-m[D],R=h?-C[M]/2:0,N=v===mm?k[M]:C[M],B=v===mm?-C[M]:-k[M],j=t.elements.arrow,U=h&&j?Om(j):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[I],W=F[D],H=Wm(0,k[M],U[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&&Fm(t.elements.arrow),Z=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,Q=null!=(P=null==S?void 0:S[y])?P:0,X=L+Y-Q,K=Wm(h?Dm(O,L+G-Q-Z):O,L,h?Im(z,X):z);w[y]=K,A[y]=K-L}if(a){var J,$="x"===y?dm:hm,ee="x"===y?pm:um,te=w[x],re="y"===x?"height":"width",oe=te+m[$],ie=te-m[ee],le=-1!==[dm,hm].indexOf(b),ne=null!=(J=null==S?void 0:S[x])?J:0,ae=le?oe:te-k[re]-C[re]-ne+T.altAxis,se=le?te+k[re]+C[re]-ne-T.altAxis:ie,ce=h&&le?function(e,t,r){var o=Wm(e,t,r);return o>r?r:o}(ae,te,se):Wm(h?ae:oe,te,h?se:ie);w[x]=ce,A[x]=ce-te}t.modifiersData[o]=A}},requiresIfExists:["offset"]};function yb(e,t,r){void 0===r&&(r=!1);var o=Tm(t),i=Tm(t)&&function(e){var t=e.getBoundingClientRect(),r=Mm(t.width)/e.offsetWidth||1,o=Mm(t.height)/e.offsetHeight||1;return 1!==r||1!==o}(t),l=Bm(t),n=Lm(e,i),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&(("body"!==km(t)||lb(l))&&(a=function(e){return e!==Cm(e)&&Tm(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):ob(e)}(t)),Tm(t)?((s=Lm(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=ib(l))),{x:n.left+a.scrollLeft-s.x,y:n.top+a.scrollTop-s.y,width:n.width,height:n.height}}function xb(e){var t=new Map,r=new Set,o=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var o=t.get(e);o&&i(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),o}function wb(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var kb={placement:"bottom",modifiers:[],strategy:"absolute"};function Cb(){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},Ab=(e,t)=>{for(const r of e)if(!Pb(r,t))return r},Pb=(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},Ib=(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 Db(e,t){const r=[...e],o=e.indexOf(t);return-1!==o&&r.splice(o,1),r}const Mb=(()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=Db(e,t),e.unshift(t)},remove:t=>{var r,o;e=Db(e,t),null==(o=null==(r=e[0])?void 0:r.resume)||o.call(r)}}})(),Lb={cancelable:!0,bubbles:!1},Ob=Symbol("elFocusTrap");var zb=Ng(pn({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=Vi();let o,i;var l;l=r=>{e.trapped&&!n.paused&&t("release-requested",r)},xn((()=>{0===Tg.length&&document.addEventListener("keydown",Sg),Iu&&Tg.push(l)})),Cn((()=>{Tg=Tg.filter((e=>e!==l)),0===Tg.length&&Iu&&document.removeEventListener("keydown",Sg)}));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:o,altKey:i,ctrlKey:l,metaKey:a,currentTarget:s,shiftKey:c}=r,{loop:d}=e,p=o===Lf&&!i&&!l&&!a,u=document.activeElement;if(p&&u){const e=s,[o,i]=(e=>{const t=Sb(e);return[Ab(t,e),Ab(t.reverse(),e)]})(e);o&&i?c||u!==i?c&&[o,e].includes(u)&&(r.preventDefault(),d&&Ib(i,!0),t("focusout-prevented")):(r.preventDefault(),d&&Ib(o,!0),t("focusout-prevented")):u===e&&(r.preventDefault(),t("focusout-prevented"))}};en(Ob,{focusTrapRef:r,onKeydown:a}),Ys((()=>e.focusTrapEl),(e=>{e&&(r.value=e)}),{immediate:!0}),Ys([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=o=>{const l=qi(r);if(!l)return;const a=o.target,s=a&&l.contains(a);s&&t("focusin",o),n.paused||e.trapped&&(s?i=a:Ib(i,!0))},p=o=>{const l=qi(r);if(!n.paused&&l)if(e.trapped){const t=o.relatedTarget;Su(t)||l.contains(t)||setTimeout((()=>{!n.paused&&e.trapped&&Ib(i,!0)}),0)}else{const e=o.target;e&&l.contains(e)||t("focusout",o)}};async function u(){await Rs();const t=qi(r);if(t){Mb.push(n);const r=document.activeElement;o=r;if(!t.contains(r)){const o=new Event("focus-trap.focus-after-trapped",Lb);t.addEventListener("focus-trap.focus-after-trapped",s),t.dispatchEvent(o),o.defaultPrevented||Rs((()=>{let o=e.focusStartEl;nh(o)||(Ib(o),document.activeElement!==o&&(o="first")),"first"===o&&((e,t=!1)=>{const r=document.activeElement;for(const o of e)if(Ib(o,t),document.activeElement!==r)return})(Sb(t),!0),document.activeElement!==r&&"container"!==o||Ib(t)}))}}}function h(){const e=qi(r);if(e){e.removeEventListener("focus-trap.focus-after-trapped",s);const t=new Event("focus-trap.focus-after-released",Lb);e.addEventListener("focus-trap.focus-after-released",c),e.dispatchEvent(t),t.defaultPrevented||Ib(null!=o?o:document.body,!0),e.removeEventListener("focus-trap.focus-after-released",s),Mb.remove(n)}}return xn((()=>{e.trapped&&u(),Ys((()=>e.trapped),(e=>{e?u():h()}))})),Cn((()=>{e.trapped&&h()})),{onKeydown:a}}}),[["render",function(e,t,r,o,i,l){return Xa(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Rb=Sf({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:xm,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Nb=Sf(d(c({},Rb),{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})),Bb=(e,t)=>{const{placement:r,strategy:o,popperOptions:i}=e,l=d(c({placement:r,strategy:o},i),{modifiers:jb(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==i?void 0:i.modifiers),l};function jb(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:o}=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!=o?o:[]}},{name:"computeStyles",options:{gpuAcceleration:r,adaptive:r}}]}var Ub=Ng(pn(d(c({},{name:"ElPopperContent"}),{props:Nb,emits:["mouseenter","mouseleave","focus","blur","close"],setup(e,{expose:t,emit:r}){const o=e,{popperInstanceRef:i,contentRef:l,triggerRef:n,role:a}=tn(eg,void 0),s=tn(Kf,void 0),{nextZIndex:p}=Rg(),u=ug("popper"),h=Vi(),f=Vi("first"),g=Vi(),m=Vi();en(tg,{arrowRef:g,arrowOffset:m}),s&&(s.addInputId||s.removeInputId)&&en(Kf,d(c({},s),{addInputId:th,removeInputId:th}));const b=Vi(o.zIndex||p()),v=Vi(!1);let _;const y=el((()=>(e=>{if(Iu)return Nu(e)})(o.referenceEl)||qi(n))),x=el((()=>[{zIndex:qi(b)},o.popperStyle])),w=el((()=>[u.b(),u.is("pure",o.pure),u.is(o.effect),o.popperClass])),k=el((()=>a&&"dialog"===a.value?"false":void 0)),C=(e=!0)=>{var t;null==(t=qi(i))||t.update(),e&&(b.value=o.zIndex||p())},E=()=>{var e,t;const r={name:"eventListeners",enabled:o.visible};null==(t=null==(e=qi(i))?void 0:e.setOptions)||t.call(e,(e=>d(c({},e),{modifiers:[...e.modifiers||[],r]}))),C(!1),o.visible&&o.focusOnShow?v.value=!0:!1===o.visible&&(v.value=!1)},T=()=>{r("focus")},S=()=>{f.value="first",r("blur")},A=e=>{var t;o.visible&&!v.value&&(e.target&&(f.value=e.target),v.value=!0,e.relatedTarget&&(null==(t=e.relatedTarget)||t.focus()))},P=()=>{o.trapping||(v.value=!1)},I=()=>{v.value=!1,r("close")};return xn((()=>{let e;Ys(y,(t=>{var r;null==e||e();const n=qi(i);if(null==(r=null==n?void 0:n.destroy)||r.call(n),t){const r=qi(h);l.value=r,i.value=(({referenceEl:e,popperContentEl:t,arrowEl:r})=>{const i=Bb(o,{arrowEl:r,arrowOffset:qi(m)});return Tb(e,t,i)})({referenceEl:t,popperContentEl:r,arrowEl:qi(g)}),e=Ys((()=>t.getBoundingClientRect()),(()=>C()),{immediate:!0})}else i.value=void 0}),{immediate:!0}),Ys((()=>o.triggerTargetEl),((e,t)=>{null==_||_(),_=void 0;const r=qi(e||h.value),i=qi(t||h.value);if(fh(r)){const{ariaLabel:e,id:t}=Xi(o);_=Ys([a,e,k,t],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,o)=>{Su(e[o])?r.removeAttribute(t):r.setAttribute(t,e[o])}))}),{immediate:!0})}fh(i)&&["role","aria-label","aria-modal","id"].forEach((e=>{i.removeAttribute(e)}))}),{immediate:!0}),Ys((()=>o.visible),E,{immediate:!0}),Ys((()=>Bb(o,{arrowEl:qi(g),arrowOffset:qi(m)})),(e=>{var t;return null==(t=i.value)?void 0:t.setOptions(e)}))})),Cn((()=>{null==_||_(),_=void 0})),t({popperContentRef:h,popperInstanceRef:i,updatePopper:C,contentStyle:x}),(e,t)=>(Sa(),Da("div",{ref_key:"popperContentRef",ref:h,style:rl(qi(x)),class:nl(qi(w)),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[ja(qi(zb),{trapped:v.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:T,onFocusAfterReleased:S,onFocusin:A,onFocusoutPrevented:P,onReleaseRequested:I},{default:Ql((()=>[Xa(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Fb=Df(rm),Vb=ug("tooltip"),Wb=Sf(d(c(c({},Mg),Nb),{appendTo:{type:[String,Object],default:Ig},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:{type:String,default:`${Vb.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Hb=Sf(d(c({},sm),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Of,zf]}})),Gb=Sf({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),Yb=Symbol("elTooltip");var qb=Ng(pn({name:"ElTooltipContent",components:{ElPopperContent:Ub},inheritAttrs:!1,props:Wb,setup(e){const t=Vi(null),r=Vi(!1),o=Vi(!1),i=Vi(!1),l=Vi(!1),{controlled:n,id:a,open:s,trigger:c,onClose:d,onOpen:p,onShow:u,onHide:h,onBeforeShow:f,onBeforeHide:g}=tn(Yb,void 0),m=el((()=>e.persistent));Cn((()=>{l.value=!0}));const b=el((()=>!!qi(m)||qi(s))),v=el((()=>!e.disabled&&qi(s))),_=el((()=>{var t;return null!=(t=e.style)?t:{}})),y=el((()=>!qi(s))),x=()=>{if(qi(n))return!0},w=Au(x,(()=>{e.enterable&&"hover"===qi(c)&&p()})),k=Au(x,(()=>{"hover"===qi(c)&&d()}));let C;return Ys((()=>qi(s)),(e=>{e||null==C||C()}),{flush:"post"}),{ariaHidden:y,entering:o,leaving:i,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:o=Bu,ignore:i,capture:l=!0,detectIframe:n=!1}=r;if(!o)return;const a=Vi(!0);let s;const c=r=>{o.clearTimeout(s);const l=Nu(e),n=r.composedPath();l&&l!==r.target&&!n.includes(l)&&a.value&&(i&&i.length>0&&i.some((e=>{const t=Nu(e);return t&&(r.target===t||n.includes(t))}))||t(r))},d=[ju(o,"click",c,{passive:!0,capture:l}),ju(o,"pointerdown",(t=>{const r=Nu(e);a.value=!!r&&!t.composedPath().includes(r)}),{passive:!0}),ju(o,"pointerup",(e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,s=o.setTimeout((()=>c(e)),50)}}),{passive:!0}),n&&ju(o,"blur",(r=>{var o;const i=Nu(e);"IFRAME"!==(null==(o=document.activeElement)?void 0:o.tagName)||(null==i?void 0:i.contains(document.activeElement))||t(r)}))].filter(Boolean);return()=>d.forEach((e=>e()))}(el((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(qi(n))return;"hover"!==qi(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,o,i,l){const n=ga("el-popper-content");return Sa(),Ma(fa,{disabled:!e.teleported,to:e.appendTo},[ja(jc,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:Ql((()=>[e.shouldRender?ea((Sa(),Ma(n,Ya({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:Ql((()=>[Va(" Workaround bug #6378 "),e.destroyed?Va("v-if",!0):Xa(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[ad,e.shouldShow]]):Va("v-if",!0)])),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Zb=(e,t,r)=>o=>{((e,t)=>ih(e)?e.includes(t):e===t)(qi(e),t)&&r(o)};var Qb=Ng(pn({name:"ElTooltipTrigger",components:{ElPopperTrigger:cm},props:Hb,setup(e){const t=ug("tooltip"),{controlled:r,id:o,open:i,onOpen:l,onClose:n,onToggle:a}=tn(Yb,void 0),s=Vi(null),c=()=>{if(qi(r)||e.disabled)return!0},d=Ji(e,"trigger"),p=Au(c,Zb(d,"hover",l)),u=Au(c,Zb(d,"hover",n)),h=Au(c,Zb(d,"click",(e=>{0===e.button&&a(e)}))),f=Au(c,Zb(d,"focus",l));return{onBlur:Au(c,Zb(d,"focus",n)),onContextMenu:Au(c,Zb(d,"contextmenu",(e=>{e.preventDefault(),a(e)}))),onFocus:f,onMouseenter:p,onMouseleave:u,onClick:h,onKeydown:Au(c,(t=>{const{code:r}=t;e.triggerKeys.includes(r)&&(t.preventDefault(),a(t))})),open:i,id:o,triggerRef:s,ns:t}}}),[["render",function(e,t,r,o,i,l){const n=ga("el-popper-trigger");return Sa(),Ma(n,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:nl(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:Ql((()=>[Xa(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:Xb,useModelToggle:Kb,useModelToggleEmits:Jb}=(e=>{const t=`update:${e}`,r=`onUpdate:${e}`;return{useModelToggle:({indicator:o,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:n,onShow:a,onHide:s})=>{const d=is(),{emit:p}=d,u=d.props,h=el((()=>lh(u[r]))),f=el((()=>null===u[e])),g=e=>{!0!==o.value&&(o.value=!0,i&&(i.value=e),lh(a)&&a(e))},m=e=>{!1!==o.value&&(o.value=!1,i&&(i.value=e),lh(s)&&s(e))},b=e=>{if(!0===u.disabled||lh(n)&&!n())return;const r=h.value&&Iu;r&&p(t,!0),!f.value&&r||g(e)},v=e=>{if(!0===u.disabled||!Iu)return;const r=h.value&&Iu;r&&p(t,!1),!f.value&&r||m(e)},_=e=>{Du(e)&&(u.disabled&&e?h.value&&p(t,!1):o.value!==e&&(e?g():m()))};return Ys((()=>u[e]),_),l&&void 0!==d.appContext.config.globalProperties.$route&&Ys((()=>c({},d.proxy.$route)),(()=>{l.value&&o.value&&v()})),xn((()=>{_(u[e])})),{hide:v,show:b,toggle:()=>{o.value?v():b()},hasUpdateHandler:h}},useModelToggleProps:{[e]:kg,[r]:Cg},useModelToggleEmits:[t]}})("visible"),$b=pn({name:"ElTooltip",components:{ElPopper:Fb,ElPopperArrow:im,ElTooltipContent:qb,ElTooltipTrigger:Qb},props:c(c(c(c(c(c({},tm),Xb),Wb),Hb),om),Gb),emits:[...Jb,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){Dg();const r=el((()=>(hh(e.openDelay),e.openDelay||e.showAfter))),o=el((()=>(hh(e.visibleArrow),Du(e.visibleArrow)?e.visibleArrow:e.showArrow))),i=gg(),l=Vi(null),n=Vi(null),a=()=>{var e;const t=qi(l);t&&(null==(e=t.popperInstanceRef)||e.update())},s=Vi(!1),c=Vi(void 0),{show:d,hide:p,hasUpdateHandler:u}=Kb({indicator:s,toggleReason:c}),{onOpen:h,onClose:f}=Lg({showAfter:r,hideAfter:Ji(e,"hideAfter"),open:d,close:p}),g=el((()=>Du(e.visible)&&!u.value));en(Yb,{controlled:g,id:i,open:Ii(s),trigger:Ji(e,"trigger"),onOpen:e=>{h(e)},onClose:e=>{f(e)},onToggle:e=>{qi(s)?f(e):h(e)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:a}),Ys((()=>e.disabled),(e=>{e&&s.value&&(s.value=!1)}));return gn((()=>s.value&&p())),{compatShowAfter:r,compatShowArrow:o,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}}}),ev=["innerHTML"],tv={key:1};const rv=Df(Ng($b,[["render",function(e,t,r,o,i,l){const n=ga("el-tooltip-trigger"),a=ga("el-popper-arrow"),s=ga("el-tooltip-content"),c=ga("el-popper");return Sa(),Ma(c,{ref:"popperRef",role:e.role},{default:Ql((()=>[ja(n,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Ql((()=>[e.$slots.default?Xa(e.$slots,"default",{key:0}):Va("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ja(s,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Ql((()=>[Xa(e.$slots,"content",{},(()=>[e.rawContent?(Sa(),Da("span",{key:0,innerHTML:e.content},null,8,ev)):(Sa(),Da("span",tv,al(e.content),1))])),e.compatShowArrow?(Sa(),Ma(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Va("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),ov=Sf({size:ng,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Af},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Af,default:()=>cf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),iv={click:e=>e instanceof MouseEvent};function lv(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 nv(e){return Math.min(1,Math.max(0,e))}function av(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sv(e){return e<=1?"".concat(100*Number(e),"%"):e}function cv(e){return 1===e.length?"0"+e:String(e)}function dv(e,t,r){e=lv(e,255),t=lv(t,255),r=lv(r,255);var o=Math.max(e,t,r),i=Math.min(e,t,r),l=0,n=0,a=(o+i)/2;if(o===i)n=0,l=0;else{var s=o-i;switch(n=a>.5?s/(2-o-i):s/(o+i),o){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 uv(e,t,r){e=lv(e,255),t=lv(t,255),r=lv(r,255);var o=Math.max(e,t,r),i=Math.min(e,t,r),l=0,n=o,a=o-i,s=0===o?0:a/o;if(o===i)l=0;else{switch(o){case e:l=(t-r)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var i=bv(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:i.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=i.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,o=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*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=av(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=uv(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=uv(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=dv(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=dv(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),hv(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,o,i){var l,n=[cv(Math.round(e).toString(16)),cv(Math.round(t).toString(16)),cv(Math.round(r).toString(16)),cv((l=o,Math.round(255*parseFloat(l)).toString(16)))];return i&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))&&n[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*lv(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*lv(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="#"+hv(this.r,this.g,this.b,!1),t=0,r=Object.entries(mv);t=0;return t||!o||!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=nv(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=nv(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=nv(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=nv(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),o=(r.h+t)%360;return r.h=o<0?360+o:o,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var o=this.toRgb(),i=new e(t).toRgb(),l=r/100;return new e({r:(i.r-o.r)*l+o.r,g:(i.g-o.g)*l+o.g,b:(i.b-o.b)*l+o.b,a:(i.a-o.a)*l+o.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var o=this.toHsl(),i=360/r,l=[this];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,l.push(new e(o));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(),o=r.h,i=r.s,l=r.v,n=[],a=1/t;t--;)n.push(new e({h:o,s:i,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(),o=new e(t).toRgb();return new e({r:o.r+(r.r-o.r)*r.a,g:o.g+(r.g-o.g)*r.a,b:o.b+(r.b-o.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(),o=r.h,i=[this],l=360/t,n=1;n"text"===o.type)));const l=tn(Yf,void 0),n=ig("button"),a=ug("button"),{form:s}=mg(),c=ag(el((()=>null==l?void 0:l.size))),d=sg(),p=Vi(),u=el((()=>o.type||(null==l?void 0:l.type)||"")),h=el((()=>{var e,t,r;return null!=(r=null!=(t=o.autoInsertSpace)?t:null==(e=n.value)?void 0:e.autoInsertSpace)&&r})),f=el((()=>{var e;const t=null==(e=i.default)?void 0:e.call(i);if(h.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===wa){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),g=function(e){const t=sg(),r=ug("button");return el((()=>{let o={};const i=e.color;if(i){const l=new kv(i),n=e.dark?l.tint(20).toString():Cv(l,20);if(e.plain)o=r.cssVarBlock({"bg-color":e.dark?Cv(l,90):l.tint(90).toString(),"text-color":i,"border-color":e.dark?Cv(l,50):l.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":n,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":n}),t.value&&(o[r.cssVarBlockName("disabled-bg-color")]=e.dark?Cv(l,90):l.tint(90).toString(),o[r.cssVarBlockName("disabled-text-color")]=e.dark?Cv(l,50):l.tint(50).toString(),o[r.cssVarBlockName("disabled-border-color")]=e.dark?Cv(l,80):l.tint(80).toString());else{const a=e.dark?Cv(l,30):l.tint(30).toString(),s=l.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(o=r.cssVarBlock({"bg-color":i,"text-color":s,"border-color":i,"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?Cv(l,50):l.tint(50).toString();o[r.cssVarBlockName("disabled-bg-color")]=t,o[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,o[r.cssVarBlockName("disabled-border-color")]=t}}}return o}))}(o),m=e=>{"reset"===o.nativeType&&(null==s||s.resetFields()),r("click",e)};return t({ref:p,size:c,type:u,disabled:d,shouldAddSpace:f}),(e,t)=>(Sa(),Da("button",{ref_key:"_ref",ref:p,class:nl([qi(a).b(),qi(a).m(qi(u)),qi(a).m(qi(c)),qi(a).is("disabled",qi(d)),qi(a).is("loading",e.loading),qi(a).is("plain",e.plain),qi(a).is("round",e.round),qi(a).is("circle",e.circle),qi(a).is("text",e.text),qi(a).is("link",e.link),qi(a).is("has-bg",e.bg)]),"aria-disabled":qi(d)||e.loading,disabled:qi(d)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:rl(qi(g)),onClick:m},[e.loading?(Sa(),Da(xa,{key:0},[e.$slots.loading?Xa(e.$slots,"loading",{key:0}):(Sa(),Ma(qi(jg),{key:1,class:nl(qi(a).is("loading"))},{default:Ql((()=>[(Sa(),Ma(ba(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Sa(),Ma(qi(jg),{key:1},{default:Ql((()=>[e.icon?(Sa(),Ma(ba(e.icon),{key:0})):Xa(e.$slots,"icon",{key:1})])),_:3})):Va("v-if",!0),e.$slots.default?(Sa(),Da("span",{key:2,class:nl({[qi(a).em("text","expand")]:qi(f)})},[Xa(e.$slots,"default")],2)):Va("v-if",!0)],14,Ev))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Sv={size:ov.size,type:ov.type};var Av=Ng(pn(d(c({},{name:"ElButtonGroup"}),{props:Sv,setup(e){const t=e;en(Yf,Pi({size:Ji(t,"size"),type:Ji(t,"type")}));const r=ug("button");return(e,t)=>(Sa(),Da("div",{class:nl(`${qi(r).b("group")}`)},[Xa(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Pv=Df(Tv,{ButtonGroup:Av}),Iv=Mf(Av),Dv=new Map;let Mv;function Lv(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:fh(t.arg)&&r.push(t.arg),function(o,i){const l=t.instance.popperRef,n=o.target,a=null==i?void 0:i.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(o,i)}}Iu&&(document.addEventListener("mousedown",(e=>Mv=e)),document.addEventListener("mouseup",(e=>{for(const t of Dv.values())for(const{documentHandler:r}of t)r(e,Mv)})));const Ov={beforeMount(e,t){Dv.has(e)||Dv.set(e,[]),Dv.get(e).push({documentHandler:Lv(e,t),bindingFn:t.value})},updated(e,t){Dv.has(e)||Dv.set(e,[]);const r=Dv.get(e),o=r.findIndex((e=>e.bindingFn===t.oldValue)),i={documentHandler:Lv(e,t),bindingFn:t.value};o>=0?r.splice(o,1,i):r.push(i)},unmounted(e){Dv.delete(e)}},zv={beforeMount(e,t){let r=null,o=null;const i=()=>t.value&&t.value(),l=()=>{o&&(clearTimeout(o),o=null),r&&(clearInterval(r),r=null)};e.addEventListener("mousedown",(e=>{0===e.button&&(i(),document.addEventListener("mouseup",l,{once:!0}),l(),o=setTimeout((()=>{r=setInterval((()=>{i()}),100)}),600))}))}},Rv=Sf({size:ng,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Nv=Sf(d(c({},Rv),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),Bv={"update:modelValue":e=>nh(e)||Mu(e)||Du(e),change:e=>nh(e)||Mu(e)||Du(e)},jv=(e,t)=>{const r=Vi(),o=tn(Jf,void 0),i=el((()=>!!o)),l=el({get:()=>i.value?o.modelValue:e.modelValue,set(l){i.value?o.changeEvent(l):t&&t("update:modelValue",l),r.value.checked=e.modelValue===e.label}}),n=ag(el((()=>null==o?void 0:o.size))),a=sg(el((()=>null==o?void 0:o.disabled))),s=Vi(!1),c=el((()=>a.value||i.value&&l.value!==e.label?-1:0));return{radioRef:r,isGroup:i,radioGroup:o,focus:s,size:n,disabled:a,tabIndex:c,modelValue:l}},Uv=["value","name","disabled"];var Fv=Ng(pn(d(c({},{name:"ElRadio"}),{props:Nv,emits:Bv,setup(e,{emit:t}){const r=e,o=ug("radio"),{radioRef:i,radioGroup:l,focus:n,size:a,disabled:s,modelValue:c}=jv(r,t);function d(){Rs((()=>t("change",c.value)))}return(e,t)=>{var r;return Sa(),Da("label",{class:nl([qi(o).b(),qi(o).is("disabled",qi(s)),qi(o).is("focus",qi(n)),qi(o).is("bordered",e.border),qi(o).is("checked",qi(c)===e.label),qi(o).m(qi(a))])},[Ba("span",{class:nl([qi(o).e("input"),qi(o).is("disabled",qi(s)),qi(o).is("checked",qi(c)===e.label)])},[ea(Ba("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":t[0]||(t[0]=e=>Fi(c)?c.value=e:null),class:nl(qi(o).e("original")),value:e.label,name:e.name||(null==(r=qi(l))?void 0:r.name),disabled:qi(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,Uv),[[td,qi(c)]]),Ba("span",{class:nl(qi(o).e("inner"))},null,2)],2),Ba("span",{class:nl(qi(o).e("label")),onKeydown:t[3]||(t[3]=id((()=>{}),["stop"]))},[Xa(e.$slots,"default",{},(()=>[Fa(al(e.label),1)]))],34)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Vv=Sf(d(c({},Rv),{name:{type:String,default:""}})),Wv=["value","name","disabled"];var Hv=Ng(pn(d(c({},{name:"ElRadioButton"}),{props:Vv,setup(e){const t=e,r=ug("radio"),{radioRef:o,focus:i,size:l,disabled:n,modelValue:a,radioGroup:s}=jv(t),c=el((()=>({backgroundColor:(null==s?void 0:s.fill)||"",borderColor:(null==s?void 0:s.fill)||"",boxShadow:(null==s?void 0:s.fill)?`-1px 0 0 0 ${s.fill}`:"",color:(null==s?void 0:s.textColor)||""})));return(e,t)=>{var d;return Sa(),Da("label",{class:nl([qi(r).b("button"),qi(r).is("active",qi(a)===e.label),qi(r).is("disabled",qi(n)),qi(r).is("focus",qi(i)),qi(r).bm("button",qi(l))])},[ea(Ba("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Fi(a)?a.value=e:null),class:nl(qi(r).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(d=qi(s))?void 0:d.name),disabled:qi(n),onFocus:t[1]||(t[1]=e=>i.value=!0),onBlur:t[2]||(t[2]=e=>i.value=!1)},null,42,Wv),[[td,qi(a)]]),Ba("span",{class:nl(qi(r).be("button","inner")),style:rl(qi(a)===e.label?qi(c):{}),onKeydown:t[3]||(t[3]=id((()=>{}),["stop"]))},[Xa(e.$slots,"default",{},(()=>[Fa(al(e.label),1)]))],38)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Gv=Sf({id:{type:String,default:void 0},size:ng,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}}),Yv=Bv,qv=["id","aria-label","aria-labelledby"];var Zv=Ng(pn(d(c({},{name:"ElRadioGroup"}),{props:Gv,emits:Yv,setup(e,{emit:t}){const r=e,o=ug("radio"),i=gg(),l=Vi(),{formItem:n}=mg(),{inputId:a,isLabeledByFormItem:s}=bg(r,{formItemContext:n});xn((()=>{const e=l.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const p=el((()=>r.name||i.value));return en(Jf,Pi(d(c({},Xi(r)),{changeEvent:e=>{t("update:modelValue",e),Rs((()=>t("change",e)))},name:p}))),Ys((()=>r.modelValue),(()=>{r.validateEvent&&(null==n||n.validate("change").catch((e=>{})))})),(e,t)=>(Sa(),Da("div",{id:qi(a),ref_key:"radioGroupRef",ref:l,class:nl(qi(o).b("group")),role:"radiogroup","aria-label":qi(s)?void 0:e.label||"radio-group","aria-labelledby":qi(s)?qi(n).labelId:void 0},[Xa(e.$slots,"default")],10,qv))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);Df(Fv,{RadioButton:Hv,RadioGroup:Zv});const Qv=Mf(Zv),Xv=Mf(Hv),Kv=Sf({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Bf,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Jv={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent};const $v=Df(Ng(pn(d(c({},{name:"ElTag"}),{props:Kv,emits:Jv,setup(e,{emit:t}){const r=e,o=ag(),i=ug("tag"),l=el((()=>{const{type:e,hit:t,effect:l,closable:n,round:a}=r;return[i.b(),i.is("closable",n),i.m(e),i.m(o.value),i.m(l),i.is("hit",t),i.is("round",a)]})),n=e=>{t("close",e)},a=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(Sa(),Da("span",{key:0,class:nl(qi(l)),style:rl({backgroundColor:e.color}),onClick:a},[Ba("span",{class:nl(qi(i).e("content"))},[Xa(e.$slots,"default")],2),e.closable?(Sa(),Ma(qi(jg),{key:0,class:nl(qi(i).e("close")),onClick:id(n,["stop"])},{default:Ql((()=>[ja(qi(Yh))])),_:1},8,["class","onClick"])):Va("v-if",!0)],6)):(Sa(),Ma(jc,{key:1,name:`${qi(i).namespace.value}-zoom-in-center`,appear:""},{default:Ql((()=>[Ba("span",{class:nl(qi(l)),style:rl({backgroundColor:e.color}),onClick:a},[Ba("span",{class:nl(qi(i).e("content"))},[Xa(e.$slots,"default")],2),e.closable?(Sa(),Ma(qi(jg),{key:0,class:nl(qi(i).e("close")),onClick:id(n,["stop"])},{default:Ql((()=>[ja(qi(Yh))])),_:1},8,["class","onClick"])):Va("v-if",!0)],6)])),_:3},8,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]])),e_=e=>typeof Mu(e),t_=Sf({accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}}),r_={"update:modelValue":e_,change:e_};var o_=Ng(pn(d(c({},{name:"ElCollapse"}),{props:t_,emits:r_,setup(e,{expose:t,emit:r}){const o=e,i=ug("collapse"),l=Vi(Yp(o.modelValue)),n=e=>{l.value=e;const t=o.accordion?l.value[0]:l.value;r("update:modelValue",t),r("change",t)};return Ys((()=>o.modelValue),(()=>l.value=Yp(o.modelValue)),{deep:!0}),en(qf,{activeNames:l,handleItemClick:e=>{if(o.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)=>(Sa(),Da("div",{class:nl(qi(i).b()),role:"tablist","aria-multiselectable":"true"},[Xa(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);var i_=Ng(pn(d(c({},{name:"ElCollapseTransition"}),{setup(e){const t=ug("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,o)=>(Sa(),Ma(jc,Ya({name:qi(t).b()},function(e){const t={};for(const r in e)t[Nl(r)]=e[r];return t}(r)),{default:Ql((()=>[Xa(e.$slots,"default")])),_:3},16,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);i_.install=e=>{e.component(i_.name,i_)};const l_=i_,n_=Sf({title:{type:String,default:""},name:{type:[String,Number],default:()=>Wf()},disabled:Boolean}),a_=["aria-expanded","aria-controls","aria-describedby"],s_=["id","tabindex","onKeypress"],c_=["id","aria-hidden","aria-labelledby"];var d_=Ng(pn(d(c({},{name:"ElCollapseItem"}),{props:n_,setup(e,{expose:t}){const r=e,o=tn(qf),i=ug("collapse"),l=Vi(!1),n=Vi(!1),a=Vi(Wf()),s=el((()=>null==o?void 0:o.activeNames.value.includes(r.name))),c=()=>{setTimeout((()=>{n.value?n.value=!1:l.value=!0}),50)},d=()=>{r.disabled||(null==o||o.handleItemClick(r.name),l.value=!1,n.value=!0)},p=()=>{null==o||o.handleItemClick(r.name)};return t({isActive:s}),(e,t)=>(Sa(),Da("div",{class:nl([qi(i).b("item"),qi(i).is("active",qi(s)),qi(i).is("disabled",e.disabled)])},[Ba("div",{role:"tab","aria-expanded":qi(s),"aria-controls":qi(i).b(`content-${a.value}`),"aria-describedby":qi(i).b(`content-${a.value}`)},[Ba("div",{id:qi(i).b(`head-${a.value}`),class:nl([qi(i).be("item","header"),qi(i).is("active",qi(s)),{focusing:l.value&&!e.disabled}]),role:"button",tabindex:e.disabled?-1:0,onClick:d,onKeypress:nd(id(p,["stop","prevent"]),["space","enter"]),onFocus:c,onBlur:t[0]||(t[0]=e=>l.value=!1)},[Xa(e.$slots,"title",{},(()=>[Fa(al(e.title),1)])),ja(qi(jg),{class:nl([qi(i).be("item","arrow"),qi(i).is("active",qi(s))])},{default:Ql((()=>[ja(qi(Ih))])),_:1},8,["class"])],42,s_)],8,a_),ja(qi(l_),null,{default:Ql((()=>[ea(Ba("div",{id:qi(i).b(`content-${a.value}`),class:nl(qi(i).be("item","wrap")),role:"tabpanel","aria-hidden":!qi(s),"aria-labelledby":qi(i).b(`head-${a.value}`)},[Ba("div",{class:nl(qi(i).be("item","content"))},[Xa(e.$slots,"default")],2)],10,c_),[[ad,qi(s)]])])),_:3})],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const p_=Df(o_,{CollapseItem:d_}),u_=Mf(d_);let h_=!1;function f_(e,t){if(!Iu)return;const r=function(e){var r;null==(r=t.drag)||r.call(t,e)},o=function(e){var i;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,h_=!1,null==(i=t.end)||i.call(t,e)},i=function(e){var i;h_||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),document.addEventListener("touchmove",r),document.addEventListener("touchend",o),h_=!0,null==(i=t.start)||i.call(t,e))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}var g_=Ng(pn({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=ug("color-alpha-slider"),r=is(),o=Wi(null),i=Wi(null),l=Vi(0),n=Vi(0),a=Vi(null);function s(t){const i=r.vnode.el.getBoundingClientRect(),{clientX:l,clientY:n}=eh(t);if(e.vertical){let t=n-i.top;t=Math.max(o.value.offsetHeight/2,t),t=Math.min(t,i.height-o.value.offsetHeight/2),e.color.set("alpha",Math.round((t-o.value.offsetHeight/2)/(i.height-o.value.offsetHeight)*100))}else{let t=l-i.left;t=Math.max(o.value.offsetWidth/2,t),t=Math.min(t,i.width-o.value.offsetWidth/2),e.color.set("alpha",Math.round((t-o.value.offsetWidth/2)/(i.width-o.value.offsetWidth)*100))}}function c(){l.value=function(){if(e.vertical)return 0;const t=r.vnode.el,i=e.color.get("alpha");return t?Math.round(i*(t.offsetWidth-o.value.offsetWidth/2)/100):0}(),n.value=function(){const t=r.vnode.el;if(!e.vertical)return 0;const i=e.color.get("alpha");return t?Math.round(i*(t.offsetHeight-o.value.offsetHeight/2)/100):0}(),a.value=function(){if(e.color&&e.color.value){const{r:t,g:r,b:o}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${r}, ${o}, 0) 0%, rgba(${t}, ${r}, ${o}, 1) 100%)`}return null}()}return Ys((()=>e.color.get("alpha")),(()=>{c()})),Ys((()=>e.color.value),(()=>{c()})),xn((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};f_(i.value,e),f_(o.value,e),c()})),{thumb:o,bar:i,thumbLeft:l,thumbTop:n,background:a,handleClick:function(e){e.target!==o.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,r,o,i,l){return Sa(),Da("div",{class:nl([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ba("div",{ref:"bar",class:nl(e.ns.e("bar")),style:rl({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,6),Ba("div",{ref:"thumb",class:nl(e.ns.e("thumb")),style:rl({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 m_=Ng(pn({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=ug("color-hue-slider"),r=is(),o=Vi(null),i=Vi(null),l=Vi(0),n=Vi(0),a=el((()=>e.color.get("hue")));function s(t){const i=r.vnode.el.getBoundingClientRect(),{clientX:l,clientY:n}=eh(t);let a;if(e.vertical){let e=n-i.top;e=Math.min(e,i.height-o.value.offsetHeight/2),e=Math.max(o.value.offsetHeight/2,e),a=Math.round((e-o.value.offsetHeight/2)/(i.height-o.value.offsetHeight)*360)}else{let e=l-i.left;e=Math.min(e,i.width-o.value.offsetWidth/2),e=Math.max(o.value.offsetWidth/2,e),a=Math.round((e-o.value.offsetWidth/2)/(i.width-o.value.offsetWidth)*360)}e.color.set("hue",a)}function c(){l.value=function(){const t=r.vnode.el;if(e.vertical)return 0;const i=e.color.get("hue");return t?Math.round(i*(t.offsetWidth-o.value.offsetWidth/2)/360):0}(),n.value=function(){const t=r.vnode.el;if(!e.vertical)return 0;const i=e.color.get("hue");return t?Math.round(i*(t.offsetHeight-o.value.offsetHeight/2)/360):0}()}return Ys((()=>a.value),(()=>{c()})),xn((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};f_(i.value,e),f_(o.value,e),c()})),{bar:i,thumb:o,thumbLeft:l,thumbTop:n,hueValue:a,handleClick:function(e){e.target!==o.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,r,o,i,l){return Sa(),Da("div",{class:nl([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ba("div",{ref:"bar",class:nl(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Ba("div",{ref:"thumb",class:nl(e.ns.e("thumb")),style:rl({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 b_=Symbol(),v_=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},__=function(e,t){var r;"string"==typeof(r=e)&&r.includes(".")&&1===Number.parseFloat(r)&&(e="100%");const o=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),o&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},y_={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},x_=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${y_[t]||t}${y_[r]||r}`},w_=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${x_(e)}${x_(t)}${x_(r)}`},k_={A:10,B:11,C:12,D:13,E:14,F:15},C_=function(e){return 2===e.length?16*(k_[e[0].toUpperCase()]||+e[0])+(k_[e[1].toUpperCase()]||+e[1]):k_[e[1].toUpperCase()]||+e[1]},E_=function(e,t,r){e=__(e,255),t=__(t,255),r=__(r,255);const o=Math.max(e,t,r),i=Math.min(e,t,r);let l;const n=o,a=o-i,s=0===o?0:a/o;if(o===i)l=0;else{switch(o){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:o,v:i}=function(e,t,r){r/=100;let o=t/=100;const i=Math.max(r,.01);return t*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,{h:e,s:100*(0===r?2*o/(i+o):2*t/(r+t)),v:(r+t)/2*100}}(r[0],r[1],r[2]);t(e,o,i)}}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:o,v:i}=E_(r[0],r[1],r[2]);t(e,o,i)}}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 o,i,l;3===r.length?(o=C_(r[0]+r[0]),i=C_(r[1]+r[1]),l=C_(r[2]+r[2])):6!==r.length&&8!==r.length||(o=C_(r.slice(0,2)),i=C_(r.slice(2,4)),l=C_(r.slice(4,6))),8===r.length?this._alpha=C_(r.slice(6))/255*100:3!==r.length&&6!==r.length||(this._alpha=100);const{h:n,s:a,v:s}=E_(o,i,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:o,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=v_(e,t/100,r/100);this.value=`hsla(${e}, ${Math.round(100*o[1])}%, ${Math.round(100*o[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=`${w_(T_(e,t,r))}${x_(255*o/100)}`;break;default:{const{r:o,g:i,b:l}=T_(e,t,r);this.value=`rgba(${o}, ${i}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=v_(e,t/100,r/100);this.value=`hsl(${e}, ${Math.round(100*o[1])}%, ${Math.round(100*o[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(r)}%)`;break;case"rgb":{const{r:o,g:i,b:l}=T_(e,t,r);this.value=`rgb(${o}, ${i}, ${l})`;break}default:this.value=w_(T_(e,t,r))}}}const A_=pn({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=ug("color-predefine"),{currentColor:r}=tn(b_),o=Vi(i(e.colors,e.color));function i(e,t){return e.map((e=>{const r=new S_;return r.enableAlpha=!0,r.format="rgba",r.fromString(e),r.selected=r.value===t.value,r}))}return Ys((()=>r.value),(e=>{const t=new S_;t.fromString(e),o.value.forEach((e=>{e.selected=t.compare(e)}))})),Hs((()=>{o.value=i(e.colors,e.color)})),{rgbaColors:o,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),P_=["onClick"];var I_=Ng(A_,[["render",function(e,t,r,o,i,l){return Sa(),Da("div",{class:nl(e.ns.b())},[Ba("div",{class:nl(e.ns.e("colors"))},[(Sa(!0),Da(xa,null,Za(e.rgbaColors,((t,r)=>(Sa(),Da("div",{key:e.colors[r],class:nl([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(r)},[Ba("div",{style:rl({backgroundColor:t.value})},null,4)],10,P_)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const D_=pn({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=ug("color-svpanel"),r=is(),o=Vi(0),i=Vi(0),l=Vi("hsl(0, 100%, 50%)"),n=el((()=>({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;i.value=t*s/100,o.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}=eh(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),i.value=s,o.value=c,e.color.set({saturation:s/l.width*100,value:100-c/l.height*100})}return Ys((()=>n.value),(()=>{a()})),xn((()=>{f_(r.vnode.el,{drag:e=>{s(e)},end:e=>{s(e)}}),a()})),{cursorTop:o,cursorLeft:i,background:l,colorValue:n,handleDrag:s,update:a,ns:t}}}),M_=[Ba("div",null,null,-1)];const L_=pn({name:"ElColorPicker",components:{ElButton:Pv,ElTooltip:rv,ElInput:Zg,ElIcon:jg,Close:Yh,ArrowDown:Th,SvPanel:Ng(D_,[["render",function(e,t,r,o,i,l){return Sa(),Da("div",{class:nl(e.ns.b()),style:rl({backgroundColor:e.background})},[Ba("div",{class:nl(e.ns.e("white"))},null,2),Ba("div",{class:nl(e.ns.e("black"))},null,2),Ba("div",{class:nl(e.ns.e("cursor")),style:rl({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},M_,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]),HueSlider:m_,AlphaSlider:g_,Predefine:I_},directives:{ClickOutside:Ov},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Uf},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change","update:modelValue"],setup(e,{emit:t}){const{t:r}=xg(),o=ug("color"),{form:i,formItem:l}=mg(),{inputId:n,isLabeledByFormItem:a}=bg(e,{formItemContext:l}),s=Vi(),c=Vi(),d=Vi(),p=Vi(null);let u=!0;const h=Pi(new S_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),f=Vi(!1),g=Vi(!1),m=Vi(""),b=el((()=>e.modelValue||g.value?function(e,t){if(!(e instanceof S_))throw new TypeError("color should be instance of _color Class");const{r:r,g:o,b:i}=e.toRgb();return t?`rgba(${r}, ${o}, ${i}, ${e.get("alpha")/100})`:`rgb(${r}, ${o}, ${i})`}(h,e.showAlpha):"transparent")),v=ag(),_=el((()=>!(!e.disabled&&!(null==i?void 0:i.disabled)))),y=el((()=>e.modelValue||g.value?h.value:"")),x=el((()=>a.value?void 0:e.label||r("el.colorpicker.defaultLabel"))),w=el((()=>a.value?null==l?void 0:l.labelId:void 0));Ys((()=>e.modelValue),(e=>{e?e&&e!==h.value&&(u=!1,h.fromString(e)):g.value=!1})),Ys((()=>y.value),(e=>{m.value=e,u&&t("active-change",e),u=!0})),Ys((()=>h.value),(()=>{e.modelValue||g.value||(g.value=!0)}));const k=Cu((function(e){f.value=e}),100);function C(){Rs((()=>{e.modelValue?h.fromString(e.modelValue):(h.value="",Rs((()=>{g.value=!1})))}))}return xn((()=>{e.modelValue&&(m.value=y.value)})),Ys((()=>f.value),(()=>{Rs((()=>{var e,t,r;null==(e=s.value)||e.update(),null==(t=c.value)||t.update(),null==(r=d.value)||r.update()}))})),en(b_,{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),Rs((()=>{const t=new S_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});h.compare(t)||C()}))},t:r,ns:o,hue:s,svPanel:c,alpha:d,popper:p}}}),O_=["id","aria-label","aria-labelledby","aria-description","tabindex"];var z_=Ng(L_,[["render",function(e,t,r,o,i,l){const n=ga("hue-slider"),a=ga("sv-panel"),s=ga("alpha-slider"),c=ga("predefine"),d=ga("el-input"),p=ga("el-button"),u=ga("arrow-down"),h=ga("el-icon"),f=ga("close"),g=ga("el-tooltip"),m=va("click-outside");return Sa(),Ma(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:Ql((()=>[ea((Sa(),Da("div",null,[Ba("div",{class:nl(e.ns.be("dropdown","main-wrapper"))},[ja(n,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),ja(a,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(Sa(),Ma(s,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Va("v-if",!0),e.predefine?(Sa(),Ma(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Va("v-if",!0),Ba("div",{class:nl(e.ns.be("dropdown","btns"))},[Ba("span",{class:nl(e.ns.be("dropdown","value"))},[ja(d,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:nd(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),ja(p,{class:nl(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:Ql((()=>[Fa(al(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),ja(p,{plain:"",size:"small",class:nl(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:Ql((()=>[Fa(al(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[m,e.hide]])])),default:Ql((()=>[Ba("div",{id:e.buttonId,class:nl([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]=nd(((...t)=>e.handleTrigger&&e.handleTrigger(...t)),["enter"]))},[e.colorDisabled?(Sa(),Da("div",{key:0,class:nl(e.ns.be("picker","mask"))},null,2)):Va("v-if",!0),Ba("div",{class:nl(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[Ba("span",{class:nl([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Ba("span",{class:nl(e.ns.be("picker","color-inner")),style:rl({backgroundColor:e.displayedColor})},[ea(ja(h,{class:nl([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:Ql((()=>[ja(u)])),_:1},8,["class"]),[[ad,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?Va("v-if",!0):(Sa(),Ma(h,{key:0,class:nl([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:Ql((()=>[ja(f)])),_:1},8,["class"]))],6)],2)],2)],42,O_)])),_:1},8,["visible","popper-class","transition"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);z_.install=e=>{e.component(z_.name,z_)};const R_=z_,N_={},B_=Df(pn({name:"ElConfigProvider",props:Sf({a11y:{type:Boolean,default:!0},locale:{type:Object},size:ng,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}}),setup(e,{slots:t}){Ys((()=>e.message),(e=>{Object.assign(N_,null!=e?e:{})}),{immediate:!0,deep:!0});const r=((e,t,r=!1)=>{var o;const i=!!is(),l=i?ig():void 0,n=null!=(o=null==t?void 0:t.provide)?o:i?en:void 0;if(!n)return;const a=el((()=>{const t=qi(e);return(null==l?void 0:l.value)?lg(l.value,t):t}));return n(Zf,a),!r&&og.value||(og.value=a.value),a})(e);return()=>Xa(t,"default",{config:null==r?void 0:r.value})}}));const j_=pn({name:"ElOverlay",props:Sf({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}}),emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:r}){const o=ug("overlay"),{onClick:i,onMousedown:l,onMouseup:n}=Eg(e.customMaskEvent?void 0:e=>{r("click",e)});return()=>e.mask?ja("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:l,onMouseup:n},[Xa(t,"default")],Ff.STYLE|Ff.CLASS|Ff.PROPS,["onClick","onMouseup","onMousedown"]):$s("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Xa(t,"default")])}}),U_=Sf({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Af},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),F_=["aria-label"],V_=["id"];var W_=Ng(pn(d(c({},{name:"ElDialogContent"}),{props:U_,emits:{close:()=>!0},setup(e){const t=e,{t:r}=xg(),{Close:o}=Pf,{dialogRef:i,headerRef:l,bodyId:n,ns:a,style:s}=tn(Qf),{focusTrapRef:c}=tn(Ob),d=((...e)=>t=>{e.forEach((e=>{lh(e)?e(t):e.value=t}))})(c,i),p=el((()=>t.draggable));return dg(i,l,p),(e,t)=>(Sa(),Da("div",{ref:qi(d),class:nl([qi(a).b(),qi(a).is("fullscreen",e.fullscreen),qi(a).is("draggable",qi(p)),qi(a).is("align-center",e.alignCenter),{[qi(a).m("center")]:e.center},e.customClass]),style:rl(qi(s)),tabindex:"-1",onClick:t[1]||(t[1]=id((()=>{}),["stop"]))},[Ba("header",{ref_key:"headerRef",ref:l,class:nl(qi(a).e("header"))},[Xa(e.$slots,"header",{},(()=>[Ba("span",{role:"heading",class:nl(qi(a).e("title"))},al(e.title),3)])),e.showClose?(Sa(),Da("button",{key:0,"aria-label":qi(r)("el.dialog.close"),class:nl(qi(a).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[ja(qi(jg),{class:nl(qi(a).e("close"))},{default:Ql((()=>[(Sa(),Ma(ba(e.closeIcon||qi(o))))])),_:1},8,["class"])],10,F_)):Va("v-if",!0)],2),Ba("div",{id:qi(n),class:nl(qi(a).e("body"))},[Xa(e.$slots,"default")],10,V_),e.$slots.footer?(Sa(),Da("footer",{key:0,class:nl(qi(a).e("footer"))},[Xa(e.$slots,"footer")],2)):Va("v-if",!0)],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const H_=Sf(d(c({},U_),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),G_={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,"update:modelValue":e=>Du(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Y_=["aria-label","aria-labelledby","aria-describedby"];const q_=Df(Ng(pn(d(c({},{name:"ElDialog",inheritAttrs:!1}),{props:H_,emits:G_,setup(e,{expose:t}){const r=e,o=Ks();cg({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"},el((()=>!!o.title))),cg({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"},el((()=>!!r.customClass)));const i=ug("dialog"),l=Vi(),n=Vi(),a=Vi(),{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=is().emit,{nextZIndex:o}=Rg();let i="";const l=gg(),n=gg(),a=Vi(!1),s=Vi(!1),c=Vi(!1),d=Vi(e.zIndex||o());let p,u;const h=ig("namespace","el"),f=el((()=>{const t={},r=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(t[`${r}-margin-top`]=e.top),e.width&&(t[`${r}-width`]=yh(e.width))),t})),g=el((()=>e.alignCenter?{display:"flex"}:{}));function m(){null==u||u(),null==p||p(),e.openDelay&&e.openDelay>0?({stop:p}=Ru((()=>_()),e.openDelay)):_()}function b(){null==p||p(),null==u||u(),e.closeDelay&&e.closeDelay>0?({stop:u}=Ru((()=>y()),e.closeDelay)):y()}function v(){e.beforeClose?e.beforeClose((function(e){e||(s.value=!0,a.value=!1)})):b()}function _(){Iu&&(a.value=!0)}function y(){a.value=!1}return e.lockScroll&&wg(a),Ys((()=>e.modelValue),(i=>{i?(s.value=!1,m(),c.value=!0,d.value=e.zIndex?d.value++:o(),Rs((()=>{r("open"),t.value&&(t.value.scrollTop=0)}))):a.value&&b()})),Ys((()=>e.fullscreen),(e=>{t.value&&(e?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)})),xn((()=>{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);en(Qf,{dialogRef:l,headerRef:n,bodyId:d,ns:i,rendered:h,style:p});const k=Eg(_),C=el((()=>r.draggable&&!r.fullscreen));return t({visible:s,dialogContentRef:a}),(e,t)=>(Sa(),Ma(fa,{to:"body",disabled:!e.appendToBody},[ja(jc,{name:"dialog-fade",onAfterEnter:qi(g),onAfterLeave:qi(m),onBeforeLeave:qi(b),persisted:""},{default:Ql((()=>[ea(ja(qi(j_),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":qi(f)},{default:Ql((()=>[Ba("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:qi(c),"aria-describedby":qi(d),class:nl(`${qi(i).namespace.value}-overlay-dialog`),style:rl(qi(u)),onClick:t[0]||(t[0]=(...e)=>qi(k).onClick&&qi(k).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>qi(k).onMousedown&&qi(k).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>qi(k).onMouseup&&qi(k).onMouseup(...e))},[ja(qi(zb),{loop:"",trapped:qi(s),"focus-start-el":"container",onFocusAfterTrapped:qi(y),onFocusAfterReleased:qi(x),onReleaseRequested:qi(w)},{default:Ql((()=>[qi(h)?(Sa(),Ma(W_,Ya({key:0,ref_key:"dialogContentRef",ref:a},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:qi(C),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:qi(v)}),Qa({header:Ql((()=>[e.$slots.title?Xa(e.$slots,"title",{key:1}):Xa(e.$slots,"header",{key:0,close:qi(v),titleId:qi(c),titleClass:qi(i).e("title")})])),default:Ql((()=>[Xa(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:Ql((()=>[Xa(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Va("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,Y_)])),_:3},8,["mask","overlay-class","z-index"]),[[ad,qi(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),Z_=Sf({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ng,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Mu(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}}),Q_={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>Mu(e)||Su(e),"update:modelValue":e=>Mu(e)||Su(e)},X_=["aria-label","onKeydown"],K_=["aria-label","onKeydown"];const J_=Df(Ng(pn(d(c({},{name:"ElInputNumber"}),{props:Z_,emits:Q_,setup(e,{expose:t,emit:r}){const o=e,{t:i}=xg(),l=ug("input-number"),n=Vi(),a=Pi({currentValue:o.modelValue,userInput:null}),{formItem:s}=mg(),c=el((()=>Mu(o.modelValue)&&v(o.modelValue,-1)Mu(o.modelValue)&&v(o.modelValue)>o.max)),p=el((()=>{const e=b(o.step);return hh(o.precision)?Math.max(b(o.modelValue),e):(o.precision,o.precision)})),u=el((()=>o.controls&&"right"===o.controlsPosition)),h=ag(),f=sg(),g=el((()=>{if(null!==a.userInput)return a.userInput;let e=a.currentValue;if(Su(e))return"";if(Mu(e)){if(Number.isNaN(e))return"";hh(o.precision)||(e=e.toFixed(o.precision))}return e})),m=(e,t)=>{if(hh(t)&&(t=p.value),0===t)return Math.round(e);let r=String(e);const o=r.indexOf(".");if(-1===o)return e;if(!r.replace(".","").split("")[o+t])return e;const i=r.length;return"5"===r.charAt(i-1)&&(r=`${r.slice(0,Math.max(0,i-1))}6`),Number.parseFloat(Number(r).toFixed(t))},b=e=>{if(Su(e))return 0;const t=e.toString(),r=t.indexOf(".");let o=0;return-1!==r&&(o=t.length-r-1),o},v=(e,t=1)=>Mu(e)?m(e+o.step*t):a.currentValue,_=()=>{if(o.readonly||f.value||d.value)return;const e=o.modelValue||0,t=v(e);w(t)},y=()=>{if(o.readonly||f.value||c.value)return;const e=o.modelValue||0,t=v(e,-1);w(t)},x=(e,t)=>{const{max:i,min:l,step:n,precision:a,stepStrictly:s,valueOnClear:c}=o;let d=Number(e);if(Su(e)||Number.isNaN(d))return null;if(""===e){if(null===c)return null;d=nh(c)?{min:l,max:i}[c]:c}return s&&(d=m(Math.round(d/n)*n,a)),hh(a)||(d=m(d,a)),(d>i||di?i:l,t&&r("update:modelValue",d)),d},w=e=>{var t;const i=a.currentValue,l=x(e);i!==l&&(a.userInput=null,r("update:modelValue",l),r("input",l),r("change",l,i),o.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):"";(Mu(t)&&!Number.isNaN(t)||""===e)&&w(t),a.userInput=null},E=e=>{r("focus",e)},T=e=>{var t;r("blur",e),o.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))};return Ys((()=>o.modelValue),(e=>{a.currentValue=x(e,!0),a.userInput=null}),{immediate:!0}),xn((()=>{var e;const{min:t,max:i,modelValue:l}=o,s=null==(e=n.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(i)?s.setAttribute("aria-valuemax",String(i)):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)),!Mu(l)&&null!=l){let e=Number(l);Number.isNaN(e)&&(e=null),r("update:modelValue",e)}})),kn((()=>{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)=>(Sa(),Da("div",{class:nl([qi(l).b(),qi(l).m(qi(h)),qi(l).is("disabled",qi(f)),qi(l).is("without-controls",!e.controls),qi(l).is("controls-right",qi(u))]),onDragstart:t[0]||(t[0]=id((()=>{}),["prevent"]))},[e.controls?ea((Sa(),Da("span",{key:0,role:"button","aria-label":qi(i)("el.inputNumber.decrease"),class:nl([qi(l).e("decrease"),qi(l).is("disabled",qi(c))]),onKeydown:nd(y,["enter"])},[ja(qi(jg),null,{default:Ql((()=>[qi(u)?(Sa(),Ma(qi(Th),{key:0})):(Sa(),Ma(qi(hf),{key:1}))])),_:1})],42,X_)),[[qi(zv),y]]):Va("v-if",!0),e.controls?ea((Sa(),Da("span",{key:1,role:"button","aria-label":qi(i)("el.inputNumber.increase"),class:nl([qi(l).e("increase"),qi(l).is("disabled",qi(d))]),onKeydown:nd(_,["enter"])},[ja(qi(jg),null,{default:Ql((()=>[qi(u)?(Sa(),Ma(qi(Oh),{key:0})):(Sa(),Ma(qi(bf),{key:1}))])),_:1})],42,K_)),[[qi(zv),_]]):Va("v-if",!0),ja(qi(Zg),{id:e.id,ref_key:"input",ref:n,type:"number",step:e.step,"model-value":qi(g),placeholder:e.placeholder,readonly:e.readonly,disabled:qi(f),size:qi(h),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[nd(id(_,["prevent"]),["up"]),nd(id(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 $_=Ng(pn({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=ug("select"),r=Pi({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:i,isDisabled:l,select:n,hoverItem:a}=function(e,t){const r=tn("ElSelect"),o=tn("ElSelectGroup",{disabled:!1}),i=el((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),l=el((()=>r.props.multiple?p(r.props.modelValue,e.value):u(e.value,r.props.modelValue))),n=el((()=>{if(r.props.multiple){const e=r.props.modelValue||[];return!l.value&&e.length>=r.props.multipleLimit&&r.props.multipleLimit>0}return!1})),a=el((()=>e.label||(i.value?"":e.value))),s=el((()=>e.value||e.label||"")),c=el((()=>e.disabled||t.groupDisabled||n.value)),d=is(),p=(e=[],t)=>{if(i.value){const o=r.props.valueKey;return e&&e.some((e=>zi(Gp(e,o))===Gp(t,o)))}return e&&e.includes(t)},u=(e,t)=>{if(i.value){const{valueKey:o}=r.props;return Gp(e,o)===Gp(t,o)}return e===t};Ys((()=>a.value),(()=>{e.created||r.props.remote||r.setSelected()})),Ys((()=>e.value),((t,o)=>{const{remote:i,valueKey:l}=r.props;if(Object.is(t,o)||(r.onOptionDestroy(o,d.proxy),r.onOptionCreate(d.proxy)),!e.created&&!i){if(l&&"object"==typeof t&&"object"==typeof o&&t[l]===o[l])return;r.setSelected()}})),Ys((()=>o.disabled),(()=>{t.groupDisabled=o.disabled}),{immediate:!0});const{queryChange:h}=zi(r);return Ys(h,(o=>{const{query:i}=qi(o),l=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(i),"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||o.disabled||(r.hoverIndex=r.optionsArray.indexOf(d.proxy))}}}(e,r),{visible:s,hover:c}=Xi(r),d=is().proxy;return n.onOptionCreate(d),Cn((()=>{const e=d.value,{selected:t}=n,r=(n.props.multiple?t:[t]).some((e=>e.value===d.value));Rs((()=>{n.cachedOptions.get(e)!==d||r||n.cachedOptions.delete(e)})),n.onOptionDestroy(e,d)})),{ns:t,currentLabel:o,itemSelected:i,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,o,i,l){return ea((Sa(),Da("li",{class:nl([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]=id(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[Xa(e.$slots,"default",{},(()=>[Ba("span",null,al(e.currentLabel),1)]))],34)),[[ad,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const ey=pn({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=tn("ElSelect"),t=ug("select"),r=el((()=>e.props.popperClass)),o=el((()=>e.props.multiple)),i=el((()=>e.props.fitInputWidth)),l=Vi("");function n(){var t;l.value=`${null==(t=e.selectWrapper)?void 0:t.offsetWidth}px`}return xn((()=>{n(),Zu(e.selectWrapper,n)})),{ns:t,minWidth:l,popperClass:r,isMultiple:o,isFitInputWidth:i}}});const ty=(e,t,r)=>{const{t:o}=xg(),i=ug("select"),l=Vi(null),n=Vi(null),a=Vi(null),s=Vi(null),c=Vi(null),d=Vi(null),p=Vi(-1),u=Wi({query:""}),h=Wi(""),{form:f,formItem:g}=mg(),m=el((()=>!e.filterable||e.multiple||!t.visible)),b=el((()=>e.disabled||(null==f?void 0:f.disabled))),v=el((()=>{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})),_=el((()=>e.remote&&e.filterable?"":e.suffixIcon)),y=el((()=>i.is("reverse",_.value&&t.visible))),x=el((()=>e.remote?300:0)),w=el((()=>e.loading?e.loadingText||o("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||o("el.select.noMatch"):0===t.options.size?e.noDataText||o("el.select.noData"):null))),k=el((()=>Array.from(t.options.values()))),C=el((()=>Array.from(t.cachedOptions.values()))),E=el((()=>{const r=k.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!r})),T=ag(),S=el((()=>["small"].includes(T.value)?"small":"default")),A=el({get:()=>t.visible&&!1!==w.value,set(e){t.visible=e}});Ys([()=>b.value,()=>T.value,()=>null==f?void 0:f.size],(()=>{Rs((()=>{P()}))})),Ys((()=>e.placeholder),(e=>{t.cachedPlaceHolder=t.currentPlaceholder=e})),Ys((()=>e.modelValue),((r,o)=>{e.multiple&&(P(),r&&r.length>0||n.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",I(t.query))),L(),e.filterable&&!e.multiple&&(t.inputLength=20),!Tu(r,o)&&e.validateEvent&&(null==g||g.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),Ys((()=>t.visible),(o=>{var i,l,s;o?(null==(l=null==(i=a.value)?void 0:i.updatePopper)||l.call(i),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=""),I(t.query),e.multiple||e.remote||(u.value.query="",Yi(u),Yi(h)))):(n.value&&n.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,z(),Rs((()=>{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",o)})),Ys((()=>t.options.entries()),(()=>{var r,o,i;if(!Iu)return;null==(o=null==(r=a.value)?void 0:r.updatePopper)||o.call(r),e.multiple&&P();const l=(null==(i=c.value)?void 0:i.querySelectorAll("input"))||[];Array.from(l).includes(document.activeElement)||L(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&M()}),{flush:"post"}),Ys((()=>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||Rs((()=>{var e,r;if(!l.value)return;const o=l.value.$el.querySelector("input"),i=s.value,n=(c=T.value||(null==f?void 0:f.size),jf[c||"default"]);var c;o.style.height=(0===t.selected.length?n:Math.max(i?i.clientHeight+(i.clientHeight>n?6:0):0,n))-2+"px",t.tagInMultiLine=Number.parseFloat(o.style.height)>=n,t.visible&&!1!==w.value&&(null==(r=null==(e=a.value)?void 0:e.updatePopper)||r.call(e))}))},I=async r=>{t.previousQuery===r||t.isOnComposition||(null!==t.previousQuery||"function"!=typeof e.filterMethod&&"function"!=typeof e.remoteMethod?(t.previousQuery=r,Rs((()=>{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&&Rs((()=>{const r=15*n.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,r):r,D(),P()})),e.remote&&"function"==typeof e.remoteMethod?(t.hoverIndex=-1,e.remoteMethod(r)):"function"==typeof e.filterMethod?(e.filterMethod(r),Yi(h)):(t.filteredOptionsCount=t.optionsCount,u.value.query=r,Yi(u),Yi(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Rs(),M())):t.previousQuery=r)},D=()=>{""!==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)),o=e[0];t.hoverIndex=V(k.value,r||o)},L=()=>{var r;if(!e.multiple){const o=O(e.modelValue);return(null==(r=o.props)?void 0:r.created)?(t.createdLabel=o.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=o.currentLabel,t.selected=o,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const o=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{o.push(O(e))})),t.selected=o,Rs((()=>{P()}))},O=r=>{let o;const i="object"===dh(r).toLowerCase(),l="null"===dh(r).toLowerCase(),n="undefined"===dh(r).toLowerCase();for(let s=t.cachedOptions.size-1;s>=0;s--){const t=C.value[s];if(i?Gp(t.value,e.valueKey)===Gp(r,e.valueKey):t.value===r){o={value:r,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(o)return o;const a={value:r,currentLabel:i?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=>Gp(t,r)===Gp(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=Cu((()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,I(t.query))}),x.value),B=Cu((e=>{I(e.target.value)}),x.value),j=t=>{Tu(e.modelValue,t)||r.emit("change",t)},U=o=>{o.stopPropagation();const i=e.multiple?[]:"";if("string"!=typeof i)for(const e of t.selected)e.isDisabled&&i.push(e.value);r.emit("update:modelValue",i),j(i),t.visible=!1,r.emit("clear")},F=(o,i)=>{var l;if(e.multiple){const i=(e.modelValue||[]).slice(),a=V(i,o.value);a>-1?i.splice(a,1):(e.multipleLimit<=0||i.length{H(o)}))},V=(t=[],r)=>{if(!ah(r))return t.indexOf(r);const o=e.valueKey;let i=-1;return t.some(((e,t)=>zi(Gp(e,o))===Gp(r,o)&&(i=t,!0))),i},W=()=>{t.softFocus=!0;const e=n.value||l.value;e&&(null==e||e.focus())},H=e=>{var t,r,o,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==(o=null==(r=null==(t=a.value)?void 0:t.popperRef)?void 0:r.contentRef)?void 0:o.querySelector)?void 0:l.call(o,`.${i.be("dropdown","wrap")}`);e&&function(e,t){if(!Iu)return;if(!t)return void(e.scrollTop=0);const r=[];let o=t.offsetParent;for(;null!==o&&e!==o&&e.contains(o);)r.push(o),o=o.offsetParent;const i=t.offsetTop+r.reduce(((e,t)=>e+t.offsetTop),0),l=i+t.offsetHeight,n=e.scrollTop,a=n+e.clientHeight;ia&&(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=>ah(t.value)?Gp(t.value,e.valueKey):t.value,Z=el((()=>k.value.filter((e=>e.visible)).every((e=>e.disabled)))),Q=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||Q(e),Rs((()=>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:o=>{if(o.target.value.length<=0&&!G()){const t=e.modelValue.slice();t.pop(),r.emit("update:modelValue",t),j(t)}1===o.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)},deleteTag:(o,i)=>{const l=t.selected.indexOf(i);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",i.value)}o.stopPropagation()},deleteSelected:U,handleOptionSelect:F,scrollToOption:H,readonly:m,resetInputHeight:P,showClose:v,iconComponent:_,iconReverse:y,showNewOption:E,collapseTagSize:S,setSelected:L,managePlaceholder:D,selectDisabled:b,emptyText:w,toggleLastOptionHitState:G,resetInputState:e=>{e.code!==Nf&&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,Rs((()=>I(r)));else{const e=r[r.length-1]||"";t.isOnComposition=!Vf(e)}},onOptionCreate:e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},onOptionDestroy:(e,r)=>{t.options.get(e)===r&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},handleMenuEnter:()=>{Rs((()=>H(t.selected)))},handleFocus:o=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),r.emit("focus",o))},blur:()=>{var e;t.visible=!1,null==(e=l.value)||e.blur()},handleBlur:e=>{Rs((()=>{t.isSilentBlur?t.isSilentBlur=!1:r.emit("blur",e)})),t.softFocus=!1},handleClearClick:e=>{U(e)},handleClose:()=>{t.visible=!1},handleKeydownEscape:e=>{t.visible&&(e.preventDefault(),e.stopPropagation(),t.visible=!1)},toggleMenu:Y,selectOption:()=>{t.visible?k.value[t.hoverIndex]&&F(k.value[t.hoverIndex],void 0):Y()},getValueKey:q,navigateOptions:Q,dropMenuVisible:A,queryChange:u,groupQueryChange:h,reference:l,input:n,tooltipRef:a,tags:s,selectWrapper:c,scrollbar:d}},ry=pn({name:"ElSelect",componentName:"ElSelect",components:{ElInput:Zg,ElSelectMenu:Ng(ey,[["render",function(e,t,r,o,i,l){return Sa(),Da("div",{class:nl([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:rl({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Xa(e.$slots,"default")],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]),ElOption:$_,ElTag:$v,ElScrollbar:em,ElTooltip:rv,ElIcon:jg},directives:{ClickOutside:Ov},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Uf},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Wb.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Vh},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Oh},tagType:d(c({},Kv.type),{default:"info"}),validateEvent:{type:Boolean,default:!0}},emits:["update:modelValue","change","remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=ug("select"),o=ug("input"),{t:i}=xg(),l=function(e){const{t:t}=xg();return Pi({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:S,resetInputState:A,handleComposition:P,onOptionCreate:I,onOptionDestroy:D,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:z,handleClearClick:R,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:U,getValueKey:F,navigateOptions:V,dropMenuVisible:W,reference:H,input:G,tooltipRef:Y,tags:q,selectWrapper:Z,scrollbar:Q,queryChange:X,groupQueryChange:K}=ty(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:oe,visible:ie,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}=Xi(l),_e=el((()=>{const t=[r.b()],o=qi(a);return o&&t.push(r.m(o)),e.disabled&&t.push(r.m("disabled")),t})),ye=el((()=>({maxWidth:qi(ee)-32+"px",width:"100%"})));en("ElSelect",Pi({props:e,options:fe,optionsArray:n,cachedOptions:ge,optionsCount:me,filteredOptionsCount:oe,hoverIndex:ae,handleOptionSelect:m,onOptionCreate:I,onOptionDestroy:D,selectWrapper:Z,selected:te,setSelected:v,queryChange:X,groupQueryChange:K})),xn((()=>{l.cachedPlaceHolder=de.value=e.placeholder||i("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(de.value=""),Zu(Z,c),e.remote&&e.multiple&&_(),Rs((()=>{const e=H.value&&H.value.$el;if(e&&(ee.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${o.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=el((()=>{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:oe,visible:ie,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:S,resetInputState:A,handleComposition:P,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:z,handleClearClick:R,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:U,getValueKey:F,navigateOptions:V,dropMenuVisible:W,focus:J,reference:H,input:G,tooltipRef:Y,popperPaneRef:xe,tags:q,selectWrapper:Z,scrollbar:Q,wrapperKls:_e,selectTagsStyle:ye,nsSelect:r}}}),oy={class:"select-trigger"},iy=["disabled","autocomplete"],ly={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};var ny=Ng(ry,[["render",function(e,t,r,o,i,l){const n=ga("el-tag"),a=ga("el-tooltip"),s=ga("el-icon"),c=ga("el-input"),d=ga("el-option"),p=ga("el-scrollbar"),u=ga("el-select-menu"),h=va("click-outside");return ea((Sa(),Da("div",{ref:"selectWrapper",class:nl(e.wrapperKls),onClick:t[22]||(t[22]=id(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[ja(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:Ql((()=>[Ba("div",oy,[e.multiple?(Sa(),Da("div",{key:0,ref:"tags",class:nl(e.nsSelect.e("tags")),style:rl(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(Sa(),Da("span",{key:0,class:nl([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[ja(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:Ql((()=>[Ba("span",{class:nl(e.nsSelect.e("tags-text")),style:rl({maxWidth:e.inputWidth-123+"px"})},al(e.selected[0].currentLabel),7)])),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(Sa(),Ma(n,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Ql((()=>[e.collapseTagsTooltip?(Sa(),Ma(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Ql((()=>[Ba("span",{class:nl(e.nsSelect.e("tags-text"))},"+ "+al(e.selected.length-1),3)])),content:Ql((()=>[Ba("div",{class:nl(e.nsSelect.e("collapse-tags"))},[(Sa(!0),Da(xa,null,Za(e.selected.slice(1),((t,r)=>(Sa(),Da("div",{key:r,class:nl(e.nsSelect.e("collapse-tag"))},[(Sa(),Ma(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:Ql((()=>[Ba("span",{class:nl(e.nsSelect.e("tags-text")),style:rl({maxWidth:e.inputWidth-75+"px"})},al(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"]))],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):(Sa(),Da("span",{key:1,class:nl(e.nsSelect.e("tags-text"))},"+ "+al(e.selected.length-1),3))])),_:1},8,["size","type"])):Va("v-if",!0)],2)):Va("v-if",!0),Va("
"),e.collapseTags?Va("v-if",!0):(Sa(),Ma(jc,{key:1,onAfterLeave:e.resetInputHeight},{default:Ql((()=>[Ba("span",{class:nl([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(Sa(!0),Da(xa,null,Za(e.selected,(t=>(Sa(),Ma(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:Ql((()=>[Ba("span",{class:nl(e.nsSelect.e("tags-text")),style:rl({maxWidth:e.inputWidth-75+"px"})},al(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),Va("
"),e.filterable?ea((Sa(),Da("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.query=t),type:"text",class:nl([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:rl({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]=nd(id((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[7]||(t[7]=nd(id((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[8]||(t[8]=nd(((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t)),["esc"])),t[9]||(t[9]=nd(id(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=nd(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[11]||(t[11]=nd((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,iy)),[[ed,e.query]]):Va("v-if",!0)],6)):Va("v-if",!0),ja(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=t=>e.selectedLabel=t),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:nl([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]=nd(id((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[18]||(t[18]=nd(id((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),nd(id(e.selectOption,["stop","prevent"]),["enter"]),nd(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=nd((t=>e.visible=!1),["tab"]))],onMouseenter:t[20]||(t[20]=t=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=t=>e.inputHovering=!1)},Qa({suffix:Ql((()=>[e.iconComponent&&!e.showClose?(Sa(),Ma(s,{key:0,class:nl([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Ql((()=>[(Sa(),Ma(ba(e.iconComponent)))])),_:1},8,["class"])):Va("v-if",!0),e.showClose&&e.clearIcon?(Sa(),Ma(s,{key:1,class:nl([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Ql((()=>[(Sa(),Ma(ba(e.clearIcon)))])),_:1},8,["class","onClick"])):Va("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:Ql((()=>[Ba("div",ly,[Xa(e.$slots,"prefix")])]))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])])),content:Ql((()=>[ja(u,null,{default:Ql((()=>[ea(ja(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:nl([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:Ql((()=>[e.showNewOption?(Sa(),Ma(d,{key:0,value:e.query,created:!0},null,8,["value"])):Va("v-if",!0),Xa(e.$slots,"default")])),_:3},8,["wrap-class","view-class","class"]),[[ad,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(Sa(),Da(xa,{key:0},[e.$slots.empty?Xa(e.$slots,"empty",{key:0}):(Sa(),Da("p",{key:1,class:nl(e.nsSelect.be("dropdown","empty"))},al(e.emptyText),3))],64)):Va("v-if",!0)])),_:3})])),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[h,e.handleClose,e.popperPaneRef]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);var ay=Ng(pn({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=ug("select"),r=Vi(!0),o=is(),i=Vi([]);en("ElSelectGroup",Pi(c({},Xi(e))));const l=tn("ElSelect");xn((()=>{i.value=n(o.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}=zi(l);return Ys(a,(()=>{r.value=i.value.some((e=>!0===e.visible))})),{visible:r,ns:t}}}),[["render",function(e,t,r,o,i,l){return ea((Sa(),Da("ul",{class:nl(e.ns.be("group","wrap"))},[Ba("li",{class:nl(e.ns.be("group","title"))},al(e.label),3),Ba("li",null,[Ba("ul",{class:nl(e.ns.b("group"))},[Xa(e.$slots,"default")],2)])],2)),[[ad,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const sy=Df(ny,{Option:$_,OptionGroup:ay}),cy=Mf($_);Mf(ay);const dy=Sf({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Af},inactiveIcon:{type:Af},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Function},size:{type:String,validator:Uf},tabindex:{type:[String,Number]}}),py={"update:modelValue":e=>Du(e)||nh(e)||Mu(e),change:e=>Du(e)||nh(e)||Mu(e),input:e=>Du(e)||nh(e)||Mu(e)},uy=["onClick"],hy=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],fy=["aria-hidden"],gy=["aria-hidden"],my=["aria-hidden"],by=["aria-hidden"];const vy=Df(Ng(pn(d(c({},{name:"ElSwitch"}),{props:dy,emits:py,setup(e,{expose:t,emit:r}){const o=e,i="ElSwitch",l=is(),{formItem:n}=mg(),a=ag(),s=ug("switch");cg({from:'"value"',replacement:'"model-value" or "v-model"',scope:i,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},el((()=>{var e;return!!(null==(e=l.vnode.props)?void 0:e.value)})));const{inputId:d}=bg(o,{formItemContext:n}),p=sg(el((()=>o.loading))),u=Vi(!1!==o.modelValue),h=Vi(),f=Vi(),g=el((()=>[s.b(),s.m(a.value),s.is("disabled",p.value),s.is("checked",v.value)])),m=el((()=>({width:yh(o.width)})));Ys((()=>o.modelValue),(()=>{u.value=!0})),Ys((()=>o.value),(()=>{u.value=!1}));const b=el((()=>u.value?o.modelValue:o.value)),v=el((()=>b.value===o.activeValue));[o.activeValue,o.inactiveValue].includes(b.value)||(r("update:modelValue",o.inactiveValue),r("change",o.inactiveValue),r("input",o.inactiveValue)),Ys(v,(e=>{var t;h.value.checked=e,o.validateEvent&&(null==(t=null==n?void 0:n.validate)||t.call(n,"change").catch((e=>{})))}));const _=()=>{const e=v.value?o.inactiveValue:o.activeValue;r("update:modelValue",e),r("change",e),r("input",e),Rs((()=>{h.value.checked=v.value}))},y=()=>{if(p.value)return;const{beforeChange:e}=o;if(!e)return void _();const t=e();[sh(t),Du(t)].includes(!0)||bh(i,"beforeChange must return type `Promise` or `boolean`"),sh(t)?t.then((e=>{e&&_()})).catch((e=>{})):t&&_()},x=el((()=>s.cssVarBlock(c(c(c({},o.activeColor?{"on-color":o.activeColor}:null),o.inactiveColor?{"off-color":o.inactiveColor}:null),o.borderColor?{"border-color":o.borderColor}:null))));return xn((()=>{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)=>(Sa(),Da("div",{class:nl(qi(g)),style:rl(qi(x)),onClick:id(y,["prevent"])},[Ba("input",{id:qi(d),ref_key:"input",ref:h,class:nl(qi(s).e("input")),type:"checkbox",role:"switch","aria-checked":qi(v),"aria-disabled":qi(p),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:qi(p),tabindex:e.tabindex,onChange:_,onKeydown:nd(y,["enter"])},null,42,hy),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Va("v-if",!0):(Sa(),Da("span",{key:0,class:nl([qi(s).e("label"),qi(s).em("label","left"),qi(s).is("active",!qi(v))])},[e.inactiveIcon?(Sa(),Ma(qi(jg),{key:0},{default:Ql((()=>[(Sa(),Ma(ba(e.inactiveIcon)))])),_:1})):Va("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Sa(),Da("span",{key:1,"aria-hidden":qi(v)},al(e.inactiveText),9,fy)):Va("v-if",!0)],2)),Ba("span",{ref_key:"core",ref:f,class:nl(qi(s).e("core")),style:rl(qi(m))},[e.inlinePrompt?(Sa(),Da("div",{key:0,class:nl(qi(s).e("inner"))},[e.activeIcon||e.inactiveIcon?(Sa(),Da(xa,{key:0},[e.activeIcon?(Sa(),Ma(qi(jg),{key:0,class:nl([qi(s).is("icon"),qi(v)?qi(s).is("show"):qi(s).is("hide")])},{default:Ql((()=>[(Sa(),Ma(ba(e.activeIcon)))])),_:1},8,["class"])):Va("v-if",!0),e.inactiveIcon?(Sa(),Ma(qi(jg),{key:1,class:nl([qi(s).is("icon"),qi(v)?qi(s).is("hide"):qi(s).is("show")])},{default:Ql((()=>[(Sa(),Ma(ba(e.inactiveIcon)))])),_:1},8,["class"])):Va("v-if",!0)],64)):e.activeText||e.inactiveIcon?(Sa(),Da(xa,{key:1},[e.activeText?(Sa(),Da("span",{key:0,class:nl([qi(s).is("text"),qi(v)?qi(s).is("show"):qi(s).is("hide")]),"aria-hidden":!qi(v)},al(e.activeText.substring(0,3)),11,gy)):Va("v-if",!0),e.inactiveText?(Sa(),Da("span",{key:1,class:nl([qi(s).is("text"),qi(v)?qi(s).is("hide"):qi(s).is("show")]),"aria-hidden":qi(v)},al(e.inactiveText.substring(0,3)),11,my)):Va("v-if",!0)],64)):Va("v-if",!0)],2)):Va("v-if",!0),Ba("div",{class:nl(qi(s).e("action"))},[e.loading?(Sa(),Ma(qi(jg),{key:0,class:nl(qi(s).is("loading"))},{default:Ql((()=>[ja(qi(cf))])),_:1},8,["class"])):Va("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Va("v-if",!0):(Sa(),Da("span",{key:1,class:nl([qi(s).e("label"),qi(s).em("label","right"),qi(s).is("active",qi(v))])},[e.activeIcon?(Sa(),Ma(qi(jg),{key:0},{default:Ql((()=>[(Sa(),Ma(ba(e.activeIcon)))])),_:1})):Va("v-if",!0),!e.activeIcon&&e.activeText?(Sa(),Da("span",{key:1,"aria-hidden":!qi(v)},al(e.activeText),9,by)):Va("v-if",!0)],2))],14,uy))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]])); /*! Element Plus v2.2.16 */var _y,yy,xy={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}},wy={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}}; /*! Element Plus v2.2.16 */_y="undefined"!=typeof window?window:ce,yy=function(e,t){var r=[],o=Object.getPrototypeOf,i=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 o,i,l=(r=r||m).createElement("script");if(l.text=e,t)for(o in b)(i=t[o]||t.getAttribute&&t.getAttribute(o))&&l.setAttribute(o,i);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 i.call(this)},get:function(e){return null==e?i.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(i.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(U),q=new RegExp("^"+B+"$"),Z={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+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")},Q=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),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))},oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=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(I=O.call(x.childNodes),x.childNodes),I[x.childNodes.length].nodeType}catch(Ee){L={apply:I.length?function(e,t){M.apply(e,O.call(t))}:function(e,t){for(var r=e.length,o=0;e[r++]=t[o++];);e.length=r-1}}}function ae(e,t,o,i){var l,a,c,d,p,f,b,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return o;if(!i&&(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 o;if(c.id===l)return o.push(c),o}else if(v&&(c=v.getElementById(l))&&_(t,c)&&c.id===l)return o.push(c),o}else{if(p[2])return L.apply(o,t.getElementsByTagName(e)),o;if((l=p[3])&&r.getElementsByClassName&&t.getElementsByClassName)return L.apply(o,t.getElementsByClassName(l)),o}if(r.qsa&&!S[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(oe,ie):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(o,v.querySelectorAll(b)),o}catch(w){S(e,!0)}finally{d===y&&t.removeAttribute("id")}}}return s(e.replace(V,"$1"),t,o,i)}function se(){var e=[];return function t(r,i){return e.push(r+" ")>o.cacheLength&&delete t[e.shift()],t[r+" "]=i}}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("|"),i=r.length;i--;)o.attrHandle[r[i]]=t}function ue(e,t){var r=t&&e,o=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;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,o){for(var i,l=e([],r.length,t),n=l.length;n--;)r[i=l[n]]&&(r[i]=!(o[i]=r[i]))}))}))}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!Q.test(t||r&&r.nodeName||"HTML")},u=ae.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:x;return n!=h&&9===n.nodeType&&n.documentElement?(f=(h=n).documentElement,g=!l(h),x!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",le,!1):i.attachEvent&&i.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?(o.filter.ID=function(e){var t=e.replace(te,re);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var r=t.getElementById(e);return r?[r]:[]}}):(o.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}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var r,o,i,l=t.getElementById(e);if(l){if((r=l.getAttributeNode("id"))&&r.value===e)return[l];for(i=t.getElementsByName(e),o=0;l=i[o++];)if((r=l.getAttributeNode("id"))&&r.value===e)return[l]}return[]}}),o.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,o=[],i=0,l=t.getElementsByTagName(e);if("*"===e){for(;r=l[i++];)1===r.nodeType&&o.push(r);return o}return l},o.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("!=",U)})),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,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(r.contains?r.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return p=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!r.sortDetached&&t.compareDocumentPosition(e)===o?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&o?-1:1)}:function(e,t){if(e===t)return p=!0,0;var r,o=0,i=e.parentNode,l=t.parentNode,n=[e],a=[t];if(!i||!l)return e==h?-1:t==h?1:i?-1:l?1:d?z(d,e)-z(d,t):0;if(i===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[o]===a[o];)o++;return o?ue(n[o],a[o]):n[o]==x?-1:a[o]==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&&!S[t+" "]&&(!b||!b.test(t))&&(!m||!m.test(t)))try{var o=v.call(e,t);if(o||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(Ee){S(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 i=o.attrHandle[t.toLowerCase()],l=i&&P.call(o.attrHandle,t.toLowerCase())?i(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(oe,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,o=[],i=0,l=0;if(p=!r.detectDuplicates,d=!r.sortStable&&e.slice(0),e.sort(A),p){for(;t=e[l++];)t===e[l]&&(i=o.push(l));for(;i--;)e.splice(o[i],1)}return d=null,e},i=ae.getText=function(e){var t,r="",o=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+=i(e)}else if(3===l||4===l)return e.nodeValue}else for(;t=e[o++];)r+=i(t);return r},(o=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(o){var i=ae.attr(o,e);return null==i?"!="===t:!t||(i+="","="===t?i===r:"!="===t?i!==r:"^="===t?r&&0===i.indexOf(r):"*="===t?r&&i.indexOf(r)>-1:"$="===t?r&&i.slice(-r.length)===r:"~="===t?(" "+i.replace(F," ")+" ").indexOf(r)>-1:"|="===t&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,o,i){var l="nth"!==e.slice(0,3),n="last"!==e.slice(-4),a="of-type"===t;return 1===o&&0===i?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(_-=i)===o||_%o==0&&_/o>=0}}},PSEUDO:function(e,t){var r,i=o.pseudos[e]||o.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[y]?i(t):i.length>1?(r=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,r){for(var o,l=i(e,t),n=l.length;n--;)e[o=z(e,l[n])]=!(r[o]=l[n])})):function(e){return i(e,0,r)}):i}},pseudos:{not:ce((function(e){var t=[],r=[],o=a(e.replace(V,"$1"));return o[y]?ce((function(e,t,r,i){for(var l,n=o(e,null,i,[]),a=e.length;a--;)(l=n[a])&&(e[a]=!(t[a]=l))})):function(e,i,l){return t[0]=e,o(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||i(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!o.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first: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;--o>=0;)e.push(o);return e})),gt:me((function(e,t,r){for(var o=r<0?r+t:r;++o1?function(t,r,o){for(var i=e.length;i--;)if(!e[i](t,r,o))return!1;return!0}:e[0]}function we(e,t,r,o,i){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),i?i(null,n,b,s):L.apply(n,b)}))}function Ce(e){for(var t,r,i,l=e.length,n=o.relative[e[0].type],a=n||o.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,o){var i=!n&&(o||r!==c)||((t=r).nodeType?d(e,r,o):p(e,r,o));return t=null,i}];s1&&xe(u),s>1&&_e(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(V,"$1"),r,s0,i=e.length>0,l=function(l,n,a,s,d){var p,f,m,b=0,v="0",_=l&&[],y=[],x=c,k=l||i&&o.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(i&&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]=D.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,i))).selector=e}return a},s=ae.select=function(e,t,r,i){var l,s,c,d,p,u="function"==typeof e&&e,h=!i&&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&&o.relative[s[1].type]){if(!(t=(o.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],!o.relative[d=c.type]);)if((p=o.find[d])&&(i=p(c.matches[0].replace(te,re),ee.test(s[0].type)&&be(t.parentNode)||t))){if(s.splice(l,1),!(e=i.length&&_e(s)))return L.apply(r,i),r;break}}return(u||a(e,h))(i,t,!g,r,!t||ee.test(e)&&be(t.parentNode)||t),r},r.sortStable=y.split("").sort(A).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 o;if(!r)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.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 o=[],i=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&x(e).is(r))break;o.push(e)}return o},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 S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,r){return f(t)?x.grep(e,(function(e,o){return!!t.call(e,o,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 o=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?x.find.matchesSelector(o,e)?[o]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,r,o=this.length,i=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 I,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,r){var o,i;if(!e)return this;if(r=r||I,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!o[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),A.test(o[1])&&x.isPlainObject(t))for(o in t)f(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=m.getElementById(o[2]))&&(this[0]=i,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,I=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&&o(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(r,o){var i=x.map(this,t,r);return"Until"!==e.slice(-5)&&(o=r),o&&"string"==typeof o&&(i=x.filter(o,i)),this.length>1&&(L[e]||x.uniqueSort(i),M.test(e)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function R(e){return e}function N(e){throw e}function B(e,t,r,o){var i;try{e&&f(i=e.promise)?i.call(e).done(t).fail(r):e&&f(i=e.then)?i.call(e,t,r):t.apply(void 0,[e].slice(o))}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,o,i,l=[],n=[],a=-1,s=function(){for(i=i||e.once,o=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 i=n=[],l=r="",this},disabled:function(){return!l},lock:function(){return i=n=[],r||t||(l=r=""),this},locked:function(){return!!i},fireWith:function(e,r){return i||(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!!o}};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"]],o="pending",i={state:function(){return o},always:function(){return l.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(t){x.each(r,(function(r,o){var i=f(e[o[4]])&&e[o[4]];l[o[1]]((function(){var e=i&&i.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,o,i){var l=0;function n(t,r,o,i){return function(){var a=this,s=arguments,c=function(){var e,c;if(!(t=l&&(o!==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(i)?i:R,e.notifyWith)),r[1][3].add(n(0,e,f(t)?t:R)),r[2][3].add(n(0,e,f(o)?o:N))})).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},l={};return x.each(r,(function(e,t){var n=t[2],a=t[5];i[t[1]]=n.add,a&&n.add((function(){o=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})),i.promise(l),t&&t.call(l,l),l},when:function(e){var t=arguments.length,r=t,o=Array(r),l=i.call(arguments),n=x.Deferred(),a=function(e){return function(r){o[e]=this,l[e]=arguments.length>1?i.call(arguments):r,--t||n.resolveWith(o,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 U=x.Deferred();function F(){m.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),x.ready()}x.fn.ready=function(e){return U.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||U.resolveWith(m,[x]))}}),x.ready.then=U.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(x.ready):(m.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var V=function(e,t,r,o,i,l,n){var a=0,s=e.length,c=null==r;if("object"===_(r))for(a in i=!0,r)V(e,t,a,r[a],!0,l,n);else if(void 0!==o&&(i=!0,f(o)||(n=!0),c&&(n?(t.call(e,o),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(){X.remove(this,e)}))}}),x.extend({queue:function(e,t,r){var o;if(e)return t=(t||"fx")+"queue",o=Q.get(e,t),r&&(!o||Array.isArray(r)?o=Q.access(e,t,x.makeArray(r)):o.push(r)),o||[]},dequeue:function(e,t){t=t||"fx";var r=x.queue(e,t),o=r.length,i=r.shift(),l=x._queueHooks(e,t);"inprogress"===i&&(i=r.shift(),o--),i&&("fx"===t&&r.unshift("inprogress"),delete l.stop,i.call(e,(function(){x.dequeue(e,t)}),l)),!o&&l&&l.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return Q.get(e,r)||Q.access(e,r,{empty:x.Callbacks("once memory").add((function(){Q.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&&S(e,t)?x.merge([e],r):r}function ve(e,t){for(var r=0,o=e.length;r",""]);var _e=/<|&#?\w+;/;function ye(e,t,r,o,i){for(var l,n,a,s,c,d,p=t.createDocumentFragment(),u=[],h=0,f=e.length;h-1)i&&i.push(l);else if(c=ie(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,o,i,l){var n,a;if("object"==typeof t){for(a in"string"!=typeof r&&(o=o||r,r=void 0),t)Ee(e,a,r,o,t[a],l);return e}if(null==o&&null==i?(i=r,o=r=void 0):null==i&&("string"==typeof r?(i=o,o=void 0):(i=o,o=r,r=void 0)),!1===i)i=ke;else if(!i)return e;return 1===l&&(n=i,(i=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,i,o,r)}))}function Te(e,t,r){r?(Q.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var o,l,n=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(n.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=i.call(arguments),Q.set(this,t,n),o=r(this,t),this[t](),n!==(l=Q.get(this,t))||o?Q.set(this,t,!1):l={},n!==l)return e.stopImmediatePropagation(),e.preventDefault(),l&&l.value}else n.length&&(Q.set(this,t,{value:x.event.trigger(x.extend(n[0],x.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&x.event.add(e,t,we)}x.event={global:{},add:function(e,t,r,o,i){var l,n,a,s,c,d,p,u,h,f,g,m=Q.get(e);if(q(e))for(r.handler&&(r=(l=r).handler,i=l.selector),i&&x.find.matchesSelector(oe,i),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=(i?p.delegateType:p.bindType)||h,p=x.event.special[h]||{},d=x.extend({type:h,origType:g,data:o,handler:r,guid:r.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:f.join(".")},l),(u=s[h])||((u=s[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,o,f,n)||e.addEventListener&&e.addEventListener(h,n)),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),i?u.splice(u.delegateCount++,0,d):u.push(d),x.event.global[h]=!0)},remove:function(e,t,r,o,i){var l,n,a,s,c,d,p,u,h,f,g,m=Q.hasData(e)&&Q.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=(o?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),n=l=u.length;l--;)d=u[l],!i&&g!==d.origType||r&&r.guid!==d.guid||a&&!a.test(d.namespace)||o&&o!==d.selector&&("**"!==o||!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,o,!0);x.isEmptyObject(s)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,r,o,i,l,n,a=new Array(arguments.length),s=x.event.fix(e),c=(Q.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(i,this,null,[c]).length),n[i]&&l.push(o);l.length&&a.push({elem:c,handlers:l})}return c=this,s\s*$/g;function Ie(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var r,o,i,l,n,a;if(1===t.nodeType){if(Q.hasData(e)&&(a=Q.get(e).events))for(i in Q.remove(t,"handle events"),a)for(r=0,o=a[i].length;r1&&"string"==typeof m&&!h.checkClone&&Ae.test(m))return e.each((function(i){var l=e.eq(i);b&&(t[0]=m.call(this,i,l.html())),Oe(l,t,r,o)}));if(u&&(n=(i=ye(t,e[0].ownerDocument,!1,e,o)).firstChild,1===i.childNodes.length&&(i=n),n||o)){for(s=(a=x.map(be(i,"script"),De)).length;p0&&ve(n,!p&&be(e,"script")),d},cleanData:function(e){for(var t,r,o,i=x.event.special,l=0;void 0!==(r=e[l]);l++)if(q(r)){if(t=r[Q.expando]){if(t.events)for(o in t.events)i[o]?x.event.remove(r,o):x.removeEvent(r,o,t.handle);r[Q.expando]=void 0}r[X.expando]&&(r[X.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||Ie(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(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,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.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 o=Be(e),i=(!h.boxSizingReliable()||r)&&"border-box"===x.css(e,"boxSizing",!1,o),l=i,n=Ve(e,t,o),a="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(n)){if(!r)return n;n="auto"}return(!h.boxSizingReliable()&&i||!h.reliableTrDimensions()&&S(e,"tr")||"auto"===n||!parseFloat(n)&&"inline"===x.css(e,"display",!1,o))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,o),(l=a in e)&&(n=e[a])),(n=parseFloat(n)||0)+Je(e,t,r||(i?"border":"content"),l,o,n)+"px"}function et(e,t,r,o,i){return new et.prototype.init(e,t,r,o,i)}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,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,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!==(i=n.get(e,!1,o))?i:c[t];"string"==(l=typeof r)&&(i=te.exec(r))&&i[1]&&(r=ae(e,t,i),l="number"),null!=r&&r==r&&("number"!==l||s||(r+=i&&i[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,o))||(s?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,o){var i,l,n,a=Y(t);return Ne.test(t)||(t=qe(a)),(n=x.cssHooks[t]||x.cssHooks[a])&&"get"in n&&(i=n.get(e,!0,r)),void 0===i&&(i=Ve(e,t,o)),"normal"===i&&t in Xe&&(i=Xe[t]),""===r||r?(l=parseFloat(i),!0===r||isFinite(l)?l||0:i):i}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,r,o){if(r)return!Ze.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$e(e,t,o):je(e,Qe,(function(){return $e(e,t,o)}))},set:function(e,r,o){var i,l=Be(e),n=!h.scrollboxSize()&&"absolute"===l.position,a=(n||o)&&"border-box"===x.css(e,"boxSizing",!1,l),s=o?Je(e,t,o,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&&(i=te.exec(r))&&"px"!==(i[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 o=0,i={},l="string"==typeof r?r.split(" "):[r];o<4;o++)i[e+re[o]+t]=l[o]||l[o-2]||l[0];return i}},"margin"!==e&&(x.cssHooks[e+t].set=Ke)})),x.fn.extend({css:function(e,t){return V(this,(function(e,t,r){var o,i,l={},n=0;if(Array.isArray(t)){for(o=Be(e),i=t.length;n1)}}),x.Tween=et,et.prototype={constructor:et,init:function(e,t,r,o,i,l){this.elem=e,this.prop=r,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,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,ot=/^(?:toggle|show|hide)$/,it=/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,o=0,i={height:e};for(t=t?1:0;o<4;o+=2-t)i["margin"+(r=re[o])]=i["padding"+r]=e;return t&&(i.opacity=i.width=e),i}function st(e,t,r){for(var o,i=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),l=0,n=i.length;l1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,r){var o,i,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)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?dt:void 0)),void 0!==r?null===r?void x.removeAttr(e,t):i&&"set"in i&&void 0!==(o=i.set(e,r,t))?o:(e.setAttribute(t,r+""),r):i&&"get"in i&&null!==(o=i.get(e,t))?o:null==(o=x.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&S(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,o=0,i=t&&t.match(z);if(i&&1===e.nodeType)for(;r=i[o++];)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,o){var i,l,n=t.toLowerCase();return o||(l=pt[n],pt[n]=i,i=null!=r(e,t,o)?n:null,pt[n]=l),i}}));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 o,i,l=e.nodeType;if(3!==l&&8!==l&&2!==l)return 1===l&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.propHooks[t]),void 0!==r?i&&"set"in i&&void 0!==(o=i.set(e,r,t))?o:e[t]=r:i&&"get"in i&&null!==(o=i.get(e,t))?o: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,o,i,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(o=gt(this),r=1===this.nodeType&&" "+ft(o)+" "){for(l=0;l-1;)r=r.replace(" "+i+" "," ");n=ft(r),o!==n&&this.setAttribute("class",n)}})):this:this.attr("class","")},toggleClass:function(e,t){var r,o,i,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),i=0;i-1)return!0;return!1}});var bt=/\r/g;x.fn.extend({val:function(e){var t,r,o,i=this[0];return arguments.length?(o=f(e),this.each((function(r){var i;1===this.nodeType&&(null==(i=o?e.call(this,r,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(i,"value"))?r:"string"==typeof(r=i.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,o,i=e.options,l=e.selectedIndex,n="select-one"===e.type,a=n?null:[],s=n?l+1:i.length;for(o=l<0?s:n?l:0;o-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,o,i){var l,n,a,s,c,p,u,h,b=[o||m],v=d.call(t,"type")?t.type:t,_=d.call(t,"namespace")?t.namespace.split("."):[];if(n=h=a=o=o||m,3!==o.nodeType&&8!==o.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=i?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),r=null==r?[t]:x.makeArray(r,[t]),u=x.event.special[v]||{},i||!u.trigger||!1!==u.trigger.apply(o,r))){if(!i&&!u.noBubble&&!g(o)){for(s=u.delegateType||v,vt.test(s+v)||(n=n.parentNode);n;n=n.parentNode)b.push(n),a=n;a===(o.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=(Q.get(n,"events")||Object.create(null))[t.type]&&Q.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,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(b.pop(),r)||!q(o)||c&&f(o[v])&&!g(o)&&((a=o[c])&&(o[c]=null),x.event.triggered=v,t.isPropagationStopped()&&h.addEventListener(v,_t),o[v](),t.isPropagationStopped()&&h.removeEventListener(v,_t),x.event.triggered=void 0,a&&(o[c]=a)),t.result}},simulate:function(e,t,r){var o=x.extend(new x.Event,r,{type:e,isSimulated:!0});x.event.trigger(o,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 o=this.ownerDocument||this.document||this,i=Q.access(o,t);i||o.addEventListener(e,r,!0),Q.access(o,t,(i||0)+1)},teardown:function(){var o=this.ownerDocument||this.document||this,i=Q.access(o,t)-1;i?Q.access(o,t,i):(o.removeEventListener(e,r,!0),Q.remove(o,t))}}}));var yt=e.location,xt={guid:Date.now()},wt=/\?/;x.parseXML=function(t){var r,o;if(!t||"string"!=typeof t)return null;try{r=(new e.DOMParser).parseFromString(t,"text/xml")}catch(i){}return o=r&&r.getElementsByTagName("parsererror")[0],r&&!o||x.error("Invalid XML: "+(o?x.map(o.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 St(e,t,r,o){var i;if(Array.isArray(t))x.each(t,(function(t,i){r||kt.test(e)?o(e,i):St(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,o)}));else if(r||"object"!==_(t))o(e,t);else for(i in t)St(e+"["+i+"]",t[i],r,o)}x.param=function(e,t){var r,o=[],i=function(e,t){var r=f(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){i(this.name,this.value)}));else for(r in e)St(r,e[r],t,i);return o.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 At=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,Dt=/^(.*?):[ \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 o,i=0,l=t.toLowerCase().match(z)||[];if(f(r))for(;o=l[i++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(r)):(e[o]=e[o]||[]).push(r)}}function jt(e,t,r,o){var i={},l=e===zt;function n(a){var s;return i[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,r,o);return"string"!=typeof c||l||i[c]?l?!(s=c):void 0:(t.dataTypes.unshift(c),n(c),!1)})),s}return n(t.dataTypes[0])||!i["*"]&&n("*")}function Ut(e,t){var r,o,i=x.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:o||(o={}))[r]=t[r]);return o&&x.extend(!0,e,o),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?Ut(Ut(e,x.ajaxSettings),t):Ut(x.ajaxSettings,e)},ajaxPrefilter:Bt(Ot),ajaxTransport:Bt(zt),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0),r=r||{};var o,i,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=Dt.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 o&&o.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),i=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(At,"+")):(u=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(wt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(It,"$1"),u=(wt.test(i)?"&":"?")+"_="+xt.guid+++u),h.url=i+u),h.ifModified&&(x.lastModified[i]&&C.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&C.setRequestHeader("If-None-Match",x.etag[i])),(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),o=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,o.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),o=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 o,i,l,n,a=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(i in a)if(a[i]&&a[i].test(o)){s.unshift(i);break}if(s[0]in r)l=s[0];else{for(i in r){if(!s[0]||e.converters[i+" "+s[0]]){l=i;break}n||(n=i)}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,o){var i,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&&o&&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(i in c)if((a=i.split(" "))[1]===l&&(n=c[s+" "+a[0]]||c["* "+a[0]])){!0===n?n=c[i]:!0!==c[i]&&(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[i]=w),(w=C.getResponseHeader("etag"))&&(x.etag[i]=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,o,i){return f(r)&&(i=i||o,o=r,r=void 0),x.ajax(x.extend({url:e,type:t,dataType:i,data:r,success:o},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 Ft={0:200,1223:204},Vt=x.ajaxSettings.xhr();h.cors=!!Vt&&"withCredentials"in Vt,h.ajax=Vt=!!Vt,x.ajaxTransport((function(t){var r,o;if(h.cors||Vt&&!t.crossDomain)return{send:function(i,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||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(n,i[n]);r=function(e){return function(){r&&(r=o=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(Ft[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=r(),o=a.onerror=a.ontimeout=r("error"),void 0!==a.onabort?a.onabort=o:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){r&&o()}))},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(o,i){t=x("