@openremote/or-gauge 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/umd/index.js CHANGED
@@ -1,5 +1,5 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ORModel"),require("ORTranslate"),require("ORIcon"),require("ORCore")):"function"==typeof define&&define.amd?define(["ORModel","ORTranslate","ORIcon","ORCore"],e):"object"==typeof exports?exports.ORGauge=e(require("ORModel"),require("ORTranslate"),require("ORIcon"),require("ORCore")):t.ORGauge=e(t.ORModel,t.ORTranslate,t.ORIcon,t.ORCore)}(self,(t,e,n,r)=>(()=>{var i={658:function(t){(function(){var e,n,r,i,o,s,u,a,l,h,c,f,p=[].slice,d={}.hasOwnProperty,v=function(t,e){for(var n in e)d.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},g=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return -1};!function(){var t,e,n,r,i,o,s;for(n=0,i=(s=["ms","moz","webkit","o"]).length;n<i&&(o=s[n],!window.requestAnimationFrame);n++)window.requestAnimationFrame=window[o+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];t=null,r=0,e={},requestAnimationFrame?window.cancelAnimationFrame||(t=window.requestAnimationFrame,window.requestAnimationFrame=function(n,i){var o;return o=++r,t(function(){if(!e[o])return n()},i),o},window.cancelAnimationFrame=function(t){return e[t]=!0}):(window.requestAnimationFrame=function(t,e){var n,r,i,o;return o=Math.max(0,16-((n=new Date().getTime())-i)),r=window.setTimeout(function(){return t(n+o)},o),i=n+o,r},window.cancelAnimationFrame=function(t){return clearTimeout(t)})}(),f=function(t){var e,n;for(e=Math.floor(t/3600),n=Math.floor((t-3600*e)/60),t-=3600*e+60*n,t+="",n+="";n.length<2;)n="0"+n;for(;t.length<2;)t="0"+t;return(e=e?e+":":"")+n+":"+t},h=function(){var t,e,n;return e=1<=arguments.length?p.call(arguments,0):[],n=e[0],t=e[1],a(n.toFixed(t))},c=function(t,e){var n,r,i;for(n in r={},t)d.call(t,n)&&(i=t[n],r[n]=i);for(n in e)d.call(e,n)&&(i=e[n],r[n]=i);return r},a=function(t){var e,n,r,i;for(t+="",r=(n=t.split("."))[0],i="",n.length>1&&(i="."+n[1]),e=/(\d+)(\d{3})/;e.test(r);)r=r.replace(e,"$1,$2");return r+i},l=function(t){return"#"===t.charAt(0)?t.substring(1,7):t},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return v(e,t),e.prototype.displayScale=1,e.prototype.forceUpdate=!0,e.prototype.setTextField=function(t,e){return this.textField=t instanceof s?t:new s(t,e)},e.prototype.setMinValue=function(t,e){var n,r,i,o,s;if(this.minValue=t,null==e&&(e=!0),e){for(r=0,this.displayedValue=this.minValue,o=this.gp||[],s=[],i=o.length;r<i;r++)n=o[r],s.push(n.displayedValue=this.minValue);return s}},e.prototype.setOptions=function(t){return null==t&&(t=null),this.options=c(this.options,t),this.textField&&(this.textField.el.style.fontSize=t.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},e.prototype.configDisplayScale=function(){var t,e,n,r,i;return r=this.displayScale,!1===this.options.highDpiSupport?delete this.displayScale:(e=window.devicePixelRatio||1,t=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=e/t),this.displayScale!==r&&(i=this.canvas.G__width||this.canvas.width,n=this.canvas.G__height||this.canvas.height,this.canvas.width=i*this.displayScale,this.canvas.height=n*this.displayScale,this.canvas.style.width=i+"px",this.canvas.style.height=n+"px",this.canvas.G__width=i,this.canvas.G__height=n),this},e.prototype.parseValue=function(t){return isFinite(t=parseFloat(t)||Number(t))?t:0},e}(u=function(){function t(t,e){null==t&&(t=!0),this.clear=null==e||e,t&&AnimationUpdater.add(this)}return t.prototype.animationSpeed=32,t.prototype.update=function(t){var e;return null==t&&(t=!1),(!!t||this.displayedValue!==this.value)&&(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),.001>=Math.abs((e=this.value-this.displayedValue)/this.animationSpeed)?this.displayedValue=this.value:this.displayedValue=this.displayedValue+e/this.animationSpeed,this.render(),!0)},t}()),s=function(){function t(t,e){this.el=t,this.fractionDigits=e}return t.prototype.render=function(t){return this.el.innerHTML=h(t.displayedValue,this.fractionDigits)},t}(),function(t){function e(t,n){if(this.elem=t,this.text=null!=n&&n,e.__super__.constructor.call(this),void 0===this.elem)throw Error("The element isn't defined.");this.value=+this.elem.innerHTML,this.text&&(this.value=0)}v(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.setVal=function(t){return this.value=+t},e.prototype.render=function(){var t;return t=this.text?f(this.displayedValue.toFixed(0)):a(h(this.displayedValue)),this.elem.innerHTML=t}}(u),o=function(t){function e(t){if(this.gauge=t,void 0===this.gauge)throw Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,e.__super__.constructor.call(this,!1,!1),this.setOptions()}return v(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},e.prototype.img=null,e.prototype.setOptions=function(t){if(null==t&&(t=null),this.options=c(this.options,t),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},e.prototype.render=function(){var t,e,n,r,i,o,s,u,a;if(t=this.gauge.getAngle.call(this,this.displayedValue),u=Math.round(this.length*Math.cos(t)),a=Math.round(this.length*Math.sin(t)),o=Math.round(this.strokeWidth*Math.cos(t-Math.PI/2)),s=Math.round(this.strokeWidth*Math.sin(t-Math.PI/2)),e=Math.round(this.strokeWidth*Math.cos(t+Math.PI/2)),n=Math.round(this.strokeWidth*Math.sin(t+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(o,s),this.ctx.lineTo(u,a),this.ctx.lineTo(e,n),this.ctx.fill(),this.img)return r=Math.round(this.img.width*this.options.iconScale),i=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(u,a),this.ctx.rotate(t+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-r/2,-i/2,r,i),this.ctx.restore()},e}(u),function(){function t(t){this.elem=t}t.prototype.updateValues=function(t){return this.value=t[0],this.maxValue=t[1],this.avgValue=t[2],this.render()},t.prototype.render=function(){var t,e;return this.textField&&this.textField.text(h(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),e=this.value/this.maxValue*100,t=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:e+"%"}),$(".typical-value",this.elem).css({width:t+"%"})}}(),i=function(t){function e(t){var n,r;this.canvas=t,e.__super__.constructor.call(this),this.percentColors=null,"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),n=this.canvas.clientHeight,r=this.canvas.clientWidth,this.canvas.height=n,this.canvas.width=r,this.gp=[new o(this)],this.setOptions()}return v(e,t),e.prototype.elem=null,e.prototype.value=[20],e.prototype.maxValue=80,e.prototype.minValue=0,e.prototype.displayedAngle=0,e.prototype.displayedValue=0,e.prototype.lineWidth=40,e.prototype.paddingTop=.1,e.prototype.paddingBottom=.1,e.prototype.percentColors=null,e.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,fontSize:40,limitMax:!1,limitMin:!1},e.prototype.setOptions=function(t){var n,r,i,o,s;for(null==t&&(t=null),e.__super__.setOptions.call(this,t),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(o=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(o)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),r=0,i=(s=this.gp).length;r<i;r++)(n=s[r]).setOptions(this.options.pointer),n.render();return this.render(),this},e.prototype.configPercentColors=function(){var t,e,n,r,i,o,s;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=[],o=[],n=r=0,i=this.options.percentColors.length-1;0<=i?r<=i:r>=i;n=0<=i?++r:--r)s=parseInt(l(this.options.percentColors[n][1]).substring(0,2),16),e=parseInt(l(this.options.percentColors[n][1]).substring(2,4),16),t=parseInt(l(this.options.percentColors[n][1]).substring(4,6),16),o.push(this.percentColors[n]={pct:this.options.percentColors[n][0],color:{r:s,g:e,b:t}});return o}},e.prototype.set=function(t){var e,n,r,i,s,u,a,l,h;for(t instanceof Array||(t=[t]),n=r=0,a=t.length-1;0<=a?r<=a:r>=a;n=0<=a?++r:--r)t[n]=this.parseValue(t[n]);if(t.length>this.gp.length)for(n=i=0,l=t.length-this.gp.length;0<=l?i<l:i>l;n=0<=l?++i:--i)(e=new o(this)).setOptions(this.options.pointer),this.gp.push(e);else t.length<this.gp.length&&(this.gp=this.gp.slice(this.gp.length-t.length));for(u=0,n=0,s=t.length;u<s;u++)(h=t[u])>this.maxValue?this.options.limitMax?h=this.maxValue:this.maxValue=h+1:h<this.minValue&&(this.options.limitMin?h=this.minValue:this.minValue=h-1),this.gp[n].value=h,this.gp[n++].setOptions({minValue:this.minValue,maxValue:this.maxValue,angle:this.options.angle});return this.value=Math.max(Math.min(t[t.length-1],this.maxValue),this.minValue),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},e.prototype.getAngle=function(t){return(1+this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},e.prototype.getColorForPercentage=function(t,e){var n,r,i,o,s,u,a;if(0===t)n=this.percentColors[0].color;else for(n=this.percentColors[this.percentColors.length-1].color,i=o=0,u=this.percentColors.length-1;0<=u?o<=u:o>=u;i=0<=u?++o:--o)if(t<=this.percentColors[i].pct){!0===e?(a=this.percentColors[i-1]||this.percentColors[0],r=this.percentColors[i],s=(t-a.pct)/(r.pct-a.pct),n={r:Math.floor(a.color.r*(1-s)+r.color.r*s),g:Math.floor(a.color.g*(1-s)+r.color.g*s),b:Math.floor(a.color.b*(1-s)+r.color.b*s)}):n=this.percentColors[i].color;break}return"rgb("+[n.r,n.g,n.b].join(",")+")"},e.prototype.getColorForValue=function(t,e){var n;return n=(t-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(n,e)},e.prototype.renderStaticLabels=function(t,e,n,r){var i,o,s,u,a,l,c,f,p,d;for(this.ctx.save(),this.ctx.translate(e,n),i=t.font||"10px Times",l=/\d+\.?\d?/,a=i.match(l)[0],f=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+f,this.ctx.fillStyle=t.color||"#000000",this.ctx.textBaseline="bottom",this.ctx.textAlign="center",s=0,u=(c=t.labels).length;s<u;s++)void 0!==(d=c[s]).label?(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(a=(i=d.font||t.font).match(l)[0],f=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+f,p=this.getAngle(d.label)-3*Math.PI/2,this.ctx.rotate(p),this.ctx.fillText(h(d.label,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-p)):(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(p=this.getAngle(d)-3*Math.PI/2,this.ctx.rotate(p),this.ctx.fillText(h(d,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-p));return this.ctx.restore()},e.prototype.renderTicks=function(t,e,n,r){var i,o,s,u,a,l,h,c,f,p,d,v,g,_,y,m,x,b,w,A;if(t!=={}){for(l=t.divisions||0,b=t.subDivisions||0,s=t.divColor||"#fff",_=t.subColor||"#fff",u=t.divLength||.7,m=t.subLength||.2,y=parseFloat(p=parseFloat(f=parseFloat(this.maxValue)-parseFloat(this.minValue))/parseFloat(t.divisions))/parseFloat(t.subDivisions),i=parseFloat(this.minValue),o=0+y,a=(c=f/400)*(t.divWidth||1),x=c*(t.subWidth||1),v=[],w=h=0,d=l+1;h<d;w=h+=1)this.ctx.lineWidth=this.lineWidth*u,g=this.lineWidth/2*(1-u),A=this.radius*this.options.radiusScale+g,this.ctx.strokeStyle=s,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(i-a),this.getAngle(i+a),!1),this.ctx.stroke(),o=i+y,i+=p,w!==t.divisions&&b>0?v.push((function(){var t,e,n;for(n=[],t=0,e=b-1;t<e;t+=1)this.ctx.lineWidth=this.lineWidth*m,g=this.lineWidth/2*(1-m),A=this.radius*this.options.radiusScale+g,this.ctx.strokeStyle=_,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(o-x),this.getAngle(o+x),!1),this.ctx.stroke(),n.push(o+=y);return n}).call(this)):v.push(void 0);return v}},e.prototype.render=function(){var t,e,n,r,i,o,s,u,a,l,h,c,f,p,d,v;if(d=this.canvas.width/2,n=this.canvas.height*this.paddingTop+this.availableHeight-(this.radius+this.lineWidth/2)*this.extraPadding,t=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",l=this.radius*this.options.radiusScale,this.options.staticLabels&&this.renderStaticLabels(this.options.staticLabels,d,n,l),this.options.staticZones)for(this.ctx.save(),this.ctx.translate(d,n),this.ctx.lineWidth=this.lineWidth,r=0,o=(h=this.options.staticZones).length;r<o;r++)a=(v=h[r]).min,this.options.limitMin&&a<this.minValue&&(a=this.minValue),u=v.max,this.options.limitMax&&u>this.maxValue&&(u=this.maxValue),p=this.radius*this.options.radiusScale,v.height&&(this.ctx.lineWidth=this.lineWidth*v.height,f=this.lineWidth/2*(v.offset||1-v.height),p=this.radius*this.options.radiusScale+f),this.ctx.strokeStyle=v.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,p,this.getAngle(a),this.getAngle(u),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?e=this.options.customFillStyle(this):null!==this.percentColors?e=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?((e=0===this.options.gradientType?this.ctx.createRadialGradient(d,n,9,d,n,70):this.ctx.createLinearGradient(0,0,d,0)).addColorStop(0,this.options.colorStart),e.addColorStop(1,this.options.colorStop)):e=this.options.colorStart,this.ctx.strokeStyle=e,this.ctx.beginPath(),this.ctx.arc(d,n,l,(1+this.options.angle)*Math.PI,t,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(d,n,l,t,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(d,n);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,d,n,l),this.ctx.restore(),this.ctx.translate(d,n),i=0,s=(c=this.gp).length;i<s;i++)c[i].update(!0);return this.ctx.translate(-d,-n)},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return v(e,t),e.prototype.strokeGradient=function(t,e,n,r){var i;return(i=this.ctx.createRadialGradient(t,e,n,t,e,r)).addColorStop(0,this.options.shadowColor),i.addColorStop(.12,this.options._orgStrokeColor),i.addColorStop(.88,this.options._orgStrokeColor),i.addColorStop(1,this.options.shadowColor),i},e.prototype.setOptions=function(t){var n,r,i,o;return null==t&&(t=null),e.__super__.setOptions.call(this,t),o=this.canvas.width/2,n=this.canvas.height/2,r=this.radius-this.lineWidth/2,i=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(o,n,r,i),this},e}(e=function(t){function e(t){this.canvas=t,e.__super__.constructor.call(this),"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),this.setOptions(),this.render()}return v(e,t),e.prototype.lineWidth=15,e.prototype.displayedValue=0,e.prototype.value=33,e.prototype.maxValue=80,e.prototype.minValue=0,e.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35,radiusScale:1},e.prototype.getAngle=function(t){return(1-this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},e.prototype.setOptions=function(t){return null==t&&(t=null),e.__super__.setOptions.call(this,t),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.options.radiusScale*(this.canvas.height/2-this.lineWidth/2),this},e.prototype.set=function(t){return this.value=this.parseValue(t),this.value>this.maxValue?this.options.limitMax?this.value=this.maxValue:this.maxValue=this.value:this.value<this.minValue&&(this.options.limitMin?this.value=this.minValue:this.minValue=this.value),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},e.prototype.render=function(){var t,e,n,r;return t=this.getAngle(this.displayedValue),r=this.canvas.width/2,n=this.canvas.height/2,this.textField&&this.textField.render(this),(e=this.ctx.createRadialGradient(r,n,39,r,n,70)).addColorStop(0,this.options.colorStart),e.addColorStop(1,this.options.colorStop),this.radius,this.lineWidth,this.radius,this.lineWidth,this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(r,n,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=e,this.ctx.beginPath(),this.ctx.arc(r,n,this.radius,(1-this.options.angle)*Math.PI,t,!1),this.ctx.stroke()},e}(n)),window.AnimationUpdater={elements:[],animId:null,addAll:function(t){var e,n,r,i;for(n=0,i=[],r=t.length;n<r;n++)e=t[n],i.push(AnimationUpdater.elements.push(e));return i},add:function(t){if(0>g.call(AnimationUpdater.elements,t))return AnimationUpdater.elements.push(t)},run:function(t){var e,n,r,i,o,s,u;if(null==t&&(t=!1),isFinite(parseFloat(t))||!0===t){for(e=!0,u=[],s=AnimationUpdater.elements,r=n=0,o=s.length;n<o;r=++n)s[r].update(!0===t)?e=!1:u.push(r);for(i=u.length-1;i>=0;i+=-1)r=u[i],AnimationUpdater.elements.splice(r,1);return AnimationUpdater.animId=e?null:requestAnimationFrame(AnimationUpdater.run)}if(!1===t)return!0===AnimationUpdater.animId&&cancelAnimationFrame(AnimationUpdater.animId),AnimationUpdater.animId=requestAnimationFrame(AnimationUpdater.run)}},"function"==typeof window.define&&null!=window.define.amd?define(function(){return{Gauge:i,Donut:r,BaseDonut:e,TextRenderer:s}}):null!=t.exports?t.exports={Gauge:i,Donut:r,BaseDonut:e,TextRenderer:s}:(window.Gauge=i,window.Donut=r,window.BaseDonut=e,window.TextRenderer=s)}).call(this)},891:function(t,e,n){t=n.nmd(t),(function(){var r,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",u=1/0,a=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],h="[object Arguments]",c="[object Array]",f="[object Boolean]",p="[object Date]",d="[object Error]",v="[object Function]",g="[object GeneratorFunction]",_="[object Map]",y="[object Number]",m="[object Object]",x="[object Promise]",b="[object RegExp]",w="[object Set]",A="[object String]",S="[object Symbol]",E="[object WeakMap]",C="[object ArrayBuffer]",k="[object DataView]",O="[object Float32Array]",R="[object Float64Array]",P="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",j="[object Uint8Array]",T="[object Uint8ClampedArray]",V="[object Uint16Array]",z="[object Uint32Array]",I=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,D=/[&<>"']/g,F=RegExp(N.source),B=RegExp(D.source),H=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),X=/^\s+/,tt=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tn=/\{\n\/\* \[wrapped with (.+)\] \*/,tr=/,? & /,ti=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,to=/[()=,{}\[\]\/\s]/,ts=/\\(\\)?/g,tu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ta=/\w*$/,tl=/^[-+]0x[0-9a-f]+$/i,th=/^0b[01]+$/i,tc=/^\[object .+?Constructor\]$/,tf=/^0o[0-7]+$/i,tp=/^(?:0|[1-9]\d*)$/,td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tv=/($^)/,tg=/['\n\r\u2028\u2029\\]/g,t_="\ud800-\udfff",ty="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tm="\\u2700-\\u27bf",tx="a-z\\xdf-\\xf6\\xf8-\\xff",tb="A-Z\\xc0-\\xd6\\xd8-\\xde",tw="\\ufe0e\\ufe0f",tA="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",t$="['’]",tS="["+tA+"]",tE="["+ty+"]",tC="["+tx+"]",tk="[^"+t_+tA+"\\d+"+tm+tx+tb+"]",tO="\ud83c[\udffb-\udfff]",tR="[^"+t_+"]",tP="(?:\ud83c[\udde6-\uddff]){2}",tU="[\ud800-\udbff][\udc00-\udfff]",tM="["+tb+"]",tj="\\u200d",tT="(?:"+tC+"|"+tk+")",tV="(?:"+tM+"|"+tk+")",tz="(?:"+t$+"(?:d|ll|m|re|s|t|ve))?",tI="(?:"+t$+"(?:D|LL|M|RE|S|T|VE))?",tW="(?:"+tE+"|"+tO+")?",tL="["+tw+"]?",tN="(?:"+tj+"(?:"+[tR,tP,tU].join("|")+")"+tL+tW+")*",tD=tL+tW+tN,tF="(?:"+["["+tm+"]",tP,tU].join("|")+")"+tD,tB="(?:"+[tR+tE+"?",tE,tP,tU,"["+t_+"]"].join("|")+")",tH=RegExp(t$,"g"),tq=RegExp(tE,"g"),tG=RegExp(tO+"(?="+tO+")|"+tB+tD,"g"),tZ=RegExp([tM+"?"+tC+"+"+tz+"(?="+[tS,tM,"$"].join("|")+")",tV+"+"+tI+"(?="+[tS,tM+tT,"$"].join("|")+")",tM+"?"+tT+"+"+tz,tM+"+"+tI,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",tF].join("|"),"g"),tK=RegExp("["+tj+t_+ty+tw+"]"),tJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tQ=-1,tX={};tX[O]=tX[R]=tX[P]=tX[U]=tX[M]=tX[j]=tX[T]=tX[V]=tX[z]=!0,tX[h]=tX[c]=tX[C]=tX[f]=tX[k]=tX[p]=tX[d]=tX[v]=tX[_]=tX[y]=tX[m]=tX[b]=tX[w]=tX[A]=tX[E]=!1;var t0={};t0[h]=t0[c]=t0[C]=t0[k]=t0[f]=t0[p]=t0[O]=t0[R]=t0[P]=t0[U]=t0[M]=t0[_]=t0[y]=t0[m]=t0[b]=t0[w]=t0[A]=t0[S]=t0[j]=t0[T]=t0[V]=t0[z]=!0,t0[d]=t0[v]=t0[E]=!1;var t1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,t3=parseInt,t8="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,t6="object"==typeof self&&self&&self.Object===Object&&self,t4=t8||t6||Function("return this")(),t5=e&&!e.nodeType&&e,t9=t5&&t&&!t.nodeType&&t,t7=t9&&t9.exports===t5,et=t7&&t8.process,ee=function(){try{var t=t9&&t9.require&&t9.require("util").types;if(t)return t;return et&&et.binding&&et.binding("util")}catch(t){}}(),en=ee&&ee.isArrayBuffer,er=ee&&ee.isDate,ei=ee&&ee.isMap,eo=ee&&ee.isRegExp,es=ee&&ee.isSet,eu=ee&&ee.isTypedArray;function ea(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function el(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function eh(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ec(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ef(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function ep(t,e){return!!(null==t?0:t.length)&&eA(t,e,0)>-1}function ed(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function ev(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function eg(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function e_(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ey(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function em(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ex=eC("length");function eb(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function ew(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return -1}function eA(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return -1}(t,e,n):ew(t,eS,n)}function e$(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return -1}function eS(t){return t!=t}function eE(t,e){var n=null==t?0:t.length;return n?eR(t,e)/n:a}function eC(t){return function(e){return null==e?r:e[t]}}function ek(t){return function(e){return null==t?r:t[e]}}function eO(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function eR(t,e){for(var n,i=-1,o=t.length;++i<o;){var s=e(t[i]);r!==s&&(n=r===n?s:n+s)}return n}function eP(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function eU(t){return t?t.slice(0,eZ(t)+1).replace(X,""):t}function eM(t){return function(e){return t(e)}}function ej(t,e){return ev(e,function(e){return t[e]})}function eT(t,e){return t.has(e)}function eV(t,e){for(var n=-1,r=t.length;++n<r&&eA(e,t[n],0)>-1;);return n}function ez(t,e){for(var n=t.length;n--&&eA(e,t[n],0)>-1;);return n}var eI=ek({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),eW=ek({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function eL(t){return"\\"+t1[t]}function eN(t){return tK.test(t)}function eD(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function eF(t,e){return function(n){return t(e(n))}}function eB(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n];(u===e||u===s)&&(t[n]=s,o[i++]=n)}return o}function eH(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function eq(t){return eN(t)?function(t){for(var e=tG.lastIndex=0;tG.test(t);)++e;return e}(t):ex(t)}function eG(t){return eN(t)?t.match(tG)||[]:t.split("")}function eZ(t){for(var e=t.length;e--&&tt.test(t.charAt(e)););return e}var eK=ek({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),eJ=function t(e){var n,tt,t_,ty,tm=(e=null==e?t4:eJ.defaults(t4.Object(),e,eJ.pick(t4,tY))).Array,tx=e.Date,tb=e.Error,tw=e.Function,tA=e.Math,t$=e.Object,tS=e.RegExp,tE=e.String,tC=e.TypeError,tk=tm.prototype,tO=tw.prototype,tR=t$.prototype,tP=e["__core-js_shared__"],tU=tO.toString,tM=tR.hasOwnProperty,tj=0,tT=(n=/[^.]+$/.exec(tP&&tP.keys&&tP.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",tV=tR.toString,tz=tU.call(t$),tI=t4._,tW=tS("^"+tU.call(tM).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tL=t7?e.Buffer:r,tN=e.Symbol,tD=e.Uint8Array,tF=tL?tL.allocUnsafe:r,tB=eF(t$.getPrototypeOf,t$),tG=t$.create,tK=tR.propertyIsEnumerable,t1=tk.splice,t8=tN?tN.isConcatSpreadable:r,t6=tN?tN.iterator:r,t5=tN?tN.toStringTag:r,t9=function(){try{var t=iv(t$,"defineProperty");return t({},"",{}),t}catch(t){}}(),et=e.clearTimeout!==t4.clearTimeout&&e.clearTimeout,ee=tx&&tx.now!==t4.Date.now&&tx.now,ex=e.setTimeout!==t4.setTimeout&&e.setTimeout,ek=tA.ceil,eY=tA.floor,eQ=t$.getOwnPropertySymbols,eX=tL?tL.isBuffer:r,e0=e.isFinite,e1=tk.join,e2=eF(t$.keys,t$),e3=tA.max,e8=tA.min,e6=tx.now,e4=e.parseInt,e5=tA.random,e9=tk.reverse,e7=iv(e,"DataView"),nt=iv(e,"Map"),ne=iv(e,"Promise"),nn=iv(e,"Set"),nr=iv(e,"WeakMap"),ni=iv(t$,"create"),no=nr&&new nr,ns={},nu=iL(e7),na=iL(nt),nl=iL(ne),nh=iL(nn),nc=iL(nr),nf=tN?tN.prototype:r,np=nf?nf.valueOf:r,nd=nf?nf.toString:r;function nv(t){if(oK(t)&&!oI(t)&&!(t instanceof nm)){if(t instanceof ny)return t;if(tM.call(t,"__wrapped__"))return iN(t)}return new ny(t)}var ng=function(){function t(){}return function(e){if(!oZ(e))return{};if(tG)return tG(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function n_(){}function ny(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function nm(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function nx(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nb(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nw(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nA(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new nw;++e<n;)this.add(t[e])}function n$(t){var e=this.__data__=new nb(t);this.size=e.size}function nS(t,e){var n=oI(t),r=!n&&oz(t),i=!n&&!r&&oD(t),o=!n&&!r&&!i&&o3(t),s=n||r||i||o,u=s?eP(t.length,tE):[],a=u.length;for(var l in t)(e||tM.call(t,l))&&!(s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||iw(l,a)))&&u.push(l);return u}function nE(t){var e=t.length;return e?t[rh(0,e-1)]:r}nv.templateSettings={escape:H,evaluate:q,interpolate:G,variable:"",imports:{_:nv}},nv.prototype=n_.prototype,nv.prototype.constructor=nv,ny.prototype=ng(n_.prototype),ny.prototype.constructor=ny,nm.prototype=ng(n_.prototype),nm.prototype.constructor=nm,nx.prototype.clear=function(){this.__data__=ni?ni(null):{},this.size=0},nx.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},nx.prototype.get=function(t){var e=this.__data__;if(ni){var n=e[t];return n===o?r:n}return tM.call(e,t)?e[t]:r},nx.prototype.has=function(t){var e=this.__data__;return ni?e[t]!==r:tM.call(e,t)},nx.prototype.set=function(t,e){var n=this.__data__;return this.size+=+!this.has(t),n[t]=ni&&r===e?o:e,this},nb.prototype.clear=function(){this.__data__=[],this.size=0},nb.prototype.delete=function(t){var e=this.__data__,n=nO(e,t);return!(n<0)&&(n==e.length-1?e.pop():t1.call(e,n,1),--this.size,!0)},nb.prototype.get=function(t){var e=this.__data__,n=nO(e,t);return n<0?r:e[n][1]},nb.prototype.has=function(t){return nO(this.__data__,t)>-1},nb.prototype.set=function(t,e){var n=this.__data__,r=nO(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},nw.prototype.clear=function(){this.size=0,this.__data__={hash:new nx,map:new(nt||nb),string:new nx}},nw.prototype.delete=function(t){var e=ip(this,t).delete(t);return this.size-=!!e,e},nw.prototype.get=function(t){return ip(this,t).get(t)},nw.prototype.has=function(t){return ip(this,t).has(t)},nw.prototype.set=function(t,e){var n=ip(this,t),r=n.size;return n.set(t,e),this.size+=+(n.size!=r),this},nA.prototype.add=nA.prototype.push=function(t){return this.__data__.set(t,o),this},nA.prototype.has=function(t){return this.__data__.has(t)};function nC(t,e,n){(r===n||oj(t[e],n))&&(r!==n||e in t)||nU(t,e,n)}function nk(t,e,n){var i=t[e];tM.call(t,e)&&oj(i,n)&&(r!==n||e in t)||nU(t,e,n)}function nO(t,e){for(var n=t.length;n--;)if(oj(t[n][0],e))return n;return -1}function nR(t,e,n,r){return nW(t,function(t,i,o){e(r,t,n(t),o)}),r}function nP(t,e){return t&&rD(e,sv(e),t)}function nU(t,e,n){"__proto__"==e&&t9?t9(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function nM(t,e){for(var n=-1,i=e.length,o=tm(i),s=null==t;++n<i;)o[n]=s?r:sh(t,e[n]);return o}function nj(t,e,n){return t==t&&(r!==n&&(t=t<=n?t:n),r!==e&&(t=t>=e?t:e)),t}function nT(t,e,n,i,o,s){var u,a=1&e,l=2&e,c=4&e;if(n&&(u=o?n(t,i,o,s):n(t)),r!==u)return u;if(!oZ(t))return t;var d=oI(t);if(d){if(E=(x=t).length,I=new x.constructor(E),E&&"string"==typeof x[0]&&tM.call(x,"index")&&(I.index=x.index,I.input=x.input),u=I,!a)return rN(t,u)}else{var x,E,I,W,L,N,D,F,B=iy(t),H=B==v||B==g;if(oD(t))return rT(t,a);if(B==m||B==h||H&&!o){if(u=l||H?{}:ix(t),!a){return l?(W=t,L=(F=u)&&rD(t,sg(t),F),rD(W,i_(W),L)):(N=t,D=nP(u,t),rD(N,ig(N),D))}}else{if(!t0[B])return o?t:{};u=function(t,e,n){var r,i,o=t.constructor;switch(e){case C:return rV(t);case f:case p:return new o(+t);case k:return r=n?rV(t.buffer):t.buffer,new t.constructor(r,t.byteOffset,t.byteLength);case O:case R:case P:case U:case M:case j:case T:case V:case z:return rz(t,n);case _:return new o;case y:case A:return new o(t);case b:return(i=new t.constructor(t.source,ta.exec(t))).lastIndex=t.lastIndex,i;case w:return new o;case S:return np?t$(np.call(t)):{}}}(t,B,a)}}s||(s=new n$);var q=s.get(t);if(q)return q;s.set(t,u),o0(t)?t.forEach(function(r){u.add(nT(r,e,n,r,t,s))}):oJ(t)&&t.forEach(function(r,i){u.set(i,nT(r,e,n,i,t,s))});var G=c?l?iu:is:l?sg:sv,Z=d?r:G(t);return eh(Z||t,function(r,i){Z&&(r=t[i=r]),nk(u,i,nT(r,e,n,i,t,s))}),u}function nV(t,e,n){var i=n.length;if(null==t)return!i;for(t=t$(t);i--;){var o=n[i],s=e[o],u=t[o];if(r===u&&!(o in t)||!s(u))return!1}return!0}function nz(t,e,n){if("function"!=typeof t)throw new tC(i);return iM(function(){t.apply(r,n)},e)}function nI(t,e,n,r){var i=-1,o=ep,s=!0,u=t.length,a=[],l=e.length;if(!u)return a;n&&(e=ev(e,eM(n))),r?(o=ed,s=!1):e.length>=200&&(o=eT,s=!1,e=new nA(e));t:for(;++i<u;){var h=t[i],c=null==n?h:n(h);if(h=r||0!==h?h:0,s&&c==c){for(var f=l;f--;)if(e[f]===c)continue t;a.push(h)}else o(e,c,r)||a.push(h)}return a}n$.prototype.clear=function(){this.__data__=new nb,this.size=0},n$.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},n$.prototype.get=function(t){return this.__data__.get(t)},n$.prototype.has=function(t){return this.__data__.has(t)},n$.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nb){var r=n.__data__;if(!nt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new nw(r)}return n.set(t,e),this.size=n.size,this};var nW=rH(nG),nL=rH(nZ,!0);function nN(t,e){var n=!0;return nW(t,function(t,r,i){return n=!!e(t,r,i)}),n}function nD(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],u=e(s);if(null!=u&&(r===a?u==u&&!o2(u):n(u,a)))var a=u,l=s}return l}function nF(t,e){var n=[];return nW(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function nB(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=ib),i||(i=[]);++o<s;){var u=t[o];e>0&&n(u)?e>1?nB(u,e-1,n,r,i):eg(i,u):r||(i[i.length]=u)}return i}var nH=rq(),nq=rq(!0);function nG(t,e){return t&&nH(t,e,sv)}function nZ(t,e){return t&&nq(t,e,sv)}function nK(t,e){return ef(e,function(e){return oH(t[e])})}function nJ(t,e){e=rU(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[iW(e[n++])];return n&&n==i?t:r}function nY(t,e,n){var r=e(t);return oI(t)?r:eg(r,n(t))}function nQ(t){var e;return null==t?r===t?"[object Undefined]":"[object Null]":t5&&t5 in t$(t)?function(t){var e=tM.call(t,t5),n=t[t5];try{t[t5]=r;var i=!0}catch(t){}var o=tV.call(t);return i&&(e?t[t5]=n:delete t[t5]),o}(t):(e=t,tV.call(e))}function nX(t,e){return t>e}function n0(t,e){return null!=t&&tM.call(t,e)}function n1(t,e){return null!=t&&e in t$(t)}function n2(t,e,n){for(var i=n?ed:ep,o=t[0].length,s=t.length,u=s,a=tm(s),l=1/0,h=[];u--;){var c=t[u];u&&e&&(c=ev(c,eM(e))),l=e8(c.length,l),a[u]=!n&&(e||o>=120&&c.length>=120)?new nA(u&&c):r}c=t[0];var f=-1,p=a[0];t:for(;++f<o&&h.length<l;){var d=c[f],v=e?e(d):d;if(d=n||0!==d?d:0,!(p?eT(p,v):i(h,v,n))){for(u=s;--u;){var g=a[u];if(!(g?eT(g,v):i(t[u],v,n)))continue t}p&&p.push(v),h.push(d)}}return h}function n3(t,e,n){e=rU(e,t);var i=null==(t=iR(t,e))?t:t[iW(iQ(e))];return null==i?r:ea(i,t,n)}function n8(t){return oK(t)&&nQ(t)==h}function n6(t,e,n,i,o){return t===e||(null!=t&&null!=e&&(oK(t)||oK(e))?function(t,e,n,i,o,s){var u=oI(t),a=oI(e),l=u?c:iy(t),v=a?c:iy(e);l=l==h?m:l,v=v==h?m:v;var g=l==m,x=v==m,E=l==v;if(E&&oD(t)){if(!oD(e))return!1;u=!0,g=!1}if(E&&!g)return s||(s=new n$),u||o3(t)?ii(t,e,n,i,o,s):function(t,e,n,r,i,o,s){switch(n){case k:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case C:if(t.byteLength!=e.byteLength||!o(new tD(t),new tD(e)))break;return!0;case f:case p:case y:return oj(+t,+e);case d:return t.name==e.name&&t.message==e.message;case b:case A:return t==e+"";case _:var u=eD;case w:var a=1&r;if(u||(u=eH),t.size!=e.size&&!a)break;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var h=ii(u(t),u(e),r,i,o,s);return s.delete(t),h;case S:if(np)return np.call(t)==np.call(e)}return!1}(t,e,l,n,i,o,s);if(!(1&n)){var O=g&&tM.call(t,"__wrapped__"),R=x&&tM.call(e,"__wrapped__");if(O||R){var P=O?t.value():t,U=R?e.value():e;return s||(s=new n$),o(P,U,n,i,s)}}return!!E&&(s||(s=new n$),function(t,e,n,i,o,s){var u=1&n,a=is(t),l=a.length;if(l!=is(e).length&&!u)return!1;for(var h=l;h--;){var c=a[h];if(!(u?c in e:tM.call(e,c)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var d=!0;s.set(t,e),s.set(e,t);for(var v=u;++h<l;){var g=t[c=a[h]],_=e[c];if(i)var y=u?i(_,g,c,e,t,s):i(g,_,c,t,e,s);if(!(r===y?g===_||o(g,_,n,i,s):y)){d=!1;break}v||(v="constructor"==c)}if(d&&!v){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(d=!1)}return s.delete(t),s.delete(e),d}(t,e,n,i,o,s))}(t,e,n,i,n6,o):t!=t&&e!=e)}function n4(t,e,n,i){var o=n.length,s=o,u=!i;if(null==t)return!s;for(t=t$(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<s;){var l=(a=n[o])[0],h=t[l],c=a[1];if(u&&a[2]){if(r===h&&!(l in t))return!1}else{var f=new n$;if(i)var p=i(h,c,l,t,e,f);if(!(r===p?n6(c,h,3,i,f):p))return!1}}return!0}function n5(t){var e;return!(!oZ(t)||(e=t,tT&&tT in e))&&(oH(t)?tW:tc).test(iL(t))}function n9(t){return"function"==typeof t?t:null==t?sN:"object"==typeof t?oI(t)?rr(t[0],t[1]):rn(t):sJ(t)}function n7(t){if(!iC(t))return e2(t);var e=[];for(var n in t$(t))tM.call(t,n)&&"constructor"!=n&&e.push(n);return e}function rt(t,e){return t<e}function re(t,e){var n=-1,r=oL(t)?tm(t.length):[];return nW(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function rn(t){var e=id(t);return 1==e.length&&e[0][2]?ik(e[0][0],e[0][1]):function(n){return n===t||n4(n,t,e)}}function rr(t,e){var n;return i$(t)&&(n=e)==n&&!oZ(n)?ik(iW(t),e):function(n){var i=sh(n,t);return r===i&&i===e?sc(n,t):n6(e,i,3)}}function ri(t,e,n,i,o){t!==e&&nH(e,function(s,u){if(o||(o=new n$),oZ(s))!function(t,e,n,i,o,s,u){var a=iP(t,n),l=iP(e,n),h=u.get(l);if(h)return nC(t,n,h);var c=s?s(a,l,n+"",t,e,u):r,f=r===c;if(f){var p=oI(l),d=!p&&oD(l),v=!p&&!d&&o3(l);c=l,p||d||v?oI(a)?c=a:oN(a)?c=rN(a):d?(f=!1,c=rT(l,!0)):v?(f=!1,c=rz(l,!0)):c=[]:oQ(l)||oz(l)?(c=a,oz(a)?c=se(a):(!oZ(a)||oH(a))&&(c=ix(l))):f=!1}f&&(u.set(l,c),o(c,l,i,s,u),u.delete(l)),nC(t,n,c)}(t,e,u,n,ri,i,o);else{var a=i?i(iP(t,u),s,u+"",t,e,o):r;r===a&&(a=s),nC(t,u,a)}},sg)}function ro(t,e){var n=t.length;if(n)return iw(e+=e<0?n:0,n)?t[e]:r}function rs(t,e,n){e=e.length?ev(e,function(t){return oI(t)?function(e){return nJ(e,1===t.length?t[0]:t)}:t}):[sN];var r=-1;e=ev(e,eM(ic()));var i=re(t,function(t,n,i){return{criteria:ev(e,function(e){return e(t)}),index:++r,value:t}}),o=i.length;for(i.sort(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,u=n.length;++r<s;){var a=rI(i[r],o[r]);if(a){if(r>=u)return a;return a*("desc"==n[r]?-1:1)}}return t.index-e.index}(t,e,n)});o--;)i[o]=i[o].value;return i}function ru(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],u=nJ(t,s);n(u,s)&&rp(o,rU(s,t),u)}return o}function ra(t,e,n,r){var i=r?e$:eA,o=-1,s=e.length,u=t;for(t===e&&(e=rN(e)),n&&(u=ev(t,eM(n)));++o<s;)for(var a=0,l=e[o],h=n?n(l):l;(a=i(u,h,a,r))>-1;)u!==t&&t1.call(u,a,1),t1.call(t,a,1);return t}function rl(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;iw(i)?t1.call(t,i,1):r$(t,i)}}return t}function rh(t,e){return t+eY(e5()*(e-t+1))}function rc(t,e){var n="";if(!t||e<1||e>0x1fffffffffffff)return n;do e%2&&(n+=t),(e=eY(e/2))&&(t+=t);while(e);return n}function rf(t,e){return ij(iO(t,e,sN),t+"")}function rp(t,e,n,i){if(!oZ(t))return t;e=rU(e,t);for(var o=-1,s=e.length,u=s-1,a=t;null!=a&&++o<s;){var l=iW(e[o]),h=n;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(o!=u){var c=a[l];h=i?i(c,l,a):r,r===h&&(h=oZ(c)?c:iw(e[o+1])?[]:{})}nk(a,l,h),a=a[l]}return t}var rd=no?function(t,e){return no.set(t,e),t}:sN,rv=t9?function(t,e){return t9(t,"toString",{configurable:!0,enumerable:!1,value:sI(e),writable:!0})}:sN;function rg(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=tm(i);++r<i;)o[r]=t[r+e];return o}function r_(t,e){var n;return nW(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ry(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=0x7fffffff){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!o2(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return rm(t,e,sN,n)}function rm(t,e,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var u=(e=n(e))!=e,a=null===e,l=o2(e),h=r===e;o<s;){var c=eY((o+s)/2),f=n(t[c]),p=r!==f,d=null===f,v=f==f,g=o2(f);if(u)var _=i||v;else _=h?v&&(i||p):a?v&&p&&(i||!d):l?v&&p&&!d&&(i||!g):!d&&!g&&(i?f<=e:f<e);_?o=c+1:s=c}return e8(s,0xfffffffe)}function rx(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],u=e?e(s):s;if(!n||!oj(u,a)){var a=u;o[i++]=0===s?0:s}}return o}function rb(t){return"number"==typeof t?t:o2(t)?a:+t}function rw(t){if("string"==typeof t)return t;if(oI(t))return ev(t,rw)+"";if(o2(t))return nd?nd.call(t):"";var e=t+"";return"0"==e&&1/t==-u?"-0":e}function rA(t,e,n){var r=-1,i=ep,o=t.length,s=!0,u=[],a=u;if(n)s=!1,i=ed;else if(o>=200){var l=e?null:r5(t);if(l)return eH(l);s=!1,i=eT,a=new nA}else a=e?[]:u;t:for(;++r<o;){var h=t[r],c=e?e(h):h;if(h=n||0!==h?h:0,s&&c==c){for(var f=a.length;f--;)if(a[f]===c)continue t;e&&a.push(c),u.push(h)}else i(a,c,n)||(a!==u&&a.push(c),u.push(h))}return u}function r$(t,e){return e=rU(e,t),null==(t=iR(t,e))||delete t[iW(iQ(e))]}function rS(t,e,n,r){return rp(t,e,n(nJ(t,e)),r)}function rE(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?rg(t,r?0:o,r?o+1:i):rg(t,r?o+1:0,r?i:o)}function rC(t,e){var n=t;return n instanceof nm&&(n=n.value()),e_(e,function(t,e){return e.func.apply(e.thisArg,eg([t],e.args))},n)}function rk(t,e,n){var r=t.length;if(r<2)return r?rA(t[0]):[];for(var i=-1,o=tm(r);++i<r;)for(var s=t[i],u=-1;++u<r;)u!=i&&(o[i]=nI(o[i]||s,t[u],e,n));return rA(nB(o,1),e,n)}function rO(t,e,n){for(var i=-1,o=t.length,s=e.length,u={};++i<o;){var a=i<s?e[i]:r;n(u,t[i],a)}return u}function rR(t){return oN(t)?t:[]}function rP(t){return"function"==typeof t?t:sN}function rU(t,e){return oI(t)?t:i$(t,e)?[t]:iI(sn(t))}function rM(t,e,n){var i=t.length;return n=r===n?i:n,!e&&n>=i?t:rg(t,e,n)}var rj=et||function(t){return t4.clearTimeout(t)};function rT(t,e){if(e)return t.slice();var n=t.length,r=tF?tF(n):new t.constructor(n);return t.copy(r),r}function rV(t){var e=new t.constructor(t.byteLength);return new tD(e).set(new tD(t)),e}function rz(t,e){var n=e?rV(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function rI(t,e){if(t!==e){var n=r!==t,i=null===t,o=t==t,s=o2(t),u=r!==e,a=null===e,l=e==e,h=o2(e);if(!a&&!h&&!s&&t>e||s&&u&&l&&!a&&!h||i&&u&&l||!n&&l||!o)return 1;if(!i&&!s&&!h&&t<e||h&&n&&o&&!i&&!s||a&&n&&o||!u&&o||!l)return -1}return 0}function rW(t,e,n,r){for(var i=-1,o=t.length,s=n.length,u=-1,a=e.length,l=e3(o-s,0),h=tm(a+l),c=!r;++u<a;)h[u]=e[u];for(;++i<s;)(c||i<o)&&(h[n[i]]=t[i]);for(;l--;)h[u++]=t[i++];return h}function rL(t,e,n,r){for(var i=-1,o=t.length,s=-1,u=n.length,a=-1,l=e.length,h=e3(o-u,0),c=tm(h+l),f=!r;++i<h;)c[i]=t[i];for(var p=i;++a<l;)c[p+a]=e[a];for(;++s<u;)(f||i<o)&&(c[p+n[s]]=t[i++]);return c}function rN(t,e){var n=-1,r=t.length;for(e||(e=tm(r));++n<r;)e[n]=t[n];return e}function rD(t,e,n,i){var o=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var a=e[s],l=i?i(n[a],t[a],a,n,t):r;r===l&&(l=t[a]),o?nU(n,a,l):nk(n,a,l)}return n}function rF(t,e){return function(n,r){var i=oI(n)?el:nR,o=e?e():{};return i(n,t,ic(r,2),o)}}function rB(t){return rf(function(e,n){var i=-1,o=n.length,s=o>1?n[o-1]:r,u=o>2?n[2]:r;for(s=t.length>3&&"function"==typeof s?(o--,s):r,u&&iA(n[0],n[1],u)&&(s=o<3?r:s,o=1),e=t$(e);++i<o;){var a=n[i];a&&t(e,a,i,s)}return e})}function rH(t,e){return function(n,r){if(null==n)return n;if(!oL(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=t$(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function rq(t){return function(e,n,r){for(var i=-1,o=t$(e),s=r(e),u=s.length;u--;){var a=s[t?u:++i];if(!1===n(o[a],a,o))break}return e}}function rG(t){return function(e){var n=eN(e=sn(e))?eG(e):r,i=n?n[0]:e.charAt(0),o=n?rM(n,1).join(""):e.slice(1);return i[t]()+o}}function rZ(t){return function(e){return e_(sT(sC(e).replace(tH,"")),t,"")}}function rK(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ng(t.prototype),r=t.apply(n,e);return oZ(r)?r:n}}function rJ(t){return function(e,n,i){var o=t$(e);if(!oL(e)){var s=ic(n,3);e=sv(e),n=function(t){return s(o[t],t,o)}}var u=t(e,n,i);return u>-1?o[s?e[u]:u]:r}}function rY(t){return io(function(e){var n=e.length,o=n,s=ny.prototype.thru;for(t&&e.reverse();o--;){var u=e[o];if("function"!=typeof u)throw new tC(i);if(s&&!a&&"wrapper"==il(u))var a=new ny([],!0)}for(o=a?o:n;++o<n;){var l=il(u=e[o]),h="wrapper"==l?ia(u):r;a=h&&iS(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?a[il(h[0])].apply(a,h[3]):1==u.length&&iS(u)?a[l]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&oI(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function rQ(t,e,n,i,o,s,u,a,l,h){var c=128&e,f=1&e,p=2&e,d=24&e,v=512&e,g=p?r:rK(t);function _(){for(var y=arguments.length,m=tm(y),x=y;x--;)m[x]=arguments[x];if(d)var b=ih(_),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(m,b);if(i&&(m=rW(m,i,o,d)),s&&(m=rL(m,s,u,d)),y-=w,d&&y<h){var A=eB(m,b);return r6(t,e,rQ,_.placeholder,n,m,A,a,l,h-y)}var S=f?n:this,E=p?S[t]:t;return y=m.length,a?m=function(t,e){for(var n=t.length,i=e8(e.length,n),o=rN(t);i--;){var s=e[i];t[i]=iw(s,n)?o[s]:r}return t}(m,a):v&&y>1&&m.reverse(),c&&l<y&&(m.length=l),this&&this!==t4&&this instanceof _&&(E=g||rK(E)),E.apply(S,m)}return _}function rX(t,e){return function(n,r){var i,o;return i=e(r),o={},nG(n,function(e,n,r){t(o,i(e),n,r)}),o}}function r0(t,e){return function(n,i){var o;if(r===n&&r===i)return e;if(r!==n&&(o=n),r!==i){if(r===o)return i;"string"==typeof n||"string"==typeof i?(n=rw(n),i=rw(i)):(n=rb(n),i=rb(i)),o=t(n,i)}return o}}function r1(t){return io(function(e){return e=ev(e,eM(ic())),rf(function(n){var r=this;return t(e,function(t){return ea(t,r,n)})})})}function r2(t,e){var n=(e=r===e?" ":rw(e)).length;if(n<2)return n?rc(e,t):e;var i=rc(e,ek(t/eq(e)));return eN(e)?rM(eG(i),0,t).join(""):i.slice(0,t)}function r3(t){return function(e,n,i){i&&"number"!=typeof i&&iA(e,n,i)&&(n=i=r),e=o5(e),r===n?(n=e,e=0):n=o5(n),i=r===i?e<n?1:-1:o5(i);for(var o=e,s=n,u=i,a=-1,l=e3(ek((s-o)/(u||1)),0),h=tm(l);l--;)h[t?l:++a]=o,o+=u;return h}}function r8(t){return function(e,n){return("string"!=typeof e||"string"!=typeof n)&&(e=st(e),n=st(n)),t(e,n)}}function r6(t,e,n,i,o,s,u,a,l,h){var c=8&e,f=c?u:r,p=c?r:u,d=c?s:r,v=c?r:s;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var g=[t,e,o,d,f,v,p,a,l,h],_=n.apply(r,g);return iS(t)&&iU(_,g),_.placeholder=i,iT(_,t,e)}function r4(t){var e=tA[t];return function(t,n){if(t=st(t),(n=null==n?0:e8(o9(n),292))&&e0(t)){var r=(sn(t)+"e").split("e");return+((r=(sn(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(r[1]-n))}return e(t)}}var r5=nn&&1/eH(new nn([,-0]))[1]==u?function(t){return new nn(t)}:sq;function r9(t){return function(e){var n,r,i=iy(e);return i==_?eD(e):i==w?(n=-1,r=Array(e.size),e.forEach(function(t){r[++n]=[t,t]}),r):ev(t(e),function(t){return[t,e[t]]})}}function r7(t,e,n,o,u,a,l,h){var c=2&e;if(!c&&"function"!=typeof t)throw new tC(i);var f=o?o.length:0;if(f||(e&=-97,o=u=r),l=r===l?l:e3(o9(l),0),h=r===h?h:o9(h),f-=u?u.length:0,64&e){var p=o,d=u;o=u=r}var v=c?r:ia(t),g=[t,e,n,o,u,p,d,a,l,h];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,u=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(o||u){1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var l=t[3];t[3]=l?rW(l,a,e[4]):a,t[4]=l?eB(t[3],s):e[4]}(a=e[5])&&(l=t[5],t[5]=l?rL(l,a,e[6]):a,t[6]=l?eB(t[5],s):e[6]),(a=e[7])&&(t[7]=a),128&r&&(t[8]=null==t[8]?e[8]:e8(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}}(g,v),t=g[0],e=g[1],n=g[2],o=g[3],u=g[4],(h=g[9]=g[9]===r?c?0:t.length:e3(g[9]-f,0))||!(24&e)||(e&=-25),e&&1!=e)8==e||16==e?O=function(t,e,n){var i=rK(t);function o(){for(var s=arguments.length,u=tm(s),a=s,l=ih(o);a--;)u[a]=arguments[a];var h=s<3&&u[0]!==l&&u[s-1]!==l?[]:eB(u,l);return(s-=h.length)<n?r6(t,e,rQ,o.placeholder,r,u,h,r,r,n-s):ea(this&&this!==t4&&this instanceof o?i:t,this,u)}return o}(t,e,h):32!=e&&33!=e||u.length?O=rQ.apply(r,g):(_=t,y=e,m=n,x=o,b=1&y,w=rK(_),O=function t(){for(var e=-1,n=arguments.length,r=-1,i=x.length,o=tm(i+n),s=this&&this!==t4&&this instanceof t?w:_;++r<i;)o[r]=x[r];for(;n--;)o[r++]=arguments[++e];return ea(s,b?m:this,o)});else var _,y,m,x,b,w,A,S,E,C,k,O=(A=t,S=e,E=n,C=1&S,k=rK(A),function t(){return(this&&this!==t4&&this instanceof t?k:A).apply(C?E:this,arguments)});return iT((v?rd:iU)(O,g),t,e)}function it(t,e,n,i){return r===t||oj(t,tR[n])&&!tM.call(i,n)?e:t}function ie(t,e,n,i,o,s){return oZ(t)&&oZ(e)&&(s.set(e,t),ri(t,e,r,ie,s),s.delete(e)),t}function ir(t){return oQ(t)?r:t}function ii(t,e,n,i,o,s){var u=1&n,a=t.length,l=e.length;if(a!=l&&!(u&&l>a))return!1;var h=s.get(t),c=s.get(e);if(h&&c)return h==e&&c==t;var f=-1,p=!0,d=2&n?new nA:r;for(s.set(t,e),s.set(e,t);++f<a;){var v=t[f],g=e[f];if(i)var _=u?i(g,v,f,e,t,s):i(v,g,f,t,e,s);if(r!==_){if(_)continue;p=!1;break}if(d){if(!em(e,function(t,e){if(!eT(d,e)&&(v===t||o(v,t,n,i,s)))return d.push(e)})){p=!1;break}}else if(!(v===g||o(v,g,n,i,s))){p=!1;break}}return s.delete(t),s.delete(e),p}function io(t){return ij(iO(t,r,iG),t+"")}function is(t){return nY(t,sv,ig)}function iu(t){return nY(t,sg,i_)}var ia=no?function(t){return no.get(t)}:sq;function il(t){for(var e=t.name+"",n=ns[e],r=tM.call(ns,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ih(t){return(tM.call(nv,"placeholder")?nv:t).placeholder}function ic(){var t=nv.iteratee||sD;return t=t===sD?n9:t,arguments.length?t(arguments[0],arguments[1]):t}function ip(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function id(t){for(var e=sv(t),n=e.length;n--;){var r,i=e[n],o=t[i];e[n]=[i,o,(r=o)==r&&!oZ(r)]}return e}function iv(t,e){var n=null==t?r:t[e];return n5(n)?n:r}var ig=eQ?function(t){return null==t?[]:ef(eQ(t=t$(t)),function(e){return tK.call(t,e)})}:sX,i_=eQ?function(t){for(var e=[];t;)eg(e,ig(t)),t=tB(t);return e}:sX,iy=nQ;function im(t,e,n){e=rU(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var s=iW(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&oG(i)&&iw(s,i)&&(oI(t)||oz(t))}function ix(t){return"function"!=typeof t.constructor||iC(t)?{}:ng(tB(t))}function ib(t){return oI(t)||oz(t)||!!(t8&&t&&t[t8])}function iw(t,e){var n=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==n||"symbol"!=n&&tp.test(t))&&t>-1&&t%1==0&&t<e}function iA(t,e,n){if(!oZ(n))return!1;var r=typeof e;return("number"==r?!!(oL(n)&&iw(e,n.length)):"string"==r&&e in n)&&oj(n[e],t)}function i$(t,e){if(oI(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||o2(t))||K.test(t)||!Z.test(t)||null!=e&&t in t$(e)}function iS(t){var e=il(t),n=nv[e];if("function"!=typeof n||!(e in nm.prototype))return!1;if(t===n)return!0;var r=ia(n);return!!r&&t===r[0]}(e7&&iy(new e7(new ArrayBuffer(1)))!=k||nt&&iy(new nt)!=_||ne&&iy(ne.resolve())!=x||nn&&iy(new nn)!=w||nr&&iy(new nr)!=E)&&(iy=function(t){var e=nQ(t),n=e==m?t.constructor:r,i=n?iL(n):"";if(i)switch(i){case nu:return k;case na:return _;case nl:return x;case nh:return w;case nc:return E}return e});var iE=tP?oH:s0;function iC(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||tR)}function ik(t,e){return function(n){return null!=n&&n[t]===e&&(r!==e||t in t$(n))}}function iO(t,e,n){return e=e3(r===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=e3(r.length-e,0),s=tm(o);++i<o;)s[i]=r[e+i];i=-1;for(var u=tm(e+1);++i<e;)u[i]=r[i];return u[e]=n(s),ea(t,this,u)}}function iR(t,e){return e.length<2?t:nJ(t,rg(e,0,-1))}function iP(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var iU=iV(rd),iM=ex||function(t,e){return t4.setTimeout(t,e)},ij=iV(rv);function iT(t,e,n){var r,i,o,s=e+"";return ij(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(te,"{\n/* [wrapped with "+e+"] */\n")}(s,(r=(o=s.match(tn))?o[1].split(tr):[],i=n,eh(l,function(t){var e="_."+t[0];i&t[1]&&!ep(r,e)&&r.push(e)}),r.sort())))}function iV(t){var e=0,n=0;return function(){var i=e6(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function iz(t,e){var n=-1,i=t.length,o=i-1;for(e=r===e?i:e;++n<e;){var s=rh(n,o),u=t[s];t[s]=t[n],t[n]=u}return t.length=e,t}var iI=(t_=(tt=ok(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,function(t,n,r,i){e.push(r?i.replace(ts,"$1"):n||t)}),e},function(t){return 500===t_.size&&t_.clear(),t})).cache,tt);function iW(t){if("string"==typeof t||o2(t))return t;var e=t+"";return"0"==e&&1/t==-u?"-0":e}function iL(t){if(null!=t){try{return tU.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function iN(t){if(t instanceof nm)return t.clone();var e=new ny(t.__wrapped__,t.__chain__);return e.__actions__=rN(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var iD=rf(function(t,e){return oN(t)?nI(t,nB(e,1,oN,!0)):[]}),iF=rf(function(t,e){var n=iQ(e);return oN(n)&&(n=r),oN(t)?nI(t,nB(e,1,oN,!0),ic(n,2)):[]}),iB=rf(function(t,e){var n=iQ(e);return oN(n)&&(n=r),oN(t)?nI(t,nB(e,1,oN,!0),r,n):[]});function iH(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:o9(n);return i<0&&(i=e3(r+i,0)),ew(t,ic(e,3),i)}function iq(t,e,n){var i=null==t?0:t.length;if(!i)return -1;var o=i-1;return r!==n&&(o=o9(n),o=n<0?e3(i+o,0):e8(o,i-1)),ew(t,ic(e,3),o,!0)}function iG(t){return(null==t?0:t.length)?nB(t,1):[]}function iZ(t){return t&&t.length?t[0]:r}var iK=rf(function(t){var e=ev(t,rR);return e.length&&e[0]===t[0]?n2(e):[]}),iJ=rf(function(t){var e=iQ(t),n=ev(t,rR);return e===iQ(n)?e=r:n.pop(),n.length&&n[0]===t[0]?n2(n,ic(e,2)):[]}),iY=rf(function(t){var e=iQ(t),n=ev(t,rR);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?n2(n,r,e):[]});function iQ(t){var e=null==t?0:t.length;return e?t[e-1]:r}var iX=rf(i0);function i0(t,e){return t&&t.length&&e&&e.length?ra(t,e):t}var i1=io(function(t,e){var n=null==t?0:t.length,r=nM(t,e);return rl(t,ev(e,function(t){return iw(t,n)?+t:t}).sort(rI)),r});function i2(t){return null==t?t:e9.call(t)}var i3=rf(function(t){return rA(nB(t,1,oN,!0))}),i8=rf(function(t){var e=iQ(t);return oN(e)&&(e=r),rA(nB(t,1,oN,!0),ic(e,2))}),i6=rf(function(t){var e=iQ(t);return e="function"==typeof e?e:r,rA(nB(t,1,oN,!0),r,e)});function i4(t){if(!(t&&t.length))return[];var e=0;return t=ef(t,function(t){if(oN(t))return e=e3(t.length,e),!0}),eP(e,function(e){return ev(t,eC(e))})}function i5(t,e){if(!(t&&t.length))return[];var n=i4(t);return null==e?n:ev(n,function(t){return ea(e,r,t)})}var i9=rf(function(t,e){return oN(t)?nI(t,e):[]}),i7=rf(function(t){return rk(ef(t,oN))}),ot=rf(function(t){var e=iQ(t);return oN(e)&&(e=r),rk(ef(t,oN),ic(e,2))}),oe=rf(function(t){var e=iQ(t);return e="function"==typeof e?e:r,rk(ef(t,oN),r,e)}),on=rf(i4),or=rf(function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,i5(t,n)});function oi(t){var e=nv(t);return e.__chain__=!0,e}function oo(t,e){return e(t)}var os=io(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return nM(e,t)};return!(e>1)&&!this.__actions__.length&&i instanceof nm&&iw(n)?((i=i.slice(n,+n+ +!!e)).__actions__.push({func:oo,args:[o],thisArg:r}),new ny(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(o)}),ou=rF(function(t,e,n){tM.call(t,n)?++t[n]:nU(t,n,1)}),oa=rJ(iH),ol=rJ(iq);function oh(t,e){return(oI(t)?eh:nW)(t,ic(e,3))}function oc(t,e){return(oI(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:nL)(t,ic(e,3))}var of=rF(function(t,e,n){tM.call(t,n)?t[n].push(e):nU(t,n,[e])}),op=rf(function(t,e,n){var r=-1,i="function"==typeof e,o=oL(t)?tm(t.length):[];return nW(t,function(t){o[++r]=i?ea(e,t,n):n3(t,e,n)}),o}),od=rF(function(t,e,n){nU(t,n,e)});function ov(t,e){return(oI(t)?ev:re)(t,ic(e,3))}var og=rF(function(t,e,n){t[+!n].push(e)},function(){return[[],[]]}),o_=rf(function(t,e){if(null==t)return[];var n=e.length;return n>1&&iA(t,e[0],e[1])?e=[]:n>2&&iA(e[0],e[1],e[2])&&(e=[e[0]]),rs(t,nB(e,1),[])}),oy=ee||function(){return t4.Date.now()};function om(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,r7(t,128,r,r,r,r,e)}function ox(t,e){var n;if("function"!=typeof e)throw new tC(i);return t=o9(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var ob=rf(function(t,e,n){var r=1;if(n.length){var i=eB(n,ih(ob));r|=32}return r7(t,r,e,n,i)}),ow=rf(function(t,e,n){var r=3;if(n.length){var i=eB(n,ih(ow));r|=32}return r7(e,r,t,n,i)});function oA(t,e,n){e=n?r:e;var i=r7(t,8,r,r,r,r,r,e);return i.placeholder=oA.placeholder,i}function o$(t,e,n){e=n?r:e;var i=r7(t,16,r,r,r,r,r,e);return i.placeholder=o$.placeholder,i}function oS(t,e,n){var o,s,u,a,l,h,c=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new tC(i);function v(e){var n=o,i=s;return o=s=r,c=e,a=t.apply(i,n)}function g(t){var n=t-h,i=t-c;return r===h||n>=e||n<0||p&&i>=u}function _(){var t,n,r,i=oy();if(g(i))return y(i);l=iM(_,(t=i-h,n=i-c,r=e-t,p?e8(r,u-n):r))}function y(t){return(l=r,d&&o)?v(t):(o=s=r,a)}function m(){var t,n=oy(),i=g(n);if(o=arguments,s=this,h=n,i){if(r===l)return c=t=h,l=iM(_,e),f?v(t):a;if(p)return rj(l),l=iM(_,e),v(h)}return r===l&&(l=iM(_,e)),a}return e=st(e)||0,oZ(n)&&(f=!!n.leading,u=(p="maxWait"in n)?e3(st(n.maxWait)||0,e):u,d="trailing"in n?!!n.trailing:d),m.cancel=function(){r!==l&&rj(l),c=0,o=h=s=l=r},m.flush=function(){return r===l?a:y(oy())},m}var oE=rf(function(t,e){return nz(t,1,e)}),oC=rf(function(t,e,n){return nz(t,st(e)||0,n)});function ok(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new tC(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(ok.Cache||nw),n}function oO(t){if("function"!=typeof t)throw new tC(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ok.Cache=nw;var oR=rf(function(t,e){var n=(e=1==e.length&&oI(e[0])?ev(e[0],eM(ic())):ev(nB(e,1),eM(ic()))).length;return rf(function(r){for(var i=-1,o=e8(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return ea(t,this,r)})}),oP=rf(function(t,e){var n=eB(e,ih(oP));return r7(t,32,r,e,n)}),oU=rf(function(t,e){var n=eB(e,ih(oU));return r7(t,64,r,e,n)}),oM=io(function(t,e){return r7(t,256,r,r,r,e)});function oj(t,e){return t===e||t!=t&&e!=e}var oT=r8(nX),oV=r8(function(t,e){return t>=e}),oz=n8(function(){return arguments}())?n8:function(t){return oK(t)&&tM.call(t,"callee")&&!tK.call(t,"callee")},oI=tm.isArray,oW=en?eM(en):function(t){return oK(t)&&nQ(t)==C};function oL(t){return null!=t&&oG(t.length)&&!oH(t)}function oN(t){return oK(t)&&oL(t)}var oD=eX||s0,oF=er?eM(er):function(t){return oK(t)&&nQ(t)==p};function oB(t){if(!oK(t))return!1;var e=nQ(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!oQ(t)}function oH(t){if(!oZ(t))return!1;var e=nQ(t);return e==v||e==g||"[object AsyncFunction]"==e||"[object Proxy]"==e}function oq(t){return"number"==typeof t&&t==o9(t)}function oG(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}function oZ(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function oK(t){return null!=t&&"object"==typeof t}var oJ=ei?eM(ei):function(t){return oK(t)&&iy(t)==_};function oY(t){return"number"==typeof t||oK(t)&&nQ(t)==y}function oQ(t){if(!oK(t)||nQ(t)!=m)return!1;var e=tB(t);if(null===e)return!0;var n=tM.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&tU.call(n)==tz}var oX=eo?eM(eo):function(t){return oK(t)&&nQ(t)==b},o0=es?eM(es):function(t){return oK(t)&&iy(t)==w};function o1(t){return"string"==typeof t||!oI(t)&&oK(t)&&nQ(t)==A}function o2(t){return"symbol"==typeof t||oK(t)&&nQ(t)==S}var o3=eu?eM(eu):function(t){return oK(t)&&oG(t.length)&&!!tX[nQ(t)]},o8=r8(rt),o6=r8(function(t,e){return t<=e});function o4(t){if(!t)return[];if(oL(t))return o1(t)?eG(t):rN(t);if(t6&&t[t6]){for(var e,n=t[t6](),r=[];!(e=n.next()).done;)r.push(e.value);return r}var i=iy(t);return(i==_?eD:i==w?eH:s$)(t)}function o5(t){return t?(t=st(t))===u||t===-u?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function o9(t){var e=o5(t),n=e%1;return e==e?n?e-n:e:0}function o7(t){return t?nj(o9(t),0,0xffffffff):0}function st(t){if("number"==typeof t)return t;if(o2(t))return a;if(oZ(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=oZ(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=eU(t);var n=th.test(t);return n||tf.test(t)?t3(t.slice(2),n?2:8):tl.test(t)?a:+t}function se(t){return rD(t,sg(t))}function sn(t){return null==t?"":rw(t)}var sr=rB(function(t,e){if(iC(e)||oL(e))return void rD(e,sv(e),t);for(var n in e)tM.call(e,n)&&nk(t,n,e[n])}),si=rB(function(t,e){rD(e,sg(e),t)}),so=rB(function(t,e,n,r){rD(e,sg(e),t,r)}),ss=rB(function(t,e,n,r){rD(e,sv(e),t,r)}),su=io(nM),sa=rf(function(t,e){t=t$(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&iA(e[0],e[1],o)&&(i=1);++n<i;)for(var s=e[n],u=sg(s),a=-1,l=u.length;++a<l;){var h=u[a],c=t[h];(r===c||oj(c,tR[h])&&!tM.call(t,h))&&(t[h]=s[h])}return t}),sl=rf(function(t){return t.push(r,ie),ea(sy,r,t)});function sh(t,e,n){var i=null==t?r:nJ(t,e);return r===i?n:i}function sc(t,e){return null!=t&&im(t,e,n1)}var sf=rX(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tV.call(e)),t[e]=n},sI(sN)),sp=rX(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tV.call(e)),tM.call(t,e)?t[e].push(n):t[e]=[n]},ic),sd=rf(n3);function sv(t){return oL(t)?nS(t):n7(t)}function sg(t){return oL(t)?nS(t,!0):function(t){if(!oZ(t)){var e=t,n=[];if(null!=e)for(var r in t$(e))n.push(r);return n}var i=iC(t),o=[];for(var s in t)"constructor"==s&&(i||!tM.call(t,s))||o.push(s);return o}(t)}var s_=rB(function(t,e,n){ri(t,e,n)}),sy=rB(function(t,e,n,r){ri(t,e,n,r)}),sm=io(function(t,e){var n={};if(null==t)return n;var r=!1;e=ev(e,function(e){return e=rU(e,t),r||(r=e.length>1),e}),rD(t,iu(t),n),r&&(n=nT(n,7,ir));for(var i=e.length;i--;)r$(n,e[i]);return n}),sx=io(function(t,e){return null==t?{}:ru(t,e,function(e,n){return sc(t,n)})});function sb(t,e){if(null==t)return{};var n=ev(iu(t),function(t){return[t]});return e=ic(e),ru(t,n,function(t,n){return e(t,n[0])})}var sw=r9(sv),sA=r9(sg);function s$(t){return null==t?[]:ej(t,sv(t))}var sS=rZ(function(t,e,n){return e=e.toLowerCase(),t+(n?sE(e):e)});function sE(t){return sj(sn(t).toLowerCase())}function sC(t){return(t=sn(t))&&t.replace(td,eI).replace(tq,"")}var sk=rZ(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),sO=rZ(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),sR=rG("toLowerCase"),sP=rZ(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),sU=rZ(function(t,e,n){return t+(n?" ":"")+sj(e)}),sM=rZ(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),sj=rG("toUpperCase");function sT(t,e,n){if(t=sn(t),e=n?r:e,r===e){var i;return(i=t,tJ.test(i))?t.match(tZ)||[]:t.match(ti)||[]}return t.match(e)||[]}var sV=rf(function(t,e){try{return ea(t,r,e)}catch(t){return oB(t)?t:new tb(t)}}),sz=io(function(t,e){return eh(e,function(e){nU(t,e=iW(e),ob(t[e],t))}),t});function sI(t){return function(){return t}}var sW=rY(),sL=rY(!0);function sN(t){return t}function sD(t){return n9("function"==typeof t?t:nT(t,1))}var sF=rf(function(t,e){return function(n){return n3(n,t,e)}}),sB=rf(function(t,e){return function(n){return n3(t,n,e)}});function sH(t,e,n){var r=sv(e),i=nK(e,r);null!=n||oZ(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=nK(e,sv(e)));var o=!(oZ(n)&&"chain"in n)||!!n.chain,s=oH(t);return eh(i,function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=rN(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,eg([this.value()],arguments))})}),t}function sq(){}var sG=r1(ev),sZ=r1(ec),sK=r1(em);function sJ(t){return i$(t)?eC(iW(t)):function(e){return nJ(e,t)}}var sY=r3(),sQ=r3(!0);function sX(){return[]}function s0(){return!1}var s1=r0(function(t,e){return t+e},0),s2=r4("ceil"),s3=r0(function(t,e){return t/e},1),s8=r4("floor"),s6=r0(function(t,e){return t*e},1),s4=r4("round"),s5=r0(function(t,e){return t-e},0);return nv.after=function(t,e){if("function"!=typeof e)throw new tC(i);return t=o9(t),function(){if(--t<1)return e.apply(this,arguments)}},nv.ary=om,nv.assign=sr,nv.assignIn=si,nv.assignInWith=so,nv.assignWith=ss,nv.at=su,nv.before=ox,nv.bind=ob,nv.bindAll=sz,nv.bindKey=ow,nv.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return oI(t)?t:[t]},nv.chain=oi,nv.chunk=function(t,e,n){e=(n?iA(t,e,n):r===e)?1:e3(o9(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,u=tm(ek(i/e));o<i;)u[s++]=rg(t,o,o+=e);return u},nv.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},nv.concat=function(){var t=arguments.length;if(!t)return[];for(var e=tm(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return eg(oI(n)?rN(n):[n],nB(e,1))},nv.cond=function(t){var e=null==t?0:t.length,n=ic();return t=e?ev(t,function(t){if("function"!=typeof t[1])throw new tC(i);return[n(t[0]),t[1]]}):[],rf(function(n){for(var r=-1;++r<e;){var i=t[r];if(ea(i[0],this,n))return ea(i[1],this,n)}})},nv.conforms=function(t){var e,n;return n=sv(e=nT(t,1)),function(t){return nV(t,e,n)}},nv.constant=sI,nv.countBy=ou,nv.create=function(t,e){var n=ng(t);return null==e?n:nP(n,e)},nv.curry=oA,nv.curryRight=o$,nv.debounce=oS,nv.defaults=sa,nv.defaultsDeep=sl,nv.defer=oE,nv.delay=oC,nv.difference=iD,nv.differenceBy=iF,nv.differenceWith=iB,nv.drop=function(t,e,n){var i=null==t?0:t.length;return i?rg(t,(e=n||r===e?1:o9(e))<0?0:e,i):[]},nv.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?rg(t,0,(e=i-(e=n||r===e?1:o9(e)))<0?0:e):[]},nv.dropRightWhile=function(t,e){return t&&t.length?rE(t,ic(e,3),!0,!0):[]},nv.dropWhile=function(t,e){return t&&t.length?rE(t,ic(e,3),!0):[]},nv.fill=function(t,e,n,i){var o=null==t?0:t.length;if(!o)return[];n&&"number"!=typeof n&&iA(t,e,n)&&(n=0,i=o);var s=n,u=i,a=t.length;for((s=o9(s))<0&&(s=-s>a?0:a+s),(u=r===u||u>a?a:o9(u))<0&&(u+=a),u=s>u?0:o7(u);s<u;)t[s++]=e;return t},nv.filter=function(t,e){return(oI(t)?ef:nF)(t,ic(e,3))},nv.flatMap=function(t,e){return nB(ov(t,e),1)},nv.flatMapDeep=function(t,e){return nB(ov(t,e),u)},nv.flatMapDepth=function(t,e,n){return n=r===n?1:o9(n),nB(ov(t,e),n)},nv.flatten=iG,nv.flattenDeep=function(t){return(null==t?0:t.length)?nB(t,u):[]},nv.flattenDepth=function(t,e){return(null==t?0:t.length)?nB(t,e=r===e?1:o9(e)):[]},nv.flip=function(t){return r7(t,512)},nv.flow=sW,nv.flowRight=sL,nv.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},nv.functions=function(t){return null==t?[]:nK(t,sv(t))},nv.functionsIn=function(t){return null==t?[]:nK(t,sg(t))},nv.groupBy=of,nv.initial=function(t){return(null==t?0:t.length)?rg(t,0,-1):[]},nv.intersection=iK,nv.intersectionBy=iJ,nv.intersectionWith=iY,nv.invert=sf,nv.invertBy=sp,nv.invokeMap=op,nv.iteratee=sD,nv.keyBy=od,nv.keys=sv,nv.keysIn=sg,nv.map=ov,nv.mapKeys=function(t,e){var n={};return e=ic(e,3),nG(t,function(t,r,i){nU(n,e(t,r,i),t)}),n},nv.mapValues=function(t,e){var n={};return e=ic(e,3),nG(t,function(t,r,i){nU(n,r,e(t,r,i))}),n},nv.matches=function(t){return rn(nT(t,1))},nv.matchesProperty=function(t,e){return rr(t,nT(e,1))},nv.memoize=ok,nv.merge=s_,nv.mergeWith=sy,nv.method=sF,nv.methodOf=sB,nv.mixin=sH,nv.negate=oO,nv.nthArg=function(t){return t=o9(t),rf(function(e){return ro(e,t)})},nv.omit=sm,nv.omitBy=function(t,e){return sb(t,oO(ic(e)))},nv.once=function(t){return ox(2,t)},nv.orderBy=function(t,e,n,i){return null==t?[]:(oI(e)||(e=null==e?[]:[e]),oI(n=i?r:n)||(n=null==n?[]:[n]),rs(t,e,n))},nv.over=sG,nv.overArgs=oR,nv.overEvery=sZ,nv.overSome=sK,nv.partial=oP,nv.partialRight=oU,nv.partition=og,nv.pick=sx,nv.pickBy=sb,nv.property=sJ,nv.propertyOf=function(t){return function(e){return null==t?r:nJ(t,e)}},nv.pull=iX,nv.pullAll=i0,nv.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?ra(t,e,ic(n,2)):t},nv.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?ra(t,e,r,n):t},nv.pullAt=i1,nv.range=sY,nv.rangeRight=sQ,nv.rearg=oM,nv.reject=function(t,e){return(oI(t)?ef:nF)(t,oO(ic(e,3)))},nv.remove=function(t,e){var n=[];if(!(t&&t.length))return n;var r=-1,i=[],o=t.length;for(e=ic(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return rl(t,i),n},nv.rest=function(t,e){if("function"!=typeof t)throw new tC(i);return rf(t,e=r===e?e:o9(e))},nv.reverse=i2,nv.sampleSize=function(t,e,n){return e=(n?iA(t,e,n):r===e)?1:o9(e),(oI(t)?function(t,e){return iz(rN(t),nj(e,0,t.length))}:function(t,e){var n=s$(t);return iz(n,nj(e,0,n.length))})(t,e)},nv.set=function(t,e,n){return null==t?t:rp(t,e,n)},nv.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:rp(t,e,n,i)},nv.shuffle=function(t){return(oI(t)?function(t){return iz(rN(t))}:function(t){return iz(s$(t))})(t)},nv.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&iA(t,e,n)?(e=0,n=i):(e=null==e?0:o9(e),n=r===n?i:o9(n)),rg(t,e,n)):[]},nv.sortBy=o_,nv.sortedUniq=function(t){return t&&t.length?rx(t):[]},nv.sortedUniqBy=function(t,e){return t&&t.length?rx(t,ic(e,2)):[]},nv.split=function(t,e,n){return(n&&"number"!=typeof n&&iA(t,e,n)&&(e=n=r),n=r===n?0xffffffff:n>>>0)?(t=sn(t))&&("string"==typeof e||null!=e&&!oX(e))&&!(e=rw(e))&&eN(t)?rM(eG(t),0,n):t.split(e,n):[]},nv.spread=function(t,e){if("function"!=typeof t)throw new tC(i);return e=null==e?0:e3(o9(e),0),rf(function(n){var r=n[e],i=rM(n,0,e);return r&&eg(i,r),ea(t,this,i)})},nv.tail=function(t){var e=null==t?0:t.length;return e?rg(t,1,e):[]},nv.take=function(t,e,n){return t&&t.length?rg(t,0,(e=n||r===e?1:o9(e))<0?0:e):[]},nv.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?rg(t,(e=i-(e=n||r===e?1:o9(e)))<0?0:e,i):[]},nv.takeRightWhile=function(t,e){return t&&t.length?rE(t,ic(e,3),!1,!0):[]},nv.takeWhile=function(t,e){return t&&t.length?rE(t,ic(e,3)):[]},nv.tap=function(t,e){return e(t),t},nv.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new tC(i);return oZ(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),oS(t,e,{leading:r,maxWait:e,trailing:o})},nv.thru=oo,nv.toArray=o4,nv.toPairs=sw,nv.toPairsIn=sA,nv.toPath=function(t){return oI(t)?ev(t,iW):o2(t)?[t]:rN(iI(sn(t)))},nv.toPlainObject=se,nv.transform=function(t,e,n){var r=oI(t),i=r||oD(t)||o3(t);if(e=ic(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:oZ(t)&&oH(o)?ng(tB(t)):{}}return(i?eh:nG)(t,function(t,r,i){return e(n,t,r,i)}),n},nv.unary=function(t){return om(t,1)},nv.union=i3,nv.unionBy=i8,nv.unionWith=i6,nv.uniq=function(t){return t&&t.length?rA(t):[]},nv.uniqBy=function(t,e){return t&&t.length?rA(t,ic(e,2)):[]},nv.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?rA(t,r,e):[]},nv.unset=function(t,e){return null==t||r$(t,e)},nv.unzip=i4,nv.unzipWith=i5,nv.update=function(t,e,n){return null==t?t:rS(t,e,rP(n))},nv.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:rS(t,e,rP(n),i)},nv.values=s$,nv.valuesIn=function(t){return null==t?[]:ej(t,sg(t))},nv.without=i9,nv.words=sT,nv.wrap=function(t,e){return oP(rP(e),t)},nv.xor=i7,nv.xorBy=ot,nv.xorWith=oe,nv.zip=on,nv.zipObject=function(t,e){return rO(t||[],e||[],nk)},nv.zipObjectDeep=function(t,e){return rO(t||[],e||[],rp)},nv.zipWith=or,nv.entries=sw,nv.entriesIn=sA,nv.extend=si,nv.extendWith=so,sH(nv,nv),nv.add=s1,nv.attempt=sV,nv.camelCase=sS,nv.capitalize=sE,nv.ceil=s2,nv.clamp=function(t,e,n){return r===n&&(n=e,e=r),r!==n&&(n=(n=st(n))==n?n:0),r!==e&&(e=(e=st(e))==e?e:0),nj(st(t),e,n)},nv.clone=function(t){return nT(t,4)},nv.cloneDeep=function(t){return nT(t,5)},nv.cloneDeepWith=function(t,e){return nT(t,5,e="function"==typeof e?e:r)},nv.cloneWith=function(t,e){return nT(t,4,e="function"==typeof e?e:r)},nv.conformsTo=function(t,e){return null==e||nV(t,e,sv(e))},nv.deburr=sC,nv.defaultTo=function(t,e){return null==t||t!=t?e:t},nv.divide=s3,nv.endsWith=function(t,e,n){t=sn(t),e=rw(e);var i=t.length,o=n=r===n?i:nj(o9(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},nv.eq=oj,nv.escape=function(t){return(t=sn(t))&&B.test(t)?t.replace(D,eW):t},nv.escapeRegExp=function(t){return(t=sn(t))&&Q.test(t)?t.replace(Y,"\\$&"):t},nv.every=function(t,e,n){var i=oI(t)?ec:nN;return n&&iA(t,e,n)&&(e=r),i(t,ic(e,3))},nv.find=oa,nv.findIndex=iH,nv.findKey=function(t,e){return eb(t,ic(e,3),nG)},nv.findLast=ol,nv.findLastIndex=iq,nv.findLastKey=function(t,e){return eb(t,ic(e,3),nZ)},nv.floor=s8,nv.forEach=oh,nv.forEachRight=oc,nv.forIn=function(t,e){return null==t?t:nH(t,ic(e,3),sg)},nv.forInRight=function(t,e){return null==t?t:nq(t,ic(e,3),sg)},nv.forOwn=function(t,e){return t&&nG(t,ic(e,3))},nv.forOwnRight=function(t,e){return t&&nZ(t,ic(e,3))},nv.get=sh,nv.gt=oT,nv.gte=oV,nv.has=function(t,e){return null!=t&&im(t,e,n0)},nv.hasIn=sc,nv.head=iZ,nv.identity=sN,nv.includes=function(t,e,n,r){t=oL(t)?t:s$(t),n=n&&!r?o9(n):0;var i=t.length;return n<0&&(n=e3(i+n,0)),o1(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&eA(t,e,n)>-1},nv.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:o9(n);return i<0&&(i=e3(r+i,0)),eA(t,e,i)},nv.inRange=function(t,e,n){var i,o,s;return e=o5(e),r===n?(n=e,e=0):n=o5(n),(i=t=st(t))>=e8(o=e,s=n)&&i<e3(o,s)},nv.invoke=sd,nv.isArguments=oz,nv.isArray=oI,nv.isArrayBuffer=oW,nv.isArrayLike=oL,nv.isArrayLikeObject=oN,nv.isBoolean=function(t){return!0===t||!1===t||oK(t)&&nQ(t)==f},nv.isBuffer=oD,nv.isDate=oF,nv.isElement=function(t){return oK(t)&&1===t.nodeType&&!oQ(t)},nv.isEmpty=function(t){if(null==t)return!0;if(oL(t)&&(oI(t)||"string"==typeof t||"function"==typeof t.splice||oD(t)||o3(t)||oz(t)))return!t.length;var e=iy(t);if(e==_||e==w)return!t.size;if(iC(t))return!n7(t).length;for(var n in t)if(tM.call(t,n))return!1;return!0},nv.isEqual=function(t,e){return n6(t,e)},nv.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return r===i?n6(t,e,r,n):!!i},nv.isError=oB,nv.isFinite=function(t){return"number"==typeof t&&e0(t)},nv.isFunction=oH,nv.isInteger=oq,nv.isLength=oG,nv.isMap=oJ,nv.isMatch=function(t,e){return t===e||n4(t,e,id(e))},nv.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,n4(t,e,id(e),n)},nv.isNaN=function(t){return oY(t)&&t!=+t},nv.isNative=function(t){if(iE(t))throw new tb("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n5(t)},nv.isNil=function(t){return null==t},nv.isNull=function(t){return null===t},nv.isNumber=oY,nv.isObject=oZ,nv.isObjectLike=oK,nv.isPlainObject=oQ,nv.isRegExp=oX,nv.isSafeInteger=function(t){return oq(t)&&t>=-0x1fffffffffffff&&t<=0x1fffffffffffff},nv.isSet=o0,nv.isString=o1,nv.isSymbol=o2,nv.isTypedArray=o3,nv.isUndefined=function(t){return r===t},nv.isWeakMap=function(t){return oK(t)&&iy(t)==E},nv.isWeakSet=function(t){return oK(t)&&"[object WeakSet]"==nQ(t)},nv.join=function(t,e){return null==t?"":e1.call(t,e)},nv.kebabCase=sk,nv.last=iQ,nv.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return -1;var o=i;return r!==n&&(o=(o=o9(n))<0?e3(i+o,0):e8(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--&&t[r]!==e;);return r}(t,e,o):ew(t,eS,o,!0)},nv.lowerCase=sO,nv.lowerFirst=sR,nv.lt=o8,nv.lte=o6,nv.max=function(t){return t&&t.length?nD(t,sN,nX):r},nv.maxBy=function(t,e){return t&&t.length?nD(t,ic(e,2),nX):r},nv.mean=function(t){return eE(t,sN)},nv.meanBy=function(t,e){return eE(t,ic(e,2))},nv.min=function(t){return t&&t.length?nD(t,sN,rt):r},nv.minBy=function(t,e){return t&&t.length?nD(t,ic(e,2),rt):r},nv.stubArray=sX,nv.stubFalse=s0,nv.stubObject=function(){return{}},nv.stubString=function(){return""},nv.stubTrue=function(){return!0},nv.multiply=s6,nv.nth=function(t,e){return t&&t.length?ro(t,o9(e)):r},nv.noConflict=function(){return t4._===this&&(t4._=tI),this},nv.noop=sq,nv.now=oy,nv.pad=function(t,e,n){t=sn(t);var r=(e=o9(e))?eq(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return r2(eY(i),n)+t+r2(ek(i),n)},nv.padEnd=function(t,e,n){t=sn(t);var r=(e=o9(e))?eq(t):0;return e&&r<e?t+r2(e-r,n):t},nv.padStart=function(t,e,n){t=sn(t);var r=(e=o9(e))?eq(t):0;return e&&r<e?r2(e-r,n)+t:t},nv.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e*=1),e4(sn(t).replace(X,""),e||0)},nv.random=function(t,e,n){if(n&&"boolean"!=typeof n&&iA(t,e,n)&&(e=n=r),r===n&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),r===t&&r===e?(t=0,e=1):(t=o5(t),r===e?(e=t,t=0):e=o5(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=e5();return e8(t+o*(e-t+t2("1e-"+((o+"").length-1))),e)}return rh(t,e)},nv.reduce=function(t,e,n){var r=oI(t)?e_:eO,i=arguments.length<3;return r(t,ic(e,4),n,i,nW)},nv.reduceRight=function(t,e,n){var r=oI(t)?ey:eO,i=arguments.length<3;return r(t,ic(e,4),n,i,nL)},nv.repeat=function(t,e,n){return e=(n?iA(t,e,n):r===e)?1:o9(e),rc(sn(t),e)},nv.replace=function(){var t=arguments,e=sn(t[0]);return t.length<3?e:e.replace(t[1],t[2])},nv.result=function(t,e,n){e=rU(e,t);var i=-1,o=e.length;for(o||(o=1,t=r);++i<o;){var s=null==t?r:t[iW(e[i])];r===s&&(i=o,s=n),t=oH(s)?s.call(t):s}return t},nv.round=s4,nv.runInContext=t,nv.sample=function(t){return(oI(t)?nE:function(t){return nE(s$(t))})(t)},nv.size=function(t){if(null==t)return 0;if(oL(t))return o1(t)?eq(t):t.length;var e=iy(t);return e==_||e==w?t.size:n7(t).length},nv.snakeCase=sP,nv.some=function(t,e,n){var i=oI(t)?em:r_;return n&&iA(t,e,n)&&(e=r),i(t,ic(e,3))},nv.sortedIndex=function(t,e){return ry(t,e)},nv.sortedIndexBy=function(t,e,n){return rm(t,e,ic(n,2))},nv.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ry(t,e);if(r<n&&oj(t[r],e))return r}return -1},nv.sortedLastIndex=function(t,e){return ry(t,e,!0)},nv.sortedLastIndexBy=function(t,e,n){return rm(t,e,ic(n,2),!0)},nv.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ry(t,e,!0)-1;if(oj(t[n],e))return n}return -1},nv.startCase=sU,nv.startsWith=function(t,e,n){return t=sn(t),n=null==n?0:nj(o9(n),0,t.length),e=rw(e),t.slice(n,n+e.length)==e},nv.subtract=s5,nv.sum=function(t){return t&&t.length?eR(t,sN):0},nv.sumBy=function(t,e){return t&&t.length?eR(t,ic(e,2)):0},nv.template=function(t,e,n){var i=nv.templateSettings;n&&iA(t,e,n)&&(e=r),t=sn(t),e=so({},e,i,it);var o,s,u=so({},e.imports,i.imports,it),a=sv(u),l=ej(u,a),h=0,c=e.interpolate||tv,f="__p += '",p=tS((e.escape||tv).source+"|"+c.source+"|"+(c===G?tu:tv).source+"|"+(e.evaluate||tv).source+"|$","g"),d="//# sourceURL="+(tM.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tQ+"]")+"\n";t.replace(p,function(e,n,r,i,u,a){return r||(r=i),f+=t.slice(h,a).replace(tg,eL),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(s=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=a+e.length,e}),f+="';\n";var v=tM.call(e,"variable")&&e.variable;if(v){if(to.test(v))throw new tb("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(I,""):f).replace(W,"$1").replace(L,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=sV(function(){return tw(a,d+"return "+f).apply(r,l)});if(g.source=f,oB(g))throw g;return g},nv.times=function(t,e){if((t=o9(t))<1||t>0x1fffffffffffff)return[];var n=0xffffffff,r=e8(t,0xffffffff);e=ic(e),t-=0xffffffff;for(var i=eP(r,e);++n<t;)e(n);return i},nv.toFinite=o5,nv.toInteger=o9,nv.toLength=o7,nv.toLower=function(t){return sn(t).toLowerCase()},nv.toNumber=st,nv.toSafeInteger=function(t){return t?nj(o9(t),-0x1fffffffffffff,0x1fffffffffffff):0===t?t:0},nv.toString=sn,nv.toUpper=function(t){return sn(t).toUpperCase()},nv.trim=function(t,e,n){if((t=sn(t))&&(n||r===e))return eU(t);if(!t||!(e=rw(e)))return t;var i=eG(t),o=eG(e),s=eV(i,o),u=ez(i,o)+1;return rM(i,s,u).join("")},nv.trimEnd=function(t,e,n){if((t=sn(t))&&(n||r===e))return t.slice(0,eZ(t)+1);if(!t||!(e=rw(e)))return t;var i=eG(t),o=ez(i,eG(e))+1;return rM(i,0,o).join("")},nv.trimStart=function(t,e,n){if((t=sn(t))&&(n||r===e))return t.replace(X,"");if(!t||!(e=rw(e)))return t;var i=eG(t),o=eV(i,eG(e));return rM(i,o).join("")},nv.truncate=function(t,e){var n=30,i="...";if(oZ(e)){var o="separator"in e?e.separator:o;n="length"in e?o9(e.length):n,i="omission"in e?rw(e.omission):i}var s=(t=sn(t)).length;if(eN(t)){var u=eG(t);s=u.length}if(n>=s)return t;var a=n-eq(i);if(a<1)return i;var l=u?rM(u,0,a).join(""):t.slice(0,a);if(r===o)return l+i;if(u&&(a+=l.length-a),oX(o)){if(t.slice(a).search(o)){var h,c=l;for(o.global||(o=tS(o.source,sn(ta.exec(o))+"g")),o.lastIndex=0;h=o.exec(c);)var f=h.index;l=l.slice(0,r===f?a:f)}}else if(t.indexOf(rw(o),a)!=a){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+i},nv.unescape=function(t){return(t=sn(t))&&F.test(t)?t.replace(N,eK):t},nv.uniqueId=function(t){var e=++tj;return sn(t)+e},nv.upperCase=sM,nv.upperFirst=sj,nv.each=oh,nv.eachRight=oc,nv.first=iZ,sH(nv,(ty={},nG(nv,function(t,e){tM.call(nv.prototype,e)||(ty[e]=t)}),ty),{chain:!1}),nv.VERSION="4.17.21",eh(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){nv[t].placeholder=nv}),eh(["drop","take"],function(t,e){nm.prototype[t]=function(n){n=r===n?1:e3(o9(n),0);var i=this.__filtered__&&!e?new nm(this):this.clone();return i.__filtered__?i.__takeCount__=e8(n,i.__takeCount__):i.__views__.push({size:e8(n,0xffffffff),type:t+(i.__dir__<0?"Right":"")}),i},nm.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),eh(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;nm.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ic(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),eh(["head","last"],function(t,e){var n="take"+(e?"Right":"");nm.prototype[t]=function(){return this[n](1).value()[0]}}),eh(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");nm.prototype[t]=function(){return this.__filtered__?new nm(this):this[n](1)}}),nm.prototype.compact=function(){return this.filter(sN)},nm.prototype.find=function(t){return this.filter(t).head()},nm.prototype.findLast=function(t){return this.reverse().find(t)},nm.prototype.invokeMap=rf(function(t,e){return"function"==typeof t?new nm(this):this.map(function(n){return n3(n,t,e)})}),nm.prototype.reject=function(t){return this.filter(oO(ic(t)))},nm.prototype.slice=function(t,e){t=o9(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nm(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(e=o9(e))<0?n.dropRight(-e):n.take(e-t)),n)},nm.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},nm.prototype.toArray=function(){return this.take(0xffffffff)},nG(nm.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=nv[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(nv.prototype[e]=function(){var e=this.__wrapped__,u=i?[1]:arguments,a=e instanceof nm,l=u[0],h=a||oI(e),c=function(t){var e=o.apply(nv,eg([t],u));return i&&f?e[0]:e};h&&n&&"function"==typeof l&&1!=l.length&&(a=h=!1);var f=this.__chain__,p=!!this.__actions__.length,d=s&&!f,v=a&&!p;if(!s&&h){e=v?e:new nm(this);var g=t.apply(e,u);return g.__actions__.push({func:oo,args:[c],thisArg:r}),new ny(g,f)}return d&&v?t.apply(this,u):(g=this.thru(c),d?i?g.value()[0]:g.value():g)})}),eh(["pop","push","shift","sort","splice","unshift"],function(t){var e=tk[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);nv.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(oI(i)?i:[],t)}return this[n](function(n){return e.apply(oI(n)?n:[],t)})}}),nG(nm.prototype,function(t,e){var n=nv[e];if(n){var r=n.name+"";tM.call(ns,r)||(ns[r]=[]),ns[r].push({name:e,func:n})}}),ns[rQ(r,2).name]=[{name:"wrapper",func:r}],nm.prototype.clone=function(){var t=new nm(this.__wrapped__);return t.__actions__=rN(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rN(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rN(this.__views__),t},nm.prototype.reverse=function(){if(this.__filtered__){var t=new nm(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},nm.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=oI(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=e8(e,t+s);break;case"takeRight":t=e3(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,u=o.end,a=u-s,l=r?u:s-1,h=this.__iteratees__,c=h.length,f=0,p=e8(a,this.__takeCount__);if(!n||!r&&i==a&&p==a)return rC(t,this.__actions__);var d=[];t:for(;a--&&f<p;){for(var v=-1,g=t[l+=e];++v<c;){var _=h[v],y=_.iteratee,m=_.type,x=y(g);if(2==m)g=x;else if(!x)if(1==m)continue t;else break t}d[f++]=g}return d},nv.prototype.at=os,nv.prototype.chain=function(){return oi(this)},nv.prototype.commit=function(){return new ny(this.value(),this.__chain__)},nv.prototype.next=function(){this.__values__===r&&(this.__values__=o4(this.value()));var t=this.__index__>=this.__values__.length,e=t?r:this.__values__[this.__index__++];return{done:t,value:e}},nv.prototype.plant=function(t){for(var e,n=this;n instanceof n_;){var i=iN(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},nv.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nm){var e=t;return this.__actions__.length&&(e=new nm(this)),(e=e.reverse()).__actions__.push({func:oo,args:[i2],thisArg:r}),new ny(e,this.__chain__)}return this.thru(i2)},nv.prototype.toJSON=nv.prototype.valueOf=nv.prototype.value=function(){return rC(this.__wrapped__,this.__actions__)},nv.prototype.first=nv.prototype.head,t6&&(nv.prototype[t6]=function(){return this}),nv}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(t4._=eJ,define(function(){return eJ})):t9?((t9.exports=eJ)._=eJ,t5._=eJ):t4._=eJ}).call(this)},801:function(t){"use strict";t.exports=r},243:function(t){"use strict";t.exports=n},297:function(e){"use strict";e.exports=t},329:function(t){"use strict";t.exports=e}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var u={};return(()=>{"use strict";s.r(u),s.d(u,{OrGauge:()=>tV});let t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class i{constructor(t,e,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,n=this.t;if(e&&void 0===t){let e=void 0!==n&&1===n.length;e&&(t=r.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&r.set(n,t))}return t}toString(){return this.cssText}}let o=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,a=window,l=a.trustedTypes,h=l?l.emptyScript:"",c=a.reactiveElementPolyfillSupport,f={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},p=(t,e)=>e!==t&&(e==e||t==t),d={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:p},v="finalized";class g extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!=(e=this.h)?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,n)=>{let r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))}),t}static createProperty(t,e=d){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){let i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||d}static finalize(){if(this.hasOwnProperty(v))return!1;this[v]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)])this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let n of new Set(t.flat(1/0).reverse()))e.unshift(o(n));else void 0!==t&&e.push(o(t));return e}static _$Ep(t,e){let n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null==(t=this.constructor.h)||t.forEach(t=>t(this))}addController(t){var e,n;(null!=(e=this._$ES)?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null==(n=t.hostConnected)||n.call(t))}removeController(t){var e;null==(e=this._$ES)||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var n,r;let i=null!=(n=this.shadowRoot)?n:this.attachShadow(this.constructor.shadowRootOptions);return r=this.constructor.elementStyles,e?i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):r.forEach(e=>{let n=document.createElement("style"),r=t.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,i.appendChild(n)}),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=d){var r;let i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){let o=(void 0!==(null==(r=n.converter)?void 0:r.toAttribute)?n.converter:f).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;let r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){let t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(n=t.converter)?void 0:n.fromAttribute)?t.converter:f;this._$El=i,this[i]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1,n=this._$AL;try{(e=this.shouldUpdate(n))?(this.willUpdate(n),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null==(e=this._$ES)||e.forEach(t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}g[v]=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==c||c({ReactiveElement:g}),(null!=(tb=a.reactiveElementVersions)?tb:a.reactiveElementVersions=[]).push("1.6.3");let _=window,y=_.trustedTypes,m=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,x="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,w="?"+b,A=`<${w}>`,S=document,E=()=>S.createComment(""),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,O="[ \n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,U=/>/g,M=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^
2
- \f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,T=/"/g,V=/^(?:script|style|textarea|title)$/i,z=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),I=z(1),W=(z(2),Symbol.for("lit-noChange")),L=Symbol.for("lit-nothing"),N=new WeakMap,D=S.createTreeWalker(S,129,null,!1);function F(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==m?m.createHTML(e):e}class B{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0,s=t.length-1,u=this.parts,[a,l]=((t,e)=>{let n=t.length-1,r=[],i,o=2===e?"<svg>":"",s=R;for(let e=0;e<n;e++){let n=t[e],u,a,l=-1,h=0;for(;h<n.length&&(s.lastIndex=h,null!==(a=s.exec(n)));)h=s.lastIndex,s===R?"!--"===a[1]?s=P:void 0!==a[1]?s=U:void 0!==a[2]?(V.test(a[2])&&(i=RegExp("</"+a[2],"g")),s=M):void 0!==a[3]&&(s=M):s===M?">"===a[0]?(s=null!=i?i:R,l=-1):void 0===a[1]?l=-2:(l=s.lastIndex-a[2].length,u=a[1],s=void 0===a[3]?M:'"'===a[3]?T:j):s===T||s===j?s=M:s===P||s===U?s=R:(s=M,i=void 0);let c=s===M&&t[e+1].startsWith("/>")?" ":"";o+=s===R?n+A:l>=0?(r.push(u),n.slice(0,l)+x+n.slice(l)+b+c):n+b+(-2===l?(r.push(void 0),e):c)}return[F(t,o+(t[n]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=B.createElement(a,n),D.currentNode=this.el.content,2===e){let t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=D.nextNode())&&u.length<s;){if(1===r.nodeType){if(r.hasAttributes()){let t=[];for(let e of r.getAttributeNames())if(e.endsWith(x)||e.startsWith(b)){let n=l[o++];if(t.push(e),void 0!==n){let t=r.getAttribute(n.toLowerCase()+x).split(b),e=/([.?@])?(.*)/.exec(n);u.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?Y:"@"===e[1]?Q:Z})}else u.push({type:6,index:i})}for(let e of t)r.removeAttribute(e)}if(V.test(r.tagName)){let t=r.textContent.split(b),e=t.length-1;if(e>0){r.textContent=y?y.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],E()),D.nextNode(),u.push({type:2,index:++i});r.append(t[e],E())}}}else if(8===r.nodeType)if(r.data===w)u.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(b,t+1));)u.push({type:7,index:i}),t+=b.length-1}i++}}static createElement(t,e){let n=S.createElement("template");return n.innerHTML=t,n}}function H(t,e,n=t,r){var i,o,s;if(e===W)return e;let u=void 0!==r?null==(i=n._$Co)?void 0:i[r]:n._$Cl,a=C(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==a&&(null==(o=null==u?void 0:u._$AO)||o.call(u,!1),void 0===a?u=void 0:(u=new a(t))._$AT(t,n,r),void 0!==r?(null!=(s=n._$Co)?s:n._$Co=[])[r]=u:n._$Cl=u),void 0!==u&&(e=H(t,u._$AS(t,e.values),u,r)),e}class q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;let{el:{content:n},parts:r}=this._$AD,i=(null!=(e=null==t?void 0:t.creationScope)?e:S).importNode(n,!0);D.currentNode=i;let o=D.nextNode(),s=0,u=0,a=r[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new G(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new X(o,this,t)),this._$AV.push(e),a=r[++u]}s!==(null==a?void 0:a.index)&&(o=D.nextNode(),s++)}return D.currentNode=S,i}v(t){let e=0;for(let n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class G{constructor(t,e,n,r){var i;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cp=null==(i=null==r?void 0:r.isConnected)||i}get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){let n;C(t=H(this,t,e))?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):k(n=t)||"function"==typeof(null==n?void 0:n[Symbol.iterator])?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==L&&C(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;let{values:n,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=B.createElement(F(r.h,r.h[0]),this.options)),r);if((null==(e=this._$AH)?void 0:e._$AD)===i)this._$AH.v(n);else{let t=new q(i,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new B(t)),e}T(t){k(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,r=0;for(let i of t)r===e.length?e.push(n=new G(this.k(E()),this.k(E()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null==(n=this._$AP)||n.call(this,!1,!0,e);t&&t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null==(e=this._$AP)||e.call(this,t))}}class Z{constructor(t,e,n,r,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){let i=this.strings,o=!1;if(void 0===i)(o=!C(t=H(this,t,e,0))||t!==this._$AH&&t!==W)&&(this._$AH=t);else{let r,s,u=t;for(t=i[0],r=0;r<i.length-1;r++)(s=H(this,u[n+r],e,r))===W&&(s=this._$AH[r]),o||(o=!C(s)||s!==this._$AH[r]),s===L?t=L:t!==L&&(t+=(null!=s?s:"")+i[r+1]),this._$AH[r]=s}o&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}let J=y?y.emptyScript:"";class Y extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==L?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class Q extends Z{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){var n;if((t=null!=(n=H(this,t,e,0))?n:L)===W)return;let r=this._$AH,i=t===L&&r!==L||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==L&&(r===L||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!=(n=null==(e=this.options)?void 0:e.host)?n:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}let tt=_.litHtmlPolyfillSupport;null==tt||tt(B,G),(null!=(tw=_.litHtmlVersions)?tw:_.litHtmlVersions=[]).push("2.8.0");let te=window,tn=te.ShadowRoot&&(void 0===te.ShadyCSS||te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tr=Symbol(),ti=new WeakMap;class to{constructor(t,e,n){if(this._$cssResult$=!0,n!==tr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(tn&&void 0===t){let n=void 0!==e&&1===e.length;n&&(t=ti.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ti.set(e,t))}return t}toString(){return this.cssText}}let ts=tn?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return(t=>new to("string"==typeof t?t:t+"",void 0,tr))(e)})(t):t,tu=window,ta=tu.trustedTypes,tl=ta?ta.emptyScript:"",th=tu.reactiveElementPolyfillSupport,tc={toAttribute(t,e){switch(e){case Boolean:t=t?tl:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},tf=(t,e)=>e!==t&&(e==e||t==t),tp={attribute:!0,type:String,converter:tc,reflect:!1,hasChanged:tf},td="finalized";class tv extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!=(e=this.h)?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,n)=>{let r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))}),t}static createProperty(t,e=tp){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){let i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tp}static finalize(){if(this.hasOwnProperty(td))return!1;this[td]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)])this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let n of new Set(t.flat(1/0).reverse()))e.unshift(ts(n));else void 0!==t&&e.push(ts(t));return e}static _$Ep(t,e){let n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null==(t=this.constructor.h)||t.forEach(t=>t(this))}addController(t){var e,n;(null!=(e=this._$ES)?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null==(n=t.hostConnected)||n.call(t))}removeController(t){var e;null==(e=this._$ES)||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t,e;let n=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return e=this.constructor.elementStyles,tn?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let e=document.createElement("style"),r=te.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,n.appendChild(e)}),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=tp){var r;let i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){let o=(void 0!==(null==(r=n.converter)?void 0:r.toAttribute)?n.converter:tc).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;let r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){let t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(n=t.converter)?void 0:n.fromAttribute)?t.converter:tc;this._$El=i,this[i]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||tf)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1,n=this._$AL;try{(e=this.shouldUpdate(n))?(this.willUpdate(n),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null==(e=this._$ES)||e.forEach(t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}tv[td]=!0,tv.elementProperties=new Map,tv.elementStyles=[],tv.shadowRootOptions={mode:"open"},null==th||th({ReactiveElement:tv}),(null!=(tA=tu.reactiveElementVersions)?tA:tu.reactiveElementVersions=[]).push("1.6.3");class tg extends tv{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{var r,i;let o=null!=(r=null==n?void 0:n.renderBefore)?r:e,s=o._$litPart$;if(void 0===s){let t=null!=(i=null==n?void 0:n.renderBefore)?i:null;o._$litPart$=s=new G(e.insertBefore(E(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return W}}tg.finalized=!0,tg._$litElement$=!0,null==(t$=globalThis.litElementHydrateSupport)||t$.call(globalThis,{LitElement:tg});let t_=globalThis.litElementPolyfillSupport;function ty(t){return(e,n)=>void 0!==n?void e.constructor.createProperty(n,t):"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}}:{...e,finisher(n){n.createProperty(e.key,t)}}}function tm(t){return ty({...t,state:!0})}function tx(t,e){return(({finisher:t,descriptor:e})=>(n,r)=>{var i;if(void 0===r){let r=null!=(i=n.originalKey)?i:n.key,o=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(n.key)}:{...n,key:r};return null!=t&&(o.finisher=function(e){t(e,r)}),o}{let i=n.constructor;void 0!==e&&Object.defineProperty(n,r,e(r)),null==t||t(i,r)}})({descriptor:n=>{let r={get(){var e,n;return null!=(n=null==(e=this.renderRoot)?void 0:e.querySelector(t))?n:null},enumerable:!0,configurable:!0};if(e){let e="symbol"==typeof n?Symbol():"__"+n;r.get=function(){var n,r;return void 0===this[e]&&(this[e]=null!=(r=null==(n=this.renderRoot)?void 0:n.querySelector(t))?r:null),this[e]}}return r}})}null==t_||t_({LitElement:tg}),(null!=(tS=globalThis.litElementVersions)?tS:globalThis.litElementVersions=[]).push("3.3.3"),null!=(null==(tE=window.HTMLSlotElement)?void 0:tE.prototype.assignedElements)||((t,e)=>t.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE));var tb,tw,tA,t$,tS,tE,tC=s(297),tk=s(658),tO=s(801),tR=s.n(tO),tP=s(329),tU=s(891),tM=s(243),tj=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};let tT=((t,...e)=>new to(1===t.length?t[0]:e.reduce((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]),t,tr))`
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ORModel"),require("ORTranslate"),require("ORIcon"),require("ORCore")):"function"==typeof define&&define.amd?define(["ORModel","ORTranslate","ORIcon","ORCore"],e):"object"==typeof exports?exports.ORGauge=e(require("ORModel"),require("ORTranslate"),require("ORIcon"),require("ORCore")):t.ORGauge=e(t.ORModel,t.ORTranslate,t.ORIcon,t.ORCore)}(self,(t,e,n,r)=>(()=>{var i={658:function(t){(function(){var e,n,r,i,o,u,s,a,l,c,h,f,p=[].slice,d={}.hasOwnProperty,g=function(t,e){for(var n in e)d.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},v=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return -1};!function(){var t,e,n,r,i,o,u;for(n=0,i=(u=["ms","moz","webkit","o"]).length;n<i&&(o=u[n],!window.requestAnimationFrame);n++)window.requestAnimationFrame=window[o+"RequestAnimationFrame"],window.cancelAnimationFrame=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];t=null,r=0,e={},requestAnimationFrame?window.cancelAnimationFrame||(t=window.requestAnimationFrame,window.requestAnimationFrame=function(n,i){var o;return o=++r,t(function(){if(!e[o])return n()},i),o},window.cancelAnimationFrame=function(t){return e[t]=!0}):(window.requestAnimationFrame=function(t,e){var n,r,i,o;return o=Math.max(0,16-((n=new Date().getTime())-i)),r=window.setTimeout(function(){return t(n+o)},o),i=n+o,r},window.cancelAnimationFrame=function(t){return clearTimeout(t)})}(),f=function(t){var e,n;for(e=Math.floor(t/3600),n=Math.floor((t-3600*e)/60),t-=3600*e+60*n,t+="",n+="";n.length<2;)n="0"+n;for(;t.length<2;)t="0"+t;return(e=e?e+":":"")+n+":"+t},c=function(){var t,e,n;return e=1<=arguments.length?p.call(arguments,0):[],n=e[0],t=e[1],a(n.toFixed(t))},h=function(t,e){var n,r,i;for(n in r={},t)d.call(t,n)&&(i=t[n],r[n]=i);for(n in e)d.call(e,n)&&(i=e[n],r[n]=i);return r},a=function(t){var e,n,r,i;for(t+="",r=(n=t.split("."))[0],i="",n.length>1&&(i="."+n[1]),e=/(\d+)(\d{3})/;e.test(r);)r=r.replace(e,"$1,$2");return r+i},l=function(t){return"#"===t.charAt(0)?t.substring(1,7):t},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.displayScale=1,e.prototype.forceUpdate=!0,e.prototype.setTextField=function(t,e){return this.textField=t instanceof u?t:new u(t,e)},e.prototype.setMinValue=function(t,e){var n,r,i,o,u;if(this.minValue=t,null==e&&(e=!0),e){for(r=0,this.displayedValue=this.minValue,o=this.gp||[],u=[],i=o.length;r<i;r++)n=o[r],u.push(n.displayedValue=this.minValue);return u}},e.prototype.setOptions=function(t){return null==t&&(t=null),this.options=h(this.options,t),this.textField&&(this.textField.el.style.fontSize=t.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},e.prototype.configDisplayScale=function(){var t,e,n,r,i;return r=this.displayScale,!1===this.options.highDpiSupport?delete this.displayScale:(e=window.devicePixelRatio||1,t=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=e/t),this.displayScale!==r&&(i=this.canvas.G__width||this.canvas.width,n=this.canvas.G__height||this.canvas.height,this.canvas.width=i*this.displayScale,this.canvas.height=n*this.displayScale,this.canvas.style.width=i+"px",this.canvas.style.height=n+"px",this.canvas.G__width=i,this.canvas.G__height=n),this},e.prototype.parseValue=function(t){return isFinite(t=parseFloat(t)||Number(t))?t:0},e}(s=function(){function t(t,e){null==t&&(t=!0),this.clear=null==e||e,t&&AnimationUpdater.add(this)}return t.prototype.animationSpeed=32,t.prototype.update=function(t){var e;return null==t&&(t=!1),(!!t||this.displayedValue!==this.value)&&(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),.001>=Math.abs((e=this.value-this.displayedValue)/this.animationSpeed)?this.displayedValue=this.value:this.displayedValue=this.displayedValue+e/this.animationSpeed,this.render(),!0)},t}()),u=function(){function t(t,e){this.el=t,this.fractionDigits=e}return t.prototype.render=function(t){return this.el.innerHTML=c(t.displayedValue,this.fractionDigits)},t}(),function(t){function e(t,n){if(this.elem=t,this.text=null!=n&&n,e.__super__.constructor.call(this),void 0===this.elem)throw Error("The element isn't defined.");this.value=+this.elem.innerHTML,this.text&&(this.value=0)}g(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.setVal=function(t){return this.value=+t},e.prototype.render=function(){var t;return t=this.text?f(this.displayedValue.toFixed(0)):a(c(this.displayedValue)),this.elem.innerHTML=t}}(s),o=function(t){function e(t){if(this.gauge=t,void 0===this.gauge)throw Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,e.__super__.constructor.call(this,!1,!1),this.setOptions()}return g(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},e.prototype.img=null,e.prototype.setOptions=function(t){if(null==t&&(t=null),this.options=h(this.options,t),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},e.prototype.render=function(){var t,e,n,r,i,o,u,s,a;if(t=this.gauge.getAngle.call(this,this.displayedValue),s=Math.round(this.length*Math.cos(t)),a=Math.round(this.length*Math.sin(t)),o=Math.round(this.strokeWidth*Math.cos(t-Math.PI/2)),u=Math.round(this.strokeWidth*Math.sin(t-Math.PI/2)),e=Math.round(this.strokeWidth*Math.cos(t+Math.PI/2)),n=Math.round(this.strokeWidth*Math.sin(t+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(o,u),this.ctx.lineTo(s,a),this.ctx.lineTo(e,n),this.ctx.fill(),this.img)return r=Math.round(this.img.width*this.options.iconScale),i=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(s,a),this.ctx.rotate(t+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-r/2,-i/2,r,i),this.ctx.restore()},e}(s),function(){function t(t){this.elem=t}t.prototype.updateValues=function(t){return this.value=t[0],this.maxValue=t[1],this.avgValue=t[2],this.render()},t.prototype.render=function(){var t,e;return this.textField&&this.textField.text(c(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),e=this.value/this.maxValue*100,t=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:e+"%"}),$(".typical-value",this.elem).css({width:t+"%"})}}(),i=function(t){function e(t){var n,r;this.canvas=t,e.__super__.constructor.call(this),this.percentColors=null,"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),n=this.canvas.clientHeight,r=this.canvas.clientWidth,this.canvas.height=n,this.canvas.width=r,this.gp=[new o(this)],this.setOptions()}return g(e,t),e.prototype.elem=null,e.prototype.value=[20],e.prototype.maxValue=80,e.prototype.minValue=0,e.prototype.displayedAngle=0,e.prototype.displayedValue=0,e.prototype.lineWidth=40,e.prototype.paddingTop=.1,e.prototype.paddingBottom=.1,e.prototype.percentColors=null,e.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,fontSize:40,limitMax:!1,limitMin:!1},e.prototype.setOptions=function(t){var n,r,i,o,u;for(null==t&&(t=null),e.__super__.setOptions.call(this,t),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(o=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(o)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),r=0,i=(u=this.gp).length;r<i;r++)(n=u[r]).setOptions(this.options.pointer),n.render();return this.render(),this},e.prototype.configPercentColors=function(){var t,e,n,r,i,o,u;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=[],o=[],n=r=0,i=this.options.percentColors.length-1;0<=i?r<=i:r>=i;n=0<=i?++r:--r)u=parseInt(l(this.options.percentColors[n][1]).substring(0,2),16),e=parseInt(l(this.options.percentColors[n][1]).substring(2,4),16),t=parseInt(l(this.options.percentColors[n][1]).substring(4,6),16),o.push(this.percentColors[n]={pct:this.options.percentColors[n][0],color:{r:u,g:e,b:t}});return o}},e.prototype.set=function(t){var e,n,r,i,u,s,a,l,c;for(t instanceof Array||(t=[t]),n=r=0,a=t.length-1;0<=a?r<=a:r>=a;n=0<=a?++r:--r)t[n]=this.parseValue(t[n]);if(t.length>this.gp.length)for(n=i=0,l=t.length-this.gp.length;0<=l?i<l:i>l;n=0<=l?++i:--i)(e=new o(this)).setOptions(this.options.pointer),this.gp.push(e);else t.length<this.gp.length&&(this.gp=this.gp.slice(this.gp.length-t.length));for(s=0,n=0,u=t.length;s<u;s++)(c=t[s])>this.maxValue?this.options.limitMax?c=this.maxValue:this.maxValue=c+1:c<this.minValue&&(this.options.limitMin?c=this.minValue:this.minValue=c-1),this.gp[n].value=c,this.gp[n++].setOptions({minValue:this.minValue,maxValue:this.maxValue,angle:this.options.angle});return this.value=Math.max(Math.min(t[t.length-1],this.maxValue),this.minValue),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},e.prototype.getAngle=function(t){return(1+this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},e.prototype.getColorForPercentage=function(t,e){var n,r,i,o,u,s,a;if(0===t)n=this.percentColors[0].color;else for(n=this.percentColors[this.percentColors.length-1].color,i=o=0,s=this.percentColors.length-1;0<=s?o<=s:o>=s;i=0<=s?++o:--o)if(t<=this.percentColors[i].pct){!0===e?(a=this.percentColors[i-1]||this.percentColors[0],r=this.percentColors[i],u=(t-a.pct)/(r.pct-a.pct),n={r:Math.floor(a.color.r*(1-u)+r.color.r*u),g:Math.floor(a.color.g*(1-u)+r.color.g*u),b:Math.floor(a.color.b*(1-u)+r.color.b*u)}):n=this.percentColors[i].color;break}return"rgb("+[n.r,n.g,n.b].join(",")+")"},e.prototype.getColorForValue=function(t,e){var n;return n=(t-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(n,e)},e.prototype.renderStaticLabels=function(t,e,n,r){var i,o,u,s,a,l,h,f,p,d;for(this.ctx.save(),this.ctx.translate(e,n),i=t.font||"10px Times",l=/\d+\.?\d?/,a=i.match(l)[0],f=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+f,this.ctx.fillStyle=t.color||"#000000",this.ctx.textBaseline="bottom",this.ctx.textAlign="center",u=0,s=(h=t.labels).length;u<s;u++)void 0!==(d=h[u]).label?(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(a=(i=d.font||t.font).match(l)[0],f=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+f,p=this.getAngle(d.label)-3*Math.PI/2,this.ctx.rotate(p),this.ctx.fillText(c(d.label,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-p)):(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(p=this.getAngle(d)-3*Math.PI/2,this.ctx.rotate(p),this.ctx.fillText(c(d,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-p));return this.ctx.restore()},e.prototype.renderTicks=function(t,e,n,r){var i,o,u,s,a,l,c,h,f,p,d,g,v,_,y,m,x,b,w,A;if(t!=={}){for(l=t.divisions||0,b=t.subDivisions||0,u=t.divColor||"#fff",_=t.subColor||"#fff",s=t.divLength||.7,m=t.subLength||.2,y=parseFloat(p=parseFloat(f=parseFloat(this.maxValue)-parseFloat(this.minValue))/parseFloat(t.divisions))/parseFloat(t.subDivisions),i=parseFloat(this.minValue),o=0+y,a=(h=f/400)*(t.divWidth||1),x=h*(t.subWidth||1),g=[],w=c=0,d=l+1;c<d;w=c+=1)this.ctx.lineWidth=this.lineWidth*s,v=this.lineWidth/2*(1-s),A=this.radius*this.options.radiusScale+v,this.ctx.strokeStyle=u,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(i-a),this.getAngle(i+a),!1),this.ctx.stroke(),o=i+y,i+=p,w!==t.divisions&&b>0?g.push((function(){var t,e,n;for(n=[],t=0,e=b-1;t<e;t+=1)this.ctx.lineWidth=this.lineWidth*m,v=this.lineWidth/2*(1-m),A=this.radius*this.options.radiusScale+v,this.ctx.strokeStyle=_,this.ctx.beginPath(),this.ctx.arc(0,0,A,this.getAngle(o-x),this.getAngle(o+x),!1),this.ctx.stroke(),n.push(o+=y);return n}).call(this)):g.push(void 0);return g}},e.prototype.render=function(){var t,e,n,r,i,o,u,s,a,l,c,h,f,p,d,g;if(d=this.canvas.width/2,n=this.canvas.height*this.paddingTop+this.availableHeight-(this.radius+this.lineWidth/2)*this.extraPadding,t=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",l=this.radius*this.options.radiusScale,this.options.staticLabels&&this.renderStaticLabels(this.options.staticLabels,d,n,l),this.options.staticZones)for(this.ctx.save(),this.ctx.translate(d,n),this.ctx.lineWidth=this.lineWidth,r=0,o=(c=this.options.staticZones).length;r<o;r++)a=(g=c[r]).min,this.options.limitMin&&a<this.minValue&&(a=this.minValue),s=g.max,this.options.limitMax&&s>this.maxValue&&(s=this.maxValue),p=this.radius*this.options.radiusScale,g.height&&(this.ctx.lineWidth=this.lineWidth*g.height,f=this.lineWidth/2*(g.offset||1-g.height),p=this.radius*this.options.radiusScale+f),this.ctx.strokeStyle=g.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,p,this.getAngle(a),this.getAngle(s),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?e=this.options.customFillStyle(this):null!==this.percentColors?e=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?((e=0===this.options.gradientType?this.ctx.createRadialGradient(d,n,9,d,n,70):this.ctx.createLinearGradient(0,0,d,0)).addColorStop(0,this.options.colorStart),e.addColorStop(1,this.options.colorStop)):e=this.options.colorStart,this.ctx.strokeStyle=e,this.ctx.beginPath(),this.ctx.arc(d,n,l,(1+this.options.angle)*Math.PI,t,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(d,n,l,t,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(d,n);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,d,n,l),this.ctx.restore(),this.ctx.translate(d,n),i=0,u=(h=this.gp).length;i<u;i++)h[i].update(!0);return this.ctx.translate(-d,-n)},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.strokeGradient=function(t,e,n,r){var i;return(i=this.ctx.createRadialGradient(t,e,n,t,e,r)).addColorStop(0,this.options.shadowColor),i.addColorStop(.12,this.options._orgStrokeColor),i.addColorStop(.88,this.options._orgStrokeColor),i.addColorStop(1,this.options.shadowColor),i},e.prototype.setOptions=function(t){var n,r,i,o;return null==t&&(t=null),e.__super__.setOptions.call(this,t),o=this.canvas.width/2,n=this.canvas.height/2,r=this.radius-this.lineWidth/2,i=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(o,n,r,i),this},e}(e=function(t){function e(t){this.canvas=t,e.__super__.constructor.call(this),"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),this.setOptions(),this.render()}return g(e,t),e.prototype.lineWidth=15,e.prototype.displayedValue=0,e.prototype.value=33,e.prototype.maxValue=80,e.prototype.minValue=0,e.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35,radiusScale:1},e.prototype.getAngle=function(t){return(1-this.options.angle)*Math.PI+(t-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},e.prototype.setOptions=function(t){return null==t&&(t=null),e.__super__.setOptions.call(this,t),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.options.radiusScale*(this.canvas.height/2-this.lineWidth/2),this},e.prototype.set=function(t){return this.value=this.parseValue(t),this.value>this.maxValue?this.options.limitMax?this.value=this.maxValue:this.maxValue=this.value:this.value<this.minValue&&(this.options.limitMin?this.value=this.minValue:this.minValue=this.value),AnimationUpdater.add(this),AnimationUpdater.run(this.forceUpdate),this.forceUpdate=!1},e.prototype.render=function(){var t,e,n,r;return t=this.getAngle(this.displayedValue),r=this.canvas.width/2,n=this.canvas.height/2,this.textField&&this.textField.render(this),(e=this.ctx.createRadialGradient(r,n,39,r,n,70)).addColorStop(0,this.options.colorStart),e.addColorStop(1,this.options.colorStop),this.radius,this.lineWidth,this.radius,this.lineWidth,this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(r,n,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=e,this.ctx.beginPath(),this.ctx.arc(r,n,this.radius,(1-this.options.angle)*Math.PI,t,!1),this.ctx.stroke()},e}(n)),window.AnimationUpdater={elements:[],animId:null,addAll:function(t){var e,n,r,i;for(n=0,i=[],r=t.length;n<r;n++)e=t[n],i.push(AnimationUpdater.elements.push(e));return i},add:function(t){if(0>v.call(AnimationUpdater.elements,t))return AnimationUpdater.elements.push(t)},run:function(t){var e,n,r,i,o,u,s;if(null==t&&(t=!1),isFinite(parseFloat(t))||!0===t){for(e=!0,s=[],u=AnimationUpdater.elements,r=n=0,o=u.length;n<o;r=++n)u[r].update(!0===t)?e=!1:s.push(r);for(i=s.length-1;i>=0;i+=-1)r=s[i],AnimationUpdater.elements.splice(r,1);return AnimationUpdater.animId=e?null:requestAnimationFrame(AnimationUpdater.run)}if(!1===t)return!0===AnimationUpdater.animId&&cancelAnimationFrame(AnimationUpdater.animId),AnimationUpdater.animId=requestAnimationFrame(AnimationUpdater.run)}},"function"==typeof window.define&&null!=window.define.amd?define(function(){return{Gauge:i,Donut:r,BaseDonut:e,TextRenderer:u}}):null!=t.exports?t.exports={Gauge:i,Donut:r,BaseDonut:e,TextRenderer:u}:(window.Gauge=i,window.Donut=r,window.BaseDonut=e,window.TextRenderer=u)}).call(this)},891:function(t,e,n){t=n.nmd(t),(function(){var r,i="Expected a function",o="__lodash_hash_undefined__",u="__lodash_placeholder__",s=1/0,a=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",h="[object Array]",f="[object Boolean]",p="[object Date]",d="[object Error]",g="[object Function]",v="[object GeneratorFunction]",_="[object Map]",y="[object Number]",m="[object Object]",x="[object Promise]",b="[object RegExp]",w="[object Set]",A="[object String]",S="[object Symbol]",C="[object WeakMap]",E="[object ArrayBuffer]",O="[object DataView]",k="[object Float32Array]",M="[object Float64Array]",R="[object Int8Array]",j="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",I="[object Uint8ClampedArray]",T="[object Uint16Array]",V="[object Uint32Array]",W=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,N=RegExp(D.source),B=RegExp(L.source),H=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),X=/^\s+/,tt=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tn=/\{\n\/\* \[wrapped with (.+)\] \*/,tr=/,? & /,ti=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,to=/[()=,{}\[\]\/\s]/,tu=/\\(\\)?/g,ts=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ta=/\w*$/,tl=/^[-+]0x[0-9a-f]+$/i,tc=/^0b[01]+$/i,th=/^\[object .+?Constructor\]$/,tf=/^0o[0-7]+$/i,tp=/^(?:0|[1-9]\d*)$/,td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tg=/($^)/,tv=/['\n\r\u2028\u2029\\]/g,t_="\ud800-\udfff",ty="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tm="\\u2700-\\u27bf",tx="a-z\\xdf-\\xf6\\xf8-\\xff",tb="A-Z\\xc0-\\xd6\\xd8-\\xde",tw="\\ufe0e\\ufe0f",tA="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",t$="['’]",tS="["+tA+"]",tC="["+ty+"]",tE="["+tx+"]",tO="[^"+t_+tA+"\\d+"+tm+tx+tb+"]",tk="\ud83c[\udffb-\udfff]",tM="[^"+t_+"]",tR="(?:\ud83c[\udde6-\uddff]){2}",tj="[\ud800-\udbff][\udc00-\udfff]",tP="["+tb+"]",tU="\\u200d",tI="(?:"+tE+"|"+tO+")",tT="(?:"+tP+"|"+tO+")",tV="(?:"+t$+"(?:d|ll|m|re|s|t|ve))?",tW="(?:"+t$+"(?:D|LL|M|RE|S|T|VE))?",tz="(?:"+tC+"|"+tk+")?",tF="["+tw+"]?",tD="(?:"+tU+"(?:"+[tM,tR,tj].join("|")+")"+tF+tz+")*",tL=tF+tz+tD,tN="(?:"+["["+tm+"]",tR,tj].join("|")+")"+tL,tB="(?:"+[tM+tC+"?",tC,tR,tj,"["+t_+"]"].join("|")+")",tH=RegExp(t$,"g"),tq=RegExp(tC,"g"),tG=RegExp(tk+"(?="+tk+")|"+tB+tL,"g"),tZ=RegExp([tP+"?"+tE+"+"+tV+"(?="+[tS,tP,"$"].join("|")+")",tT+"+"+tW+"(?="+[tS,tP+tI,"$"].join("|")+")",tP+"?"+tI+"+"+tV,tP+"+"+tW,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",tN].join("|"),"g"),tK=RegExp("["+tU+t_+ty+tw+"]"),tJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tQ=-1,tX={};tX[k]=tX[M]=tX[R]=tX[j]=tX[P]=tX[U]=tX[I]=tX[T]=tX[V]=!0,tX[c]=tX[h]=tX[E]=tX[f]=tX[O]=tX[p]=tX[d]=tX[g]=tX[_]=tX[y]=tX[m]=tX[b]=tX[w]=tX[A]=tX[C]=!1;var t0={};t0[c]=t0[h]=t0[E]=t0[O]=t0[f]=t0[p]=t0[k]=t0[M]=t0[R]=t0[j]=t0[P]=t0[_]=t0[y]=t0[m]=t0[b]=t0[w]=t0[A]=t0[S]=t0[U]=t0[I]=t0[T]=t0[V]=!0,t0[d]=t0[g]=t0[C]=!1;var t1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,t3=parseInt,t8="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,t6="object"==typeof self&&self&&self.Object===Object&&self,t4=t8||t6||Function("return this")(),t5=e&&!e.nodeType&&e,t9=t5&&t&&!t.nodeType&&t,t7=t9&&t9.exports===t5,et=t7&&t8.process,ee=function(){try{var t=t9&&t9.require&&t9.require("util").types;if(t)return t;return et&&et.binding&&et.binding("util")}catch(t){}}(),en=ee&&ee.isArrayBuffer,er=ee&&ee.isDate,ei=ee&&ee.isMap,eo=ee&&ee.isRegExp,eu=ee&&ee.isSet,es=ee&&ee.isTypedArray;function ea(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function el(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];e(r,u,n(u),t)}return r}function ec(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function eh(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ef(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o}function ep(t,e){return!!(null==t?0:t.length)&&eA(t,e,0)>-1}function ed(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function eg(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function ev(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function e_(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ey(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function em(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ex=eE("length");function eb(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function ew(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return -1}function eA(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return -1}(t,e,n):ew(t,eS,n)}function e$(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return -1}function eS(t){return t!=t}function eC(t,e){var n=null==t?0:t.length;return n?eM(t,e)/n:a}function eE(t){return function(e){return null==e?r:e[t]}}function eO(t){return function(e){return null==t?r:t[e]}}function ek(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function eM(t,e){for(var n,i=-1,o=t.length;++i<o;){var u=e(t[i]);r!==u&&(n=r===n?u:n+u)}return n}function eR(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function ej(t){return t?t.slice(0,eZ(t)+1).replace(X,""):t}function eP(t){return function(e){return t(e)}}function eU(t,e){return eg(e,function(e){return t[e]})}function eI(t,e){return t.has(e)}function eT(t,e){for(var n=-1,r=t.length;++n<r&&eA(e,t[n],0)>-1;);return n}function eV(t,e){for(var n=t.length;n--&&eA(e,t[n],0)>-1;);return n}var eW=eO({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ez=eO({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function eF(t){return"\\"+t1[t]}function eD(t){return tK.test(t)}function eL(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function eN(t,e){return function(n){return t(e(n))}}function eB(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];(s===e||s===u)&&(t[n]=u,o[i++]=n)}return o}function eH(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function eq(t){return eD(t)?function(t){for(var e=tG.lastIndex=0;tG.test(t);)++e;return e}(t):ex(t)}function eG(t){return eD(t)?t.match(tG)||[]:t.split("")}function eZ(t){for(var e=t.length;e--&&tt.test(t.charAt(e)););return e}var eK=eO({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),eJ=function t(e){var n,tt,t_,ty,tm=(e=null==e?t4:eJ.defaults(t4.Object(),e,eJ.pick(t4,tY))).Array,tx=e.Date,tb=e.Error,tw=e.Function,tA=e.Math,t$=e.Object,tS=e.RegExp,tC=e.String,tE=e.TypeError,tO=tm.prototype,tk=tw.prototype,tM=t$.prototype,tR=e["__core-js_shared__"],tj=tk.toString,tP=tM.hasOwnProperty,tU=0,tI=(n=/[^.]+$/.exec(tR&&tR.keys&&tR.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",tT=tM.toString,tV=tj.call(t$),tW=t4._,tz=tS("^"+tj.call(tP).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tF=t7?e.Buffer:r,tD=e.Symbol,tL=e.Uint8Array,tN=tF?tF.allocUnsafe:r,tB=eN(t$.getPrototypeOf,t$),tG=t$.create,tK=tM.propertyIsEnumerable,t1=tO.splice,t8=tD?tD.isConcatSpreadable:r,t6=tD?tD.iterator:r,t5=tD?tD.toStringTag:r,t9=function(){try{var t=ig(t$,"defineProperty");return t({},"",{}),t}catch(t){}}(),et=e.clearTimeout!==t4.clearTimeout&&e.clearTimeout,ee=tx&&tx.now!==t4.Date.now&&tx.now,ex=e.setTimeout!==t4.setTimeout&&e.setTimeout,eO=tA.ceil,eY=tA.floor,eQ=t$.getOwnPropertySymbols,eX=tF?tF.isBuffer:r,e0=e.isFinite,e1=tO.join,e2=eN(t$.keys,t$),e3=tA.max,e8=tA.min,e6=tx.now,e4=e.parseInt,e5=tA.random,e9=tO.reverse,e7=ig(e,"DataView"),nt=ig(e,"Map"),ne=ig(e,"Promise"),nn=ig(e,"Set"),nr=ig(e,"WeakMap"),ni=ig(t$,"create"),no=nr&&new nr,nu={},ns=iF(e7),na=iF(nt),nl=iF(ne),nc=iF(nn),nh=iF(nr),nf=tD?tD.prototype:r,np=nf?nf.valueOf:r,nd=nf?nf.toString:r;function ng(t){if(oK(t)&&!oW(t)&&!(t instanceof nm)){if(t instanceof ny)return t;if(tP.call(t,"__wrapped__"))return iD(t)}return new ny(t)}var nv=function(){function t(){}return function(e){if(!oZ(e))return{};if(tG)return tG(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function n_(){}function ny(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function nm(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function nx(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nb(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nw(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nA(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new nw;++e<n;)this.add(t[e])}function n$(t){var e=this.__data__=new nb(t);this.size=e.size}function nS(t,e){var n=oW(t),r=!n&&oV(t),i=!n&&!r&&oL(t),o=!n&&!r&&!i&&o3(t),u=n||r||i||o,s=u?eR(t.length,tC):[],a=s.length;for(var l in t)(e||tP.call(t,l))&&!(u&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||iw(l,a)))&&s.push(l);return s}function nC(t){var e=t.length;return e?t[rc(0,e-1)]:r}ng.templateSettings={escape:H,evaluate:q,interpolate:G,variable:"",imports:{_:ng}},ng.prototype=n_.prototype,ng.prototype.constructor=ng,ny.prototype=nv(n_.prototype),ny.prototype.constructor=ny,nm.prototype=nv(n_.prototype),nm.prototype.constructor=nm,nx.prototype.clear=function(){this.__data__=ni?ni(null):{},this.size=0},nx.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},nx.prototype.get=function(t){var e=this.__data__;if(ni){var n=e[t];return n===o?r:n}return tP.call(e,t)?e[t]:r},nx.prototype.has=function(t){var e=this.__data__;return ni?e[t]!==r:tP.call(e,t)},nx.prototype.set=function(t,e){var n=this.__data__;return this.size+=+!this.has(t),n[t]=ni&&r===e?o:e,this},nb.prototype.clear=function(){this.__data__=[],this.size=0},nb.prototype.delete=function(t){var e=this.__data__,n=nk(e,t);return!(n<0)&&(n==e.length-1?e.pop():t1.call(e,n,1),--this.size,!0)},nb.prototype.get=function(t){var e=this.__data__,n=nk(e,t);return n<0?r:e[n][1]},nb.prototype.has=function(t){return nk(this.__data__,t)>-1},nb.prototype.set=function(t,e){var n=this.__data__,r=nk(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},nw.prototype.clear=function(){this.size=0,this.__data__={hash:new nx,map:new(nt||nb),string:new nx}},nw.prototype.delete=function(t){var e=ip(this,t).delete(t);return this.size-=!!e,e},nw.prototype.get=function(t){return ip(this,t).get(t)},nw.prototype.has=function(t){return ip(this,t).has(t)},nw.prototype.set=function(t,e){var n=ip(this,t),r=n.size;return n.set(t,e),this.size+=+(n.size!=r),this},nA.prototype.add=nA.prototype.push=function(t){return this.__data__.set(t,o),this},nA.prototype.has=function(t){return this.__data__.has(t)};function nE(t,e,n){(r===n||oU(t[e],n))&&(r!==n||e in t)||nj(t,e,n)}function nO(t,e,n){var i=t[e];tP.call(t,e)&&oU(i,n)&&(r!==n||e in t)||nj(t,e,n)}function nk(t,e){for(var n=t.length;n--;)if(oU(t[n][0],e))return n;return -1}function nM(t,e,n,r){return nz(t,function(t,i,o){e(r,t,n(t),o)}),r}function nR(t,e){return t&&rL(e,ug(e),t)}function nj(t,e,n){"__proto__"==e&&t9?t9(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function nP(t,e){for(var n=-1,i=e.length,o=tm(i),u=null==t;++n<i;)o[n]=u?r:uc(t,e[n]);return o}function nU(t,e,n){return t==t&&(r!==n&&(t=t<=n?t:n),r!==e&&(t=t>=e?t:e)),t}function nI(t,e,n,i,o,u){var s,a=1&e,l=2&e,h=4&e;if(n&&(s=o?n(t,i,o,u):n(t)),r!==s)return s;if(!oZ(t))return t;var d=oW(t);if(d){if(C=(x=t).length,W=new x.constructor(C),C&&"string"==typeof x[0]&&tP.call(x,"index")&&(W.index=x.index,W.input=x.input),s=W,!a)return rD(t,s)}else{var x,C,W,z,F,D,L,N,B=iy(t),H=B==g||B==v;if(oL(t))return rI(t,a);if(B==m||B==c||H&&!o){if(s=l||H?{}:ix(t),!a){return l?(z=t,F=(N=s)&&rL(t,uv(t),N),rL(z,i_(z),F)):(D=t,L=nR(s,t),rL(D,iv(D),L))}}else{if(!t0[B])return o?t:{};s=function(t,e,n){var r,i,o=t.constructor;switch(e){case E:return rT(t);case f:case p:return new o(+t);case O:return r=n?rT(t.buffer):t.buffer,new t.constructor(r,t.byteOffset,t.byteLength);case k:case M:case R:case j:case P:case U:case I:case T:case V:return rV(t,n);case _:return new o;case y:case A:return new o(t);case b:return(i=new t.constructor(t.source,ta.exec(t))).lastIndex=t.lastIndex,i;case w:return new o;case S:return np?t$(np.call(t)):{}}}(t,B,a)}}u||(u=new n$);var q=u.get(t);if(q)return q;u.set(t,s),o0(t)?t.forEach(function(r){s.add(nI(r,e,n,r,t,u))}):oJ(t)&&t.forEach(function(r,i){s.set(i,nI(r,e,n,i,t,u))});var G=h?l?is:iu:l?uv:ug,Z=d?r:G(t);return ec(Z||t,function(r,i){Z&&(r=t[i=r]),nO(s,i,nI(r,e,n,i,t,u))}),s}function nT(t,e,n){var i=n.length;if(null==t)return!i;for(t=t$(t);i--;){var o=n[i],u=e[o],s=t[o];if(r===s&&!(o in t)||!u(s))return!1}return!0}function nV(t,e,n){if("function"!=typeof t)throw new tE(i);return iP(function(){t.apply(r,n)},e)}function nW(t,e,n,r){var i=-1,o=ep,u=!0,s=t.length,a=[],l=e.length;if(!s)return a;n&&(e=eg(e,eP(n))),r?(o=ed,u=!1):e.length>=200&&(o=eI,u=!1,e=new nA(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,u&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;a.push(c)}else o(e,h,r)||a.push(c)}return a}n$.prototype.clear=function(){this.__data__=new nb,this.size=0},n$.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},n$.prototype.get=function(t){return this.__data__.get(t)},n$.prototype.has=function(t){return this.__data__.has(t)},n$.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nb){var r=n.__data__;if(!nt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new nw(r)}return n.set(t,e),this.size=n.size,this};var nz=rH(nG),nF=rH(nZ,!0);function nD(t,e){var n=!0;return nz(t,function(t,r,i){return n=!!e(t,r,i)}),n}function nL(t,e,n){for(var i=-1,o=t.length;++i<o;){var u=t[i],s=e(u);if(null!=s&&(r===a?s==s&&!o2(s):n(s,a)))var a=s,l=u}return l}function nN(t,e){var n=[];return nz(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function nB(t,e,n,r,i){var o=-1,u=t.length;for(n||(n=ib),i||(i=[]);++o<u;){var s=t[o];e>0&&n(s)?e>1?nB(s,e-1,n,r,i):ev(i,s):r||(i[i.length]=s)}return i}var nH=rq(),nq=rq(!0);function nG(t,e){return t&&nH(t,e,ug)}function nZ(t,e){return t&&nq(t,e,ug)}function nK(t,e){return ef(e,function(e){return oH(t[e])})}function nJ(t,e){e=rj(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[iz(e[n++])];return n&&n==i?t:r}function nY(t,e,n){var r=e(t);return oW(t)?r:ev(r,n(t))}function nQ(t){var e;return null==t?r===t?"[object Undefined]":"[object Null]":t5&&t5 in t$(t)?function(t){var e=tP.call(t,t5),n=t[t5];try{t[t5]=r;var i=!0}catch(t){}var o=tT.call(t);return i&&(e?t[t5]=n:delete t[t5]),o}(t):(e=t,tT.call(e))}function nX(t,e){return t>e}function n0(t,e){return null!=t&&tP.call(t,e)}function n1(t,e){return null!=t&&e in t$(t)}function n2(t,e,n){for(var i=n?ed:ep,o=t[0].length,u=t.length,s=u,a=tm(u),l=1/0,c=[];s--;){var h=t[s];s&&e&&(h=eg(h,eP(e))),l=e8(h.length,l),a[s]=!n&&(e||o>=120&&h.length>=120)?new nA(s&&h):r}h=t[0];var f=-1,p=a[0];t:for(;++f<o&&c.length<l;){var d=h[f],g=e?e(d):d;if(d=n||0!==d?d:0,!(p?eI(p,g):i(c,g,n))){for(s=u;--s;){var v=a[s];if(!(v?eI(v,g):i(t[s],g,n)))continue t}p&&p.push(g),c.push(d)}}return c}function n3(t,e,n){e=rj(e,t);var i=null==(t=iM(t,e))?t:t[iz(iQ(e))];return null==i?r:ea(i,t,n)}function n8(t){return oK(t)&&nQ(t)==c}function n6(t,e,n,i,o){return t===e||(null!=t&&null!=e&&(oK(t)||oK(e))?function(t,e,n,i,o,u){var s=oW(t),a=oW(e),l=s?h:iy(t),g=a?h:iy(e);l=l==c?m:l,g=g==c?m:g;var v=l==m,x=g==m,C=l==g;if(C&&oL(t)){if(!oL(e))return!1;s=!0,v=!1}if(C&&!v)return u||(u=new n$),s||o3(t)?ii(t,e,n,i,o,u):function(t,e,n,r,i,o,u){switch(n){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case E:if(t.byteLength!=e.byteLength||!o(new tL(t),new tL(e)))break;return!0;case f:case p:case y:return oU(+t,+e);case d:return t.name==e.name&&t.message==e.message;case b:case A:return t==e+"";case _:var s=eL;case w:var a=1&r;if(s||(s=eH),t.size!=e.size&&!a)break;var l=u.get(t);if(l)return l==e;r|=2,u.set(t,e);var c=ii(s(t),s(e),r,i,o,u);return u.delete(t),c;case S:if(np)return np.call(t)==np.call(e)}return!1}(t,e,l,n,i,o,u);if(!(1&n)){var k=v&&tP.call(t,"__wrapped__"),M=x&&tP.call(e,"__wrapped__");if(k||M){var R=k?t.value():t,j=M?e.value():e;return u||(u=new n$),o(R,j,n,i,u)}}return!!C&&(u||(u=new n$),function(t,e,n,i,o,u){var s=1&n,a=iu(t),l=a.length;if(l!=iu(e).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in e:tP.call(e,h)))return!1}var f=u.get(t),p=u.get(e);if(f&&p)return f==e&&p==t;var d=!0;u.set(t,e),u.set(e,t);for(var g=s;++c<l;){var v=t[h=a[c]],_=e[h];if(i)var y=s?i(_,v,h,e,t,u):i(v,_,h,t,e,u);if(!(r===y?v===_||o(v,_,n,i,u):y)){d=!1;break}g||(g="constructor"==h)}if(d&&!g){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(d=!1)}return u.delete(t),u.delete(e),d}(t,e,n,i,o,u))}(t,e,n,i,n6,o):t!=t&&e!=e)}function n4(t,e,n,i){var o=n.length,u=o,s=!i;if(null==t)return!u;for(t=t$(t);o--;){var a=n[o];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<u;){var l=(a=n[o])[0],c=t[l],h=a[1];if(s&&a[2]){if(r===c&&!(l in t))return!1}else{var f=new n$;if(i)var p=i(c,h,l,t,e,f);if(!(r===p?n6(h,c,3,i,f):p))return!1}}return!0}function n5(t){var e;return!(!oZ(t)||(e=t,tI&&tI in e))&&(oH(t)?tz:th).test(iF(t))}function n9(t){return"function"==typeof t?t:null==t?uD:"object"==typeof t?oW(t)?rr(t[0],t[1]):rn(t):uJ(t)}function n7(t){if(!iE(t))return e2(t);var e=[];for(var n in t$(t))tP.call(t,n)&&"constructor"!=n&&e.push(n);return e}function rt(t,e){return t<e}function re(t,e){var n=-1,r=oF(t)?tm(t.length):[];return nz(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function rn(t){var e=id(t);return 1==e.length&&e[0][2]?iO(e[0][0],e[0][1]):function(n){return n===t||n4(n,t,e)}}function rr(t,e){var n;return i$(t)&&(n=e)==n&&!oZ(n)?iO(iz(t),e):function(n){var i=uc(n,t);return r===i&&i===e?uh(n,t):n6(e,i,3)}}function ri(t,e,n,i,o){t!==e&&nH(e,function(u,s){if(o||(o=new n$),oZ(u))!function(t,e,n,i,o,u,s){var a=iR(t,n),l=iR(e,n),c=s.get(l);if(c)return nE(t,n,c);var h=u?u(a,l,n+"",t,e,s):r,f=r===h;if(f){var p=oW(l),d=!p&&oL(l),g=!p&&!d&&o3(l);h=l,p||d||g?oW(a)?h=a:oD(a)?h=rD(a):d?(f=!1,h=rI(l,!0)):g?(f=!1,h=rV(l,!0)):h=[]:oQ(l)||oV(l)?(h=a,oV(a)?h=ue(a):(!oZ(a)||oH(a))&&(h=ix(l))):f=!1}f&&(s.set(l,h),o(h,l,i,u,s),s.delete(l)),nE(t,n,h)}(t,e,s,n,ri,i,o);else{var a=i?i(iR(t,s),u,s+"",t,e,o):r;r===a&&(a=u),nE(t,s,a)}},uv)}function ro(t,e){var n=t.length;if(n)return iw(e+=e<0?n:0,n)?t[e]:r}function ru(t,e,n){e=e.length?eg(e,function(t){return oW(t)?function(e){return nJ(e,1===t.length?t[0]:t)}:t}):[uD];var r=-1;e=eg(e,eP(ih()));var i=re(t,function(t,n,i){return{criteria:eg(e,function(e){return e(t)}),index:++r,value:t}}),o=i.length;for(i.sort(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,s=n.length;++r<u;){var a=rW(i[r],o[r]);if(a){if(r>=s)return a;return a*("desc"==n[r]?-1:1)}}return t.index-e.index}(t,e,n)});o--;)i[o]=i[o].value;return i}function rs(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var u=e[r],s=nJ(t,u);n(s,u)&&rp(o,rj(u,t),s)}return o}function ra(t,e,n,r){var i=r?e$:eA,o=-1,u=e.length,s=t;for(t===e&&(e=rD(e)),n&&(s=eg(t,eP(n)));++o<u;)for(var a=0,l=e[o],c=n?n(l):l;(a=i(s,c,a,r))>-1;)s!==t&&t1.call(s,a,1),t1.call(t,a,1);return t}function rl(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;iw(i)?t1.call(t,i,1):r$(t,i)}}return t}function rc(t,e){return t+eY(e5()*(e-t+1))}function rh(t,e){var n="";if(!t||e<1||e>0x1fffffffffffff)return n;do e%2&&(n+=t),(e=eY(e/2))&&(t+=t);while(e);return n}function rf(t,e){return iU(ik(t,e,uD),t+"")}function rp(t,e,n,i){if(!oZ(t))return t;e=rj(e,t);for(var o=-1,u=e.length,s=u-1,a=t;null!=a&&++o<u;){var l=iz(e[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(o!=s){var h=a[l];c=i?i(h,l,a):r,r===c&&(c=oZ(h)?h:iw(e[o+1])?[]:{})}nO(a,l,c),a=a[l]}return t}var rd=no?function(t,e){return no.set(t,e),t}:uD,rg=t9?function(t,e){return t9(t,"toString",{configurable:!0,enumerable:!1,value:uW(e),writable:!0})}:uD;function rv(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=tm(i);++r<i;)o[r]=t[r+e];return o}function r_(t,e){var n;return nz(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ry(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=0x7fffffff){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!o2(u)&&(n?u<=e:u<e)?r=o+1:i=o}return i}return rm(t,e,uD,n)}function rm(t,e,n,i){var o=0,u=null==t?0:t.length;if(0===u)return 0;for(var s=(e=n(e))!=e,a=null===e,l=o2(e),c=r===e;o<u;){var h=eY((o+u)/2),f=n(t[h]),p=r!==f,d=null===f,g=f==f,v=o2(f);if(s)var _=i||g;else _=c?g&&(i||p):a?g&&p&&(i||!d):l?g&&p&&!d&&(i||!v):!d&&!v&&(i?f<=e:f<e);_?o=h+1:u=h}return e8(u,0xfffffffe)}function rx(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n],s=e?e(u):u;if(!n||!oU(s,a)){var a=s;o[i++]=0===u?0:u}}return o}function rb(t){return"number"==typeof t?t:o2(t)?a:+t}function rw(t){if("string"==typeof t)return t;if(oW(t))return eg(t,rw)+"";if(o2(t))return nd?nd.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}function rA(t,e,n){var r=-1,i=ep,o=t.length,u=!0,s=[],a=s;if(n)u=!1,i=ed;else if(o>=200){var l=e?null:r5(t);if(l)return eH(l);u=!1,i=eI,a=new nA}else a=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,u&&h==h){for(var f=a.length;f--;)if(a[f]===h)continue t;e&&a.push(h),s.push(c)}else i(a,h,n)||(a!==s&&a.push(h),s.push(c))}return s}function r$(t,e){return e=rj(e,t),null==(t=iM(t,e))||delete t[iz(iQ(e))]}function rS(t,e,n,r){return rp(t,e,n(nJ(t,e)),r)}function rC(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?rv(t,r?0:o,r?o+1:i):rv(t,r?o+1:0,r?i:o)}function rE(t,e){var n=t;return n instanceof nm&&(n=n.value()),e_(e,function(t,e){return e.func.apply(e.thisArg,ev([t],e.args))},n)}function rO(t,e,n){var r=t.length;if(r<2)return r?rA(t[0]):[];for(var i=-1,o=tm(r);++i<r;)for(var u=t[i],s=-1;++s<r;)s!=i&&(o[i]=nW(o[i]||u,t[s],e,n));return rA(nB(o,1),e,n)}function rk(t,e,n){for(var i=-1,o=t.length,u=e.length,s={};++i<o;){var a=i<u?e[i]:r;n(s,t[i],a)}return s}function rM(t){return oD(t)?t:[]}function rR(t){return"function"==typeof t?t:uD}function rj(t,e){return oW(t)?t:i$(t,e)?[t]:iW(un(t))}function rP(t,e,n){var i=t.length;return n=r===n?i:n,!e&&n>=i?t:rv(t,e,n)}var rU=et||function(t){return t4.clearTimeout(t)};function rI(t,e){if(e)return t.slice();var n=t.length,r=tN?tN(n):new t.constructor(n);return t.copy(r),r}function rT(t){var e=new t.constructor(t.byteLength);return new tL(e).set(new tL(t)),e}function rV(t,e){var n=e?rT(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function rW(t,e){if(t!==e){var n=r!==t,i=null===t,o=t==t,u=o2(t),s=r!==e,a=null===e,l=e==e,c=o2(e);if(!a&&!c&&!u&&t>e||u&&s&&l&&!a&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!u&&!c&&t<e||c&&n&&o&&!i&&!u||a&&n&&o||!s&&o||!l)return -1}return 0}function rz(t,e,n,r){for(var i=-1,o=t.length,u=n.length,s=-1,a=e.length,l=e3(o-u,0),c=tm(a+l),h=!r;++s<a;)c[s]=e[s];for(;++i<u;)(h||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[s++]=t[i++];return c}function rF(t,e,n,r){for(var i=-1,o=t.length,u=-1,s=n.length,a=-1,l=e.length,c=e3(o-s,0),h=tm(c+l),f=!r;++i<c;)h[i]=t[i];for(var p=i;++a<l;)h[p+a]=e[a];for(;++u<s;)(f||i<o)&&(h[p+n[u]]=t[i++]);return h}function rD(t,e){var n=-1,r=t.length;for(e||(e=tm(r));++n<r;)e[n]=t[n];return e}function rL(t,e,n,i){var o=!n;n||(n={});for(var u=-1,s=e.length;++u<s;){var a=e[u],l=i?i(n[a],t[a],a,n,t):r;r===l&&(l=t[a]),o?nj(n,a,l):nO(n,a,l)}return n}function rN(t,e){return function(n,r){var i=oW(n)?el:nM,o=e?e():{};return i(n,t,ih(r,2),o)}}function rB(t){return rf(function(e,n){var i=-1,o=n.length,u=o>1?n[o-1]:r,s=o>2?n[2]:r;for(u=t.length>3&&"function"==typeof u?(o--,u):r,s&&iA(n[0],n[1],s)&&(u=o<3?r:u,o=1),e=t$(e);++i<o;){var a=n[i];a&&t(e,a,i,u)}return e})}function rH(t,e){return function(n,r){if(null==n)return n;if(!oF(n))return t(n,r);for(var i=n.length,o=e?i:-1,u=t$(n);(e?o--:++o<i)&&!1!==r(u[o],o,u););return n}}function rq(t){return function(e,n,r){for(var i=-1,o=t$(e),u=r(e),s=u.length;s--;){var a=u[t?s:++i];if(!1===n(o[a],a,o))break}return e}}function rG(t){return function(e){var n=eD(e=un(e))?eG(e):r,i=n?n[0]:e.charAt(0),o=n?rP(n,1).join(""):e.slice(1);return i[t]()+o}}function rZ(t){return function(e){return e_(uI(uE(e).replace(tH,"")),t,"")}}function rK(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=nv(t.prototype),r=t.apply(n,e);return oZ(r)?r:n}}function rJ(t){return function(e,n,i){var o=t$(e);if(!oF(e)){var u=ih(n,3);e=ug(e),n=function(t){return u(o[t],t,o)}}var s=t(e,n,i);return s>-1?o[u?e[s]:s]:r}}function rY(t){return io(function(e){var n=e.length,o=n,u=ny.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new tE(i);if(u&&!a&&"wrapper"==il(s))var a=new ny([],!0)}for(o=a?o:n;++o<n;){var l=il(s=e[o]),c="wrapper"==l?ia(s):r;a=c&&iS(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[il(c[0])].apply(a,c[3]):1==s.length&&iS(s)?a[l]():a.thru(s)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&oW(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function rQ(t,e,n,i,o,u,s,a,l,c){var h=128&e,f=1&e,p=2&e,d=24&e,g=512&e,v=p?r:rK(t);function _(){for(var y=arguments.length,m=tm(y),x=y;x--;)m[x]=arguments[x];if(d)var b=ic(_),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(m,b);if(i&&(m=rz(m,i,o,d)),u&&(m=rF(m,u,s,d)),y-=w,d&&y<c){var A=eB(m,b);return r6(t,e,rQ,_.placeholder,n,m,A,a,l,c-y)}var S=f?n:this,C=p?S[t]:t;return y=m.length,a?m=function(t,e){for(var n=t.length,i=e8(e.length,n),o=rD(t);i--;){var u=e[i];t[i]=iw(u,n)?o[u]:r}return t}(m,a):g&&y>1&&m.reverse(),h&&l<y&&(m.length=l),this&&this!==t4&&this instanceof _&&(C=v||rK(C)),C.apply(S,m)}return _}function rX(t,e){return function(n,r){var i,o;return i=e(r),o={},nG(n,function(e,n,r){t(o,i(e),n,r)}),o}}function r0(t,e){return function(n,i){var o;if(r===n&&r===i)return e;if(r!==n&&(o=n),r!==i){if(r===o)return i;"string"==typeof n||"string"==typeof i?(n=rw(n),i=rw(i)):(n=rb(n),i=rb(i)),o=t(n,i)}return o}}function r1(t){return io(function(e){return e=eg(e,eP(ih())),rf(function(n){var r=this;return t(e,function(t){return ea(t,r,n)})})})}function r2(t,e){var n=(e=r===e?" ":rw(e)).length;if(n<2)return n?rh(e,t):e;var i=rh(e,eO(t/eq(e)));return eD(e)?rP(eG(i),0,t).join(""):i.slice(0,t)}function r3(t){return function(e,n,i){i&&"number"!=typeof i&&iA(e,n,i)&&(n=i=r),e=o5(e),r===n?(n=e,e=0):n=o5(n),i=r===i?e<n?1:-1:o5(i);for(var o=e,u=n,s=i,a=-1,l=e3(eO((u-o)/(s||1)),0),c=tm(l);l--;)c[t?l:++a]=o,o+=s;return c}}function r8(t){return function(e,n){return("string"!=typeof e||"string"!=typeof n)&&(e=ut(e),n=ut(n)),t(e,n)}}function r6(t,e,n,i,o,u,s,a,l,c){var h=8&e,f=h?s:r,p=h?r:s,d=h?u:r,g=h?r:u;e|=h?32:64,4&(e&=~(h?64:32))||(e&=-4);var v=[t,e,o,d,f,g,p,a,l,c],_=n.apply(r,v);return iS(t)&&ij(_,v),_.placeholder=i,iI(_,t,e)}function r4(t){var e=tA[t];return function(t,n){if(t=ut(t),(n=null==n?0:e8(o9(n),292))&&e0(t)){var r=(un(t)+"e").split("e");return+((r=(un(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(r[1]-n))}return e(t)}}var r5=nn&&1/eH(new nn([,-0]))[1]==s?function(t){return new nn(t)}:uq;function r9(t){return function(e){var n,r,i=iy(e);return i==_?eL(e):i==w?(n=-1,r=Array(e.size),e.forEach(function(t){r[++n]=[t,t]}),r):eg(t(e),function(t){return[t,e[t]]})}}function r7(t,e,n,o,s,a,l,c){var h=2&e;if(!h&&"function"!=typeof t)throw new tE(i);var f=o?o.length:0;if(f||(e&=-97,o=s=r),l=r===l?l:e3(o9(l),0),c=r===c?c:o9(c),f-=s?s.length:0,64&e){var p=o,d=s;o=s=r}var g=h?r:ia(t),v=[t,e,n,o,s,p,d,a,l,c];if(g&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(o||s){1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var l=t[3];t[3]=l?rz(l,a,e[4]):a,t[4]=l?eB(t[3],u):e[4]}(a=e[5])&&(l=t[5],t[5]=l?rF(l,a,e[6]):a,t[6]=l?eB(t[5],u):e[6]),(a=e[7])&&(t[7]=a),128&r&&(t[8]=null==t[8]?e[8]:e8(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}}(v,g),t=v[0],e=v[1],n=v[2],o=v[3],s=v[4],(c=v[9]=v[9]===r?h?0:t.length:e3(v[9]-f,0))||!(24&e)||(e&=-25),e&&1!=e)8==e||16==e?k=function(t,e,n){var i=rK(t);function o(){for(var u=arguments.length,s=tm(u),a=u,l=ic(o);a--;)s[a]=arguments[a];var c=u<3&&s[0]!==l&&s[u-1]!==l?[]:eB(s,l);return(u-=c.length)<n?r6(t,e,rQ,o.placeholder,r,s,c,r,r,n-u):ea(this&&this!==t4&&this instanceof o?i:t,this,s)}return o}(t,e,c):32!=e&&33!=e||s.length?k=rQ.apply(r,v):(_=t,y=e,m=n,x=o,b=1&y,w=rK(_),k=function t(){for(var e=-1,n=arguments.length,r=-1,i=x.length,o=tm(i+n),u=this&&this!==t4&&this instanceof t?w:_;++r<i;)o[r]=x[r];for(;n--;)o[r++]=arguments[++e];return ea(u,b?m:this,o)});else var _,y,m,x,b,w,A,S,C,E,O,k=(A=t,S=e,C=n,E=1&S,O=rK(A),function t(){return(this&&this!==t4&&this instanceof t?O:A).apply(E?C:this,arguments)});return iI((g?rd:ij)(k,v),t,e)}function it(t,e,n,i){return r===t||oU(t,tM[n])&&!tP.call(i,n)?e:t}function ie(t,e,n,i,o,u){return oZ(t)&&oZ(e)&&(u.set(e,t),ri(t,e,r,ie,u),u.delete(e)),t}function ir(t){return oQ(t)?r:t}function ii(t,e,n,i,o,u){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=u.get(t),h=u.get(e);if(c&&h)return c==e&&h==t;var f=-1,p=!0,d=2&n?new nA:r;for(u.set(t,e),u.set(e,t);++f<a;){var g=t[f],v=e[f];if(i)var _=s?i(v,g,f,e,t,u):i(g,v,f,t,e,u);if(r!==_){if(_)continue;p=!1;break}if(d){if(!em(e,function(t,e){if(!eI(d,e)&&(g===t||o(g,t,n,i,u)))return d.push(e)})){p=!1;break}}else if(!(g===v||o(g,v,n,i,u))){p=!1;break}}return u.delete(t),u.delete(e),p}function io(t){return iU(ik(t,r,iG),t+"")}function iu(t){return nY(t,ug,iv)}function is(t){return nY(t,uv,i_)}var ia=no?function(t){return no.get(t)}:uq;function il(t){for(var e=t.name+"",n=nu[e],r=tP.call(nu,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ic(t){return(tP.call(ng,"placeholder")?ng:t).placeholder}function ih(){var t=ng.iteratee||uL;return t=t===uL?n9:t,arguments.length?t(arguments[0],arguments[1]):t}function ip(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function id(t){for(var e=ug(t),n=e.length;n--;){var r,i=e[n],o=t[i];e[n]=[i,o,(r=o)==r&&!oZ(r)]}return e}function ig(t,e){var n=null==t?r:t[e];return n5(n)?n:r}var iv=eQ?function(t){return null==t?[]:ef(eQ(t=t$(t)),function(e){return tK.call(t,e)})}:uX,i_=eQ?function(t){for(var e=[];t;)ev(e,iv(t)),t=tB(t);return e}:uX,iy=nQ;function im(t,e,n){e=rj(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var u=iz(e[r]);if(!(o=null!=t&&n(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&oG(i)&&iw(u,i)&&(oW(t)||oV(t))}function ix(t){return"function"!=typeof t.constructor||iE(t)?{}:nv(tB(t))}function ib(t){return oW(t)||oV(t)||!!(t8&&t&&t[t8])}function iw(t,e){var n=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==n||"symbol"!=n&&tp.test(t))&&t>-1&&t%1==0&&t<e}function iA(t,e,n){if(!oZ(n))return!1;var r=typeof e;return("number"==r?!!(oF(n)&&iw(e,n.length)):"string"==r&&e in n)&&oU(n[e],t)}function i$(t,e){if(oW(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||o2(t))||K.test(t)||!Z.test(t)||null!=e&&t in t$(e)}function iS(t){var e=il(t),n=ng[e];if("function"!=typeof n||!(e in nm.prototype))return!1;if(t===n)return!0;var r=ia(n);return!!r&&t===r[0]}(e7&&iy(new e7(new ArrayBuffer(1)))!=O||nt&&iy(new nt)!=_||ne&&iy(ne.resolve())!=x||nn&&iy(new nn)!=w||nr&&iy(new nr)!=C)&&(iy=function(t){var e=nQ(t),n=e==m?t.constructor:r,i=n?iF(n):"";if(i)switch(i){case ns:return O;case na:return _;case nl:return x;case nc:return w;case nh:return C}return e});var iC=tR?oH:u0;function iE(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||tM)}function iO(t,e){return function(n){return null!=n&&n[t]===e&&(r!==e||t in t$(n))}}function ik(t,e,n){return e=e3(r===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=e3(r.length-e,0),u=tm(o);++i<o;)u[i]=r[e+i];i=-1;for(var s=tm(e+1);++i<e;)s[i]=r[i];return s[e]=n(u),ea(t,this,s)}}function iM(t,e){return e.length<2?t:nJ(t,rv(e,0,-1))}function iR(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ij=iT(rd),iP=ex||function(t,e){return t4.setTimeout(t,e)},iU=iT(rg);function iI(t,e,n){var r,i,o,u=e+"";return iU(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(te,"{\n/* [wrapped with "+e+"] */\n")}(u,(r=(o=u.match(tn))?o[1].split(tr):[],i=n,ec(l,function(t){var e="_."+t[0];i&t[1]&&!ep(r,e)&&r.push(e)}),r.sort())))}function iT(t){var e=0,n=0;return function(){var i=e6(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function iV(t,e){var n=-1,i=t.length,o=i-1;for(e=r===e?i:e;++n<e;){var u=rc(n,o),s=t[u];t[u]=t[n],t[n]=s}return t.length=e,t}var iW=(t_=(tt=oO(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,function(t,n,r,i){e.push(r?i.replace(tu,"$1"):n||t)}),e},function(t){return 500===t_.size&&t_.clear(),t})).cache,tt);function iz(t){if("string"==typeof t||o2(t))return t;var e=t+"";return"0"==e&&1/t==-s?"-0":e}function iF(t){if(null!=t){try{return tj.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function iD(t){if(t instanceof nm)return t.clone();var e=new ny(t.__wrapped__,t.__chain__);return e.__actions__=rD(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var iL=rf(function(t,e){return oD(t)?nW(t,nB(e,1,oD,!0)):[]}),iN=rf(function(t,e){var n=iQ(e);return oD(n)&&(n=r),oD(t)?nW(t,nB(e,1,oD,!0),ih(n,2)):[]}),iB=rf(function(t,e){var n=iQ(e);return oD(n)&&(n=r),oD(t)?nW(t,nB(e,1,oD,!0),r,n):[]});function iH(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:o9(n);return i<0&&(i=e3(r+i,0)),ew(t,ih(e,3),i)}function iq(t,e,n){var i=null==t?0:t.length;if(!i)return -1;var o=i-1;return r!==n&&(o=o9(n),o=n<0?e3(i+o,0):e8(o,i-1)),ew(t,ih(e,3),o,!0)}function iG(t){return(null==t?0:t.length)?nB(t,1):[]}function iZ(t){return t&&t.length?t[0]:r}var iK=rf(function(t){var e=eg(t,rM);return e.length&&e[0]===t[0]?n2(e):[]}),iJ=rf(function(t){var e=iQ(t),n=eg(t,rM);return e===iQ(n)?e=r:n.pop(),n.length&&n[0]===t[0]?n2(n,ih(e,2)):[]}),iY=rf(function(t){var e=iQ(t),n=eg(t,rM);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?n2(n,r,e):[]});function iQ(t){var e=null==t?0:t.length;return e?t[e-1]:r}var iX=rf(i0);function i0(t,e){return t&&t.length&&e&&e.length?ra(t,e):t}var i1=io(function(t,e){var n=null==t?0:t.length,r=nP(t,e);return rl(t,eg(e,function(t){return iw(t,n)?+t:t}).sort(rW)),r});function i2(t){return null==t?t:e9.call(t)}var i3=rf(function(t){return rA(nB(t,1,oD,!0))}),i8=rf(function(t){var e=iQ(t);return oD(e)&&(e=r),rA(nB(t,1,oD,!0),ih(e,2))}),i6=rf(function(t){var e=iQ(t);return e="function"==typeof e?e:r,rA(nB(t,1,oD,!0),r,e)});function i4(t){if(!(t&&t.length))return[];var e=0;return t=ef(t,function(t){if(oD(t))return e=e3(t.length,e),!0}),eR(e,function(e){return eg(t,eE(e))})}function i5(t,e){if(!(t&&t.length))return[];var n=i4(t);return null==e?n:eg(n,function(t){return ea(e,r,t)})}var i9=rf(function(t,e){return oD(t)?nW(t,e):[]}),i7=rf(function(t){return rO(ef(t,oD))}),ot=rf(function(t){var e=iQ(t);return oD(e)&&(e=r),rO(ef(t,oD),ih(e,2))}),oe=rf(function(t){var e=iQ(t);return e="function"==typeof e?e:r,rO(ef(t,oD),r,e)}),on=rf(i4),or=rf(function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,i5(t,n)});function oi(t){var e=ng(t);return e.__chain__=!0,e}function oo(t,e){return e(t)}var ou=io(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return nP(e,t)};return!(e>1)&&!this.__actions__.length&&i instanceof nm&&iw(n)?((i=i.slice(n,+n+ +!!e)).__actions__.push({func:oo,args:[o],thisArg:r}),new ny(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(o)}),os=rN(function(t,e,n){tP.call(t,n)?++t[n]:nj(t,n,1)}),oa=rJ(iH),ol=rJ(iq);function oc(t,e){return(oW(t)?ec:nz)(t,ih(e,3))}function oh(t,e){return(oW(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:nF)(t,ih(e,3))}var of=rN(function(t,e,n){tP.call(t,n)?t[n].push(e):nj(t,n,[e])}),op=rf(function(t,e,n){var r=-1,i="function"==typeof e,o=oF(t)?tm(t.length):[];return nz(t,function(t){o[++r]=i?ea(e,t,n):n3(t,e,n)}),o}),od=rN(function(t,e,n){nj(t,n,e)});function og(t,e){return(oW(t)?eg:re)(t,ih(e,3))}var ov=rN(function(t,e,n){t[+!n].push(e)},function(){return[[],[]]}),o_=rf(function(t,e){if(null==t)return[];var n=e.length;return n>1&&iA(t,e[0],e[1])?e=[]:n>2&&iA(e[0],e[1],e[2])&&(e=[e[0]]),ru(t,nB(e,1),[])}),oy=ee||function(){return t4.Date.now()};function om(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,r7(t,128,r,r,r,r,e)}function ox(t,e){var n;if("function"!=typeof e)throw new tE(i);return t=o9(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var ob=rf(function(t,e,n){var r=1;if(n.length){var i=eB(n,ic(ob));r|=32}return r7(t,r,e,n,i)}),ow=rf(function(t,e,n){var r=3;if(n.length){var i=eB(n,ic(ow));r|=32}return r7(e,r,t,n,i)});function oA(t,e,n){e=n?r:e;var i=r7(t,8,r,r,r,r,r,e);return i.placeholder=oA.placeholder,i}function o$(t,e,n){e=n?r:e;var i=r7(t,16,r,r,r,r,r,e);return i.placeholder=o$.placeholder,i}function oS(t,e,n){var o,u,s,a,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new tE(i);function g(e){var n=o,i=u;return o=u=r,h=e,a=t.apply(i,n)}function v(t){var n=t-c,i=t-h;return r===c||n>=e||n<0||p&&i>=s}function _(){var t,n,r,i=oy();if(v(i))return y(i);l=iP(_,(t=i-c,n=i-h,r=e-t,p?e8(r,s-n):r))}function y(t){return(l=r,d&&o)?g(t):(o=u=r,a)}function m(){var t,n=oy(),i=v(n);if(o=arguments,u=this,c=n,i){if(r===l)return h=t=c,l=iP(_,e),f?g(t):a;if(p)return rU(l),l=iP(_,e),g(c)}return r===l&&(l=iP(_,e)),a}return e=ut(e)||0,oZ(n)&&(f=!!n.leading,s=(p="maxWait"in n)?e3(ut(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d),m.cancel=function(){r!==l&&rU(l),h=0,o=c=u=l=r},m.flush=function(){return r===l?a:y(oy())},m}var oC=rf(function(t,e){return nV(t,1,e)}),oE=rf(function(t,e,n){return nV(t,ut(e)||0,n)});function oO(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new tE(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(oO.Cache||nw),n}function ok(t){if("function"!=typeof t)throw new tE(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}oO.Cache=nw;var oM=rf(function(t,e){var n=(e=1==e.length&&oW(e[0])?eg(e[0],eP(ih())):eg(nB(e,1),eP(ih()))).length;return rf(function(r){for(var i=-1,o=e8(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return ea(t,this,r)})}),oR=rf(function(t,e){var n=eB(e,ic(oR));return r7(t,32,r,e,n)}),oj=rf(function(t,e){var n=eB(e,ic(oj));return r7(t,64,r,e,n)}),oP=io(function(t,e){return r7(t,256,r,r,r,e)});function oU(t,e){return t===e||t!=t&&e!=e}var oI=r8(nX),oT=r8(function(t,e){return t>=e}),oV=n8(function(){return arguments}())?n8:function(t){return oK(t)&&tP.call(t,"callee")&&!tK.call(t,"callee")},oW=tm.isArray,oz=en?eP(en):function(t){return oK(t)&&nQ(t)==E};function oF(t){return null!=t&&oG(t.length)&&!oH(t)}function oD(t){return oK(t)&&oF(t)}var oL=eX||u0,oN=er?eP(er):function(t){return oK(t)&&nQ(t)==p};function oB(t){if(!oK(t))return!1;var e=nQ(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!oQ(t)}function oH(t){if(!oZ(t))return!1;var e=nQ(t);return e==g||e==v||"[object AsyncFunction]"==e||"[object Proxy]"==e}function oq(t){return"number"==typeof t&&t==o9(t)}function oG(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}function oZ(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function oK(t){return null!=t&&"object"==typeof t}var oJ=ei?eP(ei):function(t){return oK(t)&&iy(t)==_};function oY(t){return"number"==typeof t||oK(t)&&nQ(t)==y}function oQ(t){if(!oK(t)||nQ(t)!=m)return!1;var e=tB(t);if(null===e)return!0;var n=tP.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&tj.call(n)==tV}var oX=eo?eP(eo):function(t){return oK(t)&&nQ(t)==b},o0=eu?eP(eu):function(t){return oK(t)&&iy(t)==w};function o1(t){return"string"==typeof t||!oW(t)&&oK(t)&&nQ(t)==A}function o2(t){return"symbol"==typeof t||oK(t)&&nQ(t)==S}var o3=es?eP(es):function(t){return oK(t)&&oG(t.length)&&!!tX[nQ(t)]},o8=r8(rt),o6=r8(function(t,e){return t<=e});function o4(t){if(!t)return[];if(oF(t))return o1(t)?eG(t):rD(t);if(t6&&t[t6]){for(var e,n=t[t6](),r=[];!(e=n.next()).done;)r.push(e.value);return r}var i=iy(t);return(i==_?eL:i==w?eH:u$)(t)}function o5(t){return t?(t=ut(t))===s||t===-s?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function o9(t){var e=o5(t),n=e%1;return e==e?n?e-n:e:0}function o7(t){return t?nU(o9(t),0,0xffffffff):0}function ut(t){if("number"==typeof t)return t;if(o2(t))return a;if(oZ(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=oZ(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ej(t);var n=tc.test(t);return n||tf.test(t)?t3(t.slice(2),n?2:8):tl.test(t)?a:+t}function ue(t){return rL(t,uv(t))}function un(t){return null==t?"":rw(t)}var ur=rB(function(t,e){if(iE(e)||oF(e))return void rL(e,ug(e),t);for(var n in e)tP.call(e,n)&&nO(t,n,e[n])}),ui=rB(function(t,e){rL(e,uv(e),t)}),uo=rB(function(t,e,n,r){rL(e,uv(e),t,r)}),uu=rB(function(t,e,n,r){rL(e,ug(e),t,r)}),us=io(nP),ua=rf(function(t,e){t=t$(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&iA(e[0],e[1],o)&&(i=1);++n<i;)for(var u=e[n],s=uv(u),a=-1,l=s.length;++a<l;){var c=s[a],h=t[c];(r===h||oU(h,tM[c])&&!tP.call(t,c))&&(t[c]=u[c])}return t}),ul=rf(function(t){return t.push(r,ie),ea(uy,r,t)});function uc(t,e,n){var i=null==t?r:nJ(t,e);return r===i?n:i}function uh(t,e){return null!=t&&im(t,e,n1)}var uf=rX(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tT.call(e)),t[e]=n},uW(uD)),up=rX(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tT.call(e)),tP.call(t,e)?t[e].push(n):t[e]=[n]},ih),ud=rf(n3);function ug(t){return oF(t)?nS(t):n7(t)}function uv(t){return oF(t)?nS(t,!0):function(t){if(!oZ(t)){var e=t,n=[];if(null!=e)for(var r in t$(e))n.push(r);return n}var i=iE(t),o=[];for(var u in t)"constructor"==u&&(i||!tP.call(t,u))||o.push(u);return o}(t)}var u_=rB(function(t,e,n){ri(t,e,n)}),uy=rB(function(t,e,n,r){ri(t,e,n,r)}),um=io(function(t,e){var n={};if(null==t)return n;var r=!1;e=eg(e,function(e){return e=rj(e,t),r||(r=e.length>1),e}),rL(t,is(t),n),r&&(n=nI(n,7,ir));for(var i=e.length;i--;)r$(n,e[i]);return n}),ux=io(function(t,e){return null==t?{}:rs(t,e,function(e,n){return uh(t,n)})});function ub(t,e){if(null==t)return{};var n=eg(is(t),function(t){return[t]});return e=ih(e),rs(t,n,function(t,n){return e(t,n[0])})}var uw=r9(ug),uA=r9(uv);function u$(t){return null==t?[]:eU(t,ug(t))}var uS=rZ(function(t,e,n){return e=e.toLowerCase(),t+(n?uC(e):e)});function uC(t){return uU(un(t).toLowerCase())}function uE(t){return(t=un(t))&&t.replace(td,eW).replace(tq,"")}var uO=rZ(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),uk=rZ(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),uM=rG("toLowerCase"),uR=rZ(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),uj=rZ(function(t,e,n){return t+(n?" ":"")+uU(e)}),uP=rZ(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),uU=rG("toUpperCase");function uI(t,e,n){if(t=un(t),e=n?r:e,r===e){var i;return(i=t,tJ.test(i))?t.match(tZ)||[]:t.match(ti)||[]}return t.match(e)||[]}var uT=rf(function(t,e){try{return ea(t,r,e)}catch(t){return oB(t)?t:new tb(t)}}),uV=io(function(t,e){return ec(e,function(e){nj(t,e=iz(e),ob(t[e],t))}),t});function uW(t){return function(){return t}}var uz=rY(),uF=rY(!0);function uD(t){return t}function uL(t){return n9("function"==typeof t?t:nI(t,1))}var uN=rf(function(t,e){return function(n){return n3(n,t,e)}}),uB=rf(function(t,e){return function(n){return n3(t,n,e)}});function uH(t,e,n){var r=ug(e),i=nK(e,r);null!=n||oZ(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=nK(e,ug(e)));var o=!(oZ(n)&&"chain"in n)||!!n.chain,u=oH(t);return ec(i,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=rD(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,ev([this.value()],arguments))})}),t}function uq(){}var uG=r1(eg),uZ=r1(eh),uK=r1(em);function uJ(t){return i$(t)?eE(iz(t)):function(e){return nJ(e,t)}}var uY=r3(),uQ=r3(!0);function uX(){return[]}function u0(){return!1}var u1=r0(function(t,e){return t+e},0),u2=r4("ceil"),u3=r0(function(t,e){return t/e},1),u8=r4("floor"),u6=r0(function(t,e){return t*e},1),u4=r4("round"),u5=r0(function(t,e){return t-e},0);return ng.after=function(t,e){if("function"!=typeof e)throw new tE(i);return t=o9(t),function(){if(--t<1)return e.apply(this,arguments)}},ng.ary=om,ng.assign=ur,ng.assignIn=ui,ng.assignInWith=uo,ng.assignWith=uu,ng.at=us,ng.before=ox,ng.bind=ob,ng.bindAll=uV,ng.bindKey=ow,ng.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return oW(t)?t:[t]},ng.chain=oi,ng.chunk=function(t,e,n){e=(n?iA(t,e,n):r===e)?1:e3(o9(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,u=0,s=tm(eO(i/e));o<i;)s[u++]=rv(t,o,o+=e);return s},ng.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},ng.concat=function(){var t=arguments.length;if(!t)return[];for(var e=tm(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return ev(oW(n)?rD(n):[n],nB(e,1))},ng.cond=function(t){var e=null==t?0:t.length,n=ih();return t=e?eg(t,function(t){if("function"!=typeof t[1])throw new tE(i);return[n(t[0]),t[1]]}):[],rf(function(n){for(var r=-1;++r<e;){var i=t[r];if(ea(i[0],this,n))return ea(i[1],this,n)}})},ng.conforms=function(t){var e,n;return n=ug(e=nI(t,1)),function(t){return nT(t,e,n)}},ng.constant=uW,ng.countBy=os,ng.create=function(t,e){var n=nv(t);return null==e?n:nR(n,e)},ng.curry=oA,ng.curryRight=o$,ng.debounce=oS,ng.defaults=ua,ng.defaultsDeep=ul,ng.defer=oC,ng.delay=oE,ng.difference=iL,ng.differenceBy=iN,ng.differenceWith=iB,ng.drop=function(t,e,n){var i=null==t?0:t.length;return i?rv(t,(e=n||r===e?1:o9(e))<0?0:e,i):[]},ng.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?rv(t,0,(e=i-(e=n||r===e?1:o9(e)))<0?0:e):[]},ng.dropRightWhile=function(t,e){return t&&t.length?rC(t,ih(e,3),!0,!0):[]},ng.dropWhile=function(t,e){return t&&t.length?rC(t,ih(e,3),!0):[]},ng.fill=function(t,e,n,i){var o=null==t?0:t.length;if(!o)return[];n&&"number"!=typeof n&&iA(t,e,n)&&(n=0,i=o);var u=n,s=i,a=t.length;for((u=o9(u))<0&&(u=-u>a?0:a+u),(s=r===s||s>a?a:o9(s))<0&&(s+=a),s=u>s?0:o7(s);u<s;)t[u++]=e;return t},ng.filter=function(t,e){return(oW(t)?ef:nN)(t,ih(e,3))},ng.flatMap=function(t,e){return nB(og(t,e),1)},ng.flatMapDeep=function(t,e){return nB(og(t,e),s)},ng.flatMapDepth=function(t,e,n){return n=r===n?1:o9(n),nB(og(t,e),n)},ng.flatten=iG,ng.flattenDeep=function(t){return(null==t?0:t.length)?nB(t,s):[]},ng.flattenDepth=function(t,e){return(null==t?0:t.length)?nB(t,e=r===e?1:o9(e)):[]},ng.flip=function(t){return r7(t,512)},ng.flow=uz,ng.flowRight=uF,ng.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},ng.functions=function(t){return null==t?[]:nK(t,ug(t))},ng.functionsIn=function(t){return null==t?[]:nK(t,uv(t))},ng.groupBy=of,ng.initial=function(t){return(null==t?0:t.length)?rv(t,0,-1):[]},ng.intersection=iK,ng.intersectionBy=iJ,ng.intersectionWith=iY,ng.invert=uf,ng.invertBy=up,ng.invokeMap=op,ng.iteratee=uL,ng.keyBy=od,ng.keys=ug,ng.keysIn=uv,ng.map=og,ng.mapKeys=function(t,e){var n={};return e=ih(e,3),nG(t,function(t,r,i){nj(n,e(t,r,i),t)}),n},ng.mapValues=function(t,e){var n={};return e=ih(e,3),nG(t,function(t,r,i){nj(n,r,e(t,r,i))}),n},ng.matches=function(t){return rn(nI(t,1))},ng.matchesProperty=function(t,e){return rr(t,nI(e,1))},ng.memoize=oO,ng.merge=u_,ng.mergeWith=uy,ng.method=uN,ng.methodOf=uB,ng.mixin=uH,ng.negate=ok,ng.nthArg=function(t){return t=o9(t),rf(function(e){return ro(e,t)})},ng.omit=um,ng.omitBy=function(t,e){return ub(t,ok(ih(e)))},ng.once=function(t){return ox(2,t)},ng.orderBy=function(t,e,n,i){return null==t?[]:(oW(e)||(e=null==e?[]:[e]),oW(n=i?r:n)||(n=null==n?[]:[n]),ru(t,e,n))},ng.over=uG,ng.overArgs=oM,ng.overEvery=uZ,ng.overSome=uK,ng.partial=oR,ng.partialRight=oj,ng.partition=ov,ng.pick=ux,ng.pickBy=ub,ng.property=uJ,ng.propertyOf=function(t){return function(e){return null==t?r:nJ(t,e)}},ng.pull=iX,ng.pullAll=i0,ng.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?ra(t,e,ih(n,2)):t},ng.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?ra(t,e,r,n):t},ng.pullAt=i1,ng.range=uY,ng.rangeRight=uQ,ng.rearg=oP,ng.reject=function(t,e){return(oW(t)?ef:nN)(t,ok(ih(e,3)))},ng.remove=function(t,e){var n=[];if(!(t&&t.length))return n;var r=-1,i=[],o=t.length;for(e=ih(e,3);++r<o;){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return rl(t,i),n},ng.rest=function(t,e){if("function"!=typeof t)throw new tE(i);return rf(t,e=r===e?e:o9(e))},ng.reverse=i2,ng.sampleSize=function(t,e,n){return e=(n?iA(t,e,n):r===e)?1:o9(e),(oW(t)?function(t,e){return iV(rD(t),nU(e,0,t.length))}:function(t,e){var n=u$(t);return iV(n,nU(e,0,n.length))})(t,e)},ng.set=function(t,e,n){return null==t?t:rp(t,e,n)},ng.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:rp(t,e,n,i)},ng.shuffle=function(t){return(oW(t)?function(t){return iV(rD(t))}:function(t){return iV(u$(t))})(t)},ng.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&iA(t,e,n)?(e=0,n=i):(e=null==e?0:o9(e),n=r===n?i:o9(n)),rv(t,e,n)):[]},ng.sortBy=o_,ng.sortedUniq=function(t){return t&&t.length?rx(t):[]},ng.sortedUniqBy=function(t,e){return t&&t.length?rx(t,ih(e,2)):[]},ng.split=function(t,e,n){return(n&&"number"!=typeof n&&iA(t,e,n)&&(e=n=r),n=r===n?0xffffffff:n>>>0)?(t=un(t))&&("string"==typeof e||null!=e&&!oX(e))&&!(e=rw(e))&&eD(t)?rP(eG(t),0,n):t.split(e,n):[]},ng.spread=function(t,e){if("function"!=typeof t)throw new tE(i);return e=null==e?0:e3(o9(e),0),rf(function(n){var r=n[e],i=rP(n,0,e);return r&&ev(i,r),ea(t,this,i)})},ng.tail=function(t){var e=null==t?0:t.length;return e?rv(t,1,e):[]},ng.take=function(t,e,n){return t&&t.length?rv(t,0,(e=n||r===e?1:o9(e))<0?0:e):[]},ng.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?rv(t,(e=i-(e=n||r===e?1:o9(e)))<0?0:e,i):[]},ng.takeRightWhile=function(t,e){return t&&t.length?rC(t,ih(e,3),!1,!0):[]},ng.takeWhile=function(t,e){return t&&t.length?rC(t,ih(e,3)):[]},ng.tap=function(t,e){return e(t),t},ng.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new tE(i);return oZ(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),oS(t,e,{leading:r,maxWait:e,trailing:o})},ng.thru=oo,ng.toArray=o4,ng.toPairs=uw,ng.toPairsIn=uA,ng.toPath=function(t){return oW(t)?eg(t,iz):o2(t)?[t]:rD(iW(un(t)))},ng.toPlainObject=ue,ng.transform=function(t,e,n){var r=oW(t),i=r||oL(t)||o3(t);if(e=ih(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:oZ(t)&&oH(o)?nv(tB(t)):{}}return(i?ec:nG)(t,function(t,r,i){return e(n,t,r,i)}),n},ng.unary=function(t){return om(t,1)},ng.union=i3,ng.unionBy=i8,ng.unionWith=i6,ng.uniq=function(t){return t&&t.length?rA(t):[]},ng.uniqBy=function(t,e){return t&&t.length?rA(t,ih(e,2)):[]},ng.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?rA(t,r,e):[]},ng.unset=function(t,e){return null==t||r$(t,e)},ng.unzip=i4,ng.unzipWith=i5,ng.update=function(t,e,n){return null==t?t:rS(t,e,rR(n))},ng.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:rS(t,e,rR(n),i)},ng.values=u$,ng.valuesIn=function(t){return null==t?[]:eU(t,uv(t))},ng.without=i9,ng.words=uI,ng.wrap=function(t,e){return oR(rR(e),t)},ng.xor=i7,ng.xorBy=ot,ng.xorWith=oe,ng.zip=on,ng.zipObject=function(t,e){return rk(t||[],e||[],nO)},ng.zipObjectDeep=function(t,e){return rk(t||[],e||[],rp)},ng.zipWith=or,ng.entries=uw,ng.entriesIn=uA,ng.extend=ui,ng.extendWith=uo,uH(ng,ng),ng.add=u1,ng.attempt=uT,ng.camelCase=uS,ng.capitalize=uC,ng.ceil=u2,ng.clamp=function(t,e,n){return r===n&&(n=e,e=r),r!==n&&(n=(n=ut(n))==n?n:0),r!==e&&(e=(e=ut(e))==e?e:0),nU(ut(t),e,n)},ng.clone=function(t){return nI(t,4)},ng.cloneDeep=function(t){return nI(t,5)},ng.cloneDeepWith=function(t,e){return nI(t,5,e="function"==typeof e?e:r)},ng.cloneWith=function(t,e){return nI(t,4,e="function"==typeof e?e:r)},ng.conformsTo=function(t,e){return null==e||nT(t,e,ug(e))},ng.deburr=uE,ng.defaultTo=function(t,e){return null==t||t!=t?e:t},ng.divide=u3,ng.endsWith=function(t,e,n){t=un(t),e=rw(e);var i=t.length,o=n=r===n?i:nU(o9(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},ng.eq=oU,ng.escape=function(t){return(t=un(t))&&B.test(t)?t.replace(L,ez):t},ng.escapeRegExp=function(t){return(t=un(t))&&Q.test(t)?t.replace(Y,"\\$&"):t},ng.every=function(t,e,n){var i=oW(t)?eh:nD;return n&&iA(t,e,n)&&(e=r),i(t,ih(e,3))},ng.find=oa,ng.findIndex=iH,ng.findKey=function(t,e){return eb(t,ih(e,3),nG)},ng.findLast=ol,ng.findLastIndex=iq,ng.findLastKey=function(t,e){return eb(t,ih(e,3),nZ)},ng.floor=u8,ng.forEach=oc,ng.forEachRight=oh,ng.forIn=function(t,e){return null==t?t:nH(t,ih(e,3),uv)},ng.forInRight=function(t,e){return null==t?t:nq(t,ih(e,3),uv)},ng.forOwn=function(t,e){return t&&nG(t,ih(e,3))},ng.forOwnRight=function(t,e){return t&&nZ(t,ih(e,3))},ng.get=uc,ng.gt=oI,ng.gte=oT,ng.has=function(t,e){return null!=t&&im(t,e,n0)},ng.hasIn=uh,ng.head=iZ,ng.identity=uD,ng.includes=function(t,e,n,r){t=oF(t)?t:u$(t),n=n&&!r?o9(n):0;var i=t.length;return n<0&&(n=e3(i+n,0)),o1(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&eA(t,e,n)>-1},ng.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:o9(n);return i<0&&(i=e3(r+i,0)),eA(t,e,i)},ng.inRange=function(t,e,n){var i,o,u;return e=o5(e),r===n?(n=e,e=0):n=o5(n),(i=t=ut(t))>=e8(o=e,u=n)&&i<e3(o,u)},ng.invoke=ud,ng.isArguments=oV,ng.isArray=oW,ng.isArrayBuffer=oz,ng.isArrayLike=oF,ng.isArrayLikeObject=oD,ng.isBoolean=function(t){return!0===t||!1===t||oK(t)&&nQ(t)==f},ng.isBuffer=oL,ng.isDate=oN,ng.isElement=function(t){return oK(t)&&1===t.nodeType&&!oQ(t)},ng.isEmpty=function(t){if(null==t)return!0;if(oF(t)&&(oW(t)||"string"==typeof t||"function"==typeof t.splice||oL(t)||o3(t)||oV(t)))return!t.length;var e=iy(t);if(e==_||e==w)return!t.size;if(iE(t))return!n7(t).length;for(var n in t)if(tP.call(t,n))return!1;return!0},ng.isEqual=function(t,e){return n6(t,e)},ng.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return r===i?n6(t,e,r,n):!!i},ng.isError=oB,ng.isFinite=function(t){return"number"==typeof t&&e0(t)},ng.isFunction=oH,ng.isInteger=oq,ng.isLength=oG,ng.isMap=oJ,ng.isMatch=function(t,e){return t===e||n4(t,e,id(e))},ng.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,n4(t,e,id(e),n)},ng.isNaN=function(t){return oY(t)&&t!=+t},ng.isNative=function(t){if(iC(t))throw new tb("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n5(t)},ng.isNil=function(t){return null==t},ng.isNull=function(t){return null===t},ng.isNumber=oY,ng.isObject=oZ,ng.isObjectLike=oK,ng.isPlainObject=oQ,ng.isRegExp=oX,ng.isSafeInteger=function(t){return oq(t)&&t>=-0x1fffffffffffff&&t<=0x1fffffffffffff},ng.isSet=o0,ng.isString=o1,ng.isSymbol=o2,ng.isTypedArray=o3,ng.isUndefined=function(t){return r===t},ng.isWeakMap=function(t){return oK(t)&&iy(t)==C},ng.isWeakSet=function(t){return oK(t)&&"[object WeakSet]"==nQ(t)},ng.join=function(t,e){return null==t?"":e1.call(t,e)},ng.kebabCase=uO,ng.last=iQ,ng.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return -1;var o=i;return r!==n&&(o=(o=o9(n))<0?e3(i+o,0):e8(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--&&t[r]!==e;);return r}(t,e,o):ew(t,eS,o,!0)},ng.lowerCase=uk,ng.lowerFirst=uM,ng.lt=o8,ng.lte=o6,ng.max=function(t){return t&&t.length?nL(t,uD,nX):r},ng.maxBy=function(t,e){return t&&t.length?nL(t,ih(e,2),nX):r},ng.mean=function(t){return eC(t,uD)},ng.meanBy=function(t,e){return eC(t,ih(e,2))},ng.min=function(t){return t&&t.length?nL(t,uD,rt):r},ng.minBy=function(t,e){return t&&t.length?nL(t,ih(e,2),rt):r},ng.stubArray=uX,ng.stubFalse=u0,ng.stubObject=function(){return{}},ng.stubString=function(){return""},ng.stubTrue=function(){return!0},ng.multiply=u6,ng.nth=function(t,e){return t&&t.length?ro(t,o9(e)):r},ng.noConflict=function(){return t4._===this&&(t4._=tW),this},ng.noop=uq,ng.now=oy,ng.pad=function(t,e,n){t=un(t);var r=(e=o9(e))?eq(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return r2(eY(i),n)+t+r2(eO(i),n)},ng.padEnd=function(t,e,n){t=un(t);var r=(e=o9(e))?eq(t):0;return e&&r<e?t+r2(e-r,n):t},ng.padStart=function(t,e,n){t=un(t);var r=(e=o9(e))?eq(t):0;return e&&r<e?r2(e-r,n)+t:t},ng.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e*=1),e4(un(t).replace(X,""),e||0)},ng.random=function(t,e,n){if(n&&"boolean"!=typeof n&&iA(t,e,n)&&(e=n=r),r===n&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),r===t&&r===e?(t=0,e=1):(t=o5(t),r===e?(e=t,t=0):e=o5(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=e5();return e8(t+o*(e-t+t2("1e-"+((o+"").length-1))),e)}return rc(t,e)},ng.reduce=function(t,e,n){var r=oW(t)?e_:ek,i=arguments.length<3;return r(t,ih(e,4),n,i,nz)},ng.reduceRight=function(t,e,n){var r=oW(t)?ey:ek,i=arguments.length<3;return r(t,ih(e,4),n,i,nF)},ng.repeat=function(t,e,n){return e=(n?iA(t,e,n):r===e)?1:o9(e),rh(un(t),e)},ng.replace=function(){var t=arguments,e=un(t[0]);return t.length<3?e:e.replace(t[1],t[2])},ng.result=function(t,e,n){e=rj(e,t);var i=-1,o=e.length;for(o||(o=1,t=r);++i<o;){var u=null==t?r:t[iz(e[i])];r===u&&(i=o,u=n),t=oH(u)?u.call(t):u}return t},ng.round=u4,ng.runInContext=t,ng.sample=function(t){return(oW(t)?nC:function(t){return nC(u$(t))})(t)},ng.size=function(t){if(null==t)return 0;if(oF(t))return o1(t)?eq(t):t.length;var e=iy(t);return e==_||e==w?t.size:n7(t).length},ng.snakeCase=uR,ng.some=function(t,e,n){var i=oW(t)?em:r_;return n&&iA(t,e,n)&&(e=r),i(t,ih(e,3))},ng.sortedIndex=function(t,e){return ry(t,e)},ng.sortedIndexBy=function(t,e,n){return rm(t,e,ih(n,2))},ng.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ry(t,e);if(r<n&&oU(t[r],e))return r}return -1},ng.sortedLastIndex=function(t,e){return ry(t,e,!0)},ng.sortedLastIndexBy=function(t,e,n){return rm(t,e,ih(n,2),!0)},ng.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ry(t,e,!0)-1;if(oU(t[n],e))return n}return -1},ng.startCase=uj,ng.startsWith=function(t,e,n){return t=un(t),n=null==n?0:nU(o9(n),0,t.length),e=rw(e),t.slice(n,n+e.length)==e},ng.subtract=u5,ng.sum=function(t){return t&&t.length?eM(t,uD):0},ng.sumBy=function(t,e){return t&&t.length?eM(t,ih(e,2)):0},ng.template=function(t,e,n){var i=ng.templateSettings;n&&iA(t,e,n)&&(e=r),t=un(t),e=uo({},e,i,it);var o,u,s=uo({},e.imports,i.imports,it),a=ug(s),l=eU(s,a),c=0,h=e.interpolate||tg,f="__p += '",p=tS((e.escape||tg).source+"|"+h.source+"|"+(h===G?ts:tg).source+"|"+(e.evaluate||tg).source+"|$","g"),d="//# sourceURL="+(tP.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tQ+"]")+"\n";t.replace(p,function(e,n,r,i,s,a){return r||(r=i),f+=t.slice(c,a).replace(tv,eF),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(u=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+e.length,e}),f+="';\n";var g=tP.call(e,"variable")&&e.variable;if(g){if(to.test(g))throw new tb("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(u?f.replace(W,""):f).replace(z,"$1").replace(F,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=uT(function(){return tw(a,d+"return "+f).apply(r,l)});if(v.source=f,oB(v))throw v;return v},ng.times=function(t,e){if((t=o9(t))<1||t>0x1fffffffffffff)return[];var n=0xffffffff,r=e8(t,0xffffffff);e=ih(e),t-=0xffffffff;for(var i=eR(r,e);++n<t;)e(n);return i},ng.toFinite=o5,ng.toInteger=o9,ng.toLength=o7,ng.toLower=function(t){return un(t).toLowerCase()},ng.toNumber=ut,ng.toSafeInteger=function(t){return t?nU(o9(t),-0x1fffffffffffff,0x1fffffffffffff):0===t?t:0},ng.toString=un,ng.toUpper=function(t){return un(t).toUpperCase()},ng.trim=function(t,e,n){if((t=un(t))&&(n||r===e))return ej(t);if(!t||!(e=rw(e)))return t;var i=eG(t),o=eG(e),u=eT(i,o),s=eV(i,o)+1;return rP(i,u,s).join("")},ng.trimEnd=function(t,e,n){if((t=un(t))&&(n||r===e))return t.slice(0,eZ(t)+1);if(!t||!(e=rw(e)))return t;var i=eG(t),o=eV(i,eG(e))+1;return rP(i,0,o).join("")},ng.trimStart=function(t,e,n){if((t=un(t))&&(n||r===e))return t.replace(X,"");if(!t||!(e=rw(e)))return t;var i=eG(t),o=eT(i,eG(e));return rP(i,o).join("")},ng.truncate=function(t,e){var n=30,i="...";if(oZ(e)){var o="separator"in e?e.separator:o;n="length"in e?o9(e.length):n,i="omission"in e?rw(e.omission):i}var u=(t=un(t)).length;if(eD(t)){var s=eG(t);u=s.length}if(n>=u)return t;var a=n-eq(i);if(a<1)return i;var l=s?rP(s,0,a).join(""):t.slice(0,a);if(r===o)return l+i;if(s&&(a+=l.length-a),oX(o)){if(t.slice(a).search(o)){var c,h=l;for(o.global||(o=tS(o.source,un(ta.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var f=c.index;l=l.slice(0,r===f?a:f)}}else if(t.indexOf(rw(o),a)!=a){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+i},ng.unescape=function(t){return(t=un(t))&&N.test(t)?t.replace(D,eK):t},ng.uniqueId=function(t){var e=++tU;return un(t)+e},ng.upperCase=uP,ng.upperFirst=uU,ng.each=oc,ng.eachRight=oh,ng.first=iZ,uH(ng,(ty={},nG(ng,function(t,e){tP.call(ng.prototype,e)||(ty[e]=t)}),ty),{chain:!1}),ng.VERSION="4.17.21",ec(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ng[t].placeholder=ng}),ec(["drop","take"],function(t,e){nm.prototype[t]=function(n){n=r===n?1:e3(o9(n),0);var i=this.__filtered__&&!e?new nm(this):this.clone();return i.__filtered__?i.__takeCount__=e8(n,i.__takeCount__):i.__views__.push({size:e8(n,0xffffffff),type:t+(i.__dir__<0?"Right":"")}),i},nm.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ec(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;nm.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ih(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),ec(["head","last"],function(t,e){var n="take"+(e?"Right":"");nm.prototype[t]=function(){return this[n](1).value()[0]}}),ec(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");nm.prototype[t]=function(){return this.__filtered__?new nm(this):this[n](1)}}),nm.prototype.compact=function(){return this.filter(uD)},nm.prototype.find=function(t){return this.filter(t).head()},nm.prototype.findLast=function(t){return this.reverse().find(t)},nm.prototype.invokeMap=rf(function(t,e){return"function"==typeof t?new nm(this):this.map(function(n){return n3(n,t,e)})}),nm.prototype.reject=function(t){return this.filter(ok(ih(t)))},nm.prototype.slice=function(t,e){t=o9(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nm(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(e=o9(e))<0?n.dropRight(-e):n.take(e-t)),n)},nm.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},nm.prototype.toArray=function(){return this.take(0xffffffff)},nG(nm.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=ng[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);o&&(ng.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,a=e instanceof nm,l=s[0],c=a||oW(e),h=function(t){var e=o.apply(ng,ev([t],s));return i&&f?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(a=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=u&&!f,g=a&&!p;if(!u&&c){e=g?e:new nm(this);var v=t.apply(e,s);return v.__actions__.push({func:oo,args:[h],thisArg:r}),new ny(v,f)}return d&&g?t.apply(this,s):(v=this.thru(h),d?i?v.value()[0]:v.value():v)})}),ec(["pop","push","shift","sort","splice","unshift"],function(t){var e=tO[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ng.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(oW(i)?i:[],t)}return this[n](function(n){return e.apply(oW(n)?n:[],t)})}}),nG(nm.prototype,function(t,e){var n=ng[e];if(n){var r=n.name+"";tP.call(nu,r)||(nu[r]=[]),nu[r].push({name:e,func:n})}}),nu[rQ(r,2).name]=[{name:"wrapper",func:r}],nm.prototype.clone=function(){var t=new nm(this.__wrapped__);return t.__actions__=rD(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rD(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rD(this.__views__),t},nm.prototype.reverse=function(){if(this.__filtered__){var t=new nm(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},nm.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=oW(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=e8(e,t+u);break;case"takeRight":t=e3(t,e-u)}}return{start:t,end:e}}(0,i,this.__views__),u=o.start,s=o.end,a=s-u,l=r?s:u-1,c=this.__iteratees__,h=c.length,f=0,p=e8(a,this.__takeCount__);if(!n||!r&&i==a&&p==a)return rE(t,this.__actions__);var d=[];t:for(;a--&&f<p;){for(var g=-1,v=t[l+=e];++g<h;){var _=c[g],y=_.iteratee,m=_.type,x=y(v);if(2==m)v=x;else if(!x)if(1==m)continue t;else break t}d[f++]=v}return d},ng.prototype.at=ou,ng.prototype.chain=function(){return oi(this)},ng.prototype.commit=function(){return new ny(this.value(),this.__chain__)},ng.prototype.next=function(){this.__values__===r&&(this.__values__=o4(this.value()));var t=this.__index__>=this.__values__.length,e=t?r:this.__values__[this.__index__++];return{done:t,value:e}},ng.prototype.plant=function(t){for(var e,n=this;n instanceof n_;){var i=iD(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},ng.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nm){var e=t;return this.__actions__.length&&(e=new nm(this)),(e=e.reverse()).__actions__.push({func:oo,args:[i2],thisArg:r}),new ny(e,this.__chain__)}return this.thru(i2)},ng.prototype.toJSON=ng.prototype.valueOf=ng.prototype.value=function(){return rE(this.__wrapped__,this.__actions__)},ng.prototype.first=ng.prototype.head,t6&&(ng.prototype[t6]=function(){return this}),ng}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(t4._=eJ,define(function(){return eJ})):t9?((t9.exports=eJ)._=eJ,t5._=eJ):t4._=eJ}).call(this)},801:function(t){"use strict";t.exports=r},243:function(t){"use strict";t.exports=n},297:function(e){"use strict";e.exports=t},329:function(t){"use strict";t.exports=e}},o={};function u(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},u.d=(t,e)=>{for(var n in e)u.o(e,n)&&!u.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},u.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),u.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var s={};return(()=>{"use strict";u.r(s),u.d(s,{OrGauge:()=>tw});let t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class i{constructor(t,e,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,n=this.t;if(e&&void 0===t){let e=void 0!==n&&1===n.length;e&&(t=r.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&r.set(n,t))}return t}toString(){return this.cssText}}let o=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:f,getPrototypeOf:p}=Object,d=globalThis,g=d.trustedTypes,v=g?g.emptyScript:"",_=d.reactiveElementPolyfillSupport,y={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},m=(t,e)=>!a(t,e),x={attribute:!0,type:String,converter:y,reflect:!1,useDefault:!1,hasChanged:m};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(t,n,e);void 0!==r&&l(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){let{get:r,set:i}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){let o=r?.call(this);i?.call(this,e),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...h(t),...f(t)])this.createProperty(e,t[e])}let t=this[Symbol.metadata];if(null!==t){let e=litPropertyMetadata.get(t);if(void 0!==e)for(let[t,n]of e)this.elementProperties.set(t,n)}for(let[t,e]of(this._$Eh=new Map,this.elementProperties)){let n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let n of new Set(t.flat(1/0).reverse()))e.unshift(o(n));else void 0!==t&&e.push(o(t));return e}static _$Eu(t,e){let n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map;for(let e of this.constructor.elementProperties.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let n=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((n,r)=>{if(e)n.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let e of r){let r=document.createElement("style"),i=t.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,n.appendChild(r)}})(n,this.constructor.elementStyles),n}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){let n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(void 0!==r&&!0===n.reflect){let i=(void 0!==n.converter?.toAttribute?n.converter:y).toAttribute(e,n.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let n=this.constructor,r=n._$Eh.get(t);if(void 0!==r&&this._$Em!==r){let t=n.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:y;this._$Em=r;let o=i.fromAttribute(e,t.type);this[r]=o??this._$Ej?.get(r)??o,this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){let r=this.constructor,i=this[t];if(!(((n??=r.getPropertyOptions(t)).hasChanged??m)(i,e)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:r,wrapped:i},o){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==i||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[e,n]of t){let{wrapped:t}=n,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,n,r)}}let t=!1,e=this._$AL;try{(t=this.shouldUpdate(e))?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b.elementProperties=new Map,b.finalized=new Map,_?.({ReactiveElement:b}),(d.reactiveElementVersions??=[]).push("2.1.1");let w=globalThis,A=w.trustedTypes,S=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+E,k=`<${O}>`,M=document,R=()=>M.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,U="[ \n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,V=/>/g,W=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^
2
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),z=/'/g,F=/"/g,D=/^(?:script|style|textarea|title)$/i,L=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),N=L(1),B=(L(2),L(3),Symbol.for("lit-noChange")),H=Symbol.for("lit-nothing"),q=new WeakMap,G=M.createTreeWalker(M,129);function Z(t,e){if(!P(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}class K{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0,u=t.length-1,s=this.parts,[a,l]=((t,e)=>{let n=t.length-1,r=[],i,o=2===e?"<svg>":3===e?"<math>":"",u=I;for(let e=0;e<n;e++){let n=t[e],s,a,l=-1,c=0;for(;c<n.length&&(u.lastIndex=c,null!==(a=u.exec(n)));)c=u.lastIndex,u===I?"!--"===a[1]?u=T:void 0!==a[1]?u=V:void 0!==a[2]?(D.test(a[2])&&(i=RegExp("</"+a[2],"g")),u=W):void 0!==a[3]&&(u=W):u===W?">"===a[0]?(u=i??I,l=-1):void 0===a[1]?l=-2:(l=u.lastIndex-a[2].length,s=a[1],u=void 0===a[3]?W:'"'===a[3]?F:z):u===F||u===z?u=W:u===T||u===V?u=I:(u=W,i=void 0);let h=u===W&&t[e+1].startsWith("/>")?" ":"";o+=u===I?n+k:l>=0?(r.push(s),n.slice(0,l)+C+n.slice(l)+E+h):n+E+(-2===l?e:h)}return[Z(t,o+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=K.createElement(a,n),G.currentNode=this.el.content,2===e||3===e){let t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=G.nextNode())&&s.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(let t of r.getAttributeNames())if(t.endsWith(C)){let e=l[o++],n=r.getAttribute(t).split(E),u=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:u[2],strings:n,ctor:"."===u[1]?tt:"?"===u[1]?te:"@"===u[1]?tn:X}),r.removeAttribute(t)}else t.startsWith(E)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(D.test(r.tagName)){let t=r.textContent.split(E),e=t.length-1;if(e>0){r.textContent=A?A.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],R()),G.nextNode(),s.push({type:2,index:++i});r.append(t[e],R())}}}else if(8===r.nodeType)if(r.data===O)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(E,t+1));)s.push({type:7,index:i}),t+=E.length-1}i++}}static createElement(t,e){let n=M.createElement("template");return n.innerHTML=t,n}}function J(t,e,n=t,r){if(e===B)return e;let i=void 0!==r?n._$Co?.[r]:n._$Cl,o=j(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(t))._$AT(t,n,r),void 0!==r?(n._$Co??=[])[r]=i:n._$Cl=i),void 0!==i&&(e=J(t,i._$AS(t,e.values),i,r)),e}class Y{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:n}=this._$AD,r=(t?.creationScope??M).importNode(e,!0);G.currentNode=r;let i=G.nextNode(),o=0,u=0,s=n[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new Q(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new tr(i,this,t)),this._$AV.push(e),s=n[++u]}o!==s?.index&&(i=G.nextNode(),o++)}return G.currentNode=M,r}p(t){let e=0;for(let n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){let n;j(t=J(this,t,e))?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==B&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):P(n=t)||"function"==typeof n?.[Symbol.iterator]?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=K.createElement(Z(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{let t=new Y(r,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new K(t)),e}k(t){P(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,r=0;for(let i of t)r===e.length?e.push(n=new Q(this.O(R()),this.O(R()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class X{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,e=this,n,r){let i=this.strings,o=!1;if(void 0===i)(o=!j(t=J(this,t,e,0))||t!==this._$AH&&t!==B)&&(this._$AH=t);else{let r,u,s=t;for(t=i[0],r=0;r<i.length-1;r++)(u=J(this,s[n+r],e,r))===B&&(u=this._$AH[r]),o||=!j(u)||u!==this._$AH[r],u===H?t=H:t!==H&&(t+=(u??"")+i[r+1]),this._$AH[r]=u}o&&!r&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}class te extends X{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}}class tn extends X{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){if((t=J(this,t,e,0)??H)===B)return;let n=this._$AH,r=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==H&&(n===H||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class tr{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}let ti=w.litHtmlPolyfillSupport;ti?.(K,Q),(w.litHtmlVersions??=[]).push("3.3.1");let to=globalThis;class tu extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{let r=n?.renderBefore??e,i=r._$litPart$;if(void 0===i){let t=n?.renderBefore??null;r._$litPart$=i=new Q(e.insertBefore(R(),t),t,void 0,n??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return B}}tu._$litElement$=!0,tu.finalized=!0,to.litElementHydrateSupport?.({LitElement:tu});let ts=to.litElementPolyfillSupport;ts?.({LitElement:tu}),(to.litElementVersions??=[]).push("4.2.1");let ta={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:m};function tl(t){return(e,n)=>"object"==typeof n?((t=ta,e,n)=>{let{kind:r,metadata:i}=n,o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),o.set(n.name,t),"accessor"===r){let{name:r}=n;return{set(n){let i=e.get.call(this);e.set.call(this,n),this.requestUpdate(r,i,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===r){let{name:r}=n;return function(n){let i=this[r];e.call(this,n),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)})(t,e,n):((t,e,n)=>{let r=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),r?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}function tc(t){return tl({...t,state:!0,attribute:!1})}let th=(t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n);function tf(t,e){return(n,r,i)=>{let o=e=>e.renderRoot?.querySelector(t)??null;if(e){let{get:t,set:e}="object"==typeof r?n:i??(()=>{let t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return th(n,r,{get(){let n=t.call(this);return void 0===n&&(null!==(n=o(this))||this.hasUpdated)&&e.call(this,n),n}})}return th(n,r,{get(){return o(this)}})}}var tp=u(297),td=u(658),tg=u(801),tv=u.n(tg),t_=u(329),ty=u(891),tm=u(243),tx=function(t,e,n,r){var i,o=arguments.length,u=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(o<3?i(u):o>3?i(e,n,u):i(e,n))||u);return o>3&&u&&Object.defineProperty(e,n,u),u};let tb=((t,...e)=>new i(1===t.length?t[0]:e.reduce((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]),t,n))`
3
3
  :host {
4
4
  display: flex;
5
5
  align-items: center;
@@ -72,16 +72,16 @@
72
72
  .main-number.unknown, .main-number-unit.unknown {
73
73
  font-size: unset;
74
74
  }
75
- `,tV=class extends tg{static get styles(){return[tT]}constructor(){super(),this.decimals=0,this.loading=!1,this.config||(this.config=this.getDefaultConfig()),this.updateComplete.then(()=>{this.resizeObserver=new ResizeObserver((0,tU.debounce)(t=>{let e=t[0].contentRect;this.gaugeSize={width:e.width,height:e.height},this.updateComplete.then(()=>{this.setupGauge()})},200)),this.resizeObserver.observe(this._wrapperElem)})}willUpdate(t){if(t.has("assetAttribute")){let t=this.assetAttribute[1],e=tC.AssetModelUtil.getAttributeDescriptor(t.name,this.asset.type);this.unit=tO.Util.resolveUnits(tO.Util.getAttributeUnits(t,e,this.asset.type)),this.value=null!=t.value?t.value:NaN}}updated(t){var e,n,r,i;t.has("value")&&(null==(e=this.gauge)||e.set(null!=this.value?this.value:NaN)),t.has("attrRef")&&(this.attrRef?this.loadData(this.attrRef):(this.assetAttribute=void 0,this.value=void 0)),t.has("min")&&null!=this.min&&this.gauge&&(this.gauge.setMinValue(this.min),this.gauge.set(null!=this.value?this.value:NaN)),t.has("max")&&null!=this.max&&this.gauge&&(this.gauge.maxValue=this.max,this.gauge.set(null!=this.value?this.value:NaN)),t.has("thresholds")&&this.thresholds&&(this.config.options.staticZones=[],this.thresholds.sort((t,e)=>t[0]<e[0]?-1:1).forEach((t,e)=>{var n,r,i;let o=t[0],s=this.thresholds[e+1]?this.thresholds[e+1][0]:this.max,u={strokeStyle:t[1],min:this.min&&o&&this.min>o?this.min:this.max&&o&&this.max<o?this.max:o,max:this.max&&s&&this.max<s?this.max:this.min&&s&&this.min>s?this.min:s};null==(i=null==(r=null==(n=this.config)?void 0:n.options)?void 0:r.staticZones)||i.push(u)}),this.min&&(null==(r=null==(n=this.config)?void 0:n.options)?void 0:r.staticZones)&&(this.config.options.staticZones[0].min=this.min),this.gauge&&this.gauge.setOptions(null==(i=this.config)?void 0:i.options))}setupGauge(){var t;this.gauge=new tk.Gauge(this._gaugeElem),this.gauge.setOptions(null==(t=this.config)?void 0:t.options),this.gauge.maxValue=this.max?this.max:100,this.gauge.setMinValue(this.min?this.min:0),this.gauge.animationSpeed=1,this.gauge.set(null!=this.value?this.value:NaN),null==this.value&&this.attrRef&&this.loadData(this.attrRef)}getGaugeWidth(t,e=!0){return t?Math.min(t.width,(e?t.height-this._detailsElem.clientHeight:t.height)*1.5)+"px":"unset"}shouldShowLabel(t){return t.width>70&&t.height>100}getLabelSize(t){return t<120?"s":t<240?"m":t<320?"l":"xl"}render(){let t=null!=this.value?+this.value.toFixed(this.decimals):NaN,e=!this.gaugeSize||this.shouldShowLabel(this.gaugeSize),n=e&&this.gaugeSize?this.getLabelSize(this.gaugeSize.width):"unknown",r=this.getGaugeWidth(this.gaugeSize,e);return I`
75
+ `,tw=class extends tu{static get styles(){return[tb]}constructor(){super(),this.decimals=0,this.loading=!1,this.config||(this.config=this.getDefaultConfig()),this.updateComplete.then(()=>{this.resizeObserver=new ResizeObserver((0,ty.debounce)(t=>{let e=t[0].contentRect;this.gaugeSize={width:e.width,height:e.height},this.updateComplete.then(()=>{this.setupGauge()})},200)),this.resizeObserver.observe(this._wrapperElem)})}willUpdate(t){if(t.has("assetAttribute")){let t=this.assetAttribute[1],e=tp.AssetModelUtil.getAttributeDescriptor(t.name,this.asset.type);this.unit=tg.Util.resolveUnits(tg.Util.getAttributeUnits(t,e,this.asset.type)),this.value=null!=t.value?t.value:NaN}}updated(t){var e,n,r,i;t.has("value")&&(null==(e=this.gauge)||e.set(null!=this.value?this.value:NaN)),t.has("attrRef")&&(this.attrRef?this.loadData(this.attrRef):(this.assetAttribute=void 0,this.value=void 0)),t.has("min")&&null!=this.min&&this.gauge&&(this.gauge.setMinValue(this.min),this.gauge.set(null!=this.value?this.value:NaN)),t.has("max")&&null!=this.max&&this.gauge&&(this.gauge.maxValue=this.max,this.gauge.set(null!=this.value?this.value:NaN)),t.has("thresholds")&&this.thresholds&&(this.config.options.staticZones=[],this.thresholds.sort((t,e)=>t[0]<e[0]?-1:1).forEach((t,e)=>{var n,r,i;let o=t[0],u=this.thresholds[e+1]?this.thresholds[e+1][0]:this.max,s={strokeStyle:t[1],min:this.min&&o&&this.min>o?this.min:this.max&&o&&this.max<o?this.max:o,max:this.max&&u&&this.max<u?this.max:this.min&&u&&this.min>u?this.min:u};null==(i=null==(r=null==(n=this.config)?void 0:n.options)?void 0:r.staticZones)||i.push(s)}),this.min&&(null==(r=null==(n=this.config)?void 0:n.options)?void 0:r.staticZones)&&(this.config.options.staticZones[0].min=this.min),this.gauge&&this.gauge.setOptions(null==(i=this.config)?void 0:i.options))}setupGauge(){var t;this.gauge=new td.Gauge(this._gaugeElem),this.gauge.setOptions(null==(t=this.config)?void 0:t.options),this.gauge.maxValue=this.max?this.max:100,this.gauge.setMinValue(this.min?this.min:0),this.gauge.animationSpeed=1,this.gauge.set(null!=this.value?this.value:NaN),null==this.value&&this.attrRef&&this.loadData(this.attrRef)}getGaugeWidth(t,e=!0){return t?Math.min(t.width,(e?t.height-this._detailsElem.clientHeight:t.height)*1.5)+"px":"unset"}shouldShowLabel(t){return t.width>70&&t.height>100}getLabelSize(t){return t<120?"s":t<240?"m":t<320?"l":"xl"}render(){let t=null!=this.value?+this.value.toFixed(this.decimals):NaN,e=!this.gaugeSize||this.shouldShowLabel(this.gaugeSize),n=e&&this.gaugeSize?this.getLabelSize(this.gaugeSize.width):"unknown",r=this.getGaugeWidth(this.gaugeSize,e);return N`
76
76
  <div style="position: relative; height: 100%; width: 100%;">
77
77
  <div id="chart-wrapper" style="display: ${this.loading?"none":"flex"};">
78
78
  <div id="chart-container" style="flex: 0 0 0; width: ${r};">
79
79
  <canvas id="chart"></canvas>
80
80
  </div>
81
81
  <div id="details-container">
82
- ${e?I`
82
+ ${e?N`
83
83
  <div class="mainvalue-wrapper">
84
- <span class="main-number-icon">${this.asset?(0,tM.getAssetDescriptorIconTemplate)(tC.AssetModelUtil.getAssetDescriptor(this.asset.type)):""}</span>
84
+ <span class="main-number-icon">${this.asset?(0,tm.getAssetDescriptorIconTemplate)(tp.AssetModelUtil.getAssetDescriptor(this.asset.type)):""}</span>
85
85
  <span class="main-number ${n}">${t}</span>
86
86
  <span class="main-number-unit ${n}">${this.unit?this.unit:""}</span>
87
87
  </div>
@@ -89,8 +89,8 @@
89
89
  </div>
90
90
  </div>
91
91
  </div>
92
- ${this.loading?I`
93
- <span>${tP.i18next.t("loading")}</span>
92
+ ${this.loading?N`
93
+ <span>${t_.i18next.t("loading")}</span>
94
94
  `:void 0}
95
- `}loadData(t){var e,n,r,i;return e=this,n=void 0,r=void 0,i=function*(){let e=(yield tR().rest.api.AssetResource.queryAssets({ids:[t.id]})).data,n=[t].map(t=>{let n=e.findIndex(e=>e.id===t.id),r=n>=0?e[n]:void 0;return r&&r.attributes?[n,r.attributes[t.name]]:void 0}).filter(t=>!!t);this.asset=e[0],this.assetAttribute=n[0]},new(r||(r=Promise))(function(t,o){function s(t){try{a(i.next(t))}catch(t){o(t)}}function u(t){try{a(i.throw(t))}catch(t){o(t)}}function a(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(t){t(n)})).then(s,u)}a((i=i.apply(e,n||[])).next())})}getDefaultConfig(){return{attributeRef:void 0,options:{angle:0,lineWidth:.4,radiusScale:1,pointer:{length:.5,strokeWidth:.035,color:"#000000"},staticZones:[],limitMax:!0,limitMin:!0,colorStart:"#000000",colorStop:"#707070",strokeColor:"#ABCDEF",generateGradient:!1,highDpiSupport:!0}}}};tj([ty({type:Object})],tV.prototype,"attrRef",void 0),tj([ty({type:Object})],tV.prototype,"asset",void 0),tj([ty({type:Object})],tV.prototype,"assetAttribute",void 0),tj([ty()],tV.prototype,"value",void 0),tj([ty()],tV.prototype,"decimals",void 0),tj([ty()],tV.prototype,"unit",void 0),tj([ty()],tV.prototype,"min",void 0),tj([ty()],tV.prototype,"max",void 0),tj([ty()],tV.prototype,"thresholds",void 0),tj([ty()],tV.prototype,"config",void 0),tj([ty({type:String})],tV.prototype,"realm",void 0),tj([tm()],tV.prototype,"loading",void 0),tj([tm()],tV.prototype,"gauge",void 0),tj([tm()],tV.prototype,"gaugeSize",void 0),tj([tx("#chart")],tV.prototype,"_gaugeElem",void 0),tj([tx("#chart-wrapper")],tV.prototype,"_wrapperElem",void 0),tj([tx("#details-container")],tV.prototype,"_detailsElem",void 0),tV=tj([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{let{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(t,e))("or-gauge")],tV)})(),u})());
95
+ `}loadData(t){var e,n,r,i;return e=this,n=void 0,r=void 0,i=function*(){let e=(yield tv().rest.api.AssetResource.queryAssets({ids:[t.id]})).data,n=[t].map(t=>{let n=e.findIndex(e=>e.id===t.id),r=n>=0?e[n]:void 0;return r&&r.attributes?[n,r.attributes[t.name]]:void 0}).filter(t=>!!t);this.asset=e[0],this.assetAttribute=n[0]},new(r||(r=Promise))(function(t,o){function u(t){try{a(i.next(t))}catch(t){o(t)}}function s(t){try{a(i.throw(t))}catch(t){o(t)}}function a(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(t){t(n)})).then(u,s)}a((i=i.apply(e,n||[])).next())})}getDefaultConfig(){return{attributeRef:void 0,options:{angle:0,lineWidth:.4,radiusScale:1,pointer:{length:.5,strokeWidth:.035,color:"#000000"},staticZones:[],limitMax:!0,limitMin:!0,colorStart:"#000000",colorStop:"#707070",strokeColor:"#ABCDEF",generateGradient:!1,highDpiSupport:!0}}}};tx([tl({type:Object})],tw.prototype,"attrRef",void 0),tx([tl({type:Object})],tw.prototype,"asset",void 0),tx([tl({type:Object})],tw.prototype,"assetAttribute",void 0),tx([tl()],tw.prototype,"value",void 0),tx([tl()],tw.prototype,"decimals",void 0),tx([tl()],tw.prototype,"unit",void 0),tx([tl()],tw.prototype,"min",void 0),tx([tl()],tw.prototype,"max",void 0),tx([tl()],tw.prototype,"thresholds",void 0),tx([tl()],tw.prototype,"config",void 0),tx([tl({type:String})],tw.prototype,"realm",void 0),tx([tc()],tw.prototype,"loading",void 0),tx([tc()],tw.prototype,"gauge",void 0),tx([tc()],tw.prototype,"gaugeSize",void 0),tx([tf("#chart")],tw.prototype,"_gaugeElem",void 0),tx([tf("#chart-wrapper")],tw.prototype,"_wrapperElem",void 0),tx([tf("#details-container")],tw.prototype,"_detailsElem",void 0),tw=tx([(t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("or-gauge")],tw)})(),s})());
96
96
  //# sourceMappingURL=index.js.map