@openremote/or-gauge 1.8.0-snapshot.20250723094757 → 1.8.0-snapshot.20250725070921

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.
@@ -1,5 +1,5 @@
1
- /*! For license information please see index.bundle.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("ORModel"),require("ORCore"),require("ORTranslate"),require("ORIcon")):"function"==typeof define&&define.amd?define(["ORModel","ORCore","ORTranslate","ORIcon"],e):"object"==typeof exports?exports.ORGauge=e(require("ORModel"),require("ORCore"),require("ORTranslate"),require("ORIcon")):t.ORGauge=e(t.ORModel,t.ORCore,t.ORTranslate,t.ORIcon)}(self,((t,e,n,r)=>(()=>{var i={68:function(t,e,n){var r;(function(){var i,o,s,u,a,l,c,h,f,p,d,v,g=[].slice,_={}.hasOwnProperty,y=function(t,e){for(var n in e)_.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},m=[].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 n=(new Date).getTime(),o=Math.max(0,16-(n-i)),r=window.setTimeout((function(){return t(n+o)}),o),i=n+o,r},window.cancelAnimationFrame=function(t){return clearTimeout(t)})}(),v=function(t){var e,n;for(t-=3600*(e=Math.floor(t/3600))+60*(n=Math.floor((t-3600*e)/60)),t+="",n+="";n.length<2;)n="0"+n;for(;t.length<2;)t="0"+t;return(e=e?e+":":"")+n+":"+t},p=function(){var t,e,n;return n=(e=1<=arguments.length?g.call(arguments,0):[])[0],t=e[1],h(n.toFixed(t))},d=function(t,e){var n,r,i;for(n in r={},t)_.call(t,n)&&(i=t[n],r[n]=i);for(n in e)_.call(e,n)&&(i=e[n],r[n]=i);return r},h=function(t){var e,n,r,i;for(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},f=function(t){return"#"===t.charAt(0)?t.substring(1,7):t},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.displayScale=1,e.prototype.forceUpdate=!0,e.prototype.setTextField=function(t,e){return this.textField=t instanceof l?t:new l(t,e)},e.prototype.setMinValue=function(t,e){var n,r,i,o,s;if(this.minValue=t,null==e&&(e=!0),e){for(this.displayedValue=this.minValue,s=[],r=0,i=(o=this.gp||[]).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=d(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 t=parseFloat(t)||Number(t),isFinite(t)?t:0},e}(c=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),e=this.value-this.displayedValue,Math.abs(e/this.animationSpeed)<=.001?this.displayedValue=this.value:this.displayedValue=this.displayedValue+e/this.animationSpeed,this.render(),0))},t}()),l=function(){function t(t,e){this.el=t,this.fractionDigits=e}return t.prototype.render=function(t){return this.el.innerHTML=p(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 new Error("The element isn't defined.");this.value=1*this.elem.innerHTML,this.text&&(this.value=0)}y(e,t),e.prototype.displayedValue=0,e.prototype.value=0,e.prototype.setVal=function(t){return this.value=1*t},e.prototype.render=function(){var t;return t=this.text?v(this.displayedValue.toFixed(0)):h(p(this.displayedValue)),this.elem.innerHTML=t}}(c),a=function(t){function e(t){if(this.gauge=t,void 0===this.gauge)throw new 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 y(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=d(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}(c),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(p(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+"%"})}}(),u=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 a(this)],this.setOptions()}return y(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=new Array,o=[],n=r=0,i=this.options.percentColors.length-1;0<=i?r<=i:r>=i;n=0<=i?++r:--r)s=parseInt(f(this.options.percentColors[n][1]).substring(0,2),16),e=parseInt(f(this.options.percentColors[n][1]).substring(2,4),16),t=parseInt(f(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,o,s,u,l,c;for(t instanceof Array||(t=[t]),n=r=0,u=t.length-1;0<=u?r<=u:r>=u;n=0<=u?++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 a(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(n=0,s=0,o=t.length;s<o;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,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,h,f,d;for(this.ctx.save(),this.ctx.translate(e,n),l=/\d+\.?\d?/,a=(i=t.font||"10px Times").match(l)[0],h=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+h,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],h=i.slice(a.length),o=parseFloat(a)*this.displayScale,this.ctx.font=o+h,f=this.getAngle(d.label)-3*Math.PI/2,this.ctx.rotate(f),this.ctx.fillText(p(d.label,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-f)):(!this.options.limitMin||d>=this.minValue)&&(!this.options.limitMax||d<=this.maxValue)&&(f=this.getAngle(d)-3*Math.PI/2,this.ctx.rotate(f),this.ctx.fillText(p(d,t.fractionDigits),0,-r-this.lineWidth/2),this.ctx.rotate(-f));return this.ctx.restore()},e.prototype.renderTicks=function(t,e,n,r){var i,o,s,u,a,l,c,h,f,p,d,v,g,_,y,m,b,x,w,A;if(t!=={}){for(l=t.divisions||0,x=t.subDivisions||0,s=t.divColor||"#fff",_=t.subColor||"#fff",u=t.divLength||.7,m=t.subLength||.2,f=parseFloat(this.maxValue)-parseFloat(this.minValue),p=parseFloat(f)/parseFloat(t.divisions),y=parseFloat(p)/parseFloat(t.subDivisions),i=parseFloat(this.minValue),o=0+y,a=(h=f/400)*(t.divWidth||1),b=h*(t.subWidth||1),v=[],w=c=0,d=l+1;c<d;w=c+=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&&x>0?v.push(function(){var t,e,n;for(n=[],t=0,e=x-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-b),this.getAngle(o+b),!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,c,h,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=(c=this.options.staticZones).length;r<o;r++)a=(v=c[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=(h=this.gp).length;i<s;i++)h[i].update(!0);return this.ctx.translate(-d,-n)},e}(o),i=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 y(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}(o),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(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}(i),window.AnimationUpdater={elements:[],animId:null,addAll:function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(AnimationUpdater.elements.push(e));return i},add:function(t){if(m.call(AnimationUpdater.elements,t)<0)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=[],r=n=0,o=(s=AnimationUpdater.elements).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?void 0===(r=function(){return{Gauge:u,Donut:s,BaseDonut:i,TextRenderer:l}}.call(e,n,e,t))||(t.exports=r):null!=t.exports?t.exports={Gauge:u,Donut:s,BaseDonut:i,TextRenderer:l}:(window.Gauge=u,window.Donut=s,window.BaseDonut=i,window.TextRenderer=l)}).call(this)},944:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",u="__lodash_placeholder__",a=32,l=128,c=1/0,h=9007199254740991,f=NaN,p=4294967295,d=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",_="[object Boolean]",y="[object Date]",m="[object Error]",b="[object Function]",x="[object GeneratorFunction]",w="[object Map]",A="[object Number]",$="[object Object]",S="[object Promise]",E="[object RegExp]",C="[object Set]",O="[object String]",k="[object Symbol]",R="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",M="[object Float32Array]",j="[object Float64Array]",V="[object Int8Array]",T="[object Int16Array]",z="[object Int32Array]",I="[object Uint8Array]",W="[object Uint8ClampedArray]",L="[object Uint16Array]",N="[object Uint32Array]",F=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(H.source),Z=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Ct="\\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",Ot="["+xt+"]",kt="["+Ct+"]",Rt="["+wt+"]",Pt="\\d+",Ut="["+At+"]",Mt="["+$t+"]",jt="[^"+xt+Ct+Pt+At+$t+St+"]",Vt="\\ud83c[\\udffb-\\udfff]",Tt="[^"+xt+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+St+"]",Lt="\\u200d",Nt="(?:"+Mt+"|"+jt+")",Ft="(?:"+Wt+"|"+jt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",Bt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Rt+"|"+Vt+")?",qt="["+Et+"]?",Gt=qt+Ht+"(?:"+Lt+"(?:"+[Tt,zt,It].join("|")+")"+qt+Ht+")*",Zt="(?:"+[Ut,zt,It].join("|")+")"+Gt,Kt="(?:"+[Tt+Rt+"?",Rt,zt,It,Ot].join("|")+")",Jt=RegExp("['’]","g"),Yt=RegExp(Rt,"g"),Qt=RegExp(Vt+"(?="+Vt+")|"+Kt+Gt,"g"),Xt=RegExp([Wt+"?"+Mt+"+"+Dt+"(?="+[kt,Wt,"$"].join("|")+")",Ft+"+"+Bt+"(?="+[kt,Wt+Nt,"$"].join("|")+")",Wt+"?"+Nt+"+"+Dt,Wt+"+"+Bt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Zt].join("|"),"g"),te=RegExp("["+Lt+xt+wt+Et+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["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"],re=-1,ie={};ie[M]=ie[j]=ie[V]=ie[T]=ie[z]=ie[I]=ie[W]=ie[L]=ie[N]=!0,ie[v]=ie[g]=ie[P]=ie[_]=ie[U]=ie[y]=ie[m]=ie[b]=ie[w]=ie[A]=ie[$]=ie[E]=ie[C]=ie[O]=ie[R]=!1;var oe={};oe[v]=oe[g]=oe[P]=oe[U]=oe[_]=oe[y]=oe[M]=oe[j]=oe[V]=oe[T]=oe[z]=oe[w]=oe[A]=oe[$]=oe[E]=oe[C]=oe[O]=oe[k]=oe[I]=oe[W]=oe[L]=oe[N]=!0,oe[m]=oe[b]=oe[R]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,ae=parseInt,le="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ce="object"==typeof self&&self&&self.Object===Object&&self,he=le||ce||Function("return this")(),fe=e&&!e.nodeType&&e,pe=fe&&t&&!t.nodeType&&t,de=pe&&pe.exports===fe,ve=de&&le.process,ge=function(){try{return pe&&pe.require&&pe.require("util").types||ve&&ve.binding&&ve.binding("util")}catch(t){}}(),_e=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,me=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,we=ge&&ge.isTypedArray;function Ae(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 $e(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 Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ee(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(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 Oe(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 ke(t,e){return!(null==t||!t.length)&&We(t,e,0)>-1}function Re(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 Pe(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 Ue(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Me(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 je(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 Ve(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 Te=De("length");function ze(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ie(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 We(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):Ie(t,Ne,n)}function Le(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ne(t){return t!=t}function Fe(t,e){var n=null==t?0:t.length;return n?qe(t,e)/n:f}function De(t){return function(e){return null==e?i:e[t]}}function Be(t){return function(e){return null==t?i:t[e]}}function He(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function qe(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ge(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ze(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function Ke(t){return function(e){return t(e)}}function Je(t,e){return Pe(e,(function(e){return t[e]}))}function Ye(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&We(e,t[n],0)>-1;);return n}function Xe(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}var tn=Be({À:"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"}),en=Be({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+se[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function un(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 an(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function cn(t){return rn(t)?function(t){for(var e=Qt.lastIndex=0;Qt.test(t);)++e;return e}(t):Te(t)}function hn(t){return rn(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var pn=Be({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function t(e){var n,r=(e=null==e?he:dn.defaults(he.Object(),e,dn.pick(he,ne))).Array,it=e.Date,xt=e.Error,wt=e.Function,At=e.Math,$t=e.Object,St=e.RegExp,Et=e.String,Ct=e.TypeError,Ot=r.prototype,kt=wt.prototype,Rt=$t.prototype,Pt=e["__core-js_shared__"],Ut=kt.toString,Mt=Rt.hasOwnProperty,jt=0,Vt=(n=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Tt=Rt.toString,zt=Ut.call($t),It=he._,Wt=St("^"+Ut.call(Mt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=de?e.Buffer:i,Nt=e.Symbol,Ft=e.Uint8Array,Dt=Lt?Lt.allocUnsafe:i,Bt=sn($t.getPrototypeOf,$t),Ht=$t.create,qt=Rt.propertyIsEnumerable,Gt=Ot.splice,Zt=Nt?Nt.isConcatSpreadable:i,Kt=Nt?Nt.iterator:i,Qt=Nt?Nt.toStringTag:i,te=function(){try{var t=ao($t,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,le=it&&it.now!==he.Date.now&&it.now,ce=e.setTimeout!==he.setTimeout&&e.setTimeout,fe=At.ceil,pe=At.floor,ve=$t.getOwnPropertySymbols,ge=Lt?Lt.isBuffer:i,Te=e.isFinite,Be=Ot.join,vn=sn($t.keys,$t),gn=At.max,_n=At.min,yn=it.now,mn=e.parseInt,bn=At.random,xn=Ot.reverse,wn=ao(e,"DataView"),An=ao(e,"Map"),$n=ao(e,"Promise"),Sn=ao(e,"Set"),En=ao(e,"WeakMap"),Cn=ao($t,"create"),On=En&&new En,kn={},Rn=zo(wn),Pn=zo(An),Un=zo($n),Mn=zo(Sn),jn=zo(En),Vn=Nt?Nt.prototype:i,Tn=Vn?Vn.valueOf:i,zn=Vn?Vn.toString:i;function In(t){if(tu(t)&&!Ds(t)&&!(t instanceof Fn)){if(t instanceof Nn)return t;if(Mt.call(t,"__wrapped__"))return Io(t)}return new Nn(t)}var Wn=function(){function t(){}return function(e){if(!Xs(e))return{};if(Ht)return Ht(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Ln(){}function Nn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Fn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Dn(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 Bn(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 Hn(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 qn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Hn;++e<n;)this.add(t[e])}function Gn(t){var e=this.__data__=new Bn(t);this.size=e.size}function Zn(t,e){var n=Ds(t),r=!n&&Fs(t),i=!n&&!r&&Gs(t),o=!n&&!r&&!i&&au(t),s=n||r||i||o,u=s?Ge(t.length,Et):[],a=u.length;for(var l in t)!e&&!Mt.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||go(l,a))||u.push(l);return u}function Kn(t){var e=t.length;return e?t[Hr(0,e-1)]:i}function Jn(t,e){return Uo(Ei(t),or(e,0,t.length))}function Yn(t){return Uo(Ei(t))}function Qn(t,e,n){(n!==i&&!Ws(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Xn(t,e,n){var r=t[e];Mt.call(t,e)&&Ws(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ws(t[n][0],e))return n;return-1}function er(t,e,n,r){return cr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function nr(t,e){return t&&Ci(e,Ru(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,o=e.length,s=r(o),u=null==t;++n<o;)s[n]=u?i:Su(t,e[n]);return s}function or(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function sr(t,e,n,r,o,s){var u,a=1&e,l=2&e,c=4&e;if(n&&(u=o?n(t,r,o,s):n(t)),u!==i)return u;if(!Xs(t))return t;var h=Ds(t);if(h){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Mt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return Ei(t,u)}else{var f=ho(t),p=f==b||f==x;if(Gs(t))return bi(t,a);if(f==$||f==v||p&&!o){if(u=l||p?{}:po(t),!a)return l?function(t,e){return Ci(t,co(t),e)}(t,function(t,e){return t&&Ci(e,Pu(e),t)}(u,t)):function(t,e){return Ci(t,lo(t),e)}(t,nr(u,t))}else{if(!oe[f])return o?t:{};u=function(t,e,n){var r,i=t.constructor;switch(e){case P:return xi(t);case _:case y:return new i(+t);case U:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case M:case j:case V:case T:case z:case I:case W:case L:case N:return wi(t,n);case w:return new i;case A:case O:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new i;case k:return r=t,Tn?$t(Tn.call(r)):{}}}(t,f,a)}}s||(s=new Gn);var d=s.get(t);if(d)return d;s.set(t,u),ou(t)?t.forEach((function(r){u.add(sr(r,e,n,r,t,s))})):eu(t)&&t.forEach((function(r,i){u.set(i,sr(r,e,n,i,t,s))}));var g=h?i:(c?l?eo:to:l?Pu:Ru)(t);return Se(g||t,(function(r,i){g&&(r=t[i=r]),Xn(u,i,sr(r,e,n,i,t,s))})),u}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=$t(t);r--;){var o=n[r],s=e[o],u=t[o];if(u===i&&!(o in t)||!s(u))return!1}return!0}function ar(t,e,n){if("function"!=typeof t)throw new Ct(o);return Oo((function(){t.apply(i,n)}),e)}function lr(t,e,n,r){var i=-1,o=ke,s=!0,u=t.length,a=[],l=e.length;if(!u)return a;n&&(e=Pe(e,Ke(n))),r?(o=Re,s=!1):e.length>=200&&(o=Ye,s=!1,e=new qn(e));t:for(;++i<u;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,s&&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}In.templateSettings={escape:K,evaluate:J,interpolate:Y,variable:"",imports:{_:In}},In.prototype=Ln.prototype,In.prototype.constructor=In,Nn.prototype=Wn(Ln.prototype),Nn.prototype.constructor=Nn,Fn.prototype=Wn(Ln.prototype),Fn.prototype.constructor=Fn,Dn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Dn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Dn.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===s?i:n}return Mt.call(e,t)?e[t]:i},Dn.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:Mt.call(e,t)},Dn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?s:e,this},Bn.prototype.clear=function(){this.__data__=[],this.size=0},Bn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,0))},Bn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Bn.prototype.has=function(t){return tr(this.__data__,t)>-1},Bn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(An||Bn),string:new Dn}},Hn.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},Hn.prototype.get=function(t){return so(this,t).get(t)},Hn.prototype.has=function(t){return so(this,t).has(t)},Hn.prototype.set=function(t,e){var n=so(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,s),this},qn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Bn,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Bn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(t,e),this.size=n.size,this};var cr=Ri(yr),hr=Ri(mr,!0);function fr(t,e){var n=!0;return cr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function pr(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],u=e(s);if(null!=u&&(a===i?u==u&&!uu(u):n(u,a)))var a=u,l=s}return l}function dr(t,e){var n=[];return cr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function vr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=vo),i||(i=[]);++o<s;){var u=t[o];e>0&&n(u)?e>1?vr(u,e-1,n,r,i):Ue(i,u):r||(i[i.length]=u)}return i}var gr=Pi(),_r=Pi(!0);function yr(t,e){return t&&gr(t,e,Ru)}function mr(t,e){return t&&_r(t,e,Ru)}function br(t,e){return Oe(e,(function(e){return Js(t[e])}))}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[To(e[n++])];return n&&n==r?t:i}function wr(t,e,n){var r=e(t);return Ds(t)?r:Ue(r,n(t))}function Ar(t){return null==t?t===i?"[object Undefined]":"[object Null]":Qt&&Qt in $t(t)?function(t){var e=Mt.call(t,Qt),n=t[Qt];try{t[Qt]=i;var r=!0}catch(t){}var o=Tt.call(t);return r&&(e?t[Qt]=n:delete t[Qt]),o}(t):function(t){return Tt.call(t)}(t)}function $r(t,e){return t>e}function Sr(t,e){return null!=t&&Mt.call(t,e)}function Er(t,e){return null!=t&&e in $t(t)}function Cr(t,e,n){for(var o=n?Re:ke,s=t[0].length,u=t.length,a=u,l=r(u),c=1/0,h=[];a--;){var f=t[a];a&&e&&(f=Pe(f,Ke(e))),c=_n(f.length,c),l[a]=!n&&(e||s>=120&&f.length>=120)?new qn(a&&f):i}f=t[0];var p=-1,d=l[0];t:for(;++p<s&&h.length<c;){var v=f[p],g=e?e(v):v;if(v=n||0!==v?v:0,!(d?Ye(d,g):o(h,g,n))){for(a=u;--a;){var _=l[a];if(!(_?Ye(_,g):o(t[a],g,n)))continue t}d&&d.push(g),h.push(v)}}return h}function Or(t,e,n){var r=null==(t=So(t,e=gi(e,t)))?t:t[To(Ko(e))];return null==r?i:Ae(r,t,n)}function kr(t){return tu(t)&&Ar(t)==v}function Rr(t,e,n,r,o){return t===e||(null==t||null==e||!tu(t)&&!tu(e)?t!=t&&e!=e:function(t,e,n,r,o,s){var u=Ds(t),a=Ds(e),l=u?g:ho(t),c=a?g:ho(e),h=(l=l==v?$:l)==$,f=(c=c==v?$:c)==$,p=l==c;if(p&&Gs(t)){if(!Gs(e))return!1;u=!0,h=!1}if(p&&!h)return s||(s=new Gn),u||au(t)?Qi(t,e,n,r,o,s):function(t,e,n,r,i,o,s){switch(n){case U:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!o(new Ft(t),new Ft(e)));case _:case y:case A:return Ws(+t,+e);case m:return t.name==e.name&&t.message==e.message;case E:case O:return t==e+"";case w:var u=on;case C:var a=1&r;if(u||(u=an),t.size!=e.size&&!a)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=Qi(u(t),u(e),r,i,o,s);return s.delete(t),c;case k:if(Tn)return Tn.call(t)==Tn.call(e)}return!1}(t,e,l,n,r,o,s);if(!(1&n)){var d=h&&Mt.call(t,"__wrapped__"),b=f&&Mt.call(e,"__wrapped__");if(d||b){var x=d?t.value():t,S=b?e.value():e;return s||(s=new Gn),o(x,S,n,r,s)}}return!!p&&(s||(s=new Gn),function(t,e,n,r,o,s){var u=1&n,a=to(t),l=a.length;if(l!=to(e).length&&!u)return!1;for(var c=l;c--;){var h=a[c];if(!(u?h in e:Mt.call(e,h)))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;++c<l;){var g=t[h=a[c]],_=e[h];if(r)var y=u?r(_,g,h,e,t,s):r(g,_,h,t,e,s);if(!(y===i?g===_||o(g,_,n,r,s):y)){d=!1;break}v||(v="constructor"==h)}if(d&&!v){var m=t.constructor,b=e.constructor;m==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(d=!1)}return s.delete(t),s.delete(e),d}(t,e,n,r,o,s))}(t,e,n,r,Rr,o))}function Pr(t,e,n,r){var o=n.length,s=o,u=!r;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],c=t[l],h=a[1];if(u&&a[2]){if(c===i&&!(l in t))return!1}else{var f=new Gn;if(r)var p=r(c,h,l,t,e,f);if(!(p===i?Rr(h,c,3,r,f):p))return!1}}return!0}function Ur(t){return!(!Xs(t)||(e=t,Vt&&Vt in e))&&(Js(t)?Wt:vt).test(zo(t));var e}function Mr(t){return"function"==typeof t?t:null==t?na:"object"==typeof t?Ds(t)?Ir(t[0],t[1]):zr(t):ha(t)}function jr(t){if(!xo(t))return vn(t);var e=[];for(var n in $t(t))Mt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Vr(t,e){return t<e}function Tr(t,e){var n=-1,i=Hs(t)?r(t.length):[];return cr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function zr(t){var e=uo(t);return 1==e.length&&e[0][2]?Ao(e[0][0],e[0][1]):function(n){return n===t||Pr(n,t,e)}}function Ir(t,e){return yo(t)&&wo(e)?Ao(To(t),e):function(n){var r=Su(n,t);return r===i&&r===e?Eu(n,t):Rr(e,r,3)}}function Wr(t,e,n,r,o){t!==e&&gr(e,(function(s,u){if(o||(o=new Gn),Xs(s))!function(t,e,n,r,o,s,u){var a=Eo(t,n),l=Eo(e,n),c=u.get(l);if(c)Qn(t,n,c);else{var h=s?s(a,l,n+"",t,e,u):i,f=h===i;if(f){var p=Ds(l),d=!p&&Gs(l),v=!p&&!d&&au(l);h=l,p||d||v?Ds(a)?h=a:qs(a)?h=Ei(a):d?(f=!1,h=bi(l,!0)):v?(f=!1,h=wi(l,!0)):h=[]:ru(l)||Fs(l)?(h=a,Fs(a)?h=gu(a):Xs(a)&&!Js(a)||(h=po(l))):f=!1}f&&(u.set(l,h),o(h,l,r,s,u),u.delete(l)),Qn(t,n,h)}}(t,e,u,n,Wr,r,o);else{var a=r?r(Eo(t,u),s,u+"",t,e,o):i;a===i&&(a=s),Qn(t,u,a)}}),Pu)}function Lr(t,e){var n=t.length;if(n)return go(e+=e<0?n:0,n)?t[e]:i}function Nr(t,e,n){e=e.length?Pe(e,(function(t){return Ds(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[na];var r=-1;e=Pe(e,Ke(oo()));var i=Tr(t,(function(t,n,i){var o=Pe(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var r=t.length;for(t.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=Ai(i[r],o[r]);if(a)return r>=u?a:a*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(i)}function Fr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],u=xr(t,s);n(u,s)&&Jr(o,gi(s,t),u)}return o}function Dr(t,e,n,r){var i=r?Le:We,o=-1,s=e.length,u=t;for(t===e&&(e=Ei(e)),n&&(u=Pe(t,Ke(n)));++o<s;)for(var a=0,l=e[o],c=n?n(l):l;(a=i(u,c,a,r))>-1;)u!==t&&Gt.call(u,a,1),Gt.call(t,a,1);return t}function Br(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;go(i)?Gt.call(t,i,1):ai(t,i)}}return t}function Hr(t,e){return t+pe(bn()*(e-t+1))}function qr(t,e){var n="";if(!t||e<1||e>h)return n;do{e%2&&(n+=t),(e=pe(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return ko($o(t,e,na),t+"")}function Zr(t){return Kn(Wu(t))}function Kr(t,e){var n=Wu(t);return Uo(n,or(e,0,n.length))}function Jr(t,e,n,r){if(!Xs(t))return t;for(var o=-1,s=(e=gi(e,t)).length,u=s-1,a=t;null!=a&&++o<s;){var l=To(e[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=u){var h=a[l];(c=r?r(h,l,a):i)===i&&(c=Xs(h)?h:go(e[o+1])?[]:{})}Xn(a,l,c),a=a[l]}return t}var Yr=On?function(t,e){return On.set(t,e),t}:na,Qr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Xu(e),writable:!0})}:na;function Xr(t){return Uo(Wu(t))}function ti(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i<o;)s[i]=t[i+e];return s}function ei(t,e){var n;return cr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!uu(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return ri(t,e,na,n)}function ri(t,e,n,r){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=uu(e),c=e===i;o<s;){var h=pe((o+s)/2),f=n(t[h]),p=f!==i,d=null===f,v=f==f,g=uu(f);if(u)var _=r||v;else _=c?v&&(r||p):a?v&&p&&(r||!d):l?v&&p&&!d&&(r||!g):!d&&!g&&(r?f<=e:f<e);_?o=h+1:s=h}return _n(s,4294967294)}function ii(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||!Ws(u,a)){var a=u;o[i++]=0===s?0:s}}return o}function oi(t){return"number"==typeof t?t:uu(t)?f:+t}function si(t){if("string"==typeof t)return t;if(Ds(t))return Pe(t,si)+"";if(uu(t))return zn?zn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ui(t,e,n){var r=-1,i=ke,o=t.length,s=!0,u=[],a=u;if(n)s=!1,i=Re;else if(o>=200){var l=e?null:qi(t);if(l)return an(l);s=!1,i=Ye,a=new qn}else a=e?[]:u;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,s&&h==h){for(var f=a.length;f--;)if(a[f]===h)continue t;e&&a.push(h),u.push(c)}else i(a,h,n)||(a!==u&&a.push(h),u.push(c))}return u}function ai(t,e){return null==(t=So(t,e=gi(e,t)))||delete t[To(Ko(e))]}function li(t,e,n,r){return Jr(t,e,n(xr(t,e)),r)}function ci(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ti(t,r?0:o,r?o+1:i):ti(t,r?o+1:0,r?i:o)}function hi(t,e){var n=t;return n instanceof Fn&&(n=n.value()),Me(e,(function(t,e){return e.func.apply(e.thisArg,Ue([t],e.args))}),n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ui(t[0]):[];for(var o=-1,s=r(i);++o<i;)for(var u=t[o],a=-1;++a<i;)a!=o&&(s[o]=lr(s[o]||u,t[a],e,n));return ui(vr(s,1),e,n)}function pi(t,e,n){for(var r=-1,o=t.length,s=e.length,u={};++r<o;){var a=r<s?e[r]:i;n(u,t[r],a)}return u}function di(t){return qs(t)?t:[]}function vi(t){return"function"==typeof t?t:na}function gi(t,e){return Ds(t)?t:yo(t,e)?[t]:Vo(_u(t))}var _i=Gr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var mi=se||function(t){return he.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Dt?Dt(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function wi(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ai(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,s=uu(t),u=e!==i,a=null===e,l=e==e,c=uu(e);if(!a&&!c&&!s&&t>e||s&&u&&l&&!a&&!c||r&&u&&l||!n&&l||!o)return 1;if(!r&&!s&&!c&&t<e||c&&n&&o&&!r&&!s||a&&n&&o||!u&&o||!l)return-1}return 0}function $i(t,e,n,i){for(var o=-1,s=t.length,u=n.length,a=-1,l=e.length,c=gn(s-u,0),h=r(l+c),f=!i;++a<l;)h[a]=e[a];for(;++o<u;)(f||o<s)&&(h[n[o]]=t[o]);for(;c--;)h[a++]=t[o++];return h}function Si(t,e,n,i){for(var o=-1,s=t.length,u=-1,a=n.length,l=-1,c=e.length,h=gn(s-a,0),f=r(h+c),p=!i;++o<h;)f[o]=t[o];for(var d=o;++l<c;)f[d+l]=e[l];for(;++u<a;)(p||o<s)&&(f[d+n[u]]=t[o++]);return f}function Ei(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ci(t,e,n,r){var o=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var a=e[s],l=r?r(n[a],t[a],a,n,t):i;l===i&&(l=t[a]),o?rr(n,a,l):Xn(n,a,l)}return n}function Oi(t,e){return function(n,r){var i=Ds(n)?$e:er,o=e?e():{};return i(n,t,oo(r,2),o)}}function ki(t){return Gr((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,u=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,u&&_o(n[0],n[1],u)&&(s=o<3?i:s,o=1),e=$t(e);++r<o;){var a=n[r];a&&t(e,a,r,s)}return e}))}function Ri(t,e){return function(n,r){if(null==n)return n;if(!Hs(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 Pi(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 Ui(t){return function(e){var n=rn(e=_u(e))?hn(e):i,r=n?n[0]:e.charAt(0),o=n?yi(n,1).join(""):e.slice(1);return r[t]()+o}}function Mi(t){return function(e){return Me(Ju(Fu(e).replace(Jt,"")),t,"")}}function ji(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=Wn(t.prototype),r=t.apply(n,e);return Xs(r)?r:n}}function Vi(t){return function(e,n,r){var o=$t(e);if(!Hs(e)){var s=oo(n,3);e=Ru(e),n=function(t){return s(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[s?e[u]:u]:i}}function Ti(t){return Xi((function(e){var n=e.length,r=n,s=Nn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Ct(o);if(s&&!a&&"wrapper"==ro(u))var a=new Nn([],!0)}for(r=a?r:n;++r<n;){var l=ro(u=e[r]),c="wrapper"==l?no(u):i;a=c&&mo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[ro(c[0])].apply(a,c[3]):1==u.length&&mo(u)?a[l]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Ds(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 zi(t,e,n,o,s,u,a,c,h,f){var p=e&l,d=1&e,v=2&e,g=24&e,_=512&e,y=v?i:ji(t);return function l(){for(var m=arguments.length,b=r(m),x=m;x--;)b[x]=arguments[x];if(g)var w=io(l),A=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,w);if(o&&(b=$i(b,o,s,g)),u&&(b=Si(b,u,a,g)),m-=A,g&&m<f){var $=un(b,w);return Bi(t,e,zi,l.placeholder,n,b,$,c,h,f-m)}var S=d?n:this,E=v?S[t]:t;return m=b.length,c?b=function(t,e){for(var n=t.length,r=_n(e.length,n),o=Ei(t);r--;){var s=e[r];t[r]=go(s,n)?o[s]:i}return t}(b,c):_&&m>1&&b.reverse(),p&&h<m&&(b.length=h),this&&this!==he&&this instanceof l&&(E=y||ji(E)),E.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return yr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=oi(n),r=oi(r)),o=t(n,r)}return o}}function Li(t){return Xi((function(e){return e=Pe(e,Ke(oo())),Gr((function(n){var r=this;return t(e,(function(t){return Ae(t,r,n)}))}))}))}function Ni(t,e){var n=(e=e===i?" ":si(e)).length;if(n<2)return n?qr(e,t):e;var r=qr(e,fe(t/cn(e)));return rn(e)?yi(hn(r),0,t).join(""):r.slice(0,t)}function Fi(t){return function(e,n,o){return o&&"number"!=typeof o&&_o(e,n,o)&&(n=o=i),e=fu(e),n===i?(n=e,e=0):n=fu(n),function(t,e,n,i){for(var o=-1,s=gn(fe((e-t)/(n||1)),0),u=r(s);s--;)u[i?s:++o]=t,t+=n;return u}(e,n,o=o===i?e<n?1:-1:fu(o),t)}}function Di(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=vu(e),n=vu(n)),t(e,n)}}function Bi(t,e,n,r,o,s,u,l,c,h){var f=8&e;e|=f?a:64,4&(e&=~(f?64:a))||(e&=-4);var p=[t,e,o,f?s:i,f?u:i,f?i:s,f?i:u,l,c,h],d=n.apply(i,p);return mo(t)&&Co(d,p),d.placeholder=r,Ro(d,t,e)}function Hi(t){var e=At[t];return function(t,n){if(t=vu(t),(n=null==n?0:_n(pu(n),292))&&Te(t)){var r=(_u(t)+"e").split("e");return+((r=(_u(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var qi=Sn&&1/an(new Sn([,-0]))[1]==c?function(t){return new Sn(t)}:ua;function Gi(t){return function(e){var n=ho(e);return n==w?on(e):n==C?ln(e):function(t,e){return Pe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Zi(t,e,n,s,c,h,f,p){var d=2&e;if(!d&&"function"!=typeof t)throw new Ct(o);var v=s?s.length:0;if(v||(e&=-97,s=c=i),f=f===i?f:gn(pu(f),0),p=p===i?p:pu(p),v-=c?c.length:0,64&e){var g=s,_=c;s=c=i}var y=d?i:no(t),m=[t,e,n,s,c,g,_,h,f,p];if(y&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?$i(c,a,e[4]):a,t[4]=c?un(t[3],u):e[4]}(a=e[5])&&(c=t[5],t[5]=c?Si(c,a,e[6]):a,t[6]=c?un(t[5],u):e[6]),(a=e[7])&&(t[7]=a),r&l&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(m,y),t=m[0],e=m[1],n=m[2],s=m[3],c=m[4],!(p=m[9]=m[9]===i?d?0:t.length:gn(m[9]-v,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var o=ji(t);return function s(){for(var u=arguments.length,a=r(u),l=u,c=io(s);l--;)a[l]=arguments[l];var h=u<3&&a[0]!==c&&a[u-1]!==c?[]:un(a,c);return(u-=h.length)<n?Bi(t,e,zi,s.placeholder,i,a,h,i,i,n-u):Ae(this&&this!==he&&this instanceof s?o:t,this,a)}}(t,e,p):e!=a&&33!=e||c.length?zi.apply(i,m):function(t,e,n,i){var o=1&e,s=ji(t);return function e(){for(var u=-1,a=arguments.length,l=-1,c=i.length,h=r(c+a),f=this&&this!==he&&this instanceof e?s:t;++l<c;)h[l]=i[l];for(;a--;)h[l++]=arguments[++u];return Ae(f,o?n:this,h)}}(t,e,n,s);else var b=function(t,e,n){var r=1&e,i=ji(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Ro((y?Yr:Co)(b,m),t,e)}function Ki(t,e,n,r){return t===i||Ws(t,Rt[n])&&!Mt.call(r,n)?e:t}function Ji(t,e,n,r,o,s){return Xs(t)&&Xs(e)&&(s.set(e,t),Wr(t,e,i,Ji,s),s.delete(e)),t}function Yi(t){return ru(t)?i:t}function Qi(t,e,n,r,o,s){var u=1&n,a=t.length,l=e.length;if(a!=l&&!(u&&l>a))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var f=-1,p=!0,d=2&n?new qn:i;for(s.set(t,e),s.set(e,t);++f<a;){var v=t[f],g=e[f];if(r)var _=u?r(g,v,f,e,t,s):r(v,g,f,t,e,s);if(_!==i){if(_)continue;p=!1;break}if(d){if(!Ve(e,(function(t,e){if(!Ye(d,e)&&(v===t||o(v,t,n,r,s)))return d.push(e)}))){p=!1;break}}else if(v!==g&&!o(v,g,n,r,s)){p=!1;break}}return s.delete(t),s.delete(e),p}function Xi(t){return ko($o(t,i,Bo),t+"")}function to(t){return wr(t,Ru,lo)}function eo(t){return wr(t,Pu,co)}var no=On?function(t){return On.get(t)}:ua;function ro(t){for(var e=t.name+"",n=kn[e],r=Mt.call(kn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function io(t){return(Mt.call(In,"placeholder")?In:t).placeholder}function oo(){var t=In.iteratee||ra;return t=t===ra?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function so(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 uo(t){for(var e=Ru(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,wo(i)]}return e}function ao(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Ur(n)?n:i}var lo=ve?function(t){return null==t?[]:(t=$t(t),Oe(ve(t),(function(e){return qt.call(t,e)})))}:da,co=ve?function(t){for(var e=[];t;)Ue(e,lo(t)),t=Bt(t);return e}:da,ho=Ar;function fo(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,o=!1;++r<i;){var s=To(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Qs(i)&&go(s,i)&&(Ds(t)||Fs(t))}function po(t){return"function"!=typeof t.constructor||xo(t)?{}:Wn(Bt(t))}function vo(t){return Ds(t)||Fs(t)||!!(Zt&&t&&t[Zt])}function go(t,e){var n=typeof t;return!!(e=null==e?h:e)&&("number"==n||"symbol"!=n&&_t.test(t))&&t>-1&&t%1==0&&t<e}function _o(t,e,n){if(!Xs(n))return!1;var r=typeof e;return!!("number"==r?Hs(n)&&go(e,n.length):"string"==r&&e in n)&&Ws(n[e],t)}function yo(t,e){if(Ds(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!uu(t))||X.test(t)||!Q.test(t)||null!=e&&t in $t(e)}function mo(t){var e=ro(t),n=In[e];if("function"!=typeof n||!(e in Fn.prototype))return!1;if(t===n)return!0;var r=no(n);return!!r&&t===r[0]}(wn&&ho(new wn(new ArrayBuffer(1)))!=U||An&&ho(new An)!=w||$n&&ho($n.resolve())!=S||Sn&&ho(new Sn)!=C||En&&ho(new En)!=R)&&(ho=function(t){var e=Ar(t),n=e==$?t.constructor:i,r=n?zo(n):"";if(r)switch(r){case Rn:return U;case Pn:return w;case Un:return S;case Mn:return C;case jn:return R}return e});var bo=Pt?Js:va;function xo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)}function wo(t){return t==t&&!Xs(t)}function Ao(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in $t(n))}}function $o(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=gn(i.length-e,0),u=r(s);++o<s;)u[o]=i[e+o];o=-1;for(var a=r(e+1);++o<e;)a[o]=i[o];return a[e]=n(u),Ae(t,this,a)}}function So(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Eo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Co=Po(Yr),Oo=ce||function(t,e){return he.setTimeout(t,e)},ko=Po(Qr);function Ro(t,e,n){var r=e+"";return ko(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(ot,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(d,(function(n){var r="_."+n[0];e&n[1]&&!ke(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(ut):[]}(r),n)))}function Po(t){var e=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Uo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var s=Hr(n,o),u=t[s];t[s]=t[n],t[n]=u}return t.length=e,t}var Mo,jo,Vo=(Mo=Ms((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,i){e.push(r?i.replace(ct,"$1"):n||t)})),e}),(function(t){return 500===jo.size&&jo.clear(),t})),jo=Mo.cache,Mo);function To(t){if("string"==typeof t||uu(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function zo(t){if(null!=t){try{return Ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Io(t){if(t instanceof Fn)return t.clone();var e=new Nn(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Wo=Gr((function(t,e){return qs(t)?lr(t,vr(e,1,qs,!0)):[]})),Lo=Gr((function(t,e){var n=Ko(e);return qs(n)&&(n=i),qs(t)?lr(t,vr(e,1,qs,!0),oo(n,2)):[]})),No=Gr((function(t,e){var n=Ko(e);return qs(n)&&(n=i),qs(t)?lr(t,vr(e,1,qs,!0),i,n):[]}));function Fo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=gn(r+i,0)),Ie(t,oo(e,3),i)}function Do(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=pu(n),o=n<0?gn(r+o,0):_n(o,r-1)),Ie(t,oo(e,3),o,!0)}function Bo(t){return null!=t&&t.length?vr(t,1):[]}function Ho(t){return t&&t.length?t[0]:i}var qo=Gr((function(t){var e=Pe(t,di);return e.length&&e[0]===t[0]?Cr(e):[]})),Go=Gr((function(t){var e=Ko(t),n=Pe(t,di);return e===Ko(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Cr(n,oo(e,2)):[]})),Zo=Gr((function(t){var e=Ko(t),n=Pe(t,di);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Cr(n,i,e):[]}));function Ko(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Jo=Gr(Yo);function Yo(t,e){return t&&t.length&&e&&e.length?Dr(t,e):t}var Qo=Xi((function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Br(t,Pe(e,(function(t){return go(t,n)?+t:t})).sort(Ai)),r}));function Xo(t){return null==t?t:xn.call(t)}var ts=Gr((function(t){return ui(vr(t,1,qs,!0))})),es=Gr((function(t){var e=Ko(t);return qs(e)&&(e=i),ui(vr(t,1,qs,!0),oo(e,2))})),ns=Gr((function(t){var e=Ko(t);return e="function"==typeof e?e:i,ui(vr(t,1,qs,!0),i,e)}));function rs(t){if(!t||!t.length)return[];var e=0;return t=Oe(t,(function(t){if(qs(t))return e=gn(t.length,e),!0})),Ge(e,(function(e){return Pe(t,De(e))}))}function is(t,e){if(!t||!t.length)return[];var n=rs(t);return null==e?n:Pe(n,(function(t){return Ae(e,i,t)}))}var os=Gr((function(t,e){return qs(t)?lr(t,e):[]})),ss=Gr((function(t){return fi(Oe(t,qs))})),us=Gr((function(t){var e=Ko(t);return qs(e)&&(e=i),fi(Oe(t,qs),oo(e,2))})),as=Gr((function(t){var e=Ko(t);return e="function"==typeof e?e:i,fi(Oe(t,qs),i,e)})),ls=Gr(rs),cs=Gr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,is(t,n)}));function hs(t){var e=In(t);return e.__chain__=!0,e}function fs(t,e){return e(t)}var ps=Xi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Fn&&go(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Nn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)})),ds=Oi((function(t,e,n){Mt.call(t,n)?++t[n]:rr(t,n,1)})),vs=Vi(Fo),gs=Vi(Do);function _s(t,e){return(Ds(t)?Se:cr)(t,oo(e,3))}function ys(t,e){return(Ds(t)?Ee:hr)(t,oo(e,3))}var ms=Oi((function(t,e,n){Mt.call(t,n)?t[n].push(e):rr(t,n,[e])})),bs=Gr((function(t,e,n){var i=-1,o="function"==typeof e,s=Hs(t)?r(t.length):[];return cr(t,(function(t){s[++i]=o?Ae(e,t,n):Or(t,e,n)})),s})),xs=Oi((function(t,e,n){rr(t,n,e)}));function ws(t,e){return(Ds(t)?Pe:Tr)(t,oo(e,3))}var As=Oi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),$s=Gr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&_o(t,e[0],e[1])?e=[]:n>2&&_o(e[0],e[1],e[2])&&(e=[e[0]]),Nr(t,vr(e,1),[])})),Ss=le||function(){return he.Date.now()};function Es(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Zi(t,l,i,i,i,i,e)}function Cs(t,e){var n;if("function"!=typeof e)throw new Ct(o);return t=pu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Os=Gr((function(t,e,n){var r=1;if(n.length){var i=un(n,io(Os));r|=a}return Zi(t,r,e,n,i)})),ks=Gr((function(t,e,n){var r=3;if(n.length){var i=un(n,io(ks));r|=a}return Zi(e,r,t,n,i)}));function Rs(t,e,n){var r,s,u,a,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new Ct(o);function v(e){var n=r,o=s;return r=s=i,h=e,a=t.apply(o,n)}function g(t){var n=t-c;return c===i||n>=e||n<0||p&&t-h>=u}function _(){var t=Ss();if(g(t))return y(t);l=Oo(_,function(t){var n=e-(t-c);return p?_n(n,u-(t-h)):n}(t))}function y(t){return l=i,d&&r?v(t):(r=s=i,a)}function m(){var t=Ss(),n=g(t);if(r=arguments,s=this,c=t,n){if(l===i)return function(t){return h=t,l=Oo(_,e),f?v(t):a}(c);if(p)return mi(l),l=Oo(_,e),v(c)}return l===i&&(l=Oo(_,e)),a}return e=vu(e)||0,Xs(n)&&(f=!!n.leading,u=(p="maxWait"in n)?gn(vu(n.maxWait)||0,e):u,d="trailing"in n?!!n.trailing:d),m.cancel=function(){l!==i&&mi(l),h=0,r=c=s=l=i},m.flush=function(){return l===i?a:y(Ss())},m}var Ps=Gr((function(t,e){return ar(t,1,e)})),Us=Gr((function(t,e,n){return ar(t,vu(e)||0,n)}));function Ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(o);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(Ms.Cache||Hn),n}function js(t){if("function"!=typeof t)throw new Ct(o);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)}}Ms.Cache=Hn;var Vs=_i((function(t,e){var n=(e=1==e.length&&Ds(e[0])?Pe(e[0],Ke(oo())):Pe(vr(e,1),Ke(oo()))).length;return Gr((function(r){for(var i=-1,o=_n(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ae(t,this,r)}))})),Ts=Gr((function(t,e){var n=un(e,io(Ts));return Zi(t,a,i,e,n)})),zs=Gr((function(t,e){var n=un(e,io(zs));return Zi(t,64,i,e,n)})),Is=Xi((function(t,e){return Zi(t,256,i,i,i,e)}));function Ws(t,e){return t===e||t!=t&&e!=e}var Ls=Di($r),Ns=Di((function(t,e){return t>=e})),Fs=kr(function(){return arguments}())?kr:function(t){return tu(t)&&Mt.call(t,"callee")&&!qt.call(t,"callee")},Ds=r.isArray,Bs=_e?Ke(_e):function(t){return tu(t)&&Ar(t)==P};function Hs(t){return null!=t&&Qs(t.length)&&!Js(t)}function qs(t){return tu(t)&&Hs(t)}var Gs=ge||va,Zs=ye?Ke(ye):function(t){return tu(t)&&Ar(t)==y};function Ks(t){if(!tu(t))return!1;var e=Ar(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ru(t)}function Js(t){if(!Xs(t))return!1;var e=Ar(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ys(t){return"number"==typeof t&&t==pu(t)}function Qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Xs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tu(t){return null!=t&&"object"==typeof t}var eu=me?Ke(me):function(t){return tu(t)&&ho(t)==w};function nu(t){return"number"==typeof t||tu(t)&&Ar(t)==A}function ru(t){if(!tu(t)||Ar(t)!=$)return!1;var e=Bt(t);if(null===e)return!0;var n=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ut.call(n)==zt}var iu=be?Ke(be):function(t){return tu(t)&&Ar(t)==E},ou=xe?Ke(xe):function(t){return tu(t)&&ho(t)==C};function su(t){return"string"==typeof t||!Ds(t)&&tu(t)&&Ar(t)==O}function uu(t){return"symbol"==typeof t||tu(t)&&Ar(t)==k}var au=we?Ke(we):function(t){return tu(t)&&Qs(t.length)&&!!ie[Ar(t)]},lu=Di(Vr),cu=Di((function(t,e){return t<=e}));function hu(t){if(!t)return[];if(Hs(t))return su(t)?hn(t):Ei(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=ho(t);return(e==w?on:e==C?an:Wu)(t)}function fu(t){return t?(t=vu(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pu(t){var e=fu(t),n=e%1;return e==e?n?e-n:e:0}function du(t){return t?or(pu(t),0,p):0}function vu(t){if("number"==typeof t)return t;if(uu(t))return f;if(Xs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ze(t);var n=dt.test(t);return n||gt.test(t)?ae(t.slice(2),n?2:8):pt.test(t)?f:+t}function gu(t){return Ci(t,Pu(t))}function _u(t){return null==t?"":si(t)}var yu=ki((function(t,e){if(xo(e)||Hs(e))Ci(e,Ru(e),t);else for(var n in e)Mt.call(e,n)&&Xn(t,n,e[n])})),mu=ki((function(t,e){Ci(e,Pu(e),t)})),bu=ki((function(t,e,n,r){Ci(e,Pu(e),t,r)})),xu=ki((function(t,e,n,r){Ci(e,Ru(e),t,r)})),wu=Xi(ir),Au=Gr((function(t,e){t=$t(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&_o(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],u=Pu(s),a=-1,l=u.length;++a<l;){var c=u[a],h=t[c];(h===i||Ws(h,Rt[c])&&!Mt.call(t,c))&&(t[c]=s[c])}return t})),$u=Gr((function(t){return t.push(i,Ji),Ae(Mu,i,t)}));function Su(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Eu(t,e){return null!=t&&fo(t,e,Er)}var Cu=Ii((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Tt.call(e)),t[e]=n}),Xu(na)),Ou=Ii((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Tt.call(e)),Mt.call(t,e)?t[e].push(n):t[e]=[n]}),oo),ku=Gr(Or);function Ru(t){return Hs(t)?Zn(t):jr(t)}function Pu(t){return Hs(t)?Zn(t,!0):function(t){if(!Xs(t))return function(t){var e=[];if(null!=t)for(var n in $t(t))e.push(n);return e}(t);var e=xo(t),n=[];for(var r in t)("constructor"!=r||!e&&Mt.call(t,r))&&n.push(r);return n}(t)}var Uu=ki((function(t,e,n){Wr(t,e,n)})),Mu=ki((function(t,e,n,r){Wr(t,e,n,r)})),ju=Xi((function(t,e){var n={};if(null==t)return n;var r=!1;e=Pe(e,(function(e){return e=gi(e,t),r||(r=e.length>1),e})),Ci(t,eo(t),n),r&&(n=sr(n,7,Yi));for(var i=e.length;i--;)ai(n,e[i]);return n})),Vu=Xi((function(t,e){return null==t?{}:function(t,e){return Fr(t,e,(function(e,n){return Eu(t,n)}))}(t,e)}));function Tu(t,e){if(null==t)return{};var n=Pe(eo(t),(function(t){return[t]}));return e=oo(e),Fr(t,n,(function(t,n){return e(t,n[0])}))}var zu=Gi(Ru),Iu=Gi(Pu);function Wu(t){return null==t?[]:Je(t,Ru(t))}var Lu=Mi((function(t,e,n){return e=e.toLowerCase(),t+(n?Nu(e):e)}));function Nu(t){return Ku(_u(t).toLowerCase())}function Fu(t){return(t=_u(t))&&t.replace(yt,tn).replace(Yt,"")}var Du=Mi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Bu=Mi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Hu=Ui("toLowerCase"),qu=Mi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Gu=Mi((function(t,e,n){return t+(n?" ":"")+Ku(e)})),Zu=Mi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ku=Ui("toUpperCase");function Ju(t,e,n){return t=_u(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(e)||[]}var Yu=Gr((function(t,e){try{return Ae(t,i,e)}catch(t){return Ks(t)?t:new xt(t)}})),Qu=Xi((function(t,e){return Se(e,(function(e){e=To(e),rr(t,e,Os(t[e],t))})),t}));function Xu(t){return function(){return t}}var ta=Ti(),ea=Ti(!0);function na(t){return t}function ra(t){return Mr("function"==typeof t?t:sr(t,1))}var ia=Gr((function(t,e){return function(n){return Or(n,t,e)}})),oa=Gr((function(t,e){return function(n){return Or(t,n,e)}}));function sa(t,e,n){var r=Ru(e),i=br(e,r);null!=n||Xs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ru(e)));var o=!(Xs(n)&&"chain"in n&&!n.chain),s=Js(t);return Se(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__=Ei(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ue([this.value()],arguments))})})),t}function ua(){}var aa=Li(Pe),la=Li(Ce),ca=Li(Ve);function ha(t){return yo(t)?De(To(t)):function(t){return function(e){return xr(e,t)}}(t)}var fa=Fi(),pa=Fi(!0);function da(){return[]}function va(){return!1}var ga,_a=Wi((function(t,e){return t+e}),0),ya=Hi("ceil"),ma=Wi((function(t,e){return t/e}),1),ba=Hi("floor"),xa=Wi((function(t,e){return t*e}),1),wa=Hi("round"),Aa=Wi((function(t,e){return t-e}),0);return In.after=function(t,e){if("function"!=typeof e)throw new Ct(o);return t=pu(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=Es,In.assign=yu,In.assignIn=mu,In.assignInWith=bu,In.assignWith=xu,In.at=wu,In.before=Cs,In.bind=Os,In.bindAll=Qu,In.bindKey=ks,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ds(t)?t:[t]},In.chain=hs,In.chunk=function(t,e,n){e=(n?_o(t,e,n):e===i)?1:gn(pu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,u=0,a=r(fe(o/e));s<o;)a[u++]=ti(t,s,s+=e);return a},In.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},In.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ue(Ds(n)?Ei(n):[n],vr(e,1))},In.cond=function(t){var e=null==t?0:t.length,n=oo();return t=e?Pe(t,(function(t){if("function"!=typeof t[1])throw new Ct(o);return[n(t[0]),t[1]]})):[],Gr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ae(i[0],this,n))return Ae(i[1],this,n)}}))},In.conforms=function(t){return function(t){var e=Ru(t);return function(n){return ur(n,t,e)}}(sr(t,1))},In.constant=Xu,In.countBy=ds,In.create=function(t,e){var n=Wn(t);return null==e?n:nr(n,e)},In.curry=function t(e,n,r){var o=Zi(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},In.curryRight=function t(e,n,r){var o=Zi(e,16,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},In.debounce=Rs,In.defaults=Au,In.defaultsDeep=$u,In.defer=Ps,In.delay=Us,In.difference=Wo,In.differenceBy=Lo,In.differenceWith=No,In.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:pu(e))<0?0:e,r):[]},In.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:pu(e)))<0?0:e):[]},In.dropRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!0,!0):[]},In.dropWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!0):[]},In.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&_o(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=pu(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:pu(r))<0&&(r+=o),r=n>r?0:du(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},In.filter=function(t,e){return(Ds(t)?Oe:dr)(t,oo(e,3))},In.flatMap=function(t,e){return vr(ws(t,e),1)},In.flatMapDeep=function(t,e){return vr(ws(t,e),c)},In.flatMapDepth=function(t,e,n){return n=n===i?1:pu(n),vr(ws(t,e),n)},In.flatten=Bo,In.flattenDeep=function(t){return null!=t&&t.length?vr(t,c):[]},In.flattenDepth=function(t,e){return null!=t&&t.length?vr(t,e=e===i?1:pu(e)):[]},In.flip=function(t){return Zi(t,512)},In.flow=ta,In.flowRight=ea,In.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},In.functions=function(t){return null==t?[]:br(t,Ru(t))},In.functionsIn=function(t){return null==t?[]:br(t,Pu(t))},In.groupBy=ms,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=qo,In.intersectionBy=Go,In.intersectionWith=Zo,In.invert=Cu,In.invertBy=Ou,In.invokeMap=bs,In.iteratee=ra,In.keyBy=xs,In.keys=Ru,In.keysIn=Pu,In.map=ws,In.mapKeys=function(t,e){var n={};return e=oo(e,3),yr(t,(function(t,r,i){rr(n,e(t,r,i),t)})),n},In.mapValues=function(t,e){var n={};return e=oo(e,3),yr(t,(function(t,r,i){rr(n,r,e(t,r,i))})),n},In.matches=function(t){return zr(sr(t,1))},In.matchesProperty=function(t,e){return Ir(t,sr(e,1))},In.memoize=Ms,In.merge=Uu,In.mergeWith=Mu,In.method=ia,In.methodOf=oa,In.mixin=sa,In.negate=js,In.nthArg=function(t){return t=pu(t),Gr((function(e){return Lr(e,t)}))},In.omit=ju,In.omitBy=function(t,e){return Tu(t,js(oo(e)))},In.once=function(t){return Cs(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(Ds(e)||(e=null==e?[]:[e]),Ds(n=r?i:n)||(n=null==n?[]:[n]),Nr(t,e,n))},In.over=aa,In.overArgs=Vs,In.overEvery=la,In.overSome=ca,In.partial=Ts,In.partialRight=zs,In.partition=As,In.pick=Vu,In.pickBy=Tu,In.property=ha,In.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},In.pull=Jo,In.pullAll=Yo,In.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,oo(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,i,n):t},In.pullAt=Qo,In.range=fa,In.rangeRight=pa,In.rearg=Is,In.reject=function(t,e){return(Ds(t)?Oe:dr)(t,js(oo(e,3)))},In.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=oo(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return Br(t,i),n},In.rest=function(t,e){if("function"!=typeof t)throw new Ct(o);return Gr(t,e=e===i?e:pu(e))},In.reverse=Xo,In.sampleSize=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:pu(e),(Ds(t)?Jn:Kr)(t,e)},In.set=function(t,e,n){return null==t?t:Jr(t,e,n)},In.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Jr(t,e,n,r)},In.shuffle=function(t){return(Ds(t)?Yn:Xr)(t)},In.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&_o(t,e,n)?(e=0,n=r):(e=null==e?0:pu(e),n=n===i?r:pu(n)),ti(t,e,n)):[]},In.sortBy=$s,In.sortedUniq=function(t){return t&&t.length?ii(t):[]},In.sortedUniqBy=function(t,e){return t&&t.length?ii(t,oo(e,2)):[]},In.split=function(t,e,n){return n&&"number"!=typeof n&&_o(t,e,n)&&(e=n=i),(n=n===i?p:n>>>0)?(t=_u(t))&&("string"==typeof e||null!=e&&!iu(e))&&!(e=si(e))&&rn(t)?yi(hn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new Ct(o);return e=null==e?0:gn(pu(e),0),Gr((function(n){var r=n[e],i=yi(n,0,e);return r&&Ue(i,r),Ae(t,this,i)}))},In.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},In.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:pu(e))<0?0:e):[]},In.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:pu(e)))<0?0:e,r):[]},In.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},In.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},In.tap=function(t,e){return e(t),t},In.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Ct(o);return Xs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rs(t,e,{leading:r,maxWait:e,trailing:i})},In.thru=fs,In.toArray=hu,In.toPairs=zu,In.toPairsIn=Iu,In.toPath=function(t){return Ds(t)?Pe(t,To):uu(t)?[t]:Ei(Vo(_u(t)))},In.toPlainObject=gu,In.transform=function(t,e,n){var r=Ds(t),i=r||Gs(t)||au(t);if(e=oo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Xs(t)&&Js(o)?Wn(Bt(t)):{}}return(i?Se:yr)(t,(function(t,r,i){return e(n,t,r,i)})),n},In.unary=function(t){return Es(t,1)},In.union=ts,In.unionBy=es,In.unionWith=ns,In.uniq=function(t){return t&&t.length?ui(t):[]},In.uniqBy=function(t,e){return t&&t.length?ui(t,oo(e,2)):[]},In.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ui(t,i,e):[]},In.unset=function(t,e){return null==t||ai(t,e)},In.unzip=rs,In.unzipWith=is,In.update=function(t,e,n){return null==t?t:li(t,e,vi(n))},In.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:li(t,e,vi(n),r)},In.values=Wu,In.valuesIn=function(t){return null==t?[]:Je(t,Pu(t))},In.without=os,In.words=Ju,In.wrap=function(t,e){return Ts(vi(e),t)},In.xor=ss,In.xorBy=us,In.xorWith=as,In.zip=ls,In.zipObject=function(t,e){return pi(t||[],e||[],Xn)},In.zipObjectDeep=function(t,e){return pi(t||[],e||[],Jr)},In.zipWith=cs,In.entries=zu,In.entriesIn=Iu,In.extend=mu,In.extendWith=bu,sa(In,In),In.add=_a,In.attempt=Yu,In.camelCase=Lu,In.capitalize=Nu,In.ceil=ya,In.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=vu(n))==n?n:0),e!==i&&(e=(e=vu(e))==e?e:0),or(vu(t),e,n)},In.clone=function(t){return sr(t,4)},In.cloneDeep=function(t){return sr(t,5)},In.cloneDeepWith=function(t,e){return sr(t,5,e="function"==typeof e?e:i)},In.cloneWith=function(t,e){return sr(t,4,e="function"==typeof e?e:i)},In.conformsTo=function(t,e){return null==e||ur(t,e,Ru(e))},In.deburr=Fu,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=ma,In.endsWith=function(t,e,n){t=_u(t),e=si(e);var r=t.length,o=n=n===i?r:or(pu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},In.eq=Ws,In.escape=function(t){return(t=_u(t))&&Z.test(t)?t.replace(q,en):t},In.escapeRegExp=function(t){return(t=_u(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=Ds(t)?Ce:fr;return n&&_o(t,e,n)&&(e=i),r(t,oo(e,3))},In.find=vs,In.findIndex=Fo,In.findKey=function(t,e){return ze(t,oo(e,3),yr)},In.findLast=gs,In.findLastIndex=Do,In.findLastKey=function(t,e){return ze(t,oo(e,3),mr)},In.floor=ba,In.forEach=_s,In.forEachRight=ys,In.forIn=function(t,e){return null==t?t:gr(t,oo(e,3),Pu)},In.forInRight=function(t,e){return null==t?t:_r(t,oo(e,3),Pu)},In.forOwn=function(t,e){return t&&yr(t,oo(e,3))},In.forOwnRight=function(t,e){return t&&mr(t,oo(e,3))},In.get=Su,In.gt=Ls,In.gte=Ns,In.has=function(t,e){return null!=t&&fo(t,e,Sr)},In.hasIn=Eu,In.head=Ho,In.identity=na,In.includes=function(t,e,n,r){t=Hs(t)?t:Wu(t),n=n&&!r?pu(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),su(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&We(t,e,n)>-1},In.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=gn(r+i,0)),We(t,e,i)},In.inRange=function(t,e,n){return e=fu(e),n===i?(n=e,e=0):n=fu(n),function(t,e,n){return t>=_n(e,n)&&t<gn(e,n)}(t=vu(t),e,n)},In.invoke=ku,In.isArguments=Fs,In.isArray=Ds,In.isArrayBuffer=Bs,In.isArrayLike=Hs,In.isArrayLikeObject=qs,In.isBoolean=function(t){return!0===t||!1===t||tu(t)&&Ar(t)==_},In.isBuffer=Gs,In.isDate=Zs,In.isElement=function(t){return tu(t)&&1===t.nodeType&&!ru(t)},In.isEmpty=function(t){if(null==t)return!0;if(Hs(t)&&(Ds(t)||"string"==typeof t||"function"==typeof t.splice||Gs(t)||au(t)||Fs(t)))return!t.length;var e=ho(t);if(e==w||e==C)return!t.size;if(xo(t))return!jr(t).length;for(var n in t)if(Mt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Rr(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Rr(t,e,i,n):!!r},In.isError=Ks,In.isFinite=function(t){return"number"==typeof t&&Te(t)},In.isFunction=Js,In.isInteger=Ys,In.isLength=Qs,In.isMap=eu,In.isMatch=function(t,e){return t===e||Pr(t,e,uo(e))},In.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Pr(t,e,uo(e),n)},In.isNaN=function(t){return nu(t)&&t!=+t},In.isNative=function(t){if(bo(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ur(t)},In.isNil=function(t){return null==t},In.isNull=function(t){return null===t},In.isNumber=nu,In.isObject=Xs,In.isObjectLike=tu,In.isPlainObject=ru,In.isRegExp=iu,In.isSafeInteger=function(t){return Ys(t)&&t>=-9007199254740991&&t<=h},In.isSet=ou,In.isString=su,In.isSymbol=uu,In.isTypedArray=au,In.isUndefined=function(t){return t===i},In.isWeakMap=function(t){return tu(t)&&ho(t)==R},In.isWeakSet=function(t){return tu(t)&&"[object WeakSet]"==Ar(t)},In.join=function(t,e){return null==t?"":Be.call(t,e)},In.kebabCase=Du,In.last=Ko,In.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pu(n))<0?gn(r+o,0):_n(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ie(t,Ne,o,!0)},In.lowerCase=Bu,In.lowerFirst=Hu,In.lt=lu,In.lte=cu,In.max=function(t){return t&&t.length?pr(t,na,$r):i},In.maxBy=function(t,e){return t&&t.length?pr(t,oo(e,2),$r):i},In.mean=function(t){return Fe(t,na)},In.meanBy=function(t,e){return Fe(t,oo(e,2))},In.min=function(t){return t&&t.length?pr(t,na,Vr):i},In.minBy=function(t,e){return t&&t.length?pr(t,oo(e,2),Vr):i},In.stubArray=da,In.stubFalse=va,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=xa,In.nth=function(t,e){return t&&t.length?Lr(t,pu(e)):i},In.noConflict=function(){return he._===this&&(he._=It),this},In.noop=ua,In.now=Ss,In.pad=function(t,e,n){t=_u(t);var r=(e=pu(e))?cn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ni(pe(i),n)+t+Ni(fe(i),n)},In.padEnd=function(t,e,n){t=_u(t);var r=(e=pu(e))?cn(t):0;return e&&r<e?t+Ni(e-r,n):t},In.padStart=function(t,e,n){t=_u(t);var r=(e=pu(e))?cn(t):0;return e&&r<e?Ni(e-r,n)+t:t},In.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),mn(_u(t).replace(rt,""),e||0)},In.random=function(t,e,n){if(n&&"boolean"!=typeof n&&_o(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fu(t),e===i?(e=t,t=0):e=fu(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=bn();return _n(t+o*(e-t+ue("1e-"+((o+"").length-1))),e)}return Hr(t,e)},In.reduce=function(t,e,n){var r=Ds(t)?Me:He,i=arguments.length<3;return r(t,oo(e,4),n,i,cr)},In.reduceRight=function(t,e,n){var r=Ds(t)?je:He,i=arguments.length<3;return r(t,oo(e,4),n,i,hr)},In.repeat=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:pu(e),qr(_u(t),e)},In.replace=function(){var t=arguments,e=_u(t[0]);return t.length<3?e:e.replace(t[1],t[2])},In.result=function(t,e,n){var r=-1,o=(e=gi(e,t)).length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[To(e[r])];s===i&&(r=o,s=n),t=Js(s)?s.call(t):s}return t},In.round=wa,In.runInContext=t,In.sample=function(t){return(Ds(t)?Kn:Zr)(t)},In.size=function(t){if(null==t)return 0;if(Hs(t))return su(t)?cn(t):t.length;var e=ho(t);return e==w||e==C?t.size:jr(t).length},In.snakeCase=qu,In.some=function(t,e,n){var r=Ds(t)?Ve:ei;return n&&_o(t,e,n)&&(e=i),r(t,oo(e,3))},In.sortedIndex=function(t,e){return ni(t,e)},In.sortedIndexBy=function(t,e,n){return ri(t,e,oo(n,2))},In.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ws(t[r],e))return r}return-1},In.sortedLastIndex=function(t,e){return ni(t,e,!0)},In.sortedLastIndexBy=function(t,e,n){return ri(t,e,oo(n,2),!0)},In.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ws(t[n],e))return n}return-1},In.startCase=Gu,In.startsWith=function(t,e,n){return t=_u(t),n=null==n?0:or(pu(n),0,t.length),e=si(e),t.slice(n,n+e.length)==e},In.subtract=Aa,In.sum=function(t){return t&&t.length?qe(t,na):0},In.sumBy=function(t,e){return t&&t.length?qe(t,oo(e,2)):0},In.template=function(t,e,n){var r=In.templateSettings;n&&_o(t,e,n)&&(e=i),t=_u(t),e=bu({},e,r,Ki);var o,s,u=bu({},e.imports,r.imports,Ki),a=Ru(u),l=Je(u,a),c=0,h=e.interpolate||mt,f="__p += '",p=St((e.escape||mt).source+"|"+h.source+"|"+(h===Y?ht:mt).source+"|"+(e.evaluate||mt).source+"|$","g"),d="//# sourceURL="+(Mt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(p,(function(e,n,r,i,u,a){return r||(r=i),f+=t.slice(c,a).replace(bt,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(s=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+e.length,e})),f+="';\n";var v=Mt.call(e,"variable")&&e.variable;if(v){if(lt.test(v))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(F,""):f).replace(D,"$1").replace(B,"$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=Yu((function(){return wt(a,d+"return "+f).apply(i,l)}));if(g.source=f,Ks(g))throw g;return g},In.times=function(t,e){if((t=pu(t))<1||t>h)return[];var n=p,r=_n(t,p);e=oo(e),t-=p;for(var i=Ge(r,e);++n<t;)e(n);return i},In.toFinite=fu,In.toInteger=pu,In.toLength=du,In.toLower=function(t){return _u(t).toLowerCase()},In.toNumber=vu,In.toSafeInteger=function(t){return t?or(pu(t),-9007199254740991,h):0===t?t:0},In.toString=_u,In.toUpper=function(t){return _u(t).toUpperCase()},In.trim=function(t,e,n){if((t=_u(t))&&(n||e===i))return Ze(t);if(!t||!(e=si(e)))return t;var r=hn(t),o=hn(e);return yi(r,Qe(r,o),Xe(r,o)+1).join("")},In.trimEnd=function(t,e,n){if((t=_u(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=si(e)))return t;var r=hn(t);return yi(r,0,Xe(r,hn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=_u(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=si(e)))return t;var r=hn(t);return yi(r,Qe(r,hn(e))).join("")},In.truncate=function(t,e){var n=30,r="...";if(Xs(e)){var o="separator"in e?e.separator:o;n="length"in e?pu(e.length):n,r="omission"in e?si(e.omission):r}var s=(t=_u(t)).length;if(rn(t)){var u=hn(t);s=u.length}if(n>=s)return t;var a=n-cn(r);if(a<1)return r;var l=u?yi(u,0,a).join(""):t.slice(0,a);if(o===i)return l+r;if(u&&(a+=l.length-a),iu(o)){if(t.slice(a).search(o)){var c,h=l;for(o.global||(o=St(o.source,_u(ft.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var f=c.index;l=l.slice(0,f===i?a:f)}}else if(t.indexOf(si(o),a)!=a){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},In.unescape=function(t){return(t=_u(t))&&G.test(t)?t.replace(H,pn):t},In.uniqueId=function(t){var e=++jt;return _u(t)+e},In.upperCase=Zu,In.upperFirst=Ku,In.each=_s,In.eachRight=ys,In.first=Ho,sa(In,(ga={},yr(In,(function(t,e){Mt.call(In.prototype,e)||(ga[e]=t)})),ga),{chain:!1}),In.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){In[t].placeholder=In})),Se(["drop","take"],(function(t,e){Fn.prototype[t]=function(n){n=n===i?1:gn(pu(n),0);var r=this.__filtered__&&!e?new Fn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,p),type:t+(r.__dir__<0?"Right":"")}),r},Fn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Fn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Fn.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Fn.prototype[t]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(na)},Fn.prototype.find=function(t){return this.filter(t).head()},Fn.prototype.findLast=function(t){return this.reverse().find(t)},Fn.prototype.invokeMap=Gr((function(t,e){return"function"==typeof t?new Fn(this):this.map((function(n){return Or(n,t,e)}))})),Fn.prototype.reject=function(t){return this.filter(js(oo(t)))},Fn.prototype.slice=function(t,e){t=pu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=pu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fn.prototype.toArray=function(){return this.take(p)},yr(Fn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=In[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(In.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Fn,l=u[0],c=a||Ds(e),h=function(t){var e=o.apply(In,Ue([t],u));return r&&f?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(a=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=s&&!f,v=a&&!p;if(!s&&c){e=v?e:new Fn(this);var g=t.apply(e,u);return g.__actions__.push({func:fs,args:[h],thisArg:i}),new Nn(g,f)}return d&&v?t.apply(this,u):(g=this.thru(h),d?r?g.value()[0]:g.value():g)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ot[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);In.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ds(i)?i:[],t)}return this[n]((function(n){return e.apply(Ds(n)?n:[],t)}))}})),yr(Fn.prototype,(function(t,e){var n=In[e];if(n){var r=n.name+"";Mt.call(kn,r)||(kn[r]=[]),kn[r].push({name:e,func:n})}})),kn[zi(i,2).name]=[{name:"wrapper",func:i}],Fn.prototype.clone=function(){var t=new Fn(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},Fn.prototype.reverse=function(){if(this.__filtered__){var t=new Fn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ds(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=_n(e,t+s);break;case"takeRight":t=gn(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,c=this.__iteratees__,h=c.length,f=0,p=_n(a,this.__takeCount__);if(!n||!r&&i==a&&p==a)return hi(t,this.__actions__);var d=[];t:for(;a--&&f<p;){for(var v=-1,g=t[l+=e];++v<h;){var _=c[v],y=_.iteratee,m=_.type,b=y(g);if(2==m)g=b;else if(!b){if(1==m)continue t;break t}}d[f++]=g}return d},In.prototype.at=ps,In.prototype.chain=function(){return hs(this)},In.prototype.commit=function(){return new Nn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=hu(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},In.prototype.plant=function(t){for(var e,n=this;n instanceof Ln;){var r=Io(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},In.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var e=t;return this.__actions__.length&&(e=new Fn(this)),(e=e.reverse()).__actions__.push({func:fs,args:[Xo],thisArg:i}),new Nn(e,this.__chain__)}return this.thru(Xo)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,Kt&&(In.prototype[Kt]=function(){return this}),In}();he._=dn,(r=function(){return dn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},154:t=>{"use strict";t.exports=e},488:t=>{"use strict";t.exports=r},472:e=>{"use strict";e.exports=t},848:t=>{"use strict";t.exports=n}},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=function(){if("object"==typeof globalThis)return globalThis;try{return this||new 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:()=>It});const 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;const n=this.t;if(e&&void 0===t){const 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}}const o=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,n))(e)})(t):t;var a;const l=window,c=l.trustedTypes,h=c?c.emptyScript:"",f=l.reactiveElementPolyfillSupport,p={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}},d=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:d},g="finalized";class _ 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)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const 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){const i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!0;const 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")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(o(t))}else void 0!==t&&e.push(o(t));return e}static _$Ep(t,e){const 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)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||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;const r=null!==(n=this.shadowRoot)&&void 0!==n?n:this.attachShadow(this.constructor.shadowRootOptions);return((n,r)=>{e?n.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((e=>{const r=document.createElement("style"),i=t.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,n.appendChild(r)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=v){var r;const i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){const o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:p).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:p;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||d)(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)}const 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;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?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)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?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){}}var y;_[g]=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:_}),(null!==(a=l.reactiveElementVersions)&&void 0!==a?a:l.reactiveElementVersions=[]).push("1.6.3");const m=window,b=m.trustedTypes,x=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,$="?"+A,S=`<${$}>`,E=document,C=()=>E.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,R="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,M=/>/g,j=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,T=/"/g,z=/^(?:script|style|textarea|title)$/i,I=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),W=I(1),L=(I(2),Symbol.for("lit-noChange")),N=Symbol.for("lit-nothing"),F=new WeakMap,D=E.createTreeWalker(E,129,null,!1);function B(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==x?x.createHTML(e):e}const H=(t,e)=>{const n=t.length-1,r=[];let i,o=2===e?"<svg>":"",s=P;for(let e=0;e<n;e++){const n=t[e];let u,a,l=-1,c=0;for(;c<n.length&&(s.lastIndex=c,a=s.exec(n),null!==a);)c=s.lastIndex,s===P?"!--"===a[1]?s=U:void 0!==a[1]?s=M:void 0!==a[2]?(z.test(a[2])&&(i=RegExp("</"+a[2],"g")),s=j):void 0!==a[3]&&(s=j):s===j?">"===a[0]?(s=null!=i?i:P,l=-1):void 0===a[1]?l=-2:(l=s.lastIndex-a[2].length,u=a[1],s=void 0===a[3]?j:'"'===a[3]?T:V):s===T||s===V?s=j:s===U||s===M?s=P:(s=j,i=void 0);const h=s===j&&t[e+1].startsWith("/>")?" ":"";o+=s===P?n+S:l>=0?(r.push(u),n.slice(0,l)+w+n.slice(l)+A+h):n+A+(-2===l?(r.push(void 0),e):h)}return[B(t,o+(t[n]||"<?>")+(2===e?"</svg>":"")),r]};class q{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0;const s=t.length-1,u=this.parts,[a,l]=H(t,e);if(this.el=q.createElement(a,n),D.currentNode=this.el.content,2===e){const 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()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(w)||e.startsWith(A)){const n=l[o++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+w).split(A),e=/([.?@])?(.*)/.exec(n);u.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?X:"@"===e[1]?tt:J})}else u.push({type:6,index:i})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(A),e=t.length-1;if(e>0){r.textContent=b?b.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],C()),D.nextNode(),u.push({type:2,index:++i});r.append(t[e],C())}}}else if(8===r.nodeType)if(r.data===$)u.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(A,t+1));)u.push({type:7,index:i}),t+=A.length-1}i++}}static createElement(t,e){const n=E.createElement("template");return n.innerHTML=t,n}}function G(t,e,n=t,r){var i,o,s,u;if(e===L)return e;let a=void 0!==r?null===(i=n._$Co)||void 0===i?void 0:i[r]:n._$Cl;const l=O(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null===(o=null==a?void 0:a._$AO)||void 0===o||o.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,n,r)),void 0!==r?(null!==(s=(u=n)._$Co)&&void 0!==s?s:u._$Co=[])[r]=a:n._$Cl=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,r)),e}class Z{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;const{el:{content:n},parts:r}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).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 K(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new et(o,this,t)),this._$AV.push(e),a=r[++u]}s!==(null==a?void 0:a.index)&&(o=D.nextNode(),s++)}return D.currentNode=E,i}v(t){let e=0;for(const 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 K{constructor(t,e,n,r){var i;this.type=2,this._$AH=N,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)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const 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){t=G(this,t,e),O(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?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!==N&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=q.createElement(B(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(n);else{const t=new Z(i,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new q(t)),e}T(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const i of t)r===e.length?e.push(n=new K(this.k(C()),this.k(C()),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)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,n,r,i){this.type=1,this._$AH=N,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=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const i=this.strings;let o=!1;if(void 0===i)t=G(this,t,e,0),o=!O(t)||t!==this._$AH&&t!==L,o&&(this._$AH=t);else{const r=t;let s,u;for(t=i[0],s=0;s<i.length-1;s++)u=G(this,r[n+s],e,s),u===L&&(u=this._$AH[s]),o||(o=!O(u)||u!==this._$AH[s]),u===N?t=N:t!==N&&(t+=(null!=u?u:"")+i[s+1]),this._$AH[s]=u}o&&!r&&this.j(t)}j(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===N?void 0:t}}const Q=b?b.emptyScript:"";class X extends J{constructor(){super(...arguments),this.type=4}j(t){t&&t!==N?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends J{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=G(this,t,e,0))&&void 0!==n?n:N)===L)return;const r=this._$AH,i=t===N&&r!==N||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==N&&(r===N||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?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class et{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){G(this,t)}}const nt=m.litHtmlPolyfillSupport;null==nt||nt(q,K),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.8.0");const rt=window,it=rt.ShadowRoot&&(void 0===rt.ShadyCSS||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol(),st=new WeakMap;class ut{constructor(t,e,n){if(this._$cssResult$=!0,n!==ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(it&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=st.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&st.set(e,t))}return t}toString(){return this.cssText}}const at=it?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new ut("string"==typeof t?t:t+"",void 0,ot))(e)})(t):t;var lt;const ct=window,ht=ct.trustedTypes,ft=ht?ht.emptyScript:"",pt=ct.reactiveElementPolyfillSupport,dt={toAttribute(t,e){switch(e){case Boolean:t=t?ft: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}},vt=(t,e)=>e!==t&&(e==e||t==t),gt={attribute:!0,type:String,converter:dt,reflect:!1,hasChanged:vt},_t="finalized";class yt 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)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=gt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const 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){const i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||gt}static finalize(){if(this.hasOwnProperty(_t))return!1;this[_t]=!0;const 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")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(at(t))}else void 0!==t&&e.push(at(t));return e}static _$Ep(t,e){const 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)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||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;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{it?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=rt.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=gt){var r;const i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){const o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:dt).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:dt;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||vt)(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)}const 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;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?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)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?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){}}var mt,bt;yt[_t]=!0,yt.elementProperties=new Map,yt.elementStyles=[],yt.shadowRootOptions={mode:"open"},null==pt||pt({ReactiveElement:yt}),(null!==(lt=ct.reactiveElementVersions)&&void 0!==lt?lt:ct.reactiveElementVersions=[]).push("1.6.3");class xt extends yt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{var r,i;const o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=o._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=s=new K(e.insertBefore(C(),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)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return L}}xt.finalized=!0,xt._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.3.3");const At=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{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)}},$t=(t,e,n)=>{e.constructor.createProperty(n,t)};function St(t){return(e,n)=>void 0!==n?$t(t,e,n):At(t,e)}function Et(t){return St({...t,state:!0})}function Ct(t,e){return(({finisher:t,descriptor:e})=>(n,r)=>{var i;if(void 0===r){const r=null!==(i=n.originalKey)&&void 0!==i?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}{const i=n.constructor;void 0!==e&&Object.defineProperty(n,r,e(r)),null==t||t(i,r)}})({descriptor:n=>{const r={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const 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?void 0:n.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}var Ot;null===(Ot=window.HTMLSlotElement)||void 0===Ot||Ot.prototype.assignedElements;var kt=s(472),Rt=s(68),Pt=s(154),Ut=s.n(Pt),Mt=s(848),jt=s(944),Vt=s(488),Tt=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};const zt=((t,...e)=>{const n=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]);return new ut(n,t,ot)})`
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))`
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
- `;let It=class extends xt{static get styles(){return[zt]}constructor(){super(),this.decimals=0,this.loading=!1,this.config||(this.config=this.getDefaultConfig()),this.updateComplete.then((()=>{this.resizeObserver=new ResizeObserver((0,jt.debounce)((t=>{const 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")){const t=this.assetAttribute[1],e=kt.AssetModelUtil.getAttributeDescriptor(t.name,this.asset.type);this.unit=Pt.Util.resolveUnits(Pt.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)||void 0===e||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;const 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?void 0:n.options)||void 0===r?void 0:r.staticZones)||void 0===i||i.push(u)})),this.min&&(null===(r=null===(n=this.config)||void 0===n?void 0:n.options)||void 0===r?void 0:r.staticZones)&&(this.config.options.staticZones[0].min=this.min),this.gauge&&this.gauge.setOptions(null===(i=this.config)||void 0===i?void 0:i.options))}setupGauge(){var t;this.gauge=new Rt.Gauge(this._gaugeElem),this.gauge.setOptions(null===(t=this.config)||void 0===t?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){if(!t)return"unset";const n=t.width,r=1.5*(e?t.height-this._detailsElem.clientHeight:t.height);return Math.min(n,r)+"px"}shouldShowLabel(t){return t.width>70&&t.height>100}getLabelSize(t){return t<120?"s":t<240?"m":t<320?"l":"xl"}render(){const 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 W`
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`
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?W`
82
+ ${e?I`
83
83
  <div class="mainvalue-wrapper">
84
- <span class="main-number-icon">${this.asset?(0,Vt.getAssetDescriptorIconTemplate)(kt.AssetModelUtil.getAssetDescriptor(this.asset.type)):""}</span>
84
+ <span class="main-number-icon">${this.asset?(0,tM.getAssetDescriptorIconTemplate)(tC.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,7 +89,8 @@
89
89
  </div>
90
90
  </div>
91
91
  </div>
92
- ${this.loading?W`
93
- <span>${Mt.i18next.t("loading")}</span>
92
+ ${this.loading?I`
93
+ <span>${tP.i18next.t("loading")}</span>
94
94
  `:void 0}
95
- `}loadData(t){return function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){const e=(yield Ut().rest.api.AssetResource.queryAssets({ids:[t.id]})).data,n=[t].map((t=>{const 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]}))}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}}}};var Wt;Tt([St({type:Object})],It.prototype,"attrRef",void 0),Tt([St({type:Object})],It.prototype,"asset",void 0),Tt([St({type:Object})],It.prototype,"assetAttribute",void 0),Tt([St()],It.prototype,"value",void 0),Tt([St()],It.prototype,"decimals",void 0),Tt([St()],It.prototype,"unit",void 0),Tt([St()],It.prototype,"min",void 0),Tt([St()],It.prototype,"max",void 0),Tt([St()],It.prototype,"thresholds",void 0),Tt([St()],It.prototype,"config",void 0),Tt([St({type:String})],It.prototype,"realm",void 0),Tt([Et()],It.prototype,"loading",void 0),Tt([Et()],It.prototype,"gauge",void 0),Tt([Et()],It.prototype,"gaugeSize",void 0),Tt([Ct("#chart")],It.prototype,"_gaugeElem",void 0),Tt([Ct("#chart-wrapper")],It.prototype,"_wrapperElem",void 0),Tt([Ct("#details-container")],It.prototype,"_detailsElem",void 0),It=Tt([(Wt="or-gauge",t=>"function"==typeof t?((t,e)=>(customElements.define(t,e),e))(Wt,t):((t,e)=>{const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(Wt,t))],It)})(),u})()));
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})());
96
+ //# sourceMappingURL=index.bundle.js.map