mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-08 22:48:21 -05:00
4 lines
196 KiB
JavaScript
4 lines
196 KiB
JavaScript
/*! shiny 1.6.0.9021 | (c) 2012-2021 RStudio, PBC. | License: GPL-3 | file LICENSE */
|
|
(function(){var ly=Object.create;var Xi=Object.defineProperty;var fy=Object.getOwnPropertyDescriptor;var cy=Object.getOwnPropertyNames;var py=Object.getPrototypeOf,dy=Object.prototype.hasOwnProperty;var my=function(e){return Xi(e,"__esModule",{value:!0})};var v=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var vy=function(e,t,r){if(t&&typeof t=="object"||typeof t=="function")for(var n=cy(t),i=0,o=n.length,a;i<o;i++)a=n[i],!dy.call(e,a)&&a!=="default"&&Xi(e,a,{get:function(u){return t[u]}.bind(null,a),enumerable:!(r=fy(t,a))||r.enumerable});return e},w=function(e){return vy(my(Xi(e!=null?ly(py(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};var E=v(function(CP,zu){zu.exports=window.jQuery});var z=v(function($P,Wu){var Jr=function(e){return e&&e.Math==Math&&e};Wu.exports=Jr(typeof globalThis=="object"&&globalThis)||Jr(typeof window=="object"&&window)||Jr(typeof self=="object"&&self)||Jr(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var M=v(function(MP,Yu){Yu.exports=function(e){try{return!!e()}catch(t){return!0}}});var pe=v(function(VP,Xu){var yy=M();Xu.exports=!yy(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Zr=v(function(Zu){"use strict";var Qu={}.propertyIsEnumerable,Ju=Object.getOwnPropertyDescriptor,hy=Ju&&!Qu.call({1:2},1);Zu.f=hy?function(t){var r=Ju(this,t);return!!r&&r.enumerable}:Qu});var Ct=v(function(LP,es){es.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var He=v(function(zP,ts){var gy={}.toString;ts.exports=function(e){return gy.call(e).slice(8,-1)}});var ur=v(function(UP,rs){var by=M(),jy=He(),wy="".split;rs.exports=by(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return jy(e)=="String"?wy.call(e,""):Object(e)}:Object});var Ge=v(function(HP,ns){ns.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}});var Pe=v(function(GP,is){var _y=ur(),xy=Ge();is.exports=function(e){return _y(xy(e))}});var te=v(function(KP,os){os.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}});var Nt=v(function(WP,as){var en=te();as.exports=function(e,t){if(!en(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!en(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!en(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!en(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}});var be=v(function(YP,us){var Oy=Ge();us.exports=function(e){return Object(Oy(e))}});var le=v(function(XP,ss){var Sy=be(),Iy={}.hasOwnProperty;ss.exports=Object.hasOwn||function(t,r){return Iy.call(Sy(t),r)}});var Ji=v(function(QP,fs){var Ry=z(),ls=te(),Qi=Ry.document,Py=ls(Qi)&&ls(Qi.createElement);fs.exports=function(e){return Py?Qi.createElement(e):{}}});var Zi=v(function(JP,cs){var qy=pe(),Ty=M(),Ey=Ji();cs.exports=!qy&&!Ty(function(){return Object.defineProperty(Ey("div"),"a",{get:function(){return 7}}).a!=7})});var wt=v(function(ds){var ky=pe(),By=Zr(),Dy=Ct(),Cy=Pe(),Ny=Nt(),Ay=le(),$y=Zi(),ps=Object.getOwnPropertyDescriptor;ds.f=ky?ps:function(t,r){if(t=Cy(t),r=Ny(r,!0),$y)try{return ps(t,r)}catch(n){}if(Ay(t,r))return Dy(!By.f.call(t,r),t[r])}});var K=v(function(eq,ms){var My=te();ms.exports=function(e){if(!My(e))throw TypeError(String(e)+" is not an object");return e}});var de=v(function(hs){var Vy=pe(),Fy=Zi(),vs=K(),Ly=Nt(),ys=Object.defineProperty;hs.f=Vy?ys:function(t,r,n){if(vs(t),r=Ly(r,!0),vs(n),Fy)try{return ys(t,r,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var xe=v(function(rq,gs){var zy=pe(),Uy=de(),Hy=Ct();gs.exports=zy?function(e,t,r){return Uy.f(e,t,Hy(1,r))}:function(e,t,r){return e[t]=r,e}});var tn=v(function(nq,js){var bs=z(),Gy=xe();js.exports=function(e,t){try{Gy(bs,e,t)}catch(r){bs[e]=t}return t}});var rn=v(function(iq,_s){var Ky=z(),Wy=tn(),ws="__core-js_shared__",Yy=Ky[ws]||Wy(ws,{});_s.exports=Yy});var to=v(function(oq,xs){var eo=rn(),Xy=Function.toString;typeof eo.inspectSource!="function"&&(eo.inspectSource=function(e){return Xy.call(e)});xs.exports=eo.inspectSource});var Is=v(function(aq,Ss){var Qy=z(),Jy=to(),Os=Qy.WeakMap;Ss.exports=typeof Os=="function"&&/native code/.test(Jy(Os))});var sr=v(function(uq,Rs){Rs.exports=!1});var lr=v(function(sq,qs){var Zy=sr(),Ps=rn();(qs.exports=function(e,t){return Ps[e]||(Ps[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.14.0",mode:Zy?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})});var nn=v(function(lq,Ts){var eh=0,th=Math.random();Ts.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++eh+th).toString(36)}});var fr=v(function(fq,ks){var rh=lr(),nh=nn(),Es=rh("keys");ks.exports=function(e){return Es[e]||(Es[e]=nh(e))}});var cr=v(function(cq,Bs){Bs.exports={}});var At=v(function(pq,As){var ih=Is(),oh=z(),ah=te(),uh=xe(),ro=le(),no=rn(),sh=fr(),lh=cr(),Ds="Object already initialized",fh=oh.WeakMap,on,pr,an,ch=function(e){return an(e)?pr(e):on(e,{})},ph=function(e){return function(t){var r;if(!ah(t)||(r=pr(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};ih||no.state?(ot=no.state||(no.state=new fh),Cs=ot.get,io=ot.has,Ns=ot.set,on=function(e,t){if(io.call(ot,e))throw new TypeError(Ds);return t.facade=e,Ns.call(ot,e,t),t},pr=function(e){return Cs.call(ot,e)||{}},an=function(e){return io.call(ot,e)}):(_t=sh("state"),lh[_t]=!0,on=function(e,t){if(ro(e,_t))throw new TypeError(Ds);return t.facade=e,uh(e,_t,t),t},pr=function(e){return ro(e,_t)?e[_t]:{}},an=function(e){return ro(e,_t)});var ot,Cs,io,Ns,_t;As.exports={set:on,get:pr,has:an,enforce:ch,getterFor:ph}});var Ke=v(function(dq,Vs){var dh=z(),$s=xe(),mh=le(),vh=tn(),yh=to(),Ms=At(),hh=Ms.get,gh=Ms.enforce,bh=String(String).split("String");(Vs.exports=function(e,t,r,n){var i=n?!!n.unsafe:!1,o=n?!!n.enumerable:!1,a=n?!!n.noTargetGet:!1,u;if(typeof r=="function"&&(typeof t=="string"&&!mh(r,"name")&&$s(r,"name",t),u=gh(r),u.source||(u.source=bh.join(typeof t=="string"?t:""))),e===dh){o?e[t]=r:vh(t,r);return}else i?!a&&e[t]&&(o=!0):delete e[t];o?e[t]=r:$s(e,t,r)})(Function.prototype,"toString",function(){return typeof this=="function"&&hh(this).source||yh(this)})});var oo=v(function(mq,Fs){var jh=z();Fs.exports=jh});var xt=v(function(vq,zs){var ao=oo(),uo=z(),Ls=function(e){return typeof e=="function"?e:void 0};zs.exports=function(e,t){return arguments.length<2?Ls(ao[e])||Ls(uo[e]):ao[e]&&ao[e][t]||uo[e]&&uo[e][t]}});var at=v(function(yq,Us){var wh=Math.ceil,_h=Math.floor;Us.exports=function(e){return isNaN(e=+e)?0:(e>0?_h:wh)(e)}});var fe=v(function(hq,Hs){var xh=at(),Oh=Math.min;Hs.exports=function(e){return e>0?Oh(xh(e),9007199254740991):0}});var $t=v(function(gq,Gs){var Sh=at(),Ih=Math.max,Rh=Math.min;Gs.exports=function(e,t){var r=Sh(e);return r<0?Ih(r+t,0):Rh(r,t)}});var so=v(function(bq,Ws){var Ph=Pe(),qh=fe(),Th=$t(),Ks=function(e){return function(t,r,n){var i=Ph(t),o=qh(i.length),a=Th(n,o),u;if(e&&r!=r){for(;o>a;)if(u=i[a++],u!=u)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};Ws.exports={includes:Ks(!0),indexOf:Ks(!1)}});var fo=v(function(jq,Ys){var lo=le(),Eh=Pe(),kh=so().indexOf,Bh=cr();Ys.exports=function(e,t){var r=Eh(e),n=0,i=[],o;for(o in r)!lo(Bh,o)&&lo(r,o)&&i.push(o);for(;t.length>n;)lo(r,o=t[n++])&&(~kh(i,o)||i.push(o));return i}});var un=v(function(wq,Xs){Xs.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Mt=v(function(Qs){var Dh=fo(),Ch=un(),Nh=Ch.concat("length","prototype");Qs.f=Object.getOwnPropertyNames||function(t){return Dh(t,Nh)}});var co=v(function(Js){Js.f=Object.getOwnPropertySymbols});var el=v(function(Oq,Zs){var Ah=xt(),$h=Mt(),Mh=co(),Vh=K();Zs.exports=Ah("Reflect","ownKeys")||function(t){var r=$h.f(Vh(t)),n=Mh.f;return n?r.concat(n(t)):r}});var po=v(function(Sq,tl){var Fh=le(),Lh=el(),zh=wt(),Uh=de();tl.exports=function(e,t){for(var r=Lh(t),n=Uh.f,i=zh.f,o=0;o<r.length;o++){var a=r[o];Fh(e,a)||n(e,a,i(t,a))}}});var mo=v(function(Iq,rl){var Hh=M(),Gh=/#|\.prototype\./,dr=function(e,t){var r=Wh[Kh(e)];return r==Xh?!0:r==Yh?!1:typeof t=="function"?Hh(t):!!t},Kh=dr.normalize=function(e){return String(e).replace(Gh,".").toLowerCase()},Wh=dr.data={},Yh=dr.NATIVE="N",Xh=dr.POLYFILL="P";rl.exports=dr});var A=v(function(Rq,nl){var vo=z(),Qh=wt().f,Jh=xe(),Zh=Ke(),eg=tn(),tg=po(),rg=mo();nl.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o,a,u,s,l,f;if(n?a=vo:i?a=vo[r]||eg(r,{}):a=(vo[r]||{}).prototype,a)for(u in t){if(l=t[u],e.noTargetGet?(f=Qh(a,u),s=f&&f.value):s=a[u],o=rg(n?u:r+(i?".":"#")+u,e.forced),!o&&s!==void 0){if(typeof l==typeof s)continue;tg(l,s)}(e.sham||s&&s.sham)&&Jh(l,"sham",!0),Zh(a,u,l,e)}}});var mr=v(function(Pq,il){"use strict";var ng=M();il.exports=function(e,t){var r=[][e];return!!r&&ng(function(){r.call(null,t||function(){throw 1},1)})}});var vr=v(function(Tq,ul){ul.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"});var yr=v(function(Eq,sl){var sg=Ge(),lg=vr(),sn="["+lg+"]",fg=RegExp("^"+sn+sn+"*"),cg=RegExp(sn+sn+"*$"),yo=function(e){return function(t){var r=String(sg(t));return e&1&&(r=r.replace(fg,"")),e&2&&(r=r.replace(cg,"")),r}};sl.exports={start:yo(1),end:yo(2),trim:yo(3)}});var cl=v(function(kq,fl){var pg=z(),dg=yr().trim,ll=vr(),ln=pg.parseInt,mg=/^[+-]?0[Xx]/,vg=ln(ll+"08")!==8||ln(ll+"0x16")!==22;fl.exports=vg?function(t,r){var n=dg(String(t));return ln(n,r>>>0||(mg.test(n)?16:10))}:ln});var jo=v(function(zq,Ol){"use strict";var _g=K();Ol.exports=function(){var e=_g(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}});var _o=v(function(wo){"use strict";var Sl=M();function Il(e,t){return RegExp(e,t)}wo.UNSUPPORTED_Y=Sl(function(){var e=Il("a","y");return e.lastIndex=2,e.exec("abcd")!=null});wo.BROKEN_CARET=Sl(function(){var e=Il("^r","gy");return e.lastIndex=2,e.exec("str")!=null})});var hr=v(function(Hq,Tl){"use strict";var xg=jo(),Rl=_o(),Og=lr(),fn=RegExp.prototype.exec,Sg=Og("native-string-replace",String.prototype.replace),Pl=fn,xo=function(){var e=/a/,t=/b*/g;return fn.call(e,"a"),fn.call(t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),ql=Rl.UNSUPPORTED_Y||Rl.BROKEN_CARET,Oo=/()??/.exec("")[1]!==void 0,Ig=xo||Oo||ql;Ig&&(Pl=function(t){var r=this,n,i,o,a,u=ql&&r.sticky,s=xg.call(r),l=r.source,f=0,c=t;return u&&(s=s.replace("y",""),s.indexOf("g")===-1&&(s+="g"),c=String(t).slice(r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&t[r.lastIndex-1]!=="\n")&&(l="(?: "+l+")",c=" "+c,f++),i=new RegExp("^(?:"+l+")",s)),Oo&&(i=new RegExp("^"+l+"$(?!\\s)",s)),xo&&(n=r.lastIndex),o=fn.call(u?i:r,c),u?o?(o.input=o.input.slice(f),o[0]=o[0].slice(f),o.index=r.lastIndex,r.lastIndex+=o[0].length):r.lastIndex=0:xo&&o&&(r.lastIndex=r.global?o.index+o[0].length:n),Oo&&o&&o.length>1&&Sg.call(o[0],i,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o});Tl.exports=Pl});var Oe=v(function(){"use strict";var Rg=A(),El=hr();Rg({target:"RegExp",proto:!0,forced:/./.exec!==El},{exec:El})});var Bl=v(function(Wq,kl){var Pg=xt();kl.exports=Pg("navigator","userAgent")||""});var gr=v(function(Yq,Al){var qg=z(),So=Bl(),Dl=qg.process,Cl=Dl&&Dl.versions,Nl=Cl&&Cl.v8,Me,cn;Nl?(Me=Nl.split("."),cn=Me[0]<4?1:Me[0]+Me[1]):So&&(Me=So.match(/Edge\/(\d+)/),(!Me||Me[1]>=74)&&(Me=So.match(/Chrome\/(\d+)/),Me&&(cn=Me[1])));Al.exports=cn&&+cn});var pn=v(function(Xq,Ml){var $l=gr(),Tg=M();Ml.exports=!!Object.getOwnPropertySymbols&&!Tg(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$l&&$l<41})});var Io=v(function(Qq,Vl){var Eg=pn();Vl.exports=Eg&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var H=v(function(Jq,zl){var kg=z(),Bg=lr(),Fl=le(),Dg=nn(),Ll=pn(),Cg=Io(),br=Bg("wks"),jr=kg.Symbol,Ng=Cg?jr:jr&&jr.withoutSetter||Dg;zl.exports=function(e){return(!Fl(br,e)||!(Ll||typeof br[e]=="string"))&&(Ll&&Fl(jr,e)?br[e]=jr[e]:br[e]=Ng("Symbol."+e)),br[e]}});var wr=v(function(Zq,Wl){"use strict";Oe();var Ul=Ke(),Ag=hr(),dn=M(),Ro=H(),$g=xe(),Mg=Ro("species"),Po=RegExp.prototype,Vg=!dn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Hl=function(){return"a".replace(/./,"$0")==="$0"}(),Gl=Ro("replace"),Kl=function(){return/./[Gl]?/./[Gl]("a","$0")==="":!1}(),Fg=!dn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"});Wl.exports=function(e,t,r,n){var i=Ro(e),o=!dn(function(){var c={};return c[i]=function(){return 7},""[e](c)!=7}),a=o&&!dn(function(){var c=!1,p=/a/;return e==="split"&&(p={},p.constructor={},p.constructor[Mg]=function(){return p},p.flags="",p[i]=/./[i]),p.exec=function(){return c=!0,null},p[i](""),!c});if(!o||!a||e==="replace"&&!(Vg&&Hl&&!Kl)||e==="split"&&!Fg){var u=/./[i],s=r(i,""[e],function(c,p,m,d,h){var y=p.exec;return y===Ag||y===Po.exec?o&&!h?{done:!0,value:u.call(p,m,d)}:{done:!0,value:c.call(m,p,d)}:{done:!1}},{REPLACE_KEEPS_$0:Hl,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Kl}),l=s[0],f=s[1];Ul(String.prototype,e,l),Ul(Po,i,t==2?function(c,p){return f.call(c,this,p)}:function(c){return f.call(c,this)})}n&&$g(Po[i],"sham",!0)}});var qo=v(function(eT,Xl){var Lg=at(),zg=Ge(),Yl=function(e){return function(t,r){var n=String(zg(t)),i=Lg(r),o=n.length,a,u;return i<0||i>=o?e?"":void 0:(a=n.charCodeAt(i),a<55296||a>56319||i+1===o||(u=n.charCodeAt(i+1))<56320||u>57343?e?n.charAt(i):a:e?n.slice(i,i+2):(a-55296<<10)+(u-56320)+65536)}};Xl.exports={codeAt:Yl(!1),charAt:Yl(!0)}});var mn=v(function(tT,Ql){"use strict";var Ug=qo().charAt;Ql.exports=function(e,t,r){return t+(r?Ug(e,t).length:1)}});var Zl=v(function(rT,Jl){var Hg=be(),Gg=Math.floor,Kg="".replace,Wg=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yg=/\$([$&'`]|\d{1,2})/g;Jl.exports=function(e,t,r,n,i,o){var a=r+e.length,u=n.length,s=Yg;return i!==void 0&&(i=Hg(i),s=Wg),Kg.call(o,s,function(l,f){var c;switch(f.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":c=i[f.slice(1,-1)];break;default:var p=+f;if(p===0)return l;if(p>u){var m=Gg(p/10);return m===0?l:m<=u?n[m-1]===void 0?f.charAt(1):n[m-1]+f.charAt(1):l}c=n[p-1]}return c===void 0?"":c})}});var _r=v(function(nT,ef){var Xg=He(),Qg=hr();ef.exports=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(Xg(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Qg.call(e,t)}});var vn=v(function(oT,rf){var lb=H(),fb=lb("toStringTag"),tf={};tf[fb]="z";rf.exports=String(tf)==="[object z]"});var To=v(function(aT,nf){var cb=vn(),yn=He(),pb=H(),db=pb("toStringTag"),mb=yn(function(){return arguments}())=="Arguments",vb=function(e,t){try{return e[t]}catch(r){}};nf.exports=cb?yn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=vb(t=Object(e),db))=="string"?r:mb?yn(t):(n=yn(t))=="Object"&&typeof t.callee=="function"?"Arguments":n}});var af=v(function(uT,of){"use strict";var yb=vn(),hb=To();of.exports=yb?{}.toString:function(){return"[object "+hb(this)+"]"}});var ff=v(function(fT,lf){var Rb=z(),Pb=yr().trim,qb=vr(),ko=Rb.parseFloat,Tb=1/ko(qb+"-0")!=-Infinity;lf.exports=Tb?function(t){var r=Pb(String(t)),n=ko(r);return n===0&&r.charAt(0)=="-"?-0:n}:ko});var df=v(function(pT,pf){var kb=He();pf.exports=function(e){if(typeof e!="number"&&kb(e)!="Number")throw TypeError("Incorrect invocation");return+e}});var xr=v(function(mT,yf){var Cb=He();yf.exports=Array.isArray||function(t){return Cb(t)=="Array"}});var Or=v(function(vT,hf){"use strict";var Nb=Nt(),Ab=de(),$b=Ct();hf.exports=function(e,t,r){var n=Nb(t);n in e?Ab.f(e,n,$b(0,r)):e[n]=r}});var gn=v(function(yT,bf){var Mb=te(),gf=xr(),Vb=H(),Fb=Vb("species");bf.exports=function(e,t){var r;return gf(e)&&(r=e.constructor,typeof r=="function"&&(r===Array||gf(r.prototype))?r=void 0:Mb(r)&&(r=r[Fb],r===null&&(r=void 0))),new(r===void 0?Array:r)(t===0?0:t)}});var Vt=v(function(hT,jf){var Lb=M(),zb=H(),Ub=gr(),Hb=zb("species");jf.exports=function(e){return Ub>=51||!Lb(function(){var t=[],r=t.constructor={};return r[Hb]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Sr=v(function(wT,Rf){var Tj=fo(),Ej=un();Rf.exports=Object.keys||function(t){return Tj(t,Ej)}});var Tf=v(function(xT,qf){var Nj=te(),Aj=He(),$j=H(),Mj=$j("match");qf.exports=function(e){var t;return Nj(e)&&((t=e[Mj])!==void 0?!!t:Aj(e)=="RegExp")}});var Ft=v(function(OT,Ef){Ef.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}});var Bo=v(function(ST,Bf){var kf=K(),Vj=Ft(),Fj=H(),Lj=Fj("species");Bf.exports=function(e,t){var r=kf(e).constructor,n;return r===void 0||(n=kf(r)[Lj])==null?t:Vj(n)}});var Vo=v(function(XT,Jf){var iw=Ft();Jf.exports=function(e,t,r){if(iw(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}});var Ut=v(function(QT,ec){var ow=Vo(),aw=ur(),uw=be(),sw=fe(),lw=gn(),Zf=[].push,ut=function(e){var t=e==1,r=e==2,n=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,f,c){for(var p=uw(s),m=aw(p),d=ow(l,f,3),h=sw(m.length),y=0,g=c||lw,_=t?g(s,h):r||a?g(s,0):void 0,P,b;h>y;y++)if((u||y in m)&&(P=m[y],b=d(P,y,p),e))if(t)_[y]=b;else if(b)switch(e){case 3:return!0;case 5:return P;case 6:return y;case 2:Zf.call(_,P)}else switch(e){case 4:return!1;case 7:Zf.call(_,P)}return o?-1:n||i?i:_}};ec.exports={forEach:ut(0),map:ut(1),filter:ut(2),some:ut(3),every:ut(4),find:ut(5),findIndex:ut(6),filterOut:ut(7)}});var rc=v(function(JT,tc){var fw=pe(),cw=de(),pw=K(),dw=Sr();tc.exports=fw?Object.defineProperties:function(t,r){pw(t);for(var n=dw(r),i=n.length,o=0,a;i>o;)cw.f(t,a=n[o++],r[a]);return t}});var ic=v(function(ZT,nc){var mw=xt();nc.exports=mw("document","documentElement")});var Ht=v(function(eE,fc){var vw=K(),yw=rc(),oc=un(),hw=cr(),gw=ic(),bw=Ji(),jw=fr(),ac=">",uc="<",Fo="prototype",Lo="script",sc=jw("IE_PROTO"),zo=function(){},lc=function(e){return uc+Lo+ac+e+uc+"/"+Lo+ac},ww=function(e){e.write(lc("")),e.close();var t=e.parentWindow.Object;return e=null,t},_w=function(){var e=bw("iframe"),t="java"+Lo+":",r;return e.style.display="none",gw.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(lc("document.F=Object")),r.close(),r.F},Uo,_n=function(){try{Uo=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_n=Uo?ww(Uo):_w();for(var e=oc.length;e--;)delete _n[Fo][oc[e]];return _n()};hw[sc]=!0;fc.exports=Object.create||function(t,r){var n;return t!==null?(zo[Fo]=vw(t),n=new zo,zo[Fo]=null,n[sc]=t):n=_n(),r===void 0?n:yw(n,r)}});var Ko=v(function(tE,cc){var xw=H(),Ow=Ht(),Sw=de(),Ho=xw("unscopables"),Go=Array.prototype;Go[Ho]==null&&Sw.f(Go,Ho,{configurable:!0,value:Ow(null)});cc.exports=function(e){Go[Ho][e]=!0}});var mc=v(function(nE,dc){var qw=te();dc.exports=function(e){if(!qw(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}});var Pr=v(function(iE,vc){var Tw=K(),Ew=mc();vc.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,r.call(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return Tw(i),Ew(o),e?r.call(i,o):i.__proto__=o,i}}():void 0)});var Yo=v(function(aE,yc){var Dw=M();yc.exports=!Dw(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Gt=v(function(uE,gc){var Cw=le(),Nw=be(),Aw=fr(),$w=Yo(),hc=Aw("IE_PROTO"),Mw=Object.prototype;gc.exports=$w?Object.getPrototypeOf:function(e){return e=Nw(e),Cw(e,hc)?e[hc]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Mw:null}});var _c=v(function(lE,wc){"use strict";var Hw=Ft(),Gw=te(),jc=[].slice,Xo={},Kw=function(e,t,r){if(!(t in Xo)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Xo[t]=Function("C,a","return new C("+n.join(",")+")")}return Xo[t](e,r)};wc.exports=Function.bind||function(t){var r=Hw(this),n=jc.call(arguments,1),i=function(){var a=n.concat(jc.call(arguments));return this instanceof i?Kw(r,a.length,a):r.apply(t,a)};return Gw(r.prototype)&&(i.prototype=r.prototype),i}});var kc=v(function(cE,Ec){var Zw=Pe(),qc=Mt().f,e_={}.toString,Tc=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t_=function(e){try{return qc(e)}catch(t){return Tc.slice()}};Ec.exports.f=function(t){return Tc&&e_.call(t)=="[object Window]"?t_(t):qc(Zw(t))}});var Jo=v(function(Bc){var r_=H();Bc.f=r_});var Zo=v(function(dE,Cc){var Dc=oo(),n_=le(),i_=Jo(),o_=de().f;Cc.exports=function(e){var t=Dc.Symbol||(Dc.Symbol={});n_(t,e)||o_(t,e,{value:i_.f(e)})}});var qr=v(function(mE,Ac){var a_=de().f,u_=le(),s_=H(),Nc=s_("toStringTag");Ac.exports=function(e,t,r){e&&!u_(e=r?e:e.prototype,Nc)&&a_(e,Nc,{configurable:!0,value:t})}});var Xt=v(function(gE,op){op.exports={}});var ba=v(function(bE,lp){"use strict";var B_=M(),ap=Gt(),D_=xe(),C_=le(),N_=H(),A_=sr(),ya=N_("iterator"),up=!1,$_=function(){return this},Rt,ha,ga;[].keys&&(ga=[].keys(),"next"in ga?(ha=ap(ap(ga)),ha!==Object.prototype&&(Rt=ha)):up=!0);var sp=Rt==null||B_(function(){var e={};return Rt[ya].call(e)!==e});sp&&(Rt={});(!A_||sp)&&!C_(Rt,ya)&&D_(Rt,ya,$_);lp.exports={IteratorPrototype:Rt,BUGGY_SAFARI_ITERATORS:up}});var cp=v(function(jE,fp){"use strict";var M_=ba().IteratorPrototype,V_=Ht(),F_=Ct(),L_=qr(),z_=Xt(),U_=function(){return this};fp.exports=function(e,t,r){var n=t+" Iterator";return e.prototype=V_(M_,{next:F_(1,r)}),L_(e,n,!1,!0),z_[n]=U_,e}});var _a=v(function(wE,jp){"use strict";var H_=A(),G_=cp(),pp=Gt(),dp=Pr(),K_=qr(),mp=xe(),W_=Ke(),Y_=H(),ja=sr(),vp=Xt(),yp=ba(),wa=yp.IteratorPrototype,Pn=yp.BUGGY_SAFARI_ITERATORS,Dr=Y_("iterator"),hp="keys",qn="values",gp="entries",bp=function(){return this};jp.exports=function(e,t,r,n,i,o,a){G_(r,t,n);var u=function(g){if(g===i&&p)return p;if(!Pn&&g in f)return f[g];switch(g){case hp:return function(){return new r(this,g)};case qn:return function(){return new r(this,g)};case gp:return function(){return new r(this,g)}}return function(){return new r(this)}},s=t+" Iterator",l=!1,f=e.prototype,c=f[Dr]||f["@@iterator"]||i&&f[i],p=!Pn&&c||u(i),m=t=="Array"&&f.entries||c,d,h,y;if(m&&(d=pp(m.call(new e)),wa!==Object.prototype&&d.next&&(!ja&&pp(d)!==wa&&(dp?dp(d,wa):typeof d[Dr]!="function"&&mp(d,Dr,bp)),K_(d,s,!0,!0),ja&&(vp[s]=bp))),i==qn&&c&&c.name!==qn&&(l=!0,p=function(){return c.call(this)}),(!ja||a)&&f[Dr]!==p&&mp(f,Dr,p),vp[t]=p,i)if(h={values:u(qn),keys:o?p:u(hp),entries:u(gp)},a)for(y in h)(Pn||l||!(y in f))&&W_(f,y,h[y]);else H_({target:t,proto:!0,forced:Pn||l},h);return h}});var $=v(function(_E,Op){"use strict";var X_=Pe(),xa=Ko(),wp=Xt(),_p=At(),Q_=_a(),xp="Array Iterator",J_=_p.set,Z_=_p.getterFor(xp);Op.exports=Q_(Array,"Array",function(e,t){J_(this,{type:xp,target:X_(e),index:0,kind:t})},function(){var e=Z_(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");wp.Arguments=wp.Array;xa("keys");xa("values");xa("entries")});var Oa=v(function(OE,Rp){Rp.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Np=v(function(VE,Cp){var px=M(),Bp=vr(),Dp="\u200B\x85\u180E";Cp.exports=function(e){return px(function(){return!!Bp[e]()||Dp[e]()!=Dp||Bp[e].name!==e})}});var Fp=v(function(nk,Vp){var xx=te(),Mp=Pr();Vp.exports=function(e,t,r){var n,i;return Mp&&typeof(n=t.constructor)=="function"&&n!==r&&xx(i=n.prototype)&&i!==r.prototype&&Mp(e,i),e}});var Jd=v(function(zN,Qd){Qd.exports=Object.is||function(t,r){return t===r?t!==0||1/t==1/r:t!=t&&r!=r}});var sm=v(function(_1,um){var vI=pe(),yI=Sr(),hI=Pe(),gI=Zr().f,am=function(e){return function(t){for(var r=hI(t),n=yI(r),i=n.length,o=0,a=[],u;i>o;)u=n[o++],(!vI||gI.call(r,u))&&a.push(e?[u,r[u]]:r[u]);return a}};um.exports={entries:am(!0),values:am(!1)}});var fm=v(function(O1,lm){var wI=K();lm.exports=function(e){var t=e.return;if(t!==void 0)return wI(t.call(e)).value}});var pm=v(function(S1,cm){var _I=K(),xI=fm();cm.exports=function(e,t,r,n){try{return n?t(_I(r)[0],r[1]):t(r)}catch(i){throw xI(e),i}}});var mm=v(function(I1,dm){var OI=H(),SI=Xt(),II=OI("iterator"),RI=Array.prototype;dm.exports=function(e){return e!==void 0&&(SI.Array===e||RI[II]===e)}});var ym=v(function(R1,vm){var PI=To(),qI=Xt(),TI=H(),EI=TI("iterator");vm.exports=function(e){if(e!=null)return e[EI]||e["@@iterator"]||qI[PI(e)]}});var bm=v(function(P1,gm){"use strict";var kI=Vo(),BI=be(),DI=pm(),CI=mm(),NI=fe(),hm=Or(),AI=ym();gm.exports=function(t){var r=BI(t),n=typeof this=="function"?this:Array,i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0,u=AI(r),s=0,l,f,c,p,m,d;if(a&&(o=kI(o,i>2?arguments[2]:void 0,2)),u!=null&&!(n==Array&&CI(u)))for(p=u.call(r),m=p.next,f=new n;!(c=m.call(p)).done;s++)d=a?DI(p,o,[c.value,s],!0):c.value,hm(f,s,d);else for(l=NI(r.length),f=new n(l);l>s;s++)d=a?o(r[s],s):r[s],hm(f,s,d);return f.length=s,f}});var Om=v(function(q1,xm){var $I=H(),jm=$I("iterator"),wm=!1;try{_m=0,nu={next:function(){return{done:!!_m++}},return:function(){wm=!0}},nu[jm]=function(){return this},Array.from(nu,function(){throw 2})}catch(e){}var _m,nu;xm.exports=function(e,t){if(!t&&!wm)return!1;var r=!1;try{var n={};n[jm]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(i){}return r}});var Tu=v(function(NV,av){av.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var sv=v(function(AV,uv){var RR=Ke();uv.exports=function(e,t,r){for(var n in t)RR(e,n,t[n],r);return e}});var fv=v(function($V,lv){lv.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}});var pv=v(function(MV,cv){var PR=at(),qR=fe();cv.exports=function(e){if(e===void 0)return 0;var t=PR(e),r=qR(t);if(t!==r)throw RangeError("Wrong length or index");return r}});var mv=v(function(VV,dv){var TR=Math.abs,tt=Math.pow,ER=Math.floor,kR=Math.log,BR=Math.LN2,DR=function(e,t,r){var n=new Array(r),i=r*8-t-1,o=(1<<i)-1,a=o>>1,u=t===23?tt(2,-24)-tt(2,-77):0,s=e<0||e===0&&1/e<0?1:0,l=0,f,c,p;for(e=TR(e),e!=e||e===Infinity?(c=e!=e?1:0,f=o):(f=ER(kR(e)/BR),e*(p=tt(2,-f))<1&&(f--,p*=2),f+a>=1?e+=u/p:e+=u*tt(2,1-a),e*p>=2&&(f++,p/=2),f+a>=o?(c=0,f=o):f+a>=1?(c=(e*p-1)*tt(2,t),f=f+a):(c=e*tt(2,a-1)*tt(2,t),f=0));t>=8;n[l++]=c&255,c/=256,t-=8);for(f=f<<t|c,i+=t;i>0;n[l++]=f&255,f/=256,i-=8);return n[--l]|=s*128,n},CR=function(e,t){var r=e.length,n=r*8-t-1,i=(1<<n)-1,o=i>>1,a=n-7,u=r-1,s=e[u--],l=s&127,f;for(s>>=7;a>0;l=l*256+e[u],u--,a-=8);for(f=l&(1<<-a)-1,l>>=-a,a+=t;a>0;f=f*256+e[u],u--,a-=8);if(l===0)l=1-o;else{if(l===i)return f?NaN:s?-Infinity:Infinity;f=f+tt(2,t),l=l-o}return(s?-1:1)*f*tt(2,l-t)};dv.exports={pack:DR,unpack:CR}});var hv=v(function(FV,yv){"use strict";var NR=be(),vv=$t(),AR=fe();yv.exports=function(t){for(var r=NR(this),n=AR(r.length),i=arguments.length,o=vv(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,u=a===void 0?n:vv(a,n);u>o;)r[o++]=t;return r}});var Gi=v(function(LV,Bv){"use strict";var Eu=z(),ku=pe(),$R=Tu(),MR=xe(),gv=sv(),Bu=M(),$i=fv(),VR=at(),FR=fe(),Mi=pv(),bv=mv(),LR=Gt(),jv=Pr(),zR=Mt().f,UR=de().f,HR=hv(),wv=qr(),_v=At(),or=_v.get,xv=_v.set,Vi="ArrayBuffer",Fi="DataView",Yr="prototype",GR="Wrong length",Ov="Wrong index",Ne=Eu[Vi],_e=Ne,Ae=Eu[Fi],Li=Ae&&Ae[Yr],Sv=Object.prototype,zi=Eu.RangeError,Iv=bv.pack,Rv=bv.unpack,Pv=function(e){return[e&255]},qv=function(e){return[e&255,e>>8&255]},Tv=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},Ev=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},KR=function(e){return Iv(e,23,4)},WR=function(e){return Iv(e,52,8)},Ui=function(e,t){UR(e[Yr],t,{get:function(){return or(this)[t]}})},bt=function(e,t,r,n){var i=Mi(r),o=or(e);if(i+t>o.byteLength)throw zi(Ov);var a=or(o.buffer).bytes,u=i+o.byteOffset,s=a.slice(u,u+t);return n?s:s.reverse()},jt=function(e,t,r,n,i,o){var a=Mi(r),u=or(e);if(a+t>u.byteLength)throw zi(Ov);for(var s=or(u.buffer).bytes,l=a+u.byteOffset,f=n(+i),c=0;c<t;c++)s[l+c]=f[o?c:t-c-1]};if(!$R)_e=function(t){$i(this,_e,Vi);var r=Mi(t);xv(this,{bytes:HR.call(new Array(r),0),byteLength:r}),ku||(this.byteLength=r)},Ae=function(t,r,n){$i(this,Ae,Fi),$i(t,_e,Fi);var i=or(t).byteLength,o=VR(r);if(o<0||o>i)throw zi("Wrong offset");if(n=n===void 0?i-o:FR(n),o+n>i)throw zi(GR);xv(this,{buffer:t,byteLength:n,byteOffset:o}),ku||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},ku&&(Ui(_e,"byteLength"),Ui(Ae,"buffer"),Ui(Ae,"byteLength"),Ui(Ae,"byteOffset")),gv(Ae[Yr],{getInt8:function(t){return bt(this,1,t)[0]<<24>>24},getUint8:function(t){return bt(this,1,t)[0]},getInt16:function(t){var r=bt(this,2,t,arguments.length>1?arguments[1]:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=bt(this,2,t,arguments.length>1?arguments[1]:void 0);return r[1]<<8|r[0]},getInt32:function(t){return Ev(bt(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Ev(bt(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Rv(bt(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Rv(bt(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,r){jt(this,1,t,Pv,r)},setUint8:function(t,r){jt(this,1,t,Pv,r)},setInt16:function(t,r){jt(this,2,t,qv,r,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,r){jt(this,2,t,qv,r,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,r){jt(this,4,t,Tv,r,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,r){jt(this,4,t,Tv,r,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,r){jt(this,4,t,KR,r,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,r){jt(this,8,t,WR,r,arguments.length>2?arguments[2]:void 0)}});else{if(!Bu(function(){Ne(1)})||!Bu(function(){new Ne(-1)})||Bu(function(){return new Ne,new Ne(1.5),new Ne(NaN),Ne.name!=Vi})){for(_e=function(t){return $i(this,_e),new Ne(Mi(t))},kv=_e[Yr]=Ne[Yr],Du=zR(Ne),Cu=0;Du.length>Cu;)(Hi=Du[Cu++])in _e||MR(_e,Hi,Ne[Hi]);kv.constructor=_e}jv&&LR(Li)!==Sv&&jv(Li,Sv),Xr=new Ae(new _e(2)),Nu=Li.setInt8,Xr.setInt8(0,2147483648),Xr.setInt8(1,2147483649),(Xr.getInt8(0)||!Xr.getInt8(1))&&gv(Li,{setInt8:function(t,r){Nu.call(this,t,r<<24>>24)},setUint8:function(t,r){Nu.call(this,t,r<<24>>24)}},{unsafe:!0})}var kv,Du,Cu,Hi,Xr,Nu;wv(_e,Vi);wv(Ae,Fi);Bv.exports={ArrayBuffer:_e,DataView:Ae}});var Nv=v(function(zV,Cv){"use strict";var YR=xt(),XR=de(),QR=H(),JR=pe(),Dv=QR("species");Cv.exports=function(e){var t=YR(e),r=XR.f;JR&&t&&!t[Dv]&&r(t,Dv,{configurable:!0,get:function(){return this}})}});var Hv=v(function(KV,Uv){var pP=Ft(),dP=be(),mP=ur(),vP=fe(),zv=function(e){return function(t,r,n,i){pP(r);var o=dP(t),a=mP(o),u=vP(o.length),s=e?u-1:0,l=e?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=l;break}if(s+=l,e?s<0:u<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=l)s in a&&(i=r(i,a[s],s,o));return i}};Uv.exports={left:zv(!1),right:zv(!0)}});var Kv=v(function(WV,Gv){var yP=He(),hP=z();Gv.exports=yP(hP.process)=="process"});var Mu=v(function(XV,Yv){"use strict";var OP=Ut().forEach,SP=mr(),IP=SP("forEach");Yv.exports=IP?[].forEach:function(t){return OP(this,t,arguments.length>1?arguments[1]:void 0)}});var Uu=w(E());function Hu(){(0,Uu.default)(document).on("submit","form:not([action])",function(e){e.preventDefault()})}var Gu=w(E());function Ku(){var e=window.history.pushState;window.history.pushState=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(this,r);return(0,Gu.default)(document).trigger("pushstate"),i}}"use strict";var ig=A(),og=so().indexOf,ag=mr(),ol=[].indexOf,al=!!ol&&1/[1].indexOf(1,-0)<0,ug=ag("indexOf");ig({target:"Array",proto:!0,forced:al||!ug},{indexOf:function(t){return al?ol.apply(this,arguments)||0:og(this,t,arguments.length>1?arguments[1]:void 0)}});var yg=A(),pl=cl();yg({global:!0,forced:parseInt!=pl},{parseInt:pl});var go=w(E());var dl=!1,ml=!1,vl=-1;function ho(e){dl=e}function yl(e){ml=e}function hl(e){vl=e}function gl(){return dl}function Ot(){return ml}function bl(){return vl}var je;function jl(e){je=e}function hg(){var e=je.indexOf("MSIE ");if(Ot()&&e>0)return parseInt(je.substring(e+5,je.indexOf(".",e)),10);var t=je.indexOf("Trident/");if(t>0){var r=je.indexOf("rv:");return parseInt(je.substring(r+3,je.indexOf(".",r)),10)}return-1}function wl(){/\bQt\//.test(je)?((0,go.default)(document.documentElement).addClass("qt"),ho(!0)):ho(!1),/\bQt\/5/.test(je)&&/Linux/.test(je)&&(0,go.default)(document.documentElement).addClass("qt5"),yl(/MSIE|Trident|Edge/.test(je)),hl(hg())}function _l(){return window.Shiny||(window.Shiny={}),window.Shiny}var ny=w(E());var gg=pe(),bg=de().f,bo=Function.prototype,jg=bo.toString,wg=/^\s*function ([^ (]*)/,xl="name";gg&&!(xl in bo)&&bg(bo,xl,{configurable:!0,get:function(){try{return jg.call(this).match(wg)[1]}catch(e){return""}}});var TT=w(Oe());"use strict";var Jg=wr(),Zg=K(),eb=fe(),tb=at(),rb=Ge(),nb=mn(),ib=Zl(),ob=_r(),ab=Math.max,ub=Math.min,sb=function(e){return e===void 0?e:String(e)};Jg("replace",2,function(e,t,r,n){var i=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=n.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(s,l){var f=rb(this),c=s==null?void 0:s[e];return c!==void 0?c.call(s,f,l):t.call(String(f),s,l)},function(u,s){if(!i&&o||typeof s=="string"&&s.indexOf(a)===-1){var l=r(t,u,this,s);if(l.done)return l.value}var f=Zg(u),c=String(this),p=typeof s=="function";p||(s=String(s));var m=f.global;if(m){var d=f.unicode;f.lastIndex=0}for(var h=[];;){var y=ob(f,c);if(y===null||(h.push(y),!m))break;var g=String(y[0]);g===""&&(f.lastIndex=nb(c,eb(f.lastIndex),d))}for(var _="",P=0,b=0;b<h.length;b++){y=h[b];for(var I=String(y[0]),k=ab(ub(tb(y.index),c.length),0),F=[],J=1;J<y.length;J++)F.push(sb(y[J]));var ue=y.groups;if(p){var se=[I].concat(F,k,c);ue!==void 0&&se.push(ue);var $e=String(s.apply(void 0,se))}else $e=ib(I,c,k,F,ue,s);k>=P&&(_+=c.slice(P,k)+$e,P=k+I.length)}return _+c.slice(P)}]});var gb=vn(),bb=Ke(),jb=af();gb||bb(Object.prototype,"toString",jb,{unsafe:!0});"use strict";var wb=Ke(),_b=K(),xb=M(),Ob=jo(),Eo="toString",uf=RegExp.prototype,sf=uf[Eo],Sb=xb(function(){return sf.call({source:"a",flags:"b"})!="/a/b"}),Ib=sf.name!=Eo;(Sb||Ib)&&wb(RegExp.prototype,Eo,function(){var t=_b(this),r=String(t.source),n=t.flags,i=String(n===void 0&&t instanceof RegExp&&!("flags"in uf)?Ob.call(t):n);return"/"+r+"/"+i},{unsafe:!0});var Eb=A(),cf=ff();Eb({global:!0,forced:parseFloat!=cf},{parseFloat:cf});"use strict";var Bb=A(),mf=M(),vf=df(),hn=1 .toPrecision,Db=mf(function(){return hn.call(1,void 0)!=="1"})||!mf(function(){hn.call({})});Bb({target:"Number",proto:!0,forced:Db},{toPrecision:function(t){return t===void 0?hn.call(vf(this)):hn.call(vf(this),t)}});"use strict";var Gb=A(),Kb=M(),Wb=xr(),Yb=te(),Xb=be(),Qb=fe(),wf=Or(),Jb=gn(),Zb=Vt(),ej=H(),tj=gr(),_f=ej("isConcatSpreadable"),xf=9007199254740991,Of="Maximum allowed index exceeded",rj=tj>=51||!Kb(function(){var e=[];return e[_f]=!1,e.concat()[0]!==e}),nj=Zb("concat"),ij=function(e){if(!Yb(e))return!1;var t=e[_f];return t!==void 0?!!t:Wb(e)},oj=!rj||!nj;Gb({target:"Array",proto:!0,forced:oj},{concat:function(t){var r=Xb(this),n=Jb(r,0),i=0,o,a,u,s,l;for(o=-1,u=arguments.length;o<u;o++)if(l=o===-1?r:arguments[o],ij(l)){if(s=Qb(l.length),i+s>xf)throw TypeError(Of);for(a=0;a<s;a++,i++)a in l&&wf(n,i,l[a])}else{if(i>=xf)throw TypeError(Of);wf(n,i++,l)}return n.length=i,n}});"use strict";var aj=A(),uj=te(),Sf=xr(),If=$t(),sj=fe(),lj=Pe(),fj=Or(),cj=H(),pj=Vt(),dj=pj("slice"),mj=cj("species"),vj=[].slice,yj=Math.max;aj({target:"Array",proto:!0,forced:!dj},{slice:function(t,r){var n=lj(this),i=sj(n.length),o=If(t,i),a=If(r===void 0?i:r,i),u,s,l;if(Sf(n)&&(u=n.constructor,typeof u=="function"&&(u===Array||Sf(u.prototype))?u=void 0:uj(u)&&(u=u[mj],u===null&&(u=void 0)),u===Array||u===void 0))return vj.call(n,o,a);for(s=new(u===void 0?Array:u)(yj(a-o,0)),l=0;o<a;o++,l++)o in n&&fj(s,l,n[o]);return s.length=l,s}});"use strict";var hj=A(),gj=$t(),bj=at(),jj=fe(),wj=be(),_j=gn(),xj=Or(),Oj=Vt(),Sj=Oj("splice"),Ij=Math.max,Rj=Math.min,Pj=9007199254740991,qj="Maximum allowed length exceeded";hj({target:"Array",proto:!0,forced:!Sj},{splice:function(t,r){var n=wj(this),i=jj(n.length),o=gj(t,i),a=arguments.length,u,s,l,f,c,p;if(a===0?u=s=0:a===1?(u=0,s=i-o):(u=a-2,s=Rj(Ij(bj(r),0),i-o)),i+u-s>Pj)throw TypeError(qj);for(l=_j(n,s),f=0;f<s;f++)c=o+f,c in n&&xj(l,f,n[c]);if(l.length=s,u<s){for(f=o;f<i-s;f++)c=f+s,p=f+u,c in n?n[p]=n[c]:delete n[p];for(f=i;f>i-s+u;f--)delete n[f-1]}else if(u>s)for(f=i-s;f>o;f--)c=f+s-1,p=f+u-1,c in n?n[p]=n[c]:delete n[p];for(f=0;f<u;f++)n[f+o]=arguments[f+2];return n.length=i-s+u,l}});var kj=A(),Bj=be(),Pf=Sr(),Dj=M(),Cj=Dj(function(){Pf(1)});kj({target:"Object",stat:!0,forced:Cj},{keys:function(t){return Pf(Bj(t))}});"use strict";var zj=wr(),Uj=Tf(),Hj=K(),Df=Ge(),Gj=Bo(),Kj=mn(),Wj=fe(),Cf=_r(),Yj=hr(),Xj=_o(),Lt=Xj.UNSUPPORTED_Y,Qj=[].push,Jj=Math.min,Nf=4294967295;zj("split",2,function(e,t,r){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(i,o){var a=String(Df(this)),u=o===void 0?Nf:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!Uj(i))return t.call(a,i,u);for(var s=[],l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),f=0,c=new RegExp(i.source,l+"g"),p,m,d;(p=Yj.call(c,a))&&(m=c.lastIndex,!(m>f&&(s.push(a.slice(f,p.index)),p.length>1&&p.index<a.length&&Qj.apply(s,p.slice(1)),d=p[0].length,f=m,s.length>=u)));)c.lastIndex===p.index&&c.lastIndex++;return f===a.length?(d||!c.test(""))&&s.push(""):s.push(a.slice(f)),s.length>u?s.slice(0,u):s}:"0".split(void 0,0).length?n=function(i,o){return i===void 0&&o===0?[]:t.call(this,i,o)}:n=t,[function(o,a){var u=Df(this),s=o==null?void 0:o[e];return s!==void 0?s.call(o,u,a):n.call(String(u),o,a)},function(i,o){var a=r(n,i,this,o,n!==t);if(a.done)return a.value;var u=Hj(i),s=String(this),l=Gj(u,RegExp),f=u.unicode,c=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(Lt?"g":"y"),p=new l(Lt?"^(?:"+u.source+")":u,c),m=o===void 0?Nf:o>>>0;if(m===0)return[];if(s.length===0)return Cf(p,s)===null?[s]:[];for(var d=0,h=0,y=[];h<s.length;){p.lastIndex=Lt?0:h;var g=Cf(p,Lt?s.slice(h):s),_;if(g===null||(_=Jj(Wj(p.lastIndex+(Lt?h:0)),s.length))===d)h=Kj(s,h,f);else{if(y.push(s.slice(d,h)),y.length===m)return y;for(var P=1;P<=g.length-1;P++)if(y.push(g[P]),y.length===m)return y;h=d=_}}return y.push(s.slice(d)),y}]},Lt);var Ir=w(E());function Do(){return window.devicePixelRatio}var Af=w(E()),$f;function Mf(e){$f=e}function bn(e){try{return new Blob(e)}catch(r){var t=new $f;return Af.default.each(e,function(n,i){t.append(i)}),t.getBlob()}}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vf(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>'"/]/g,function(r){return t[r]})}function jn(){return Math.floor(4294967296+Math.random()*64424509440).toString(16)}function St(e){if(!(!e||!e.toLowerCase))switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return}}function Ve(e,t){var r=void 0;if(e.currentStyle)r=e.currentStyle[t];else if(window.getComputedStyle){var n=document.defaultView.getComputedStyle(e,null);n&&(r=n.getPropertyValue(t))}return r}function Ff(e,t){for(var r=e.toString();r.length<t;)r="0"+r;return r}function Co(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(t<1)throw"Significant digits must be at least 1.";return parseFloat(e.toPrecision(t))}function Lf(e){var t=new Date(e);return t.toString()==="Invalid Date"&&(t=new Date(e.replace(/-/g,"/"))),t}function qe(e){return e instanceof Date?e.getUTCFullYear()+"-"+Ff(e.getUTCMonth()+1,2)+"-"+Ff(e.getUTCDate(),2):null}function zf(e,t){var r={};return function(){var n={w:e.offsetWidth,h:e.offsetHeight};n.w===0&&n.h===0||n.w===r.w&&n.h===r.h||(r=n,t(n.w,n.h))}}function No(){return Do()?Math.round(Do()*100)/100:1}function Uf(e){var t=e.replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\b]/g,"\\b"),r;try{r=new Function("with (this) {\n try {\n return (".concat(e,");\n } catch (e) {\n console.error('Error evaluating expression: ").concat(t,"');\n throw e;\n }\n }"))}catch(n){throw console.error("Error parsing expression: "+e),n}return function(n){return r.call(n)}}function zt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Hf(e,t){function r(l,f,c){for(var p=0,m=0,d=[];p<f.length&&m<c.length;)l(f[p],c[m])<=0?d.push(f[p++]):d.push(c[m++]);for(;p<f.length;)d.push(f[p++]);for(;m<c.length;)d.push(c[m++]);return d}e=e.slice(0);for(var n=1;n<e.length;n*=2)for(var i=0;i<e.length;i+=n*2){var o=e.slice(i,i+n),a=e.slice(i+n,i+n*2),u=r(t,o,a),s=[i,u.length];Array.prototype.push.apply(s,u),Array.prototype.splice.apply(e,s)}return e}var q=function(t){return t.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")};function Te(e,t){var r={};for(var n in e)O(e,n)&&(r[n]=t(e[n],n,e));return r}function Gf(e){return typeof e=="number"&&isNaN(e)}function Ao(e,t){if(Ir.default.type(e)==="object"&&Ir.default.type(t)==="object"){var r=e,n=t;if(Object.keys(r).length!==Object.keys(n).length)return!1;for(var i in r)if(!O(n,i)||!Ao(r[i],n[i]))return!1;return!0}else if(Ir.default.type(e)==="array"&&Ir.default.type(t)==="array"){var o=e,a=t;if(o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!Ao(o[u],a[u]))return!1;return!0}else return e===t}function $o(){if(arguments.length<2)throw new Error("equal requires at least two arguments.");for(var e=0;e<arguments.length-1;e++)if(!Ao(e<0||arguments.length<=e?void 0:arguments[e],e+1<0||arguments.length<=e+1?void 0:arguments[e+1]))return!1;return!0}var Kf=function(t,r,n){function i(u){return(u+"").replace(/-/,".").replace(/(\.0)+[^.]*$/,"").split(".")}function o(u,s){u=i(u),s=i(s);for(var l=Math.min(u.length,s.length),f,c=0;c<l;c++)if(f=parseInt(u[c],10)-parseInt(s[c],10),f!==0)return f;return u.length-s.length}var a=o(t,n);if(r==="==")return a===0;if(r===">=")return a>=0;if(r===">")return a>0;if(r==="<=")return a<=0;if(r==="<")return a<0;throw"Unknown operator: ".concat(r)};function re(e,t){if(typeof e!="undefined"){if(t.length!==1)throw new Error("labelNode must be of length 1");var r=Array.isArray(e)&&e.length===0;r?t.addClass("shiny-label-null"):(t.text(e),t.removeClass("shiny-label-null"))}}function Rr(e){var t=document.createElement("a");t.href="/";var r=document.createElement("div");r.style.setProperty("position","absolute","important"),r.style.setProperty("top","-1000px","important"),r.style.setProperty("left","0","important"),r.style.setProperty("width","30px","important"),r.style.setProperty("height","10px","important"),r.appendChild(t),e.appendChild(r);var n=window.getComputedStyle(t).getPropertyValue("color");return e.removeChild(r),n}function Mo(){return!window.bootstrap}function Wf(e){return e.toLowerCase()}function Zj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ew(e,t,r){return t&&Yf(e.prototype,t),r&&Yf(e,r),e}function Xf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wn=function(){function e(){Zj(this,e),Xf(this,"bindings",[]),Xf(this,"bindingNames",{})}return ew(e,[{key:"register",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o={binding:r,priority:i};this.bindings.unshift(o),n&&(this.bindingNames[n]=o,r.name=n)}},{key:"setPriority",value:function(r,n){var i=this.bindingNames[r];if(!i)throw"Tried to set priority on unknown binding "+r;i.priority=n||0}},{key:"getPriority",value:function(r){var n=this.bindingNames[r];return n?n.priority:!1}},{key:"getBindings",value:function(){return Hf(this.bindings,function(r,n){return n.priority-r.priority})}}]),e}();function tw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rw(e,t,r){return t&&Qf(e.prototype,t),r&&Qf(e,r),e}function nw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var V=function(){function e(){tw(this,e),nw(this,"name",void 0)}return rw(e,[{key:"find",value:function(r){throw"Not implemented"}},{key:"getId",value:function(r){return r["data-input-id"]||r.id}},{key:"getType",value:function(r){return!1}},{key:"getValue",value:function(r){throw"Not implemented"}},{key:"subscribe",value:function(r,n){}},{key:"unsubscribe",value:function(r){}},{key:"receiveMessage",value:function(r,n){throw"Not implemented"}},{key:"getState",value:function(r){throw"Not implemented"}},{key:"getRatePolicy",value:function(r){return null}},{key:"initialize",value:function(r){}},{key:"dispose",value:function(r){}}]),e}();"use strict";var Iw=A(),Rw=Ut().find,Pw=Ko(),Wo="find",pc=!0;Wo in[]&&Array(1)[Wo](function(){pc=!1});Iw({target:"Array",proto:!0,forced:pc},{find:function(t){return Rw(this,t,arguments.length>1?arguments[1]:void 0)}});Pw(Wo);var kw=A(),Bw=Pr();kw({target:"Object",stat:!0},{setPrototypeOf:Bw});var Vw=A(),Fw=M(),Lw=be(),bc=Gt(),zw=Yo(),Uw=Fw(function(){bc(1)});Vw({target:"Object",stat:!0,forced:Uw,sham:!zw},{getPrototypeOf:function(t){return bc(Lw(t))}});var Ww=A(),Yw=xt(),xc=Ft(),Xw=K(),Oc=te(),Qw=Ht(),Jw=_c(),Sc=M(),Qo=Yw("Reflect","construct"),Ic=Sc(function(){function e(){}return!(Qo(function(){},[],e)instanceof e)}),Rc=!Sc(function(){Qo(function(){})}),Pc=Ic||Rc;Ww({target:"Reflect",stat:!0,forced:Pc,sham:Pc},{construct:function(t,r){xc(t),Xw(r);var n=arguments.length<3?t:xc(arguments[2]);if(Rc&&!Ic)return Qo(t,r,n);if(t==n){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var i=[null];return i.push.apply(i,r),new(Jw.apply(t,i))}var o=n.prototype,a=Qw(Oc(o)?o:Object.prototype),u=Function.apply.call(t,a,r);return Oc(u)?u:a}});"use strict";var Kt=A(),$c=z(),l_=xt(),f_=sr(),Wt=pe(),It=pn(),c_=Io(),ea=M(),G=le(),p_=xr(),d_=te(),ta=K(),m_=be(),xn=Pe(),ra=Nt(),na=Ct(),Tr=Ht(),Mc=Sr(),v_=Mt(),Vc=kc(),ia=co(),Fc=wt(),Lc=de(),zc=Zr(),y_=xe(),oa=Ke(),Er=lr(),h_=fr(),Uc=cr(),Hc=nn(),Gc=H(),g_=Jo(),b_=Zo(),j_=qr(),Kc=At(),On=Ut().forEach,me=h_("hidden"),Sn="Symbol",We="prototype",Wc=Gc("toPrimitive"),w_=Kc.set,Yc=Kc.getterFor(Sn),Se=Object[We],ve=$c.Symbol,kr=l_("JSON","stringify"),Xc=Fc.f,st=Lc.f,Qc=Vc.f,__=zc.f,Ye=Er("symbols"),Br=Er("op-symbols"),aa=Er("string-to-symbol-registry"),ua=Er("symbol-to-string-registry"),x_=Er("wks"),sa=$c.QObject,la=!sa||!sa[We]||!sa[We].findChild,fa=Wt&&ea(function(){return Tr(st({},"a",{get:function(){return st(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=Xc(Se,t);n&&delete Se[t],st(e,t,r),n&&e!==Se&&st(Se,t,n)}:st,ca=function(e,t){var r=Ye[e]=Tr(ve[We]);return w_(r,{type:Sn,tag:e,description:t}),Wt||(r.description=t),r},pa=c_?function(e){return typeof e=="symbol"}:function(e){return Object(e)instanceof ve},In=function(t,r,n){t===Se&&In(Br,r,n),ta(t);var i=ra(r,!0);return ta(n),G(Ye,i)?(n.enumerable?(G(t,me)&&t[me][i]&&(t[me][i]=!1),n=Tr(n,{enumerable:na(0,!1)})):(G(t,me)||st(t,me,na(1,{})),t[me][i]=!0),fa(t,i,n)):st(t,i,n)},Jc=function(t,r){ta(t);var n=xn(r),i=Mc(n).concat(ma(n));return On(i,function(o){(!Wt||da.call(n,o))&&In(t,o,n[o])}),t},O_=function(t,r){return r===void 0?Tr(t):Jc(Tr(t),r)},da=function(t){var r=ra(t,!0),n=__.call(this,r);return this===Se&&G(Ye,r)&&!G(Br,r)?!1:n||!G(this,r)||!G(Ye,r)||G(this,me)&&this[me][r]?n:!0},Zc=function(t,r){var n=xn(t),i=ra(r,!0);if(!(n===Se&&G(Ye,i)&&!G(Br,i))){var o=Xc(n,i);return o&&G(Ye,i)&&!(G(n,me)&&n[me][i])&&(o.enumerable=!0),o}},ep=function(t){var r=Qc(xn(t)),n=[];return On(r,function(i){!G(Ye,i)&&!G(Uc,i)&&n.push(i)}),n},ma=function(t){var r=t===Se,n=Qc(r?Br:xn(t)),i=[];return On(n,function(o){G(Ye,o)&&(!r||G(Se,o))&&i.push(Ye[o])}),i};It||(ve=function(){if(this instanceof ve)throw TypeError("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),r=Hc(t),n=function(i){this===Se&&n.call(Br,i),G(this,me)&&G(this[me],r)&&(this[me][r]=!1),fa(this,r,na(1,i))};return Wt&&la&&fa(Se,r,{configurable:!0,set:n}),ca(r,t)},oa(ve[We],"toString",function(){return Yc(this).tag}),oa(ve,"withoutSetter",function(e){return ca(Hc(e),e)}),zc.f=da,Lc.f=In,Fc.f=Zc,v_.f=Vc.f=ep,ia.f=ma,g_.f=function(e){return ca(Gc(e),e)},Wt&&(st(ve[We],"description",{configurable:!0,get:function(){return Yc(this).description}}),f_||oa(Se,"propertyIsEnumerable",da,{unsafe:!0})));Kt({global:!0,wrap:!0,forced:!It,sham:!It},{Symbol:ve});On(Mc(x_),function(e){b_(e)});Kt({target:Sn,stat:!0,forced:!It},{for:function(e){var t=String(e);if(G(aa,t))return aa[t];var r=ve(t);return aa[t]=r,ua[r]=t,r},keyFor:function(t){if(!pa(t))throw TypeError(t+" is not a symbol");if(G(ua,t))return ua[t]},useSetter:function(){la=!0},useSimple:function(){la=!1}});Kt({target:"Object",stat:!0,forced:!It,sham:!Wt},{create:O_,defineProperty:In,defineProperties:Jc,getOwnPropertyDescriptor:Zc});Kt({target:"Object",stat:!0,forced:!It},{getOwnPropertyNames:ep,getOwnPropertySymbols:ma});Kt({target:"Object",stat:!0,forced:ea(function(){ia.f(1)})},{getOwnPropertySymbols:function(t){return ia.f(m_(t))}});kr&&(tp=!It||ea(function(){var e=ve();return kr([e])!="[null]"||kr({a:e})!="{}"||kr(Object(e))!="{}"}),Kt({target:"JSON",stat:!0,forced:tp},{stringify:function(t,r,n){for(var i=[t],o=1,a;arguments.length>o;)i.push(arguments[o++]);if(a=r,!(!d_(r)&&t===void 0||pa(t)))return p_(r)||(r=function(u,s){if(typeof a=="function"&&(s=a.call(this,u,s)),!pa(s))return s}),i[1]=r,kr.apply(null,i)}}));var tp;ve[We][Wc]||y_(ve[We],Wc,ve[We].valueOf);j_(ve,Sn);Uc[me]=!0;"use strict";var S_=A(),I_=pe(),R_=z(),P_=le(),q_=te(),T_=de().f,E_=po(),Xe=R_.Symbol;I_&&typeof Xe=="function"&&(!("description"in Xe.prototype)||Xe().description!==void 0)&&(va={},Yt=function(){var t=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),r=this instanceof Yt?new Xe(t):t===void 0?Xe():Xe(t);return t===""&&(va[r]=!0),r},E_(Yt,Xe),Rn=Yt.prototype=Xe.prototype,Rn.constructor=Yt,rp=Rn.toString,np=String(Xe("test"))=="Symbol(test)",ip=/^Symbol\((.*)\)[^)]+$/,T_(Rn,"description",{configurable:!0,get:function(){var t=q_(this)?this.valueOf():this,r=rp.call(t);if(P_(va,t))return"";var n=np?r.slice(7,-1):r.replace(ip,"$1");return n===""?void 0:n}}),S_({global:!0,forced:!0},{Symbol:Yt}));var va,Yt,Rn,rp,np,ip;var k_=Zo();k_("iterator");var DE=w($());"use strict";var ex=qo().charAt,Sp=At(),tx=_a(),Ip="String Iterator",rx=Sp.set,nx=Sp.getterFor(Ip);tx(String,"String",function(e){rx(this,{type:Ip,string:String(e),index:0})},function(){var t=nx(this),r=t.string,n=t.index,i;return n>=r.length?{value:void 0,done:!0}:(i=ex(r,n),t.index+=i.length,{value:i,done:!1})});var ix=z(),Pp=Oa(),Cr=$(),Sa=xe(),qp=H(),Ia=qp("iterator"),Tp=qp("toStringTag"),Ra=Cr.values;for(var Pa in Pp)if(qa=ix[Pa],Fe=qa&&qa.prototype,Fe){if(Fe[Ia]!==Ra)try{Sa(Fe,Ia,Ra)}catch(e){Fe[Ia]=Ra}if(Fe[Tp]||Sa(Fe,Tp,Pa),Pp[Pa]){for(Pt in Cr)if(Fe[Pt]!==Cr[Pt])try{Sa(Fe,Pt,Cr[Pt])}catch(e){Fe[Pt]=Cr[Pt]}}}var qa,Fe,Pt;var qt=w(E());function Tn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tn=function(r){return typeof r}:Tn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tn(e)}function ox(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ep(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ax(e,t,r){return t&&Ep(e.prototype,t),r&&Ep(e,r),e}function ux(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ta(e,t)}function Ta(e,t){return Ta=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ta(e,t)}function sx(e){var t=cx();return function(){var n=En(e),i;if(t){var o=En(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return lx(this,i)}}function lx(e,t){return t&&(Tn(t)==="object"||typeof t=="function")?t:fx(e)}function fx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},En(e)}var kp=function(e){ux(r,e);var t=sx(r);function r(){return ox(this,r),t.apply(this,arguments)}return ax(r,[{key:"find",value:function(i){return(0,qt.default)(i).find('input[type="checkbox"]')}},{key:"getValue",value:function(i){return i.checked}},{key:"setValue",value:function(i,o){i.checked=o}},{key:"subscribe",value:function(i,o){(0,qt.default)(i).on("change.checkboxInputBinding",function(){o(!0)})}},{key:"unsubscribe",value:function(i){(0,qt.default)(i).off(".checkboxInputBinding")}},{key:"getState",value:function(i){return{label:(0,qt.default)(i).parent().find("span").text(),value:i.checked}}},{key:"receiveMessage",value:function(i,o){O(o,"value")&&(i.checked=o.value),O(o,"label")&&(0,qt.default)(i).parent().find("span").text(o.label),(0,qt.default)(i).trigger("change")}}]),r}(V);"use strict";var dx=A(),mx=yr().trim,vx=Np();dx({target:"String",proto:!0,forced:vx("trim")},{trim:function(){return mx(this)}});var QE=w($());var ye=w(E());function kn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kn=function(r){return typeof r}:kn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kn(e)}function yx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ap(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hx(e,t,r){return t&&Ap(e.prototype,t),r&&Ap(e,r),e}function gx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ea(e,t)}function Ea(e,t){return Ea=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ea(e,t)}function bx(e){var t=_x();return function(){var n=Bn(e),i;if(t){var o=Bn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jx(this,i)}}function jx(e,t){return t&&(kn(t)==="object"||typeof t=="function")?t:wx(e)}function wx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Bn(e){return Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bn(e)}var $p=function(e){gx(r,e);var t=bx(r);function r(){return yx(this,r),t.apply(this,arguments)}return hx(r,[{key:"find",value:function(i){return(0,ye.default)(i).find(".shiny-input-checkboxgroup")}},{key:"getValue",value:function(i){for(var o=(0,ye.default)('input:checkbox[name="'+q(i.id)+'"]:checked'),a=new Array(o.length),u=0;u<o.length;u++)a[u]=o[u].value;return a}},{key:"setValue",value:function(i,o){if((0,ye.default)('input:checkbox[name="'+q(i.id)+'"]').prop("checked",!1),o instanceof Array)for(var a=0;a<o.length;a++)(0,ye.default)('input:checkbox[name="'+q(i.id)+'"][value="'+q(o[a])+'"]').prop("checked",!0);else(0,ye.default)('input:checkbox[name="'+q(i.id)+'"][value="'+q(o)+'"]').prop("checked",!0)}},{key:"getState",value:function(i){for(var o=(0,ye.default)('input:checkbox[name="'+q(i.id)+'"]'),a=new Array(o.length),u=0;u<a.length;u++)a[u]={value:o[u].value,label:this._getLabel(o[u])};return{label:this._getLabelNode(i).text(),value:this.getValue(i),options:a}}},{key:"receiveMessage",value:function(i,o){var a=(0,ye.default)(i);O(o,"options")&&(a.find("div.shiny-options-group").remove(),a.find("label.checkbox").remove(),a.append(o.options)),O(o,"value")&&this.setValue(i,o.value),re(o.label,this._getLabelNode(i)),(0,ye.default)(i).trigger("change")}},{key:"subscribe",value:function(i,o){(0,ye.default)(i).on("change.checkboxGroupInputBinding",function(){o(!1)})}},{key:"unsubscribe",value:function(i){(0,ye.default)(i).off(".checkboxGroupInputBinding")}},{key:"_getLabelNode",value:function(i){return(0,ye.default)(i).find('label[for="'+q(i.id)+'"]')}},{key:"_getLabel",value:function(i){return i.parentNode.tagName==="LABEL"?(0,ye.default)(i.parentNode).find("span").text().trim():null}},{key:"_setLabel",value:function(i,o){return i.parentNode.tagName==="LABEL"&&(0,ye.default)(i.parentNode).find("span").text(o),null}}]),r}(V);"use strict";var Ox=pe(),Lp=z(),Sx=mo(),Ix=Ke(),zp=le(),Up=He(),Rx=Fp(),Px=Nt(),qx=M(),Tx=Ht(),Ex=Mt().f,kx=wt().f,Bx=de().f,Dx=yr().trim,Nr="Number",lt=Lp[Nr],Dn=lt.prototype,Cx=Up(Tx(Dn))==Nr,Hp=function(e){var t=Px(e,!1),r,n,i,o,a,u,s,l;if(typeof t=="string"&&t.length>2){if(t=Dx(t),r=t.charCodeAt(0),r===43||r===45){if(n=t.charCodeAt(2),n===88||n===120)return NaN}else if(r===48){switch(t.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+t}for(a=t.slice(2),u=a.length,s=0;s<u;s++)if(l=a.charCodeAt(s),l<48||l>o)return NaN;return parseInt(a,i)}}return+t};if(Sx(Nr,!lt(" 0o1")||!lt("0b1")||lt("+0x1"))){for(ft=function(t){var r=arguments.length<1?0:t,n=this;return n instanceof ft&&(Cx?qx(function(){Dn.valueOf.call(n)}):Up(n)!=Nr)?Rx(new lt(Hp(r)),n,ft):Hp(r)},ka=Ox?Ex(lt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Cn=0;ka.length>Cn;Cn++)zp(lt,Ar=ka[Cn])&&!zp(ft,Ar)&&Bx(ft,Ar,kx(lt,Ar));ft.prototype=Dn,Dn.constructor=ft,Ix(Lp,Nr,ft)}var ft,ka,Cn,Ar;var Bk=w($());var Mr=w(E());var Nx=A(),Ax=te(),$x=K(),Mx=le(),Vx=wt(),Fx=Gt();function Gp(e,t){var r=arguments.length<3?e:arguments[2],n,i;if($x(e)===r)return e[t];if(n=Vx.f(e,t))return Mx(n,"value")?n.value:n.get===void 0?void 0:n.get.call(r);if(Ax(i=Fx(e)))return Gp(i,t,r)}Nx({target:"Reflect",stat:!0},{get:Gp});var Lx=A(),zx=M(),Ux=Pe(),Kp=wt().f,Wp=pe(),Hx=zx(function(){Kp(1)}),Gx=!Wp||Hx;Lx({target:"Object",stat:!0,forced:Gx,sham:!Wp},{getOwnPropertyDescriptor:function(t,r){return Kp(Ux(t),r)}});var gk=w($());var Tt=w(E());function Nn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nn=function(r){return typeof r}:Nn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Nn(e)}function Yp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qp(e,t,r){return t&&Xp(e.prototype,t),r&&Xp(e,r),e}function An(e,t,r){return typeof Reflect!="undefined"&&Reflect.get?An=Reflect.get:An=function(i,o,a){var u=Kx(i,o);if(!!u){var s=Object.getOwnPropertyDescriptor(u,o);return s.get?s.get.call(a):s.value}},An(e,t,r||e)}function Kx(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Qt(e),e!==null););return e}function Jp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ba(e,t)}function Ba(e,t){return Ba=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ba(e,t)}function Zp(e){var t=Xx();return function(){var n=Qt(e),i;if(t){var o=Qt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Wx(this,i)}}function Wx(e,t){return t&&(Nn(t)==="object"||typeof t=="function")?t:Yx(e)}function Yx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Qt(e){return Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qt(e)}var $r=function(e){Jp(r,e);var t=Zp(r);function r(){return Yp(this,r),t.apply(this,arguments)}return Qp(r,[{key:"find",value:function(i){var o=(0,Tt.default)(i).find('input[type="text"], input[type="search"], input[type="url"], input[type="email"]');return o.not('input[type="text"][id$="-selectized"]')}},{key:"getId",value:function(i){return An(Qt(r.prototype),"getId",this).call(this,i)||i.name}},{key:"getValue",value:function(i){throw"not implemented"}},{key:"setValue",value:function(i,o){throw"not implemented"}},{key:"subscribe",value:function(i,o){(0,Tt.default)(i).on("keyup.textInputBinding input.textInputBinding",function(){o(!0)}),(0,Tt.default)(i).on("change.textInputBinding",function(){o(!1)})}},{key:"unsubscribe",value:function(i){(0,Tt.default)(i).off(".textInputBinding")}},{key:"receiveMessage",value:function(i,o){throw"not implemented"}},{key:"getState",value:function(i){throw"not implemented"}},{key:"getRatePolicy",value:function(i){return{policy:"debounce",delay:250}}},{key:"_getLabelNode",value:function(i){return(0,Tt.default)(i).parent().find('label[for="'+q(i.id)+'"]')}}]),r}(V),Jt=function(e){Jp(r,e);var t=Zp(r);function r(){return Yp(this,r),t.apply(this,arguments)}return Qp(r,[{key:"setValue",value:function(i,o){i.value=o}},{key:"getValue",value:function(i){return i.value}},{key:"getState",value:function(i){return{label:this._getLabelNode(i).text(),value:i.value,placeholder:i.placeholder}}},{key:"receiveMessage",value:function(i,o){O(o,"value")&&this.setValue(i,o.value),re(o.label,this._getLabelNode(i)),O(o,"placeholder")&&(i.placeholder=o.placeholder),(0,Tt.default)(i).trigger("change")}}]),r}($r);function $n(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$n=function(r){return typeof r}:$n=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$n(e)}function Qx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ed(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jx(e,t,r){return t&&ed(e.prototype,t),r&&ed(e,r),e}function Zx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Da(e,t)}function Da(e,t){return Da=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Da(e,t)}function eO(e){var t=nO();return function(){var n=Mn(e),i;if(t){var o=Mn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return tO(this,i)}}function tO(e,t){return t&&($n(t)==="object"||typeof t=="function")?t:rO(e)}function rO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Mn(e)}var td=function(e){Zx(r,e);var t=eO(r);function r(){return Qx(this,r),t.apply(this,arguments)}return Jx(r,[{key:"find",value:function(i){return(0,Mr.default)(i).find('input[type="number"]')}},{key:"getValue",value:function(i){var o=(0,Mr.default)(i).val();if(typeof o=="string"&&/^\s*$/.test(o))return null;var a=Number(o);return isNaN(a)?o:a}},{key:"setValue",value:function(i,o){i.value=""+o}},{key:"getType",value:function(i){return"shiny.number"}},{key:"receiveMessage",value:function(i,o){O(o,"value")&&(i.value=o.value),O(o,"min")&&(i.min=o.min),O(o,"max")&&(i.max=o.max),O(o,"step")&&(i.step=o.step),re(o.label,this._getLabelNode(i)),(0,Mr.default)(i).trigger("change")}},{key:"getState",value:function(i){return{label:this._getLabelNode(i).text(),value:this.getValue(i),min:Number(i.min),max:Number(i.max),step:Number(i.step)}}},{key:"_getLabelNode",value:function(i){return(0,Mr.default)(i).parent().find('label[for="'+q(i.id)+'"]')}}]),r}($r);var Kk=w($());var nd=w(E());function Vn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vn=function(r){return typeof r}:Vn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vn(e)}function iO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oO(e,t,r){return t&&rd(e.prototype,t),r&&rd(e,r),e}function aO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ca(e,t)}function Ca(e,t){return Ca=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ca(e,t)}function uO(e){var t=fO();return function(){var n=Fn(e),i;if(t){var o=Fn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return sO(this,i)}}function sO(e,t){return t&&(Vn(t)==="object"||typeof t=="function")?t:lO(e)}function lO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fn(e)}var id=function(e){aO(r,e);var t=uO(r);function r(){return iO(this,r),t.apply(this,arguments)}return oO(r,[{key:"find",value:function(i){return(0,nd.default)(i).find('input[type="password"]')}},{key:"getType",value:function(i){return"shiny.password"}}]),r}(Jt);var aB=w($());var ad=w(E());function Ln(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ln=function(r){return typeof r}:Ln=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ln(e)}function cO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function od(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pO(e,t,r){return t&&od(e.prototype,t),r&&od(e,r),e}function dO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Na(e,t)}function Na(e,t){return Na=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Na(e,t)}function mO(e){var t=hO();return function(){var n=zn(e),i;if(t){var o=zn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return vO(this,i)}}function vO(e,t){return t&&(Ln(t)==="object"||typeof t=="function")?t:yO(e)}function yO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function zn(e){return zn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zn(e)}var ud=function(e){dO(r,e);var t=mO(r);function r(){return cO(this,r),t.apply(this,arguments)}return pO(r,[{key:"find",value:function(i){return(0,ad.default)(i).find("textarea")}}]),r}(Jt);var jB=w($());var he=w(E());function Un(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Un=function(r){return typeof r}:Un=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(e)}function gO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bO(e,t,r){return t&&sd(e.prototype,t),r&&sd(e,r),e}function jO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}function Aa(e,t){return Aa=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Aa(e,t)}function wO(e){var t=OO();return function(){var n=Hn(e),i;if(t){var o=Hn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _O(this,i)}}function _O(e,t){return t&&(Un(t)==="object"||typeof t=="function")?t:xO(e)}function xO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Hn(e){return Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hn(e)}var ld=function(e){jO(r,e);var t=wO(r);function r(){return gO(this,r),t.apply(this,arguments)}return bO(r,[{key:"find",value:function(i){return(0,he.default)(i).find(".shiny-input-radiogroup")}},{key:"getValue",value:function(i){var o=(0,he.default)('input:radio[name="'+q(i.id)+'"]:checked');return o.length===0?null:o.val()}},{key:"setValue",value:function(i,o){he.default.isArray(o)&&o.length===0?(0,he.default)('input:radio[name="'+q(i.id)+'"]').prop("checked",!1):(0,he.default)('input:radio[name="'+q(i.id)+'"][value="'+q(o)+'"]').prop("checked",!0)}},{key:"getState",value:function(i){for(var o=(0,he.default)('input:radio[name="'+q(i.id)+'"]'),a=new Array(o.length),u=0;u<a.length;u++)a[u]={value:o[u].value,label:this._getLabel(o[u])};return{label:this._getLabelNode(i).text(),value:this.getValue(i),options:a}}},{key:"receiveMessage",value:function(i,o){var a=(0,he.default)(i);O(o,"options")&&(a.find("div.shiny-options-group").remove(),a.find("label.radio").remove(),a.append(o.options)),O(o,"value")&&this.setValue(i,o.value),re(o.label,this._getLabelNode(i)),(0,he.default)(i).trigger("change")}},{key:"subscribe",value:function(i,o){(0,he.default)(i).on("change.radioInputBinding",function(){o(!1)})}},{key:"unsubscribe",value:function(i){(0,he.default)(i).off(".radioInputBinding")}},{key:"_getLabelNode",value:function(i){return(0,he.default)(i).parent().find('label[for="'+q(i.id)+'"]')}},{key:"_getLabel",value:function(i){return i.parentNode.tagName==="LABEL"?(0,he.default)(i.parentNode).find("span").text().trim():null}},{key:"_setLabel",value:function(i,o){return i.parentNode.tagName==="LABEL"&&(0,he.default)(i.parentNode).find("span").text(o),null}}]),r}(V);var DB=w($());var L=w(E());function Gn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gn=function(r){return typeof r}:Gn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gn(e)}function fd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pd(e,t,r){return t&&cd(e.prototype,t),r&&cd(e,r),e}function dd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$a(e,t)}function $a(e,t){return $a=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$a(e,t)}function md(e){var t=RO();return function(){var n=Kn(e),i;if(t){var o=Kn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return SO(this,i)}}function SO(e,t){return t&&(Gn(t)==="object"||typeof t=="function")?t:IO(e)}function IO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Kn(e)}var Ma=function(e){dd(r,e);var t=md(r);function r(){return fd(this,r),t.apply(this,arguments)}return pd(r,[{key:"find",value:function(i){return(0,L.default)(i).find(".shiny-date-input")}},{key:"getType",value:function(i){return"shiny.date"}},{key:"subscribe",value:function(i,o){(0,L.default)(i).on("keyup.dateInputBinding input.dateInputBinding",function(){o(!0)}),(0,L.default)(i).on("changeDate.dateInputBinding change.dateInputBinding",function(){o(!1)})}},{key:"unsubscribe",value:function(i){(0,L.default)(i).off(".dateInputBinding")}},{key:"getRatePolicy",value:function(){return{policy:"debounce",delay:250}}},{key:"setValue",value:function(i,o){throw"not implemented"}},{key:"initialize",value:function(i){var o=(0,L.default)(i).find("input"),a=o.data("initial-date");a==null&&(a=this._floorDateTime(this._dateAsUTC(new Date))),this.setValue(i,a),o.data("min-date")!==void 0&&this._setMin(o[0],o.data("min-date")),o.data("max-date")!==void 0&&this._setMax(o[0],o.data("max-date"))}},{key:"_getLabelNode",value:function(i){return(0,L.default)(i).find('label[for="'+q(i.id)+'"]')}},{key:"_formatToString",value:function(i){var o="",a;for(a=0;a<i.parts.length;a++)o+=i.separators[a]+i.parts[a];return o+=i.separators[a],o}},{key:"_setMin",value:function(i,o){if(o!==void 0){if(o===null){(0,L.default)(i).bsDatepicker("setStartDate",null);return}var a=this._newDate(o);if(a!==null&&(o=a,!isNaN(o.valueOf()))){var u=(0,L.default)(i).bsDatepicker("getUTCDate");(0,L.default)(i).bsDatepicker("setStartDate",this._UTCDateAsLocal(o)),o&&u&&o.getTime()>u.getTime()?(0,L.default)(i).bsDatepicker("clearDates"):(0,L.default)(i).bsDatepicker("setUTCDate",u)}}}},{key:"_setMax",value:function(i,o){if(o!==void 0){if(o===null){(0,L.default)(i).bsDatepicker("setEndDate",null);return}var a=this._newDate(o);if(a!==null&&(o=a,!isNaN(o.valueOf()))){var u=(0,L.default)(i).bsDatepicker("getUTCDate");(0,L.default)(i).bsDatepicker("setEndDate",this._UTCDateAsLocal(o)),o&&u&&o.getTime()<u.getTime()?(0,L.default)(i).bsDatepicker("clearDates"):(0,L.default)(i).bsDatepicker("setUTCDate",u)}}}},{key:"_newDate",value:function(i){if(i instanceof Date)return i;if(!i)return null;var o=Lf(i);return isNaN(o.valueOf())?null:o}},{key:"_floorDateTime",value:function(i){return i=new Date(i.getTime()),i.setUTCHours(0,0,0,0),i}},{key:"_dateAsUTC",value:function(i){return new Date(i.getTime()-i.getTimezoneOffset()*6e4)}},{key:"_UTCDateAsLocal",value:function(i){return new Date(i.getTime()+i.getTimezoneOffset()*6e4)}}]),r}(V),vd=function(e){dd(r,e);var t=md(r);function r(){return fd(this,r),t.apply(this,arguments)}return pd(r,[{key:"getValue",value:function(i){var o=(0,L.default)(i).find("input").bsDatepicker("getUTCDate");return qe(o)}},{key:"setValue",value:function(i,o){if(o===null){(0,L.default)(i).find("input").val("").bsDatepicker("update");return}var a=this._newDate(o);a!==null&&(isNaN(a.valueOf())||(0,L.default)(i).find("input").bsDatepicker("setUTCDate",a))}},{key:"getState",value:function(i){var o=(0,L.default)(i),a=o.find("input"),u=a.data("datepicker").startDate,s=a.data("datepicker").endDate;u=u===-Infinity?null:qe(u),s=s===Infinity?null:qe(s);var l=a.data("datepicker").startViewMode;return l===2?l="decade":l===1?l="year":l===0&&(l="month"),{label:this._getLabelNode(i).text(),value:this.getValue(i),valueString:a.val(),min:u,max:s,language:a.data("datepicker").language,weekstart:a.data("datepicker").weekStart,format:this._formatToString(a.data("datepicker").format),startview:l}}},{key:"receiveMessage",value:function(i,o){var a=(0,L.default)(i).find("input");re(o.label,this._getLabelNode(i)),O(o,"min")&&this._setMin(a[0],o.min),O(o,"max")&&this._setMax(a[0],o.max),O(o,"value")&&this.setValue(i,o.value),(0,L.default)(i).trigger("change")}}]),r}(Ma);var UB=w(Oe());var ZB=w($());var W=w(E());function Wn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wn=function(r){return typeof r}:Wn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wn(e)}function PO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qO(e,t,r){return t&&yd(e.prototype,t),r&&yd(e,r),e}function TO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Va(e,t)}function Va(e,t){return Va=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Va(e,t)}function EO(e){var t=DO();return function(){var n=Yn(e),i;if(t){var o=Yn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kO(this,i)}}function kO(e,t){return t&&(Wn(t)==="object"||typeof t=="function")?t:BO(e)}function BO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(e)}function Xn(e){e.$cache&&e.$cache.input?e.$cache.input.trigger("change"):console.log("Couldn't force ion slider to update")}function hd(e,t,r){var n,i;return e==="date"?(n=window.strftime.utc(),i=function(a){return n(t,new Date(a))}):e==="datetime"?(r?n=window.strftime.timezone(r):n=window.strftime,i=function(a){return n(t,new Date(a))}):i=function(a){return CO(a,this.prettify_separator)},i}var gd=function(e){TO(r,e);var t=EO(r);function r(){return PO(this,r),t.apply(this,arguments)}return qO(r,[{key:"find",value:function(i){return W.default.fn.ionRangeSlider?(0,W.default)(i).find("input.js-range-slider"):(0,W.default)()}},{key:"getType",value:function(i){var o=(0,W.default)(i).data("data-type");return o==="date"?"shiny.date":o==="datetime"?"shiny.datetime":!1}},{key:"getValue",value:function(i){var o=(0,W.default)(i),a=(0,W.default)(i).data("ionRangeSlider").result,u,s=o.data("data-type");return s==="date"?u=function(f){return qe(new Date(Number(f)))}:s==="datetime"?u=function(f){return Number(f)/1e3}:u=function(f){return Number(f)},this._numValues(i)===2?[u(a.from),u(a.to)]:u(a.from)}},{key:"setValue",value:function(i,o){var a=(0,W.default)(i),u=a.data("ionRangeSlider");a.data("immediate",!0);try{this._numValues(i)===2&&o instanceof Array?u.update({from:o[0],to:o[1]}):u.update({from:o}),Xn(u)}finally{a.data("immediate",!1)}}},{key:"subscribe",value:function(i,o){(0,W.default)(i).on("change.sliderInputBinding",function(){o(!(0,W.default)(i).data("immediate")&&!(0,W.default)(i).data("animating"))})}},{key:"unsubscribe",value:function(i){(0,W.default)(i).off(".sliderInputBinding")}},{key:"receiveMessage",value:function(i,o){var a=(0,W.default)(i),u=a.data("ionRangeSlider"),s={};O(o,"value")&&(this._numValues(i)===2&&o.value instanceof Array?(s.from=o.value[0],s.to=o.value[1]):s.from=o.value);for(var l=["min","max","step"],f=0;f<l.length;f++){var c=l[f];O(o,c)&&(s[c]=o[c])}re(o.label,this._getLabelNode(i));for(var p=["data-type","time-format","timezone"],m=0;m<p.length;m++){var d=p[m];O(o,d)&&a.data(d,o[d])}var h=a.data("data-type"),y=a.data("time-format"),g=a.data("timezone");s.prettify=hd(h,y,g),a.data("immediate",!0);try{u.update(s),Xn(u)}finally{a.data("immediate",!1)}}},{key:"getRatePolicy",value:function(i){return{policy:"debounce",delay:250}}},{key:"getState",value:function(i){}},{key:"initialize",value:function(i){var o=(0,W.default)(i),a=o.data("data-type"),u=o.data("time-format"),s=o.data("timezone"),l={prettify:hd(a,u,s)};o.ionRangeSlider(l)}},{key:"_getLabelNode",value:function(i){return(0,W.default)(i).parent().find('label[for="'+q(i.id)+'"]')}},{key:"_numValues",value:function(i){return(0,W.default)(i).data("ionRangeSlider").options.type==="double"?2:1}}]),r}($r);function CO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:",",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".",n=e.toString().split(".");return n[0]=n[0].replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+t),n.length===1?n[0]:n.length===2?n[0]+r+n[1]:""}(0,W.default)(document).on("click",".slider-animate-button",function(e){e.preventDefault();var t=(0,W.default)(this),r=(0,W.default)("#"+q(t.attr("data-target-id"))),n="Play",i="Pause",o=t.attr("data-loop")!==void 0&&!/^\s*false\s*$/i.test(t.attr("data-loop")),a=t.attr("data-interval");if(isNaN(a)?a=1500:a=Number(a),r.data("animTimer"))clearTimeout(r.data("animTimer")),r.removeData("animTimer"),t.attr("title",n),t.removeClass("playing"),r.removeData("animating");else{var u;if(r.hasClass("jslider")){var s=r.slider();s.canStepNext()||s.resetToStart(),u=setInterval(function(){o&&!s.canStepNext()?s.resetToStart():(s.stepNext(),!o&&!s.canStepNext()&&t.click())},a)}else{var l=r.data("ionRangeSlider"),f=function(){return l.options.type==="double"?l.result.to<l.result.max:l.result.from<l.result.max},c=function(){var d={from:l.result.min};l.options.type==="double"&&(d.to=d.from+(l.result.to-l.result.from)),l.update(d),Xn(l)},p=function(){var d={from:Math.min(l.result.max,l.result.from+l.options.step)};l.options.type==="double"&&(d.to=Math.min(l.result.max,l.result.to+l.options.step)),l.update(d),Xn(l)};f()||c(),u=setInterval(function(){o&&!f()?c():(p(),!o&&!f()&&t.click())},a)}r.data("animTimer",u),t.attr("title",i),t.addClass("playing"),r.data("animating",!0)}});var dD=w($());var Ee=w(E());function Qn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qn=function(r){return typeof r}:Qn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qn(e)}function NO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function AO(e,t,r){return t&&bd(e.prototype,t),r&&bd(e,r),e}function $O(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fa(e,t)}function Fa(e,t){return Fa=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Fa(e,t)}function MO(e){var t=LO();return function(){var n=Jn(e),i;if(t){var o=Jn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return VO(this,i)}}function VO(e,t){return t&&(Qn(t)==="object"||typeof t=="function")?t:FO(e)}function FO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jn(e)}var jd=function(e){$O(r,e);var t=MO(r);function r(){return NO(this,r),t.apply(this,arguments)}return AO(r,[{key:"find",value:function(i){return(0,Ee.default)(i).find(".shiny-date-range-input")}},{key:"getValue",value:function(i){var o=(0,Ee.default)(i).find("input"),a=o.eq(0).bsDatepicker("getUTCDate"),u=o.eq(1).bsDatepicker("getUTCDate");return[qe(a),qe(u)]}},{key:"setValue",value:function(i,o){if(o instanceof Object){var a=(0,Ee.default)(i).find("input");if(o.start!==void 0)if(o.start===null)a.eq(0).val("").bsDatepicker("update");else{var u=this._newDate(o.start);a.eq(0).bsDatepicker("setUTCDate",u)}if(o.end!==void 0)if(o.end===null)a.eq(1).val("").bsDatepicker("update");else{var s=this._newDate(o.end);a.eq(1).bsDatepicker("setUTCDate",s)}}}},{key:"getState",value:function(i){var o=(0,Ee.default)(i),a=o.find("input"),u=a.eq(0),s=a.eq(1),l=u.bsDatepicker("getStartDate"),f=u.bsDatepicker("getEndDate"),c=l===-Infinity?null:qe(l),p=f===Infinity?null:qe(f),m=u.data("datepicker").startView;return m===2?m="decade":m===1?m="year":m===0&&(m="month"),{label:this._getLabelNode(i).text(),value:this.getValue(i),valueString:[u.val(),s.val()],min:c,max:p,weekstart:u.data("datepicker").weekStart,format:this._formatToString(u.data("datepicker").format),language:u.data("datepicker").language,startview:m}}},{key:"receiveMessage",value:function(i,o){var a=(0,Ee.default)(i),u=a.find("input"),s=u.eq(0),l=u.eq(1);re(o.label,this._getLabelNode(i)),O(o,"min")&&(this._setMin(s[0],o.min),this._setMin(l[0],o.min)),O(o,"max")&&(this._setMax(s[0],o.max),this._setMax(l[0],o.max)),O(o,"value")&&this.setValue(i,o.value),a.trigger("change")}},{key:"initialize",value:function(i){var o=(0,Ee.default)(i),a=o.find("input"),u=a.eq(0),s=a.eq(1),l=u.data("initial-date"),f=s.data("initial-date");l==null&&(l=this._dateAsUTC(new Date)),f==null&&(f=this._dateAsUTC(new Date)),this.setValue(i,{start:l,end:f}),this._setMin(u[0],u.data("min-date")),this._setMin(s[0],u.data("min-date")),this._setMax(u[0],s.data("max-date")),this._setMax(s[0],s.data("max-date"))}},{key:"subscribe",value:function(i,o){(0,Ee.default)(i).on("keyup.dateRangeInputBinding input.dateRangeInputBinding",function(){o(!0)}),(0,Ee.default)(i).on("changeDate.dateRangeInputBinding change.dateRangeInputBinding",function(){o(!1)})}},{key:"unsubscribe",value:function(i){(0,Ee.default)(i).off(".dateRangeInputBinding")}},{key:"_getLabelNode",value:function(i){return(0,Ee.default)(i).find('label[for="'+q(i.id)+'"]')}}]),r}(Ma);var qD=w($());var U=w(E());var Et=eval;function Zn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zn=function(r){return typeof r}:Zn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zn(e)}function zO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function UO(e,t,r){return t&&wd(e.prototype,t),r&&wd(e,r),e}function HO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&La(e,t)}function La(e,t){return La=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},La(e,t)}function GO(e){var t=YO();return function(){var n=ei(e),i;if(t){var o=ei(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return KO(this,i)}}function KO(e,t){return t&&(Zn(t)==="object"||typeof t=="function")?t:WO(e)}function WO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ei(e)}var _d=function(e){HO(r,e);var t=GO(r);function r(){return zO(this,r),t.apply(this,arguments)}return UO(r,[{key:"find",value:function(i){return(0,U.default)(i).find("select")}},{key:"getType",value:function(i){var o=(0,U.default)(i);return o.hasClass("symbol")?o.attr("multiple")==="multiple"?"shiny.symbolList":"shiny.symbol":null}},{key:"getId",value:function(i){return V.prototype.getId.call(this,i)||i.name}},{key:"getValue",value:function(i){return(0,U.default)(i).val()}},{key:"setValue",value:function(i,o){if(!this._is_selectize(i))(0,U.default)(i).val(o);else{var a=this._selectize(i);a&&a.setValue(o)}}},{key:"getState",value:function(i){for(var o=new Array(i.length),a=0;a<i.length;a++)o[a]={value:i[a].value,label:i[a].label};return{label:this._getLabelNode(i),value:this.getValue(i),options:o}}},{key:"receiveMessage",value:function(i,o){var a=(0,U.default)(i),u;if(O(o,"options")&&(u=this._selectize(i),u&&u.destroy(),a.empty().append(o.options),this._selectize(i)),O(o,"config")&&(a.parent().find('script[data-for="'+q(i.id)+'"]').replaceWith(o.config),this._selectize(i,!0)),O(o,"url")){u=this._selectize(i),u.clearOptions();var s=!1;u.settings.load=function(l,f){var c=u.settings;U.default.ajax({url:o.url,data:{query:l,field:JSON.stringify([c.searchField]),value:c.valueField,conju:c.searchConjunction,maxop:c.maxOptions},type:"GET",error:function(){f()},success:function(m){U.default.each(m,function(d,h){var y=h[c.optgroupField||"optgroup"],g={};g[c.optgroupLabelField||"label"]=y,g[c.optgroupValueField||"value"]=y,u.addOptionGroup(y,g)}),f(m),s||(O(o,"value")?u.setValue(o.value):c.maxItems===1&&u.setValue(m[0].value)),s=!0}})},u.load(function(l){u.settings.load.apply(u,["",l])})}else O(o,"value")&&this.setValue(i,o.value);re(o.label,this._getLabelNode(i)),(0,U.default)(i).trigger("change")}},{key:"subscribe",value:function(i,o){var a=this;(0,U.default)(i).on("change.selectInputBinding",function(){i.nonempty&&a.getValue(i)===""||o(!1)})}},{key:"unsubscribe",value:function(i){(0,U.default)(i).off(".selectInputBinding")}},{key:"initialize",value:function(i){this._selectize(i)}},{key:"_getLabelNode",value:function(i){var o=q(i.id);return this._is_selectize(i)&&(o+="-selectized"),(0,U.default)(i).parent().parent().find('label[for="'+o+'"]')}},{key:"_is_selectize",value:function(i){var o=(0,U.default)(i).parent().find('script[data-for="'+q(i.id)+'"]');return o.length>0}},{key:"_selectize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!!U.default.fn.selectize){var a=(0,U.default)(i),u=a.parent().find('script[data-for="'+q(i.id)+'"]');if(u.length!==0){var s=U.default.extend({labelField:"label",valueField:"value",searchField:["label"]},JSON.parse(u.html()));typeof u.data("nonempty")!="undefined"?(i.nonempty=!0,s=U.default.extend(s,{onItemRemove:function(p){this.getValue()===""&&(0,U.default)("select#"+q(i.id)).empty().append((0,U.default)("<option/>",{value:p,selected:!0})).trigger("change")},onDropdownClose:function(){this.getValue()===""&&this.setValue((0,U.default)("select#"+q(i.id)).val())}})):i.nonempty=!1,u.data("eval")instanceof Array&&U.default.each(u.data("eval"),function(c,p){s[p]=Et("("+s[p]+")")});var l=a.selectize(s)[0].selectize;if(o){var f=U.default.extend(l.settings,s);l.destroy(),l=a.selectize(f)[0].selectize}return l}}}}]),r}(V);var UD=w($());var Le=w(E());function ti(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ti=function(r){return typeof r}:ti=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ti(e)}function XO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function QO(e,t,r){return t&&xd(e.prototype,t),r&&xd(e,r),e}function JO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&za(e,t)}function za(e,t){return za=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},za(e,t)}function ZO(e){var t=rS();return function(){var n=ri(e),i;if(t){var o=ri(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return eS(this,i)}}function eS(e,t){return t&&(ti(t)==="object"||typeof t=="function")?t:tS(e)}function tS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ri(e)}var Od=function(e){JO(r,e);var t=ZO(r);function r(){return XO(this,r),t.apply(this,arguments)}return QO(r,[{key:"find",value:function(i){return(0,Le.default)(i).find(".action-button")}},{key:"getValue",value:function(i){return(0,Le.default)(i).data("val")||0}},{key:"setValue",value:function(i,o){(0,Le.default)(i).data("val",o)}},{key:"getType",value:function(i){return"shiny.action"}},{key:"subscribe",value:function(i,o){(0,Le.default)(i).on("click.actionButtonInputBinding",function(){var a=(0,Le.default)(this),u=a.data("val")||0;a.data("val",u+1),o(!1)})}},{key:"getState",value:function(i){return{value:this.getValue(i)}}},{key:"receiveMessage",value:function(i,o){var a=(0,Le.default)(i),u=a.text(),s="";if(a.find("i[class]").length>0){var l=a.find("i[class]")[0];l===a.children()[0]&&(s=(0,Le.default)(l).prop("outerHTML"))}O(o,"label")&&(u=o.label),O(o,"icon")&&(s=o.icon,s.length===0&&(s="")),a.html(s+" "+u)}},{key:"unsubscribe",value:function(i){(0,Le.default)(i).off(".actionButtonInputBinding")}}]),r}(V);(0,Le.default)(document).on("click","a.action-button",function(e){e.preventDefault()});var iC=w($());var Ie=w(E());function ni(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ni=function(r){return typeof r}:ni=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ni(e)}function nS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function iS(e,t,r){return t&&Sd(e.prototype,t),r&&Sd(e,r),e}function oS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ua(e,t)}function Ua(e,t){return Ua=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ua(e,t)}function aS(e){var t=lS();return function(){var n=ii(e),i;if(t){var o=ii(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return uS(this,i)}}function uS(e,t){return t&&(ni(t)==="object"||typeof t=="function")?t:sS(e)}function sS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ii(e)}var Id=function(e){oS(r,e);var t=aS(r);function r(){return nS(this,r),t.apply(this,arguments)}return iS(r,[{key:"find",value:function(i){return(0,Ie.default)(i).find("ul.nav.shiny-tab-input")}},{key:"getValue",value:function(i){var o=Mo()?(0,Ie.default)(i).find("li:not(.dropdown).active > a"):(0,Ie.default)(i).find(".nav-link:not(.dropdown-toggle).active, .dropdown-menu .dropdown-item.active");return o.length===1?this._getTabName(o):null}},{key:"setValue",value:function(i,o){var a=this,u=!1;if(o){var s=Mo()?(0,Ie.default)(i).find("li:not(.dropdown) > a"):(0,Ie.default)(i).find(".nav-link:not(.dropdown-toggle), .dropdown-menu .dropdown-item");s.each(function(){if(a._getTabName((0,Ie.default)(this))===o)return(0,Ie.default)(this).tab("show"),u=!0,!1})}u||(0,Ie.default)(i).trigger("change")}},{key:"getState",value:function(i){return{value:this.getValue(i)}}},{key:"receiveMessage",value:function(i,o){O(o,"value")&&this.setValue(i,o.value),(0,Ie.default)(i).trigger("change")}},{key:"subscribe",value:function(i,o){(0,Ie.default)(i).on("change shown.bootstrapTabInputBinding shown.bs.tab.bootstrapTabInputBinding",function(){o(!1)})}},{key:"unsubscribe",value:function(i){(0,Ie.default)(i).off(".bootstrapTabInputBinding")}},{key:"_getTabName",value:function(i){return i.attr("data-value")||i.text()}}]),r}(V);var MC=w($());var ne=w(E());"use strict";var fS=A(),cS=Ut().map,pS=Vt(),dS=pS("map");fS({target:"Array",proto:!0,forced:!dS},{map:function(t){return cS(this,t,arguments.length>1?arguments[1]:void 0)}});var xC=w($());var Qe=w(E());var Ha=w(E());function Rd(e,t,r,n,i,o){var a=Ha.default.Event("shiny:inputchanged");return a.name=e,a.value=t,a.binding=r,a.el=n,a.inputType=i,(0,Ha.default)(o).trigger(a),a}var Re=null;function Pd(e){Re=e}function ze(e,t,r){Re.setInputValue(e,t,r)}function ct(){return Re.shinyapp}function qd(e){Re.user=e}function Td(e){Re.forgetLastInputValue(e)}function Ga(e){Re.bindAll(e)}function ge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Re.unbindAll(e,t)}function Ka(e){Re.initializeInputs(e)}function Ed(e,t){Re.shinyapp.bindOutput(e,t)}function kd(e,t){return Re.shinyapp.unbindOutput(e,t)}function Bd(){return Re.oncustommessage}var Dd;function Cd(){return Dd}function Nd(e){Dd=e}function Ad(){return Re.createSocket}function oi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(r){return typeof r}:oi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oi(e)}function mS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wa(e,t)}function Wa(e,t){return Wa=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Wa(e,t)}function vS(e){var t=hS();return function(){var n=ai(e),i;if(t){var o=ai(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return yS(this,i)}}function yS(e,t){return t&&(oi(t)==="object"||typeof t=="function")?t:pt(e)}function pt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ai(e){return ai=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ai(e)}function $d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Md(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vd(e,t,r){return t&&Md(e.prototype,t),r&&Md(e,r),e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gS=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;$d(this,e),ke(this,"files",void 0),ke(this,"fileIndex",-1),ke(this,"aborted",!1),ke(this,"completed",!1),this.files=t,r&&this.$run()}return Vd(e,[{key:"onBegin",value:function(r,n){setTimeout(n,0)}},{key:"onFile",value:function(r,n){setTimeout(n,0)}},{key:"onComplete",value:function(){}},{key:"onAbort",value:function(){}},{key:"abort",value:function(){this.completed||this.aborted||(this.aborted=!0,this.onAbort())}},{key:"$getRun",value:function(){var r=this,n=!1;return function(){n||(n=!0,r.$run())}}},{key:"$run",value:function(){if(!(this.aborted||this.completed)){if(this.fileIndex<0){this.fileIndex=0,this.onBegin(this.files,this.$getRun());return}if(this.fileIndex===this.files.length){this.completed=!0,this.onComplete();return}var r=this.files[this.fileIndex++];this.onFile(r,this.$getRun())}}}]),e}(),Ya=function(e){mS(r,e);var t=vS(r);function r(n,i,o,a){var u;return $d(this,r),u=t.call(this,o,!1),ke(pt(u),"shinyapp",void 0),ke(pt(u),"id",void 0),ke(pt(u),"el",void 0),ke(pt(u),"jobId",void 0),ke(pt(u),"uploadUrl",void 0),ke(pt(u),"progressBytes",void 0),ke(pt(u),"totalBytes",void 0),u.shinyapp=n,u.id=i,u.el=a,u.$run(),u}return Vd(r,[{key:"makeRequest",value:function(i,o,a,u,s){this.shinyapp.makeRequest(i,o,a,u,s)}},{key:"onBegin",value:function(i,o){var a=this;this.$setError(null),this.$setActive(!0),this.$setVisible(!0),this.onProgress(null,0),this.totalBytes=0,this.progressBytes=0,Qe.default.each(i,function(s,l){a.totalBytes+=l.size});var u=Qe.default.map(i,function(s,l){return{name:s.name,size:s.size,type:s.type}});this.makeRequest("uploadInit",[u],function(s){a.jobId=s.jobId,a.uploadUrl=s.uploadUrl,o()},function(s){a.onError(s)},void 0)}},{key:"onFile",value:function(i,o){var a=this;this.onProgress(i,0),Qe.default.ajax(this.uploadUrl,{type:"POST",cache:!1,xhr:function(){var s=Qe.default.ajaxSettings.xhr();return s.upload&&(s.upload.onprogress=function(l){l.lengthComputable&&a.onProgress(i,(a.progressBytes+l.loaded)/a.totalBytes)}),s},data:i,contentType:"application/octet-stream",processData:!1,success:function(){a.progressBytes+=i.size,o()},error:function(s,l,f){a.onError(s.responseText||l)}})}},{key:"onComplete",value:function(){var i=this,o=Qe.default.map(this.files,function(u,s){return{name:u.name,size:u.size,type:u.type}}),a=Rd(this.id,o,Cd(),this.el,"shiny.fileupload",document);this.makeRequest("uploadEnd",[this.jobId,this.id],function(){i.$setActive(!1),i.onProgress(null,1),i.$bar().text("Upload complete"),(0,Qe.default)(a.el).val("")},function(u){i.onError(u)},void 0),this.$bar().text("Finishing upload")}},{key:"onError",value:function(i){this.$setError(i||""),this.$setActive(!1)}},{key:"onAbort",value:function(){this.$setVisible(!1)}},{key:"onProgress",value:function(i,o){this.$bar().width(Math.round(o*100)+"%"),this.$bar().text(i?i.name:"")}},{key:"$container",value:function(){return(0,Qe.default)("#"+q(this.id)+"_progress.shiny-file-input-progress")}},{key:"$bar",value:function(){return(0,Qe.default)("#"+q(this.id)+"_progress.shiny-file-input-progress .progress-bar")}},{key:"$setVisible",value:function(i){this.$container().css("visibility",i?"visible":"hidden")}},{key:"$setError",value:function(i){this.$bar().toggleClass("progress-bar-danger",i!==null),i!==null&&(this.onProgress(null,1),this.$bar().text(i))}},{key:"$setActive",value:function(i){this.$container().toggleClass("active",!!i)}}]),r}(gS);function ui(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ui=function(r){return typeof r}:ui=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ui(e)}function bS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jS(e,t,r){return t&&Fd(e.prototype,t),r&&Fd(e,r),e}function wS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xa(e,t)}function Xa(e,t){return Xa=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xa(e,t)}function _S(e){var t=SS();return function(){var n=si(e),i;if(t){var o=si(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return xS(this,i)}}function xS(e,t){return t&&(ui(t)==="object"||typeof t=="function")?t:OS(e)}function OS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function si(e){return si=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},si(e)}var Vr={ACTIVE:"shiny-file-input-active",OVER:"shiny-file-input-over"};function Ld(e,t){var r=e.closest("div.input-group").find("input[type=text]");t.length===1?r.val(t[0].name):r.val(t.length+" files")}function zd(e){var t=e.data("currentUploader");t&&t.abort(),e.removeAttr("data-restore")}function IS(e,t){var r=(0,ne.default)(e);zd(r),Ld(r,t),r.data("currentUploader",new Ya(ct(),Qa(e),t,e))}function RS(e){var t=(0,ne.default)(e.target);zd(t);var r=e.target.files,n=Qa(e.target);r.length!==0&&(Ld(t,r),t.data("currentUploader",new Ya(ct(),n,r,e.target)))}var Je=(0,ne.default)();function Qa(e){return V.prototype.getId.call(this,e)||e.name}var Ud=function(e){wS(r,e);var t=_S(r);function r(){return bS(this,r),t.apply(this,arguments)}return jS(r,[{key:"find",value:function(i){return(0,ne.default)(i).find('input[type="file"]')}},{key:"getId",value:function(i){return Qa(i)}},{key:"getValue",value:function(i){var o=(0,ne.default)(i).attr("data-restore");if(o){var a=JSON.parse(o),u=(0,ne.default)(i).closest("div.input-group").find("input[type=text]");a.name.length===1?u.val(a.name[0]):u.val(a.name.length+" files");var s=(0,ne.default)(i).closest("div.form-group").find(".progress"),l=s.find(".progress-bar");return s.removeClass("active"),l.width("100%"),l.css("visibility","visible"),a}else return null}},{key:"setValue",value:function(i,o){}},{key:"getType",value:function(i){return"shiny.file"}},{key:"_zoneOf",value:function(i){return(0,ne.default)(i).closest("div.input-group")}},{key:"_enableDraghover",value:function(i){var o=(0,ne.default)(i),a=0;return o.on({"dragenter.draghover":function(s){a++==0&&o.trigger("draghover:enter",s)},"dragleave.draghover":function(s){--a==0&&o.trigger("draghover:leave",s),a<0&&console.error("draghover childCounter is negative somehow")},"dragover.draghover":function(s){s.preventDefault()},"drop.draghover":function(s){a=0,o.trigger("draghover:drop",s),s.preventDefault()}}),o}},{key:"_disableDraghover",value:function(i){return(0,ne.default)(i).off(".draghover")}},{key:"_enableDocumentEvents",value:function(){var i=this,o=(0,ne.default)("html"),a=Vr.ACTIVE,u=Vr.OVER;this._enableDraghover(o).on({"draghover:enter.draghover":function(){i._zoneOf(Je).addClass(a)},"draghover:leave.draghover":function(){i._zoneOf(Je).removeClass(a)},"draghover:drop.draghover":function(){i._zoneOf(Je).removeClass(u).removeClass(a)}})}},{key:"_disableDocumentEvents",value:function(){var i=(0,ne.default)("html");i.off(".draghover"),this._disableDraghover(i)}},{key:"_canSetFiles",value:function(i){var o=document.createElement("input");o.type="file";try{o.files=i}catch(a){return!1}return!0}},{key:"_handleDrop",value:function(i,o){var a=i.originalEvent.dataTransfer.files,u=(0,ne.default)(o);a==null?console.log("Dropping files is not supported on this browser. (no FileList)"):this._canSetFiles(a)?(u.val(""),o.files=i.originalEvent.dataTransfer.files,u.trigger("change")):(u.val(""),IS(o,a))}},{key:"subscribe",value:function(i,o){var a=this;(0,ne.default)(i).on("change.fileInputBinding",RS),Je.length===0&&this._enableDocumentEvents(),Je=Je.add(i);var u=this._zoneOf(i),s=Vr.OVER;this._enableDraghover(u).on({"draghover:enter.draghover":function(f){u.addClass(s)},"draghover:leave.draghover":function(f){u.removeClass(s),f.stopPropagation()},"draghover:drop.draghover":function(f,c){a._handleDrop(c,i)}})}},{key:"unsubscribe",value:function(i){var o=(0,ne.default)(i),a=this._zoneOf(i);a.removeClass(Vr.OVER).removeClass(Vr.ACTIVE),this._disableDraghover(a),o.off(".fileInputBinding"),a.off(".draghover"),Je=Je.not(i),Je.length===0&&this._disableDocumentEvents()}}]),r}(V);function Hd(){var e=new wn;e.register(new Jt,"shiny.textInput"),e.register(new ud,"shiny.textareaInput"),e.register(new id,"shiny.passwordInput"),e.register(new td,"shiny.numberInput"),e.register(new kp,"shiny.checkboxInput"),e.register(new $p,"shiny.checkboxGroupInput"),e.register(new ld,"shiny.radioInput"),e.register(new gd,"shiny.sliderInput"),e.register(new vd,"shiny.dateInput"),e.register(new jd,"shiny.dateRangeInput"),e.register(new _d,"shiny.selectInput"),e.register(new Od,"shiny.actionButtonInput"),e.register(new Id,"shiny.bootstrapTabInput");var t=new Ud;return e.register(t,"shiny.fileInputBinding"),{inputBindings:e,fileInputBinding:t}}var ON=w($());var Za=w(E());"use strict";var PS=A(),qS=ur(),TS=Pe(),ES=mr(),kS=[].join,BS=qS!=Object,DS=ES("join",",");PS({target:"Array",proto:!0,forced:BS||!DS},{join:function(t){return kS.call(TS(this),t===void 0?",":t)}});var pN=w(Oe());var kt=w(E());function CS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function NS(e,t,r){return t&&Gd(e.prototype,t),r&&Gd(e,r),e}function AS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ie=function(){function e(){CS(this,e),AS(this,"name",void 0)}return NS(e,[{key:"find",value:function(r){throw"Not implemented"}},{key:"renderValue",value:function(r,n){throw"Not implemented"}},{key:"getId",value:function(r){return r["data-input-id"]||r.id}},{key:"onValueChange",value:function(r,n){this.clearError(r),this.renderValue(r,n)}},{key:"onValueError",value:function(r,n){this.renderError(r,n)}},{key:"renderError",value:function(r,n){if(this.clearError(r),n.message===""){(0,kt.default)(r).empty();return}var i="shiny-output-error";n.type!==null&&(i=i+" "+kt.default.map(zt(n.type),function(o){return i+"-"+o}).join(" ")),(0,kt.default)(r).addClass(i).text(n.message)}},{key:"clearError",value:function(r){(0,kt.default)(r).attr("class",function(n,i){return i.replace(/(^|\s)shiny-output-error\S*/g,"")})}},{key:"showProgress",value:function(r,n){var i="recalculating";n?(0,kt.default)(r).addClass(i):(0,kt.default)(r).removeClass(i)}}]),e}();function li(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?li=function(r){return typeof r}:li=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},li(e)}function $S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function MS(e,t,r){return t&&Kd(e.prototype,t),r&&Kd(e,r),e}function VS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ja(e,t)}function Ja(e,t){return Ja=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ja(e,t)}function FS(e){var t=US();return function(){var n=fi(e),i;if(t){var o=fi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return LS(this,i)}}function LS(e,t){return t&&(li(t)==="object"||typeof t=="function")?t:zS(e)}function zS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function US(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},fi(e)}var Wd=function(e){VS(r,e);var t=FS(r);function r(){return $S(this,r),t.apply(this,arguments)}return MS(r,[{key:"find",value:function(i){return(0,Za.default)(i).find(".shiny-text-output")}},{key:"renderValue",value:function(i,o){(0,Za.default)(i).text(o)}}]),r}(ie);var $N=w($());var Fr=w(E());function ci(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(r){return typeof r}:ci=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ci(e)}function HS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function GS(e,t,r){return t&&Yd(e.prototype,t),r&&Yd(e,r),e}function KS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eu(e,t)}function eu(e,t){return eu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},eu(e,t)}function WS(e){var t=QS();return function(){var n=pi(e),i;if(t){var o=pi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return YS(this,i)}}function YS(e,t){return t&&(ci(t)==="object"||typeof t=="function")?t:XS(e)}function XS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pi(e)}var Xd=function(e){KS(r,e);var t=WS(r);function r(){return HS(this,r),t.apply(this,arguments)}return GS(r,[{key:"find",value:function(i){return(0,Fr.default)(i).find("a.shiny-download-link")}},{key:"renderValue",value:function(i,o){(0,Fr.default)(i).attr("href",o)}}]),r}(ie);(0,Fr.default)(document).on("click.shinyDownloadLink","a.shiny-download-link",function(e){var t=jQuery.Event("shiny:filedownload");t.name=this.id,t.href=this.href,(0,Fr.default)(document).trigger(t)});var n1=w(Oe());"use strict";var JS=wr(),ZS=K(),eI=Ge(),Zd=Jd(),tI=_r();JS("search",1,function(e,t,r){return[function(i){var o=eI(this),a=i==null?void 0:i[e];return a!==void 0?a.call(i,o):new RegExp(i)[e](String(o))},function(n){var i=r(t,n,this);if(i.done)return i.value;var o=ZS(n),a=String(this),u=o.lastIndex;Zd(u,0)||(o.lastIndex=0);var s=tI(o,a);return Zd(o.lastIndex,u)||(o.lastIndex=u),s===null?-1:s.index}]});var d1=w($());var Ue=w(E());function rI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nI(e,t,r){return t&&em(e.prototype,t),r&&em(e,r),e}function Lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Be=function(){function e(t,r,n){rI(this,e),Lr(this,"target",void 0),Lr(this,"func",void 0),Lr(this,"delayMs",void 0),Lr(this,"timerId",void 0),Lr(this,"args",void 0),this.target=t,this.func=r,this.delayMs=n,this.timerId=null,this.args=null}return nI(e,[{key:"normalCall",value:function(){var r=this;this.$clearTimer();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];this.args=i,this.timerId=setTimeout(function(){r.timerId!==null&&(r.$clearTimer(),r.$invoke())},this.delayMs)}},{key:"immediateCall",value:function(){this.$clearTimer();for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];this.args=n,this.$invoke()}},{key:"isPending",value:function(){return this.timerId!==null}},{key:"$clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"$invoke",value:function(){this.func.apply(this.target,this.args),this.args=null}}]),e}();function dt(e,t){var r=null;return function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r!==null&&(clearTimeout(r),r=null),r=setTimeout(function(){r!==null&&(r=null,t.apply(n,o))},e)}}function iI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oI(e,t,r){return t&&tm(e.prototype,t),r&&tm(e,r),e}function rm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tu=function(){function e(t,r){iI(this,e),rm(this,"target",void 0),rm(this,"func",void 0),this.target=t,this.func=r}return oI(e,[{key:"normalCall",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];this.func.apply(this.target,n)}},{key:"immediateCall",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];this.func.apply(this.target,n)}}]),e}();function aI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uI(e,t,r){return t&&nm(e.prototype,t),r&&nm(e,r),e}function zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zt=function(){function e(t,r,n){aI(this,e),zr(this,"target",void 0),zr(this,"func",void 0),zr(this,"delayMs",void 0),zr(this,"timerId",void 0),zr(this,"args",void 0),this.target=t,this.func=r,this.delayMs=n,this.timerId=null,this.args=null}return uI(e,[{key:"normalCall",value:function(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];this.args=i,this.timerId===null&&(this.$invoke(),this.timerId=setTimeout(function(){var a;r.timerId!==null&&(r.$clearTimer(),i.length>0&&(a=r.normalCall).apply.apply(a,[r].concat(i)))},this.delayMs))}},{key:"immediateCall",value:function(){this.$clearTimer();for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];this.args=n,this.$invoke()}},{key:"isPending",value:function(){return this.timerId!==null}},{key:"$clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"$invoke",value:function(){this.func.apply(this.target,this.args),this.args=null}}]),e}();function di(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?di=function(r){return typeof r}:di=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},di(e)}function sI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function im(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lI(e,t,r){return t&&im(e.prototype,t),r&&im(e,r),e}function fI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ru(e,t)}function ru(e,t){return ru=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ru(e,t)}function cI(e){var t=mI();return function(){var n=mi(e),i;if(t){var o=mi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return pI(this,i)}}function pI(e,t){return t&&(di(t)==="object"||typeof t=="function")?t:dI(e)}function dI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function mi(e){return mi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mi(e)}var om=function(e){fI(r,e);var t=cI(r);function r(){return sI(this,r),t.apply(this,arguments)}return lI(r,[{key:"find",value:function(i){return(0,Ue.default)(i).find(".shiny-datatable-output")}},{key:"onValueError",value:function(i,o){ge(i),this.renderError(i,o)}},{key:"renderValue",value:function(i,o){var a=(0,Ue.default)(i).empty();if(!(!o||!o.colnames)){var u=Ue.default.makeArray(o.colnames),s=Ue.default.map(u,function(h){return"<th>"+h+"</th>"}).join("");s="<thead><tr>"+s+"</tr></thead>";var l="";(o.options===null||o.options.searching!==!1)&&(l=Ue.default.map(u,function(h){return'<th><input type="text" placeholder="'+Vf(h.replace(/(<([^>]+)>)/gi,""))+'" /></th>'}).join(""),l="<tfoot>"+l+"</tfoot>");var f='<table class="table table-striped table-hover">'+s+l+"</table>";a.append(f),o.evalOptions&&Ue.default.each(o.evalOptions,function(h,y){o.options[y]=Et("("+o.options[y]+")")});var c=o.options===null||typeof o.options.search=="undefined"||o.options.search.caseInsensitive!==!1,p=(0,Ue.default)(i).children("table").DataTable(Ue.default.extend({processing:!0,serverSide:!0,order:[],orderClasses:!1,pageLength:25,ajax:{url:o.action,type:"POST",data:function(y){y.search.caseInsensitive=c,y.escape=o.escape}}},o.options));if(typeof o.callback=="string"){var m=Et("("+o.callback+")");typeof m=="function"&&m(p)}a.find("label input").first().unbind("keyup").keyup(dt(o.searchDelay,function(){p.search(this.value).draw()}));var d=a.find("tfoot input");d.length>0&&(Ue.default.each(p.settings()[0].aoColumns,function(h,y){y.bSearchable||d.eq(h).hide()}),d.keyup(dt(o.searchDelay,function(){p.column(d.index(this)).search(this.value).draw()}))),a.parents(".tab-content").css("overflow","visible")}}}]),r}(ie);var yA=w($());var Em=w(E());var L1=w(Oe());var bI=A(),jI=sm().entries;bI({target:"Object",stat:!0},{entries:function(t){return jI(t)}});var Q1=w($());var MI=A(),VI=bm(),FI=Om(),LI=!FI(function(e){Array.from(e)});MI({target:"Array",stat:!0,forced:LI},{from:VI});var Y=w(E());function zI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function UI(e,t,r){return t&&Sm(e.prototype,t),r&&Sm(e,r),e}function Im(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var HI=function(){function e(){zI(this,e),Im(this,"regular",void 0),Im(this,"transitioned",void 0)}return UI(e,[{key:"setImageSend",value:function(r,n){var i=new Be(null,n,0);return this.regular=function(){i.normalCall()},r.lastChanceCallback.push(function(){i.isPending()&&i.immediateCall()}),this.transitioned=dt(200,this.regular),i}}]),e}(),De=new HI;var B1=w(Oe());var er=w(E());var GI=/<!--(SHINY.SINGLETON\[([\w]+)\])-->([\s\S]*?)<!--\/\1-->/,KI=/<head(?:\s[^>]*)?>([\s\S]*?)<\/head>/,vi={};function Rm(e,t,r){var n=XI(e);if(YI(n.head),WI(n.singletons),r==="replace")(0,er.default)(t).html(n.html);else{var i;t instanceof HTMLElement?i=[t]:i=t.toArray(),er.default.each(i,function(o,a){a.insertAdjacentHTML(Wf(r),n.html)})}return n}function WI(e){er.default.extend(vi,e)}function Pm(e){if(typeof e=="string")vi[e]=!0;else if(e instanceof Array)for(var t=0;t<e.length;t++)vi[e[t]]=!0}function YI(e){if(e.length>0)for(var t=(0,er.default)("<div>"+e+"</div>").get(0),r=(0,er.default)("head");t.hasChildNodes();)r.append(t.firstChild)}function XI(e){for(var t={},r,n=function(u,s,l,f){return vi[l]||t[l]?"":(t[l]=!0,f)};r=e.replace(GI,n),e.length!==r.length;)e=r;for(var i=[],o=function(u,s){return i.push(s),""};r=e.replace(KI,o),e.length!==r.length;)e=r;return{html:e,head:i.join("\n"),singletons:t}}function QI(e,t){return t0(e)||e0(e,t)||ZI(e,t)||JI()}function JI(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ZI(e,t){if(!!e){if(typeof e=="string")return qm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qm(e,t)}}function qm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function e0(e,t){var r=e&&(typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"]);if(r!=null){var n=[],i=!0,o=!1,a,u;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(s){o=!0,u=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw u}}return n}}function t0(e){if(Array.isArray(e))return e}function yi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yi=function(r){return typeof r}:yi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yi(e)}function iu(e){e&&Y.default.each(e,function(t,r){n0(r)})}function we(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"replace";r==="replace"&&ge(e);var n,i=[];t===null?n="":typeof t=="string"?n=t:yi(t)==="object"&&(n=t.html,i=t.deps||[]),Ur(n,e,i,r);var o=e;if(r==="replace")Ka(e),Ga(e);else{var a=(0,Y.default)(e).parent();if(a.length>0&&(o=a,r==="beforeBegin"||r==="afterEnd")){var u=a.parent();u.length>0&&(o=u)}Ka(o),Ga(o)}}function Ur(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"replace";return iu(r),Rm(e,t,n)}var hi={};function ou(e,t){hi[e]=t}function r0(e){if(!e.restyle)return!1;var t=Object.keys(hi),r=t.indexOf(e.name);return r===-1?!1:hi[t[r]]===e.version}function n0(e){var t=r0(e);if(O(hi,e.name)&&!t)return!1;ou(e.name,e.version);var r=e.src.href,n=(0,Y.default)("head").first();if(e.meta&&!t){var i=Y.default.map(zt(e.meta),function(h,y){var g=Object.keys(h)[0];return(0,Y.default)("<meta>").attr("name",g).attr("content",h[g])});n.append(i)}if(e.stylesheet){var o=Y.default.map(zt(e.stylesheet),function(h){return(0,Y.default)("<link rel='stylesheet' type='text/css'>").attr("href",r+"/"+encodeURI(h))});if(!t)n.append(o);else{var a=function(y,g){var _=new XMLHttpRequest;_.open("GET",y),_.onload=function(){var P="shiny_restyle_"+y.split("?restyle")[0].replace(/\W/g,"_"),b=n.find("style#"+P),I=(0,Y.default)("<style>").attr("id",P).html(_.responseText);n.append(I),b.remove(),s(g),De.transitioned()},_.send()},u=function(y){for(var g=0;g<document.styleSheets.length;g++){var _=document.styleSheets[g];if(typeof _.href=="string"&&_.href.indexOf(y)>-1)return _}return null},s=function(y){!y||(y.disabled=!0,Ot()&&(y.cssText=""),(0,Y.default)(y.ownerNode).remove())};Y.default.map(o,function(h){var y=u(h.attr("href")),g=h.attr("href")+"?restyle="+new Date().getTime();Ot()?a(g,y):(h.attr("href",g),h.attr("onload",function(){var _="dummy-"+Math.floor(Math.random()*999999999),P="#"+_+" { color: #a7c920 !important; transition: 0.1s all !important; visibility: hidden !important; position: absolute !important; top: -1000px !important; left: 0 !important; }",b="data:text/css;base64,"+btoa(P),I=(0,Y.default)("<link rel='stylesheet' type='text/css' />");I.attr("href",b);var k=(0,Y.default)("<div id='"+_+"'></div>");k.one("transitionend",function(){k.remove(),s(u(I.attr("href"))),s(y),De.transitioned()}),(0,Y.default)(document.body).append(k),setTimeout(function(){return n.append(I)},0)}),n.append(h))})}}if(e.script&&!t){var l=zt(e.script),f=Y.default.map(l,function(h){var y=document.createElement("script");typeof h=="string"&&(h={src:h});for(var g=0,_=Object.entries(h);g<_.length;g++){var P=QI(_[g],2),b=P[0],I=P[1];b==="src"&&(I=r+"/"+encodeURI(I)),y.setAttribute(b,I||"")}return y});n.append(f)}if(e.attachment&&!t){var c=e.attachment;if(typeof c=="string"&&(c=[c]),Array.isArray(c)){var p={};Y.default.each(c,function(h,y){var g=h+1+"";p[g]=y}),c=p}var m=Y.default.map(c,function(h,y){return(0,Y.default)("<link rel='attachment'>").attr("id",e.name+"-"+y+"-attachment").attr("href",r+"/"+encodeURI(h))});n.append(m)}if(e.head&&!t){var d=(0,Y.default)("<head></head>");d.html(e.head),n.append(d.children())}return!0}function gi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gi=function(r){return typeof r}:gi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gi(e)}function i0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o0(e,t,r){return t&&Tm(e.prototype,t),r&&Tm(e,r),e}function a0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&au(e,t)}function au(e,t){return au=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},au(e,t)}function u0(e){var t=f0();return function(){var n=bi(e),i;if(t){var o=bi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return s0(this,i)}}function s0(e,t){return t&&(gi(t)==="object"||typeof t=="function")?t:l0(e)}function l0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function bi(e){return bi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bi(e)}var km=function(e){a0(r,e);var t=u0(r);function r(){return i0(this,r),t.apply(this,arguments)}return o0(r,[{key:"find",value:function(i){return(0,Em.default)(i).find(".shiny-html-output")}},{key:"onValueError",value:function(i,o){ge(i),this.renderError(i,o)}},{key:"renderValue",value:function(i,o){we(i,o)}}]),r}(ie);"use strict";var c0=A(),p0=Ut().filter,d0=Vt(),m0=d0("filter");c0({target:"Array",proto:!0,forced:!m0},{filter:function(t){return p0(this,t,arguments.length>1?arguments[1]:void 0)}});var d$=w($());var yt=w(E());var rr=w(E());var Cm=w(E());function Bm(e,t,r,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;o=o||!0;var a=(i-n)/(r-t),u=e-t,s=u*a+n;if(o){var l=Math.max(i,n),f=Math.min(i,n);s>l?s=l:s<f&&(s=f)}return s}function Dm(e,t,r,n,i){return{scale:function(a,u){return i&&(a=Math.log(a)/Math.log(i)),Bm(a,e,t,r,n,u)},scaleInv:function(a,u){var s=Bm(a,r,n,e,t,u);return i&&(s=Math.pow(i,s)),s}}}function v0(e){var t=e.domain,r=e.range,n=e.log&&e.log.x?e.log.x:null,i=e.log&&e.log.y?e.log.y:null,o=Dm(t.left,t.right,r.left,r.right,n),a=Dm(t.bottom,t.top,r.bottom,r.top,i);e.scaleDataToImg=function(s,l){return Te(s,function(f,c){var p=c.substring(0,1);return p==="x"?o.scale(f,l):p==="y"?a.scale(f,l):null})};function u(s,l){return Te(s,function(f,c){var p=c.substring(0,1);return p==="x"?o.scaleInv(f,l):p==="y"?a.scaleInv(f,l):null})}e.scaleImgToData=u,e.clipImg=function(s){var l={x:s.x,y:s.y},f=e.range;return s.x>f.right?l.x=f.right:s.x<f.left&&(l.x=f.left),s.y>f.bottom?l.y=f.bottom:s.y<f.top&&(l.y=f.top),l}}function uu(e){for(var t=0;t<e.length;t++){var r=e[t];v0(r)}}function y0(e){var t=e[0].getBoundingClientRect();return{x:t.width/e.outerWidth(),y:t.height/e.outerHeight()}}function su(e){var t=e.offset(),r=y0(e),n={left:parseInt(e.css("border-left-width"))+parseInt(e.css("padding-left")),top:parseInt(e.css("border-top-width"))+parseInt(e.css("padding-top"))};return{x:t.left+r.x*n.left,y:t.top+r.y*n.top}}function h0(e){var t={x:e.width()/e.outerWidth(),y:e.height()/e.outerHeight()},r=e[0].getBoundingClientRect();return{x:t.x*r.width,y:t.y*r.height}}function lu(e,t){var r=t,n=e.find("img"),i=n[0];if(r.panels.length===0){var o={top:0,left:0,right:i.clientWidth-1,bottom:i.clientHeight-1};r.panels[0]={domain:o,range:o,mapping:{}}}r.dims.height=r.dims.height||i.naturalHeight,r.dims.width=r.dims.width||i.naturalWidth,uu(r.panels),r.mouseOffsetCss=function(s){var l=su(n);return{x:s.pageX-l.x,y:s.pageY-l.y}};function a(s){var l=r.imgToCssScalingRatio(),f=Te(s,function(c,p){var m=p.substring(0,1);return m==="x"?s[p]/l.x:m==="y"?s[p]/l.y:null});return f}r.scaleCssToImg=a;function u(s){var l=r.imgToCssScalingRatio(),f=Te(s,function(c,p){var m=p.substring(0,1);return m==="x"?s[p]*l.x:m==="y"?s[p]*l.y:null});return f}return r.scaleImgToCss=u,r.imgToCssScalingRatio=function(){var s=h0(n);return{x:s.x/r.dims.width,y:s.y/r.dims.height}},r.cssToImgScalingRatio=function(){var s=r.imgToCssScalingRatio();return{x:1/s.x,y:1/s.y}},r.getPanelCss=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=r.scaleCssToImg(s),c=f.x,p=f.y,m=r.cssToImgScalingRatio(),d={x:l*m.x,y:l*m.y},h=[],y=[],g,_;for(_=0;_<r.panels.length;_++)if(g=r.panels[_].range,c<=g.right+d.x&&c>=g.left-d.x&&p<=g.bottom+d.y&&p>=g.top-d.y){h.push(r.panels[_]);var P=0,b=0;c>g.right&&c<=g.right+d.x?P=c-g.right:c<g.left&&c>=g.left-d.x&&(P=c-g.left),p>g.bottom&&p<=g.bottom+d.y?b=p-g.bottom:p<g.top&&p>=g.top-d.y&&(b=p-g.top),y.push(Math.sqrt(Math.pow(P,2)+Math.pow(b,2)))}if(h.length){var I=Math.min.apply(null,y);for(_=0;_<h.length;_++)if(y[_]===I)return h[_]}return null},r.isInPanelCss=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return!!r.getPanelCss(s,l)},r.mouseCoordinateSender=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return function(c){if(c===null){ze(s,null);return}var p=r.mouseOffsetCss(c);if(!r.isInPanelCss(p)){if(f){ze(s,null);return}if(l)return;var m={coords_css:p,coords_img:r.scaleCssToImg(p)};ze(s,m,{priority:"event"});return}var d=r.getPanelCss(p),h=r.scaleCssToImg(p),y=d.scaleImgToData(h),g={x:y.x,y:y.y,coords_css:p,coords_img:h,img_css_ratio:r.cssToImgScalingRatio()};Cm.default.extend(g,d.panel_vars),g.mapping=d.mapping,g.domain=d.domain,g.range=d.range,g.log=d.log,ze(s,g,{priority:"event"})}},r}function tr(e,t){return{xmin:Math.min(e.x,t.x),xmax:Math.max(e.x,t.x),ymin:Math.min(e.y,t.y),ymax:Math.max(e.y,t.y)}}function mt(e,t,r){e instanceof Array||(e=[e]);var n=Math.max.apply(null,e),i=Math.min.apply(null,e),o=0;n>r?o=r-n:i<t&&(o=t-i);for(var a=[],u=0;u<e.length;u++)a[u]=e[u]+o;return a}function fu(e,t,r,n){var i=10,o=e[0],a=null,u={},s=r.scaleCssToImg,l=r.scaleImgToCss;f();function f(){u.brushing=!1,u.dragging=!1,u.resizing=!1,u.down={x:NaN,y:NaN},u.up={x:NaN,y:NaN},u.resizeSides={left:!1,right:!1,top:!1,bottom:!1},u.boundsCss={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},u.boundsData={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},u.panel=null,u.changeStartBounds={xmin:NaN,xmax:NaN,ymin:NaN,ymax:NaN},a&&a.remove()}function c(){var x=e.find("#"+o.id+"_brush");if(x.length!==0){var S=x.data("bounds-data"),N=x.data("panel");if(!(!S||!N)){for(var B=0;B<r.panels.length;B++){var ee=r.panels[B];if($o(N.mapping,ee.mapping)&&$o(N.panel_vars,ee.panel_vars)){u.panel=r.panels[B];break}}if(u.panel===null){x.remove();return}a=x,g(S),b()}}}function p(){var x=g();for(var S in x)if(Gf(x[S]))return;g(x),b()}function m(x){var S=u.boundsCss;return x.x<=S.xmax&&x.x>=S.xmin&&x.y<=S.ymax&&x.y>=S.ymin}function d(x){var S=h(x);return S.left||S.right||S.top||S.bottom}function h(x){var S=u.boundsCss,N={xmin:S.xmin-i,xmax:S.xmax+i,ymin:S.ymin-i,ymax:S.ymax+i},B={left:!1,right:!1,top:!1,bottom:!1};return(t.brushDirection==="xy"||t.brushDirection==="x")&&x.y<=N.ymax&&x.y>=N.ymin&&(x.x<S.xmin&&x.x>=N.xmin?B.left=!0:x.x>S.xmax&&x.x<=N.xmax&&(B.right=!0)),(t.brushDirection==="xy"||t.brushDirection==="y")&&x.x<=N.xmax&&x.x>=N.xmin&&(x.y<S.ymin&&x.y>=N.ymin?B.top=!0:x.y>S.ymax&&x.y<=N.ymax&&(B.bottom=!0)),B}function y(x){if(x===void 0)return rr.default.extend({},u.boundsCss);var S={x:x.xmin,y:x.ymin},N={x:x.xmax,y:x.ymax},B=u.panel,ee=B.range;t.brushClip&&(S=l(B.clipImg(s(S))),N=l(B.clipImg(s(N)))),t.brushDirection==="xy"||(t.brushDirection==="x"?(S.y=l({y:ee.top}).y,N.y=l({y:ee.bottom}).y):t.brushDirection==="y"&&(S.x=l({x:ee.left}).x,N.x=l({x:ee.right}).x)),u.boundsCss={xmin:S.x,xmax:N.x,ymin:S.y,ymax:N.y};var rt=u.panel.scaleImgToData(s(S)),nt=u.panel.scaleImgToData(s(N));u.boundsData=tr(rt,nt),u.boundsData=Te(u.boundsData,function(it){return Co(it,14)}),a.data("bounds-data",u.boundsData),a.data("panel",u.panel)}function g(x){if(x===void 0)return rr.default.extend({},u.boundsData);var S=l(u.panel.scaleDataToImg(x));S=Te(S,function(N){return Co(N,13)}),y({xmin:Math.min(S.xmin,S.xmax),xmax:Math.max(S.xmin,S.xmax),ymin:Math.min(S.ymin,S.ymax),ymax:Math.max(S.ymin,S.ymax)})}function _(){return u.panel}function P(){a&&a.remove(),a=(0,rr.default)(document.createElement("div")).attr("id",o.id+"_brush").css({"background-color":t.brushFill,opacity:t.brushOpacity,"pointer-events":"none",position:"absolute"}).hide();var x="1px solid "+t.brushStroke;t.brushDirection==="xy"?a.css({border:x}):t.brushDirection==="x"?a.css({"border-left":x,"border-right":x}):t.brushDirection==="y"&&a.css({"border-top":x,"border-bottom":x}),e.append(a),a.offset({x:0,y:0}).width(0).outerHeight(0)}function b(){var x=su(e.find("img")),S=u.boundsCss;a.offset({top:x.y+S.ymin,left:x.x+S.xmin}).outerWidth(S.xmax-S.xmin+1).outerHeight(S.ymax-S.ymin+1)}function I(x){if(x===void 0)return u.down;u.down=x}function k(x){if(x===void 0)return u.up;u.up=x}function F(){return u.brushing}function J(){u.brushing=!0,P(),u.panel=r.getPanelCss(u.down,n),y(tr(u.down,u.down)),b()}function ue(x){y(tr(u.down,x)),a.show(),b()}function se(){u.brushing=!1,y(tr(u.down,u.up))}function $e(){return u.dragging}function ar(){u.dragging=!0,u.changeStartBounds=rr.default.extend({},u.boundsCss)}function j(x){var S=x.x-u.down.x,N=x.y-u.down.y,B=u.changeStartBounds,ee={xmin:B.xmin+S,xmax:B.xmax+S,ymin:B.ymin+N,ymax:B.ymax+N};if(t.brushClip){var rt=u.panel.range,nt=s(ee),it=[nt.xmin,nt.xmax],Dt=[nt.ymin,nt.ymax];it=mt(it,rt.left,rt.right),Dt=mt(Dt,rt.top,rt.bottom),ee=l({xmin:it[0],xmax:it[1],ymin:Dt[0],ymax:Dt[1]})}y(ee),b()}function T(){u.dragging=!1}function C(){return u.resizing}function X(){u.resizing=!0,u.changeStartBounds=rr.default.extend({},u.boundsCss),u.resizeSides=h(u.down)}function Z(x){var S={x:x.x-u.down.x,y:x.y-u.down.y},N=s(S),B=s(u.changeStartBounds),ee=u.panel.range;if(u.resizeSides.left){var rt=mt(B.xmin+N.x,ee.left,B.xmax)[0];B.xmin=rt}else if(u.resizeSides.right){var nt=mt(B.xmax+N.x,B.xmin,ee.right)[0];B.xmax=nt}if(u.resizeSides.top){var it=mt(B.ymin+N.y,ee.top,B.ymax)[0];B.ymin=it}else if(u.resizeSides.bottom){var Dt=mt(B.ymax+N.y,B.ymin,ee.bottom)[0];B.ymax=Dt}y(l(B)),b()}function ce(){u.resizing=!1}return{reset:f,importOldBrush:c,isInsideBrush:m,isInResizeArea:d,whichResizeSides:h,onResize:p,boundsCss:y,boundsData:g,getPanel:_,down:I,up:k,isBrushing:F,startBrushing:J,brushTo:ue,stopBrushing:se,isDragging:$e,startDragging:ar,dragTo:j,stopDragging:T,isResizing:C,startResizing:X,resizeTo:Z,stopResizing:ce}}var Nm=w(E());function cu(e,t,r){var n=null,i=null;function o(f,c){var p=Nm.default.Event(f,{which:c.which,pageX:c.pageX,pageY:c.pageY});e.trigger(p)}function a(){i&&(o("mousedown2",i),i=null)}function u(f){i=f,n=setTimeout(function(){a()},r)}function s(f){if(f.which===1){if(!t){o("mousedown2",f);return}i===null?u(f):(clearTimeout(n),i&&Math.abs(i.pageX-f.pageX)>2||Math.abs(i.pageY-f.pageY)>2?(a(),u(f)):(i=null,o("dblclick2",f)))}}function l(f){f.which=1,o("dblclick2",f)}return{mousedown:s,dblclickIE8:l}}var vt=w(E());function ji(e,t,r){var n=r.mouseCoordinateSender(e,t);return{mousedown:function(o){o.which===1&&n(o)},onResetImg:function(){n(null)},onResize:null}}function pu(e,t,r,n,i,o){var a=o.mouseCoordinateSender(e,n,i),u;r==="throttle"?u=new Zt(null,a,t):u=new Be(null,a,t);var s;return i?s=function(){u.normalCall(null)}:s=function(){},{mousemove:function(f){u.normalCall(f)},mouseout:s,onResetImg:function(){u.immediateCall(null)},onResize:null}}function du(e,t,r,n,i){var o=20,a=fu(t,r,n,o);t.on("shiny-internal:brushed.image_output",function(b,I){I.brushId===e&&I.outputId!==i&&(t.data("mostRecentBrush",!1),a.reset())});function u(b){t.removeClass("crosshair grabbable grabbing ns-resize ew-resize nesw-resize nwse-resize"),b&&t.addClass(b)}function s(){var b=a.boundsData();if(isNaN(b.xmin)){ze(e,null),Bt.find(document.documentElement).trigger("shiny-internal:brushed",{brushId:e,outputId:null});return}var I=a.getPanel();vt.default.extend(b,I.panel_vars),b.coords_css=a.boundsCss(),b.coords_img=n.scaleCssToImg(b.coords_css),b.img_css_ratio=n.cssToImgScalingRatio(),b.mapping=I.mapping,b.domain=I.domain,b.range=I.range,b.log=I.log,b.direction=r.brushDirection,b.brushId=e,b.outputId=i,ze(e,b),t.data("mostRecentBrush",!0),Bt.find(document.documentElement).trigger("shiny-internal:brushed",b)}var l;r.brushDelayType==="throttle"?l=new Zt(null,s,r.brushDelay):l=new Be(null,s,r.brushDelay);function f(b){if(!(a.isBrushing()||a.isDragging()||a.isResizing())&&b.which===1){var I=n.mouseOffsetCss(b);if(!(r.brushClip&&!n.isInPanelCss(I,o)))if(a.up({x:NaN,y:NaN}),a.down(I),a.isInResizeArea(I))a.startResizing(I),(0,vt.default)(document).on("mousemove.image_brush",d).on("mouseup.image_brush",g);else if(a.isInsideBrush(I))a.startDragging(I),u("grabbing"),(0,vt.default)(document).on("mousemove.image_brush",m).on("mouseup.image_brush",y);else{var k=n.getPanelCss(I,o);a.startBrushing(k.clipImg(n.scaleCssToImg(I))),(0,vt.default)(document).on("mousemove.image_brush",p).on("mouseup.image_brush",h)}}}function c(b){var I=n.mouseOffsetCss(b);if(!(a.isBrushing()||a.isDragging()||a.isResizing()))if(a.isInResizeArea(I)){var k=a.whichResizeSides(I);k.left&&k.top||k.right&&k.bottom?u("nwse-resize"):k.left&&k.bottom||k.right&&k.top?u("nesw-resize"):k.left||k.right?u("ew-resize"):(k.top||k.bottom)&&u("ns-resize")}else a.isInsideBrush(I)?u("grabbable"):n.isInPanelCss(I,o)?u("crosshair"):u(null)}function p(b){a.brushTo(n.mouseOffsetCss(b)),l.normalCall()}function m(b){a.dragTo(n.mouseOffsetCss(b)),l.normalCall()}function d(b){a.resizeTo(n.mouseOffsetCss(b)),l.normalCall()}function h(b){if(b.which===1){if((0,vt.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),a.up(n.mouseOffsetCss(b)),a.stopBrushing(),u("crosshair"),a.down().x===a.up().x&&a.down().y===a.up().y){a.reset(),l.immediateCall();return}l.isPending()&&l.immediateCall()}}function y(b){b.which===1&&((0,vt.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),a.up(n.mouseOffsetCss(b)),a.stopDragging(),u("grabbable"),l.isPending()&&l.immediateCall())}function g(b){b.which===1&&((0,vt.default)(document).off("mousemove.image_brush").off("mouseup.image_brush"),a.up(n.mouseOffsetCss(b)),a.stopResizing(),l.isPending()&&l.immediateCall())}function _(){r.brushResetOnNew&&t.data("mostRecentBrush")&&(a.reset(),l.immediateCall())}r.brushResetOnNew||t.data("mostRecentBrush")&&(a.importOldBrush(),l.immediateCall());function P(){a.onResize(),l.immediateCall()}return{mousedown:f,mousemove:c,onResetImg:_,onResize:P}}function nr(e,t){t.css("-webkit-user-drag","none"),t.off("dragstart.image_output"),t.on("dragstart.image_output",function(){return!1}),e.off("selectstart.image_output"),e.on("selectstart.image_output",function(){return!1})}function wi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wi=function(r){return typeof r}:wi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},wi(e)}function g0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Am(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b0(e,t,r){return t&&Am(e.prototype,t),r&&Am(e,r),e}function j0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mu(e,t)}function mu(e,t){return mu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mu(e,t)}function w0(e){var t=O0();return function(){var n=_i(e),i;if(t){var o=_i(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _0(this,i)}}function _0(e,t){return t&&(wi(t)==="object"||typeof t=="function")?t:x0(e)}function x0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_i(e)}var S0=function(e){j0(r,e);var t=w0(r);function r(){return g0(this,r),t.apply(this,arguments)}return b0(r,[{key:"find",value:function(i){return(0,yt.default)(i).find(".shiny-image-output, .shiny-plot-output")}},{key:"renderValue",value:function(i,o){var a=this.getId(i),u=(0,yt.default)(i),s,l=u.find("img");if(l.length===0?(s=document.createElement("img"),u.append(s),l=(0,yt.default)(s)):(s=l[0],l.trigger("reset")),!o){u.empty();return}function f(d,h){return d===void 0?h:d}var c={clickId:u.data("click-id"),clickClip:f(St(u.data("click-clip")),!0),dblclickId:u.data("dblclick-id"),dblclickClip:f(St(u.data("dblclick-clip")),!0),dblclickDelay:f(u.data("dblclick-delay"),400),hoverId:u.data("hover-id"),hoverClip:f(St(u.data("hover-clip")),!0),hoverDelayType:f(u.data("hover-delay-type"),"debounce"),hoverDelay:f(u.data("hover-delay"),300),hoverNullOutside:f(St(u.data("hover-null-outside")),!1),brushId:u.data("brush-id"),brushClip:f(St(u.data("brush-clip")),!0),brushDelayType:f(u.data("brush-delay-type"),"debounce"),brushDelay:f(u.data("brush-delay"),300),brushFill:f(u.data("brush-fill"),"#666"),brushStroke:f(u.data("brush-stroke"),"#000"),brushOpacity:f(u.data("brush-opacity"),.3),brushDirection:f(u.data("brush-direction"),"xy"),brushResetOnNew:f(St(u.data("brush-reset-on-new")),!1),coordmap:o.coordmap};c.brushFill==="auto"&&(c.brushFill=Rr(u[0])),c.brushStroke==="auto"&&(c.brushStroke=Ve(u[0],"color")),yt.default.each(o,function(d,h){h===null||d==="coordmap"||(d==="src"&&h===s.getAttribute("src")&&s.removeAttribute("src"),s.setAttribute(d,h))});for(var p=0;p<s.attributes.length;p++){var m=s.attributes[p];m.specified&&!O(o,m.name)&&s.removeAttribute(m.name)}c.coordmap||(c.coordmap={panels:[],dims:{height:null,width:null}}),u.off(".image_output"),l.off(".image_output"),l.off("load.shiny_image_interaction"),l.one("load.shiny_image_interaction",function(){var d=c.coordmap=lu(u,c.coordmap),h=cu(u,c.dblclickId,c.dblclickDelay);if(u.on("mousedown.image_output",h.mousedown),Ot()&&bl()===8&&u.on("dblclick.image_output",h.dblclickIE8),c.clickId){nr(u,l);var y=ji(c.clickId,c.clickClip,d);u.on("mousedown2.image_output",y.mousedown),u.on("resize.image_output",y.onResize),l.on("reset.image_output",y.onResetImg)}if(c.dblclickId){nr(u,l);var g=ji(c.dblclickId,c.clickClip,d);u.on("dblclick2.image_output",g.mousedown),u.on("resize.image_output",g.onResize),l.on("reset.image_output",g.onResetImg)}if(c.hoverId){nr(u,l);var _=pu(c.hoverId,c.hoverDelay,c.hoverDelayType,c.hoverClip,c.hoverNullOutside,d);u.on("mousemove.image_output",_.mousemove),u.on("mouseout.image_output",_.mouseout),u.on("resize.image_output",_.onResize),l.on("reset.image_output",_.onResetImg)}if(c.brushId){nr(u,l);var P=du(c.brushId,u,c,d,a);u.on("mousedown.image_output",P.mousedown),u.on("mousemove.image_output",P.mousemove),u.on("resize.image_output",P.onResize),l.on("reset.image_output",P.onResetImg)}(c.clickId||c.dblclickId||c.hoverId||c.brushId)&&u.addClass("crosshair"),o.error&&console.log("Error on server extracting coordmap: "+o.error)})}},{key:"renderError",value:function(i,o){(0,yt.default)(i).find("img").trigger("reset"),ie.prototype.renderError.call(this,i,o)}},{key:"clearError",value:function(i){(0,yt.default)(i).contents().filter(function(){return!(this instanceof HTMLElement&&(this.tagName==="IMG"||this.id===i.id+"_brush"))}).remove(),ie.prototype.clearError.call(this,i)}},{key:"resize",value:function(i,o,a){(0,yt.default)(i).find("img").trigger("resize")}}]),r}(ie),Bt=new S0;function $m(){var e=new wn;return e.register(new Wd,"shiny.textOutput"),e.register(new Xd,"shiny.downloadLink"),e.register(new om,"shiny.datatableOutput"),e.register(new km,"shiny.htmlOutput"),e.register(Bt,"shiny.imageOutput"),{outputBindings:e}}function xi(e){ze(e,null),Bt.find(document.documentElement).trigger("shiny-internal:brushed",{brushId:e,outputId:null})}var V$=w(Oe());"use strict";var I0=wr(),R0=K(),P0=fe(),q0=Ge(),T0=mn(),Mm=_r();I0("match",1,function(e,t,r){return[function(i){var o=q0(this),a=i==null?void 0:i[e];return a!==void 0?a.call(i,o):new RegExp(i)[e](String(o))},function(n){var i=r(t,n,this);if(i.done)return i.value;var o=R0(n),a=String(this);if(!o.global)return Mm(o,a);var u=o.unicode;o.lastIndex=0;for(var s=[],l=0,f;(f=Mm(o,a))!==null;){var c=String(f[0]);s[l]=c,c===""&&(o.lastIndex=T0(a,P0(o.lastIndex),u)),l++}return l===0?null:s}]});var Hr=w(E());var E0=250;function Ze(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.html,r=t===void 0?"":t,n=e.action,i=n===void 0?"":n,o=e.deps,a=o===void 0?[]:o,u=e.duration,s=u===void 0?5e3:u,l=e.id,f=l===void 0?null:l,c=e.closeButton,p=c===void 0?!0:c,m=e.type,d=m===void 0?null:m;f||(f=jn()),B0();var h=Gr(f);h.length===0&&(h=D0(f));var y='<div class="shiny-notification-content-text">'.concat(r,"</div>")+'<div class="shiny-notification-content-action">'.concat(i,"</div>"),g=h.find(".shiny-notification-content");we(g,{html:y,deps:a});var _=h.attr("class").split(/\s+/).filter(function(b){return b.match(/^shiny-notification-/)}).join(" ");h.removeClass(_),d&&d!=="default"&&h.addClass("shiny-notification-"+d);var P=h.find(".shiny-notification-close");return p&&P.length===0?h.append('<div class="shiny-notification-close">×</div>'):!p&&P.length!==0&&P.remove(),s?C0(f,s):Vm(f),f}function et(e){Gr(e).fadeOut(E0,function(){ge(this),(0,Hr.default)(this).remove(),k0().length===0&&Kr().remove()})}function Gr(e){return e?Kr().find("#shiny-notification-"+q(e)):null}function k0(){return Kr().find(".shiny-notification").map(function(){return this.id.replace(/shiny-notification-/,"")}).get()}function Kr(){return(0,Hr.default)("#shiny-notification-panel")}function B0(){var e=Kr();return e.length>0||(0,Hr.default)(document.body).append('<div id="shiny-notification-panel">'),e}function D0(e){var t=Gr(e);return t.length===0&&(t=(0,Hr.default)('<div id="shiny-notification-'.concat(e,'" class="shiny-notification">')+'<div class="shiny-notification-close">×</div><div class="shiny-notification-content"></div></div>'),t.find(".shiny-notification-close").on("click",function(r){r.preventDefault(),r.stopPropagation(),et(e)}),Kr().append(t)),t}function C0(e,t){Vm(e);var r=setTimeout(function(){et(e)},t);Gr(e).data("removalCallback",r)}function Vm(e){var t=Gr(e),r=t.data("removalCallback");r&&clearTimeout(r)}var ht=w(E());function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.html,r=t===void 0?"":t,n=e.deps,i=n===void 0?[]:n;(0,ht.default)(".modal-backdrop").remove();var o=(0,ht.default)("#shiny-modal-wrapper");o.length===0&&(o=(0,ht.default)('<div id="shiny-modal-wrapper"></div>'),(0,ht.default)(document.body).append(o),o.on("hidden.bs.modal",function(a){a.target===(0,ht.default)("#shiny-modal")[0]&&(ge(o),o.remove())})),o.on("keydown.shinymodal",function(a){(0,ht.default)("#shiny-modal").data("keyboard")!==!1&&a.keyCode===27&&(a.stopPropagation(),a.preventDefault())}),we(o,{html:r,deps:i})}function Si(){var e=(0,ht.default)("#shiny-modal-wrapper");e.off("keydown.shinymodal"),e.find(".modal").length>0?e.find(".modal").modal("hide"):(ge(e),e.remove())}var vu=w(E());function Fm(e){var t=(0,vu.default)("#shiny-reconnect-time");if(t.length!==0){var r=Math.floor((e-new Date().getTime())/1e3);r>0?t.text(" in "+r+"s"):t.text("..."),setTimeout(function(){Fm(e)},1e3)}}function Ii(e){var t=new Date().getTime()+e;if(!((0,vu.default)("#shiny-reconnect-text").length>0)){var r='<span id="shiny-reconnect-text">Attempting to reconnect</span><span id="shiny-reconnect-time"></span>',n='<a id="shiny-reconnect-now" href="#" onclick="Shiny.shinyapp.reconnect();">Try now</a>';Ze({id:"reconnect",html:r,action:n,duration:null,closeButton:!1,type:"warning"}),Fm(t)}}function Ri(){et("reconnect")}var TF=w(Oe());var D=w(E());var lM=w($());var Um=w(E());function N0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A0(e,t,r){return t&&Lm(e.prototype,t),r&&Lm(e,r),e}function $0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce=function(){function e(){N0(this,e),$0(this,"target",void 0)}return A0(e,[{key:"setInput",value:function(r,n,i){throw"not implemented"}}]),e}();function Pi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pi=function(r){return typeof r}:Pi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pi(e)}function M0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function V0(e,t,r){return t&&zm(e.prototype,t),r&&zm(e,r),e}function F0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yu(e,t)}function yu(e,t){return yu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},yu(e,t)}function L0(e){var t=U0();return function(){var n=qi(e),i;if(t){var o=qi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return z0(this,i)}}function z0(e,t){return t&&(Pi(t)==="object"||typeof t=="function")?t:ir(e)}function ir(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qi(e)}function Wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hu=function(e){F0(r,e);var t=L0(r);function r(n){var i;return M0(this,r),i=t.call(this),Wr(ir(i),"shinyapp",void 0),Wr(ir(i),"timerId",null),Wr(ir(i),"pendingData",{}),Wr(ir(i),"reentrant",!1),Wr(ir(i),"lastChanceCallback",[]),i.shinyapp=n,i}return V0(r,[{key:"setInput",value:function(i,o,a){this.pendingData[i]=o,this.reentrant||(a.priority==="event"?this.$sendNow():this.timerId||(this.timerId=setTimeout(this.$sendNow.bind(this),0)))}},{key:"$sendNow",value:function(){this.reentrant&&console.trace("Unexpected reentrancy in InputBatchSender!"),this.reentrant=!0;try{this.timerId=null,Um.default.each(this.lastChanceCallback,function(o,a){a()});var i=this.pendingData;this.pendingData={},this.shinyapp.sendInput(i)}finally{this.reentrant=!1}}}]),r}(Ce);var SM=w($());var mM=w(Oe());function gt(e){var t=e.split(":");return{name:t[0],inputType:t.length>1?t[1]:""}}function Ti(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ti=function(r){return typeof r}:Ti=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ti(e)}function H0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G0(e,t,r){return t&&Hm(e.prototype,t),r&&Hm(e,r),e}function K0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gu(e,t)}function gu(e,t){return gu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gu(e,t)}function W0(e){var t=X0();return function(){var n=Ei(e),i;if(t){var o=Ei(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Y0(this,i)}}function Y0(e,t){return t&&(Ti(t)==="object"||typeof t=="function")?t:Gm(e)}function Gm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ei(e){return Ei=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ei(e)}function Q0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bu=function(e){K0(r,e);var t=W0(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return H0(this,r),i=t.call(this),Q0(Gm(i),"lastSentValues",void 0),i.target=n,i.reset(o),i}return G0(r,[{key:"setInput",value:function(i,o,a){var u=gt(i),s=u.name,l=u.inputType,f=JSON.stringify(o);a.priority!=="event"&&this.lastSentValues[s]&&this.lastSentValues[s].jsonValue===f&&this.lastSentValues[s].inputType===l||(this.lastSentValues[s]={jsonValue:f,inputType:l},this.target.setInput(i,o,a))}},{key:"reset",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o={};for(var a in i)if(O(i,a)){var u=gt(a),s=u.name,l=u.inputType;o[s]={jsonValue:JSON.stringify(i[a]),inputType:l}}this.lastSentValues=o}},{key:"forget",value:function(i){delete this.lastSentValues[i]}}]),r}(Ce);var VM=w($());var Wm=w(E());function ki(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ki=function(r){return typeof r}:ki=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ki(e)}function J0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Km(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z0(e,t,r){return t&&Km(e.prototype,t),r&&Km(e,r),e}function eR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ju(e,t)}function ju(e,t){return ju=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ju(e,t)}function tR(e){var t=iR();return function(){var n=Bi(e),i;if(t){var o=Bi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return rR(this,i)}}function rR(e,t){return t&&(ki(t)==="object"||typeof t=="function")?t:nR(e)}function nR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bi(e)}var wu=function(e){eR(r,e);var t=tR(r);function r(n){var i;return J0(this,r),i=t.call(this),i.target=n,i}return Z0(r,[{key:"setInput",value:function(i,o,a){var u=jQuery.Event("shiny:inputchanged"),s=gt(i);if(u.name=s.name,u.inputType=s.inputType,u.value=o,u.binding=a.binding,u.el=a.el,u.priority=a.priority,(0,Wm.default)(a.el).trigger(u),!u.isDefaultPrevented()){var l=u.name;u.inputType!==""&&(l+=":"+u.inputType),this.target.setInput(l,u.value,{priority:a.priority})}}}]),r}(Ce);var eV=w($());function Di(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Di=function(r){return typeof r}:Di=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Di(e)}function oR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ym(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function aR(e,t,r){return t&&Ym(e.prototype,t),r&&Ym(e,r),e}function uR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_u(e,t)}function _u(e,t){return _u=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_u(e,t)}function sR(e){var t=fR();return function(){var n=Ci(e),i;if(t){var o=Ci(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return lR(this,i)}}function lR(e,t){return t&&(Di(t)==="object"||typeof t=="function")?t:Xm(e)}function Xm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ci(e)}function cR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xu=function(e){uR(r,e);var t=sR(r);function r(n){var i;return oR(this,r),i=t.call(this),cR(Xm(i),"inputRatePolicies",{}),i.target=n,i}return aR(r,[{key:"setInput",value:function(i,o,a){var u=gt(i),s=u.name;this.$ensureInit(s),a.priority!=="deferred"?this.inputRatePolicies[s].immediateCall(i,o,a):this.inputRatePolicies[s].normalCall(i,o,a)}},{key:"setRatePolicy",value:function(i,o,a){var u=gt(i),s=u.name;o==="direct"?this.inputRatePolicies[s]=new tu(this,this.$doSetInput):o==="debounce"?this.inputRatePolicies[s]=new Be(this,this.$doSetInput,a):o==="throttle"&&(this.inputRatePolicies[s]=new Zt(this,this.$doSetInput,a))}},{key:"$ensureInit",value:function(i){i in this.inputRatePolicies||this.setRatePolicy(i,"direct")}},{key:"$doSetInput",value:function(i,o,a){this.target.setInput(i,o,a)}}]),r}(Ce);var mV=w($());function Ni(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ni=function(r){return typeof r}:Ni=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ni(e)}function pR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dR(e,t,r){return t&&Qm(e.prototype,t),r&&Qm(e,r),e}function mR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ou(e,t)}function vR(e){var t=hR();return function(){var n=Ai(e),i;if(t){var o=Ai(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return yR(this,i)}}function yR(e,t){return t&&(Ni(t)==="object"||typeof t=="function")?t:Jm(e)}function Jm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ai(e)}function gR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Su=function(e){mR(r,e);var t=vR(r);function r(n){var i;return pR(this,r),i=t.call(this),gR(Jm(i),"pendingInput",{}),i.target=n,i}return dR(r,[{key:"setInput",value:function(i,o,a){/^\./.test(i)?this.target.setInput(i,o,a):this.pendingInput[i]={value:o,opts:a}}},{key:"submit",value:function(){for(var i in this.pendingInput)if(O(this.pendingInput,i)){var o=this.pendingInput[i],a=o.value,u=o.opts;this.target.setInput(i,a,u)}}}]),r}(Ce);var ev=w(E());function bR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iu(e){var t=ev.default.extend({priority:"immediate",binding:null,el:null},e);if(t&&typeof t.priority!="undefined")switch(t.priority){case"deferred":case"immediate":case"event":break;default:throw new Error("Unexpected input value mode: '"+t.priority+"'")}return t}var Ru=function e(t){bR(this,e),Zm(this,"target",void 0),Zm(this,"setInput",function(r,n,i){if(!r)throw"Can't set input with empty name.";var o=Iu(i);this.target.setInput(r,n,o)}),this.target=t};var oe=w(E());function jR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wR(e,t,r){return t&&tv(e.prototype,t),r&&tv(e,r),e}function rv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nv=function(){function e(t,r){jR(this,e),rv(this,"el",void 0),rv(this,"binding",void 0),this.el=t,this.binding=r,r.resize&&(this.onResize=zf(t,function(n,i){r.resize(t,n,i)}))}return wR(e,[{key:"getId",value:function(){return this.binding.getId(this.el)}},{key:"onValueChange",value:function(r){this.binding.onValueChange(this.el,r)}},{key:"onValueError",value:function(r){this.binding.onValueError(this.el,r)}},{key:"showProgress",value:function(r){this.binding.showProgress(this.el,r)}},{key:"onResize",value:function(){}}]),e}();var Pu={};function _R(e,t,r,n){var i=t.getId(r);if(i){var o=t.getValue(r),a=t.getType(r);a&&(i=i+":"+a);var u={priority:n?"deferred":"immediate",binding:t,el:r};e.setInput(i,o,u)}}function xR(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,r=e.inputs,n=e.inputsRate,i=e.inputBindings,o=i.getBindings(),a={},u=function(f){for(var c=o[f].binding,p=c.find(t)||[],m=function(g){var _=p[g],P=c.getId(_);if(!P||Pu[P])return"continue";var b=c.getType(_),I=b?P+":"+b:P;a[I]={value:c.getValue(_),opts:{immediate:!0,binding:c,el:_}};var k=function(){var J=c,ue=_;return function(se){_R(r,J,ue,se)}}();c.subscribe(_,k),(0,oe.default)(_).data("shiny-input-binding",c),(0,oe.default)(_).addClass("shiny-bound-input");var F=c.getRatePolicy(_);F!==null&&n.setRatePolicy(I,F.policy,F.delay),Pu[P]={binding:c,node:_},(0,oe.default)(_).trigger({type:"shiny:bound",binding:c,bindingType:"input"})},d=0;d<p.length;d++)var h=m(d)},s=0;s<o.length;s++)u(s);return a}function OR(e){for(var t=e.sendOutputHiddenState,r=e.maybeAddThemeObserver,n=e.outputBindings,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,o=(0,oe.default)(i),a=n.getBindings(),u=0;u<a.length;u++)for(var s=a[u].binding,l=s.find(o)||[],f=0;f<l.length;f++){var c=l[f],p=s.getId(c);if(!!p&&!!oe.default.contains(document.documentElement,c)){var m=(0,oe.default)(c);if(!m.hasClass("shiny-bound-output")){r(c);var d=new nv(c,s);Ed(p,d),m.data("shiny-output-binding",d),m.addClass("shiny-bound-output"),m.attr("aria-live")||m.attr("aria-live","polite"),m.trigger({type:"shiny:bound",binding:s,bindingType:"output"})}}}setTimeout(De.regular,0),setTimeout(t,0)}function SR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=(0,oe.default)(e).find(".shiny-bound-input").toArray();t&&(0,oe.default)(e).hasClass("shiny-bound-input")&&r.push(e);for(var n=0;n<r.length;n++){var i=r[n],o=(0,oe.default)(i).data("shiny-input-binding");if(!!o){var a=o.getId(i);(0,oe.default)(i).removeClass("shiny-bound-input"),delete Pu[a],o.unsubscribe(i),(0,oe.default)(i).trigger({type:"shiny:unbound",binding:o,bindingType:"input"})}}}function IR(e){var t=e.sendOutputHiddenState,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=(0,oe.default)(r).find(".shiny-bound-output").toArray();n&&(0,oe.default)(r).hasClass("shiny-bound-output")&&i.push(r);for(var o=0;o<i.length;o++){var a=(0,oe.default)(i[o]),u=a.data("shiny-output-binding");if(!!u){var s=u.binding.getId(i[o]);kd(s,u),a.removeClass("shiny-bound-output"),a.removeData("shiny-output-binding"),a.trigger({type:"shiny:unbound",binding:u.binding,bindingType:"output"})}}setTimeout(De.regular,0),setTimeout(t,0)}function qu(e,t){return OR(e,t),xR(e,t)}function iv(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;SR(t,r),IR(e,t,r)}function ov(e,t){var r=qu(e,t),n=e.inputs;oe.default.each(r,function(i,o){n.setInput(i,o.value,o.opts)}),e.initDeferredIframes()}"use strict";var ZR=A(),eP=z(),tP=Gi(),rP=Nv(),Au="ArrayBuffer",Av=tP[Au],nP=eP[Au];ZR({global:!0,forced:nP!==Av},{ArrayBuffer:Av});rP(Au);"use strict";var iP=A(),oP=M(),$v=Gi(),Mv=K(),Vv=$t(),aP=fe(),uP=Bo(),$u=$v.ArrayBuffer,Fv=$v.DataView,Lv=$u.prototype.slice,sP=oP(function(){return!new $u(2).slice(1,void 0).byteLength});iP({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:sP},{slice:function(t,r){if(Lv!==void 0&&r===void 0)return Lv.call(Mv(this),t);for(var n=Mv(this).byteLength,i=Vv(t,n),o=Vv(r===void 0?n:r,n),a=new(uP(this,$u))(aP(o-i)),u=new Fv(this),s=new Fv(a),l=0;i<o;)s.setUint8(l++,u.getUint8(i++));return a}});var lP=A(),fP=Gi(),cP=Tu();lP({global:!0,forced:!cP},{DataView:fP.DataView});"use strict";var gP=A(),bP=Hv().left,jP=mr(),Wv=gr(),wP=Kv(),_P=jP("reduce"),xP=!wP&&Wv>79&&Wv<83;gP({target:"Array",proto:!0,forced:!_P||xP},{reduce:function(t){return bP(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var cF=w(Oe());"use strict";var RP=A(),Xv=Mu();RP({target:"Array",proto:!0,forced:[].forEach!=Xv},{forEach:Xv});var PP=z(),qP=Oa(),Vu=Mu(),TP=xe();for(var EP in qP)if(Fu=PP[EP],Qr=Fu&&Fu.prototype,Qr&&Qr.forEach!==Vu)try{TP(Qr,"forEach",Vu)}catch(e){Qr.forEach=Vu}var Fu,Qr;var R=w(E());function kP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function BP(e,t,r){return t&&Qv(e.prototype,t),r&&Qv(e,r),e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jv=[],Lu={},Ki=[],Wi={};function Zv(e,t){if(Wi[e]){var r=Ki.indexOf(e);r!==-1&&(Ki.splice(r,1),delete Wi[e])}if(typeof t!="function")throw"handler must be a function.";if(t.length!==1)throw"handler must be a function that takes one argument.";Ki.push(e),Wi[e]=t}var ey=function(){function e(){kP(this,e),ae(this,"$socket",null),ae(this,"config",null),ae(this,"$inputValues",{}),ae(this,"$initialInput",void 0),ae(this,"$bindings",{}),ae(this,"$values",{}),ae(this,"$errors",{}),ae(this,"$conditionals",{}),ae(this,"$pendingMessages",[]),ae(this,"$activeRequests",{}),ae(this,"$nextRequestId",0),ae(this,"$allowReconnect",!1),ae(this,"scheduledReconnect",null),ae(this,"reconnectDelay",function(){var t=0,r=[1500,1500,2500,2500,5500,5500,10500];return{next:function(){var i=t;return i>=r.length&&(i=r.length-1),t++,r[i]},reset:function(){t=0}}}()),ae(this,"progressHandlers",{binding:function(r){var n=r.id,i=this.$bindings[n];i&&((0,R.default)(i.el).trigger({type:"shiny:outputinvalidated",binding:i,name:n}),i.showProgress&&i.showProgress(!0))},open:function(r){if(r.style==="notification")Ze({html:'<div id="shiny-progress-'.concat(r.id,'" class="shiny-progress-notification">')+'<div class="progress active" style="display: none;"><div class="progress-bar"></div></div><div class="progress-text"><span class="progress-message">message</span> <span class="progress-detail"></span></div></div>',id:r.id,duration:null});else if(r.style==="old"){var n=(0,R.default)(".shiny-progress-container");n.length===0&&(n=(0,R.default)('<div class="shiny-progress-container"></div>'),(0,R.default)(document.body).append(n));var i=(0,R.default)(".shiny-progress.open").length,o=(0,R.default)('<div class="shiny-progress open"><div class="progress active"><div class="progress-bar bar"></div></div><div class="progress-text"><span class="progress-message">message</span><span class="progress-detail"></span></div></div>');o.attr("id",r.id),n.append(o);var a=o.find(".progress");a.css("top",i*a.height()+"px");var u=o.find(".progress-text");u.css("top",3*a.height()+i*u.outerHeight()+"px"),o.hide()}},update:function(r){if(r.style==="notification"){var n=(0,R.default)("#shiny-progress-"+r.id);if(n.length===0)return;typeof r.message!="undefined"&&n.find(".progress-message").text(r.message),typeof r.detail!="undefined"&&n.find(".progress-detail").text(r.detail),typeof r.value!="undefined"&&r.value!==null&&(n.find(".progress").show(),n.find(".progress-bar").width(r.value*100+"%"))}else if(r.style==="old"){var i=(0,R.default)("#"+r.id+".shiny-progress");typeof r.message!="undefined"&&i.find(".progress-message").text(r.message),typeof r.detail!="undefined"&&i.find(".progress-detail").text(r.detail),typeof r.value!="undefined"&&r.value!==null&&(i.find(".progress").show(),i.find(".bar").width(r.value*100+"%")),i.fadeIn()}},close:function(r){if(r.style==="notification")et(r.id);else if(r.style==="old"){var n=(0,R.default)("#"+r.id+".shiny-progress");n.removeClass("open"),n.fadeOut({complete:function(){n.remove(),(0,R.default)(".shiny-progress").length===0&&(0,R.default)(".shiny-progress-container").remove()}})}}}),this.init()}return BP(e,[{key:"connect",value:function(r){if(this.$socket)throw"Connect was already called on this application object";this.$socket=this.createSocket(),this.$initialInput=r,R.default.extend(this.$inputValues,r),this.$updateConditionals()}},{key:"isConnected",value:function(){return!!this.$socket}},{key:"reconnect",value:function(){if(clearTimeout(this.scheduledReconnect),this.isConnected())throw"Attempted to reconnect, but already connected.";this.$socket=this.createSocket(),this.$initialInput=R.default.extend({},this.$inputValues),this.$updateConditionals()}},{key:"createSocket",value:function(){var r=this,n=Ad()||function(){var a="ws:";window.location.protocol==="https:"&&(a="wss:");var u=window.location.pathname;/^([$#!&-;=?-[\]_a-z~]|%[0-9a-fA-F]{2})+$/.test(u)||(u=encodeURI(u),gl()&&(u=encodeURI(u))),/\/$/.test(u)||(u+="/"),u+="websocket/";var s=new WebSocket(a+"//"+window.location.host+u);return s.binaryType="arraybuffer",s},i=n(),o=!1;return i.onopen=function(){for(o=!0,(0,R.default)(document).trigger({type:"shiny:connected",socket:i}),r.onConnected(),i.send(JSON.stringify({method:"init",data:r.$initialInput}));r.$pendingMessages.length;){var a=r.$pendingMessages.shift();i.send(a)}},i.onmessage=function(a){r.dispatchMessage(a.data)},i.onclose=function(){o&&((0,R.default)(document).trigger({type:"shiny:disconnected",socket:i}),r.$notifyDisconnected()),r.onDisconnected(),r.$removeSocket()},i}},{key:"sendInput",value:function(r){var n=JSON.stringify({method:"update",data:r});this.$sendMsg(n),R.default.extend(this.$inputValues,r),this.$updateConditionals()}},{key:"$notifyDisconnected",value:function(){window.parent&&window.parent.postMessage("disconnected","*")}},{key:"$removeSocket",value:function(){this.$socket=null}},{key:"$scheduleReconnect",value:function(r){var n=this;this.scheduledReconnect=setTimeout(function(){n.reconnect()},r)}},{key:"onDisconnected",value:function(){var r=(0,R.default)("#shiny-disconnected-overlay");if(r.length===0&&(0,R.default)(document.body).append('<div id="shiny-disconnected-overlay"></div>'),this.$allowReconnect===!0&&this.$socket.allowReconnect===!0||this.$allowReconnect==="force"){var n=this.reconnectDelay.next();Ii(n),this.$scheduleReconnect(n)}}},{key:"onConnected",value:function(){(0,R.default)("#shiny-disconnected-overlay").remove(),Ri(),this.reconnectDelay.reset()}},{key:"makeRequest",value:function(r,n,i,o,a){for(var u=this.$nextRequestId;this.$activeRequests[u];)u=(u+1)%1e9;this.$nextRequestId=u+1,this.$activeRequests[u]={onSuccess:i,onError:o};var s=JSON.stringify({method:r,args:n,tag:u});if(a){var l=function(y){var g=new ArrayBuffer(4),_=new DataView(g);return _.setUint32(0,y,!0),g},f=[];f.push(l(16908802));var c=bn([s]);f.push(l(c.size)),f.push(c);for(var p=0;p<a.length;p++){var m=a[p];f.push(l(m.byteLength||m.size||0)),f.push(m)}var d=bn(f);s=d}this.$sendMsg(s)}},{key:"$sendMsg",value:function(r){this.$socket.readyState?this.$socket.send(r):this.$pendingMessages.push(r)}},{key:"receiveError",value:function(r,n){if(this.$errors[r]!==n){this.$errors[r]=n,delete this.$values[r];var i=this.$bindings[r],o=jQuery.Event("shiny:error");o.name=r,o.error=n,o.binding=i,(0,R.default)(i?i.el:document).trigger(o),!o.isDefaultPrevented()&&i&&i.onValueError&&i.onValueError(o.error)}}},{key:"receiveOutput",value:function(r,n){var i=this.$bindings[r],o=jQuery.Event("shiny:value");if(o.name=r,o.value=n,o.binding=i,this.$values[r]===n){(0,R.default)(i?i.el:document).trigger(o);return}return this.$values[r]=n,delete this.$errors[r],(0,R.default)(i?i.el:document).trigger(o),!o.isDefaultPrevented()&&i&&i.onValueChange(o.value),n}},{key:"bindOutput",value:function(r,n){if(!r)throw"Can't bind an element with no ID";if(this.$bindings[r])throw"Duplicate binding for ID "+r;return this.$bindings[r]=n,this.$values[r]!==void 0?n.onValueChange(this.$values[r]):this.$errors[r]!==void 0&&n.onValueError(this.$errors[r]),n}},{key:"unbindOutput",value:function(r,n){return this.$bindings[r]===n?(delete this.$bindings[r],!0):!1}},{key:"narrowScopeComponent",value:function(r,n){return Object.keys(r).filter(function(i){return i.indexOf(n)===0}).map(function(i){return ae({},i.substring(n.length),r[i])}).reduce(function(i,o){return R.default.extend(i,o)},{})}},{key:"narrowScope",value:function(r,n){return n?{input:this.narrowScopeComponent(r.input,n),output:this.narrowScopeComponent(r.output,n)}:r}},{key:"$updateConditionals",value:function(){(0,R.default)(document).trigger({type:"shiny:conditional"});var r={};for(var n in this.$inputValues)if(O(this.$inputValues,n)){var i=n.replace(/:.*/,"");r[i]=this.$inputValues[n]}for(var o={input:r,output:this.$values},a=(0,R.default)(document).find("[data-display-if]"),u=0;u<a.length;u++){var s=(0,R.default)(a[u]),l=s.data("data-display-if-func");if(!l){var f=s.attr("data-display-if");l=Uf(f),s.data("data-display-if-func",l)}var c=s.attr("data-ns-prefix"),p=this.narrowScope(o,c),m=l(p),d=s.css("display")!=="none";m!==d&&(m?(s.trigger("show"),s.show(),s.trigger("shown")):(s.trigger("hide"),s.hide(),s.trigger("hidden")))}}},{key:"addMessageHandler",value:function(r,n){if(Lu[r])throw'handler for message of type "'+r+'" already added.';if(typeof n!="function")throw"handler must be a function.";if(n.length!==1)throw"handler must be a function that takes one argument.";Jv.push(r),Lu[r]=n}},{key:"dispatchMessage",value:function(r){var n={};if(typeof r=="string")n=JSON.parse(r);else{for(var i=new DataView(r,0,1).getUint8(0),o=new DataView(r,1,i),a=[],u=0;u<i;u++)a.push(String.fromCharCode(o.getUint8(u)));var s=a.join("");r=r.slice(i+1),n.custom={},n.custom[s]=r}var l=jQuery.Event("shiny:message");l.message=n,(0,R.default)(document).trigger(l),!l.isDefaultPrevented()&&(this._sendMessagesToHandlers(l.message,Lu,Jv),this.$updateConditionals())}},{key:"_sendMessagesToHandlers",value:function(r,n,i){for(var o=0;o<i.length;o++){var a=i[o];O(r,a)&&n[a].call(this,r[a])}}},{key:"init",value:function(){this.addMessageHandler("values",function(s){for(var l in this.$bindings)O(this.$bindings,l)&&this.$bindings[l].showProgress(!1);for(var f in s)O(s,f)&&this.receiveOutput(f,s[f])}),this.addMessageHandler("errors",function(s){for(var l in s)O(s,l)&&this.receiveError(l,s[l])}),this.addMessageHandler("inputMessages",function(s){for(var l=0;l<s.length;l++){var f=(0,R.default)(".shiny-bound-input#"+q(s[l].id)),c=f.data("shiny-input-binding");if(f.length>0){f.attr("aria-live")||f.attr("aria-live","polite");var p=f[0],m=jQuery.Event("shiny:updateinput");m.message=s[l].message,m.binding=c,(0,R.default)(p).trigger(m),m.isDefaultPrevented()||c.receiveMessage(p,m.message)}}}),this.addMessageHandler("javascript",function(s){Et(s)}),this.addMessageHandler("console",function(s){for(var l=0;l<s.length;l++)console.log&&console.log(s[l])}),this.addMessageHandler("progress",function(s){if(s.type&&s.message){var l=this.progressHandlers[s.type];l&&l.call(this,s.message)}}),this.addMessageHandler("notification",function(s){if(s.type==="show")Ze(s.message);else if(s.type==="remove")et(s.message);else throw"Unkown notification type: "+s.type}),this.addMessageHandler("modal",function(s){if(s.type==="show")Oi(s.message);else if(s.type==="remove")Si();else throw"Unkown modal type: "+s.type}),this.addMessageHandler("response",function(s){var l=s.tag,f=this.$activeRequests[l];f&&(delete this.$activeRequests[l],"value"in s?f.onSuccess(s.value):f.onError(s.error))}),this.addMessageHandler("allowReconnect",function(s){switch(s){case!0:case!1:case"force":this.$allowReconnect=s;break;default:throw"Invalid value for allowReconnect: "+s}}),this.addMessageHandler("custom",function(s){var l=Bd();l&&l(s),this._sendMessagesToHandlers(s,Wi,Ki)}),this.addMessageHandler("config",function(s){this.config={workerId:s.workerId,sessionId:s.sessionId},s.user&&qd(s.user),(0,R.default)(document).trigger("shiny:sessioninitialized")}),this.addMessageHandler("busy",function(s){s==="busy"?((0,R.default)(document.documentElement).addClass("shiny-busy"),(0,R.default)(document).trigger("shiny:busy")):s==="idle"&&((0,R.default)(document.documentElement).removeClass("shiny-busy"),(0,R.default)(document).trigger("shiny:idle"))}),this.addMessageHandler("recalculating",function(s){if(O(s,"name")&&O(s,"status")){var l=this.$bindings[s.name];(0,R.default)(l?l.el:null).trigger({type:"shiny:"+s.status})}}),this.addMessageHandler("reload",function(s){window.location.reload()}),this.addMessageHandler("shiny-insert-ui",function(s){var l=(0,R.default)(s.selector);l.length===0?(console.warn('The selector you chose ("'+s.selector+'") could not be found in the DOM.'),Ur(s.content.html,(0,R.default)([]).get(0),s.content.deps)):l.each(function(f,c){return we(c,s.content,s.where),s.multiple})}),this.addMessageHandler("shiny-remove-ui",function(s){var l=(0,R.default)(s.selector);l.each(function(f,c){return ge(c,!0),(0,R.default)(c).remove(),s.multiple})}),this.addMessageHandler("frozen",function(s){for(var l=0;l<s.ids.length;l++)Td(s.ids[l])});function r(s){var l=(0,R.default)("#"+q(s));if(l.length===0)throw"There is no tabsetPanel (or navbarPage or navlistPanel) with id equal to '"+s+"'";return l}function n(s){var l=s.attr("data-tabsetid"),f=(0,R.default)("div.tab-content[data-tabsetid='"+q(l)+"']");return f}function i(s,l,f){var c="[data-value='"+q(f)+"']",p=s.find("a"+c),m=p.parent();if(m.length===0)throw"There is no tabPanel (or navbarMenu) with value (or menuName) equal to '"+f+"'";var d=[],h=[];if(p.attr("data-toggle")==="dropdown"){var y=p.find("+ ul.dropdown-menu"),g=y.attr("data-tabsetid"),_=y.find("a[data-toggle='tab']").parent("li");_.each(function(I,k){d.push((0,R.default)(k))});var P="div.tab-pane[id^='tab-"+q(g)+"']",b=l.find(P);b.each(function(I,k){h.push((0,R.default)(k))})}else h.push(l.find("div"+c));return{$liTag:m,$liTags:d,$divTags:h}}this.addMessageHandler("shiny-insert-tab",function(s){var l=r(s.inputId),f=l,c=n(f),p=l.attr("data-tabsetid"),m=(0,R.default)(s.divTag.html),d=(0,R.default)(s.liTag.html),h=d.find("> a"),y=null,g=null;s.target!==null&&(y=i(f,c,s.target),g=y.$liTag);var _=k();if(_!==null){if(h.attr("data-toggle")==="dropdown")throw"Cannot insert a navbarMenu inside another one";f=_.$tabset,p=_.id,d.removeClass("nav-item").find(".nav-link").removeClass("nav-link").addClass("dropdown-item")}if(h.attr("data-toggle")==="tab"){var P=I(f,p),b="tab-"+p+"-"+P;d.find("> a").attr("href","#"+b),m.attr("id",b)}s.position==="before"?g?g.before(d):f.prepend(d):s.position==="after"&&(g?g.after(d):f.append(d)),we(d[0],{html:d.html(),deps:s.liTag.deps}),we(c[0],{html:"",deps:s.divTag.deps},"beforeend"),m.get().forEach(function(F){c[0].appendChild(F),we(F,F.innerHTML||F.textContent)}),s.select&&d.find("a").tab("show");function I(F,J){var ue=[0];return F.find("a[data-toggle='tab']").each(function(){var se=(0,R.default)(this);if(se.length>0){var $e=se.attr("href").replace(/.*(?=#[^\s]+$)/,""),ar=$e.replace("#tab-"+J+"-","");ue.push(Number(ar))}}),Math.max.apply(null,ue)+1}function k(){if(s.menuName!==null){var F=(0,R.default)("a.dropdown-toggle[data-value='"+q(s.menuName)+"']");if(F.length===0)throw"There is no navbarMenu with menuName equal to '"+s.menuName+"'";var J=F.find("+ ul.dropdown-menu"),ue=J.attr("data-tabsetid");return{$tabset:J,id:ue}}else if(s.target!==null){var se=g.parent("ul");if(se.hasClass("dropdown-menu")){var $e=se.attr("data-tabsetid");return{$tabset:se,id:$e}}}return null}});function o(s){var l=s.data("shiny-input-binding");if(!l.getValue(s)){var f=a(s),c=jQuery.Event("shiny:updateinput");c.binding=l,s.trigger(c),l.setValue(s[0],f)}}function a(s){return s.find("li:visible a[data-toggle='tab']").first().attr("data-value")||null}function u(s,l){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;R.default.each(s,function(c,p){c==="$liTag"?l(p):c==="$divTags"?R.default.each(p,function(m,d){l(d)}):f&&c==="$liTags"&&R.default.each(p,function(m,d){l(d)})})}this.addMessageHandler("shiny-remove-tab",function(s){var l=r(s.inputId),f=n(l),c=i(l,f,s.target);u(c,p),o(l);function p(m){ge(m,!0),m.remove()}}),this.addMessageHandler("shiny-change-tab-visibility",function(s){var l=r(s.inputId),f=n(l),c=i(l,f,s.target);u(c,p,!0),o(l);function p(m){s.type==="show"?m.css("display",""):s.type==="hide"&&(m.hide(),m.removeClass("active"))}}),this.addMessageHandler("updateQueryString",function(s){if(s.mode==="replace"){window.history.replaceState(null,null,s.queryString);return}var l=null;if(s.queryString.charAt(0)==="#")l="hash";else if(s.queryString.charAt(0)==="?")l="query";else throw"The 'query' string must start with either '?' (to update the query string) or with '#' (to update the hash).";var f=window.location.pathname,c=window.location.search,p=window.location.hash,m=f;l==="query"?m+=s.queryString:m+=c+s.queryString,window.history.pushState(null,null,m),s.queryString.indexOf("#")!==-1&&(l="hash"),window.location.hash!==p&&(l="hash"),l==="hash"&&(0,R.default)(document).trigger("hashchange")}),this.addMessageHandler("resetBrush",function(s){xi(s.brushId)})}},{key:"getTestSnapshotBaseUrl",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.fullUrl,i=n===void 0?!0:n,o=window.location,a="";return i&&(a=o.origin+o.pathname.replace(/\/[^/]*$/,"")),a+="/session/"+encodeURIComponent(this.config.sessionId)+"/dataobj/shinytest?w="+encodeURIComponent(this.config.workerId)+"&nonce="+jn(),a}}]),e}();function ty(e){Pd(e);var t=e.shinyapp=new ey;e.progressHandlers=t.progressHandlers;var r=new hu(t),n=new bu(r),i=new wu(n),o=new xu(i),a=new Su(i),u;(0,D.default)('input[type="submit"], button[type="submit"]').length>0?(u=a,(0,D.default)('input[type="submit"], button[type="submit"]').each(function(){(0,D.default)(this).click(function(j){j.preventDefault(),a.submit()})})):u=o;var s=new Ru(u);e.setInputValue=e.onInputChange=function(j,T,C){var X=Iu(C);s.setInput(j,T,X)},e.forgetLastInputValue=function(j){n.forget(j)};var l=e.inputBindings,f=e.outputBindings;function c(){return{inputs:s,inputsRate:o,sendOutputHiddenState:J,maybeAddThemeObserver:g,inputBindings:l,outputBindings:f,initDeferredIframes:ry}}e.bindAll=function(j){ov(c(),j)},e.unbindAll=function(j){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;iv(c(),j,T)};function p(){for(var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement,T=l.getBindings(),C=0;C<T.length;C++){var X=T[C].binding,Z=X.find(j);if(Z)for(var ce=0;ce<Z.length;ce++){var x=(0,D.default)(Z[ce]);x.data("_shiny_initialized")||(x.data("_shiny_initialized",!0),X.initialize(Z[ce]))}}}e.initializeInputs=p;function m(j){var T=(0,D.default)(j),C=T.data("shiny-output-binding");return C?C.getId():null}p(document.documentElement);var d=Te(qu(c(),document.documentElement),function(j){return j.value});(0,D.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function(){var j=m(this);(this.offsetWidth!==0||this.offsetHeight!==0)&&(d[".clientdata_output_"+j+"_width"]=this.offsetWidth,d[".clientdata_output_"+j+"_height"]=this.offsetHeight)});function h(j){if(!j)return null;var T=Ve(j,"background-color"),C=T.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);if(T==="transparent"||C&&parseFloat(C[4])===0){var X=Ve(j,"background-image");return X&&X!=="none"?null:h(j.parentElement)}return T}function y(j){var T=Ve(j,"font-family"),C=Ve(j,"font-size");return{families:T.replace(/"/g,"").split(", "),size:C}}(0,D.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-theme").each(function(){var j=this,T=m(j);d[".clientdata_output_"+T+"_bg"]=h(j),d[".clientdata_output_"+T+"_fg"]=Ve(j,"color"),d[".clientdata_output_"+T+"_accent"]=Rr(j),d[".clientdata_output_"+T+"_font"]=y(j),g(j)});function g(j){if(!!window.MutationObserver){var T=j.classList,C=T.contains("shiny-image-output")||T.contains("shiny-plot-output")||T.contains("shiny-report-theme");if(!!C){var X=(0,D.default)(j);if(!X.data("shiny-theme-observer")){var Z=new Be(null,function(){return _(j)},100),ce=new MutationObserver(function(){return Z.normalCall()}),x={attributes:!0,attributeFilter:["style","class"]};ce.observe(j,x),X.data("shiny-theme-observer",ce)}}}}function _(j){if(!j.classList.contains("shiny-output-error")){var T=m(j);s.setInput(".clientdata_output_"+T+"_bg",h(j)),s.setInput(".clientdata_output_"+T+"_fg",Ve(j,"color")),s.setInput(".clientdata_output_"+T+"_accent",Rr(j)),s.setInput(".clientdata_output_"+T+"_font",y(j))}}function P(){(0,D.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-size").each(function(){var j=m(this);(this.offsetWidth!==0||this.offsetHeight!==0)&&(s.setInput(".clientdata_output_"+j+"_width",this.offsetWidth),s.setInput(".clientdata_output_"+j+"_height",this.offsetHeight))}),(0,D.default)(".shiny-image-output, .shiny-plot-output, .shiny-report-theme").each(function(){_(this)}),(0,D.default)(".shiny-bound-output").each(function(){var j=(0,D.default)(this),T=j.data("shiny-output-binding");j.trigger({type:"shiny:visualchange",visible:!b(this),binding:T}),T.onResize()})}De.setImageSend(r,P);function b(j){return j===null||j.offsetWidth!==0||j.offsetHeight!==0?!1:Ve(j,"display")==="none"?!0:b(j.parentNode)}var I={};(0,D.default)(".shiny-bound-output").each(function(){var j=m(this);b(this)?d[".clientdata_output_"+j+"_hidden"]=!0:(I[j]=!0,d[".clientdata_output_"+j+"_hidden"]=!1)});function k(){var j={};(0,D.default)(".shiny-bound-output").each(function(){var C=m(this);delete I[C];var X=b(this),Z={type:"shiny:visualchange",visible:!X};X?s.setInput(".clientdata_output_"+C+"_hidden",!0):(j[C]=!0,s.setInput(".clientdata_output_"+C+"_hidden",!1));var ce=(0,D.default)(this);Z.binding=ce.data("shiny-output-binding"),ce.trigger(Z)});for(var T in I)O(I,T)&&s.setInput(".clientdata_output_"+T+"_hidden",!0);I=j}var F=new Be(null,k,0);function J(){F.normalCall()}r.lastChanceCallback.push(function(){F.isPending()&&F.immediateCall()});function ue(j,T){for(var C=arguments.length,X=new Array(C>2?C-2:0),Z=2;Z<C;Z++)X[Z-2]=arguments[Z];return j=j.split("."),function(ce){for(var x=ce.namespace.split("."),S=0;S<j.length;S++)if(x.indexOf(j[S])===-1)return;T.apply(this,[j,T].concat(X))}}(0,D.default)(window).resize(dt(500,De.regular));var se=["modal","dropdown","tab","tooltip","popover","collapse"];D.default.each(se,function(j,T){(0,D.default)(document.body).on("shown.bs."+T+".sendImageSize","*",ue("bs",De.regular)),(0,D.default)(document.body).on("shown.bs."+T+".sendOutputHiddenState hidden.bs."+T+".sendOutputHiddenState","*",ue("bs",J))}),(0,D.default)(document.body).on("shown.sendImageSize","*",De.regular),(0,D.default)(document.body).on("shown.sendOutputHiddenState hidden.sendOutputHiddenState","*",J),d[".clientdata_pixelratio"]=No(),(0,D.default)(window).resize(function(){s.setInput(".clientdata_pixelratio",No())}),d[".clientdata_url_protocol"]=window.location.protocol,d[".clientdata_url_hostname"]=window.location.hostname,d[".clientdata_url_port"]=window.location.port,d[".clientdata_url_pathname"]=window.location.pathname,d[".clientdata_url_search"]=window.location.search,(0,D.default)(window).on("pushstate",function(j){s.setInput(".clientdata_url_search",window.location.search)}),(0,D.default)(window).on("popstate",function(j){s.setInput(".clientdata_url_search",window.location.search)}),d[".clientdata_url_hash_initial"]=window.location.hash,d[".clientdata_url_hash"]=window.location.hash,(0,D.default)(window).on("hashchange",function(j){s.setInput(".clientdata_url_hash",window.location.hash)});var $e=d[".clientdata_singletons"]=(0,D.default)('script[type="application/shiny-singletons"]').text();Pm($e.split(/,/));var ar=(0,D.default)('script[type="application/html-dependencies"]').text();D.default.each(ar.split(/;/),function(j,T){var C=/\s*^(.+)\[(.+)\]\s*$/.exec(T);C&&ou(C[1],C[2])}),n.reset(d),t.connect(d),(0,D.default)(document).one("shiny:connected",function(){ry()}),window.console.log("Shiny version: ",e.version)}function ry(){!window.Shiny||!window.Shiny.shinyapp||!window.Shiny.shinyapp.isConnected()||(0,D.default)(".shiny-frame-deferred").each(function(e,t){var r=(0,D.default)(t);r.removeClass("shiny-frame-deferred"),r.attr("src",r.attr("data-deferred-src")),r.attr("data-deferred-src",null)})}var Q;function iy(e){Q=e,Q.version="1.6.0.9021";var t=Hd(),r=t.inputBindings,n=t.fileInputBinding,i=$m(),o=i.outputBindings;Nd(n),Q.$escape=q,Q.compareVersion=Kf,Q.inputBindings=r,Q.InputBinding=V,Q.outputBindings=o,Q.OutputBinding=ie,Q.resetBrush=xi,Q.notifications={show:Ze,remove:et},Q.modal={show:Oi,remove:Si},Q.addCustomMessageHandler=Zv,Q.showReconnectDialog=Ii,Q.hideReconnectDialog=Ri,Q.renderDependencies=iu,Q.renderContent=we,Q.renderHtml=Ur,(0,ny.default)(function(){setTimeout(function(){ty(Q)},1)})}function oy(){var e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;return e}function ay(){return window.navigator.userAgent}var Yi=w(E());function uy(){(0,Yi.default)(document).on("keydown",function(e){if(!(e.which!==114||!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey)){var t="reactlog?w="+window.escape(ct().config.workerId)+"&s="+window.escape(ct().config.sessionId);window.open(t),e.preventDefault()}}),(0,Yi.default)(document).on("keydown",function(e){if(!!(e.which===115&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey||e.which===114&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey)){var t="reactlog/mark?w="+window.escape(ct().config.workerId)+"&s="+window.escape(ct().config.sessionId);Yi.default.get(t,function(r){if(r==="marked"){var n='<span id="shiny-reactlog-mark-text">Marked time point in reactlog</span>';Ze({html:n,closeButton:!0})}}).fail(function(){window.open(t)}),e.preventDefault()}})}function sy(){iy(_l()),jl(ay()),wl(),Ku(),Hu(),Mf(oy()),uy()}sy();})();
|
|
//# sourceMappingURL=shiny.min.js.map
|