@careevolution/mydatahelps-ui 2.87.2-DocumentLibrary.2 → 2.87.2-DocumentLibrary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -190,5 +190,5 @@ object-assign
|
|
|
190
190
|
* Released under MIT license <https://lodash.com/license>
|
|
191
191
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
192
192
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
193
|
-
*/!function(e,t){(function(){var a,n="Expected a function",r="__lodash_hash_undefined__",i="__lodash_placeholder__",o=16,s=32,l=64,c=128,u=256,d=1/0,m=9007199254740991,h=NaN,p=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",s],["partialRight",l],["rearg",u]],f="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",k="[object Function]",x="[object GeneratorFunction]",A="[object Map]",S="[object Number]",E="[object Object]",_="[object Promise]",C="[object RegExp]",O="[object Set]",P="[object String]",T="[object Symbol]",M="[object WeakMap]",D="[object ArrayBuffer]",I="[object DataView]",N="[object Float32Array]",j="[object Float64Array]",z="[object Int8Array]",R="[object Int16Array]",L="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp($.source),Z=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(ae.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Te="["+xe+"]",Me="["+Oe+"]",De="["+Ae+"]",Ie="\\d+",Ne="["+Se+"]",je="["+Ee+"]",ze="[^"+xe+Oe+Ie+Se+Ee+_e+"]",Re="\\ud83c[\\udffb-\\udfff]",Le="[^"+xe+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+_e+"]",qe="\\u200d",Ve="(?:"+je+"|"+ze+")",Ue="(?:"+He+"|"+ze+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+De+"|"+Re+")"+"?",Ke="["+Ce+"]?",Ze=Ke+Ge+("(?:"+qe+"(?:"+[Le,Fe,Be].join("|")+")"+Ke+Ge+")*"),Ye="(?:"+[Ne,Fe,Be].join("|")+")"+Ze,Qe="(?:"+[Le+De+"?",De,Fe,Be,Te].join("|")+")",Xe=RegExp(Pe,"g"),Je=RegExp(De,"g"),et=RegExp(Re+"(?="+Re+")|"+Qe+Ze,"g"),tt=RegExp([He+"?"+je+"+"+We+"(?="+[Me,He,"$"].join("|")+")",Ue+"+"+$e+"(?="+[Me,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+We,He+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),at=RegExp("["+qe+xe+Ae+Ce+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,ot={};ot[N]=ot[j]=ot[z]=ot[R]=ot[L]=ot[F]=ot[B]=ot[H]=ot[q]=!0,ot[f]=ot[y]=ot[D]=ot[v]=ot[I]=ot[b]=ot[w]=ot[k]=ot[A]=ot[S]=ot[E]=ot[C]=ot[O]=ot[P]=ot[M]=!1;var st={};st[f]=st[y]=st[D]=st[I]=st[v]=st[b]=st[N]=st[j]=st[z]=st[R]=st[L]=st[A]=st[S]=st[E]=st[C]=st[O]=st[P]=st[T]=st[F]=st[B]=st[H]=st[q]=!0,st[w]=st[k]=st[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof qt&&qt&&qt.Object===Object&&qt,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||mt||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&e&&!e.nodeType&&e,ft=gt&>.exports===pt,yt=ft&&dt.process,vt=function(){try{var e=gt&>.require&>.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,kt=vt&&vt.isMap,xt=vt&&vt.isRegExp,At=vt&&vt.isSet,St=vt&&vt.isTypedArray;function Et(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function _t(e,t,a,n){for(var r=-1,i=null==e?0:e.length;++r<i;){var o=e[r];t(n,o,a(o),e)}return n}function Ct(e,t){for(var a=-1,n=null==e?0:e.length;++a<n&&!1!==t(e[a],a,e););return e}function Ot(e,t){for(var a=null==e?0:e.length;a--&&!1!==t(e[a],a,e););return e}function Pt(e,t){for(var a=-1,n=null==e?0:e.length;++a<n;)if(!t(e[a],a,e))return!1;return!0}function Tt(e,t){for(var a=-1,n=null==e?0:e.length,r=0,i=[];++a<n;){var o=e[a];t(o,a,e)&&(i[r++]=o)}return i}function Mt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Dt(e,t,a){for(var n=-1,r=null==e?0:e.length;++n<r;)if(a(t,e[n]))return!0;return!1}function It(e,t){for(var a=-1,n=null==e?0:e.length,r=Array(n);++a<n;)r[a]=t(e[a],a,e);return r}function Nt(e,t){for(var a=-1,n=t.length,r=e.length;++a<n;)e[r+a]=t[a];return e}function jt(e,t,a,n){var r=-1,i=null==e?0:e.length;for(n&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}function zt(e,t,a,n){var r=null==e?0:e.length;for(n&&r&&(a=e[--r]);r--;)a=t(a,e[r],r,e);return a}function Rt(e,t){for(var a=-1,n=null==e?0:e.length;++a<n;)if(t(e[a],a,e))return!0;return!1}var Lt=$t("length");function Ft(e,t,a){var n;return a(e,(function(e,a,r){if(t(e,a,r))return n=a,!1})),n}function Bt(e,t,a,n){for(var r=e.length,i=a+(n?1:-1);n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,a){return t==t?function(e,t,a){var n=a-1,r=e.length;for(;++n<r;)if(e[n]===t)return n;return-1}(e,t,a):Bt(e,Ut,a)}function Vt(e,t,a,n){for(var r=a-1,i=e.length;++r<i;)if(n(e[r],t))return r;return-1}function Ut(e){return e!=e}function Wt(e,t){var a=null==e?0:e.length;return a?Zt(e,t)/a:h}function $t(e){return function(t){return null==t?a:t[e]}}function Gt(e){return function(t){return null==e?a:e[t]}}function Kt(e,t,a,n,r){return r(e,(function(e,r,i){a=n?(n=!1,e):t(a,e,r,i)})),a}function Zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Yt(e,t){for(var a=-1,n=Array(e);++a<e;)n[a]=t(a);return n}function Qt(e){return e?e.slice(0,pa(e)+1).replace(re,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return It(t,(function(t){return e[t]}))}function ea(e,t){return e.has(t)}function ta(e,t){for(var a=-1,n=e.length;++a<n&&Ht(t,e[a],0)>-1;);return a}function aa(e,t){for(var a=e.length;a--&&Ht(t,e[a],0)>-1;);return a}var na=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ra=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ia(e){return"\\"+lt[e]}function oa(e){return at.test(e)}function sa(e){var t=-1,a=Array(e.size);return e.forEach((function(e,n){a[++t]=[n,e]})),a}function la(e,t){return function(a){return e(t(a))}}function ca(e,t){for(var a=-1,n=e.length,r=0,o=[];++a<n;){var s=e[a];s!==t&&s!==i||(e[a]=i,o[r++]=a)}return o}function ua(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}function da(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=[e,e]})),a}function ma(e){return oa(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Lt(e)}function ha(e){return oa(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function pa(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ga=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var fa=function e(t){var ie=(t=null==t?ht:fa.defaults(ht.Object(),t,fa.pick(ht,rt))).Array,xe=t.Date,Ae=t.Error,Se=t.Function,Ee=t.Math,_e=t.Object,Ce=t.RegExp,Oe=t.String,Pe=t.TypeError,Te=ie.prototype,Me=Se.prototype,De=_e.prototype,Ie=t["__core-js_shared__"],Ne=Me.toString,je=De.hasOwnProperty,ze=0,Re=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=De.toString,Fe=Ne.call(_e),Be=ht._,He=Ce("^"+Ne.call(je).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=ft?t.Buffer:a,Ve=t.Symbol,Ue=t.Uint8Array,We=qe?qe.allocUnsafe:a,$e=la(_e.getPrototypeOf,_e),Ge=_e.create,Ke=De.propertyIsEnumerable,Ze=Te.splice,Ye=Ve?Ve.isConcatSpreadable:a,Qe=Ve?Ve.iterator:a,et=Ve?Ve.toStringTag:a,at=function(){try{var e=di(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=xe&&xe.now!==ht.Date.now&&xe.now,mt=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=Ee.ceil,gt=Ee.floor,yt=_e.getOwnPropertySymbols,vt=qe?qe.isBuffer:a,Lt=t.isFinite,qt=Te.join,Gt=la(_e.keys,_e),ya=Ee.max,va=Ee.min,ba=xe.now,wa=t.parseInt,ka=Ee.random,xa=Te.reverse,Aa=di(t,"DataView"),Sa=di(t,"Map"),Ea=di(t,"Promise"),_a=di(t,"Set"),Ca=di(t,"WeakMap"),Oa=di(_e,"create"),Pa=Ca&&new Ca,Ta={},Ma=Ri(Aa),Da=Ri(Sa),Ia=Ri(Ea),Na=Ri(_a),ja=Ri(Ca),za=Ve?Ve.prototype:a,Ra=za?za.valueOf:a,La=za?za.toString:a;function Fa(e){if(ts(e)&&!Uo(e)&&!(e instanceof Va)){if(e instanceof qa)return e;if(je.call(e,"__wrapped__"))return Li(e)}return new qa(e)}var Ba=function(){function e(){}return function(t){if(!es(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Ha(){}function qa(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Va(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Ua(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function Wa(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function $a(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function Ga(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new $a;++t<a;)this.add(e[t])}function Ka(e){var t=this.__data__=new Wa(e);this.size=t.size}function Za(e,t){var a=Uo(e),n=!a&&Vo(e),r=!a&&!n&&Ko(e),i=!a&&!n&&!r&&cs(e),o=a||n||r||i,s=o?Yt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!je.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,l))||s.push(c);return s}function Ya(e){var t=e.length;return t?e[Kn(0,t-1)]:a}function Qa(e,t){return Ni(Pr(e),sn(t,0,e.length))}function Xa(e){return Ni(Pr(e))}function Ja(e,t,n){(n!==a&&!Bo(e[t],n)||n===a&&!(t in e))&&rn(e,t,n)}function en(e,t,n){var r=e[t];je.call(e,t)&&Bo(r,n)&&(n!==a||t in e)||rn(e,t,n)}function tn(e,t){for(var a=e.length;a--;)if(Bo(e[a][0],t))return a;return-1}function an(e,t,a,n){return mn(e,(function(e,r,i){t(n,e,a(e),i)})),n}function nn(e,t){return e&&Tr(t,Ms(t),e)}function rn(e,t,a){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function on(e,t){for(var n=-1,r=t.length,i=ie(r),o=null==e;++n<r;)i[n]=o?a:_s(e,t[n]);return i}function sn(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function ln(e,t,n,r,i,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!es(e))return e;var d=Uo(e);if(d){if(s=function(e){var t=e.length,a=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(a.index=e.index,a.input=e.input);return a}(e),!l)return Pr(e,s)}else{var m=pi(e),h=m==k||m==x;if(Ko(e))return Ar(e,l);if(m==E||m==f||h&&!i){if(s=c||h?{}:fi(e),!l)return c?function(e,t){return Tr(e,hi(e),t)}(e,function(e,t){return e&&Tr(t,Ds(t),e)}(s,e)):function(e,t){return Tr(e,mi(e),t)}(e,nn(s,e))}else{if(!st[m])return i?e:{};s=function(e,t,a){var n=e.constructor;switch(t){case D:return Sr(e);case v:case b:return new n(+e);case I:return function(e,t){var a=t?Sr(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case N:case j:case z:case R:case L:case F:case B:case H:case q:return Er(e,a);case A:return new n;case S:case P:return new n(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case T:return r=e,Ra?_e(Ra.call(r)):{}}var r}(e,m,l)}}o||(o=new Ka);var p=o.get(e);if(p)return p;o.set(e,s),os(e)?e.forEach((function(a){s.add(ln(a,t,n,a,e,o))})):as(e)&&e.forEach((function(a,r){s.set(r,ln(a,t,n,r,e,o))}));var g=d?a:(u?c?ri:ni:c?Ds:Ms)(e);return Ct(g||e,(function(a,r){g&&(a=e[r=a]),en(s,r,ln(a,t,n,r,e,o))})),s}function cn(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Pe(n);return Ti((function(){e.apply(a,r)}),t)}function dn(e,t,a,n){var r=-1,i=Mt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;a&&(t=It(t,Xt(a))),n?(i=Dt,o=!1):t.length>=200&&(i=ea,o=!1,t=new Ga(t));e:for(;++r<s;){var u=e[r],d=null==a?u:a(u);if(u=n||0!==u?u:0,o&&d==d){for(var m=c;m--;)if(t[m]===d)continue e;l.push(u)}else i(t,d,n)||l.push(u)}return l}Fa.templateSettings={escape:Y,evaluate:Q,interpolate:X,variable:"",imports:{_:Fa}},Fa.prototype=Ha.prototype,Fa.prototype.constructor=Fa,qa.prototype=Ba(Ha.prototype),qa.prototype.constructor=qa,Va.prototype=Ba(Ha.prototype),Va.prototype.constructor=Va,Ua.prototype.clear=function(){this.__data__=Oa?Oa(null):{},this.size=0},Ua.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ua.prototype.get=function(e){var t=this.__data__;if(Oa){var n=t[e];return n===r?a:n}return je.call(t,e)?t[e]:a},Ua.prototype.has=function(e){var t=this.__data__;return Oa?t[e]!==a:je.call(t,e)},Ua.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oa&&t===a?r:t,this},Wa.prototype.clear=function(){this.__data__=[],this.size=0},Wa.prototype.delete=function(e){var t=this.__data__,a=tn(t,e);return!(a<0)&&(a==t.length-1?t.pop():Ze.call(t,a,1),--this.size,!0)},Wa.prototype.get=function(e){var t=this.__data__,n=tn(t,e);return n<0?a:t[n][1]},Wa.prototype.has=function(e){return tn(this.__data__,e)>-1},Wa.prototype.set=function(e,t){var a=this.__data__,n=tn(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this},$a.prototype.clear=function(){this.size=0,this.__data__={hash:new Ua,map:new(Sa||Wa),string:new Ua}},$a.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},$a.prototype.get=function(e){return ci(this,e).get(e)},$a.prototype.has=function(e){return ci(this,e).has(e)},$a.prototype.set=function(e,t){var a=ci(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this},Ga.prototype.add=Ga.prototype.push=function(e){return this.__data__.set(e,r),this},Ga.prototype.has=function(e){return this.__data__.has(e)},Ka.prototype.clear=function(){this.__data__=new Wa,this.size=0},Ka.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},Ka.prototype.get=function(e){return this.__data__.get(e)},Ka.prototype.has=function(e){return this.__data__.has(e)},Ka.prototype.set=function(e,t){var a=this.__data__;if(a instanceof Wa){var n=a.__data__;if(!Sa||n.length<199)return n.push([e,t]),this.size=++a.size,this;a=this.__data__=new $a(n)}return a.set(e,t),this.size=a.size,this};var mn=Ir(wn),hn=Ir(kn,!0);function pn(e,t){var a=!0;return mn(e,(function(e,n,r){return a=!!t(e,n,r)})),a}function gn(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(l===a?s==s&&!ls(s):n(s,l)))var l=s,c=o}return c}function fn(e,t){var a=[];return mn(e,(function(e,n,r){t(e,n,r)&&a.push(e)})),a}function yn(e,t,a,n,r){var i=-1,o=e.length;for(a||(a=yi),r||(r=[]);++i<o;){var s=e[i];t>0&&a(s)?t>1?yn(s,t-1,a,n,r):Nt(r,s):n||(r[r.length]=s)}return r}var vn=Nr(),bn=Nr(!0);function wn(e,t){return e&&vn(e,t,Ms)}function kn(e,t){return e&&bn(e,t,Ms)}function xn(e,t){return Tt(t,(function(t){return Qo(e[t])}))}function An(e,t){for(var n=0,r=(t=br(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:a}function Sn(e,t,a){var n=t(e);return Uo(e)?n:Nt(n,a(e))}function En(e){return null==e?e===a?"[object Undefined]":"[object Null]":et&&et in _e(e)?function(e){var t=je.call(e,et),n=e[et];try{e[et]=a;var r=!0}catch(e){}var i=Le.call(e);r&&(t?e[et]=n:delete e[et]);return i}(e):function(e){return Le.call(e)}(e)}function _n(e,t){return e>t}function Cn(e,t){return null!=e&&je.call(e,t)}function On(e,t){return null!=e&&t in _e(e)}function Pn(e,t,n){for(var r=n?Dt:Mt,i=e[0].length,o=e.length,s=o,l=ie(o),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=It(d,Xt(t))),c=va(d.length,c),l[s]=!n&&(t||i>=120&&d.length>=120)?new Ga(s&&d):a}d=e[0];var m=-1,h=l[0];e:for(;++m<i&&u.length<c;){var p=d[m],g=t?t(p):p;if(p=n||0!==p?p:0,!(h?ea(h,g):r(u,g,n))){for(s=o;--s;){var f=l[s];if(!(f?ea(f,g):r(e[s],g,n)))continue e}h&&h.push(g),u.push(p)}}return u}function Tn(e,t,n){var r=null==(e=Ci(e,t=br(t,e)))?e:e[zi(Zi(t))];return null==r?a:Et(r,e,n)}function Mn(e){return ts(e)&&En(e)==f}function Dn(e,t,n,r,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var s=Uo(e),l=Uo(t),c=s?y:pi(e),u=l?y:pi(t),d=(c=c==f?E:c)==E,m=(u=u==f?E:u)==E,h=c==u;if(h&&Ko(e)){if(!Ko(t))return!1;s=!0,d=!1}if(h&&!d)return o||(o=new Ka),s||cs(e)?ti(e,t,n,r,i,o):function(e,t,a,n,r,i,o){switch(a){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case v:case b:case S:return Bo(+e,+t);case w:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case A:var s=sa;case O:var l=1&n;if(s||(s=ua),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=ti(s(e),s(t),n,r,i,o);return o.delete(e),u;case T:if(Ra)return Ra.call(e)==Ra.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var p=d&&je.call(e,"__wrapped__"),g=m&&je.call(t,"__wrapped__");if(p||g){var k=p?e.value():e,x=g?t.value():t;return o||(o=new Ka),i(k,x,n,r,o)}}if(!h)return!1;return o||(o=new Ka),function(e,t,n,r,i,o){var s=1&n,l=ni(e),c=l.length,u=ni(t),d=u.length;if(c!=d&&!s)return!1;var m=c;for(;m--;){var h=l[m];if(!(s?h in t:je.call(t,h)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var f=!0;o.set(e,t),o.set(t,e);var y=s;for(;++m<c;){var v=e[h=l[m]],b=t[h];if(r)var w=s?r(b,v,h,t,e,o):r(v,b,h,e,t,o);if(!(w===a?v===b||i(v,b,n,r,o):w)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var k=e.constructor,x=t.constructor;k==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof x&&x instanceof x||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o)}(e,t,n,r,Dn,i))}function In(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=_e(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===a&&!(c in e))return!1}else{var m=new Ka;if(r)var h=r(u,d,c,e,t,m);if(!(h===a?Dn(d,u,3,r,m):h))return!1}}return!0}function Nn(e){return!(!es(e)||(t=e,Re&&Re in t))&&(Qo(e)?He:fe).test(Ri(e));var t}function jn(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Uo(e)?Hn(e[0],e[1]):Bn(e):ml(e)}function zn(e){if(!Ai(e))return Gt(e);var t=[];for(var a in _e(e))je.call(e,a)&&"constructor"!=a&&t.push(a);return t}function Rn(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var a in _e(e))t.push(a);return t}(e);var t=Ai(e),a=[];for(var n in e)("constructor"!=n||!t&&je.call(e,n))&&a.push(n);return a}function Ln(e,t){return e<t}function Fn(e,t){var a=-1,n=$o(e)?ie(e.length):[];return mn(e,(function(e,r,i){n[++a]=t(e,r,i)})),n}function Bn(e){var t=ui(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(a){return a===e||In(a,e,t)}}function Hn(e,t){return wi(e)&&Si(t)?Ei(zi(e),t):function(n){var r=_s(n,e);return r===a&&r===t?Cs(n,e):Dn(t,r,3)}}function qn(e,t,n,r,i){e!==t&&vn(t,(function(o,s){if(i||(i=new Ka),es(o))!function(e,t,n,r,i,o,s){var l=Oi(e,n),c=Oi(t,n),u=s.get(c);if(u)return void Ja(e,n,u);var d=o?o(l,c,n+"",e,t,s):a,m=d===a;if(m){var h=Uo(c),p=!h&&Ko(c),g=!h&&!p&&cs(c);d=c,h||p||g?Uo(l)?d=l:Go(l)?d=Pr(l):p?(m=!1,d=Ar(c,!0)):g?(m=!1,d=Er(c,!0)):d=[]:rs(c)||Vo(c)?(d=l,Vo(l)?d=ys(l):es(l)&&!Qo(l)||(d=fi(c))):m=!1}m&&(s.set(c,d),i(d,c,r,o,s),s.delete(c));Ja(e,n,d)}(e,t,s,n,qn,r,i);else{var l=r?r(Oi(e,s),o,s+"",e,t,i):a;l===a&&(l=o),Ja(e,s,l)}}),Ds)}function Vn(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:a}function Un(e,t,a){t=t.length?It(t,(function(e){return Uo(e)?function(t){return An(t,1===e.length?e[0]:e)}:e})):[nl];var n=-1;t=It(t,Xt(li()));var r=Fn(e,(function(e,a,r){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var a=e.length;for(e.sort(t);a--;)e[a]=e[a].value;return e}(r,(function(e,t){return function(e,t,a){var n=-1,r=e.criteria,i=t.criteria,o=r.length,s=a.length;for(;++n<o;){var l=_r(r[n],i[n]);if(l)return n>=s?l:l*("desc"==a[n]?-1:1)}return e.index-t.index}(e,t,a)}))}function Wn(e,t,a){for(var n=-1,r=t.length,i={};++n<r;){var o=t[n],s=An(e,o);a(s,o)&&Jn(i,br(o,e),s)}return i}function $n(e,t,a,n){var r=n?Vt:Ht,i=-1,o=t.length,s=e;for(e===t&&(t=Pr(t)),a&&(s=It(e,Xt(a)));++i<o;)for(var l=0,c=t[i],u=a?a(c):c;(l=r(s,u,l,n))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Gn(e,t){for(var a=e?t.length:0,n=a-1;a--;){var r=t[a];if(a==n||r!==i){var i=r;vi(r)?Ze.call(e,r,1):dr(e,r)}}return e}function Kn(e,t){return e+gt(ka()*(t-e+1))}function Zn(e,t){var a="";if(!e||t<1||t>m)return a;do{t%2&&(a+=e),(t=gt(t/2))&&(e+=e)}while(t);return a}function Yn(e,t){return Mi(_i(e,t,nl),e+"")}function Qn(e){return Ya(Bs(e))}function Xn(e,t){var a=Bs(e);return Ni(a,sn(t,0,a.length))}function Jn(e,t,n,r){if(!es(e))return e;for(var i=-1,o=(t=br(t,e)).length,s=o-1,l=e;null!=l&&++i<o;){var c=zi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):a)===a&&(u=es(d)?d:vi(t[i+1])?[]:{})}en(l,c,u),l=l[c]}return e}var er=Pa?function(e,t){return Pa.set(e,t),e}:nl,tr=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:nl;function ar(e){return Ni(Bs(e))}function nr(e,t,a){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(a=a>r?r:a)<0&&(a+=r),r=t>a?0:a-t>>>0,t>>>=0;for(var i=ie(r);++n<r;)i[n]=e[n+t];return i}function rr(e,t){var a;return mn(e,(function(e,n,r){return!(a=t(e,n,r))})),!!a}function ir(e,t,a){var n=0,r=null==e?n:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;n<r;){var i=n+r>>>1,o=e[i];null!==o&&!ls(o)&&(a?o<=t:o<t)?n=i+1:r=i}return r}return or(e,t,nl,a)}function or(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ls(t),u=t===a;i<o;){var d=gt((i+o)/2),m=n(e[d]),h=m!==a,p=null===m,g=m==m,f=ls(m);if(s)var y=r||g;else y=u?g&&(r||h):l?g&&h&&(r||!p):c?g&&h&&!p&&(r||!f):!p&&!f&&(r?m<=t:m<t);y?i=d+1:o=d}return va(o,4294967294)}function sr(e,t){for(var a=-1,n=e.length,r=0,i=[];++a<n;){var o=e[a],s=t?t(o):o;if(!a||!Bo(s,l)){var l=s;i[r++]=0===o?0:o}}return i}function lr(e){return"number"==typeof e?e:ls(e)?h:+e}function cr(e){if("string"==typeof e)return e;if(Uo(e))return It(e,cr)+"";if(ls(e))return La?La.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ur(e,t,a){var n=-1,r=Mt,i=e.length,o=!0,s=[],l=s;if(a)o=!1,r=Dt;else if(i>=200){var c=t?null:Zr(e);if(c)return ua(c);o=!1,r=ea,l=new Ga}else l=t?[]:s;e:for(;++n<i;){var u=e[n],d=t?t(u):u;if(u=a||0!==u?u:0,o&&d==d){for(var m=l.length;m--;)if(l[m]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,a)||(l!==s&&l.push(d),s.push(u))}return s}function dr(e,t){return null==(e=Ci(e,t=br(t,e)))||delete e[zi(Zi(t))]}function mr(e,t,a,n){return Jn(e,t,a(An(e,t)),n)}function hr(e,t,a,n){for(var r=e.length,i=n?r:-1;(n?i--:++i<r)&&t(e[i],i,e););return a?nr(e,n?0:i,n?i+1:r):nr(e,n?i+1:0,n?r:i)}function pr(e,t){var a=e;return a instanceof Va&&(a=a.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),a)}function gr(e,t,a){var n=e.length;if(n<2)return n?ur(e[0]):[];for(var r=-1,i=ie(n);++r<n;)for(var o=e[r],s=-1;++s<n;)s!=r&&(i[r]=dn(i[r]||o,e[s],t,a));return ur(yn(i,1),t,a)}function fr(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var l=r<o?t[r]:a;n(s,e[r],l)}return s}function yr(e){return Go(e)?e:[]}function vr(e){return"function"==typeof e?e:nl}function br(e,t){return Uo(e)?e:wi(e,t)?[e]:ji(vs(e))}var wr=Yn;function kr(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:nr(e,t,n)}var xr=lt||function(e){return ht.clearTimeout(e)};function Ar(e,t){if(t)return e.slice();var a=e.length,n=We?We(a):new e.constructor(a);return e.copy(n),n}function Sr(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Er(e,t){var a=t?Sr(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function _r(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=ls(e),s=t!==a,l=null===t,c=t==t,u=ls(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!c)return-1}return 0}function Cr(e,t,a,n){for(var r=-1,i=e.length,o=a.length,s=-1,l=t.length,c=ya(i-o,0),u=ie(l+c),d=!n;++s<l;)u[s]=t[s];for(;++r<o;)(d||r<i)&&(u[a[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u}function Or(e,t,a,n){for(var r=-1,i=e.length,o=-1,s=a.length,l=-1,c=t.length,u=ya(i-s,0),d=ie(u+c),m=!n;++r<u;)d[r]=e[r];for(var h=r;++l<c;)d[h+l]=t[l];for(;++o<s;)(m||r<i)&&(d[h+a[o]]=e[r++]);return d}function Pr(e,t){var a=-1,n=e.length;for(t||(t=ie(n));++a<n;)t[a]=e[a];return t}function Tr(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=r?r(n[l],e[l],l,n,e):a;c===a&&(c=e[l]),i?rn(n,l,c):en(n,l,c)}return n}function Mr(e,t){return function(a,n){var r=Uo(a)?_t:an,i=t?t():{};return r(a,e,li(n,2),i)}}function Dr(e){return Yn((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&bi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=_e(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}function Ir(e,t){return function(a,n){if(null==a)return a;if(!$o(a))return e(a,n);for(var r=a.length,i=t?r:-1,o=_e(a);(t?i--:++i<r)&&!1!==n(o[i],i,o););return a}}function Nr(e){return function(t,a,n){for(var r=-1,i=_e(t),o=n(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===a(i[l],l,i))break}return t}}function jr(e){return function(t){var n=oa(t=vs(t))?ha(t):a,r=n?n[0]:t.charAt(0),i=n?kr(n,1).join(""):t.slice(1);return r[e]()+i}}function zr(e){return function(t){return jt(Qs(Vs(t).replace(Xe,"")),e,"")}}function Rr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a=Ba(e.prototype),n=e.apply(a,t);return es(n)?n:a}}function Lr(e){return function(t,n,r){var i=_e(t);if(!$o(t)){var o=li(n,3);t=Ms(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function Fr(e){return ai((function(t){var r=t.length,i=r,o=qa.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Pe(n);if(o&&!l&&"wrapper"==oi(s))var l=new qa([],!0)}for(i=l?i:r;++i<r;){var c=oi(s=t[i]),u="wrapper"==c?ii(s):a;l=u&&ki(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oi(u[0])].apply(l,u[3]):1==s.length&&ki(s)?l[c]():l.thru(s)}return function(){var e=arguments,a=e[0];if(l&&1==e.length&&Uo(a))return l.plant(a).value();for(var n=0,i=r?t[n].apply(this,e):a;++n<r;)i=t[n].call(this,i);return i}}))}function Br(e,t,n,r,i,o,s,l,u,d){var m=t&c,h=1&t,p=2&t,g=24&t,f=512&t,y=p?a:Rr(e);return function c(){for(var v=arguments.length,b=ie(v),w=v;w--;)b[w]=arguments[w];if(g)var k=si(c),x=function(e,t){for(var a=e.length,n=0;a--;)e[a]===t&&++n;return n}(b,k);if(r&&(b=Cr(b,r,i,g)),o&&(b=Or(b,o,s,g)),v-=x,g&&v<d){var A=ca(b,k);return Gr(e,t,Br,c.placeholder,n,b,A,l,u,d-v)}var S=h?n:this,E=p?S[e]:e;return v=b.length,l?b=function(e,t){var n=e.length,r=va(t.length,n),i=Pr(e);for(;r--;){var o=t[r];e[r]=vi(o,n)?i[o]:a}return e}(b,l):f&&v>1&&b.reverse(),m&&u<v&&(b.length=u),this&&this!==ht&&this instanceof c&&(E=y||Rr(E)),E.apply(S,b)}}function Hr(e,t){return function(a,n){return function(e,t,a,n){return wn(e,(function(e,r,i){t(n,a(e),r,i)})),n}(a,e,t(n),{})}}function qr(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=cr(n),r=cr(r)):(n=lr(n),r=lr(r)),i=e(n,r)}return i}}function Vr(e){return ai((function(t){return t=It(t,Xt(li())),Yn((function(a){var n=this;return e(t,(function(e){return Et(e,n,a)}))}))}))}function Ur(e,t){var n=(t=t===a?" ":cr(t)).length;if(n<2)return n?Zn(t,e):t;var r=Zn(t,pt(e/ma(t)));return oa(t)?kr(ha(r),0,e).join(""):r.slice(0,e)}function Wr(e){return function(t,n,r){return r&&"number"!=typeof r&&bi(t,n,r)&&(n=r=a),t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,a,n){for(var r=-1,i=ya(pt((t-e)/(a||1)),0),o=ie(i);i--;)o[n?i:++r]=e,e+=a;return o}(t,n,r=r===a?t<n?1:-1:hs(r),e)}}function $r(e){return function(t,a){return"string"==typeof t&&"string"==typeof a||(t=fs(t),a=fs(a)),e(t,a)}}function Gr(e,t,n,r,i,o,c,u,d,m){var h=8&t;t|=h?s:l,4&(t&=~(h?l:s))||(t&=-4);var p=[e,t,i,h?o:a,h?c:a,h?a:o,h?a:c,u,d,m],g=n.apply(a,p);return ki(e)&&Pi(g,p),g.placeholder=r,Di(g,e,t)}function Kr(e){var t=Ee[e];return function(e,a){if(e=fs(e),(a=null==a?0:va(ps(a),292))&&Lt(e)){var n=(vs(e)+"e").split("e");return+((n=(vs(t(n[0]+"e"+(+n[1]+a)))+"e").split("e"))[0]+"e"+(+n[1]-a))}return t(e)}}var Zr=_a&&1/ua(new _a([,-0]))[1]==d?function(e){return new _a(e)}:ll;function Yr(e){return function(t){var a=pi(t);return a==A?sa(t):a==O?da(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qr(e,t,r,d,m,h,p,g){var f=2&t;if(!f&&"function"!=typeof e)throw new Pe(n);var y=d?d.length:0;if(y||(t&=-97,d=m=a),p=p===a?p:ya(ps(p),0),g=g===a?g:ps(g),y-=m?m.length:0,t&l){var v=d,b=m;d=m=a}var w=f?a:ii(e),k=[e,t,r,d,m,v,b,h,p,g];if(w&&function(e,t){var a=e[1],n=t[1],r=a|n,o=r<131,s=n==c&&8==a||n==c&&a==u&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==a;if(!o&&!s)return e;1&n&&(e[2]=t[2],r|=1&a?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?Cr(d,l,t[4]):l,e[4]=d?ca(e[3],i):t[4]}l=t[5],l&&(d=e[5],e[5]=d?Or(d,l,t[6]):l,e[6]=d?ca(e[5],i):t[6]);l=t[7],l&&(e[7]=l);n&c&&(e[8]=null==e[8]?t[8]:va(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(k,w),e=k[0],t=k[1],r=k[2],d=k[3],m=k[4],!(g=k[9]=k[9]===a?f?0:e.length:ya(k[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,n){var r=Rr(e);return function i(){for(var o=arguments.length,s=ie(o),l=o,c=si(i);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:ca(s,c);return(o-=u.length)<n?Gr(e,t,Br,i.placeholder,a,s,u,a,a,n-o):Et(this&&this!==ht&&this instanceof i?r:e,this,s)}}(e,t,g):t!=s&&33!=t||m.length?Br.apply(a,k):function(e,t,a,n){var r=1&t,i=Rr(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=n.length,u=ie(c+s),d=this&&this!==ht&&this instanceof t?i:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++o];return Et(d,r?a:this,u)}}(e,t,r,d);else var x=function(e,t,a){var n=1&t,r=Rr(e);return function t(){return(this&&this!==ht&&this instanceof t?r:e).apply(n?a:this,arguments)}}(e,t,r);return Di((w?er:Pi)(x,k),e,t)}function Xr(e,t,n,r){return e===a||Bo(e,De[n])&&!je.call(r,n)?t:e}function Jr(e,t,n,r,i,o){return es(e)&&es(t)&&(o.set(t,e),qn(e,t,a,Jr,o),o.delete(t)),e}function ei(e){return rs(e)?a:e}function ti(e,t,n,r,i,o){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var m=-1,h=!0,p=2&n?new Ga:a;for(o.set(e,t),o.set(t,e);++m<l;){var g=e[m],f=t[m];if(r)var y=s?r(f,g,m,t,e,o):r(g,f,m,e,t,o);if(y!==a){if(y)continue;h=!1;break}if(p){if(!Rt(t,(function(e,t){if(!ea(p,t)&&(g===e||i(g,e,n,r,o)))return p.push(t)}))){h=!1;break}}else if(g!==f&&!i(g,f,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function ai(e){return Mi(_i(e,a,Ui),e+"")}function ni(e){return Sn(e,Ms,mi)}function ri(e){return Sn(e,Ds,hi)}var ii=Pa?function(e){return Pa.get(e)}:ll;function oi(e){for(var t=e.name+"",a=Ta[t],n=je.call(Ta,t)?a.length:0;n--;){var r=a[n],i=r.func;if(null==i||i==e)return r.name}return t}function si(e){return(je.call(Fa,"placeholder")?Fa:e).placeholder}function li(){var e=Fa.iteratee||rl;return e=e===rl?jn:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var a=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?a["string"==typeof t?"string":"hash"]:a.map}function ui(e){for(var t=Ms(e),a=t.length;a--;){var n=t[a],r=e[n];t[a]=[n,r,Si(r)]}return t}function di(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Nn(n)?n:a}var mi=yt?function(e){return null==e?[]:(e=_e(e),Tt(yt(e),(function(t){return Ke.call(e,t)})))}:gl,hi=yt?function(e){for(var t=[];e;)Nt(t,mi(e)),e=$e(e);return t}:gl,pi=En;function gi(e,t,a){for(var n=-1,r=(t=br(t,e)).length,i=!1;++n<r;){var o=zi(t[n]);if(!(i=null!=e&&a(e,o)))break;e=e[o]}return i||++n!=r?i:!!(r=null==e?0:e.length)&&Jo(r)&&vi(o,r)&&(Uo(e)||Vo(e))}function fi(e){return"function"!=typeof e.constructor||Ai(e)?{}:Ba($e(e))}function yi(e){return Uo(e)||Vo(e)||!!(Ye&&e&&e[Ye])}function vi(e,t){var a=typeof e;return!!(t=null==t?m:t)&&("number"==a||"symbol"!=a&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,a){if(!es(a))return!1;var n=typeof t;return!!("number"==n?$o(a)&&vi(t,a.length):"string"==n&&t in a)&&Bo(a[t],e)}function wi(e,t){if(Uo(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!ls(e))||(ee.test(e)||!J.test(e)||null!=t&&e in _e(t))}function ki(e){var t=oi(e),a=Fa[t];if("function"!=typeof a||!(t in Va.prototype))return!1;if(e===a)return!0;var n=ii(a);return!!n&&e===n[0]}(Aa&&pi(new Aa(new ArrayBuffer(1)))!=I||Sa&&pi(new Sa)!=A||Ea&&pi(Ea.resolve())!=_||_a&&pi(new _a)!=O||Ca&&pi(new Ca)!=M)&&(pi=function(e){var t=En(e),n=t==E?e.constructor:a,r=n?Ri(n):"";if(r)switch(r){case Ma:return I;case Da:return A;case Ia:return _;case Na:return O;case ja:return M}return t});var xi=Ie?Qo:fl;function Ai(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Si(e){return e==e&&!es(e)}function Ei(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in _e(n)))}}function _i(e,t,n){return t=ya(t===a?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=ya(a.length-t,0),o=ie(i);++r<i;)o[r]=a[t+r];r=-1;for(var s=ie(t+1);++r<t;)s[r]=a[r];return s[t]=n(o),Et(e,this,s)}}function Ci(e,t){return t.length<2?e:An(e,nr(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ii(er),Ti=mt||function(e,t){return ht.setTimeout(e,t)},Mi=Ii(tr);function Di(e,t,a){var n=t+"";return Mi(e,function(e,t){var a=t.length;if(!a)return e;var n=a-1;return t[n]=(a>1?"& ":"")+t[n],t=t.join(a>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(g,(function(a){var n="_."+a[0];t&a[1]&&!Mt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(n),a)))}function Ii(e){var t=0,n=0;return function(){var r=ba(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=Kn(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var ji=function(e){var t=No(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,a,n,r){t.push(n?r.replace(de,"$1"):a||e)})),t}));function zi(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ri(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Li(e){if(e instanceof Va)return e.clone();var t=new qa(e.__wrapped__,e.__chain__);return t.__actions__=Pr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Yn((function(e,t){return Go(e)?dn(e,yn(t,1,Go,!0)):[]})),Bi=Yn((function(e,t){var n=Zi(t);return Go(n)&&(n=a),Go(e)?dn(e,yn(t,1,Go,!0),li(n,2)):[]})),Hi=Yn((function(e,t){var n=Zi(t);return Go(n)&&(n=a),Go(e)?dn(e,yn(t,1,Go,!0),a,n):[]}));function qi(e,t,a){var n=null==e?0:e.length;if(!n)return-1;var r=null==a?0:ps(a);return r<0&&(r=ya(n+r,0)),Bt(e,li(t,3),r)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=ps(n),i=n<0?ya(r+i,0):va(i,r-1)),Bt(e,li(t,3),i,!0)}function Ui(e){return(null==e?0:e.length)?yn(e,1):[]}function Wi(e){return e&&e.length?e[0]:a}var $i=Yn((function(e){var t=It(e,yr);return t.length&&t[0]===e[0]?Pn(t):[]})),Gi=Yn((function(e){var t=Zi(e),n=It(e,yr);return t===Zi(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Pn(n,li(t,2)):[]})),Ki=Yn((function(e){var t=Zi(e),n=It(e,yr);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Pn(n,a,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Yi=Yn(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?$n(e,t):e}var Xi=ai((function(e,t){var a=null==e?0:e.length,n=on(e,t);return Gn(e,It(t,(function(e){return vi(e,a)?+e:e})).sort(_r)),n}));function Ji(e){return null==e?e:xa.call(e)}var eo=Yn((function(e){return ur(yn(e,1,Go,!0))})),to=Yn((function(e){var t=Zi(e);return Go(t)&&(t=a),ur(yn(e,1,Go,!0),li(t,2))})),ao=Yn((function(e){var t=Zi(e);return t="function"==typeof t?t:a,ur(yn(e,1,Go,!0),a,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Go(e))return t=ya(e.length,t),!0})),Yt(t,(function(t){return It(e,$t(t))}))}function ro(e,t){if(!e||!e.length)return[];var n=no(e);return null==t?n:It(n,(function(e){return Et(t,a,e)}))}var io=Yn((function(e,t){return Go(e)?dn(e,t):[]})),oo=Yn((function(e){return gr(Tt(e,Go))})),so=Yn((function(e){var t=Zi(e);return Go(t)&&(t=a),gr(Tt(e,Go),li(t,2))})),lo=Yn((function(e){var t=Zi(e);return t="function"==typeof t?t:a,gr(Tt(e,Go),a,t)})),co=Yn(no);var uo=Yn((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ro(e,n)}));function mo(e){var t=Fa(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var po=ai((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Va&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:a}),new qa(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var go=Mr((function(e,t,a){je.call(e,a)?++e[a]:rn(e,a,1)}));var fo=Lr(qi),yo=Lr(Vi);function vo(e,t){return(Uo(e)?Ct:mn)(e,li(t,3))}function bo(e,t){return(Uo(e)?Ot:hn)(e,li(t,3))}var wo=Mr((function(e,t,a){je.call(e,a)?e[a].push(t):rn(e,a,[t])}));var ko=Yn((function(e,t,a){var n=-1,r="function"==typeof t,i=$o(e)?ie(e.length):[];return mn(e,(function(e){i[++n]=r?Et(t,e,a):Tn(e,t,a)})),i})),xo=Mr((function(e,t,a){rn(e,a,t)}));function Ao(e,t){return(Uo(e)?It:Fn)(e,li(t,3))}var So=Mr((function(e,t,a){e[a?0:1].push(t)}),(function(){return[[],[]]}));var Eo=Yn((function(e,t){if(null==e)return[];var a=t.length;return a>1&&bi(e,t[0],t[1])?t=[]:a>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Un(e,yn(t,1),[])})),_o=dt||function(){return ht.Date.now()};function Co(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Qr(e,c,a,a,a,a,t)}function Oo(e,t){var r;if("function"!=typeof t)throw new Pe(n);return e=ps(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Po=Yn((function(e,t,a){var n=1;if(a.length){var r=ca(a,si(Po));n|=s}return Qr(e,n,t,a,r)})),To=Yn((function(e,t,a){var n=3;if(a.length){var r=ca(a,si(To));n|=s}return Qr(t,n,e,a,r)}));function Mo(e,t,r){var i,o,s,l,c,u,d=0,m=!1,h=!1,p=!0;if("function"!=typeof e)throw new Pe(n);function g(t){var n=i,r=o;return i=o=a,d=t,l=e.apply(r,n)}function f(e){var n=e-u;return u===a||n>=t||n<0||h&&e-d>=s}function y(){var e=_o();if(f(e))return v(e);c=Ti(y,function(e){var a=t-(e-u);return h?va(a,s-(e-d)):a}(e))}function v(e){return c=a,p&&i?g(e):(i=o=a,l)}function b(){var e=_o(),n=f(e);if(i=arguments,o=this,u=e,n){if(c===a)return function(e){return d=e,c=Ti(y,t),m?g(e):l}(u);if(h)return xr(c),c=Ti(y,t),g(u)}return c===a&&(c=Ti(y,t)),l}return t=fs(t)||0,es(r)&&(m=!!r.leading,s=(h="maxWait"in r)?ya(fs(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),b.cancel=function(){c!==a&&xr(c),d=0,i=u=o=c=a},b.flush=function(){return c===a?l:v(_o())},b}var Do=Yn((function(e,t){return un(e,1,t)})),Io=Yn((function(e,t,a){return un(e,fs(t)||0,a)}));function No(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(n);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(No.Cache||$a),a}function jo(e){if("function"!=typeof e)throw new Pe(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}No.Cache=$a;var zo=wr((function(e,t){var a=(t=1==t.length&&Uo(t[0])?It(t[0],Xt(li())):It(yn(t,1),Xt(li()))).length;return Yn((function(n){for(var r=-1,i=va(n.length,a);++r<i;)n[r]=t[r].call(this,n[r]);return Et(e,this,n)}))})),Ro=Yn((function(e,t){var n=ca(t,si(Ro));return Qr(e,s,a,t,n)})),Lo=Yn((function(e,t){var n=ca(t,si(Lo));return Qr(e,l,a,t,n)})),Fo=ai((function(e,t){return Qr(e,u,a,a,a,t)}));function Bo(e,t){return e===t||e!=e&&t!=t}var Ho=$r(_n),qo=$r((function(e,t){return e>=t})),Vo=Mn(function(){return arguments}())?Mn:function(e){return ts(e)&&je.call(e,"callee")&&!Ke.call(e,"callee")},Uo=ie.isArray,Wo=bt?Xt(bt):function(e){return ts(e)&&En(e)==D};function $o(e){return null!=e&&Jo(e.length)&&!Qo(e)}function Go(e){return ts(e)&&$o(e)}var Ko=vt||fl,Zo=wt?Xt(wt):function(e){return ts(e)&&En(e)==b};function Yo(e){if(!ts(e))return!1;var t=En(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Qo(e){if(!es(e))return!1;var t=En(e);return t==k||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==ps(e)}function Jo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var as=kt?Xt(kt):function(e){return ts(e)&&pi(e)==A};function ns(e){return"number"==typeof e||ts(e)&&En(e)==S}function rs(e){if(!ts(e)||En(e)!=E)return!1;var t=$e(e);if(null===t)return!0;var a=je.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&Ne.call(a)==Fe}var is=xt?Xt(xt):function(e){return ts(e)&&En(e)==C};var os=At?Xt(At):function(e){return ts(e)&&pi(e)==O};function ss(e){return"string"==typeof e||!Uo(e)&&ts(e)&&En(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&En(e)==T}var cs=St?Xt(St):function(e){return ts(e)&&Jo(e.length)&&!!ot[En(e)]};var us=$r(Ln),ds=$r((function(e,t){return e<=t}));function ms(e){if(!e)return[];if($o(e))return ss(e)?ha(e):Pr(e);if(Qe&&e[Qe])return function(e){for(var t,a=[];!(t=e.next()).done;)a.push(t.value);return a}(e[Qe]());var t=pi(e);return(t==A?sa:t==O?ua:Bs)(e)}function hs(e){return e?(e=fs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=hs(e),a=t%1;return t==t?a?t-a:t:0}function gs(e){return e?sn(ps(e),0,p):0}function fs(e){if("number"==typeof e)return e;if(ls(e))return h;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var a=ge.test(e);return a||ye.test(e)?ut(e.slice(2),a?2:8):pe.test(e)?h:+e}function ys(e){return Tr(e,Ds(e))}function vs(e){return null==e?"":cr(e)}var bs=Dr((function(e,t){if(Ai(t)||$o(t))Tr(t,Ms(t),e);else for(var a in t)je.call(t,a)&&en(e,a,t[a])})),ws=Dr((function(e,t){Tr(t,Ds(t),e)})),ks=Dr((function(e,t,a,n){Tr(t,Ds(t),e,n)})),xs=Dr((function(e,t,a,n){Tr(t,Ms(t),e,n)})),As=ai(on);var Ss=Yn((function(e,t){e=_e(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=Ds(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===a||Bo(d,De[u])&&!je.call(e,u))&&(e[u]=o[u])}return e})),Es=Yn((function(e){return e.push(a,Jr),Et(Ns,a,e)}));function _s(e,t,n){var r=null==e?a:An(e,t);return r===a?n:r}function Cs(e,t){return null!=e&&gi(e,t,On)}var Os=Hr((function(e,t,a){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=a}),el(nl)),Ps=Hr((function(e,t,a){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),je.call(e,t)?e[t].push(a):e[t]=[a]}),li),Ts=Yn(Tn);function Ms(e){return $o(e)?Za(e):zn(e)}function Ds(e){return $o(e)?Za(e,!0):Rn(e)}var Is=Dr((function(e,t,a){qn(e,t,a)})),Ns=Dr((function(e,t,a,n){qn(e,t,a,n)})),js=ai((function(e,t){var a={};if(null==e)return a;var n=!1;t=It(t,(function(t){return t=br(t,e),n||(n=t.length>1),t})),Tr(e,ri(e),a),n&&(a=ln(a,7,ei));for(var r=t.length;r--;)dr(a,t[r]);return a}));var zs=ai((function(e,t){return null==e?{}:function(e,t){return Wn(e,t,(function(t,a){return Cs(e,a)}))}(e,t)}));function Rs(e,t){if(null==e)return{};var a=It(ri(e),(function(e){return[e]}));return t=li(t),Wn(e,a,(function(e,a){return t(e,a[0])}))}var Ls=Yr(Ms),Fs=Yr(Ds);function Bs(e){return null==e?[]:Jt(e,Ms(e))}var Hs=zr((function(e,t,a){return t=t.toLowerCase(),e+(a?qs(t):t)}));function qs(e){return Ys(vs(e).toLowerCase())}function Vs(e){return(e=vs(e))&&e.replace(be,na).replace(Je,"")}var Us=zr((function(e,t,a){return e+(a?"-":"")+t.toLowerCase()})),Ws=zr((function(e,t,a){return e+(a?" ":"")+t.toLowerCase()})),$s=jr("toLowerCase");var Gs=zr((function(e,t,a){return e+(a?"_":"")+t.toLowerCase()}));var Ks=zr((function(e,t,a){return e+(a?" ":"")+Ys(t)}));var Zs=zr((function(e,t,a){return e+(a?" ":"")+t.toUpperCase()})),Ys=jr("toUpperCase");function Qs(e,t,n){return e=vs(e),(t=n?a:t)===a?function(e){return nt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xs=Yn((function(e,t){try{return Et(e,a,t)}catch(e){return Yo(e)?e:new Ae(e)}})),Js=ai((function(e,t){return Ct(t,(function(t){t=zi(t),rn(e,t,Po(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Fr(),al=Fr(!0);function nl(e){return e}function rl(e){return jn("function"==typeof e?e:ln(e,1))}var il=Yn((function(e,t){return function(a){return Tn(a,e,t)}})),ol=Yn((function(e,t){return function(a){return Tn(e,a,t)}}));function sl(e,t,a){var n=Ms(t),r=xn(t,n);null!=a||es(t)&&(r.length||!n.length)||(a=t,t=e,e=this,r=xn(t,Ms(t)));var i=!(es(a)&&"chain"in a&&!a.chain),o=Qo(e);return Ct(r,(function(a){var n=t[a];e[a]=n,o&&(e.prototype[a]=function(){var t=this.__chain__;if(i||t){var a=e(this.__wrapped__);return(a.__actions__=Pr(this.__actions__)).push({func:n,args:arguments,thisArg:e}),a.__chain__=t,a}return n.apply(e,Nt([this.value()],arguments))})})),e}function ll(){}var cl=Vr(It),ul=Vr(Pt),dl=Vr(Rt);function ml(e){return wi(e)?$t(zi(e)):function(e){return function(t){return An(t,e)}}(e)}var hl=Wr(),pl=Wr(!0);function gl(){return[]}function fl(){return!1}var yl=qr((function(e,t){return e+t}),0),vl=Kr("ceil"),bl=qr((function(e,t){return e/t}),1),wl=Kr("floor");var kl=qr((function(e,t){return e*t}),1),xl=Kr("round"),Al=qr((function(e,t){return e-t}),0);return Fa.after=function(e,t){if("function"!=typeof t)throw new Pe(n);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Fa.ary=Co,Fa.assign=bs,Fa.assignIn=ws,Fa.assignInWith=ks,Fa.assignWith=xs,Fa.at=As,Fa.before=Oo,Fa.bind=Po,Fa.bindAll=Js,Fa.bindKey=To,Fa.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Uo(e)?e:[e]},Fa.chain=mo,Fa.chunk=function(e,t,n){t=(n?bi(e,t,n):t===a)?1:ya(ps(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,s=ie(pt(r/t));i<r;)s[o++]=nr(e,i,i+=t);return s},Fa.compact=function(e){for(var t=-1,a=null==e?0:e.length,n=0,r=[];++t<a;){var i=e[t];i&&(r[n++]=i)}return r},Fa.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),a=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Nt(Uo(a)?Pr(a):[a],yn(t,1))},Fa.cond=function(e){var t=null==e?0:e.length,a=li();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Pe(n);return[a(e[0]),e[1]]})):[],Yn((function(a){for(var n=-1;++n<t;){var r=e[n];if(Et(r[0],this,a))return Et(r[1],this,a)}}))},Fa.conforms=function(e){return function(e){var t=Ms(e);return function(a){return cn(a,e,t)}}(ln(e,1))},Fa.constant=el,Fa.countBy=go,Fa.create=function(e,t){var a=Ba(e);return null==t?a:nn(a,t)},Fa.curry=function e(t,n,r){var i=Qr(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Fa.curryRight=function e(t,n,r){var i=Qr(t,o,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Fa.debounce=Mo,Fa.defaults=Ss,Fa.defaultsDeep=Es,Fa.defer=Do,Fa.delay=Io,Fa.difference=Fi,Fa.differenceBy=Bi,Fa.differenceWith=Hi,Fa.drop=function(e,t,n){var r=null==e?0:e.length;return r?nr(e,(t=n||t===a?1:ps(t))<0?0:t,r):[]},Fa.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?nr(e,0,(t=r-(t=n||t===a?1:ps(t)))<0?0:t):[]},Fa.dropRightWhile=function(e,t){return e&&e.length?hr(e,li(t,3),!0,!0):[]},Fa.dropWhile=function(e,t){return e&&e.length?hr(e,li(t,3),!0):[]},Fa.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ps(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fa.filter=function(e,t){return(Uo(e)?Tt:fn)(e,li(t,3))},Fa.flatMap=function(e,t){return yn(Ao(e,t),1)},Fa.flatMapDeep=function(e,t){return yn(Ao(e,t),d)},Fa.flatMapDepth=function(e,t,n){return n=n===a?1:ps(n),yn(Ao(e,t),n)},Fa.flatten=Ui,Fa.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,d):[]},Fa.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===a?1:ps(t)):[]},Fa.flip=function(e){return Qr(e,512)},Fa.flow=tl,Fa.flowRight=al,Fa.fromPairs=function(e){for(var t=-1,a=null==e?0:e.length,n={};++t<a;){var r=e[t];n[r[0]]=r[1]}return n},Fa.functions=function(e){return null==e?[]:xn(e,Ms(e))},Fa.functionsIn=function(e){return null==e?[]:xn(e,Ds(e))},Fa.groupBy=wo,Fa.initial=function(e){return(null==e?0:e.length)?nr(e,0,-1):[]},Fa.intersection=$i,Fa.intersectionBy=Gi,Fa.intersectionWith=Ki,Fa.invert=Os,Fa.invertBy=Ps,Fa.invokeMap=ko,Fa.iteratee=rl,Fa.keyBy=xo,Fa.keys=Ms,Fa.keysIn=Ds,Fa.map=Ao,Fa.mapKeys=function(e,t){var a={};return t=li(t,3),wn(e,(function(e,n,r){rn(a,t(e,n,r),e)})),a},Fa.mapValues=function(e,t){var a={};return t=li(t,3),wn(e,(function(e,n,r){rn(a,n,t(e,n,r))})),a},Fa.matches=function(e){return Bn(ln(e,1))},Fa.matchesProperty=function(e,t){return Hn(e,ln(t,1))},Fa.memoize=No,Fa.merge=Is,Fa.mergeWith=Ns,Fa.method=il,Fa.methodOf=ol,Fa.mixin=sl,Fa.negate=jo,Fa.nthArg=function(e){return e=ps(e),Yn((function(t){return Vn(t,e)}))},Fa.omit=js,Fa.omitBy=function(e,t){return Rs(e,jo(li(t)))},Fa.once=function(e){return Oo(2,e)},Fa.orderBy=function(e,t,n,r){return null==e?[]:(Uo(t)||(t=null==t?[]:[t]),Uo(n=r?a:n)||(n=null==n?[]:[n]),Un(e,t,n))},Fa.over=cl,Fa.overArgs=zo,Fa.overEvery=ul,Fa.overSome=dl,Fa.partial=Ro,Fa.partialRight=Lo,Fa.partition=So,Fa.pick=zs,Fa.pickBy=Rs,Fa.property=ml,Fa.propertyOf=function(e){return function(t){return null==e?a:An(e,t)}},Fa.pull=Yi,Fa.pullAll=Qi,Fa.pullAllBy=function(e,t,a){return e&&e.length&&t&&t.length?$n(e,t,li(a,2)):e},Fa.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$n(e,t,a,n):e},Fa.pullAt=Xi,Fa.range=hl,Fa.rangeRight=pl,Fa.rearg=Fo,Fa.reject=function(e,t){return(Uo(e)?Tt:fn)(e,jo(li(t,3)))},Fa.remove=function(e,t){var a=[];if(!e||!e.length)return a;var n=-1,r=[],i=e.length;for(t=li(t,3);++n<i;){var o=e[n];t(o,n,e)&&(a.push(o),r.push(n))}return Gn(e,r),a},Fa.rest=function(e,t){if("function"!=typeof e)throw new Pe(n);return Yn(e,t=t===a?t:ps(t))},Fa.reverse=Ji,Fa.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:ps(t),(Uo(e)?Qa:Xn)(e,t)},Fa.set=function(e,t,a){return null==e?e:Jn(e,t,a)},Fa.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Jn(e,t,n,r)},Fa.shuffle=function(e){return(Uo(e)?Xa:ar)(e)},Fa.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===a?r:ps(n)),nr(e,t,n)):[]},Fa.sortBy=Eo,Fa.sortedUniq=function(e){return e&&e.length?sr(e):[]},Fa.sortedUniqBy=function(e,t){return e&&e.length?sr(e,li(t,2)):[]},Fa.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=a),(n=n===a?p:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=cr(t))&&oa(e)?kr(ha(e),0,n):e.split(t,n):[]},Fa.spread=function(e,t){if("function"!=typeof e)throw new Pe(n);return t=null==t?0:ya(ps(t),0),Yn((function(a){var n=a[t],r=kr(a,0,t);return n&&Nt(r,n),Et(e,this,r)}))},Fa.tail=function(e){var t=null==e?0:e.length;return t?nr(e,1,t):[]},Fa.take=function(e,t,n){return e&&e.length?nr(e,0,(t=n||t===a?1:ps(t))<0?0:t):[]},Fa.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?nr(e,(t=r-(t=n||t===a?1:ps(t)))<0?0:t,r):[]},Fa.takeRightWhile=function(e,t){return e&&e.length?hr(e,li(t,3),!1,!0):[]},Fa.takeWhile=function(e,t){return e&&e.length?hr(e,li(t,3)):[]},Fa.tap=function(e,t){return t(e),e},Fa.throttle=function(e,t,a){var r=!0,i=!0;if("function"!=typeof e)throw new Pe(n);return es(a)&&(r="leading"in a?!!a.leading:r,i="trailing"in a?!!a.trailing:i),Mo(e,t,{leading:r,maxWait:t,trailing:i})},Fa.thru=ho,Fa.toArray=ms,Fa.toPairs=Ls,Fa.toPairsIn=Fs,Fa.toPath=function(e){return Uo(e)?It(e,zi):ls(e)?[e]:Pr(ji(vs(e)))},Fa.toPlainObject=ys,Fa.transform=function(e,t,a){var n=Uo(e),r=n||Ko(e)||cs(e);if(t=li(t,4),null==a){var i=e&&e.constructor;a=r?n?new i:[]:es(e)&&Qo(i)?Ba($e(e)):{}}return(r?Ct:wn)(e,(function(e,n,r){return t(a,e,n,r)})),a},Fa.unary=function(e){return Co(e,1)},Fa.union=eo,Fa.unionBy=to,Fa.unionWith=ao,Fa.uniq=function(e){return e&&e.length?ur(e):[]},Fa.uniqBy=function(e,t){return e&&e.length?ur(e,li(t,2)):[]},Fa.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?ur(e,a,t):[]},Fa.unset=function(e,t){return null==e||dr(e,t)},Fa.unzip=no,Fa.unzipWith=ro,Fa.update=function(e,t,a){return null==e?e:mr(e,t,vr(a))},Fa.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:mr(e,t,vr(n),r)},Fa.values=Bs,Fa.valuesIn=function(e){return null==e?[]:Jt(e,Ds(e))},Fa.without=io,Fa.words=Qs,Fa.wrap=function(e,t){return Ro(vr(t),e)},Fa.xor=oo,Fa.xorBy=so,Fa.xorWith=lo,Fa.zip=co,Fa.zipObject=function(e,t){return fr(e||[],t||[],en)},Fa.zipObjectDeep=function(e,t){return fr(e||[],t||[],Jn)},Fa.zipWith=uo,Fa.entries=Ls,Fa.entriesIn=Fs,Fa.extend=ws,Fa.extendWith=ks,sl(Fa,Fa),Fa.add=yl,Fa.attempt=Xs,Fa.camelCase=Hs,Fa.capitalize=qs,Fa.ceil=vl,Fa.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=fs(n))==n?n:0),t!==a&&(t=(t=fs(t))==t?t:0),sn(fs(e),t,n)},Fa.clone=function(e){return ln(e,4)},Fa.cloneDeep=function(e){return ln(e,5)},Fa.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:a)},Fa.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:a)},Fa.conformsTo=function(e,t){return null==t||cn(e,t,Ms(t))},Fa.deburr=Vs,Fa.defaultTo=function(e,t){return null==e||e!=e?t:e},Fa.divide=bl,Fa.endsWith=function(e,t,n){e=vs(e),t=cr(t);var r=e.length,i=n=n===a?r:sn(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fa.eq=Bo,Fa.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(G,ra):e},Fa.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(ae,"\\$&"):e},Fa.every=function(e,t,n){var r=Uo(e)?Pt:pn;return n&&bi(e,t,n)&&(t=a),r(e,li(t,3))},Fa.find=fo,Fa.findIndex=qi,Fa.findKey=function(e,t){return Ft(e,li(t,3),wn)},Fa.findLast=yo,Fa.findLastIndex=Vi,Fa.findLastKey=function(e,t){return Ft(e,li(t,3),kn)},Fa.floor=wl,Fa.forEach=vo,Fa.forEachRight=bo,Fa.forIn=function(e,t){return null==e?e:vn(e,li(t,3),Ds)},Fa.forInRight=function(e,t){return null==e?e:bn(e,li(t,3),Ds)},Fa.forOwn=function(e,t){return e&&wn(e,li(t,3))},Fa.forOwnRight=function(e,t){return e&&kn(e,li(t,3))},Fa.get=_s,Fa.gt=Ho,Fa.gte=qo,Fa.has=function(e,t){return null!=e&&gi(e,t,Cn)},Fa.hasIn=Cs,Fa.head=Wi,Fa.identity=nl,Fa.includes=function(e,t,a,n){e=$o(e)?e:Bs(e),a=a&&!n?ps(a):0;var r=e.length;return a<0&&(a=ya(r+a,0)),ss(e)?a<=r&&e.indexOf(t,a)>-1:!!r&&Ht(e,t,a)>-1},Fa.indexOf=function(e,t,a){var n=null==e?0:e.length;if(!n)return-1;var r=null==a?0:ps(a);return r<0&&(r=ya(n+r,0)),Ht(e,t,r)},Fa.inRange=function(e,t,n){return t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,a){return e>=va(t,a)&&e<ya(t,a)}(e=fs(e),t,n)},Fa.invoke=Ts,Fa.isArguments=Vo,Fa.isArray=Uo,Fa.isArrayBuffer=Wo,Fa.isArrayLike=$o,Fa.isArrayLikeObject=Go,Fa.isBoolean=function(e){return!0===e||!1===e||ts(e)&&En(e)==v},Fa.isBuffer=Ko,Fa.isDate=Zo,Fa.isElement=function(e){return ts(e)&&1===e.nodeType&&!rs(e)},Fa.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(Uo(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||cs(e)||Vo(e)))return!e.length;var t=pi(e);if(t==A||t==O)return!e.size;if(Ai(e))return!zn(e).length;for(var a in e)if(je.call(e,a))return!1;return!0},Fa.isEqual=function(e,t){return Dn(e,t)},Fa.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Dn(e,t,a,n):!!r},Fa.isError=Yo,Fa.isFinite=function(e){return"number"==typeof e&&Lt(e)},Fa.isFunction=Qo,Fa.isInteger=Xo,Fa.isLength=Jo,Fa.isMap=as,Fa.isMatch=function(e,t){return e===t||In(e,t,ui(t))},Fa.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,In(e,t,ui(t),n)},Fa.isNaN=function(e){return ns(e)&&e!=+e},Fa.isNative=function(e){if(xi(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nn(e)},Fa.isNil=function(e){return null==e},Fa.isNull=function(e){return null===e},Fa.isNumber=ns,Fa.isObject=es,Fa.isObjectLike=ts,Fa.isPlainObject=rs,Fa.isRegExp=is,Fa.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=m},Fa.isSet=os,Fa.isString=ss,Fa.isSymbol=ls,Fa.isTypedArray=cs,Fa.isUndefined=function(e){return e===a},Fa.isWeakMap=function(e){return ts(e)&&pi(e)==M},Fa.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==En(e)},Fa.join=function(e,t){return null==e?"":qt.call(e,t)},Fa.kebabCase=Us,Fa.last=Zi,Fa.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=ps(n))<0?ya(r+i,0):va(i,r-1)),t==t?function(e,t,a){for(var n=a+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Bt(e,Ut,i,!0)},Fa.lowerCase=Ws,Fa.lowerFirst=$s,Fa.lt=us,Fa.lte=ds,Fa.max=function(e){return e&&e.length?gn(e,nl,_n):a},Fa.maxBy=function(e,t){return e&&e.length?gn(e,li(t,2),_n):a},Fa.mean=function(e){return Wt(e,nl)},Fa.meanBy=function(e,t){return Wt(e,li(t,2))},Fa.min=function(e){return e&&e.length?gn(e,nl,Ln):a},Fa.minBy=function(e,t){return e&&e.length?gn(e,li(t,2),Ln):a},Fa.stubArray=gl,Fa.stubFalse=fl,Fa.stubObject=function(){return{}},Fa.stubString=function(){return""},Fa.stubTrue=function(){return!0},Fa.multiply=kl,Fa.nth=function(e,t){return e&&e.length?Vn(e,ps(t)):a},Fa.noConflict=function(){return ht._===this&&(ht._=Be),this},Fa.noop=ll,Fa.now=_o,Fa.pad=function(e,t,a){e=vs(e);var n=(t=ps(t))?ma(e):0;if(!t||n>=t)return e;var r=(t-n)/2;return Ur(gt(r),a)+e+Ur(pt(r),a)},Fa.padEnd=function(e,t,a){e=vs(e);var n=(t=ps(t))?ma(e):0;return t&&n<t?e+Ur(t-n,a):e},Fa.padStart=function(e,t,a){e=vs(e);var n=(t=ps(t))?ma(e):0;return t&&n<t?Ur(t-n,a)+e:e},Fa.parseInt=function(e,t,a){return a||null==t?t=0:t&&(t=+t),wa(vs(e).replace(re,""),t||0)},Fa.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=hs(e),t===a?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ka();return va(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Kn(e,t)},Fa.reduce=function(e,t,a){var n=Uo(e)?jt:Kt,r=arguments.length<3;return n(e,li(t,4),a,r,mn)},Fa.reduceRight=function(e,t,a){var n=Uo(e)?zt:Kt,r=arguments.length<3;return n(e,li(t,4),a,r,hn)},Fa.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:ps(t),Zn(vs(e),t)},Fa.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fa.result=function(e,t,n){var r=-1,i=(t=br(t,e)).length;for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[zi(t[r])];o===a&&(r=i,o=n),e=Qo(o)?o.call(e):o}return e},Fa.round=xl,Fa.runInContext=e,Fa.sample=function(e){return(Uo(e)?Ya:Qn)(e)},Fa.size=function(e){if(null==e)return 0;if($o(e))return ss(e)?ma(e):e.length;var t=pi(e);return t==A||t==O?e.size:zn(e).length},Fa.snakeCase=Gs,Fa.some=function(e,t,n){var r=Uo(e)?Rt:rr;return n&&bi(e,t,n)&&(t=a),r(e,li(t,3))},Fa.sortedIndex=function(e,t){return ir(e,t)},Fa.sortedIndexBy=function(e,t,a){return or(e,t,li(a,2))},Fa.sortedIndexOf=function(e,t){var a=null==e?0:e.length;if(a){var n=ir(e,t);if(n<a&&Bo(e[n],t))return n}return-1},Fa.sortedLastIndex=function(e,t){return ir(e,t,!0)},Fa.sortedLastIndexBy=function(e,t,a){return or(e,t,li(a,2),!0)},Fa.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var a=ir(e,t,!0)-1;if(Bo(e[a],t))return a}return-1},Fa.startCase=Ks,Fa.startsWith=function(e,t,a){return e=vs(e),a=null==a?0:sn(ps(a),0,e.length),t=cr(t),e.slice(a,a+t.length)==t},Fa.subtract=Al,Fa.sum=function(e){return e&&e.length?Zt(e,nl):0},Fa.sumBy=function(e,t){return e&&e.length?Zt(e,li(t,2)):0},Fa.template=function(e,t,n){var r=Fa.templateSettings;n&&bi(e,t,n)&&(t=a),e=vs(e),t=ks({},t,r,Xr);var i,o,s=ks({},t.imports,r.imports,Xr),l=Ms(s),c=Jt(s,l),u=0,d=t.interpolate||we,m="__p += '",h=Ce((t.escape||we).source+"|"+d.source+"|"+(d===X?me:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(h,(function(t,a,n,r,s,l){return n||(n=r),m+=e.slice(u,l).replace(ke,ia),a&&(i=!0,m+="' +\n__e("+a+") +\n'"),s&&(o=!0,m+="';\n"+s+";\n__p += '"),n&&(m+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),m+="';\n";var g=je.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new Ae("Invalid `variable` option passed into `_.template`")}else m="with (obj) {\n"+m+"\n}\n";m=(o?m.replace(V,""):m).replace(U,"$1").replace(W,"$1;"),m="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var f=Xs((function(){return Se(l,p+"return "+m).apply(a,c)}));if(f.source=m,Yo(f))throw f;return f},Fa.times=function(e,t){if((e=ps(e))<1||e>m)return[];var a=p,n=va(e,p);t=li(t),e-=p;for(var r=Yt(n,t);++a<e;)t(a);return r},Fa.toFinite=hs,Fa.toInteger=ps,Fa.toLength=gs,Fa.toLower=function(e){return vs(e).toLowerCase()},Fa.toNumber=fs,Fa.toSafeInteger=function(e){return e?sn(ps(e),-9007199254740991,m):0===e?e:0},Fa.toString=vs,Fa.toUpper=function(e){return vs(e).toUpperCase()},Fa.trim=function(e,t,n){if((e=vs(e))&&(n||t===a))return Qt(e);if(!e||!(t=cr(t)))return e;var r=ha(e),i=ha(t);return kr(r,ta(r,i),aa(r,i)+1).join("")},Fa.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===a))return e.slice(0,pa(e)+1);if(!e||!(t=cr(t)))return e;var r=ha(e);return kr(r,0,aa(r,ha(t))+1).join("")},Fa.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===a))return e.replace(re,"");if(!e||!(t=cr(t)))return e;var r=ha(e);return kr(r,ta(r,ha(t))).join("")},Fa.truncate=function(e,t){var n=30,r="...";if(es(t)){var i="separator"in t?t.separator:i;n="length"in t?ps(t.length):n,r="omission"in t?cr(t.omission):r}var o=(e=vs(e)).length;if(oa(e)){var s=ha(e);o=s.length}if(n>=o)return e;var l=n-ma(r);if(l<1)return r;var c=s?kr(s,0,l).join(""):e.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),is(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Ce(i.source,vs(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var m=u.index;c=c.slice(0,m===a?l:m)}}else if(e.indexOf(cr(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Fa.unescape=function(e){return(e=vs(e))&&K.test(e)?e.replace($,ga):e},Fa.uniqueId=function(e){var t=++ze;return vs(e)+t},Fa.upperCase=Zs,Fa.upperFirst=Ys,Fa.each=vo,Fa.eachRight=bo,Fa.first=Wi,sl(Fa,function(){var e={};return wn(Fa,(function(t,a){je.call(Fa.prototype,a)||(e[a]=t)})),e}(),{chain:!1}),Fa.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fa[e].placeholder=Fa})),Ct(["drop","take"],(function(e,t){Va.prototype[e]=function(n){n=n===a?1:ya(ps(n),0);var r=this.__filtered__&&!t?new Va(this):this.clone();return r.__filtered__?r.__takeCount__=va(n,r.__takeCount__):r.__views__.push({size:va(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Va.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var a=t+1,n=1==a||3==a;Va.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:a}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var a="take"+(t?"Right":"");Va.prototype[e]=function(){return this[a](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var a="drop"+(t?"":"Right");Va.prototype[e]=function(){return this.__filtered__?new Va(this):this[a](1)}})),Va.prototype.compact=function(){return this.filter(nl)},Va.prototype.find=function(e){return this.filter(e).head()},Va.prototype.findLast=function(e){return this.reverse().find(e)},Va.prototype.invokeMap=Yn((function(e,t){return"function"==typeof e?new Va(this):this.map((function(a){return Tn(a,e,t)}))})),Va.prototype.reject=function(e){return this.filter(jo(li(e)))},Va.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Va(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Va.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Va.prototype.toArray=function(){return this.take(p)},wn(Va.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fa[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Fa.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Va,c=s[0],u=l||Uo(t),d=function(e){var t=i.apply(Fa,Nt([e],s));return r&&m?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var m=this.__chain__,h=!!this.__actions__.length,p=o&&!m,g=l&&!h;if(!o&&u){t=g?t:new Va(this);var f=e.apply(t,s);return f.__actions__.push({func:ho,args:[d],thisArg:a}),new qa(f,m)}return p&&g?e.apply(this,s):(f=this.thru(d),p?r?f.value()[0]:f.value():f)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Fa.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var r=this.value();return t.apply(Uo(r)?r:[],e)}return this[a]((function(a){return t.apply(Uo(a)?a:[],e)}))}})),wn(Va.prototype,(function(e,t){var a=Fa[t];if(a){var n=a.name+"";je.call(Ta,n)||(Ta[n]=[]),Ta[n].push({name:t,func:a})}})),Ta[Br(a,2).name]=[{name:"wrapper",func:a}],Va.prototype.clone=function(){var e=new Va(this.__wrapped__);return e.__actions__=Pr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pr(this.__views__),e},Va.prototype.reverse=function(){if(this.__filtered__){var e=new Va(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Va.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,a=Uo(e),n=t<0,r=a?e.length:0,i=function(e,t,a){var n=-1,r=a.length;for(;++n<r;){var i=a[n],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=va(t,e+o);break;case"takeRight":e=ya(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=i.start,s=i.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,d=u.length,m=0,h=va(l,this.__takeCount__);if(!a||!n&&r==l&&h==l)return pr(e,this.__actions__);var p=[];e:for(;l--&&m<h;){for(var g=-1,f=e[c+=t];++g<d;){var y=u[g],v=y.iteratee,b=y.type,w=v(f);if(2==b)f=w;else if(!w){if(1==b)continue e;break e}}p[m++]=f}return p},Fa.prototype.at=po,Fa.prototype.chain=function(){return mo(this)},Fa.prototype.commit=function(){return new qa(this.value(),this.__chain__)},Fa.prototype.next=function(){this.__values__===a&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Fa.prototype.plant=function(e){for(var t,n=this;n instanceof Ha;){var r=Li(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fa.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Va){var t=e;return this.__actions__.length&&(t=new Va(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Ji],thisArg:a}),new qa(t,this.__chain__)}return this.thru(Ji)},Fa.prototype.toJSON=Fa.prototype.valueOf=Fa.prototype.value=function(){return pr(this.__wrapped__,this.__actions__)},Fa.prototype.first=Fa.prototype.head,Qe&&(Fa.prototype[Qe]=function(){return this}),Fa}();gt?((gt.exports=fa)._=fa,pt._=fa):ht._=fa}).call(qt)}(rfe,rfe.exports);var ife=rfe.exports;function ofe(e){const[a,n]=c(),r=i(nM),o=e.date??r?.intervalStart??gn(new Date),s=t.useRef(null),[u,d]=c(null),[m,h]=c("bottom");if(l((()=>{const t=()=>{let t=s.current?.clientWidth;if(!t)return;const a=function(){if("bottom"===e.chartPosition||"right"===e.chartPosition)return e.chartPosition;if(!e.chartPosition||"responsive"!==e.chartPosition)return"bottom";let t=s.current?.clientWidth;return t?t<150?"bottom":"right":"bottom"}();"right"===a&&(t/=2),h(a),d(Math.floor(t/24))},a=ife.debounce(t,1e3);return window.addEventListener("resize",a),t(),()=>{window.removeEventListener("resize",a)}}),[e.chartPosition]),td((function(){null!==u&&("noTrend"===e.previewState?n({[Ri(o)]:{value:5e3}}):"loading"!==e.previewState&&ad(on(o,{days:-1*u}),o,[e.dataType],!!e.previewState).then((t=>{n(t[e.dataType.dailyDataType])})).catch((e=>{console.error("Error loading data",e),n(void 0)})))}),["externalAccountSyncComplete"],[u,e.dataType,e.previewState,e.date,r?.intervalStart]),!u)return t.createElement("div",{ref:s});const p=!!a&&Object.values(a).some((e=>e.value>0));if(e.hideIfNoRecentData&&!p)return null;const g=!!a&&Object.values(a).some((e=>e.value>0&&!!e.threshold)),f=["mdhui-micro-trend"];return"right"===m&&f.push("mdhui-micro-trend-chart-right"),e.indicator&&f.push("mdhui-micro-trend-has-indicator"),e.onClick?t.createElement("div",{ref:e.innerRef,key:e.dataType.dailyDataType},t.createElement(k,{className:f.join(" "),onClick:e.onClick},t.createElement("div",{ref:s},t.createElement(sfe,{barsToDisplay:u,date:o,results:a,dataType:e.dataType,widthReferenceRef:s,showChart:g,hasRecentData:p,indicator:e.indicator})))):t.createElement("div",{ref:e.innerRef,className:f.join(" "),key:e.dataType.dailyDataType},t.createElement("div",{ref:s},t.createElement(sfe,{barsToDisplay:u,date:o,results:a,dataType:e.dataType,widthReferenceRef:s,showChart:g,hasRecentData:p,indicator:e.indicator})))}function sfe(e){const a=i(Ua),n=eu(e.dataType.dailyDataType),r=e.dataType.formatter??n.formatter,o=Ri(e.date),s=e.results?.[o]?.value??0,l=0===s,c=l?"--":r(s),u=[];for(var d=-1*e.barsToDisplay;d<=0;d++){const t=Ri(on(e.date,{days:d})),a=e.results?.[t],n=a?.value??0,r=a?.threshold??0,i=a?.relativePercent??0;u.push({barFillPercent:i,color:(n>r?e.dataType.overThresholdColor??e.dataType.color:e.dataType.color)||"var(--mdhui-color-primary)",opacity:0===d?1:.4})}let m=De(a.colorScheme,e.dataType.color)||"var(--mdhui-color-primary)";return l&&(m="var(--mdhui-text-color-3)"),t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-micro-trend-label",style:{color:m}},e.dataType.icon??eu(e.dataType.dailyDataType).icon," ",e.dataType.label??eo(eu(e.dataType.dailyDataType).labelKey)),t.createElement("div",{style:{color:l?"var(--mdhui-text-color-3)":void 0},className:"mdhui-micro-trend-value"},!e.results&&t.createElement(Me,{icon:H,spin:!0,style:{fontSize:".7em"}}),e.results&&c),t.createElement("div",{className:"mdhui-micro-trend-chart"},e.hasRecentData&&e.showChart&&e.results&&t.createElement(oye,{variant:"rounded",gap:4,style:{height:"100%"},bars:u,averageFillPercent:.5})),e.indicator&&t.createElement("div",{className:"mdhui-micro-trend-indicator"},e.indicator))}w(".mdhui-most-recent-notification .mdhui-notification {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-most-recent-notification .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var lfe=[{id:"1",identifier:"SurveyReminder-Thanks",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:on(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder-Fitbit",sentDate:on(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder-Fitbit2",sentDate:on(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1},{id:"6",identifier:"EmailSurveyReminder",sentDate:on(new Date,{days:-3}).toISOString(),statusCode:"Succeeded",type:"Email",content:{subject:"Subject - Email reminder to complete daily survey",body:"Complete your daily survey to earn rewards!"},recipients:[],contentVersion:1},{id:"7",identifier:"SMSSurveyReminder",sentDate:on(new Date,{days:-4}).toISOString(),statusCode:"Succeeded",type:"Sms",content:{title:"SMS Title - complete daily survey",body:"Visit MDH to complete your daily survey"},recipients:[],contentVersion:1}];function cfe(e){const[a,n]=c(null),[r,i]=c(!0);async function o(){if(i(!0),"loading"!==e.previewState)if("loaded with data"!==e.previewState){if("loaded with no data"===e.previewState)return n(null),void i(!1);var t={limit:1,statusCode:"Succeeded"};if(e.hideAfterHours){var a=on(new Date,{hours:-1*e.hideAfterHours});t.sentAfter=a.toISOString()}if(e.notificationType&&(t.type=e.notificationType),e.notificationIdentifierRegex){const a=await async function(e,t){let a=1;const n=100,r=100,i=20;do{a++,e.limit=Math.min(r,a*i);const n=await b.queryNotifications(e),o=n.notifications.find((e=>e.identifier.match(t)));if(o)return o;if(!n.nextPageID)return null;e.pageID=n.nextPageID}while(a<=n);return null}(t,e.notificationIdentifierRegex);i(!1),a&&n(a)}else{const e=await b.queryNotifications(t);i(!1),e.notifications.length>0&&n(e.notifications[0])}}else{const t=lfe.filter((t=>!e.notificationType||t.type===e.notificationType)),a=t.filter((t=>!e.notificationIdentifierRegex||t.identifier.match(e.notificationIdentifierRegex))),r=a.filter((t=>!e.hideAfterHours||new Date(t.sentDate)>on(new Date,{hours:-1*e.hideAfterHours})));if(r.length>0){const e=r[0];n(e)}else n(null);i(!1)}else n(null)}return td((()=>{!function(e){if(!e)return!0;try{return!(e.source.length>100||(new RegExp(e.source),0))}catch(e){return!1}}(e.notificationIdentifierRegex)?console.error("Invalid regex pattern"):o().catch(console.error)}),[],[e.previewState,e.notificationType,e.notificationIdentifierRegex,e.hideAfterHours]),t.createElement("div",{ref:e.innerRef,className:"mdhui-most-recent-notification"},r&&t.createElement(ZA,null),!r&&t.createElement("div",null,t.createElement(nye,{notification:a}),e.onViewMore&&t.createElement($a,{subtitle:eo("all-notifications"),onClick:e.onViewMore})))}var ufe=[{id:"1",identifier:"SurveyReminder",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:on(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder",sentDate:on(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder",sentDate:on(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1},{id:"6",identifier:"EmailSurveyReminder",sentDate:on(new Date,{days:-3}).toISOString(),statusCode:"Succeeded",type:"Email",content:{subject:"Subject - Email reminder to complete daily survey",body:"Complete your daily survey to earn rewards!"},recipients:[],contentVersion:1},{id:"7",identifier:"SMSSurveyReminder",sentDate:on(new Date,{days:-4}).toISOString(),statusCode:"Succeeded",type:"Sms",content:{title:"SMS Title - complete daily survey",body:"Visit MDH to complete your daily survey"},recipients:[],contentVersion:1}];function dfe(e){const[a,n]=c(!0),[r,i]=c(),[o,s]=c([]),l=t=>{if(n(!0),i(void 0),"loading"===e.previewState)return;if("loaded with data"===e.previewState){const t=ufe.filter((t=>!e.notificationType||t.type===e.notificationType)),a=t.filter((t=>!e.notificationIdentifierRegex||t.identifier.match(e.notificationIdentifierRegex))),r=a.slice(0,e.displayLimit);return s(r),void n(!1)}if("loaded with no data"===e.previewState)return s([]),void n(!1);const a={statusCode:"Succeeded",limit:10};e.notificationType&&(a.type=e.notificationType),r&&(a.pageID=r),b.queryNotifications(a).then((a=>{const r=a.notifications.filter((t=>!e.notificationIdentifierRegex||t.identifier.match(e.notificationIdentifierRegex))),o=(t??[]).concat(r).slice(0,e.displayLimit);s(o),i(!e.displayLimit||o.length<e.displayLimit?a.nextPageID:void 0),n(!1)}))};return td((()=>{s([]),l()}),[],[e.previewState,e.notificationType,e.notificationIdentifierRegex,e.displayLimit]),a||r||0!==o.length||!e.hideWhenEmpty?t.createElement("div",{ref:e.innerRef,className:"mdhui-notification-list"},o.map((e=>t.createElement(eS,{key:e.id.toString()},t.createElement(nye,{notification:e})))),a&&t.createElement(ZA,null),!a&&!r&&0===o.length&&t.createElement(eS,null,t.createElement(Uq,null,eo("no-notifications-received"))),t.createElement(que,{onTrigger:()=>l(o),enabled:!a&&!!r})):null}function mfe(e){const[a,n]=c(!0),[r,i]=c(null);function o(){if("Default"==e.previewState)return i({name:"My Project Name",organization:{name:"My Organization Name",color:"#0076BE",logoUrl:"https://rkstudio.careevolution.com/inv/api/researchkit/organizationbrandingimage/1e1853a2-50d3-4e26-863d-d8546bce63e3"}}),void n(!1);b.getProjectInfo().then((function(e){i(e),n(!1)}))}l((()=>(o(),b.on("applicationDidBecomeVisible",o),()=>{b.off("applicationDidBecomeVisible",o)})),[]);var s=r?.organization.logoUrl;return s&&!s?.startsWith("http")&&(s=b.baseUrl+r?.organization.logoUrl),t.createElement("div",{ref:e.innerRef,className:"mdhui-project-header"},a&&t.createElement(ZA,null),!a&&r&&t.createElement("div",null,t.createElement("div",{style:{backgroundImage:"url('"+s+"')"},className:"logo"}),t.createElement("div",{className:"project-info"},t.createElement("div",{className:"project-name",style:{color:r.organization.color}},r.name),t.createElement("div",{className:"organization-name"},r.organization.name))))}w(".mdhui-project-header\n{\n padding: 16px;\n text-align: center;\n background: #FFF;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n line-height: normal;\n}\n\n .mdhui-project-header .logo\n {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n vertical-align: middle;\n }\n\n .mdhui-project-header .project-info\n {\n display: inline-block;\n text-align: left;\n padding-left: 16px;\n vertical-align: top;\n padding-right: 16px;\n max-width: calc(100% - 80px);\n }\n\n .mdhui-project-header .project-info .project-name\n {\n font-weight: bold;\n font-size: 1.5em;\n max-width: 100%;\n }\n\n .mdhui-project-header .project-info .organization-name\n {\n max-width: 100%;\n color: #333;\n }\n");function hfe(e){const[a,n]=c(!0),[r,i]=c(null);function o(){if("Default"==e.previewState)return i({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void n(!1);b.getProjectInfo().then((function(e){i(e),n(!1)}))}return l((()=>(o(),b.on("applicationDidBecomeVisible",o),()=>{b.off("applicationDidBecomeVisible",o)})),[]),!r||r.supportEmail||r.supportPhone||r.learnMoreLink&&r.learnMoreTitle?t.createElement("div",{ref:e.innerRef,className:"mdhui-project-support"},t.createElement("div",{className:"title"},eo("support")),a&&t.createElement(ZA,null),r?.learnMoreLink&&r?.learnMoreTitle&&t.createElement($a,{indicatorIcon:T,subtitle:r.learnMoreTitle,onClick:()=>b.openEmbeddedUrl(r.learnMoreLink)}),r?.supportEmail&&t.createElement($a,{indicatorIcon:J,subtitle:r.supportEmail,onClick:()=>b.openExternalUrl("mailto:"+r.supportEmail)}),r?.supportPhone&&t.createElement($a,{indicatorIcon:Y,subtitle:r.supportPhone,onClick:()=>b.openExternalUrl("tel:"+r.supportPhone)})):null}w(".mdhui-project-support>.title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-project-support .mdhui-action {\n color: var(--mdhui-color-primary);\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-project-support .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");w(".mdhui-provider-search .search-bar-wrapper {\n text-align: left;\n box-sizing: border-box;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar {\n position: relative;\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar input {\n padding: 0;\n margin: 0;\n border: 0;\n width: 100%;\n line-height: 1.5em;\n padding-left: 40px;\n box-sizing: border-box;\n font-size: .88em;\n padding-top: 8px;\n padding-bottom: 8px;\n border: none;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-text-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar .fa-magnifying-glass {\n position: absolute;\n left: 16px;\n top: 12px;\n color: var(--mdhui-text-color-4);\n font-size: .8em;\n}\n\n.mdhui-provider-search .search-results .provider {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n cursor: pointer;\n font-size: .88em;\n width: 100%;\n display: flex;\n flex-direction: row;\n gap: 16px;\n align-items: center;\n min-height: 61px;\n}\n\n.mdhui-provider-search .search-results .provider .provider-info {\n flex-grow: 1;\n}\n\n\n.mdhui-provider-search .search-results .provider .provider-logo {\n height: 44px;\n width: 72px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n background-color: #FFF;\n border-radius: 4px;\n flex-shrink: 0;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.error-status {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.connected-status {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-provider-search .search-results .provider.disabled {\n cursor: default;\n}");var pfe=[{id:20,name:"1upHealth sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/20/logo",enabled:!0},{id:2,name:"Fitbit",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo",enabled:!0},{id:13,name:"A Woman's Place, LLC",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/13/logo",enabled:!0},{id:130,name:"Abington Jefferson Health",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/130/logo",enabled:!0},{id:41,name:"Access Community Health Network",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/41/logo",enabled:!0},{id:125,name:"Aurora Health Care - myAurora",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/125/logo",enabled:!0},{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo",enabled:!0},{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo",enabled:!0},{id:27,name:"Maui Medical Group",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/27/logo",enabled:!0}];let gfe=0;function ffe(e){const[a,n]=c({}),[r,i]=c([]),[o,u]=c(!0),[d,m]=c(""),[h,p]=c(0),[f,y]=c(0),v=s(d),w=100;async function x(){b.getExternalAccounts().then((function(e){let t={};for(let a=0;a<e.length;a++)t[e[a].provider.id]=e[a];n(t)}))}function A(t){u(!0);let a=++gfe;if(e.publicProviderSearchApiUrl){const n=new URL(e.publicProviderSearchApiUrl);n.searchParams.append("keyword",t),n.searchParams.append("pageSize",String(w)),n.searchParams.append("pageNumber",String(h+1)),fetch(n.toString(),{method:"GET",headers:{Accept:"application/json"}}).then((e=>e.json())).then((function(e){a==gfe&&(S(e.Providers.map((e=>({id:e.ID,name:e.OrganizationName,logoUrl:e.LogoURL,category:e.Category})))||[]),y(e.TotalCount),u(!1))})).catch((function(e){console.error("Error fetching external account providers",e),u(!1)}))}else b.getExternalAccountProviders(t,1==e.providerCategories?.length?e.providerCategories[0]:null,w,h).then((function(e){a==gfe&&(S(e.externalAccountProviders),y(e.totalExternalAccountProviders),u(!1))})).catch((function(e){console.error("Error fetching external account providers",e),u(!1)}))}function S(t){let a=r;""===v.current&&e.featuredProviders&&(a=a.concat(e.featuredProviders),t=t.filter((t=>!e.featuredProviders.find((e=>e.id==t.id))))),i(a.concat(t).filter((t=>-1!=e.providerCategories?.indexOf(t.category))))}const E=(e,t=300)=>{let a;return function(...n){clearTimeout(a),a=setTimeout((()=>e.apply(this,n)),t)}},_=g((()=>E(A,300)),[]);function C(t){var a;a=t.target.value,v.current=a,m(a),i([]),p(0),e.previewState||_(t.target.value)}function O(){x().then((function(){A(v.current)}))}l((()=>(e.previewState?"Default"==e.previewState&&(S(pfe),u(!1)):x().then((function(){A("")})),b.on("applicationDidBecomeVisible",O),()=>{b.off("applicationDidBecomeVisible",O)})),[]),l((()=>{o||A(v.current)}),[h]);return t.createElement("div",{ref:e.innerRef,className:"mdhui-provider-search"},t.createElement("div",{className:"search-bar-wrapper"},t.createElement("div",{className:"search-bar"},t.createElement("input",{title:eo("search"),type:"text",value:d,onChange:e=>C(e),placeholder:eo("search"),spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),t.createElement(Me,{icon:he}))),t.createElement("div",{className:"search-results"},r&&r.map((n=>t.createElement(k,{key:n.id,className:n.enabled?"provider":"provider disabled",onClick:()=>{e.onProviderSelected?e.onProviderSelected(n):function(t){const n=t.id;!t.enabled||e.previewState||a[n]&&"unauthorized"!=a[n].status||b.connectExternalAccount(n,e.connectExternalAccountOptions||{openNewWindow:!0}).then((function(){return e.onProviderConnected&&e.onProviderConnected(t),x()}))}(n)}},t.createElement("div",{className:"provider-info"},t.createElement("div",{className:"provider-name"},n.name),a[n.id]&&"unauthorized"==a[n.id].status&&t.createElement("div",{className:"provider-status error-status"},eo("expired-reconnect")),a[n.id]&&"unauthorized"!=a[n.id].status&&t.createElement("div",{className:"provider-status connected-status"},eo("connected")),!a[n.id]&&!n.enabled&&t.createElement("div",{className:"provider-status connected-status"},(()=>{const e={provider:n.name};n.relatedProvider&&(e.relatedProvider=n.relatedProvider),n.managingOrganization&&(e.managingOrganization=n.managingOrganization);return eo(n.managingOrganization?"provider-disabled-reason-with-managing-organization":"provider-disabled-reason-without-managing-organization",void 0,e)})())),n.logoUrl&&t.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+n.logoUrl+"')"}})))),!o&&!e.hideRequestProviderButton&&(!e.providerCategories||0==e.providerCategories.length||e.providerCategories.includes("Provider")||e.providerCategories.includes("Health Plan"))&&t.createElement($a,{onClick:()=>{b.openEmbeddedUrl("https://help.mydatahelps.org/hc/en-us/requests/new?ticket_form_id=34288897775635")},title:(()=>{let t="";return e.providerCategories&&0!=e.providerCategories.length&&!e.providerCategories.includes("Provider")||(t+=eo("external-accounts-title-providers")),e.providerCategories&&0!=e.providerCategories.length&&!e.providerCategories.includes("Health Plan")||(t.length>0&&(t+=eo("external-accounts-title-divider")),t+=eo("external-accounts-title-health-plans")),`${eo("request-add")} ${t}`})()}),o&&t.createElement(ZA,null)),t.createElement(que,{onTrigger:function(){p(h+1)},enabled:(h+1)*w<f}))}function yfe(e){let[a,n]=c(!0),[r,i]=c(null),o=Ni(),s=on(o,{days:-6}),l=on(o,{days:1});td((()=>{if(n(!0),"loading"!==e.previewState)return"loaded without data"===e.previewState?(i({}),void n(!1)):"loaded with data"===e.previewState?e.previewDataProvider?void e.previewDataProvider(s,l).then((e=>{i(e),n(!1)})):void Ec(s,l,0,2e4).then((e=>{i(e),n(!1)})):void Yc(e.dailyDataType).then((function(t){t?Qc(e.dailyDataType,s,l).then((e=>{i(e),n(!1)})):(i(null),n(!1))}));i({})}),["externalAccountSyncComplete"],[e.previewState]);let u=s,d=[],m=!1;if(r)for(;u<l;){let t={daysAfterStart:An(u,s)};d.push(t);let a=Ri(u);null!=r[a]&&null!=r[a]&&(t.rawValue=r[a],t.value=e.valueConverter?e.valueConverter(r[a]):r[a],t.date=u,m=!0),u=on(u,{days:1})}return t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart",ref:e.innerRef},t.createElement(iM,{order:3,className:"mdhui-recent-daily-data-bar-chart-title"},e.title),t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart-subtitle"},eo("recent-daily-data-bar-chart-subtitle")),t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart-container"},a&&t.createElement(ZA,null),!a&&!m&&t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart-no-data-label"},eo("recent-daily-data-bar-chart-no-data")),t.createElement(_1,{width:"100%",height:200},t.createElement(Eue,{data:d,cx:20},(m||e.emptyDomain)&&t.createElement(tle,{vertical:!1,x:0,horizontal:({y1:e,y2:a,key:n})=>t.createElement("line",{x1:0,y1:e,x2:"100%",y2:a,stroke:"var(--mdhui-background-color-2)",key:n})}),t.createElement(Cce,{dataKey:"value",tick:({x:e,y:a,payload:n})=>t.createElement("text",{x:e-24,y:a+12,fontSize:"11",fontWeight:"bold",textAnchor:"middle",fill:"var(--mdhui-text-color-3)"},(e=>0===e?"":e>=1e4?yl(e/1e3)+"K":yl(e))(n.value)),axisLine:!1,tickLine:!1,interval:0,width:1,domain:m?e.domain:e.emptyDomain,orientation:"right"}),t.createElement(fce,{dataKey:"daysAfterStart",tick:({x:e,y:a,payload:n})=>{let r=n.value,i=on(s,{days:r});return t.createElement("text",{x:e,y:a+8,fontSize:"11",fontWeight:"bold",textAnchor:"middle",fill:"var(--mdhui-text-color-2)"},ol(i))},axisLine:!1,minTickGap:0,tickLine:!1,interval:"preserveStartEnd",padding:{left:20,right:40}}),t.createElement(qie,{key:"bar",type:"monotone",dataKey:"value",radius:[4,4,0,0]},t.createElement(N7,{dataKey:"value",position:"center",content:({x:a,y:n,width:r,value:i,index:o})=>{if(!i)return;let s="var(--mdhui-color-primary)";return e.highlight&&e.highlight(d[o].rawValue)&&(s="#6731AA"),t.createElement("text",{x:a+r/2,y:n-5,fontSize:10,fontWeight:"bold",textAnchor:"middle",fill:s},e.valueFormatter?e.valueFormatter(i):yl(i))}}),d.map(((a,n)=>e.highlight&&e.highlight(a.rawValue)?t.createElement(C1,{fill:"#D8BDF8",key:n}):t.createElement(C1,{fill:"#BBDEFF",key:n}))))))))}w(".mdhui-recent-daily-data-bar-chart {\n position: relative;\n margin-bottom: 48px;\n}\n\n.mdhui-recent-daily-data-bar-chart-title {\n padding: 0 16px;\n}\n\n.mdhui-recent-daily-data-bar-chart-subtitle {\n padding: 0 16px;\n margin-top: 2px;\n font-size: 0.95em;\n}\n\n.mdhui-recent-daily-data-bar-chart-container {\n position: relative;\n margin: 16px 16px 32px;\n padding: 0;\n background: var(--mdhui-background-color-1);\n border-radius: 12px;\n height: 200px;\n}\n\n.mdhui-recent-daily-data-bar-chart .recharts-surface {\n height: 270px !important;\n overflow: visible;\n}\n\n.mdhui-recent-daily-data-bar-chart-no-data-label, .mdhui-recent-daily-data-bar-chart .mdhui-loading-indicator {\n position: absolute;\n width: 120px;\n height: 20px;\n line-height: 20px;\n left: calc(50% - 68px);\n top: calc(50% - 26px);\n border: 1px solid var(--mdhui-border-color-1);\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n padding: 16px 8px;\n text-align: center;\n color: var(--mdhui-text-color-4);\n z-index: 5000;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-recent-daily-data-bar-chart .recharts-cartesian-grid-horizontal line:first-child {\n display: none;\n}");const vfe=o(null);function bfe(e){const[a,n]=c(),[r,i]=c();td((()=>{(()=>{if("default"===e.previewState)return void n(e.dataTypes);const t=e.dataTypes.map((e=>Yc(e.dailyDataType)));Promise.all(t).then((t=>{n(e.dataTypes.filter(((e,a)=>t[a])))}))})()}),["externalAccountSyncComplete"],[e.dataTypes,e.previewState]);return t.createElement("div",{ref:e.innerRef},!a&&t.createElement(ZA,null),a&&t.createElement(vfe.Provider,{value:{dataTypes:a,data:r}},t.createElement(rM,{initialIntervalStart:Ni(),intervalType:"Day",useCustomNavigator:!0},t.createElement(wfe,{loadData:async(t,a)=>{if(!e.dataTypes.length)return Promise.resolve();i(await ad(t,a,e.dataTypes,!!e.previewState))},dayRenderer:n=>{if(!e.dataTypes.length||!a?.length)return null;let i=a.map((e=>{const t=r?.[e.dailyDataType]?.[n],a=t?.relativePercent??0;if(void 0===a)return{color:"var(--mdhui-color-primary)",barFillPercent:0};const i=t?.value??0;let o=e.color||"var(--mdhui-color-primary)";return void 0!==e.threshold&&"30DayAverage"!==e.threshold&&i>e.threshold&&e.overThresholdColor&&(o=e.overThresholdColor),{color:o,barFillPercent:a}}));return t.createElement("div",{style:{paddingTop:"8px"}},t.createElement(oye,{averageFillPercent:.5,bars:i}))},dependencies:[e.previewState,e.dataTypes]}),r&&e.children)))}function wfe(e){const a=i(nM);return t.createElement(Lfe,{selectedDate:a.intervalStart,loadData:e.loadData,dayRenderer:e.dayRenderer,dependencies:e.dependencies})}function kfe(e){let[a,n]=c(void 0),r=i(vfe),o=s(0),l=e.dataTypes||[];e.useContext&&r?.dataTypes&&(l=[...r.dataTypes]);let u=i(nM),d=e.date??u?.intervalStart??gn(new Date);if(td((()=>{!function(){function t(e){if(!e)return;let t={};return l.forEach((a=>{e[a.dailyDataType]?.[Ri(d)]?.value&&(t[a.dailyDataType]=e[a.dailyDataType][Ri(d)])})),t}if(n(void 0),e.useContext){if(!r?.data)return;return void n(t(r.data))}let a=++o.current;ad(d,d,l,!!e.previewState).then((e=>{a==o.current&&n(t(e))}))}()}),["externalAccountSyncComplete"],[u,r,e.date,e.dataTypes]),!a||!Object.keys(a).length)return null;function m(e,t){if(l.every((e=>void 0===e.threshold)))return;return eu(e.dailyDataType).formatter(t)}return t.createElement("div",{ref:e.innerRef,className:"mdhui-relative-activity"},e.title&&t.createElement(tS,{title:e.title}),l.map((e=>{let n=a[e.dailyDataType];if(!n||void 0===n.threshold||void 0===n.relativePercent)return null;let r=eu(e.dailyDataType),i=e.formatter||r.formatter;return t.createElement("div",{key:e.dailyDataType,className:"mdhui-relative-activity-datatype"},t.createElement(Ga,{className:"mdhui-relative-activity-meter",label:e.label||(r.labelKey?eo(r.labelKey):e.dailyDataType),value:i(n.value),fillPercent:n.relativePercent,averageFillPercent:.5,icon:e.icon||r.icon,color:(o=e,s=n.relativePercent,void 0!==o.threshold&&o.overThresholdColor&&s>.5?o.overThresholdColor:o.color||"var(--mdhui-color-primary)"),thresholdLabel:m(e,n.threshold)}));var o,s})),l.every((e=>void 0===e.threshold))&&t.createElement("div",{className:"mdhui-relative-activity-average-marker"},t.createElement("div",null,t.createElement(Me,{icon:C})),eo("30-day-average")))}function xfe(e){return t.createElement(kfe,{date:gn(new Date),dataTypes:e.dataTypes,previewState:e.previewState,title:e.title,innerRef:e.innerRef})}w(".mdhui-relative-activity .mdhui-relative-activity-datatype {\n position: relative;\n}\n\n.mdhui-relative-activity .mdhui-relative-activity-meter {\n margin: 16px;\n}\n\n.mdhui-relative-activity .mdhui-relative-activity-average-marker {\n text-align: center;\n margin: 16px;\n font-size: .7em;\n margin-bottom: 16px;\n color: var(--mdhui-text-color-2);\n}");function Afe(e){const[a,n]=c(!1),[r,i]=c({});var o=new Date(e.year,e.month,1,0,0,0,0),s=on(o,{months:1});function u(){var t,a;"NoData"!==e.showPreviewData&&("Loading"!==e.showPreviewData?(n(!0),(t=e.dataTypeSource,a=Li.RestingHeartRate,"AppleHealth"==t&&(a=Li.AppleHealthRestingHeartRate),"Fitbit"==t&&(a=Li.FitbitRestingHeartRate),"Garmin"==t&&(a=Li.GarminRestingHeartRate),"HealthConnect"==t&&(a=Li.HealthConnectRestingHeartRate),Qc(a,o,s,void 0!==e.showPreviewData).then((function(e){i(e)}))).then((()=>n(!1)))):n(!0))}return l((()=>(u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),()=>{b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)})),[e]),t.createElement("div",{ref:e.innerRef},a&&t.createElement(ZA,null),!a&&t.createElement(QA,{year:e.year,month:e.month,dayRenderer:function(e,a,n){const i=function(e,t,a){if(void 0!==a){var n=Ri(new Date(e,t,a));return r[n]}}(e,a,n);return void 0!==n?t.createElement("div",{className:"mdhui-calendar-day-with-data-value"},t.createElement("div",{className:"calendar-value"},i),t.createElement("div",{className:"calendar-day"},n)):t.createElement("div",null)}}))}async function Sfe(e,t,a,n,r){var i=await Wc(Ri(e)+t);return{id:"00000000-0000-0000-0000-000000000000",surveyID:"00000000-0000-0000-0000-000000000000",surveyResultID:"00000000-0000-0000-0000-000000000000",surveyVersion:0,surveyName:a,surveyDisplayName:a,date:e.toISOString(),stepIdentifier:t,resultIdentifier:t,answers:[(i%(r-n)+n).toString()],insertedDate:e.toISOString()}}w(".mdhui-calendar-day-with-data-value .calendar-value {\n\theight: 32px;\n\twidth: 32px;\n\tfont-size: 12px;\n\tborder-radius: 17px;\n\tline-height: 34px;\n\ttext-align: center;\n\tbackground: var(--mdhui-background-color-1);\n\tfont-weight: bold;\n\tdisplay: inline-block;\n}\n\n.mdhui-calendar-day-with-data-value .calendar-day {\n\ttext-align: center;\n}");function Efe(e){let[a,n]=c(null);const r=i(nM);let o,s=e.intervalType||"Month";r?(s="Day"===r.intervalType?"Week":r.intervalType,o=r.intervalStart):o=iu(s,e.weekStartsOn);let l="Week"===s?on(o,{days:7}):"Month"===s?on(o,{months:1}):"6Month"===s?on(o,{months:6}):o;const u=()=>{if(n(null),e.previewDataProvider)e.previewDataProvider(o,l).then((e=>{n(e)}));else if(e.previewState)(async(e,t,a,n)=>{const r=[];a.forEach((e=>r.push([])));let i=new Date(e);for(;i<t;){for(let e=0;e<a.length;++e){var o=await Sfe(i,"TestResult"+e,"TestSurvey",10,100);r[e].push(o)}i=on(i,n)}return r})(o,l,e.series,e.expectedDataInterval||{days:1}).then((e=>{n(e)}));else{var t=e.series.map((e=>{var t={after:o.toISOString(),before:l.toISOString()};return e.surveyName&&(t.surveyName=e.surveyName),e.resultIdentifier&&(t.resultIdentifier=e.resultIdentifier),e.stepIdentifier&&(t.stepIdentifier=e.stepIdentifier),cu(t)}));Promise.all(t).then((e=>{n(e)}))}};function d(e){return`${e.surveyName}-${e.stepIdentifier}-${e.resultIdentifier}`}td((()=>{u()}),[],[e.intervalType,e.weekStartsOn,r]);let m=function(t){for(var a={},n=0;n<e.series.length;n++)a[d(e.series[n])]=t[n]?.sort(((e,t)=>vn(Ei(e.date),Ei(t.date))))||[];return a}(a||[]);var h=void 0,p=!1;null!==m&&(h=[],e.series.forEach((e=>{var t=d(e);m[t].forEach((t=>{var a=Ei(t.date);a.setHours(0,0,0,0);var n=h.find((e=>e.timestamp===a.getTime()));n||(n={timestamp:a.getTime()},h.push(n)),n[e.dataKey]=parseFloat(t.answers[0]),p=!0}))})),h.sort(((e,t)=>e.timestamp-t.timestamp)));return t.createElement(jue,{title:e.title,intervalType:s,intervalStart:o,data:h,expectedDataInterval:e.expectedDataInterval,series:e.series.map((e=>{const t={dataKey:e.dataKey,color:e.color};return"areaColor"in e&&(t.areaColor=e.areaColor),t})),chartHasData:p,tooltip:({active:a,payload:n})=>{function r(t,a){return t.stroke||function(t,a){var n=e.options?e.options[a]:null;return n?Array.isArray(n)?n[t]:n:"var(--mdhui-color-primary)"}(a,"barColor")}return a&&n&&n.length?1===n.length?t.createElement("div",{className:"mdhui-time-series-tooltip"},t.createElement("div",{className:"mdhui-single-value-tooltip-value"},yl(parseFloat(n[0].value),2)),t.createElement("div",{className:"mdhui-time-series-tooltip-date"},il(new Date(n[0].payload.timestamp)))):t.createElement("div",{className:"mdhui-time-series-tooltip"},t.createElement("table",{className:"mdhui-multiple-value-tooltip"},t.createElement("tbody",null,n.map(((e,a)=>t.createElement("tr",{key:e.dataKey},t.createElement("th",{style:{color:r(e,a)}},e.dataKey),t.createElement("td",null,yl(parseFloat(e.value),2))))))),t.createElement("div",{className:"mdhui-time-series-tooltip-date"},il(new Date(n[0].payload.timestamp)))):null},chartType:e.chartType,options:e.options,innerRef:e.innerRef})}w(".mdhui-survey-task-list .mdhui-single-survey-task {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-survey-task-list .mdhui-single-survey-task:last-child {\n border: none;\n}\n\n.mdhui-survey-task-list .title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-survey-task-list .empty-message {\n padding: 16px;\n font-size: .88em;\n}");var _fe=[{id:"ecf8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Mood Survey",surveyDisplayName:"Mood Survey",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{days:-1}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!0,dueDate:on(new Date,{days:0}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a11",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"Rating: CheckIn",surveyDisplayName:"Let us know how we're doing",surveyDescription:"10 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:void 0,insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{days:1}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a12",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"Rating2: CheckIn",surveyDisplayName:"Rate Later",surveyDescription:"10 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{years:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"}],Cfe=[{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"complete",endDate:(new Date).toISOString(),hasSavedProgress:!1,dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"complete",hasSavedProgress:!1,endDate:on(new Date,{days:-1}).toISOString(),dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"complete",hasSavedProgress:!1,endDate:on(new Date,{days:-2}).toISOString(),dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"}];function Ofe(e){const[a,n]=c(!0),[r,o]=c(null),[s,l]=c([]),u=i(Ua),d=e=>{o(e),l([])};td((function(){var t=function(e,t){return e.dueDate?t.dueDate?Ei(e.dueDate)>Ei(t.dueDate)?1:Ei(e.dueDate)<Ei(t.dueDate)?-1:0:-1:1};if("IncompleteTasks"==e.previewState)return _fe.sort(t),void d(_fe);if("CompleteTasks"==e.previewState)return void d(Cfe);if("Empty"==e.previewState)return d([]),void n(!1);a=[],r=function(i){var o={status:e.status};return e.surveys&&(o.surveyName=e.surveys),e.category&&(o.surveyCategory=e.category),i&&(o.pageID=i),b.querySurveyTasks(o).then((function(i){a=a.concat(i.surveyTasks),i.nextPageID?r(i.nextPageID):("incomplete"==e.status&&a.sort(t),"complete"==e.status&&a.sort(((e,t)=>e.endDate&&t.endDate?Ei(e.endDate)>Ei(t.endDate)?-1:Ei(e.endDate)<Ei(t.endDate)?1:0:0)),d(a),n(!1))}))},r(null);var a,r}),[],[e.previewState]);const m=e=>s.includes(e.surveyName),h=t=>e.sequential&&r[0].id!==t.id;function p(a){return t.createElement(iye,{buttonColor:e.buttonColor,buttonVariant:e.buttonVariant,key:a.id.toString(),task:a,onClick:()=>(t=>{e.previewState||m(t)||(l([...s,t.surveyName]),b.startSurvey(t.surveyName))})(a),surveyActive:m(a),surveyBlocked:h(a)})}const{hideIfEmpty:g}=e,f="complete"==e.status?g??!0:g;if(!r?.length&&f)return null;let y=e.variant??"noCard";return t.createElement(Pfe,{cardStyle:e.cardStyle,cardBackgroundColor:e.cardBackgroundColor,innerRef:e.innerRef,card:"singleCard"==y},t.createElement("div",{className:"mdhui-survey-task-list"},e.title&&t.createElement(tS,{color:e.titleColor,title:e.title,detailLinkText:e.onDetailLinkClick?eo("view-all")+" ("+(r?.length??0)+")":void 0,onDetailClick:e.onDetailLinkClick}),a&&!r&&t.createElement(ZA,null),!r?.length&&!a&&t.createElement("div",{className:"empty-message"},e.emptyText?.trim()||eo(`empty-tasks-${e.status}`)),r?.slice(0,e.limit).map((a=>"multiCard"==y?t.createElement(eS,{style:e.cardStyle,backgroundColor:De(u.colorScheme,e.cardBackgroundColor),key:a.id},p(a)):p(a)))))}function Pfe(e){const a=i(Ua);return e.card?t.createElement(eS,{style:e.cardStyle,backgroundColor:De(a.colorScheme,e.cardBackgroundColor),innerRef:e.innerRef},e.children):t.createElement("div",{ref:e.innerRef},e.children)}var Tfe=new Date;const Mfe=[{id:"12345",surveyResultID:"1",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"123456",surveyResultID:"1",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[Ni().toISOString()],insertedDate:Date.now.toString()},{id:"123452",surveyResultID:"21",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severity3"],insertedDate:Date.now.toString()},{id:"12223456",surveyResultID:"21",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-1)).toISOString()],insertedDate:Date.now.toString()},{id:"123457",surveyResultID:"2",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["moderate"],insertedDate:Date.now.toString()},{id:"123458",surveyResultID:"2",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-2)).toISOString()],insertedDate:Date.now.toString()},{id:"1234573",surveyResultID:"3",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severity2"],insertedDate:Date.now.toString()},{id:"1234583",surveyResultID:"3",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-3)).toISOString()],insertedDate:Date.now.toString()},{id:"14234573",surveyResultID:"4",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["moderate"],insertedDate:Date.now.toString()},{id:"12345834",surveyResultID:"4",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-4)).toISOString()],insertedDate:Date.now.toString()},{id:"142345736",surveyResultID:"5",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"1234583466",surveyResultID:"5",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-5)).toISOString()],insertedDate:Date.now.toString()},{id:"1423457376",surveyResultID:"6",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severity1"],insertedDate:Date.now.toString()},{id:"1234583466",surveyResultID:"6",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-6)).toISOString()],insertedDate:Date.now.toString()},{id:"12374597",surveyResultID:"7",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-7)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"123874598",surveyResultID:"8",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-8)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"1238745998",surveyResultID:"9",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:_n(nn(Tfe,-8)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"10234583466",surveyResultID:"10",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[_n(nn(Tfe,-9)).toISOString()],insertedDate:Date.now.toString()},{id:"1237459710",surveyResultID:"10",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"10234583466",surveyResultID:"11",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-9)).toISOString()],insertedDate:Date.now.toString()},{id:"1237459710",surveyResultID:"11",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"12387459988",surveyResultID:"12",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:_n(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"102345834898",surveyResultID:"12",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:_n(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[_n(nn(Tfe,-10)).toISOString()],insertedDate:Date.now.toString()},{id:"123745971013",surveyResultID:"13",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["moderate"],insertedDate:Date.now.toString()},{id:"1023458346613",surveyResultID:"13",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[_n(nn(Tfe,-10)).toISOString()],insertedDate:Date.now.toString()}];function Dfe(e){const a={surveyName:e.surveyName,resultIdentifier:e.dateRecordedResultIdentifier?[e.dateRecordedResultIdentifier,e.severityResultIdentifier]:[e.severityResultIdentifier]},[n,r]=c(),o=i(nM);let s=o?.intervalStart??e.intervalStart??Tn(new Date);function l(t){var a=new Map,n=function(t){var a=new Map;return t.forEach((t=>{var n=a.get(t.surveyResultID)??{dateObservedAnswer:void 0,severityAnswer:void 0};t.answers&&""!==t.answers[0]&&(t.resultIdentifier===e.severityResultIdentifier?n.severityAnswer=t:t.resultIdentifier===e.dateRecordedResultIdentifier&&(n.dateObservedAnswer=t),a.set(t.surveyResultID,n))})),a}(t);const i=e.severityValueMapper??function(e){let t="";return["mild","moderate","severe"].includes(e.toLowerCase())&&(t=e.toLowerCase()),t};n.forEach((e=>{if(e.severityAnswer){var t=i(e.severityAnswer.answers[0]);if(t){let n=Ei(e.dateObservedAnswer?e.dateObservedAnswer.answers[0]:e.severityAnswer.date),r=il(gn(n)),i=a.get(r);i?e.severityAnswer.date>i.dateEntered&&(i.dateObserved=n,i.severity=t,i.dateEntered=e.severityAnswer.date):a.set(r,{dateObserved:n,severity:t,dateEntered:e.severityAnswer.date})}}})),r(a)}const u={mild:{style:{background:"#F7DA19"},streak:!0,streakColor:"#FDEF97"},moderate:{style:{background:"var(--mdhui-color-warning)"},streak:!0,streakColor:"#FCCCC7"},severe:{style:{background:"var(--mdhui-color-danger)"},streak:!0,streakColor:"#FCCCC7"}},d=e=>{let t=il(gn(e));return n?.get(t)?.severity??""},m=(e,a,n)=>t.createElement(XA,{year:e,month:a,day:n,stateConfiguration:u,computeStateForDay:d});return td((async function(){e.previewState?l("Default"===e.previewState?Mfe:[]):cu(a).then((e=>{l(e)}))}),[],[e.previewState]),n?t.createElement(QA,{innerRef:e.innerRef,className:"mdhui-simple-calendar",year:s.getFullYear(),month:s.getMonth(),dayRenderer:m}):t.createElement(ZA,{innerRef:e.innerRef})}function Ife(e){const a=i(nM),n=a?.intervalStart??Ni(),[r,o]=c(!0),[s,l]=c();td((()=>{if(o(!0),"loading"!==e.previewState)return e.previewState?(l("with data"===e.previewState?Math.floor(7*Math.random()):void 0),void o(!1)):void Md(n).then((e=>{l(e),o(!1)}))}),[],[e.previewState,a?.intervalStart]);return t.createElement("div",{className:"mdhui-stress-level",ref:e.innerRef},t.createElement("div",{className:"mdhui-stress-level-title"},eo("stress-level-title")),r&&t.createElement(ZA,null),!r&&t.createElement(cM,{tickCount:7,minLabel:eo("stress-level-min-label"),maxLabel:eo("stress-level-max-label"),value:s,onChange:t=>(t=>{l(t),e.previewState||(t?Dd(n,t):Id(n))})(t),sliderColor:"#d36540"}))}w(".mdhui-stress-level {\n padding: 16px 0 0;\n}\n\n.mdhui-stress-level-title {\n text-transform: uppercase;\n margin: 0 16px;\n font-size: 0.65em;\n}\n\n.mdhui-stress-level .mdhui-loading-indicator {\n padding: 16px 16px 32px;\n}");let Nfe=[{Title:"Rapid Tests",Link:"https://medlineplus.gov/lab-tests/rapid-tests?utm_source=mplusconnect&utm_medium=service",Summary:'\n<h2>What are rapid tests?</h2>\n<p>Rapid tests, also known as rapid diagnostic tests or RDTs, are easy-to-use tests that provide quick results, usually in 20 minutes or less. Unlike most standard tests, which have to be sent to a lab, rapid tests are done and provide results at the point of care. The point of care is the place where you are getting care. It can include your provider\'s office, a clinic, or even your own home.</p>\n<p>Rapids tests usually include the following steps:</p>\n<ul>\n<li>You will provide a sample of your body fluid, such as <a data-tid="6037" href="https://medlineplus.gov/blood.html">blood</a>, urine, saliva, or nasal secretions.</li>\n<li>The sample is mixed with a special substance that will cause a chemical reaction if a disease or other condition is present.</li>\n<li>Results will show on a dipstick or rapid test cassette.\n<ul>\n<li>A dipstick is a thin, plastic strip that\'s coated with chemicals. If the test is positive, the dipstick will change colors when placed in the sample.</li>\n<li>A rapid test cassette is a small, plastic case that has a well that holds the sample. The well will show a letter or a symbol to indicate the result.</li>\n</ul>\n</li>\n</ul>\n<p>Most rapid tests are highly accurate, but the results are not always as accurate as standard lab tests. </p>\n<p>Other names: rapid diagnostic tests, RDT\'s point-of-care tests</p><h2>How are they used?</h2>\n<p>Rapid tests are most often used to diagnose <a data-tid="513" href="https://medlineplus.gov/infectiousdiseases.html">infectious diseases</a>, including:</p>\n<ul>\n<li><a data-tid="299" href="https://medlineplus.gov/flu.html">Flu</a></li>\n<li><a data-tid="421" href="https://medlineplus.gov/streptococcalinfections.html">Strep throat</a></li>\n<li><a data-tid="315" href="https://medlineplus.gov/malaria.html">Malaria</a></li>\n<li><a data-tid="1" href="https://medlineplus.gov/hivaids.html">HIV</a></li>\n<li><a data-tid="3181" href="https://medlineplus.gov/covid19coronavirusdisease2019.html">COVID 19</a>. <a data-tid="7627" href="https://medlineplus.gov/covid19testing.html">Rapid tests for COVID-19</a> usually provide results in about 30 minutes.</li>\n</ul>\n<p>Rapid tests are also used in certain <a data-pid="31381" href="https://medlineplus.gov/lab-tests/at-home-medical-tests/">home-based tests</a>, such as pregnancy tests.</p><h2>What are the advantages and disadvantages of rapid tests?</h2>\n<p>The advantages of rapid tests include:</p>\n<ul>\n<li><strong>Fast results.</strong> This may allow you to get treatment faster. Faster treatment can reduce the severity of your symptoms, and may help prevent the spread of disease</li>\n<li><strong>Easy to use.</strong> They can be done by non-medical workers and volunteers who have been trained to do the test. You may even be able to perform a rapid test on yourself.</li>\n<li><strong>Little or no special equipment required.</strong> This is especially useful in areas with limited resources or access to specialized labs.</li>\n</ul>\n<p>Disadvantages of rapid tests:</p>\n<ul>\n<li><strong>Lower sensitivity than lab tests.</strong> Sensitivity means how well a test can identify a disease or condition. Rapid tests are not as good as lab tests at finding diseases in the earliest stages of infection.</li>\n<li><strong>False negatives are more common.</strong> A false negative result means your test shows you don\'t have a disease or condition, but you actually do have it.</li>\n</ul>\n<p>Providers will often take a second sample and send it to a lab for testing to confirm or rule out the results of a rapid test. But you may be able to get treatment and help prevent the spread of disease while you wait for lab results.</p><h2>Is there anything else I need to know about rapid tests?</h2>\n<p>Home based rapid tests are available for COVID-19. Like other rapid tests, the rapid COVID-19 tests have lower sensitivity than standard lab tests. But getting fast, home-based results may help prevent the spread of disease. Talk to your health care provider to learn more about these home-based tests.</p><h2>References</h2>\n<ol>\n<li>Centers for Disease Control and Prevention [Internet]. Atlanta: U.S. Department of Health and Human Services; Influenza (Flu): Rapid Influenza Diagnostic Tests; [cited 2021 Jan 26]; [about 5 screens]. Available from: <a href="https://www.cdc.gov/flu/professionals/diagnosis/clinician_guidance_ridt.htm" target="bibliowin">https://www.cdc.gov/flu/professionals/diagnosis/clinician_guidance_ridt.htm</a></li>\n<li>Centers for Disease Control and Prevention [Internet]. Atlanta: U.S. Department of Health and Human Services; Malaria: Rapid Diagnostic Tests: How They Work; [cited 2021 Jan 26]; [about 5 screens]. Available from: <a href="https://www.cdc.gov/malaria/malaria_worldwide/reduction/dx_rdt.html" target="bibliowin">https://www.cdc.gov/malaria/malaria_worldwide/reduction/dx_rdt.html</a></li>\n<li>Emory University [Internet]. Atlanta: Emory University; c2020. What is Rapid Diagnostic Test (RDT)?; [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="http://www.globalhealthprimer.emory.edu/targets-technologies/rapid-diagnostic-test.html" target="bibliowin">http://www.globalhealthprimer.emory.edu/targets-technologies/rapid-diagnostic-test.html</a></li>\n<li>FDA: U.S. Food and Drug Administration [Internet]. Silver Spring (MD): U.S. Department of Health and Human Services; Coronavirus (COVID-19) Update: FDA Authorizes Antigen Test as First Over-the-Counter Fully At-Home Diagnostic Test for COVID-19; 2020 Dec 15 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-authorizes-antigen-test-first-over-counter-fully-home-diagnostic" target="bibliowin">https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-authorizes-antigen-test-first-over-counter-fully-home-diagnostic</a></li>\n<li>FDA: U.S. Food and Drug Administration [Internet]. Silver Spring (MD): U.S. Department of Health and Human Services; Coronavirus (COVID-19) Update: FDA Issued Emergency Use Authorization for Point of Care Antigen Test; 2020 Jul 6 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-issued-emergency-use-authorization-point-care-antigen-test" target="bibliowin">https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-issued-emergency-use-authorization-point-care-antigen-test</a></li>\n<li>GoodRx [Internet]. GoodRx, Inc., c2011–2021. COVID-19 Rapid Tests: Accuracy, Types, and Where to Find Them; 2020 Nov 10 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.goodrx.com/blog/covid-19-rapid-test" target="bibliowin">https://www.goodrx.com/blog/covid-19-rapid-test</a></li>\n<li>Harvard Health Publishing: Harvard Medical School [Internet]. Boston: Harvard University; 2010–2021. Rapid Strep Test; 2019 Dec [cited 2021 Jan 26]; [about 4 screens]. Available from: <a href="https://www.health.harvard.edu/diseases-and-conditions/rapid-strep-test" target="bibliowin">https://www.health.harvard.edu/diseases-and-conditions/rapid-strep-test</a></li>\n<li>Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2021. COVID-19 Diagnostic testing: Overview; 2021 Jan 15 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.mayoclinic.org/tests-procedures/covid-19-diagnostic-test/about/pac-20488900" target="bibliowin">https://www.mayoclinic.org/tests-procedures/covid-19-diagnostic-test/about/pac-20488900</a></li>\n<li>Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2021. Urinalysis: Overview; 2019 Oct 23 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.mayoclinic.org/tests-procedures/urinalysis/about/pac-20384907" target="bibliowin">https://www.mayoclinic.org/tests-procedures/urinalysis/about/pac-20384907</a></li>\n<li>Poole S, Townsend J, Wertheim H, Kidd SP, Welte T, Schuetz P, Luyt CE, Beishuizen A, Jensen JS, Del Castillo JG, Plebani M, Saeed K. How are rapid diagnostic tests for infectious diseases used in clinical practice: a global survey by the International Society of Antimicrobial Chemotherapy (ISAC). Eur J Clin Microbiol Infect Dis [Internet]. 2021 Feb; [cited 2021 Jan 26]; 40(2):429–434. Available from: <a href="https://pubmed.ncbi.nlm.nih.gov/32902760" target="bibliowin">https://pubmed.ncbi.nlm.nih.gov/32902760</a></li>\n<li>P.vivax information hub [Internet]. Medicines for Malaria Venture; Rapid Diagnostic Tests (RDTs); [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.vivaxmalaria.org/diagnosis-treatment/diagnostic-methods/rapid-diagnostic-tests-rdts" target="bibliowin">https://www.vivaxmalaria.org/diagnosis-treatment/diagnostic-methods/rapid-diagnostic-tests-rdts</a></li>\n<li>ResearchGate [Internet]. ResearchGate GmbH; c2008–2021. Example of RDT Cassettes; [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.researchgate.net/figure/Example-of-RDT-cassettes-Most-of-the-cassettes-have-separated-wells-for-sample-and_fig2_49830148" target="bibliowin">https://www.researchgate.net/figure/Example-of-RDT-cassettes-Most-of-the-cassettes-have-separated-wells-for-sample-and_fig2_49830148</a></li>\n<li>Very Well Health [Internet]. New York: About, Inc.; c2021. An Overview of Specificity and Sensitivity; [updated 2020 Sep 27; cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.verywellhealth.com/sensitivity-and-specificity-in-medical-testing-overview-4777799" target="bibliowin">https://www.verywellhealth.com/sensitivity-and-specificity-in-medical-testing-overview-4777799</a></li>\n<li>Very Well Health [Internet]. New York: About, Inc.; c2021. Why Your Rapid Flu Test Was Negative; [updated 2020 Apr 2; cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.verywellhealth.com/why-was-my-flu-test-negative-770309" target="bibliowin">https://www.verywellhealth.com/why-was-my-flu-test-negative-770309</a></li>\n<li>World Health Organization [Internet]. Geneva (SUI): World Health Organization; c2021. Advice on the use of point-of-care immunodiagnostic tests for COVID-19; 2020 Apr 8 [cited 2021 Jan 26]; [about 4 screens]. Available from: <a href="https://www.who.int/news-room/commentaries/detail/advice-on-the-use-of-point-of-care-immunodiagnostic-tests-for-covid-19#" target="bibliowin">https://www.who.int/news-room/commentaries/detail/advice-on-the-use-of-point-of-care-immunodiagnostic-tests-for-covid-19#</a></li>\n<li>World Health Organization [Internet]. Geneva (SUI): World Health Organization; c2021. Simple/Rapid Tests; 2014 Jun 27 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.who.int/news-room/q-a-detail/simple-rapid-tests" target="bibliowin">https://www.who.int/news-room/q-a-detail/simple-rapid-tests</a></li>\n</ol>\n\n'},{Title:"COVID-19 Testing",Link:"https://medlineplus.gov/covid19testing.html?utm_source=mplusconnect&utm_medium=service",Summary:'\n<p><a href="https://medlineplus.gov/covid19coronavirusdisease2019.html?utm_source=mplusconnect">COVID-19</a> (coronavirus disease 2019) is a disease caused by a virus called SARS-CoV-2. There are two types of tests for this virus:</p>\n<ul>\n<li>A <strong>viral test</strong> tells you if you have a current infection. Viral tests can either be rapid tests or laboratory tests:\n <ul>\n <li><a href="https://medlineplus.gov/lab-tests/rapid-tests/">Rapid tests</a> can be done in minutes. They are often antigen tests, which look for specific proteins from the virus. Some rapid tests are self-tests which you can do at home.</li> \n <li>Laboratory tests can take days to complete and include <a href="https://medlineplus.gov/lab-tests/pcr-tests/">PCR tests</a>.</li>\n </ul>\n</li>\n<li>An <strong>antibody (serology) test</strong> might tell you if you had a past infection.</li>\n</ul>\n\n<p>If you need a COVID-19 test, you can:</p>\n<ul>\n<li>Buy a self-test online or at a store. Make sure that the test you buy has been authorized by the U.S. Food and Drug Administration (FDA).</li>\n<li>Check your state or local health department\'s website for information on testing in your area.</li>\n<li>Contact your health care provider.</li>\n<li>Order free self-tests from <a href="https://www.covid.gov/tests">COVID.gov</a> for your household, if you live in the U.S. The tests are from the U.S. government.\n</li></ul>\n\n<p>Even if your COVID-19 viral test is negative (the test did not detect the virus), you should still take steps to <a href="https://www.cdc.gov/coronavirus/2019-ncov/prevent-getting-sick/prevention.html">protect yourself and others</a>.</p>\n\n<p class="NLMattribution"> Centers for Disease Control and Prevention</p>\n\n'}];function jfe(e){const[a,n]=c(!0),[r,i]=c(null);return td((function(){if("default"==e.previewState)return i(Nfe),void n(!1);if("noData"==e.previewState)return i([]),void n(!1);let t="";return e.labObservationID?t=new URLSearchParams({LabObservationID:e.labObservationID}).toString():e.term&&(t=new URLSearchParams(e.term).toString()),b.invokeCustomApi("HealthAndWellnessApi.TermInformation","GET",t,!0).then((function(e){i(e),n(!1)}))}),[],[e.labObservationID,e.term]),a?t.createElement(ZA,null):t.createElement("div",{className:"mdhui-term-information"},0==r?.length&&t.createElement(t.Fragment,null,t.createElement(iM,{order:4,defaultMargin:!0},eo("term-information-not-found-header")),t.createElement(Uq,null,eo("term-information-not-found-body"))),r&&r?.length>0&&t.createElement(Uq,{className:"mdhui-term-information-disclaimer"},t.createElement("div",{dangerouslySetInnerHTML:{__html:eo("term-information-disclaimer")}})),r?.map(((a,n)=>t.createElement(eS,{key:n},t.createElement(iM,{order:3,defaultMargin:!0},a.Title),t.createElement(Uq,{className:"mdhui-term-information-html"},function(a){let n=JT(a,{replace:a=>{let n=a;if("a"===n.name){let a=function(t){e.openLinksInNewWindow||(b.openEmbeddedUrl(n.attribs.href),t.preventDefault())};return t.createElement("a",{href:n.attribs.href,target:"_blank",onClick:e=>a(e)},n.children[0].data)}return n}});return n}(a.Summary)),t.createElement(Uq,null,t.createElement("a",{href:a.Link,target:"_blank"},eo("term-information-view-on-medline")))))))}w(".mdhui-term-information .mdhui-term-information-html h2 {\n font-size: 1.2em;\n}\n\n.mdhui-term-information .mdhui-term-information-disclaimer {\n color: var(--mdhui-text-color-2);\n font-size: .7em;\n}");function zfe(e){const[a,n]=c(null),[r,i]=c(!1);function o(e){e=e.filter((e=>"Device Manufacturer"==e.provider.category)),n(e)}if(td((function(){if(e.previewState){let t=vde.filter((e=>"Device Manufacturer"==e.provider.category));return t[0].status=e.previewState,void o(t)}b.getExternalAccounts().then((function(e){o(e)})),sc(!0).then((t=>{0!==e.dataTypes.length?Promise.any(e.dataTypes.map((e=>e.availabilityCheck(t).then((e=>e?Promise.resolve():Promise.reject()))))).then((()=>{i(!0)})).catch((()=>{i(!1)})):i(!1)}))}),["externalAccountSyncComplete"]),!(a&&a.length||r))return null;const s=t.createElement(YA,{color:e.buttonColor,variant:e.buttonVariant||"light",onClick:()=>{}},eo("view"));return t.createElement($a,{innerRef:e.innerRef,className:"mdhui-view-device-activity",renderAs:"div",onClick:()=>e.onClick(),indicator:s},t.createElement(iM,{order:3},e.title||eo("device-activity")),a?.find((e=>"fetchingData"==e.status))&&t.createElement("div",{className:"mdhui-view-device-activity-status"},t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-fetching-data")))}w(".mdhui-view-device-activity .mdhui-view-device-activity-status {\n margin-top: var(--mdhui-padding-md);\n}");function Rfe(e){const[a,n]=c(!1),[r,i]=c(!1);return td((()=>"notConnected"===e.previewState?(n(!1),void i(!1)):e.previewState?(n(!0),void i("fetchingData"===e.previewState)):void Promise.all([b.getExternalAccounts(),b.getDataAvailability()]).then((([e,t])=>{const a=e.filter((e=>["Provider","Health Plan"].includes(e.provider.category)));n(a.length>0||t.appleHealthRecords||t.healthConnectPhr),i(a.some((e=>"fetchingData"===e.status)))}))),["externalAccountSyncComplete"],[e.previewState]),a?t.createElement($a,{className:"mdhui-view-ehr",renderAs:"div",indicator:t.createElement(YA,{color:e.buttonColor,variant:e.buttonVariant||"light",onClick:oM},eo("view")),onClick:e.onClick,innerRef:e.innerRef},t.createElement(iM,{order:3},e.title||eo("health-records")),r&&t.createElement("div",{className:"mdhui-view-ehr-status"},t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-fetching-data"))):null}function Lfe(e){const a=i(nM),[n,r]=c(Ni()),[o,s]=c(on(Ni(),{days:-6})),[l,u]=c(!0);td((()=>{if(!kn(n,Ni()))return r(Ni()),void s(on(Ni(),{days:-6}));u(!0),e.loadData(on(o,{days:-7}),on(o,{days:14})).then((()=>{u(!1)}))}),["externalAccountSyncComplete"],[o,...e.dependencies??[]]);const d=e=>{a?.update({intervalStart:e})};return t.createElement(hye,{innerRef:e.innerRef,startDate:o,onStartDateChange:e=>{s(e),d(on(e,{days:6}))},selectedDate:e.selectedDate,onDateSelected:d,dayRenderer:(t,a,n)=>e.dayRenderer(Ri(new Date(t,a,n))),loading:l})}function Ffe(e){const a=i(nM),n=i(Xge);if(!n)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Meal Buttons must be used within a Meal Coordinator.");const r=t=>{if(e.preview)return void(e.autoLaunchEditor&&e.onEditMeal&&e.onEditMeal());let r=new Date;const i={id:gp(),timestamp:a?on(gn(a.intervalStart),{hours:r.getHours(),minutes:r.getMinutes()}):r,type:t,created:r,lastModified:r};n.addMeal(i).then((()=>{e.autoLaunchEditor&&e.onEditMeal&&kd(i).then(e.onEditMeal)}))};return t.createElement("div",{className:"mdhui-meal-buttons",ref:e.innerRef},t.createElement(YA,{onClick:()=>r("meal"),variant:"light",disabled:n.loading},t.createElement(Me,{icon:G})," ",jd("meal")),t.createElement(YA,{onClick:()=>r("snack"),variant:"light",disabled:n.loading},t.createElement(Me,{icon:re})," ",jd("snack")),t.createElement(YA,{onClick:()=>r("drink"),variant:"light",disabled:n.loading},t.createElement(Me,{icon:me})," ",jd("drink")))}w(".mdhui-view-ehr .mdhui-view-ehr-status {\n margin-top: var(--mdhui-padding-md);\n}");w(".mdhui-meal-log {\n padding: 16px 0 0;\n}\n\n.mdhui-meal-log .mdhui-title {\n padding: 0 16px;\n}\n\n.mdhui-meal-log .mdhui-loading-indicator {\n padding: 16px 16px 32px;\n}\n\n.mdhui-meal-log-empty-text {\n color: var(--mdhui-text-color-3);\n padding: 16px 16px 32px;\n text-align: center;\n}");function Bfe(e){const a=i(Ua),[n,r]=c(!0);return l((()=>{r(!!e.mealImageUrl)}),[e.mealImageUrl]),t.createElement("div",{className:"mdhui-meal",ref:e.innerRef},t.createElement(Hfe,{onClick:e.onClick},t.createElement("div",{className:"mdhui-meal-thumbnail"},!e.mealImageUrl&&t.createElement(t.Fragment,null,"meal"===e.meal.type&&t.createElement(Me,{icon:G}),"snack"===e.meal.type&&t.createElement(Me,{icon:re}),"drink"===e.meal.type&&t.createElement(Me,{icon:me})),e.mealImageUrl&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-meal-thumbnail-image",style:{display:n?"none":"block"}},t.createElement("img",{alt:"meal thumbnail",src:e.mealImageUrl,onLoad:()=>r(!1)})),n&&t.createElement(ZA,{className:"mdhui-meal-loading"})),void 0!==e.number&&t.createElement("div",{className:"mdhui-meal-number",style:{background:De(a.colorScheme,e.color)}},e.number))),t.createElement(Hfe,{onClick:e.onClick},t.createElement("div",{className:"mdhui-meal-info"},t.createElement("div",{className:"mdhui-meal-type"},jd(e.meal.type)," ",e.selected&&t.createElement(Me,{icon:R,color:"var(--mdhui-color-success)"})),t.createElement("div",{className:"mdhui-meal-time"},dl(e.meal.timestamp)),e.meal.description&&t.createElement("div",{className:"mdhui-meal-description"},e.meal.description))),e.onEdit&&t.createElement(k,{onClick:()=>e.onEdit(),style:{height:"100%"}},t.createElement("div",{className:"mdhui-meal-edit-action"},t.createElement(Me,{icon:E}))))}function Hfe(e){return e.onClick?t.createElement(k,{onClick:()=>e.onClick(),style:{height:"100%"}},e.children):t.createElement(t.Fragment,null,e.children)}function qfe(e){const a=i(Xge);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Meal Log must be used within a Meal Coordinator.");return t.createElement("div",{className:"mdhui-meal-log",ref:e.innerRef},t.createElement(iM,{order:3},eo("meal-log-title")),a.loading&&t.createElement(ZA,null),!a.loading&&0===a.meals.length&&t.createElement("div",{className:"mdhui-meal-log-empty-text"},eo("meal-log-no-data")),!a.loading&&a.meals.map(((n,r)=>t.createElement(Bfe,{key:`meal-${r}`,meal:n,mealImageUrl:a.imageUrls[n.id.toString()],number:e.showMealNumbers?r+1:void 0,color:Ne(r),onClick:()=>a.onMealClicked(n),onEdit:()=>(t=>{e.preview?e.onEditMeal():kd(t).then(e.onEditMeal)})(n),selected:!!e.highlightSelectedMeal&&a.selectedMeal===n}))))}w(".mdhui-meal {\n display: grid;\n grid-template-columns: max-content auto max-content;\n align-items: start;\n border-bottom: 1px solid var(--mdhui-border-color-0);\n}\n\n.mdhui-meal .mdhui-unstyled-button {\n display: inline-flex;\n}\n\n.mdhui-meal:last-child {\n border: none;\n}\n\n.mdhui-meal-thumbnail {\n position: relative;\n height: 48px;\n width: 48px;\n line-height: 48px;\n text-align: center;\n color: var(--mdhui-text-color-2);\n background: var(--mdhui-background-color-1);\n border: 1px solid var(--mdhui-border-color-2);\n border-radius: 5px;\n margin: 16px 8px 16px 16px;\n}\n\n.mdhui-meal-thumbnail-image img {\n height: 48px;\n width: 48px;\n object-fit: cover;\n}\n\n.mdhui-meal-loading.mdhui-loading-indicator {\n padding: 0;\n}\n\n.mdhui-meal-number {\n position: absolute;\n top: -6px;\n left: -6px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n font-size: 0.7em;\n font-family: monospace;\n color: #fff;\n text-align: center;\n border-radius: 10px;\n}\n\n.mdhui-meal-number-old {\n font-size: 0.8em;\n height: 24px;\n line-height: 24px;\n padding: 0 8px;\n color: #fff;\n border-radius: 12px;\n margin: 24px 8px 16px 16px;\n}\n\n.mdhui-meal-info {\n margin: 16px 8px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-meal-type {\n font-size: 0.9em;\n font-weight: bold;\n}\n\n.mdhui-meal-time {\n color: var(--mdhui-text-color-1);\n font-size: 0.9em;\n}\n\n.mdhui-meal-description {\n margin-top: 8px;\n font-size: 0.75em;\n}\n\n.mdhui-meal-edit-action {\n margin: 24px 16px 16px;\n color: var(--mdhui-text-color-2);\n}");function Vfe(e){var a=el(e.intervalStart.getFullYear(),e.intervalStart.getMonth());const n=i(Ua);function r(e){return e.data.filter((e=>e)).length}return t.createElement("div",{ref:e.innerRef,className:"mdhui-monthly-event-matrix"},e.rows.length>0&&t.createElement("table",{cellPadding:"0",cellSpacing:"0"},t.createElement("thead",null,e.title&&t.createElement("tr",null,t.createElement("th",{colSpan:100},e.title)),t.createElement("tr",null,t.createElement("td",{className:"mdhui-monthly-event-matrix-title"}),t.createElement("td",null),a.map((e=>t.createElement("td",{key:e.toISOString(),style:{width:75/a.length+"%"}},t.createElement("div",{className:"mdhui-monthly-event-matrix-day-number"},e.getDate())))))),t.createElement("tbody",null,e.rows.map((e=>t.createElement("tr",{key:e.label},t.createElement("td",{className:"mdhui-monthly-event-matrix-row-label"},e.label," "),t.createElement("td",{className:"mdhui-monthly-event-matrix-row-total"},t.createElement("span",null,r(e)>0?r(e):t.createElement(t.Fragment,null," "))),a.map(((r,i)=>t.createElement("td",{key:r.toISOString(),style:{width:75/a.length+"%"}},t.createElement("div",{className:"mdhui-monthly-event-matrix-circle",style:{backgroundColor:e.data[i]?De(n.colorScheme,e.color):"#ddd"}}))))))))))}w(".mdhui-monthly-event-matrix {\n margin: 16px;\n}\n\n.mdhui-monthly-event-matrix table {\n width: 100%;\n page-break-inside: avoid;\n}\n\n.mdhui-monthly-event-matrix table th,\n.mdhui-monthly-event-matrix table td {\n vertical-align: top;\n}\n\n.mdhui-monthly-event-matrix table th {\n text-align: left;\n border: none;\n font-weight: normal;\n font-size: 15px;\n padding: 0;\n padding-bottom: 8px;\n padding-right: 8px;\n}\n\n.mdhui-monthly-event-matrix table thead th {\n text-align: left;\n font-weight: bold;\n font-size: 17px;\n padding-bottom: 8px;\n}\n\n.mdhui-monthly-event-matrix table thead .mdhui-monthly-event-matrix-day-number {\n width: 100%;\n min-width: 20px;\n text-align: center;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-monthly-event-matrix table td {\n padding: 0;\n text-align: center;\n padding-bottom: 8px;\n}\n\n.mdhui-monthly-event-matrix table td.mdhui-monthly-event-matrix-row-label {\n text-align: left;\n border: none;\n font-weight: normal;\n font-size: 15px;\n padding: 0;\n padding-bottom: 8px;\n padding-right: 8px;\n width: 22%;\n}\n\n.mdhui-monthly-event-matrix table td .mdhui-monthly-event-matrix-circle {\n display: inline-block;\n width: 14px;\n height: 14px;\n border-radius: 8px;\n font-size: 9px;\n color: var(--mdhui-background-color-0);\n line-height: 14px;\n text-align: center;\n position: relative;\n}\n\n.mdhui-monthly-event-matrix table td.mdhui-monthly-event-matrix-total {\n padding-right: 8px;\n font-weight: bold;\n font-size: 15px;\n text-align: right;\n width: 3%;\n box-sizing: border-box;\n}");function Ufe(e){const a=s(null);v((()=>{const{current:e}=a;function t(){window.scrollY>0?e?.classList.add("scroll-shadow"):e?.classList.remove("scroll-shadow")}return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}));let n=["mdhui-navigation-bar"];e.className&&n.push(e.className),"compressed"==e.variant&&n.push("mdhui-navigation-bar-compressed"),"compressedModal"==e.variant&&n.push("mdhui-navigation-bar-compressed-modal");let r=i(Ua);return t.createElement("div",{className:n.join(" "),ref:a,style:{background:De(r?.colorScheme,e.backgroundColor)}},e.showBackButton&&t.createElement("div",{className:"button back-button",onClick:()=>{e.onBack?e.onBack():b.back()},style:{color:De(r?.colorScheme,e.buttonColor)}},t.createElement(Me,{icon:be}),e.backButtonText?e.backButtonText:eo("back")),e.navigationBarLeft&&t.createElement("div",{className:"navigation-bar-left"},e.navigationBarLeft),e.title&&t.createElement("div",{className:"title",style:{color:De(r?.colorScheme,e.titleColor)}},t.createElement("span",null,e.title)),e.subtitle&&t.createElement("div",{className:"subtitle",style:{color:De(r?.colorScheme,e.subtitleColor),marginTop:e.title?"var(--mdhui-padding-sm)":"0"}},t.createElement("span",null,e.subtitle)),e.navigationBarRight&&t.createElement("div",{className:"navigation-bar-right"},e.navigationBarRight),e.showCloseButton&&t.createElement("div",{className:"button close-button",onClick:()=>{e.onClose?e.onClose():b.dismiss()},style:{color:De(r?.colorScheme,e.buttonColor)}},e.closeButtonText?e.closeButtonText:eo("close")),e.children&&t.createElement("div",{className:"children"},e.children))}w(".mdhui-navigation-bar {\n text-align: left;\n padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;\n min-height: calc(56px + env(safe-area-inset-top, 0px));\n margin-bottom: 8px;\n box-sizing: border-box;\n position: -webkit-sticky;\n position: sticky;\n z-index: 2;\n top: 0;\n font-weight: bold;\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed {\n text-align: center;\n font-size: 18px;\n}\n\n.mdhui-navigation-bar .title {\n margin-top: 44px;\n height: 32px;\n line-height: 32px;\n font-size: 1.2em;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed .title {\n margin-top: 6px;\n}\n\n.mdhui-navigation-bar .subtitle {\n font-size: 1em;\n font-weight: 500;\n color: var(--mdhui-text-color-2);\n margin-top: 8px;\n}\n\n.mdhui-navigation-bar.scroll-shadow {\n box-shadow: var(--mdhui-box-shadow-1);\n}\n\n.mdhui-navigation-bar .icon {\n width: 32px;\n vertical-align: middle;\n}\n\n.mdhui-navigation-bar .button {\n position: absolute;\n top: calc(12px + env(safe-area-inset-top, 0px));\n height: 32px;\n line-height: 32px;\n border-radius: 16px;\n font-weight: normal;\n font-size: .88em;\n cursor: pointer;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-navigation-bar .back-button {\n left: 16px;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed-modal {\n text-align: left;\n padding-top: calc(16px + env(safe-area-inset-top, 0px));\n font-size: 18px;\n margin-bottom: 0;\n}\n\n.mdhui-navigation-bar .close-button {\n right: 16px;\n}\n\n.mdhui-navigation-bar .children {\n padding-top: 56px;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed .children {\n padding-top: calc(32px + env(safe-area-inset-top, 0px));\n}");function Wfe(e){const[a,n]=c(!1),r=s(null);return l((()=>{r.current.style.height="1px",r.current.style.height=r.current.scrollHeight+"px"}),[e.value]),t.createElement("textarea",{title:eo("add-notes"),ref:r,onClick:t=>function(t){if(!a&&e.autoTimestamp){n(!0);var i="";e.value.length&&(i=e.value+"\n\n"),i+="-- "+dl(new Date)+" --\n",e.onChange(i),t.stopPropagation(),r.current?.focus()}}(t),onChange:t=>e.onChange(t.target.value),className:"notes-input",placeholder:e.placeholder,value:e.value})}w(".notes-input {\n width: 100%;\n text-align: left;\n border: 0;\n font-size: .88em;\n border: none;\n font-family: Helvetica, Arial, sans-serif;\n padding-top: 16px;\n resize: none;\n background: var(--mdhui-background-color-2);\n border-radius: var(--mdhui-card-border-radius);\n padding: 16px;\n box-sizing: border-box;\n border: solid 1px var(--mdhui-color-primary);\n overflow: hidden;\n -webkit-appearance: none;\n box-shadow: none !important;\n color: var(--mdhui-text-color-1);\n margin-bottom: 16px;\n}");function $fe(e){let a=i(Ua),n=["mdhui-progress-bar"];return e.defaultMargin&&n.push("mdhui-progress-bar-default-margin"),t.createElement("div",{className:n.join(" "),ref:e.innerRef},t.createElement("div",{className:"mdhui-progress-bar-background",style:{background:De(a?.colorScheme,e.backgroundColor)}},t.createElement("div",{className:"mdhui-progress-bar-fill",style:{width:Math.trunc(e.fillPercent)+"%",background:De(a?.colorScheme,e.fillColor)}}),t.createElement(JA,null)),t.createElement("div",{className:"mdhui-progress-steps"},e.steps&&t.createElement(t.Fragment,null,e.steps.map(((e,a)=>t.createElement("div",{key:`${a}-step`,className:"step-icon",style:{left:Math.trunc(e.percent)+"%"}},e.icon))))))}function Gfe(e){let a=i(Ua),n="calc( var(--icon_size) / 2 - "+e.height+" / 2 - 4px)";return t.createElement("span",{style:{border:"2px solid",borderColor:De(a?.colorScheme,e.borderColor),borderRadius:e.height,height:e.height,width:e.height,marginTop:n,backgroundColor:De(a?.colorScheme,e.backgroundColor),padding:"4px 4px"}},e.children)}w(".mdhui-progress-bar {\n\tdisplay: block;\n\twidth: 100%;\n\tposition: relative;\n\t--icon_size: 24px;\n\t--icon_border_width: 2px;\n}\n\n.mdhui-progress-bar.mdhui-progress-bar-default-margin {\n\tmargin: 16px;\n\twidth: calc(100% - 32px)\n}\n\n.mdhui-progress-bar .mdhui-progress-bar-background {\n\tborder-radius: 500px;\n\tborder-width: var(--icon_border_width);\n\tborder-style: none;\n\tbackground: #fff;\n\toverflow: hidden;\n\twidth: 100%;\n\tposition: relative;\n\theight: calc(var(--icon_size) + 4px);\n\tz-index: 1;\n}\n\n.mdhui-progress-bar .mdhui-progress-bar-background .mdhui-progress-bar-fill {\n\tposition: absolute;\n\tmin-height: 1px;\n\theight: calc(var(--icon_size) + 4px);\n\ttop: 0;\n\tborder-radius: var(--icon_size);\n\ttransition: width 1s ease-in-out;\n}\n\n.mdhui-progress-bar .mdhui-progress-steps {\n\ttop: 0;\n\twidth: 100%;\n\tposition: absolute;\n\tz-index: 2;\n\tdisplay: inline-block;\n}\n\n.mdhui-progress-bar .step-icon {\n\tposition: absolute;\n\ttransform: translate(-100%, 0);\n}\n\n.mdhui-progress-bar .step-icon * {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}"),$fe.defaultProps={backgroundColor:"var(--mdhui-background-color-0)",fillColor:"var(--mdhui-color-primary)",fillPercent:0};function Kfe(e){const a=i(Ua);let n=0;e.percentCompleted&&(n=630-e.percentCompleted/100*630);const r={stroke:De(a.colorScheme,e.color),strokeDashoffset:n,animation:e.animate?"mdhui-progress-ring 750ms ease-in-out":void 0,"--mdhui-progress-ring-animation-end":n},o={opacity:e.animate?0:1,animation:e.animate?"fadein 500ms ease-in-out":void 0,animationDelay:"500ms",animationFillMode:"forwards"};return t.createElement("div",{className:"mdhui-progress-ring",style:e.style},t.createElement("svg",null,t.createElement("circle",{cx:"50%",cy:"50%",r:"100"}),t.createElement("circle",{cx:"50%",cy:"50%",r:"100",style:r})),t.createElement("div",{className:"mdhui-progress-ring-content",style:o},e.children))}w("@keyframes mdhui-progress-ring {\n 0% {\n stroke-dashoffset: var(--mdhui-progress-ring-animation-start);\n }\n 100% {\n stroke-dashoffset: var(--mdhui-progress-ring-animation-end);\n }\n}\n\n.mdhui-progress-ring {\n position: relative;\n margin: 0 auto 0 auto;\n width: 220px;\n height: 220px;\n --mdhui-progress-ring-animation-start: 630;\n --mdhui-progress-ring-animation-end: 0;\n}\n\n.mdhui-progress-ring svg {\n width: 220px;\n height: 220px;\n transform: rotate(-90deg);\n}\n\n.mdhui-progress-ring circle {\n margin: 0 auto;\n fill: none;\n stroke-width: 20;\n stroke-dasharray: 630;\n stroke-linecap: round;\n}\n\n.mdhui-progress-ring circle:nth-child(2) {\n stroke: var(--mdhui-color-primary);\n animation-fill-mode: forwards;\n}\n\n.mdhui-progress-ring-content {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}");function Zfe(e){return t.createElement("div",{className:"mdhui-resource",ref:e.innerRef},t.createElement(k,{onClick:()=>e.onClick()},e.imageUrl&&t.createElement("div",{className:"mdhui-resource-image",style:{textAlign:e.imageAlignment??"left"}},t.createElement("img",{src:e.imageUrl,alt:"resource image"})),t.createElement("div",{className:"mdhui-resource-title"},e.title),t.createElement("div",{className:"mdhui-resource-subtitle"},e.subTitle),"button"===e.buttonVariant&&t.createElement("div",{className:"mdhui-button mdhui-resource-button",onClick:oM},e.buttonText||eo("resource-default-button-text")),"link"===e.buttonVariant&&t.createElement("div",{className:"mdhui-resource-link"},e.buttonText||eo("resource-default-button-text"))))}w(".mdhui-resource {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-resource .mdhui-unstyled-button {\n width: 100%;\n padding: 16px;\n}\n\n.mdhui-resource-image {\n width: 100%;\n margin-bottom: 16px;\n}\n\n.mdhui-resource-image img {\n max-width: 100%;\n}\n\n.mdhui-resource-title {\n font-size: 1.3em;\n font-weight: 600;\n}\n\n.mdhui-resource-subtitle {\n font-size: 0.95em;\n margin: 12px 0 0;\n}\n\n.mdhui-resource-button {\n margin: 12px 0 0;\n}\n\n.mdhui-resource-link {\n color: var(--mdhui-color-primary);\n font-weight: 500;\n margin: 16px 0 0;\n}");w(".mdhui-resource-list {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n\n.mdhui-resource-list-empty-text {\n color: var(--mdhui-text-color-3);\n padding: 16px 0;\n}");const Yfe={"no resources":{resources:[]},"some resources":{resources:[{title:"Resource 1 Title",subTitle:"resource 1 subtitle",imageUrl:Ege},{title:"Resource 2 Title",subTitle:"resource 2 subtitle",imageUrl:Ege},{title:"Resource 3 Title",subTitle:"resource 3 subtitle",imageUrl:Ege},{title:"Resource 4 Title",subTitle:"resource 4 subtitle",imageUrl:Ege},{title:"Resource 5 Title",subTitle:"resource 5 subtitle",imageUrl:Ege}]}};function Qfe(e){let a=e.previewState?Yfe[e.previewState].resources:e.resources;return t.createElement("div",{className:"mdhui-resource-list",ref:e.innerRef},t.createElement(t.Fragment,null,a.length>0&&a.map(((a,n)=>t.createElement(Zfe,{key:n,title:a.title,subTitle:a.subTitle,imageUrl:a.imageUrl,onClick:()=>e.onViewResource(a),imageAlignment:e.imageAlignment,buttonVariant:e.buttonVariant,buttonText:e.buttonText}))),0===a.length&&t.createElement("div",{className:"mdhui-resource-list-empty-text"},e.emptyText||eo("resource-list-empty-text"))))}function Xfe(e){let a=d.toArray(e.children);if(0===a.length)return t.createElement("div",{ref:e.innerRef});let n,r=new Date,i=e.startDate;return Ar(i,r)&&(i=r),n="month"===e.interval?On(r,i)%a.length:"week"===e.interval?function(e,t,a){const n=An(e,t,a)/7;return En(a?.roundingMethod)(n)}(r,i)%a.length:An(r,i)%a.length,t.createElement("div",{ref:e.innerRef},a[n])}function Jfe(e){if(!e.children)return null;let a=i(Ua),n=De(a?.colorScheme,e.backgroundColor);return t.createElement("div",{ref:e.innerRef,style:{...e.style,backgroundColor:n},className:"mdhui-section "+(e.className||"")+(e.noTopMargin?" mdhui-section-no-top-margin":"")},e.children)}w(".mdhui-section {\n margin-top: 16px;\n margin-bottom: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n display: flow-root;\n}\n\n.mdhui-section:empty {\n display: none;\n}\n\n.mdhui-section.mdhui-section-no-top-margin {\n margin-top: 0;\n}");function eye(e){var a=100/e.segments.length;let n=["mdhui-segmented-control"];return e.className&&n.push(e.className),"optionsHorizontal"==e.variant&&n.push("mdhui-segmented-control-options-horizontal"),"optionsVertical"==e.variant&&n.push("mdhui-segmented-control-options-vertical"),t.createElement("div",{ref:e.innerRef,style:{...e.style,borderColor:e.color},className:n.join(" ")},e.segments.map((n=>t.createElement(k,{className:"mdhui-segment "+(n.key==e.selectedSegment?"mdhui-segment-selected":""),key:n.key,onClick:()=>e.onSegmentSelected(n.key),style:{width:a+"%",color:n.key==e.selectedSegment?void 0:e.color,backgroundColor:n.key==e.selectedSegment?e.color:void 0}},n.key==e.selectedSegment&&t.createElement(JA,null),n.title))))}w(".mdhui-segmented-control {\n border-radius: 32px;\n border: solid 1px var(--mdhui-color-primary);\n background: var(--mdhui-background-color-0);\n overflow: hidden;\n padding: 1px;\n}\n\n.mdhui-segmented-control .mdhui-segment {\n display: inline-block;\n font-size: .7em;\n cursor: pointer;\n text-align: center;\n padding: 8px;\n box-sizing: border-box;\n font-weight: bold;\n color: var(--mdhui-color-primary);\n position: relative;\n border-radius: 32px;\n overflow: hidden;\n vertical-align: top;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1em;\n}\n\n.mdhui-segmented-control .mdhui-segment:last-child {\n border: none;\n}\n\n.mdhui-segmented-control .mdhui-segment.mdhui-segment-selected {\n background: var(--mdhui-color-primary);\n color: #FFF;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-horizontal,\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical {\n font-size: .88em;\n padding: 0;\n border-radius: var(--mdhui-card-border-radius);\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-horizontal .mdhui-segment,\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment {\n font-size: .88em;\n border-radius: 0;\n font-weight: normal;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-horizontal .mdhui-segment.mdhui-segment-selected,\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment.mdhui-segment-selected {\n background: var(--mdhui-color-primary);\n color: #FFF;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment {\n width: 100% !important;\n border-bottom: solid 1px var(--mdhui-color-primary);\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment:last-child {\n border: none;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-default-margin {\n margin: 16px;\n}\n");function tye(e){const a=()=>t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-single-data-point-value-units"},!e.value&&t.createElement("div",{className:"mdhui-single-data-point-value"},"..."),e.value&&t.createElement("div",{className:"mdhui-single-data-point-value"},e.value),e.value&&e.units&&t.createElement("div",{className:"mdhui-single-data-point-units"},e.units)),t.createElement("div",{className:"mdhui-single-data-point-label"},e.label),e.statusText&&t.createElement("div",{className:"mdhui-single-data-point-status",style:e.statusColor?{color:e.statusColor}:void 0},e.statusText));return t.createElement("div",{ref:e.innerRef},e.onClick&&t.createElement(k,{className:"mdhui-single-data-point",onClick:()=>e.onClick()},a()),!e.onClick&&t.createElement("div",{className:"mdhui-single-data-point"},a()))}w(".mdhui-single-data-point, .mdhui-unstyled-button.mdhui-single-data-point {\n display: grid;\n grid-template-columns: 1fr;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n border: 1px solid var(--mdhui-border-color-1);\n background: var(--mdhui-background-color-0);\n min-height: 60px;\n width: 100%;\n box-sizing: border-box;\n}\n\n.mdhui-single-data-point-value-units {\n display: grid;\n grid-template-columns: max-content auto;\n align-items: baseline;\n grid-column-gap: 2px;\n}\n\n.mdhui-single-data-point-setup {\n font-size: 1.3em;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-single-data-point-value {\n font-size: 1.3em;\n font-weight: bold;\n}\n\n.mdhui-single-data-point-units {\n color: var(--mdhui-text-color-3);\n font-size: 0.8em;\n}\n\n.mdhui-single-data-point-label {\n font-size: 0.7em;\n font-weight: bold;\n}\n\n.mdhui-single-data-point-status {\n font-size: 0.7em;\n font-weight: bold;\n}");function aye(e){const[a,n]=c("");function r(){return a||e.externalAccount.status}return t.createElement("div",{ref:e.innerRef,className:"mdhui-single-external-account"},t.createElement("div",{className:"external-account-header"},e.externalAccount.provider.logoUrl&&t.createElement("img",{alt:e.externalAccount.provider.name,src:e.externalAccount.provider.logoUrl,className:"external-account-provider-logo"}),!e.externalAccount.provider.logoUrl&&t.createElement("div",{className:"external-account-provider-name"},e.externalAccount.provider.name),"deleting"!==r()&&"fetchingData"!==r()&&t.createElement(k,{className:"delete-button",onClick:function(){n("deleting"),b.deleteExternalAccount(e.externalAccount.id).then((function(){e.onAccountRemoved(e.externalAccount)})).catch((function(){n("")}))},title:eo("external-account-remove")},t.createElement(Me,{icon:Q}))),t.createElement("div",{className:"external-account-status"},"unauthorized"===r()&&t.createElement("p",null,t.createElement("span",{className:"error"},eo("external-account-authorization-expired"))),"fetchingData"===r()&&t.createElement("p",null,t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-fetching-data")),"fetchComplete"===r()&&t.createElement("p",null,eo("external-account-last-updated")," ",t.createElement("strong",null,ul(e.externalAccount.lastRefreshDate,new Date))),"error"===r()&&t.createElement("p",{className:"error"},eo("external-account-error")),("fetchComplete"===r()||"error"===r())&&t.createElement("p",null,t.createElement("a",{href:"javascript:{}",onClick:function(){n("fetchingData"),b.refreshExternalAccount(e.externalAccount.id).then()}},t.createElement(Me,{icon:D})," ",eo("external-account-refresh"))),"unauthorized"===r()&&t.createElement("p",null,t.createElement("a",{href:"javascript:{}",onClick:()=>e.onReconnectAccount(e.externalAccount)},t.createElement(Me,{icon:D})," ",eo("external-account-reconnect"))),"deleting"===r()&&t.createElement("p",null,t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-deleting"))))}w(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 8px;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-single-external-account .external-account-header .delete-button {\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n padding: 16px;\n color: var(--mdhui-text-color-4);\n width: auto;\n font-size: .88em;\n border: none;\n background: none;\n height: 100%;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-logo {\n height: 24px;\n display: block;\n background: #FFF;\n padding: 8px;\n border-radius: 8px;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-name {\n font-size: 1em;\n font-weight: bold;\n}\n\n.mdhui-single-external-account .external-account-status {\n padding: 16px;\n padding-bottom: 0;\n padding-top: 0;\n font-size: .88em;\n}\n\n.mdhui-single-external-account .external-account-status p {\n margin-bottom: 16px;\n margin-top: 16px;\n}\n\n.mdhui-single-external-account .external-account-status a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.mdhui-single-external-account .external-account-status .error {\n color: var(--mdhui-color-danger);\n}");function nye(e){return e.notification?t.createElement("div",{ref:e.innerRef,className:"mdhui-single-notification"},e.notification.content?.title&&t.createElement("div",{className:"notification-title"},e.notification.content.title),e.notification.content?.subject&&t.createElement("div",{className:"notification-title"},e.notification.content.subject),e.notification.content?.body&&t.createElement("div",{className:"notification-body"},e.notification.content.body),t.createElement("div",{className:"notification-date"},ul(e.notification.sentDate,new Date))):t.createElement("div",{ref:e.innerRef,className:"mdhui-single-notification"},t.createElement("div",{className:"notification-body"},"No notifications received"))}w(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: relative;\n}\n\n .mdhui-single-notification:last-child\n {\n border: none;\n }\n\n .mdhui-single-notification > .notification-title\n {\n font-weight: bold;\n }\n\n .mdhui-single-notification > .notification-body\n {\n font-size: .88em;\n }\n\n .mdhui-single-notification > .notification-date\n {\n color: var(--mdhui-text-color-2);\n margin-top: 16px;\n font-size: .75em;\n }\n");w(".mdhui-single-survey-task {\n border-radius: inherit;\n}\n\n.mdhui-single-survey-task.incomplete-expanded {\n padding: 16px;\n width: 100%;\n box-sizing: border-box;\n}\n\n.mdhui-single-survey-task.incomplete-expanded.active {\n cursor: pointer;\n}\n\n.mdhui-single-survey-task.incomplete-expanded .header {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n}\n\n.mdhui-single-survey-task .survey-name {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-single-survey-task.incomplete-expanded .survey-name {\n font-size: 1.3em;\n}\n\n.mdhui-single-survey-task .survey-description {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-single-survey-task.incomplete-expanded .survey-description {\n font-size: 1em;\n margin: 12px 0;\n}\n\n.mdhui-single-survey-task .completed-date {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-single-survey-task .due-date {\n font-size: .88em;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-single-survey-task .due-date.warning {\n color: var(--mdhui-color-warning);\n font-weight: bold;\n}\n\n.mdhui-single-survey-task .due-date.danger {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n}");var rye="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='24' viewBox='0 0 21 24' fill='none'%3e%3cg clip-path='url(%23clip0_881_3509)'%3e%3cpath d='M20.6718 4.82803C21.1124 5.26865 21.1124 5.98115 20.6718 6.41709L8.29678 18.7968C7.85615 19.2374 7.14365 19.2374 6.70772 18.7968L0.328027 12.4218C-0.112598 11.9812 -0.112598 11.2687 0.328027 10.8327C0.768652 10.3968 1.48115 10.3921 1.91709 10.8327L7.49521 16.4108L19.078 4.82803C19.5187 4.3874 20.2312 4.3874 20.6671 4.82803H20.6718Z' fill='%2314B856'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_881_3509'%3e%3crect width='21' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function iye(e){const a=i(Ua),n=()=>{let a,n=Ni(),r=on(new Date(n),{days:1}),i=Ei(e.task.dueDate??""),o=["due-date"];return kn(i,r)?(a=eo("due-tomorrow"),o.push("warning")):kn(i,n)?(a=eo("due-today"),o.push("warning")):Ar(n,i)?(a=eo("overdue"),o.push("danger")):a=eo("due-in")+" "+function(e){const t=Xs(e);return t?kr(t,{locale:gl()}):""}(i),t.createElement("div",{className:o.join(" ")},a)};return"incomplete"===e.task.status&&"expanded"===e.variant?t.createElement("div",{className:"mdhui-single-survey-task incomplete-expanded "+(e.surveyBlocked?"":"active"),onClick:e.surveyBlocked?void 0:()=>e.onClick()},t.createElement("div",{className:"header"},t.createElement("div",{className:"survey-name"},e.task.surveyDisplayName),e.task.dueDate&&n()),t.createElement("div",{className:"survey-description"},t.createElement(t.Fragment,null,e.descriptionIcon," ",e.task.surveyDescription)),e.surveyActive&&t.createElement(ZA,null),!e.surveyActive&&t.createElement(YA,{color:De(a.colorScheme,e.buttonColor),variant:e.buttonVariant,onClick:oM,disabled:e.surveyBlocked},e.task.hasSavedProgress?eo("resume-survey"):eo("start-survey"))):"incomplete"===e.task.status?(()=>{let r;return r=e.surveyActive?t.createElement(ZA,null):t.createElement(YA,{color:De(a.colorScheme,e.buttonColor),variant:e.buttonVariant??"light",onClick:oM,disabled:e.surveyBlocked},e.task.hasSavedProgress?eo("resume"):eo("start")),t.createElement($a,{renderAs:"div",innerRef:e.innerRef,onClick:e.surveyBlocked?void 0:()=>e.onClick(),className:"mdhui-single-survey-task incomplete",indicator:r},t.createElement("div",{className:"survey-name"},e.task.surveyDisplayName),t.createElement("div",{className:"survey-description"},t.createElement(t.Fragment,null,e.descriptionIcon," ",e.task.surveyDescription)),e.task.dueDate&&n())})():"complete"===e.task.status?t.createElement($a,{renderAs:"div",className:"mdhui-single-survey-task complete",indicator:t.createElement("img",{src:rye,alt:"check mark"}),innerRef:e.innerRef},t.createElement("div",{className:"survey-name"},e.task.surveyDisplayName),e.task.endDate&&t.createElement("div",{className:"completed-date"},eo("completed")," ",ul(e.task.endDate,new Date))):null}function oye(e){let a=i(Ua);var n=100/e.bars.length;function r(t){return e.gap?`calc(${n*t}% + ${e.gap/2}px)`:n*t+"%"}let o=["mdhui-spark-bar-chart"];return"rounded"===e.variant&&o.push("mdhui-spark-bar-chart-rounded"),t.createElement("div",{ref:e.innerRef,className:o.join(" "),style:e.style},void 0!==e.averageFillPercent&&t.createElement("div",{className:"mdhui-spark-bar-chart-average",style:{bottom:100*e.averageFillPercent+"%"}}),t.createElement("div",{className:"mdhui-spark-bar-chart-bars"},e.bars.map(((i,o)=>t.createElement("div",{key:o,className:"mdhui-spark-bar-chart-bar",style:{backgroundColor:De(a.colorScheme,i.color),height:100*i.barFillPercent+"%",width:e.gap?`calc(${n}% - ${e.gap}px)`:n+"%",left:r(o),opacity:i.opacity}},t.createElement(JA,null))))))}w(".mdhui-spark-bar-chart {\n position: relative;\n height: 72px;\n}\n\n.mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars {\n margin-left: 8px;\n width: calc(100% - 16px);\n position: relative;\n height: 100%;\n}\n\n.mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar {\n position: absolute;\n bottom: 0;\n z-index: 2;\n}\n\n.mdhui-spark-bar-chart.mdhui-spark-bar-chart-rounded .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar {\n border-radius: 4px 4px 0 0;\n}\n\n.mdhui-spark-bar-chart .mdhui-spark-bar-chart-average {\n border-top: dashed 1px var(--mdhui-border-color-1);\n position: absolute;\n left: 0px;\n right: 0px;\n z-index: 1;\n}");function sye(e){const a=i(Ua),n=Math.min(...e.domain),r=Math.max(...e.domain),o=e=>100-(e-n)/(r-n)*100;let s;null!=e.reference&&e.reference>=n&&e.reference<=r&&(s=o(e.reference));return t.createElement("div",{className:"mdhui-spark-range-chart",ref:e.innerRef,style:{gridTemplateColumns:Array(e.ranges.length).fill("1fr").join(" ")}},0===e.ranges.length&&null!=e.reference&&t.createElement("svg",{width:"100%",height:40,overflow:"visible"},void 0!==s&&t.createElement("line",{x1:0,y1:s+"%",x2:"100%",y2:s+"%",stroke:"var(--mdhui-background-color-2)",strokeWidth:1,strokeDasharray:3})),e.ranges.length>0&&e.ranges.map(((e,i)=>{const l=Math.max(e.min,n),c=Math.min(e.max,r),u=o(l),d=o(c);let m;if(null!=e.average){const t=Math.min(Math.max(e.average,n),r);m=o(t)}let h=De(a.colorScheme,e.color)??Ne(i);return t.createElement("svg",{key:i,width:"100%",height:40,overflow:"visible"},void 0!==s&&t.createElement("line",{x1:0,y1:s+"%",x2:"100%",y2:s+"%",stroke:"var(--mdhui-background-color-2)",strokeWidth:1,strokeDasharray:3}),t.createElement("line",{x1:"calc(50% - 4px)",y1:u+"%",x2:"calc(50% + 4px)",y2:u+"%",stroke:h,strokeWidth:2}),t.createElement("line",{x1:"calc(50% - 4px)",y1:d+"%",x2:"calc(50% + 4px)",y2:d+"%",stroke:h,strokeWidth:2}),t.createElement("line",{x1:"50%",y1:u+"%",x2:"50%",y2:d+"%",stroke:h,strokeWidth:2}),void 0!==m&&t.createElement("circle",{cx:"50%",cy:m+"%",r:4,fill:h}))})))}w(".mdhui-spark-range-chart {\n display: grid;\n column-gap: 4px;\n justify-content: center;\n}");function lye(e){return t.createElement(k,{innerRef:e.innerRef,onClick:()=>e.onValueChanged(!e.isOn),className:"mdhui-switch"+(e.isOn?" mdhui-switch-on":"")+(e.className?" "+e.className:""),style:{backgroundColor:e.isOn?e.onBackgroundColor:"var(--mdhui-background-color-2)"}},t.createElement("div",{className:"mdhui-switch-circle"}))}w(".mdhui-switch {\n border: 1px solid var(--mdhui-background-color-2);\n border-radius: 20px;\n cursor: pointer;\n display: inline-block;\n height: 30px;\n position: relative;\n vertical-align: middle;\n width: 50px;\n background: --mdhui-background-color-2;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-background-clip: content-box;\n background-clip: content-box;\n transition: background-color .5s;\n}\n\n.mdhui-switch.mdhui-switch-on {\n background: var(--mdhui-color-primary);\n}\n\n.mdhui-switch .mdhui-switch-circle {\n background: #fff;\n border-radius: 100%;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n height: 30px;\n position: absolute;\n top: 0;\n width: 30px;\n}\n\n.mdhui-switch.mdhui-switch-on .mdhui-switch-circle {\n right: 0;\n}");function cye(e){var a=i(Ua),n={backgroundColor:a.bodyBackgroundColor};return e.color&&(n={backgroundColor:e.color}),e.color||"dark"!==a.colorScheme||b.setStatusBarStyle("lightContent"),t.createElement("div",{ref:e.innerRef,className:"mdhui-status-bar-background",style:n})}w(".mdhui-status-bar-background {\n position: sticky;\n position: -webkit-sticky;\n left: 0;\n top: 0;\n right: 0;\n height: env(safe-area-inset-top);\n width: 100%;\n z-index: 1;\n background: var(--mdhui-background-color-0);\n}");function uye(e){var a=["mdhui-tracker-item"];e.onClick&&a.push("selectable"),e.selected?a.push("selected"):a.push("unselected"),e.bordered&&a.push("bordered"),e.className&&a.push(e.className),e.noBoxShadow&&a.push("mdhui-tracker-item-no-box-shadow");var n={borderColor:e.color,color:e.color,backgroundColor:e.color};return e.onClick?t.createElement(k,{className:a.join(" "),style:n,onClick:()=>e.onClick?e.onClick():null},e.text,e.selected&&t.createElement(JA,null),e.badge&&e.selected&&t.createElement("div",{className:"badge"},e.badge)):t.createElement("div",{className:a.join(" "),style:n,onClick:()=>e.onClick?e.onClick():null},e.text,e.selected&&t.createElement(JA,null),e.badge&&e.selected&&t.createElement("div",{className:"badge"},e.badge))}w(".mdhui-tracker-item {\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: var(--mdhui-background-color-0);\n border-radius: 32px;\n font-size: .88em;\n display: inline-block;\n margin: 8px;\n position: relative;\n border: solid 1px #000;\n user-select: none;\n line-height: 1.1em;\n}\n\n.mdhui-tracker-item.selectable {\n cursor: pointer;\n}\n\n.mdhui-tracker-item.selected {\n box-shadow: var(--mdhui-box-shadow-1);\n color: #FFF !important;\n background-color: inherit;\n}\n\n.mdhui-tracker-item.unselected {\n background-color: var(--mdhui-background-color-0) !important;\n}\n\n.mdhui-tracker-item .mdhui-shiny-overlay {\n border-radius: 32px;\n}\n\n.mdhui-tracker-item.bordered .mdhui-shiny-overlay {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n}\n\n.mdhui-tracker-item .badge {\n position: absolute;\n right: -4px;\n top: -4px;\n border-radius: 32px;\n padding: 3px;\n background: linear-gradient(to bottom, #555 0%, #888 100%);\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n user-select: none;\n font-size: .62em;\n line-height: 10px;\n}\n\n.mdhui-tracker-item.mdhui-tracker-item-no-box-shadow {\n box-shadow: none;\n}");function dye(e){const a=i(Ua),n=e.selectedValues??[],r=t=>{e.onChange&&e.onChange(t)};let o={"--mdhui-value-selector-title-color":De(a?.colorScheme,e.titleColor),"--mdhui-value-selector-subtitle-color":De(a?.colorScheme,e.subtitleColor),"--mdhui-value-selector-value-background-color":De(a?.colorScheme,e.valueBackgroundColor),"--mdhui-value-selector-value-text-color":De(a?.colorScheme,e.valueTextColor),"--mdhui-value-selector-button-value-selected-background-color":De(a?.colorScheme,e.selectedButtonBackgroundColor),"--mdhui-value-selector-button-value-selected-text-color":De(a?.colorScheme,e.selectedButtonTextColor),"--mdhui-value-selector-checkbox-color":De(a?.colorScheme,e.checkboxColor),"--mdhui-value-selector-checkbox-selected-color":De(a?.colorScheme,e.selectedCheckboxColor)};return t.createElement("div",{className:"mdhui-value-selector",style:o,ref:e.innerRef},e.title&&t.createElement("div",{className:"mdhui-value-selector-title"},e.title),e.subtitle&&t.createElement("div",{className:"mdhui-value-selector-subtitle"},e.subtitle),t.createElement("div",{className:"mdhui-value-selector-values"},e.values.map(((a,i)=>{let o=["mdhui-value-selector-value"];return n.includes(a)&&o.push("mdhui-value-selector-value-selected"),"checkboxes"===e.variant?o.push("mdhui-value-selector-value-checkbox"):o.push("mdhui-value-selector-value-button"),t.createElement(k,{key:i,onClick:()=>(t=>{n.includes(t)?(n.length>1||!e.preventEmptySelections)&&r(n.filter((e=>e!==t))):e.multiSelect?r([...n,t]):r([t])})(a)},t.createElement("div",{className:o.join(" ")},t.createElement("div",{className:"mdhui-value-selector-value-text"},a),"checkboxes"===e.variant&&n.includes(a)&&t.createElement(hge,{className:"mdhui-value-selector-value-checkbox-icon mdhui-value-selector-value-checkbox-icon-selected",icon:L}),"checkboxes"===e.variant&&!n.includes(a)&&t.createElement(hge,{className:"mdhui-value-selector-value-checkbox-icon",icon:CM})))}))))}w(".mdhui-value-selector {\n --mdhui-value-selector-title-color: var(--mdhui-text-color-1);\n --mdhui-value-selector-subtitle-color: var(--mdhui-text-color-3);\n --mdhui-value-selector-value-background-color: var(--mdhui-background-color-0);\n --mdhui-value-selector-value-text-color: var(--mdhui-text-color-1);\n --mdhui-value-selector-button-value-selected-background-color: var(--mdhui-color-primary);\n --mdhui-value-selector-button-value-selected-text-color: #fff;\n --mdhui-value-selector-checkbox-color: var(--mdhui-text-color-4);\n --mdhui-value-selector-checkbox-selected-color: var(--mdhui-color-primary);\n padding: 16px;\n}\n\n.mdhui-value-selector-title {\n font-weight: bold;\n color: var(--mdhui-value-selector-title-color);\n margin-bottom: 4px;\n}\n\n.mdhui-value-selector-subtitle {\n font-size: 0.75em;\n color: var(--mdhui-value-selector-subtitle-color);\n margin-bottom: 12px;\n}\n\n.mdhui-value-selector-values .mdhui-unstyled-button {\n width: 100%;\n margin: 8px 0;\n}\n\n.mdhui-value-selector-value {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n height: 40px;\n line-height: 40px;\n border-radius: 6px;\n background: var(--mdhui-value-selector-value-background-color);\n border: 1px solid var(--mdhui-value-selector-value-background-color);\n color: var(--mdhui-value-selector-value-text-color);\n padding: 0 16px;\n font-weight: bold;\n}\n\n.mdhui-value-selector-value:last-child {\n margin-bottom: 0;\n}\n\n.mdhui-value-selector-value-text {\n font-size: 0.85em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-value-selector-value-button {\n text-align: center;\n}\n\n.mdhui-value-selector-value-button.mdhui-value-selector-value-selected {\n background: var(--mdhui-value-selector-button-value-selected-background-color);\n border: 1px solid var(--mdhui-value-selector-button-value-selected-background-color);\n color: var(--mdhui-value-selector-button-value-selected-text-color);\n}\n\n.mdhui-value-selector-value-checkbox {\n padding-right: 0;\n}\n\n.mdhui-value-selector-value-checkbox-icon {\n width: 48px;\n font-size: 0.95em;\n justify-self: center;\n color: var(--mdhui-value-selector-checkbox-color);\n}\n\n.mdhui-value-selector-value-checkbox-icon-selected {\n color: var(--mdhui-value-selector-checkbox-selected-color);\n}\n\n\n");function mye(e){let a=i(Ua);return e.title||e.subtitle?t.createElement("div",{className:"mdhui-view-header"},t.createElement("div",{className:"mdhui-view-header-text"},e.title&&t.createElement("div",{style:{color:De(a.colorScheme,e.titleColor)},className:"mdhui-view-header-title"},e.title),e.subtitle&&t.createElement("div",{style:{color:De(a.colorScheme,e.subtitleColor)},className:"mdhui-view-header-subtitle"},e.subtitle)),t.createElement("div",{className:"mdhui-view-header-action"},e.action)):null}w(".mdhui-view-header {\n padding: 32px 16px;\n display: grid;\n grid-template-columns: auto max-content;\n align-content: center;\n}\n\n.mdhui-view-header .mdhui-view-header-title {\n font-weight: 700;\n font-size: 2em;\n margin-bottom: 8px;\n color: var(--mdhui-text-color-0);\n}\n\n.mdhui-view-header .mdhui-view-header-subtitle {\n font-weight: 500;\n color: var(--mdhui-text-color-2);\n font-size: 1.2em;\n}");function hye(e){const a=s(null);l((()=>{if(e.onStartDateChange){var t=ed((function(n){0==a.current?.scrollLeft?(e.onStartDateChange(on(e.startDate,{weeks:-1})),a.current?.removeEventListener("scroll",t)):a.current?.clientWidth&&a.current?.scrollLeft==2*a.current.clientWidth&&(e.onStartDateChange(on(e.startDate,{weeks:1})),a.current?.removeEventListener("scroll",t))}),500);return a.current?.addEventListener("scroll",t),()=>{a.current?.removeEventListener("scroll",t)}}}),[e.startDate]);for(var n=[],r=[],i=[],o=on(e.startDate,{days:-7}),c=0;c<21;c++)c<7?n.push(o):c<14?r.push(o):i.push(o),o=on(o,{days:1});function u(e){return t.createElement("div",{className:"mdhui-week-calendar-date-label"},t.createElement("div",{className:"mdhui-week-calendar-day-of-week"}," ",al(e)),t.createElement("div",{className:"mdhui-week-calendar-day-of-month"},fl(Xs(e),"d")))}function d(t){var a=["mdhui-week-calendar-day"];return t>new Date?a.push("mdhui-week-calendar-day-future"):e.onDateSelected&&a.push("mdhui-week-calendar-day-selectable"),e.selectedDate&&xr(t).substr(0,10)==xr(e.selectedDate).substr(0,10)&&a.push("mdhui-week-calendar-day-selected"),a}return l((()=>{a.current&&(a.current.scrollLeft=window.innerWidth)})),a.current&&(a.current.scrollLeft=window.innerWidth),t.createElement("div",{ref:e.innerRef},t.createElement("div",{className:"mdhui-week-calendar",ref:a},e.loading&&t.createElement("div",{className:"mdhui-week-calendar-loading"},t.createElement(ZA,null)),t.createElement("div",{className:"mdhui-week-calendar-week"},n.map((a=>t.createElement("div",{key:a.getTime(),className:"mdhui-week-calendar-day"},e.dayRenderer(a.getFullYear(),a.getMonth(),a.getDate(),!1),!e.hideDateLabel&&u(a))))),t.createElement("div",{className:"mdhui-week-calendar-week"},r.map((a=>t.createElement(k,{key:a.getTime(),className:d(a).join(" "),onClick:()=>function(t){t>new Date||e.onDateSelected&&e.onDateSelected(t)}(a)},e.dayRenderer(a.getFullYear(),a.getMonth(),a.getDate(),!0),!e.hideDateLabel&&u(a))))),on(e.startDate,{days:7})<new Date&&t.createElement("div",{className:"mdhui-week-calendar-week"},i.map((a=>t.createElement("div",{key:a.getTime(),className:d(a).join(" ")},e.dayRenderer(a.getFullYear(),a.getMonth(),a.getDate(),!1),!e.hideDateLabel&&u(a)))))))}w(".mdhui-week-calendar {\n background: var(--mdhui-background-color-0);\n overflow-x: scroll;\n overflow-y: hidden;\n z-index: 0;\n position: relative;\n display: flex;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-loading {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n}\n\n.mdhui-week-calendar * {\n user-select: none;\n}\n\n.mdhui-week-calendar::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-week {\n min-width: 100%;\n scroll-snap-align: start;\n display:flex;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day {\n border-left: solid 1px var(--mdhui-border-color-1);\n overflow: hidden;\n position: relative;\n display: inline-block;\n vertical-align: top;\n flex: 1;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day:first-child {\n width: 14.28%;\n border-left: none;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label {\n padding-top: 4px;\n line-height: 16px;\n padding-bottom: 8px;\n text-align: center;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-week {\n font-size: 10px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n font-size: 14px;\n display: inline-block;\n text-align: center;\n width: 24px;\n height: 24px;\n border-radius: 24px;\n line-height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selectable {\n cursor: pointer;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected {\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n background-color: var(--mdhui-color-primary);\n color: #FFF;\n font-weight: bold;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-future>* {\n opacity: .4;\n}");function pye(e){return t.createElement("div",{className:"mdhui-inbox-completed-list-item",ref:e.innerRef},e.onClick&&t.createElement($a,{title:e.name,subtitle:e.status,onClick:()=>e.onClick()}),!e.onClick&&t.createElement(eS,null,t.createElement("div",{className:"mdhui-inbox-completed-list-item-name"},e.name),t.createElement("div",{className:"mdhui-inbox-completed-list-item-status"},e.status)))}w(".mdhui-inbox-completed-list-item {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n}\n\n.mdhui-inbox-completed-list-item .mdhui-action, .mdhui-inbox-completed-list-item .mdhui-card {\n border-radius: 12px;\n padding: 16px;\n margin: 12px 0;\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-inbox-completed-list-item .mdhui-action .title, .mdhui-inbox-completed-list-item-name {\n font-weight: bold;\n font-size: 1.05em;\n}\n\n.mdhui-inbox-completed-list-item .mdhui-action .subtitle, .mdhui-inbox-completed-list-item-status {\n color: var(--mdhui-text-color-2);\n font-size: 0.7em;\n margin-top: 4px;\n}");function gye(e){return"incomplete"===e.message.status?t.createElement("div",{className:"mdhui-inbox-message-list-item",ref:e.innerRef},t.createElement($a,{title:e.message.title,onClick:()=>e.onClick()})):"complete"===e.message.status?t.createElement(pye,{name:e.message.title,status:eo("inbox-message-completed-status"),onClick:()=>e.onClick(),innerRef:e.innerRef}):null}function fye(e){return"incomplete"===e.resource.status?t.createElement("div",{className:"mdhui-inbox-resource-list-item",ref:e.innerRef},t.createElement(Zfe,{imageUrl:e.resource.imageUrl,title:e.resource.title,subTitle:e.resource.subTitle,imageAlignment:e.imageAlignment,buttonVariant:e.buttonVariant,buttonText:e.buttonText,onClick:()=>e.onClick()})):"complete"===e.resource.status?t.createElement(pye,{name:e.resource.title,status:eo("inbox-resource-completed-status"),onClick:()=>e.onClick(),innerRef:e.innerRef}):null}w(".mdhui-inbox-message-list-item {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-inbox-message-list-item .mdhui-action .title {\n font-size: 1.05em;\n}\n");function yye(e){return"incomplete"===e.survey.status?t.createElement("div",{className:"mdhui-inbox-survey-list-item",ref:e.innerRef},t.createElement(iye,{task:{surveyName:e.survey.name,surveyDisplayName:e.survey.displayName??e.survey.name,surveyDescription:e.survey.description,endDate:e.survey.endDate,status:e.survey.status,hasSavedProgress:e.survey.hasRestorationData,dueDate:e.survey.dueDate},variant:e.variant,surveyActive:e.surveyActive,onClick:()=>e.onClick()})):"complete"===e.survey.status?t.createElement(pye,{name:e.survey.name,status:eo("inbox-survey-completed-status"),innerRef:e.innerRef}):null}w(".mdhui-inbox-survey-list-item {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n box-shadow: var(--mdhui-box-shadow-0);\n}");class vye{constructor(e){this.participantInfo=e}getId(){return this.participantInfo.participantID}getFirstName(){return this.participantInfo.demographics.firstName}hasPairedDevice(){return"Yes"===this.getCustomFieldValue("DevicePaired")}hasEstablishedBaseline(){return this.hasEstablishedBaselineByType("DaytimeRestingHeartRateBaseline")||this.hasEstablishedBaselineByType("NighttimeRestingHeartRateBaseline")||this.hasEstablishedBaselineByType("RespiratoryRateBaseline")||this.hasEstablishedBaselineByType("StepsBaseline")||this.hasEstablishedBaselineByType("SleepDisturbancesBaseline")||this.hasEstablishedBaselineByType("DaytimeBloodOxygenLevelBaseline")||this.hasEstablishedBaselineByType("NighttimeBloodOxygenLevelBaseline")}getHomeAirQualityZipCode(){return this.getCustomFieldValue("HomePostalCode")}getWorkAirQualityZipCode(){return this.getCustomFieldValue("WorkPostalCode")}getActionPlanTaskRunUUID(){return this.getCustomFieldValue("AAPTaskRunUUID")}getAlertTakeover(){return this.getCustomFieldValue("AlertTakeover")}getParticipantMode(){return this.getCustomFieldValue("ParticipantMode")??"Self"}getCareRecipientName(){return this.getCustomFieldValue("CareRecipientName")}getDaytimeRestingHeartRateBaseline(){return this.getBaseline("DaytimeRestingHeartRateBaseline")}getNighttimeRestingHeartRateBaseline(){return this.getBaseline("NighttimeRestingHeartRateBaseline")}getRespiratoryRateBaseline(){return this.getBaseline("RespiratoryRateBaseline")}getStepsBaseline(){return this.getBaseline("StepsBaseline")}getSleepDisturbancesBaseline(){return this.getBaseline("SleepDisturbancesBaseline")}getDaytimeBloodOxygenLevelBaseline(){return this.getBaseline("DaytimeBloodOxygenLevelBaseline")}getNighttimeBloodOxygenLevelBaseline(){return this.getBaseline("NighttimeBloodOxygenLevelBaseline")}hasEstablishedBaselineByType(e){return this.getCustomFieldValue(e).trim().length>0}getBaseline(e){let t=this.getCustomFieldValue(e);if(t&&t.trim().length>0)return Number(t.trim())}getCustomFieldValue(e){let t=this.participantInfo.customFields;return t.hasOwnProperty(e)?t[e]??"":""}}const bye=e=>xr(e,{representation:"date"}),wye=(e,t)=>{let a=bye(t),n=e.find((e=>e.identifier===a));if(n){let a,n=(e=>{let t=[];for(let a=0;a<7;a++)t.push(on(new Date(e),{days:-a}));return t})(t),r=((e,t)=>{let a=t.map(bye);return e.filter((e=>a.includes(e.identifier)))})(e,n),i=r.reduce(((e,t)=>e+("none"!==t.symptomLevel?1:0)),0),o=r.reduce(((e,t)=>e+(t.impacts.includes("Wake up at night")?1:0)),0),s=r.reduce(((e,t)=>e+(t.impacts.includes("Limit your daily activity")?1:0)),0),l=r.reduce(((e,t)=>e+(t.impacts.includes("Use your rescue inhaler")?1:0)),0),c=r.length;return a=o>0||s>0||l>=3||i>=3?"not-controlled":c>=1&&0==o&&0==s&&0==l&&0==i||c>=3&&c-i>=2?"controlled":"not-determined",{status:a,symptomDaysPast7:i,nighttimeAwakeningDaysPast7:o,limitedActivityDaysPast7:s,inhalerUseDaysPast7:l}}return{status:"no-data"}},kye=e=>"out-of-range"===e?eo("asthma-data-status-out-of-range"):"in-range"===e?eo("asthma-data-status-in-range"):"offline"===e?eo("asthma-data-status-offline"):"establishing"===e?eo("asthma-data-status-establishing"):"not-determined"===e?eo("asthma-data-status-not-determined"):"not-found"===e?eo("asthma-data-status-not-found"):"not-configured"===e?eo("asthma-data-status-not-configured"):"",xye=e=>"out-of-range"===e?"#9D5BED":"in-range"===e?"#188A83":"offline"===e?"var(--mdhui-color-warning)":"var(--mdhui-text-color-3)",Aye=e=>eo("mild"===e?"asthma-symptom-level-mild":"moderate"===e?"asthma-symptom-level-moderate":"severe"===e?"asthma-symptom-level-severe":"asthma-symptom-level-none"),Sye=e=>e===eo("asthma-symptom-level-mild")?"mild":e===eo("asthma-symptom-level-moderate")?"moderate":e===eo("asthma-symptom-level-severe")?"severe":"none",Eye=e=>e?e.map((e=>"Difficulty breathing"===e?eo("asthma-symptom-difficulty-breathing"):"Wheezing"===e?eo("asthma-symptom-wheezing"):"Coughing"===e?eo("asthma-symptom-coughing"):"Chest tightness or pressure"===e?eo("asthma-symptom-chest-tightness"):e)):[],_ye=e=>e.map((e=>e===eo("asthma-symptom-difficulty-breathing")?"Difficulty breathing":e===eo("asthma-symptom-wheezing")?"Wheezing":e===eo("asthma-symptom-coughing")?"Coughing":e===eo("asthma-symptom-chest-tightness")?"Chest tightness or pressure":e)),Cye=e=>e?e.map((e=>"Wake up at night"===e?eo("asthma-impact-waking-at-night"):"Limit your daily activity"===e?eo("asthma-impact-limit-daily-activity"):"Use your rescue inhaler"===e?eo("asthma-impact-using-rescue-inhaler"):e)):[],Oye=e=>e.map((e=>e===eo("asthma-impact-waking-at-night")?"Wake up at night":e===eo("asthma-impact-limit-daily-activity")?"Limit your daily activity":e===eo("asthma-impact-using-rescue-inhaler")?"Use your rescue inhaler":e)),Pye=e=>e?e.map((e=>"Cold/viral illness"===e?eo("asthma-trigger-cold-illness"):"Animal exposure"===e?eo("asthma-trigger-animal-exposure"):"Seasonal allergens/pollen"===e?eo("asthma-trigger-seasonal-allergens"):"Exercise"===e?eo("asthma-trigger-exercise"):"Smoke (tobacco or wood burning)"===e?eo("asthma-trigger-smoke"):"Extreme weather changes"===e?eo("asthma-trigger-weather-changes"):"Air pollution"===e?eo("asthma-trigger-air-pollution"):"Strong smells"===e?eo("asthma-trigger-strong-smells"):"Chemicals/cleaning supplies"===e?eo("asthma-trigger-chemicals"):"Dust"===e?eo("asthma-trigger-dust"):"Mold"===e?eo("asthma-trigger-mold"):"Dust mites"===e?eo("asthma-trigger-dust-mites"):"Rodents"===e?eo("asthma-trigger-rodents"):"Cockroaches"===e?eo("asthma-trigger-cockroaches"):"Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)"===e?eo("asthma-trigger-nsaid"):"Taken a beta blocker"===e?eo("asthma-trigger-beta-blocker"):"Had heartburn"===e?eo("asthma-trigger-heartburn"):"Drank red wine"===e?eo("asthma-trigger-red-wine"):"Tried any new foods"===e?eo("asthma-trigger-new-foods"):"Cooked without a fan or open window"===e?eo("asthma-trigger-cooked-without-ventilation"):"Had a pet sleep in your bed"===e?eo("asthma-trigger-pet-in-bed"):"Burned incense or a candle"===e?eo("asthma-trigger-incense-or-candle"):e)):[],Tye=e=>e.map((e=>e===eo("asthma-trigger-cold-illness")?"Cold/viral illness":e===eo("asthma-trigger-animal-exposure")?"Animal exposure":e===eo("asthma-trigger-seasonal-allergens")?"Seasonal allergens/pollen":e===eo("asthma-trigger-exercise")?"Exercise":e===eo("asthma-trigger-smoke")?"Smoke (tobacco or wood burning)":e===eo("asthma-trigger-weather-changes")?"Extreme weather changes":e===eo("asthma-trigger-air-pollution")?"Air pollution":e===eo("asthma-trigger-strong-smells")?"Strong smells":e===eo("asthma-trigger-chemicals")?"Chemicals/cleaning supplies":e===eo("asthma-trigger-dust")?"Dust":e===eo("asthma-trigger-mold")?"Mold":e===eo("asthma-trigger-dust-mites")?"Dust mites":e===eo("asthma-trigger-rodents")?"Rodents":e===eo("asthma-trigger-cockroaches")?"Cockroaches":e===eo("asthma-trigger-nsaid")?"Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)":e===eo("asthma-trigger-beta-blocker")?"Taken a beta blocker":e===eo("asthma-trigger-heartburn")?"Had heartburn":e===eo("asthma-trigger-red-wine")?"Drank red wine":e===eo("asthma-trigger-new-foods")?"Tried any new foods":e===eo("asthma-trigger-cooked-without-ventilation")?"Cooked without a fan or open window":e===eo("asthma-trigger-pet-in-bed")?"Had a pet sleep in your bed":e===eo("asthma-trigger-incense-or-candle")?"Burned incense or a candle":e)),Mye=e=>"unhealthy"===e?eo("asthma-air-quality-description-unhealthy"):"very unhealthy"===e?eo("asthma-air-quality-description-very-unhealthy"):"hazardous"===e?eo("asthma-air-quality-description-hazardous"):e,Dye=(e,t)=>t<=1.2*e,Iye=(e,t)=>t<=1.15*e,Nye=(e,t)=>t<=1.15*e,jye=(e,t)=>t>=e/2,zye=(e,t)=>t<=e+3.5,Rye=(e,t)=>{let a=100*t;return a>=95||a>=100*e-4},Lye=async(e,t,a)=>{const n=await Tl({namespace:"Project",type:e,observedAfter:on(t,{days:-1}).toISOString(),observedBefore:on(a,{days:1}).toISOString()});let r={},i={};return n.forEach((e=>{if(!e.observationDate)return;let t=Ei(e.observationDate),a=Ri(t);r[a]&&!Ar(t,i[a])||(r[a]=parseFloat(e.value),i[a]=t)})),r};var Fye;!function(e){e.Steps="Asthma.Steps",e.DaytimeRestingHeartRate="Asthma.DaytimeRestingHeartRate",e.NighttimeRestingHeartRate="Asthma.NighttimeRestingHeartRate",e.RespiratoryRate="Asthma.RespiratoryRate",e.DaytimeBloodOxygenLevel="Asthma.DaytimeBloodOxygenLevel",e.NighttimeBloodOxygenLevel="Asthma.NighttimeBloodOxygenLevel",e.SleepDisturbances="Asthma.SleepDisturbances"}(Fye||(Fye={})),Gc(Fye.Steps,(function(e,t){return Lye("Steps",e,t)}),Cc("Project",["Steps"])),Gc(Fye.DaytimeRestingHeartRate,(function(e,t){return Lye("DaytimeRestingHeartRate",e,t)}),Cc("Project",["DaytimeRestingHeartRate"])),Gc(Fye.NighttimeRestingHeartRate,(function(e,t){return Lye("NighttimeRestingHeartRate",e,t)}),Cc("Project",["NighttimeRestingHeartRate"])),Gc(Fye.RespiratoryRate,(function(e,t){return Lye("RespiratoryRate",e,t)}),Cc("Project",["RespiratoryRate"])),Gc(Fye.DaytimeBloodOxygenLevel,(function(e,t){return Lye("DaytimeBloodOxygenLevel",e,t)}),Cc("Project",["DaytimeBloodOxygenLevel"])),Gc(Fye.NighttimeBloodOxygenLevel,(function(e,t){return Lye("NighttimeBloodOxygenLevel",e,t)}),Cc("Project",["NighttimeBloodOxygenLevel"])),Gc(Fye.SleepDisturbances,(function(e,t){return Lye("SleepDisturbances",e,t)}),Cc("Project",["SleepDisturbances"]));const Bye={"daytime-resting-heart-rate":"DaytimeRestingHeartRate","nighttime-resting-heart-rate":"NighttimeRestingHeartRate","respiratory-rate":"RespiratoryRate",steps:"Steps","sleep-disturbances":"SleepDisturbances","daytime-blood-oxygen-level":"DaytimeBloodOxygenLevel","nighttime-blood-oxygen-level":"NighttimeBloodOxygenLevel"},Hye={home:"HomeAirQuality",work:"WorkAirQuality"},qye=(e,t)=>bn(Ei(e.observationDate),Ei(t.observationDate)),Vye=e=>{let t=parseFloat(e.value);return isNaN(t)?-1:t},Uye=(e,t,a,n)=>{let r=gn(e),i=on(r,{days:n}),o=on(r,{days:n+1}),s=t.filter((e=>{if(e.type!==a)return!1;let t=Ei(e.observationDate);return!Sr(t,i)&&!Ar(t,o)}));if(s.length>0)return Vye(s.sort(qye)[0])},Wye=(e,t)=>{let a={namespace:"Project",type:["DaytimeRestingHeartRate","DaytimeRestingHeartRateBaseline","NighttimeRestingHeartRate","NighttimeRestingHeartRateBaseline","RespiratoryRate","RespiratoryRateBaseline","Steps","StepsBaseline","SleepDisturbances","SleepDisturbancesBaseline","DaytimeBloodOxygenLevel","DaytimeBloodOxygenLevelBaseline","NighttimeBloodOxygenLevel","NighttimeBloodOxygenLevelBaseline"],observedAfter:e.toISOString(),observedBefore:t.toISOString()};return b.queryDeviceData(a)},$ye=(e,t,a,n)=>t?a?e(t,a)?"in-range":"out-of-range":"offline":a?n.withValue:n.withoutValue,Gye=(e,t,a,n,r,i)=>{let o=Uye(t,a,Bye[e]+"Baseline",n-1),s=Uye(t,a,Bye[e],n);return{type:e,status:$ye(r,o,s,i),value:s}},Kye=(e,t,a,n)=>Gye("daytime-resting-heart-rate",e,t,a,Dye,n),Zye=(e,t,a,n)=>Gye("nighttime-resting-heart-rate",e,t,a,Iye,n),Yye=(e,t,a,n)=>Gye("respiratory-rate",e,t,a,Nye,n),Qye=(e,t,a,n)=>Gye("steps",e,t,a,jye,n),Xye=(e,t,a,n)=>Gye("steps",e,t,a,((t,a)=>Ai(e)&&(new Date).getHours()<19||jye(t,a)),n),Jye=(e,t,a,n)=>Gye("sleep-disturbances",e,t,a,zye,n),eve=(e,t,a,n)=>Gye("daytime-blood-oxygen-level",e,t,a,Rye,n),tve=(e,t,a,n)=>Gye("nighttime-blood-oxygen-level",e,t,a,Rye,n),ave=(e,t,a)=>{let n={namespace:"AirNowApi",type:["HomeAirQuality","WorkAirQuality"],observedAfter:e.toISOString()};return t&&(n.observedBefore=t.toISOString()),a&&(n.pageID=a),b.queryDeviceData(n)},nve=(e,t,a,n)=>{let r,i=t.filter((t=>t.type===Hye[e]));i.length>0&&(r=a(i));let[o,s]=((e,t)=>{if(e){if(e<=100)return["in-range",void 0];if(e<=200)return["out-of-range","unhealthy"];if(e<=300)return["out-of-range","very unhealthy"];if(e<=500)return["out-of-range","hazardous"]}return[t,void 0]})(r,n);return{type:e,status:o,value:r,description:s}},rve={loadParticipant:async function(){let e=await b.getParticipantInfo();return new vye(e)},loadDeviceInfo:()=>b.getDeviceInfo(),loadLogEntries:async function(e,t){let a={namespace:"Project",type:["Asthma-LogEntry"]};return e&&(a.observedAfter=e.toISOString()),t&&(a.observedBefore=t.toISOString()),(await b.queryDeviceData(a)).deviceDataPoints.map((e=>JSON.parse(e.value)))},loadBiometricsForControlStatus:async function(){let e=new Date;return((e,t)=>{const a={withValue:"establishing",withoutValue:"establishing"};return[Kye(e,t,-1,a),Zye(e,t,0,a),Yye(e,t,0,a),Qye(e,t,-1,a),Jye(e,t,0,a),eve(e,t,-1,a),tve(e,t,0,a)]})(e,(await Wye(on(gn(e),{days:-2}),_n(e))).deviceDataPoints)},loadBiometricsForDate:async function(e){return((e,t)=>{const a={withValue:"not-determined",withoutValue:"not-found"};return[Kye(e,t,0,a),Zye(e,t,0,a),Yye(e,t,0,a),Xye(e,t,0,a),Jye(e,t,0,a),eve(e,t,0,a),tve(e,t,0,a)]})(e,(await Wye(on(gn(e),{days:-1}),_n(e))).deviceDataPoints)},loadAirQualitiesForControlStatus:async function(e,t){let a=await ave(on(new Date,{hours:-12}),_n(Date.now(),n));var n;const r=e=>Vye(e.sort(qye)[0]);return[e?nve("home",a.deviceDataPoints,r,"establishing"):{type:"home",status:"not-configured"},t?nve("work",a.deviceDataPoints,r,"establishing"):{type:"work",status:"not-configured"}]},loadAirQualitiesForDate:async function(e){let t=await ave(gn(e),_n(e));const a=e=>{let t=0;return e.forEach((e=>{let a=Vye(e);a>t&&(t=a)})),t};return[nve("home",t.deviceDataPoints,a,"not-found"),nve("work",t.deviceDataPoints,a,"not-found")]},loadAirQualityDataPoints:async function(e){let t=[],a=await ave(e);for(t=t.concat(a.deviceDataPoints);a.nextPageID;)a=await ave(e,void 0,a.nextPageID),t=t.concat(a.deviceDataPoints);return t},saveLogEntry:function(e){let t={type:"Asthma-LogEntry",identifier:e.identifier,observationDate:`${e.identifier}T12:00:00-06:00`,value:JSON.stringify(e)};return b.persistDeviceData([t])},loadAlertTakeover:async function(){let e={namespace:"Project",type:["AlertTakeover"],observedAfter:Ni().toISOString()},t=(await b.queryDeviceData(e)).deviceDataPoints;if(0===t.length)return;let a=t.sort(qye)[0];return a.properties?.hasOwnProperty("viewed")||a.properties?.hasOwnProperty("cleared")?void 0:a},updateAlertTakeover:(e,t,a)=>(e.properties=e.properties??{},e.properties[t]=xr(new Date),a&&(e.properties.comment=a),b.persistDeviceData([e])),loadSurveyAnswers:function(e,t){let a={surveyName:e};return t&&(a.insertedAfter=xr(t)),cu(a)},checkSurveyAnswerExists:function(e){let t={surveyName:e,limit:1};return b.querySurveyAnswers(t).then((e=>!!e.surveyAnswers.length))},loadAsthmaActionPlan:async function(){let e=await b.invokeCustomApi("Asthma.ActionPlan","GET","",!0);return e?{id:e.Id,url:`data:image/jpeg;base64,${e.Content}`}:void 0}};function ive(e,t){if("Caregiver"===e.getParticipantMode()){let a=e.getCareRecipientName();if(a)return eo(t+"-caregiver",void 0,{name:a})}return eo(t)}const ove={createDataService:e=>({loadDeviceInfo:()=>Promise.resolve({}),loadParticipant:()=>Promise.resolve({getActionPlanTaskRunUUID:()=>e.includes("loading")||e.includes("loaded with action plan")?"SomeTaskRunUUID":void 0,getParticipantMode:()=>e.includes("(caregiver mode)")?"Caregiver":"Self",getCareRecipientName:()=>e.includes("(caregiver mode)")?"Leroy":void 0}),loadAsthmaActionPlan:()=>e.includes("loading")?new Promise((()=>oM)):Promise.resolve({url:"https://asthma.careevolutionapps.dev/images/sample_aap.png"})})};function sve(e){const[a,n]=c(!0),[r,i]=c(),[o,s]=c(),[u,d]=c(),m=(e,t=0)=>{e.loadParticipant().then((a=>{s(a),a.getActionPlanTaskRunUUID()?e.loadAsthmaActionPlan().then((a=>{d(a),a||t>=5?n(!1):setTimeout((()=>m(e,t+1)),2e3)})):(d(void 0),n(!1))}))};l((()=>{n(!0);const t=e.previewState?ove.createDataService(e.previewState):rve;return t.loadDeviceInfo().then((e=>{i(e)})),m(t),b.on("surveyDidFinish",(()=>m(t))),()=>{b.off("surveyDidFinish",(()=>m(t)))}}),[e.previewState]);return t.createElement("div",{className:"mdhui-asthma-action-plan-manager"},t.createElement(iM,{order:2,className:"mdhui-asthma-action-plan-manager-title"},eo("asthma-action-plan-manager-title")),o&&t.createElement("div",{className:"mdhui-asthma-action-plan-manager-instructions"},ive(o,"asthma-action-plan-manager-instructions")),t.createElement(k,{className:"mdhui-asthma-action-plan-manager-learn-more",onClick:()=>{e.previewState||b.openApplication(e.learnMoreUrl,{modal:!0})}},eo("asthma-action-plan-manager-learn-more")),a&&t.createElement(ZA,null),!a&&u&&t.createElement("div",null,t.createElement(k,{className:"mdhui-asthma-action-plan-manager-thumbnail-wrapper",onClick:()=>(()=>{if(e.previewState)return;let t=`Authenticated/ReportViewer/ServeReport.ashx?reportId=${u.id}`;r&&["Android","iOS"].includes(r.platform)?window.webkit.messageHandlers.OpenFile.postMessage({url:t}):b.openExternalUrl("/"+t)})()},t.createElement("img",{className:"mdhui-asthma-action-plan-manager-thumbnail",alt:"thumbnail",src:u.url})),t.createElement("div",{className:"mdhui-asthma-action-plan-manager-button-panel"},t.createElement(YA,{onClick:()=>{e.previewState||(b.startSurvey(e.editActionPlanSurveyName),n(!0))}},eo("asthma-action-plan-manager-edit-button-text")))),!a&&!u&&t.createElement(k,{className:"mdhui-asthma-action-plan-manager-not-found",onClick:()=>{e.previewState||(b.startSurvey(e.editActionPlanSurveyName),n(!0))}},t.createElement("div",{className:"mdhui-asthma-action-plan-manager-not-found-text"},eo("asthma-action-plan-manager-not-found-text"))))}w(".mdhui-asthma-air-qualities {\n padding: 16px;\n}\n\n.mdhui-asthma-air-qualities-header {\n display: grid;\n grid-template-columns: auto max-content;\n}\n\n.mdhui-asthma-air-qualities-title {\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-air-qualities-settings {\n width: 48px;\n height: 32px;\n text-align: right;\n line-height: 32px;\n font-size: 20px;\n color: var(--mdhui-color-primary);\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-air-qualities-data {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n grid-column-gap: 16px;\n grid-row-gap: 16px;\n}\n\n.mdhui-asthma-air-qualities-setup {\n display: grid;\n grid-template-columns: 1fr;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n border: 1px solid var(--mdhui-border-color-1);\n background: var(--mdhui-background-color-0);\n min-height: 60px;\n}\n\n.mdhui-asthma-air-qualities-setup-button {\n font-size: 1.3em;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-asthma-air-qualities-setup-label {\n font-size: 0.7em;\n font-weight: bold;\n}\n");const lve={"neither configured":{homeAirQuality:{type:"home",status:"not-configured"},workAirQuality:{type:"work",status:"not-configured"}},"one configured":{homeAirQuality:{type:"home",status:"not-configured"},workAirQuality:{type:"work",status:"establishing"}},"no data (control)":{homeAirQuality:{type:"home",status:"establishing"},workAirQuality:{type:"work",status:"establishing"}},"no data (date)":{homeAirQuality:{type:"home",status:"not-found"},workAirQuality:{type:"work",status:"not-found"}},"some data (control)":{homeAirQuality:{type:"home",status:"in-range",value:32},workAirQuality:{type:"work",status:"establishing"}},"some data (date)":{homeAirQuality:{type:"home",status:"in-range",value:32},workAirQuality:{type:"work",status:"not-found"}},"all data":{homeAirQuality:{type:"home",status:"in-range",value:32},workAirQuality:{type:"work",status:"out-of-range",value:130,description:"unhealthy"}}};function cve(e){const[a,n]=c(!0);let[r,i]=c(),[o,s]=c();td((()=>{if(n(!0),"loading"!==e.previewState)return e.previewState?(i(lve[e.previewState].homeAirQuality),s(lve[e.previewState].workAirQuality),void n(!1)):void rve.loadParticipant().then((t=>{(e.date?rve.loadAirQualitiesForDate(e.date):rve.loadAirQualitiesForControlStatus(t.getHomeAirQualityZipCode(),t.getWorkAirQualityZipCode())).then((e=>{i(e.find((e=>"home"===e.type))),s(e.find((e=>"work"===e.type))),n(!1)}))}))}),[],[e.previewState]);const l=()=>{!e.previewState&&e.editZipCodesSurveyName&&b.startSurvey(e.editZipCodesSurveyName)},u=e=>t.createElement(k,{onClick:()=>l()},t.createElement("div",{className:"mdhui-asthma-air-qualities-setup"},t.createElement("div",{className:"mdhui-asthma-air-qualities-setup-button"},eo("asthma-air-qualities-setup-button-text")),t.createElement("div",{className:"mdhui-asthma-air-qualities-setup-label"},e))),d=t=>{e.previewState||("not-configured"===t.status&&e.editZipCodesSurveyName?b.startSurvey(e.editZipCodesSurveyName):b.openApplication(e.airQualityUrl,{modal:!0}))};return t.createElement("div",{className:"mdhui-asthma-air-qualities",ref:e.innerRef},t.createElement("div",{className:"mdhui-asthma-air-qualities-header"},t.createElement(iM,{order:2,className:"mdhui-asthma-air-qualities-title"},eo("asthma-air-qualities-title")),e.editZipCodesSurveyName&&t.createElement(k,{className:"mdhui-asthma-air-qualities-settings",onClick:()=>l()},t.createElement(hge,{icon:ie}))),a&&t.createElement(ZA,null),!a&&t.createElement("div",{className:"mdhui-asthma-air-qualities-data"},"not-configured"===r.status&&u(eo("asthma-air-qualities-home-aqi-label")),"not-configured"!==r.status&&t.createElement(tye,{label:eo("asthma-air-qualities-home-aqi-label"),statusText:Mye(r.description)??kye(r.status),statusColor:xye(r.status),value:yl(r.value),onClick:()=>d(r)}),"not-configured"===o.status&&u(eo("asthma-air-qualities-work-aqi-label")),"not-configured"!==o.status&&t.createElement(tye,{label:eo("asthma-air-qualities-work-aqi-label"),statusText:Mye(o.description)??kye(o.status),statusColor:xye(o.status),value:yl(o.value),onClick:()=>d(o)})))}function uve(e){const[a,n]=c(!0);td((()=>{n(!0),e.previewState?n("loading"===e.previewState):rve.loadLogEntries(on(new Date,{days:-2})).then((e=>{let t=bye(new Date),a=e.find((e=>e.identifier===t));a?b.dismiss():n(!1)}))}),[],[e.previewState]);return t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice",ref:e.innerRef},t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice-message"},e.message),t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice-instructions"},eo("asthma-alert-takeover-notice-instructions")),t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice-buttons"},a&&t.createElement(ZA,null),!a&&t.createElement("div",null,t.createElement(YA,{className:"mdhui-asthma-alert-takeover-notice-button",onClick:()=>{e.previewState||(n(!0),b.startSurvey(e.logEntrySurveyName))}},eo("asthma-alert-takeover-notice-add-entry-button-text")),t.createElement(YA,{className:"mdhui-asthma-alert-takeover-notice-button",variant:"light",onClick:()=>{e.previewState||b.dismiss()}},eo("asthma-alert-takeover-notice-not-now-button-text")))))}function dve(e){return td((()=>{e.previewState||rve.loadParticipant().then((t=>{rve.loadAlertTakeover().then((a=>{a&&(t.getAlertTakeover()?rve.loadLogEntries(on(new Date,{days:-2})).then((t=>{let n=bye(new Date);t.find((e=>e.identifier===n))?rve.updateAlertTakeover(a,"cleared","The user has already logged today.").then():rve.updateAlertTakeover(a,"viewed").then((()=>{var t;"DaytimeRestingHeartRate"===(t=a.value)||"NighttimeRestingHeartRate"===t||"RespiratoryRate"===t||"DaytimeBloodOxygenLevel"===t||"NighttimeBloodOxygenLevel"===t?b.openApplication(e.heartAndLungsUrl+"?alert="+t,{modal:!0}):"Steps"===t?b.openApplication(e.activityUrl+"?alert="+t,{modal:!0}):"SleepDisturbances"===t?b.openApplication(e.sleepUrl+"?alert="+t,{modal:!0}):"HomeAirQuality"===t||"WorkAirQuality"===t?b.openApplication(e.airQualityUrl+"?alert="+t,{modal:!0}):t.includes(",")&&b.openApplication(e.alertTakeoverUrl,{modal:!0})}))})):rve.updateAlertTakeover(a,"cleared","The alert is no longer valid.").then())}))}))})),null}w(".mdhui-asthma-alert-takeover-notice {\n padding: 16px;\n text-align: center;\n}\n\n.mdhui-asthma-alert-takeover-notice-message {\n font-size: 1.6em;\n font-weight: bold;\n margin: 16px 0;\n}\n\n.mdhui-asthma-alert-takeover-notice-instructions {\n font-size: 1.2em;\n}\n\n.mdhui-asthma-alert-takeover-notice-buttons {\n margin-top: 32px;\n}\n\n.mdhui-asthma-alert-takeover-notice-button {\n margin: 12px 0;\n}");w(".mdhui-asthma-biometrics {\n padding: 16px;\n}\n\n.mdhui-asthma-biometrics-title {\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-biometrics-data {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n grid-column-gap: 16px;\n grid-row-gap: 16px;\n}\n");const mve={"no data":{daytimeRestingHeartRate:{type:"daytime-resting-heart-rate",status:"establishing"},nighttimeRestingHeartRate:{type:"nighttime-resting-heart-rate",status:"establishing"},respiratoryRate:{type:"respiratory-rate",status:"establishing"},steps:{type:"steps",status:"establishing"},sleepDisturbances:{type:"sleep-disturbances",status:"establishing"},daytimeBloodOxygenLevel:{type:"daytime-blood-oxygen-level",status:"establishing"},nighttimeBloodOxygenLevel:{type:"nighttime-blood-oxygen-level",status:"establishing"}},"some data":{daytimeRestingHeartRate:{type:"daytime-resting-heart-rate",status:"in-range",value:64.45},nighttimeRestingHeartRate:{type:"nighttime-resting-heart-rate",status:"offline",value:60.975},respiratoryRate:{type:"respiratory-rate",status:"establishing"},steps:{type:"steps",status:"out-of-range",value:12909},sleepDisturbances:{type:"sleep-disturbances",status:"establishing"},daytimeBloodOxygenLevel:{type:"daytime-blood-oxygen-level",status:"establishing"},nighttimeBloodOxygenLevel:{type:"nighttime-blood-oxygen-level",status:"in-range",value:.969}},"all data":{daytimeRestingHeartRate:{type:"daytime-resting-heart-rate",status:"in-range",value:64.45},nighttimeRestingHeartRate:{type:"nighttime-resting-heart-rate",status:"offline",value:60.975},respiratoryRate:{type:"respiratory-rate",status:"in-range",value:20.223},steps:{type:"steps",status:"out-of-range",value:12909},sleepDisturbances:{type:"sleep-disturbances",status:"establishing",value:4},daytimeBloodOxygenLevel:{type:"daytime-blood-oxygen-level",status:"in-range",value:.954456},nighttimeBloodOxygenLevel:{type:"nighttime-blood-oxygen-level",status:"in-range",value:.969}}};function hve(e){const[a,n]=c(!0);let[r,i]=c(),[o,s]=c(),[l,u]=c(),[d,m]=c(),[h,p]=c(),[g,f]=c(),[y,v]=c();td((()=>{if(n(!0),"loading"===e.previewState)return;if(e.previewState)return i(mve[e.previewState].daytimeRestingHeartRate),s(mve[e.previewState].nighttimeRestingHeartRate),u(mve[e.previewState].respiratoryRate),m(mve[e.previewState].steps),p(mve[e.previewState].sleepDisturbances),f(mve[e.previewState].daytimeBloodOxygenLevel),v(mve[e.previewState].nighttimeBloodOxygenLevel),void n(!1);(e.date?rve.loadBiometricsForDate(e.date):rve.loadBiometricsForControlStatus()).then((e=>{i(e.find((e=>"daytime-resting-heart-rate"===e.type))),s(e.find((e=>"nighttime-resting-heart-rate"===e.type))),u(e.find((e=>"respiratory-rate"===e.type))),m(e.find((e=>"steps"===e.type))),p(e.find((e=>"sleep-disturbances"===e.type))),f(e.find((e=>"daytime-blood-oxygen-level"===e.type))),v(e.find((e=>"nighttime-blood-oxygen-level"===e.type))),n(!1)}))}),[],[e.previewState]);const w=t=>{e.previewState||("daytime-resting-heart-rate"===t||"nighttime-resting-heart-rate"===t||"respiratory-rate"===t||"daytime-blood-oxygen-level"===t||"nighttime-blood-oxygen-level"===t?b.openApplication(e.heartAndLungsUrl,{modal:!0}):"steps"===t?b.openApplication(e.activityUrl,{modal:!0}):"sleep-disturbances"===t&&b.openApplication(e.sleepUrl,{modal:!0}))};return t.createElement("div",{className:"mdhui-asthma-biometrics",ref:e.innerRef},t.createElement(iM,{order:2,className:"mdhui-asthma-biometrics-title"},eo("asthma-biometrics-title")),a&&t.createElement(ZA,null),!a&&t.createElement("div",{className:"mdhui-asthma-biometrics-data"},t.createElement(tye,{label:eo("asthma-biometrics-daytime-resting-heart-rate-label"),statusText:kye(r.status),statusColor:xye(r.status),value:r.value?yl(r.value):void 0,units:eo("asthma-biometrics-beats-per-minute-units"),onClick:()=>w("daytime-resting-heart-rate")}),t.createElement(tye,{label:eo("asthma-biometrics-nighttime-resting-heart-rate-label"),statusText:kye(o.status),statusColor:xye(o.status),value:o.value?yl(o.value):void 0,units:eo("asthma-biometrics-beats-per-minute-units"),onClick:()=>w("nighttime-resting-heart-rate")}),t.createElement(tye,{label:eo("asthma-biometrics-respiratory-rate-label"),statusText:kye(l.status),statusColor:xye(l.status),value:l.value?yl(l.value):void 0,units:eo("asthma-biometrics-breaths-per-minute-units"),onClick:()=>w("respiratory-rate")}),t.createElement(tye,{label:eo("asthma-biometrics-steps-label"),statusText:kye(d.status),statusColor:xye(d.status),value:yl(d.value),onClick:()=>w("steps")}),t.createElement(tye,{label:eo("asthma-biometrics-daytime-blood-oxygen-level-label"),statusText:kye(g.status),statusColor:xye(g.status),value:g.value?yl(100*g.value):void 0,onClick:()=>w("daytime-blood-oxygen-level"),units:eo("asthma-biometrics-percent-units")}),t.createElement(tye,{label:eo("asthma-biometrics-nighttime-blood-oxygen-level-label"),statusText:kye(y.status),statusColor:xye(y.status),value:y.value?yl(100*y.value):void 0,onClick:()=>w("nighttime-blood-oxygen-level"),units:eo("asthma-biometrics-percent-units")}),t.createElement(tye,{label:eo("asthma-biometrics-sleep-disturbances-label"),statusText:kye(h.status),statusColor:xye(h.status),value:yl(h.value),onClick:()=>w("sleep-disturbances")})))}w(".mdhui-asthma-control-calendar-log-entries .mdhui-action .title {\n font-size: 0.8em;\n color: var(--mdhui-text-color-3);\n margin-bottom: 4px\n}\n\n.mdhui-asthma-control-calendar-log-entries .mdhui-action .subtitle {\n font-size: 1.17em;\n font-weight: 500;\n}\n\n.mdhui-asthma-control-calendar-log-entries .mdhui-unstyled-button {\n border-radius: var(--mdhui-card-border-radius);\n}\n\n.mdhui-asthma-control-calendar-log-entry-components {\n display: grid;\n grid-template-columns: max-content max-content max-content auto;\n grid-column-gap: 8px;\n align-items: center;\n padding: 0 16px 16px;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component {\n display: grid;\n grid-template-columns: max-content auto;\n align-items: center;\n height: 24px;\n line-height: 24px;\n border-radius: 12px;\n font-size: 0.8em;\n padding: 0 8px;\n color: #000;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-symptoms {\n background: #f9debf;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-impacts {\n background: #e6d6fa;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-triggers {\n background: #bfbfbf;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-icon {\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin-right: 4px;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-symptoms .mdhui-asthma-control-calendar-log-entry-component-icon {\n background: #E87C00;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-impacts .mdhui-asthma-control-calendar-log-entry-component-icon {\n background: #9D5BED;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-triggers .mdhui-asthma-control-calendar-log-entry-component-icon {\n background: #000000;\n}\n");const pve=(e,t)=>({identifier:bye(on(new Date,{days:-e})),symptomLevel:t,symptoms:[],impacts:[],triggers:[]}),gve={"no logs":{logEntries:[]},"some logs":{logEntries:[pve(20,"none"),{...pve(19,"mild"),impacts:["Limit your daily activity"]},pve(17,"none"),pve(16,"none"),pve(15,"none"),pve(8,"mild"),pve(8,"none"),pve(7,"none"),pve(6,"none"),pve(5,"none"),pve(4,"none"),pve(3,"none"),pve(2,"mild"),{...pve(1,"mild"),symptoms:["Difficulty breathing"],impacts:["Limit your daily activity"],triggers:["Smoke (tobacco or wood burning)"]},{...pve(0,"mild"),impacts:["Limit your daily activity"]}]}};function fve(e){const a=i(nM),[n,r]=c([]);td((()=>{e.previewState?r(gve[e.previewState].logEntries):rve.loadLogEntries().then((e=>{r(e)}))}),[],[e.previewState]);const o={"not-determined":{style:{background:"var(--mdhui-background-color-0)",border:"3px dashed var(--mdhui-text-color-0)",color:"var(--mdhui-text-color-0)",fontWeight:600,marginTop:"-12px"}},"not-controlled":{style:{background:"#F86A5C",border:"3px solid #F86A5C",color:"#fff",fontWeight:600,marginTop:"-12px"}},controlled:{style:{background:"var(--mdhui-background-color-0)",border:"3px solid #35A6A0",color:"#35A6A0",fontWeight:600,marginTop:"-12px"}},today:{style:{border:"3px solid #369CFF"}},future:{style:{background:"var(--mdhui-background-color-0)",border:"3px solid var(--mdhui-background-color-0)",color:"var(--mdhui-text-color-3)",fontWeight:600,marginTop:"-12px"}},"no-data":{style:{background:"var(--mdhui-background-color-0)",border:"3px solid var(--mdhui-background-color-0)",color:"var(--mdhui-text-color-0)",fontWeight:600,marginTop:"-12px"}}},s=e=>{let t=wye(n,e).status;return"not-determined"===t?"not-determined":"not-controlled"===t?"not-controlled":"controlled"===t?"controlled":kn(e,new Date)?"today":Ar(e,new Date)?"future":"no-data"},l=t=>{e.previewState||Ar(t,new Date)||b.openApplication(e.dayViewUrl+"?date="+xr(t,{representation:"date"}),{modal:!0})};let u=a?.intervalStart??e.intervalStart??Tn(new Date);return t.createElement("div",null,t.createElement(Jfe,{noTopMargin:!0,style:{boxShadow:"none",marginBottom:"0"}},t.createElement(QA,{innerRef:e.innerRef,className:"mdhui-asthma-control-calendar",year:u.getFullYear(),month:u.getMonth(),dayRenderer:(e,a,n)=>t.createElement(XA,{year:e,month:a,day:n,stateConfiguration:o,computeStateForDay:s,onClick:l})})),"verbose"===e.variant&&(()=>{if(0===n.length)return null;let e=Ni(),a={},r=[...n].sort(((e,t)=>e.identifier.localeCompare(t.identifier)))[0],i=Ei(r.identifier);for(let t=0;t<=An(e,i);t++){let e=on(i,{days:t});if(!Sr(e,u)&&Sr(e,on(u,{months:1}))){let t=bye(e);a[t]=n.find((e=>e.identifier===t))}}return t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entries"},Object.keys(a).sort().reverse().map(((n,r)=>{let i=Ei(n),o=a[n];return t.createElement(eS,{key:r},t.createElement($a,{title:rl(i),subtitle:o?Aye(o.symptomLevel):An(e,i)>=2?eo("asthma-control-calendar-daily-entry-missed"):eo("asthma-control-calendar-not-logged-yet"),onClick:()=>l(i)}),o&&(o.symptoms&&o.symptoms.length>0||o.impacts&&o.impacts.length>0||o.triggers&&o.triggers.length>0)&&t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entry-components"},o.symptoms&&o.symptoms.length>0&&t.createElement(yve,{className:"mdhui-asthma-control-calendar-log-entry-component-symptoms",label:eo("asthma-control-calendar-log-entries-symptoms-label")}),o.impacts&&o.impacts.length>0&&t.createElement(yve,{className:"mdhui-asthma-control-calendar-log-entry-component-impacts",label:eo("asthma-control-calendar-log-entries-impacts-label")}),o.triggers&&o.triggers.length>0&&t.createElement(yve,{className:"mdhui-asthma-control-calendar-log-entry-component-triggers",label:eo("asthma-control-calendar-log-entries-triggers-label")})))})))})())}function yve(e){return t.createElement("div",{className:["mdhui-asthma-control-calendar-log-entry-component",e.className].join(" ")},t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entry-component-icon"}),t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entry-component-label"},e.label))}w(".mdhui-asthma-control-status-header {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-control-status-header p:first-child {\n margin-top: 0;\n}\n\n.mdhui-asthma-control-status-header p:last-child {\n margin-bottom: 0;\n}\n\n.mdhui-asthma-control-status-header-text {\n font-size: 1.4em;\n font-weight: bold;\n}\n\n.mdhui-asthma-control-status-header-controlled {\n color: #03dbcc;\n}\n\n.mdhui-asthma-control-status-header-not-controlled {\n color: #fc6666;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stats {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n margin-top: 8px;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stat {\n display: grid;\n grid-template-columns: max-content max-content auto;\n align-items: center;\n grid-column-gap: 8px;\n font-size: 0.8em;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stat-value {\n padding: 2px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n border-radius: 50%;\n text-align: center;\n background: #fc6666;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stat-label {\n height: 30px;\n line-height: 30px;\n text-align: center;\n}\n\n.mdhui-asthma-control-status-header-data-out-of-range {\n color: #9D5BED;\n}");const vve=(e,a)=>{if(e.includes("|||")){const n=e.split("|||");return t.createElement(t.Fragment,null,n[0],t.createElement("span",{className:a},n[1]),n[2])}return t.createElement(t.Fragment,null,e)},bve={"no data":{controlState:{status:"no-data"},biometrics:[],airQualities:[]},"abnormal dhr":{controlState:{status:"no-data"},biometrics:[{type:"daytime-resting-heart-rate",status:"out-of-range"}],airQualities:[]},"abnormal nhr":{controlState:{status:"no-data"},biometrics:[{type:"nighttime-resting-heart-rate",status:"out-of-range"}],airQualities:[]},"abnormal rr":{controlState:{status:"no-data"},biometrics:[{type:"respiratory-rate",status:"out-of-range"}],airQualities:[]},"abnormal activity":{controlState:{status:"no-data"},biometrics:[{type:"steps",status:"out-of-range"}],airQualities:[]},"abnormal sleep":{controlState:{status:"no-data"},biometrics:[{type:"sleep-disturbances",status:"out-of-range"}],airQualities:[]},"abnormal dbol":{controlState:{status:"no-data"},biometrics:[{type:"daytime-blood-oxygen-level",status:"out-of-range"}],airQualities:[]},"abnormal nbol":{controlState:{status:"no-data"},biometrics:[{type:"nighttime-blood-oxygen-level",status:"out-of-range"}],airQualities:[]},"abnormal home aqi":{controlState:{status:"no-data"},biometrics:[],airQualities:[{type:"home",status:"out-of-range",description:"unhealthy"}]},"abnormal work aqi":{controlState:{status:"no-data"},biometrics:[],airQualities:[{type:"work",status:"out-of-range",description:"very unhealthy"}]},"abnormal multiple":{controlState:{status:"no-data"},biometrics:[{type:"steps",status:"out-of-range"}],airQualities:[{type:"work",status:"out-of-range",description:"hazardous"}]},"not determined":{controlState:{status:"not-determined"},biometrics:[],airQualities:[]},"not controlled":{controlState:{status:"not-controlled",symptomDaysPast7:1,nighttimeAwakeningDaysPast7:1,limitedActivityDaysPast7:1,inhalerUseDaysPast7:1},biometrics:[],airQualities:[]},controlled:{controlState:{status:"controlled"},biometrics:[],airQualities:[]}};function wve(e){let[a,n]=c(!0),[r,i]=c(),[o,s]=c(),[l,u]=c();if(td((()=>{if(n(!0),"loading"===e.previewState)return void i(void 0);if(e.previewState)return i(bve[e.previewState].controlState),s(bve[e.previewState].biometrics),u(bve[e.previewState].airQualities),void n(!1);let t=new Date;rve.loadLogEntries(on(new Date(t),{days:-10})).then((a=>{if(e.participant.hasPairedDevice()&&e.participant.hasEstablishedBaseline()){let r=rve.loadBiometricsForControlStatus(),o=rve.loadAirQualitiesForControlStatus(e.participant.getHomeAirQualityZipCode(),e.participant.getWorkAirQualityZipCode());Promise.all([r,o]).then((e=>{i(wye(a,t)),s(e[0]),u(e[1]),n(!1)}))}else i(wye(a,t)),n(!1)}))}),[],[e.previewState]),a&&!r)return null;const d=e=>{const a=vve(e,"mdhui-asthma-control-status-header-data-out-of-range");return t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,a," ",eo("asthma-control-status-header-complete-daily-entry")))},m=(e,a)=>a?t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stat"},t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stat-value"},a,"x"),t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stat-label"},e)):null;return t.createElement("div",{className:"mdhui-asthma-control-status-header",ref:e.innerRef},"no-data"===r.status&&(()=>{if(e.participant.hasPairedDevice()&&e.participant.hasEstablishedBaseline()){if(o.filter((e=>"out-of-range"===e.status)).length+l.filter((e=>"out-of-range"===e.status)).length>1)return d(eo("asthma-control-status-header-multiple-out-of-range"));if("out-of-range"===o.find((e=>"daytime-resting-heart-rate"===e.type||"nighttime-resting-heart-rate"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-heart-rate"));if("out-of-range"===o.find((e=>"respiratory-rate"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-respiratory-rate"));if("out-of-range"===o.find((e=>"steps"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-steps"));if("out-of-range"===o.find((e=>"sleep-disturbances"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-sleep"));if("out-of-range"===o.find((e=>"daytime-blood-oxygen-level"===e.type||"nighttime-blood-oxygen-level"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-blood-oxygen"));if("out-of-range"===l.find((e=>"home"===e.type))?.status){const e=eo("asthma-control-status-header-abnormal-home-aqi",void 0,{aqi:Mye(l.find((e=>"home"===e.type))?.description)||""});return d(e)}if("out-of-range"===l.find((e=>"work"===e.type))?.status){const e=eo("asthma-control-status-header-abnormal-work-aqi",void 0,{aqi:Mye(l.find((e=>"work"===e.type))?.description)||""});return d(e)}}return t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,ive(e.participant,"asthma-control-status-header-no-data")))})(),"not-determined"===r.status&&t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,ive(e.participant,"asthma-control-status-header-not-determined"))),"controlled"===r.status&&t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,vve(ive(e.participant,"asthma-control-status-header-controlled"),"mdhui-asthma-control-status-header-controlled"))),"not-controlled"===r.status&&t.createElement("div",null,t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,vve(ive(e.participant,"asthma-control-status-header-not-controlled"),"mdhui-asthma-control-status-header-not-controlled"))),t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stats"},m(eo("asthma-control-status-header-not-controlled-stat-symptom-days"),r.symptomDaysPast7),m(eo("asthma-control-status-header-not-controlled-stat-rescue-inhaler"),r.inhalerUseDaysPast7),m(eo("asthma-control-status-header-not-controlled-stat-limited-activity"),r.limitedActivityDaysPast7),m(eo("asthma-control-status-header-not-controlled-stat-awakenings"),r.nighttimeAwakeningDaysPast7))))}w(".mdhui-asthma-log-entry-details {\n padding: 16px;\n}\n\n.mdhui-asthma-log-entry-details-header {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n margin-bottom: 20px;\n}\n\n.mdhui-asthma-log-entry-details-header-status {\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.mdhui-asthma-log-entry-details-header-add-button {\n height: 32px;\n line-height: 32px;\n border-radius: 6px;\n font-size: 0.8em;\n padding: 0 16px;\n color: #fff;\n background: #369CFF;\n}\n\n.mdhui-asthma-log-entry-details-header-edit-button {\n height: 32px;\n line-height: 32px;\n border-radius: 6px;\n font-size: 0.8em;\n padding: 0 16px;\n color: #007FF9;\n background: #BBDEFF;\n}\n\n.mdhui-unstyled-button.mdhui-asthma-log-entry-details-header-info-button {\n width: 48px;\n height: 32px;\n text-align: right;\n line-height: 32px;\n font-size: 20px;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-asthma-log-entry-details-component {\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-log-entry-details-component-symptoms .mdhui-asthma-log-entry-details-component-header-icon {\n background: #E87C00;\n}\n\n.mdhui-asthma-log-entry-details-component-symptoms .mdhui-asthma-log-entry-details-component-data {\n background: #f9debf;\n color: #E87C00;\n}\n\n.mdhui-asthma-log-entry-details-component-impacts .mdhui-asthma-log-entry-details-component-header-icon {\n background: #9D5BED;\n}\n\n.mdhui-asthma-log-entry-details-component-impacts .mdhui-asthma-log-entry-details-component-data {\n background: #e6d6fa;\n color: #9D5BED;\n}\n\n.mdhui-asthma-log-entry-details-component-triggers .mdhui-asthma-log-entry-details-component-header-icon {\n background: #000000;\n}\n\n.mdhui-asthma-log-entry-details-component-triggers .mdhui-asthma-log-entry-details-component-data {\n background: #bfbfbf;\n color: #000000;\n}\n\n.mdhui-asthma-log-entry-details-component:last-child {\n margin-bottom: 0;\n}\n\n.mdhui-asthma-log-entry-details-component-header {\n display: grid;\n grid-template-columns: max-content auto;\n grid-column-gap: 4px;\n align-items: center;\n margin-bottom: 8px;\n}\n\n.mdhui-asthma-log-entry-details-component-header-icon {\n display: inline-block;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n}\n\n.mdhui-asthma-log-entry-details-component-header-label {\n font-size: 0.8em;\n font-weight: bold;\n}\n\n.mdhui-asthma-log-entry-details-component-no-data {\n font-size: 0.8em;\n color: var(--mdhui-text-color-3);\n margin-left: 16px;\n}\n\n.mdhui-asthma-log-entry-details-component-data {\n display: inline-block;\n padding: 0 8px;\n height: 24px;\n line-height: 24px;\n border-radius: 12px;\n font-size: 0.7em;\n margin-top: 4px;\n margin-right: 4px;\n}");const kve={identifier:bye(new Date),symptomLevel:"none",symptoms:[],impacts:[],triggers:[]},xve={"not logged":{},"logged with no symptoms":{logEntry:kve},"logged with mild symptoms":{logEntry:{...kve,symptomLevel:"mild",symptoms:["Coughing"],impacts:["Wake up at night","Use your rescue inhaler"],triggers:["Cold/viral illness","Seasonal allergens/pollen","Smoke (tobacco or wood burning)","Air pollution","Dust mites","Mold"]}},"logged with moderate symptoms":{logEntry:{...kve,symptomLevel:"moderate",symptoms:["Coughing"],triggers:["Cold/viral illness","Mold"]}},"logged with severe symptoms":{logEntry:{...kve,symptomLevel:"severe",symptoms:["Coughing","Wheezing"],impacts:["Use your rescue inhaler"]}}};function Ave(e){const[a,n]=c(!0),[r,i]=c();let o=Ni(),s=on(new Date(o),{days:-1}),l=on(new Date(e.date),{days:-1}),u=on(new Date(e.date),{days:1});td((()=>{if(n(!0),"loading"!==e.previewState)return e.previewState?(i(xve[e.previewState].logEntry),void n(!1)):void rve.loadLogEntries(l,u).then((t=>{let a=bye(e.date);i(t.find((e=>e.identifier===a))),n(!1)}))}),[],[e.previewState]);const d=()=>!Sr(e.date,s);return t.createElement("div",{className:"mdhui-asthma-log-entry-details",ref:e.innerRef},a&&t.createElement(ZA,null),!a&&t.createElement("div",null,t.createElement("div",{className:"mdhui-asthma-log-entry-details-header"},t.createElement("div",{className:"mdhui-asthma-log-entry-details-header-status"},r?Aye(r.symptomLevel):d()?eo("asthma-log-entry-details-not-logged-yet"):eo("asthma-log-entry-details-not-editable")),d()?t.createElement(k,{className:"mdhui-asthma-log-entry-details-header-action",onClick:()=>{a||e.previewState||(n(!0),r?b.openApplication(e.editLogEntryUrl+"?date="+xr(e.date,{representation:"date"}),{modal:!0}):kn(e.date,o)?b.startSurvey(e.logTodayEntrySurveyName):kn(e.date,s)&&b.startSurvey(e.logYesterdayEntrySurveyName))}},r?t.createElement("div",{className:"mdhui-asthma-log-entry-details-header-edit-button"},eo("asthma-log-entry-details-edit-button-text")):t.createElement("div",{className:"mdhui-asthma-log-entry-details-header-add-button"},eo("asthma-log-entry-details-add-button-text"))):t.createElement(k,{className:"mdhui-asthma-log-entry-details-header-info-button",onClick:()=>{a||e.previewState||b.openApplication(e.infoUrl,{modal:!0})}},t.createElement(hge,{icon:te}))),t.createElement(Sve,{className:"mdhui-asthma-log-entry-details-component-symptoms",label:eo("asthma-log-entry-details-symptoms-label"),data:Eye(r?.symptoms)}),t.createElement(Sve,{className:"mdhui-asthma-log-entry-details-component-impacts",label:eo("asthma-log-entry-details-impacts-label"),data:Cye(r?.impacts)}),t.createElement(Sve,{className:"mdhui-asthma-log-entry-details-component-triggers",label:eo("asthma-log-entry-details-triggers-label"),data:Pye(r?.triggers)})))}function Sve(e){return t.createElement("div",{className:["mdhui-asthma-log-entry-details-component",e.className].join(" ")},t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-header"},t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-header-icon"}),t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-header-label"},e.label)),0===e.data.length&&t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-no-data"},eo("asthma-log-entry-details-component-no-data",void 0,{dataType:e.label.toLowerCase()})),e.data.length>0&&e.data.map((e=>t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-data"},e))))}w(".mdhui-asthma-log-entry-header {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n\n.mdhui-unstyled-button.mdhui-asthma-log-entry-summary {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n border-radius: 6px;\n padding: 16px;\n margin: 8px 0;\n width: 100%;\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-asthma-log-entry-summary-details {\n font-size: 0.95em;\n}\n\n.mdhui-asthma-log-entry-summary-label {\n}\n\n.mdhui-asthma-log-entry-summary-status {\n font-weight: bold;\n}\n\n.mdhui-asthma-log-entry-summary-add-button {\n height: 32px;\n line-height: 32px;\n border-radius: 16px;\n font-size: 0.8em;\n padding: 0 16px;\n color: #fff;\n background: #369CFF;\n}\n\n.mdhui-asthma-log-entry-summary-chevron {\n color: var(--mdhui-text-color-3);\n}\n\n.mdhui-asthma-log-entry-summary .mdhui-loading-indicator {\n padding: 0;\n}");const Eve={identifier:bye(new Date),symptomLevel:"mild",symptoms:[],impacts:[],triggers:[]},_ve={"no logs":{},"today log only":{todayLogEntry:Eve},"yesterday log only":{yesterdayLogEntry:Eve},"both logs":{yesterdayLogEntry:Eve,todayLogEntry:Eve}};function Cve(e){let[a,n]=c(!0),[r,i]=c(!0),[o,s]=c(),[l,u]=c();if(td((()=>{if(i(!0),"loading"!==e.previewState)return e.previewState?(s(_ve[e.previewState].yesterdayLogEntry),u(_ve[e.previewState].todayLogEntry),i(!1),void n(!1)):void rve.loadLogEntries(on(new Date,{days:-3})).then((e=>{let t=gn(new Date),a=bye(t);u(e.find((e=>e.identifier===a)));let r=gn(on(new Date,{days:-1})),o=bye(r);s(e.find((e=>e.identifier===o))),i(!1),n(!1)}))}),["surveyDidFinish"],[e.previewState]),a)return null;const d=(a,n,i)=>t.createElement(k,{className:"mdhui-asthma-log-entry-summary",onClick:()=>((t,a)=>{e.previewState||r||(a?b.openApplication(e.dayViewUrl+"?date="+a.identifier,{modal:!0}):b.startSurvey(t))})(n,i)},t.createElement("div",{className:"mdhui-asthma-log-entry-summary-details"},t.createElement("div",{className:"mdhui-asthma-log-entry-summary-label"},a),t.createElement("div",{className:"mdhui-asthma-log-entry-summary-status"},(e=>e?Aye(e.symptomLevel):eo("asthma-log-entry-header-not-logged-yet"))(i))),t.createElement("div",{className:"mdhui-asthma-log-entry-summary-action"},r&&t.createElement(ZA,null),!r&&!i&&t.createElement("div",{className:"mdhui-asthma-log-entry-summary-add-button"},eo("asthma-log-entry-header-add-button-text")),!r&&i&&t.createElement(hge,{icon:we,className:"mdhui-asthma-log-entry-summary-chevron"})));return t.createElement("div",{className:"mdhui-asthma-log-entry-header",ref:e.innerRef},d(eo("asthma-log-entry-header-today-log-label"),e.logTodayEntrySurveyName,l),d(eo("asthma-log-entry-header-yesterday-log-label"),e.logYesterdayEntrySurveyName,o))}function Ove(e){const t=()=>{rve.checkSurveyAnswerExists(e.logTodayEntrySurveyName).then((t=>{t||b.queryDeviceData({namespace:"Project",type:"LogAutoLaunched"}).then((t=>{t.deviceDataPoints.length||b.persistDeviceData([{type:"LogAutoLaunched",value:(new Date).toISOString()}]).then((()=>{b.startSurvey(e.logTodayEntrySurveyName)}))}))}))};return td((()=>{e.previewState||rve.loadSurveyAnswers([e.postEnrollmentSurveyName,e.postEnrollmentMobileSurveyName]).then((a=>{a.find((t=>t.surveyName===e.postEnrollmentSurveyName))?a.find((t=>t.surveyName===e.postEnrollmentMobileSurveyName))?t():Promise.all([b.getParticipantInfo(),b.getDeviceInfo()]).then((([a,n])=>{"Caregiver"!==(a.customFields.ParticipantMode??"Self")&&["iOS","Android"].includes(n.platform)?b.startSurvey(e.postEnrollmentMobileSurveyName):t()})):b.startSurvey(e.postEnrollmentSurveyName)}))})),null}const Pve={createDataService:e=>({loadParticipant:()=>"loading"===e?new Promise((()=>oM)):Promise.resolve({getId:()=>"ef698523-118a-414a-bd01-ff97c6cb31f9",getFirstName:()=>"Sally",getParticipantMode:()=>"as caregiver"===e?"Caregiver":"Self",getCareRecipientName:()=>"as caregiver"===e?"Leroy":void 0}),loadLogEntries:()=>Promise.resolve([{identifier:bye(on(new Date,{days:-5})),symptomLevel:"none",symptoms:[],impacts:[],triggers:[]},{identifier:bye(on(new Date,{days:-15})),symptomLevel:"moderate",symptoms:[],impacts:["Wake up at night"],triggers:[]},{identifier:bye(on(new Date,{days:-25})),symptomLevel:"moderate",symptoms:[],impacts:[],triggers:[]}]),loadSurveyAnswers:(e,t)=>Promise.resolve([{stepIdentifier:"MISSED_DOSES_REASONS",answers:["Unable to afford the medications","Medications not working"]},{stepIdentifier:"MISSED_DOSES_REASONS",answers:["None of the above"]},{stepIdentifier:"MISSED_DOSES_REASONS",answers:["Don't want to run out, so purposefully skipping doses"]},{stepIdentifier:"MISSED_DOSES_REASONS",answers:["Unable to afford the medications","Difficulty getting refills","Trouble remembering to take them","I'm confused which inhaler to take when","Don't know why I should take it","Concerns over side effects","Medications not working","Don't want to run out, so purposefully skipping doses","Never learned how to take them","None of the above"]}]),loadAirQualityDataPoints:e=>Promise.resolve([])})};function Tve(e){const[a,n]=c(!0),[r,i]=c(),[o,u]=c([]),[d,m]=c([]),[h,p]=c([]),g=s(null),[f,y]=c(!1),[v,w]=c();let k=Ni(),x=on(k,{days:-89});if(l((()=>{n(!0);const t=e.previewState?Pve.createDataService(e.previewState):rve;let a=t.loadParticipant(),r=t.loadLogEntries(x),o=t.loadSurveyAnswers(e.logEntrySurveyName,x),s=t.loadAirQualityDataPoints(x);Promise.all([a,r,o,s]).then((e=>{i(e[0]),u(e[1]),m(e[2]),p(e[3]),n(!1)}))}),[e.previewState]),a)return t.createElement(ZA,{innerRef:e.innerRef});let A=r.getFirstName();if("Caregiver"===r.getParticipantMode()){const e=r.getCareRecipientName();e&&(A=e)}let S={},E=0,_=0,C=0,O=0,P=0,T=0,M=0,D=0,I=0,N=0,j=0,z=0,R=0,L=0;o.forEach((e=>{S[e.identifier]=wye(o,Ei(e.identifier)),"none"===e.symptomLevel?E++:"mild"===e.symptomLevel?(_++,P++):"moderate"===e.symptomLevel?(C++,P++):"severe"===e.symptomLevel&&(O++,P++),e.symptoms.includes("Coughing")&&T++,e.symptoms.includes("Wheezing")&&M++,e.impacts.includes("Use your rescue inhaler")&&D++,e.impacts.includes("Limit your daily activity")&&I++,e.impacts.includes("Wake up at night")&&N++,e.triggers.includes("Animal exposure")&&j++,e.triggers.includes("Seasonal allergens/pollen")&&z++,e.triggers.includes("Smoke (tobacco or wood burning)")&&R++,e.triggers.includes("Air pollution")&&L++}));let F=0,B=0,H=[];d.forEach((e=>{"MISSED_DOSES"===e.stepIdentifier?(e.answers.includes("1 - 2 missed doses")||e.answers.includes("3 - 6 missed doses")||e.answers.includes("7 or more missed doses"))&&F++:"MISSED_DOSES_REASONS"===e.stepIdentifier&&(e.answers.length>0&&"None of the above"!==e.answers[0]&&B++,e.answers.forEach((e=>{"None of the above"===e||H.includes(e)||H.push(e)})))}));let q=h.filter((e=>"HomeAirQuality"===e.type&&parseFloat(e.value)>100)),V=new Set(q.map((e=>xr(Ei(e.observationDate),{representation:"date"})))).size,U=h.filter((e=>"WorkAirQuality"===e.type&&parseFloat(e.value)>100)),W=new Set(U.map((e=>xr(Ei(e.observationDate),{representation:"date"})))).size;const $=(e,a,n)=>{let r=Array.from({length:a},((t,a)=>a+e));return t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center",justifyContent:"space-evenly",margin:"4px 0"}},r.map((a=>((e,a)=>{let n=on(x,{days:e}),r=bye(n),i=S[r],o={fill:"transparent",stroke:"#fff",strokeWidth:2},s={fontSize:"15px",fontWeight:600,textAlign:"center",lineHeight:"40px"};return"not-controlled"===i?.status?(o.fill="#F86A5C",o.stroke="#F86A5C",s.color="#fff"):"controlled"===i?.status?(o.stroke="#35A6A0",s.color="#35A6A0"):"not-determined"===i?.status&&(o.stroke="#000",o.strokeDasharray=4),t.createElement("div",{style:{textAlign:"center",padding:"1px",flexGrow:1,flexBasis:"5%"}},t.createElement("div",{style:{width:"38px",minHeight:"22px",fontSize:"16px",margin:"2px auto"}},a||1===n.getDate()?ll(n).toLocaleUpperCase():""),t.createElement("svg",{viewBox:"0 0 40px 40px",style:{height:"40px",width:"40px"}},t.createElement("circle",{cx:"20",cy:"20",r:"18",style:o}),t.createElement("foreignObject",{x:"0",y:"0",height:"40px",width:"40px"},t.createElement("div",{style:s},n.getDate()))))})(a,!!n&&e==a))))},G=(e,a,n)=>t.createElement("div",{style:{display:"flex",flexDirection:"row",margin:"2px 0"}},t.createElement("div",{style:{flexGrow:1,marginRight:"4px",fontWeight:500}},e),t.createElement("div",{style:{flexShrink:0}},a," ",n)),K=e=>{let t=`AsthmaTool-ProviderReport-${xr(new Date,{representation:"date"})}`,a=b.baseUrl+"WebVisualization/WebVisualizationPDF?patientID="+r.getId()+"&modelType=VisualizationModel&visualizationKey=Shared.HtmlToPdf&fileName="+encodeURIComponent(t);e&&["Android","iOS"].includes(e.platform)?window.webkit.messageHandlers.OpenFile.postMessage({url:a}):b.openExternalUrl(a),setTimeout((()=>{y(!1)}),2e3)};let Z=1224,Y=(window.innerWidth-32)/Z;return t.createElement("div",{style:{display:"flex",justifyContent:"center"}},t.createElement("div",{style:{position:"absolute",width:Z,height:1575,transform:"scale("+Y+")",transformOrigin:"top"}},t.createElement("div",{style:{position:"relative",padding:"32px 48px",width:Z,height:1575,boxSizing:"border-box",backgroundColor:"#fff",fontFamily:"Inter, sans-serif"},ref:g},t.createElement("div",{style:{fontSize:"32px",fontWeight:600}},A," - Asthma Tool - Provider Report"),t.createElement("div",{style:{fontSize:"24px",color:"#3b3b3b",marginBottom:"16px"}},rl(x)," - ",rl(k)," (90 ",eo("days"),")"),t.createElement("div",{style:{border:"1px solid #dbdbdb",borderRadius:"10px",overflow:"hidden",marginBottom:"16px"}},t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",padding:"16px",borderBottom:"1px solid #dbdbdb",boxSizing:"border-box"}},t.createElement("div",{style:{flexGrow:1}},t.createElement("div",{style:{fontSize:"18px",fontWeight:700}},"Asthma Control"),t.createElement("div",{style:{fontSize:"16px",color:"#3b3b3b",marginBottom:"16px"}},"Patient reported"),t.createElement("div",{style:{display:"flex",flexDirection:"row"}},t.createElement("div",{style:{marginRight:"24px"}},t.createElement("div",{style:{fontSize:"24px",fontWeight:700}},o.length," out of 90"),t.createElement("div",null,"Daily entries logged")),t.createElement("div",{style:{marginRight:"24px"}},t.createElement("div",{style:{fontSize:"24px",fontWeight:700,color:"#F86A5C"}},o.filter((e=>"not-controlled"===S[e.identifier].status)).length," days"),t.createElement("div",null,"Not under control")),t.createElement("div",null,t.createElement("div",{style:{fontSize:"24px",fontWeight:700,color:"#35A6A0"}},o.filter((e=>"controlled"===S[e.identifier].status)).length," days"),t.createElement("div",null,"Under control")))),t.createElement("div",{style:{fontSize:"14px",fontWeight:500,paddingTop:"8px"}},t.createElement("div",{style:{display:"flex",flexDirection:"row",marginBottom:"8px"}},t.createElement("svg",{viewBox:"0 0 20 20",style:{height:"20px",width:"20px"}},t.createElement("circle",{cx:"10",cy:"10",r:"8",style:{fill:"#fff",stroke:"#35A6A0",strokeWidth:2}})),t.createElement("div",{style:{flexGrow:1,padding:"2px 8px"}},"Under control")),t.createElement("div",{style:{display:"flex",flexDirection:"row",marginBottom:"8px"}},t.createElement("svg",{viewBox:"0 0 20 20",style:{height:"20px",width:"20px"}},t.createElement("circle",{cx:"10",cy:"10",r:"8",style:{fill:"#F86A5C",stroke:"#F86A5C",strokeWidth:2}})),t.createElement("div",{style:{flexGrow:1,padding:"2px 8px"}},"Not under control")),t.createElement("div",{style:{display:"flex",flexDirection:"row",marginBottom:"8px"}},t.createElement("svg",{viewBox:"0 0 20 20",style:{height:"20px",width:"20px"}},t.createElement("circle",{cx:"10",cy:"10",r:"8",style:{fill:"#fff",stroke:"#000",strokeWidth:2,strokeDasharray:3}})),t.createElement("div",{style:{flexGrow:1,padding:"2px 8px"}},"Not enough information")))),t.createElement("div",{style:{padding:"12px 16px"}},$(0,18,!0),$(18,18),$(36,18),$(54,18),$(72,18)),t.createElement("div",{style:{fontSize:"14px",color:"#3b3b3b",backgroundColor:"#f2f2f2",padding:"16px"}},"This patient-facing digital asthma tool allows the user to create a daily entry and self-report their symptoms, use of rescue inhaler and impact on activity and nighttime awakenings. The figure above use the self-reported answers to assess asthma control, based on the ",t.createElement("a",{href:"https://www.nhlbi.nih.gov/health-topics/guidelines-for-diagnosis-management-of-asthma",target:"_blank"},"EPR-3 guidelines"),". A day is noted as not under control if in the prior week (7 days) there are more than 2 days of symptoms or rescue inhaler use or due to asthma 1 nighttime awakening or limitation in activity was recorded.")),t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",fontSize:"17px",marginBottom:"16px"}},t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Components of control"),G("Symptoms reported",P,1===P?"day":"days"),G("Rescue inhaler use",D,1===D?"day":"days"),G("Normal activities affected",I,1===I?"day":"days"),G("Nighttime awakenings",N,1===N?"day":"days")),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px",margin:"0 16px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Symptom severity"),G("None",E,1===E?"day":"days"),G("Mild",_,1===_?"day":"days"),G("Moderate",C,1===C?"day":"days"),G("Severe",O,1===O?"day":"days")),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Common symptoms"),G("Coughing",T,1===T?"day":"days"),G("Wheezing",M,1===M?"day":"days"))),t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",fontSize:"16px",marginBottom:"24px"}},t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Top 4 triggers"),G("Animal exposure",j,1===j?"report":"reports"),G("Seasonal allergens/pollen",z,1===z?"report":"reports"),G("Smoke",R,1===R?"report":"reports"),G("Air pollution",L,1===L?"report":"reports")),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px",margin:"0 16px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Medications"),G("Missed doses",F,1===F?"report":"reports"),0===B&&G("Reported barriers to adherence",0,"reports"),B>=1&&G("Reported barriers to adherence*",B,1===B?"report":"reports"),B>=1&&t.createElement("div",{style:{fontSize:"12px",marginTop:"12px"}},"*",H.join("; "))),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Days with AQI over 100"),G("Home",V>0?V:"None",1===V?"day":V>1?"days":""),G("Work",W>0?W:"None",1===W?"day":W>1?"days":""),t.createElement("div",{style:{fontSize:"12px",marginTop:"12px"}},"Source: airnow.gov"))),t.createElement("div",{style:{position:"absolute",bottom:64,left:48,right:48,fontSize:"17px"}},t.createElement("div",{style:{fontSize:"16px",fontWeight:700,marginBottom:"16px"}},"For Providers - About this tool & report:"),t.createElement("div",{style:{marginBottom:"16px"}},"This report was generated from what is logged in the Asthma Tool, powered by ",t.createElement("a",{href:"https://careevolution.com/mydatahelps/",target:"_blank"},"MyDataHelps"),". The Asthma Tool enables patients to track daily their symptoms and triggers, provides clear summaries or what they log and surfaces relevant educational content and resource links. it summarizes the user's symptom logs. This digital tool design was based on promoting self-regulation, which ",t.createElement("a",{href:"https://pubmed.ncbi.nlm.nih.gov/26252889/",target:"_blank"},"studies")," demonstrate can improve conditions such as asthma. The Asthma Tool does not recommend any changes in management or provide diagnosis."),t.createElement("div",{style:{marginBottom:"16px"}},"To provide feedback on this report or tool, please e-mail us: ",t.createElement("a",{href:"mailto:asthma@careevolution.com",target:"_blank"},"asthma@careevolution.com")),t.createElement("div",{style:{marginBottom:"16px",height:"1px",backgroundColor:"#bdbdbd"}}),t.createElement("div",null,"If you plan to share this report with your provider, be aware that communications over email, text, and other channels may not be secure because they can be sent to the wrong address or intercepted.")),t.createElement("div",{style:{position:"absolute",bottom:32,right:48,fontSize:"16px",fontWeight:500,textAlign:"right"}},"Page 1 of 1")),t.createElement("div",{style:{textAlign:"center",margin:"64px 0",transform:"scale("+1/Y+")",transformOrigin:"top"}},f&&t.createElement(ZA,null),!f&&t.createElement("button",{className:"mdhui-button",onClick:()=>(()=>{if(!e.previewState&&!f)if(y(!0),v)K(v);else{let e='<head><link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet"></head>';e+=g.current.outerHTML,b.persistDeviceData([{type:"ReportHtml",value:e}]).then((()=>{b.getDeviceInfo().then((function(e){w(e),K(e)}))}))}})()},t.createElement("div",null,"Generate PDF ",t.createElement(hge,{icon:X}))))))}function Mve(e){const[a,n]=c();if(td((()=>{if("none"===e.previewState)return void n(void 0);if("default"===e.previewState)return void n({number:"34",image:"medications"});let t=Ni();rve.loadLogEntries(on(new Date(t),{days:-10})).then((a=>{let r=bye(t),i=a.find((e=>e.identifier===r));i&&rve.loadSurveyAnswers(e.logTodayEntrySurveyName,t).then((e=>{((e,t,a)=>{let r=[];"controlled"===t.status?r.push({number:"21",image:"asthmacontrol"}):"not-determined"===t.status?r.push({number:"22",image:"asthmacontrol"}):"not-controlled"===t.status&&r.push({number:"25",image:"asthmacontrol"}),e.triggers.includes("Seasonal allergens/pollen")&&r.push({number:"42",image:"triggers"}),e.triggers.includes("Air pollution")&&r.push({number:"43",image:"triggers"}),e.triggers.includes("Cold/viral illness")&&r.push({number:"43a",image:"triggers"}),e.triggers.includes("Animal exposure")&&r.push({number:"43b",image:"triggers"}),e.triggers.includes("Smoke (tobacco or wood burning)")&&r.push({number:"43c",image:"triggers"}),e.triggers.includes("Extreme weather changes")&&r.push({number:"43d",image:"triggers"}),(e.triggers.includes("Strong smells")||e.triggers.includes("Chemicals/cleaning supplies"))&&r.push({number:"43e",image:"triggers"}),(e.triggers.includes("Dust")||e.triggers.includes("Dust mites"))&&r.push({number:"43f",image:"triggers"}),e.triggers.includes("Mold")&&r.push({number:"43g",image:"triggers"}),e.triggers.includes("Had heartburn")&&r.push({number:"43h",image:"triggers"});const i=["Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)","Taken a beta blocker","Had heartburn","Drank red wine","Tried any new foods","Cooked without a fan or open window","Had a pet sleep in your bed","Burned incense or a candle"];e.triggers.find((e=>i.includes(e)))&&r.push({number:"41",image:"triggers"});let o=a.find((e=>"MISSED_DOSES"===e.stepIdentifier));if(o&&(o.answers.includes("No controller med")&&r.push({number:"32",image:"medications"}),o.answers.includes("No missed doses"))){let e=a.find((e=>"MISSED_DOSES_INHALER_TYPE"===e.stepIdentifier));e&&(e.answers.includes("Metered-dose inhaler (MDI)")&&r.push({number:"37a",image:"medications"}),e.answers.includes("Dry-powder inhaler (DPI)")&&r.push({number:"37b",image:"medications"}),e.answers.includes("Soft mist inhaler")&&r.push({number:"37c",image:"medications"}),e.answers.includes("Nebulizer")&&r.push({number:"37d",image:"medications"}))}let s=a.find((e=>"MISSED_DOSES_REASONS"===e.stepIdentifier));s&&((s.answers.includes("Unable to afford the medications")||s.answers.includes("Don't want to run out, so purposefully skipping doses"))&&r.push({number:"33",image:"medications"}),s.answers.includes("Difficulty getting refills")&&r.push({number:"34",image:"medications"}),s.answers.includes("Trouble remembering to take them")&&r.push({number:"35",image:"medications"}),s.answers.includes("I'm confused which inhaler to take when")&&r.push({number:"36",image:"medications"}),s.answers.includes("Don't know why I should take it")&&r.push({number:"38",image:"medications"}),s.answers.includes("Concerns over side effects")&&r.push({number:"39",image:"medications"}),s.answers.includes("Medications not working")&&r.push({number:"39a",image:"medications"})),"severe"===e.symptomLevel&&r.push({number:"24",image:"asthmacontrol"}),r.length>0?n(r[Math.floor(Math.random()*r.length)]):n(void 0)})(i,wye(a,t),e)}))}))}),[],[e.previewState]),!a)return null;let r=(t=>{let a=to(b.getCurrentLanguage());return{title:eo(`asthma-recommended-article-${t.number}-title`),subTitle:eo(`asthma-recommended-article-${t.number}-subtitle`),url:new URL(`atedu_${t.number}${"es"===a?"_es":""}.html`,e.libraryBaseUrl).href,imageUrl:new URL(`images/article_category_${t.image}${"es"===a?"_es":""}.svg`,e.libraryBaseUrl).href}})(a);return t.createElement("div",{className:"mdhui-asthma-recommended-article",style:e.style},t.createElement(Zfe,{title:r.title,subTitle:r.subTitle,imageUrl:r.imageUrl,imageAlignment:e.imageAlignment,buttonVariant:e.buttonVariant,buttonText:e.buttonText,onClick:()=>{e.previewState||b.openEmbeddedUrl(r.url)},innerRef:e.innerRef}))}function Dve(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showCloseButton:!0}),t.createElement(sve,{previewState:e.previewState,learnMoreUrl:e.learnMoreUrl,editActionPlanSurveyName:e.editActionPlanSurveyName}))}function Ive(e){const[a,n]=c();let r;return"default"===e.previewState&&(r=(e,t)=>Ec(e,t,2e3,2e4)),td((()=>{"default"!==e.previewState?rve.loadParticipant().then((e=>{n(e.getStepsBaseline())})):n(1e4)})),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-activity-view-title"))),t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:r,title:eo("asthma-activity-view-chart-title"),dailyDataType:Fye.Steps,highlight:e=>!!a&&!jye(a,e),emptyDomain:[0,1e4]}),"Steps"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-activity-view-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}function Nve(e){let a;return"default"===e.previewState&&(a=(e,t)=>Ec(e,t,30,130)),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-air-quality-view-title"))),(!e.alert||"HomeAirQuality"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:a,title:eo("asthma-air-quality-view-home-aqi-chart-title"),dailyDataType:Li.HomeAirQuality,highlight:e=>e>100,emptyDomain:[0,160]}),(!e.alert||"WorkAirQuality"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:a,title:eo("asthma-air-quality-view-work-aqi-chart-title"),dailyDataType:Li.WorkAirQuality,highlight:e=>e>100,emptyDomain:[0,160]}),"HomeAirQuality"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-air-quality-view-home-aqi-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"WorkAirQuality"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-air-quality-view-work-aqi-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}function jve(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"}),t.createElement("div",{style:{background:"#ccc",height:160,width:160,borderRadius:"50%",margin:"32px auto"}}),t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-alert-takeover-message"),logEntrySurveyName:e.logEntrySurveyName}))}function zve(e){const[a,n]=c(!0),[r,i]=c();return td((()=>{if(n(!0),"loading"!==e.previewState)return e.previewState?(i({getParticipantMode:()=>"as caregiver"===e.previewState?"Caregiver":"Self"}),void n(!1)):void rve.loadParticipant().then((e=>{i(e),n(!1)}))}),[],[e.previewState]),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0},t.createElement(iM,{order:2},rl(e.date))),a&&t.createElement(ZA,null),!a&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(Ave,{previewState:e.previewState?"logged with mild symptoms":void 0,date:e.date,logTodayEntrySurveyName:e.logTodayEntrySurveyName,logYesterdayEntrySurveyName:e.logYesterdayEntrySurveyName,editLogEntryUrl:e.editLogEntryUrl,infoUrl:e.logEntryInfoUrl})),"Caregiver"!==r.getParticipantMode()&&t.createElement(eS,null,t.createElement(hve,{previewState:e.previewState?"all data":void 0,heartAndLungsUrl:e.heartAndLungsUrl,activityUrl:e.activityUrl,sleepUrl:e.sleepUrl,date:e.date})),t.createElement(eS,null,t.createElement(cve,{previewState:e.previewState?"all data":void 0,airQualityUrl:e.airQualityUrl,date:e.date}))))}function Rve(e){const[a,n]=c(),[r,i]=c(),[o,s]=c(),[l,u]=c(),[d,m]=c();let h,p,g;return"default"===e.previewState&&(h=(e,t)=>Ec(e,t,30,150,!1),p=(e,t)=>Ec(e,t,10,50),g=(e,t)=>Ec(e,t,.85,1,!1)),td((()=>{if("default"===e.previewState)return n(90),i(90),s(30),u(.97),void m(.96);rve.loadParticipant().then((e=>{n(e.getDaytimeRestingHeartRateBaseline()),i(e.getNighttimeRestingHeartRateBaseline()),s(e.getRespiratoryRateBaseline()),u(e.getDaytimeBloodOxygenLevelBaseline()),m(e.getNighttimeBloodOxygenLevelBaseline())}))})),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-heart-and-lungs-view-title"))),(!e.alert||"DaytimeRestingHeartRate"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:h,title:eo("asthma-heart-and-lungs-view-dhr-chart-title"),dailyDataType:Fye.DaytimeRestingHeartRate,valueFormatter:e=>yl(e),highlight:e=>!!a&&!Dye(a,e),emptyDomain:[0,120]}),(!e.alert||"NighttimeRestingHeartRate"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:h,title:eo("asthma-heart-and-lungs-view-nhr-chart-title"),dailyDataType:Fye.NighttimeRestingHeartRate,valueFormatter:e=>yl(e),highlight:e=>!!r&&!Iye(r,e),emptyDomain:[0,120]}),(!e.alert||"RespiratoryRate"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:p,title:eo("asthma-heart-and-lungs-view-rr-chart-title"),dailyDataType:Fye.RespiratoryRate,highlight:e=>!!o&&!Nye(o,e),emptyDomain:[0,40]}),(!e.alert||"DaytimeBloodOxygenLevel"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:g,title:eo("asthma-heart-and-lungs-view-dbol-chart-title"),dailyDataType:Fye.DaytimeBloodOxygenLevel,valueConverter:e=>100*e,valueFormatter:e=>yl(e),highlight:e=>!!l&&!Rye(l,e),domain:[80,100],emptyDomain:[80,100]}),(!e.alert||"NighttimeBloodOxygenLevel"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:g,title:eo("asthma-heart-and-lungs-view-nbol-chart-title"),dailyDataType:Fye.NighttimeBloodOxygenLevel,valueConverter:e=>100*e,valueFormatter:e=>yl(e),highlight:e=>!!d&&!Rye(d,e),domain:[80,100],emptyDomain:[80,100]}),"DaytimeRestingHeartRate"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-dhr-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"NighttimeRestingHeartRate"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-nhr-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"RespiratoryRate"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-rr-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"DaytimeBloodOxygenLevel"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-dbol-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"NighttimeBloodOxygenLevel"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-nbol-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}w(".mdhui-asthma-recommended-article {\n padding: 0 16px;\n margin: 16px 0;\n}\n\n.mdhui-asthma-recommended-article .mdhui-resource {\n margin: 0;\n}");const Lve={identifier:bye(new Date),symptomLevel:"none",symptoms:[],impacts:[],triggers:[]},Fve={"no symptoms":{logEntry:Lve},"mild symptoms":{logEntry:{...Lve,symptomLevel:"mild",symptoms:["Coughing"],impacts:["Wake up at night","Use your rescue inhaler"],triggers:["Cold/viral illness","Seasonal allergens/pollen","Smoke (tobacco or wood burning)","Air pollution","Dust mites","Mold"]}},"moderate symptoms":{logEntry:{...Lve,symptomLevel:"moderate",symptoms:["Coughing"],triggers:["Cold/viral illness","Mold"]}},"severe symptoms":{logEntry:{...Lve,symptomLevel:"severe",symptoms:["Coughing","Wheezing"],impacts:["Use your rescue inhaler"]}}};function Bve(e){let a=on(Ni(),{days:-1});if(Sr(e.date,a))return b.dismiss(),null;const[n,r]=c(!0),[i,o]=c();td((()=>{if(r(!0),"loading"===e.previewState)return;if(e.previewState)return o(Fve[e.previewState].logEntry),void r(!1);let t=on(new Date(e.date),{days:-1}),a=on(new Date(e.date),{days:1});rve.loadLogEntries(t,a).then((t=>{let a=bye(e.date),n=t.find((e=>e.identifier===a));n?o(n):b.dismiss(),r(!1)}))}),[],[e.previewState]);const s=e=>{(e=>{let t={...i,symptomLevel:e};"none"===e&&(t.symptoms=[]),o(t)})(Sye(e))},l=e=>{(e=>{let t={...i,symptoms:e};e.length>0&&"none"===t.symptomLevel&&(t.symptomLevel="mild"),o(t)})(_ye(e))},u=t.createElement(k,{className:"button",style:{left:"16px"},onClick:()=>{e.previewState||b.dismiss()}},"Cancel"),d=t.createElement(k,{className:"button",style:{color:"#fff",background:"#369cff",right:"16px",padding:"0 16px"},onClick:()=>{n||e.previewState||rve.saveLogEntry(i).then((()=>{b.dismiss()}))}},"Save");return t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{title:rl(e.date),navigationBarLeft:u,navigationBarRight:d,variant:"compressed",backgroundColor:"var(--mdhui-background-color-0)"}),n&&t.createElement(ZA,null),!n&&i&&t.createElement("div",null,t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-symptom-level-title"),subtitle:eo("asthma-log-entry-editor-view-select-one-subtitle"),values:[eo("asthma-symptom-level-none"),eo("asthma-symptom-level-mild"),eo("asthma-symptom-level-moderate"),eo("asthma-symptom-level-severe")],selectedValues:[Aye(i.symptomLevel)],preventEmptySelections:!0,onChange:e=>s(e[0])})),t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-symptoms-title"),subtitle:eo("asthma-log-entry-editor-view-select-all-subtitle"),values:[eo("asthma-symptom-difficulty-breathing"),eo("asthma-symptom-wheezing"),eo("asthma-symptom-coughing"),eo("asthma-symptom-chest-tightness")],selectedValues:Eye(i.symptoms),variant:"checkboxes",multiSelect:!0,onChange:e=>l(e)})),t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-impacts-title"),subtitle:eo("asthma-log-entry-editor-view-select-all-subtitle"),values:[eo("asthma-impact-waking-at-night"),eo("asthma-impact-limit-daily-activity"),eo("asthma-impact-using-rescue-inhaler")],selectedValues:Cye(i.impacts),variant:"checkboxes",multiSelect:!0,onChange:e=>{return t=e,void o({...i,impacts:Oye(t)});var t}})),t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-triggers-title"),subtitle:eo("asthma-log-entry-editor-view-select-all-subtitle"),values:[eo("asthma-trigger-cold-illness"),eo("asthma-trigger-animal-exposure"),eo("asthma-trigger-seasonal-allergens"),eo("asthma-trigger-exercise"),eo("asthma-trigger-smoke"),eo("asthma-trigger-weather-changes"),eo("asthma-trigger-air-pollution"),eo("asthma-trigger-strong-smells"),eo("asthma-trigger-chemicals"),eo("asthma-trigger-dust"),eo("asthma-trigger-mold"),eo("asthma-trigger-dust-mites"),eo("asthma-trigger-rodents"),eo("asthma-trigger-cockroaches"),eo("asthma-trigger-nsaid"),eo("asthma-trigger-beta-blocker"),eo("asthma-trigger-heartburn"),eo("asthma-trigger-red-wine"),eo("asthma-trigger-new-foods"),eo("asthma-trigger-cooked-without-ventilation"),eo("asthma-trigger-pet-in-bed"),eo("asthma-trigger-incense-or-candle")],selectedValues:Pye(i.triggers),variant:"checkboxes",multiSelect:!0,onChange:e=>{return t=e,void o({...i,triggers:Tye(t)});var t}}))))}function Hve(e){return t.createElement(Wa,{colorScheme:"light"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0},t.createElement(iM,{order:1},"Provider Report")),t.createElement(Tve,{previewState:e.previewState,logEntrySurveyName:e.logEntrySurveyName}))}function qve(e){const[a,n]=c();let r;return"default"===e.previewState&&(r=(e,t)=>Ec(e,t,0,15)),td((()=>{"default"!==e.previewState?rve.loadParticipant().then((e=>{n(e.getSleepDisturbancesBaseline())})):n(5)})),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-sleep-view-title"))),t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:r,title:eo("asthma-sleep-view-chart-title"),dailyDataType:Fye.SleepDisturbances,highlight:e=>!!a&&!zye(a,e),emptyDomain:[0,16]}),"SleepDisturbances"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-sleep-view-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}function Vve(e){return t.createElement(Wa,{colorScheme:"light",className:"mdhui-step-container"+(e.className?` ${e.className}`:""),bodyBackgroundColor:"#FFFFFF"},e.children)}function Uve(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?`${e.fontSize}px`:void 0,fontWeight:e.fontWeight,backgroundImage:""}}w(".mdhui-step-container {\n background-color: #FFFFFF;\n}\n\n.mdhui-step-container div,\n.mdhui-step-container dl,\n.mdhui-step-container dt,\n.mdhui-step-container dd,\n.mdhui-step-container ul,\n.mdhui-step-container ol,\n.mdhui-step-container li,\n.mdhui-step-container h1,\n.mdhui-step-container h2,\n.mdhui-step-container h3,\n.mdhui-step-container h4,\n.mdhui-step-container h5,\n.mdhui-step-container h6,\n.mdhui-step-container pre,\n.mdhui-step-container form,\n.mdhui-step-container fieldset,\n.mdhui-step-container input,\n.mdhui-step-container textarea,\n.mdhui-step-container p,\n.mdhui-step-container blockquote,\n.mdhui-step-container th,\n.mdhui-step-container td {\n margin: 0;\n padding: 0;\n}\n\n.mdhui-step-container a {\n color: var(--mdhui-color-primary);\n text-decoration: none;\n}\n\n.mdhui-step-container ol {\n list-style-type: decimal;\n white-space: normal;\n list-style-position: inside;\n}\n\n.mdhui-step-container ul {\n list-style-type: disc;\n text-align: left;\n display: block;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n white-space: normal;\n}\n\n.mdhui-step-container ul ul {\n list-style-type: circle;\n}\n\n.mdhui-step-container ul ul ul {\n list-style-type: square;\n}");function Wve(e){let a,n=new $_;a=e.inline?n.renderInline(e.text??""):n.render(e.text??""),a=a?.trim();let r=JT(a,{replace:e=>{let t=e;"a"===t.name&&(t.attribs.target="_blank")}});return t.createElement(t.Fragment,null,r)}function $ve(e){return e.text?t.createElement("div",{className:"mdhui-step-title",style:Uve(e)},t.createElement(Wve,{text:e.text,inline:!0})):null}w(".mdhui-step-container .mdhui-step-title {\n text-align: center;\n font-size: 1.7em;\n line-height: 1.2em;\n font-weight: normal;\n margin-top: 20px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n position: relative;\n display: block;\n}");function Gve(e){return e.text?t.createElement("div",{className:"mdhui-step-text",style:Uve(e)},t.createElement(Wve,{text:e.text})):null}w(".mdhui-step-container .mdhui-step-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n white-space: pre-line;\n}");function Kve(e){return e.text?t.createElement("div",{className:"mdhui-step-detail-text",style:Uve(e)},t.createElement(Wve,{text:e.text})):null}w(".mdhui-step-container .mdhui-step-detail-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px;\n white-space: pre-line;\n}");function Zve(e){const a=Uve(e);if(e.gradient){var n="LeftToRight"===e.gradient.direction?`linear-gradient(to right, ${e.gradient.startColor} 0%, ${e.gradient.endColor} 100%)`:`linear-gradient(to bottom, ${e.gradient.startColor} 0%, ${e.gradient.endColor} 100%)`;a.backgroundImage=n}a.letterSpacing=e.letterSpacing,a.textTransform=e.textTransform,a.backgroundColor=e.backgroundColor,a.borderColor=e.backgroundColor;var r=e.text?e.text:eo("next-button-text");return t.createElement("button",{className:"mdhui-step-next-button",style:a,disabled:e.disabled,onClick:e.onClick},r)}w(".mdhui-step-container .mdhui-step-next-button {\n margin: 20px;\n padding: 16px;\n background: var(--mdhui-color-primary);\n font-size: 1em;\n color: #FFF;\n font-weight: bold;\n border: solid 1px var(--mdhui-color-primary);\n border-radius: 5px;\n cursor: pointer;\n width: calc(100% - 40px);\n box-sizing: border-box;\n text-align: center;\n display: inline-block;\n}\n\n.mdhui-step-container .mdhui-step-next-button:disabled,\n.mdhui-step-container .mdhui-step-next-button[disabled] {\n opacity: 0.65;\n cursor: not-allowed;\n}");var Yve=150,Qve=2,Xve=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],Jve=!1,ebe=null,tbe=[],abe=0;function nbe(e,t,a){return e.color=Xve[Math.random()*Xve.length|0],e.x=Math.random()*t,e.y=Math.random()*a-a,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=0,e}function rbe(){var e=window.innerWidth,t=window.innerHeight,a=window.requestAnimationFrame||function(e){return window.setTimeout(e,16.6666667)},n=document.getElementById("confetti-canvas");null===n&&((n=document.createElement("canvas")).setAttribute("id","confetti-canvas"),n.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(n),n.width=e,n.height=t,window.addEventListener("resize",(function(){n.width=window.innerWidth,n.height=window.innerHeight}),!0));for(var r=n.getContext("2d");tbe.length<Yve;)tbe.push(nbe({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));Jve=!0,null===ebe&&function e(){r?.clearRect(0,0,window.innerWidth,window.innerHeight),0===tbe.length?ebe=null:(!function(){var e,t=window.innerWidth,a=window.innerHeight;abe+=.01;for(var n=0;n<tbe.length;n++)e=tbe[n],!Jve&&e.y<-15?e.y=a+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(abe),e.y+=.5*(Math.cos(abe)+e.diameter+Qve),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>a)&&(Jve&&tbe.length<=Yve?nbe(e,t,a):(tbe.splice(n,1),n--))}(),function(e){if(e)for(var t,a,n=0;n<tbe.length;n++)t=tbe[n],e.beginPath(),e.lineWidth=t.diameter,e.strokeStyle=t.color,a=t.x+t.tilt,e.moveTo(a+t.diameter/2,t.y),e.lineTo(a,t.y+t.tilt+t.diameter/2),e.stroke()}(r),ebe=a(e))}()}function ibe(){Jve=!1}function obe(e){return e.srcUrl?t.createElement("div",{className:"mdhui-step-image-icon"},t.createElement("img",{src:e.srcUrl})):null}w(".mdhui-step-container .mdhui-step-image-icon {\n text-align: center;\n}\n\n.mdhui-step-container .mdhui-step-image-icon img {\n max-width: 100%;\n max-height: 60px;\n padding: 0;\n margin: 0;\n padding-top: 50px;\n}");function sbe(e){return e.srcUrl?t.createElement("div",{className:"mdhui-step-image"},t.createElement("img",{src:e.srcUrl})):null}function lbe(e){function a(){0!==window.innerWidth&&0!==window.innerHeight?(rbe(),window.setTimeout((function(){ibe()}),1200)):window.setTimeout(a,50)}return l((()=>{a()}),[]),t.createElement(Vve,null,t.createElement(obe,{srcUrl:e.iconUrl}),t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(Kve,{text:e.detailText,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(sbe,{srcUrl:e.imageUrl}),t.createElement(Zve,{text:e.nextButtonText,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:()=>b.completeStep("")}))}function cbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c(),[s,u]=c(),[d,m]=c(),[h,p]=c(),[g,f]=c({});return l((()=>{b.getStepConfiguration().then((function(e){e&&(a(e.properties.title),r(e.properties.text),o(e.properties.detailText),u(e.properties.iconImage),m(e.properties.image),p(e.properties.nextButtonText),f(e.styles??{}))}))}),[]),t.createElement(lbe,{title:e,text:n,detailText:i,iconUrl:s,imageUrl:d,nextButtonText:h,styles:g})}function ube(e){const a=eo("connect-to-device").replace("@@DEVICE@@",e.deviceType);return t.createElement(Vve,null,t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(Zve,{text:a,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:e.onConnect}))}function dbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c({}),[s,u]=c(),[d,m]=c(!0);function h(e){switch(e){case"Fitbit":return rV();case"Omron":return sV();case"Garmin":return iV();case"Oura":return lV()}}return l((()=>{b.getStepConfiguration().then((function(e){if(a(e.properties.title),r(e.properties.text),!e.properties.deviceType)throw new Error("deviceType is required");u(e.properties.deviceType),o(e.styles??{}),async function(e){try{const t=await b.getExternalAccounts(),a=h(e);t.some((e=>e.provider.id===a))&&b.completeStep(a)}finally{m(!1)}}(e.properties.deviceType)}))}),[]),d||!s?t.createElement(t.Fragment,null):t.createElement(ube,{title:e,text:n,deviceType:s,providerID:h(s),styles:i,onConnect:function(){const e=h(s);b.connectExternalAccount(e,{openNewWindow:!0}).then((function(){b.completeStep(e)}))}})}w(".mdhui-step-container .mdhui-step-image {\n text-align: center;\n}\n.mdhui-step-container .mdhui-step-image img {\n width: 100%;\n padding: 0;\n margin: 0;\n padding-top: 40px;\n padding-bottom: 40px;\n}");function mbe(e){return t.createElement(Vve,{className:"mdhui-connect-ehr-step"},t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(ffe,{previewState:e.previewState,providerCategories:["Provider","Health Plan"],onProviderConnected:e.onProviderConnected}),t.createElement(Zve,{text:e.nextButtonText,disabled:e.nextButtonDisabled,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:e.onNextButtonClick}))}function hbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c(),[s,u]=c(),[d,m]=c(!0),[h,p]=c({}),[g,f]=c([]);return l((()=>{b.getStepConfiguration().then((function(e){e&&(a(e.properties.title),r(e.properties.text),u(e.properties.nextButtonText),p(e.styles??{}))})),b.getSurveyContext().then((function(e){e&&o(e)}))}),[]),t.createElement(mbe,{title:e,text:n,nextButtonText:s,nextButtonDisabled:d,styles:h,onProviderConnected:function(e){f((t=>[...t,e.id])),m(!1)},previewState:"Design"===i?.surveyMode?"Default":void 0,onNextButtonClick:()=>b.completeStep(g.toString())})}function pbe(e){let a=(e.height?e.height:"225")+"px",n=b.getCurrentLanguage();return t.createElement(Vve,null,t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement("div",{style:{textAlign:"center",width:"100%"}},t.createElement("iframe",{style:{width:"100%",height:a,border:0},src:`https://www.youtube.com/embed/${e.videoId}?rel=0&cc_lang_pref=${n}&controls=1&autoplay=0&fs=1&modestbranding=1`,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})),t.createElement(Kve,{text:e.transcript,textAlign:e.styles.detailTextAlignment,color:e.styles.detailTextColor,fontSize:e.styles.detailTextFontSize,fontWeight:e.styles.detailTextFontWeight}),t.createElement(Zve,{text:e.nextButtonText,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:()=>b.completeStep("")}))}function gbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c(),[s,u]=c(""),[d,m]=c(),[h,p]=c(),[g,f]=c({});return l((()=>{b.getStepConfiguration().then((function(e){e&&(a(e.properties.title),r(e.properties.text),o(e.properties.transcript),u(e.properties.videoId),m(e.properties.nextButtonText),p(e.properties.height),f(e.styles??{}))}))}),[]),t.createElement(pbe,{title:e,text:n,transcript:i,nextButtonText:d,height:h,videoId:s,styles:g})}w(".mdhui-step-container.mdhui-connect-ehr-step .mdhui-provider-search {\n margin-bottom: 94px;\n}\n.mdhui-step-container.mdhui-connect-ehr-step .mdhui-step-next-button {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n}");function fbe(e){e.customFields.Symptoms?.length||(e.customFields.Symptoms="[]"),e.customFields.Treatments?.length||(e.customFields.Treatments="[]");var t=[];try{t=JSON.parse(e.customFields.Symptoms)}catch(a){t=JSON.parse(e.customFields.Symptoms.replace(/\\/g,""))}t.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),t.forEach((e=>{e.severityTracking||(e.severityTracking="None")}));var a=[];try{a=JSON.parse(e.customFields.Treatments)}catch(t){a=JSON.parse(e.customFields.Treatments.replace(/\\/g,""))}return a.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),{participantID:e.participantID,symptoms:t,treatments:a}}w(".ss-symptom-matrix {\n background: var(--mdhui-background-color-0);\n /* Default color for PDF Rendering, since evopdf does not support CSS variables */\n border-top: solid 1px #ddd;\n border-top: solid 1px var(--mdhui-border-color-1);\n}");var ybe={getConfiguration:function(){return b.getParticipantInfo().then((function(e){return fbe(e)}))},getDailyLogEntries:function(e,t){var a={},n=function(r){var i={namespace:"Project",type:"DailyLogEntry",pageID:r};return e&&(i.observedAfter=e),t&&(i.observedBefore=t),b.queryDeviceData(i).then((function(e){for(var t=e.deviceDataPoints,r=0;r<t.length;r++){var i=JSON.parse(t[r].value),o=t[r].observationDate;o&&(a[o.substring(0,10)]=vbe(i))}return e.nextPageID?n(e.nextPageID):a}))};return n()},saveDailyLogEntry:function(e,t){return b.persistDeviceData([{type:"DailyLogEntry",observationDate:e+"T00:00:00.000Z",value:JSON.stringify(t)}])}};function vbe(e){e.starred&&(e.icon="star");var t={overallFeeling:e.overallFeeling,notes:e.notes,symptoms:e.symptoms.map((e=>"string"==typeof e?{id:e}:e)),treatments:e.treatments.map((e=>"string"==typeof e?{id:e}:e)),icon:e.icon};return t}function bbe(e){return t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-symptom-treatment-filters"},t.createElement(k,{className:"mdhui-ss-symptom-treatment-filter-dropdown-button",onClick:()=>"Symptoms"==e.expandedDropdown?e.onExpandedDropdownChange(null):e.onExpandedDropdownChange("Symptoms"),style:{fontWeight:e.selectedSymptoms.length>0?"bold":""}},eo("select-symptoms")," ",t.createElement(hge,{icon:"Symptoms"==e.expandedDropdown?z:oe}),t.createElement(JA,null)),t.createElement(k,{className:"mdhui-ss-symptom-treatment-filter-dropdown-button",onClick:()=>"Treatments"==e.expandedDropdown?e.onExpandedDropdownChange(null):e.onExpandedDropdownChange("Treatments"),style:{fontWeight:e.selectedTreatments.length>0?"bold":""}},eo("select-treatments")," ",t.createElement(hge,{icon:"Treatments"==e.expandedDropdown?z:oe}),t.createElement(JA,null)),"Symptoms"==e.expandedDropdown&&t.createElement("div",{className:"mdhui-ss-symptom-treatment-filter-items-list"},e.configuration.symptoms.filter((e=>!e.inactive)).map((a=>t.createElement(uye,{className:"mdhui-ss-symptom-treatment-filter-item",selected:-1!=e.selectedSymptoms.indexOf(a.id),onClick:()=>{return t=a,-1!=(n=[...e.selectedSymptoms]).indexOf(t.id)?n.splice(n.indexOf(t.id),1):n.push(t.id),void e.onSymptomsSelectionChange(n);var t,n},color:a.color,key:a.id,text:a.name})))),"Treatments"==e.expandedDropdown&&t.createElement("div",{className:"mdhui-ss-symptom-treatment-filter-items-list"},e.configuration.treatments.filter((e=>!e.inactive)).map((a=>t.createElement(uye,{className:"mdhui-ss-symptom-treatment-filter-item",selected:-1!=e.selectedTreatments.indexOf(a.id),onClick:()=>{return t=a,-1!=(n=[...e.selectedTreatments]).indexOf(t.id)?n.splice(n.indexOf(t.id),1):n.push(t.id),void e.onTreatmentsSelectionChange(n);var t,n},color:a.color,key:a.id,text:a.name})))))}w(".mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-dropdown-button {\n width: 50%;\n display: inline-block;\n box-sizing: border-box;\n padding: 16px 8px;\n background: var(--mdhui-color-primary);\n text-align: center;\n font-size: .88em;\n cursor: pointer;\n color: #FFF;\n position: relative;\n white-space: nowrap;\n}\n\n.mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-dropdown-button:first-child {\n border-right: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-items-list {\n background: var(--mdhui-background-color-0);\n text-align: center;\n padding: 12px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-bottom: solid 4px var(--ss-primary-theme-color);\n}\n\n.mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-item {\n margin: 4px;\n}");var wbe=[{severityTracking:"10PointScale",color:"#c4291c",name:"Headache",id:"Headache"},{severityTracking:"3PointScale",color:"#e35c33",name:"Fatigue",id:"Fatigue"},{severityTracking:"None",color:"#5db37e",name:"Nausea",id:"Nausea"},{severityTracking:"None",color:"#429bdf",name:"Anxiety",id:"Anxiety"},{severityTracking:"None",color:"#7b88c6",name:"Brain Fog",id:"Brain Fog"},{severityTracking:"None",color:"#616161",name:"Back Pain",id:"Back Pain"},{severityTracking:"None",color:"#d98177",name:"Insomnia",id:"Insomnia"}],kbe=[{color:"#616161",id:"Tylenol",name:"Tylenol"},{color:"#429BDF",id:"Rest",name:"Rest"},{color:"#d98177",id:"Ice",name:"Ice"},{color:"#5db37e",id:"Stretching",name:"Stretching"},{color:"#e35c33",id:"Meditation",name:"Meditation"}];wbe.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),kbe.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0));var xbe={},Abe=on(new Date,{days:-29});function Sbe(e,t,a,n,r){xbe[Ri(Abe)]={symptoms:e.map((e=>({id:e,severity:Math.floor(10*Math.random())+1}))),treatments:t.map((e=>({id:e}))),notes:r?"notes":"",icon:n,overallFeeling:a},Abe=on(Abe,{days:1})}Sbe(["Headache","Insomnia"],["Tylenol"],2,"moon-o",!0),Sbe(["Brain Fog","Nausea"],["Tylenol","Ice"],4),Sbe(["Headache"],["Tylenol"],3),Sbe(["Headache","Insomnia"],["Tylenol"],3),Sbe([],[],5),Sbe(["Fatigue","Back Pain","Anxiety","Nausea"],["Stretching","Rest","Ice"],1),Sbe([],[],5),Sbe(["Fatigue","Back Pain","Anxiety","Nausea","Headache","Insomnia","Brain Fog"],["Stretching","Rest","Ice","Meditation","Tylenol"],1,"star-o",!0),Sbe(["Fatigue","Nausea","Headache"],["Stretching"],2),Sbe(["Anxiety","Brain Fog"],["Rest","Meditation"],3,void 0,!0),Sbe([],[],5),Sbe(["Back Pain","Headache"],["Ice","Tylenol"],4),Sbe(["Fatigue","Back Pain","Nausea","Brain Fog"],["Meditation","Tylenol"],2),Sbe([],[],5),Sbe(["Fatigue","Insomnia","Brain Fog"],["Rest"],4,"star",!0),Sbe(["Fatigue","Back Pain"],["Stretching","Rest"],3),Sbe(["Fatigue","Nausea"],["Stretching","Rest","Ice","Meditation","Tylenol"],2,"flag",!0),Sbe(["Headache","Insomnia","Brain Fog"],["Stretching","Tylenol"],4,"user-md",!0),Sbe([],[],5),Sbe([],[],5),Sbe([],[],5),Sbe(["Back Pain","Headache"],["Ice","Tylenol"],4),Sbe(["Fatigue","Back Pain","Nausea","Brain Fog"],["Meditation","Tylenol"],2),Sbe(["Fatigue","Back Pain","Anxiety","Nausea"],["Stretching","Rest","Ice"],1),Sbe(["Fatigue","Insomnia","Brain Fog"],["Rest"],4,"question-circle-o",!0),Sbe(["Fatigue","Back Pain","Anxiety","Nausea","Headache","Insomnia","Brain Fog"],["Stretching","Rest","Ice","Meditation","Tylenol"],1,"flask",!0),Sbe([],[],5),Sbe(["Headache","Insomnia"],["Tylenol"],3),Sbe([],[],5),Sbe(["Fatigue","Insomnia"],["Rest"],2,"trophy",!0);const Ebe=o(null);function _be(e){const[a,n]=c(null),[r,i]=c([]),[o,s]=c([]),[u,d]=c(null);let[m,h]=c(null);function p(){if("default"==e.previewState)return h({symptoms:wbe,treatments:kbe,participantID:"1"}),void n({symptoms:wbe,treatments:kbe,logEntries:xbe,hasFilteredSymptoms:!1});ybe.getConfiguration().then((function(e){ybe.getDailyLogEntries().then((function(t){h(e),m=e,n({symptoms:g(r),treatments:f(o),logEntries:t,hasFilteredSymptoms:!1})}))}))}function g(e){return m.symptoms.filter((t=>(!e.length||e.includes(t.id))&&!t.inactive))}function f(e){return m.treatments.filter((t=>(!e.length||e.includes(t.id))&&!t.inactive))}return l((()=>(p(),b.on("applicationDidBecomeVisible",p),()=>{b.off("applicationDidBecomeVisible",p)})),[]),a&&m?t.createElement("div",{ref:e.innerRef},t.createElement(Ebe.Provider,{value:a},e.showFilters&&t.createElement(Jfe,{noTopMargin:!0},t.createElement(bbe,{configuration:m,selectedSymptoms:r,onSymptomsSelectionChange:e=>function(e){n({...a,symptoms:g(e),hasFilteredSymptoms:!!e.length}),i(e)}(e),selectedTreatments:o,onTreatmentsSelectionChange:e=>function(e){n({...a,treatments:f(e)}),s(e)}(e),expandedDropdown:u,onExpandedDropdownChange:e=>d(e)})),e.children)):t.createElement(ZA,null)}function Cbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Matrix must be used inside a Symptom Shark Visualization Coordinator.");let n=i(nM),r=e.intervalStart||Tn(new Date);if(n&&(r=n.intervalStart),!a.symptoms.length&&!a.treatments.length)return null;var o=el(r.getFullYear(),r.getMonth()),s=a.symptoms.map((e=>({label:e.name,color:e.color,data:o.map((t=>!!function(e,t){var n=Ri(e);return!!a.logEntries[n]&&a.logEntries[n].symptoms.find((e=>e.id==t))}(t,e.id)))}))),l=a.treatments.map((e=>({label:e.name,color:e.color,data:o.map((t=>!!function(e,t){var n=Ri(e);return!!a.logEntries[n]&&a.logEntries[n].treatments.find((e=>e.id==t))}(t,e.id)))})));return t.createElement("div",{ref:e.innerRef,className:"ss-symptom-matrix"},t.createElement(Vfe,{title:eo("symptoms"),rows:s,intervalStart:r}),t.createElement(Vfe,{title:eo("treatments"),rows:l,intervalStart:r}))}function Obe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Calendar must be used inside a Symptom Shark Visualization Coordinator.");let{symptoms:n,treatments:r,logEntries:o}=a,s=i(nM),l=e.intervalStart||Tn(new Date);return s&&(l=s.intervalStart),t.createElement(QA,{innerRef:e.innerRef,className:"mdhui-ss-calendar",month:l.getMonth(),year:l.getFullYear(),dayRenderer:function(a,i,s){if(!s)return t.createElement("div",null);var c=new Date(a,i,s),u=o[Ri(c)],d=!1;return c>new Date&&(d=!0),t.createElement(Pbe,{onClick:t=>function(t){var a=new Date(l.getFullYear(),l.getMonth(),t);a>new Date||e.onDaySelected(a)}(t),day:s,logEntry:u,symptomConfigurations:n,treatmentConfigurations:r,future:d})}})}function Pbe(e){return t.createElement(k,{className:"mdhui-ss-calendar-day"+(e.future?" future":""),onClick:()=>e.onClick(e.day)},function(){if(!e.logEntry)return t.createElement(lM,{className:"mdhui-ss-day-tracker",primaryColors:[],secondaryColors:[]});var a=e.symptomConfigurations.filter((t=>!t.inactive&&e.logEntry.symptoms.find((e=>e.id==t.id)))).map((e=>e.color)),n=e.treatmentConfigurations.filter((t=>!t.inactive&&e.logEntry.treatments.find((e=>e.id==t.id)))).map((e=>e.color));return 0===a.length&&0===n.length?t.createElement(lM,{className:"mdhui-ss-day-tracker",primaryColors:[],secondaryColors:[]}):t.createElement(lM,{className:"mdhui-ss-day-tracker",key:Math.random(),primaryColors:a,secondaryColors:n})}(),t.createElement("div",{className:"day-label"}," ",e.day," ",e.logEntry?.notes.length>0&&t.createElement(hge,{icon:A,className:"mdhui-ss-notes-icon"})))}w(".mdhui-ss-calendar .mdhui-ss-calendar-day {\n width: 100%;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-label {\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-label svg {\n font-size: 12px;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-label.future {\n opacity: .5;\n}\n\n.mdhui-ss-calendar .mdhui-ss-notes-icon {\n color: var(--mdhui-color-primary);\n position: absolute;\n right: calc(50% - 19px);\n bottom: 2px;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-tracker {\n padding-bottom: 2px;\n padding-top: 8px;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day.future {\n opacity: .5;\n cursor: default;\n}");function Tbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Severity Chart must be used inside a Symptom Shark Visualization Coordinator.");let{logEntries:n}=a,r=i(nM),o=e.intervalStart||Tn(new Date);r&&(o=r.intervalStart);var s=el(o.getFullYear(),o.getMonth());function l(e){return s.filter((t=>{if(n[Ri(t)]&&n[Ri(t)].overallFeeling&&(!e||n[Ri(t)].overallFeeling==e))return!0}))}var c=l();if(!c.length)return null;for(var u=s.length,d=100/u,m=100/(2*u),h=[],p=0;p<c.length-1;p++){var g=c[p],f=c[p+1],y=n[Ri(g)].overallFeeling,v=n[Ri(f)].overallFeeling;h.push({x1:m+d*(g.getDate()-1),y1:128-24*y,x2:m+d*(f.getDate()-1),y2:128-24*v,color:"#429bdf"})}let b=function(){var e=0,t=l();if(0==t.length)return null;for(var a=0;a<t.length;a++)e+=n[Ri(t[a])].overallFeeling;return e/t.length}();return t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-oe-chart"+("monthReport"==e.variant?" mdhui-ss-oe-chart-month-report":"")},t.createElement("div",{className:"mdhui-ss-oe-chart-title-container"},t.createElement(tS,{title:eo("daily-overall-experience")}),b&&t.createElement("div",{className:"mdhui-ss-oe-chart-average-wrapper"},eo("average"),": ",t.createElement("div",{className:"mdhui-ss-oe-chart-average"},yl(b,1),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:parseInt(b.toFixed(0))})))),t.createElement("div",{className:"mdhui-ss-oe-chart-inner"},t.createElement("div",{className:"mdhui-ss-oe-chart-y-axis"},t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(5).length>0&&t.createElement("span",{className:"total"},l(5).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:5})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(4).length>0&&t.createElement("span",{className:"total"},l(4).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:4})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(3).length>0&&t.createElement("span",{className:"total"},l(3).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:3})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(2).length>0&&t.createElement("span",{className:"total"},l(2).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:2})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(1).length>0&&t.createElement("span",{className:"total"},l(1).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:1}))),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line"}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"48px"}}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"72px"}}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"96px"}}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"120px"}}),t.createElement("div",{style:{position:"relative",height:"100%"}},t.createElement("svg",{className:"mdhui-ss-oe-chart-lines"},h.map((e=>t.createElement("line",{key:e.x1,x1:e.x1+"%",y1:e.y1,x2:e.x2+"%",y2:e.y2,style:{stroke:e.color,strokeWidth:4,opacity:.5}})))),s.map((a=>t.createElement("div",{key:a.getDate(),className:"mdhui-ss-oe-chart-day-wrapper",style:{width:100/s.length+"%"}},(e.showAllDays||(a.getDate()-1)%2==0)&&t.createElement("div",{className:"mdhui-ss-oe-chart-day-marker"},a.getDate()),n[Ri(a)]?.overallFeeling&&t.createElement("div",{className:"mdhui-ss-oe-chart-dot",style:{bottom:24*n[Ri(a)].overallFeeling-16+"px"}})))))))}w(".mdhui-ss-oe-chart {\n position: relative;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-face {\n width: 16px;\n height: 16px;\n margin-left: 4px;\n vertical-align: text-top;\n display: inline-block;\n border-radius: 8px;\n overflow: hidden;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-y-axis .mdhui-ss-oe-chart-face-total {\n height: 16px;\n margin-bottom: 8px;\n display: block;\n text-align: right;\n font-weight: bold;\n width: 56px;\n font-size: 15px;\n white-space: nowrap;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-face-total .mdhui-ss-oe-chart-total {\n vertical-align: text-top;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-average-wrapper {\n font-size: 17px;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-average-wrapper .mdhui-ss-oe-chart-average {\n font-weight: bold;\n display: inline;\n}\n\n.mdhui-ss-oe-chart-inner {\n position: relative;\n height: 160px;\n padding: 16px;\n box-sizing: border-box;\n padding-left: 64px;\n page-break-inside: avoid;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-x-axis-line {\n position: absolute;\n width: calc(100% - 64px);\n height: 1px;\n /*Default color because evopdf doesn't support css variables*/\n background: #eee;\n background: var(--mdhui-background-color-1);\n left: 64px;\n top: 24px;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-lines {\n position: absolute;\n left: 0;\n right: 0;\n top: 0.5px;\n bottom: 0;\n width: 100%;\n height: 100%;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-y-axis {\n position: absolute;\n left: 0;\n top: 16px;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-day-wrapper {\n position: relative;\n float: left;\n height: 116px;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-day-wrapper .mdhui-ss-oe-chart-day-marker {\n position: absolute;\n left: 0;\n bottom: -16px;\n width: 100%;\n text-align: center;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-day-wrapper .mdhui-ss-oe-chart-dot {\n position: absolute;\n width: 7px;\n height: 7px;\n /*Default color because evopdf doesn't support css variables*/\n background: #666;\n background: var(--mdhui-text-color-2);\n border-radius: 3.5px;\n left: calc(50% - 3px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-inner {\n padding-left: calc(25% + 8px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-y-axis {\n left: calc(25% - 56px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-x-axis-line {\n width: calc(75% - 32px);\n left: calc(25% + 16px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-average-wrapper {\n display: block;\n padding-top: 16px;\n font-size: 15px;\n text-transform: uppercase;\n font-weight: normal;\n position: absolute;\n left: 16px;\n top: 64px;\n text-align: left;\n padding: 0;\n padding-bottom: 8px;\n right: auto;\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-average-wrapper .mdhui-ss-oe-chart-average {\n margin-top: 8px;\n font-size: 34px;\n font-weight: bold;\n display: block;\n line-height: 34px;\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-average-wrapper .mdhui-ss-oe-chart-average .mdhui-face {\n height: 34px;\n width: 34px;\n vertical-align: top;\n border-radius: 18px;\n overflow: hidden;\n}");function Mbe(e){if(!e.configuration.symptoms.length)return null;function a(){e.onClick&&e.onClick(e.date)}let n=!1;e.logEntry&&(e.logEntry.symptoms.length>0||e.logEntry.treatments.length>0||e.logEntry&&e.logEntry.notes.length>0)||(n=!0);let r=e.title??tl(e.date),i=e.highlight??Ai(e.date),o=e.title?void 0:e.subtitle??rl(e.date);return n?t.createElement(eS,{innerRef:e.innerRef,variant:i?"highlight":"subtle",className:"mdhui-ss-log-entry"},t.createElement($a,{title:r,subtitle:o,onClick:()=>a(),indicatorIcon:ye},!!e.noDataMessage&&t.createElement("div",{className:"mdhui-ss-log-entry-section"},e.noDataMessage),t.createElement(JA,null))):t.createElement(eS,{innerRef:e.innerRef,className:"mdhui-ss-log-entry"},t.createElement($a,{title:r,subtitle:o,onClick:()=>a(),indicatorPosition:"topRight",indicator:t.createElement(t.Fragment,null,e.logEntry?.overallFeeling&&t.createElement(bM,{faceValue:e.logEntry?.overallFeeling,selected:!0}))},t.createElement(Dbe,{configuration:e.configuration,logEntry:e.logEntry,highlightedSymptoms:e.highlightedSymptoms,highlightedTreatments:e.highlightedTreatments}),e.logEntry.notes&&t.createElement("div",{className:"mdhui-ss-log-entry-section"},t.createElement("div",{className:"mdhui-ss-section-header"},eo("notes")),t.createElement("div",{className:"mdhui-ss-notes-content"},e.logEntry.notes))))}function Dbe(e){var a=[],n=[];if(e.logEntry&&(e.logEntry.symptoms.forEach((t=>{var n,r=e.configuration.symptoms.find((e=>e.id==t.id));r&&("10PointScale"==r.severityTracking&&(n=t.severity?t.severity.toString():void 0),"3PointScale"==r.severityTracking&&(t.severity>7?n=eo("severe-shortened"):t.severity>4?n=eo("moderate-shortened"):t.severity>0&&(n=eo("mild-shortened"))),a.push({id:t.id,severity:n,name:r.name,color:r.color}))})),a.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),e.logEntry.treatments.forEach((t=>{var a=e.configuration.treatments.find((e=>e.id==t.id));a&&n.push({id:t.id,name:a.name,color:a.color})})),n.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0))),!e.logEntry||!(a.length>0||n.length>0||e.logEntry.notes.length>0))return null;var r=[],i=[];return e.highlightedSymptoms&&(r=e.highlightedSymptoms),e.highlightedTreatments&&(i=e.highlightedTreatments),0==e.logEntry.symptoms.length&&0==e.logEntry.treatments.length?null:t.createElement("div",{className:"mdhui-ss-log-entry-section"},t.createElement("div",{className:"mdhui-ss-section-header"},eo("symptoms-and-treatments")),a.filter((e=>-1!=r.indexOf(e.id))).map((e=>t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,badge:e.severity,key:e.id,text:e.name}))),n.filter((e=>-1!=i.indexOf(e.id))).map((e=>t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,key:e.id,text:e.name,bordered:!0}))),a.filter((e=>-1==r.indexOf(e.id))).map((e=>t.createElement("span",{key:e.id,style:{opacity:r.length>0||i.length>0?.5:1}},t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,badge:e.severity,text:e.name})))),n.filter((e=>-1==i.indexOf(e.id))).map((e=>t.createElement("span",{key:e.id,style:{opacity:r.length>0||i.length>0?.5:1}},t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,text:e.name,bordered:!0})))))}w(".mdhui-ss-log-entry .mdhui-face {\n height: 18px;\n width: 18px;\n border-radius: 9px;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-log-entry-section {\n margin-top: 16px;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-section-header {\n font-size: .88em;\n font-weight: 500;\n color: var(--mdhui-text-color-3);\n margin-bottom: 4px;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-notes-preview {\n font-size: .88em;\n white-space: pre-wrap;\n margin: 16px;\n margin-top: 0;\n}\n\n.mdhui-ss-log-entry .mdhui-tracker-item {\n margin-left: 0;\n margin-top: 0;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-notes-content {\n font-size: .88em;\n white-space: pre-wrap;\n}");w(".ss-month-report {\n position: relative;\n width: 100%;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n /* default color for PDF rendering */\n background: #FFF;\n background: var(--mdhui-background-color-0);\n}\n\n.ss-month-report>thead>tr>th {\n text-align: left;\n font-size: 21px;\n line-height: 21px;\n width: 100%;\n background: var(--mdhui-background-color-0);\n}\n\n.ss-month-report>thead>tr>th>.header {\n display: block;\n position: relative;\n padding: 16px;\n}\n\n.ss-month-report>thead>tr>th>.header .ss-month-report-product {\n position: absolute;\n right: 16px;\n top: 10px;\n font-size: 15px;\n font-weight: bold;\n padding-left: 40px;\n height: 32px;\n line-height: 18px;\n}\n\n.ss-month-report>thead>tr>th>.header .ss-month-report-product .ss-month-report-product-url {\n font-weight: normal;\n}\n\n.ss-month-report>thead>tr>th>.header .ss-month-report-product img {\n height: 32px;\n position: absolute;\n left: 0;\n top: 0;\n vertical-align: middle;\n}\n\n.ss-month-report>tfoot>tr>td {\n padding: 16px;\n text-align: center;\n font-size: 21px;\n line-height: 21px;\n width: 100%;\n background: var(--mdhui-background-color-0);\n border-top: solid 1px var(--mdhui-border-color-1);\n}");function Ibe(e){let a={...Nbe[e.icon||"star-o"],className:e.className};return t.createElement(hge,{...a})}w(".ss-notes-timeline {\n padding: 16px;\n padding-top: 48px;\n\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n border-top: solid 1px #ddd;\n\n border-top: solid 1px var(--mdhui-border-color-1);\n padding-left: 64px;\n position: relative;\n}\n\n.ss-notes-timeline .ss-notes-timeline-title {\n font-size: 17px;\n color: var(--mdhui-text-color-1);\n font-weight: bold;\n position: absolute;\n left: 16px;\n top: 16px;\n}\n\n.ss-notes-timeline .ss-notes-timeline-line {\n position: absolute;\n top: 48px;\n left: 32px;\n\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n background: #ddd;\n\n background: var(--mdhui-background-color-2);\n bottom: 48px;\n width: 1px;\n}\n\n.ss-notes-timeline .ss-notes-timeline-day {\n margin-bottom: 32px;\n page-break-inside: avoid;\n position: relative;\n\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n border: solid 1px #ddd;\n\n border: solid 1px var(--mdhui-border-color-1);\n border-radius: 5px;\n padding: 16px;\n}\n\n.ss-notes-timeline .ss-notes-timeline-day .ss-notes-timeline-day-icon {\n font-size: 21px;\n position: absolute;\n left: -51px;\n top: calc(50% - 11px);\n width: 37px;\n text-align: center;\n display: block;\n}\n\n.ss-notes-timeline .ss-notes-timeline-day .ss-notes-timeline-day-circle {\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n color: #429bdf;\n\n color: var(--mdhui-color-primary);\n}\n\n.notes-timeline .ss-notes-timeline-day .ss-notes-timeline-day-title {\n font-weight: bold;\n font-size: 17px;\n}\n\n.notes-timeline .ss-notes-timeline-day .ss-notes-timeline-note {\n white-space: pre-wrap;\n}");const Nbe={star:{color:"#eec04c",icon:M},"star-o":{color:"#eec04c",icon:{prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]}},"user-md":{color:"#397d49",icon:ee},"hospital-o":{color:"#4154af",icon:{prefix:"fas",iconName:"hospital",icon:[640,512,[127973,62589,"hospital-alt","hospital-wide"],"f0f8","M192 48c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48V512H368V432c0-26.5-21.5-48-48-48s-48 21.5-48 48v80H192V48zM48 96H160V512H48c-26.5 0-48-21.5-48-48V320H80c8.8 0 16-7.2 16-16s-7.2-16-16-16H0V224H80c8.8 0 16-7.2 16-16s-7.2-16-16-16H0V144c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v48H560c-8.8 0-16 7.2-16 16s7.2 16 16 16h80v64H560c-8.8 0-16 7.2-16 16s7.2 16 16 16h80V464c0 26.5-21.5 48-48 48H480V96H592zM312 64c-8.8 0-16 7.2-16 16v24H272c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h24v24c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16V152h24c8.8 0 16-7.2 16-16V120c0-8.8-7.2-16-16-16H344V80c0-8.8-7.2-16-16-16H312z"]}},ambulance:{color:"#f2471c",icon:P},flag:{color:"#c4291c",icon:{prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 368 480c0 17.7 14.3 32 32 32s32-14.3 32-32V352l64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30V66.1c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48V32z"]}},"moon-o":{color:"#9d9083",icon:{prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]}},flask:{color:"#429bdf",icon:{prefix:"fas",iconName:"flask",icon:[448,512,[],"f0c3","M288 0H160 128C110.3 0 96 14.3 96 32s14.3 32 32 32V196.8c0 11.8-3.3 23.5-9.5 33.5L10.3 406.2C3.6 417.2 0 429.7 0 442.6C0 480.9 31.1 512 69.4 512H378.6c38.3 0 69.4-31.1 69.4-69.4c0-12.8-3.6-25.4-10.3-36.4L329.5 230.4c-6.2-10.1-9.5-21.7-9.5-33.5V64c17.7 0 32-14.3 32-32s-14.3-32-32-32H288zM192 196.8V64h64V196.8c0 23.7 6.6 46.9 19 67.1L309.5 320h-171L173 263.9c12.4-20.2 19-43.4 19-67.1z"]}},bolt:{color:"#f5b722",icon:{prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]}},"question-circle-o":{color:"#71aa3a",icon:K},thermometer:{color:"#a3144d",icon:{prefix:"fas",iconName:"thermometer",icon:[512,512,[],"f491","M96 382.1V293.3c0-14.9 5.9-29.1 16.4-39.6l27.3-27.3 57 57c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-57-57 41.4-41.4 57 57c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-57-57 41.4-41.4 57 57c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-57-57 45.5-45.5C355.2 10.9 381.4 0 408.8 0C465.8 0 512 46.2 512 103.2c0 27.4-10.9 53.6-30.2 73L258.3 399.6c-10.5 10.5-24.7 16.4-39.6 16.4H129.9L41 505c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l89-89z"]}},trophy:{color:"#e0bc39",icon:{prefix:"fas",iconName:"trophy",icon:[576,512,[127942],"f091","M400 0H176c-26.5 0-48.1 21.8-47.1 48.2c.2 5.3 .4 10.6 .7 15.8H24C10.7 64 0 74.7 0 88c0 92.6 33.5 157 78.5 200.7c44.3 43.1 98.3 64.8 138.1 75.8c23.4 6.5 39.4 26 39.4 45.6c0 20.9-17 37.9-37.9 37.9H192c-17.7 0-32 14.3-32 32s14.3 32 32 32H384c17.7 0 32-14.3 32-32s-14.3-32-32-32H357.9C337 448 320 431 320 410.1c0-19.6 15.9-39.2 39.4-45.6c39.9-11 93.9-32.7 138.2-75.8C542.5 245 576 180.6 576 88c0-13.3-10.7-24-24-24H446.4c.3-5.2 .5-10.4 .7-15.8C448.1 21.8 426.5 0 400 0zM48.9 112h84.4c9.1 90.1 29.2 150.3 51.9 190.6c-24.9-11-50.8-26.5-73.2-48.3c-32-31.1-58-76-63-142.3zM464.1 254.3c-22.4 21.8-48.3 37.3-73.2 48.3c22.7-40.3 42.8-100.5 51.9-190.6h84.4c-5.1 66.3-31.1 111.2-63 142.3z"]}},spoon:{color:"#6e4b3f",icon:{prefix:"fas",iconName:"spoon",icon:[512,512,[129348,61873,"utensil-spoon"],"f2e5","M245.8 220.9c-14.5-17.6-21.8-39.2-21.8-60.8C224 80 320 0 416 0c53 0 96 43 96 96c0 96-80 192-160.2 192c-21.6 0-43.2-7.3-60.8-21.8L54.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L245.8 220.9z"]}}};function jbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Notes timeline must be used inside a Symptom Shark Visualization Coordinator.");let n=i(nM),r=n?.intervalStart??e.intervalStart??Tn(new Date);if(!a.symptoms.length&&!a.treatments.length)return null;var o=el(r.getFullYear(),r.getMonth()).filter((e=>a.logEntries[Ri(e)]?.notes?.length));return o.length?t.createElement("div",{ref:e.innerRef,className:"ss-notes-timeline"},t.createElement("div",{className:"ss-notes-timeline-title"},eo("notes")),t.createElement("div",{className:"ss-notes-timeline-line"}),o.map((e=>t.createElement("div",{key:e.toISOString(),className:"ss-notes-timeline-day"},a.logEntries[Ri(e)].icon?t.createElement(Ibe,{className:"ss-notes-timeline-day-icon",icon:a.logEntries[Ri(e)].icon}):t.createElement(hge,{className:"ss-notes-timeline-day-icon ss-notes-timeline-day-circle",icon:$}),t.createElement("div",{className:"ss-notes-timeline-day-title"},rl(e)),t.createElement("div",{className:"ss-notes-timeline-note"},a.logEntries[Ri(e)].notes))))):null}function zbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Severity Chart must be used inside a Symptom Shark Visualization Coordinator.");let{logEntries:n}=a,r=i(nM),o=e.intervalStart||Tn(new Date);r&&(o=r.intervalStart);let s=el(o.getFullYear(),o.getMonth()),l=function(t){var a=Ri(t);if(n[a]){var r=n[a].symptoms.find((t=>e.symptom.id==t.id));if(r&&r.severity)return"3PointScale"==e.symptom.severityTracking?r.severity<4?1:r.severity>=4&&r.severity<8?2:3:r.severity}return 0},c=function(e){for(var t=0,a=0;a<s.length;a++){l(s[a])==e&&t++}return t},u=function(){for(var t=0,a=[],r=0;r<s.length;r++){var i=Ri(s[r]);if(n[i]){var o=n[i].symptoms.find((t=>t.id==e.symptom.id));o&&o.severity&&a.push(o)}}if("3PointScale"==e.symptom.severityTracking)t+=a.filter((e=>e.severity&&e.severity<4)).length,t+=2*a.filter((e=>e.severity&&e.severity>=4&&e.severity<8)).length,t+=3*a.filter((e=>e.severity&&e.severity>=8)).length;else for(var l=0;l<a.length;l++)t+=a[l].severity??0;return t/a.length}();return isNaN(u)?null:t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-severity-chart"+("monthReport"==e.variant?" mdhui-ss-severity-chart-month-report":"")},t.createElement(tS,{title:e.symptom.name+" "+eo("severity")}),"3PointScale"==e.symptom.severityTracking&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-ss-severity-chart-inner mdhui-ss-severity-chart-three-point-scale"},t.createElement("div",{className:"mdhui-ss-severity-chart-y-axis"},t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(3)),eo("severe-shortened")),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(2)),eo("moderate-shortened")),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(1)),eo("mild-shortened")),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"}),"---")),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line"}),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line",style:{top:"48px"}}),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line",style:{top:"72px"}}),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line",style:{top:"96px"}}),t.createElement("div",{style:{position:"relative",height:"100%"}},s.map((a=>t.createElement("div",{key:a.toISOString(),className:"mdhui-ss-severity-chart-day-wrapper",style:{width:100/s.length+"%"}},(e.showAllDays||(a.getDate()-1)%2==0)&&t.createElement("div",{className:"mdhui-ss-severity-chart-day-marker"},a.getDate()),t.createElement("div",{className:"mdhui-ss-severity-chart-bar",style:{height:24*l(a)+"px",backgroundColor:e.symptom.color}},t.createElement(JA,null))))))),u&&t.createElement("div",{className:"mdhui-ss-severity-chart-average-wrapper"},eo("average")," ",t.createElement("div",{className:"mdhui-ss-severity-chart-average"},yl(u,1)," / 3"))),"10PointScale"==e.symptom.severityTracking&&t.createElement("div",null,t.createElement("div",{className:"mdhui-ss-severity-chart-inner mdhui-ss-severity-chart-ten-point-scale"},t.createElement("div",{className:"mdhui-ss-severity-chart-y-axis"},[10,9,8,7,6,5,4,3,2,1].map((e=>t.createElement("div",{key:e,className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(e)),t.createElement("div",{className:"mdhui-ss-severity-chart-value-label"},e)))),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"}),t.createElement("div",{className:"mdhui-ss-severity-chart-value-label"},"0"))),[10,9,8,7,6,5,4,3,2,1].map((e=>t.createElement("div",{key:e,className:"mdhui-ss-severity-chart-x-axis-line",style:{top:24*(11-e)+"px"}}))),t.createElement("div",{style:{position:"relative",height:"100%"}},s.map((a=>t.createElement("div",{key:a.toISOString(),className:"mdhui-ss-severity-chart-day-wrapper",style:{width:100/s.length+"%"}},(e.showAllDays||(a.getDate()-1)%2==0)&&t.createElement("div",{className:"mdhui-ss-severity-chart-day-marker"},a.getDate()),t.createElement("div",{className:"mdhui-ss-severity-chart-bar",style:{height:24*l(a)+"px",backgroundColor:e.symptom.color}},t.createElement(JA,null))))))),u&&t.createElement("div",{className:"mdhui-ss-severity-chart-average-wrapper"},eo("average")," ",t.createElement("div",{className:"mdhui-ss-severity-chart-average"},yl(u,1)," / 10"))))}function Rbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Month report must be used inside a Symptom Shark Visualization Coordinator.");let n=i(nM),r=n?.intervalStart??e.intervalStart??Tn(new Date);return a.symptoms.length||a.treatments.length?t.createElement("table",{ref:e.innerRef,className:"ss-month-report",cellPadding:"0",cellSpacing:"0"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,t.createElement("div",{className:"header"},sl(r.getMonth())," ",r.getFullYear(),t.createElement("div",{className:"product"},e.productLogo&&t.createElement("img",{src:e.productLogo}),e.productName&&t.createElement("div",{className:"product-name"},e.productName),e.productUrl&&t.createElement("a",{href:e.productUrl,className:"product-url"},e.productUrl)))))),t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",null,t.createElement(Cbe,null),e.includeDailyOverallFeeling&&t.createElement(Tbe,{variant:"monthReport",showAllDays:!0}),a.symptoms.filter((e=>!e.inactive&&e.severityTracking&&"None"!=e.severityTracking)).map((e=>t.createElement(zbe,{key:e.id,variant:"monthReport",symptom:e,showAllDays:!0}))),e.includeNotes&&t.createElement(jbe,null))))):null}w(".mdhui-ss-severity-chart {\n position: relative;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-average-wrapper {\n font-size: 17px;\n padding: 16px;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-average-wrapper .mdhui-ss-severity-chart-average {\n font-weight: bold;\n display: inline;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-inner {\n position: relative;\n height: 304px;\n padding: 16px;\n box-sizing: border-box;\n padding-left: 64px;\n page-break-inside: avoid;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-inner .mdhui-ss-severity-chart-x-axis-line {\n position: absolute;\n width: calc(100% - 64px);\n height: 1px;\n\n /* Default color for PDF Rendering, since evopdf does not support CSS variables */\n background: #eee;\n\n background: var(--mdhui-background-color-1);\n left: 64px;\n top: 24px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-lines {\n position: absolute;\n left: 0;\n right: 0;\n top: 0.5px;\n bottom: 0;\n width: 100%;\n height: 100%;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-y-axis {\n position: absolute;\n left: 0;\n top: 16px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-value {\n height: 16px;\n margin-bottom: 8px;\n display: block;\n text-align: right;\n font-weight: bold;\n width: 56px;\n font-size: 9px;\n white-space: nowrap;\n position: relative;\n line-height: 16px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-value .mdhui-ss-severity-chart-value-label {\n border-radius: 32px;\n padding: 3px;\n font-size: 9px;\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n display: inline-block;\n color: var(--mdhui-text-color-1);\n line-height: 10px;\n background: #eec04c;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-value .mdhui-ss-severity-chart-total {\n position: absolute;\n right: 24px;\n top: 0;\n font-size: 15px;\n}\n\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper {\n position: relative;\n float: left;\n height: 260px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper .mdhui-ss-severity-chart-day-marker {\n position: absolute;\n left: 0;\n bottom: -16px;\n width: 100%;\n text-align: center;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper .mdhui-ss-severity-chart-day-star {\n position: absolute;\n left: 0;\n bottom: -32px;\n width: 100%;\n text-align: center;\n font-size: 9px;\n color: var(--ss-tertiary-theme-color);\n display: none;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper .mdhui-ss-severity-chart-bar {\n position: absolute;\n width: 7px;\n background: var(--ss-bar-graph-bar-color);\n left: 0;\n width: 100%;\n bottom: 12px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-three-point-scale {\n height: 136px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-three-point-scale .mdhui-ss-severity-chart-day-wrapper {\n height: 92px;\n}\n\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-inner {\n padding-left: calc(25% + 8px);\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-y-axis {\n left: calc(25% - 56px);\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-x-axis-line {\n width: calc(75% - 32px);\n left: calc(25% + 16px);\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-average-wrapper {\n display: block;\n padding-top: 16px;\n font-size: 15px;\n text-transform: uppercase;\n font-weight: normal;\n position: absolute;\n left: 16px;\n top: 64px;\n text-align: left;\n padding: 0;\n padding-bottom: 8px;\n right: auto;\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-average-wrapper .mdhui-ss-severity-chart-average {\n margin-top: 8px;\n font-size: 34px;\n font-weight: bold;\n display: block;\n line-height: 34px;\n}");function Lbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Treatment Histograms must be used inside a Symptom Shark Visualization Coordinator.");let{symptoms:n,treatments:r,logEntries:o}=a,s=i(nM),l=e.intervalStart||Tn(new Date);s&&(l=s.intervalStart);var c=[];n.forEach((t=>{for(var a=0,n=l;n.getMonth()==l.getMonth();){var r=o[Ri(n)];r&&r.symptoms.find((e=>e.id==t.id))&&a++,n=on(n,{days:1})}var i=t.severityTracking&&"None"!=t.severityTracking?function(){e.onSymptomSelected(t.id,l)}:void 0;a>0&&c.push({color:t.color,label:t.name,value:a,onSelect:i})}));var u=[];return r.forEach((e=>{for(var t=0,a=l;a.getMonth()==l.getMonth();){var n=o[Ri(a)];n&&n.treatments.find((t=>t.id==e.id))&&t++,a=on(a,{days:1})}t>0&&u.push({color:e.color,label:e.name,value:t})})),u.length||c.length?t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-histograms"},t.createElement("div",{className:"mdhui-ss-histogram"},t.createElement(iM,{className:"mdhui-ss-histogram-title",order:4},eo("symptoms")),t.createElement(SM,{className:"ss-histogram",entries:c})),t.createElement("div",{className:"mdhui-ss-histogram"},t.createElement(iM,{className:"mdhui-ss-histogram-title",order:4},eo("treatments")),t.createElement(SM,{className:"ss-histogram",entries:u})),t.createElement("div",{style:{clear:"both"}})):null}w(".mdhui-ss-histograms {\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-ss-histograms .mdhui-ss-histogram {\n padding: 16px;\n float: left;\n width: 50%;\n box-sizing: border-box;\n position: relative;\n padding-right: 32px;\n}\n\n.mdhui-ss-histograms .mdhui-ss-histogram .mdhui-ss-histogram-title {\n color: var(--mdhui-text-color-1);\n display: block;\n padding-bottom: 8px;\n}\n\n.mdhui-ss-histograms .mdhui-ss-histogram .ss-histogram {\n padding: 0;\n}");function Fbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Severity Summary must be used inside a Symptom Shark Visualization Coordinator.");let{logEntries:n}=a,r=i(nM),o=e.intervalStart||Tn(new Date);r&&(o=r.intervalStart);var s=el(o.getFullYear(),o.getMonth()),l=function(t){var a=Ri(t);if(n[a]){var r=n[a].symptoms.find((t=>e.symptom.id==t.id));if(r&&r.severity)return r.severity}return 0},c=function(e,t){for(var a=0,n=0;n<s.length;n++){var r=l(s[n]);r>=e&&r<=t&&a++}return a};return"3PointScale"!=e.symptom.severityTracking?null:t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-symptom-severity-summaries"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-label"},eo("severe")),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-count"},c(8,10))),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-label"},eo("moderate")),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-count"},c(4,7))),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-label"},eo("mild")),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-count"},c(1,3))),t.createElement("div",{style:{clear:"both"}}))}w(".mdhui-ss-symptom-severity-summaries .mdhui-ss-symptom-severity-summary {\n width: 33%;\n float: left;\n text-align: center;\n padding: 16px;\n box-sizing: border-box;\n}\n\n.mdhui-ss-symptom-severity-summaries .mdhui-ss-symptom-severity-summary-label {\n padding: 8px;\n}\n\n.mdhui-ss-symptom-severity-summaries .mdhui-ss-symptom-severity-summary-count {\n font-size: 34px;\n font-weight: bold;\n}");let Bbe={participantID:"123",symptoms:[{id:"1",color:"#c4291c",name:"Headache",severityTracking:"3PointScale"},{id:"2",color:"#e35c33",name:"Nausea",severityTracking:"10PointScale"},{id:"3",color:"#5db37e",name:"Dizziness",severityTracking:"None"}],treatments:[{id:"10",color:"#c4291c",name:"Tylenol"},{id:"12",color:"#e35c33",name:"Rest"}]},Hbe={symptoms:[{id:"1",severity:2},{id:"2",severity:7},{id:"3"}],treatments:[{id:"10"},{id:"12"}],overallFeeling:5,notes:"I'm feeling a little better today."};function qbe(e){const[a,n]=c({}),[r,i]=c(null),[o,s]=c([new Date]);function u(){if(Ri(o[0])!=Ri(new Date)&&s([new Date]),"default"!=e.previewState)ybe.getConfiguration().then((function(e){ybe.getDailyLogEntries().then((function(t){i(e),n(t)}))}));else{i(Bbe);let e=Ri(on(new Date,{days:-1}));n({...a,[e]:Hbe})}}return l((()=>(u(),b.on("applicationDidBecomeVisible",u),()=>{b.off("applicationDidBecomeVisible",u)})),[]),t.createElement("div",{ref:e.innerRef,className:"log-entry-list"},r&&o.map((n=>t.createElement(Mbe,{noDataMessage:Ri(n)==Ri(new Date)?eo("tap-to-log-today"):void 0,key:Ri(n),date:n,configuration:r,logEntry:a[Ri(n)],onClick:()=>e.onDaySelected(n)}))),t.createElement(que,{enabled:!!r,onTrigger:()=>function(){for(var e=[...o],t=0;t<30;t++){var a=on(e[e.length-1],{days:-1});e.push(a)}s(e)}()}),t.createElement(ZA,null))}function Vbe(e){const[a,n]=c(null),[r,i]=c(void 0);var o=new Date;function s(){if("withLog"==e.previewState)return n(Bbe),void i(Hbe);"noLog"!=e.previewState?Promise.all([ybe.getDailyLogEntries(Ri(on(o,{days:-1}))),ybe.getConfiguration()]).then((function([e,t]){n(t),e[Ri(o)]?i(e[Ri(o)]):i(void 0)})):n(Bbe)}return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0,0),l((()=>(s(),b.on("applicationDidBecomeVisible",s),()=>{b.off("applicationDidBecomeVisible",s)})),[]),a&&a.symptoms.length?t.createElement(Mbe,{onClick:t=>e.onClick(t),innerRef:e.innerRef,title:eo(r?"todays-log":"log-todays-symptoms"),date:o,logEntry:r,configuration:a}):null}function Ube(e){const[a,n]=c(null),[r,i]=c(!1),[o,s]=c(null),[u,d]=c(!1),[m,h]=c(null);function p(e,t){t==eo("mild-shortened")?t=2:t==eo("moderate-shortened")?t=5:t==eo("severe-shortened")&&(t=8);var n={...a},r=[...n.symptoms];r.find((t=>t.id==e.id))&&r.splice(r.findIndex((t=>t.id==e.id)),1),t&&r.push({id:e.id,severity:t}),n.symptoms=r,f(n),h(null)}function f(t){n(t),"default"!=e.previewState&&(d(!0),ybe.saveDailyLogEntry(Ri(e.date),t).then((function(){d(!1)})))}function y(e){var t={...a};t.overallFeeling==e?t.overallFeeling=void 0:t.overallFeeling=e,f(t)}l((()=>{!function(){if("default"==e.previewState)return s(Bbe),void n(Hbe);var t=on(e.date,{days:-14}),a=on(e.date,{days:1});ybe.getConfiguration().then((function(r){ybe.getDailyLogEntries(xr(t),xr(a)).then((function(t){s(r),t[Ri(e.date)]?n(t[Ri(e.date)]):n({symptoms:[],treatments:[],notes:""}),e.promptForReviewAfterDays&&Object.keys(t).length>e.promptForReviewAfterDays&&i(!0)}))}))}()}),[]);const v=g((()=>ed(f,300)),[]);var w,k,x,A=tl(e.date);function S(e){var t=a.symptoms.find((t=>t.id==e.id));if(t){if("10PointScale"==e.severityTracking){if(!t.severity)return;return t.severity.toString()}if("3PointScale"==e.severityTracking){if(!t.severity)return;if(t.severity>0&&t.severity<=3)return eo("mild-shortened");if(t.severity>3&&t.severity<=7)return eo("moderate-shortened");if(t.severity>7)return eo("severe-shortened")}}}return A+=", "+fl(Xs(e.date),"PP"),t.createElement("div",{className:"mdhui-ss-log-entry-edit-wrapper"},t.createElement(Ufe,{title:A,showBackButton:!0,variant:"compressed",backgroundColor:"var(--mdhui-background-color-0)",className:"mdhui-ss-edit-nav"}),t.createElement("div",{className:"mdhui-ss-log-entry-edit"},!a&&t.createElement(ZA,null),!!a&&!!o&&t.createElement(t.Fragment,null,t.createElement("div",{style:{width:"100%",overflow:"hidden"}},(k=(w=a).symptoms.map((e=>o.symptoms.find((t=>t.id==e.id))?.color)).filter((e=>!!e)).map((e=>e)),x=w.treatments.map((e=>o.treatments.find((t=>t.id==e.id))?.color)).filter((e=>!!e)).map((e=>e)),t.createElement(lM,{size:"large",key:k.join("|")+","+x.join("|"),primaryColors:k,secondaryColors:x}))),kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("symptoms-experiencing-today")),!kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("symptoms-experiencing-previous")),t.createElement("div",{className:"mdhui-ss-edit-items"},o?.symptoms.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{className:"mdhui-ss-edit-item",selected:!!a.symptoms.find((t=>t.id==e.id)),color:e.color,text:e.name,key:e.id,onClick:()=>function(e){if("10PointScale"!=e.severityTracking&&"3PointScale"!=e.severityTracking){var t={...a},n=[...t.symptoms];n.find((t=>t.id==e.id))?n.splice(n.findIndex((t=>t.id==e.id)),1):n.push({id:e.id}),t.symptoms=n,f(t)}else h(e)}(e),badge:S(e)})))),o.treatments.length>0&&t.createElement("div",null,kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("treatments-experiencing-today")),!kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("treatments-experiencing-previous")),t.createElement("div",{className:"mdhui-ss-edit-items"},o?.treatments.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{className:"mdhui-ss-edit-item",selected:!!a.treatments.find((t=>t.id==e.id)),color:e.color,text:e.name,key:e.id,onClick:()=>{return t=e,n={...a},(r=[...n.treatments]).find((e=>e.id==t.id))?r.splice(r.findIndex((e=>e.id==t.id)),1):r.push({id:t.id}),n.treatments=r,void f(n);var t,n,r},bordered:!0}))))),kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("feeling-overall-today")),!kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("feeling-overall-previous")),t.createElement("div",{className:"mdhui-ss-edit-items"},t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:5,selected:5==a.overallFeeling,onClick:()=>y(5)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:4,selected:4==a.overallFeeling,onClick:()=>y(4)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:3,selected:3==a.overallFeeling,onClick:()=>y(3)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:2,selected:2==a.overallFeeling,onClick:()=>y(2)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:1,selected:1==a.overallFeeling,onClick:()=>y(1)})),t.createElement(iM,{className:"mdhui-ss-edit-title",order:3,style:{marginBottom:"16px"}},eo("additional-notes")),t.createElement(Wfe,{placeholder:eo("add-notes"),autoTimestamp:kn(new Date,e.date),onChange:e=>function(e){var t={...a};t.notes=e,n(t),v(t)}(e),value:a.notes}),t.createElement(YA,{onClick:()=>(r&&b.requestReview(7),void(u||b.back()))},eo("done")),m&&t.createElement("div",{className:"mdhui-ss-symptom-edit-modal"},t.createElement("div",{className:"mdhui-ss-symptom-edit-padder"},t.createElement("div",{className:"mdhui-ss-symptom-edit-container"},t.createElement(iM,{className:"mdhui-ss-edit-title",order:3,style:{marginBottom:"16px"}},kn(new Date,e.date)?eo("how-severe-is"):eo("how-severe-was")," ",m.name,"?"),"3PointScale"==m.severityTracking&&t.createElement(eye,{variant:"optionsVertical",segments:[{key:eo("mild-shortened"),title:eo("mild")},{key:eo("moderate-shortened"),title:eo("moderate")},{key:eo("severe-shortened"),title:eo("severe")}],selectedSegment:S(m),onSegmentSelected:e=>p(m,e)}),"10PointScale"==m.severityTracking&&t.createElement(eye,{variant:"optionsVertical",segments:[1,2,3,4,5,6,7,8,9,10].map((e=>({key:e.toString(),title:e.toString()}))),selectedSegment:S(m),onSegmentSelected:e=>p(m,parseInt(e))}),t.createElement(YA,{className:"mdhui-ss-clear-symptom",variant:"subtle",onClick:()=>p(m,null)},eo("clear-symptom"))))))))}w(".mdhui-ss-log-entry-edit-wrapper {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-ss-log-entry-edit {\n text-align: center;\n padding-left: 16px;\n padding-right: 16px;\n padding-bottom: 16px;\n padding-top: 8px;\n position: relative;\n /*Prevents keyboard from covering notes on Android devices*/\n padding-bottom: 300px;\n overflow-x: hidden;\n width: 100%;\n box-sizing: border-box;\n}\n\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-title {\n text-align: center;\n margin-bottom: 0;\n margin-top: 16px;\n display: block;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-items {\n padding-top: 8px;\n padding-bottom: 16px;\n text-align: center;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-item {\n margin: 4px;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-face {\n margin-left: 8px;\n margin-right: 8px;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-symptom-edit-modal {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: var(--mdhui-modal-overlay-color);\n overflow: auto;\n z-index: 999;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-symptom-edit-padder {\n padding-bottom: 16px;\n position: absolute;\n padding-top: 48px;\n top: env(safe-area-inset-top);\n left: 48px;\n right: 48px;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-symptom-edit-container {\n border-radius: var(--mdhui-card-border-radius);\n background: var(--mdhui-background-color-0);\n padding: 16px;\n}");function Wbe(e){var a=Tn(new Date);const[n,r]=c({}),[i,o]=c(null),[l,u]=c(a),[d,m]=c(!0),[h,p]=c(!1),[g,f]=c(!1),[y,v]=c(!0),[w,x]=c([]),[A,S]=c([]),[E,_]=c(!0),[O,P]=c(!1),[T,M]=c(!1),D=s(null);if(td((()=>{if("default"==e.previewState)return o({participantID:"1",symptoms:wbe,treatments:kbe}),void r(xbe);ybe.getConfiguration().then((function(e){ybe.getDailyLogEntries().then((function(t){o(e),r(t)}))}))}),[],[]),!i||!n)return t.createElement("div",{ref:e.innerRef},t.createElement(ZA,null));function I(){M(!0);for(var e,t,a=document.head.getElementsByTagName("style"),n="",r=0;r<a.length;r++)n+=a[r].outerHTML;n+=D.current.innerHTML,(e=n,t=i.participantID,b.persistDeviceData([{type:"ReportHtml",observationDate:xr(new Date),value:e}]).then((function(){var e=b.baseUrl+"WebVisualization/WebVisualizationPDF?patientID="+t+"&modelType=VisualizationModel&visualizationKey=Shared.HtmlToPdf";return b.getDeviceInfo().then((function(t){t&&"Web"!=t.platform?window.webkit.messageHandlers.OpenFile.postMessage({url:e}):window.open(e)}))}))).then((function(){M(!1)}))}return t.createElement("div",{className:"ss-report-builder"},t.createElement(Jfe,{className:"ss-report-builder-items",noTopMargin:!0},t.createElement("div",{className:"ss-report-builder-item ss-report-builder-month-selector"},t.createElement("div",{className:"ss-report-builder-selector-title"},eo("choose-report-month")),t.createElement(aM,{className:"ss-report-date-chooser",variant:"rounded",intervalStart:l,intervalType:"Month",onIntervalChange:e=>u(e)})),t.createElement(k,{className:"ss-report-builder-item",onClick:()=>m(!d)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-symptoms")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:d?_M:CM}))),d&&t.createElement("div",{className:"ss-report-builder-item"},t.createElement("div",{className:"ss-report-builder-item-title"},eo("select-symptoms")),t.createElement(k,{className:"ss-report-builder-item-status",onClick:()=>p(!h)},0==w.length?"All":w.length+" Selected"," ",t.createElement(hge,{icon:h?C:pe})),h&&t.createElement("div",{className:"ss-report-items",style:{textAlign:"center"}},i.symptoms.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{className:"ss-report-item",key:e.id,selected:-1!=w.indexOf(e.id),color:e.color,text:e.name,onClick:()=>{return t=e,(a=[...w]).includes(t.id)?a.splice(a.indexOf(t.id),1):a.push(t.id),void x(a);var t,a}}))))),i.treatments.length>0&&t.createElement(t.Fragment,null,t.createElement(k,{className:"ss-report-builder-item",onClick:()=>v(!y)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-treatments")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:y?_M:CM}))),y&&t.createElement("div",{className:"ss-report-builder-item"},t.createElement("div",{className:"ss-report-builder-item-title"},eo("select-treatments")),t.createElement(k,{className:"ss-report-builder-item-status",onClick:()=>f(!g)},0==A.length?"All":A.length+" Selected"," ",t.createElement(hge,{icon:g?C:pe})),g&&t.createElement("div",{className:"ss-report-items",style:{textAlign:"center"}},i.treatments.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{bordered:!0,className:"ss-report-item",key:e.id,selected:-1!=A.indexOf(e.id),color:e.color,text:e.name,onClick:()=>{return t=e,(a=[...A]).includes(t.id)?a.splice(a.indexOf(t.id),1):a.push(t.id),void S(a);var t,a}})))))),t.createElement(k,{className:"ss-report-builder-item",onClick:()=>_(!E)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-overall-experience")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:E?_M:CM}))),t.createElement(k,{className:"ss-report-builder-item",onClick:()=>P(!O)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-notes")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:O?_M:CM})))),t.createElement("div",{style:{padding:"16px",paddingTop:"0"}},t.createElement(YA,{loading:T,disabled:T||!d&&!y&&!O&&!E,onClick:()=>I()},!T&&t.createElement("span",null,eo("create-report")))),t.createElement("div",{ref:D,style:{display:"none"}},t.createElement(nM.Provider,{value:{intervalStart:l,intervalType:"Month",update:oM}},t.createElement(Ebe.Provider,{value:{logEntries:n,symptoms:d?i.symptoms.filter((e=>!w.length||-1!=w.indexOf(e.id))):[],treatments:y?i.treatments.filter((e=>!A.length||-1!=A.indexOf(e.id))):[],hasFilteredSymptoms:!!w.length}},t.createElement(Rbe,{includeDailyOverallFeeling:E,includeNotes:O,productLogo:e.productLogo,productUrl:e.productUrl,productName:e.productName})))))}function $be(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"light"},t.createElement(rM,{variant:"rounded",intervalType:"Month",sticky:!0},t.createElement(_be,{showFilters:!0,previewState:e.previewState},t.createElement(Jfe,null,t.createElement(Obe,{onDaySelected:e.onDaySelected})),t.createElement(Jfe,null,t.createElement(Lbe,{onSymptomSelected:e.onSymptomSelected})),t.createElement(Jfe,null,t.createElement(Tbe,null)),t.createElement(Gbe,null))))}function Gbe(){let e=i(Ebe);if(!e)return t.createElement(Uq,null,"Error: Calendar severity charts must be used inside a Symptom Shark Visualization Coordinator.");let{hasFilteredSymptoms:a,symptoms:n}=e;return a?t.createElement(t.Fragment,null,n.filter((e=>"None"!=e.severityTracking)).map((e=>t.createElement(Jfe,{key:e.id},t.createElement(zbe,{symptom:e}))))):null}function Kbe(e){return t.createElement(Wa,{bodyBackgroundColor:"var(--mdhui-background-color-0)",colorScheme:e.colorScheme||"light"},t.createElement(Ube,{...e}))}function Zbe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"light"},t.createElement(Ufe,{variant:"compressed",title:eo("reports")}),t.createElement(Wbe,{previewState:e.previewState}))}function Ybe(e){return t.createElement(Wa,{colorScheme:e.colorScheme||"light",className:"symptom-detail-view symptom-shark-view"},t.createElement(_be,{previewState:e.previewState},t.createElement(Qbe,{...e})))}function Qbe(e){let a=i(Ebe);if(!a)return null;let n=a.symptoms.find((t=>t.id==e.symptomId));if(!n)return null;var r=e.initialIntervalStart||Tn(new Date);return t.createElement(t.Fragment,null,t.createElement(Ufe,{title:n.name,showCloseButton:!0}),t.createElement(rM,{initialIntervalStart:r,intervalType:"Month",variant:"rounded"},t.createElement(Jfe,{noTopMargin:!0},t.createElement(Fbe,{symptom:n})),t.createElement(Jfe,null,t.createElement(zbe,{symptom:n}))))}function Xbe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:t.createElement("img",{src:yge}),imageAlignment:"left"},eo("allergies-title"))),t.createElement(eS,null,t.createElement(qq,{previewState:e.previewState,onViewTermInfo:t=>function(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}(t)})))}function Jbe(e){return t.createElement(Wa,{bodyBackgroundColor:e.bodyBackgroundColor,colorScheme:e.colorScheme??"auto",primaryColor:e.primaryColor,flex:e.flexLayout},(e.showBackButton||e.showCloseButton)&&t.createElement(Ufe,{title:e.title,showBackButton:e.showBackButton,showCloseButton:e.showCloseButton,subtitle:e.subtitle,titleColor:e.titleColor,subtitleColor:e.subtitleColor,buttonColor:e.navigationBarButtonColor}),!(e.showBackButton||e.showCloseButton)&&t.createElement(t.Fragment,null,!e.flexLayout&&t.createElement(cye,null),t.createElement(mye,{title:e.title,subtitle:e.subtitle,titleColor:e.titleColor,subtitleColor:e.subtitleColor})),e.children)}function ewe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:t.createElement("img",{src:bge}),imageAlignment:"left"},eo("conditions-title"))),t.createElement(eS,null,t.createElement(nV,{previewState:e.previewState,onViewTermInfo:t=>function(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}(t)})))}function twe(e){return t.createElement(Jbe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation,colorScheme:e.colorScheme},e.deviceActivityViewUrl&&t.createElement(eS,null,t.createElement(zfe,{onClick:()=>b.openApplication(e.deviceActivityViewUrl),dataTypes:ld,previewState:e.previewState?"fetchingData":void 0})),t.createElement(eS,null,t.createElement(AV,{previewState:e.previewState?"Web":void 0,enableAppleHealthSurveyName:e.enableAppleHealthSurveyName,enableGoogleFitSurveyName:e.enableGoogleFitSurveyName,postalCodeSurveyName:e.postalCodeSurveyName})),t.createElement(eS,null,t.createElement(Ede,{previewState:e.previewState?"connected":void 0})),t.createElement(eS,null,t.createElement(Pde,{previewState:e.previewState?"connected":void 0})))}function awe(e){let a="",n=[];return e.excludeProviders||(n.push("Provider"),a+=eo("connect-ehr-title-providers")),e.excludeHealthPlans||(n.push("Health Plan"),a.length>0&&(a+=eo("connect-ehr-title-divider")),a+=eo("connect-ehr-title-health-plans")),a=eo("connect-ehr-title-prefix")+a,t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:a,showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),e.onViewEhr&&t.createElement(eS,null,t.createElement(Rfe,{previewState:e.preview?"fetchingData":void 0,onClick:e.onViewEhr})),t.createElement(eS,null,t.createElement(fge,null)),e.externalAccountsApplicationUrl&&t.createElement(eS,null,t.createElement(bde,{previewState:e.preview?"Default":void 0,applicationUrl:e.externalAccountsApplicationUrl,excludeProviders:e.excludeProviders,excludeHealthPlans:e.excludeHealthPlans,excludeDeviceManufacturers:!0})),t.createElement(eS,null,t.createElement(Uq,null,eo("ehr-intro-search")),t.createElement(ffe,{previewState:e.preview?"Default":void 0,providerCategories:n})))}function nwe(e){const[a,n]=t.useState("daily"),r=ld.map((e=>({dailyDataType:e.type,color:e.color})));return t.createElement(Jbe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation,colorScheme:e.colorScheme},t.createElement(eye,{style:{marginTop:e.presentation?"0px":"16px",marginLeft:"16px",marginRight:"16px",marginBottom:"daily"==a?"16px":"0px"},variant:"default",segments:[{title:eo("daily"),key:"daily"},{title:eo("weekly"),key:"weekly"},{title:eo("monthly"),key:"monthly"}],onSegmentSelected:e=>n(e),selectedSegment:a}),"daily"==a&&t.createElement(bfe,{dataTypes:r,previewState:e.previewState},t.createElement(eS,null,t.createElement(sM,{defaultMargin:!0}),t.createElement(kfe,{useContext:!0,previewState:e.previewState?"Default":void 0}))),("monthly"==a||"weekly"==a)&&t.createElement(rM,{intervalType:"weekly"==a?"Week":"Month",key:a,variant:"rounded"},t.createElement(Jfe,{noTopMargin:!0},ld.map((a=>t.createElement(zue,{hideIfNoData:a.type!=Li.Steps&&a.type!=Li.SleepMinutes,title:a.labelKey?eo(a.labelKey):void 0,key:a.type,dailyDataType:a.type,chartType:"Bar",options:{barColor:a.color},previewState:e.previewState}))))))}function rwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(cye,null),t.createElement(eS,{allowOverflow:!0},t.createElement(Bue,{previewState:e.preview?"Default":void 0})),t.createElement(eS,null,t.createElement(Ede,{previewState:e.preview?"connected":void 0})),t.createElement(eS,null,t.createElement(Pde,{previewState:e.preview?"connected":void 0})),t.createElement(eS,null,t.createElement(AV,{previewState:e.preview?"Web":void 0})))}w(".ss-report-builder {\n padding-bottom: env(safe-area-inset-bottom);\n position: relative;\n padding-bottom: 16px;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n background: var(--mdhui-background-color-0);\n position: relative;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item .ss-report-builder-item-title {\n font-weight: normal;\n font-size: 17px;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item .ss-report-builder-item-status {\n position: absolute;\n right: 0;\n top: 0;\n padding: 16px;\n cursor: pointer;\n text-align: right;\n width: 100%;\n font-weight: bold;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item svg {\n color: var(--mdhui-text-color-3);\n font-size: 17px;\n top: calc(50% - 16px);\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item .fa-circle-check {\n color: var(--mdhui-color-success);\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item.ss-report-builder-month-selector {\n text-align: center;\n font-size: 17px;\n font-weight: bold;\n cursor: auto;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item.ss-report-month-selector .ss-report-builder-selector-title {\n text-transform: uppercase;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n padding-bottom: 4px;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-date-chooser {\n background: none;\n}\n\n.ss-report-builder .ss-report-items {\n margin-top: 12px;\n margin-bottom: -4px;\n}\n\n.ss-report-builder .ss-report-items .ss-report-item {\n margin: 4px;\n}\n\n.ss-report-builder .ss-report-report-date-chooser {\n margin: 0;\n}");function iwe(e){const[a,n]=c(),[r,i]=c(),[o,s]=c(!1);td((()=>{if(e.previewState){const t=e.previewState.endsWith("web")?"Web":"iOS";if(a!==t)return void n(t);if(e.previewState?.startsWith("loading"))return void i(void 0)}a?qA(!!e.previewState).load(e.surveyResultId,e.surveySpecification).then((e=>{e?(i(e),s(!!e.fileUrl&&!e.fileUrl.endsWith(".pdf"))):b.back()})):(async()=>{const e=await b.getDeviceInfo();n(e.platform)})()}),[],[e.previewState,a]);const l=async()=>{!e.previewState&&a&&r?.fileUrl&&(["Android","iOS"].includes(a)?window.webkit.messageHandlers.OpenFile.postMessage({url:r.fileUrl}):b.openExternalUrl(r.fileUrl))};return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showBackButton:!0,className:"mdhui-document-detail-view-nav-bar",navigationBarRight:a&&r?t.createElement("div",{className:"mdhui-document-detail-view-nav-bar-icon",onClick:l},t.createElement(Me,{icon:"Web"===a?le:q})):void 0}),t.createElement("div",{className:"mdhui-document-detail-view"},!r&&t.createElement(ZA,null),r&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-document-detail-view-preview-container"},t.createElement("div",{className:"mdhui-document-detail-view-preview",onClick:l},o&&t.createElement(ZA,{className:"mdhui-document-detail-view-preview-loading"}),r.fileUrl&&!r.fileUrl.endsWith(".pdf")&&t.createElement("img",{src:r.fileUrl,style:{display:o?"none":"inline"},onLoad:()=>s(!1),alt:"document preview image"}),(!r.fileUrl||r.fileUrl.endsWith(".pdf"))&&t.createElement("div",{className:"mdhui-document-detail-view-preview-unavailable"},"Preview unavailable")),t.createElement("div",{className:"mdhui-document-detail-view-preview-label"},r.file)),t.createElement("div",{className:"mdhui-document-detail-view-document-details"},t.createElement("div",{className:"mdhui-document-detail-view-document-name"},r.name),t.createElement("div",{className:"mdhui-document-detail-view-document-date-and-type"},UA(r)),t.createElement("div",{className:"mdhui-document-detail-view-document-notes-title"},"Notes"),r.notes&&t.createElement("div",{className:"mdhui-document-detail-view-document-notes"},r.notes),!r.notes&&t.createElement("div",{className:"mdhui-document-detail-view-document-notes-none"},"None")),t.createElement("div",{className:"mdhui-document-detail-view-document-buttons"},t.createElement(YA,{variant:"light",color:"var(--mdhui-color-danger)",onClick:async()=>{if(e.previewState||!r)return;window.confirm("Are you sure you want to delete this document?")&&(r.fileKey&&await b.deleteFile(r.fileKey),await b.deleteSurveyResult(r.surveyResultId),b.back())}},"Delete")))))}w("body:has(.mdhui-document-detail-view) {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-navigation-bar.mdhui-document-detail-view-nav-bar {\n background: var(--mdhui-background-color-0);\n margin-bottom: 0;\n}\n\n.mdhui-navigation-bar.mdhui-document-detail-view-nav-bar .mdhui-document-detail-view-nav-bar-icon {\n position: absolute;\n top: 0;\n right: 8px;\n bottom: 0;\n width: 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mdhui-color-primary);\n font-size: 1.2em;\n cursor: pointer;\n}\n\n.mdhui-document-detail-view {\n border-top: 1px solid var(--mdhui-background-color-1);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background: var(--mdhui-background-color-2);\n border-top: 1px solid var(--mdhui-border-color-2);\n border-bottom: 1px solid var(--mdhui-border-color-2);\n padding: 16px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--mdhui-background-color-0);\n padding: 16px;\n flex: 1;\n box-shadow: var(--mdhui-box-shadow-0);\n max-width: 80vw;\n cursor: pointer;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20vh;\n width: 40vw;\n padding: 16px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview img {\n max-height: 50vh;\n max-width: 100%;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-unavailable {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20vh;\n width: 40vw;\n padding: 16px;\n font-size: 0.8em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-label {\n margin-top: 16px;\n font-size: 0.8em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-details {\n display: flex;\n flex-direction: column;\n padding: 16px;\n min-width: 0;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-name {\n font-size: 1.2em;\n font-weight: bold;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 4px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-date-and-type {\n font-size: 0.9em;\n font-weight: bold;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-notes-title {\n font-weight: bold;\n margin-top: 16px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-notes {\n font-size: 0.9em;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-notes-none {\n font-size: 0.9em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-buttons {\n padding: 16px;\n}");function owe(e){const[a,n]=c(!0),[r,i]=c(),[o,s]=c("date"),[u,d]=c("desc"),m=e=>"type"===o?[...e].sort(VA("type",u)):"name"===o?[...e].sort(VA("name",u)):[...e].sort(VA("date",u));td((()=>{if("loading"===e.previewState)return n(!0),void i(void 0);HA(e.previewState).load(e.surveySpecification).then((e=>{i(m(e)),n(!1)}))}),[],[e.previewState]),l((()=>{r&&i(m(r))}),[o,u]);const h=e=>{let t="";return"date"===e?t="Date":"name"===e?t="Name":"type"===e&&(t="Type"),o===e&&(t+=" "+("asc"===u?"▴":"▾")),t};return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showBackButton:!0,className:"mdhui-document-library-view-nav-bar"}),t.createElement("div",{className:"mdhui-document-library-view"},t.createElement("div",{className:"mdhui-document-library-header"},t.createElement("div",{className:"mdhui-document-library-view-title"},"Documents"),t.createElement("div",null,t.createElement(YA,{disabled:a,fullWidth:!1,variant:"light",onClick:()=>{e.previewState||(n(!0),b.startSurvey(e.surveySpecification.surveyName))}},"Upload"))),t.createElement("div",{className:"mdhui-document-library-subheader"},t.createElement(eye,{segments:[{key:"date",title:h("date")},{key:"name",title:h("name")},{key:"type",title:h("type")}],onSegmentSelected:e=>{o===e?d("asc"===u?"desc":"asc"):s(e)},selectedSegment:o})),a&&t.createElement(ZA,null),!a&&0===r?.length&&t.createElement("div",{className:"mdhui-document-library-view-documents-empty"},"No documents uploaded."),!a&&r&&r.length>0&&t.createElement("div",{className:"mdhui-document-library-view-documents"},r.map(((a,n)=>t.createElement(swe,{key:n,document:a,onClick:()=>(t=>{if(e.previewState)return;const a=e.documentDetailViewBaseUrl.includes("?")?"&":"?",n=new URLSearchParams({...e.surveySpecification,surveyResultId:t.surveyResultId});b.openApplication(`${e.documentDetailViewBaseUrl}${a}${n}`)})(a)}))))))}function swe(e){const[a,n]=c(!!e.document.fileUrl&&!e.document.fileUrl.endsWith(".pdf"));return t.createElement($a,{className:"mdhui-document-library-view-document",onClick:e.onClick},t.createElement("div",{className:"mdhui-document-library-view-document-contents"},t.createElement("div",{className:"mdhui-document-library-view-document-thumbnail"},(!e.document.fileUrl||e.document.fileUrl.endsWith(".pdf"))&&t.createElement(Me,{icon:Oe}),e.document.fileUrl&&!e.document.fileUrl.endsWith(".pdf")&&t.createElement(t.Fragment,null,a&&t.createElement(ZA,{className:"mdhui-document-library-view-document-thumbnail-loading"}),t.createElement("img",{src:e.document.fileUrl,style:{display:a?"none":"inline"},onLoad:()=>n(!1),alt:"document thumbnail image"}))),t.createElement("div",{className:"mdhui-document-library-view-document-details"},t.createElement("div",{className:"mdhui-document-library-view-document-name"},e.document.name),t.createElement("div",{className:"mdhui-document-library-view-document-date-and-type"},UA(e.document)))))}function lwe(e){let a="",n=t.createElement(t.Fragment,null);switch(e.feed){case"Procedures":a=eo("procedures-title"),n=t.createElement("img",{src:Que});break;case"Reports":a=eo("reports-title"),n=t.createElement("img",{src:Yue});break;case"Immunizations":a=eo("immunizations-title"),n=t.createElement("img",{src:Xue});break;case"LabReports":a=eo("lab-results-title"),n=t.createElement("img",{src:Jue})}return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:n,imageAlignment:"left"},a)),t.createElement(ide,{feed:e.feed,onEventSelected:e.onEventSelected,onReportSelected:e.onReportSelected,previewState:e.previewState}))}function cwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{variant:"compressed",showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),t.createElement(sde,{feed:e.feed,pageId:e.pageId,pageDate:e.pageDate,previewState:e.previewState,onViewLabObservationTermInfo:e.onViewLabObservationTermInfo}))}function uwe(e){let a="",n=[];return e.excludeProviders||(n.push("Provider"),a+=eo("external-accounts-title-providers")),e.excludeHealthPlans||(n.push("Health Plan"),a.length>0&&(a+=eo("external-accounts-title-divider")),a+=eo("external-accounts-title-health-plans")),e.excludeDeviceManufacturers||(n.push("Device Manufacturer"),a.length>0&&(a+=eo("external-accounts-title-divider")),a+=eo("external-accounts-title-devices")),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:a,showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),t.createElement(gde,{previewState:e.previewState,externalAccountProviderCategories:n,onExternalAccountsLoaded:function(t){0===t.length&&("Modal"===e.presentation?b.dismiss():b.back())},connectExternalAccountOptions:e.connectExternalAccountOptions}))}function dwe(e){var[a,n]=c(!1);return l((()=>{b.connect().then((()=>{n(!0)}))}),[]),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(cye,null),a&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(IV,{previewState:e.connectPreview,disabledBehavior:"displayError"})),t.createElement(eS,null,t.createElement(Ede,{previewState:e.devicesPreview})),t.createElement(eS,{allowOverflow:!0},t.createElement(Cde,{previewState:e.chartsPreview}))),!a&&t.createElement(ZA,null))}function mwe(e){var[a,n]=c(!1);return l((()=>{b.connect().then((()=>{n(!0)}))}),[]),t.createElement(Wa,null,t.createElement(cye,{color:"var(--main-bg-color)"}),a&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(NV,{previewState:e.connectPreview,garminProviderID:e.garminProviderID,disabledBehavior:"displayError"})),t.createElement(eS,null,t.createElement(Pde,{previewState:e.devicesPreview})),t.createElement(eS,{allowOverflow:!0},t.createElement(Tde,{previewState:e.chartsPreview}))),!a&&t.createElement(ZA,null))}function hwe(e){var a="Push";e.notificationType&&(a=e.notificationType);return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(cye,{color:"#FFFFFF"}),t.createElement(eS,null,t.createElement(Gq,{previewDevicePlatform:e.preview?"Web":void 0,previewProjectPlatforms:e.preview?["Web","Android","iOS"]:void 0})),t.createElement(eS,null,t.createElement(cfe,{notificationType:a,onViewMore:e.notificationsViewUrl?()=>{e.notificationsViewUrl&&b.openApplication(e.notificationsViewUrl)}:void 0,previewState:e.preview?"loaded with data":void 0,hideAfterHours:e.notificationHideAfterHours})),t.createElement(Ofe,{variant:"singleCard",status:"incomplete",limit:3,title:eo("tasks"),onDetailLinkClick:e.tasksViewUrl?()=>{e.tasksViewUrl&&b.openApplication(e.tasksViewUrl)}:void 0,previewState:e.preview?"IncompleteTasks":void 0}),t.createElement(eS,null,t.createElement(AV,{headerVariant:"medium",previewState:e.preview?"Web":void 0})),t.createElement(eS,null,e.ehrConnectApplicationUrl&&t.createElement(DV,{variant:"medium",previewState:e.preview?"enabled":void 0,applicationUrl:e.ehrConnectApplicationUrl})),t.createElement(eS,null,t.createElement(hfe,{previewState:e.preview?"Default":void 0})))}function pwe(e){function a(){e.onViewLabs?e.onViewLabs():b.openApplication("https://hw.careevolutionapps.com/LabReports.html?lang="+b.getCurrentLanguage())}function n(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}let r=e.variant??"default";function i(a){var n=function(){return t.createElement(wge,{concept:a,onClick:()=>function(t){e.onViewHealthSectionDetails?e.onViewHealthSectionDetails(t):b.openApplication("https://hw.careevolutionapps.com/"+t+".html")}(a),previewState:"default"==e.previewState?"Default":void 0,indicatorPosition:"cardBased"==r?"topRight":"default"})};return"cardBased"==e.variant?t.createElement(eS,null,n()):n()}return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),t.createElement(yde,{previewState:"default"==e.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"],triggerWebExternalAccountSyncComplete:!0}),"default"==r&&t.createElement(Jfe,{noTopMargin:!0},t.createElement(Kge,{onViewTermInfo:e=>n(e),onClick:()=>a(),previewState:"default"==e.previewState?"ImportantLabs":void 0}),t.createElement(Uge,{previewState:"default"==e.previewState?"BloodTypeLabs":void 0}),i("Medications"),i("Immunizations"),i("Reports"),i("Allergies"),i("Conditions"),i("Procedures"),t.createElement(bde,{excludeDeviceManufacturers:!0,applicationUrl:e.externalAccountsApplicationUrl,previewState:"default"==e.previewState?"Default":void 0})),"cardBased"==r&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(Kge,{onViewTermInfo:e=>n(e),onClick:()=>a(),previewState:"default"==e.previewState?"ImportantLabs":void 0})),t.createElement(eS,null,t.createElement(Uge,{previewState:"default"==e.previewState?"BloodTypeLabs":void 0})),i("Medications"),i("Immunizations"),i("Reports"),i("Allergies"),i("Conditions"),i("Procedures"),t.createElement(eS,null,t.createElement(bde,{excludeDeviceManufacturers:!0,applicationUrl:e.externalAccountsApplicationUrl,previewState:"default"==e.previewState?"Default":void 0}))),t.createElement(eS,null,t.createElement(DV,{bottomBorder:!0,applicationUrl:e.connectEhrApplicationUrl,previewState:"default"==e.previewState?"enabledConnected":void 0})))}function gwe(e){const a=()=>{e.previewState&&"live"!==e.previewState||b.dismiss()};return t.createElement(Wa,{colorScheme:e.colorScheme??"auto",flex:!0},t.createElement(eS,null,t.createElement(afe,{previewState:"live"!==e.previewState?e.previewState:void 0,onError:a,onDelete:a,onCancel:a,onSave:a,withImageCapture:!0})))}function fwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:t.createElement("img",{src:vge}),imageAlignment:"left"},eo("medications-title"))),t.createElement(eS,null,t.createElement(nfe,{previewState:e.previewState,onViewTermInfo:t=>function(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}(t)})))}function ywe(e){var a="Push";return e.notificationType&&(a=e.notificationType),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:eo("notifications"),showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),t.createElement(dfe,{notificationType:a,previewState:e.preview?"loaded with data":void 0}))}function vwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:eo("tasks"),showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),!e.hideIncompleteTasks&&t.createElement(Ofe,{variant:"multiCard",title:eo("incomplete-tasks"),status:"incomplete",previewState:e.preview?"IncompleteTasks":void 0}),!e.hideCompleteTasks&&t.createElement(Ofe,{variant:"multiCard",title:eo("completed-tasks"),status:"complete",previewState:e.preview?"CompleteTasks":void 0}))}w("body:has(.mdhui-document-library-view) {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-navigation-bar.mdhui-document-library-view-nav-bar {\n background: var(--mdhui-background-color-0);\n margin-bottom: 0;\n}\n\n.mdhui-document-library-view {\n padding: 16px;\n border-top: 1px solid var(--mdhui-background-color-1);\n}\n\n.mdhui-document-library-view .mdhui-document-library-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 16px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-title {\n font-size: 1.7em;\n font-weight: bold;\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader {\n padding: 2px;\n margin: 0 0 16px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader .mdhui-segmented-control {\n background-color: var(--mdhui-background-color-1);\n border-color: var(--mdhui-background-color-1);\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader .mdhui-segmented-control .mdhui-segment {\n background-color: var(--mdhui-background-color-1);\n border: 1px solid var(--mdhui-background-color-1);\n color: var(--mdhui-text-color-0);\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader .mdhui-segmented-control .mdhui-segment-selected {\n background-color: var(--mdhui-background-color-0);\n border: 1px solid var(--mdhui-border-color-1);\n color: var(--mdhui-text-color-0);\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-documents-empty {\n color: var(--mdhui-text-color-3);\n text-align: center;\n margin: 32px 0;\n}\n\n.mdhui-document-library-view .mdhui-action.mdhui-document-library-view-document {\n background: var(--mdhui-background-color-1);\n border-radius: 10px;\n margin: 16px 0;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-contents {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail {\n height: 48px;\n width: 48px;\n border-radius: 5px;\n overflow: hidden;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail-loading {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--mdhui-background-color-0);\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail > svg {\n color: var(--mdhui-text-color-4);\n height: 100%;\n width: 100%;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail > img {\n height: 100%;\n width: 100%;\n}\n\n\n.mdhui-document-library-view .mdhui-document-library-view-document-details {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-name {\n font-size: 1.2em;\n font-weight: bold;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 4px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-date-and-type {\n font-size: 0.7em;\n font-weight: bold;\n color: var(--mdhui-text-color-3);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}");function bwe(e){let[a,n]=t.useState(null);function r(){rbe(),window.setTimeout((function(){ibe()}),1200)}return td((()=>{if("default"==e.previewState)return n([1e3,2e3,3e3]),void r();b.getParticipantInfo().then((t=>{let a=Qq(e.customField,[],t);n(a.badges),r()}))}),[],[]),null!=a&&0===a.length?(b.dismiss(),null):t.createElement(Wa,{bodyBackgroundColor:"dark"===e.colorScheme?"":"#fff",colorScheme:e.colorScheme??"auto",primaryColor:e.primaryColor},t.createElement("div",{className:"mdhui-new-badge-view"},null==a&&t.createElement(ZA,null),null!=a&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-new-badge-view-badge-container"},t.createElement(GA,{size:"xl",backgroundColor:Ne(a.length-1)},t.createElement(t.Fragment,null,e.showBadgePoints&&t.createElement(t.Fragment,null,yl(Math.max(...a)),t.createElement("br",null),"points")))),t.createElement(iM,{order:2,style:{margin:"16px",marginBottom:0}},e.title||eo("new-badge-title")),t.createElement(Uq,null,e.text||eo("new-badge-text")),t.createElement(YA,{onClick:()=>b.dismiss()},eo("get-badge")))))}w(".mdhui-new-badge-view {\n padding: 16px;\n text-align: center;\n height: calc(100dvh - 34px);\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}\n\n.mdhui-new-badge-view .mdhui-new-badge-view-badge-container {\n align-items: center;\n display: flex;\n}");function wwe(e){let a=e.entries.reduce(((e,t)=>e+(t.bonusPoints||0)),0),n=e.entries.reduce(((e,t)=>e+t.points),a);return t.createElement(Wa,{bodyBackgroundColor:"dark"===e.colorScheme?"":"#fff",colorScheme:e.colorScheme??"auto",primaryColor:e.primaryColor},t.createElement("div",{className:"mdhui-new-points"},t.createElement(Kfe,{animate:!0},t.createElement("div",{className:"mdhui-new-points-total"},t.createElement("div",{className:"mdhui-new-points-total-points"},"+",n),t.createElement("div",{className:"mdhui-new-points-total-points-label"},"points"))),t.createElement("div",{className:"mdhui-new-points-content"},1==e.entries.length&&e.entries[0].message&&0===a&&t.createElement("div",null,t.createElement("div",{className:"mdhui-new-points-title"},e.entries[0].message.title),t.createElement("div",{className:"mdhui-new-points-text"},e.entries[0].message.text)),(e.entries.length>1||!e.entries[0].message||a>0)&&t.createElement("div",null,t.createElement("div",{className:"mdhui-new-points-title"},eo("new-points-title")),t.createElement("div",{className:"mdhui-new-points-text"},eo("new-points-text")),t.createElement("div",{className:"mdhui-new-points-entries"},e.entries.map(((e,a)=>t.createElement("div",{key:a,className:"mdhui-new-points-entry"},t.createElement("div",{className:"mdhui-new-points-entry-name"},e.name),t.createElement("div",{className:"mdhui-new-points-entry-points"},"+",e.points)))),a>0&&t.createElement("div",{className:"mdhui-new-points-entry"},t.createElement("div",{className:"mdhui-new-points-entry-name bonus"},eo("bonus")),t.createElement("div",{className:"mdhui-new-points-entry-points bonus"},"+",a)))),e.pointsToNextReward&&t.createElement("div",{className:"mdhui-new-points-next-reward"},eo("new-points-next-reward-prefix"),t.createElement("span",{className:"mdhui-new-points-next-reward-points"},e.pointsToNextReward),eo("new-points-next-reward-suffix"))),t.createElement("div",{className:"mdhui-new-points-button-panel"},t.createElement(YA,{onClick:()=>b.dismiss()},e.doneButtonText??eo("new-points-done-button-text")))))}function kwe(e,t){let a={type:"MDHUI-NewPoints",value:JSON.stringify(e)};b.persistDeviceData([a]).then((()=>{b.openApplication(t||"https://viewlibrary.careevolutionapps.com/newpoints",{modal:!0})}))}w(".mdhui-new-points {\n margin: calc(20px + env(safe-area-inset-top, 0px)) 20px 20px;\n}\n\n.mdhui-new-points-total {\n margin-top: 10px;\n text-align: center;\n}\n\n.mdhui-new-points-total-points {\n font-weight: bold;\n font-size: 40px;\n height: 50px;\n line-height: 50px;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-new-points-content {\n text-align: center;\n opacity: 0;\n animation: fadein 750ms ease-in-out;\n animation-delay: 750ms;\n animation-fill-mode: forwards;\n}\n\n.mdhui-new-points-title {\n margin: 32px 0 20px 0;\n font-size: 2em;\n font-weight: bold;\n}\n\n.mdhui-new-points-text {\n padding: 0 20px;\n}\n\n.mdhui-new-points-entries {\n margin-top: 20px;\n text-align: left;\n}\n\n.mdhui-new-points-entry {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n}\n\n.mdhui-new-points-entry-name {\n font-size: 1.1em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-new-points-entry-points {\n width: 50px;\n color: var(--mdhui-color-primary);\n font-size: 1.1em;\n font-weight: bold;\n text-align: end;\n}\n\n.mdhui-new-points-next-reward {\n margin-top: 20px;\n padding: 0 20px;\n}\n\n.mdhui-new-points-next-reward-points {\n color: var(--mdhui-color-primary);\n font-weight: bold;\n}\n\n.mdhui-new-points-entry .bonus {\n color: #ffcc5b;\n font-weight: bold;\n}\n\n.mdhui-new-points-button-panel {\n margin: 20px 0 36px 0;\n opacity: 0;\n animation: fadein 750ms ease-in-out;\n animation-delay: 750ms;\n animation-fill-mode: forwards;\n}");function xwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Age,null,t.createElement(Awe,{...e})))}function Awe(e){const[a,n]=c(),[r,i]=c(),[o,s]=c();let l=!a&&!r&&!o,u=[...a??[],...r??[],...o??[]];return t.createElement("div",{className:"mdhui-inbox"},t.createElement(mye,{title:eo("inbox-view-title")}),l&&t.createElement(ZA,null),!l&&0===u.length&&t.createElement("div",{className:"mdhui-inbox-empty-text"},eo("inbox-view-empty-text")),t.createElement(Cge,{previewState:"default"===e.previewState?"incomplete message":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-messages-title"),type:"message",status:"incomplete",sortOrder:"descending",sortColumn:"insertedDate",messageViewerUrl:e.messageViewerUrl,onItemsLoaded:n,hideLoadingIndicator:!0,category:e.itemCategory}),t.createElement(Cge,{previewState:"default"===e.previewState?"incomplete survey":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-surveys-title"),type:"survey",status:"incomplete",sortOrder:"ascending",sortColumn:"dueDate",onItemsLoaded:i,hideLoadingIndicator:!0,surveyVariant:e.surveyVariant,category:e.itemCategory}),t.createElement(Cge,{previewState:"default"===e.previewState?"incomplete resource":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-resources-title"),type:"resource",status:"incomplete",sortOrder:"descending",sortColumn:"insertedDate",onItemsLoaded:s,hideLoadingIndicator:!0,resourceImageAlignment:e.resourceImageAlignment,resourceButtonVariant:e.resourceButtonVariant,resourceButtonText:e.resourceButtonText,category:e.itemCategory}),t.createElement("div",{className:"mdhui-inbox-recently-completed"},t.createElement(Cge,{previewState:"default"===e.previewState?"complete items":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-recently-completed-title"),status:"complete",sortOrder:"descending",sortColumn:"endDate",messageViewerUrl:e.messageViewerUrl,endsAfter:on(new Date,{days:-3}).toISOString(),showTitleWhenEmpty:!0,emptyText:eo("inbox-view-recently-completed-empty-text"),syncOnChanges:!0,category:e.itemCategory}),!l&&t.createElement(eS,{style:{margin:"12px 16px"}},t.createElement($a,{title:eo("inbox-view-history-button-text"),onClick:()=>{e.previewState||b.openApplication(e.historyViewerUrl,{modal:!0})}}))))}w(".mdhui-inbox {\n padding: calc(env(safe-area-inset-top, 0px) + 20px) 0 calc(env(safe-area-inset-bottom, 0px) + 20px);\n}\n\n.mdhui-inbox .mdhui-view-header {\n padding: 0 16px;\n}\n\n.mdhui-inbox .mdhui-view-header .mdhui-view-header-title {\n font-size: 1.8em;\n}\n\n.mdhui-inbox-empty-text {\n color: var(--mdhui-text-color-3);\n padding: 16px;\n}\n\n.mdhui-inbox-recently-completed {\n margin-top: 20px;\n}\n\n.mdhui-inbox-recently-completed .mdhui-inbox-item-list-title {\n color: var(--mdhui-text-color-0);\n margin-bottom: 12px;\n font-size: 1.4em;\n font-weight: bold;\n}\n\n.mdhui-inbox-recently-completed .mdhui-card {\n margin: 12px 0 0 0;\n}");function Swe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showCloseButton:!0}),t.createElement("div",{className:"mdhui-inbox-history"},t.createElement(iM,{order:3},eo("inbox-history-view-title")),t.createElement(Cge,{previewState:"default"===e.previewState?"complete items":void 0,status:"complete",messageViewerUrl:e.messageViewerUrl,emptyText:eo("inbox-history-view-empty-text")})))}w(".mdhui-inbox-history {\n padding: calc(env(safe-area-inset-top, 0px)) 16px calc(env(safe-area-inset-bottom, 0px) + 20px);\n}");function Ewe(e){return t.createElement("div",{className:"mdhui-report-content"},"text/html"==e.contentType&&t.createElement("iframe",{sandbox:"",srcDoc:e.content}),"application/pdf"==e.contentType&&t.createElement("div",{className:"mdhui-report-content-download-pdf","ng-if":"$ctrl.report.ContentType == 'application/pdf'","ng-show":"$ctrl.srcSet = true"},t.createElement("a",{href:"data:application/pdf;base64,"+e.content,download:e.type+".pdf",title:eo("download-pdf-report")},t.createElement(Me,{icon:le}),eo("download-pdf-report"))))}w(".mdhui-report-content {\n min-height: 200px;\n}\n\n.mdhui-report-content iframe {\n border: none;\n padding: 0;\n margin: 0;\n width: 100%;\n height: 100%;\n background: #FFF;\n min-height: 200px;\n}\n\n.mdhui-report-content .mdhui-report-content-download-pdf a {\n padding: 16px;\n margin: 0 auto;\n background: var(--mdhui-color-primary);\n color: #FFF;\n font-weight: bold;\n border-radius: 6px;\n text-decoration: none;\n text-align: center;\n display: block;\n width: 200px;\n margin-top: var(--mdhui-padding-md);\n}\n\n.mdhui-report-content .mdhui-report-content-download-pdf svg {\n display: block;\n text-align: center;\n width: 100%;\n margin-bottom: var(--mdhui-padding-md);\n}");let _we='<!DOCTYPE html><html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:n3="http://www.w3.org/1999/xhtml" xmlns:n1="urn:hl7-org:v3" xmlns:n2="urn:hl7-org:v3/meta/voc" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:in="urn:lantana-com:inline-variable-data"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\x3c!--\r\n Do NOT edit this HTML directly, it was generated via an XSLt\r\n transformation from the original release 2 CDA Document.\r\n --\x3e<title>Encounter Summary</title><style>\r\n \r\n body { font-family:Helvetica, Arial, sans-serif; font-size: 12px; margin: 16px; text-align: left; margin-bottom:0; } \r\n .title { font-size: 21px; font-weight: bold; line-height:1.5em;}\r\n .document-info { font-size:12px; margin-bottom:16px; color:#999; line-height:1.5em; }\r\n \r\n \r\n .patient-info-table { border-spacing: 0; width:100%; }\r\n .patient-info-table th { text-align:left; font-size:11px; color:#999; font-weight:normal; vertical-align:top; padding-right:8px; border-bottom:solid 1px #eee; padding-top:4px; padding-bottom:4px; }\r\n .patient-info-table td { text-align:left; font-size:12px; color:#000; vertical-align:top; border-bottom:solid 1px #eee; padding-top:4px; padding-bottom:4px; }\r\n .patient-info-table tr:last-child th, .patient-info-table tr:last-child td { border-bottom:none; }\r\n\r\n .data-table { margin-left: -16px; margin-right:-16px; margin-bottom:16px; }\r\n .data-table table, .data-table td, .data-table th { border:none; }\r\n\r\n .data-table > span { margin-left:16px; margin-right:16px; }\r\n .data-table table { border-collapse: collapse; }\r\n .data-table th { padding-bottom:4px; padding-top:4px; padding-right:8px; padding-left:8px; text-align: left; text-transform: uppercase; font-weight: normal; color: #666; font-size: 11px; border-bottom: #ddd 1px solid; vertical-align:bottom; }\r\n .data-table tr:nth-child(even) td { background-color: #f5f5f5; }\r\n .data-table td { vertical-align: top; font-size:12px; padding-bottom:4px; padding-top:4px; padding-right:8px; padding-left:8px;}\r\n .data-table td:first-child, .data-table th:first-child { padding-left:16px;}\r\n \r\n p { margin: 0 0 4px 0em; }\r\n\r\n .wrap-collabsible { position:relative; margin-left:-16px; margin-right:-16px; }\r\n input[type=\'checkbox\'] { display: none; }\r\n .lbl-toggle { display: block; font-size: 17px; text-align: left; padding:8px; padding-left:16px; padding-right:16px; border-top: solid 1px #ddd; cursor: pointer; transition: all 0.25s ease-out; position: sticky; position: -webkit-sticky; top: 0; left: 0; background: #FFF; color: #3e6e9a; font-weight: bold; }\r\n .lbl-toggle:hover { opacity:.9; }\r\n .lbl-toggle::before { content: \' \'; display: inline-block; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid currentColor; vertical-align: middle; margin-right: .7rem; transform: translateY(-2px); transition: transform .2s ease-out; position: absolute; right: 8px; top: 16px; }\r\n .toggle:checked + .lbl-toggle::before { transform: rotate(90deg) translateX(-3px); }\r\n .collapsible-content { max-height: 0px; overflow-x: auto; overflow-y: hidden; }\r\n .toggle:checked + .lbl-toggle + .collapsible-content { max-height: 999999px; }\r\n .collapsible-content .content-inner { background: #FFF; padding:8px; padding-left:16px; padding-right:16px; }\r\n \r\n </style></head><body><div class="title">Encounter Summary</div><div class="document-info"><div class="document-date">\r\n Document Created\r\n May 29, 2023</div><div class="custodian"><div>Custodian: Cedars-Sinai Health System</div></div></div><div class="wrap-collabsible"><input id="collapsible" class="toggle" type="checkbox" /><label for="collapsible" class="lbl-toggle">Patient Information</label><div class="collapsible-content"><div class="content-inner"><table class="patient-info-table" cellpadding="0" cellspacing="0"><tr><td colspan="2" style="font-size:14px;">AmbulatorySeniorF Xxxcshs </td></tr><tr><th>Date of Birth</th><td>January 1, 1947</td></tr><tr><th>Race</th><td>Unknown</td></tr><tr><th>Patient ID</th><td>CSHJWLL1B3TGMWX</td></tr><tr><th>Sex</th><td>Female</td></tr><tr><th>Ethnicity</th><td>Unknown</td></tr><tr><th>Preferred Language</th><td>Information not available</td></tr><tr><th>Address</th><td>6500 Wilshire Blvd<br /><br />LOS ANGELES, CA, 90046<br />tel:+1-626-315-4807</td></tr><tr><th>Care Team Member(s)</th><td>Dr. Masson of Cedars-Sinai Health System<br />, , <br />tel:+1-310-248-7000<br /><br /></td></tr><tr><th>Guardian</th><td><div><br /></div></td></tr><tr><th>Next of Kin</th><td><div><br /></div></td></tr><tr><th>Other Caregivers(s)</th><td /></tr><tr><th>Emergency Contact</th><td><div><br /></div></td></tr><tr><th>Comments:</th><td /></tr></table></div></div></div><div class="wrap-collabsible"><input id="ID0EDGAC" class="toggle" type="checkbox" /><label for="ID0EDGAC" class="lbl-toggle" data-loinc-code="X-DOCCMT">Note from Cedars-Sinai Health System</label><div class="collapsible-content"><div class="content-inner">This document contains information that was shared with AmbulatorySeniorF Xxxcshs. It may not contain the entire record from Cedars-Sinai Health System.</div></div></div><div class="wrap-collabsible"><input id="ID0EVGAC" class="toggle" type="checkbox" /><label for="ID0EVGAC" class="lbl-toggle" data-loinc-code="46240-8">Encounter Details</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col width="10%" /><col width="15%" /><col span="3" width="25%" /></colgroup><thead><tr><th>Date</th><th>Type</th><th>Department</th><th>Care Team</th><th>Description</th></tr></thead><tbody><tr ID="encounter2" style="" id="encounter2"><td>04/15/2019 9:30 AM PDT</td><td ID="encounter2type" id="encounter2type">Office Visit</td><td><p>CSMG Internal Medicine</p><p>8767 Wilshire Blvd</p><p>3rd Floor</p><p>BEVERLY HILLS, CA 90211</p><p>310-385-6031</p></td><td><p style="font-weight:bold;">Dr. Gray</p><p>8767 WILSHIRE BLVD</p><p>3RD FLOOR-SUITE 301</p><p>BEVERLY HILLS, CA 90211</p><p>310-385-6064 (Work)</p><p>424-314-8735 (Fax)</p></td><td><span id="encounter2desc" /></td></tr></tbody></table></div></div></div></div><div class="wrap-collabsible"><input id="ID0EJNAG" class="toggle" type="checkbox" /><label for="ID0EJNAG" class="lbl-toggle" data-loinc-code="29762-2">Social History</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%" ID="sochist14" id="sochist14"><colgroup><col span="2" width="25%" /><col width="13%" /><col width="12%" /><col width="25%" /></colgroup><thead><tr><th>Tobacco Use</th><th>Types</th><th>Packs/Day</th><th>Years Used</th><th>Date</th></tr></thead><tbody><tr><td>Smoking Tobacco: Former</td><td>Cigarettes</td><td ID="sochist14packsperday" id="sochist14packsperday">0.5</td><td /><td>1999 - 06/2010</td></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col width="25%" /><col width="75%" /></colgroup><thead><tr><th>Alcohol Use</th><th>Standard Drinks/Week</th></tr></thead><tbody><tr><td ID="alcoholStatus" id="alcoholStatus">Yes</td><td>3 (1 standard drink = 0.6 oz pure alcohol)</td></tr></tbody></table></div><div class="data-table"><table width="100%" ID="sdohassess1" id="sdohassess1"><colgroup><col width="50%" /><col span="2" width="25%" /></colgroup><thead><tr><th>Depression</th><th>Answer</th><th>Date Recorded</th></tr></thead><tbody><tr ID="sdohassess1pair1" id="sdohassess1pair1"><td ID="sdohassess1pair1ques" id="sdohassess1pair1ques">PHQ-9 Score</td><td ID="sdohassess1pair1ans" id="sdohassess1pair1ans">23</td><td>10/24/2022</td></tr><tr ID="sdohassess1pair2" id="sdohassess1pair2"><td ID="sdohassess1pair2ques" id="sdohassess1pair2ques">Screening Completed</td><td ID="sdohassess1pair2ans" id="sdohassess1pair2ans">PHQ-9</td><td>10/24/2022</td></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col width="50%" /><col span="2" width="25%" /></colgroup><thead><tr><th>Sex and Gender Information</th><th>Value</th><th>Date Recorded</th></tr></thead><tbody><tr ID="BirthSex17" id="BirthSex17"><td>Sex Assigned at Birth</td><td ID="BirthSex17Value" id="BirthSex17Value">Female</td><td>11/04/2018 3:08 AM PST</td></tr><tr ID="GenderIdentity15" id="GenderIdentity15"><td>Gender Identity</td><td ID="GenderIdentity15Value" id="GenderIdentity15Value">Female</td><td>06/12/2019 2:50 PM PDT</td></tr><tr ID="SexualOrientation16" id="SexualOrientation16"><td>Sexual Orientation</td><td ID="SexualOrientation16Value" id="SexualOrientation16Value">Choose not to disclose</td><td>11/04/2018 3:08 AM PST</td></tr></tbody></table></div>documented as of this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EQHBG" class="toggle" type="checkbox" /><label for="ID0EQHBG" class="lbl-toggle" data-loinc-code="8716-3">Last Filed Vital Signs</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col span="4" width="25%" /></colgroup><thead><tr><th>Vital Sign</th><th>Reading</th><th>Time Taken</th><th>Comments</th></tr></thead><tbody><tr style=""><td style="">Blood Pressure</td><td><span id="sysBP_5642605800">120</span>/<span id="diaBP_5642605800">80</span></td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="pulse_5642605800" style="" id="pulse_5642605800"><td style="">Pulse</td><td>80</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="temp_5642605800" style="" id="temp_5642605800"><td style="">Temperature</td><td>37.1 °C (98.8 °F)</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="resp_" style="" id="resp_"><td style="">Respiratory Rate</td><td>-</td><td>-</td><td /></tr><tr ID="SpO2_" style="" id="SpO2_"><td style="">Oxygen Saturation</td><td>-</td><td>-</td><td /></tr><tr ID="inhaled_" style="" id="inhaled_"><td style="">Inhaled Oxygen Concentration</td><td>-</td><td>-</td><td /></tr><tr ID="weight_5642605800" style="" id="weight_5642605800"><td style="">Weight</td><td>238.1 kg (525 lb)</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="height_5642605800" style="" id="height_5642605800"><td style="">Height</td><td>157.5 cm (5\' 2")</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="bmi_5642605800" style="" id="bmi_5642605800"><td style="">Body Mass Index</td><td>96.02</td><td>10/21/2019 3:30 PM PDT</td><td /></tr></tbody></table></div>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EIZBG" class="toggle" type="checkbox" /><label for="ID0EIZBG" class="lbl-toggle" data-loinc-code="69730-0">Patient Instructions</label><div class="collapsible-content"><div class="content-inner"><ul style="" id="Instructions33"><li>Patient Instructions: <ul><li><p><span style="">Dr. Fazel - 04/15/2019 9:30 AM PDT</span></p><span><span style="">Formatting of this note is different from the original.</span><br /><span style="">Images from the original note were not included.</span><br />Patient Education <br /><br />Back Exercises<br />The following exercises strengthen the muscles that help to support the trunk and back. They also help to keep the lower back flexible. Doing these exercises can help to prevent back pain or lessen existing pain.<br />· If you have back pain or discomfort, try doing these exercises 2-3 times each day or as told by your health care provider.<br />· As your pain improves, do them once each day, but increase the number of times that you repeat the steps for each exercise (do more repetitions).<br />· To prevent the recurrence of back pain, continue to do these exercises once each day or as told by your health care provider.<br />Do exercises exactly as told by your health care provider and adjust them as directed. It is normal to feel mild stretching, pulling, tightness, or discomfort as you do these exercises, but you should stop right away if you feel sudden pain or your pain gets worse.<br />Exercises<br />Single knee to chest<br />Repeat these steps 3-5 times for each leg:<br />1. Lie on your back on a firm bed or the floor with your legs extended.<br />2. Bring one knee to your chest. Your other leg should stay extended and in contact with the floor.<br />3. Hold your knee in place by grabbing your knee or thigh with both hands and hold.<br />4. Pull on your knee until you feel a gentle stretch in your lower back or buttocks.<br />5. Hold the stretch for 10-30 seconds.<br />6. Slowly release and straighten your leg.<br />Pelvic tilt<br />Repeat these steps 5-10 times:<br />1. Lie on your back on a firm bed or the floor with your legs extended.<br />2. Bend your knees so they are pointing toward the ceiling and your feet are flat on the floor.<br />3. Tighten your lower abdominal muscles to press your lower back against the floor. This motion will tilt your pelvis so your tailbone points up toward the ceiling instead of pointing to your feet or the floor.<br />4. With gentle tension and even breathing, hold this position for 5-10 seconds.<br />Cat-cow<br />Repeat these steps until your lower back becomes more flexible:<br />1. Get into a hands-and-knees position on a firm surface. Keep your hands under your shoulders, and keep your knees under your hips. You may place padding under your knees for comfort.<br />2. Let your head hang down toward your chest. Contract your abdominal muscles and point your tailbone toward the floor so your lower back becomes rounded like the back of a cat.<br />3. Hold this position for 5 seconds.<br />4. Slowly lift your head, let your abdominal muscles relax and point your tailbone up toward the ceiling so your back forms a sagging arch like the back of a cow.<br />5. Hold this position for 5 seconds. <br />Press-ups<br />Repeat these steps 5-10 times:<br />1. Lie on your abdomen (face-down) on the floor.<br />2. Place your palms near your head, about shoulder-width apart.<br />3. Keeping your back as relaxed as possible and keeping your hips on the floor, slowly straighten your arms to raise the top half of your body and lift your shoulders. Do not use your back muscles to raise your upper torso. You may adjust the placement of your hands to make yourself more comfortable.<br />4. Hold this position for 5 seconds while you keep your back relaxed.<br />5. Slowly return to lying flat on the floor. <br />Bridges<br />Repeat these steps 10 times:<br />1. Lie on your back on a firm surface.<br />2. Bend your knees so they are pointing toward the ceiling and your feet are flat on the floor. Your arms should be flat at your sides, next to your body.<br />3. Tighten your buttocks muscles and lift your buttocks off the floor until your waist is at almost the same height as your knees. You should feel the muscles working in your buttocks and the back of your thighs. If you do not feel these muscles, slide your feet 1-2 inches farther away from your buttocks.<br />4. Hold this position for 3-5 seconds.<br />5. Slowly lower your hips to the starting position, and allow your buttocks muscles to relax completely.<br />If this exercise is too easy, try doing it with your arms crossed over your chest. <br />Abdominal crunches<br />Repeat these steps 5-10 times:<br />1. Lie on your back on a firm bed or the floor with your legs extended.<br />2. Bend your knees so they are pointing toward the ceiling and your feet are flat on the floor.<br />3. Cross your arms over your chest.<br />4. Tip your chin slightly toward your chest without bending your neck.<br />5. Tighten your abdominal muscles and slowly raise your trunk (torso) high enough to lift your shoulder blades a tiny bit off the floor. Avoid raising your torso higher than that because it can put too much stress on your low back and does not help to strengthen your abdominal muscles.<br />6. Slowly return to your starting position.<br />Back lifts<br />Repeat these steps 5-10 times:<br />1. Lie on your abdomen (face-down) with your arms at your sides, and rest your forehead on the floor.<br />2. Tighten the muscles in your legs and your buttocks.<br />3. Slowly lift your chest off the floor while you keep your hips pressed to the floor. Keep the back of your head in line with the curve in your back. Your eyes should be looking at the floor.<br />4. Hold this position for 3-5 seconds.<br />5. Slowly return to your starting position.<br />Contact a health care provider if:<br />· Your back pain or discomfort gets much worse when you do an exercise.<br />· Your worsening back pain or discomfort does not lessen within 2 hours after you exercise.<br />If you have any of these problems, stop doing these exercises right away. Do not do them again unless your health care provider says that you can.<br />Get help right away if:<br />· You develop sudden, severe back pain. If this happens, stop doing the exercises right away. Do not do them again unless your health care provider says that you can.<br />This information is not intended to replace advice given to you by your health care provider. Make sure you discuss any questions you have with your health care provider.<br />Document Revised: 04/23/2020 Document Reviewed: 09/19/2019<br />Elsevier Patient Education © 2021 Elsevier Inc.<br /><br /><br />Potassium <br />Date Value Ref Range Status <br />06/10/2015 5.2 (High) 3.5 - 5.0 MMOL/L Final <br /><br /></span><br /><span style="">Electronically signed by Dr. Fazel at 03/22/2022 1:35 PM PDT</span><br /><br /></li></ul></li></ul>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0ET6BG" class="toggle" type="checkbox" /><label for="ID0ET6BG" class="lbl-toggle" data-loinc-code="10164-2">Progress Notes</label><div class="collapsible-content"><div class="content-inner"><ul style=""><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note30"><span><span style="">Formatting of this note is different from the original.</span><br />PHQ-2 Total Score (Scale: 0 to 3) 9/6/2013 <br />PHQ-2 Total Score 6 <br /><br />CSHS ONC PHQ9 1/19/2018 3/8/2019 7/19/2020 <br />In the last two weeks, how often have you had little interest or pleasure in doing things? 0 0 1 <br />In the last two weeks, how often have you been feeling down, depressed or hopeless? - 1 1 <br />In the last two weeks, how often have you had trouble falling asleep, staying asleep or sleeping too much? 0 - - <br />In the last two weeks, how often have you been feeling tired or having little energy? - - - <br />In the last two weeks, how often have you had poor appetite or been overeating? - - - <br />In the last two weeks, how often have you been feeling bad about yourself, or that you\'re a failure or have let yourself or family down? - - - <br />In the last two weeks, how often have you had trouble concentrating on things, such as reading the newspaper or watching television? - - - <br />In the last two weeks, how often have you been moving or speaking so slowly that other people could have noticed; Or, the opposite - being fidgety or restless that you have been moving around a lot more than usual? - - - <br />In the last two weeks, how often have you had thoughts that you would be better off dead or of hurting yourself in some way? - - - <br />PHQ-9 Score 0 1 2 <br /><br /></span><br /><span style="">Electronically signed by Dr. Masson at 07/19/2020 2:23 PM PDT</span><br /></span></li><li>Dr. Rao - 04/15/2019 9:30 AM PDT: <span id="Note29"><span><span style="">Formatting of this note might be different from the original.</span><br />Blood pressure 120/80, pulse 80, temperature 98.8 °F (37.1 °C), temperature source Oral. <br />General appearance: alert, cooperative, no distress, appears stated age<br />Head: Normocephalic, without obvious abnormality, atraumatic<br />Eyes: conjunctivae/corneas clear. PERRL, EOM\'s intact. Fundi benign<br />Ears: normal TM\'s and external ear canals AU<br />Nose: Nares normal. Septum midline. Mucosa normal. No drainage or sinus tenderness.<br />Neck: supple, symmetrical, trachea midline, no adenopathy, thyroid: not enlarged, symmetric, no tenderness/mass/nodules, no carotid bruit, and no JVD<br />Lungs: clear to auscultation bilaterally<br />Heart: regular rate and rhythm, S1, S2 normal, no murmur, click, rub or gallop , no edema<br />Abdomen: soft, non-tender. Bowel sounds normal. No masses, no organomegaly<br />Extremities: extremities normal, atraumatic, no cyanosis or edema<br />Skin: Skin color, texture, turgor normal. No rashes or lesions<br />Neurologic: Grossly normal, no inattention, alert and oriented x3<br /><br /></span><br /><span style="">Electronically signed by Dr. Rao at 08/03/2021 5:11 PM PDT</span><br /></span></li><li>Roma Yogesh Gianchandani - 04/15/2019 9:30 AM PDT: <span id="Note28"><span><span style="">Formatting of this note might be different from the original.</span><br />This is a test of dictating later this is a test of dictating later this is a test of dictating later<br /><br />No results found for: HGBA1C <br />.uma<br /><br /></span><br /><span style="">Electronically signed by Roma Yogesh Gianchandani at 01/21/2022 2:37 PM PST</span><br /></span></li><li>Dr. Merchant - 04/15/2019 9:30 AM PDT: <span id="Note27"><span><span style="">Formatting of this note is different from the original.</span><br /><span style="">Images from the original note were not included.</span><br /><br /><br /><br /> Hematology and Cellular Therapy<br /><br />Patient Information <br /><br />Patient: AmbulatorySeniorF Xxxcshs<br />DOB: 1/1/1947<br />MRN: 200270896<br />Date of Service: 4/15/2019<br /><br />History of Present Illness <br /><br />CC: <br />Referring Provider: <br /><br />AmbulatorySeniorF Xxxcshs is a 75 year old woman <br /><br />Subjective History: fever<br /><br />Review of Systems:<br />A 14-point review of systems was performed with pertinent positives/negatives noted in the interval history, all others negative.<br /><br />Hematologic History:<br /><br />Patient Active Problem List <br /> Diagnosis Date Noted <br />• Rheumatoid arthritis, seropositive (HCC) 08/30/2021 <br />• COVID-19 virus infection 04/13/2020 <br />• Sucked into jet engine 10/25/2019 <br />• Moral distress 11/28/2018 <br /> Overview Note: <br /> https://onlinelibrary.wiley.com/doi/pdf/10.1111/j.2044-8341.1926.tb00623.x<br /><br />• Sucked into jet engine 05/06/2017 <br /> Overview Note: <br /> https://www.youtube.com/watch?v=2Aldwlro4DA</CITE><br /><br />• Spacecraft collision injuring occupant 05/06/2017 <br /> Overview Note: <br /> Fell a really long way <br /><br />• Diabetes mellitus type 2, noninsulin dependent (HCC) 06/09/2016 <br /><br />Past Medical History: <br />Diagnosis Date <br />• Abnormal Pap smear of cervix <br />• Anxiety <br />• Breast asymmetry 11/05/2017 <br /> testing <br />• Depressive disorder, not elsewhere classified <br />• ERRONEOUS ENCOUNTER--DISREGARD <br />• Family history of diabetes mellitus <br />• Frail elderly <br />• Headache(784.0) <br />• Heelies colliding with stationary object 5/6/2017 <br />• History of anemia <br />• History of bilateral breast implants <br />• Known health problems: none <br />• Known health problems: none <br />• NO SIGNIFICANT MEDICAL PROBLEMS <br />• NO SIGNIFICANT MEDICAL PROBLEMS <br />• Pneumonia 4/18/2010 <br />• Rash of back <br />• Sleep apnea <br />• Type 2 diabetes mellitus with hyperosmolarity without coma (HCC) 6/9/2016 <br /><br />Past Surgical History: <br />Procedure Laterality Date <br />• HX COLOSTOMY CLOSURE <br />• HX LOW ANTERIOR RESECTION <br />• HX THYROID NODULE RESECTION <br />• HX THYROIDECTOMY <br />• HX TONSILLECTOMY <br />• PAST SURGICAL HISTORY - NONE REPORTED <br />• PAST SURGICAL HISTORY - NONE REPORTED <br />• PR CESAREAN DELIVERY ONLY <br />• PR LAP GASTRIC BYPASS/ROUX-EN-Y <br />• PR REMOVAL COLON/PROCTEC/ ILEOANAL ANAST <br />• PR REMV STOMACH,PART,DISTAL,GASTRODUOD <br />• WOUND OSTOMY EVAL AND TREAT <br /><br />Social History <br /><br />Tobacco Use <br />• Smoking status: Former Smoker <br /> Packs/day: 0.50 <br /> Types: Cigarettes <br /> Start date: 1999 <br /> Quit date: 06/2010 <br /> Years since quitting: 11.7 <br />• Smokeless tobacco: Not on file <br />Substance Use Topics <br />• Alcohol use: Yes <br /> Alcohol/week: 3.0 standard drinks <br /> Types: 3 Shots of liquor per week <br />• Drug use: Yes <br /> Types: Marijuana <br /><br />Family History <br />Problem Relation Age of Onset <br />• Frailty Mother <br />• Tuberculosis Brother <br />• Hypertension Paternal Aunt <br />• Prostate Cancer Paternal Aunt <br />• Colon Polyps Paternal Grandmother <br />• Breast Cancer Paternal Grandmother <br />• Diabetes Maternal Aunt <br />• Ovarian Cancer Paternal Uncle <br />• Heart Disease Other <br /> fathers side <br />• Coronary Artery Disease Other <br /> mothers side <br />• Obesity Other <br />• Thoracic Aneurysm Other <br />• Diverticulosis Other <br />• Degenerative Disc Disease Other <br />• Carotid Stenosis Other <br />• Other Family History Maternal Grandmother <br /> Fraility <br />• History of Fragility Fracture Sister <br /><br /><br />Medications <br /><br />Current Outpatient Medications <br />Medication Sig <br />• ibuprofen (MOTRIN) 600 mg tablet Take 600 mg by mouth 3 times daily. Take with food. <br />• PREDNISONE, BULK, MISC <br />• metFORMIN (GLUCOPHAGE) 500 mg tablet <br />• acetaminophen (TYLENOL) 325 mg oral tablet Take 1 tablet by mouth every 4 hours as needed. Do NOT exceed 3000 mg of acetaminophen from all sources per 24 hours. (Patient not taking: Reported on 11/5/2020) <br />• atorvastatin (LIPITOR) 10 mg oral tablet Take 1 tablet by mouth daily. <br />• gabapentin (NEURONTIN) 100 mg capsule Take 1 capsule by mouth nightly. May increase to three times at night as necessary and tolerated <br />• naproxen (NAPROSYN) 500 mg oral tablet Take 1 tablet by mouth 2 times daily as needed. Take with food. (Patient taking differently: Take 500 mg by mouth as needed. Take with food.) <br /><br />Objective <br /><br />Vitals: <br /> 10/21/19 1530 <br />BP: 120/80 <br />Pulse: 80 <br />Temp: 98.8 °F (37.1 °C) <br />TempSrc: Oral <br /><br />ECOG Score: <br /><br />Physical Exam:<br />Constitutional: Oriented to person, place, and time. Appears well-developed and well-nourished. <br />Head: Normocephalic, atraumatic, no visible abnormalities<br />Nose: Nares normal. Septum midline. Mucosa normal. No drainage.<br />Mouth/Throat: No oropharyngeal exudate or mucositis. <br />Eyes: EOM are normal. No scleral icterus. <br />Neck: Normal range of motion. No tracheal deviation present. <br />Cardiovascular: Normal rate and regular rhythm. No murmurs, rubs, or gallops.<br />Pulmonary: Breath sounds normal. No respiratory distress. No wheezing, rales, or rhonchi.<br />Abdominal: Soft and non-distended. Bowel sounds are normal. <br />Musculoskeletal: Normal range of motion. <br />Skin: Skin color, texture, turgor normal. No rashes or lesions<br />Extremities: No cyanosis, clubbing, or edema<br />Neurological: No focal neurologic deficits. Strength intact in all extremities<br />Psychiatric: Normal mood and affect. <br />Lymph: No palpable cervical, supraclavicular, axillary, or inguinal lymphadenopathy<br /><br />Laboratory Results <br /><br />No results found for: WBC, HGB, HCT, MCV, RDW, PLT, POLY, LYMPH, MONOS, EOS, BASO, ANC, ALC, MONOSABS, EOSABS, BASOABS, RBCMORPH, DIFFTYPE <br />Lab Results <br />Component Value Date <br /> Glucose 67 04/22/2020 <br /> Creatinine 2.8 (High) 06/10/2015 <br /> Urea Nitrogen 30 (High) 06/10/2015 <br /> Sodium 139 06/10/2015 <br /> Potassium 5.2 (High) 06/10/2015 <br /> Chloride 104 06/10/2015 <br /> Carbon Dioxide 6 (Low) 06/10/2015 <br /> ALT 50 (High) 06/10/2015 <br /> AST 76 (High) 06/10/2015 <br /> Alkaline Phosphatase 102 06/10/2015 <br /> Bilirubin, Total 1.9 (High) 06/10/2015 <br /> Total Protein 5.6 (Low) 06/10/2015 <br /> Albumin 3.5 06/10/2015 <br /> Calcium, Serum 4.6 (Low) 06/10/2015 <br /><br />Imaging Results <br /><br />Pathology <br /><br />Assessment and Plan <br /><br />Diagnoses and all orders for this visit:<br /><br />History of non-Hodgkin\'s lymphoma<br /><br />Chronic obstructive pulmonary disease, unspecified COPD type (HCC)<br /><br />Screening-pulmonary TB<br />- PPD TEST<br />- ECG<br /><br />Lower abdominal pain<br />- ECG<br />- PR ANOSCOPY DX W/COLLJ SPEC BR/WA SPX WHEN PRFRMD<br /><br />Pneumothorax, unspecified type<br /><br />Non-seasonal allergic rhinitis, unspecified trigger<br /><br /><br /><br />A total time of 44 minutes was spent on today\'s encounter which included the following: <br />Obtaining and/or reviewing separately obtained history<br />Performing a medically appropriate exam and/or evaluation <br />Counseling and educating a patient/family/caregiver as noted above <br />Referring and communicating with other healthcare professionals (not separately reported) <br />Independently interpreting results (not separately reported) and communicating results to the patient/family/caregiver<br /><br />Akil Abid Merchant, MD <br />3/7/2022<br />5:39 PM</span><br /><span style="">Electronically signed by Dr. Merchant at 03/07/2022 5:50 PM PST</span><br /></span></li><li>Alexis Rieber - 04/15/2019 9:30 AM PDT: <span id="Note26"><span><span style="">Formatting of this note might be different from the original.</span><br /><span style="">Images from the original note were not included.</span><br /><br />Physical Exam<br /><br />This is a very cute dog<br /><br />This dog is white cell then sa<br /><br />This is a 42-year-old patient with hypertension past medical 7</span><br /><span style="">Electronically signed by Alexis Rieber at 07/05/2022 1:57 PM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note25"><span><span style="">Formatting of this note might be different from the original.</span><br />Follow up Chronic Kidney Disease <br />Symptom symptoms one day daily <br /></span><br /><span style="">Electronically signed by Dr. Masson at 07/22/2022 11:08 AM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note24"><span><span style="">Formatting of this note might be different from the original.</span><br />In my canal I can dictate later that is not a good workflow if you doing<br /></span><br /><span style="">Electronically signed by Dr. Masson at 09/26/2022 10:59 AM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note23"><span><span style="">Formatting of this note might be different from the original.</span><br />Diagnoses and all orders for this visit:<br /><br />History of non-Hodgkin\'s lymphoma<br /><br />Chronic obstructive pulmonary disease, unspecified COPD type (HCC)<br /><br />Screening-pulmonary TB<br />- PPD TEST<br /><br />Lower abdominal pain<br /><br />Pneumothorax, unspecified type<br /><br />Non-seasonal allergic rhinitis, unspecified trigger<br /><br />Primary hypertension<br /><br />Ace inhibitor <br /><br /></span><br /><span style="">Electronically signed by Dr. Masson at 10/08/2022 6:20 PM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note22"><span><span style="">Formatting of this note might be different from the original.</span><br /><br />..lastim<br /><br />No results found for this or any previous visit from the past 365 days 10 hours.<br /><br /></span><br /><span style="">Electronically signed by Dr. Masson at 04/14/2023 5:33 PM PDT</span><br /></span></li></ul>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0E1LBI" class="toggle" type="checkbox" /><label for="ID0E1LBI" class="lbl-toggle" data-loinc-code="18776-5">Plan of Treatment</label><div class="collapsible-content"><div class="content-inner"><p>Not on file</p>documented as of this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EJMBI" class="toggle" type="checkbox" /><label for="ID0EJMBI" class="lbl-toggle" data-loinc-code="61146-7">Goals</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col width="30%" /><col width="10%" /><col width="15%" /><col width="20%" /><col width="12%" /><col width="13%" /></colgroup><thead><tr><th>Goal</th><th>Patient Goal Type</th><th>Associated Problems</th><th>Recent Progress</th><th>Patient-Stated?</th><th>Author</th></tr></thead><tbody><tr style=""><td><p id="goal1">Hemoglobin A1C <= 7.0</p></td><td>Result Component</td><td /><td /><td>No</td><td>Dr. Masson</td></tr><tr style=""><td><p id="goal2">Hemoglobin A1C <= 7.0</p></td><td>Result Component</td><td>Diabetes mellitus type 2, noninsulin dependent</td><td /><td>No</td><td>Jeff Oostmeyer</td></tr><tr style=""><td style="" colspan="6"><p style="">Note: </p><span id="goal2note"><span style="">Formatting of this note might be different from the original.</span><br />Test</span><br /></td></tr><tr style=""><td><p id="goal3">LDL CALC <= 100</p></td><td>Result Component</td><td>Diabetes mellitus type 2, noninsulin dependent</td><td /><td>No</td><td>Jeff Oostmeyer</td></tr><tr style=""><td style="" colspan="6"><p style="">Note: </p><span id="goal3note"><span style="">Formatting of this note might be different from the original.</span><br />Test</span><br /></td></tr></tbody></table></div>documented as of this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EQVBI" class="toggle" type="checkbox" /><label for="ID0EQVBI" class="lbl-toggle" data-loinc-code="30954-2">Results</label><div class="collapsible-content"><div class="content-inner"><ul style=""><li id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Procedure">PPD TEST - Final result (04/15/2019 9:32 AM PDT): <div class="data-table"><table width="100%"><colgroup><col width="20%" /><col width="12%" /><col width="8%" /><col width="20%" /><col span="2" width="10%" /><col width="20%" /></colgroup><thead><tr><th>Component</th><th>Value</th><th>Ref Range</th><th>Test Method</th><th>Analysis Time</th><th>Performed At</th><th>Pathologist Signature</th></tr></thead><tbody><tr ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1" style="" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1"><td ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Name" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Name">Induration PPD</td><td>10</td><td>0 - 10 mm</td><td /><td /><td /><td ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Signature" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Signature" /></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col span="5" width="20%" /></colgroup><thead><tr><th>Specimen (Source)</th><th>Anatomical Location / Laterality</th><th>Collection Method / Volume</th><th>Collection Time</th><th>Received Time</th></tr></thead><tbody><tr style=""><td ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Specimen" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Specimen" /><td /><td /><td>04/15/2019 9:32 AM PDT</td><td /></tr></tbody></table></div><div class="data-table"><table width="100%"><thead><tr><th>Narrative</th></tr></thead><tbody><tr><td style=""><p /></td></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col width="20%" /><col width="80%" /></colgroup><thead><tr><th>Authorizing Provider</th><th>Result Type</th></tr></thead><tbody><tr><td>Dr. Gray</td><td>IMMUNIZATION ORDERABLES</td></tr></tbody></table></div></li></ul>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0E36BI" class="toggle" type="checkbox" /><label for="ID0E36BI" class="lbl-toggle" data-loinc-code="51848-0">Visit Diagnoses</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col width="100%" /></colgroup><thead><tr><th>Diagnosis</th></tr></thead><tbody><tr ID="vdx3" style="" id="vdx3"><td><p><span id="vdx3Name">History of non-Hodgkin\'s lymphoma</span><span> - Primary</span></p></td></tr><tr ID="vdx4" style="" id="vdx4"><td><p><span id="vdx4Name">Chronic obstructive pulmonary disease, unspecified COPD type (HCC)</span></p></td></tr><tr ID="vdx5" style="" id="vdx5"><td><p><span id="vdx5Name">Screening-pulmonary TB</span></p></td></tr><tr ID="vdx6" style="" id="vdx6"><td><p><span id="vdx6Name">Lower abdominal pain</span></p></td></tr><tr ID="vdx7" style="" id="vdx7"><td><p><span id="vdx7Name">Pneumothorax, unspecified type</span></p></td></tr><tr ID="vdx8" style="" id="vdx8"><td><p><span id="vdx8Name">Non-seasonal allergic rhinitis, unspecified trigger</span></p></td></tr><tr ID="vdx9" style="" id="vdx9"><td><p><span id="vdx9Name">Primary hypertension</span></p></td></tr><tr ID="vdx10" style="" id="vdx10"><td><p><span id="vdx10Name">Coronary artery disease involving native heart without angina pectoris, unspecified vessel or lesion type</span></p></td></tr><tr ID="vdx11" style="" id="vdx11"><td><p><span id="vdx11Name">Chronic sinusitis, unspecified location</span></p></td></tr></tbody></table></div>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EWCCI" class="toggle" type="checkbox" /><label for="ID0EWCCI" class="lbl-toggle" data-loinc-code="85847-2">Care Teams</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%" ID="ct54" id="ct54"><colgroup><col span="3" width="25%" /><col width="13%" /><col width="12%" /></colgroup><thead><tr><th>Team Member</th><th>Relationship</th><th>Specialty</th><th>Start Date</th><th>End Date</th></tr></thead><tbody><tr style=""><td><p style="font-weight:bold;">Dr. Masson</p><p>NPI: 1326098302</p><p>310-248-7000 (Work)</p><p>310-248-7033 (Fax)</p></td><td>PCP - General</td><td>Family Medicine</td><td>3/15/18</td><td /></tr></tbody></table></div>documented as of this encounter</div></div></div><table class="header_table"><tbody><tr><td class="td_header_role_name"><span class="td_label"><b>Author:</b></span></td><td class="td_header_role_value">Epic - Version 10.3 - Epic - Version 10.3</td></tr><tr><td class="td_header_role_name"><span class="td_label" /></td><td class="td_header_role_value"><br /><br /></td></tr></tbody></table><table class="header_table"><tbody><tr><td class="td_header_role_name"><span class="td_label"><b>Legal Authenticator:</b></span></td><td class="td_header_role_value">Health Information Executive Director Cshs</td></tr><tr><td class="td_header_role_name"><span class="td_label" /></td><td class="td_header_role_value"><br /><br /></td></tr></tbody></table>Signed on May 29, 2023, 07:40:37</body></html>',Cwe="JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9UaXRsZSAoVW50aXRsZWQgZG9jdW1lbnQpCi9Qcm9kdWNlciAoU2tpYS9QREYgbTEyNSBHb29nbGUgRG9jcyBSZW5kZXJlcik+PgplbmRvYmoKMyAwIG9iago8PC9jYSAxCi9CTSAvTm9ybWFsPj4KZW5kb2JqCjUgMCBvYmoKPDwvRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDIwMT4+IHN0cmVhbQp4nI2OTWoDMQyF9zqFLhBFP5ZlQ8mi0Gad4hu0TaDQRdL7Q+wxmYEuSi1ji/fQpyfIvXbSn6iK799wBQpf1MffRcFRb0ecze0C+6Ph5QeGXySjsGe8fcIZTr8IoeN2Bi9SZ8xmYzw32L8mlER5nMB2BtlyUYpaJKxiG5CdGGmEJSvYPvCJ2eKA7QuCTHPNbn1mGqksRiFxEY6yGp7XiSLqmz5JL+3vTMZUncX/Ec0WYKUIz5x03aRzkzB5SRppC631keEEd14/VDIKZW5kc3RyZWFtCmVuZG9iagoyIDAgb2JqCjw8L1R5cGUgL1BhZ2UKL1Jlc291cmNlcyA8PC9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIgL0ltYWdlQyAvSW1hZ2VJXQovRXh0R1N0YXRlIDw8L0czIDMgMCBSPj4KL0ZvbnQgPDwvRjQgNCAwIFI+Pj4+Ci9NZWRpYUJveCBbMCAwIDYxMiA3OTJdCi9Db250ZW50cyA1IDAgUgovU3RydWN0UGFyZW50cyAwCi9QYXJlbnQgNiAwIFI+PgplbmRvYmoKNiAwIG9iago8PC9UeXBlIC9QYWdlcwovQ291bnQgMQovS2lkcyBbMiAwIFJdPj4KZW5kb2JqCjcgMCBvYmoKPDwvVHlwZSAvQ2F0YWxvZwovUGFnZXMgNiAwIFIKL1ZpZXdlclByZWZlcmVuY2VzIDw8L1R5cGUgL1ZpZXdlclByZWZlcmVuY2VzCi9EaXNwbGF5RG9jVGl0bGUgdHJ1ZT4+Pj4KZW5kb2JqCjggMCBvYmoKPDwvTGVuZ3RoMSAxNzk0OAovRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDg3MzY+PiBzdHJlYW0KeJztegl4VEXW9qm6vaXTne6EbJ100rfTSQfSYUuAsETS2QCN7IsJJpIAkbDJElRQlDAjChFFcRsZR9zFBe0sYhN1YEQddxh13AVEVJwRQUdxJfd7q7pD0qLf5F++5/99nqnKeetU1alTVeeeOre6O8SIqA9AR4PGlpWPYQvZHCKejNaRYydNnNo0+E9XESl21K8YO3V6ifnPxo1ELID6oIlTB+atHL7jKORFvXZG2fjKSZsXfEM0ZD1R7I1zFtctZQe4C/3T0F8956IV6p3Ot/5JZPgcNO38pfMWv7yqaguR1Y/6BfPqGpdSMkVBfyHk7fMWrTr/vsoz3ibqi/VYLmiYu3jlnnXfPY8FYz7Ttob6urkH45+DPnYQ8sMa0BCXH+VGHWukzIbFK1ZmbVKeJtKLNdcuWjKnrmhi4VTs50b0ty6uW7lU32ZtQt/ZqKsX1C2uT6od/AGMMQ5tZUuXNK7Qcuhm8ItE/9Ll9Uuz3hy/i8hZSRT9Z7QpZCJOscQ0DbywZSV9RYX0JzKi3U4DaQa0PQxZPeoKyaRlC52/kDDeOLpzApXa6YdHf7jELlsiUqVsMdMAZH3d8rrZpM5ZtXwRqfOW1y8ktaF+9nJSF9WtuIDUbp2kd2w58PDDY2fZCr8xpZpk810fZeeI8qVJo3b88OjJeXYyWVCNOjWjKC1hnmM3obZsZEb9kBnlIzMqQGY0Dplhr+eEx3NpG6L4sFXi4V+wKcVIexmojMbQJJpG9bQClqMe9UZN0z7qzqdZQFHWs+tgTZN+iz4fS0oNlcrf6HweZ9LzaIOOi6Sjn1lv/MQJE8mPmVboX++czPKNo1mrXzw4zK/z6p8QTxirDNm3hKpJkZbNDVlW2lTsQjw/DVK8B8968FjKwvrlkO2J4bUIOQ4LMEkWCq0xTmooQM84LY1mgIgS/q/m1+l1NuIX8nuhzKv/XVbqfj3rf2cokAY20kzxtHU4v7SAmsI8gzUvCvMcz78hzCt4Fn3DvK6HjJ5SIBXiDeCIimk5zac6WkTj4SEz4CPLqREtS0h4+VCchME0CP3jZcsSWkGraCmkVDqTFqN9HmQvAKrUH9StTaUpkJpHF4KvQ2tkrVvuAUjmYYbByCpW0CB1nz5bKWrLwQusQ3tohQPknIvC883HDA3oawzP3ih3cxFwLg0wnObs//8k/V/pdlHqPqJtvZKfEZLvShg36P90DbpGqvjfGkdUxEdQpr6DHKAU/f3k0HnxpiHtU9ARUXbO146IflHyf2BQMEyE/W5n82k77aKn2XGMepR2Ujs9T0mIJbfRarqRroKnzkTLBjzTKfDgMrqRObR2RP874cl30iuQPYcupw5KZMnaZ7SG1imvY9Q6slIGvGMSPOUadrZ2IaLOAd3vEQvOhucsZU1apXattlm7h+6lncrz2kmKxumYg/yK9oX+be19eHQ13US30gG2OeoxnKhzcO52Kn+CT21RanRMm6f9gBW46WKsQQeffYXt5j5or6dPWTJbrZRCy91aQHsGUk6qgW9uoQ42lI3lbn21Nl57hRIxx0povZVaaQdykJ6id5lFf1y7RztODsrFKVsDe7zKdiudJ9d2FomHDyv1oxHoWUJ/pr/SPuZhf+FL9BZ9nt6vv0R7AxFxME3Hau/HyE/Yt/xy5DXKc7oxWgnO/Dq6XlibnqUPWQobyCayGbwfX8JvV5YjcubKkzgXZ2kD/QHa9zMf28EtfK9yt+4h3Y+GtM6DWgyeiJf+iPfwX5gVO1VZI/sde5N9xEv5LP5Hfki5UfeA7jVjHXZ9HqLENfQQfcvi2HA2mZ3LGthqdhW7nt3KXmH72BFezKfxhfyY0qAsU57SlSBP1TXqfq+/Un+14UhnZecznX/r/FbL066kyfCHtVj9TfD+dvjJXnoH+QAdYnoWzWKQVeZm09mlyJeza9hdbBt7gLVjln3sEPuMfcW+YT9yBEpu4KnczTOQPXw5v5jfyG/je5H38c/590qSkqH4lKFKoVKlLMGqrlKuQ35M+VCXotur02DnPP3N+q36bfqH9E/rjxssxt+ZyPTyT3efzDm5v5M613fe3Nna2a59iLeDAz7lJBduLZMRt+oQu1fifnIv/Px1ZoHtUlgOG83OhmVmsQVsGVsJS17BtrB75dofYU/CSm+xY1izlTvlmgfwobyET0Q+j9fzZfw6vpm38zf5D4pRiVZsSoKSo4xVapR6ZYWySrlZCSgvKx8oh5QTyk/Ims6sc+kydF6dTzdWN0t3oe523ae6T/XV+pf0HxvMhsWGKw1Bw5fGYcbRxknGycYa4ybjDuMbplp45x56jB7vefbZQWWtUq48RtfyfJ2Dv8pfhT/PornKeA5P5dvYen4Za+eZ+pWGUXwUm0DHdV7Y+jm+lZ/go5TxrIJNpQV8cEibIV73IIpC3R46qnsSe3sVmlcaLOxyfsxgoVZcC0ZgzmeVQTqf8hK9qxxgRt2d9J7OzJLYUX6/Mgle8JRutL6S3Mpt9IiyjF1Gj/FyXDl+NG2EH09gDyIuTGN57DsFN0o+AV5UoHxEv6eF/G06inO8nm5hc3Xz6FrKZ6vpU7oPp6Kf/gJDjiGBvcDn65p5H9ZOXPcAdjeCZTJFH09XsBpli+EYfwdvt706M+1XHsbq9/JHlPG64/oprAEn4DK6kpZpa2mVvlL3GptHCptBWbqDiG6rlTydG+UaRJVqxLQdON0diAPFyni0JMNzzoZfTEeE2IL8B8QJHTxoPs74OYhir1K7YRoP0jx9DEPUQTR+qXMKzdTuo1u1eXSBtpn6Ix5cpa2Gxm30MW2ibWxd56V4j6bj5OxnZ+vH8L36MVp/3szf4VP5zZHPF9bOYsn0D+RHUBmNe1yz7i2aSkXaRu3v8O6+iLC30mw6iw5jl19ghnHKbsrvnMBbtDHKUuz3AE3W7tdczEwN2iKaSE/SvUY91Rl9eMYB9hr2eynV8ynaCqW+cz7ssAlW8MNaFyL+bPCXTp9W7C8afUbhqJEjhhcMHZKfN3jQwAH9c305/fpme7MyPRlu1ZWe5kxNcSQnJSbE94mLtdtirJZoc5TJaNDrFM4ot9wzplYNeGsDOq9n3Lj+ou6pQ0Ndj4bagIqmMZEyAbVWiqmRkn5Inv8zSX9I0n9KktnVQirsn6uWe9TAK2UeNchmTq4Ef02Zp0oNHJX8eMlfJ3kreLcbA9Ty5IYyNcBq1fLAmIsamstry6CuJdpc6imtN/fPpRZzNNhocIEkz9IWljSaSYYnlY9swQ3YikUFUjxl5QGHp0ysIKBkldfNDUyaXFlelup2V/XPDbDSOZ7ZAfKUBGw+KUKlcpqAoTRglNOo88Vu6Gq1JXd388agnWbX+ixzPXPrqisDSl2VmCPWh3nLAkmXHE7urkJ5XGnlVT17U5Xm8uT5qqg2N1+lBu6YXNmz1y2wqgo6MJZnjaltHoOpN8KIFVNVzMbXVVUG2DpMqYqdiF2F9lfvKRcttQvUQJSnxNPQvKAWjyalOUBTVrlbU1L8O7WDlFKuNk+r9LgDRameqroyZ0s8NU9Z1ebwq47Inv65LfbYkGFbYmxhxmLtydSf6pOcFBdcxZRTlmViRZ4z4RABdY6KlVR6sKfhAuqHU/Oc4RBDqmIYFZiLJzI/EFVa22wfKdrF+IA+y+5Rm78heIDn6OeRLXXhFkOW/RsSrPCTU66G/i4+4PMFcnKEixhL8UyxxtGyPrR/7kVB7vEstasoYD6aBNvWVY0cCPO73eIBXx3002xUAk2TK0N1lWantpJ/oK8qwGtFz+6unoTpoqepq+fU8FoPPLld3rgTAibvqT+bPbFPecPIAEv8b7rrQ/0VUz0Vk2dWquXNtWHbVkyLqIX6h5/qC3OBPqWVSioPczxVkb1wyupTwqJSaQnosvBnkE49N2g0wStlC1PHBOy140JYZXa7ezkoqB0Xo2TRPSy8zMBIX2R9VEQ9YnmWZgULxquyYtrM5mZzRB9cLTThmeECHk/TKt1qaYCm42Rm4S+o7R4uqCo14IfJSoUA/C/UFK5GCKaG+Sok4Z39c8cg0DU3j/GoY5prm+uCWtNsj2r3NO/kT/Onm5eW13Y5TlDruDo1MGZjFWzVwEbiUHAqafGw9ZNb/Gz91JmVO+345L9+WmUrZ7y0tqSqJRN9lTtVIr9s5aJVNIqKKipUwbDJVm6S8qk7/URNslcnG2R9TpCRbDN1tTGaE+ShNntXG0ebLtTml20iiRhTOq2yp/fII1nVX77wxHdz1dEmU+8+/BhxE+5KhjBFpMgGg0JkiYrqne6o8PdCIpnkXKdNHlGDbqvZ3Fvdph78v9eND3m26Oje6Y6m7g2aw/ojUqRtTdBtt1h+LvTLyULdG4z+Jd2RDUJ3rNX6P6a7T0xM73THUPcGrUR02nYjbWvWIzDa7b3TbaPuDcb8ku7Ihmi4ZHJcXO90x0J7V7KH9UekSNta4Dap8fG90x0P7d3zhPRHJFtELQZuk5aY2DvdCdS9wT5hikiRk9mgW01O7p3uJOreYMIv6Y6NqNnhNm6Ho3e6k3voTgzr/290x0J3ltPZO92pWHlXEstJ+rlA5HOLw2nIUdXe6U7Hp9yuJJaT8nOByMni4ZIDPJ7e6XZT9wZdYf0RKXKyJLhkntfbO92ZUmPXPNSjFk6Rkzng/8P69eud7mypsWse6lELp/SIWircfWRubu9051C38bLD+iOSGlFLg7uX5uX1Tvcg6t6geCeett2siFoG/L9i+PDe6R5GA07xeWH9ESknouaF/08dPbp3ugsp/xQvvjMf8nOBARG1HLhkdXl573SXUPcGzwCN+LlAfkRtAFxybkUvv04dJzWGUinotO1G2jYPLrmTpil927zJrn1PKv3oIIgr/Vp9aa6dSraS1jrK5Q8qnra4hDxbcX9Fxd1ooEQVuAT0KGiXIn6PmaWko90OXANqAj0K2gXaB8KbAih6VdAS0FbQQdGjpCnOVtVlL85WHBjrwF3LpiTRMZAGUsgFHAiaCJoF2gTaCjJIOdGyBLQGtAt0XPb4laTWzflYe1Lr1bJoW7AoT1brQtXqGlltO6cqVI6fHCrLzgyJjQyJDR4Sah5QEiqzc0NlXFZekyjN1rzdxYlKIjaZiIUvBTL+DNkYQwC4Q0mgAIgrhnCLX4lry/Tmbd2l6IgpXGE0l1zaboW1WmPzis1c48fwunHxL/jRUA8/2hYTm7e1+Cx+iB4F7QIp/BDyh/xDWsMPCpsDi0BbQbtAe0HHQAZ+EPkA8n6+n2z8AxoIKgLNAm0F7QIdAxn5B0A7f198jpIo+CIQ5+8D7fw9bOs9oI2/C+5d/i6W9nprwYi8nZLxDQwzrqwwk5QaZuIS84L8tdbv+8GjvHjS8KgnlAy4Zr6S0Zo12BVUklsL57uC/KM21ee6o3gQf4MCII6VvIGZ3yAVNAlUC1oKMoB7E9yb1AS6DnQHKACClwHtIJW/CHoZ9CYNAvlBk0Amvq8V0wT53lZvias4kb/K/4o3iou/wp+X5cv8OVm+xJ+V5Qso01G+yJ9rTXdRcTT6CWPsKO0oB6Jfz//Slhnn0opj+S7YzgUcCCoCTQTNAm0CGfguntE61xUHJU/Qi7gouHgrfSbL++guE/kXuPzeUjigKsA78gxwgK3qVi/3e2++FVUB3ms3gxPgvWIjOAHeS9aCE+BddBE4Ad65C8AJ8M6cBU6Ad+I0cIAgv/3xzGxXwcSFTC228YthpYthpYthpYtJxy8Wmb7XibX9sTUnBxbb4vf1y3E1dbCmJ1nTFNZ0F2uqZ02Xs6a1rKmQNZ3Hmnysycma0lmTnzU9wYbDFE3M3x5RHeFPZk0vsqbtrKmRNXlZUxZrymRNKivwB7m79cx8WZTLoq1YHDqUZ4xG9LFxNyzqhs+7ERN2AfeCNFnzQ0jNCAk70kWZ0ZZTFKoPGJm3pHgc34OBe/AY9tABkA4PaA/caA+U7IECG7AINAu0G3QMpIEMkM7AwjdJtAEHgopAs0BrQMdABrmcYyBOS8JLfFQubGB40RNFje9BFj8UuLnbn2Z32n32ccomJ7Ols4npWjovIHknjYs1xQaZdce31u++tVJUcRS/lm+iNDyI68Llptbv01xB9odW7xOu4gR2C6Xr4HVsBHlZFsrh1CjrQ8lpEuUQcvKHUOa1OmdgmK3Vm+vqYDFi1A7X987Drs+cQQ72iPMJ11tqUMdaXX9Hy0M7XG84N7heGBg0oeVJb5Ch6FCl6E7ncNf2F6XoWnRsaXVdLoodrsucY10LnbKjPtRxXiNqfptrinemaxz0lTlnu/yN0LnDVeQ8z1UYkhoqxuxwDcISfCE2B4vt55STetKlwukFQdbgzzXebKw0TjQOM+YZc41uo8uYZkw1xpviTHZTjMliMptMJoNJZ+ImMsUHtYN+n/jtPt4g/0nDoJM/7kvezkn+e4D8yZ8zE6ezKNBHqeAVU0tYRWD3HKqYrQZOTPUEmXnyzIDeU8ICcRVUMa0kMNxXETRqUwIFvoqAcdK5lS2MXVuF1gBfH2Q0rTLINNG0LlV8f7mTGItdd02qKPuuu6aqipITLypKLoobHTtiTNkvQG0Yfd0pOYJPC9xcMbUy8GBaVSBPMFpaVUXgBvEF5072FTteXraTfSmKqsqdymj2VfkU0a6MLquqqgiyGVKOVPYl5OAxX0o5E17MQo5UU3pIbktILgvjIZcpCshFRVGWlMuKipJyOibkWhozy8taMjOlTJJKjVKmMUntKfNiFmSysqRMYhO9KGVeTGwSMoHRUsTphEi6U4qwFHJKESdLkSIzukUGhkU2nBLZIGdSWLeMMyRjPdglYz0IGV9vU32Jz8faRlXNqRZfDtd6yutBtYGrL2pIDjTNVtWWOVXhb429tbPnNIiyrj5Q5akvC8zxlKkto6p/obtadI/ylLXgvjitsqXaX1/WOso/qtxTV1bVNnbSkIKIuTacmmvIpF9QNkkoGyLmGlvwC90FonusmKtAzFUg5hrrHyvnIunjkypbTFRSVVodKtt4tBn+WpvqripJtC8dLZ13lDv58tQO3Fa2UbSvKmDxlASsINHVv7h/sejCmRJdMeIXgHBX8uWj3KkdbFu4y47mWE8J+VZc2HghJZfPLwv9NSKhacWFwuAh9DX+WkJfecBfV9a4Ap8SAjlTKwJFk2dWthiNaK0VWwqM7GqLji4PartDjQPQOFI0KsopQdFWKNqiosKCpz//C8NlqTgFTfyJNuZPZyuosUoJpFdM4wgF08JftXbgLiVeD41V2GAj87HGLh3hZft8FKqT2HMXrbgwzIVtsSJchkZiSGOXSU4lYSzfKYutgEIRuUj8kK8X/8dlxEfDWHdsFkD8C9NPqrL7J7+efiRVt1v8r9ftkJyp7yAbpTGHP051sVKTMy2dMx5rT7eRKSmodbZbLCXTwXzVHh0tmRP+DIsVnFeNYi6/1cqnR6l2O9BsswGTZUtQ+9qfbbEYpkeluNLsMWKo3WzFMLtF6LOrTH5qEOMIKtvFUMmI0WB+wLSS+bZdaAHznR/jwdWkj6pO9tlPhCxQU3gSWBiu1hwVRi0qPFkoaPCg0lX+YUqqEfFfjzeAzuBITknmhmizxWw1K4aExPjEPomKIVVJcrO4GECyyelmieZYN54P8/lykNaymvxYd15SYlJiXEI8j+GeLHfesIJhw4YO8WZ7Pe7b2fcPzby8akXjhEuuf2VdZwsbcf29g8vH37JowvbOl/UdCWlnz+7c+8z9nZ0P1OVtHza4/LP7Pvk2R3wy2kakWwfbR9Fd/jMM+nSTaZORGY2k6IT9yWS8TeVqNOcp0booLmwWJa0YZRbGj/q39vNHSwNaoqOl9Tq7zHi8y4xmYcYJ9q99XYYcLy05wX6iZvxhKhIGjBsxsKbQLgwJEyS4JW1TPvjpYx44OUnfsb1z5PaT54f9SHcSe7FSMh33p9fHLoznFfaK+HPt58broi3ptpgYSkoO7Suuy6fiunwKzHc7hG/EeU3CvWIFbzKLnZjsYv0m4U39xQZMKWoKw19KslXaxCptYpU2sf6v2uSH02zi6OlaXb41wb6sRjaND3lX2DLSwVgNhdwjncM53O5Y8Kc8g/fbPH7R5qovOl/oXM8uffL2mrMHX9G5Qd8RE1e/Y/ETnSdPPqywjWuqf59gFVeOQbBhB2xopP1+h0HuzijRYBR7NEpkQe17aTOs+nt/rOAMerF5o0R0/9guGHT/6I8VnJ6n6xThTga9LirIG9tUHdPhFvW4QWV8oMIU8I8xabmgdsQfLa1nCpvuq65TeKjLhj912ayzXZpMaDTtuLXngbR/LZzmcM0n9kJ7YchcMFR30IIfDRWexPt0pumaO1P11u3bf/gXvKhCO6JL142mBESj2/1JLnIm8OlKjb4manp0vbJQvySqPtqUENQOy6ljwfinCC7NKTA77h39D/EnUnSD40Y6BjuL48anFDsnx1U7pjjr4han1DlXGlYmnOAnku2UyGzWpKRJibWJS/FR3Wm7zn6HndvtulSn2Ugd/EFi2u52YQjYc7c/xm43TLczxm7q49RFIwAePy0khtw3yW8Nau9LS4H5Qq4SzD+kyaxCVVR2zpCAlVlTXKi1ZXmHiPLxdM+QQS7mSoR1/dVCUWK+3SSjZChummTczDT6M3OGuIxFuOsqRhlFjRbRY1Sjo/l0Y7J4VEanmN0YIzzc6BTzGhPFMoyO9CEFPY+7r8Ynz/thtC3z+U4s6+HgR0/WoKPoqDz+J5cVsti4ESPiRoS8HRJs2XKWZDB4MijWTvl5FBtvdCcm5ucNY27h+BkG5byO3C92ftZ5jMW//3cWw346Ym5dN2fjyXf5ZMvwGRtWP8BmJN3dzlxMYRbWt3N/5/d29dGOBnbTlaUN94mzUKQdUVrgCYOUFn+fJGmFZIkOiX0RD+QzyO5ivF1MVheT2cV4upiMLsbdxagirqwRnC4jPmNk1FlRZZkzMuozVkddG3VF5n19Hsp9WrFGJaUkJw2qyH0zSZ/Kp3Nuz2Pm5GpTdVS1uTq62lJtXWBaELXAvCB6gWWBtd3bnm3L9mZmZ/YbljnTXBU91zu37wrPisymzBvMt1k2970l96ZB95gfsNydfU/fNu+z3kS5F/GIMroYTxeT2cWE92vo2oKha1OGrm3iEAS1/f649BEzTdlZFrMuRfUm6KIHpKUE+YP+DEeucBGXo8gx0THL8ahjr8Ngc7gcSxwHHDqXY5ODO57C6U5AKJe+748X4nbmZ9zO9iFoMzvj4iy0xScOkWfCHhM7hLEB1WmL0niaM8GoE8sQg8B80i4OjGD8fWw2cM4B0S6E7EyHv0/ykDwxfKiIL47kEAqPdSQK73WoYqRDFaMcdrErh/Re0Ytn38HPJaP21Q4ZDjNzoOgx54h9OSxHzCnGgzkio75kxPgccfyECjBf7xBaclLkCtw4ibV5u/N4UV5THs8TxzuT5FLILgObGjI+l04idyS9xSXWpkovVDNtdrFlm1y7TRXCNvGW8Yol2GLE/DaLUGYziJltGQeIFdFERDrH4PBprFk2vutEirPns6NcPsFes8wXCqfLxJn8ujt2Hl2O44my6OgynE6c4mXLfYftJ2WBU4o/HNakEfLm48/un+7Rx+d6Y+1x9j52xZBhVVMpqq8xlen7A9LjUXXHeFIpw2O1mPqZU1nf7CizwadLJZc9LZXhEiRCeAhkAM/xrV27lk6tpmYZq1m+rKa7QQj1KZCxYOiQbG/2AD50iLgr5eclJiYZvSI2JMSLq5R8X4oQ4i1qtW24dPXKoVk3PHfrxOLhOddPveypmbEBS+P81QsSEwemXrHrlhnzn7ts7zvsDOfC5fVlZ3iSs/LOXDth7Kq+Lt+4S+clT6meUuBxpvUxZ+YXr66eufWch0UEydS+4jn6WymJuXaSJXzjiO66epi6GGMXY+hizMLNPd4hUcJLpoJpcjBiFquZKZRoj/LZzIZEpxJts2dQBrPGydgcJ/0hzixvNVkWphlN5VHltcalxibjdUYdGVXjHcaAcbdxn9FgFG8G8W4xCr8SnmIUL5KYGMl8J11OMjKci0uK8D2juKREC98zGmRUFw4uA3sHX0DJbFjL+T0uLuLJfH3YfjR8Nz78NV7DR8V7OBZhPDY/3/6CiOVh0awk8Ri8Q2M9Q/NjC2LzEzyx8eIJcnvK2YWzF+VecUXbY4/18fVNv3OrfXT9XXzORmZc1HnNxpM3jM8N/TymkMJE0isKwgSjZP3n0bvpO5NGJjJpnbjhRmknyUxm+X/Q0UALHslJ3BatwBiJNooB2skGjAX+RHEUC+xDccB46gNMAP5IiRQPTKIEYDLwB3JQEvgUcoBPpRSgU2IapQLTyal9Ty6JKqUB3eQCZpAK9AC/o0xyA7MoA+gFfkvZ5AH2hR99S/3IC8yR6KNs7QTlUl9gf4kDKAc4kHzAQdQfOBj4DeXRAGA+DQQOoUHa1zRU4jAaDCygfOBwGqL9i0ZIHElDgaMkFtIw4BlUABxNw4FFNEL7ivw0ElhMo4AlVAgsBX5JZXQGsJxGA8fg7XmcxpIfOI6KgWdSCfAsiRVUCjybyoDjaYx2jCZInEhjgZNoHHAynal9QVMkTqWzgNNwNztK02k8cIbEc2gCsJImap9TFU0CzgQepXNpMvhqmgqsoWnA8yTOounaP6mWZgDr6BzgbOA/aA5VAefSTGA9nQs8n6q1z2iexAaqAc6n87QjtIBqwS+UuIjqgItpNtovoDnAJRKX0lztU1pG9cDlNA/YKHEFNWif0IU0H3gRLQBeDPyYVtJC4CpaDLyELgBeKnE1LQFeRkuBl9My7TCtkdhEjcC1tAL4O7pQE//fexHwConr6GLtEF1JK4FX0SrgeroEuIEu1T6kZloNvJouQ8tG4Id0DV0OvJbWADfRWuB1wIN0Pf0OuJl+D7yBrtAO0I0Sb6J1wJvpKuAttB69fwAeoFtpA3ALNWv76Y90NfA22gj8k8Tb6VrgVtoEvIOuA94J/IDuouuBd9Nm4D10A/BeulF7n+6jm7T36H66GbiNbgE+IPFB+gPwIboV+DD9Ebhd4iN0G/BR+hMwQLcDW4DvUittBbbRHcB2ukt7hx6ju7W3aYfEx+keYJDuBe6k+4AdEp+gbcAn6QHtLXqKHgT+WeIuegi4mx4G/oW2A5+mR4B76FHtTXqGAsBnqUX7Oz0n8a/UCnye2rQ36AVqB75IjwFfoh3Al+lx4Cv4GPMGvUo7gXsl7qMO4N/oSeBr9JT2Or0OfI3eoD8D/067gG/Sbu1v9JbEt+lp4Du0B/guPQN8T+L79CzwA3oOuJ/+qu2jAxIP0gvaXvqQXgQeopeAH0k8TC8DP6ZXgJ/Qq8BPaZ/2Kh2R+Bn9DfgPek17hf5JrwM/l3iU3gB+QW9qL9Mxegt4XOKX9DbwK3oH+C96F/i1xG/ofe0lOkEfAL+l/cDvgC/S93QA+AMdBP5IHwJ/kniSPtJeoE46DNToY+B/Yvr/fEz/8jce0//Z65j+2a/E9M9Oi+lHfiWmf3paTP+kFzH98KmYvjwipn/0KzH9IxnTPzotph+SMf1Qj5h+SMb0QzKmH+oR0z88LaYflDH9oIzpB3+DMf2d/0cx/Y3/xPT/xPTfXEz/rd/Tf7sx/dfu6f+J6f+J6b8c05//7cf0/wK993M1CmVuZHN0cmVhbQplbmRvYmoKOSAwIG9iago8PC9UeXBlIC9Gb250RGVzY3JpcHRvcgovRm9udE5hbWUgL0FBQUFBQStBcmlhbE1UCi9GbGFncyA0Ci9Bc2NlbnQgOTA1LjI3MzQ0Ci9EZXNjZW50IC0yMTEuOTE0MDYKL1N0ZW1WIDQ1Ljg5ODQzOAovQ2FwSGVpZ2h0IDcxNS44MjAzMQovSXRhbGljQW5nbGUgMAovRm9udEJCb3ggWy02NjQuNTUwNzggLTMyNC43MDcwMyAyMDAwIDEwMDUuODU5MzhdCi9Gb250RmlsZTIgOCAwIFI+PgplbmRvYmoKMTAgMCBvYmoKPDwvVHlwZSAvRm9udAovRm9udERlc2NyaXB0b3IgOSAwIFIKL0Jhc2VGb250IC9BQUFBQUErQXJpYWxNVAovU3VidHlwZSAvQ0lERm9udFR5cGUyCi9DSURUb0dJRE1hcCAvSWRlbnRpdHkKL0NJRFN5c3RlbUluZm8gPDwvUmVnaXN0cnkgKEFkb2JlKQovT3JkZXJpbmcgKElkZW50aXR5KQovU3VwcGxlbWVudCAwPj4KL1cgWzAgWzc1MF0gMzkgWzcyMi4xNjc5NyAwIDYxMC44Mzk4NF0gNTEgWzY2Ni45OTIxOSAwIDAgMCA2MTAuODM5ODRdIDcyIFs1NTYuMTUyMzRdIDg3IFsyNzcuODMyMDNdXQovRFcgNTAwPj4KZW5kb2JqCjExIDAgb2JqCjw8L0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCAyNjU+PiBzdHJlYW0KeJxdkctqxDAMRff+Ci2niyHvTAdCoEwpZNEHTfsBjq2khsY2jrPI39ePNIUKbDjoXlmSk1v32ElhIXkzivVoYRSSG1zUahjCgJOQJMuBC2Z3CjebqSaJM/fbYnHu5KhI0wAk7y67WLPB6YGrAe9I8mo4GiEnOH3eesf9qvU3zigtpKRtgePoKj1T/UJnhCTYzh13eWG3s/P8KT42jZAHzmI3THFcNGVoqJyQNKmLFponFy1Byf/lq+gaRvZFjVfnF6dO07JsA10j1YGKIlCVRorKKirL+0B1FV7Z62W/1Y9mqjqaovdS7OqY9+35NR6zs9UYN3bYdZjXTyokHt+hlfYuf34A/WeHbwplbmRzdHJlYW0KZW5kb2JqCjQgMCBvYmoKPDwvVHlwZSAvRm9udAovU3VidHlwZSAvVHlwZTAKL0Jhc2VGb250IC9BQUFBQUErQXJpYWxNVAovRW5jb2RpbmcgL0lkZW50aXR5LUgKL0Rlc2NlbmRhbnRGb250cyBbMTAgMCBSXQovVG9Vbmljb2RlIDExIDAgUj4+CmVuZG9iagp4cmVmCjAgMTIKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDE1IDAwMDAwIG4gCjAwMDAwMDA0MTYgMDAwMDAgbiAKMDAwMDAwMDEwOCAwMDAwMCBuIAowMDAwMDEwNDk1IDAwMDAwIG4gCjAwMDAwMDAxNDUgMDAwMDAgbiAKMDAwMDAwMDYyNCAwMDAwMCBuIAowMDAwMDAwNjc5IDAwMDAwIG4gCjAwMDAwMDA3OTYgMDAwMDAgbiAKMDAwMDAwOTYxOCAwMDAwMCBuIAowMDAwMDA5ODUyIDAwMDAwIG4gCjAwMDAwMTAxNTkgMDAwMDAgbiAKdHJhaWxlcgo8PC9TaXplIDEyCi9Sb290IDcgMCBSCi9JbmZvIDEgMCBSPj4Kc3RhcnR4cmVmCjEwNjM0CiUlRU9GCg==";function Owe(e){let[a,n]=c(null);l((()=>{if("html"!=e.previewState)if("pdf"!=e.previewState){var t=new URLSearchParams({ReportID:e.reportId}).toString();b.invokeCustomApi("HealthAndWellnessApi.DownloadReport","GET",t,!0).then((function(e){n(e)}))}else n({Type:"ResearchKitConsentDocument",Summary:eo("summary"),Content:Cwe,ContentType:"application/pdf"});else n({Type:eo("subsequent-evaluation-note"),Summary:eo("summary"),Content:_we,ContentType:"text/html"})}),[]);let r="";return a&&(r=a.Type,a.Summary&&(r+=" • "+a.Summary)),t.createElement(Wa,{className:"mdhui-report-view",colorScheme:e.colorScheme},t.createElement(Ufe,{subtitle:r,variant:"compressedModal",showCloseButton:!0}),!a&&t.createElement(ZA,null),a&&t.createElement(Ewe,{type:a.Type,content:a.Content,contentType:a.ContentType}))}function Pwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0},t.createElement(iM,{order:1},e.title)),t.createElement(Qfe,{previewState:e.previewState,resources:e.resources,onViewResource:t=>{e.previewState||b.openEmbeddedUrl(t.url)},emptyText:e.emptyText,imageAlignment:e.resourceImageAlignment,buttonVariant:e.resourceButtonVariant,buttonText:e.resourceButtonText}))}function Twe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),t.createElement(jfe,{previewState:e.previewState,term:e.term,labObservationID:e.labObservationID,openLinksInNewWindow:e.openLinksInNewWindow}))}function Mwe(e){let[a,n]=t.useState([{key:"Dashboard"}]);function r(e){n([...a,e])}function i(e){r({key:"TermInformation",properties:{term:{TermFamily:e.TermFamily,TermNamespace:e.TermNamespace,TermCode:e.TermCode}}})}function o(){r({key:"ExternalAccounts"})}function s(){n(a.slice(0,a.length-1)),2==a.length&&b.triggerEvent({type:"applicationDidBecomeVisible"})}function l(a){return t.createElement(wge,{concept:a,onClick:()=>function(e){r("Reports"==e||"Immunizations"==e||"Procedures"==e?{key:"NewsFeed",properties:{feed:e}}:{key:e})}(a),previewState:"default"==e.previewState?"Default":void 0})}function c(s){if("Dashboard"==s.key)return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(yde,{previewState:"default"==e.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"],triggerWebExternalAccountSyncComplete:!0}),t.createElement(Jfe,{noTopMargin:!0},t.createElement(hde,{previewState:"default"==e.previewState?"externalAccountWithIssue":void 0,externalAccountCategories:["Provider","Health Plan"],onClick:()=>o()}),t.createElement(bde,{excludeDeviceManufacturers:!0,onClick:()=>o(),previewState:"default"==e.previewState?"Default":void 0}),t.createElement(Kge,{onViewTermInfo:e=>i(e),onClick:()=>{r({key:"NewsFeed",properties:{feed:"LabReports"}})},previewState:"default"==e.previewState?"ImportantLabs":void 0}),t.createElement(Uge,{previewState:"default"==e.previewState?"BloodTypeLabs":void 0,onClick:()=>function(){let e="https://medlineplus.gov/ency/article/003345.htm";b.getCurrentLanguage().toLowerCase().startsWith("es")&&(e="https://medlineplus.gov/spanish/ency/article/003345.htm"),window.open(e,"_blank")}()}),l("Medications"),l("Immunizations"),l("Reports"),l("Allergies"),l("Conditions"),l("Procedures")),t.createElement(eS,null,t.createElement(DV,{previewState:"default"==e.previewState?"enabled":void 0,variant:"small",hideWhenConnected:!0,onClick:()=>r({key:"ConnectEhr"})})));if("NewsFeed"==s.key)return t.createElement(lwe,{feed:s.properties?.feed,previewState:e.previewState,presentation:"Push",colorScheme:e.colorScheme,onEventSelected:e=>{n([...a,{key:"NewsFeedEventDetail",properties:{eventReference:e}}])},onReportSelected:e=>{r({key:"ReportDetail",properties:{reportID:e}})}});if("NewsFeedEventDetail"==s.key){let a,n=s.properties?.eventReference,i=n.feed;return e.previewState&&("Procedures"==i&&(a="ProcedureGroup"),"LabReports"==i&&(a="LabReport")),t.createElement(cwe,{feed:n.feed,presentation:"Push",pageDate:n.pageDate,pageId:n.pageId,onViewLabObservationTermInfo:e=>{r({key:"TermInformation",properties:{labObservationID:e}})},previewState:a})}return"TermInformation"==s.key?t.createElement(Twe,{presentation:"Modal",openLinksInNewWindow:!0,previewState:e.previewState,term:s.properties?.term,labObservationID:s.properties?.labObservationID}):"Medications"==s.key?t.createElement(fwe,{presentation:"Push",previewState:e.previewState,onViewTermInfo:e=>i(e)}):"Conditions"==s.key?t.createElement(ewe,{presentation:"Push",previewState:e.previewState,onViewTermInfo:e=>i(e)}):"Allergies"==s.key?t.createElement(Xbe,{presentation:"Push",previewState:e.previewState,onViewTermInfo:e=>i(e)}):"ReportDetail"==s.key?t.createElement(Owe,{previewState:"default"==e.previewState?"html":void 0,reportId:s.properties?.reportId}):"ExternalAccounts"==s.key?t.createElement(uwe,{presentation:"Push",excludeDeviceManufacturers:!0,colorScheme:e.colorScheme,previewState:e.previewState,connectExternalAccountOptions:e.connectExternalAccountOptions}):"ConnectEhr"==s.key?t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:!0}),t.createElement(Jfe,null,t.createElement(ffe,{providerCategories:["Provider","Health Plan"],connectExternalAccountOptions:e.connectExternalAccountOptions}))):void 0}return b.back=s,b.dismiss=s,t.createElement(t.Fragment,null,a.map(((e,n)=>t.createElement("div",{key:e.key,style:{display:n!=a.length-1?"none":void 0}},c(e)))))}w(".mdhui-report-view {\n height: calc(100dvh - 8px);\n display: flex;\n flex-direction: column;\n}\n\n.mdhui-report-view .mdhui-report-content {\n flex-grow: 1;\n}");export{Bq as AIAssistant,$a as Action,Ga as ActivityMeter,qq as AllergiesList,Xbe as AllergiesView,Gq as AppDownload,Yq as AppleHealthRecordsSync,sve as AsthmaActionPlanManager,Dve as AsthmaActionPlanView,Ive as AsthmaActivityView,cve as AsthmaAirQualities,Nve as AsthmaAirQualityView,uve as AsthmaAlertTakeoverNotice,dve as AsthmaAlertTakeoverTrigger,jve as AsthmaAlertTakeoverView,hve as AsthmaBiometrics,fve as AsthmaControlCalendar,wve as AsthmaControlStatusHeader,Fye as AsthmaDailyDataType,zve as AsthmaDayView,Rve as AsthmaHeartAndLungsView,Ave as AsthmaLogEntryDetails,Bve as AsthmaLogEntryEditorView,Cve as AsthmaLogEntryHeader,vye as AsthmaParticipant,Ove as AsthmaPostEnrollmentSurveyTrigger,Tve as AsthmaProviderReport,Hve as AsthmaProviderReportView,Mve as AsthmaRecommendedArticle,qve as AsthmaSleepView,GA as BasicBadge,Jq as BasicBadges,Xq as BasicPointsForBadges,Jbe as BlankView,KA as BloodPressureReading,aV as BloodPressureVisualization,YA as Button,QA as Calendar,XA as CalendarDay,eS as Card,tS as CardTitle,lbe as CelebrationStep,cbe as CelebrationStepContainer,tM as Chat,nV as ConditionsList,ewe as ConditionsView,ube as ConnectDeviceAccountStep,dbe as ConnectDeviceAccountStepContainer,AV as ConnectDevicesMenu,twe as ConnectDevicesView,TV as ConnectDexcom,DV as ConnectEhr,mbe as ConnectEhrStep,hbe as ConnectEhrStepContainer,awe as ConnectEhrView,IV as ConnectFitbit,NV as ConnectGarmin,jV as ConnectOura,xA as CustomFieldIntegerValueProvider,zue as DailyDataChart,Rue as DailyDataGoal,Li as DailyDataType,nM as DateRangeContext,rM as DateRangeCoordinator,aM as DateRangeNavigator,sM as DateRangeTitle,lM as DayTrackerSymbol,AA as DaysWithDataValueProvider,nwe as DeviceActivityView,Fue as DeviceDataMonthChart,Bue as DeviceDataMonthCharts,rwe as DeviceDataView,cM as DiscreteScale,uM as Divider,iwe as DocumentDetailView,Hue as DocumentLibraryPreview,owe as DocumentLibraryView,hM as DumbbellChart,ide as EhrNewsFeed,sde as EhrNewsFeedEventDetail,cwe as EhrNewsFeedEventDetailView,lwe as EhrNewsFeedView,hde as ExternalAccountConnectionAlert,gde as ExternalAccountList,yde as ExternalAccountsLoadingIndicator,bde as ExternalAccountsPreview,uwe as ExternalAccountsView,bM as Face,Ede as FitbitDevices,Cde as FitbitMonthCharts,dwe as FitbitView,Pde as GarminDevices,Tde as GarminMonthCharts,mwe as GarminView,Mde as GlucoseChart,Ide as GlucoseContext,Nde as GlucoseDayCoordinator,wM as GlucoseStats,gge as Goal,AM as Grid,pwe as HealthAndWellnessView,fge as HealthConnectPhrSync,wge as HealthPreviewSection,SM as Histogram,hwe as HomeView,pye as InboxCompletedListItem,Swe as InboxHistoryView,Cge as InboxItemList,Age as InboxItemListCoordinator,gye as InboxMessageListItem,Sge as InboxMessageView,fye as InboxResourceListItem,yye as InboxSurveyListItem,xwe as InboxView,Mge as InsightMatrix,Fge as IntradayHeartRateChart,Uge as LabResultsBloodType,Kge as LabResultsSummary,Yge as LatestBloodPressureReading,Wa as Layout,Ua as LayoutContext,ZA as LoadingIndicator,Ffe as MealButtons,Xge as MealContext,Jge as MealCoordinator,afe as MealEditor,gwe as MealEditorView,qfe as MealLog,nfe as MedicationsList,fwe as MedicationsView,ofe as MicroTrend,Vfe as MonthlyEventMatrix,cfe as MostRecentNotification,vA as MyDataHelpsTools,Ufe as NavigationBar,bwe as NewBadgeView,wwe as NewPointsView,LA as NotEnteredThreshold,Wfe as NotesInput,dfe as NotificationList,ywe as NotificationsView,Vq as PlatformSpecificContent,$fe as ProgressBar,Gfe as ProgressBarStep,Kfe as ProgressRing,mfe as ProjectHeader,hfe as ProjectSupport,ffe as ProviderSearch,kA as RandomIntegerValueProvider,yfe as RecentDailyDataBarChart,kfe as RelativeActivity,bfe as RelativeActivityDayCoordinator,xfe as RelativeActivityToday,Owe as ReportView,Zfe as Resource,Qfe as ResourceList,Pwe as ResourceListView,Afe as RestingHeartRateCalendar,Xfe as RotatingComponentCoordinator,Jfe as Section,eye as SegmentedControl,Dfe as SeverityCalendar,JA as ShinyOverlay,tye as SingleDataPoint,aye as SingleExternalAccount,nye as SingleNotification,iye as SingleSurveyTask,bA as SingleValueProvider,oye as SparkBarChart,sye as SparkRangeChart,Mwe as StandaloneHealthAndWellnessView,wA as StaticIntegerValueProvider,cye as StatusBarBackground,Kve as StepDetailText,sbe as StepImage,obe as StepImageIcon,Vve as StepLayout,Wve as StepMarkdown,Zve as StepNextButton,Gve as StepText,$ve as StepTitle,Ife as StressLevel,Efe as SurveyAnswerChart,Ofe as SurveyTaskList,vwe as SurveyTasksView,lye as Switch,Obe as SymptomSharkCalendar,$be as SymptomSharkCalendarView,Mbe as SymptomSharkLogEntry,Ube as SymptomSharkLogEntryEdit,Kbe as SymptomSharkLogEntryEditView,qbe as SymptomSharkLogEntryList,Vbe as SymptomSharkLogToday,Rbe as SymptomSharkMonthReport,jbe as SymptomSharkNotesTimeline,Tbe as SymptomSharkOverallExperienceChart,Wbe as SymptomSharkReportBuilder,Zbe as SymptomSharkReportBuilderView,Ybe as SymptomSharkSymptomDetailView,Cbe as SymptomSharkSymptomMatrix,zbe as SymptomSharkSymptomSeverityChart,Fbe as SymptomSharkSymptomSeveritySummary,bbe as SymptomSharkSymptomTreatmentFilters,Lbe as SymptomSharkSymptomTreatmentHistograms,_be as SymptomSharkVisualizationCoordinator,jfe as TermInformation,Twe as TermInformationView,Uq as TextBlock,jue as TimeSeriesChart,iM as Title,uye as TrackerItem,k as UnstyledButton,dye as ValueSelector,zfe as ViewDeviceActivity,Rfe as ViewEhr,mye as ViewHeader,hye as WeekCalendar,Lfe as WeeklyDayNavigator,pbe as YouTubeStep,gbe as YouTubeStepContainer,rve as asthmaDataService,rd as awardPointsAndBadges,lu as bloodPressureDataProvider,bl as capitalizeFirstLetterForLocale,ive as caregiverVariableLanguage,Yc as checkDailyDataAvailability,md as combinedIntradayHeartRateDataProvider,wye as computeAsthmaControlState,gd as computeBestFitGlucoseValue,fd as computeGlucoseReadingRanges,yd as computeGlucoseReadingRecentAverage,FA as computeThresholdDays,fbe as convertToSymptomSharkConfiguration,HA as createAllLibraryDocumentsLoader,dd as createAreaChartDefs,ud as createBarChartDefs,_A as createCustomFieldIntegerValueProvider,CA as createDaysWithDataValueProvider,RA as createIntegerInsightMatrixValueFormatter,VA as createLibraryDocumentSorter,cd as createLineChartDefs,NA as createMinMaxInsightMatrixValueEvaluator,zA as createMinutesToHoursInsightMatrixValueFormatter,DA as createNonZeroAverageValueInsightMatrixValueCalculator,IA as createPercentageOfDaysInsightMatrixValueCalculator,EA as createRandomIntegerValueProvider,jA as createShrinkThousandsInsightMatrixValueFormatter,qA as createSingleLibraryDocumentLoader,SA as createStaticIntegerValueProvider,vd as createThumbnailIfNecessary,Uc as dailyDataTypeDefinitions,bye as dateToAsthmaLogEntryIdentifier,Id as deleteStressLevel,fl as formatDateForLocale,UA as formatLibraryDocumentDateAndType,vl as formatMinutesForLocale,yl as formatNumberForLocale,_d as generateGlucose,OA as generateSampleData,Od as generateSleep,Cd as generateSteps,ru as get6MonthStart,Jc as getAllDailyDataTypes,Mye as getAsthmaAirQualityDescriptionText,xye as getAsthmaDataStatusColor,kye as getAsthmaDataStatusText,Cye as getAsthmaImpactTexts,Oye as getAsthmaImpacts,Sye as getAsthmaSymptomLevel,Aye as getAsthmaSymptomLevelText,Eye as getAsthmaSymptomTexts,_ye as getAsthmaSymptoms,Pye as getAsthmaTriggerTexts,Tye as getAsthmaTriggers,Ne as getColorFromAssortment,ao as getCountryCodeFromIso,eu as getDailyDataTypeDefinition,gl as getDateLocale,Ri as getDayKey,iu as getDefaultIntervalStart,pd as getGlucoseReadings,pl as getIntlLocale,to as getLanguageCodeFromIso,Sd as getMealImageUrls,xd as getMealToEdit,jd as getMealTypeDisplayText,bd as getMeals,nu as getMonthStart,Pd as getSleepMinutes,Td as getSteps,Md as getStressLevel,MA as getSurveyDataProvider,au as getWeekStart,Rye as isBloodOxygenLevelWithinRange,Dye as isDaytimeRestingHeartRateWithinRange,Iye as isNighttimeRestingHeartRateWithinRange,Nye as isRespiratoryRateWithinRange,zye as isSleepDisturbancesWithinRange,jye as isStepsWithinRange,TA as isSurveyDataType,eo as language,Wc as predictableRandomNumber,kd as prepareMealForEditing,Qc as queryDailyData,Xc as queryPreviewDailyData,ad as queryRelativeActivity,Gc as registerDailyDataProvider,Kc as registerDailyDataTypeDefinition,De as resolveColor,wd as saveMeals,Dd as saveStressLevel,kwe as showNewPoints,Cc as simpleAvailabilityCheck,ld as standardDailyDataTypes,id as sumActivityPoints,Ji as supportedLocales,hd as timestampSortAsc,BA as tryParseRegex,Ad as uploadMealImageFile,td as useInitializeView,Zq as useInterval};
|
|
193
|
+
*/!function(e,t){(function(){var a,n="Expected a function",r="__lodash_hash_undefined__",i="__lodash_placeholder__",o=16,s=32,l=64,c=128,u=256,d=1/0,m=9007199254740991,h=NaN,p=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",s],["partialRight",l],["rearg",u]],f="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",k="[object Function]",x="[object GeneratorFunction]",A="[object Map]",S="[object Number]",E="[object Object]",_="[object Promise]",C="[object RegExp]",O="[object Set]",P="[object String]",T="[object Symbol]",M="[object WeakMap]",D="[object ArrayBuffer]",I="[object DataView]",N="[object Float32Array]",j="[object Float64Array]",z="[object Int8Array]",R="[object Int16Array]",L="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp($.source),Z=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(ae.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Te="["+xe+"]",Me="["+Oe+"]",De="["+Ae+"]",Ie="\\d+",Ne="["+Se+"]",je="["+Ee+"]",ze="[^"+xe+Oe+Ie+Se+Ee+_e+"]",Re="\\ud83c[\\udffb-\\udfff]",Le="[^"+xe+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+_e+"]",qe="\\u200d",Ve="(?:"+je+"|"+ze+")",Ue="(?:"+He+"|"+ze+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+De+"|"+Re+")"+"?",Ke="["+Ce+"]?",Ze=Ke+Ge+("(?:"+qe+"(?:"+[Le,Fe,Be].join("|")+")"+Ke+Ge+")*"),Ye="(?:"+[Ne,Fe,Be].join("|")+")"+Ze,Qe="(?:"+[Le+De+"?",De,Fe,Be,Te].join("|")+")",Xe=RegExp(Pe,"g"),Je=RegExp(De,"g"),et=RegExp(Re+"(?="+Re+")|"+Qe+Ze,"g"),tt=RegExp([He+"?"+je+"+"+We+"(?="+[Me,He,"$"].join("|")+")",Ue+"+"+$e+"(?="+[Me,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+We,He+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),at=RegExp("["+qe+xe+Ae+Ce+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,ot={};ot[N]=ot[j]=ot[z]=ot[R]=ot[L]=ot[F]=ot[B]=ot[H]=ot[q]=!0,ot[f]=ot[y]=ot[D]=ot[v]=ot[I]=ot[b]=ot[w]=ot[k]=ot[A]=ot[S]=ot[E]=ot[C]=ot[O]=ot[P]=ot[M]=!1;var st={};st[f]=st[y]=st[D]=st[I]=st[v]=st[b]=st[N]=st[j]=st[z]=st[R]=st[L]=st[A]=st[S]=st[E]=st[C]=st[O]=st[P]=st[T]=st[F]=st[B]=st[H]=st[q]=!0,st[w]=st[k]=st[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof qt&&qt&&qt.Object===Object&&qt,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||mt||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&e&&!e.nodeType&&e,ft=gt&>.exports===pt,yt=ft&&dt.process,vt=function(){try{var e=gt&>.require&>.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,kt=vt&&vt.isMap,xt=vt&&vt.isRegExp,At=vt&&vt.isSet,St=vt&&vt.isTypedArray;function Et(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function _t(e,t,a,n){for(var r=-1,i=null==e?0:e.length;++r<i;){var o=e[r];t(n,o,a(o),e)}return n}function Ct(e,t){for(var a=-1,n=null==e?0:e.length;++a<n&&!1!==t(e[a],a,e););return e}function Ot(e,t){for(var a=null==e?0:e.length;a--&&!1!==t(e[a],a,e););return e}function Pt(e,t){for(var a=-1,n=null==e?0:e.length;++a<n;)if(!t(e[a],a,e))return!1;return!0}function Tt(e,t){for(var a=-1,n=null==e?0:e.length,r=0,i=[];++a<n;){var o=e[a];t(o,a,e)&&(i[r++]=o)}return i}function Mt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Dt(e,t,a){for(var n=-1,r=null==e?0:e.length;++n<r;)if(a(t,e[n]))return!0;return!1}function It(e,t){for(var a=-1,n=null==e?0:e.length,r=Array(n);++a<n;)r[a]=t(e[a],a,e);return r}function Nt(e,t){for(var a=-1,n=t.length,r=e.length;++a<n;)e[r+a]=t[a];return e}function jt(e,t,a,n){var r=-1,i=null==e?0:e.length;for(n&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}function zt(e,t,a,n){var r=null==e?0:e.length;for(n&&r&&(a=e[--r]);r--;)a=t(a,e[r],r,e);return a}function Rt(e,t){for(var a=-1,n=null==e?0:e.length;++a<n;)if(t(e[a],a,e))return!0;return!1}var Lt=$t("length");function Ft(e,t,a){var n;return a(e,(function(e,a,r){if(t(e,a,r))return n=a,!1})),n}function Bt(e,t,a,n){for(var r=e.length,i=a+(n?1:-1);n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,a){return t==t?function(e,t,a){var n=a-1,r=e.length;for(;++n<r;)if(e[n]===t)return n;return-1}(e,t,a):Bt(e,Ut,a)}function Vt(e,t,a,n){for(var r=a-1,i=e.length;++r<i;)if(n(e[r],t))return r;return-1}function Ut(e){return e!=e}function Wt(e,t){var a=null==e?0:e.length;return a?Zt(e,t)/a:h}function $t(e){return function(t){return null==t?a:t[e]}}function Gt(e){return function(t){return null==e?a:e[t]}}function Kt(e,t,a,n,r){return r(e,(function(e,r,i){a=n?(n=!1,e):t(a,e,r,i)})),a}function Zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Yt(e,t){for(var a=-1,n=Array(e);++a<e;)n[a]=t(a);return n}function Qt(e){return e?e.slice(0,pa(e)+1).replace(re,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return It(t,(function(t){return e[t]}))}function ea(e,t){return e.has(t)}function ta(e,t){for(var a=-1,n=e.length;++a<n&&Ht(t,e[a],0)>-1;);return a}function aa(e,t){for(var a=e.length;a--&&Ht(t,e[a],0)>-1;);return a}var na=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ra=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ia(e){return"\\"+lt[e]}function oa(e){return at.test(e)}function sa(e){var t=-1,a=Array(e.size);return e.forEach((function(e,n){a[++t]=[n,e]})),a}function la(e,t){return function(a){return e(t(a))}}function ca(e,t){for(var a=-1,n=e.length,r=0,o=[];++a<n;){var s=e[a];s!==t&&s!==i||(e[a]=i,o[r++]=a)}return o}function ua(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}function da(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=[e,e]})),a}function ma(e){return oa(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Lt(e)}function ha(e){return oa(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function pa(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ga=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var fa=function e(t){var ie=(t=null==t?ht:fa.defaults(ht.Object(),t,fa.pick(ht,rt))).Array,xe=t.Date,Ae=t.Error,Se=t.Function,Ee=t.Math,_e=t.Object,Ce=t.RegExp,Oe=t.String,Pe=t.TypeError,Te=ie.prototype,Me=Se.prototype,De=_e.prototype,Ie=t["__core-js_shared__"],Ne=Me.toString,je=De.hasOwnProperty,ze=0,Re=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=De.toString,Fe=Ne.call(_e),Be=ht._,He=Ce("^"+Ne.call(je).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=ft?t.Buffer:a,Ve=t.Symbol,Ue=t.Uint8Array,We=qe?qe.allocUnsafe:a,$e=la(_e.getPrototypeOf,_e),Ge=_e.create,Ke=De.propertyIsEnumerable,Ze=Te.splice,Ye=Ve?Ve.isConcatSpreadable:a,Qe=Ve?Ve.iterator:a,et=Ve?Ve.toStringTag:a,at=function(){try{var e=di(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=xe&&xe.now!==ht.Date.now&&xe.now,mt=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=Ee.ceil,gt=Ee.floor,yt=_e.getOwnPropertySymbols,vt=qe?qe.isBuffer:a,Lt=t.isFinite,qt=Te.join,Gt=la(_e.keys,_e),ya=Ee.max,va=Ee.min,ba=xe.now,wa=t.parseInt,ka=Ee.random,xa=Te.reverse,Aa=di(t,"DataView"),Sa=di(t,"Map"),Ea=di(t,"Promise"),_a=di(t,"Set"),Ca=di(t,"WeakMap"),Oa=di(_e,"create"),Pa=Ca&&new Ca,Ta={},Ma=Ri(Aa),Da=Ri(Sa),Ia=Ri(Ea),Na=Ri(_a),ja=Ri(Ca),za=Ve?Ve.prototype:a,Ra=za?za.valueOf:a,La=za?za.toString:a;function Fa(e){if(ts(e)&&!Uo(e)&&!(e instanceof Va)){if(e instanceof qa)return e;if(je.call(e,"__wrapped__"))return Li(e)}return new qa(e)}var Ba=function(){function e(){}return function(t){if(!es(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Ha(){}function qa(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Va(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Ua(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function Wa(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function $a(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}function Ga(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new $a;++t<a;)this.add(e[t])}function Ka(e){var t=this.__data__=new Wa(e);this.size=t.size}function Za(e,t){var a=Uo(e),n=!a&&Vo(e),r=!a&&!n&&Ko(e),i=!a&&!n&&!r&&cs(e),o=a||n||r||i,s=o?Yt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!je.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,l))||s.push(c);return s}function Ya(e){var t=e.length;return t?e[Kn(0,t-1)]:a}function Qa(e,t){return Ni(Pr(e),sn(t,0,e.length))}function Xa(e){return Ni(Pr(e))}function Ja(e,t,n){(n!==a&&!Bo(e[t],n)||n===a&&!(t in e))&&rn(e,t,n)}function en(e,t,n){var r=e[t];je.call(e,t)&&Bo(r,n)&&(n!==a||t in e)||rn(e,t,n)}function tn(e,t){for(var a=e.length;a--;)if(Bo(e[a][0],t))return a;return-1}function an(e,t,a,n){return mn(e,(function(e,r,i){t(n,e,a(e),i)})),n}function nn(e,t){return e&&Tr(t,Ms(t),e)}function rn(e,t,a){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function on(e,t){for(var n=-1,r=t.length,i=ie(r),o=null==e;++n<r;)i[n]=o?a:_s(e,t[n]);return i}function sn(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function ln(e,t,n,r,i,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!es(e))return e;var d=Uo(e);if(d){if(s=function(e){var t=e.length,a=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(a.index=e.index,a.input=e.input);return a}(e),!l)return Pr(e,s)}else{var m=pi(e),h=m==k||m==x;if(Ko(e))return Ar(e,l);if(m==E||m==f||h&&!i){if(s=c||h?{}:fi(e),!l)return c?function(e,t){return Tr(e,hi(e),t)}(e,function(e,t){return e&&Tr(t,Ds(t),e)}(s,e)):function(e,t){return Tr(e,mi(e),t)}(e,nn(s,e))}else{if(!st[m])return i?e:{};s=function(e,t,a){var n=e.constructor;switch(t){case D:return Sr(e);case v:case b:return new n(+e);case I:return function(e,t){var a=t?Sr(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case N:case j:case z:case R:case L:case F:case B:case H:case q:return Er(e,a);case A:return new n;case S:case P:return new n(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case T:return r=e,Ra?_e(Ra.call(r)):{}}var r}(e,m,l)}}o||(o=new Ka);var p=o.get(e);if(p)return p;o.set(e,s),os(e)?e.forEach((function(a){s.add(ln(a,t,n,a,e,o))})):as(e)&&e.forEach((function(a,r){s.set(r,ln(a,t,n,r,e,o))}));var g=d?a:(u?c?ri:ni:c?Ds:Ms)(e);return Ct(g||e,(function(a,r){g&&(a=e[r=a]),en(s,r,ln(a,t,n,r,e,o))})),s}function cn(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Pe(n);return Ti((function(){e.apply(a,r)}),t)}function dn(e,t,a,n){var r=-1,i=Mt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;a&&(t=It(t,Xt(a))),n?(i=Dt,o=!1):t.length>=200&&(i=ea,o=!1,t=new Ga(t));e:for(;++r<s;){var u=e[r],d=null==a?u:a(u);if(u=n||0!==u?u:0,o&&d==d){for(var m=c;m--;)if(t[m]===d)continue e;l.push(u)}else i(t,d,n)||l.push(u)}return l}Fa.templateSettings={escape:Y,evaluate:Q,interpolate:X,variable:"",imports:{_:Fa}},Fa.prototype=Ha.prototype,Fa.prototype.constructor=Fa,qa.prototype=Ba(Ha.prototype),qa.prototype.constructor=qa,Va.prototype=Ba(Ha.prototype),Va.prototype.constructor=Va,Ua.prototype.clear=function(){this.__data__=Oa?Oa(null):{},this.size=0},Ua.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ua.prototype.get=function(e){var t=this.__data__;if(Oa){var n=t[e];return n===r?a:n}return je.call(t,e)?t[e]:a},Ua.prototype.has=function(e){var t=this.__data__;return Oa?t[e]!==a:je.call(t,e)},Ua.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oa&&t===a?r:t,this},Wa.prototype.clear=function(){this.__data__=[],this.size=0},Wa.prototype.delete=function(e){var t=this.__data__,a=tn(t,e);return!(a<0)&&(a==t.length-1?t.pop():Ze.call(t,a,1),--this.size,!0)},Wa.prototype.get=function(e){var t=this.__data__,n=tn(t,e);return n<0?a:t[n][1]},Wa.prototype.has=function(e){return tn(this.__data__,e)>-1},Wa.prototype.set=function(e,t){var a=this.__data__,n=tn(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this},$a.prototype.clear=function(){this.size=0,this.__data__={hash:new Ua,map:new(Sa||Wa),string:new Ua}},$a.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},$a.prototype.get=function(e){return ci(this,e).get(e)},$a.prototype.has=function(e){return ci(this,e).has(e)},$a.prototype.set=function(e,t){var a=ci(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this},Ga.prototype.add=Ga.prototype.push=function(e){return this.__data__.set(e,r),this},Ga.prototype.has=function(e){return this.__data__.has(e)},Ka.prototype.clear=function(){this.__data__=new Wa,this.size=0},Ka.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},Ka.prototype.get=function(e){return this.__data__.get(e)},Ka.prototype.has=function(e){return this.__data__.has(e)},Ka.prototype.set=function(e,t){var a=this.__data__;if(a instanceof Wa){var n=a.__data__;if(!Sa||n.length<199)return n.push([e,t]),this.size=++a.size,this;a=this.__data__=new $a(n)}return a.set(e,t),this.size=a.size,this};var mn=Ir(wn),hn=Ir(kn,!0);function pn(e,t){var a=!0;return mn(e,(function(e,n,r){return a=!!t(e,n,r)})),a}function gn(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(l===a?s==s&&!ls(s):n(s,l)))var l=s,c=o}return c}function fn(e,t){var a=[];return mn(e,(function(e,n,r){t(e,n,r)&&a.push(e)})),a}function yn(e,t,a,n,r){var i=-1,o=e.length;for(a||(a=yi),r||(r=[]);++i<o;){var s=e[i];t>0&&a(s)?t>1?yn(s,t-1,a,n,r):Nt(r,s):n||(r[r.length]=s)}return r}var vn=Nr(),bn=Nr(!0);function wn(e,t){return e&&vn(e,t,Ms)}function kn(e,t){return e&&bn(e,t,Ms)}function xn(e,t){return Tt(t,(function(t){return Qo(e[t])}))}function An(e,t){for(var n=0,r=(t=br(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:a}function Sn(e,t,a){var n=t(e);return Uo(e)?n:Nt(n,a(e))}function En(e){return null==e?e===a?"[object Undefined]":"[object Null]":et&&et in _e(e)?function(e){var t=je.call(e,et),n=e[et];try{e[et]=a;var r=!0}catch(e){}var i=Le.call(e);r&&(t?e[et]=n:delete e[et]);return i}(e):function(e){return Le.call(e)}(e)}function _n(e,t){return e>t}function Cn(e,t){return null!=e&&je.call(e,t)}function On(e,t){return null!=e&&t in _e(e)}function Pn(e,t,n){for(var r=n?Dt:Mt,i=e[0].length,o=e.length,s=o,l=ie(o),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=It(d,Xt(t))),c=va(d.length,c),l[s]=!n&&(t||i>=120&&d.length>=120)?new Ga(s&&d):a}d=e[0];var m=-1,h=l[0];e:for(;++m<i&&u.length<c;){var p=d[m],g=t?t(p):p;if(p=n||0!==p?p:0,!(h?ea(h,g):r(u,g,n))){for(s=o;--s;){var f=l[s];if(!(f?ea(f,g):r(e[s],g,n)))continue e}h&&h.push(g),u.push(p)}}return u}function Tn(e,t,n){var r=null==(e=Ci(e,t=br(t,e)))?e:e[zi(Zi(t))];return null==r?a:Et(r,e,n)}function Mn(e){return ts(e)&&En(e)==f}function Dn(e,t,n,r,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var s=Uo(e),l=Uo(t),c=s?y:pi(e),u=l?y:pi(t),d=(c=c==f?E:c)==E,m=(u=u==f?E:u)==E,h=c==u;if(h&&Ko(e)){if(!Ko(t))return!1;s=!0,d=!1}if(h&&!d)return o||(o=new Ka),s||cs(e)?ti(e,t,n,r,i,o):function(e,t,a,n,r,i,o){switch(a){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case v:case b:case S:return Bo(+e,+t);case w:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case A:var s=sa;case O:var l=1&n;if(s||(s=ua),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=ti(s(e),s(t),n,r,i,o);return o.delete(e),u;case T:if(Ra)return Ra.call(e)==Ra.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var p=d&&je.call(e,"__wrapped__"),g=m&&je.call(t,"__wrapped__");if(p||g){var k=p?e.value():e,x=g?t.value():t;return o||(o=new Ka),i(k,x,n,r,o)}}if(!h)return!1;return o||(o=new Ka),function(e,t,n,r,i,o){var s=1&n,l=ni(e),c=l.length,u=ni(t),d=u.length;if(c!=d&&!s)return!1;var m=c;for(;m--;){var h=l[m];if(!(s?h in t:je.call(t,h)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var f=!0;o.set(e,t),o.set(t,e);var y=s;for(;++m<c;){var v=e[h=l[m]],b=t[h];if(r)var w=s?r(b,v,h,t,e,o):r(v,b,h,e,t,o);if(!(w===a?v===b||i(v,b,n,r,o):w)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var k=e.constructor,x=t.constructor;k==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof x&&x instanceof x||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o)}(e,t,n,r,Dn,i))}function In(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=_e(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===a&&!(c in e))return!1}else{var m=new Ka;if(r)var h=r(u,d,c,e,t,m);if(!(h===a?Dn(d,u,3,r,m):h))return!1}}return!0}function Nn(e){return!(!es(e)||(t=e,Re&&Re in t))&&(Qo(e)?He:fe).test(Ri(e));var t}function jn(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Uo(e)?Hn(e[0],e[1]):Bn(e):ml(e)}function zn(e){if(!Ai(e))return Gt(e);var t=[];for(var a in _e(e))je.call(e,a)&&"constructor"!=a&&t.push(a);return t}function Rn(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var a in _e(e))t.push(a);return t}(e);var t=Ai(e),a=[];for(var n in e)("constructor"!=n||!t&&je.call(e,n))&&a.push(n);return a}function Ln(e,t){return e<t}function Fn(e,t){var a=-1,n=$o(e)?ie(e.length):[];return mn(e,(function(e,r,i){n[++a]=t(e,r,i)})),n}function Bn(e){var t=ui(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(a){return a===e||In(a,e,t)}}function Hn(e,t){return wi(e)&&Si(t)?Ei(zi(e),t):function(n){var r=_s(n,e);return r===a&&r===t?Cs(n,e):Dn(t,r,3)}}function qn(e,t,n,r,i){e!==t&&vn(t,(function(o,s){if(i||(i=new Ka),es(o))!function(e,t,n,r,i,o,s){var l=Oi(e,n),c=Oi(t,n),u=s.get(c);if(u)return void Ja(e,n,u);var d=o?o(l,c,n+"",e,t,s):a,m=d===a;if(m){var h=Uo(c),p=!h&&Ko(c),g=!h&&!p&&cs(c);d=c,h||p||g?Uo(l)?d=l:Go(l)?d=Pr(l):p?(m=!1,d=Ar(c,!0)):g?(m=!1,d=Er(c,!0)):d=[]:rs(c)||Vo(c)?(d=l,Vo(l)?d=ys(l):es(l)&&!Qo(l)||(d=fi(c))):m=!1}m&&(s.set(c,d),i(d,c,r,o,s),s.delete(c));Ja(e,n,d)}(e,t,s,n,qn,r,i);else{var l=r?r(Oi(e,s),o,s+"",e,t,i):a;l===a&&(l=o),Ja(e,s,l)}}),Ds)}function Vn(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:a}function Un(e,t,a){t=t.length?It(t,(function(e){return Uo(e)?function(t){return An(t,1===e.length?e[0]:e)}:e})):[nl];var n=-1;t=It(t,Xt(li()));var r=Fn(e,(function(e,a,r){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var a=e.length;for(e.sort(t);a--;)e[a]=e[a].value;return e}(r,(function(e,t){return function(e,t,a){var n=-1,r=e.criteria,i=t.criteria,o=r.length,s=a.length;for(;++n<o;){var l=_r(r[n],i[n]);if(l)return n>=s?l:l*("desc"==a[n]?-1:1)}return e.index-t.index}(e,t,a)}))}function Wn(e,t,a){for(var n=-1,r=t.length,i={};++n<r;){var o=t[n],s=An(e,o);a(s,o)&&Jn(i,br(o,e),s)}return i}function $n(e,t,a,n){var r=n?Vt:Ht,i=-1,o=t.length,s=e;for(e===t&&(t=Pr(t)),a&&(s=It(e,Xt(a)));++i<o;)for(var l=0,c=t[i],u=a?a(c):c;(l=r(s,u,l,n))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Gn(e,t){for(var a=e?t.length:0,n=a-1;a--;){var r=t[a];if(a==n||r!==i){var i=r;vi(r)?Ze.call(e,r,1):dr(e,r)}}return e}function Kn(e,t){return e+gt(ka()*(t-e+1))}function Zn(e,t){var a="";if(!e||t<1||t>m)return a;do{t%2&&(a+=e),(t=gt(t/2))&&(e+=e)}while(t);return a}function Yn(e,t){return Mi(_i(e,t,nl),e+"")}function Qn(e){return Ya(Bs(e))}function Xn(e,t){var a=Bs(e);return Ni(a,sn(t,0,a.length))}function Jn(e,t,n,r){if(!es(e))return e;for(var i=-1,o=(t=br(t,e)).length,s=o-1,l=e;null!=l&&++i<o;){var c=zi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):a)===a&&(u=es(d)?d:vi(t[i+1])?[]:{})}en(l,c,u),l=l[c]}return e}var er=Pa?function(e,t){return Pa.set(e,t),e}:nl,tr=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:nl;function ar(e){return Ni(Bs(e))}function nr(e,t,a){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(a=a>r?r:a)<0&&(a+=r),r=t>a?0:a-t>>>0,t>>>=0;for(var i=ie(r);++n<r;)i[n]=e[n+t];return i}function rr(e,t){var a;return mn(e,(function(e,n,r){return!(a=t(e,n,r))})),!!a}function ir(e,t,a){var n=0,r=null==e?n:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;n<r;){var i=n+r>>>1,o=e[i];null!==o&&!ls(o)&&(a?o<=t:o<t)?n=i+1:r=i}return r}return or(e,t,nl,a)}function or(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ls(t),u=t===a;i<o;){var d=gt((i+o)/2),m=n(e[d]),h=m!==a,p=null===m,g=m==m,f=ls(m);if(s)var y=r||g;else y=u?g&&(r||h):l?g&&h&&(r||!p):c?g&&h&&!p&&(r||!f):!p&&!f&&(r?m<=t:m<t);y?i=d+1:o=d}return va(o,4294967294)}function sr(e,t){for(var a=-1,n=e.length,r=0,i=[];++a<n;){var o=e[a],s=t?t(o):o;if(!a||!Bo(s,l)){var l=s;i[r++]=0===o?0:o}}return i}function lr(e){return"number"==typeof e?e:ls(e)?h:+e}function cr(e){if("string"==typeof e)return e;if(Uo(e))return It(e,cr)+"";if(ls(e))return La?La.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ur(e,t,a){var n=-1,r=Mt,i=e.length,o=!0,s=[],l=s;if(a)o=!1,r=Dt;else if(i>=200){var c=t?null:Zr(e);if(c)return ua(c);o=!1,r=ea,l=new Ga}else l=t?[]:s;e:for(;++n<i;){var u=e[n],d=t?t(u):u;if(u=a||0!==u?u:0,o&&d==d){for(var m=l.length;m--;)if(l[m]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,a)||(l!==s&&l.push(d),s.push(u))}return s}function dr(e,t){return null==(e=Ci(e,t=br(t,e)))||delete e[zi(Zi(t))]}function mr(e,t,a,n){return Jn(e,t,a(An(e,t)),n)}function hr(e,t,a,n){for(var r=e.length,i=n?r:-1;(n?i--:++i<r)&&t(e[i],i,e););return a?nr(e,n?0:i,n?i+1:r):nr(e,n?i+1:0,n?r:i)}function pr(e,t){var a=e;return a instanceof Va&&(a=a.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),a)}function gr(e,t,a){var n=e.length;if(n<2)return n?ur(e[0]):[];for(var r=-1,i=ie(n);++r<n;)for(var o=e[r],s=-1;++s<n;)s!=r&&(i[r]=dn(i[r]||o,e[s],t,a));return ur(yn(i,1),t,a)}function fr(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var l=r<o?t[r]:a;n(s,e[r],l)}return s}function yr(e){return Go(e)?e:[]}function vr(e){return"function"==typeof e?e:nl}function br(e,t){return Uo(e)?e:wi(e,t)?[e]:ji(vs(e))}var wr=Yn;function kr(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:nr(e,t,n)}var xr=lt||function(e){return ht.clearTimeout(e)};function Ar(e,t){if(t)return e.slice();var a=e.length,n=We?We(a):new e.constructor(a);return e.copy(n),n}function Sr(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Er(e,t){var a=t?Sr(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function _r(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=ls(e),s=t!==a,l=null===t,c=t==t,u=ls(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!c)return-1}return 0}function Cr(e,t,a,n){for(var r=-1,i=e.length,o=a.length,s=-1,l=t.length,c=ya(i-o,0),u=ie(l+c),d=!n;++s<l;)u[s]=t[s];for(;++r<o;)(d||r<i)&&(u[a[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u}function Or(e,t,a,n){for(var r=-1,i=e.length,o=-1,s=a.length,l=-1,c=t.length,u=ya(i-s,0),d=ie(u+c),m=!n;++r<u;)d[r]=e[r];for(var h=r;++l<c;)d[h+l]=t[l];for(;++o<s;)(m||r<i)&&(d[h+a[o]]=e[r++]);return d}function Pr(e,t){var a=-1,n=e.length;for(t||(t=ie(n));++a<n;)t[a]=e[a];return t}function Tr(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=r?r(n[l],e[l],l,n,e):a;c===a&&(c=e[l]),i?rn(n,l,c):en(n,l,c)}return n}function Mr(e,t){return function(a,n){var r=Uo(a)?_t:an,i=t?t():{};return r(a,e,li(n,2),i)}}function Dr(e){return Yn((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&bi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=_e(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}function Ir(e,t){return function(a,n){if(null==a)return a;if(!$o(a))return e(a,n);for(var r=a.length,i=t?r:-1,o=_e(a);(t?i--:++i<r)&&!1!==n(o[i],i,o););return a}}function Nr(e){return function(t,a,n){for(var r=-1,i=_e(t),o=n(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===a(i[l],l,i))break}return t}}function jr(e){return function(t){var n=oa(t=vs(t))?ha(t):a,r=n?n[0]:t.charAt(0),i=n?kr(n,1).join(""):t.slice(1);return r[e]()+i}}function zr(e){return function(t){return jt(Qs(Vs(t).replace(Xe,"")),e,"")}}function Rr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a=Ba(e.prototype),n=e.apply(a,t);return es(n)?n:a}}function Lr(e){return function(t,n,r){var i=_e(t);if(!$o(t)){var o=li(n,3);t=Ms(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function Fr(e){return ai((function(t){var r=t.length,i=r,o=qa.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Pe(n);if(o&&!l&&"wrapper"==oi(s))var l=new qa([],!0)}for(i=l?i:r;++i<r;){var c=oi(s=t[i]),u="wrapper"==c?ii(s):a;l=u&&ki(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oi(u[0])].apply(l,u[3]):1==s.length&&ki(s)?l[c]():l.thru(s)}return function(){var e=arguments,a=e[0];if(l&&1==e.length&&Uo(a))return l.plant(a).value();for(var n=0,i=r?t[n].apply(this,e):a;++n<r;)i=t[n].call(this,i);return i}}))}function Br(e,t,n,r,i,o,s,l,u,d){var m=t&c,h=1&t,p=2&t,g=24&t,f=512&t,y=p?a:Rr(e);return function c(){for(var v=arguments.length,b=ie(v),w=v;w--;)b[w]=arguments[w];if(g)var k=si(c),x=function(e,t){for(var a=e.length,n=0;a--;)e[a]===t&&++n;return n}(b,k);if(r&&(b=Cr(b,r,i,g)),o&&(b=Or(b,o,s,g)),v-=x,g&&v<d){var A=ca(b,k);return Gr(e,t,Br,c.placeholder,n,b,A,l,u,d-v)}var S=h?n:this,E=p?S[e]:e;return v=b.length,l?b=function(e,t){var n=e.length,r=va(t.length,n),i=Pr(e);for(;r--;){var o=t[r];e[r]=vi(o,n)?i[o]:a}return e}(b,l):f&&v>1&&b.reverse(),m&&u<v&&(b.length=u),this&&this!==ht&&this instanceof c&&(E=y||Rr(E)),E.apply(S,b)}}function Hr(e,t){return function(a,n){return function(e,t,a,n){return wn(e,(function(e,r,i){t(n,a(e),r,i)})),n}(a,e,t(n),{})}}function qr(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=cr(n),r=cr(r)):(n=lr(n),r=lr(r)),i=e(n,r)}return i}}function Vr(e){return ai((function(t){return t=It(t,Xt(li())),Yn((function(a){var n=this;return e(t,(function(e){return Et(e,n,a)}))}))}))}function Ur(e,t){var n=(t=t===a?" ":cr(t)).length;if(n<2)return n?Zn(t,e):t;var r=Zn(t,pt(e/ma(t)));return oa(t)?kr(ha(r),0,e).join(""):r.slice(0,e)}function Wr(e){return function(t,n,r){return r&&"number"!=typeof r&&bi(t,n,r)&&(n=r=a),t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,a,n){for(var r=-1,i=ya(pt((t-e)/(a||1)),0),o=ie(i);i--;)o[n?i:++r]=e,e+=a;return o}(t,n,r=r===a?t<n?1:-1:hs(r),e)}}function $r(e){return function(t,a){return"string"==typeof t&&"string"==typeof a||(t=fs(t),a=fs(a)),e(t,a)}}function Gr(e,t,n,r,i,o,c,u,d,m){var h=8&t;t|=h?s:l,4&(t&=~(h?l:s))||(t&=-4);var p=[e,t,i,h?o:a,h?c:a,h?a:o,h?a:c,u,d,m],g=n.apply(a,p);return ki(e)&&Pi(g,p),g.placeholder=r,Di(g,e,t)}function Kr(e){var t=Ee[e];return function(e,a){if(e=fs(e),(a=null==a?0:va(ps(a),292))&&Lt(e)){var n=(vs(e)+"e").split("e");return+((n=(vs(t(n[0]+"e"+(+n[1]+a)))+"e").split("e"))[0]+"e"+(+n[1]-a))}return t(e)}}var Zr=_a&&1/ua(new _a([,-0]))[1]==d?function(e){return new _a(e)}:ll;function Yr(e){return function(t){var a=pi(t);return a==A?sa(t):a==O?da(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qr(e,t,r,d,m,h,p,g){var f=2&t;if(!f&&"function"!=typeof e)throw new Pe(n);var y=d?d.length:0;if(y||(t&=-97,d=m=a),p=p===a?p:ya(ps(p),0),g=g===a?g:ps(g),y-=m?m.length:0,t&l){var v=d,b=m;d=m=a}var w=f?a:ii(e),k=[e,t,r,d,m,v,b,h,p,g];if(w&&function(e,t){var a=e[1],n=t[1],r=a|n,o=r<131,s=n==c&&8==a||n==c&&a==u&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==a;if(!o&&!s)return e;1&n&&(e[2]=t[2],r|=1&a?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?Cr(d,l,t[4]):l,e[4]=d?ca(e[3],i):t[4]}l=t[5],l&&(d=e[5],e[5]=d?Or(d,l,t[6]):l,e[6]=d?ca(e[5],i):t[6]);l=t[7],l&&(e[7]=l);n&c&&(e[8]=null==e[8]?t[8]:va(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(k,w),e=k[0],t=k[1],r=k[2],d=k[3],m=k[4],!(g=k[9]=k[9]===a?f?0:e.length:ya(k[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,n){var r=Rr(e);return function i(){for(var o=arguments.length,s=ie(o),l=o,c=si(i);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:ca(s,c);return(o-=u.length)<n?Gr(e,t,Br,i.placeholder,a,s,u,a,a,n-o):Et(this&&this!==ht&&this instanceof i?r:e,this,s)}}(e,t,g):t!=s&&33!=t||m.length?Br.apply(a,k):function(e,t,a,n){var r=1&t,i=Rr(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=n.length,u=ie(c+s),d=this&&this!==ht&&this instanceof t?i:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++o];return Et(d,r?a:this,u)}}(e,t,r,d);else var x=function(e,t,a){var n=1&t,r=Rr(e);return function t(){return(this&&this!==ht&&this instanceof t?r:e).apply(n?a:this,arguments)}}(e,t,r);return Di((w?er:Pi)(x,k),e,t)}function Xr(e,t,n,r){return e===a||Bo(e,De[n])&&!je.call(r,n)?t:e}function Jr(e,t,n,r,i,o){return es(e)&&es(t)&&(o.set(t,e),qn(e,t,a,Jr,o),o.delete(t)),e}function ei(e){return rs(e)?a:e}function ti(e,t,n,r,i,o){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var m=-1,h=!0,p=2&n?new Ga:a;for(o.set(e,t),o.set(t,e);++m<l;){var g=e[m],f=t[m];if(r)var y=s?r(f,g,m,t,e,o):r(g,f,m,e,t,o);if(y!==a){if(y)continue;h=!1;break}if(p){if(!Rt(t,(function(e,t){if(!ea(p,t)&&(g===e||i(g,e,n,r,o)))return p.push(t)}))){h=!1;break}}else if(g!==f&&!i(g,f,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function ai(e){return Mi(_i(e,a,Ui),e+"")}function ni(e){return Sn(e,Ms,mi)}function ri(e){return Sn(e,Ds,hi)}var ii=Pa?function(e){return Pa.get(e)}:ll;function oi(e){for(var t=e.name+"",a=Ta[t],n=je.call(Ta,t)?a.length:0;n--;){var r=a[n],i=r.func;if(null==i||i==e)return r.name}return t}function si(e){return(je.call(Fa,"placeholder")?Fa:e).placeholder}function li(){var e=Fa.iteratee||rl;return e=e===rl?jn:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var a=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?a["string"==typeof t?"string":"hash"]:a.map}function ui(e){for(var t=Ms(e),a=t.length;a--;){var n=t[a],r=e[n];t[a]=[n,r,Si(r)]}return t}function di(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Nn(n)?n:a}var mi=yt?function(e){return null==e?[]:(e=_e(e),Tt(yt(e),(function(t){return Ke.call(e,t)})))}:gl,hi=yt?function(e){for(var t=[];e;)Nt(t,mi(e)),e=$e(e);return t}:gl,pi=En;function gi(e,t,a){for(var n=-1,r=(t=br(t,e)).length,i=!1;++n<r;){var o=zi(t[n]);if(!(i=null!=e&&a(e,o)))break;e=e[o]}return i||++n!=r?i:!!(r=null==e?0:e.length)&&Jo(r)&&vi(o,r)&&(Uo(e)||Vo(e))}function fi(e){return"function"!=typeof e.constructor||Ai(e)?{}:Ba($e(e))}function yi(e){return Uo(e)||Vo(e)||!!(Ye&&e&&e[Ye])}function vi(e,t){var a=typeof e;return!!(t=null==t?m:t)&&("number"==a||"symbol"!=a&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,a){if(!es(a))return!1;var n=typeof t;return!!("number"==n?$o(a)&&vi(t,a.length):"string"==n&&t in a)&&Bo(a[t],e)}function wi(e,t){if(Uo(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!ls(e))||(ee.test(e)||!J.test(e)||null!=t&&e in _e(t))}function ki(e){var t=oi(e),a=Fa[t];if("function"!=typeof a||!(t in Va.prototype))return!1;if(e===a)return!0;var n=ii(a);return!!n&&e===n[0]}(Aa&&pi(new Aa(new ArrayBuffer(1)))!=I||Sa&&pi(new Sa)!=A||Ea&&pi(Ea.resolve())!=_||_a&&pi(new _a)!=O||Ca&&pi(new Ca)!=M)&&(pi=function(e){var t=En(e),n=t==E?e.constructor:a,r=n?Ri(n):"";if(r)switch(r){case Ma:return I;case Da:return A;case Ia:return _;case Na:return O;case ja:return M}return t});var xi=Ie?Qo:fl;function Ai(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Si(e){return e==e&&!es(e)}function Ei(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in _e(n)))}}function _i(e,t,n){return t=ya(t===a?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=ya(a.length-t,0),o=ie(i);++r<i;)o[r]=a[t+r];r=-1;for(var s=ie(t+1);++r<t;)s[r]=a[r];return s[t]=n(o),Et(e,this,s)}}function Ci(e,t){return t.length<2?e:An(e,nr(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ii(er),Ti=mt||function(e,t){return ht.setTimeout(e,t)},Mi=Ii(tr);function Di(e,t,a){var n=t+"";return Mi(e,function(e,t){var a=t.length;if(!a)return e;var n=a-1;return t[n]=(a>1?"& ":"")+t[n],t=t.join(a>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(g,(function(a){var n="_."+a[0];t&a[1]&&!Mt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(n),a)))}function Ii(e){var t=0,n=0;return function(){var r=ba(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=Kn(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var ji=function(e){var t=No(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,a,n,r){t.push(n?r.replace(de,"$1"):a||e)})),t}));function zi(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ri(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Li(e){if(e instanceof Va)return e.clone();var t=new qa(e.__wrapped__,e.__chain__);return t.__actions__=Pr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Yn((function(e,t){return Go(e)?dn(e,yn(t,1,Go,!0)):[]})),Bi=Yn((function(e,t){var n=Zi(t);return Go(n)&&(n=a),Go(e)?dn(e,yn(t,1,Go,!0),li(n,2)):[]})),Hi=Yn((function(e,t){var n=Zi(t);return Go(n)&&(n=a),Go(e)?dn(e,yn(t,1,Go,!0),a,n):[]}));function qi(e,t,a){var n=null==e?0:e.length;if(!n)return-1;var r=null==a?0:ps(a);return r<0&&(r=ya(n+r,0)),Bt(e,li(t,3),r)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=ps(n),i=n<0?ya(r+i,0):va(i,r-1)),Bt(e,li(t,3),i,!0)}function Ui(e){return(null==e?0:e.length)?yn(e,1):[]}function Wi(e){return e&&e.length?e[0]:a}var $i=Yn((function(e){var t=It(e,yr);return t.length&&t[0]===e[0]?Pn(t):[]})),Gi=Yn((function(e){var t=Zi(e),n=It(e,yr);return t===Zi(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Pn(n,li(t,2)):[]})),Ki=Yn((function(e){var t=Zi(e),n=It(e,yr);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Pn(n,a,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Yi=Yn(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?$n(e,t):e}var Xi=ai((function(e,t){var a=null==e?0:e.length,n=on(e,t);return Gn(e,It(t,(function(e){return vi(e,a)?+e:e})).sort(_r)),n}));function Ji(e){return null==e?e:xa.call(e)}var eo=Yn((function(e){return ur(yn(e,1,Go,!0))})),to=Yn((function(e){var t=Zi(e);return Go(t)&&(t=a),ur(yn(e,1,Go,!0),li(t,2))})),ao=Yn((function(e){var t=Zi(e);return t="function"==typeof t?t:a,ur(yn(e,1,Go,!0),a,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Go(e))return t=ya(e.length,t),!0})),Yt(t,(function(t){return It(e,$t(t))}))}function ro(e,t){if(!e||!e.length)return[];var n=no(e);return null==t?n:It(n,(function(e){return Et(t,a,e)}))}var io=Yn((function(e,t){return Go(e)?dn(e,t):[]})),oo=Yn((function(e){return gr(Tt(e,Go))})),so=Yn((function(e){var t=Zi(e);return Go(t)&&(t=a),gr(Tt(e,Go),li(t,2))})),lo=Yn((function(e){var t=Zi(e);return t="function"==typeof t?t:a,gr(Tt(e,Go),a,t)})),co=Yn(no);var uo=Yn((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ro(e,n)}));function mo(e){var t=Fa(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var po=ai((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Va&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:a}),new qa(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var go=Mr((function(e,t,a){je.call(e,a)?++e[a]:rn(e,a,1)}));var fo=Lr(qi),yo=Lr(Vi);function vo(e,t){return(Uo(e)?Ct:mn)(e,li(t,3))}function bo(e,t){return(Uo(e)?Ot:hn)(e,li(t,3))}var wo=Mr((function(e,t,a){je.call(e,a)?e[a].push(t):rn(e,a,[t])}));var ko=Yn((function(e,t,a){var n=-1,r="function"==typeof t,i=$o(e)?ie(e.length):[];return mn(e,(function(e){i[++n]=r?Et(t,e,a):Tn(e,t,a)})),i})),xo=Mr((function(e,t,a){rn(e,a,t)}));function Ao(e,t){return(Uo(e)?It:Fn)(e,li(t,3))}var So=Mr((function(e,t,a){e[a?0:1].push(t)}),(function(){return[[],[]]}));var Eo=Yn((function(e,t){if(null==e)return[];var a=t.length;return a>1&&bi(e,t[0],t[1])?t=[]:a>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Un(e,yn(t,1),[])})),_o=dt||function(){return ht.Date.now()};function Co(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Qr(e,c,a,a,a,a,t)}function Oo(e,t){var r;if("function"!=typeof t)throw new Pe(n);return e=ps(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Po=Yn((function(e,t,a){var n=1;if(a.length){var r=ca(a,si(Po));n|=s}return Qr(e,n,t,a,r)})),To=Yn((function(e,t,a){var n=3;if(a.length){var r=ca(a,si(To));n|=s}return Qr(t,n,e,a,r)}));function Mo(e,t,r){var i,o,s,l,c,u,d=0,m=!1,h=!1,p=!0;if("function"!=typeof e)throw new Pe(n);function g(t){var n=i,r=o;return i=o=a,d=t,l=e.apply(r,n)}function f(e){var n=e-u;return u===a||n>=t||n<0||h&&e-d>=s}function y(){var e=_o();if(f(e))return v(e);c=Ti(y,function(e){var a=t-(e-u);return h?va(a,s-(e-d)):a}(e))}function v(e){return c=a,p&&i?g(e):(i=o=a,l)}function b(){var e=_o(),n=f(e);if(i=arguments,o=this,u=e,n){if(c===a)return function(e){return d=e,c=Ti(y,t),m?g(e):l}(u);if(h)return xr(c),c=Ti(y,t),g(u)}return c===a&&(c=Ti(y,t)),l}return t=fs(t)||0,es(r)&&(m=!!r.leading,s=(h="maxWait"in r)?ya(fs(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),b.cancel=function(){c!==a&&xr(c),d=0,i=u=o=c=a},b.flush=function(){return c===a?l:v(_o())},b}var Do=Yn((function(e,t){return un(e,1,t)})),Io=Yn((function(e,t,a){return un(e,fs(t)||0,a)}));function No(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(n);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(No.Cache||$a),a}function jo(e){if("function"!=typeof e)throw new Pe(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}No.Cache=$a;var zo=wr((function(e,t){var a=(t=1==t.length&&Uo(t[0])?It(t[0],Xt(li())):It(yn(t,1),Xt(li()))).length;return Yn((function(n){for(var r=-1,i=va(n.length,a);++r<i;)n[r]=t[r].call(this,n[r]);return Et(e,this,n)}))})),Ro=Yn((function(e,t){var n=ca(t,si(Ro));return Qr(e,s,a,t,n)})),Lo=Yn((function(e,t){var n=ca(t,si(Lo));return Qr(e,l,a,t,n)})),Fo=ai((function(e,t){return Qr(e,u,a,a,a,t)}));function Bo(e,t){return e===t||e!=e&&t!=t}var Ho=$r(_n),qo=$r((function(e,t){return e>=t})),Vo=Mn(function(){return arguments}())?Mn:function(e){return ts(e)&&je.call(e,"callee")&&!Ke.call(e,"callee")},Uo=ie.isArray,Wo=bt?Xt(bt):function(e){return ts(e)&&En(e)==D};function $o(e){return null!=e&&Jo(e.length)&&!Qo(e)}function Go(e){return ts(e)&&$o(e)}var Ko=vt||fl,Zo=wt?Xt(wt):function(e){return ts(e)&&En(e)==b};function Yo(e){if(!ts(e))return!1;var t=En(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Qo(e){if(!es(e))return!1;var t=En(e);return t==k||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==ps(e)}function Jo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var as=kt?Xt(kt):function(e){return ts(e)&&pi(e)==A};function ns(e){return"number"==typeof e||ts(e)&&En(e)==S}function rs(e){if(!ts(e)||En(e)!=E)return!1;var t=$e(e);if(null===t)return!0;var a=je.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&Ne.call(a)==Fe}var is=xt?Xt(xt):function(e){return ts(e)&&En(e)==C};var os=At?Xt(At):function(e){return ts(e)&&pi(e)==O};function ss(e){return"string"==typeof e||!Uo(e)&&ts(e)&&En(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&En(e)==T}var cs=St?Xt(St):function(e){return ts(e)&&Jo(e.length)&&!!ot[En(e)]};var us=$r(Ln),ds=$r((function(e,t){return e<=t}));function ms(e){if(!e)return[];if($o(e))return ss(e)?ha(e):Pr(e);if(Qe&&e[Qe])return function(e){for(var t,a=[];!(t=e.next()).done;)a.push(t.value);return a}(e[Qe]());var t=pi(e);return(t==A?sa:t==O?ua:Bs)(e)}function hs(e){return e?(e=fs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=hs(e),a=t%1;return t==t?a?t-a:t:0}function gs(e){return e?sn(ps(e),0,p):0}function fs(e){if("number"==typeof e)return e;if(ls(e))return h;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var a=ge.test(e);return a||ye.test(e)?ut(e.slice(2),a?2:8):pe.test(e)?h:+e}function ys(e){return Tr(e,Ds(e))}function vs(e){return null==e?"":cr(e)}var bs=Dr((function(e,t){if(Ai(t)||$o(t))Tr(t,Ms(t),e);else for(var a in t)je.call(t,a)&&en(e,a,t[a])})),ws=Dr((function(e,t){Tr(t,Ds(t),e)})),ks=Dr((function(e,t,a,n){Tr(t,Ds(t),e,n)})),xs=Dr((function(e,t,a,n){Tr(t,Ms(t),e,n)})),As=ai(on);var Ss=Yn((function(e,t){e=_e(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=Ds(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===a||Bo(d,De[u])&&!je.call(e,u))&&(e[u]=o[u])}return e})),Es=Yn((function(e){return e.push(a,Jr),Et(Ns,a,e)}));function _s(e,t,n){var r=null==e?a:An(e,t);return r===a?n:r}function Cs(e,t){return null!=e&&gi(e,t,On)}var Os=Hr((function(e,t,a){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=a}),el(nl)),Ps=Hr((function(e,t,a){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),je.call(e,t)?e[t].push(a):e[t]=[a]}),li),Ts=Yn(Tn);function Ms(e){return $o(e)?Za(e):zn(e)}function Ds(e){return $o(e)?Za(e,!0):Rn(e)}var Is=Dr((function(e,t,a){qn(e,t,a)})),Ns=Dr((function(e,t,a,n){qn(e,t,a,n)})),js=ai((function(e,t){var a={};if(null==e)return a;var n=!1;t=It(t,(function(t){return t=br(t,e),n||(n=t.length>1),t})),Tr(e,ri(e),a),n&&(a=ln(a,7,ei));for(var r=t.length;r--;)dr(a,t[r]);return a}));var zs=ai((function(e,t){return null==e?{}:function(e,t){return Wn(e,t,(function(t,a){return Cs(e,a)}))}(e,t)}));function Rs(e,t){if(null==e)return{};var a=It(ri(e),(function(e){return[e]}));return t=li(t),Wn(e,a,(function(e,a){return t(e,a[0])}))}var Ls=Yr(Ms),Fs=Yr(Ds);function Bs(e){return null==e?[]:Jt(e,Ms(e))}var Hs=zr((function(e,t,a){return t=t.toLowerCase(),e+(a?qs(t):t)}));function qs(e){return Ys(vs(e).toLowerCase())}function Vs(e){return(e=vs(e))&&e.replace(be,na).replace(Je,"")}var Us=zr((function(e,t,a){return e+(a?"-":"")+t.toLowerCase()})),Ws=zr((function(e,t,a){return e+(a?" ":"")+t.toLowerCase()})),$s=jr("toLowerCase");var Gs=zr((function(e,t,a){return e+(a?"_":"")+t.toLowerCase()}));var Ks=zr((function(e,t,a){return e+(a?" ":"")+Ys(t)}));var Zs=zr((function(e,t,a){return e+(a?" ":"")+t.toUpperCase()})),Ys=jr("toUpperCase");function Qs(e,t,n){return e=vs(e),(t=n?a:t)===a?function(e){return nt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xs=Yn((function(e,t){try{return Et(e,a,t)}catch(e){return Yo(e)?e:new Ae(e)}})),Js=ai((function(e,t){return Ct(t,(function(t){t=zi(t),rn(e,t,Po(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Fr(),al=Fr(!0);function nl(e){return e}function rl(e){return jn("function"==typeof e?e:ln(e,1))}var il=Yn((function(e,t){return function(a){return Tn(a,e,t)}})),ol=Yn((function(e,t){return function(a){return Tn(e,a,t)}}));function sl(e,t,a){var n=Ms(t),r=xn(t,n);null!=a||es(t)&&(r.length||!n.length)||(a=t,t=e,e=this,r=xn(t,Ms(t)));var i=!(es(a)&&"chain"in a&&!a.chain),o=Qo(e);return Ct(r,(function(a){var n=t[a];e[a]=n,o&&(e.prototype[a]=function(){var t=this.__chain__;if(i||t){var a=e(this.__wrapped__);return(a.__actions__=Pr(this.__actions__)).push({func:n,args:arguments,thisArg:e}),a.__chain__=t,a}return n.apply(e,Nt([this.value()],arguments))})})),e}function ll(){}var cl=Vr(It),ul=Vr(Pt),dl=Vr(Rt);function ml(e){return wi(e)?$t(zi(e)):function(e){return function(t){return An(t,e)}}(e)}var hl=Wr(),pl=Wr(!0);function gl(){return[]}function fl(){return!1}var yl=qr((function(e,t){return e+t}),0),vl=Kr("ceil"),bl=qr((function(e,t){return e/t}),1),wl=Kr("floor");var kl=qr((function(e,t){return e*t}),1),xl=Kr("round"),Al=qr((function(e,t){return e-t}),0);return Fa.after=function(e,t){if("function"!=typeof t)throw new Pe(n);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Fa.ary=Co,Fa.assign=bs,Fa.assignIn=ws,Fa.assignInWith=ks,Fa.assignWith=xs,Fa.at=As,Fa.before=Oo,Fa.bind=Po,Fa.bindAll=Js,Fa.bindKey=To,Fa.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Uo(e)?e:[e]},Fa.chain=mo,Fa.chunk=function(e,t,n){t=(n?bi(e,t,n):t===a)?1:ya(ps(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,s=ie(pt(r/t));i<r;)s[o++]=nr(e,i,i+=t);return s},Fa.compact=function(e){for(var t=-1,a=null==e?0:e.length,n=0,r=[];++t<a;){var i=e[t];i&&(r[n++]=i)}return r},Fa.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),a=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Nt(Uo(a)?Pr(a):[a],yn(t,1))},Fa.cond=function(e){var t=null==e?0:e.length,a=li();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Pe(n);return[a(e[0]),e[1]]})):[],Yn((function(a){for(var n=-1;++n<t;){var r=e[n];if(Et(r[0],this,a))return Et(r[1],this,a)}}))},Fa.conforms=function(e){return function(e){var t=Ms(e);return function(a){return cn(a,e,t)}}(ln(e,1))},Fa.constant=el,Fa.countBy=go,Fa.create=function(e,t){var a=Ba(e);return null==t?a:nn(a,t)},Fa.curry=function e(t,n,r){var i=Qr(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Fa.curryRight=function e(t,n,r){var i=Qr(t,o,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Fa.debounce=Mo,Fa.defaults=Ss,Fa.defaultsDeep=Es,Fa.defer=Do,Fa.delay=Io,Fa.difference=Fi,Fa.differenceBy=Bi,Fa.differenceWith=Hi,Fa.drop=function(e,t,n){var r=null==e?0:e.length;return r?nr(e,(t=n||t===a?1:ps(t))<0?0:t,r):[]},Fa.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?nr(e,0,(t=r-(t=n||t===a?1:ps(t)))<0?0:t):[]},Fa.dropRightWhile=function(e,t){return e&&e.length?hr(e,li(t,3),!0,!0):[]},Fa.dropWhile=function(e,t){return e&&e.length?hr(e,li(t,3),!0):[]},Fa.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ps(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fa.filter=function(e,t){return(Uo(e)?Tt:fn)(e,li(t,3))},Fa.flatMap=function(e,t){return yn(Ao(e,t),1)},Fa.flatMapDeep=function(e,t){return yn(Ao(e,t),d)},Fa.flatMapDepth=function(e,t,n){return n=n===a?1:ps(n),yn(Ao(e,t),n)},Fa.flatten=Ui,Fa.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,d):[]},Fa.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===a?1:ps(t)):[]},Fa.flip=function(e){return Qr(e,512)},Fa.flow=tl,Fa.flowRight=al,Fa.fromPairs=function(e){for(var t=-1,a=null==e?0:e.length,n={};++t<a;){var r=e[t];n[r[0]]=r[1]}return n},Fa.functions=function(e){return null==e?[]:xn(e,Ms(e))},Fa.functionsIn=function(e){return null==e?[]:xn(e,Ds(e))},Fa.groupBy=wo,Fa.initial=function(e){return(null==e?0:e.length)?nr(e,0,-1):[]},Fa.intersection=$i,Fa.intersectionBy=Gi,Fa.intersectionWith=Ki,Fa.invert=Os,Fa.invertBy=Ps,Fa.invokeMap=ko,Fa.iteratee=rl,Fa.keyBy=xo,Fa.keys=Ms,Fa.keysIn=Ds,Fa.map=Ao,Fa.mapKeys=function(e,t){var a={};return t=li(t,3),wn(e,(function(e,n,r){rn(a,t(e,n,r),e)})),a},Fa.mapValues=function(e,t){var a={};return t=li(t,3),wn(e,(function(e,n,r){rn(a,n,t(e,n,r))})),a},Fa.matches=function(e){return Bn(ln(e,1))},Fa.matchesProperty=function(e,t){return Hn(e,ln(t,1))},Fa.memoize=No,Fa.merge=Is,Fa.mergeWith=Ns,Fa.method=il,Fa.methodOf=ol,Fa.mixin=sl,Fa.negate=jo,Fa.nthArg=function(e){return e=ps(e),Yn((function(t){return Vn(t,e)}))},Fa.omit=js,Fa.omitBy=function(e,t){return Rs(e,jo(li(t)))},Fa.once=function(e){return Oo(2,e)},Fa.orderBy=function(e,t,n,r){return null==e?[]:(Uo(t)||(t=null==t?[]:[t]),Uo(n=r?a:n)||(n=null==n?[]:[n]),Un(e,t,n))},Fa.over=cl,Fa.overArgs=zo,Fa.overEvery=ul,Fa.overSome=dl,Fa.partial=Ro,Fa.partialRight=Lo,Fa.partition=So,Fa.pick=zs,Fa.pickBy=Rs,Fa.property=ml,Fa.propertyOf=function(e){return function(t){return null==e?a:An(e,t)}},Fa.pull=Yi,Fa.pullAll=Qi,Fa.pullAllBy=function(e,t,a){return e&&e.length&&t&&t.length?$n(e,t,li(a,2)):e},Fa.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$n(e,t,a,n):e},Fa.pullAt=Xi,Fa.range=hl,Fa.rangeRight=pl,Fa.rearg=Fo,Fa.reject=function(e,t){return(Uo(e)?Tt:fn)(e,jo(li(t,3)))},Fa.remove=function(e,t){var a=[];if(!e||!e.length)return a;var n=-1,r=[],i=e.length;for(t=li(t,3);++n<i;){var o=e[n];t(o,n,e)&&(a.push(o),r.push(n))}return Gn(e,r),a},Fa.rest=function(e,t){if("function"!=typeof e)throw new Pe(n);return Yn(e,t=t===a?t:ps(t))},Fa.reverse=Ji,Fa.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:ps(t),(Uo(e)?Qa:Xn)(e,t)},Fa.set=function(e,t,a){return null==e?e:Jn(e,t,a)},Fa.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Jn(e,t,n,r)},Fa.shuffle=function(e){return(Uo(e)?Xa:ar)(e)},Fa.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===a?r:ps(n)),nr(e,t,n)):[]},Fa.sortBy=Eo,Fa.sortedUniq=function(e){return e&&e.length?sr(e):[]},Fa.sortedUniqBy=function(e,t){return e&&e.length?sr(e,li(t,2)):[]},Fa.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=a),(n=n===a?p:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=cr(t))&&oa(e)?kr(ha(e),0,n):e.split(t,n):[]},Fa.spread=function(e,t){if("function"!=typeof e)throw new Pe(n);return t=null==t?0:ya(ps(t),0),Yn((function(a){var n=a[t],r=kr(a,0,t);return n&&Nt(r,n),Et(e,this,r)}))},Fa.tail=function(e){var t=null==e?0:e.length;return t?nr(e,1,t):[]},Fa.take=function(e,t,n){return e&&e.length?nr(e,0,(t=n||t===a?1:ps(t))<0?0:t):[]},Fa.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?nr(e,(t=r-(t=n||t===a?1:ps(t)))<0?0:t,r):[]},Fa.takeRightWhile=function(e,t){return e&&e.length?hr(e,li(t,3),!1,!0):[]},Fa.takeWhile=function(e,t){return e&&e.length?hr(e,li(t,3)):[]},Fa.tap=function(e,t){return t(e),e},Fa.throttle=function(e,t,a){var r=!0,i=!0;if("function"!=typeof e)throw new Pe(n);return es(a)&&(r="leading"in a?!!a.leading:r,i="trailing"in a?!!a.trailing:i),Mo(e,t,{leading:r,maxWait:t,trailing:i})},Fa.thru=ho,Fa.toArray=ms,Fa.toPairs=Ls,Fa.toPairsIn=Fs,Fa.toPath=function(e){return Uo(e)?It(e,zi):ls(e)?[e]:Pr(ji(vs(e)))},Fa.toPlainObject=ys,Fa.transform=function(e,t,a){var n=Uo(e),r=n||Ko(e)||cs(e);if(t=li(t,4),null==a){var i=e&&e.constructor;a=r?n?new i:[]:es(e)&&Qo(i)?Ba($e(e)):{}}return(r?Ct:wn)(e,(function(e,n,r){return t(a,e,n,r)})),a},Fa.unary=function(e){return Co(e,1)},Fa.union=eo,Fa.unionBy=to,Fa.unionWith=ao,Fa.uniq=function(e){return e&&e.length?ur(e):[]},Fa.uniqBy=function(e,t){return e&&e.length?ur(e,li(t,2)):[]},Fa.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?ur(e,a,t):[]},Fa.unset=function(e,t){return null==e||dr(e,t)},Fa.unzip=no,Fa.unzipWith=ro,Fa.update=function(e,t,a){return null==e?e:mr(e,t,vr(a))},Fa.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:mr(e,t,vr(n),r)},Fa.values=Bs,Fa.valuesIn=function(e){return null==e?[]:Jt(e,Ds(e))},Fa.without=io,Fa.words=Qs,Fa.wrap=function(e,t){return Ro(vr(t),e)},Fa.xor=oo,Fa.xorBy=so,Fa.xorWith=lo,Fa.zip=co,Fa.zipObject=function(e,t){return fr(e||[],t||[],en)},Fa.zipObjectDeep=function(e,t){return fr(e||[],t||[],Jn)},Fa.zipWith=uo,Fa.entries=Ls,Fa.entriesIn=Fs,Fa.extend=ws,Fa.extendWith=ks,sl(Fa,Fa),Fa.add=yl,Fa.attempt=Xs,Fa.camelCase=Hs,Fa.capitalize=qs,Fa.ceil=vl,Fa.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=fs(n))==n?n:0),t!==a&&(t=(t=fs(t))==t?t:0),sn(fs(e),t,n)},Fa.clone=function(e){return ln(e,4)},Fa.cloneDeep=function(e){return ln(e,5)},Fa.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:a)},Fa.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:a)},Fa.conformsTo=function(e,t){return null==t||cn(e,t,Ms(t))},Fa.deburr=Vs,Fa.defaultTo=function(e,t){return null==e||e!=e?t:e},Fa.divide=bl,Fa.endsWith=function(e,t,n){e=vs(e),t=cr(t);var r=e.length,i=n=n===a?r:sn(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fa.eq=Bo,Fa.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(G,ra):e},Fa.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(ae,"\\$&"):e},Fa.every=function(e,t,n){var r=Uo(e)?Pt:pn;return n&&bi(e,t,n)&&(t=a),r(e,li(t,3))},Fa.find=fo,Fa.findIndex=qi,Fa.findKey=function(e,t){return Ft(e,li(t,3),wn)},Fa.findLast=yo,Fa.findLastIndex=Vi,Fa.findLastKey=function(e,t){return Ft(e,li(t,3),kn)},Fa.floor=wl,Fa.forEach=vo,Fa.forEachRight=bo,Fa.forIn=function(e,t){return null==e?e:vn(e,li(t,3),Ds)},Fa.forInRight=function(e,t){return null==e?e:bn(e,li(t,3),Ds)},Fa.forOwn=function(e,t){return e&&wn(e,li(t,3))},Fa.forOwnRight=function(e,t){return e&&kn(e,li(t,3))},Fa.get=_s,Fa.gt=Ho,Fa.gte=qo,Fa.has=function(e,t){return null!=e&&gi(e,t,Cn)},Fa.hasIn=Cs,Fa.head=Wi,Fa.identity=nl,Fa.includes=function(e,t,a,n){e=$o(e)?e:Bs(e),a=a&&!n?ps(a):0;var r=e.length;return a<0&&(a=ya(r+a,0)),ss(e)?a<=r&&e.indexOf(t,a)>-1:!!r&&Ht(e,t,a)>-1},Fa.indexOf=function(e,t,a){var n=null==e?0:e.length;if(!n)return-1;var r=null==a?0:ps(a);return r<0&&(r=ya(n+r,0)),Ht(e,t,r)},Fa.inRange=function(e,t,n){return t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,a){return e>=va(t,a)&&e<ya(t,a)}(e=fs(e),t,n)},Fa.invoke=Ts,Fa.isArguments=Vo,Fa.isArray=Uo,Fa.isArrayBuffer=Wo,Fa.isArrayLike=$o,Fa.isArrayLikeObject=Go,Fa.isBoolean=function(e){return!0===e||!1===e||ts(e)&&En(e)==v},Fa.isBuffer=Ko,Fa.isDate=Zo,Fa.isElement=function(e){return ts(e)&&1===e.nodeType&&!rs(e)},Fa.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(Uo(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||cs(e)||Vo(e)))return!e.length;var t=pi(e);if(t==A||t==O)return!e.size;if(Ai(e))return!zn(e).length;for(var a in e)if(je.call(e,a))return!1;return!0},Fa.isEqual=function(e,t){return Dn(e,t)},Fa.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Dn(e,t,a,n):!!r},Fa.isError=Yo,Fa.isFinite=function(e){return"number"==typeof e&&Lt(e)},Fa.isFunction=Qo,Fa.isInteger=Xo,Fa.isLength=Jo,Fa.isMap=as,Fa.isMatch=function(e,t){return e===t||In(e,t,ui(t))},Fa.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,In(e,t,ui(t),n)},Fa.isNaN=function(e){return ns(e)&&e!=+e},Fa.isNative=function(e){if(xi(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nn(e)},Fa.isNil=function(e){return null==e},Fa.isNull=function(e){return null===e},Fa.isNumber=ns,Fa.isObject=es,Fa.isObjectLike=ts,Fa.isPlainObject=rs,Fa.isRegExp=is,Fa.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=m},Fa.isSet=os,Fa.isString=ss,Fa.isSymbol=ls,Fa.isTypedArray=cs,Fa.isUndefined=function(e){return e===a},Fa.isWeakMap=function(e){return ts(e)&&pi(e)==M},Fa.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==En(e)},Fa.join=function(e,t){return null==e?"":qt.call(e,t)},Fa.kebabCase=Us,Fa.last=Zi,Fa.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=ps(n))<0?ya(r+i,0):va(i,r-1)),t==t?function(e,t,a){for(var n=a+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Bt(e,Ut,i,!0)},Fa.lowerCase=Ws,Fa.lowerFirst=$s,Fa.lt=us,Fa.lte=ds,Fa.max=function(e){return e&&e.length?gn(e,nl,_n):a},Fa.maxBy=function(e,t){return e&&e.length?gn(e,li(t,2),_n):a},Fa.mean=function(e){return Wt(e,nl)},Fa.meanBy=function(e,t){return Wt(e,li(t,2))},Fa.min=function(e){return e&&e.length?gn(e,nl,Ln):a},Fa.minBy=function(e,t){return e&&e.length?gn(e,li(t,2),Ln):a},Fa.stubArray=gl,Fa.stubFalse=fl,Fa.stubObject=function(){return{}},Fa.stubString=function(){return""},Fa.stubTrue=function(){return!0},Fa.multiply=kl,Fa.nth=function(e,t){return e&&e.length?Vn(e,ps(t)):a},Fa.noConflict=function(){return ht._===this&&(ht._=Be),this},Fa.noop=ll,Fa.now=_o,Fa.pad=function(e,t,a){e=vs(e);var n=(t=ps(t))?ma(e):0;if(!t||n>=t)return e;var r=(t-n)/2;return Ur(gt(r),a)+e+Ur(pt(r),a)},Fa.padEnd=function(e,t,a){e=vs(e);var n=(t=ps(t))?ma(e):0;return t&&n<t?e+Ur(t-n,a):e},Fa.padStart=function(e,t,a){e=vs(e);var n=(t=ps(t))?ma(e):0;return t&&n<t?Ur(t-n,a)+e:e},Fa.parseInt=function(e,t,a){return a||null==t?t=0:t&&(t=+t),wa(vs(e).replace(re,""),t||0)},Fa.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=hs(e),t===a?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ka();return va(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Kn(e,t)},Fa.reduce=function(e,t,a){var n=Uo(e)?jt:Kt,r=arguments.length<3;return n(e,li(t,4),a,r,mn)},Fa.reduceRight=function(e,t,a){var n=Uo(e)?zt:Kt,r=arguments.length<3;return n(e,li(t,4),a,r,hn)},Fa.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:ps(t),Zn(vs(e),t)},Fa.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fa.result=function(e,t,n){var r=-1,i=(t=br(t,e)).length;for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[zi(t[r])];o===a&&(r=i,o=n),e=Qo(o)?o.call(e):o}return e},Fa.round=xl,Fa.runInContext=e,Fa.sample=function(e){return(Uo(e)?Ya:Qn)(e)},Fa.size=function(e){if(null==e)return 0;if($o(e))return ss(e)?ma(e):e.length;var t=pi(e);return t==A||t==O?e.size:zn(e).length},Fa.snakeCase=Gs,Fa.some=function(e,t,n){var r=Uo(e)?Rt:rr;return n&&bi(e,t,n)&&(t=a),r(e,li(t,3))},Fa.sortedIndex=function(e,t){return ir(e,t)},Fa.sortedIndexBy=function(e,t,a){return or(e,t,li(a,2))},Fa.sortedIndexOf=function(e,t){var a=null==e?0:e.length;if(a){var n=ir(e,t);if(n<a&&Bo(e[n],t))return n}return-1},Fa.sortedLastIndex=function(e,t){return ir(e,t,!0)},Fa.sortedLastIndexBy=function(e,t,a){return or(e,t,li(a,2),!0)},Fa.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var a=ir(e,t,!0)-1;if(Bo(e[a],t))return a}return-1},Fa.startCase=Ks,Fa.startsWith=function(e,t,a){return e=vs(e),a=null==a?0:sn(ps(a),0,e.length),t=cr(t),e.slice(a,a+t.length)==t},Fa.subtract=Al,Fa.sum=function(e){return e&&e.length?Zt(e,nl):0},Fa.sumBy=function(e,t){return e&&e.length?Zt(e,li(t,2)):0},Fa.template=function(e,t,n){var r=Fa.templateSettings;n&&bi(e,t,n)&&(t=a),e=vs(e),t=ks({},t,r,Xr);var i,o,s=ks({},t.imports,r.imports,Xr),l=Ms(s),c=Jt(s,l),u=0,d=t.interpolate||we,m="__p += '",h=Ce((t.escape||we).source+"|"+d.source+"|"+(d===X?me:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(h,(function(t,a,n,r,s,l){return n||(n=r),m+=e.slice(u,l).replace(ke,ia),a&&(i=!0,m+="' +\n__e("+a+") +\n'"),s&&(o=!0,m+="';\n"+s+";\n__p += '"),n&&(m+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),m+="';\n";var g=je.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new Ae("Invalid `variable` option passed into `_.template`")}else m="with (obj) {\n"+m+"\n}\n";m=(o?m.replace(V,""):m).replace(U,"$1").replace(W,"$1;"),m="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var f=Xs((function(){return Se(l,p+"return "+m).apply(a,c)}));if(f.source=m,Yo(f))throw f;return f},Fa.times=function(e,t){if((e=ps(e))<1||e>m)return[];var a=p,n=va(e,p);t=li(t),e-=p;for(var r=Yt(n,t);++a<e;)t(a);return r},Fa.toFinite=hs,Fa.toInteger=ps,Fa.toLength=gs,Fa.toLower=function(e){return vs(e).toLowerCase()},Fa.toNumber=fs,Fa.toSafeInteger=function(e){return e?sn(ps(e),-9007199254740991,m):0===e?e:0},Fa.toString=vs,Fa.toUpper=function(e){return vs(e).toUpperCase()},Fa.trim=function(e,t,n){if((e=vs(e))&&(n||t===a))return Qt(e);if(!e||!(t=cr(t)))return e;var r=ha(e),i=ha(t);return kr(r,ta(r,i),aa(r,i)+1).join("")},Fa.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===a))return e.slice(0,pa(e)+1);if(!e||!(t=cr(t)))return e;var r=ha(e);return kr(r,0,aa(r,ha(t))+1).join("")},Fa.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===a))return e.replace(re,"");if(!e||!(t=cr(t)))return e;var r=ha(e);return kr(r,ta(r,ha(t))).join("")},Fa.truncate=function(e,t){var n=30,r="...";if(es(t)){var i="separator"in t?t.separator:i;n="length"in t?ps(t.length):n,r="omission"in t?cr(t.omission):r}var o=(e=vs(e)).length;if(oa(e)){var s=ha(e);o=s.length}if(n>=o)return e;var l=n-ma(r);if(l<1)return r;var c=s?kr(s,0,l).join(""):e.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),is(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Ce(i.source,vs(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var m=u.index;c=c.slice(0,m===a?l:m)}}else if(e.indexOf(cr(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Fa.unescape=function(e){return(e=vs(e))&&K.test(e)?e.replace($,ga):e},Fa.uniqueId=function(e){var t=++ze;return vs(e)+t},Fa.upperCase=Zs,Fa.upperFirst=Ys,Fa.each=vo,Fa.eachRight=bo,Fa.first=Wi,sl(Fa,function(){var e={};return wn(Fa,(function(t,a){je.call(Fa.prototype,a)||(e[a]=t)})),e}(),{chain:!1}),Fa.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fa[e].placeholder=Fa})),Ct(["drop","take"],(function(e,t){Va.prototype[e]=function(n){n=n===a?1:ya(ps(n),0);var r=this.__filtered__&&!t?new Va(this):this.clone();return r.__filtered__?r.__takeCount__=va(n,r.__takeCount__):r.__views__.push({size:va(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Va.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var a=t+1,n=1==a||3==a;Va.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:a}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var a="take"+(t?"Right":"");Va.prototype[e]=function(){return this[a](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var a="drop"+(t?"":"Right");Va.prototype[e]=function(){return this.__filtered__?new Va(this):this[a](1)}})),Va.prototype.compact=function(){return this.filter(nl)},Va.prototype.find=function(e){return this.filter(e).head()},Va.prototype.findLast=function(e){return this.reverse().find(e)},Va.prototype.invokeMap=Yn((function(e,t){return"function"==typeof e?new Va(this):this.map((function(a){return Tn(a,e,t)}))})),Va.prototype.reject=function(e){return this.filter(jo(li(e)))},Va.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Va(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Va.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Va.prototype.toArray=function(){return this.take(p)},wn(Va.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fa[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Fa.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Va,c=s[0],u=l||Uo(t),d=function(e){var t=i.apply(Fa,Nt([e],s));return r&&m?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var m=this.__chain__,h=!!this.__actions__.length,p=o&&!m,g=l&&!h;if(!o&&u){t=g?t:new Va(this);var f=e.apply(t,s);return f.__actions__.push({func:ho,args:[d],thisArg:a}),new qa(f,m)}return p&&g?e.apply(this,s):(f=this.thru(d),p?r?f.value()[0]:f.value():f)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Fa.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var r=this.value();return t.apply(Uo(r)?r:[],e)}return this[a]((function(a){return t.apply(Uo(a)?a:[],e)}))}})),wn(Va.prototype,(function(e,t){var a=Fa[t];if(a){var n=a.name+"";je.call(Ta,n)||(Ta[n]=[]),Ta[n].push({name:t,func:a})}})),Ta[Br(a,2).name]=[{name:"wrapper",func:a}],Va.prototype.clone=function(){var e=new Va(this.__wrapped__);return e.__actions__=Pr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pr(this.__views__),e},Va.prototype.reverse=function(){if(this.__filtered__){var e=new Va(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Va.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,a=Uo(e),n=t<0,r=a?e.length:0,i=function(e,t,a){var n=-1,r=a.length;for(;++n<r;){var i=a[n],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=va(t,e+o);break;case"takeRight":e=ya(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=i.start,s=i.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,d=u.length,m=0,h=va(l,this.__takeCount__);if(!a||!n&&r==l&&h==l)return pr(e,this.__actions__);var p=[];e:for(;l--&&m<h;){for(var g=-1,f=e[c+=t];++g<d;){var y=u[g],v=y.iteratee,b=y.type,w=v(f);if(2==b)f=w;else if(!w){if(1==b)continue e;break e}}p[m++]=f}return p},Fa.prototype.at=po,Fa.prototype.chain=function(){return mo(this)},Fa.prototype.commit=function(){return new qa(this.value(),this.__chain__)},Fa.prototype.next=function(){this.__values__===a&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Fa.prototype.plant=function(e){for(var t,n=this;n instanceof Ha;){var r=Li(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fa.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Va){var t=e;return this.__actions__.length&&(t=new Va(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Ji],thisArg:a}),new qa(t,this.__chain__)}return this.thru(Ji)},Fa.prototype.toJSON=Fa.prototype.valueOf=Fa.prototype.value=function(){return pr(this.__wrapped__,this.__actions__)},Fa.prototype.first=Fa.prototype.head,Qe&&(Fa.prototype[Qe]=function(){return this}),Fa}();gt?((gt.exports=fa)._=fa,pt._=fa):ht._=fa}).call(qt)}(rfe,rfe.exports);var ife=rfe.exports;function ofe(e){const[a,n]=c(),r=i(nM),o=e.date??r?.intervalStart??gn(new Date),s=t.useRef(null),[u,d]=c(null),[m,h]=c("bottom");if(l((()=>{const t=()=>{let t=s.current?.clientWidth;if(!t)return;const a=function(){if("bottom"===e.chartPosition||"right"===e.chartPosition)return e.chartPosition;if(!e.chartPosition||"responsive"!==e.chartPosition)return"bottom";let t=s.current?.clientWidth;return t?t<150?"bottom":"right":"bottom"}();"right"===a&&(t/=2),h(a),d(Math.floor(t/24))},a=ife.debounce(t,1e3);return window.addEventListener("resize",a),t(),()=>{window.removeEventListener("resize",a)}}),[e.chartPosition]),td((function(){null!==u&&("noTrend"===e.previewState?n({[Ri(o)]:{value:5e3}}):"loading"!==e.previewState&&ad(on(o,{days:-1*u}),o,[e.dataType],!!e.previewState).then((t=>{n(t[e.dataType.dailyDataType])})).catch((e=>{console.error("Error loading data",e),n(void 0)})))}),["externalAccountSyncComplete"],[u,e.dataType,e.previewState,e.date,r?.intervalStart]),!u)return t.createElement("div",{ref:s});const p=!!a&&Object.values(a).some((e=>e.value>0));if(e.hideIfNoRecentData&&!p)return null;const g=!!a&&Object.values(a).some((e=>e.value>0&&!!e.threshold)),f=["mdhui-micro-trend"];return"right"===m&&f.push("mdhui-micro-trend-chart-right"),e.indicator&&f.push("mdhui-micro-trend-has-indicator"),e.onClick?t.createElement("div",{ref:e.innerRef,key:e.dataType.dailyDataType},t.createElement(k,{className:f.join(" "),onClick:e.onClick},t.createElement("div",{ref:s},t.createElement(sfe,{barsToDisplay:u,date:o,results:a,dataType:e.dataType,widthReferenceRef:s,showChart:g,hasRecentData:p,indicator:e.indicator})))):t.createElement("div",{ref:e.innerRef,className:f.join(" "),key:e.dataType.dailyDataType},t.createElement("div",{ref:s},t.createElement(sfe,{barsToDisplay:u,date:o,results:a,dataType:e.dataType,widthReferenceRef:s,showChart:g,hasRecentData:p,indicator:e.indicator})))}function sfe(e){const a=i(Ua),n=eu(e.dataType.dailyDataType),r=e.dataType.formatter??n.formatter,o=Ri(e.date),s=e.results?.[o]?.value??0,l=0===s,c=l?"--":r(s),u=[];for(var d=-1*e.barsToDisplay;d<=0;d++){const t=Ri(on(e.date,{days:d})),a=e.results?.[t],n=a?.value??0,r=a?.threshold??0,i=a?.relativePercent??0;u.push({barFillPercent:i,color:(n>r?e.dataType.overThresholdColor??e.dataType.color:e.dataType.color)||"var(--mdhui-color-primary)",opacity:0===d?1:.4})}let m=De(a.colorScheme,e.dataType.color)||"var(--mdhui-color-primary)";return l&&(m="var(--mdhui-text-color-3)"),t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-micro-trend-label",style:{color:m}},e.dataType.icon??eu(e.dataType.dailyDataType).icon," ",e.dataType.label??eo(eu(e.dataType.dailyDataType).labelKey)),t.createElement("div",{style:{color:l?"var(--mdhui-text-color-3)":void 0},className:"mdhui-micro-trend-value"},!e.results&&t.createElement(Me,{icon:H,spin:!0,style:{fontSize:".7em"}}),e.results&&c),t.createElement("div",{className:"mdhui-micro-trend-chart"},e.hasRecentData&&e.showChart&&e.results&&t.createElement(oye,{variant:"rounded",gap:4,style:{height:"100%"},bars:u,averageFillPercent:.5})),e.indicator&&t.createElement("div",{className:"mdhui-micro-trend-indicator"},e.indicator))}w(".mdhui-most-recent-notification .mdhui-notification {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-most-recent-notification .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var lfe=[{id:"1",identifier:"SurveyReminder-Thanks",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:on(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder-Fitbit",sentDate:on(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder-Fitbit2",sentDate:on(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1},{id:"6",identifier:"EmailSurveyReminder",sentDate:on(new Date,{days:-3}).toISOString(),statusCode:"Succeeded",type:"Email",content:{subject:"Subject - Email reminder to complete daily survey",body:"Complete your daily survey to earn rewards!"},recipients:[],contentVersion:1},{id:"7",identifier:"SMSSurveyReminder",sentDate:on(new Date,{days:-4}).toISOString(),statusCode:"Succeeded",type:"Sms",content:{title:"SMS Title - complete daily survey",body:"Visit MDH to complete your daily survey"},recipients:[],contentVersion:1}];function cfe(e){const[a,n]=c(null),[r,i]=c(!0);async function o(){if(i(!0),"loading"!==e.previewState)if("loaded with data"!==e.previewState){if("loaded with no data"===e.previewState)return n(null),void i(!1);var t={limit:1,statusCode:"Succeeded"};if(e.hideAfterHours){var a=on(new Date,{hours:-1*e.hideAfterHours});t.sentAfter=a.toISOString()}if(e.notificationType&&(t.type=e.notificationType),e.notificationIdentifierRegex){const a=await async function(e,t){let a=1;const n=100,r=100,i=20;do{a++,e.limit=Math.min(r,a*i);const n=await b.queryNotifications(e),o=n.notifications.find((e=>e.identifier.match(t)));if(o)return o;if(!n.nextPageID)return null;e.pageID=n.nextPageID}while(a<=n);return null}(t,e.notificationIdentifierRegex);i(!1),a&&n(a)}else{const e=await b.queryNotifications(t);i(!1),e.notifications.length>0&&n(e.notifications[0])}}else{const t=lfe.filter((t=>!e.notificationType||t.type===e.notificationType)),a=t.filter((t=>!e.notificationIdentifierRegex||t.identifier.match(e.notificationIdentifierRegex))),r=a.filter((t=>!e.hideAfterHours||new Date(t.sentDate)>on(new Date,{hours:-1*e.hideAfterHours})));if(r.length>0){const e=r[0];n(e)}else n(null);i(!1)}else n(null)}return td((()=>{!function(e){if(!e)return!0;try{return!(e.source.length>100||(new RegExp(e.source),0))}catch(e){return!1}}(e.notificationIdentifierRegex)?console.error("Invalid regex pattern"):o().catch(console.error)}),[],[e.previewState,e.notificationType,e.notificationIdentifierRegex,e.hideAfterHours]),t.createElement("div",{ref:e.innerRef,className:"mdhui-most-recent-notification"},r&&t.createElement(ZA,null),!r&&t.createElement("div",null,t.createElement(nye,{notification:a}),e.onViewMore&&t.createElement($a,{subtitle:eo("all-notifications"),onClick:e.onViewMore})))}var ufe=[{id:"1",identifier:"SurveyReminder",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:on(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder",sentDate:on(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder",sentDate:on(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1},{id:"6",identifier:"EmailSurveyReminder",sentDate:on(new Date,{days:-3}).toISOString(),statusCode:"Succeeded",type:"Email",content:{subject:"Subject - Email reminder to complete daily survey",body:"Complete your daily survey to earn rewards!"},recipients:[],contentVersion:1},{id:"7",identifier:"SMSSurveyReminder",sentDate:on(new Date,{days:-4}).toISOString(),statusCode:"Succeeded",type:"Sms",content:{title:"SMS Title - complete daily survey",body:"Visit MDH to complete your daily survey"},recipients:[],contentVersion:1}];function dfe(e){const[a,n]=c(!0),[r,i]=c(),[o,s]=c([]),l=t=>{if(n(!0),i(void 0),"loading"===e.previewState)return;if("loaded with data"===e.previewState){const t=ufe.filter((t=>!e.notificationType||t.type===e.notificationType)),a=t.filter((t=>!e.notificationIdentifierRegex||t.identifier.match(e.notificationIdentifierRegex))),r=a.slice(0,e.displayLimit);return s(r),void n(!1)}if("loaded with no data"===e.previewState)return s([]),void n(!1);const a={statusCode:"Succeeded",limit:10};e.notificationType&&(a.type=e.notificationType),r&&(a.pageID=r),b.queryNotifications(a).then((a=>{const r=a.notifications.filter((t=>!e.notificationIdentifierRegex||t.identifier.match(e.notificationIdentifierRegex))),o=(t??[]).concat(r).slice(0,e.displayLimit);s(o),i(!e.displayLimit||o.length<e.displayLimit?a.nextPageID:void 0),n(!1)}))};return td((()=>{s([]),l()}),[],[e.previewState,e.notificationType,e.notificationIdentifierRegex,e.displayLimit]),a||r||0!==o.length||!e.hideWhenEmpty?t.createElement("div",{ref:e.innerRef,className:"mdhui-notification-list"},o.map((e=>t.createElement(eS,{key:e.id.toString()},t.createElement(nye,{notification:e})))),a&&t.createElement(ZA,null),!a&&!r&&0===o.length&&t.createElement(eS,null,t.createElement(Uq,null,eo("no-notifications-received"))),t.createElement(que,{onTrigger:()=>l(o),enabled:!a&&!!r})):null}function mfe(e){const[a,n]=c(!0),[r,i]=c(null);function o(){if("Default"==e.previewState)return i({name:"My Project Name",organization:{name:"My Organization Name",color:"#0076BE",logoUrl:"https://rkstudio.careevolution.com/inv/api/researchkit/organizationbrandingimage/1e1853a2-50d3-4e26-863d-d8546bce63e3"}}),void n(!1);b.getProjectInfo().then((function(e){i(e),n(!1)}))}l((()=>(o(),b.on("applicationDidBecomeVisible",o),()=>{b.off("applicationDidBecomeVisible",o)})),[]);var s=r?.organization.logoUrl;return s&&!s?.startsWith("http")&&(s=b.baseUrl+r?.organization.logoUrl),t.createElement("div",{ref:e.innerRef,className:"mdhui-project-header"},a&&t.createElement(ZA,null),!a&&r&&t.createElement("div",null,t.createElement("div",{style:{backgroundImage:"url('"+s+"')"},className:"logo"}),t.createElement("div",{className:"project-info"},t.createElement("div",{className:"project-name",style:{color:r.organization.color}},r.name),t.createElement("div",{className:"organization-name"},r.organization.name))))}w(".mdhui-project-header\n{\n padding: 16px;\n text-align: center;\n background: #FFF;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n line-height: normal;\n}\n\n .mdhui-project-header .logo\n {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n vertical-align: middle;\n }\n\n .mdhui-project-header .project-info\n {\n display: inline-block;\n text-align: left;\n padding-left: 16px;\n vertical-align: top;\n padding-right: 16px;\n max-width: calc(100% - 80px);\n }\n\n .mdhui-project-header .project-info .project-name\n {\n font-weight: bold;\n font-size: 1.5em;\n max-width: 100%;\n }\n\n .mdhui-project-header .project-info .organization-name\n {\n max-width: 100%;\n color: #333;\n }\n");function hfe(e){const[a,n]=c(!0),[r,i]=c(null);function o(){if("Default"==e.previewState)return i({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void n(!1);b.getProjectInfo().then((function(e){i(e),n(!1)}))}return l((()=>(o(),b.on("applicationDidBecomeVisible",o),()=>{b.off("applicationDidBecomeVisible",o)})),[]),!r||r.supportEmail||r.supportPhone||r.learnMoreLink&&r.learnMoreTitle?t.createElement("div",{ref:e.innerRef,className:"mdhui-project-support"},t.createElement("div",{className:"title"},eo("support")),a&&t.createElement(ZA,null),r?.learnMoreLink&&r?.learnMoreTitle&&t.createElement($a,{indicatorIcon:T,subtitle:r.learnMoreTitle,onClick:()=>b.openEmbeddedUrl(r.learnMoreLink)}),r?.supportEmail&&t.createElement($a,{indicatorIcon:J,subtitle:r.supportEmail,onClick:()=>b.openExternalUrl("mailto:"+r.supportEmail)}),r?.supportPhone&&t.createElement($a,{indicatorIcon:Y,subtitle:r.supportPhone,onClick:()=>b.openExternalUrl("tel:"+r.supportPhone)})):null}w(".mdhui-project-support>.title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-project-support .mdhui-action {\n color: var(--mdhui-color-primary);\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-project-support .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");w(".mdhui-provider-search .search-bar-wrapper {\n text-align: left;\n box-sizing: border-box;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar {\n position: relative;\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar input {\n padding: 0;\n margin: 0;\n border: 0;\n width: 100%;\n line-height: 1.5em;\n padding-left: 40px;\n box-sizing: border-box;\n font-size: .88em;\n padding-top: 8px;\n padding-bottom: 8px;\n border: none;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-text-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar .fa-magnifying-glass {\n position: absolute;\n left: 16px;\n top: 12px;\n color: var(--mdhui-text-color-4);\n font-size: .8em;\n}\n\n.mdhui-provider-search .search-results .provider {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n cursor: pointer;\n font-size: .88em;\n width: 100%;\n display: flex;\n flex-direction: row;\n gap: 16px;\n align-items: center;\n min-height: 61px;\n}\n\n.mdhui-provider-search .search-results .provider .provider-info {\n flex-grow: 1;\n}\n\n\n.mdhui-provider-search .search-results .provider .provider-logo {\n height: 44px;\n width: 72px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n background-color: #FFF;\n border-radius: 4px;\n flex-shrink: 0;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.error-status {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.connected-status {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-provider-search .search-results .provider.disabled {\n cursor: default;\n}");var pfe=[{id:20,name:"1upHealth sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/20/logo",enabled:!0},{id:2,name:"Fitbit",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo",enabled:!0},{id:13,name:"A Woman's Place, LLC",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/13/logo",enabled:!0},{id:130,name:"Abington Jefferson Health",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/130/logo",enabled:!0},{id:41,name:"Access Community Health Network",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/41/logo",enabled:!0},{id:125,name:"Aurora Health Care - myAurora",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/125/logo",enabled:!0},{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo",enabled:!0},{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo",enabled:!0},{id:27,name:"Maui Medical Group",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/27/logo",enabled:!0}];let gfe=0;function ffe(e){const[a,n]=c({}),[r,i]=c([]),[o,u]=c(!0),[d,m]=c(""),[h,p]=c(0),[f,y]=c(0),v=s(d),w=100;async function x(){b.getExternalAccounts().then((function(e){let t={};for(let a=0;a<e.length;a++)t[e[a].provider.id]=e[a];n(t)}))}function A(t){u(!0);let a=++gfe;if(e.publicProviderSearchApiUrl){const n=new URL(e.publicProviderSearchApiUrl);n.searchParams.append("keyword",t),n.searchParams.append("pageSize",String(w)),n.searchParams.append("pageNumber",String(h+1)),fetch(n.toString(),{method:"GET",headers:{Accept:"application/json"}}).then((e=>e.json())).then((function(e){a==gfe&&(S(e.Providers.map((e=>({id:e.ID,name:e.OrganizationName,logoUrl:e.LogoURL,category:e.Category})))||[]),y(e.TotalCount),u(!1))})).catch((function(e){console.error("Error fetching external account providers",e),u(!1)}))}else b.getExternalAccountProviders(t,1==e.providerCategories?.length?e.providerCategories[0]:null,w,h).then((function(e){a==gfe&&(S(e.externalAccountProviders),y(e.totalExternalAccountProviders),u(!1))})).catch((function(e){console.error("Error fetching external account providers",e),u(!1)}))}function S(t){let a=r;""===v.current&&e.featuredProviders&&(a=a.concat(e.featuredProviders),t=t.filter((t=>!e.featuredProviders.find((e=>e.id==t.id))))),i(a.concat(t).filter((t=>-1!=e.providerCategories?.indexOf(t.category))))}const E=(e,t=300)=>{let a;return function(...n){clearTimeout(a),a=setTimeout((()=>e.apply(this,n)),t)}},_=g((()=>E(A,300)),[]);function C(t){var a;a=t.target.value,v.current=a,m(a),i([]),p(0),e.previewState||_(t.target.value)}function O(){x().then((function(){A(v.current)}))}l((()=>(e.previewState?"Default"==e.previewState&&(S(pfe),u(!1)):x().then((function(){A("")})),b.on("applicationDidBecomeVisible",O),()=>{b.off("applicationDidBecomeVisible",O)})),[]),l((()=>{o||A(v.current)}),[h]);return t.createElement("div",{ref:e.innerRef,className:"mdhui-provider-search"},t.createElement("div",{className:"search-bar-wrapper"},t.createElement("div",{className:"search-bar"},t.createElement("input",{title:eo("search"),type:"text",value:d,onChange:e=>C(e),placeholder:eo("search"),spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),t.createElement(Me,{icon:he}))),t.createElement("div",{className:"search-results"},r&&r.map((n=>t.createElement(k,{key:n.id,className:n.enabled?"provider":"provider disabled",onClick:()=>{e.onProviderSelected?e.onProviderSelected(n):function(t){const n=t.id;!t.enabled||e.previewState||a[n]&&"unauthorized"!=a[n].status||b.connectExternalAccount(n,e.connectExternalAccountOptions||{openNewWindow:!0}).then((function(){return e.onProviderConnected&&e.onProviderConnected(t),x()}))}(n)}},t.createElement("div",{className:"provider-info"},t.createElement("div",{className:"provider-name"},n.name),a[n.id]&&"unauthorized"==a[n.id].status&&t.createElement("div",{className:"provider-status error-status"},eo("expired-reconnect")),a[n.id]&&"unauthorized"!=a[n.id].status&&t.createElement("div",{className:"provider-status connected-status"},eo("connected")),!a[n.id]&&!n.enabled&&t.createElement("div",{className:"provider-status connected-status"},(()=>{const e={provider:n.name};n.relatedProvider&&(e.relatedProvider=n.relatedProvider),n.managingOrganization&&(e.managingOrganization=n.managingOrganization);return eo(n.managingOrganization?"provider-disabled-reason-with-managing-organization":"provider-disabled-reason-without-managing-organization",void 0,e)})())),n.logoUrl&&t.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+n.logoUrl+"')"}})))),!o&&!e.hideRequestProviderButton&&(!e.providerCategories||0==e.providerCategories.length||e.providerCategories.includes("Provider")||e.providerCategories.includes("Health Plan"))&&t.createElement($a,{onClick:()=>{b.openEmbeddedUrl("https://help.mydatahelps.org/hc/en-us/requests/new?ticket_form_id=34288897775635")},title:(()=>{let t="";return e.providerCategories&&0!=e.providerCategories.length&&!e.providerCategories.includes("Provider")||(t+=eo("external-accounts-title-providers")),e.providerCategories&&0!=e.providerCategories.length&&!e.providerCategories.includes("Health Plan")||(t.length>0&&(t+=eo("external-accounts-title-divider")),t+=eo("external-accounts-title-health-plans")),`${eo("request-add")} ${t}`})()}),o&&t.createElement(ZA,null)),t.createElement(que,{onTrigger:function(){p(h+1)},enabled:(h+1)*w<f}))}function yfe(e){let[a,n]=c(!0),[r,i]=c(null),o=Ni(),s=on(o,{days:-6}),l=on(o,{days:1});td((()=>{if(n(!0),"loading"!==e.previewState)return"loaded without data"===e.previewState?(i({}),void n(!1)):"loaded with data"===e.previewState?e.previewDataProvider?void e.previewDataProvider(s,l).then((e=>{i(e),n(!1)})):void Ec(s,l,0,2e4).then((e=>{i(e),n(!1)})):void Yc(e.dailyDataType).then((function(t){t?Qc(e.dailyDataType,s,l).then((e=>{i(e),n(!1)})):(i(null),n(!1))}));i({})}),["externalAccountSyncComplete"],[e.previewState]);let u=s,d=[],m=!1;if(r)for(;u<l;){let t={daysAfterStart:An(u,s)};d.push(t);let a=Ri(u);null!=r[a]&&null!=r[a]&&(t.rawValue=r[a],t.value=e.valueConverter?e.valueConverter(r[a]):r[a],t.date=u,m=!0),u=on(u,{days:1})}return t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart",ref:e.innerRef},t.createElement(iM,{order:3,className:"mdhui-recent-daily-data-bar-chart-title"},e.title),t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart-subtitle"},eo("recent-daily-data-bar-chart-subtitle")),t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart-container"},a&&t.createElement(ZA,null),!a&&!m&&t.createElement("div",{className:"mdhui-recent-daily-data-bar-chart-no-data-label"},eo("recent-daily-data-bar-chart-no-data")),t.createElement(_1,{width:"100%",height:200},t.createElement(Eue,{data:d,cx:20},(m||e.emptyDomain)&&t.createElement(tle,{vertical:!1,x:0,horizontal:({y1:e,y2:a,key:n})=>t.createElement("line",{x1:0,y1:e,x2:"100%",y2:a,stroke:"var(--mdhui-background-color-2)",key:n})}),t.createElement(Cce,{dataKey:"value",tick:({x:e,y:a,payload:n})=>t.createElement("text",{x:e-24,y:a+12,fontSize:"11",fontWeight:"bold",textAnchor:"middle",fill:"var(--mdhui-text-color-3)"},(e=>0===e?"":e>=1e4?yl(e/1e3)+"K":yl(e))(n.value)),axisLine:!1,tickLine:!1,interval:0,width:1,domain:m?e.domain:e.emptyDomain,orientation:"right"}),t.createElement(fce,{dataKey:"daysAfterStart",tick:({x:e,y:a,payload:n})=>{let r=n.value,i=on(s,{days:r});return t.createElement("text",{x:e,y:a+8,fontSize:"11",fontWeight:"bold",textAnchor:"middle",fill:"var(--mdhui-text-color-2)"},ol(i))},axisLine:!1,minTickGap:0,tickLine:!1,interval:"preserveStartEnd",padding:{left:20,right:40}}),t.createElement(qie,{key:"bar",type:"monotone",dataKey:"value",radius:[4,4,0,0]},t.createElement(N7,{dataKey:"value",position:"center",content:({x:a,y:n,width:r,value:i,index:o})=>{if(!i)return;let s="var(--mdhui-color-primary)";return e.highlight&&e.highlight(d[o].rawValue)&&(s="#6731AA"),t.createElement("text",{x:a+r/2,y:n-5,fontSize:10,fontWeight:"bold",textAnchor:"middle",fill:s},e.valueFormatter?e.valueFormatter(i):yl(i))}}),d.map(((a,n)=>e.highlight&&e.highlight(a.rawValue)?t.createElement(C1,{fill:"#D8BDF8",key:n}):t.createElement(C1,{fill:"#BBDEFF",key:n}))))))))}w(".mdhui-recent-daily-data-bar-chart {\n position: relative;\n margin-bottom: 48px;\n}\n\n.mdhui-recent-daily-data-bar-chart-title {\n padding: 0 16px;\n}\n\n.mdhui-recent-daily-data-bar-chart-subtitle {\n padding: 0 16px;\n margin-top: 2px;\n font-size: 0.95em;\n}\n\n.mdhui-recent-daily-data-bar-chart-container {\n position: relative;\n margin: 16px 16px 32px;\n padding: 0;\n background: var(--mdhui-background-color-1);\n border-radius: 12px;\n height: 200px;\n}\n\n.mdhui-recent-daily-data-bar-chart .recharts-surface {\n height: 270px !important;\n overflow: visible;\n}\n\n.mdhui-recent-daily-data-bar-chart-no-data-label, .mdhui-recent-daily-data-bar-chart .mdhui-loading-indicator {\n position: absolute;\n width: 120px;\n height: 20px;\n line-height: 20px;\n left: calc(50% - 68px);\n top: calc(50% - 26px);\n border: 1px solid var(--mdhui-border-color-1);\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n padding: 16px 8px;\n text-align: center;\n color: var(--mdhui-text-color-4);\n z-index: 5000;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-recent-daily-data-bar-chart .recharts-cartesian-grid-horizontal line:first-child {\n display: none;\n}");const vfe=o(null);function bfe(e){const[a,n]=c(),[r,i]=c();td((()=>{(()=>{if("default"===e.previewState)return void n(e.dataTypes);const t=e.dataTypes.map((e=>Yc(e.dailyDataType)));Promise.all(t).then((t=>{n(e.dataTypes.filter(((e,a)=>t[a])))}))})()}),["externalAccountSyncComplete"],[e.dataTypes,e.previewState]);return t.createElement("div",{ref:e.innerRef},!a&&t.createElement(ZA,null),a&&t.createElement(vfe.Provider,{value:{dataTypes:a,data:r}},t.createElement(rM,{initialIntervalStart:Ni(),intervalType:"Day",useCustomNavigator:!0},t.createElement(wfe,{loadData:async(t,a)=>{if(!e.dataTypes.length)return Promise.resolve();i(await ad(t,a,e.dataTypes,!!e.previewState))},dayRenderer:n=>{if(!e.dataTypes.length||!a?.length)return null;let i=a.map((e=>{const t=r?.[e.dailyDataType]?.[n],a=t?.relativePercent??0;if(void 0===a)return{color:"var(--mdhui-color-primary)",barFillPercent:0};const i=t?.value??0;let o=e.color||"var(--mdhui-color-primary)";return void 0!==e.threshold&&"30DayAverage"!==e.threshold&&i>e.threshold&&e.overThresholdColor&&(o=e.overThresholdColor),{color:o,barFillPercent:a}}));return t.createElement("div",{style:{paddingTop:"8px"}},t.createElement(oye,{averageFillPercent:.5,bars:i}))},dependencies:[e.previewState,e.dataTypes]}),r&&e.children)))}function wfe(e){const a=i(nM);return t.createElement(Lfe,{selectedDate:a.intervalStart,loadData:e.loadData,dayRenderer:e.dayRenderer,dependencies:e.dependencies})}function kfe(e){let[a,n]=c(void 0),r=i(vfe),o=s(0),l=e.dataTypes||[];e.useContext&&r?.dataTypes&&(l=[...r.dataTypes]);let u=i(nM),d=e.date??u?.intervalStart??gn(new Date);if(td((()=>{!function(){function t(e){if(!e)return;let t={};return l.forEach((a=>{e[a.dailyDataType]?.[Ri(d)]?.value&&(t[a.dailyDataType]=e[a.dailyDataType][Ri(d)])})),t}if(n(void 0),e.useContext){if(!r?.data)return;return void n(t(r.data))}let a=++o.current;ad(d,d,l,!!e.previewState).then((e=>{a==o.current&&n(t(e))}))}()}),["externalAccountSyncComplete"],[u,r,e.date,e.dataTypes]),!a||!Object.keys(a).length)return null;function m(e,t){if(l.every((e=>void 0===e.threshold)))return;return eu(e.dailyDataType).formatter(t)}return t.createElement("div",{ref:e.innerRef,className:"mdhui-relative-activity"},e.title&&t.createElement(tS,{title:e.title}),l.map((e=>{let n=a[e.dailyDataType];if(!n||void 0===n.threshold||void 0===n.relativePercent)return null;let r=eu(e.dailyDataType),i=e.formatter||r.formatter;return t.createElement("div",{key:e.dailyDataType,className:"mdhui-relative-activity-datatype"},t.createElement(Ga,{className:"mdhui-relative-activity-meter",label:e.label||(r.labelKey?eo(r.labelKey):e.dailyDataType),value:i(n.value),fillPercent:n.relativePercent,averageFillPercent:.5,icon:e.icon||r.icon,color:(o=e,s=n.relativePercent,void 0!==o.threshold&&o.overThresholdColor&&s>.5?o.overThresholdColor:o.color||"var(--mdhui-color-primary)"),thresholdLabel:m(e,n.threshold)}));var o,s})),l.every((e=>void 0===e.threshold))&&t.createElement("div",{className:"mdhui-relative-activity-average-marker"},t.createElement("div",null,t.createElement(Me,{icon:C})),eo("30-day-average")))}function xfe(e){return t.createElement(kfe,{date:gn(new Date),dataTypes:e.dataTypes,previewState:e.previewState,title:e.title,innerRef:e.innerRef})}w(".mdhui-relative-activity .mdhui-relative-activity-datatype {\n position: relative;\n}\n\n.mdhui-relative-activity .mdhui-relative-activity-meter {\n margin: 16px;\n}\n\n.mdhui-relative-activity .mdhui-relative-activity-average-marker {\n text-align: center;\n margin: 16px;\n font-size: .7em;\n margin-bottom: 16px;\n color: var(--mdhui-text-color-2);\n}");function Afe(e){const[a,n]=c(!1),[r,i]=c({});var o=new Date(e.year,e.month,1,0,0,0,0),s=on(o,{months:1});function u(){var t,a;"NoData"!==e.showPreviewData&&("Loading"!==e.showPreviewData?(n(!0),(t=e.dataTypeSource,a=Li.RestingHeartRate,"AppleHealth"==t&&(a=Li.AppleHealthRestingHeartRate),"Fitbit"==t&&(a=Li.FitbitRestingHeartRate),"Garmin"==t&&(a=Li.GarminRestingHeartRate),"HealthConnect"==t&&(a=Li.HealthConnectRestingHeartRate),Qc(a,o,s,void 0!==e.showPreviewData).then((function(e){i(e)}))).then((()=>n(!1)))):n(!0))}return l((()=>(u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),()=>{b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)})),[e]),t.createElement("div",{ref:e.innerRef},a&&t.createElement(ZA,null),!a&&t.createElement(QA,{year:e.year,month:e.month,dayRenderer:function(e,a,n){const i=function(e,t,a){if(void 0!==a){var n=Ri(new Date(e,t,a));return r[n]}}(e,a,n);return void 0!==n?t.createElement("div",{className:"mdhui-calendar-day-with-data-value"},t.createElement("div",{className:"calendar-value"},i),t.createElement("div",{className:"calendar-day"},n)):t.createElement("div",null)}}))}async function Sfe(e,t,a,n,r){var i=await Wc(Ri(e)+t);return{id:"00000000-0000-0000-0000-000000000000",surveyID:"00000000-0000-0000-0000-000000000000",surveyResultID:"00000000-0000-0000-0000-000000000000",surveyVersion:0,surveyName:a,surveyDisplayName:a,date:e.toISOString(),stepIdentifier:t,resultIdentifier:t,answers:[(i%(r-n)+n).toString()],insertedDate:e.toISOString()}}w(".mdhui-calendar-day-with-data-value .calendar-value {\n\theight: 32px;\n\twidth: 32px;\n\tfont-size: 12px;\n\tborder-radius: 17px;\n\tline-height: 34px;\n\ttext-align: center;\n\tbackground: var(--mdhui-background-color-1);\n\tfont-weight: bold;\n\tdisplay: inline-block;\n}\n\n.mdhui-calendar-day-with-data-value .calendar-day {\n\ttext-align: center;\n}");function Efe(e){let[a,n]=c(null);const r=i(nM);let o,s=e.intervalType||"Month";r?(s="Day"===r.intervalType?"Week":r.intervalType,o=r.intervalStart):o=iu(s,e.weekStartsOn);let l="Week"===s?on(o,{days:7}):"Month"===s?on(o,{months:1}):"6Month"===s?on(o,{months:6}):o;const u=()=>{if(n(null),e.previewDataProvider)e.previewDataProvider(o,l).then((e=>{n(e)}));else if(e.previewState)(async(e,t,a,n)=>{const r=[];a.forEach((e=>r.push([])));let i=new Date(e);for(;i<t;){for(let e=0;e<a.length;++e){var o=await Sfe(i,"TestResult"+e,"TestSurvey",10,100);r[e].push(o)}i=on(i,n)}return r})(o,l,e.series,e.expectedDataInterval||{days:1}).then((e=>{n(e)}));else{var t=e.series.map((e=>{var t={after:o.toISOString(),before:l.toISOString()};return e.surveyName&&(t.surveyName=e.surveyName),e.resultIdentifier&&(t.resultIdentifier=e.resultIdentifier),e.stepIdentifier&&(t.stepIdentifier=e.stepIdentifier),cu(t)}));Promise.all(t).then((e=>{n(e)}))}};function d(e){return`${e.surveyName}-${e.stepIdentifier}-${e.resultIdentifier}`}td((()=>{u()}),[],[e.intervalType,e.weekStartsOn,r]);let m=function(t){for(var a={},n=0;n<e.series.length;n++)a[d(e.series[n])]=t[n]?.sort(((e,t)=>vn(Ei(e.date),Ei(t.date))))||[];return a}(a||[]);var h=void 0,p=!1;null!==m&&(h=[],e.series.forEach((e=>{var t=d(e);m[t].forEach((t=>{var a=Ei(t.date);a.setHours(0,0,0,0);var n=h.find((e=>e.timestamp===a.getTime()));n||(n={timestamp:a.getTime()},h.push(n)),n[e.dataKey]=parseFloat(t.answers[0]),p=!0}))})),h.sort(((e,t)=>e.timestamp-t.timestamp)));return t.createElement(jue,{title:e.title,intervalType:s,intervalStart:o,data:h,expectedDataInterval:e.expectedDataInterval,series:e.series.map((e=>{const t={dataKey:e.dataKey,color:e.color};return"areaColor"in e&&(t.areaColor=e.areaColor),t})),chartHasData:p,tooltip:({active:a,payload:n})=>{function r(t,a){return t.stroke||function(t,a){var n=e.options?e.options[a]:null;return n?Array.isArray(n)?n[t]:n:"var(--mdhui-color-primary)"}(a,"barColor")}return a&&n&&n.length?1===n.length?t.createElement("div",{className:"mdhui-time-series-tooltip"},t.createElement("div",{className:"mdhui-single-value-tooltip-value"},yl(parseFloat(n[0].value),2)),t.createElement("div",{className:"mdhui-time-series-tooltip-date"},il(new Date(n[0].payload.timestamp)))):t.createElement("div",{className:"mdhui-time-series-tooltip"},t.createElement("table",{className:"mdhui-multiple-value-tooltip"},t.createElement("tbody",null,n.map(((e,a)=>t.createElement("tr",{key:e.dataKey},t.createElement("th",{style:{color:r(e,a)}},e.dataKey),t.createElement("td",null,yl(parseFloat(e.value),2))))))),t.createElement("div",{className:"mdhui-time-series-tooltip-date"},il(new Date(n[0].payload.timestamp)))):null},chartType:e.chartType,options:e.options,innerRef:e.innerRef})}w(".mdhui-survey-task-list .mdhui-single-survey-task {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-survey-task-list .mdhui-single-survey-task:last-child {\n border: none;\n}\n\n.mdhui-survey-task-list .title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-survey-task-list .empty-message {\n padding: 16px;\n font-size: .88em;\n}");var _fe=[{id:"ecf8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Mood Survey",surveyDisplayName:"Mood Survey",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{days:-1}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!0,dueDate:on(new Date,{days:0}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a11",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"Rating: CheckIn",surveyDisplayName:"Let us know how we're doing",surveyDescription:"10 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:void 0,insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{days:1}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a12",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"Rating2: CheckIn",surveyDisplayName:"Rate Later",surveyDescription:"10 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:on(new Date,{years:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"}],Cfe=[{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"complete",endDate:(new Date).toISOString(),hasSavedProgress:!1,dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"complete",hasSavedProgress:!1,endDate:on(new Date,{days:-1}).toISOString(),dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"complete",hasSavedProgress:!1,endDate:on(new Date,{days:-2}).toISOString(),dueDate:on(new Date,{days:10}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"}];function Ofe(e){const[a,n]=c(!0),[r,o]=c(null),[s,l]=c([]),u=i(Ua),d=e=>{o(e),l([])};td((function(){var t=function(e,t){return e.dueDate?t.dueDate?Ei(e.dueDate)>Ei(t.dueDate)?1:Ei(e.dueDate)<Ei(t.dueDate)?-1:0:-1:1};if("IncompleteTasks"==e.previewState)return _fe.sort(t),void d(_fe);if("CompleteTasks"==e.previewState)return void d(Cfe);if("Empty"==e.previewState)return d([]),void n(!1);a=[],r=function(i){var o={status:e.status};return e.surveys&&(o.surveyName=e.surveys),e.category&&(o.surveyCategory=e.category),i&&(o.pageID=i),b.querySurveyTasks(o).then((function(i){a=a.concat(i.surveyTasks),i.nextPageID?r(i.nextPageID):("incomplete"==e.status&&a.sort(t),"complete"==e.status&&a.sort(((e,t)=>e.endDate&&t.endDate?Ei(e.endDate)>Ei(t.endDate)?-1:Ei(e.endDate)<Ei(t.endDate)?1:0:0)),d(a),n(!1))}))},r(null);var a,r}),[],[e.previewState]);const m=e=>s.includes(e.surveyName),h=t=>e.sequential&&r[0].id!==t.id;function p(a){return t.createElement(iye,{buttonColor:e.buttonColor,buttonVariant:e.buttonVariant,key:a.id.toString(),task:a,onClick:()=>(t=>{e.previewState||m(t)||(l([...s,t.surveyName]),b.startSurvey(t.surveyName))})(a),surveyActive:m(a),surveyBlocked:h(a)})}const{hideIfEmpty:g}=e,f="complete"==e.status?g??!0:g;if(!r?.length&&f)return null;let y=e.variant??"noCard";return t.createElement(Pfe,{cardStyle:e.cardStyle,cardBackgroundColor:e.cardBackgroundColor,innerRef:e.innerRef,card:"singleCard"==y},t.createElement("div",{className:"mdhui-survey-task-list"},e.title&&t.createElement(tS,{color:e.titleColor,title:e.title,detailLinkText:e.onDetailLinkClick?eo("view-all")+" ("+(r?.length??0)+")":void 0,onDetailClick:e.onDetailLinkClick}),a&&!r&&t.createElement(ZA,null),!r?.length&&!a&&t.createElement("div",{className:"empty-message"},e.emptyText?.trim()||eo(`empty-tasks-${e.status}`)),r?.slice(0,e.limit).map((a=>"multiCard"==y?t.createElement(eS,{style:e.cardStyle,backgroundColor:De(u.colorScheme,e.cardBackgroundColor),key:a.id},p(a)):p(a)))))}function Pfe(e){const a=i(Ua);return e.card?t.createElement(eS,{style:e.cardStyle,backgroundColor:De(a.colorScheme,e.cardBackgroundColor),innerRef:e.innerRef},e.children):t.createElement("div",{ref:e.innerRef},e.children)}var Tfe=new Date;const Mfe=[{id:"12345",surveyResultID:"1",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"123456",surveyResultID:"1",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[Ni().toISOString()],insertedDate:Date.now.toString()},{id:"123452",surveyResultID:"21",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severity3"],insertedDate:Date.now.toString()},{id:"12223456",surveyResultID:"21",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-1)).toISOString()],insertedDate:Date.now.toString()},{id:"123457",surveyResultID:"2",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["moderate"],insertedDate:Date.now.toString()},{id:"123458",surveyResultID:"2",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-2)).toISOString()],insertedDate:Date.now.toString()},{id:"1234573",surveyResultID:"3",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severity2"],insertedDate:Date.now.toString()},{id:"1234583",surveyResultID:"3",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-3)).toISOString()],insertedDate:Date.now.toString()},{id:"14234573",surveyResultID:"4",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["moderate"],insertedDate:Date.now.toString()},{id:"12345834",surveyResultID:"4",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-4)).toISOString()],insertedDate:Date.now.toString()},{id:"142345736",surveyResultID:"5",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"1234583466",surveyResultID:"5",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-5)).toISOString()],insertedDate:Date.now.toString()},{id:"1423457376",surveyResultID:"6",surveyID:"1",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severity1"],insertedDate:Date.now.toString()},{id:"1234583466",surveyResultID:"6",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-6)).toISOString()],insertedDate:Date.now.toString()},{id:"12374597",surveyResultID:"7",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-7)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"123874598",surveyResultID:"8",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-8)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"1238745998",surveyResultID:"9",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:_n(nn(Tfe,-8)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"10234583466",surveyResultID:"10",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[_n(nn(Tfe,-9)).toISOString()],insertedDate:Date.now.toString()},{id:"1237459710",surveyResultID:"10",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["mild"],insertedDate:Date.now.toString()},{id:"10234583466",surveyResultID:"11",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[gn(nn(Tfe,-9)).toISOString()],insertedDate:Date.now.toString()},{id:"1237459710",surveyResultID:"11",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:Tfe.toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"12387459988",surveyResultID:"12",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:_n(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["severe"],insertedDate:Date.now.toString()},{id:"102345834898",surveyResultID:"12",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:_n(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[_n(nn(Tfe,-10)).toISOString()],insertedDate:Date.now.toString()},{id:"123745971013",surveyResultID:"13",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityValue",answers:["moderate"],insertedDate:Date.now.toString()},{id:"1023458346613",surveyResultID:"13",surveyID:"2",surveyVersion:1,surveyName:"Survey 1",surveyDisplayName:"test",date:gn(nn(Tfe,-10)).toISOString(),stepIdentifier:"1",resultIdentifier:"severityDate",answers:[_n(nn(Tfe,-10)).toISOString()],insertedDate:Date.now.toString()}];function Dfe(e){const a={surveyName:e.surveyName,resultIdentifier:e.dateRecordedResultIdentifier?[e.dateRecordedResultIdentifier,e.severityResultIdentifier]:[e.severityResultIdentifier]},[n,r]=c(),o=i(nM);let s=o?.intervalStart??e.intervalStart??Tn(new Date);function l(t){var a=new Map,n=function(t){var a=new Map;return t.forEach((t=>{var n=a.get(t.surveyResultID)??{dateObservedAnswer:void 0,severityAnswer:void 0};t.answers&&""!==t.answers[0]&&(t.resultIdentifier===e.severityResultIdentifier?n.severityAnswer=t:t.resultIdentifier===e.dateRecordedResultIdentifier&&(n.dateObservedAnswer=t),a.set(t.surveyResultID,n))})),a}(t);const i=e.severityValueMapper??function(e){let t="";return["mild","moderate","severe"].includes(e.toLowerCase())&&(t=e.toLowerCase()),t};n.forEach((e=>{if(e.severityAnswer){var t=i(e.severityAnswer.answers[0]);if(t){let n=Ei(e.dateObservedAnswer?e.dateObservedAnswer.answers[0]:e.severityAnswer.date),r=il(gn(n)),i=a.get(r);i?e.severityAnswer.date>i.dateEntered&&(i.dateObserved=n,i.severity=t,i.dateEntered=e.severityAnswer.date):a.set(r,{dateObserved:n,severity:t,dateEntered:e.severityAnswer.date})}}})),r(a)}const u={mild:{style:{background:"#F7DA19"},streak:!0,streakColor:"#FDEF97"},moderate:{style:{background:"var(--mdhui-color-warning)"},streak:!0,streakColor:"#FCCCC7"},severe:{style:{background:"var(--mdhui-color-danger)"},streak:!0,streakColor:"#FCCCC7"}},d=e=>{let t=il(gn(e));return n?.get(t)?.severity??""},m=(e,a,n)=>t.createElement(XA,{year:e,month:a,day:n,stateConfiguration:u,computeStateForDay:d});return td((async function(){e.previewState?l("Default"===e.previewState?Mfe:[]):cu(a).then((e=>{l(e)}))}),[],[e.previewState]),n?t.createElement(QA,{innerRef:e.innerRef,className:"mdhui-simple-calendar",year:s.getFullYear(),month:s.getMonth(),dayRenderer:m}):t.createElement(ZA,{innerRef:e.innerRef})}function Ife(e){const a=i(nM),n=a?.intervalStart??Ni(),[r,o]=c(!0),[s,l]=c();td((()=>{if(o(!0),"loading"!==e.previewState)return e.previewState?(l("with data"===e.previewState?Math.floor(7*Math.random()):void 0),void o(!1)):void Md(n).then((e=>{l(e),o(!1)}))}),[],[e.previewState,a?.intervalStart]);return t.createElement("div",{className:"mdhui-stress-level",ref:e.innerRef},t.createElement("div",{className:"mdhui-stress-level-title"},eo("stress-level-title")),r&&t.createElement(ZA,null),!r&&t.createElement(cM,{tickCount:7,minLabel:eo("stress-level-min-label"),maxLabel:eo("stress-level-max-label"),value:s,onChange:t=>(t=>{l(t),e.previewState||(t?Dd(n,t):Id(n))})(t),sliderColor:"#d36540"}))}w(".mdhui-stress-level {\n padding: 16px 0 0;\n}\n\n.mdhui-stress-level-title {\n text-transform: uppercase;\n margin: 0 16px;\n font-size: 0.65em;\n}\n\n.mdhui-stress-level .mdhui-loading-indicator {\n padding: 16px 16px 32px;\n}");let Nfe=[{Title:"Rapid Tests",Link:"https://medlineplus.gov/lab-tests/rapid-tests?utm_source=mplusconnect&utm_medium=service",Summary:'\n<h2>What are rapid tests?</h2>\n<p>Rapid tests, also known as rapid diagnostic tests or RDTs, are easy-to-use tests that provide quick results, usually in 20 minutes or less. Unlike most standard tests, which have to be sent to a lab, rapid tests are done and provide results at the point of care. The point of care is the place where you are getting care. It can include your provider\'s office, a clinic, or even your own home.</p>\n<p>Rapids tests usually include the following steps:</p>\n<ul>\n<li>You will provide a sample of your body fluid, such as <a data-tid="6037" href="https://medlineplus.gov/blood.html">blood</a>, urine, saliva, or nasal secretions.</li>\n<li>The sample is mixed with a special substance that will cause a chemical reaction if a disease or other condition is present.</li>\n<li>Results will show on a dipstick or rapid test cassette.\n<ul>\n<li>A dipstick is a thin, plastic strip that\'s coated with chemicals. If the test is positive, the dipstick will change colors when placed in the sample.</li>\n<li>A rapid test cassette is a small, plastic case that has a well that holds the sample. The well will show a letter or a symbol to indicate the result.</li>\n</ul>\n</li>\n</ul>\n<p>Most rapid tests are highly accurate, but the results are not always as accurate as standard lab tests. </p>\n<p>Other names: rapid diagnostic tests, RDT\'s point-of-care tests</p><h2>How are they used?</h2>\n<p>Rapid tests are most often used to diagnose <a data-tid="513" href="https://medlineplus.gov/infectiousdiseases.html">infectious diseases</a>, including:</p>\n<ul>\n<li><a data-tid="299" href="https://medlineplus.gov/flu.html">Flu</a></li>\n<li><a data-tid="421" href="https://medlineplus.gov/streptococcalinfections.html">Strep throat</a></li>\n<li><a data-tid="315" href="https://medlineplus.gov/malaria.html">Malaria</a></li>\n<li><a data-tid="1" href="https://medlineplus.gov/hivaids.html">HIV</a></li>\n<li><a data-tid="3181" href="https://medlineplus.gov/covid19coronavirusdisease2019.html">COVID 19</a>. <a data-tid="7627" href="https://medlineplus.gov/covid19testing.html">Rapid tests for COVID-19</a> usually provide results in about 30 minutes.</li>\n</ul>\n<p>Rapid tests are also used in certain <a data-pid="31381" href="https://medlineplus.gov/lab-tests/at-home-medical-tests/">home-based tests</a>, such as pregnancy tests.</p><h2>What are the advantages and disadvantages of rapid tests?</h2>\n<p>The advantages of rapid tests include:</p>\n<ul>\n<li><strong>Fast results.</strong> This may allow you to get treatment faster. Faster treatment can reduce the severity of your symptoms, and may help prevent the spread of disease</li>\n<li><strong>Easy to use.</strong> They can be done by non-medical workers and volunteers who have been trained to do the test. You may even be able to perform a rapid test on yourself.</li>\n<li><strong>Little or no special equipment required.</strong> This is especially useful in areas with limited resources or access to specialized labs.</li>\n</ul>\n<p>Disadvantages of rapid tests:</p>\n<ul>\n<li><strong>Lower sensitivity than lab tests.</strong> Sensitivity means how well a test can identify a disease or condition. Rapid tests are not as good as lab tests at finding diseases in the earliest stages of infection.</li>\n<li><strong>False negatives are more common.</strong> A false negative result means your test shows you don\'t have a disease or condition, but you actually do have it.</li>\n</ul>\n<p>Providers will often take a second sample and send it to a lab for testing to confirm or rule out the results of a rapid test. But you may be able to get treatment and help prevent the spread of disease while you wait for lab results.</p><h2>Is there anything else I need to know about rapid tests?</h2>\n<p>Home based rapid tests are available for COVID-19. Like other rapid tests, the rapid COVID-19 tests have lower sensitivity than standard lab tests. But getting fast, home-based results may help prevent the spread of disease. Talk to your health care provider to learn more about these home-based tests.</p><h2>References</h2>\n<ol>\n<li>Centers for Disease Control and Prevention [Internet]. Atlanta: U.S. Department of Health and Human Services; Influenza (Flu): Rapid Influenza Diagnostic Tests; [cited 2021 Jan 26]; [about 5 screens]. Available from: <a href="https://www.cdc.gov/flu/professionals/diagnosis/clinician_guidance_ridt.htm" target="bibliowin">https://www.cdc.gov/flu/professionals/diagnosis/clinician_guidance_ridt.htm</a></li>\n<li>Centers for Disease Control and Prevention [Internet]. Atlanta: U.S. Department of Health and Human Services; Malaria: Rapid Diagnostic Tests: How They Work; [cited 2021 Jan 26]; [about 5 screens]. Available from: <a href="https://www.cdc.gov/malaria/malaria_worldwide/reduction/dx_rdt.html" target="bibliowin">https://www.cdc.gov/malaria/malaria_worldwide/reduction/dx_rdt.html</a></li>\n<li>Emory University [Internet]. Atlanta: Emory University; c2020. What is Rapid Diagnostic Test (RDT)?; [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="http://www.globalhealthprimer.emory.edu/targets-technologies/rapid-diagnostic-test.html" target="bibliowin">http://www.globalhealthprimer.emory.edu/targets-technologies/rapid-diagnostic-test.html</a></li>\n<li>FDA: U.S. Food and Drug Administration [Internet]. Silver Spring (MD): U.S. Department of Health and Human Services; Coronavirus (COVID-19) Update: FDA Authorizes Antigen Test as First Over-the-Counter Fully At-Home Diagnostic Test for COVID-19; 2020 Dec 15 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-authorizes-antigen-test-first-over-counter-fully-home-diagnostic" target="bibliowin">https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-authorizes-antigen-test-first-over-counter-fully-home-diagnostic</a></li>\n<li>FDA: U.S. Food and Drug Administration [Internet]. Silver Spring (MD): U.S. Department of Health and Human Services; Coronavirus (COVID-19) Update: FDA Issued Emergency Use Authorization for Point of Care Antigen Test; 2020 Jul 6 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-issued-emergency-use-authorization-point-care-antigen-test" target="bibliowin">https://www.fda.gov/news-events/press-announcements/coronavirus-covid-19-update-fda-issued-emergency-use-authorization-point-care-antigen-test</a></li>\n<li>GoodRx [Internet]. GoodRx, Inc., c2011–2021. COVID-19 Rapid Tests: Accuracy, Types, and Where to Find Them; 2020 Nov 10 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.goodrx.com/blog/covid-19-rapid-test" target="bibliowin">https://www.goodrx.com/blog/covid-19-rapid-test</a></li>\n<li>Harvard Health Publishing: Harvard Medical School [Internet]. Boston: Harvard University; 2010–2021. Rapid Strep Test; 2019 Dec [cited 2021 Jan 26]; [about 4 screens]. Available from: <a href="https://www.health.harvard.edu/diseases-and-conditions/rapid-strep-test" target="bibliowin">https://www.health.harvard.edu/diseases-and-conditions/rapid-strep-test</a></li>\n<li>Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2021. COVID-19 Diagnostic testing: Overview; 2021 Jan 15 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.mayoclinic.org/tests-procedures/covid-19-diagnostic-test/about/pac-20488900" target="bibliowin">https://www.mayoclinic.org/tests-procedures/covid-19-diagnostic-test/about/pac-20488900</a></li>\n<li>Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2021. Urinalysis: Overview; 2019 Oct 23 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.mayoclinic.org/tests-procedures/urinalysis/about/pac-20384907" target="bibliowin">https://www.mayoclinic.org/tests-procedures/urinalysis/about/pac-20384907</a></li>\n<li>Poole S, Townsend J, Wertheim H, Kidd SP, Welte T, Schuetz P, Luyt CE, Beishuizen A, Jensen JS, Del Castillo JG, Plebani M, Saeed K. How are rapid diagnostic tests for infectious diseases used in clinical practice: a global survey by the International Society of Antimicrobial Chemotherapy (ISAC). Eur J Clin Microbiol Infect Dis [Internet]. 2021 Feb; [cited 2021 Jan 26]; 40(2):429–434. Available from: <a href="https://pubmed.ncbi.nlm.nih.gov/32902760" target="bibliowin">https://pubmed.ncbi.nlm.nih.gov/32902760</a></li>\n<li>P.vivax information hub [Internet]. Medicines for Malaria Venture; Rapid Diagnostic Tests (RDTs); [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.vivaxmalaria.org/diagnosis-treatment/diagnostic-methods/rapid-diagnostic-tests-rdts" target="bibliowin">https://www.vivaxmalaria.org/diagnosis-treatment/diagnostic-methods/rapid-diagnostic-tests-rdts</a></li>\n<li>ResearchGate [Internet]. ResearchGate GmbH; c2008–2021. Example of RDT Cassettes; [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.researchgate.net/figure/Example-of-RDT-cassettes-Most-of-the-cassettes-have-separated-wells-for-sample-and_fig2_49830148" target="bibliowin">https://www.researchgate.net/figure/Example-of-RDT-cassettes-Most-of-the-cassettes-have-separated-wells-for-sample-and_fig2_49830148</a></li>\n<li>Very Well Health [Internet]. New York: About, Inc.; c2021. An Overview of Specificity and Sensitivity; [updated 2020 Sep 27; cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.verywellhealth.com/sensitivity-and-specificity-in-medical-testing-overview-4777799" target="bibliowin">https://www.verywellhealth.com/sensitivity-and-specificity-in-medical-testing-overview-4777799</a></li>\n<li>Very Well Health [Internet]. New York: About, Inc.; c2021. Why Your Rapid Flu Test Was Negative; [updated 2020 Apr 2; cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.verywellhealth.com/why-was-my-flu-test-negative-770309" target="bibliowin">https://www.verywellhealth.com/why-was-my-flu-test-negative-770309</a></li>\n<li>World Health Organization [Internet]. Geneva (SUI): World Health Organization; c2021. Advice on the use of point-of-care immunodiagnostic tests for COVID-19; 2020 Apr 8 [cited 2021 Jan 26]; [about 4 screens]. Available from: <a href="https://www.who.int/news-room/commentaries/detail/advice-on-the-use-of-point-of-care-immunodiagnostic-tests-for-covid-19#" target="bibliowin">https://www.who.int/news-room/commentaries/detail/advice-on-the-use-of-point-of-care-immunodiagnostic-tests-for-covid-19#</a></li>\n<li>World Health Organization [Internet]. Geneva (SUI): World Health Organization; c2021. Simple/Rapid Tests; 2014 Jun 27 [cited 2021 Jan 26]; [about 3 screens]. Available from: <a href="https://www.who.int/news-room/q-a-detail/simple-rapid-tests" target="bibliowin">https://www.who.int/news-room/q-a-detail/simple-rapid-tests</a></li>\n</ol>\n\n'},{Title:"COVID-19 Testing",Link:"https://medlineplus.gov/covid19testing.html?utm_source=mplusconnect&utm_medium=service",Summary:'\n<p><a href="https://medlineplus.gov/covid19coronavirusdisease2019.html?utm_source=mplusconnect">COVID-19</a> (coronavirus disease 2019) is a disease caused by a virus called SARS-CoV-2. There are two types of tests for this virus:</p>\n<ul>\n<li>A <strong>viral test</strong> tells you if you have a current infection. Viral tests can either be rapid tests or laboratory tests:\n <ul>\n <li><a href="https://medlineplus.gov/lab-tests/rapid-tests/">Rapid tests</a> can be done in minutes. They are often antigen tests, which look for specific proteins from the virus. Some rapid tests are self-tests which you can do at home.</li> \n <li>Laboratory tests can take days to complete and include <a href="https://medlineplus.gov/lab-tests/pcr-tests/">PCR tests</a>.</li>\n </ul>\n</li>\n<li>An <strong>antibody (serology) test</strong> might tell you if you had a past infection.</li>\n</ul>\n\n<p>If you need a COVID-19 test, you can:</p>\n<ul>\n<li>Buy a self-test online or at a store. Make sure that the test you buy has been authorized by the U.S. Food and Drug Administration (FDA).</li>\n<li>Check your state or local health department\'s website for information on testing in your area.</li>\n<li>Contact your health care provider.</li>\n<li>Order free self-tests from <a href="https://www.covid.gov/tests">COVID.gov</a> for your household, if you live in the U.S. The tests are from the U.S. government.\n</li></ul>\n\n<p>Even if your COVID-19 viral test is negative (the test did not detect the virus), you should still take steps to <a href="https://www.cdc.gov/coronavirus/2019-ncov/prevent-getting-sick/prevention.html">protect yourself and others</a>.</p>\n\n<p class="NLMattribution"> Centers for Disease Control and Prevention</p>\n\n'}];function jfe(e){const[a,n]=c(!0),[r,i]=c(null);return td((function(){if("default"==e.previewState)return i(Nfe),void n(!1);if("noData"==e.previewState)return i([]),void n(!1);let t="";return e.labObservationID?t=new URLSearchParams({LabObservationID:e.labObservationID}).toString():e.term&&(t=new URLSearchParams(e.term).toString()),b.invokeCustomApi("HealthAndWellnessApi.TermInformation","GET",t,!0).then((function(e){i(e),n(!1)}))}),[],[e.labObservationID,e.term]),a?t.createElement(ZA,null):t.createElement("div",{className:"mdhui-term-information"},0==r?.length&&t.createElement(t.Fragment,null,t.createElement(iM,{order:4,defaultMargin:!0},eo("term-information-not-found-header")),t.createElement(Uq,null,eo("term-information-not-found-body"))),r&&r?.length>0&&t.createElement(Uq,{className:"mdhui-term-information-disclaimer"},t.createElement("div",{dangerouslySetInnerHTML:{__html:eo("term-information-disclaimer")}})),r?.map(((a,n)=>t.createElement(eS,{key:n},t.createElement(iM,{order:3,defaultMargin:!0},a.Title),t.createElement(Uq,{className:"mdhui-term-information-html"},function(a){let n=JT(a,{replace:a=>{let n=a;if("a"===n.name){let a=function(t){e.openLinksInNewWindow||(b.openEmbeddedUrl(n.attribs.href),t.preventDefault())};return t.createElement("a",{href:n.attribs.href,target:"_blank",onClick:e=>a(e)},n.children[0].data)}return n}});return n}(a.Summary)),t.createElement(Uq,null,t.createElement("a",{href:a.Link,target:"_blank"},eo("term-information-view-on-medline")))))))}w(".mdhui-term-information .mdhui-term-information-html h2 {\n font-size: 1.2em;\n}\n\n.mdhui-term-information .mdhui-term-information-disclaimer {\n color: var(--mdhui-text-color-2);\n font-size: .7em;\n}");function zfe(e){const[a,n]=c(null),[r,i]=c(!1);function o(e){e=e.filter((e=>"Device Manufacturer"==e.provider.category)),n(e)}if(td((function(){if(e.previewState){let t=vde.filter((e=>"Device Manufacturer"==e.provider.category));return t[0].status=e.previewState,void o(t)}b.getExternalAccounts().then((function(e){o(e)})),sc(!0).then((t=>{0!==e.dataTypes.length?Promise.any(e.dataTypes.map((e=>e.availabilityCheck(t).then((e=>e?Promise.resolve():Promise.reject()))))).then((()=>{i(!0)})).catch((()=>{i(!1)})):i(!1)}))}),["externalAccountSyncComplete"]),!(a&&a.length||r))return null;const s=t.createElement(YA,{color:e.buttonColor,variant:e.buttonVariant||"light",onClick:()=>{}},eo("view"));return t.createElement($a,{innerRef:e.innerRef,className:"mdhui-view-device-activity",renderAs:"div",onClick:()=>e.onClick(),indicator:s},t.createElement(iM,{order:3},e.title||eo("device-activity")),a?.find((e=>"fetchingData"==e.status))&&t.createElement("div",{className:"mdhui-view-device-activity-status"},t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-fetching-data")))}w(".mdhui-view-device-activity .mdhui-view-device-activity-status {\n margin-top: var(--mdhui-padding-md);\n}");function Rfe(e){const[a,n]=c(!1),[r,i]=c(!1);return td((()=>"notConnected"===e.previewState?(n(!1),void i(!1)):e.previewState?(n(!0),void i("fetchingData"===e.previewState)):void Promise.all([b.getExternalAccounts(),b.getDataAvailability()]).then((([e,t])=>{const a=e.filter((e=>["Provider","Health Plan"].includes(e.provider.category)));n(a.length>0||t.appleHealthRecords||t.healthConnectPhr),i(a.some((e=>"fetchingData"===e.status)))}))),["externalAccountSyncComplete"],[e.previewState]),a?t.createElement($a,{className:"mdhui-view-ehr",renderAs:"div",indicator:t.createElement(YA,{color:e.buttonColor,variant:e.buttonVariant||"light",onClick:oM},eo("view")),onClick:e.onClick,innerRef:e.innerRef},t.createElement(iM,{order:3},e.title||eo("health-records")),r&&t.createElement("div",{className:"mdhui-view-ehr-status"},t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-fetching-data"))):null}function Lfe(e){const a=i(nM),[n,r]=c(Ni()),[o,s]=c(on(Ni(),{days:-6})),[l,u]=c(!0);td((()=>{if(!kn(n,Ni()))return r(Ni()),void s(on(Ni(),{days:-6}));u(!0),e.loadData(on(o,{days:-7}),on(o,{days:14})).then((()=>{u(!1)}))}),["externalAccountSyncComplete"],[o,...e.dependencies??[]]);const d=e=>{a?.update({intervalStart:e})};return t.createElement(hye,{innerRef:e.innerRef,startDate:o,onStartDateChange:e=>{s(e),d(on(e,{days:6}))},selectedDate:e.selectedDate,onDateSelected:d,dayRenderer:(t,a,n)=>e.dayRenderer(Ri(new Date(t,a,n))),loading:l})}function Ffe(e){const a=i(nM),n=i(Xge);if(!n)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Meal Buttons must be used within a Meal Coordinator.");const r=t=>{if(e.preview)return void(e.autoLaunchEditor&&e.onEditMeal&&e.onEditMeal());let r=new Date;const i={id:gp(),timestamp:a?on(gn(a.intervalStart),{hours:r.getHours(),minutes:r.getMinutes()}):r,type:t,created:r,lastModified:r};n.addMeal(i).then((()=>{e.autoLaunchEditor&&e.onEditMeal&&kd(i).then(e.onEditMeal)}))};return t.createElement("div",{className:"mdhui-meal-buttons",ref:e.innerRef},t.createElement(YA,{onClick:()=>r("meal"),variant:"light",disabled:n.loading},t.createElement(Me,{icon:G})," ",jd("meal")),t.createElement(YA,{onClick:()=>r("snack"),variant:"light",disabled:n.loading},t.createElement(Me,{icon:re})," ",jd("snack")),t.createElement(YA,{onClick:()=>r("drink"),variant:"light",disabled:n.loading},t.createElement(Me,{icon:me})," ",jd("drink")))}w(".mdhui-view-ehr .mdhui-view-ehr-status {\n margin-top: var(--mdhui-padding-md);\n}");w(".mdhui-meal-log {\n padding: 16px 0 0;\n}\n\n.mdhui-meal-log .mdhui-title {\n padding: 0 16px;\n}\n\n.mdhui-meal-log .mdhui-loading-indicator {\n padding: 16px 16px 32px;\n}\n\n.mdhui-meal-log-empty-text {\n color: var(--mdhui-text-color-3);\n padding: 16px 16px 32px;\n text-align: center;\n}");function Bfe(e){const a=i(Ua),[n,r]=c(!0);return l((()=>{r(!!e.mealImageUrl)}),[e.mealImageUrl]),t.createElement("div",{className:"mdhui-meal",ref:e.innerRef},t.createElement(Hfe,{onClick:e.onClick},t.createElement("div",{className:"mdhui-meal-thumbnail"},!e.mealImageUrl&&t.createElement(t.Fragment,null,"meal"===e.meal.type&&t.createElement(Me,{icon:G}),"snack"===e.meal.type&&t.createElement(Me,{icon:re}),"drink"===e.meal.type&&t.createElement(Me,{icon:me})),e.mealImageUrl&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-meal-thumbnail-image",style:{display:n?"none":"block"}},t.createElement("img",{alt:"meal thumbnail",src:e.mealImageUrl,onLoad:()=>r(!1)})),n&&t.createElement(ZA,{className:"mdhui-meal-loading"})),void 0!==e.number&&t.createElement("div",{className:"mdhui-meal-number",style:{background:De(a.colorScheme,e.color)}},e.number))),t.createElement(Hfe,{onClick:e.onClick},t.createElement("div",{className:"mdhui-meal-info"},t.createElement("div",{className:"mdhui-meal-type"},jd(e.meal.type)," ",e.selected&&t.createElement(Me,{icon:R,color:"var(--mdhui-color-success)"})),t.createElement("div",{className:"mdhui-meal-time"},dl(e.meal.timestamp)),e.meal.description&&t.createElement("div",{className:"mdhui-meal-description"},e.meal.description))),e.onEdit&&t.createElement(k,{onClick:()=>e.onEdit(),style:{height:"100%"}},t.createElement("div",{className:"mdhui-meal-edit-action"},t.createElement(Me,{icon:E}))))}function Hfe(e){return e.onClick?t.createElement(k,{onClick:()=>e.onClick(),style:{height:"100%"}},e.children):t.createElement(t.Fragment,null,e.children)}function qfe(e){const a=i(Xge);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Meal Log must be used within a Meal Coordinator.");return t.createElement("div",{className:"mdhui-meal-log",ref:e.innerRef},t.createElement(iM,{order:3},eo("meal-log-title")),a.loading&&t.createElement(ZA,null),!a.loading&&0===a.meals.length&&t.createElement("div",{className:"mdhui-meal-log-empty-text"},eo("meal-log-no-data")),!a.loading&&a.meals.map(((n,r)=>t.createElement(Bfe,{key:`meal-${r}`,meal:n,mealImageUrl:a.imageUrls[n.id.toString()],number:e.showMealNumbers?r+1:void 0,color:Ne(r),onClick:()=>a.onMealClicked(n),onEdit:()=>(t=>{e.preview?e.onEditMeal():kd(t).then(e.onEditMeal)})(n),selected:!!e.highlightSelectedMeal&&a.selectedMeal===n}))))}w(".mdhui-meal {\n display: grid;\n grid-template-columns: max-content auto max-content;\n align-items: start;\n border-bottom: 1px solid var(--mdhui-border-color-0);\n}\n\n.mdhui-meal .mdhui-unstyled-button {\n display: inline-flex;\n}\n\n.mdhui-meal:last-child {\n border: none;\n}\n\n.mdhui-meal-thumbnail {\n position: relative;\n height: 48px;\n width: 48px;\n line-height: 48px;\n text-align: center;\n color: var(--mdhui-text-color-2);\n background: var(--mdhui-background-color-1);\n border: 1px solid var(--mdhui-border-color-2);\n border-radius: 5px;\n margin: 16px 8px 16px 16px;\n}\n\n.mdhui-meal-thumbnail-image img {\n height: 48px;\n width: 48px;\n object-fit: cover;\n}\n\n.mdhui-meal-loading.mdhui-loading-indicator {\n padding: 0;\n}\n\n.mdhui-meal-number {\n position: absolute;\n top: -6px;\n left: -6px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n font-size: 0.7em;\n font-family: monospace;\n color: #fff;\n text-align: center;\n border-radius: 10px;\n}\n\n.mdhui-meal-number-old {\n font-size: 0.8em;\n height: 24px;\n line-height: 24px;\n padding: 0 8px;\n color: #fff;\n border-radius: 12px;\n margin: 24px 8px 16px 16px;\n}\n\n.mdhui-meal-info {\n margin: 16px 8px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-meal-type {\n font-size: 0.9em;\n font-weight: bold;\n}\n\n.mdhui-meal-time {\n color: var(--mdhui-text-color-1);\n font-size: 0.9em;\n}\n\n.mdhui-meal-description {\n margin-top: 8px;\n font-size: 0.75em;\n}\n\n.mdhui-meal-edit-action {\n margin: 24px 16px 16px;\n color: var(--mdhui-text-color-2);\n}");function Vfe(e){var a=el(e.intervalStart.getFullYear(),e.intervalStart.getMonth());const n=i(Ua);function r(e){return e.data.filter((e=>e)).length}return t.createElement("div",{ref:e.innerRef,className:"mdhui-monthly-event-matrix"},e.rows.length>0&&t.createElement("table",{cellPadding:"0",cellSpacing:"0"},t.createElement("thead",null,e.title&&t.createElement("tr",null,t.createElement("th",{colSpan:100},e.title)),t.createElement("tr",null,t.createElement("td",{className:"mdhui-monthly-event-matrix-title"}),t.createElement("td",null),a.map((e=>t.createElement("td",{key:e.toISOString(),style:{width:75/a.length+"%"}},t.createElement("div",{className:"mdhui-monthly-event-matrix-day-number"},e.getDate())))))),t.createElement("tbody",null,e.rows.map((e=>t.createElement("tr",{key:e.label},t.createElement("td",{className:"mdhui-monthly-event-matrix-row-label"},e.label," "),t.createElement("td",{className:"mdhui-monthly-event-matrix-row-total"},t.createElement("span",null,r(e)>0?r(e):t.createElement(t.Fragment,null," "))),a.map(((r,i)=>t.createElement("td",{key:r.toISOString(),style:{width:75/a.length+"%"}},t.createElement("div",{className:"mdhui-monthly-event-matrix-circle",style:{backgroundColor:e.data[i]?De(n.colorScheme,e.color):"#ddd"}}))))))))))}w(".mdhui-monthly-event-matrix {\n margin: 16px;\n}\n\n.mdhui-monthly-event-matrix table {\n width: 100%;\n page-break-inside: avoid;\n}\n\n.mdhui-monthly-event-matrix table th,\n.mdhui-monthly-event-matrix table td {\n vertical-align: top;\n}\n\n.mdhui-monthly-event-matrix table th {\n text-align: left;\n border: none;\n font-weight: normal;\n font-size: 15px;\n padding: 0;\n padding-bottom: 8px;\n padding-right: 8px;\n}\n\n.mdhui-monthly-event-matrix table thead th {\n text-align: left;\n font-weight: bold;\n font-size: 17px;\n padding-bottom: 8px;\n}\n\n.mdhui-monthly-event-matrix table thead .mdhui-monthly-event-matrix-day-number {\n width: 100%;\n min-width: 20px;\n text-align: center;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-monthly-event-matrix table td {\n padding: 0;\n text-align: center;\n padding-bottom: 8px;\n}\n\n.mdhui-monthly-event-matrix table td.mdhui-monthly-event-matrix-row-label {\n text-align: left;\n border: none;\n font-weight: normal;\n font-size: 15px;\n padding: 0;\n padding-bottom: 8px;\n padding-right: 8px;\n width: 22%;\n}\n\n.mdhui-monthly-event-matrix table td .mdhui-monthly-event-matrix-circle {\n display: inline-block;\n width: 14px;\n height: 14px;\n border-radius: 8px;\n font-size: 9px;\n color: var(--mdhui-background-color-0);\n line-height: 14px;\n text-align: center;\n position: relative;\n}\n\n.mdhui-monthly-event-matrix table td.mdhui-monthly-event-matrix-total {\n padding-right: 8px;\n font-weight: bold;\n font-size: 15px;\n text-align: right;\n width: 3%;\n box-sizing: border-box;\n}");function Ufe(e){const a=s(null);v((()=>{const{current:e}=a;function t(){window.scrollY>0?e?.classList.add("scroll-shadow"):e?.classList.remove("scroll-shadow")}return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}}));let n=["mdhui-navigation-bar"];e.className&&n.push(e.className),"compressed"==e.variant&&n.push("mdhui-navigation-bar-compressed"),"compressedModal"==e.variant&&n.push("mdhui-navigation-bar-compressed-modal");let r=i(Ua);return t.createElement("div",{className:n.join(" "),ref:a,style:{background:De(r?.colorScheme,e.backgroundColor)}},e.showBackButton&&t.createElement("div",{className:"button back-button",onClick:()=>{e.onBack?e.onBack():b.back()},style:{color:De(r?.colorScheme,e.buttonColor)}},t.createElement(Me,{icon:be}),e.backButtonText?e.backButtonText:eo("back")),e.navigationBarLeft&&t.createElement("div",{className:"navigation-bar-left"},e.navigationBarLeft),e.title&&t.createElement("div",{className:"title",style:{color:De(r?.colorScheme,e.titleColor)}},t.createElement("span",null,e.title)),e.subtitle&&t.createElement("div",{className:"subtitle",style:{color:De(r?.colorScheme,e.subtitleColor),marginTop:e.title?"var(--mdhui-padding-sm)":"0"}},t.createElement("span",null,e.subtitle)),e.navigationBarRight&&t.createElement("div",{className:"navigation-bar-right"},e.navigationBarRight),e.showCloseButton&&t.createElement("div",{className:"button close-button",onClick:()=>{e.onClose?e.onClose():b.dismiss()},style:{color:De(r?.colorScheme,e.buttonColor)}},e.closeButtonText?e.closeButtonText:eo("close")),e.children&&t.createElement("div",{className:"children"},e.children))}w(".mdhui-navigation-bar {\n text-align: left;\n padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;\n min-height: calc(56px + env(safe-area-inset-top, 0px));\n margin-bottom: 8px;\n box-sizing: border-box;\n position: -webkit-sticky;\n position: sticky;\n z-index: 2;\n top: 0;\n font-weight: bold;\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed {\n text-align: center;\n font-size: 18px;\n}\n\n.mdhui-navigation-bar .title {\n margin-top: 44px;\n height: 32px;\n line-height: 32px;\n font-size: 1.2em;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed .title {\n margin-top: 6px;\n}\n\n.mdhui-navigation-bar .subtitle {\n font-size: 1em;\n font-weight: 500;\n color: var(--mdhui-text-color-2);\n margin-top: 8px;\n}\n\n.mdhui-navigation-bar.scroll-shadow {\n box-shadow: var(--mdhui-box-shadow-1);\n}\n\n.mdhui-navigation-bar .icon {\n width: 32px;\n vertical-align: middle;\n}\n\n.mdhui-navigation-bar .button {\n position: absolute;\n top: calc(12px + env(safe-area-inset-top, 0px));\n height: 32px;\n line-height: 32px;\n border-radius: 16px;\n font-weight: normal;\n font-size: .88em;\n cursor: pointer;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-navigation-bar .back-button {\n left: 16px;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed-modal {\n text-align: left;\n padding-top: calc(16px + env(safe-area-inset-top, 0px));\n font-size: 18px;\n margin-bottom: 0;\n}\n\n.mdhui-navigation-bar .close-button {\n right: 16px;\n}\n\n.mdhui-navigation-bar .children {\n padding-top: 56px;\n}\n\n.mdhui-navigation-bar.mdhui-navigation-bar-compressed .children {\n padding-top: calc(32px + env(safe-area-inset-top, 0px));\n}");function Wfe(e){const[a,n]=c(!1),r=s(null);return l((()=>{r.current.style.height="1px",r.current.style.height=r.current.scrollHeight+"px"}),[e.value]),t.createElement("textarea",{title:eo("add-notes"),ref:r,onClick:t=>function(t){if(!a&&e.autoTimestamp){n(!0);var i="";e.value.length&&(i=e.value+"\n\n"),i+="-- "+dl(new Date)+" --\n",e.onChange(i),t.stopPropagation(),r.current?.focus()}}(t),onChange:t=>e.onChange(t.target.value),className:"notes-input",placeholder:e.placeholder,value:e.value})}w(".notes-input {\n width: 100%;\n text-align: left;\n border: 0;\n font-size: .88em;\n border: none;\n font-family: Helvetica, Arial, sans-serif;\n padding-top: 16px;\n resize: none;\n background: var(--mdhui-background-color-2);\n border-radius: var(--mdhui-card-border-radius);\n padding: 16px;\n box-sizing: border-box;\n border: solid 1px var(--mdhui-color-primary);\n overflow: hidden;\n -webkit-appearance: none;\n box-shadow: none !important;\n color: var(--mdhui-text-color-1);\n margin-bottom: 16px;\n}");function $fe(e){let a=i(Ua),n=["mdhui-progress-bar"];return e.defaultMargin&&n.push("mdhui-progress-bar-default-margin"),t.createElement("div",{className:n.join(" "),ref:e.innerRef},t.createElement("div",{className:"mdhui-progress-bar-background",style:{background:De(a?.colorScheme,e.backgroundColor)}},t.createElement("div",{className:"mdhui-progress-bar-fill",style:{width:Math.trunc(e.fillPercent)+"%",background:De(a?.colorScheme,e.fillColor)}}),t.createElement(JA,null)),t.createElement("div",{className:"mdhui-progress-steps"},e.steps&&t.createElement(t.Fragment,null,e.steps.map(((e,a)=>t.createElement("div",{key:`${a}-step`,className:"step-icon",style:{left:Math.trunc(e.percent)+"%"}},e.icon))))))}function Gfe(e){let a=i(Ua),n="calc( var(--icon_size) / 2 - "+e.height+" / 2 - 4px)";return t.createElement("span",{style:{border:"2px solid",borderColor:De(a?.colorScheme,e.borderColor),borderRadius:e.height,height:e.height,width:e.height,marginTop:n,backgroundColor:De(a?.colorScheme,e.backgroundColor),padding:"4px 4px"}},e.children)}w(".mdhui-progress-bar {\n\tdisplay: block;\n\twidth: 100%;\n\tposition: relative;\n\t--icon_size: 24px;\n\t--icon_border_width: 2px;\n}\n\n.mdhui-progress-bar.mdhui-progress-bar-default-margin {\n\tmargin: 16px;\n\twidth: calc(100% - 32px)\n}\n\n.mdhui-progress-bar .mdhui-progress-bar-background {\n\tborder-radius: 500px;\n\tborder-width: var(--icon_border_width);\n\tborder-style: none;\n\tbackground: #fff;\n\toverflow: hidden;\n\twidth: 100%;\n\tposition: relative;\n\theight: calc(var(--icon_size) + 4px);\n\tz-index: 1;\n}\n\n.mdhui-progress-bar .mdhui-progress-bar-background .mdhui-progress-bar-fill {\n\tposition: absolute;\n\tmin-height: 1px;\n\theight: calc(var(--icon_size) + 4px);\n\ttop: 0;\n\tborder-radius: var(--icon_size);\n\ttransition: width 1s ease-in-out;\n}\n\n.mdhui-progress-bar .mdhui-progress-steps {\n\ttop: 0;\n\twidth: 100%;\n\tposition: absolute;\n\tz-index: 2;\n\tdisplay: inline-block;\n}\n\n.mdhui-progress-bar .step-icon {\n\tposition: absolute;\n\ttransform: translate(-100%, 0);\n}\n\n.mdhui-progress-bar .step-icon * {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}"),$fe.defaultProps={backgroundColor:"var(--mdhui-background-color-0)",fillColor:"var(--mdhui-color-primary)",fillPercent:0};function Kfe(e){const a=i(Ua);let n=0;e.percentCompleted&&(n=630-e.percentCompleted/100*630);const r={stroke:De(a.colorScheme,e.color),strokeDashoffset:n,animation:e.animate?"mdhui-progress-ring 750ms ease-in-out":void 0,"--mdhui-progress-ring-animation-end":n},o={opacity:e.animate?0:1,animation:e.animate?"fadein 500ms ease-in-out":void 0,animationDelay:"500ms",animationFillMode:"forwards"};return t.createElement("div",{className:"mdhui-progress-ring",style:e.style},t.createElement("svg",null,t.createElement("circle",{cx:"50%",cy:"50%",r:"100"}),t.createElement("circle",{cx:"50%",cy:"50%",r:"100",style:r})),t.createElement("div",{className:"mdhui-progress-ring-content",style:o},e.children))}w("@keyframes mdhui-progress-ring {\n 0% {\n stroke-dashoffset: var(--mdhui-progress-ring-animation-start);\n }\n 100% {\n stroke-dashoffset: var(--mdhui-progress-ring-animation-end);\n }\n}\n\n.mdhui-progress-ring {\n position: relative;\n margin: 0 auto 0 auto;\n width: 220px;\n height: 220px;\n --mdhui-progress-ring-animation-start: 630;\n --mdhui-progress-ring-animation-end: 0;\n}\n\n.mdhui-progress-ring svg {\n width: 220px;\n height: 220px;\n transform: rotate(-90deg);\n}\n\n.mdhui-progress-ring circle {\n margin: 0 auto;\n fill: none;\n stroke-width: 20;\n stroke-dasharray: 630;\n stroke-linecap: round;\n}\n\n.mdhui-progress-ring circle:nth-child(2) {\n stroke: var(--mdhui-color-primary);\n animation-fill-mode: forwards;\n}\n\n.mdhui-progress-ring-content {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}");function Zfe(e){return t.createElement("div",{className:"mdhui-resource",ref:e.innerRef},t.createElement(k,{onClick:()=>e.onClick()},e.imageUrl&&t.createElement("div",{className:"mdhui-resource-image",style:{textAlign:e.imageAlignment??"left"}},t.createElement("img",{src:e.imageUrl,alt:"resource image"})),t.createElement("div",{className:"mdhui-resource-title"},e.title),t.createElement("div",{className:"mdhui-resource-subtitle"},e.subTitle),"button"===e.buttonVariant&&t.createElement("div",{className:"mdhui-button mdhui-resource-button",onClick:oM},e.buttonText||eo("resource-default-button-text")),"link"===e.buttonVariant&&t.createElement("div",{className:"mdhui-resource-link"},e.buttonText||eo("resource-default-button-text"))))}w(".mdhui-resource {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-resource .mdhui-unstyled-button {\n width: 100%;\n padding: 16px;\n}\n\n.mdhui-resource-image {\n width: 100%;\n margin-bottom: 16px;\n}\n\n.mdhui-resource-image img {\n max-width: 100%;\n}\n\n.mdhui-resource-title {\n font-size: 1.3em;\n font-weight: 600;\n}\n\n.mdhui-resource-subtitle {\n font-size: 0.95em;\n margin: 12px 0 0;\n}\n\n.mdhui-resource-button {\n margin: 12px 0 0;\n}\n\n.mdhui-resource-link {\n color: var(--mdhui-color-primary);\n font-weight: 500;\n margin: 16px 0 0;\n}");w(".mdhui-resource-list {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n\n.mdhui-resource-list-empty-text {\n color: var(--mdhui-text-color-3);\n padding: 16px 0;\n}");const Yfe={"no resources":{resources:[]},"some resources":{resources:[{title:"Resource 1 Title",subTitle:"resource 1 subtitle",imageUrl:Ege},{title:"Resource 2 Title",subTitle:"resource 2 subtitle",imageUrl:Ege},{title:"Resource 3 Title",subTitle:"resource 3 subtitle",imageUrl:Ege},{title:"Resource 4 Title",subTitle:"resource 4 subtitle",imageUrl:Ege},{title:"Resource 5 Title",subTitle:"resource 5 subtitle",imageUrl:Ege}]}};function Qfe(e){let a=e.previewState?Yfe[e.previewState].resources:e.resources;return t.createElement("div",{className:"mdhui-resource-list",ref:e.innerRef},t.createElement(t.Fragment,null,a.length>0&&a.map(((a,n)=>t.createElement(Zfe,{key:n,title:a.title,subTitle:a.subTitle,imageUrl:a.imageUrl,onClick:()=>e.onViewResource(a),imageAlignment:e.imageAlignment,buttonVariant:e.buttonVariant,buttonText:e.buttonText}))),0===a.length&&t.createElement("div",{className:"mdhui-resource-list-empty-text"},e.emptyText||eo("resource-list-empty-text"))))}function Xfe(e){let a=d.toArray(e.children);if(0===a.length)return t.createElement("div",{ref:e.innerRef});let n,r=new Date,i=e.startDate;return Ar(i,r)&&(i=r),n="month"===e.interval?On(r,i)%a.length:"week"===e.interval?function(e,t,a){const n=An(e,t,a)/7;return En(a?.roundingMethod)(n)}(r,i)%a.length:An(r,i)%a.length,t.createElement("div",{ref:e.innerRef},a[n])}function Jfe(e){if(!e.children)return null;let a=i(Ua),n=De(a?.colorScheme,e.backgroundColor);return t.createElement("div",{ref:e.innerRef,style:{...e.style,backgroundColor:n},className:"mdhui-section "+(e.className||"")+(e.noTopMargin?" mdhui-section-no-top-margin":"")},e.children)}w(".mdhui-section {\n margin-top: 16px;\n margin-bottom: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n display: flow-root;\n}\n\n.mdhui-section:empty {\n display: none;\n}\n\n.mdhui-section.mdhui-section-no-top-margin {\n margin-top: 0;\n}");function eye(e){var a=100/e.segments.length;let n=["mdhui-segmented-control"];return e.className&&n.push(e.className),"optionsHorizontal"==e.variant&&n.push("mdhui-segmented-control-options-horizontal"),"optionsVertical"==e.variant&&n.push("mdhui-segmented-control-options-vertical"),t.createElement("div",{ref:e.innerRef,style:{...e.style,borderColor:e.color},className:n.join(" ")},e.segments.map((n=>t.createElement(k,{className:"mdhui-segment "+(n.key==e.selectedSegment?"mdhui-segment-selected":""),key:n.key,onClick:()=>e.onSegmentSelected(n.key),style:{width:a+"%",color:n.key==e.selectedSegment?void 0:e.color,backgroundColor:n.key==e.selectedSegment?e.color:void 0}},n.key==e.selectedSegment&&t.createElement(JA,null),n.title))))}w(".mdhui-segmented-control {\n border-radius: 32px;\n border: solid 1px var(--mdhui-color-primary);\n background: var(--mdhui-background-color-0);\n overflow: hidden;\n padding: 1px;\n}\n\n.mdhui-segmented-control .mdhui-segment {\n display: inline-block;\n font-size: .7em;\n cursor: pointer;\n text-align: center;\n padding: 8px;\n box-sizing: border-box;\n font-weight: bold;\n color: var(--mdhui-color-primary);\n position: relative;\n border-radius: 32px;\n overflow: hidden;\n vertical-align: top;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1em;\n}\n\n.mdhui-segmented-control .mdhui-segment:last-child {\n border: none;\n}\n\n.mdhui-segmented-control .mdhui-segment.mdhui-segment-selected {\n background: var(--mdhui-color-primary);\n color: #FFF;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-horizontal,\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical {\n font-size: .88em;\n padding: 0;\n border-radius: var(--mdhui-card-border-radius);\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-horizontal .mdhui-segment,\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment {\n font-size: .88em;\n border-radius: 0;\n font-weight: normal;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-horizontal .mdhui-segment.mdhui-segment-selected,\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment.mdhui-segment-selected {\n background: var(--mdhui-color-primary);\n color: #FFF;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment {\n width: 100% !important;\n border-bottom: solid 1px var(--mdhui-color-primary);\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-options-vertical .mdhui-segment:last-child {\n border: none;\n}\n\n.mdhui-segmented-control.mdhui-segmented-control-default-margin {\n margin: 16px;\n}\n");function tye(e){const a=()=>t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-single-data-point-value-units"},!e.value&&t.createElement("div",{className:"mdhui-single-data-point-value"},"..."),e.value&&t.createElement("div",{className:"mdhui-single-data-point-value"},e.value),e.value&&e.units&&t.createElement("div",{className:"mdhui-single-data-point-units"},e.units)),t.createElement("div",{className:"mdhui-single-data-point-label"},e.label),e.statusText&&t.createElement("div",{className:"mdhui-single-data-point-status",style:e.statusColor?{color:e.statusColor}:void 0},e.statusText));return t.createElement("div",{ref:e.innerRef},e.onClick&&t.createElement(k,{className:"mdhui-single-data-point",onClick:()=>e.onClick()},a()),!e.onClick&&t.createElement("div",{className:"mdhui-single-data-point"},a()))}w(".mdhui-single-data-point, .mdhui-unstyled-button.mdhui-single-data-point {\n display: grid;\n grid-template-columns: 1fr;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n border: 1px solid var(--mdhui-border-color-1);\n background: var(--mdhui-background-color-0);\n min-height: 60px;\n width: 100%;\n box-sizing: border-box;\n}\n\n.mdhui-single-data-point-value-units {\n display: grid;\n grid-template-columns: max-content auto;\n align-items: baseline;\n grid-column-gap: 2px;\n}\n\n.mdhui-single-data-point-setup {\n font-size: 1.3em;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-single-data-point-value {\n font-size: 1.3em;\n font-weight: bold;\n}\n\n.mdhui-single-data-point-units {\n color: var(--mdhui-text-color-3);\n font-size: 0.8em;\n}\n\n.mdhui-single-data-point-label {\n font-size: 0.7em;\n font-weight: bold;\n}\n\n.mdhui-single-data-point-status {\n font-size: 0.7em;\n font-weight: bold;\n}");function aye(e){const[a,n]=c("");function r(){return a||e.externalAccount.status}return t.createElement("div",{ref:e.innerRef,className:"mdhui-single-external-account"},t.createElement("div",{className:"external-account-header"},e.externalAccount.provider.logoUrl&&t.createElement("img",{alt:e.externalAccount.provider.name,src:e.externalAccount.provider.logoUrl,className:"external-account-provider-logo"}),!e.externalAccount.provider.logoUrl&&t.createElement("div",{className:"external-account-provider-name"},e.externalAccount.provider.name),"deleting"!==r()&&"fetchingData"!==r()&&t.createElement(k,{className:"delete-button",onClick:function(){n("deleting"),b.deleteExternalAccount(e.externalAccount.id).then((function(){e.onAccountRemoved(e.externalAccount)})).catch((function(){n("")}))},title:eo("external-account-remove")},t.createElement(Me,{icon:Q}))),t.createElement("div",{className:"external-account-status"},"unauthorized"===r()&&t.createElement("p",null,t.createElement("span",{className:"error"},eo("external-account-authorization-expired"))),"fetchingData"===r()&&t.createElement("p",null,t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-fetching-data")),"fetchComplete"===r()&&t.createElement("p",null,eo("external-account-last-updated")," ",t.createElement("strong",null,ul(e.externalAccount.lastRefreshDate,new Date))),"error"===r()&&t.createElement("p",{className:"error"},eo("external-account-error")),("fetchComplete"===r()||"error"===r())&&t.createElement("p",null,t.createElement("a",{href:"javascript:{}",onClick:function(){n("fetchingData"),b.refreshExternalAccount(e.externalAccount.id).then()}},t.createElement(Me,{icon:D})," ",eo("external-account-refresh"))),"unauthorized"===r()&&t.createElement("p",null,t.createElement("a",{href:"javascript:{}",onClick:()=>e.onReconnectAccount(e.externalAccount)},t.createElement(Me,{icon:D})," ",eo("external-account-reconnect"))),"deleting"===r()&&t.createElement("p",null,t.createElement(Me,{icon:H,spin:!0})," ",eo("external-account-deleting"))))}w(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 8px;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-single-external-account .external-account-header .delete-button {\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n padding: 16px;\n color: var(--mdhui-text-color-4);\n width: auto;\n font-size: .88em;\n border: none;\n background: none;\n height: 100%;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-logo {\n height: 24px;\n display: block;\n background: #FFF;\n padding: 8px;\n border-radius: 8px;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-name {\n font-size: 1em;\n font-weight: bold;\n}\n\n.mdhui-single-external-account .external-account-status {\n padding: 16px;\n padding-bottom: 0;\n padding-top: 0;\n font-size: .88em;\n}\n\n.mdhui-single-external-account .external-account-status p {\n margin-bottom: 16px;\n margin-top: 16px;\n}\n\n.mdhui-single-external-account .external-account-status a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.mdhui-single-external-account .external-account-status .error {\n color: var(--mdhui-color-danger);\n}");function nye(e){return e.notification?t.createElement("div",{ref:e.innerRef,className:"mdhui-single-notification"},e.notification.content?.title&&t.createElement("div",{className:"notification-title"},e.notification.content.title),e.notification.content?.subject&&t.createElement("div",{className:"notification-title"},e.notification.content.subject),e.notification.content?.body&&t.createElement("div",{className:"notification-body"},e.notification.content.body),t.createElement("div",{className:"notification-date"},ul(e.notification.sentDate,new Date))):t.createElement("div",{ref:e.innerRef,className:"mdhui-single-notification"},t.createElement("div",{className:"notification-body"},"No notifications received"))}w(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: relative;\n}\n\n .mdhui-single-notification:last-child\n {\n border: none;\n }\n\n .mdhui-single-notification > .notification-title\n {\n font-weight: bold;\n }\n\n .mdhui-single-notification > .notification-body\n {\n font-size: .88em;\n }\n\n .mdhui-single-notification > .notification-date\n {\n color: var(--mdhui-text-color-2);\n margin-top: 16px;\n font-size: .75em;\n }\n");w(".mdhui-single-survey-task {\n border-radius: inherit;\n}\n\n.mdhui-single-survey-task.incomplete-expanded {\n padding: 16px;\n width: 100%;\n box-sizing: border-box;\n}\n\n.mdhui-single-survey-task.incomplete-expanded.active {\n cursor: pointer;\n}\n\n.mdhui-single-survey-task.incomplete-expanded .header {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n}\n\n.mdhui-single-survey-task .survey-name {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-single-survey-task.incomplete-expanded .survey-name {\n font-size: 1.3em;\n}\n\n.mdhui-single-survey-task .survey-description {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-single-survey-task.incomplete-expanded .survey-description {\n font-size: 1em;\n margin: 12px 0;\n}\n\n.mdhui-single-survey-task .completed-date {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-single-survey-task .due-date {\n font-size: .88em;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-single-survey-task .due-date.warning {\n color: var(--mdhui-color-warning);\n font-weight: bold;\n}\n\n.mdhui-single-survey-task .due-date.danger {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n}");var rye="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='24' viewBox='0 0 21 24' fill='none'%3e%3cg clip-path='url(%23clip0_881_3509)'%3e%3cpath d='M20.6718 4.82803C21.1124 5.26865 21.1124 5.98115 20.6718 6.41709L8.29678 18.7968C7.85615 19.2374 7.14365 19.2374 6.70772 18.7968L0.328027 12.4218C-0.112598 11.9812 -0.112598 11.2687 0.328027 10.8327C0.768652 10.3968 1.48115 10.3921 1.91709 10.8327L7.49521 16.4108L19.078 4.82803C19.5187 4.3874 20.2312 4.3874 20.6671 4.82803H20.6718Z' fill='%2314B856'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_881_3509'%3e%3crect width='21' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function iye(e){const a=i(Ua),n=()=>{let a,n=Ni(),r=on(new Date(n),{days:1}),i=Ei(e.task.dueDate??""),o=["due-date"];return kn(i,r)?(a=eo("due-tomorrow"),o.push("warning")):kn(i,n)?(a=eo("due-today"),o.push("warning")):Ar(n,i)?(a=eo("overdue"),o.push("danger")):a=eo("due-in")+" "+function(e){const t=Xs(e);return t?kr(t,{locale:gl()}):""}(i),t.createElement("div",{className:o.join(" ")},a)};return"incomplete"===e.task.status&&"expanded"===e.variant?t.createElement("div",{className:"mdhui-single-survey-task incomplete-expanded "+(e.surveyBlocked?"":"active"),onClick:e.surveyBlocked?void 0:()=>e.onClick()},t.createElement("div",{className:"header"},t.createElement("div",{className:"survey-name"},e.task.surveyDisplayName),e.task.dueDate&&n()),t.createElement("div",{className:"survey-description"},t.createElement(t.Fragment,null,e.descriptionIcon," ",e.task.surveyDescription)),e.surveyActive&&t.createElement(ZA,null),!e.surveyActive&&t.createElement(YA,{color:De(a.colorScheme,e.buttonColor),variant:e.buttonVariant,onClick:oM,disabled:e.surveyBlocked},e.task.hasSavedProgress?eo("resume-survey"):eo("start-survey"))):"incomplete"===e.task.status?(()=>{let r;return r=e.surveyActive?t.createElement(ZA,null):t.createElement(YA,{color:De(a.colorScheme,e.buttonColor),variant:e.buttonVariant??"light",onClick:oM,disabled:e.surveyBlocked},e.task.hasSavedProgress?eo("resume"):eo("start")),t.createElement($a,{renderAs:"div",innerRef:e.innerRef,onClick:e.surveyBlocked?void 0:()=>e.onClick(),className:"mdhui-single-survey-task incomplete",indicator:r},t.createElement("div",{className:"survey-name"},e.task.surveyDisplayName),t.createElement("div",{className:"survey-description"},t.createElement(t.Fragment,null,e.descriptionIcon," ",e.task.surveyDescription)),e.task.dueDate&&n())})():"complete"===e.task.status?t.createElement($a,{renderAs:"div",className:"mdhui-single-survey-task complete",indicator:t.createElement("img",{src:rye,alt:"check mark"}),innerRef:e.innerRef},t.createElement("div",{className:"survey-name"},e.task.surveyDisplayName),e.task.endDate&&t.createElement("div",{className:"completed-date"},eo("completed")," ",ul(e.task.endDate,new Date))):null}function oye(e){let a=i(Ua);var n=100/e.bars.length;function r(t){return e.gap?`calc(${n*t}% + ${e.gap/2}px)`:n*t+"%"}let o=["mdhui-spark-bar-chart"];return"rounded"===e.variant&&o.push("mdhui-spark-bar-chart-rounded"),t.createElement("div",{ref:e.innerRef,className:o.join(" "),style:e.style},void 0!==e.averageFillPercent&&t.createElement("div",{className:"mdhui-spark-bar-chart-average",style:{bottom:100*e.averageFillPercent+"%"}}),t.createElement("div",{className:"mdhui-spark-bar-chart-bars"},e.bars.map(((i,o)=>t.createElement("div",{key:o,className:"mdhui-spark-bar-chart-bar",style:{backgroundColor:De(a.colorScheme,i.color),height:100*i.barFillPercent+"%",width:e.gap?`calc(${n}% - ${e.gap}px)`:n+"%",left:r(o),opacity:i.opacity}},t.createElement(JA,null))))))}w(".mdhui-spark-bar-chart {\n position: relative;\n height: 72px;\n}\n\n.mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars {\n margin-left: 8px;\n width: calc(100% - 16px);\n position: relative;\n height: 100%;\n}\n\n.mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar {\n position: absolute;\n bottom: 0;\n z-index: 2;\n}\n\n.mdhui-spark-bar-chart.mdhui-spark-bar-chart-rounded .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar {\n border-radius: 4px 4px 0 0;\n}\n\n.mdhui-spark-bar-chart .mdhui-spark-bar-chart-average {\n border-top: dashed 1px var(--mdhui-border-color-1);\n position: absolute;\n left: 0px;\n right: 0px;\n z-index: 1;\n}");function sye(e){const a=i(Ua),n=Math.min(...e.domain),r=Math.max(...e.domain),o=e=>100-(e-n)/(r-n)*100;let s;null!=e.reference&&e.reference>=n&&e.reference<=r&&(s=o(e.reference));return t.createElement("div",{className:"mdhui-spark-range-chart",ref:e.innerRef,style:{gridTemplateColumns:Array(e.ranges.length).fill("1fr").join(" ")}},0===e.ranges.length&&null!=e.reference&&t.createElement("svg",{width:"100%",height:40,overflow:"visible"},void 0!==s&&t.createElement("line",{x1:0,y1:s+"%",x2:"100%",y2:s+"%",stroke:"var(--mdhui-background-color-2)",strokeWidth:1,strokeDasharray:3})),e.ranges.length>0&&e.ranges.map(((e,i)=>{const l=Math.max(e.min,n),c=Math.min(e.max,r),u=o(l),d=o(c);let m;if(null!=e.average){const t=Math.min(Math.max(e.average,n),r);m=o(t)}let h=De(a.colorScheme,e.color)??Ne(i);return t.createElement("svg",{key:i,width:"100%",height:40,overflow:"visible"},void 0!==s&&t.createElement("line",{x1:0,y1:s+"%",x2:"100%",y2:s+"%",stroke:"var(--mdhui-background-color-2)",strokeWidth:1,strokeDasharray:3}),t.createElement("line",{x1:"calc(50% - 4px)",y1:u+"%",x2:"calc(50% + 4px)",y2:u+"%",stroke:h,strokeWidth:2}),t.createElement("line",{x1:"calc(50% - 4px)",y1:d+"%",x2:"calc(50% + 4px)",y2:d+"%",stroke:h,strokeWidth:2}),t.createElement("line",{x1:"50%",y1:u+"%",x2:"50%",y2:d+"%",stroke:h,strokeWidth:2}),void 0!==m&&t.createElement("circle",{cx:"50%",cy:m+"%",r:4,fill:h}))})))}w(".mdhui-spark-range-chart {\n display: grid;\n column-gap: 4px;\n justify-content: center;\n}");function lye(e){return t.createElement(k,{innerRef:e.innerRef,onClick:()=>e.onValueChanged(!e.isOn),className:"mdhui-switch"+(e.isOn?" mdhui-switch-on":"")+(e.className?" "+e.className:""),style:{backgroundColor:e.isOn?e.onBackgroundColor:"var(--mdhui-background-color-2)"}},t.createElement("div",{className:"mdhui-switch-circle"}))}w(".mdhui-switch {\n border: 1px solid var(--mdhui-background-color-2);\n border-radius: 20px;\n cursor: pointer;\n display: inline-block;\n height: 30px;\n position: relative;\n vertical-align: middle;\n width: 50px;\n background: --mdhui-background-color-2;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-background-clip: content-box;\n background-clip: content-box;\n transition: background-color .5s;\n}\n\n.mdhui-switch.mdhui-switch-on {\n background: var(--mdhui-color-primary);\n}\n\n.mdhui-switch .mdhui-switch-circle {\n background: #fff;\n border-radius: 100%;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n height: 30px;\n position: absolute;\n top: 0;\n width: 30px;\n}\n\n.mdhui-switch.mdhui-switch-on .mdhui-switch-circle {\n right: 0;\n}");function cye(e){var a=i(Ua),n={backgroundColor:a.bodyBackgroundColor};return e.color&&(n={backgroundColor:e.color}),e.color||"dark"!==a.colorScheme||b.setStatusBarStyle("lightContent"),t.createElement("div",{ref:e.innerRef,className:"mdhui-status-bar-background",style:n})}w(".mdhui-status-bar-background {\n position: sticky;\n position: -webkit-sticky;\n left: 0;\n top: 0;\n right: 0;\n height: env(safe-area-inset-top);\n width: 100%;\n z-index: 1;\n background: var(--mdhui-background-color-0);\n}");function uye(e){var a=["mdhui-tracker-item"];e.onClick&&a.push("selectable"),e.selected?a.push("selected"):a.push("unselected"),e.bordered&&a.push("bordered"),e.className&&a.push(e.className),e.noBoxShadow&&a.push("mdhui-tracker-item-no-box-shadow");var n={borderColor:e.color,color:e.color,backgroundColor:e.color};return e.onClick?t.createElement(k,{className:a.join(" "),style:n,onClick:()=>e.onClick?e.onClick():null},e.text,e.selected&&t.createElement(JA,null),e.badge&&e.selected&&t.createElement("div",{className:"badge"},e.badge)):t.createElement("div",{className:a.join(" "),style:n,onClick:()=>e.onClick?e.onClick():null},e.text,e.selected&&t.createElement(JA,null),e.badge&&e.selected&&t.createElement("div",{className:"badge"},e.badge))}w(".mdhui-tracker-item {\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: var(--mdhui-background-color-0);\n border-radius: 32px;\n font-size: .88em;\n display: inline-block;\n margin: 8px;\n position: relative;\n border: solid 1px #000;\n user-select: none;\n line-height: 1.1em;\n}\n\n.mdhui-tracker-item.selectable {\n cursor: pointer;\n}\n\n.mdhui-tracker-item.selected {\n box-shadow: var(--mdhui-box-shadow-1);\n color: #FFF !important;\n background-color: inherit;\n}\n\n.mdhui-tracker-item.unselected {\n background-color: var(--mdhui-background-color-0) !important;\n}\n\n.mdhui-tracker-item .mdhui-shiny-overlay {\n border-radius: 32px;\n}\n\n.mdhui-tracker-item.bordered .mdhui-shiny-overlay {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n}\n\n.mdhui-tracker-item .badge {\n position: absolute;\n right: -4px;\n top: -4px;\n border-radius: 32px;\n padding: 3px;\n background: linear-gradient(to bottom, #555 0%, #888 100%);\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n user-select: none;\n font-size: .62em;\n line-height: 10px;\n}\n\n.mdhui-tracker-item.mdhui-tracker-item-no-box-shadow {\n box-shadow: none;\n}");function dye(e){const a=i(Ua),n=e.selectedValues??[],r=t=>{e.onChange&&e.onChange(t)};let o={"--mdhui-value-selector-title-color":De(a?.colorScheme,e.titleColor),"--mdhui-value-selector-subtitle-color":De(a?.colorScheme,e.subtitleColor),"--mdhui-value-selector-value-background-color":De(a?.colorScheme,e.valueBackgroundColor),"--mdhui-value-selector-value-text-color":De(a?.colorScheme,e.valueTextColor),"--mdhui-value-selector-button-value-selected-background-color":De(a?.colorScheme,e.selectedButtonBackgroundColor),"--mdhui-value-selector-button-value-selected-text-color":De(a?.colorScheme,e.selectedButtonTextColor),"--mdhui-value-selector-checkbox-color":De(a?.colorScheme,e.checkboxColor),"--mdhui-value-selector-checkbox-selected-color":De(a?.colorScheme,e.selectedCheckboxColor)};return t.createElement("div",{className:"mdhui-value-selector",style:o,ref:e.innerRef},e.title&&t.createElement("div",{className:"mdhui-value-selector-title"},e.title),e.subtitle&&t.createElement("div",{className:"mdhui-value-selector-subtitle"},e.subtitle),t.createElement("div",{className:"mdhui-value-selector-values"},e.values.map(((a,i)=>{let o=["mdhui-value-selector-value"];return n.includes(a)&&o.push("mdhui-value-selector-value-selected"),"checkboxes"===e.variant?o.push("mdhui-value-selector-value-checkbox"):o.push("mdhui-value-selector-value-button"),t.createElement(k,{key:i,onClick:()=>(t=>{n.includes(t)?(n.length>1||!e.preventEmptySelections)&&r(n.filter((e=>e!==t))):e.multiSelect?r([...n,t]):r([t])})(a)},t.createElement("div",{className:o.join(" ")},t.createElement("div",{className:"mdhui-value-selector-value-text"},a),"checkboxes"===e.variant&&n.includes(a)&&t.createElement(hge,{className:"mdhui-value-selector-value-checkbox-icon mdhui-value-selector-value-checkbox-icon-selected",icon:L}),"checkboxes"===e.variant&&!n.includes(a)&&t.createElement(hge,{className:"mdhui-value-selector-value-checkbox-icon",icon:CM})))}))))}w(".mdhui-value-selector {\n --mdhui-value-selector-title-color: var(--mdhui-text-color-1);\n --mdhui-value-selector-subtitle-color: var(--mdhui-text-color-3);\n --mdhui-value-selector-value-background-color: var(--mdhui-background-color-0);\n --mdhui-value-selector-value-text-color: var(--mdhui-text-color-1);\n --mdhui-value-selector-button-value-selected-background-color: var(--mdhui-color-primary);\n --mdhui-value-selector-button-value-selected-text-color: #fff;\n --mdhui-value-selector-checkbox-color: var(--mdhui-text-color-4);\n --mdhui-value-selector-checkbox-selected-color: var(--mdhui-color-primary);\n padding: 16px;\n}\n\n.mdhui-value-selector-title {\n font-weight: bold;\n color: var(--mdhui-value-selector-title-color);\n margin-bottom: 4px;\n}\n\n.mdhui-value-selector-subtitle {\n font-size: 0.75em;\n color: var(--mdhui-value-selector-subtitle-color);\n margin-bottom: 12px;\n}\n\n.mdhui-value-selector-values .mdhui-unstyled-button {\n width: 100%;\n margin: 8px 0;\n}\n\n.mdhui-value-selector-value {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n height: 40px;\n line-height: 40px;\n border-radius: 6px;\n background: var(--mdhui-value-selector-value-background-color);\n border: 1px solid var(--mdhui-value-selector-value-background-color);\n color: var(--mdhui-value-selector-value-text-color);\n padding: 0 16px;\n font-weight: bold;\n}\n\n.mdhui-value-selector-value:last-child {\n margin-bottom: 0;\n}\n\n.mdhui-value-selector-value-text {\n font-size: 0.85em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-value-selector-value-button {\n text-align: center;\n}\n\n.mdhui-value-selector-value-button.mdhui-value-selector-value-selected {\n background: var(--mdhui-value-selector-button-value-selected-background-color);\n border: 1px solid var(--mdhui-value-selector-button-value-selected-background-color);\n color: var(--mdhui-value-selector-button-value-selected-text-color);\n}\n\n.mdhui-value-selector-value-checkbox {\n padding-right: 0;\n}\n\n.mdhui-value-selector-value-checkbox-icon {\n width: 48px;\n font-size: 0.95em;\n justify-self: center;\n color: var(--mdhui-value-selector-checkbox-color);\n}\n\n.mdhui-value-selector-value-checkbox-icon-selected {\n color: var(--mdhui-value-selector-checkbox-selected-color);\n}\n\n\n");function mye(e){let a=i(Ua);return e.title||e.subtitle?t.createElement("div",{className:"mdhui-view-header"},t.createElement("div",{className:"mdhui-view-header-text"},e.title&&t.createElement("div",{style:{color:De(a.colorScheme,e.titleColor)},className:"mdhui-view-header-title"},e.title),e.subtitle&&t.createElement("div",{style:{color:De(a.colorScheme,e.subtitleColor)},className:"mdhui-view-header-subtitle"},e.subtitle)),t.createElement("div",{className:"mdhui-view-header-action"},e.action)):null}w(".mdhui-view-header {\n padding: 32px 16px;\n display: grid;\n grid-template-columns: auto max-content;\n align-content: center;\n}\n\n.mdhui-view-header .mdhui-view-header-title {\n font-weight: 700;\n font-size: 2em;\n margin-bottom: 8px;\n color: var(--mdhui-text-color-0);\n}\n\n.mdhui-view-header .mdhui-view-header-subtitle {\n font-weight: 500;\n color: var(--mdhui-text-color-2);\n font-size: 1.2em;\n}");function hye(e){const a=s(null);l((()=>{if(e.onStartDateChange){var t=ed((function(n){0==a.current?.scrollLeft?(e.onStartDateChange(on(e.startDate,{weeks:-1})),a.current?.removeEventListener("scroll",t)):a.current?.clientWidth&&a.current?.scrollLeft==2*a.current.clientWidth&&(e.onStartDateChange(on(e.startDate,{weeks:1})),a.current?.removeEventListener("scroll",t))}),500);return a.current?.addEventListener("scroll",t),()=>{a.current?.removeEventListener("scroll",t)}}}),[e.startDate]);for(var n=[],r=[],i=[],o=on(e.startDate,{days:-7}),c=0;c<21;c++)c<7?n.push(o):c<14?r.push(o):i.push(o),o=on(o,{days:1});function u(e){return t.createElement("div",{className:"mdhui-week-calendar-date-label"},t.createElement("div",{className:"mdhui-week-calendar-day-of-week"}," ",al(e)),t.createElement("div",{className:"mdhui-week-calendar-day-of-month"},fl(Xs(e),"d")))}function d(t){var a=["mdhui-week-calendar-day"];return t>new Date?a.push("mdhui-week-calendar-day-future"):e.onDateSelected&&a.push("mdhui-week-calendar-day-selectable"),e.selectedDate&&xr(t).substr(0,10)==xr(e.selectedDate).substr(0,10)&&a.push("mdhui-week-calendar-day-selected"),a}return l((()=>{a.current&&(a.current.scrollLeft=window.innerWidth)})),a.current&&(a.current.scrollLeft=window.innerWidth),t.createElement("div",{ref:e.innerRef},t.createElement("div",{className:"mdhui-week-calendar",ref:a},e.loading&&t.createElement("div",{className:"mdhui-week-calendar-loading"},t.createElement(ZA,null)),t.createElement("div",{className:"mdhui-week-calendar-week"},n.map((a=>t.createElement("div",{key:a.getTime(),className:"mdhui-week-calendar-day"},e.dayRenderer(a.getFullYear(),a.getMonth(),a.getDate(),!1),!e.hideDateLabel&&u(a))))),t.createElement("div",{className:"mdhui-week-calendar-week"},r.map((a=>t.createElement(k,{key:a.getTime(),className:d(a).join(" "),onClick:()=>function(t){t>new Date||e.onDateSelected&&e.onDateSelected(t)}(a)},e.dayRenderer(a.getFullYear(),a.getMonth(),a.getDate(),!0),!e.hideDateLabel&&u(a))))),on(e.startDate,{days:7})<new Date&&t.createElement("div",{className:"mdhui-week-calendar-week"},i.map((a=>t.createElement("div",{key:a.getTime(),className:d(a).join(" ")},e.dayRenderer(a.getFullYear(),a.getMonth(),a.getDate(),!1),!e.hideDateLabel&&u(a)))))))}w(".mdhui-week-calendar {\n background: var(--mdhui-background-color-0);\n overflow-x: scroll;\n overflow-y: hidden;\n z-index: 0;\n position: relative;\n display: flex;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-loading {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n}\n\n.mdhui-week-calendar * {\n user-select: none;\n}\n\n.mdhui-week-calendar::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-week {\n min-width: 100%;\n scroll-snap-align: start;\n display:flex;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day {\n border-left: solid 1px var(--mdhui-border-color-1);\n overflow: hidden;\n position: relative;\n display: inline-block;\n vertical-align: top;\n flex: 1;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day:first-child {\n width: 14.28%;\n border-left: none;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label {\n padding-top: 4px;\n line-height: 16px;\n padding-bottom: 8px;\n text-align: center;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-week {\n font-size: 10px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n font-size: 14px;\n display: inline-block;\n text-align: center;\n width: 24px;\n height: 24px;\n border-radius: 24px;\n line-height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selectable {\n cursor: pointer;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected {\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n background-color: var(--mdhui-color-primary);\n color: #FFF;\n font-weight: bold;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-future>* {\n opacity: .4;\n}");function pye(e){return t.createElement("div",{className:"mdhui-inbox-completed-list-item",ref:e.innerRef},e.onClick&&t.createElement($a,{title:e.name,subtitle:e.status,onClick:()=>e.onClick()}),!e.onClick&&t.createElement(eS,null,t.createElement("div",{className:"mdhui-inbox-completed-list-item-name"},e.name),t.createElement("div",{className:"mdhui-inbox-completed-list-item-status"},e.status)))}w(".mdhui-inbox-completed-list-item {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n}\n\n.mdhui-inbox-completed-list-item .mdhui-action, .mdhui-inbox-completed-list-item .mdhui-card {\n border-radius: 12px;\n padding: 16px;\n margin: 12px 0;\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-inbox-completed-list-item .mdhui-action .title, .mdhui-inbox-completed-list-item-name {\n font-weight: bold;\n font-size: 1.05em;\n}\n\n.mdhui-inbox-completed-list-item .mdhui-action .subtitle, .mdhui-inbox-completed-list-item-status {\n color: var(--mdhui-text-color-2);\n font-size: 0.7em;\n margin-top: 4px;\n}");function gye(e){return"incomplete"===e.message.status?t.createElement("div",{className:"mdhui-inbox-message-list-item",ref:e.innerRef},t.createElement($a,{title:e.message.title,onClick:()=>e.onClick()})):"complete"===e.message.status?t.createElement(pye,{name:e.message.title,status:eo("inbox-message-completed-status"),onClick:()=>e.onClick(),innerRef:e.innerRef}):null}function fye(e){return"incomplete"===e.resource.status?t.createElement("div",{className:"mdhui-inbox-resource-list-item",ref:e.innerRef},t.createElement(Zfe,{imageUrl:e.resource.imageUrl,title:e.resource.title,subTitle:e.resource.subTitle,imageAlignment:e.imageAlignment,buttonVariant:e.buttonVariant,buttonText:e.buttonText,onClick:()=>e.onClick()})):"complete"===e.resource.status?t.createElement(pye,{name:e.resource.title,status:eo("inbox-resource-completed-status"),onClick:()=>e.onClick(),innerRef:e.innerRef}):null}w(".mdhui-inbox-message-list-item {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-inbox-message-list-item .mdhui-action .title {\n font-size: 1.05em;\n}\n");function yye(e){return"incomplete"===e.survey.status?t.createElement("div",{className:"mdhui-inbox-survey-list-item",ref:e.innerRef},t.createElement(iye,{task:{surveyName:e.survey.name,surveyDisplayName:e.survey.displayName??e.survey.name,surveyDescription:e.survey.description,endDate:e.survey.endDate,status:e.survey.status,hasSavedProgress:e.survey.hasRestorationData,dueDate:e.survey.dueDate},variant:e.variant,surveyActive:e.surveyActive,onClick:()=>e.onClick()})):"complete"===e.survey.status?t.createElement(pye,{name:e.survey.name,status:eo("inbox-survey-completed-status"),innerRef:e.innerRef}):null}w(".mdhui-inbox-survey-list-item {\n background: var(--mdhui-background-color-0);\n border-radius: 12px;\n margin: 12px 16px;\n box-shadow: var(--mdhui-box-shadow-0);\n}");class vye{constructor(e){this.participantInfo=e}getId(){return this.participantInfo.participantID}getFirstName(){return this.participantInfo.demographics.firstName}hasPairedDevice(){return"Yes"===this.getCustomFieldValue("DevicePaired")}hasEstablishedBaseline(){return this.hasEstablishedBaselineByType("DaytimeRestingHeartRateBaseline")||this.hasEstablishedBaselineByType("NighttimeRestingHeartRateBaseline")||this.hasEstablishedBaselineByType("RespiratoryRateBaseline")||this.hasEstablishedBaselineByType("StepsBaseline")||this.hasEstablishedBaselineByType("SleepDisturbancesBaseline")||this.hasEstablishedBaselineByType("DaytimeBloodOxygenLevelBaseline")||this.hasEstablishedBaselineByType("NighttimeBloodOxygenLevelBaseline")}getHomeAirQualityZipCode(){return this.getCustomFieldValue("HomePostalCode")}getWorkAirQualityZipCode(){return this.getCustomFieldValue("WorkPostalCode")}getActionPlanTaskRunUUID(){return this.getCustomFieldValue("AAPTaskRunUUID")}getAlertTakeover(){return this.getCustomFieldValue("AlertTakeover")}getParticipantMode(){return this.getCustomFieldValue("ParticipantMode")??"Self"}getCareRecipientName(){return this.getCustomFieldValue("CareRecipientName")}getDaytimeRestingHeartRateBaseline(){return this.getBaseline("DaytimeRestingHeartRateBaseline")}getNighttimeRestingHeartRateBaseline(){return this.getBaseline("NighttimeRestingHeartRateBaseline")}getRespiratoryRateBaseline(){return this.getBaseline("RespiratoryRateBaseline")}getStepsBaseline(){return this.getBaseline("StepsBaseline")}getSleepDisturbancesBaseline(){return this.getBaseline("SleepDisturbancesBaseline")}getDaytimeBloodOxygenLevelBaseline(){return this.getBaseline("DaytimeBloodOxygenLevelBaseline")}getNighttimeBloodOxygenLevelBaseline(){return this.getBaseline("NighttimeBloodOxygenLevelBaseline")}hasEstablishedBaselineByType(e){return this.getCustomFieldValue(e).trim().length>0}getBaseline(e){let t=this.getCustomFieldValue(e);if(t&&t.trim().length>0)return Number(t.trim())}getCustomFieldValue(e){let t=this.participantInfo.customFields;return t.hasOwnProperty(e)?t[e]??"":""}}const bye=e=>xr(e,{representation:"date"}),wye=(e,t)=>{let a=bye(t),n=e.find((e=>e.identifier===a));if(n){let a,n=(e=>{let t=[];for(let a=0;a<7;a++)t.push(on(new Date(e),{days:-a}));return t})(t),r=((e,t)=>{let a=t.map(bye);return e.filter((e=>a.includes(e.identifier)))})(e,n),i=r.reduce(((e,t)=>e+("none"!==t.symptomLevel?1:0)),0),o=r.reduce(((e,t)=>e+(t.impacts.includes("Wake up at night")?1:0)),0),s=r.reduce(((e,t)=>e+(t.impacts.includes("Limit your daily activity")?1:0)),0),l=r.reduce(((e,t)=>e+(t.impacts.includes("Use your rescue inhaler")?1:0)),0),c=r.length;return a=o>0||s>0||l>=3||i>=3?"not-controlled":c>=1&&0==o&&0==s&&0==l&&0==i||c>=3&&c-i>=2?"controlled":"not-determined",{status:a,symptomDaysPast7:i,nighttimeAwakeningDaysPast7:o,limitedActivityDaysPast7:s,inhalerUseDaysPast7:l}}return{status:"no-data"}},kye=e=>"out-of-range"===e?eo("asthma-data-status-out-of-range"):"in-range"===e?eo("asthma-data-status-in-range"):"offline"===e?eo("asthma-data-status-offline"):"establishing"===e?eo("asthma-data-status-establishing"):"not-determined"===e?eo("asthma-data-status-not-determined"):"not-found"===e?eo("asthma-data-status-not-found"):"not-configured"===e?eo("asthma-data-status-not-configured"):"",xye=e=>"out-of-range"===e?"#9D5BED":"in-range"===e?"#188A83":"offline"===e?"var(--mdhui-color-warning)":"var(--mdhui-text-color-3)",Aye=e=>eo("mild"===e?"asthma-symptom-level-mild":"moderate"===e?"asthma-symptom-level-moderate":"severe"===e?"asthma-symptom-level-severe":"asthma-symptom-level-none"),Sye=e=>e===eo("asthma-symptom-level-mild")?"mild":e===eo("asthma-symptom-level-moderate")?"moderate":e===eo("asthma-symptom-level-severe")?"severe":"none",Eye=e=>e?e.map((e=>"Difficulty breathing"===e?eo("asthma-symptom-difficulty-breathing"):"Wheezing"===e?eo("asthma-symptom-wheezing"):"Coughing"===e?eo("asthma-symptom-coughing"):"Chest tightness or pressure"===e?eo("asthma-symptom-chest-tightness"):e)):[],_ye=e=>e.map((e=>e===eo("asthma-symptom-difficulty-breathing")?"Difficulty breathing":e===eo("asthma-symptom-wheezing")?"Wheezing":e===eo("asthma-symptom-coughing")?"Coughing":e===eo("asthma-symptom-chest-tightness")?"Chest tightness or pressure":e)),Cye=e=>e?e.map((e=>"Wake up at night"===e?eo("asthma-impact-waking-at-night"):"Limit your daily activity"===e?eo("asthma-impact-limit-daily-activity"):"Use your rescue inhaler"===e?eo("asthma-impact-using-rescue-inhaler"):e)):[],Oye=e=>e.map((e=>e===eo("asthma-impact-waking-at-night")?"Wake up at night":e===eo("asthma-impact-limit-daily-activity")?"Limit your daily activity":e===eo("asthma-impact-using-rescue-inhaler")?"Use your rescue inhaler":e)),Pye=e=>e?e.map((e=>"Cold/viral illness"===e?eo("asthma-trigger-cold-illness"):"Animal exposure"===e?eo("asthma-trigger-animal-exposure"):"Seasonal allergens/pollen"===e?eo("asthma-trigger-seasonal-allergens"):"Exercise"===e?eo("asthma-trigger-exercise"):"Smoke (tobacco or wood burning)"===e?eo("asthma-trigger-smoke"):"Extreme weather changes"===e?eo("asthma-trigger-weather-changes"):"Air pollution"===e?eo("asthma-trigger-air-pollution"):"Strong smells"===e?eo("asthma-trigger-strong-smells"):"Chemicals/cleaning supplies"===e?eo("asthma-trigger-chemicals"):"Dust"===e?eo("asthma-trigger-dust"):"Mold"===e?eo("asthma-trigger-mold"):"Dust mites"===e?eo("asthma-trigger-dust-mites"):"Rodents"===e?eo("asthma-trigger-rodents"):"Cockroaches"===e?eo("asthma-trigger-cockroaches"):"Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)"===e?eo("asthma-trigger-nsaid"):"Taken a beta blocker"===e?eo("asthma-trigger-beta-blocker"):"Had heartburn"===e?eo("asthma-trigger-heartburn"):"Drank red wine"===e?eo("asthma-trigger-red-wine"):"Tried any new foods"===e?eo("asthma-trigger-new-foods"):"Cooked without a fan or open window"===e?eo("asthma-trigger-cooked-without-ventilation"):"Had a pet sleep in your bed"===e?eo("asthma-trigger-pet-in-bed"):"Burned incense or a candle"===e?eo("asthma-trigger-incense-or-candle"):e)):[],Tye=e=>e.map((e=>e===eo("asthma-trigger-cold-illness")?"Cold/viral illness":e===eo("asthma-trigger-animal-exposure")?"Animal exposure":e===eo("asthma-trigger-seasonal-allergens")?"Seasonal allergens/pollen":e===eo("asthma-trigger-exercise")?"Exercise":e===eo("asthma-trigger-smoke")?"Smoke (tobacco or wood burning)":e===eo("asthma-trigger-weather-changes")?"Extreme weather changes":e===eo("asthma-trigger-air-pollution")?"Air pollution":e===eo("asthma-trigger-strong-smells")?"Strong smells":e===eo("asthma-trigger-chemicals")?"Chemicals/cleaning supplies":e===eo("asthma-trigger-dust")?"Dust":e===eo("asthma-trigger-mold")?"Mold":e===eo("asthma-trigger-dust-mites")?"Dust mites":e===eo("asthma-trigger-rodents")?"Rodents":e===eo("asthma-trigger-cockroaches")?"Cockroaches":e===eo("asthma-trigger-nsaid")?"Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)":e===eo("asthma-trigger-beta-blocker")?"Taken a beta blocker":e===eo("asthma-trigger-heartburn")?"Had heartburn":e===eo("asthma-trigger-red-wine")?"Drank red wine":e===eo("asthma-trigger-new-foods")?"Tried any new foods":e===eo("asthma-trigger-cooked-without-ventilation")?"Cooked without a fan or open window":e===eo("asthma-trigger-pet-in-bed")?"Had a pet sleep in your bed":e===eo("asthma-trigger-incense-or-candle")?"Burned incense or a candle":e)),Mye=e=>"unhealthy"===e?eo("asthma-air-quality-description-unhealthy"):"very unhealthy"===e?eo("asthma-air-quality-description-very-unhealthy"):"hazardous"===e?eo("asthma-air-quality-description-hazardous"):e,Dye=(e,t)=>t<=1.2*e,Iye=(e,t)=>t<=1.15*e,Nye=(e,t)=>t<=1.15*e,jye=(e,t)=>t>=e/2,zye=(e,t)=>t<=e+3.5,Rye=(e,t)=>{let a=100*t;return a>=95||a>=100*e-4},Lye=async(e,t,a)=>{const n=await Tl({namespace:"Project",type:e,observedAfter:on(t,{days:-1}).toISOString(),observedBefore:on(a,{days:1}).toISOString()});let r={},i={};return n.forEach((e=>{if(!e.observationDate)return;let t=Ei(e.observationDate),a=Ri(t);r[a]&&!Ar(t,i[a])||(r[a]=parseFloat(e.value),i[a]=t)})),r};var Fye;!function(e){e.Steps="Asthma.Steps",e.DaytimeRestingHeartRate="Asthma.DaytimeRestingHeartRate",e.NighttimeRestingHeartRate="Asthma.NighttimeRestingHeartRate",e.RespiratoryRate="Asthma.RespiratoryRate",e.DaytimeBloodOxygenLevel="Asthma.DaytimeBloodOxygenLevel",e.NighttimeBloodOxygenLevel="Asthma.NighttimeBloodOxygenLevel",e.SleepDisturbances="Asthma.SleepDisturbances"}(Fye||(Fye={})),Gc(Fye.Steps,(function(e,t){return Lye("Steps",e,t)}),Cc("Project",["Steps"])),Gc(Fye.DaytimeRestingHeartRate,(function(e,t){return Lye("DaytimeRestingHeartRate",e,t)}),Cc("Project",["DaytimeRestingHeartRate"])),Gc(Fye.NighttimeRestingHeartRate,(function(e,t){return Lye("NighttimeRestingHeartRate",e,t)}),Cc("Project",["NighttimeRestingHeartRate"])),Gc(Fye.RespiratoryRate,(function(e,t){return Lye("RespiratoryRate",e,t)}),Cc("Project",["RespiratoryRate"])),Gc(Fye.DaytimeBloodOxygenLevel,(function(e,t){return Lye("DaytimeBloodOxygenLevel",e,t)}),Cc("Project",["DaytimeBloodOxygenLevel"])),Gc(Fye.NighttimeBloodOxygenLevel,(function(e,t){return Lye("NighttimeBloodOxygenLevel",e,t)}),Cc("Project",["NighttimeBloodOxygenLevel"])),Gc(Fye.SleepDisturbances,(function(e,t){return Lye("SleepDisturbances",e,t)}),Cc("Project",["SleepDisturbances"]));const Bye={"daytime-resting-heart-rate":"DaytimeRestingHeartRate","nighttime-resting-heart-rate":"NighttimeRestingHeartRate","respiratory-rate":"RespiratoryRate",steps:"Steps","sleep-disturbances":"SleepDisturbances","daytime-blood-oxygen-level":"DaytimeBloodOxygenLevel","nighttime-blood-oxygen-level":"NighttimeBloodOxygenLevel"},Hye={home:"HomeAirQuality",work:"WorkAirQuality"},qye=(e,t)=>bn(Ei(e.observationDate),Ei(t.observationDate)),Vye=e=>{let t=parseFloat(e.value);return isNaN(t)?-1:t},Uye=(e,t,a,n)=>{let r=gn(e),i=on(r,{days:n}),o=on(r,{days:n+1}),s=t.filter((e=>{if(e.type!==a)return!1;let t=Ei(e.observationDate);return!Sr(t,i)&&!Ar(t,o)}));if(s.length>0)return Vye(s.sort(qye)[0])},Wye=(e,t)=>{let a={namespace:"Project",type:["DaytimeRestingHeartRate","DaytimeRestingHeartRateBaseline","NighttimeRestingHeartRate","NighttimeRestingHeartRateBaseline","RespiratoryRate","RespiratoryRateBaseline","Steps","StepsBaseline","SleepDisturbances","SleepDisturbancesBaseline","DaytimeBloodOxygenLevel","DaytimeBloodOxygenLevelBaseline","NighttimeBloodOxygenLevel","NighttimeBloodOxygenLevelBaseline"],observedAfter:e.toISOString(),observedBefore:t.toISOString()};return b.queryDeviceData(a)},$ye=(e,t,a,n)=>t?a?e(t,a)?"in-range":"out-of-range":"offline":a?n.withValue:n.withoutValue,Gye=(e,t,a,n,r,i)=>{let o=Uye(t,a,Bye[e]+"Baseline",n-1),s=Uye(t,a,Bye[e],n);return{type:e,status:$ye(r,o,s,i),value:s}},Kye=(e,t,a,n)=>Gye("daytime-resting-heart-rate",e,t,a,Dye,n),Zye=(e,t,a,n)=>Gye("nighttime-resting-heart-rate",e,t,a,Iye,n),Yye=(e,t,a,n)=>Gye("respiratory-rate",e,t,a,Nye,n),Qye=(e,t,a,n)=>Gye("steps",e,t,a,jye,n),Xye=(e,t,a,n)=>Gye("steps",e,t,a,((t,a)=>Ai(e)&&(new Date).getHours()<19||jye(t,a)),n),Jye=(e,t,a,n)=>Gye("sleep-disturbances",e,t,a,zye,n),eve=(e,t,a,n)=>Gye("daytime-blood-oxygen-level",e,t,a,Rye,n),tve=(e,t,a,n)=>Gye("nighttime-blood-oxygen-level",e,t,a,Rye,n),ave=(e,t,a)=>{let n={namespace:"AirNowApi",type:["HomeAirQuality","WorkAirQuality"],observedAfter:e.toISOString()};return t&&(n.observedBefore=t.toISOString()),a&&(n.pageID=a),b.queryDeviceData(n)},nve=(e,t,a,n)=>{let r,i=t.filter((t=>t.type===Hye[e]));i.length>0&&(r=a(i));let[o,s]=((e,t)=>{if(e){if(e<=100)return["in-range",void 0];if(e<=200)return["out-of-range","unhealthy"];if(e<=300)return["out-of-range","very unhealthy"];if(e<=500)return["out-of-range","hazardous"]}return[t,void 0]})(r,n);return{type:e,status:o,value:r,description:s}},rve={loadParticipant:async function(){let e=await b.getParticipantInfo();return new vye(e)},loadDeviceInfo:()=>b.getDeviceInfo(),loadLogEntries:async function(e,t){let a={namespace:"Project",type:["Asthma-LogEntry"]};return e&&(a.observedAfter=e.toISOString()),t&&(a.observedBefore=t.toISOString()),(await b.queryDeviceData(a)).deviceDataPoints.map((e=>JSON.parse(e.value)))},loadBiometricsForControlStatus:async function(){let e=new Date;return((e,t)=>{const a={withValue:"establishing",withoutValue:"establishing"};return[Kye(e,t,-1,a),Zye(e,t,0,a),Yye(e,t,0,a),Qye(e,t,-1,a),Jye(e,t,0,a),eve(e,t,-1,a),tve(e,t,0,a)]})(e,(await Wye(on(gn(e),{days:-2}),_n(e))).deviceDataPoints)},loadBiometricsForDate:async function(e){return((e,t)=>{const a={withValue:"not-determined",withoutValue:"not-found"};return[Kye(e,t,0,a),Zye(e,t,0,a),Yye(e,t,0,a),Xye(e,t,0,a),Jye(e,t,0,a),eve(e,t,0,a),tve(e,t,0,a)]})(e,(await Wye(on(gn(e),{days:-1}),_n(e))).deviceDataPoints)},loadAirQualitiesForControlStatus:async function(e,t){let a=await ave(on(new Date,{hours:-12}),_n(Date.now(),n));var n;const r=e=>Vye(e.sort(qye)[0]);return[e?nve("home",a.deviceDataPoints,r,"establishing"):{type:"home",status:"not-configured"},t?nve("work",a.deviceDataPoints,r,"establishing"):{type:"work",status:"not-configured"}]},loadAirQualitiesForDate:async function(e){let t=await ave(gn(e),_n(e));const a=e=>{let t=0;return e.forEach((e=>{let a=Vye(e);a>t&&(t=a)})),t};return[nve("home",t.deviceDataPoints,a,"not-found"),nve("work",t.deviceDataPoints,a,"not-found")]},loadAirQualityDataPoints:async function(e){let t=[],a=await ave(e);for(t=t.concat(a.deviceDataPoints);a.nextPageID;)a=await ave(e,void 0,a.nextPageID),t=t.concat(a.deviceDataPoints);return t},saveLogEntry:function(e){let t={type:"Asthma-LogEntry",identifier:e.identifier,observationDate:`${e.identifier}T12:00:00-06:00`,value:JSON.stringify(e)};return b.persistDeviceData([t])},loadAlertTakeover:async function(){let e={namespace:"Project",type:["AlertTakeover"],observedAfter:Ni().toISOString()},t=(await b.queryDeviceData(e)).deviceDataPoints;if(0===t.length)return;let a=t.sort(qye)[0];return a.properties?.hasOwnProperty("viewed")||a.properties?.hasOwnProperty("cleared")?void 0:a},updateAlertTakeover:(e,t,a)=>(e.properties=e.properties??{},e.properties[t]=xr(new Date),a&&(e.properties.comment=a),b.persistDeviceData([e])),loadSurveyAnswers:function(e,t){let a={surveyName:e};return t&&(a.insertedAfter=xr(t)),cu(a)},checkSurveyAnswerExists:function(e){let t={surveyName:e,limit:1};return b.querySurveyAnswers(t).then((e=>!!e.surveyAnswers.length))},loadAsthmaActionPlan:async function(){let e=await b.invokeCustomApi("Asthma.ActionPlan","GET","",!0);return e?{id:e.Id,url:`data:image/jpeg;base64,${e.Content}`}:void 0}};function ive(e,t){if("Caregiver"===e.getParticipantMode()){let a=e.getCareRecipientName();if(a)return eo(t+"-caregiver",void 0,{name:a})}return eo(t)}const ove={createDataService:e=>({loadDeviceInfo:()=>Promise.resolve({}),loadParticipant:()=>Promise.resolve({getActionPlanTaskRunUUID:()=>e.includes("loading")||e.includes("loaded with action plan")?"SomeTaskRunUUID":void 0,getParticipantMode:()=>e.includes("(caregiver mode)")?"Caregiver":"Self",getCareRecipientName:()=>e.includes("(caregiver mode)")?"Leroy":void 0}),loadAsthmaActionPlan:()=>e.includes("loading")?new Promise((()=>oM)):Promise.resolve({url:"https://asthma.careevolutionapps.dev/images/sample_aap.png"})})};function sve(e){const[a,n]=c(!0),[r,i]=c(),[o,s]=c(),[u,d]=c(),m=(e,t=0)=>{e.loadParticipant().then((a=>{s(a),a.getActionPlanTaskRunUUID()?e.loadAsthmaActionPlan().then((a=>{d(a),a||t>=5?n(!1):setTimeout((()=>m(e,t+1)),2e3)})):(d(void 0),n(!1))}))};l((()=>{n(!0);const t=e.previewState?ove.createDataService(e.previewState):rve;return t.loadDeviceInfo().then((e=>{i(e)})),m(t),b.on("surveyDidFinish",(()=>m(t))),()=>{b.off("surveyDidFinish",(()=>m(t)))}}),[e.previewState]);return t.createElement("div",{className:"mdhui-asthma-action-plan-manager"},t.createElement(iM,{order:2,className:"mdhui-asthma-action-plan-manager-title"},eo("asthma-action-plan-manager-title")),o&&t.createElement("div",{className:"mdhui-asthma-action-plan-manager-instructions"},ive(o,"asthma-action-plan-manager-instructions")),t.createElement(k,{className:"mdhui-asthma-action-plan-manager-learn-more",onClick:()=>{e.previewState||b.openApplication(e.learnMoreUrl,{modal:!0})}},eo("asthma-action-plan-manager-learn-more")),a&&t.createElement(ZA,null),!a&&u&&t.createElement("div",null,t.createElement(k,{className:"mdhui-asthma-action-plan-manager-thumbnail-wrapper",onClick:()=>(()=>{if(e.previewState)return;let t=`Authenticated/ReportViewer/ServeReport.ashx?reportId=${u.id}`;r&&["Android","iOS"].includes(r.platform)?window.webkit.messageHandlers.OpenFile.postMessage({url:t}):b.openExternalUrl("/"+t)})()},t.createElement("img",{className:"mdhui-asthma-action-plan-manager-thumbnail",alt:"thumbnail",src:u.url})),t.createElement("div",{className:"mdhui-asthma-action-plan-manager-button-panel"},t.createElement(YA,{onClick:()=>{e.previewState||(b.startSurvey(e.editActionPlanSurveyName),n(!0))}},eo("asthma-action-plan-manager-edit-button-text")))),!a&&!u&&t.createElement(k,{className:"mdhui-asthma-action-plan-manager-not-found",onClick:()=>{e.previewState||(b.startSurvey(e.editActionPlanSurveyName),n(!0))}},t.createElement("div",{className:"mdhui-asthma-action-plan-manager-not-found-text"},eo("asthma-action-plan-manager-not-found-text"))))}w(".mdhui-asthma-air-qualities {\n padding: 16px;\n}\n\n.mdhui-asthma-air-qualities-header {\n display: grid;\n grid-template-columns: auto max-content;\n}\n\n.mdhui-asthma-air-qualities-title {\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-air-qualities-settings {\n width: 48px;\n height: 32px;\n text-align: right;\n line-height: 32px;\n font-size: 20px;\n color: var(--mdhui-color-primary);\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-air-qualities-data {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n grid-column-gap: 16px;\n grid-row-gap: 16px;\n}\n\n.mdhui-asthma-air-qualities-setup {\n display: grid;\n grid-template-columns: 1fr;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n border: 1px solid var(--mdhui-border-color-1);\n background: var(--mdhui-background-color-0);\n min-height: 60px;\n}\n\n.mdhui-asthma-air-qualities-setup-button {\n font-size: 1.3em;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-asthma-air-qualities-setup-label {\n font-size: 0.7em;\n font-weight: bold;\n}\n");const lve={"neither configured":{homeAirQuality:{type:"home",status:"not-configured"},workAirQuality:{type:"work",status:"not-configured"}},"one configured":{homeAirQuality:{type:"home",status:"not-configured"},workAirQuality:{type:"work",status:"establishing"}},"no data (control)":{homeAirQuality:{type:"home",status:"establishing"},workAirQuality:{type:"work",status:"establishing"}},"no data (date)":{homeAirQuality:{type:"home",status:"not-found"},workAirQuality:{type:"work",status:"not-found"}},"some data (control)":{homeAirQuality:{type:"home",status:"in-range",value:32},workAirQuality:{type:"work",status:"establishing"}},"some data (date)":{homeAirQuality:{type:"home",status:"in-range",value:32},workAirQuality:{type:"work",status:"not-found"}},"all data":{homeAirQuality:{type:"home",status:"in-range",value:32},workAirQuality:{type:"work",status:"out-of-range",value:130,description:"unhealthy"}}};function cve(e){const[a,n]=c(!0);let[r,i]=c(),[o,s]=c();td((()=>{if(n(!0),"loading"!==e.previewState)return e.previewState?(i(lve[e.previewState].homeAirQuality),s(lve[e.previewState].workAirQuality),void n(!1)):void rve.loadParticipant().then((t=>{(e.date?rve.loadAirQualitiesForDate(e.date):rve.loadAirQualitiesForControlStatus(t.getHomeAirQualityZipCode(),t.getWorkAirQualityZipCode())).then((e=>{i(e.find((e=>"home"===e.type))),s(e.find((e=>"work"===e.type))),n(!1)}))}))}),[],[e.previewState]);const l=()=>{!e.previewState&&e.editZipCodesSurveyName&&b.startSurvey(e.editZipCodesSurveyName)},u=e=>t.createElement(k,{onClick:()=>l()},t.createElement("div",{className:"mdhui-asthma-air-qualities-setup"},t.createElement("div",{className:"mdhui-asthma-air-qualities-setup-button"},eo("asthma-air-qualities-setup-button-text")),t.createElement("div",{className:"mdhui-asthma-air-qualities-setup-label"},e))),d=t=>{e.previewState||("not-configured"===t.status&&e.editZipCodesSurveyName?b.startSurvey(e.editZipCodesSurveyName):b.openApplication(e.airQualityUrl,{modal:!0}))};return t.createElement("div",{className:"mdhui-asthma-air-qualities",ref:e.innerRef},t.createElement("div",{className:"mdhui-asthma-air-qualities-header"},t.createElement(iM,{order:2,className:"mdhui-asthma-air-qualities-title"},eo("asthma-air-qualities-title")),e.editZipCodesSurveyName&&t.createElement(k,{className:"mdhui-asthma-air-qualities-settings",onClick:()=>l()},t.createElement(hge,{icon:ie}))),a&&t.createElement(ZA,null),!a&&t.createElement("div",{className:"mdhui-asthma-air-qualities-data"},"not-configured"===r.status&&u(eo("asthma-air-qualities-home-aqi-label")),"not-configured"!==r.status&&t.createElement(tye,{label:eo("asthma-air-qualities-home-aqi-label"),statusText:Mye(r.description)??kye(r.status),statusColor:xye(r.status),value:yl(r.value),onClick:()=>d(r)}),"not-configured"===o.status&&u(eo("asthma-air-qualities-work-aqi-label")),"not-configured"!==o.status&&t.createElement(tye,{label:eo("asthma-air-qualities-work-aqi-label"),statusText:Mye(o.description)??kye(o.status),statusColor:xye(o.status),value:yl(o.value),onClick:()=>d(o)})))}function uve(e){const[a,n]=c(!0);td((()=>{n(!0),e.previewState?n("loading"===e.previewState):rve.loadLogEntries(on(new Date,{days:-2})).then((e=>{let t=bye(new Date),a=e.find((e=>e.identifier===t));a?b.dismiss():n(!1)}))}),[],[e.previewState]);return t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice",ref:e.innerRef},t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice-message"},e.message),t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice-instructions"},eo("asthma-alert-takeover-notice-instructions")),t.createElement("div",{className:"mdhui-asthma-alert-takeover-notice-buttons"},a&&t.createElement(ZA,null),!a&&t.createElement("div",null,t.createElement(YA,{className:"mdhui-asthma-alert-takeover-notice-button",onClick:()=>{e.previewState||(n(!0),b.startSurvey(e.logEntrySurveyName))}},eo("asthma-alert-takeover-notice-add-entry-button-text")),t.createElement(YA,{className:"mdhui-asthma-alert-takeover-notice-button",variant:"light",onClick:()=>{e.previewState||b.dismiss()}},eo("asthma-alert-takeover-notice-not-now-button-text")))))}function dve(e){return td((()=>{e.previewState||rve.loadParticipant().then((t=>{rve.loadAlertTakeover().then((a=>{a&&(t.getAlertTakeover()?rve.loadLogEntries(on(new Date,{days:-2})).then((t=>{let n=bye(new Date);t.find((e=>e.identifier===n))?rve.updateAlertTakeover(a,"cleared","The user has already logged today.").then():rve.updateAlertTakeover(a,"viewed").then((()=>{var t;"DaytimeRestingHeartRate"===(t=a.value)||"NighttimeRestingHeartRate"===t||"RespiratoryRate"===t||"DaytimeBloodOxygenLevel"===t||"NighttimeBloodOxygenLevel"===t?b.openApplication(e.heartAndLungsUrl+"?alert="+t,{modal:!0}):"Steps"===t?b.openApplication(e.activityUrl+"?alert="+t,{modal:!0}):"SleepDisturbances"===t?b.openApplication(e.sleepUrl+"?alert="+t,{modal:!0}):"HomeAirQuality"===t||"WorkAirQuality"===t?b.openApplication(e.airQualityUrl+"?alert="+t,{modal:!0}):t.includes(",")&&b.openApplication(e.alertTakeoverUrl,{modal:!0})}))})):rve.updateAlertTakeover(a,"cleared","The alert is no longer valid.").then())}))}))})),null}w(".mdhui-asthma-alert-takeover-notice {\n padding: 16px;\n text-align: center;\n}\n\n.mdhui-asthma-alert-takeover-notice-message {\n font-size: 1.6em;\n font-weight: bold;\n margin: 16px 0;\n}\n\n.mdhui-asthma-alert-takeover-notice-instructions {\n font-size: 1.2em;\n}\n\n.mdhui-asthma-alert-takeover-notice-buttons {\n margin-top: 32px;\n}\n\n.mdhui-asthma-alert-takeover-notice-button {\n margin: 12px 0;\n}");w(".mdhui-asthma-biometrics {\n padding: 16px;\n}\n\n.mdhui-asthma-biometrics-title {\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-biometrics-data {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n grid-column-gap: 16px;\n grid-row-gap: 16px;\n}\n");const mve={"no data":{daytimeRestingHeartRate:{type:"daytime-resting-heart-rate",status:"establishing"},nighttimeRestingHeartRate:{type:"nighttime-resting-heart-rate",status:"establishing"},respiratoryRate:{type:"respiratory-rate",status:"establishing"},steps:{type:"steps",status:"establishing"},sleepDisturbances:{type:"sleep-disturbances",status:"establishing"},daytimeBloodOxygenLevel:{type:"daytime-blood-oxygen-level",status:"establishing"},nighttimeBloodOxygenLevel:{type:"nighttime-blood-oxygen-level",status:"establishing"}},"some data":{daytimeRestingHeartRate:{type:"daytime-resting-heart-rate",status:"in-range",value:64.45},nighttimeRestingHeartRate:{type:"nighttime-resting-heart-rate",status:"offline",value:60.975},respiratoryRate:{type:"respiratory-rate",status:"establishing"},steps:{type:"steps",status:"out-of-range",value:12909},sleepDisturbances:{type:"sleep-disturbances",status:"establishing"},daytimeBloodOxygenLevel:{type:"daytime-blood-oxygen-level",status:"establishing"},nighttimeBloodOxygenLevel:{type:"nighttime-blood-oxygen-level",status:"in-range",value:.969}},"all data":{daytimeRestingHeartRate:{type:"daytime-resting-heart-rate",status:"in-range",value:64.45},nighttimeRestingHeartRate:{type:"nighttime-resting-heart-rate",status:"offline",value:60.975},respiratoryRate:{type:"respiratory-rate",status:"in-range",value:20.223},steps:{type:"steps",status:"out-of-range",value:12909},sleepDisturbances:{type:"sleep-disturbances",status:"establishing",value:4},daytimeBloodOxygenLevel:{type:"daytime-blood-oxygen-level",status:"in-range",value:.954456},nighttimeBloodOxygenLevel:{type:"nighttime-blood-oxygen-level",status:"in-range",value:.969}}};function hve(e){const[a,n]=c(!0);let[r,i]=c(),[o,s]=c(),[l,u]=c(),[d,m]=c(),[h,p]=c(),[g,f]=c(),[y,v]=c();td((()=>{if(n(!0),"loading"===e.previewState)return;if(e.previewState)return i(mve[e.previewState].daytimeRestingHeartRate),s(mve[e.previewState].nighttimeRestingHeartRate),u(mve[e.previewState].respiratoryRate),m(mve[e.previewState].steps),p(mve[e.previewState].sleepDisturbances),f(mve[e.previewState].daytimeBloodOxygenLevel),v(mve[e.previewState].nighttimeBloodOxygenLevel),void n(!1);(e.date?rve.loadBiometricsForDate(e.date):rve.loadBiometricsForControlStatus()).then((e=>{i(e.find((e=>"daytime-resting-heart-rate"===e.type))),s(e.find((e=>"nighttime-resting-heart-rate"===e.type))),u(e.find((e=>"respiratory-rate"===e.type))),m(e.find((e=>"steps"===e.type))),p(e.find((e=>"sleep-disturbances"===e.type))),f(e.find((e=>"daytime-blood-oxygen-level"===e.type))),v(e.find((e=>"nighttime-blood-oxygen-level"===e.type))),n(!1)}))}),[],[e.previewState]);const w=t=>{e.previewState||("daytime-resting-heart-rate"===t||"nighttime-resting-heart-rate"===t||"respiratory-rate"===t||"daytime-blood-oxygen-level"===t||"nighttime-blood-oxygen-level"===t?b.openApplication(e.heartAndLungsUrl,{modal:!0}):"steps"===t?b.openApplication(e.activityUrl,{modal:!0}):"sleep-disturbances"===t&&b.openApplication(e.sleepUrl,{modal:!0}))};return t.createElement("div",{className:"mdhui-asthma-biometrics",ref:e.innerRef},t.createElement(iM,{order:2,className:"mdhui-asthma-biometrics-title"},eo("asthma-biometrics-title")),a&&t.createElement(ZA,null),!a&&t.createElement("div",{className:"mdhui-asthma-biometrics-data"},t.createElement(tye,{label:eo("asthma-biometrics-daytime-resting-heart-rate-label"),statusText:kye(r.status),statusColor:xye(r.status),value:r.value?yl(r.value):void 0,units:eo("asthma-biometrics-beats-per-minute-units"),onClick:()=>w("daytime-resting-heart-rate")}),t.createElement(tye,{label:eo("asthma-biometrics-nighttime-resting-heart-rate-label"),statusText:kye(o.status),statusColor:xye(o.status),value:o.value?yl(o.value):void 0,units:eo("asthma-biometrics-beats-per-minute-units"),onClick:()=>w("nighttime-resting-heart-rate")}),t.createElement(tye,{label:eo("asthma-biometrics-respiratory-rate-label"),statusText:kye(l.status),statusColor:xye(l.status),value:l.value?yl(l.value):void 0,units:eo("asthma-biometrics-breaths-per-minute-units"),onClick:()=>w("respiratory-rate")}),t.createElement(tye,{label:eo("asthma-biometrics-steps-label"),statusText:kye(d.status),statusColor:xye(d.status),value:yl(d.value),onClick:()=>w("steps")}),t.createElement(tye,{label:eo("asthma-biometrics-daytime-blood-oxygen-level-label"),statusText:kye(g.status),statusColor:xye(g.status),value:g.value?yl(100*g.value):void 0,onClick:()=>w("daytime-blood-oxygen-level"),units:eo("asthma-biometrics-percent-units")}),t.createElement(tye,{label:eo("asthma-biometrics-nighttime-blood-oxygen-level-label"),statusText:kye(y.status),statusColor:xye(y.status),value:y.value?yl(100*y.value):void 0,onClick:()=>w("nighttime-blood-oxygen-level"),units:eo("asthma-biometrics-percent-units")}),t.createElement(tye,{label:eo("asthma-biometrics-sleep-disturbances-label"),statusText:kye(h.status),statusColor:xye(h.status),value:yl(h.value),onClick:()=>w("sleep-disturbances")})))}w(".mdhui-asthma-control-calendar-log-entries .mdhui-action .title {\n font-size: 0.8em;\n color: var(--mdhui-text-color-3);\n margin-bottom: 4px\n}\n\n.mdhui-asthma-control-calendar-log-entries .mdhui-action .subtitle {\n font-size: 1.17em;\n font-weight: 500;\n}\n\n.mdhui-asthma-control-calendar-log-entries .mdhui-unstyled-button {\n border-radius: var(--mdhui-card-border-radius);\n}\n\n.mdhui-asthma-control-calendar-log-entry-components {\n display: grid;\n grid-template-columns: max-content max-content max-content auto;\n grid-column-gap: 8px;\n align-items: center;\n padding: 0 16px 16px;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component {\n display: grid;\n grid-template-columns: max-content auto;\n align-items: center;\n height: 24px;\n line-height: 24px;\n border-radius: 12px;\n font-size: 0.8em;\n padding: 0 8px;\n color: #000;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-symptoms {\n background: #f9debf;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-impacts {\n background: #e6d6fa;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-triggers {\n background: #bfbfbf;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-icon {\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin-right: 4px;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-symptoms .mdhui-asthma-control-calendar-log-entry-component-icon {\n background: #E87C00;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-impacts .mdhui-asthma-control-calendar-log-entry-component-icon {\n background: #9D5BED;\n}\n\n.mdhui-asthma-control-calendar-log-entry-component-triggers .mdhui-asthma-control-calendar-log-entry-component-icon {\n background: #000000;\n}\n");const pve=(e,t)=>({identifier:bye(on(new Date,{days:-e})),symptomLevel:t,symptoms:[],impacts:[],triggers:[]}),gve={"no logs":{logEntries:[]},"some logs":{logEntries:[pve(20,"none"),{...pve(19,"mild"),impacts:["Limit your daily activity"]},pve(17,"none"),pve(16,"none"),pve(15,"none"),pve(8,"mild"),pve(8,"none"),pve(7,"none"),pve(6,"none"),pve(5,"none"),pve(4,"none"),pve(3,"none"),pve(2,"mild"),{...pve(1,"mild"),symptoms:["Difficulty breathing"],impacts:["Limit your daily activity"],triggers:["Smoke (tobacco or wood burning)"]},{...pve(0,"mild"),impacts:["Limit your daily activity"]}]}};function fve(e){const a=i(nM),[n,r]=c([]);td((()=>{e.previewState?r(gve[e.previewState].logEntries):rve.loadLogEntries().then((e=>{r(e)}))}),[],[e.previewState]);const o={"not-determined":{style:{background:"var(--mdhui-background-color-0)",border:"3px dashed var(--mdhui-text-color-0)",color:"var(--mdhui-text-color-0)",fontWeight:600,marginTop:"-12px"}},"not-controlled":{style:{background:"#F86A5C",border:"3px solid #F86A5C",color:"#fff",fontWeight:600,marginTop:"-12px"}},controlled:{style:{background:"var(--mdhui-background-color-0)",border:"3px solid #35A6A0",color:"#35A6A0",fontWeight:600,marginTop:"-12px"}},today:{style:{border:"3px solid #369CFF"}},future:{style:{background:"var(--mdhui-background-color-0)",border:"3px solid var(--mdhui-background-color-0)",color:"var(--mdhui-text-color-3)",fontWeight:600,marginTop:"-12px"}},"no-data":{style:{background:"var(--mdhui-background-color-0)",border:"3px solid var(--mdhui-background-color-0)",color:"var(--mdhui-text-color-0)",fontWeight:600,marginTop:"-12px"}}},s=e=>{let t=wye(n,e).status;return"not-determined"===t?"not-determined":"not-controlled"===t?"not-controlled":"controlled"===t?"controlled":kn(e,new Date)?"today":Ar(e,new Date)?"future":"no-data"},l=t=>{e.previewState||Ar(t,new Date)||b.openApplication(e.dayViewUrl+"?date="+xr(t,{representation:"date"}),{modal:!0})};let u=a?.intervalStart??e.intervalStart??Tn(new Date);return t.createElement("div",null,t.createElement(Jfe,{noTopMargin:!0,style:{boxShadow:"none",marginBottom:"0"}},t.createElement(QA,{innerRef:e.innerRef,className:"mdhui-asthma-control-calendar",year:u.getFullYear(),month:u.getMonth(),dayRenderer:(e,a,n)=>t.createElement(XA,{year:e,month:a,day:n,stateConfiguration:o,computeStateForDay:s,onClick:l})})),"verbose"===e.variant&&(()=>{if(0===n.length)return null;let e=Ni(),a={},r=[...n].sort(((e,t)=>e.identifier.localeCompare(t.identifier)))[0],i=Ei(r.identifier);for(let t=0;t<=An(e,i);t++){let e=on(i,{days:t});if(!Sr(e,u)&&Sr(e,on(u,{months:1}))){let t=bye(e);a[t]=n.find((e=>e.identifier===t))}}return t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entries"},Object.keys(a).sort().reverse().map(((n,r)=>{let i=Ei(n),o=a[n];return t.createElement(eS,{key:r},t.createElement($a,{title:rl(i),subtitle:o?Aye(o.symptomLevel):An(e,i)>=2?eo("asthma-control-calendar-daily-entry-missed"):eo("asthma-control-calendar-not-logged-yet"),onClick:()=>l(i)}),o&&(o.symptoms&&o.symptoms.length>0||o.impacts&&o.impacts.length>0||o.triggers&&o.triggers.length>0)&&t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entry-components"},o.symptoms&&o.symptoms.length>0&&t.createElement(yve,{className:"mdhui-asthma-control-calendar-log-entry-component-symptoms",label:eo("asthma-control-calendar-log-entries-symptoms-label")}),o.impacts&&o.impacts.length>0&&t.createElement(yve,{className:"mdhui-asthma-control-calendar-log-entry-component-impacts",label:eo("asthma-control-calendar-log-entries-impacts-label")}),o.triggers&&o.triggers.length>0&&t.createElement(yve,{className:"mdhui-asthma-control-calendar-log-entry-component-triggers",label:eo("asthma-control-calendar-log-entries-triggers-label")})))})))})())}function yve(e){return t.createElement("div",{className:["mdhui-asthma-control-calendar-log-entry-component",e.className].join(" ")},t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entry-component-icon"}),t.createElement("div",{className:"mdhui-asthma-control-calendar-log-entry-component-label"},e.label))}w(".mdhui-asthma-control-status-header {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-control-status-header p:first-child {\n margin-top: 0;\n}\n\n.mdhui-asthma-control-status-header p:last-child {\n margin-bottom: 0;\n}\n\n.mdhui-asthma-control-status-header-text {\n font-size: 1.4em;\n font-weight: bold;\n}\n\n.mdhui-asthma-control-status-header-controlled {\n color: #03dbcc;\n}\n\n.mdhui-asthma-control-status-header-not-controlled {\n color: #fc6666;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stats {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n margin-top: 8px;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stat {\n display: grid;\n grid-template-columns: max-content max-content auto;\n align-items: center;\n grid-column-gap: 8px;\n font-size: 0.8em;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stat-value {\n padding: 2px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n border-radius: 50%;\n text-align: center;\n background: #fc6666;\n}\n\n.mdhui-asthma-control-status-header-not-controlled-stat-label {\n height: 30px;\n line-height: 30px;\n text-align: center;\n}\n\n.mdhui-asthma-control-status-header-data-out-of-range {\n color: #9D5BED;\n}");const vve=(e,a)=>{if(e.includes("|||")){const n=e.split("|||");return t.createElement(t.Fragment,null,n[0],t.createElement("span",{className:a},n[1]),n[2])}return t.createElement(t.Fragment,null,e)},bve={"no data":{controlState:{status:"no-data"},biometrics:[],airQualities:[]},"abnormal dhr":{controlState:{status:"no-data"},biometrics:[{type:"daytime-resting-heart-rate",status:"out-of-range"}],airQualities:[]},"abnormal nhr":{controlState:{status:"no-data"},biometrics:[{type:"nighttime-resting-heart-rate",status:"out-of-range"}],airQualities:[]},"abnormal rr":{controlState:{status:"no-data"},biometrics:[{type:"respiratory-rate",status:"out-of-range"}],airQualities:[]},"abnormal activity":{controlState:{status:"no-data"},biometrics:[{type:"steps",status:"out-of-range"}],airQualities:[]},"abnormal sleep":{controlState:{status:"no-data"},biometrics:[{type:"sleep-disturbances",status:"out-of-range"}],airQualities:[]},"abnormal dbol":{controlState:{status:"no-data"},biometrics:[{type:"daytime-blood-oxygen-level",status:"out-of-range"}],airQualities:[]},"abnormal nbol":{controlState:{status:"no-data"},biometrics:[{type:"nighttime-blood-oxygen-level",status:"out-of-range"}],airQualities:[]},"abnormal home aqi":{controlState:{status:"no-data"},biometrics:[],airQualities:[{type:"home",status:"out-of-range",description:"unhealthy"}]},"abnormal work aqi":{controlState:{status:"no-data"},biometrics:[],airQualities:[{type:"work",status:"out-of-range",description:"very unhealthy"}]},"abnormal multiple":{controlState:{status:"no-data"},biometrics:[{type:"steps",status:"out-of-range"}],airQualities:[{type:"work",status:"out-of-range",description:"hazardous"}]},"not determined":{controlState:{status:"not-determined"},biometrics:[],airQualities:[]},"not controlled":{controlState:{status:"not-controlled",symptomDaysPast7:1,nighttimeAwakeningDaysPast7:1,limitedActivityDaysPast7:1,inhalerUseDaysPast7:1},biometrics:[],airQualities:[]},controlled:{controlState:{status:"controlled"},biometrics:[],airQualities:[]}};function wve(e){let[a,n]=c(!0),[r,i]=c(),[o,s]=c(),[l,u]=c();if(td((()=>{if(n(!0),"loading"===e.previewState)return void i(void 0);if(e.previewState)return i(bve[e.previewState].controlState),s(bve[e.previewState].biometrics),u(bve[e.previewState].airQualities),void n(!1);let t=new Date;rve.loadLogEntries(on(new Date(t),{days:-10})).then((a=>{if(e.participant.hasPairedDevice()&&e.participant.hasEstablishedBaseline()){let r=rve.loadBiometricsForControlStatus(),o=rve.loadAirQualitiesForControlStatus(e.participant.getHomeAirQualityZipCode(),e.participant.getWorkAirQualityZipCode());Promise.all([r,o]).then((e=>{i(wye(a,t)),s(e[0]),u(e[1]),n(!1)}))}else i(wye(a,t)),n(!1)}))}),[],[e.previewState]),a&&!r)return null;const d=e=>{const a=vve(e,"mdhui-asthma-control-status-header-data-out-of-range");return t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,a," ",eo("asthma-control-status-header-complete-daily-entry")))},m=(e,a)=>a?t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stat"},t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stat-value"},a,"x"),t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stat-label"},e)):null;return t.createElement("div",{className:"mdhui-asthma-control-status-header",ref:e.innerRef},"no-data"===r.status&&(()=>{if(e.participant.hasPairedDevice()&&e.participant.hasEstablishedBaseline()){if(o.filter((e=>"out-of-range"===e.status)).length+l.filter((e=>"out-of-range"===e.status)).length>1)return d(eo("asthma-control-status-header-multiple-out-of-range"));if("out-of-range"===o.find((e=>"daytime-resting-heart-rate"===e.type||"nighttime-resting-heart-rate"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-heart-rate"));if("out-of-range"===o.find((e=>"respiratory-rate"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-respiratory-rate"));if("out-of-range"===o.find((e=>"steps"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-steps"));if("out-of-range"===o.find((e=>"sleep-disturbances"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-sleep"));if("out-of-range"===o.find((e=>"daytime-blood-oxygen-level"===e.type||"nighttime-blood-oxygen-level"===e.type))?.status)return d(eo("asthma-control-status-header-abnormal-blood-oxygen"));if("out-of-range"===l.find((e=>"home"===e.type))?.status){const e=eo("asthma-control-status-header-abnormal-home-aqi",void 0,{aqi:Mye(l.find((e=>"home"===e.type))?.description)||""});return d(e)}if("out-of-range"===l.find((e=>"work"===e.type))?.status){const e=eo("asthma-control-status-header-abnormal-work-aqi",void 0,{aqi:Mye(l.find((e=>"work"===e.type))?.description)||""});return d(e)}}return t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,ive(e.participant,"asthma-control-status-header-no-data")))})(),"not-determined"===r.status&&t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,ive(e.participant,"asthma-control-status-header-not-determined"))),"controlled"===r.status&&t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,vve(ive(e.participant,"asthma-control-status-header-controlled"),"mdhui-asthma-control-status-header-controlled"))),"not-controlled"===r.status&&t.createElement("div",null,t.createElement("div",{className:"mdhui-asthma-control-status-header-text"},t.createElement("p",null,vve(ive(e.participant,"asthma-control-status-header-not-controlled"),"mdhui-asthma-control-status-header-not-controlled"))),t.createElement("div",{className:"mdhui-asthma-control-status-header-not-controlled-stats"},m(eo("asthma-control-status-header-not-controlled-stat-symptom-days"),r.symptomDaysPast7),m(eo("asthma-control-status-header-not-controlled-stat-rescue-inhaler"),r.inhalerUseDaysPast7),m(eo("asthma-control-status-header-not-controlled-stat-limited-activity"),r.limitedActivityDaysPast7),m(eo("asthma-control-status-header-not-controlled-stat-awakenings"),r.nighttimeAwakeningDaysPast7))))}w(".mdhui-asthma-log-entry-details {\n padding: 16px;\n}\n\n.mdhui-asthma-log-entry-details-header {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n margin-bottom: 20px;\n}\n\n.mdhui-asthma-log-entry-details-header-status {\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.mdhui-asthma-log-entry-details-header-add-button {\n height: 32px;\n line-height: 32px;\n border-radius: 6px;\n font-size: 0.8em;\n padding: 0 16px;\n color: #fff;\n background: #369CFF;\n}\n\n.mdhui-asthma-log-entry-details-header-edit-button {\n height: 32px;\n line-height: 32px;\n border-radius: 6px;\n font-size: 0.8em;\n padding: 0 16px;\n color: #007FF9;\n background: #BBDEFF;\n}\n\n.mdhui-unstyled-button.mdhui-asthma-log-entry-details-header-info-button {\n width: 48px;\n height: 32px;\n text-align: right;\n line-height: 32px;\n font-size: 20px;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-asthma-log-entry-details-component {\n margin-bottom: 16px;\n}\n\n.mdhui-asthma-log-entry-details-component-symptoms .mdhui-asthma-log-entry-details-component-header-icon {\n background: #E87C00;\n}\n\n.mdhui-asthma-log-entry-details-component-symptoms .mdhui-asthma-log-entry-details-component-data {\n background: #f9debf;\n color: #E87C00;\n}\n\n.mdhui-asthma-log-entry-details-component-impacts .mdhui-asthma-log-entry-details-component-header-icon {\n background: #9D5BED;\n}\n\n.mdhui-asthma-log-entry-details-component-impacts .mdhui-asthma-log-entry-details-component-data {\n background: #e6d6fa;\n color: #9D5BED;\n}\n\n.mdhui-asthma-log-entry-details-component-triggers .mdhui-asthma-log-entry-details-component-header-icon {\n background: #000000;\n}\n\n.mdhui-asthma-log-entry-details-component-triggers .mdhui-asthma-log-entry-details-component-data {\n background: #bfbfbf;\n color: #000000;\n}\n\n.mdhui-asthma-log-entry-details-component:last-child {\n margin-bottom: 0;\n}\n\n.mdhui-asthma-log-entry-details-component-header {\n display: grid;\n grid-template-columns: max-content auto;\n grid-column-gap: 4px;\n align-items: center;\n margin-bottom: 8px;\n}\n\n.mdhui-asthma-log-entry-details-component-header-icon {\n display: inline-block;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n}\n\n.mdhui-asthma-log-entry-details-component-header-label {\n font-size: 0.8em;\n font-weight: bold;\n}\n\n.mdhui-asthma-log-entry-details-component-no-data {\n font-size: 0.8em;\n color: var(--mdhui-text-color-3);\n margin-left: 16px;\n}\n\n.mdhui-asthma-log-entry-details-component-data {\n display: inline-block;\n padding: 0 8px;\n height: 24px;\n line-height: 24px;\n border-radius: 12px;\n font-size: 0.7em;\n margin-top: 4px;\n margin-right: 4px;\n}");const kve={identifier:bye(new Date),symptomLevel:"none",symptoms:[],impacts:[],triggers:[]},xve={"not logged":{},"logged with no symptoms":{logEntry:kve},"logged with mild symptoms":{logEntry:{...kve,symptomLevel:"mild",symptoms:["Coughing"],impacts:["Wake up at night","Use your rescue inhaler"],triggers:["Cold/viral illness","Seasonal allergens/pollen","Smoke (tobacco or wood burning)","Air pollution","Dust mites","Mold"]}},"logged with moderate symptoms":{logEntry:{...kve,symptomLevel:"moderate",symptoms:["Coughing"],triggers:["Cold/viral illness","Mold"]}},"logged with severe symptoms":{logEntry:{...kve,symptomLevel:"severe",symptoms:["Coughing","Wheezing"],impacts:["Use your rescue inhaler"]}}};function Ave(e){const[a,n]=c(!0),[r,i]=c();let o=Ni(),s=on(new Date(o),{days:-1}),l=on(new Date(e.date),{days:-1}),u=on(new Date(e.date),{days:1});td((()=>{if(n(!0),"loading"!==e.previewState)return e.previewState?(i(xve[e.previewState].logEntry),void n(!1)):void rve.loadLogEntries(l,u).then((t=>{let a=bye(e.date);i(t.find((e=>e.identifier===a))),n(!1)}))}),[],[e.previewState]);const d=()=>!Sr(e.date,s);return t.createElement("div",{className:"mdhui-asthma-log-entry-details",ref:e.innerRef},a&&t.createElement(ZA,null),!a&&t.createElement("div",null,t.createElement("div",{className:"mdhui-asthma-log-entry-details-header"},t.createElement("div",{className:"mdhui-asthma-log-entry-details-header-status"},r?Aye(r.symptomLevel):d()?eo("asthma-log-entry-details-not-logged-yet"):eo("asthma-log-entry-details-not-editable")),d()?t.createElement(k,{className:"mdhui-asthma-log-entry-details-header-action",onClick:()=>{a||e.previewState||(n(!0),r?b.openApplication(e.editLogEntryUrl+"?date="+xr(e.date,{representation:"date"}),{modal:!0}):kn(e.date,o)?b.startSurvey(e.logTodayEntrySurveyName):kn(e.date,s)&&b.startSurvey(e.logYesterdayEntrySurveyName))}},r?t.createElement("div",{className:"mdhui-asthma-log-entry-details-header-edit-button"},eo("asthma-log-entry-details-edit-button-text")):t.createElement("div",{className:"mdhui-asthma-log-entry-details-header-add-button"},eo("asthma-log-entry-details-add-button-text"))):t.createElement(k,{className:"mdhui-asthma-log-entry-details-header-info-button",onClick:()=>{a||e.previewState||b.openApplication(e.infoUrl,{modal:!0})}},t.createElement(hge,{icon:te}))),t.createElement(Sve,{className:"mdhui-asthma-log-entry-details-component-symptoms",label:eo("asthma-log-entry-details-symptoms-label"),data:Eye(r?.symptoms)}),t.createElement(Sve,{className:"mdhui-asthma-log-entry-details-component-impacts",label:eo("asthma-log-entry-details-impacts-label"),data:Cye(r?.impacts)}),t.createElement(Sve,{className:"mdhui-asthma-log-entry-details-component-triggers",label:eo("asthma-log-entry-details-triggers-label"),data:Pye(r?.triggers)})))}function Sve(e){return t.createElement("div",{className:["mdhui-asthma-log-entry-details-component",e.className].join(" ")},t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-header"},t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-header-icon"}),t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-header-label"},e.label)),0===e.data.length&&t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-no-data"},eo("asthma-log-entry-details-component-no-data",void 0,{dataType:e.label.toLowerCase()})),e.data.length>0&&e.data.map((e=>t.createElement("div",{className:"mdhui-asthma-log-entry-details-component-data"},e))))}w(".mdhui-asthma-log-entry-header {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n\n.mdhui-unstyled-button.mdhui-asthma-log-entry-summary {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n border-radius: 6px;\n padding: 16px;\n margin: 8px 0;\n width: 100%;\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-asthma-log-entry-summary-details {\n font-size: 0.95em;\n}\n\n.mdhui-asthma-log-entry-summary-label {\n}\n\n.mdhui-asthma-log-entry-summary-status {\n font-weight: bold;\n}\n\n.mdhui-asthma-log-entry-summary-add-button {\n height: 32px;\n line-height: 32px;\n border-radius: 16px;\n font-size: 0.8em;\n padding: 0 16px;\n color: #fff;\n background: #369CFF;\n}\n\n.mdhui-asthma-log-entry-summary-chevron {\n color: var(--mdhui-text-color-3);\n}\n\n.mdhui-asthma-log-entry-summary .mdhui-loading-indicator {\n padding: 0;\n}");const Eve={identifier:bye(new Date),symptomLevel:"mild",symptoms:[],impacts:[],triggers:[]},_ve={"no logs":{},"today log only":{todayLogEntry:Eve},"yesterday log only":{yesterdayLogEntry:Eve},"both logs":{yesterdayLogEntry:Eve,todayLogEntry:Eve}};function Cve(e){let[a,n]=c(!0),[r,i]=c(!0),[o,s]=c(),[l,u]=c();if(td((()=>{if(i(!0),"loading"!==e.previewState)return e.previewState?(s(_ve[e.previewState].yesterdayLogEntry),u(_ve[e.previewState].todayLogEntry),i(!1),void n(!1)):void rve.loadLogEntries(on(new Date,{days:-3})).then((e=>{let t=gn(new Date),a=bye(t);u(e.find((e=>e.identifier===a)));let r=gn(on(new Date,{days:-1})),o=bye(r);s(e.find((e=>e.identifier===o))),i(!1),n(!1)}))}),["surveyDidFinish"],[e.previewState]),a)return null;const d=(a,n,i)=>t.createElement(k,{className:"mdhui-asthma-log-entry-summary",onClick:()=>((t,a)=>{e.previewState||r||(a?b.openApplication(e.dayViewUrl+"?date="+a.identifier,{modal:!0}):b.startSurvey(t))})(n,i)},t.createElement("div",{className:"mdhui-asthma-log-entry-summary-details"},t.createElement("div",{className:"mdhui-asthma-log-entry-summary-label"},a),t.createElement("div",{className:"mdhui-asthma-log-entry-summary-status"},(e=>e?Aye(e.symptomLevel):eo("asthma-log-entry-header-not-logged-yet"))(i))),t.createElement("div",{className:"mdhui-asthma-log-entry-summary-action"},r&&t.createElement(ZA,null),!r&&!i&&t.createElement("div",{className:"mdhui-asthma-log-entry-summary-add-button"},eo("asthma-log-entry-header-add-button-text")),!r&&i&&t.createElement(hge,{icon:we,className:"mdhui-asthma-log-entry-summary-chevron"})));return t.createElement("div",{className:"mdhui-asthma-log-entry-header",ref:e.innerRef},d(eo("asthma-log-entry-header-today-log-label"),e.logTodayEntrySurveyName,l),d(eo("asthma-log-entry-header-yesterday-log-label"),e.logYesterdayEntrySurveyName,o))}function Ove(e){const t=()=>{rve.checkSurveyAnswerExists(e.logTodayEntrySurveyName).then((t=>{t||b.queryDeviceData({namespace:"Project",type:"LogAutoLaunched"}).then((t=>{t.deviceDataPoints.length||b.persistDeviceData([{type:"LogAutoLaunched",value:(new Date).toISOString()}]).then((()=>{b.startSurvey(e.logTodayEntrySurveyName)}))}))}))};return td((()=>{e.previewState||rve.loadSurveyAnswers([e.postEnrollmentSurveyName,e.postEnrollmentMobileSurveyName]).then((a=>{a.find((t=>t.surveyName===e.postEnrollmentSurveyName))?a.find((t=>t.surveyName===e.postEnrollmentMobileSurveyName))?t():Promise.all([b.getParticipantInfo(),b.getDeviceInfo()]).then((([a,n])=>{"Caregiver"!==(a.customFields.ParticipantMode??"Self")&&["iOS","Android"].includes(n.platform)?b.startSurvey(e.postEnrollmentMobileSurveyName):t()})):b.startSurvey(e.postEnrollmentSurveyName)}))})),null}const Pve={createDataService:e=>({loadParticipant:()=>"loading"===e?new Promise((()=>oM)):Promise.resolve({getId:()=>"ef698523-118a-414a-bd01-ff97c6cb31f9",getFirstName:()=>"Sally",getParticipantMode:()=>"as caregiver"===e?"Caregiver":"Self",getCareRecipientName:()=>"as caregiver"===e?"Leroy":void 0}),loadLogEntries:()=>Promise.resolve([{identifier:bye(on(new Date,{days:-5})),symptomLevel:"none",symptoms:[],impacts:[],triggers:[]},{identifier:bye(on(new Date,{days:-15})),symptomLevel:"moderate",symptoms:[],impacts:["Wake up at night"],triggers:[]},{identifier:bye(on(new Date,{days:-25})),symptomLevel:"moderate",symptoms:[],impacts:[],triggers:[]}]),loadSurveyAnswers:(e,t)=>Promise.resolve([{stepIdentifier:"MISSED_DOSES_REASONS",answers:["Unable to afford the medications","Medications not working"]},{stepIdentifier:"MISSED_DOSES_REASONS",answers:["None of the above"]},{stepIdentifier:"MISSED_DOSES_REASONS",answers:["Don't want to run out, so purposefully skipping doses"]},{stepIdentifier:"MISSED_DOSES_REASONS",answers:["Unable to afford the medications","Difficulty getting refills","Trouble remembering to take them","I'm confused which inhaler to take when","Don't know why I should take it","Concerns over side effects","Medications not working","Don't want to run out, so purposefully skipping doses","Never learned how to take them","None of the above"]}]),loadAirQualityDataPoints:e=>Promise.resolve([])})};function Tve(e){const[a,n]=c(!0),[r,i]=c(),[o,u]=c([]),[d,m]=c([]),[h,p]=c([]),g=s(null),[f,y]=c(!1),[v,w]=c();let k=Ni(),x=on(k,{days:-89});if(l((()=>{n(!0);const t=e.previewState?Pve.createDataService(e.previewState):rve;let a=t.loadParticipant(),r=t.loadLogEntries(x),o=t.loadSurveyAnswers(e.logEntrySurveyName,x),s=t.loadAirQualityDataPoints(x);Promise.all([a,r,o,s]).then((e=>{i(e[0]),u(e[1]),m(e[2]),p(e[3]),n(!1)}))}),[e.previewState]),a)return t.createElement(ZA,{innerRef:e.innerRef});let A=r.getFirstName();if("Caregiver"===r.getParticipantMode()){const e=r.getCareRecipientName();e&&(A=e)}let S={},E=0,_=0,C=0,O=0,P=0,T=0,M=0,D=0,I=0,N=0,j=0,z=0,R=0,L=0;o.forEach((e=>{S[e.identifier]=wye(o,Ei(e.identifier)),"none"===e.symptomLevel?E++:"mild"===e.symptomLevel?(_++,P++):"moderate"===e.symptomLevel?(C++,P++):"severe"===e.symptomLevel&&(O++,P++),e.symptoms.includes("Coughing")&&T++,e.symptoms.includes("Wheezing")&&M++,e.impacts.includes("Use your rescue inhaler")&&D++,e.impacts.includes("Limit your daily activity")&&I++,e.impacts.includes("Wake up at night")&&N++,e.triggers.includes("Animal exposure")&&j++,e.triggers.includes("Seasonal allergens/pollen")&&z++,e.triggers.includes("Smoke (tobacco or wood burning)")&&R++,e.triggers.includes("Air pollution")&&L++}));let F=0,B=0,H=[];d.forEach((e=>{"MISSED_DOSES"===e.stepIdentifier?(e.answers.includes("1 - 2 missed doses")||e.answers.includes("3 - 6 missed doses")||e.answers.includes("7 or more missed doses"))&&F++:"MISSED_DOSES_REASONS"===e.stepIdentifier&&(e.answers.length>0&&"None of the above"!==e.answers[0]&&B++,e.answers.forEach((e=>{"None of the above"===e||H.includes(e)||H.push(e)})))}));let q=h.filter((e=>"HomeAirQuality"===e.type&&parseFloat(e.value)>100)),V=new Set(q.map((e=>xr(Ei(e.observationDate),{representation:"date"})))).size,U=h.filter((e=>"WorkAirQuality"===e.type&&parseFloat(e.value)>100)),W=new Set(U.map((e=>xr(Ei(e.observationDate),{representation:"date"})))).size;const $=(e,a,n)=>{let r=Array.from({length:a},((t,a)=>a+e));return t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",alignItems:"center",justifyContent:"space-evenly",margin:"4px 0"}},r.map((a=>((e,a)=>{let n=on(x,{days:e}),r=bye(n),i=S[r],o={fill:"transparent",stroke:"#fff",strokeWidth:2},s={fontSize:"15px",fontWeight:600,textAlign:"center",lineHeight:"40px"};return"not-controlled"===i?.status?(o.fill="#F86A5C",o.stroke="#F86A5C",s.color="#fff"):"controlled"===i?.status?(o.stroke="#35A6A0",s.color="#35A6A0"):"not-determined"===i?.status&&(o.stroke="#000",o.strokeDasharray=4),t.createElement("div",{style:{textAlign:"center",padding:"1px",flexGrow:1,flexBasis:"5%"}},t.createElement("div",{style:{width:"38px",minHeight:"22px",fontSize:"16px",margin:"2px auto"}},a||1===n.getDate()?ll(n).toLocaleUpperCase():""),t.createElement("svg",{viewBox:"0 0 40px 40px",style:{height:"40px",width:"40px"}},t.createElement("circle",{cx:"20",cy:"20",r:"18",style:o}),t.createElement("foreignObject",{x:"0",y:"0",height:"40px",width:"40px"},t.createElement("div",{style:s},n.getDate()))))})(a,!!n&&e==a))))},G=(e,a,n)=>t.createElement("div",{style:{display:"flex",flexDirection:"row",margin:"2px 0"}},t.createElement("div",{style:{flexGrow:1,marginRight:"4px",fontWeight:500}},e),t.createElement("div",{style:{flexShrink:0}},a," ",n)),K=e=>{let t=`AsthmaTool-ProviderReport-${xr(new Date,{representation:"date"})}`,a=b.baseUrl+"WebVisualization/WebVisualizationPDF?patientID="+r.getId()+"&modelType=VisualizationModel&visualizationKey=Shared.HtmlToPdf&fileName="+encodeURIComponent(t);e&&["Android","iOS"].includes(e.platform)?window.webkit.messageHandlers.OpenFile.postMessage({url:a}):b.openExternalUrl(a),setTimeout((()=>{y(!1)}),2e3)};let Z=1224,Y=(window.innerWidth-32)/Z;return t.createElement("div",{style:{display:"flex",justifyContent:"center"}},t.createElement("div",{style:{position:"absolute",width:Z,height:1575,transform:"scale("+Y+")",transformOrigin:"top"}},t.createElement("div",{style:{position:"relative",padding:"32px 48px",width:Z,height:1575,boxSizing:"border-box",backgroundColor:"#fff",fontFamily:"Inter, sans-serif"},ref:g},t.createElement("div",{style:{fontSize:"32px",fontWeight:600}},A," - Asthma Tool - Provider Report"),t.createElement("div",{style:{fontSize:"24px",color:"#3b3b3b",marginBottom:"16px"}},rl(x)," - ",rl(k)," (90 ",eo("days"),")"),t.createElement("div",{style:{border:"1px solid #dbdbdb",borderRadius:"10px",overflow:"hidden",marginBottom:"16px"}},t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",padding:"16px",borderBottom:"1px solid #dbdbdb",boxSizing:"border-box"}},t.createElement("div",{style:{flexGrow:1}},t.createElement("div",{style:{fontSize:"18px",fontWeight:700}},"Asthma Control"),t.createElement("div",{style:{fontSize:"16px",color:"#3b3b3b",marginBottom:"16px"}},"Patient reported"),t.createElement("div",{style:{display:"flex",flexDirection:"row"}},t.createElement("div",{style:{marginRight:"24px"}},t.createElement("div",{style:{fontSize:"24px",fontWeight:700}},o.length," out of 90"),t.createElement("div",null,"Daily entries logged")),t.createElement("div",{style:{marginRight:"24px"}},t.createElement("div",{style:{fontSize:"24px",fontWeight:700,color:"#F86A5C"}},o.filter((e=>"not-controlled"===S[e.identifier].status)).length," days"),t.createElement("div",null,"Not under control")),t.createElement("div",null,t.createElement("div",{style:{fontSize:"24px",fontWeight:700,color:"#35A6A0"}},o.filter((e=>"controlled"===S[e.identifier].status)).length," days"),t.createElement("div",null,"Under control")))),t.createElement("div",{style:{fontSize:"14px",fontWeight:500,paddingTop:"8px"}},t.createElement("div",{style:{display:"flex",flexDirection:"row",marginBottom:"8px"}},t.createElement("svg",{viewBox:"0 0 20 20",style:{height:"20px",width:"20px"}},t.createElement("circle",{cx:"10",cy:"10",r:"8",style:{fill:"#fff",stroke:"#35A6A0",strokeWidth:2}})),t.createElement("div",{style:{flexGrow:1,padding:"2px 8px"}},"Under control")),t.createElement("div",{style:{display:"flex",flexDirection:"row",marginBottom:"8px"}},t.createElement("svg",{viewBox:"0 0 20 20",style:{height:"20px",width:"20px"}},t.createElement("circle",{cx:"10",cy:"10",r:"8",style:{fill:"#F86A5C",stroke:"#F86A5C",strokeWidth:2}})),t.createElement("div",{style:{flexGrow:1,padding:"2px 8px"}},"Not under control")),t.createElement("div",{style:{display:"flex",flexDirection:"row",marginBottom:"8px"}},t.createElement("svg",{viewBox:"0 0 20 20",style:{height:"20px",width:"20px"}},t.createElement("circle",{cx:"10",cy:"10",r:"8",style:{fill:"#fff",stroke:"#000",strokeWidth:2,strokeDasharray:3}})),t.createElement("div",{style:{flexGrow:1,padding:"2px 8px"}},"Not enough information")))),t.createElement("div",{style:{padding:"12px 16px"}},$(0,18,!0),$(18,18),$(36,18),$(54,18),$(72,18)),t.createElement("div",{style:{fontSize:"14px",color:"#3b3b3b",backgroundColor:"#f2f2f2",padding:"16px"}},"This patient-facing digital asthma tool allows the user to create a daily entry and self-report their symptoms, use of rescue inhaler and impact on activity and nighttime awakenings. The figure above use the self-reported answers to assess asthma control, based on the ",t.createElement("a",{href:"https://www.nhlbi.nih.gov/health-topics/guidelines-for-diagnosis-management-of-asthma",target:"_blank"},"EPR-3 guidelines"),". A day is noted as not under control if in the prior week (7 days) there are more than 2 days of symptoms or rescue inhaler use or due to asthma 1 nighttime awakening or limitation in activity was recorded.")),t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",fontSize:"17px",marginBottom:"16px"}},t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Components of control"),G("Symptoms reported",P,1===P?"day":"days"),G("Rescue inhaler use",D,1===D?"day":"days"),G("Normal activities affected",I,1===I?"day":"days"),G("Nighttime awakenings",N,1===N?"day":"days")),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px",margin:"0 16px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Symptom severity"),G("None",E,1===E?"day":"days"),G("Mild",_,1===_?"day":"days"),G("Moderate",C,1===C?"day":"days"),G("Severe",O,1===O?"day":"days")),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Common symptoms"),G("Coughing",T,1===T?"day":"days"),G("Wheezing",M,1===M?"day":"days"))),t.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%",fontSize:"16px",marginBottom:"24px"}},t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Top 4 triggers"),G("Animal exposure",j,1===j?"report":"reports"),G("Seasonal allergens/pollen",z,1===z?"report":"reports"),G("Smoke",R,1===R?"report":"reports"),G("Air pollution",L,1===L?"report":"reports")),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px",margin:"0 16px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Medications"),G("Missed doses",F,1===F?"report":"reports"),0===B&&G("Reported barriers to adherence",0,"reports"),B>=1&&G("Reported barriers to adherence*",B,1===B?"report":"reports"),B>=1&&t.createElement("div",{style:{fontSize:"12px",marginTop:"12px"}},"*",H.join("; "))),t.createElement("div",{style:{flexGrow:1,flexBasis:"30%",backgroundColor:"#f2f2f2",border:"1px solid #dbdbdb",borderRadius:"10px",padding:"12px"}},t.createElement("div",{style:{marginBottom:"8px",fontWeight:700}},"Days with AQI over 100"),G("Home",V>0?V:"None",1===V?"day":V>1?"days":""),G("Work",W>0?W:"None",1===W?"day":W>1?"days":""),t.createElement("div",{style:{fontSize:"12px",marginTop:"12px"}},"Source: airnow.gov"))),t.createElement("div",{style:{position:"absolute",bottom:64,left:48,right:48,fontSize:"17px"}},t.createElement("div",{style:{fontSize:"16px",fontWeight:700,marginBottom:"16px"}},"For Providers - About this tool & report:"),t.createElement("div",{style:{marginBottom:"16px"}},"This report was generated from what is logged in the Asthma Tool, powered by ",t.createElement("a",{href:"https://careevolution.com/mydatahelps/",target:"_blank"},"MyDataHelps"),". The Asthma Tool enables patients to track daily their symptoms and triggers, provides clear summaries or what they log and surfaces relevant educational content and resource links. it summarizes the user's symptom logs. This digital tool design was based on promoting self-regulation, which ",t.createElement("a",{href:"https://pubmed.ncbi.nlm.nih.gov/26252889/",target:"_blank"},"studies")," demonstrate can improve conditions such as asthma. The Asthma Tool does not recommend any changes in management or provide diagnosis."),t.createElement("div",{style:{marginBottom:"16px"}},"To provide feedback on this report or tool, please e-mail us: ",t.createElement("a",{href:"mailto:asthma@careevolution.com",target:"_blank"},"asthma@careevolution.com")),t.createElement("div",{style:{marginBottom:"16px",height:"1px",backgroundColor:"#bdbdbd"}}),t.createElement("div",null,"If you plan to share this report with your provider, be aware that communications over email, text, and other channels may not be secure because they can be sent to the wrong address or intercepted.")),t.createElement("div",{style:{position:"absolute",bottom:32,right:48,fontSize:"16px",fontWeight:500,textAlign:"right"}},"Page 1 of 1")),t.createElement("div",{style:{textAlign:"center",margin:"64px 0",transform:"scale("+1/Y+")",transformOrigin:"top"}},f&&t.createElement(ZA,null),!f&&t.createElement("button",{className:"mdhui-button",onClick:()=>(()=>{if(!e.previewState&&!f)if(y(!0),v)K(v);else{let e='<head><link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet"></head>';e+=g.current.outerHTML,b.persistDeviceData([{type:"ReportHtml",value:e}]).then((()=>{b.getDeviceInfo().then((function(e){w(e),K(e)}))}))}})()},t.createElement("div",null,"Generate PDF ",t.createElement(hge,{icon:X}))))))}function Mve(e){const[a,n]=c();if(td((()=>{if("none"===e.previewState)return void n(void 0);if("default"===e.previewState)return void n({number:"34",image:"medications"});let t=Ni();rve.loadLogEntries(on(new Date(t),{days:-10})).then((a=>{let r=bye(t),i=a.find((e=>e.identifier===r));i&&rve.loadSurveyAnswers(e.logTodayEntrySurveyName,t).then((e=>{((e,t,a)=>{let r=[];"controlled"===t.status?r.push({number:"21",image:"asthmacontrol"}):"not-determined"===t.status?r.push({number:"22",image:"asthmacontrol"}):"not-controlled"===t.status&&r.push({number:"25",image:"asthmacontrol"}),e.triggers.includes("Seasonal allergens/pollen")&&r.push({number:"42",image:"triggers"}),e.triggers.includes("Air pollution")&&r.push({number:"43",image:"triggers"}),e.triggers.includes("Cold/viral illness")&&r.push({number:"43a",image:"triggers"}),e.triggers.includes("Animal exposure")&&r.push({number:"43b",image:"triggers"}),e.triggers.includes("Smoke (tobacco or wood burning)")&&r.push({number:"43c",image:"triggers"}),e.triggers.includes("Extreme weather changes")&&r.push({number:"43d",image:"triggers"}),(e.triggers.includes("Strong smells")||e.triggers.includes("Chemicals/cleaning supplies"))&&r.push({number:"43e",image:"triggers"}),(e.triggers.includes("Dust")||e.triggers.includes("Dust mites"))&&r.push({number:"43f",image:"triggers"}),e.triggers.includes("Mold")&&r.push({number:"43g",image:"triggers"}),e.triggers.includes("Had heartburn")&&r.push({number:"43h",image:"triggers"});const i=["Taken a NSAID (non-steroidal anti-inflammatory drugs including aspirin and ibuprofen)","Taken a beta blocker","Had heartburn","Drank red wine","Tried any new foods","Cooked without a fan or open window","Had a pet sleep in your bed","Burned incense or a candle"];e.triggers.find((e=>i.includes(e)))&&r.push({number:"41",image:"triggers"});let o=a.find((e=>"MISSED_DOSES"===e.stepIdentifier));if(o&&(o.answers.includes("No controller med")&&r.push({number:"32",image:"medications"}),o.answers.includes("No missed doses"))){let e=a.find((e=>"MISSED_DOSES_INHALER_TYPE"===e.stepIdentifier));e&&(e.answers.includes("Metered-dose inhaler (MDI)")&&r.push({number:"37a",image:"medications"}),e.answers.includes("Dry-powder inhaler (DPI)")&&r.push({number:"37b",image:"medications"}),e.answers.includes("Soft mist inhaler")&&r.push({number:"37c",image:"medications"}),e.answers.includes("Nebulizer")&&r.push({number:"37d",image:"medications"}))}let s=a.find((e=>"MISSED_DOSES_REASONS"===e.stepIdentifier));s&&((s.answers.includes("Unable to afford the medications")||s.answers.includes("Don't want to run out, so purposefully skipping doses"))&&r.push({number:"33",image:"medications"}),s.answers.includes("Difficulty getting refills")&&r.push({number:"34",image:"medications"}),s.answers.includes("Trouble remembering to take them")&&r.push({number:"35",image:"medications"}),s.answers.includes("I'm confused which inhaler to take when")&&r.push({number:"36",image:"medications"}),s.answers.includes("Don't know why I should take it")&&r.push({number:"38",image:"medications"}),s.answers.includes("Concerns over side effects")&&r.push({number:"39",image:"medications"}),s.answers.includes("Medications not working")&&r.push({number:"39a",image:"medications"})),"severe"===e.symptomLevel&&r.push({number:"24",image:"asthmacontrol"}),r.length>0?n(r[Math.floor(Math.random()*r.length)]):n(void 0)})(i,wye(a,t),e)}))}))}),[],[e.previewState]),!a)return null;let r=(t=>{let a=to(b.getCurrentLanguage());return{title:eo(`asthma-recommended-article-${t.number}-title`),subTitle:eo(`asthma-recommended-article-${t.number}-subtitle`),url:new URL(`atedu_${t.number}${"es"===a?"_es":""}.html`,e.libraryBaseUrl).href,imageUrl:new URL(`images/article_category_${t.image}${"es"===a?"_es":""}.svg`,e.libraryBaseUrl).href}})(a);return t.createElement("div",{className:"mdhui-asthma-recommended-article",style:e.style},t.createElement(Zfe,{title:r.title,subTitle:r.subTitle,imageUrl:r.imageUrl,imageAlignment:e.imageAlignment,buttonVariant:e.buttonVariant,buttonText:e.buttonText,onClick:()=>{e.previewState||b.openEmbeddedUrl(r.url)},innerRef:e.innerRef}))}function Dve(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showCloseButton:!0}),t.createElement(sve,{previewState:e.previewState,learnMoreUrl:e.learnMoreUrl,editActionPlanSurveyName:e.editActionPlanSurveyName}))}function Ive(e){const[a,n]=c();let r;return"default"===e.previewState&&(r=(e,t)=>Ec(e,t,2e3,2e4)),td((()=>{"default"!==e.previewState?rve.loadParticipant().then((e=>{n(e.getStepsBaseline())})):n(1e4)})),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-activity-view-title"))),t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:r,title:eo("asthma-activity-view-chart-title"),dailyDataType:Fye.Steps,highlight:e=>!!a&&!jye(a,e),emptyDomain:[0,1e4]}),"Steps"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-activity-view-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}function Nve(e){let a;return"default"===e.previewState&&(a=(e,t)=>Ec(e,t,30,130)),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-air-quality-view-title"))),(!e.alert||"HomeAirQuality"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:a,title:eo("asthma-air-quality-view-home-aqi-chart-title"),dailyDataType:Li.HomeAirQuality,highlight:e=>e>100,emptyDomain:[0,160]}),(!e.alert||"WorkAirQuality"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:a,title:eo("asthma-air-quality-view-work-aqi-chart-title"),dailyDataType:Li.WorkAirQuality,highlight:e=>e>100,emptyDomain:[0,160]}),"HomeAirQuality"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-air-quality-view-home-aqi-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"WorkAirQuality"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-air-quality-view-work-aqi-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}function jve(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"}),t.createElement("div",{style:{background:"#ccc",height:160,width:160,borderRadius:"50%",margin:"32px auto"}}),t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-alert-takeover-message"),logEntrySurveyName:e.logEntrySurveyName}))}function zve(e){const[a,n]=c(!0),[r,i]=c();return td((()=>{if(n(!0),"loading"!==e.previewState)return e.previewState?(i({getParticipantMode:()=>"as caregiver"===e.previewState?"Caregiver":"Self"}),void n(!1)):void rve.loadParticipant().then((e=>{i(e),n(!1)}))}),[],[e.previewState]),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0},t.createElement(iM,{order:2},rl(e.date))),a&&t.createElement(ZA,null),!a&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(Ave,{previewState:e.previewState?"logged with mild symptoms":void 0,date:e.date,logTodayEntrySurveyName:e.logTodayEntrySurveyName,logYesterdayEntrySurveyName:e.logYesterdayEntrySurveyName,editLogEntryUrl:e.editLogEntryUrl,infoUrl:e.logEntryInfoUrl})),"Caregiver"!==r.getParticipantMode()&&t.createElement(eS,null,t.createElement(hve,{previewState:e.previewState?"all data":void 0,heartAndLungsUrl:e.heartAndLungsUrl,activityUrl:e.activityUrl,sleepUrl:e.sleepUrl,date:e.date})),t.createElement(eS,null,t.createElement(cve,{previewState:e.previewState?"all data":void 0,airQualityUrl:e.airQualityUrl,date:e.date}))))}function Rve(e){const[a,n]=c(),[r,i]=c(),[o,s]=c(),[l,u]=c(),[d,m]=c();let h,p,g;return"default"===e.previewState&&(h=(e,t)=>Ec(e,t,30,150,!1),p=(e,t)=>Ec(e,t,10,50),g=(e,t)=>Ec(e,t,.85,1,!1)),td((()=>{if("default"===e.previewState)return n(90),i(90),s(30),u(.97),void m(.96);rve.loadParticipant().then((e=>{n(e.getDaytimeRestingHeartRateBaseline()),i(e.getNighttimeRestingHeartRateBaseline()),s(e.getRespiratoryRateBaseline()),u(e.getDaytimeBloodOxygenLevelBaseline()),m(e.getNighttimeBloodOxygenLevelBaseline())}))})),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-heart-and-lungs-view-title"))),(!e.alert||"DaytimeRestingHeartRate"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:h,title:eo("asthma-heart-and-lungs-view-dhr-chart-title"),dailyDataType:Fye.DaytimeRestingHeartRate,valueFormatter:e=>yl(e),highlight:e=>!!a&&!Dye(a,e),emptyDomain:[0,120]}),(!e.alert||"NighttimeRestingHeartRate"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:h,title:eo("asthma-heart-and-lungs-view-nhr-chart-title"),dailyDataType:Fye.NighttimeRestingHeartRate,valueFormatter:e=>yl(e),highlight:e=>!!r&&!Iye(r,e),emptyDomain:[0,120]}),(!e.alert||"RespiratoryRate"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:p,title:eo("asthma-heart-and-lungs-view-rr-chart-title"),dailyDataType:Fye.RespiratoryRate,highlight:e=>!!o&&!Nye(o,e),emptyDomain:[0,40]}),(!e.alert||"DaytimeBloodOxygenLevel"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:g,title:eo("asthma-heart-and-lungs-view-dbol-chart-title"),dailyDataType:Fye.DaytimeBloodOxygenLevel,valueConverter:e=>100*e,valueFormatter:e=>yl(e),highlight:e=>!!l&&!Rye(l,e),domain:[80,100],emptyDomain:[80,100]}),(!e.alert||"NighttimeBloodOxygenLevel"===e.alert)&&t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:g,title:eo("asthma-heart-and-lungs-view-nbol-chart-title"),dailyDataType:Fye.NighttimeBloodOxygenLevel,valueConverter:e=>100*e,valueFormatter:e=>yl(e),highlight:e=>!!d&&!Rye(d,e),domain:[80,100],emptyDomain:[80,100]}),"DaytimeRestingHeartRate"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-dhr-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"NighttimeRestingHeartRate"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-nhr-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"RespiratoryRate"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-rr-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"DaytimeBloodOxygenLevel"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-dbol-alert-message"),logEntrySurveyName:e.logEntrySurveyName}),"NighttimeBloodOxygenLevel"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-heart-and-lungs-view-nbol-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}w(".mdhui-asthma-recommended-article {\n padding: 0 16px;\n margin: 16px 0;\n}\n\n.mdhui-asthma-recommended-article .mdhui-resource {\n margin: 0;\n}");const Lve={identifier:bye(new Date),symptomLevel:"none",symptoms:[],impacts:[],triggers:[]},Fve={"no symptoms":{logEntry:Lve},"mild symptoms":{logEntry:{...Lve,symptomLevel:"mild",symptoms:["Coughing"],impacts:["Wake up at night","Use your rescue inhaler"],triggers:["Cold/viral illness","Seasonal allergens/pollen","Smoke (tobacco or wood burning)","Air pollution","Dust mites","Mold"]}},"moderate symptoms":{logEntry:{...Lve,symptomLevel:"moderate",symptoms:["Coughing"],triggers:["Cold/viral illness","Mold"]}},"severe symptoms":{logEntry:{...Lve,symptomLevel:"severe",symptoms:["Coughing","Wheezing"],impacts:["Use your rescue inhaler"]}}};function Bve(e){let a=on(Ni(),{days:-1});if(Sr(e.date,a))return b.dismiss(),null;const[n,r]=c(!0),[i,o]=c();td((()=>{if(r(!0),"loading"===e.previewState)return;if(e.previewState)return o(Fve[e.previewState].logEntry),void r(!1);let t=on(new Date(e.date),{days:-1}),a=on(new Date(e.date),{days:1});rve.loadLogEntries(t,a).then((t=>{let a=bye(e.date),n=t.find((e=>e.identifier===a));n?o(n):b.dismiss(),r(!1)}))}),[],[e.previewState]);const s=e=>{(e=>{let t={...i,symptomLevel:e};"none"===e&&(t.symptoms=[]),o(t)})(Sye(e))},l=e=>{(e=>{let t={...i,symptoms:e};e.length>0&&"none"===t.symptomLevel&&(t.symptomLevel="mild"),o(t)})(_ye(e))},u=t.createElement(k,{className:"button",style:{left:"16px"},onClick:()=>{e.previewState||b.dismiss()}},"Cancel"),d=t.createElement(k,{className:"button",style:{color:"#fff",background:"#369cff",right:"16px",padding:"0 16px"},onClick:()=>{n||e.previewState||rve.saveLogEntry(i).then((()=>{b.dismiss()}))}},"Save");return t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{title:rl(e.date),navigationBarLeft:u,navigationBarRight:d,variant:"compressed",backgroundColor:"var(--mdhui-background-color-0)"}),n&&t.createElement(ZA,null),!n&&i&&t.createElement("div",null,t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-symptom-level-title"),subtitle:eo("asthma-log-entry-editor-view-select-one-subtitle"),values:[eo("asthma-symptom-level-none"),eo("asthma-symptom-level-mild"),eo("asthma-symptom-level-moderate"),eo("asthma-symptom-level-severe")],selectedValues:[Aye(i.symptomLevel)],preventEmptySelections:!0,onChange:e=>s(e[0])})),t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-symptoms-title"),subtitle:eo("asthma-log-entry-editor-view-select-all-subtitle"),values:[eo("asthma-symptom-difficulty-breathing"),eo("asthma-symptom-wheezing"),eo("asthma-symptom-coughing"),eo("asthma-symptom-chest-tightness")],selectedValues:Eye(i.symptoms),variant:"checkboxes",multiSelect:!0,onChange:e=>l(e)})),t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-impacts-title"),subtitle:eo("asthma-log-entry-editor-view-select-all-subtitle"),values:[eo("asthma-impact-waking-at-night"),eo("asthma-impact-limit-daily-activity"),eo("asthma-impact-using-rescue-inhaler")],selectedValues:Cye(i.impacts),variant:"checkboxes",multiSelect:!0,onChange:e=>{return t=e,void o({...i,impacts:Oye(t)});var t}})),t.createElement(eS,{backgroundColor:"var(--mdhui-background-color-1)"},t.createElement(dye,{title:eo("asthma-log-entry-editor-view-triggers-title"),subtitle:eo("asthma-log-entry-editor-view-select-all-subtitle"),values:[eo("asthma-trigger-cold-illness"),eo("asthma-trigger-animal-exposure"),eo("asthma-trigger-seasonal-allergens"),eo("asthma-trigger-exercise"),eo("asthma-trigger-smoke"),eo("asthma-trigger-weather-changes"),eo("asthma-trigger-air-pollution"),eo("asthma-trigger-strong-smells"),eo("asthma-trigger-chemicals"),eo("asthma-trigger-dust"),eo("asthma-trigger-mold"),eo("asthma-trigger-dust-mites"),eo("asthma-trigger-rodents"),eo("asthma-trigger-cockroaches"),eo("asthma-trigger-nsaid"),eo("asthma-trigger-beta-blocker"),eo("asthma-trigger-heartburn"),eo("asthma-trigger-red-wine"),eo("asthma-trigger-new-foods"),eo("asthma-trigger-cooked-without-ventilation"),eo("asthma-trigger-pet-in-bed"),eo("asthma-trigger-incense-or-candle")],selectedValues:Pye(i.triggers),variant:"checkboxes",multiSelect:!0,onChange:e=>{return t=e,void o({...i,triggers:Tye(t)});var t}}))))}function Hve(e){return t.createElement(Wa,{colorScheme:"light"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0},t.createElement(iM,{order:1},"Provider Report")),t.createElement(Tve,{previewState:e.previewState,logEntrySurveyName:e.logEntrySurveyName}))}function qve(e){const[a,n]=c();let r;return"default"===e.previewState&&(r=(e,t)=>Ec(e,t,0,15)),td((()=>{"default"!==e.previewState?rve.loadParticipant().then((e=>{n(e.getSleepDisturbancesBaseline())})):n(5)})),t.createElement(Wa,{colorScheme:e.colorScheme??"auto",bodyBackgroundColor:"var(--mdhui-background-color-0)"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0,backgroundColor:"var(--mdhui-background-color-0)"},t.createElement(iM,{order:1},eo("asthma-sleep-view-title"))),t.createElement(yfe,{previewState:"default"===e.previewState?"loaded with data":void 0,previewDataProvider:r,title:eo("asthma-sleep-view-chart-title"),dailyDataType:Fye.SleepDisturbances,highlight:e=>!!a&&!zye(a,e),emptyDomain:[0,16]}),"SleepDisturbances"===e.alert&&t.createElement(uve,{previewState:e.previewState?"loaded":void 0,message:eo("asthma-sleep-view-alert-message"),logEntrySurveyName:e.logEntrySurveyName}))}function Vve(e){return t.createElement(Wa,{colorScheme:"light",className:"mdhui-step-container"+(e.className?` ${e.className}`:""),bodyBackgroundColor:"#FFFFFF"},e.children)}function Uve(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?`${e.fontSize}px`:void 0,fontWeight:e.fontWeight,backgroundImage:""}}w(".mdhui-step-container {\n background-color: #FFFFFF;\n}\n\n.mdhui-step-container div,\n.mdhui-step-container dl,\n.mdhui-step-container dt,\n.mdhui-step-container dd,\n.mdhui-step-container ul,\n.mdhui-step-container ol,\n.mdhui-step-container li,\n.mdhui-step-container h1,\n.mdhui-step-container h2,\n.mdhui-step-container h3,\n.mdhui-step-container h4,\n.mdhui-step-container h5,\n.mdhui-step-container h6,\n.mdhui-step-container pre,\n.mdhui-step-container form,\n.mdhui-step-container fieldset,\n.mdhui-step-container input,\n.mdhui-step-container textarea,\n.mdhui-step-container p,\n.mdhui-step-container blockquote,\n.mdhui-step-container th,\n.mdhui-step-container td {\n margin: 0;\n padding: 0;\n}\n\n.mdhui-step-container a {\n color: var(--mdhui-color-primary);\n text-decoration: none;\n}\n\n.mdhui-step-container ol {\n list-style-type: decimal;\n white-space: normal;\n list-style-position: inside;\n}\n\n.mdhui-step-container ul {\n list-style-type: disc;\n text-align: left;\n display: block;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n white-space: normal;\n}\n\n.mdhui-step-container ul ul {\n list-style-type: circle;\n}\n\n.mdhui-step-container ul ul ul {\n list-style-type: square;\n}");function Wve(e){let a,n=new $_;a=e.inline?n.renderInline(e.text??""):n.render(e.text??""),a=a?.trim();let r=JT(a,{replace:e=>{let t=e;"a"===t.name&&(t.attribs.target="_blank")}});return t.createElement(t.Fragment,null,r)}function $ve(e){return e.text?t.createElement("div",{className:"mdhui-step-title",style:Uve(e)},t.createElement(Wve,{text:e.text,inline:!0})):null}w(".mdhui-step-container .mdhui-step-title {\n text-align: center;\n font-size: 1.7em;\n line-height: 1.2em;\n font-weight: normal;\n margin-top: 20px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n position: relative;\n display: block;\n}");function Gve(e){return e.text?t.createElement("div",{className:"mdhui-step-text",style:Uve(e)},t.createElement(Wve,{text:e.text})):null}w(".mdhui-step-container .mdhui-step-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n white-space: pre-line;\n}");function Kve(e){return e.text?t.createElement("div",{className:"mdhui-step-detail-text",style:Uve(e)},t.createElement(Wve,{text:e.text})):null}w(".mdhui-step-container .mdhui-step-detail-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px;\n white-space: pre-line;\n}");function Zve(e){const a=Uve(e);if(e.gradient){var n="LeftToRight"===e.gradient.direction?`linear-gradient(to right, ${e.gradient.startColor} 0%, ${e.gradient.endColor} 100%)`:`linear-gradient(to bottom, ${e.gradient.startColor} 0%, ${e.gradient.endColor} 100%)`;a.backgroundImage=n}a.letterSpacing=e.letterSpacing,a.textTransform=e.textTransform,a.backgroundColor=e.backgroundColor,a.borderColor=e.backgroundColor;var r=e.text?e.text:eo("next-button-text");return t.createElement("button",{className:"mdhui-step-next-button",style:a,disabled:e.disabled,onClick:e.onClick},r)}w(".mdhui-step-container .mdhui-step-next-button {\n margin: 20px;\n padding: 16px;\n background: var(--mdhui-color-primary);\n font-size: 1em;\n color: #FFF;\n font-weight: bold;\n border: solid 1px var(--mdhui-color-primary);\n border-radius: 5px;\n cursor: pointer;\n width: calc(100% - 40px);\n box-sizing: border-box;\n text-align: center;\n display: inline-block;\n}\n\n.mdhui-step-container .mdhui-step-next-button:disabled,\n.mdhui-step-container .mdhui-step-next-button[disabled] {\n opacity: 0.65;\n cursor: not-allowed;\n}");var Yve=150,Qve=2,Xve=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],Jve=!1,ebe=null,tbe=[],abe=0;function nbe(e,t,a){return e.color=Xve[Math.random()*Xve.length|0],e.x=Math.random()*t,e.y=Math.random()*a-a,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=0,e}function rbe(){var e=window.innerWidth,t=window.innerHeight,a=window.requestAnimationFrame||function(e){return window.setTimeout(e,16.6666667)},n=document.getElementById("confetti-canvas");null===n&&((n=document.createElement("canvas")).setAttribute("id","confetti-canvas"),n.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(n),n.width=e,n.height=t,window.addEventListener("resize",(function(){n.width=window.innerWidth,n.height=window.innerHeight}),!0));for(var r=n.getContext("2d");tbe.length<Yve;)tbe.push(nbe({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));Jve=!0,null===ebe&&function e(){r?.clearRect(0,0,window.innerWidth,window.innerHeight),0===tbe.length?ebe=null:(!function(){var e,t=window.innerWidth,a=window.innerHeight;abe+=.01;for(var n=0;n<tbe.length;n++)e=tbe[n],!Jve&&e.y<-15?e.y=a+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(abe),e.y+=.5*(Math.cos(abe)+e.diameter+Qve),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>a)&&(Jve&&tbe.length<=Yve?nbe(e,t,a):(tbe.splice(n,1),n--))}(),function(e){if(e)for(var t,a,n=0;n<tbe.length;n++)t=tbe[n],e.beginPath(),e.lineWidth=t.diameter,e.strokeStyle=t.color,a=t.x+t.tilt,e.moveTo(a+t.diameter/2,t.y),e.lineTo(a,t.y+t.tilt+t.diameter/2),e.stroke()}(r),ebe=a(e))}()}function ibe(){Jve=!1}function obe(e){return e.srcUrl?t.createElement("div",{className:"mdhui-step-image-icon"},t.createElement("img",{src:e.srcUrl})):null}w(".mdhui-step-container .mdhui-step-image-icon {\n text-align: center;\n}\n\n.mdhui-step-container .mdhui-step-image-icon img {\n max-width: 100%;\n max-height: 60px;\n padding: 0;\n margin: 0;\n padding-top: 50px;\n}");function sbe(e){return e.srcUrl?t.createElement("div",{className:"mdhui-step-image"},t.createElement("img",{src:e.srcUrl})):null}function lbe(e){function a(){0!==window.innerWidth&&0!==window.innerHeight?(rbe(),window.setTimeout((function(){ibe()}),1200)):window.setTimeout(a,50)}return l((()=>{a()}),[]),t.createElement(Vve,null,t.createElement(obe,{srcUrl:e.iconUrl}),t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(Kve,{text:e.detailText,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(sbe,{srcUrl:e.imageUrl}),t.createElement(Zve,{text:e.nextButtonText,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:()=>b.completeStep("")}))}function cbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c(),[s,u]=c(),[d,m]=c(),[h,p]=c(),[g,f]=c({});return l((()=>{b.getStepConfiguration().then((function(e){e&&(a(e.properties.title),r(e.properties.text),o(e.properties.detailText),u(e.properties.iconImage),m(e.properties.image),p(e.properties.nextButtonText),f(e.styles??{}))}))}),[]),t.createElement(lbe,{title:e,text:n,detailText:i,iconUrl:s,imageUrl:d,nextButtonText:h,styles:g})}function ube(e){const a=eo("connect-to-device").replace("@@DEVICE@@",e.deviceType);return t.createElement(Vve,null,t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(Zve,{text:a,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:e.onConnect}))}function dbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c({}),[s,u]=c(),[d,m]=c(!0);function h(e){switch(e){case"Fitbit":return rV();case"Omron":return sV();case"Garmin":return iV();case"Oura":return lV()}}return l((()=>{b.getStepConfiguration().then((function(e){if(a(e.properties.title),r(e.properties.text),!e.properties.deviceType)throw new Error("deviceType is required");u(e.properties.deviceType),o(e.styles??{}),async function(e){try{const t=await b.getExternalAccounts(),a=h(e);t.some((e=>e.provider.id===a))&&b.completeStep(a)}finally{m(!1)}}(e.properties.deviceType)}))}),[]),d||!s?t.createElement(t.Fragment,null):t.createElement(ube,{title:e,text:n,deviceType:s,providerID:h(s),styles:i,onConnect:function(){const e=h(s);b.connectExternalAccount(e,{openNewWindow:!0}).then((function(){b.completeStep(e)}))}})}w(".mdhui-step-container .mdhui-step-image {\n text-align: center;\n}\n.mdhui-step-container .mdhui-step-image img {\n width: 100%;\n padding: 0;\n margin: 0;\n padding-top: 40px;\n padding-bottom: 40px;\n}");function mbe(e){return t.createElement(Vve,{className:"mdhui-connect-ehr-step"},t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement(ffe,{previewState:e.previewState,providerCategories:["Provider","Health Plan"],onProviderConnected:e.onProviderConnected}),t.createElement(Zve,{text:e.nextButtonText,disabled:e.nextButtonDisabled,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:e.onNextButtonClick}))}function hbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c(),[s,u]=c(),[d,m]=c(!0),[h,p]=c({}),[g,f]=c([]);return l((()=>{b.getStepConfiguration().then((function(e){e&&(a(e.properties.title),r(e.properties.text),u(e.properties.nextButtonText),p(e.styles??{}))})),b.getSurveyContext().then((function(e){e&&o(e)}))}),[]),t.createElement(mbe,{title:e,text:n,nextButtonText:s,nextButtonDisabled:d,styles:h,onProviderConnected:function(e){f((t=>[...t,e.id])),m(!1)},previewState:"Design"===i?.surveyMode?"Default":void 0,onNextButtonClick:()=>b.completeStep(g.toString())})}function pbe(e){let a=(e.height?e.height:"225")+"px",n=b.getCurrentLanguage();return t.createElement(Vve,null,t.createElement($ve,{text:e.title,textAlign:e.styles.titleAlignment,color:e.styles.titleColor,fontSize:e.styles.titleFontSize,fontWeight:e.styles.titleFontWeight}),t.createElement(Gve,{text:e.text,textAlign:e.styles.textAlignment,color:e.styles.textColor,fontSize:e.styles.textFontSize,fontWeight:e.styles.textFontWeight}),t.createElement("div",{style:{textAlign:"center",width:"100%"}},t.createElement("iframe",{style:{width:"100%",height:a,border:0},src:`https://www.youtube.com/embed/${e.videoId}?rel=0&cc_lang_pref=${n}&controls=1&autoplay=0&fs=1&modestbranding=1`,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})),t.createElement(Kve,{text:e.transcript,textAlign:e.styles.detailTextAlignment,color:e.styles.detailTextColor,fontSize:e.styles.detailTextFontSize,fontWeight:e.styles.detailTextFontWeight}),t.createElement(Zve,{text:e.nextButtonText,color:e.styles.nextButtonTextColor,fontWeight:e.styles.nextButtonFontWeight,backgroundColor:e.styles.nextButtonBackgroundColor,letterSpacing:e.styles.nextButtonLetterSpacing,textTransform:e.styles.nextButtonTextTransform?.toLowerCase(),gradient:e.styles.nextButtonBackgroundGradient,onClick:()=>b.completeStep("")}))}function gbe(){const[e,a]=c(),[n,r]=c(),[i,o]=c(),[s,u]=c(""),[d,m]=c(),[h,p]=c(),[g,f]=c({});return l((()=>{b.getStepConfiguration().then((function(e){e&&(a(e.properties.title),r(e.properties.text),o(e.properties.transcript),u(e.properties.videoId),m(e.properties.nextButtonText),p(e.properties.height),f(e.styles??{}))}))}),[]),t.createElement(pbe,{title:e,text:n,transcript:i,nextButtonText:d,height:h,videoId:s,styles:g})}w(".mdhui-step-container.mdhui-connect-ehr-step .mdhui-provider-search {\n margin-bottom: 94px;\n}\n.mdhui-step-container.mdhui-connect-ehr-step .mdhui-step-next-button {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n}");function fbe(e){e.customFields.Symptoms?.length||(e.customFields.Symptoms="[]"),e.customFields.Treatments?.length||(e.customFields.Treatments="[]");var t=[];try{t=JSON.parse(e.customFields.Symptoms)}catch(a){t=JSON.parse(e.customFields.Symptoms.replace(/\\/g,""))}t.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),t.forEach((e=>{e.severityTracking||(e.severityTracking="None")}));var a=[];try{a=JSON.parse(e.customFields.Treatments)}catch(t){a=JSON.parse(e.customFields.Treatments.replace(/\\/g,""))}return a.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),{participantID:e.participantID,symptoms:t,treatments:a}}w(".ss-symptom-matrix {\n background: var(--mdhui-background-color-0);\n /* Default color for PDF Rendering, since evopdf does not support CSS variables */\n border-top: solid 1px #ddd;\n border-top: solid 1px var(--mdhui-border-color-1);\n}");var ybe={getConfiguration:function(){return b.getParticipantInfo().then((function(e){return fbe(e)}))},getDailyLogEntries:function(e,t){var a={},n=function(r){var i={namespace:"Project",type:"DailyLogEntry",pageID:r};return e&&(i.observedAfter=e),t&&(i.observedBefore=t),b.queryDeviceData(i).then((function(e){for(var t=e.deviceDataPoints,r=0;r<t.length;r++){var i=JSON.parse(t[r].value),o=t[r].observationDate;o&&(a[o.substring(0,10)]=vbe(i))}return e.nextPageID?n(e.nextPageID):a}))};return n()},saveDailyLogEntry:function(e,t){return b.persistDeviceData([{type:"DailyLogEntry",observationDate:e+"T00:00:00.000Z",value:JSON.stringify(t)}])}};function vbe(e){e.starred&&(e.icon="star");var t={overallFeeling:e.overallFeeling,notes:e.notes,symptoms:e.symptoms.map((e=>"string"==typeof e?{id:e}:e)),treatments:e.treatments.map((e=>"string"==typeof e?{id:e}:e)),icon:e.icon};return t}function bbe(e){return t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-symptom-treatment-filters"},t.createElement(k,{className:"mdhui-ss-symptom-treatment-filter-dropdown-button",onClick:()=>"Symptoms"==e.expandedDropdown?e.onExpandedDropdownChange(null):e.onExpandedDropdownChange("Symptoms"),style:{fontWeight:e.selectedSymptoms.length>0?"bold":""}},eo("select-symptoms")," ",t.createElement(hge,{icon:"Symptoms"==e.expandedDropdown?z:oe}),t.createElement(JA,null)),t.createElement(k,{className:"mdhui-ss-symptom-treatment-filter-dropdown-button",onClick:()=>"Treatments"==e.expandedDropdown?e.onExpandedDropdownChange(null):e.onExpandedDropdownChange("Treatments"),style:{fontWeight:e.selectedTreatments.length>0?"bold":""}},eo("select-treatments")," ",t.createElement(hge,{icon:"Treatments"==e.expandedDropdown?z:oe}),t.createElement(JA,null)),"Symptoms"==e.expandedDropdown&&t.createElement("div",{className:"mdhui-ss-symptom-treatment-filter-items-list"},e.configuration.symptoms.filter((e=>!e.inactive)).map((a=>t.createElement(uye,{className:"mdhui-ss-symptom-treatment-filter-item",selected:-1!=e.selectedSymptoms.indexOf(a.id),onClick:()=>{return t=a,-1!=(n=[...e.selectedSymptoms]).indexOf(t.id)?n.splice(n.indexOf(t.id),1):n.push(t.id),void e.onSymptomsSelectionChange(n);var t,n},color:a.color,key:a.id,text:a.name})))),"Treatments"==e.expandedDropdown&&t.createElement("div",{className:"mdhui-ss-symptom-treatment-filter-items-list"},e.configuration.treatments.filter((e=>!e.inactive)).map((a=>t.createElement(uye,{className:"mdhui-ss-symptom-treatment-filter-item",selected:-1!=e.selectedTreatments.indexOf(a.id),onClick:()=>{return t=a,-1!=(n=[...e.selectedTreatments]).indexOf(t.id)?n.splice(n.indexOf(t.id),1):n.push(t.id),void e.onTreatmentsSelectionChange(n);var t,n},color:a.color,key:a.id,text:a.name})))))}w(".mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-dropdown-button {\n width: 50%;\n display: inline-block;\n box-sizing: border-box;\n padding: 16px 8px;\n background: var(--mdhui-color-primary);\n text-align: center;\n font-size: .88em;\n cursor: pointer;\n color: #FFF;\n position: relative;\n white-space: nowrap;\n}\n\n.mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-dropdown-button:first-child {\n border-right: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-items-list {\n background: var(--mdhui-background-color-0);\n text-align: center;\n padding: 12px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-bottom: solid 4px var(--ss-primary-theme-color);\n}\n\n.mdhui-ss-symptom-treatment-filters .mdhui-ss-symptom-treatment-filter-item {\n margin: 4px;\n}");var wbe=[{severityTracking:"10PointScale",color:"#c4291c",name:"Headache",id:"Headache"},{severityTracking:"3PointScale",color:"#e35c33",name:"Fatigue",id:"Fatigue"},{severityTracking:"None",color:"#5db37e",name:"Nausea",id:"Nausea"},{severityTracking:"None",color:"#429bdf",name:"Anxiety",id:"Anxiety"},{severityTracking:"None",color:"#7b88c6",name:"Brain Fog",id:"Brain Fog"},{severityTracking:"None",color:"#616161",name:"Back Pain",id:"Back Pain"},{severityTracking:"None",color:"#d98177",name:"Insomnia",id:"Insomnia"}],kbe=[{color:"#616161",id:"Tylenol",name:"Tylenol"},{color:"#429BDF",id:"Rest",name:"Rest"},{color:"#d98177",id:"Ice",name:"Ice"},{color:"#5db37e",id:"Stretching",name:"Stretching"},{color:"#e35c33",id:"Meditation",name:"Meditation"}];wbe.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),kbe.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0));var xbe={},Abe=on(new Date,{days:-29});function Sbe(e,t,a,n,r){xbe[Ri(Abe)]={symptoms:e.map((e=>({id:e,severity:Math.floor(10*Math.random())+1}))),treatments:t.map((e=>({id:e}))),notes:r?"notes":"",icon:n,overallFeeling:a},Abe=on(Abe,{days:1})}Sbe(["Headache","Insomnia"],["Tylenol"],2,"moon-o",!0),Sbe(["Brain Fog","Nausea"],["Tylenol","Ice"],4),Sbe(["Headache"],["Tylenol"],3),Sbe(["Headache","Insomnia"],["Tylenol"],3),Sbe([],[],5),Sbe(["Fatigue","Back Pain","Anxiety","Nausea"],["Stretching","Rest","Ice"],1),Sbe([],[],5),Sbe(["Fatigue","Back Pain","Anxiety","Nausea","Headache","Insomnia","Brain Fog"],["Stretching","Rest","Ice","Meditation","Tylenol"],1,"star-o",!0),Sbe(["Fatigue","Nausea","Headache"],["Stretching"],2),Sbe(["Anxiety","Brain Fog"],["Rest","Meditation"],3,void 0,!0),Sbe([],[],5),Sbe(["Back Pain","Headache"],["Ice","Tylenol"],4),Sbe(["Fatigue","Back Pain","Nausea","Brain Fog"],["Meditation","Tylenol"],2),Sbe([],[],5),Sbe(["Fatigue","Insomnia","Brain Fog"],["Rest"],4,"star",!0),Sbe(["Fatigue","Back Pain"],["Stretching","Rest"],3),Sbe(["Fatigue","Nausea"],["Stretching","Rest","Ice","Meditation","Tylenol"],2,"flag",!0),Sbe(["Headache","Insomnia","Brain Fog"],["Stretching","Tylenol"],4,"user-md",!0),Sbe([],[],5),Sbe([],[],5),Sbe([],[],5),Sbe(["Back Pain","Headache"],["Ice","Tylenol"],4),Sbe(["Fatigue","Back Pain","Nausea","Brain Fog"],["Meditation","Tylenol"],2),Sbe(["Fatigue","Back Pain","Anxiety","Nausea"],["Stretching","Rest","Ice"],1),Sbe(["Fatigue","Insomnia","Brain Fog"],["Rest"],4,"question-circle-o",!0),Sbe(["Fatigue","Back Pain","Anxiety","Nausea","Headache","Insomnia","Brain Fog"],["Stretching","Rest","Ice","Meditation","Tylenol"],1,"flask",!0),Sbe([],[],5),Sbe(["Headache","Insomnia"],["Tylenol"],3),Sbe([],[],5),Sbe(["Fatigue","Insomnia"],["Rest"],2,"trophy",!0);const Ebe=o(null);function _be(e){const[a,n]=c(null),[r,i]=c([]),[o,s]=c([]),[u,d]=c(null);let[m,h]=c(null);function p(){if("default"==e.previewState)return h({symptoms:wbe,treatments:kbe,participantID:"1"}),void n({symptoms:wbe,treatments:kbe,logEntries:xbe,hasFilteredSymptoms:!1});ybe.getConfiguration().then((function(e){ybe.getDailyLogEntries().then((function(t){h(e),m=e,n({symptoms:g(r),treatments:f(o),logEntries:t,hasFilteredSymptoms:!1})}))}))}function g(e){return m.symptoms.filter((t=>(!e.length||e.includes(t.id))&&!t.inactive))}function f(e){return m.treatments.filter((t=>(!e.length||e.includes(t.id))&&!t.inactive))}return l((()=>(p(),b.on("applicationDidBecomeVisible",p),()=>{b.off("applicationDidBecomeVisible",p)})),[]),a&&m?t.createElement("div",{ref:e.innerRef},t.createElement(Ebe.Provider,{value:a},e.showFilters&&t.createElement(Jfe,{noTopMargin:!0},t.createElement(bbe,{configuration:m,selectedSymptoms:r,onSymptomsSelectionChange:e=>function(e){n({...a,symptoms:g(e),hasFilteredSymptoms:!!e.length}),i(e)}(e),selectedTreatments:o,onTreatmentsSelectionChange:e=>function(e){n({...a,treatments:f(e)}),s(e)}(e),expandedDropdown:u,onExpandedDropdownChange:e=>d(e)})),e.children)):t.createElement(ZA,null)}function Cbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Matrix must be used inside a Symptom Shark Visualization Coordinator.");let n=i(nM),r=e.intervalStart||Tn(new Date);if(n&&(r=n.intervalStart),!a.symptoms.length&&!a.treatments.length)return null;var o=el(r.getFullYear(),r.getMonth()),s=a.symptoms.map((e=>({label:e.name,color:e.color,data:o.map((t=>!!function(e,t){var n=Ri(e);return!!a.logEntries[n]&&a.logEntries[n].symptoms.find((e=>e.id==t))}(t,e.id)))}))),l=a.treatments.map((e=>({label:e.name,color:e.color,data:o.map((t=>!!function(e,t){var n=Ri(e);return!!a.logEntries[n]&&a.logEntries[n].treatments.find((e=>e.id==t))}(t,e.id)))})));return t.createElement("div",{ref:e.innerRef,className:"ss-symptom-matrix"},t.createElement(Vfe,{title:eo("symptoms"),rows:s,intervalStart:r}),t.createElement(Vfe,{title:eo("treatments"),rows:l,intervalStart:r}))}function Obe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Calendar must be used inside a Symptom Shark Visualization Coordinator.");let{symptoms:n,treatments:r,logEntries:o}=a,s=i(nM),l=e.intervalStart||Tn(new Date);return s&&(l=s.intervalStart),t.createElement(QA,{innerRef:e.innerRef,className:"mdhui-ss-calendar",month:l.getMonth(),year:l.getFullYear(),dayRenderer:function(a,i,s){if(!s)return t.createElement("div",null);var c=new Date(a,i,s),u=o[Ri(c)],d=!1;return c>new Date&&(d=!0),t.createElement(Pbe,{onClick:t=>function(t){var a=new Date(l.getFullYear(),l.getMonth(),t);a>new Date||e.onDaySelected(a)}(t),day:s,logEntry:u,symptomConfigurations:n,treatmentConfigurations:r,future:d})}})}function Pbe(e){return t.createElement(k,{className:"mdhui-ss-calendar-day"+(e.future?" future":""),onClick:()=>e.onClick(e.day)},function(){if(!e.logEntry)return t.createElement(lM,{className:"mdhui-ss-day-tracker",primaryColors:[],secondaryColors:[]});var a=e.symptomConfigurations.filter((t=>!t.inactive&&e.logEntry.symptoms.find((e=>e.id==t.id)))).map((e=>e.color)),n=e.treatmentConfigurations.filter((t=>!t.inactive&&e.logEntry.treatments.find((e=>e.id==t.id)))).map((e=>e.color));return 0===a.length&&0===n.length?t.createElement(lM,{className:"mdhui-ss-day-tracker",primaryColors:[],secondaryColors:[]}):t.createElement(lM,{className:"mdhui-ss-day-tracker",key:Math.random(),primaryColors:a,secondaryColors:n})}(),t.createElement("div",{className:"day-label"}," ",e.day," ",e.logEntry?.notes.length>0&&t.createElement(hge,{icon:A,className:"mdhui-ss-notes-icon"})))}w(".mdhui-ss-calendar .mdhui-ss-calendar-day {\n width: 100%;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-label {\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-label svg {\n font-size: 12px;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-label.future {\n opacity: .5;\n}\n\n.mdhui-ss-calendar .mdhui-ss-notes-icon {\n color: var(--mdhui-color-primary);\n position: absolute;\n right: calc(50% - 19px);\n bottom: 2px;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day .mdhui-ss-day-tracker {\n padding-bottom: 2px;\n padding-top: 8px;\n}\n\n.mdhui-ss-calendar .mdhui-ss-calendar-day.future {\n opacity: .5;\n cursor: default;\n}");function Tbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Severity Chart must be used inside a Symptom Shark Visualization Coordinator.");let{logEntries:n}=a,r=i(nM),o=e.intervalStart||Tn(new Date);r&&(o=r.intervalStart);var s=el(o.getFullYear(),o.getMonth());function l(e){return s.filter((t=>{if(n[Ri(t)]&&n[Ri(t)].overallFeeling&&(!e||n[Ri(t)].overallFeeling==e))return!0}))}var c=l();if(!c.length)return null;for(var u=s.length,d=100/u,m=100/(2*u),h=[],p=0;p<c.length-1;p++){var g=c[p],f=c[p+1],y=n[Ri(g)].overallFeeling,v=n[Ri(f)].overallFeeling;h.push({x1:m+d*(g.getDate()-1),y1:128-24*y,x2:m+d*(f.getDate()-1),y2:128-24*v,color:"#429bdf"})}let b=function(){var e=0,t=l();if(0==t.length)return null;for(var a=0;a<t.length;a++)e+=n[Ri(t[a])].overallFeeling;return e/t.length}();return t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-oe-chart"+("monthReport"==e.variant?" mdhui-ss-oe-chart-month-report":"")},t.createElement("div",{className:"mdhui-ss-oe-chart-title-container"},t.createElement(tS,{title:eo("daily-overall-experience")}),b&&t.createElement("div",{className:"mdhui-ss-oe-chart-average-wrapper"},eo("average"),": ",t.createElement("div",{className:"mdhui-ss-oe-chart-average"},yl(b,1),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:parseInt(b.toFixed(0))})))),t.createElement("div",{className:"mdhui-ss-oe-chart-inner"},t.createElement("div",{className:"mdhui-ss-oe-chart-y-axis"},t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(5).length>0&&t.createElement("span",{className:"total"},l(5).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:5})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(4).length>0&&t.createElement("span",{className:"total"},l(4).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:4})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(3).length>0&&t.createElement("span",{className:"total"},l(3).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:3})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(2).length>0&&t.createElement("span",{className:"total"},l(2).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:2})),t.createElement("div",{className:"mdhui-ss-oe-chart-face-total"},l(1).length>0&&t.createElement("span",{className:"total"},l(1).length),t.createElement(bM,{className:"mdhui-ss-oe-chart-face",selected:!0,faceValue:1}))),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line"}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"48px"}}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"72px"}}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"96px"}}),t.createElement("div",{className:"mdhui-ss-oe-chart-x-axis-line",style:{top:"120px"}}),t.createElement("div",{style:{position:"relative",height:"100%"}},t.createElement("svg",{className:"mdhui-ss-oe-chart-lines"},h.map((e=>t.createElement("line",{key:e.x1,x1:e.x1+"%",y1:e.y1,x2:e.x2+"%",y2:e.y2,style:{stroke:e.color,strokeWidth:4,opacity:.5}})))),s.map((a=>t.createElement("div",{key:a.getDate(),className:"mdhui-ss-oe-chart-day-wrapper",style:{width:100/s.length+"%"}},(e.showAllDays||(a.getDate()-1)%2==0)&&t.createElement("div",{className:"mdhui-ss-oe-chart-day-marker"},a.getDate()),n[Ri(a)]?.overallFeeling&&t.createElement("div",{className:"mdhui-ss-oe-chart-dot",style:{bottom:24*n[Ri(a)].overallFeeling-16+"px"}})))))))}w(".mdhui-ss-oe-chart {\n position: relative;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-face {\n width: 16px;\n height: 16px;\n margin-left: 4px;\n vertical-align: text-top;\n display: inline-block;\n border-radius: 8px;\n overflow: hidden;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-y-axis .mdhui-ss-oe-chart-face-total {\n height: 16px;\n margin-bottom: 8px;\n display: block;\n text-align: right;\n font-weight: bold;\n width: 56px;\n font-size: 15px;\n white-space: nowrap;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-face-total .mdhui-ss-oe-chart-total {\n vertical-align: text-top;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-average-wrapper {\n font-size: 17px;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-ss-oe-chart .mdhui-ss-oe-chart-average-wrapper .mdhui-ss-oe-chart-average {\n font-weight: bold;\n display: inline;\n}\n\n.mdhui-ss-oe-chart-inner {\n position: relative;\n height: 160px;\n padding: 16px;\n box-sizing: border-box;\n padding-left: 64px;\n page-break-inside: avoid;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-x-axis-line {\n position: absolute;\n width: calc(100% - 64px);\n height: 1px;\n /*Default color because evopdf doesn't support css variables*/\n background: #eee;\n background: var(--mdhui-background-color-1);\n left: 64px;\n top: 24px;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-lines {\n position: absolute;\n left: 0;\n right: 0;\n top: 0.5px;\n bottom: 0;\n width: 100%;\n height: 100%;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-y-axis {\n position: absolute;\n left: 0;\n top: 16px;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-day-wrapper {\n position: relative;\n float: left;\n height: 116px;\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-day-wrapper .mdhui-ss-oe-chart-day-marker {\n position: absolute;\n left: 0;\n bottom: -16px;\n width: 100%;\n text-align: center;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-ss-oe-chart-inner .mdhui-ss-oe-chart-day-wrapper .mdhui-ss-oe-chart-dot {\n position: absolute;\n width: 7px;\n height: 7px;\n /*Default color because evopdf doesn't support css variables*/\n background: #666;\n background: var(--mdhui-text-color-2);\n border-radius: 3.5px;\n left: calc(50% - 3px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-inner {\n padding-left: calc(25% + 8px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-y-axis {\n left: calc(25% - 56px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-x-axis-line {\n width: calc(75% - 32px);\n left: calc(25% + 16px);\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-average-wrapper {\n display: block;\n padding-top: 16px;\n font-size: 15px;\n text-transform: uppercase;\n font-weight: normal;\n position: absolute;\n left: 16px;\n top: 64px;\n text-align: left;\n padding: 0;\n padding-bottom: 8px;\n right: auto;\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-average-wrapper .mdhui-ss-oe-chart-average {\n margin-top: 8px;\n font-size: 34px;\n font-weight: bold;\n display: block;\n line-height: 34px;\n}\n\n.mdhui-ss-oe-chart.mdhui-ss-oe-chart-month-report .mdhui-ss-oe-chart-average-wrapper .mdhui-ss-oe-chart-average .mdhui-face {\n height: 34px;\n width: 34px;\n vertical-align: top;\n border-radius: 18px;\n overflow: hidden;\n}");function Mbe(e){if(!e.configuration.symptoms.length)return null;function a(){e.onClick&&e.onClick(e.date)}let n=!1;e.logEntry&&(e.logEntry.symptoms.length>0||e.logEntry.treatments.length>0||e.logEntry&&e.logEntry.notes.length>0)||(n=!0);let r=e.title??tl(e.date),i=e.highlight??Ai(e.date),o=e.title?void 0:e.subtitle??rl(e.date);return n?t.createElement(eS,{innerRef:e.innerRef,variant:i?"highlight":"subtle",className:"mdhui-ss-log-entry"},t.createElement($a,{title:r,subtitle:o,onClick:()=>a(),indicatorIcon:ye},!!e.noDataMessage&&t.createElement("div",{className:"mdhui-ss-log-entry-section"},e.noDataMessage),t.createElement(JA,null))):t.createElement(eS,{innerRef:e.innerRef,className:"mdhui-ss-log-entry"},t.createElement($a,{title:r,subtitle:o,onClick:()=>a(),indicatorPosition:"topRight",indicator:t.createElement(t.Fragment,null,e.logEntry?.overallFeeling&&t.createElement(bM,{faceValue:e.logEntry?.overallFeeling,selected:!0}))},t.createElement(Dbe,{configuration:e.configuration,logEntry:e.logEntry,highlightedSymptoms:e.highlightedSymptoms,highlightedTreatments:e.highlightedTreatments}),e.logEntry.notes&&t.createElement("div",{className:"mdhui-ss-log-entry-section"},t.createElement("div",{className:"mdhui-ss-section-header"},eo("notes")),t.createElement("div",{className:"mdhui-ss-notes-content"},e.logEntry.notes))))}function Dbe(e){var a=[],n=[];if(e.logEntry&&(e.logEntry.symptoms.forEach((t=>{var n,r=e.configuration.symptoms.find((e=>e.id==t.id));r&&("10PointScale"==r.severityTracking&&(n=t.severity?t.severity.toString():void 0),"3PointScale"==r.severityTracking&&(t.severity>7?n=eo("severe-shortened"):t.severity>4?n=eo("moderate-shortened"):t.severity>0&&(n=eo("mild-shortened"))),a.push({id:t.id,severity:n,name:r.name,color:r.color}))})),a.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)),e.logEntry.treatments.forEach((t=>{var a=e.configuration.treatments.find((e=>e.id==t.id));a&&n.push({id:t.id,name:a.name,color:a.color})})),n.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0))),!e.logEntry||!(a.length>0||n.length>0||e.logEntry.notes.length>0))return null;var r=[],i=[];return e.highlightedSymptoms&&(r=e.highlightedSymptoms),e.highlightedTreatments&&(i=e.highlightedTreatments),0==e.logEntry.symptoms.length&&0==e.logEntry.treatments.length?null:t.createElement("div",{className:"mdhui-ss-log-entry-section"},t.createElement("div",{className:"mdhui-ss-section-header"},eo("symptoms-and-treatments")),a.filter((e=>-1!=r.indexOf(e.id))).map((e=>t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,badge:e.severity,key:e.id,text:e.name}))),n.filter((e=>-1!=i.indexOf(e.id))).map((e=>t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,key:e.id,text:e.name,bordered:!0}))),a.filter((e=>-1==r.indexOf(e.id))).map((e=>t.createElement("span",{key:e.id,style:{opacity:r.length>0||i.length>0?.5:1}},t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,badge:e.severity,text:e.name})))),n.filter((e=>-1==i.indexOf(e.id))).map((e=>t.createElement("span",{key:e.id,style:{opacity:r.length>0||i.length>0?.5:1}},t.createElement(uye,{noBoxShadow:!0,selected:!0,color:e.color,text:e.name,bordered:!0})))))}w(".mdhui-ss-log-entry .mdhui-face {\n height: 18px;\n width: 18px;\n border-radius: 9px;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-log-entry-section {\n margin-top: 16px;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-section-header {\n font-size: .88em;\n font-weight: 500;\n color: var(--mdhui-text-color-3);\n margin-bottom: 4px;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-notes-preview {\n font-size: .88em;\n white-space: pre-wrap;\n margin: 16px;\n margin-top: 0;\n}\n\n.mdhui-ss-log-entry .mdhui-tracker-item {\n margin-left: 0;\n margin-top: 0;\n}\n\n.mdhui-ss-log-entry .mdhui-ss-notes-content {\n font-size: .88em;\n white-space: pre-wrap;\n}");w(".ss-month-report {\n position: relative;\n width: 100%;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n /* default color for PDF rendering */\n background: #FFF;\n background: var(--mdhui-background-color-0);\n}\n\n.ss-month-report>thead>tr>th {\n text-align: left;\n font-size: 21px;\n line-height: 21px;\n width: 100%;\n background: var(--mdhui-background-color-0);\n}\n\n.ss-month-report>thead>tr>th>.header {\n display: block;\n position: relative;\n padding: 16px;\n}\n\n.ss-month-report>thead>tr>th>.header .ss-month-report-product {\n position: absolute;\n right: 16px;\n top: 10px;\n font-size: 15px;\n font-weight: bold;\n padding-left: 40px;\n height: 32px;\n line-height: 18px;\n}\n\n.ss-month-report>thead>tr>th>.header .ss-month-report-product .ss-month-report-product-url {\n font-weight: normal;\n}\n\n.ss-month-report>thead>tr>th>.header .ss-month-report-product img {\n height: 32px;\n position: absolute;\n left: 0;\n top: 0;\n vertical-align: middle;\n}\n\n.ss-month-report>tfoot>tr>td {\n padding: 16px;\n text-align: center;\n font-size: 21px;\n line-height: 21px;\n width: 100%;\n background: var(--mdhui-background-color-0);\n border-top: solid 1px var(--mdhui-border-color-1);\n}");function Ibe(e){let a={...Nbe[e.icon||"star-o"],className:e.className};return t.createElement(hge,{...a})}w(".ss-notes-timeline {\n padding: 16px;\n padding-top: 48px;\n\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n border-top: solid 1px #ddd;\n\n border-top: solid 1px var(--mdhui-border-color-1);\n padding-left: 64px;\n position: relative;\n}\n\n.ss-notes-timeline .ss-notes-timeline-title {\n font-size: 17px;\n color: var(--mdhui-text-color-1);\n font-weight: bold;\n position: absolute;\n left: 16px;\n top: 16px;\n}\n\n.ss-notes-timeline .ss-notes-timeline-line {\n position: absolute;\n top: 48px;\n left: 32px;\n\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n background: #ddd;\n\n background: var(--mdhui-background-color-2);\n bottom: 48px;\n width: 1px;\n}\n\n.ss-notes-timeline .ss-notes-timeline-day {\n margin-bottom: 32px;\n page-break-inside: avoid;\n position: relative;\n\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n border: solid 1px #ddd;\n\n border: solid 1px var(--mdhui-border-color-1);\n border-radius: 5px;\n padding: 16px;\n}\n\n.ss-notes-timeline .ss-notes-timeline-day .ss-notes-timeline-day-icon {\n font-size: 21px;\n position: absolute;\n left: -51px;\n top: calc(50% - 11px);\n width: 37px;\n text-align: center;\n display: block;\n}\n\n.ss-notes-timeline .ss-notes-timeline-day .ss-notes-timeline-day-circle {\n /* Default color for PDF Rendering, since pdf renderer does not support CSS variables */\n color: #429bdf;\n\n color: var(--mdhui-color-primary);\n}\n\n.notes-timeline .ss-notes-timeline-day .ss-notes-timeline-day-title {\n font-weight: bold;\n font-size: 17px;\n}\n\n.notes-timeline .ss-notes-timeline-day .ss-notes-timeline-note {\n white-space: pre-wrap;\n}");const Nbe={star:{color:"#eec04c",icon:M},"star-o":{color:"#eec04c",icon:{prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]}},"user-md":{color:"#397d49",icon:ee},"hospital-o":{color:"#4154af",icon:{prefix:"fas",iconName:"hospital",icon:[640,512,[127973,62589,"hospital-alt","hospital-wide"],"f0f8","M192 48c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48V512H368V432c0-26.5-21.5-48-48-48s-48 21.5-48 48v80H192V48zM48 96H160V512H48c-26.5 0-48-21.5-48-48V320H80c8.8 0 16-7.2 16-16s-7.2-16-16-16H0V224H80c8.8 0 16-7.2 16-16s-7.2-16-16-16H0V144c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v48H560c-8.8 0-16 7.2-16 16s7.2 16 16 16h80v64H560c-8.8 0-16 7.2-16 16s7.2 16 16 16h80V464c0 26.5-21.5 48-48 48H480V96H592zM312 64c-8.8 0-16 7.2-16 16v24H272c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h24v24c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16V152h24c8.8 0 16-7.2 16-16V120c0-8.8-7.2-16-16-16H344V80c0-8.8-7.2-16-16-16H312z"]}},ambulance:{color:"#f2471c",icon:P},flag:{color:"#c4291c",icon:{prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 368 480c0 17.7 14.3 32 32 32s32-14.3 32-32V352l64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30V66.1c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48V32z"]}},"moon-o":{color:"#9d9083",icon:{prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]}},flask:{color:"#429bdf",icon:{prefix:"fas",iconName:"flask",icon:[448,512,[],"f0c3","M288 0H160 128C110.3 0 96 14.3 96 32s14.3 32 32 32V196.8c0 11.8-3.3 23.5-9.5 33.5L10.3 406.2C3.6 417.2 0 429.7 0 442.6C0 480.9 31.1 512 69.4 512H378.6c38.3 0 69.4-31.1 69.4-69.4c0-12.8-3.6-25.4-10.3-36.4L329.5 230.4c-6.2-10.1-9.5-21.7-9.5-33.5V64c17.7 0 32-14.3 32-32s-14.3-32-32-32H288zM192 196.8V64h64V196.8c0 23.7 6.6 46.9 19 67.1L309.5 320h-171L173 263.9c12.4-20.2 19-43.4 19-67.1z"]}},bolt:{color:"#f5b722",icon:{prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]}},"question-circle-o":{color:"#71aa3a",icon:K},thermometer:{color:"#a3144d",icon:{prefix:"fas",iconName:"thermometer",icon:[512,512,[],"f491","M96 382.1V293.3c0-14.9 5.9-29.1 16.4-39.6l27.3-27.3 57 57c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-57-57 41.4-41.4 57 57c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-57-57 41.4-41.4 57 57c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-57-57 45.5-45.5C355.2 10.9 381.4 0 408.8 0C465.8 0 512 46.2 512 103.2c0 27.4-10.9 53.6-30.2 73L258.3 399.6c-10.5 10.5-24.7 16.4-39.6 16.4H129.9L41 505c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l89-89z"]}},trophy:{color:"#e0bc39",icon:{prefix:"fas",iconName:"trophy",icon:[576,512,[127942],"f091","M400 0H176c-26.5 0-48.1 21.8-47.1 48.2c.2 5.3 .4 10.6 .7 15.8H24C10.7 64 0 74.7 0 88c0 92.6 33.5 157 78.5 200.7c44.3 43.1 98.3 64.8 138.1 75.8c23.4 6.5 39.4 26 39.4 45.6c0 20.9-17 37.9-37.9 37.9H192c-17.7 0-32 14.3-32 32s14.3 32 32 32H384c17.7 0 32-14.3 32-32s-14.3-32-32-32H357.9C337 448 320 431 320 410.1c0-19.6 15.9-39.2 39.4-45.6c39.9-11 93.9-32.7 138.2-75.8C542.5 245 576 180.6 576 88c0-13.3-10.7-24-24-24H446.4c.3-5.2 .5-10.4 .7-15.8C448.1 21.8 426.5 0 400 0zM48.9 112h84.4c9.1 90.1 29.2 150.3 51.9 190.6c-24.9-11-50.8-26.5-73.2-48.3c-32-31.1-58-76-63-142.3zM464.1 254.3c-22.4 21.8-48.3 37.3-73.2 48.3c22.7-40.3 42.8-100.5 51.9-190.6h84.4c-5.1 66.3-31.1 111.2-63 142.3z"]}},spoon:{color:"#6e4b3f",icon:{prefix:"fas",iconName:"spoon",icon:[512,512,[129348,61873,"utensil-spoon"],"f2e5","M245.8 220.9c-14.5-17.6-21.8-39.2-21.8-60.8C224 80 320 0 416 0c53 0 96 43 96 96c0 96-80 192-160.2 192c-21.6 0-43.2-7.3-60.8-21.8L54.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L245.8 220.9z"]}}};function jbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Notes timeline must be used inside a Symptom Shark Visualization Coordinator.");let n=i(nM),r=n?.intervalStart??e.intervalStart??Tn(new Date);if(!a.symptoms.length&&!a.treatments.length)return null;var o=el(r.getFullYear(),r.getMonth()).filter((e=>a.logEntries[Ri(e)]?.notes?.length));return o.length?t.createElement("div",{ref:e.innerRef,className:"ss-notes-timeline"},t.createElement("div",{className:"ss-notes-timeline-title"},eo("notes")),t.createElement("div",{className:"ss-notes-timeline-line"}),o.map((e=>t.createElement("div",{key:e.toISOString(),className:"ss-notes-timeline-day"},a.logEntries[Ri(e)].icon?t.createElement(Ibe,{className:"ss-notes-timeline-day-icon",icon:a.logEntries[Ri(e)].icon}):t.createElement(hge,{className:"ss-notes-timeline-day-icon ss-notes-timeline-day-circle",icon:$}),t.createElement("div",{className:"ss-notes-timeline-day-title"},rl(e)),t.createElement("div",{className:"ss-notes-timeline-note"},a.logEntries[Ri(e)].notes))))):null}function zbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Severity Chart must be used inside a Symptom Shark Visualization Coordinator.");let{logEntries:n}=a,r=i(nM),o=e.intervalStart||Tn(new Date);r&&(o=r.intervalStart);let s=el(o.getFullYear(),o.getMonth()),l=function(t){var a=Ri(t);if(n[a]){var r=n[a].symptoms.find((t=>e.symptom.id==t.id));if(r&&r.severity)return"3PointScale"==e.symptom.severityTracking?r.severity<4?1:r.severity>=4&&r.severity<8?2:3:r.severity}return 0},c=function(e){for(var t=0,a=0;a<s.length;a++){l(s[a])==e&&t++}return t},u=function(){for(var t=0,a=[],r=0;r<s.length;r++){var i=Ri(s[r]);if(n[i]){var o=n[i].symptoms.find((t=>t.id==e.symptom.id));o&&o.severity&&a.push(o)}}if("3PointScale"==e.symptom.severityTracking)t+=a.filter((e=>e.severity&&e.severity<4)).length,t+=2*a.filter((e=>e.severity&&e.severity>=4&&e.severity<8)).length,t+=3*a.filter((e=>e.severity&&e.severity>=8)).length;else for(var l=0;l<a.length;l++)t+=a[l].severity??0;return t/a.length}();return isNaN(u)?null:t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-severity-chart"+("monthReport"==e.variant?" mdhui-ss-severity-chart-month-report":"")},t.createElement(tS,{title:e.symptom.name+" "+eo("severity")}),"3PointScale"==e.symptom.severityTracking&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-ss-severity-chart-inner mdhui-ss-severity-chart-three-point-scale"},t.createElement("div",{className:"mdhui-ss-severity-chart-y-axis"},t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(3)),eo("severe-shortened")),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(2)),eo("moderate-shortened")),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(1)),eo("mild-shortened")),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"}),"---")),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line"}),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line",style:{top:"48px"}}),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line",style:{top:"72px"}}),t.createElement("div",{className:"mdhui-ss-severity-chart-x-axis-line",style:{top:"96px"}}),t.createElement("div",{style:{position:"relative",height:"100%"}},s.map((a=>t.createElement("div",{key:a.toISOString(),className:"mdhui-ss-severity-chart-day-wrapper",style:{width:100/s.length+"%"}},(e.showAllDays||(a.getDate()-1)%2==0)&&t.createElement("div",{className:"mdhui-ss-severity-chart-day-marker"},a.getDate()),t.createElement("div",{className:"mdhui-ss-severity-chart-bar",style:{height:24*l(a)+"px",backgroundColor:e.symptom.color}},t.createElement(JA,null))))))),u&&t.createElement("div",{className:"mdhui-ss-severity-chart-average-wrapper"},eo("average")," ",t.createElement("div",{className:"mdhui-ss-severity-chart-average"},yl(u,1)," / 3"))),"10PointScale"==e.symptom.severityTracking&&t.createElement("div",null,t.createElement("div",{className:"mdhui-ss-severity-chart-inner mdhui-ss-severity-chart-ten-point-scale"},t.createElement("div",{className:"mdhui-ss-severity-chart-y-axis"},[10,9,8,7,6,5,4,3,2,1].map((e=>t.createElement("div",{key:e,className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"},c(e)),t.createElement("div",{className:"mdhui-ss-severity-chart-value-label"},e)))),t.createElement("div",{className:"mdhui-ss-severity-chart-value"},t.createElement("span",{className:"mdhui-ss-severity-chart-total"}),t.createElement("div",{className:"mdhui-ss-severity-chart-value-label"},"0"))),[10,9,8,7,6,5,4,3,2,1].map((e=>t.createElement("div",{key:e,className:"mdhui-ss-severity-chart-x-axis-line",style:{top:24*(11-e)+"px"}}))),t.createElement("div",{style:{position:"relative",height:"100%"}},s.map((a=>t.createElement("div",{key:a.toISOString(),className:"mdhui-ss-severity-chart-day-wrapper",style:{width:100/s.length+"%"}},(e.showAllDays||(a.getDate()-1)%2==0)&&t.createElement("div",{className:"mdhui-ss-severity-chart-day-marker"},a.getDate()),t.createElement("div",{className:"mdhui-ss-severity-chart-bar",style:{height:24*l(a)+"px",backgroundColor:e.symptom.color}},t.createElement(JA,null))))))),u&&t.createElement("div",{className:"mdhui-ss-severity-chart-average-wrapper"},eo("average")," ",t.createElement("div",{className:"mdhui-ss-severity-chart-average"},yl(u,1)," / 10"))))}function Rbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Month report must be used inside a Symptom Shark Visualization Coordinator.");let n=i(nM),r=n?.intervalStart??e.intervalStart??Tn(new Date);return a.symptoms.length||a.treatments.length?t.createElement("table",{ref:e.innerRef,className:"ss-month-report",cellPadding:"0",cellSpacing:"0"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,t.createElement("div",{className:"header"},sl(r.getMonth())," ",r.getFullYear(),t.createElement("div",{className:"product"},e.productLogo&&t.createElement("img",{src:e.productLogo}),e.productName&&t.createElement("div",{className:"product-name"},e.productName),e.productUrl&&t.createElement("a",{href:e.productUrl,className:"product-url"},e.productUrl)))))),t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",null,t.createElement(Cbe,null),e.includeDailyOverallFeeling&&t.createElement(Tbe,{variant:"monthReport",showAllDays:!0}),a.symptoms.filter((e=>!e.inactive&&e.severityTracking&&"None"!=e.severityTracking)).map((e=>t.createElement(zbe,{key:e.id,variant:"monthReport",symptom:e,showAllDays:!0}))),e.includeNotes&&t.createElement(jbe,null))))):null}w(".mdhui-ss-severity-chart {\n position: relative;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-average-wrapper {\n font-size: 17px;\n padding: 16px;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-average-wrapper .mdhui-ss-severity-chart-average {\n font-weight: bold;\n display: inline;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-inner {\n position: relative;\n height: 304px;\n padding: 16px;\n box-sizing: border-box;\n padding-left: 64px;\n page-break-inside: avoid;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-inner .mdhui-ss-severity-chart-x-axis-line {\n position: absolute;\n width: calc(100% - 64px);\n height: 1px;\n\n /* Default color for PDF Rendering, since evopdf does not support CSS variables */\n background: #eee;\n\n background: var(--mdhui-background-color-1);\n left: 64px;\n top: 24px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-lines {\n position: absolute;\n left: 0;\n right: 0;\n top: 0.5px;\n bottom: 0;\n width: 100%;\n height: 100%;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-y-axis {\n position: absolute;\n left: 0;\n top: 16px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-value {\n height: 16px;\n margin-bottom: 8px;\n display: block;\n text-align: right;\n font-weight: bold;\n width: 56px;\n font-size: 9px;\n white-space: nowrap;\n position: relative;\n line-height: 16px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-value .mdhui-ss-severity-chart-value-label {\n border-radius: 32px;\n padding: 3px;\n font-size: 9px;\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n display: inline-block;\n color: var(--mdhui-text-color-1);\n line-height: 10px;\n background: #eec04c;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-value .mdhui-ss-severity-chart-total {\n position: absolute;\n right: 24px;\n top: 0;\n font-size: 15px;\n}\n\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper {\n position: relative;\n float: left;\n height: 260px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper .mdhui-ss-severity-chart-day-marker {\n position: absolute;\n left: 0;\n bottom: -16px;\n width: 100%;\n text-align: center;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper .mdhui-ss-severity-chart-day-star {\n position: absolute;\n left: 0;\n bottom: -32px;\n width: 100%;\n text-align: center;\n font-size: 9px;\n color: var(--ss-tertiary-theme-color);\n display: none;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-day-wrapper .mdhui-ss-severity-chart-bar {\n position: absolute;\n width: 7px;\n background: var(--ss-bar-graph-bar-color);\n left: 0;\n width: 100%;\n bottom: 12px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-three-point-scale {\n height: 136px;\n}\n\n.mdhui-ss-severity-chart .mdhui-ss-severity-chart-three-point-scale .mdhui-ss-severity-chart-day-wrapper {\n height: 92px;\n}\n\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-inner {\n padding-left: calc(25% + 8px);\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-y-axis {\n left: calc(25% - 56px);\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-x-axis-line {\n width: calc(75% - 32px);\n left: calc(25% + 16px);\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-average-wrapper {\n display: block;\n padding-top: 16px;\n font-size: 15px;\n text-transform: uppercase;\n font-weight: normal;\n position: absolute;\n left: 16px;\n top: 64px;\n text-align: left;\n padding: 0;\n padding-bottom: 8px;\n right: auto;\n}\n\n.mdhui-ss-severity-chart.mdhui-ss-severity-chart-month-report .mdhui-ss-severity-chart-average-wrapper .mdhui-ss-severity-chart-average {\n margin-top: 8px;\n font-size: 34px;\n font-weight: bold;\n display: block;\n line-height: 34px;\n}");function Lbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Treatment Histograms must be used inside a Symptom Shark Visualization Coordinator.");let{symptoms:n,treatments:r,logEntries:o}=a,s=i(nM),l=e.intervalStart||Tn(new Date);s&&(l=s.intervalStart);var c=[];n.forEach((t=>{for(var a=0,n=l;n.getMonth()==l.getMonth();){var r=o[Ri(n)];r&&r.symptoms.find((e=>e.id==t.id))&&a++,n=on(n,{days:1})}var i=t.severityTracking&&"None"!=t.severityTracking?function(){e.onSymptomSelected(t.id,l)}:void 0;a>0&&c.push({color:t.color,label:t.name,value:a,onSelect:i})}));var u=[];return r.forEach((e=>{for(var t=0,a=l;a.getMonth()==l.getMonth();){var n=o[Ri(a)];n&&n.treatments.find((t=>t.id==e.id))&&t++,a=on(a,{days:1})}t>0&&u.push({color:e.color,label:e.name,value:t})})),u.length||c.length?t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-histograms"},t.createElement("div",{className:"mdhui-ss-histogram"},t.createElement(iM,{className:"mdhui-ss-histogram-title",order:4},eo("symptoms")),t.createElement(SM,{className:"ss-histogram",entries:c})),t.createElement("div",{className:"mdhui-ss-histogram"},t.createElement(iM,{className:"mdhui-ss-histogram-title",order:4},eo("treatments")),t.createElement(SM,{className:"ss-histogram",entries:u})),t.createElement("div",{style:{clear:"both"}})):null}w(".mdhui-ss-histograms {\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n box-shadow: var(--mdhui-box-shadow-0);\n}\n\n.mdhui-ss-histograms .mdhui-ss-histogram {\n padding: 16px;\n float: left;\n width: 50%;\n box-sizing: border-box;\n position: relative;\n padding-right: 32px;\n}\n\n.mdhui-ss-histograms .mdhui-ss-histogram .mdhui-ss-histogram-title {\n color: var(--mdhui-text-color-1);\n display: block;\n padding-bottom: 8px;\n}\n\n.mdhui-ss-histograms .mdhui-ss-histogram .ss-histogram {\n padding: 0;\n}");function Fbe(e){let a=i(Ebe);if(!a)return t.createElement(Uq,{innerRef:e.innerRef},"Error: Symptom Severity Summary must be used inside a Symptom Shark Visualization Coordinator.");let{logEntries:n}=a,r=i(nM),o=e.intervalStart||Tn(new Date);r&&(o=r.intervalStart);var s=el(o.getFullYear(),o.getMonth()),l=function(t){var a=Ri(t);if(n[a]){var r=n[a].symptoms.find((t=>e.symptom.id==t.id));if(r&&r.severity)return r.severity}return 0},c=function(e,t){for(var a=0,n=0;n<s.length;n++){var r=l(s[n]);r>=e&&r<=t&&a++}return a};return"3PointScale"!=e.symptom.severityTracking?null:t.createElement("div",{ref:e.innerRef,className:"mdhui-ss-symptom-severity-summaries"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-label"},eo("severe")),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-count"},c(8,10))),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-label"},eo("moderate")),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-count"},c(4,7))),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary"},t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-label"},eo("mild")),t.createElement("div",{className:"mdhui-ss-symptom-severity-summary-count"},c(1,3))),t.createElement("div",{style:{clear:"both"}}))}w(".mdhui-ss-symptom-severity-summaries .mdhui-ss-symptom-severity-summary {\n width: 33%;\n float: left;\n text-align: center;\n padding: 16px;\n box-sizing: border-box;\n}\n\n.mdhui-ss-symptom-severity-summaries .mdhui-ss-symptom-severity-summary-label {\n padding: 8px;\n}\n\n.mdhui-ss-symptom-severity-summaries .mdhui-ss-symptom-severity-summary-count {\n font-size: 34px;\n font-weight: bold;\n}");let Bbe={participantID:"123",symptoms:[{id:"1",color:"#c4291c",name:"Headache",severityTracking:"3PointScale"},{id:"2",color:"#e35c33",name:"Nausea",severityTracking:"10PointScale"},{id:"3",color:"#5db37e",name:"Dizziness",severityTracking:"None"}],treatments:[{id:"10",color:"#c4291c",name:"Tylenol"},{id:"12",color:"#e35c33",name:"Rest"}]},Hbe={symptoms:[{id:"1",severity:2},{id:"2",severity:7},{id:"3"}],treatments:[{id:"10"},{id:"12"}],overallFeeling:5,notes:"I'm feeling a little better today."};function qbe(e){const[a,n]=c({}),[r,i]=c(null),[o,s]=c([new Date]);function u(){if(Ri(o[0])!=Ri(new Date)&&s([new Date]),"default"!=e.previewState)ybe.getConfiguration().then((function(e){ybe.getDailyLogEntries().then((function(t){i(e),n(t)}))}));else{i(Bbe);let e=Ri(on(new Date,{days:-1}));n({...a,[e]:Hbe})}}return l((()=>(u(),b.on("applicationDidBecomeVisible",u),()=>{b.off("applicationDidBecomeVisible",u)})),[]),t.createElement("div",{ref:e.innerRef,className:"log-entry-list"},r&&o.map((n=>t.createElement(Mbe,{noDataMessage:Ri(n)==Ri(new Date)?eo("tap-to-log-today"):void 0,key:Ri(n),date:n,configuration:r,logEntry:a[Ri(n)],onClick:()=>e.onDaySelected(n)}))),t.createElement(que,{enabled:!!r,onTrigger:()=>function(){for(var e=[...o],t=0;t<30;t++){var a=on(e[e.length-1],{days:-1});e.push(a)}s(e)}()}),t.createElement(ZA,null))}function Vbe(e){const[a,n]=c(null),[r,i]=c(void 0);var o=new Date;function s(){if("withLog"==e.previewState)return n(Bbe),void i(Hbe);"noLog"!=e.previewState?Promise.all([ybe.getDailyLogEntries(Ri(on(o,{days:-1}))),ybe.getConfiguration()]).then((function([e,t]){n(t),e[Ri(o)]?i(e[Ri(o)]):i(void 0)})):n(Bbe)}return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0,0),l((()=>(s(),b.on("applicationDidBecomeVisible",s),()=>{b.off("applicationDidBecomeVisible",s)})),[]),a&&a.symptoms.length?t.createElement(Mbe,{onClick:t=>e.onClick(t),innerRef:e.innerRef,title:eo(r?"todays-log":"log-todays-symptoms"),date:o,logEntry:r,configuration:a}):null}function Ube(e){const[a,n]=c(null),[r,i]=c(!1),[o,s]=c(null),[u,d]=c(!1),[m,h]=c(null);function p(e,t){t==eo("mild-shortened")?t=2:t==eo("moderate-shortened")?t=5:t==eo("severe-shortened")&&(t=8);var n={...a},r=[...n.symptoms];r.find((t=>t.id==e.id))&&r.splice(r.findIndex((t=>t.id==e.id)),1),t&&r.push({id:e.id,severity:t}),n.symptoms=r,f(n),h(null)}function f(t){n(t),"default"!=e.previewState&&(d(!0),ybe.saveDailyLogEntry(Ri(e.date),t).then((function(){d(!1)})))}function y(e){var t={...a};t.overallFeeling==e?t.overallFeeling=void 0:t.overallFeeling=e,f(t)}l((()=>{!function(){if("default"==e.previewState)return s(Bbe),void n(Hbe);var t=on(e.date,{days:-14}),a=on(e.date,{days:1});ybe.getConfiguration().then((function(r){ybe.getDailyLogEntries(xr(t),xr(a)).then((function(t){s(r),t[Ri(e.date)]?n(t[Ri(e.date)]):n({symptoms:[],treatments:[],notes:""}),e.promptForReviewAfterDays&&Object.keys(t).length>e.promptForReviewAfterDays&&i(!0)}))}))}()}),[]);const v=g((()=>ed(f,300)),[]);var w,k,x,A=tl(e.date);function S(e){var t=a.symptoms.find((t=>t.id==e.id));if(t){if("10PointScale"==e.severityTracking){if(!t.severity)return;return t.severity.toString()}if("3PointScale"==e.severityTracking){if(!t.severity)return;if(t.severity>0&&t.severity<=3)return eo("mild-shortened");if(t.severity>3&&t.severity<=7)return eo("moderate-shortened");if(t.severity>7)return eo("severe-shortened")}}}return A+=", "+fl(Xs(e.date),"PP"),t.createElement("div",{className:"mdhui-ss-log-entry-edit-wrapper"},t.createElement(Ufe,{title:A,showBackButton:!0,variant:"compressed",backgroundColor:"var(--mdhui-background-color-0)",className:"mdhui-ss-edit-nav"}),t.createElement("div",{className:"mdhui-ss-log-entry-edit"},!a&&t.createElement(ZA,null),!!a&&!!o&&t.createElement(t.Fragment,null,t.createElement("div",{style:{width:"100%",overflow:"hidden"}},(k=(w=a).symptoms.map((e=>o.symptoms.find((t=>t.id==e.id))?.color)).filter((e=>!!e)).map((e=>e)),x=w.treatments.map((e=>o.treatments.find((t=>t.id==e.id))?.color)).filter((e=>!!e)).map((e=>e)),t.createElement(lM,{size:"large",key:k.join("|")+","+x.join("|"),primaryColors:k,secondaryColors:x}))),kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("symptoms-experiencing-today")),!kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("symptoms-experiencing-previous")),t.createElement("div",{className:"mdhui-ss-edit-items"},o?.symptoms.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{className:"mdhui-ss-edit-item",selected:!!a.symptoms.find((t=>t.id==e.id)),color:e.color,text:e.name,key:e.id,onClick:()=>function(e){if("10PointScale"!=e.severityTracking&&"3PointScale"!=e.severityTracking){var t={...a},n=[...t.symptoms];n.find((t=>t.id==e.id))?n.splice(n.findIndex((t=>t.id==e.id)),1):n.push({id:e.id}),t.symptoms=n,f(t)}else h(e)}(e),badge:S(e)})))),o.treatments.length>0&&t.createElement("div",null,kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("treatments-experiencing-today")),!kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("treatments-experiencing-previous")),t.createElement("div",{className:"mdhui-ss-edit-items"},o?.treatments.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{className:"mdhui-ss-edit-item",selected:!!a.treatments.find((t=>t.id==e.id)),color:e.color,text:e.name,key:e.id,onClick:()=>{return t=e,n={...a},(r=[...n.treatments]).find((e=>e.id==t.id))?r.splice(r.findIndex((e=>e.id==t.id)),1):r.push({id:t.id}),n.treatments=r,void f(n);var t,n,r},bordered:!0}))))),kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("feeling-overall-today")),!kn(new Date,e.date)&&t.createElement(iM,{className:"mdhui-ss-edit-title",order:3},eo("feeling-overall-previous")),t.createElement("div",{className:"mdhui-ss-edit-items"},t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:5,selected:5==a.overallFeeling,onClick:()=>y(5)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:4,selected:4==a.overallFeeling,onClick:()=>y(4)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:3,selected:3==a.overallFeeling,onClick:()=>y(3)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:2,selected:2==a.overallFeeling,onClick:()=>y(2)}),t.createElement(bM,{className:"mdhui-ss-edit-face",faceValue:1,selected:1==a.overallFeeling,onClick:()=>y(1)})),t.createElement(iM,{className:"mdhui-ss-edit-title",order:3,style:{marginBottom:"16px"}},eo("additional-notes")),t.createElement(Wfe,{placeholder:eo("add-notes"),autoTimestamp:kn(new Date,e.date),onChange:e=>function(e){var t={...a};t.notes=e,n(t),v(t)}(e),value:a.notes}),t.createElement(YA,{onClick:()=>(r&&b.requestReview(7),void(u||b.back()))},eo("done")),m&&t.createElement("div",{className:"mdhui-ss-symptom-edit-modal"},t.createElement("div",{className:"mdhui-ss-symptom-edit-padder"},t.createElement("div",{className:"mdhui-ss-symptom-edit-container"},t.createElement(iM,{className:"mdhui-ss-edit-title",order:3,style:{marginBottom:"16px"}},kn(new Date,e.date)?eo("how-severe-is"):eo("how-severe-was")," ",m.name,"?"),"3PointScale"==m.severityTracking&&t.createElement(eye,{variant:"optionsVertical",segments:[{key:eo("mild-shortened"),title:eo("mild")},{key:eo("moderate-shortened"),title:eo("moderate")},{key:eo("severe-shortened"),title:eo("severe")}],selectedSegment:S(m),onSegmentSelected:e=>p(m,e)}),"10PointScale"==m.severityTracking&&t.createElement(eye,{variant:"optionsVertical",segments:[1,2,3,4,5,6,7,8,9,10].map((e=>({key:e.toString(),title:e.toString()}))),selectedSegment:S(m),onSegmentSelected:e=>p(m,parseInt(e))}),t.createElement(YA,{className:"mdhui-ss-clear-symptom",variant:"subtle",onClick:()=>p(m,null)},eo("clear-symptom"))))))))}w(".mdhui-ss-log-entry-edit-wrapper {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-ss-log-entry-edit {\n text-align: center;\n padding-left: 16px;\n padding-right: 16px;\n padding-bottom: 16px;\n padding-top: 8px;\n position: relative;\n /*Prevents keyboard from covering notes on Android devices*/\n padding-bottom: 300px;\n overflow-x: hidden;\n width: 100%;\n box-sizing: border-box;\n}\n\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-title {\n text-align: center;\n margin-bottom: 0;\n margin-top: 16px;\n display: block;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-items {\n padding-top: 8px;\n padding-bottom: 16px;\n text-align: center;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-item {\n margin: 4px;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-edit-face {\n margin-left: 8px;\n margin-right: 8px;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-symptom-edit-modal {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: var(--mdhui-modal-overlay-color);\n overflow: auto;\n z-index: 999;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-symptom-edit-padder {\n padding-bottom: 16px;\n position: absolute;\n padding-top: 48px;\n top: env(safe-area-inset-top);\n left: 48px;\n right: 48px;\n}\n\n.mdhui-ss-log-entry-edit .mdhui-ss-symptom-edit-container {\n border-radius: var(--mdhui-card-border-radius);\n background: var(--mdhui-background-color-0);\n padding: 16px;\n}");function Wbe(e){var a=Tn(new Date);const[n,r]=c({}),[i,o]=c(null),[l,u]=c(a),[d,m]=c(!0),[h,p]=c(!1),[g,f]=c(!1),[y,v]=c(!0),[w,x]=c([]),[A,S]=c([]),[E,_]=c(!0),[O,P]=c(!1),[T,M]=c(!1),D=s(null);if(td((()=>{if("default"==e.previewState)return o({participantID:"1",symptoms:wbe,treatments:kbe}),void r(xbe);ybe.getConfiguration().then((function(e){ybe.getDailyLogEntries().then((function(t){o(e),r(t)}))}))}),[],[]),!i||!n)return t.createElement("div",{ref:e.innerRef},t.createElement(ZA,null));function I(){M(!0);for(var e,t,a=document.head.getElementsByTagName("style"),n="",r=0;r<a.length;r++)n+=a[r].outerHTML;n+=D.current.innerHTML,(e=n,t=i.participantID,b.persistDeviceData([{type:"ReportHtml",observationDate:xr(new Date),value:e}]).then((function(){var e=b.baseUrl+"WebVisualization/WebVisualizationPDF?patientID="+t+"&modelType=VisualizationModel&visualizationKey=Shared.HtmlToPdf";return b.getDeviceInfo().then((function(t){t&&"Web"!=t.platform?window.webkit.messageHandlers.OpenFile.postMessage({url:e}):window.open(e)}))}))).then((function(){M(!1)}))}return t.createElement("div",{className:"ss-report-builder"},t.createElement(Jfe,{className:"ss-report-builder-items",noTopMargin:!0},t.createElement("div",{className:"ss-report-builder-item ss-report-builder-month-selector"},t.createElement("div",{className:"ss-report-builder-selector-title"},eo("choose-report-month")),t.createElement(aM,{className:"ss-report-date-chooser",variant:"rounded",intervalStart:l,intervalType:"Month",onIntervalChange:e=>u(e)})),t.createElement(k,{className:"ss-report-builder-item",onClick:()=>m(!d)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-symptoms")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:d?_M:CM}))),d&&t.createElement("div",{className:"ss-report-builder-item"},t.createElement("div",{className:"ss-report-builder-item-title"},eo("select-symptoms")),t.createElement(k,{className:"ss-report-builder-item-status",onClick:()=>p(!h)},0==w.length?"All":w.length+" Selected"," ",t.createElement(hge,{icon:h?C:pe})),h&&t.createElement("div",{className:"ss-report-items",style:{textAlign:"center"}},i.symptoms.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{className:"ss-report-item",key:e.id,selected:-1!=w.indexOf(e.id),color:e.color,text:e.name,onClick:()=>{return t=e,(a=[...w]).includes(t.id)?a.splice(a.indexOf(t.id),1):a.push(t.id),void x(a);var t,a}}))))),i.treatments.length>0&&t.createElement(t.Fragment,null,t.createElement(k,{className:"ss-report-builder-item",onClick:()=>v(!y)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-treatments")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:y?_M:CM}))),y&&t.createElement("div",{className:"ss-report-builder-item"},t.createElement("div",{className:"ss-report-builder-item-title"},eo("select-treatments")),t.createElement(k,{className:"ss-report-builder-item-status",onClick:()=>f(!g)},0==A.length?"All":A.length+" Selected"," ",t.createElement(hge,{icon:g?C:pe})),g&&t.createElement("div",{className:"ss-report-items",style:{textAlign:"center"}},i.treatments.filter((e=>!e.inactive)).map((e=>t.createElement(uye,{bordered:!0,className:"ss-report-item",key:e.id,selected:-1!=A.indexOf(e.id),color:e.color,text:e.name,onClick:()=>{return t=e,(a=[...A]).includes(t.id)?a.splice(a.indexOf(t.id),1):a.push(t.id),void S(a);var t,a}})))))),t.createElement(k,{className:"ss-report-builder-item",onClick:()=>_(!E)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-overall-experience")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:E?_M:CM}))),t.createElement(k,{className:"ss-report-builder-item",onClick:()=>P(!O)},t.createElement("div",{className:"ss-report-builder-item-title"},eo("include-notes")),t.createElement("div",{className:"ss-report-builder-item-status"},t.createElement(hge,{icon:O?_M:CM})))),t.createElement("div",{style:{padding:"16px",paddingTop:"0"}},t.createElement(YA,{loading:T,disabled:T||!d&&!y&&!O&&!E,onClick:()=>I()},!T&&t.createElement("span",null,eo("create-report")))),t.createElement("div",{ref:D,style:{display:"none"}},t.createElement(nM.Provider,{value:{intervalStart:l,intervalType:"Month",update:oM}},t.createElement(Ebe.Provider,{value:{logEntries:n,symptoms:d?i.symptoms.filter((e=>!w.length||-1!=w.indexOf(e.id))):[],treatments:y?i.treatments.filter((e=>!A.length||-1!=A.indexOf(e.id))):[],hasFilteredSymptoms:!!w.length}},t.createElement(Rbe,{includeDailyOverallFeeling:E,includeNotes:O,productLogo:e.productLogo,productUrl:e.productUrl,productName:e.productName})))))}function $be(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"light"},t.createElement(rM,{variant:"rounded",intervalType:"Month",sticky:!0},t.createElement(_be,{showFilters:!0,previewState:e.previewState},t.createElement(Jfe,null,t.createElement(Obe,{onDaySelected:e.onDaySelected})),t.createElement(Jfe,null,t.createElement(Lbe,{onSymptomSelected:e.onSymptomSelected})),t.createElement(Jfe,null,t.createElement(Tbe,null)),t.createElement(Gbe,null))))}function Gbe(){let e=i(Ebe);if(!e)return t.createElement(Uq,null,"Error: Calendar severity charts must be used inside a Symptom Shark Visualization Coordinator.");let{hasFilteredSymptoms:a,symptoms:n}=e;return a?t.createElement(t.Fragment,null,n.filter((e=>"None"!=e.severityTracking)).map((e=>t.createElement(Jfe,{key:e.id},t.createElement(zbe,{symptom:e}))))):null}function Kbe(e){return t.createElement(Wa,{bodyBackgroundColor:"var(--mdhui-background-color-0)",colorScheme:e.colorScheme||"light"},t.createElement(Ube,{...e}))}function Zbe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"light"},t.createElement(Ufe,{variant:"compressed",title:eo("reports")}),t.createElement(Wbe,{previewState:e.previewState}))}function Ybe(e){return t.createElement(Wa,{colorScheme:e.colorScheme||"light",className:"symptom-detail-view symptom-shark-view"},t.createElement(_be,{previewState:e.previewState},t.createElement(Qbe,{...e})))}function Qbe(e){let a=i(Ebe);if(!a)return null;let n=a.symptoms.find((t=>t.id==e.symptomId));if(!n)return null;var r=e.initialIntervalStart||Tn(new Date);return t.createElement(t.Fragment,null,t.createElement(Ufe,{title:n.name,showCloseButton:!0}),t.createElement(rM,{initialIntervalStart:r,intervalType:"Month",variant:"rounded"},t.createElement(Jfe,{noTopMargin:!0},t.createElement(Fbe,{symptom:n})),t.createElement(Jfe,null,t.createElement(zbe,{symptom:n}))))}function Xbe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:t.createElement("img",{src:yge}),imageAlignment:"left"},eo("allergies-title"))),t.createElement(eS,null,t.createElement(qq,{previewState:e.previewState,onViewTermInfo:t=>function(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}(t)})))}function Jbe(e){return t.createElement(Wa,{bodyBackgroundColor:e.bodyBackgroundColor,colorScheme:e.colorScheme??"auto",primaryColor:e.primaryColor,flex:e.flexLayout},(e.showBackButton||e.showCloseButton)&&t.createElement(Ufe,{title:e.title,showBackButton:e.showBackButton,showCloseButton:e.showCloseButton,subtitle:e.subtitle,titleColor:e.titleColor,subtitleColor:e.subtitleColor,buttonColor:e.navigationBarButtonColor}),!(e.showBackButton||e.showCloseButton)&&t.createElement(t.Fragment,null,!e.flexLayout&&t.createElement(cye,null),t.createElement(mye,{title:e.title,subtitle:e.subtitle,titleColor:e.titleColor,subtitleColor:e.subtitleColor})),e.children)}function ewe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:t.createElement("img",{src:bge}),imageAlignment:"left"},eo("conditions-title"))),t.createElement(eS,null,t.createElement(nV,{previewState:e.previewState,onViewTermInfo:t=>function(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}(t)})))}function twe(e){return t.createElement(Jbe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation,colorScheme:e.colorScheme},e.deviceActivityViewUrl&&t.createElement(eS,null,t.createElement(zfe,{onClick:()=>b.openApplication(e.deviceActivityViewUrl),dataTypes:ld,previewState:e.previewState?"fetchingData":void 0})),t.createElement(eS,null,t.createElement(AV,{previewState:e.previewState?"Web":void 0,enableAppleHealthSurveyName:e.enableAppleHealthSurveyName,enableGoogleFitSurveyName:e.enableGoogleFitSurveyName,postalCodeSurveyName:e.postalCodeSurveyName})),t.createElement(eS,null,t.createElement(Ede,{previewState:e.previewState?"connected":void 0})),t.createElement(eS,null,t.createElement(Pde,{previewState:e.previewState?"connected":void 0})))}function awe(e){let a="",n=[];return e.excludeProviders||(n.push("Provider"),a+=eo("connect-ehr-title-providers")),e.excludeHealthPlans||(n.push("Health Plan"),a.length>0&&(a+=eo("connect-ehr-title-divider")),a+=eo("connect-ehr-title-health-plans")),a=eo("connect-ehr-title-prefix")+a,t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:a,showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),e.onViewEhr&&t.createElement(eS,null,t.createElement(Rfe,{previewState:e.preview?"fetchingData":void 0,onClick:e.onViewEhr})),t.createElement(eS,null,t.createElement(fge,null)),e.externalAccountsApplicationUrl&&t.createElement(eS,null,t.createElement(bde,{previewState:e.preview?"Default":void 0,applicationUrl:e.externalAccountsApplicationUrl,excludeProviders:e.excludeProviders,excludeHealthPlans:e.excludeHealthPlans,excludeDeviceManufacturers:!0})),t.createElement(eS,null,t.createElement(Uq,null,eo("ehr-intro-search")),t.createElement(ffe,{previewState:e.preview?"Default":void 0,providerCategories:n})))}function nwe(e){const[a,n]=t.useState("daily"),r=ld.map((e=>({dailyDataType:e.type,color:e.color})));return t.createElement(Jbe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation,colorScheme:e.colorScheme},t.createElement(eye,{style:{marginTop:e.presentation?"0px":"16px",marginLeft:"16px",marginRight:"16px",marginBottom:"daily"==a?"16px":"0px"},variant:"default",segments:[{title:eo("daily"),key:"daily"},{title:eo("weekly"),key:"weekly"},{title:eo("monthly"),key:"monthly"}],onSegmentSelected:e=>n(e),selectedSegment:a}),"daily"==a&&t.createElement(bfe,{dataTypes:r,previewState:e.previewState},t.createElement(eS,null,t.createElement(sM,{defaultMargin:!0}),t.createElement(kfe,{useContext:!0,previewState:e.previewState?"Default":void 0}))),("monthly"==a||"weekly"==a)&&t.createElement(rM,{intervalType:"weekly"==a?"Week":"Month",key:a,variant:"rounded"},t.createElement(Jfe,{noTopMargin:!0},ld.map((a=>t.createElement(zue,{hideIfNoData:a.type!=Li.Steps&&a.type!=Li.SleepMinutes,title:a.labelKey?eo(a.labelKey):void 0,key:a.type,dailyDataType:a.type,chartType:"Bar",options:{barColor:a.color},previewState:e.previewState}))))))}function rwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(cye,null),t.createElement(eS,{allowOverflow:!0},t.createElement(Bue,{previewState:e.preview?"Default":void 0})),t.createElement(eS,null,t.createElement(Ede,{previewState:e.preview?"connected":void 0})),t.createElement(eS,null,t.createElement(Pde,{previewState:e.preview?"connected":void 0})),t.createElement(eS,null,t.createElement(AV,{previewState:e.preview?"Web":void 0})))}w(".ss-report-builder {\n padding-bottom: env(safe-area-inset-bottom);\n position: relative;\n padding-bottom: 16px;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n background: var(--mdhui-background-color-0);\n position: relative;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item .ss-report-builder-item-title {\n font-weight: normal;\n font-size: 17px;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item .ss-report-builder-item-status {\n position: absolute;\n right: 0;\n top: 0;\n padding: 16px;\n cursor: pointer;\n text-align: right;\n width: 100%;\n font-weight: bold;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item svg {\n color: var(--mdhui-text-color-3);\n font-size: 17px;\n top: calc(50% - 16px);\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item .fa-circle-check {\n color: var(--mdhui-color-success);\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item.ss-report-builder-month-selector {\n text-align: center;\n font-size: 17px;\n font-weight: bold;\n cursor: auto;\n padding-left: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-builder-item.ss-report-month-selector .ss-report-builder-selector-title {\n text-transform: uppercase;\n font-size: 12px;\n color: var(--mdhui-text-color-2);\n padding-bottom: 4px;\n}\n\n.ss-report-builder .ss-report-builder-items .ss-report-date-chooser {\n background: none;\n}\n\n.ss-report-builder .ss-report-items {\n margin-top: 12px;\n margin-bottom: -4px;\n}\n\n.ss-report-builder .ss-report-items .ss-report-item {\n margin: 4px;\n}\n\n.ss-report-builder .ss-report-report-date-chooser {\n margin: 0;\n}");function iwe(e){const[a,n]=c(),[r,i]=c(),[o,s]=c(!1);td((()=>{if(e.previewState){const t=e.previewState.endsWith("web")?"Web":"iOS";if(a!==t)return void n(t);if(e.previewState?.startsWith("loading"))return void i(void 0)}a?qA(!!e.previewState).load(e.surveyResultId,e.surveySpecification).then((e=>{e?(i(e),s(!!e.fileUrl&&!e.fileUrl.endsWith(".pdf"))):b.back()})):(async()=>{const e=await b.getDeviceInfo();n(e.platform)})()}),[],[e.previewState,a]);const l=async()=>{!e.previewState&&a&&r?.fileUrl&&(["Android","iOS"].includes(a)?window.webkit.messageHandlers.OpenFile.postMessage({url:r.fileUrl}):b.openExternalUrl(r.fileUrl))};return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showBackButton:!0,className:"mdhui-document-detail-view-nav-bar",navigationBarRight:a&&r?t.createElement("div",{className:"mdhui-document-detail-view-nav-bar-icon",onClick:l},t.createElement(Me,{icon:"Web"===a?le:q})):void 0}),t.createElement("div",{className:"mdhui-document-detail-view"},!r&&t.createElement(ZA,null),r&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-document-detail-view-preview-container"},t.createElement("div",{className:"mdhui-document-detail-view-preview",onClick:l},o&&t.createElement(ZA,{className:"mdhui-document-detail-view-preview-loading"}),r.fileUrl&&!r.fileUrl.endsWith(".pdf")&&t.createElement("img",{src:r.fileUrl,style:{display:o?"none":"inline"},onLoad:()=>s(!1),alt:"document preview image"}),(!r.fileUrl||r.fileUrl.endsWith(".pdf"))&&t.createElement("div",{className:"mdhui-document-detail-view-preview-unavailable"},"Preview unavailable")),t.createElement("div",{className:"mdhui-document-detail-view-preview-label"},r.file)),t.createElement("div",{className:"mdhui-document-detail-view-document-details"},t.createElement("div",{className:"mdhui-document-detail-view-document-name"},r.name),t.createElement("div",{className:"mdhui-document-detail-view-document-date-and-type"},UA(r)),t.createElement("div",{className:"mdhui-document-detail-view-document-notes-title"},"Notes"),r.notes&&t.createElement("div",{className:"mdhui-document-detail-view-document-notes"},r.notes),!r.notes&&t.createElement("div",{className:"mdhui-document-detail-view-document-notes-none"},"None")),t.createElement("div",{className:"mdhui-document-detail-view-document-buttons"},t.createElement(YA,{variant:"light",color:"var(--mdhui-color-danger)",onClick:async()=>{if(e.previewState||!r)return;window.confirm("Are you sure you want to delete this document?")&&(r.fileKey&&await b.deleteFile(r.fileKey),await b.deleteSurveyResult(r.surveyResultId),b.back())}},"Delete")))))}w("body:has(.mdhui-document-detail-view) {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-navigation-bar.mdhui-document-detail-view-nav-bar {\n background: var(--mdhui-background-color-0);\n margin-bottom: 0;\n}\n\n.mdhui-navigation-bar.mdhui-document-detail-view-nav-bar .mdhui-document-detail-view-nav-bar-icon {\n position: absolute;\n top: calc(0px + env(safe-area-inset-top, 0px));\n right: 8px;\n bottom: 0;\n width: 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mdhui-color-primary);\n font-size: 1.2em;\n cursor: pointer;\n}\n\n.mdhui-document-detail-view {\n border-top: 1px solid var(--mdhui-background-color-1);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background: var(--mdhui-background-color-2);\n border-top: 1px solid var(--mdhui-border-color-2);\n border-bottom: 1px solid var(--mdhui-border-color-2);\n padding: 16px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--mdhui-background-color-0);\n padding: 16px;\n flex: 1;\n box-shadow: var(--mdhui-box-shadow-0);\n max-width: 80vw;\n cursor: pointer;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20vh;\n width: 40vw;\n padding: 16px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview img {\n max-height: 50vh;\n max-width: 100%;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-unavailable {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20vh;\n width: 40vw;\n padding: 16px;\n font-size: 0.8em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-preview-label {\n margin-top: 16px;\n font-size: 0.8em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-details {\n display: flex;\n flex-direction: column;\n padding: 16px;\n min-width: 0;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-name {\n font-size: 1.2em;\n font-weight: bold;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 4px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-date-and-type {\n font-size: 0.9em;\n font-weight: bold;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-notes-title {\n font-weight: bold;\n margin-top: 16px;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-notes {\n font-size: 0.9em;\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-notes-none {\n font-size: 0.9em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-document-detail-view .mdhui-document-detail-view-document-buttons {\n padding: 16px;\n}");function owe(e){const[a,n]=c(!0),[r,i]=c(),[o,s]=c("date"),[u,d]=c("desc"),m=e=>"type"===o?[...e].sort(VA("type",u)):"name"===o?[...e].sort(VA("name",u)):[...e].sort(VA("date",u));td((()=>{if("loading"===e.previewState)return n(!0),void i(void 0);HA(e.previewState).load(e.surveySpecification).then((e=>{i(m(e)),n(!1)}))}),[],[e.previewState]),l((()=>{r&&i(m(r))}),[o,u]);const h=e=>{let t="";return"date"===e?t="Date":"name"===e?t="Name":"type"===e&&(t="Type"),o===e&&(t+=" "+("asc"===u?"▴":"▾")),t};return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showBackButton:!0,className:"mdhui-document-library-view-nav-bar"}),t.createElement("div",{className:"mdhui-document-library-view"},t.createElement("div",{className:"mdhui-document-library-header"},t.createElement("div",{className:"mdhui-document-library-view-title"},"Documents"),t.createElement("div",null,t.createElement(YA,{disabled:a,fullWidth:!1,variant:"light",onClick:()=>{e.previewState||(n(!0),b.startSurvey(e.surveySpecification.surveyName))}},"Upload"))),t.createElement("div",{className:"mdhui-document-library-subheader"},t.createElement(eye,{segments:[{key:"date",title:h("date")},{key:"name",title:h("name")},{key:"type",title:h("type")}],onSegmentSelected:e=>{o===e?d("asc"===u?"desc":"asc"):s(e)},selectedSegment:o})),a&&t.createElement(ZA,null),!a&&0===r?.length&&t.createElement("div",{className:"mdhui-document-library-view-documents-empty"},"No documents uploaded."),!a&&r&&r.length>0&&t.createElement("div",{className:"mdhui-document-library-view-documents"},r.map(((a,n)=>t.createElement(swe,{key:n,document:a,onClick:()=>(t=>{if(e.previewState)return;const a=e.documentDetailViewBaseUrl.includes("?")?"&":"?",n=new URLSearchParams({...e.surveySpecification,surveyResultId:t.surveyResultId});b.openApplication(`${e.documentDetailViewBaseUrl}${a}${n}`)})(a)}))))))}function swe(e){const[a,n]=c(!!e.document.fileUrl&&!e.document.fileUrl.endsWith(".pdf"));return t.createElement($a,{className:"mdhui-document-library-view-document",onClick:e.onClick},t.createElement("div",{className:"mdhui-document-library-view-document-contents"},t.createElement("div",{className:"mdhui-document-library-view-document-thumbnail"},(!e.document.fileUrl||e.document.fileUrl.endsWith(".pdf"))&&t.createElement(Me,{icon:Oe}),e.document.fileUrl&&!e.document.fileUrl.endsWith(".pdf")&&t.createElement(t.Fragment,null,a&&t.createElement(ZA,{className:"mdhui-document-library-view-document-thumbnail-loading"}),t.createElement("img",{src:e.document.fileUrl,style:{display:a?"none":"inline"},onLoad:()=>n(!1),alt:"document thumbnail image"}))),t.createElement("div",{className:"mdhui-document-library-view-document-details"},t.createElement("div",{className:"mdhui-document-library-view-document-name"},e.document.name),t.createElement("div",{className:"mdhui-document-library-view-document-date-and-type"},UA(e.document)))))}function lwe(e){let a="",n=t.createElement(t.Fragment,null);switch(e.feed){case"Procedures":a=eo("procedures-title"),n=t.createElement("img",{src:Que});break;case"Reports":a=eo("reports-title"),n=t.createElement("img",{src:Yue});break;case"Immunizations":a=eo("immunizations-title"),n=t.createElement("img",{src:Xue});break;case"LabReports":a=eo("lab-results-title"),n=t.createElement("img",{src:Jue})}return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:n,imageAlignment:"left"},a)),t.createElement(ide,{feed:e.feed,onEventSelected:e.onEventSelected,onReportSelected:e.onReportSelected,previewState:e.previewState}))}function cwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{variant:"compressed",showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),t.createElement(sde,{feed:e.feed,pageId:e.pageId,pageDate:e.pageDate,previewState:e.previewState,onViewLabObservationTermInfo:e.onViewLabObservationTermInfo}))}function uwe(e){let a="",n=[];return e.excludeProviders||(n.push("Provider"),a+=eo("external-accounts-title-providers")),e.excludeHealthPlans||(n.push("Health Plan"),a.length>0&&(a+=eo("external-accounts-title-divider")),a+=eo("external-accounts-title-health-plans")),e.excludeDeviceManufacturers||(n.push("Device Manufacturer"),a.length>0&&(a+=eo("external-accounts-title-divider")),a+=eo("external-accounts-title-devices")),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:a,showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),t.createElement(gde,{previewState:e.previewState,externalAccountProviderCategories:n,onExternalAccountsLoaded:function(t){0===t.length&&("Modal"===e.presentation?b.dismiss():b.back())},connectExternalAccountOptions:e.connectExternalAccountOptions}))}function dwe(e){var[a,n]=c(!1);return l((()=>{b.connect().then((()=>{n(!0)}))}),[]),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(cye,null),a&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(IV,{previewState:e.connectPreview,disabledBehavior:"displayError"})),t.createElement(eS,null,t.createElement(Ede,{previewState:e.devicesPreview})),t.createElement(eS,{allowOverflow:!0},t.createElement(Cde,{previewState:e.chartsPreview}))),!a&&t.createElement(ZA,null))}function mwe(e){var[a,n]=c(!1);return l((()=>{b.connect().then((()=>{n(!0)}))}),[]),t.createElement(Wa,null,t.createElement(cye,{color:"var(--main-bg-color)"}),a&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(NV,{previewState:e.connectPreview,garminProviderID:e.garminProviderID,disabledBehavior:"displayError"})),t.createElement(eS,null,t.createElement(Pde,{previewState:e.devicesPreview})),t.createElement(eS,{allowOverflow:!0},t.createElement(Tde,{previewState:e.chartsPreview}))),!a&&t.createElement(ZA,null))}function hwe(e){var a="Push";e.notificationType&&(a=e.notificationType);return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(cye,{color:"#FFFFFF"}),t.createElement(eS,null,t.createElement(Gq,{previewDevicePlatform:e.preview?"Web":void 0,previewProjectPlatforms:e.preview?["Web","Android","iOS"]:void 0})),t.createElement(eS,null,t.createElement(cfe,{notificationType:a,onViewMore:e.notificationsViewUrl?()=>{e.notificationsViewUrl&&b.openApplication(e.notificationsViewUrl)}:void 0,previewState:e.preview?"loaded with data":void 0,hideAfterHours:e.notificationHideAfterHours})),t.createElement(Ofe,{variant:"singleCard",status:"incomplete",limit:3,title:eo("tasks"),onDetailLinkClick:e.tasksViewUrl?()=>{e.tasksViewUrl&&b.openApplication(e.tasksViewUrl)}:void 0,previewState:e.preview?"IncompleteTasks":void 0}),t.createElement(eS,null,t.createElement(AV,{headerVariant:"medium",previewState:e.preview?"Web":void 0})),t.createElement(eS,null,e.ehrConnectApplicationUrl&&t.createElement(DV,{variant:"medium",previewState:e.preview?"enabled":void 0,applicationUrl:e.ehrConnectApplicationUrl})),t.createElement(eS,null,t.createElement(hfe,{previewState:e.preview?"Default":void 0})))}function pwe(e){function a(){e.onViewLabs?e.onViewLabs():b.openApplication("https://hw.careevolutionapps.com/LabReports.html?lang="+b.getCurrentLanguage())}function n(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}let r=e.variant??"default";function i(a){var n=function(){return t.createElement(wge,{concept:a,onClick:()=>function(t){e.onViewHealthSectionDetails?e.onViewHealthSectionDetails(t):b.openApplication("https://hw.careevolutionapps.com/"+t+".html")}(a),previewState:"default"==e.previewState?"Default":void 0,indicatorPosition:"cardBased"==r?"topRight":"default"})};return"cardBased"==e.variant?t.createElement(eS,null,n()):n()}return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),t.createElement(yde,{previewState:"default"==e.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"],triggerWebExternalAccountSyncComplete:!0}),"default"==r&&t.createElement(Jfe,{noTopMargin:!0},t.createElement(Kge,{onViewTermInfo:e=>n(e),onClick:()=>a(),previewState:"default"==e.previewState?"ImportantLabs":void 0}),t.createElement(Uge,{previewState:"default"==e.previewState?"BloodTypeLabs":void 0}),i("Medications"),i("Immunizations"),i("Reports"),i("Allergies"),i("Conditions"),i("Procedures"),t.createElement(bde,{excludeDeviceManufacturers:!0,applicationUrl:e.externalAccountsApplicationUrl,previewState:"default"==e.previewState?"Default":void 0})),"cardBased"==r&&t.createElement(t.Fragment,null,t.createElement(eS,null,t.createElement(Kge,{onViewTermInfo:e=>n(e),onClick:()=>a(),previewState:"default"==e.previewState?"ImportantLabs":void 0})),t.createElement(eS,null,t.createElement(Uge,{previewState:"default"==e.previewState?"BloodTypeLabs":void 0})),i("Medications"),i("Immunizations"),i("Reports"),i("Allergies"),i("Conditions"),i("Procedures"),t.createElement(eS,null,t.createElement(bde,{excludeDeviceManufacturers:!0,applicationUrl:e.externalAccountsApplicationUrl,previewState:"default"==e.previewState?"Default":void 0}))),t.createElement(eS,null,t.createElement(DV,{bottomBorder:!0,applicationUrl:e.connectEhrApplicationUrl,previewState:"default"==e.previewState?"enabledConnected":void 0})))}function gwe(e){const a=()=>{e.previewState&&"live"!==e.previewState||b.dismiss()};return t.createElement(Wa,{colorScheme:e.colorScheme??"auto",flex:!0},t.createElement(eS,null,t.createElement(afe,{previewState:"live"!==e.previewState?e.previewState:void 0,onError:a,onDelete:a,onCancel:a,onSave:a,withImageCapture:!0})))}function fwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation},t.createElement(iM,{order:2,autosizeImage:!0,image:t.createElement("img",{src:vge}),imageAlignment:"left"},eo("medications-title"))),t.createElement(eS,null,t.createElement(nfe,{previewState:e.previewState,onViewTermInfo:t=>function(t){if(e.onViewTermInfo)e.onViewTermInfo(t);else{var a=new URLSearchParams({termFamily:t.TermFamily,termNamespace:t.TermNamespace,termCode:t.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+a,{modal:!0})}}(t)})))}function ywe(e){var a="Push";return e.notificationType&&(a=e.notificationType),t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:eo("notifications"),showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),t.createElement(dfe,{notificationType:a,previewState:e.preview?"loaded with data":void 0}))}function vwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},e.presentation&&t.createElement(Ufe,{title:eo("tasks"),showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),!e.presentation&&t.createElement(cye,null),!e.hideIncompleteTasks&&t.createElement(Ofe,{variant:"multiCard",title:eo("incomplete-tasks"),status:"incomplete",previewState:e.preview?"IncompleteTasks":void 0}),!e.hideCompleteTasks&&t.createElement(Ofe,{variant:"multiCard",title:eo("completed-tasks"),status:"complete",previewState:e.preview?"CompleteTasks":void 0}))}w("body:has(.mdhui-document-library-view) {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-navigation-bar.mdhui-document-library-view-nav-bar {\n background: var(--mdhui-background-color-0);\n margin-bottom: 0;\n}\n\n.mdhui-document-library-view {\n padding: 16px;\n border-top: 1px solid var(--mdhui-background-color-1);\n}\n\n.mdhui-document-library-view .mdhui-document-library-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 16px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-title {\n font-size: 1.7em;\n font-weight: bold;\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader {\n padding: 2px;\n margin: 0 0 16px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader .mdhui-segmented-control {\n background-color: var(--mdhui-background-color-1);\n border-color: var(--mdhui-background-color-1);\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader .mdhui-segmented-control .mdhui-segment {\n background-color: var(--mdhui-background-color-1);\n border: 1px solid var(--mdhui-background-color-1);\n color: var(--mdhui-text-color-0);\n}\n\n.mdhui-document-library-view .mdhui-document-library-subheader .mdhui-segmented-control .mdhui-segment-selected {\n background-color: var(--mdhui-background-color-0);\n border: 1px solid var(--mdhui-border-color-1);\n color: var(--mdhui-text-color-0);\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-documents-empty {\n color: var(--mdhui-text-color-3);\n text-align: center;\n margin: 32px 0;\n}\n\n.mdhui-document-library-view .mdhui-action.mdhui-document-library-view-document {\n background: var(--mdhui-background-color-1);\n border-radius: 10px;\n margin: 16px 0;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-contents {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail {\n height: 48px;\n width: 48px;\n border-radius: 5px;\n overflow: hidden;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail-loading {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--mdhui-background-color-0);\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail > svg {\n color: var(--mdhui-text-color-4);\n height: 100%;\n width: 100%;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-thumbnail > img {\n height: 100%;\n width: 100%;\n}\n\n\n.mdhui-document-library-view .mdhui-document-library-view-document-details {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-name {\n font-size: 1.2em;\n font-weight: bold;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 4px;\n}\n\n.mdhui-document-library-view .mdhui-document-library-view-document-date-and-type {\n font-size: 0.7em;\n font-weight: bold;\n color: var(--mdhui-text-color-3);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}");function bwe(e){let[a,n]=t.useState(null);function r(){rbe(),window.setTimeout((function(){ibe()}),1200)}return td((()=>{if("default"==e.previewState)return n([1e3,2e3,3e3]),void r();b.getParticipantInfo().then((t=>{let a=Qq(e.customField,[],t);n(a.badges),r()}))}),[],[]),null!=a&&0===a.length?(b.dismiss(),null):t.createElement(Wa,{bodyBackgroundColor:"dark"===e.colorScheme?"":"#fff",colorScheme:e.colorScheme??"auto",primaryColor:e.primaryColor},t.createElement("div",{className:"mdhui-new-badge-view"},null==a&&t.createElement(ZA,null),null!=a&&t.createElement(t.Fragment,null,t.createElement("div",{className:"mdhui-new-badge-view-badge-container"},t.createElement(GA,{size:"xl",backgroundColor:Ne(a.length-1)},t.createElement(t.Fragment,null,e.showBadgePoints&&t.createElement(t.Fragment,null,yl(Math.max(...a)),t.createElement("br",null),"points")))),t.createElement(iM,{order:2,style:{margin:"16px",marginBottom:0}},e.title||eo("new-badge-title")),t.createElement(Uq,null,e.text||eo("new-badge-text")),t.createElement(YA,{onClick:()=>b.dismiss()},eo("get-badge")))))}w(".mdhui-new-badge-view {\n padding: 16px;\n text-align: center;\n height: calc(100dvh - 34px);\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}\n\n.mdhui-new-badge-view .mdhui-new-badge-view-badge-container {\n align-items: center;\n display: flex;\n}");function wwe(e){let a=e.entries.reduce(((e,t)=>e+(t.bonusPoints||0)),0),n=e.entries.reduce(((e,t)=>e+t.points),a);return t.createElement(Wa,{bodyBackgroundColor:"dark"===e.colorScheme?"":"#fff",colorScheme:e.colorScheme??"auto",primaryColor:e.primaryColor},t.createElement("div",{className:"mdhui-new-points"},t.createElement(Kfe,{animate:!0},t.createElement("div",{className:"mdhui-new-points-total"},t.createElement("div",{className:"mdhui-new-points-total-points"},"+",n),t.createElement("div",{className:"mdhui-new-points-total-points-label"},"points"))),t.createElement("div",{className:"mdhui-new-points-content"},1==e.entries.length&&e.entries[0].message&&0===a&&t.createElement("div",null,t.createElement("div",{className:"mdhui-new-points-title"},e.entries[0].message.title),t.createElement("div",{className:"mdhui-new-points-text"},e.entries[0].message.text)),(e.entries.length>1||!e.entries[0].message||a>0)&&t.createElement("div",null,t.createElement("div",{className:"mdhui-new-points-title"},eo("new-points-title")),t.createElement("div",{className:"mdhui-new-points-text"},eo("new-points-text")),t.createElement("div",{className:"mdhui-new-points-entries"},e.entries.map(((e,a)=>t.createElement("div",{key:a,className:"mdhui-new-points-entry"},t.createElement("div",{className:"mdhui-new-points-entry-name"},e.name),t.createElement("div",{className:"mdhui-new-points-entry-points"},"+",e.points)))),a>0&&t.createElement("div",{className:"mdhui-new-points-entry"},t.createElement("div",{className:"mdhui-new-points-entry-name bonus"},eo("bonus")),t.createElement("div",{className:"mdhui-new-points-entry-points bonus"},"+",a)))),e.pointsToNextReward&&t.createElement("div",{className:"mdhui-new-points-next-reward"},eo("new-points-next-reward-prefix"),t.createElement("span",{className:"mdhui-new-points-next-reward-points"},e.pointsToNextReward),eo("new-points-next-reward-suffix"))),t.createElement("div",{className:"mdhui-new-points-button-panel"},t.createElement(YA,{onClick:()=>b.dismiss()},e.doneButtonText??eo("new-points-done-button-text")))))}function kwe(e,t){let a={type:"MDHUI-NewPoints",value:JSON.stringify(e)};b.persistDeviceData([a]).then((()=>{b.openApplication(t||"https://viewlibrary.careevolutionapps.com/newpoints",{modal:!0})}))}w(".mdhui-new-points {\n margin: calc(20px + env(safe-area-inset-top, 0px)) 20px 20px;\n}\n\n.mdhui-new-points-total {\n margin-top: 10px;\n text-align: center;\n}\n\n.mdhui-new-points-total-points {\n font-weight: bold;\n font-size: 40px;\n height: 50px;\n line-height: 50px;\n color: var(--mdhui-color-primary);\n}\n\n.mdhui-new-points-content {\n text-align: center;\n opacity: 0;\n animation: fadein 750ms ease-in-out;\n animation-delay: 750ms;\n animation-fill-mode: forwards;\n}\n\n.mdhui-new-points-title {\n margin: 32px 0 20px 0;\n font-size: 2em;\n font-weight: bold;\n}\n\n.mdhui-new-points-text {\n padding: 0 20px;\n}\n\n.mdhui-new-points-entries {\n margin-top: 20px;\n text-align: left;\n}\n\n.mdhui-new-points-entry {\n display: grid;\n grid-template-columns: auto max-content;\n align-items: center;\n}\n\n.mdhui-new-points-entry-name {\n font-size: 1.1em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-new-points-entry-points {\n width: 50px;\n color: var(--mdhui-color-primary);\n font-size: 1.1em;\n font-weight: bold;\n text-align: end;\n}\n\n.mdhui-new-points-next-reward {\n margin-top: 20px;\n padding: 0 20px;\n}\n\n.mdhui-new-points-next-reward-points {\n color: var(--mdhui-color-primary);\n font-weight: bold;\n}\n\n.mdhui-new-points-entry .bonus {\n color: #ffcc5b;\n font-weight: bold;\n}\n\n.mdhui-new-points-button-panel {\n margin: 20px 0 36px 0;\n opacity: 0;\n animation: fadein 750ms ease-in-out;\n animation-delay: 750ms;\n animation-fill-mode: forwards;\n}");function xwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Age,null,t.createElement(Awe,{...e})))}function Awe(e){const[a,n]=c(),[r,i]=c(),[o,s]=c();let l=!a&&!r&&!o,u=[...a??[],...r??[],...o??[]];return t.createElement("div",{className:"mdhui-inbox"},t.createElement(mye,{title:eo("inbox-view-title")}),l&&t.createElement(ZA,null),!l&&0===u.length&&t.createElement("div",{className:"mdhui-inbox-empty-text"},eo("inbox-view-empty-text")),t.createElement(Cge,{previewState:"default"===e.previewState?"incomplete message":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-messages-title"),type:"message",status:"incomplete",sortOrder:"descending",sortColumn:"insertedDate",messageViewerUrl:e.messageViewerUrl,onItemsLoaded:n,hideLoadingIndicator:!0,category:e.itemCategory}),t.createElement(Cge,{previewState:"default"===e.previewState?"incomplete survey":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-surveys-title"),type:"survey",status:"incomplete",sortOrder:"ascending",sortColumn:"dueDate",onItemsLoaded:i,hideLoadingIndicator:!0,surveyVariant:e.surveyVariant,category:e.itemCategory}),t.createElement(Cge,{previewState:"default"===e.previewState?"incomplete resource":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-resources-title"),type:"resource",status:"incomplete",sortOrder:"descending",sortColumn:"insertedDate",onItemsLoaded:s,hideLoadingIndicator:!0,resourceImageAlignment:e.resourceImageAlignment,resourceButtonVariant:e.resourceButtonVariant,resourceButtonText:e.resourceButtonText,category:e.itemCategory}),t.createElement("div",{className:"mdhui-inbox-recently-completed"},t.createElement(Cge,{previewState:"default"===e.previewState?"complete items":"empty"===e.previewState?"no items":void 0,title:eo("inbox-view-recently-completed-title"),status:"complete",sortOrder:"descending",sortColumn:"endDate",messageViewerUrl:e.messageViewerUrl,endsAfter:on(new Date,{days:-3}).toISOString(),showTitleWhenEmpty:!0,emptyText:eo("inbox-view-recently-completed-empty-text"),syncOnChanges:!0,category:e.itemCategory}),!l&&t.createElement(eS,{style:{margin:"12px 16px"}},t.createElement($a,{title:eo("inbox-view-history-button-text"),onClick:()=>{e.previewState||b.openApplication(e.historyViewerUrl,{modal:!0})}}))))}w(".mdhui-inbox {\n padding: calc(env(safe-area-inset-top, 0px) + 20px) 0 calc(env(safe-area-inset-bottom, 0px) + 20px);\n}\n\n.mdhui-inbox .mdhui-view-header {\n padding: 0 16px;\n}\n\n.mdhui-inbox .mdhui-view-header .mdhui-view-header-title {\n font-size: 1.8em;\n}\n\n.mdhui-inbox-empty-text {\n color: var(--mdhui-text-color-3);\n padding: 16px;\n}\n\n.mdhui-inbox-recently-completed {\n margin-top: 20px;\n}\n\n.mdhui-inbox-recently-completed .mdhui-inbox-item-list-title {\n color: var(--mdhui-text-color-0);\n margin-bottom: 12px;\n font-size: 1.4em;\n font-weight: bold;\n}\n\n.mdhui-inbox-recently-completed .mdhui-card {\n margin: 12px 0 0 0;\n}");function Swe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{showCloseButton:!0}),t.createElement("div",{className:"mdhui-inbox-history"},t.createElement(iM,{order:3},eo("inbox-history-view-title")),t.createElement(Cge,{previewState:"default"===e.previewState?"complete items":void 0,status:"complete",messageViewerUrl:e.messageViewerUrl,emptyText:eo("inbox-history-view-empty-text")})))}w(".mdhui-inbox-history {\n padding: calc(env(safe-area-inset-top, 0px)) 16px calc(env(safe-area-inset-bottom, 0px) + 20px);\n}");function Ewe(e){return t.createElement("div",{className:"mdhui-report-content"},"text/html"==e.contentType&&t.createElement("iframe",{sandbox:"",srcDoc:e.content}),"application/pdf"==e.contentType&&t.createElement("div",{className:"mdhui-report-content-download-pdf","ng-if":"$ctrl.report.ContentType == 'application/pdf'","ng-show":"$ctrl.srcSet = true"},t.createElement("a",{href:"data:application/pdf;base64,"+e.content,download:e.type+".pdf",title:eo("download-pdf-report")},t.createElement(Me,{icon:le}),eo("download-pdf-report"))))}w(".mdhui-report-content {\n min-height: 200px;\n}\n\n.mdhui-report-content iframe {\n border: none;\n padding: 0;\n margin: 0;\n width: 100%;\n height: 100%;\n background: #FFF;\n min-height: 200px;\n}\n\n.mdhui-report-content .mdhui-report-content-download-pdf a {\n padding: 16px;\n margin: 0 auto;\n background: var(--mdhui-color-primary);\n color: #FFF;\n font-weight: bold;\n border-radius: 6px;\n text-decoration: none;\n text-align: center;\n display: block;\n width: 200px;\n margin-top: var(--mdhui-padding-md);\n}\n\n.mdhui-report-content .mdhui-report-content-download-pdf svg {\n display: block;\n text-align: center;\n width: 100%;\n margin-bottom: var(--mdhui-padding-md);\n}");let _we='<!DOCTYPE html><html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:n3="http://www.w3.org/1999/xhtml" xmlns:n1="urn:hl7-org:v3" xmlns:n2="urn:hl7-org:v3/meta/voc" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:in="urn:lantana-com:inline-variable-data"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\x3c!--\r\n Do NOT edit this HTML directly, it was generated via an XSLt\r\n transformation from the original release 2 CDA Document.\r\n --\x3e<title>Encounter Summary</title><style>\r\n \r\n body { font-family:Helvetica, Arial, sans-serif; font-size: 12px; margin: 16px; text-align: left; margin-bottom:0; } \r\n .title { font-size: 21px; font-weight: bold; line-height:1.5em;}\r\n .document-info { font-size:12px; margin-bottom:16px; color:#999; line-height:1.5em; }\r\n \r\n \r\n .patient-info-table { border-spacing: 0; width:100%; }\r\n .patient-info-table th { text-align:left; font-size:11px; color:#999; font-weight:normal; vertical-align:top; padding-right:8px; border-bottom:solid 1px #eee; padding-top:4px; padding-bottom:4px; }\r\n .patient-info-table td { text-align:left; font-size:12px; color:#000; vertical-align:top; border-bottom:solid 1px #eee; padding-top:4px; padding-bottom:4px; }\r\n .patient-info-table tr:last-child th, .patient-info-table tr:last-child td { border-bottom:none; }\r\n\r\n .data-table { margin-left: -16px; margin-right:-16px; margin-bottom:16px; }\r\n .data-table table, .data-table td, .data-table th { border:none; }\r\n\r\n .data-table > span { margin-left:16px; margin-right:16px; }\r\n .data-table table { border-collapse: collapse; }\r\n .data-table th { padding-bottom:4px; padding-top:4px; padding-right:8px; padding-left:8px; text-align: left; text-transform: uppercase; font-weight: normal; color: #666; font-size: 11px; border-bottom: #ddd 1px solid; vertical-align:bottom; }\r\n .data-table tr:nth-child(even) td { background-color: #f5f5f5; }\r\n .data-table td { vertical-align: top; font-size:12px; padding-bottom:4px; padding-top:4px; padding-right:8px; padding-left:8px;}\r\n .data-table td:first-child, .data-table th:first-child { padding-left:16px;}\r\n \r\n p { margin: 0 0 4px 0em; }\r\n\r\n .wrap-collabsible { position:relative; margin-left:-16px; margin-right:-16px; }\r\n input[type=\'checkbox\'] { display: none; }\r\n .lbl-toggle { display: block; font-size: 17px; text-align: left; padding:8px; padding-left:16px; padding-right:16px; border-top: solid 1px #ddd; cursor: pointer; transition: all 0.25s ease-out; position: sticky; position: -webkit-sticky; top: 0; left: 0; background: #FFF; color: #3e6e9a; font-weight: bold; }\r\n .lbl-toggle:hover { opacity:.9; }\r\n .lbl-toggle::before { content: \' \'; display: inline-block; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid currentColor; vertical-align: middle; margin-right: .7rem; transform: translateY(-2px); transition: transform .2s ease-out; position: absolute; right: 8px; top: 16px; }\r\n .toggle:checked + .lbl-toggle::before { transform: rotate(90deg) translateX(-3px); }\r\n .collapsible-content { max-height: 0px; overflow-x: auto; overflow-y: hidden; }\r\n .toggle:checked + .lbl-toggle + .collapsible-content { max-height: 999999px; }\r\n .collapsible-content .content-inner { background: #FFF; padding:8px; padding-left:16px; padding-right:16px; }\r\n \r\n </style></head><body><div class="title">Encounter Summary</div><div class="document-info"><div class="document-date">\r\n Document Created\r\n May 29, 2023</div><div class="custodian"><div>Custodian: Cedars-Sinai Health System</div></div></div><div class="wrap-collabsible"><input id="collapsible" class="toggle" type="checkbox" /><label for="collapsible" class="lbl-toggle">Patient Information</label><div class="collapsible-content"><div class="content-inner"><table class="patient-info-table" cellpadding="0" cellspacing="0"><tr><td colspan="2" style="font-size:14px;">AmbulatorySeniorF Xxxcshs </td></tr><tr><th>Date of Birth</th><td>January 1, 1947</td></tr><tr><th>Race</th><td>Unknown</td></tr><tr><th>Patient ID</th><td>CSHJWLL1B3TGMWX</td></tr><tr><th>Sex</th><td>Female</td></tr><tr><th>Ethnicity</th><td>Unknown</td></tr><tr><th>Preferred Language</th><td>Information not available</td></tr><tr><th>Address</th><td>6500 Wilshire Blvd<br /><br />LOS ANGELES, CA, 90046<br />tel:+1-626-315-4807</td></tr><tr><th>Care Team Member(s)</th><td>Dr. Masson of Cedars-Sinai Health System<br />, , <br />tel:+1-310-248-7000<br /><br /></td></tr><tr><th>Guardian</th><td><div><br /></div></td></tr><tr><th>Next of Kin</th><td><div><br /></div></td></tr><tr><th>Other Caregivers(s)</th><td /></tr><tr><th>Emergency Contact</th><td><div><br /></div></td></tr><tr><th>Comments:</th><td /></tr></table></div></div></div><div class="wrap-collabsible"><input id="ID0EDGAC" class="toggle" type="checkbox" /><label for="ID0EDGAC" class="lbl-toggle" data-loinc-code="X-DOCCMT">Note from Cedars-Sinai Health System</label><div class="collapsible-content"><div class="content-inner">This document contains information that was shared with AmbulatorySeniorF Xxxcshs. It may not contain the entire record from Cedars-Sinai Health System.</div></div></div><div class="wrap-collabsible"><input id="ID0EVGAC" class="toggle" type="checkbox" /><label for="ID0EVGAC" class="lbl-toggle" data-loinc-code="46240-8">Encounter Details</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col width="10%" /><col width="15%" /><col span="3" width="25%" /></colgroup><thead><tr><th>Date</th><th>Type</th><th>Department</th><th>Care Team</th><th>Description</th></tr></thead><tbody><tr ID="encounter2" style="" id="encounter2"><td>04/15/2019 9:30 AM PDT</td><td ID="encounter2type" id="encounter2type">Office Visit</td><td><p>CSMG Internal Medicine</p><p>8767 Wilshire Blvd</p><p>3rd Floor</p><p>BEVERLY HILLS, CA 90211</p><p>310-385-6031</p></td><td><p style="font-weight:bold;">Dr. Gray</p><p>8767 WILSHIRE BLVD</p><p>3RD FLOOR-SUITE 301</p><p>BEVERLY HILLS, CA 90211</p><p>310-385-6064 (Work)</p><p>424-314-8735 (Fax)</p></td><td><span id="encounter2desc" /></td></tr></tbody></table></div></div></div></div><div class="wrap-collabsible"><input id="ID0EJNAG" class="toggle" type="checkbox" /><label for="ID0EJNAG" class="lbl-toggle" data-loinc-code="29762-2">Social History</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%" ID="sochist14" id="sochist14"><colgroup><col span="2" width="25%" /><col width="13%" /><col width="12%" /><col width="25%" /></colgroup><thead><tr><th>Tobacco Use</th><th>Types</th><th>Packs/Day</th><th>Years Used</th><th>Date</th></tr></thead><tbody><tr><td>Smoking Tobacco: Former</td><td>Cigarettes</td><td ID="sochist14packsperday" id="sochist14packsperday">0.5</td><td /><td>1999 - 06/2010</td></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col width="25%" /><col width="75%" /></colgroup><thead><tr><th>Alcohol Use</th><th>Standard Drinks/Week</th></tr></thead><tbody><tr><td ID="alcoholStatus" id="alcoholStatus">Yes</td><td>3 (1 standard drink = 0.6 oz pure alcohol)</td></tr></tbody></table></div><div class="data-table"><table width="100%" ID="sdohassess1" id="sdohassess1"><colgroup><col width="50%" /><col span="2" width="25%" /></colgroup><thead><tr><th>Depression</th><th>Answer</th><th>Date Recorded</th></tr></thead><tbody><tr ID="sdohassess1pair1" id="sdohassess1pair1"><td ID="sdohassess1pair1ques" id="sdohassess1pair1ques">PHQ-9 Score</td><td ID="sdohassess1pair1ans" id="sdohassess1pair1ans">23</td><td>10/24/2022</td></tr><tr ID="sdohassess1pair2" id="sdohassess1pair2"><td ID="sdohassess1pair2ques" id="sdohassess1pair2ques">Screening Completed</td><td ID="sdohassess1pair2ans" id="sdohassess1pair2ans">PHQ-9</td><td>10/24/2022</td></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col width="50%" /><col span="2" width="25%" /></colgroup><thead><tr><th>Sex and Gender Information</th><th>Value</th><th>Date Recorded</th></tr></thead><tbody><tr ID="BirthSex17" id="BirthSex17"><td>Sex Assigned at Birth</td><td ID="BirthSex17Value" id="BirthSex17Value">Female</td><td>11/04/2018 3:08 AM PST</td></tr><tr ID="GenderIdentity15" id="GenderIdentity15"><td>Gender Identity</td><td ID="GenderIdentity15Value" id="GenderIdentity15Value">Female</td><td>06/12/2019 2:50 PM PDT</td></tr><tr ID="SexualOrientation16" id="SexualOrientation16"><td>Sexual Orientation</td><td ID="SexualOrientation16Value" id="SexualOrientation16Value">Choose not to disclose</td><td>11/04/2018 3:08 AM PST</td></tr></tbody></table></div>documented as of this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EQHBG" class="toggle" type="checkbox" /><label for="ID0EQHBG" class="lbl-toggle" data-loinc-code="8716-3">Last Filed Vital Signs</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col span="4" width="25%" /></colgroup><thead><tr><th>Vital Sign</th><th>Reading</th><th>Time Taken</th><th>Comments</th></tr></thead><tbody><tr style=""><td style="">Blood Pressure</td><td><span id="sysBP_5642605800">120</span>/<span id="diaBP_5642605800">80</span></td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="pulse_5642605800" style="" id="pulse_5642605800"><td style="">Pulse</td><td>80</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="temp_5642605800" style="" id="temp_5642605800"><td style="">Temperature</td><td>37.1 °C (98.8 °F)</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="resp_" style="" id="resp_"><td style="">Respiratory Rate</td><td>-</td><td>-</td><td /></tr><tr ID="SpO2_" style="" id="SpO2_"><td style="">Oxygen Saturation</td><td>-</td><td>-</td><td /></tr><tr ID="inhaled_" style="" id="inhaled_"><td style="">Inhaled Oxygen Concentration</td><td>-</td><td>-</td><td /></tr><tr ID="weight_5642605800" style="" id="weight_5642605800"><td style="">Weight</td><td>238.1 kg (525 lb)</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="height_5642605800" style="" id="height_5642605800"><td style="">Height</td><td>157.5 cm (5\' 2")</td><td>10/21/2019 3:30 PM PDT</td><td /></tr><tr ID="bmi_5642605800" style="" id="bmi_5642605800"><td style="">Body Mass Index</td><td>96.02</td><td>10/21/2019 3:30 PM PDT</td><td /></tr></tbody></table></div>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EIZBG" class="toggle" type="checkbox" /><label for="ID0EIZBG" class="lbl-toggle" data-loinc-code="69730-0">Patient Instructions</label><div class="collapsible-content"><div class="content-inner"><ul style="" id="Instructions33"><li>Patient Instructions: <ul><li><p><span style="">Dr. Fazel - 04/15/2019 9:30 AM PDT</span></p><span><span style="">Formatting of this note is different from the original.</span><br /><span style="">Images from the original note were not included.</span><br />Patient Education <br /><br />Back Exercises<br />The following exercises strengthen the muscles that help to support the trunk and back. They also help to keep the lower back flexible. Doing these exercises can help to prevent back pain or lessen existing pain.<br />· If you have back pain or discomfort, try doing these exercises 2-3 times each day or as told by your health care provider.<br />· As your pain improves, do them once each day, but increase the number of times that you repeat the steps for each exercise (do more repetitions).<br />· To prevent the recurrence of back pain, continue to do these exercises once each day or as told by your health care provider.<br />Do exercises exactly as told by your health care provider and adjust them as directed. It is normal to feel mild stretching, pulling, tightness, or discomfort as you do these exercises, but you should stop right away if you feel sudden pain or your pain gets worse.<br />Exercises<br />Single knee to chest<br />Repeat these steps 3-5 times for each leg:<br />1. Lie on your back on a firm bed or the floor with your legs extended.<br />2. Bring one knee to your chest. Your other leg should stay extended and in contact with the floor.<br />3. Hold your knee in place by grabbing your knee or thigh with both hands and hold.<br />4. Pull on your knee until you feel a gentle stretch in your lower back or buttocks.<br />5. Hold the stretch for 10-30 seconds.<br />6. Slowly release and straighten your leg.<br />Pelvic tilt<br />Repeat these steps 5-10 times:<br />1. Lie on your back on a firm bed or the floor with your legs extended.<br />2. Bend your knees so they are pointing toward the ceiling and your feet are flat on the floor.<br />3. Tighten your lower abdominal muscles to press your lower back against the floor. This motion will tilt your pelvis so your tailbone points up toward the ceiling instead of pointing to your feet or the floor.<br />4. With gentle tension and even breathing, hold this position for 5-10 seconds.<br />Cat-cow<br />Repeat these steps until your lower back becomes more flexible:<br />1. Get into a hands-and-knees position on a firm surface. Keep your hands under your shoulders, and keep your knees under your hips. You may place padding under your knees for comfort.<br />2. Let your head hang down toward your chest. Contract your abdominal muscles and point your tailbone toward the floor so your lower back becomes rounded like the back of a cat.<br />3. Hold this position for 5 seconds.<br />4. Slowly lift your head, let your abdominal muscles relax and point your tailbone up toward the ceiling so your back forms a sagging arch like the back of a cow.<br />5. Hold this position for 5 seconds. <br />Press-ups<br />Repeat these steps 5-10 times:<br />1. Lie on your abdomen (face-down) on the floor.<br />2. Place your palms near your head, about shoulder-width apart.<br />3. Keeping your back as relaxed as possible and keeping your hips on the floor, slowly straighten your arms to raise the top half of your body and lift your shoulders. Do not use your back muscles to raise your upper torso. You may adjust the placement of your hands to make yourself more comfortable.<br />4. Hold this position for 5 seconds while you keep your back relaxed.<br />5. Slowly return to lying flat on the floor. <br />Bridges<br />Repeat these steps 10 times:<br />1. Lie on your back on a firm surface.<br />2. Bend your knees so they are pointing toward the ceiling and your feet are flat on the floor. Your arms should be flat at your sides, next to your body.<br />3. Tighten your buttocks muscles and lift your buttocks off the floor until your waist is at almost the same height as your knees. You should feel the muscles working in your buttocks and the back of your thighs. If you do not feel these muscles, slide your feet 1-2 inches farther away from your buttocks.<br />4. Hold this position for 3-5 seconds.<br />5. Slowly lower your hips to the starting position, and allow your buttocks muscles to relax completely.<br />If this exercise is too easy, try doing it with your arms crossed over your chest. <br />Abdominal crunches<br />Repeat these steps 5-10 times:<br />1. Lie on your back on a firm bed or the floor with your legs extended.<br />2. Bend your knees so they are pointing toward the ceiling and your feet are flat on the floor.<br />3. Cross your arms over your chest.<br />4. Tip your chin slightly toward your chest without bending your neck.<br />5. Tighten your abdominal muscles and slowly raise your trunk (torso) high enough to lift your shoulder blades a tiny bit off the floor. Avoid raising your torso higher than that because it can put too much stress on your low back and does not help to strengthen your abdominal muscles.<br />6. Slowly return to your starting position.<br />Back lifts<br />Repeat these steps 5-10 times:<br />1. Lie on your abdomen (face-down) with your arms at your sides, and rest your forehead on the floor.<br />2. Tighten the muscles in your legs and your buttocks.<br />3. Slowly lift your chest off the floor while you keep your hips pressed to the floor. Keep the back of your head in line with the curve in your back. Your eyes should be looking at the floor.<br />4. Hold this position for 3-5 seconds.<br />5. Slowly return to your starting position.<br />Contact a health care provider if:<br />· Your back pain or discomfort gets much worse when you do an exercise.<br />· Your worsening back pain or discomfort does not lessen within 2 hours after you exercise.<br />If you have any of these problems, stop doing these exercises right away. Do not do them again unless your health care provider says that you can.<br />Get help right away if:<br />· You develop sudden, severe back pain. If this happens, stop doing the exercises right away. Do not do them again unless your health care provider says that you can.<br />This information is not intended to replace advice given to you by your health care provider. Make sure you discuss any questions you have with your health care provider.<br />Document Revised: 04/23/2020 Document Reviewed: 09/19/2019<br />Elsevier Patient Education © 2021 Elsevier Inc.<br /><br /><br />Potassium <br />Date Value Ref Range Status <br />06/10/2015 5.2 (High) 3.5 - 5.0 MMOL/L Final <br /><br /></span><br /><span style="">Electronically signed by Dr. Fazel at 03/22/2022 1:35 PM PDT</span><br /><br /></li></ul></li></ul>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0ET6BG" class="toggle" type="checkbox" /><label for="ID0ET6BG" class="lbl-toggle" data-loinc-code="10164-2">Progress Notes</label><div class="collapsible-content"><div class="content-inner"><ul style=""><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note30"><span><span style="">Formatting of this note is different from the original.</span><br />PHQ-2 Total Score (Scale: 0 to 3) 9/6/2013 <br />PHQ-2 Total Score 6 <br /><br />CSHS ONC PHQ9 1/19/2018 3/8/2019 7/19/2020 <br />In the last two weeks, how often have you had little interest or pleasure in doing things? 0 0 1 <br />In the last two weeks, how often have you been feeling down, depressed or hopeless? - 1 1 <br />In the last two weeks, how often have you had trouble falling asleep, staying asleep or sleeping too much? 0 - - <br />In the last two weeks, how often have you been feeling tired or having little energy? - - - <br />In the last two weeks, how often have you had poor appetite or been overeating? - - - <br />In the last two weeks, how often have you been feeling bad about yourself, or that you\'re a failure or have let yourself or family down? - - - <br />In the last two weeks, how often have you had trouble concentrating on things, such as reading the newspaper or watching television? - - - <br />In the last two weeks, how often have you been moving or speaking so slowly that other people could have noticed; Or, the opposite - being fidgety or restless that you have been moving around a lot more than usual? - - - <br />In the last two weeks, how often have you had thoughts that you would be better off dead or of hurting yourself in some way? - - - <br />PHQ-9 Score 0 1 2 <br /><br /></span><br /><span style="">Electronically signed by Dr. Masson at 07/19/2020 2:23 PM PDT</span><br /></span></li><li>Dr. Rao - 04/15/2019 9:30 AM PDT: <span id="Note29"><span><span style="">Formatting of this note might be different from the original.</span><br />Blood pressure 120/80, pulse 80, temperature 98.8 °F (37.1 °C), temperature source Oral. <br />General appearance: alert, cooperative, no distress, appears stated age<br />Head: Normocephalic, without obvious abnormality, atraumatic<br />Eyes: conjunctivae/corneas clear. PERRL, EOM\'s intact. Fundi benign<br />Ears: normal TM\'s and external ear canals AU<br />Nose: Nares normal. Septum midline. Mucosa normal. No drainage or sinus tenderness.<br />Neck: supple, symmetrical, trachea midline, no adenopathy, thyroid: not enlarged, symmetric, no tenderness/mass/nodules, no carotid bruit, and no JVD<br />Lungs: clear to auscultation bilaterally<br />Heart: regular rate and rhythm, S1, S2 normal, no murmur, click, rub or gallop , no edema<br />Abdomen: soft, non-tender. Bowel sounds normal. No masses, no organomegaly<br />Extremities: extremities normal, atraumatic, no cyanosis or edema<br />Skin: Skin color, texture, turgor normal. No rashes or lesions<br />Neurologic: Grossly normal, no inattention, alert and oriented x3<br /><br /></span><br /><span style="">Electronically signed by Dr. Rao at 08/03/2021 5:11 PM PDT</span><br /></span></li><li>Roma Yogesh Gianchandani - 04/15/2019 9:30 AM PDT: <span id="Note28"><span><span style="">Formatting of this note might be different from the original.</span><br />This is a test of dictating later this is a test of dictating later this is a test of dictating later<br /><br />No results found for: HGBA1C <br />.uma<br /><br /></span><br /><span style="">Electronically signed by Roma Yogesh Gianchandani at 01/21/2022 2:37 PM PST</span><br /></span></li><li>Dr. Merchant - 04/15/2019 9:30 AM PDT: <span id="Note27"><span><span style="">Formatting of this note is different from the original.</span><br /><span style="">Images from the original note were not included.</span><br /><br /><br /><br /> Hematology and Cellular Therapy<br /><br />Patient Information <br /><br />Patient: AmbulatorySeniorF Xxxcshs<br />DOB: 1/1/1947<br />MRN: 200270896<br />Date of Service: 4/15/2019<br /><br />History of Present Illness <br /><br />CC: <br />Referring Provider: <br /><br />AmbulatorySeniorF Xxxcshs is a 75 year old woman <br /><br />Subjective History: fever<br /><br />Review of Systems:<br />A 14-point review of systems was performed with pertinent positives/negatives noted in the interval history, all others negative.<br /><br />Hematologic History:<br /><br />Patient Active Problem List <br /> Diagnosis Date Noted <br />• Rheumatoid arthritis, seropositive (HCC) 08/30/2021 <br />• COVID-19 virus infection 04/13/2020 <br />• Sucked into jet engine 10/25/2019 <br />• Moral distress 11/28/2018 <br /> Overview Note: <br /> https://onlinelibrary.wiley.com/doi/pdf/10.1111/j.2044-8341.1926.tb00623.x<br /><br />• Sucked into jet engine 05/06/2017 <br /> Overview Note: <br /> https://www.youtube.com/watch?v=2Aldwlro4DA</CITE><br /><br />• Spacecraft collision injuring occupant 05/06/2017 <br /> Overview Note: <br /> Fell a really long way <br /><br />• Diabetes mellitus type 2, noninsulin dependent (HCC) 06/09/2016 <br /><br />Past Medical History: <br />Diagnosis Date <br />• Abnormal Pap smear of cervix <br />• Anxiety <br />• Breast asymmetry 11/05/2017 <br /> testing <br />• Depressive disorder, not elsewhere classified <br />• ERRONEOUS ENCOUNTER--DISREGARD <br />• Family history of diabetes mellitus <br />• Frail elderly <br />• Headache(784.0) <br />• Heelies colliding with stationary object 5/6/2017 <br />• History of anemia <br />• History of bilateral breast implants <br />• Known health problems: none <br />• Known health problems: none <br />• NO SIGNIFICANT MEDICAL PROBLEMS <br />• NO SIGNIFICANT MEDICAL PROBLEMS <br />• Pneumonia 4/18/2010 <br />• Rash of back <br />• Sleep apnea <br />• Type 2 diabetes mellitus with hyperosmolarity without coma (HCC) 6/9/2016 <br /><br />Past Surgical History: <br />Procedure Laterality Date <br />• HX COLOSTOMY CLOSURE <br />• HX LOW ANTERIOR RESECTION <br />• HX THYROID NODULE RESECTION <br />• HX THYROIDECTOMY <br />• HX TONSILLECTOMY <br />• PAST SURGICAL HISTORY - NONE REPORTED <br />• PAST SURGICAL HISTORY - NONE REPORTED <br />• PR CESAREAN DELIVERY ONLY <br />• PR LAP GASTRIC BYPASS/ROUX-EN-Y <br />• PR REMOVAL COLON/PROCTEC/ ILEOANAL ANAST <br />• PR REMV STOMACH,PART,DISTAL,GASTRODUOD <br />• WOUND OSTOMY EVAL AND TREAT <br /><br />Social History <br /><br />Tobacco Use <br />• Smoking status: Former Smoker <br /> Packs/day: 0.50 <br /> Types: Cigarettes <br /> Start date: 1999 <br /> Quit date: 06/2010 <br /> Years since quitting: 11.7 <br />• Smokeless tobacco: Not on file <br />Substance Use Topics <br />• Alcohol use: Yes <br /> Alcohol/week: 3.0 standard drinks <br /> Types: 3 Shots of liquor per week <br />• Drug use: Yes <br /> Types: Marijuana <br /><br />Family History <br />Problem Relation Age of Onset <br />• Frailty Mother <br />• Tuberculosis Brother <br />• Hypertension Paternal Aunt <br />• Prostate Cancer Paternal Aunt <br />• Colon Polyps Paternal Grandmother <br />• Breast Cancer Paternal Grandmother <br />• Diabetes Maternal Aunt <br />• Ovarian Cancer Paternal Uncle <br />• Heart Disease Other <br /> fathers side <br />• Coronary Artery Disease Other <br /> mothers side <br />• Obesity Other <br />• Thoracic Aneurysm Other <br />• Diverticulosis Other <br />• Degenerative Disc Disease Other <br />• Carotid Stenosis Other <br />• Other Family History Maternal Grandmother <br /> Fraility <br />• History of Fragility Fracture Sister <br /><br /><br />Medications <br /><br />Current Outpatient Medications <br />Medication Sig <br />• ibuprofen (MOTRIN) 600 mg tablet Take 600 mg by mouth 3 times daily. Take with food. <br />• PREDNISONE, BULK, MISC <br />• metFORMIN (GLUCOPHAGE) 500 mg tablet <br />• acetaminophen (TYLENOL) 325 mg oral tablet Take 1 tablet by mouth every 4 hours as needed. Do NOT exceed 3000 mg of acetaminophen from all sources per 24 hours. (Patient not taking: Reported on 11/5/2020) <br />• atorvastatin (LIPITOR) 10 mg oral tablet Take 1 tablet by mouth daily. <br />• gabapentin (NEURONTIN) 100 mg capsule Take 1 capsule by mouth nightly. May increase to three times at night as necessary and tolerated <br />• naproxen (NAPROSYN) 500 mg oral tablet Take 1 tablet by mouth 2 times daily as needed. Take with food. (Patient taking differently: Take 500 mg by mouth as needed. Take with food.) <br /><br />Objective <br /><br />Vitals: <br /> 10/21/19 1530 <br />BP: 120/80 <br />Pulse: 80 <br />Temp: 98.8 °F (37.1 °C) <br />TempSrc: Oral <br /><br />ECOG Score: <br /><br />Physical Exam:<br />Constitutional: Oriented to person, place, and time. Appears well-developed and well-nourished. <br />Head: Normocephalic, atraumatic, no visible abnormalities<br />Nose: Nares normal. Septum midline. Mucosa normal. No drainage.<br />Mouth/Throat: No oropharyngeal exudate or mucositis. <br />Eyes: EOM are normal. No scleral icterus. <br />Neck: Normal range of motion. No tracheal deviation present. <br />Cardiovascular: Normal rate and regular rhythm. No murmurs, rubs, or gallops.<br />Pulmonary: Breath sounds normal. No respiratory distress. No wheezing, rales, or rhonchi.<br />Abdominal: Soft and non-distended. Bowel sounds are normal. <br />Musculoskeletal: Normal range of motion. <br />Skin: Skin color, texture, turgor normal. No rashes or lesions<br />Extremities: No cyanosis, clubbing, or edema<br />Neurological: No focal neurologic deficits. Strength intact in all extremities<br />Psychiatric: Normal mood and affect. <br />Lymph: No palpable cervical, supraclavicular, axillary, or inguinal lymphadenopathy<br /><br />Laboratory Results <br /><br />No results found for: WBC, HGB, HCT, MCV, RDW, PLT, POLY, LYMPH, MONOS, EOS, BASO, ANC, ALC, MONOSABS, EOSABS, BASOABS, RBCMORPH, DIFFTYPE <br />Lab Results <br />Component Value Date <br /> Glucose 67 04/22/2020 <br /> Creatinine 2.8 (High) 06/10/2015 <br /> Urea Nitrogen 30 (High) 06/10/2015 <br /> Sodium 139 06/10/2015 <br /> Potassium 5.2 (High) 06/10/2015 <br /> Chloride 104 06/10/2015 <br /> Carbon Dioxide 6 (Low) 06/10/2015 <br /> ALT 50 (High) 06/10/2015 <br /> AST 76 (High) 06/10/2015 <br /> Alkaline Phosphatase 102 06/10/2015 <br /> Bilirubin, Total 1.9 (High) 06/10/2015 <br /> Total Protein 5.6 (Low) 06/10/2015 <br /> Albumin 3.5 06/10/2015 <br /> Calcium, Serum 4.6 (Low) 06/10/2015 <br /><br />Imaging Results <br /><br />Pathology <br /><br />Assessment and Plan <br /><br />Diagnoses and all orders for this visit:<br /><br />History of non-Hodgkin\'s lymphoma<br /><br />Chronic obstructive pulmonary disease, unspecified COPD type (HCC)<br /><br />Screening-pulmonary TB<br />- PPD TEST<br />- ECG<br /><br />Lower abdominal pain<br />- ECG<br />- PR ANOSCOPY DX W/COLLJ SPEC BR/WA SPX WHEN PRFRMD<br /><br />Pneumothorax, unspecified type<br /><br />Non-seasonal allergic rhinitis, unspecified trigger<br /><br /><br /><br />A total time of 44 minutes was spent on today\'s encounter which included the following: <br />Obtaining and/or reviewing separately obtained history<br />Performing a medically appropriate exam and/or evaluation <br />Counseling and educating a patient/family/caregiver as noted above <br />Referring and communicating with other healthcare professionals (not separately reported) <br />Independently interpreting results (not separately reported) and communicating results to the patient/family/caregiver<br /><br />Akil Abid Merchant, MD <br />3/7/2022<br />5:39 PM</span><br /><span style="">Electronically signed by Dr. Merchant at 03/07/2022 5:50 PM PST</span><br /></span></li><li>Alexis Rieber - 04/15/2019 9:30 AM PDT: <span id="Note26"><span><span style="">Formatting of this note might be different from the original.</span><br /><span style="">Images from the original note were not included.</span><br /><br />Physical Exam<br /><br />This is a very cute dog<br /><br />This dog is white cell then sa<br /><br />This is a 42-year-old patient with hypertension past medical 7</span><br /><span style="">Electronically signed by Alexis Rieber at 07/05/2022 1:57 PM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note25"><span><span style="">Formatting of this note might be different from the original.</span><br />Follow up Chronic Kidney Disease <br />Symptom symptoms one day daily <br /></span><br /><span style="">Electronically signed by Dr. Masson at 07/22/2022 11:08 AM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note24"><span><span style="">Formatting of this note might be different from the original.</span><br />In my canal I can dictate later that is not a good workflow if you doing<br /></span><br /><span style="">Electronically signed by Dr. Masson at 09/26/2022 10:59 AM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note23"><span><span style="">Formatting of this note might be different from the original.</span><br />Diagnoses and all orders for this visit:<br /><br />History of non-Hodgkin\'s lymphoma<br /><br />Chronic obstructive pulmonary disease, unspecified COPD type (HCC)<br /><br />Screening-pulmonary TB<br />- PPD TEST<br /><br />Lower abdominal pain<br /><br />Pneumothorax, unspecified type<br /><br />Non-seasonal allergic rhinitis, unspecified trigger<br /><br />Primary hypertension<br /><br />Ace inhibitor <br /><br /></span><br /><span style="">Electronically signed by Dr. Masson at 10/08/2022 6:20 PM PDT</span><br /></span></li><li>Dr. Masson - 04/15/2019 9:30 AM PDT: <span id="Note22"><span><span style="">Formatting of this note might be different from the original.</span><br /><br />..lastim<br /><br />No results found for this or any previous visit from the past 365 days 10 hours.<br /><br /></span><br /><span style="">Electronically signed by Dr. Masson at 04/14/2023 5:33 PM PDT</span><br /></span></li></ul>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0E1LBI" class="toggle" type="checkbox" /><label for="ID0E1LBI" class="lbl-toggle" data-loinc-code="18776-5">Plan of Treatment</label><div class="collapsible-content"><div class="content-inner"><p>Not on file</p>documented as of this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EJMBI" class="toggle" type="checkbox" /><label for="ID0EJMBI" class="lbl-toggle" data-loinc-code="61146-7">Goals</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col width="30%" /><col width="10%" /><col width="15%" /><col width="20%" /><col width="12%" /><col width="13%" /></colgroup><thead><tr><th>Goal</th><th>Patient Goal Type</th><th>Associated Problems</th><th>Recent Progress</th><th>Patient-Stated?</th><th>Author</th></tr></thead><tbody><tr style=""><td><p id="goal1">Hemoglobin A1C <= 7.0</p></td><td>Result Component</td><td /><td /><td>No</td><td>Dr. Masson</td></tr><tr style=""><td><p id="goal2">Hemoglobin A1C <= 7.0</p></td><td>Result Component</td><td>Diabetes mellitus type 2, noninsulin dependent</td><td /><td>No</td><td>Jeff Oostmeyer</td></tr><tr style=""><td style="" colspan="6"><p style="">Note: </p><span id="goal2note"><span style="">Formatting of this note might be different from the original.</span><br />Test</span><br /></td></tr><tr style=""><td><p id="goal3">LDL CALC <= 100</p></td><td>Result Component</td><td>Diabetes mellitus type 2, noninsulin dependent</td><td /><td>No</td><td>Jeff Oostmeyer</td></tr><tr style=""><td style="" colspan="6"><p style="">Note: </p><span id="goal3note"><span style="">Formatting of this note might be different from the original.</span><br />Test</span><br /></td></tr></tbody></table></div>documented as of this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EQVBI" class="toggle" type="checkbox" /><label for="ID0EQVBI" class="lbl-toggle" data-loinc-code="30954-2">Results</label><div class="collapsible-content"><div class="content-inner"><ul style=""><li id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Procedure">PPD TEST - Final result (04/15/2019 9:32 AM PDT): <div class="data-table"><table width="100%"><colgroup><col width="20%" /><col width="12%" /><col width="8%" /><col width="20%" /><col span="2" width="10%" /><col width="20%" /></colgroup><thead><tr><th>Component</th><th>Value</th><th>Ref Range</th><th>Test Method</th><th>Analysis Time</th><th>Performed At</th><th>Pathologist Signature</th></tr></thead><tbody><tr ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1" style="" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1"><td ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Name" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Name">Induration PPD</td><td>10</td><td>0 - 10 mm</td><td /><td /><td /><td ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Signature" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Comp1Signature" /></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col span="5" width="20%" /></colgroup><thead><tr><th>Specimen (Source)</th><th>Anatomical Location / Laterality</th><th>Collection Method / Volume</th><th>Collection Time</th><th>Received Time</th></tr></thead><tbody><tr style=""><td ID="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Specimen" id="Result.1.2.840.114350.1.13.202.2.7.2.798268.326239047.Specimen" /><td /><td /><td>04/15/2019 9:32 AM PDT</td><td /></tr></tbody></table></div><div class="data-table"><table width="100%"><thead><tr><th>Narrative</th></tr></thead><tbody><tr><td style=""><p /></td></tr></tbody></table></div><div class="data-table"><table width="100%"><colgroup><col width="20%" /><col width="80%" /></colgroup><thead><tr><th>Authorizing Provider</th><th>Result Type</th></tr></thead><tbody><tr><td>Dr. Gray</td><td>IMMUNIZATION ORDERABLES</td></tr></tbody></table></div></li></ul>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0E36BI" class="toggle" type="checkbox" /><label for="ID0E36BI" class="lbl-toggle" data-loinc-code="51848-0">Visit Diagnoses</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%"><colgroup><col width="100%" /></colgroup><thead><tr><th>Diagnosis</th></tr></thead><tbody><tr ID="vdx3" style="" id="vdx3"><td><p><span id="vdx3Name">History of non-Hodgkin\'s lymphoma</span><span> - Primary</span></p></td></tr><tr ID="vdx4" style="" id="vdx4"><td><p><span id="vdx4Name">Chronic obstructive pulmonary disease, unspecified COPD type (HCC)</span></p></td></tr><tr ID="vdx5" style="" id="vdx5"><td><p><span id="vdx5Name">Screening-pulmonary TB</span></p></td></tr><tr ID="vdx6" style="" id="vdx6"><td><p><span id="vdx6Name">Lower abdominal pain</span></p></td></tr><tr ID="vdx7" style="" id="vdx7"><td><p><span id="vdx7Name">Pneumothorax, unspecified type</span></p></td></tr><tr ID="vdx8" style="" id="vdx8"><td><p><span id="vdx8Name">Non-seasonal allergic rhinitis, unspecified trigger</span></p></td></tr><tr ID="vdx9" style="" id="vdx9"><td><p><span id="vdx9Name">Primary hypertension</span></p></td></tr><tr ID="vdx10" style="" id="vdx10"><td><p><span id="vdx10Name">Coronary artery disease involving native heart without angina pectoris, unspecified vessel or lesion type</span></p></td></tr><tr ID="vdx11" style="" id="vdx11"><td><p><span id="vdx11Name">Chronic sinusitis, unspecified location</span></p></td></tr></tbody></table></div>documented in this encounter</div></div></div><div class="wrap-collabsible"><input id="ID0EWCCI" class="toggle" type="checkbox" /><label for="ID0EWCCI" class="lbl-toggle" data-loinc-code="85847-2">Care Teams</label><div class="collapsible-content"><div class="content-inner"><div class="data-table"><table width="100%" ID="ct54" id="ct54"><colgroup><col span="3" width="25%" /><col width="13%" /><col width="12%" /></colgroup><thead><tr><th>Team Member</th><th>Relationship</th><th>Specialty</th><th>Start Date</th><th>End Date</th></tr></thead><tbody><tr style=""><td><p style="font-weight:bold;">Dr. Masson</p><p>NPI: 1326098302</p><p>310-248-7000 (Work)</p><p>310-248-7033 (Fax)</p></td><td>PCP - General</td><td>Family Medicine</td><td>3/15/18</td><td /></tr></tbody></table></div>documented as of this encounter</div></div></div><table class="header_table"><tbody><tr><td class="td_header_role_name"><span class="td_label"><b>Author:</b></span></td><td class="td_header_role_value">Epic - Version 10.3 - Epic - Version 10.3</td></tr><tr><td class="td_header_role_name"><span class="td_label" /></td><td class="td_header_role_value"><br /><br /></td></tr></tbody></table><table class="header_table"><tbody><tr><td class="td_header_role_name"><span class="td_label"><b>Legal Authenticator:</b></span></td><td class="td_header_role_value">Health Information Executive Director Cshs</td></tr><tr><td class="td_header_role_name"><span class="td_label" /></td><td class="td_header_role_value"><br /><br /></td></tr></tbody></table>Signed on May 29, 2023, 07:40:37</body></html>',Cwe="JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9UaXRsZSAoVW50aXRsZWQgZG9jdW1lbnQpCi9Qcm9kdWNlciAoU2tpYS9QREYgbTEyNSBHb29nbGUgRG9jcyBSZW5kZXJlcik+PgplbmRvYmoKMyAwIG9iago8PC9jYSAxCi9CTSAvTm9ybWFsPj4KZW5kb2JqCjUgMCBvYmoKPDwvRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDIwMT4+IHN0cmVhbQp4nI2OTWoDMQyF9zqFLhBFP5ZlQ8mi0Gad4hu0TaDQRdL7Q+wxmYEuSi1ji/fQpyfIvXbSn6iK799wBQpf1MffRcFRb0ecze0C+6Ph5QeGXySjsGe8fcIZTr8IoeN2Bi9SZ8xmYzw32L8mlER5nMB2BtlyUYpaJKxiG5CdGGmEJSvYPvCJ2eKA7QuCTHPNbn1mGqksRiFxEY6yGp7XiSLqmz5JL+3vTMZUncX/Ec0WYKUIz5x03aRzkzB5SRppC631keEEd14/VDIKZW5kc3RyZWFtCmVuZG9iagoyIDAgb2JqCjw8L1R5cGUgL1BhZ2UKL1Jlc291cmNlcyA8PC9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIgL0ltYWdlQyAvSW1hZ2VJXQovRXh0R1N0YXRlIDw8L0czIDMgMCBSPj4KL0ZvbnQgPDwvRjQgNCAwIFI+Pj4+Ci9NZWRpYUJveCBbMCAwIDYxMiA3OTJdCi9Db250ZW50cyA1IDAgUgovU3RydWN0UGFyZW50cyAwCi9QYXJlbnQgNiAwIFI+PgplbmRvYmoKNiAwIG9iago8PC9UeXBlIC9QYWdlcwovQ291bnQgMQovS2lkcyBbMiAwIFJdPj4KZW5kb2JqCjcgMCBvYmoKPDwvVHlwZSAvQ2F0YWxvZwovUGFnZXMgNiAwIFIKL1ZpZXdlclByZWZlcmVuY2VzIDw8L1R5cGUgL1ZpZXdlclByZWZlcmVuY2VzCi9EaXNwbGF5RG9jVGl0bGUgdHJ1ZT4+Pj4KZW5kb2JqCjggMCBvYmoKPDwvTGVuZ3RoMSAxNzk0OAovRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDg3MzY+PiBzdHJlYW0KeJztegl4VEXW9qm6vaXTne6EbJ100rfTSQfSYUuAsETS2QCN7IsJJpIAkbDJElRQlDAjChFFcRsZR9zFBe0sYhN1YEQddxh13AVEVJwRQUdxJfd7q7pD0qLf5F++5/99nqnKeetU1alTVeeeOre6O8SIqA9AR4PGlpWPYQvZHCKejNaRYydNnNo0+E9XESl21K8YO3V6ifnPxo1ELID6oIlTB+atHL7jKORFvXZG2fjKSZsXfEM0ZD1R7I1zFtctZQe4C/3T0F8956IV6p3Ot/5JZPgcNO38pfMWv7yqaguR1Y/6BfPqGpdSMkVBfyHk7fMWrTr/vsoz3ibqi/VYLmiYu3jlnnXfPY8FYz7Ttob6urkH45+DPnYQ8sMa0BCXH+VGHWukzIbFK1ZmbVKeJtKLNdcuWjKnrmhi4VTs50b0ty6uW7lU32ZtQt/ZqKsX1C2uT6od/AGMMQ5tZUuXNK7Qcuhm8ItE/9Ll9Uuz3hy/i8hZSRT9Z7QpZCJOscQ0DbywZSV9RYX0JzKi3U4DaQa0PQxZPeoKyaRlC52/kDDeOLpzApXa6YdHf7jELlsiUqVsMdMAZH3d8rrZpM5ZtXwRqfOW1y8ktaF+9nJSF9WtuIDUbp2kd2w58PDDY2fZCr8xpZpk810fZeeI8qVJo3b88OjJeXYyWVCNOjWjKC1hnmM3obZsZEb9kBnlIzMqQGY0Dplhr+eEx3NpG6L4sFXi4V+wKcVIexmojMbQJJpG9bQClqMe9UZN0z7qzqdZQFHWs+tgTZN+iz4fS0oNlcrf6HweZ9LzaIOOi6Sjn1lv/MQJE8mPmVboX++czPKNo1mrXzw4zK/z6p8QTxirDNm3hKpJkZbNDVlW2lTsQjw/DVK8B8968FjKwvrlkO2J4bUIOQ4LMEkWCq0xTmooQM84LY1mgIgS/q/m1+l1NuIX8nuhzKv/XVbqfj3rf2cokAY20kzxtHU4v7SAmsI8gzUvCvMcz78hzCt4Fn3DvK6HjJ5SIBXiDeCIimk5zac6WkTj4SEz4CPLqREtS0h4+VCchME0CP3jZcsSWkGraCmkVDqTFqN9HmQvAKrUH9StTaUpkJpHF4KvQ2tkrVvuAUjmYYbByCpW0CB1nz5bKWrLwQusQ3tohQPknIvC883HDA3oawzP3ih3cxFwLg0wnObs//8k/V/pdlHqPqJtvZKfEZLvShg36P90DbpGqvjfGkdUxEdQpr6DHKAU/f3k0HnxpiHtU9ARUXbO146IflHyf2BQMEyE/W5n82k77aKn2XGMepR2Ujs9T0mIJbfRarqRroKnzkTLBjzTKfDgMrqRObR2RP874cl30iuQPYcupw5KZMnaZ7SG1imvY9Q6slIGvGMSPOUadrZ2IaLOAd3vEQvOhucsZU1apXattlm7h+6lncrz2kmKxumYg/yK9oX+be19eHQ13US30gG2OeoxnKhzcO52Kn+CT21RanRMm6f9gBW46WKsQQeffYXt5j5or6dPWTJbrZRCy91aQHsGUk6qgW9uoQ42lI3lbn21Nl57hRIxx0povZVaaQdykJ6id5lFf1y7RztODsrFKVsDe7zKdiudJ9d2FomHDyv1oxHoWUJ/pr/SPuZhf+FL9BZ9nt6vv0R7AxFxME3Hau/HyE/Yt/xy5DXKc7oxWgnO/Dq6XlibnqUPWQobyCayGbwfX8JvV5YjcubKkzgXZ2kD/QHa9zMf28EtfK9yt+4h3Y+GtM6DWgyeiJf+iPfwX5gVO1VZI/sde5N9xEv5LP5Hfki5UfeA7jVjHXZ9HqLENfQQfcvi2HA2mZ3LGthqdhW7nt3KXmH72BFezKfxhfyY0qAsU57SlSBP1TXqfq+/Un+14UhnZecznX/r/FbL066kyfCHtVj9TfD+dvjJXnoH+QAdYnoWzWKQVeZm09mlyJeza9hdbBt7gLVjln3sEPuMfcW+YT9yBEpu4KnczTOQPXw5v5jfyG/je5H38c/590qSkqH4lKFKoVKlLMGqrlKuQ35M+VCXotur02DnPP3N+q36bfqH9E/rjxssxt+ZyPTyT3efzDm5v5M613fe3Nna2a59iLeDAz7lJBduLZMRt+oQu1fifnIv/Px1ZoHtUlgOG83OhmVmsQVsGVsJS17BtrB75dofYU/CSm+xY1izlTvlmgfwobyET0Q+j9fzZfw6vpm38zf5D4pRiVZsSoKSo4xVapR6ZYWySrlZCSgvKx8oh5QTyk/Ims6sc+kydF6dTzdWN0t3oe523ae6T/XV+pf0HxvMhsWGKw1Bw5fGYcbRxknGycYa4ybjDuMbplp45x56jB7vefbZQWWtUq48RtfyfJ2Dv8pfhT/PornKeA5P5dvYen4Za+eZ+pWGUXwUm0DHdV7Y+jm+lZ/go5TxrIJNpQV8cEibIV73IIpC3R46qnsSe3sVmlcaLOxyfsxgoVZcC0ZgzmeVQTqf8hK9qxxgRt2d9J7OzJLYUX6/Mgle8JRutL6S3Mpt9IiyjF1Gj/FyXDl+NG2EH09gDyIuTGN57DsFN0o+AV5UoHxEv6eF/G06inO8nm5hc3Xz6FrKZ6vpU7oPp6Kf/gJDjiGBvcDn65p5H9ZOXPcAdjeCZTJFH09XsBpli+EYfwdvt706M+1XHsbq9/JHlPG64/oprAEn4DK6kpZpa2mVvlL3GptHCptBWbqDiG6rlTydG+UaRJVqxLQdON0diAPFyni0JMNzzoZfTEeE2IL8B8QJHTxoPs74OYhir1K7YRoP0jx9DEPUQTR+qXMKzdTuo1u1eXSBtpn6Ix5cpa2Gxm30MW2ibWxd56V4j6bj5OxnZ+vH8L36MVp/3szf4VP5zZHPF9bOYsn0D+RHUBmNe1yz7i2aSkXaRu3v8O6+iLC30mw6iw5jl19ghnHKbsrvnMBbtDHKUuz3AE3W7tdczEwN2iKaSE/SvUY91Rl9eMYB9hr2eynV8ynaCqW+cz7ssAlW8MNaFyL+bPCXTp9W7C8afUbhqJEjhhcMHZKfN3jQwAH9c305/fpme7MyPRlu1ZWe5kxNcSQnJSbE94mLtdtirJZoc5TJaNDrFM4ot9wzplYNeGsDOq9n3Lj+ou6pQ0Ndj4bagIqmMZEyAbVWiqmRkn5Inv8zSX9I0n9KktnVQirsn6uWe9TAK2UeNchmTq4Ef02Zp0oNHJX8eMlfJ3kreLcbA9Ty5IYyNcBq1fLAmIsamstry6CuJdpc6imtN/fPpRZzNNhocIEkz9IWljSaSYYnlY9swQ3YikUFUjxl5QGHp0ysIKBkldfNDUyaXFlelup2V/XPDbDSOZ7ZAfKUBGw+KUKlcpqAoTRglNOo88Vu6Gq1JXd388agnWbX+ixzPXPrqisDSl2VmCPWh3nLAkmXHE7urkJ5XGnlVT17U5Xm8uT5qqg2N1+lBu6YXNmz1y2wqgo6MJZnjaltHoOpN8KIFVNVzMbXVVUG2DpMqYqdiF2F9lfvKRcttQvUQJSnxNPQvKAWjyalOUBTVrlbU1L8O7WDlFKuNk+r9LgDRameqroyZ0s8NU9Z1ebwq47Inv65LfbYkGFbYmxhxmLtydSf6pOcFBdcxZRTlmViRZ4z4RABdY6KlVR6sKfhAuqHU/Oc4RBDqmIYFZiLJzI/EFVa22wfKdrF+IA+y+5Rm78heIDn6OeRLXXhFkOW/RsSrPCTU66G/i4+4PMFcnKEixhL8UyxxtGyPrR/7kVB7vEstasoYD6aBNvWVY0cCPO73eIBXx3002xUAk2TK0N1lWantpJ/oK8qwGtFz+6unoTpoqepq+fU8FoPPLld3rgTAibvqT+bPbFPecPIAEv8b7rrQ/0VUz0Vk2dWquXNtWHbVkyLqIX6h5/qC3OBPqWVSioPczxVkb1wyupTwqJSaQnosvBnkE49N2g0wStlC1PHBOy140JYZXa7ezkoqB0Xo2TRPSy8zMBIX2R9VEQ9YnmWZgULxquyYtrM5mZzRB9cLTThmeECHk/TKt1qaYCm42Rm4S+o7R4uqCo14IfJSoUA/C/UFK5GCKaG+Sok4Z39c8cg0DU3j/GoY5prm+uCWtNsj2r3NO/kT/Onm5eW13Y5TlDruDo1MGZjFWzVwEbiUHAqafGw9ZNb/Gz91JmVO+345L9+WmUrZ7y0tqSqJRN9lTtVIr9s5aJVNIqKKipUwbDJVm6S8qk7/URNslcnG2R9TpCRbDN1tTGaE+ShNntXG0ebLtTml20iiRhTOq2yp/fII1nVX77wxHdz1dEmU+8+/BhxE+5KhjBFpMgGg0JkiYrqne6o8PdCIpnkXKdNHlGDbqvZ3Fvdph78v9eND3m26Oje6Y6m7g2aw/ojUqRtTdBtt1h+LvTLyULdG4z+Jd2RDUJ3rNX6P6a7T0xM73THUPcGrUR02nYjbWvWIzDa7b3TbaPuDcb8ku7Ihmi4ZHJcXO90x0J7V7KH9UekSNta4Dap8fG90x0P7d3zhPRHJFtELQZuk5aY2DvdCdS9wT5hikiRk9mgW01O7p3uJOreYMIv6Y6NqNnhNm6Ho3e6k3voTgzr/290x0J3ltPZO92pWHlXEstJ+rlA5HOLw2nIUdXe6U7Hp9yuJJaT8nOByMni4ZIDPJ7e6XZT9wZdYf0RKXKyJLhkntfbO92ZUmPXPNSjFk6Rkzng/8P69eud7mypsWse6lELp/SIWircfWRubu9051C38bLD+iOSGlFLg7uX5uX1Tvcg6t6geCeett2siFoG/L9i+PDe6R5GA07xeWH9ESknouaF/08dPbp3ugsp/xQvvjMf8nOBARG1HLhkdXl573SXUPcGzwCN+LlAfkRtAFxybkUvv04dJzWGUinotO1G2jYPLrmTpil927zJrn1PKv3oIIgr/Vp9aa6dSraS1jrK5Q8qnra4hDxbcX9Fxd1ooEQVuAT0KGiXIn6PmaWko90OXANqAj0K2gXaB8KbAih6VdAS0FbQQdGjpCnOVtVlL85WHBjrwF3LpiTRMZAGUsgFHAiaCJoF2gTaCjJIOdGyBLQGtAt0XPb4laTWzflYe1Lr1bJoW7AoT1brQtXqGlltO6cqVI6fHCrLzgyJjQyJDR4Sah5QEiqzc0NlXFZekyjN1rzdxYlKIjaZiIUvBTL+DNkYQwC4Q0mgAIgrhnCLX4lry/Tmbd2l6IgpXGE0l1zaboW1WmPzis1c48fwunHxL/jRUA8/2hYTm7e1+Cx+iB4F7QIp/BDyh/xDWsMPCpsDi0BbQbtAe0HHQAZ+EPkA8n6+n2z8AxoIKgLNAm0F7QIdAxn5B0A7f198jpIo+CIQ5+8D7fw9bOs9oI2/C+5d/i6W9nprwYi8nZLxDQwzrqwwk5QaZuIS84L8tdbv+8GjvHjS8KgnlAy4Zr6S0Zo12BVUklsL57uC/KM21ee6o3gQf4MCII6VvIGZ3yAVNAlUC1oKMoB7E9yb1AS6DnQHKACClwHtIJW/CHoZ9CYNAvlBk0Amvq8V0wT53lZvias4kb/K/4o3iou/wp+X5cv8OVm+xJ+V5Qso01G+yJ9rTXdRcTT6CWPsKO0oB6Jfz//Slhnn0opj+S7YzgUcCCoCTQTNAm0CGfguntE61xUHJU/Qi7gouHgrfSbL++guE/kXuPzeUjigKsA78gxwgK3qVi/3e2++FVUB3ms3gxPgvWIjOAHeS9aCE+BddBE4Ad65C8AJ8M6cBU6Ad+I0cIAgv/3xzGxXwcSFTC228YthpYthpYthpYtJxy8Wmb7XibX9sTUnBxbb4vf1y3E1dbCmJ1nTFNZ0F2uqZ02Xs6a1rKmQNZ3Hmnysycma0lmTnzU9wYbDFE3M3x5RHeFPZk0vsqbtrKmRNXlZUxZrymRNKivwB7m79cx8WZTLoq1YHDqUZ4xG9LFxNyzqhs+7ERN2AfeCNFnzQ0jNCAk70kWZ0ZZTFKoPGJm3pHgc34OBe/AY9tABkA4PaA/caA+U7IECG7AINAu0G3QMpIEMkM7AwjdJtAEHgopAs0BrQMdABrmcYyBOS8JLfFQubGB40RNFje9BFj8UuLnbn2Z32n32ccomJ7Ols4npWjovIHknjYs1xQaZdce31u++tVJUcRS/lm+iNDyI68Llptbv01xB9odW7xOu4gR2C6Xr4HVsBHlZFsrh1CjrQ8lpEuUQcvKHUOa1OmdgmK3Vm+vqYDFi1A7X987Drs+cQQ72iPMJ11tqUMdaXX9Hy0M7XG84N7heGBg0oeVJb5Ch6FCl6E7ncNf2F6XoWnRsaXVdLoodrsucY10LnbKjPtRxXiNqfptrinemaxz0lTlnu/yN0LnDVeQ8z1UYkhoqxuxwDcISfCE2B4vt55STetKlwukFQdbgzzXebKw0TjQOM+YZc41uo8uYZkw1xpviTHZTjMliMptMJoNJZ+ImMsUHtYN+n/jtPt4g/0nDoJM/7kvezkn+e4D8yZ8zE6ezKNBHqeAVU0tYRWD3HKqYrQZOTPUEmXnyzIDeU8ICcRVUMa0kMNxXETRqUwIFvoqAcdK5lS2MXVuF1gBfH2Q0rTLINNG0LlV8f7mTGItdd02qKPuuu6aqipITLypKLoobHTtiTNkvQG0Yfd0pOYJPC9xcMbUy8GBaVSBPMFpaVUXgBvEF5072FTteXraTfSmKqsqdymj2VfkU0a6MLquqqgiyGVKOVPYl5OAxX0o5E17MQo5UU3pIbktILgvjIZcpCshFRVGWlMuKipJyOibkWhozy8taMjOlTJJKjVKmMUntKfNiFmSysqRMYhO9KGVeTGwSMoHRUsTphEi6U4qwFHJKESdLkSIzukUGhkU2nBLZIGdSWLeMMyRjPdglYz0IGV9vU32Jz8faRlXNqRZfDtd6yutBtYGrL2pIDjTNVtWWOVXhb429tbPnNIiyrj5Q5akvC8zxlKkto6p/obtadI/ylLXgvjitsqXaX1/WOso/qtxTV1bVNnbSkIKIuTacmmvIpF9QNkkoGyLmGlvwC90FonusmKtAzFUg5hrrHyvnIunjkypbTFRSVVodKtt4tBn+WpvqripJtC8dLZ13lDv58tQO3Fa2UbSvKmDxlASsINHVv7h/sejCmRJdMeIXgHBX8uWj3KkdbFu4y47mWE8J+VZc2HghJZfPLwv9NSKhacWFwuAh9DX+WkJfecBfV9a4Ap8SAjlTKwJFk2dWthiNaK0VWwqM7GqLji4PartDjQPQOFI0KsopQdFWKNqiosKCpz//C8NlqTgFTfyJNuZPZyuosUoJpFdM4wgF08JftXbgLiVeD41V2GAj87HGLh3hZft8FKqT2HMXrbgwzIVtsSJchkZiSGOXSU4lYSzfKYutgEIRuUj8kK8X/8dlxEfDWHdsFkD8C9NPqrL7J7+efiRVt1v8r9ftkJyp7yAbpTGHP051sVKTMy2dMx5rT7eRKSmodbZbLCXTwXzVHh0tmRP+DIsVnFeNYi6/1cqnR6l2O9BsswGTZUtQ+9qfbbEYpkeluNLsMWKo3WzFMLtF6LOrTH5qEOMIKtvFUMmI0WB+wLSS+bZdaAHznR/jwdWkj6pO9tlPhCxQU3gSWBiu1hwVRi0qPFkoaPCg0lX+YUqqEfFfjzeAzuBITknmhmizxWw1K4aExPjEPomKIVVJcrO4GECyyelmieZYN54P8/lykNaymvxYd15SYlJiXEI8j+GeLHfesIJhw4YO8WZ7Pe7b2fcPzby8akXjhEuuf2VdZwsbcf29g8vH37JowvbOl/UdCWlnz+7c+8z9nZ0P1OVtHza4/LP7Pvk2R3wy2kakWwfbR9Fd/jMM+nSTaZORGY2k6IT9yWS8TeVqNOcp0booLmwWJa0YZRbGj/q39vNHSwNaoqOl9Tq7zHi8y4xmYcYJ9q99XYYcLy05wX6iZvxhKhIGjBsxsKbQLgwJEyS4JW1TPvjpYx44OUnfsb1z5PaT54f9SHcSe7FSMh33p9fHLoznFfaK+HPt58broi3ptpgYSkoO7Suuy6fiunwKzHc7hG/EeU3CvWIFbzKLnZjsYv0m4U39xQZMKWoKw19KslXaxCptYpU2sf6v2uSH02zi6OlaXb41wb6sRjaND3lX2DLSwVgNhdwjncM53O5Y8Kc8g/fbPH7R5qovOl/oXM8uffL2mrMHX9G5Qd8RE1e/Y/ETnSdPPqywjWuqf59gFVeOQbBhB2xopP1+h0HuzijRYBR7NEpkQe17aTOs+nt/rOAMerF5o0R0/9guGHT/6I8VnJ6n6xThTga9LirIG9tUHdPhFvW4QWV8oMIU8I8xabmgdsQfLa1nCpvuq65TeKjLhj912ayzXZpMaDTtuLXngbR/LZzmcM0n9kJ7YchcMFR30IIfDRWexPt0pumaO1P11u3bf/gXvKhCO6JL142mBESj2/1JLnIm8OlKjb4manp0vbJQvySqPtqUENQOy6ljwfinCC7NKTA77h39D/EnUnSD40Y6BjuL48anFDsnx1U7pjjr4han1DlXGlYmnOAnku2UyGzWpKRJibWJS/FR3Wm7zn6HndvtulSn2Ugd/EFi2u52YQjYc7c/xm43TLczxm7q49RFIwAePy0khtw3yW8Nau9LS4H5Qq4SzD+kyaxCVVR2zpCAlVlTXKi1ZXmHiPLxdM+QQS7mSoR1/dVCUWK+3SSjZChummTczDT6M3OGuIxFuOsqRhlFjRbRY1Sjo/l0Y7J4VEanmN0YIzzc6BTzGhPFMoyO9CEFPY+7r8Ynz/thtC3z+U4s6+HgR0/WoKPoqDz+J5cVsti4ESPiRoS8HRJs2XKWZDB4MijWTvl5FBtvdCcm5ucNY27h+BkG5byO3C92ftZ5jMW//3cWw346Ym5dN2fjyXf5ZMvwGRtWP8BmJN3dzlxMYRbWt3N/5/d29dGOBnbTlaUN94mzUKQdUVrgCYOUFn+fJGmFZIkOiX0RD+QzyO5ivF1MVheT2cV4upiMLsbdxagirqwRnC4jPmNk1FlRZZkzMuozVkddG3VF5n19Hsp9WrFGJaUkJw2qyH0zSZ/Kp3Nuz2Pm5GpTdVS1uTq62lJtXWBaELXAvCB6gWWBtd3bnm3L9mZmZ/YbljnTXBU91zu37wrPisymzBvMt1k2970l96ZB95gfsNydfU/fNu+z3kS5F/GIMroYTxeT2cWE92vo2oKha1OGrm3iEAS1/f649BEzTdlZFrMuRfUm6KIHpKUE+YP+DEeucBGXo8gx0THL8ahjr8Ngc7gcSxwHHDqXY5ODO57C6U5AKJe+748X4nbmZ9zO9iFoMzvj4iy0xScOkWfCHhM7hLEB1WmL0niaM8GoE8sQg8B80i4OjGD8fWw2cM4B0S6E7EyHv0/ykDwxfKiIL47kEAqPdSQK73WoYqRDFaMcdrErh/Re0Ytn38HPJaP21Q4ZDjNzoOgx54h9OSxHzCnGgzkio75kxPgccfyECjBf7xBaclLkCtw4ibV5u/N4UV5THs8TxzuT5FLILgObGjI+l04idyS9xSXWpkovVDNtdrFlm1y7TRXCNvGW8Yol2GLE/DaLUGYziJltGQeIFdFERDrH4PBprFk2vutEirPns6NcPsFes8wXCqfLxJn8ujt2Hl2O44my6OgynE6c4mXLfYftJ2WBU4o/HNakEfLm48/un+7Rx+d6Y+1x9j52xZBhVVMpqq8xlen7A9LjUXXHeFIpw2O1mPqZU1nf7CizwadLJZc9LZXhEiRCeAhkAM/xrV27lk6tpmYZq1m+rKa7QQj1KZCxYOiQbG/2AD50iLgr5eclJiYZvSI2JMSLq5R8X4oQ4i1qtW24dPXKoVk3PHfrxOLhOddPveypmbEBS+P81QsSEwemXrHrlhnzn7ts7zvsDOfC5fVlZ3iSs/LOXDth7Kq+Lt+4S+clT6meUuBxpvUxZ+YXr66eufWch0UEydS+4jn6WymJuXaSJXzjiO66epi6GGMXY+hizMLNPd4hUcJLpoJpcjBiFquZKZRoj/LZzIZEpxJts2dQBrPGydgcJ/0hzixvNVkWphlN5VHltcalxibjdUYdGVXjHcaAcbdxn9FgFG8G8W4xCr8SnmIUL5KYGMl8J11OMjKci0uK8D2juKREC98zGmRUFw4uA3sHX0DJbFjL+T0uLuLJfH3YfjR8Nz78NV7DR8V7OBZhPDY/3/6CiOVh0awk8Ri8Q2M9Q/NjC2LzEzyx8eIJcnvK2YWzF+VecUXbY4/18fVNv3OrfXT9XXzORmZc1HnNxpM3jM8N/TymkMJE0isKwgSjZP3n0bvpO5NGJjJpnbjhRmknyUxm+X/Q0UALHslJ3BatwBiJNooB2skGjAX+RHEUC+xDccB46gNMAP5IiRQPTKIEYDLwB3JQEvgUcoBPpRSgU2IapQLTyal9Ty6JKqUB3eQCZpAK9AC/o0xyA7MoA+gFfkvZ5AH2hR99S/3IC8yR6KNs7QTlUl9gf4kDKAc4kHzAQdQfOBj4DeXRAGA+DQQOoUHa1zRU4jAaDCygfOBwGqL9i0ZIHElDgaMkFtIw4BlUABxNw4FFNEL7ivw0ElhMo4AlVAgsBX5JZXQGsJxGA8fg7XmcxpIfOI6KgWdSCfAsiRVUCjybyoDjaYx2jCZInEhjgZNoHHAynal9QVMkTqWzgNNwNztK02k8cIbEc2gCsJImap9TFU0CzgQepXNpMvhqmgqsoWnA8yTOounaP6mWZgDr6BzgbOA/aA5VAefSTGA9nQs8n6q1z2iexAaqAc6n87QjtIBqwS+UuIjqgItpNtovoDnAJRKX0lztU1pG9cDlNA/YKHEFNWif0IU0H3gRLQBeDPyYVtJC4CpaDLyELgBeKnE1LQFeRkuBl9My7TCtkdhEjcC1tAL4O7pQE//fexHwConr6GLtEF1JK4FX0SrgeroEuIEu1T6kZloNvJouQ8tG4Id0DV0OvJbWADfRWuB1wIN0Pf0OuJl+D7yBrtAO0I0Sb6J1wJvpKuAttB69fwAeoFtpA3ALNWv76Y90NfA22gj8k8Tb6VrgVtoEvIOuA94J/IDuouuBd9Nm4D10A/BeulF7n+6jm7T36H66GbiNbgE+IPFB+gPwIboV+DD9Ebhd4iN0G/BR+hMwQLcDW4DvUittBbbRHcB2ukt7hx6ju7W3aYfEx+keYJDuBe6k+4AdEp+gbcAn6QHtLXqKHgT+WeIuegi4mx4G/oW2A5+mR4B76FHtTXqGAsBnqUX7Oz0n8a/UCnye2rQ36AVqB75IjwFfoh3Al+lx4Cv4GPMGvUo7gXsl7qMO4N/oSeBr9JT2Or0OfI3eoD8D/067gG/Sbu1v9JbEt+lp4Du0B/guPQN8T+L79CzwA3oOuJ/+qu2jAxIP0gvaXvqQXgQeopeAH0k8TC8DP6ZXgJ/Qq8BPaZ/2Kh2R+Bn9DfgPek17hf5JrwM/l3iU3gB+QW9qL9Mxegt4XOKX9DbwK3oH+C96F/i1xG/ofe0lOkEfAL+l/cDvgC/S93QA+AMdBP5IHwJ/kniSPtJeoE46DNToY+B/Yvr/fEz/8jce0//Z65j+2a/E9M9Oi+lHfiWmf3paTP+kFzH98KmYvjwipn/0KzH9IxnTPzotph+SMf1Qj5h+SMb0QzKmH+oR0z88LaYflDH9oIzpB3+DMf2d/0cx/Y3/xPT/xPTfXEz/rd/Tf7sx/dfu6f+J6f+J6b8c05//7cf0/wK993M1CmVuZHN0cmVhbQplbmRvYmoKOSAwIG9iago8PC9UeXBlIC9Gb250RGVzY3JpcHRvcgovRm9udE5hbWUgL0FBQUFBQStBcmlhbE1UCi9GbGFncyA0Ci9Bc2NlbnQgOTA1LjI3MzQ0Ci9EZXNjZW50IC0yMTEuOTE0MDYKL1N0ZW1WIDQ1Ljg5ODQzOAovQ2FwSGVpZ2h0IDcxNS44MjAzMQovSXRhbGljQW5nbGUgMAovRm9udEJCb3ggWy02NjQuNTUwNzggLTMyNC43MDcwMyAyMDAwIDEwMDUuODU5MzhdCi9Gb250RmlsZTIgOCAwIFI+PgplbmRvYmoKMTAgMCBvYmoKPDwvVHlwZSAvRm9udAovRm9udERlc2NyaXB0b3IgOSAwIFIKL0Jhc2VGb250IC9BQUFBQUErQXJpYWxNVAovU3VidHlwZSAvQ0lERm9udFR5cGUyCi9DSURUb0dJRE1hcCAvSWRlbnRpdHkKL0NJRFN5c3RlbUluZm8gPDwvUmVnaXN0cnkgKEFkb2JlKQovT3JkZXJpbmcgKElkZW50aXR5KQovU3VwcGxlbWVudCAwPj4KL1cgWzAgWzc1MF0gMzkgWzcyMi4xNjc5NyAwIDYxMC44Mzk4NF0gNTEgWzY2Ni45OTIxOSAwIDAgMCA2MTAuODM5ODRdIDcyIFs1NTYuMTUyMzRdIDg3IFsyNzcuODMyMDNdXQovRFcgNTAwPj4KZW5kb2JqCjExIDAgb2JqCjw8L0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCAyNjU+PiBzdHJlYW0KeJxdkctqxDAMRff+Ci2niyHvTAdCoEwpZNEHTfsBjq2khsY2jrPI39ePNIUKbDjoXlmSk1v32ElhIXkzivVoYRSSG1zUahjCgJOQJMuBC2Z3CjebqSaJM/fbYnHu5KhI0wAk7y67WLPB6YGrAe9I8mo4GiEnOH3eesf9qvU3zigtpKRtgePoKj1T/UJnhCTYzh13eWG3s/P8KT42jZAHzmI3THFcNGVoqJyQNKmLFponFy1Byf/lq+gaRvZFjVfnF6dO07JsA10j1YGKIlCVRorKKirL+0B1FV7Z62W/1Y9mqjqaovdS7OqY9+35NR6zs9UYN3bYdZjXTyokHt+hlfYuf34A/WeHbwplbmRzdHJlYW0KZW5kb2JqCjQgMCBvYmoKPDwvVHlwZSAvRm9udAovU3VidHlwZSAvVHlwZTAKL0Jhc2VGb250IC9BQUFBQUErQXJpYWxNVAovRW5jb2RpbmcgL0lkZW50aXR5LUgKL0Rlc2NlbmRhbnRGb250cyBbMTAgMCBSXQovVG9Vbmljb2RlIDExIDAgUj4+CmVuZG9iagp4cmVmCjAgMTIKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDE1IDAwMDAwIG4gCjAwMDAwMDA0MTYgMDAwMDAgbiAKMDAwMDAwMDEwOCAwMDAwMCBuIAowMDAwMDEwNDk1IDAwMDAwIG4gCjAwMDAwMDAxNDUgMDAwMDAgbiAKMDAwMDAwMDYyNCAwMDAwMCBuIAowMDAwMDAwNjc5IDAwMDAwIG4gCjAwMDAwMDA3OTYgMDAwMDAgbiAKMDAwMDAwOTYxOCAwMDAwMCBuIAowMDAwMDA5ODUyIDAwMDAwIG4gCjAwMDAwMTAxNTkgMDAwMDAgbiAKdHJhaWxlcgo8PC9TaXplIDEyCi9Sb290IDcgMCBSCi9JbmZvIDEgMCBSPj4Kc3RhcnR4cmVmCjEwNjM0CiUlRU9GCg==";function Owe(e){let[a,n]=c(null);l((()=>{if("html"!=e.previewState)if("pdf"!=e.previewState){var t=new URLSearchParams({ReportID:e.reportId}).toString();b.invokeCustomApi("HealthAndWellnessApi.DownloadReport","GET",t,!0).then((function(e){n(e)}))}else n({Type:"ResearchKitConsentDocument",Summary:eo("summary"),Content:Cwe,ContentType:"application/pdf"});else n({Type:eo("subsequent-evaluation-note"),Summary:eo("summary"),Content:_we,ContentType:"text/html"})}),[]);let r="";return a&&(r=a.Type,a.Summary&&(r+=" • "+a.Summary)),t.createElement(Wa,{className:"mdhui-report-view",colorScheme:e.colorScheme},t.createElement(Ufe,{subtitle:r,variant:"compressedModal",showCloseButton:!0}),!a&&t.createElement(ZA,null),a&&t.createElement(Ewe,{type:a.Type,content:a.Content,contentType:a.ContentType}))}function Pwe(e){return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(Ufe,{variant:"compressed",showCloseButton:!0},t.createElement(iM,{order:1},e.title)),t.createElement(Qfe,{previewState:e.previewState,resources:e.resources,onViewResource:t=>{e.previewState||b.openEmbeddedUrl(t.url)},emptyText:e.emptyText,imageAlignment:e.resourceImageAlignment,buttonVariant:e.resourceButtonVariant,buttonText:e.resourceButtonText}))}function Twe(e){return t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:"Push"==e.presentation,showCloseButton:"Modal"==e.presentation}),t.createElement(jfe,{previewState:e.previewState,term:e.term,labObservationID:e.labObservationID,openLinksInNewWindow:e.openLinksInNewWindow}))}function Mwe(e){let[a,n]=t.useState([{key:"Dashboard"}]);function r(e){n([...a,e])}function i(e){r({key:"TermInformation",properties:{term:{TermFamily:e.TermFamily,TermNamespace:e.TermNamespace,TermCode:e.TermCode}}})}function o(){r({key:"ExternalAccounts"})}function s(){n(a.slice(0,a.length-1)),2==a.length&&b.triggerEvent({type:"applicationDidBecomeVisible"})}function l(a){return t.createElement(wge,{concept:a,onClick:()=>function(e){r("Reports"==e||"Immunizations"==e||"Procedures"==e?{key:"NewsFeed",properties:{feed:e}}:{key:e})}(a),previewState:"default"==e.previewState?"Default":void 0})}function c(s){if("Dashboard"==s.key)return t.createElement(Wa,{colorScheme:e.colorScheme??"auto"},t.createElement(yde,{previewState:"default"==e.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"],triggerWebExternalAccountSyncComplete:!0}),t.createElement(Jfe,{noTopMargin:!0},t.createElement(hde,{previewState:"default"==e.previewState?"externalAccountWithIssue":void 0,externalAccountCategories:["Provider","Health Plan"],onClick:()=>o()}),t.createElement(bde,{excludeDeviceManufacturers:!0,onClick:()=>o(),previewState:"default"==e.previewState?"Default":void 0}),t.createElement(Kge,{onViewTermInfo:e=>i(e),onClick:()=>{r({key:"NewsFeed",properties:{feed:"LabReports"}})},previewState:"default"==e.previewState?"ImportantLabs":void 0}),t.createElement(Uge,{previewState:"default"==e.previewState?"BloodTypeLabs":void 0,onClick:()=>function(){let e="https://medlineplus.gov/ency/article/003345.htm";b.getCurrentLanguage().toLowerCase().startsWith("es")&&(e="https://medlineplus.gov/spanish/ency/article/003345.htm"),window.open(e,"_blank")}()}),l("Medications"),l("Immunizations"),l("Reports"),l("Allergies"),l("Conditions"),l("Procedures")),t.createElement(eS,null,t.createElement(DV,{previewState:"default"==e.previewState?"enabled":void 0,variant:"small",hideWhenConnected:!0,onClick:()=>r({key:"ConnectEhr"})})));if("NewsFeed"==s.key)return t.createElement(lwe,{feed:s.properties?.feed,previewState:e.previewState,presentation:"Push",colorScheme:e.colorScheme,onEventSelected:e=>{n([...a,{key:"NewsFeedEventDetail",properties:{eventReference:e}}])},onReportSelected:e=>{r({key:"ReportDetail",properties:{reportID:e}})}});if("NewsFeedEventDetail"==s.key){let a,n=s.properties?.eventReference,i=n.feed;return e.previewState&&("Procedures"==i&&(a="ProcedureGroup"),"LabReports"==i&&(a="LabReport")),t.createElement(cwe,{feed:n.feed,presentation:"Push",pageDate:n.pageDate,pageId:n.pageId,onViewLabObservationTermInfo:e=>{r({key:"TermInformation",properties:{labObservationID:e}})},previewState:a})}return"TermInformation"==s.key?t.createElement(Twe,{presentation:"Modal",openLinksInNewWindow:!0,previewState:e.previewState,term:s.properties?.term,labObservationID:s.properties?.labObservationID}):"Medications"==s.key?t.createElement(fwe,{presentation:"Push",previewState:e.previewState,onViewTermInfo:e=>i(e)}):"Conditions"==s.key?t.createElement(ewe,{presentation:"Push",previewState:e.previewState,onViewTermInfo:e=>i(e)}):"Allergies"==s.key?t.createElement(Xbe,{presentation:"Push",previewState:e.previewState,onViewTermInfo:e=>i(e)}):"ReportDetail"==s.key?t.createElement(Owe,{previewState:"default"==e.previewState?"html":void 0,reportId:s.properties?.reportId}):"ExternalAccounts"==s.key?t.createElement(uwe,{presentation:"Push",excludeDeviceManufacturers:!0,colorScheme:e.colorScheme,previewState:e.previewState,connectExternalAccountOptions:e.connectExternalAccountOptions}):"ConnectEhr"==s.key?t.createElement(Wa,{colorScheme:e.colorScheme},t.createElement(Ufe,{showBackButton:!0}),t.createElement(Jfe,null,t.createElement(ffe,{providerCategories:["Provider","Health Plan"],connectExternalAccountOptions:e.connectExternalAccountOptions}))):void 0}return b.back=s,b.dismiss=s,t.createElement(t.Fragment,null,a.map(((e,n)=>t.createElement("div",{key:e.key,style:{display:n!=a.length-1?"none":void 0}},c(e)))))}w(".mdhui-report-view {\n height: calc(100dvh - 8px);\n display: flex;\n flex-direction: column;\n}\n\n.mdhui-report-view .mdhui-report-content {\n flex-grow: 1;\n}");export{Bq as AIAssistant,$a as Action,Ga as ActivityMeter,qq as AllergiesList,Xbe as AllergiesView,Gq as AppDownload,Yq as AppleHealthRecordsSync,sve as AsthmaActionPlanManager,Dve as AsthmaActionPlanView,Ive as AsthmaActivityView,cve as AsthmaAirQualities,Nve as AsthmaAirQualityView,uve as AsthmaAlertTakeoverNotice,dve as AsthmaAlertTakeoverTrigger,jve as AsthmaAlertTakeoverView,hve as AsthmaBiometrics,fve as AsthmaControlCalendar,wve as AsthmaControlStatusHeader,Fye as AsthmaDailyDataType,zve as AsthmaDayView,Rve as AsthmaHeartAndLungsView,Ave as AsthmaLogEntryDetails,Bve as AsthmaLogEntryEditorView,Cve as AsthmaLogEntryHeader,vye as AsthmaParticipant,Ove as AsthmaPostEnrollmentSurveyTrigger,Tve as AsthmaProviderReport,Hve as AsthmaProviderReportView,Mve as AsthmaRecommendedArticle,qve as AsthmaSleepView,GA as BasicBadge,Jq as BasicBadges,Xq as BasicPointsForBadges,Jbe as BlankView,KA as BloodPressureReading,aV as BloodPressureVisualization,YA as Button,QA as Calendar,XA as CalendarDay,eS as Card,tS as CardTitle,lbe as CelebrationStep,cbe as CelebrationStepContainer,tM as Chat,nV as ConditionsList,ewe as ConditionsView,ube as ConnectDeviceAccountStep,dbe as ConnectDeviceAccountStepContainer,AV as ConnectDevicesMenu,twe as ConnectDevicesView,TV as ConnectDexcom,DV as ConnectEhr,mbe as ConnectEhrStep,hbe as ConnectEhrStepContainer,awe as ConnectEhrView,IV as ConnectFitbit,NV as ConnectGarmin,jV as ConnectOura,xA as CustomFieldIntegerValueProvider,zue as DailyDataChart,Rue as DailyDataGoal,Li as DailyDataType,nM as DateRangeContext,rM as DateRangeCoordinator,aM as DateRangeNavigator,sM as DateRangeTitle,lM as DayTrackerSymbol,AA as DaysWithDataValueProvider,nwe as DeviceActivityView,Fue as DeviceDataMonthChart,Bue as DeviceDataMonthCharts,rwe as DeviceDataView,cM as DiscreteScale,uM as Divider,iwe as DocumentDetailView,Hue as DocumentLibraryPreview,owe as DocumentLibraryView,hM as DumbbellChart,ide as EhrNewsFeed,sde as EhrNewsFeedEventDetail,cwe as EhrNewsFeedEventDetailView,lwe as EhrNewsFeedView,hde as ExternalAccountConnectionAlert,gde as ExternalAccountList,yde as ExternalAccountsLoadingIndicator,bde as ExternalAccountsPreview,uwe as ExternalAccountsView,bM as Face,Ede as FitbitDevices,Cde as FitbitMonthCharts,dwe as FitbitView,Pde as GarminDevices,Tde as GarminMonthCharts,mwe as GarminView,Mde as GlucoseChart,Ide as GlucoseContext,Nde as GlucoseDayCoordinator,wM as GlucoseStats,gge as Goal,AM as Grid,pwe as HealthAndWellnessView,fge as HealthConnectPhrSync,wge as HealthPreviewSection,SM as Histogram,hwe as HomeView,pye as InboxCompletedListItem,Swe as InboxHistoryView,Cge as InboxItemList,Age as InboxItemListCoordinator,gye as InboxMessageListItem,Sge as InboxMessageView,fye as InboxResourceListItem,yye as InboxSurveyListItem,xwe as InboxView,Mge as InsightMatrix,Fge as IntradayHeartRateChart,Uge as LabResultsBloodType,Kge as LabResultsSummary,Yge as LatestBloodPressureReading,Wa as Layout,Ua as LayoutContext,ZA as LoadingIndicator,Ffe as MealButtons,Xge as MealContext,Jge as MealCoordinator,afe as MealEditor,gwe as MealEditorView,qfe as MealLog,nfe as MedicationsList,fwe as MedicationsView,ofe as MicroTrend,Vfe as MonthlyEventMatrix,cfe as MostRecentNotification,vA as MyDataHelpsTools,Ufe as NavigationBar,bwe as NewBadgeView,wwe as NewPointsView,LA as NotEnteredThreshold,Wfe as NotesInput,dfe as NotificationList,ywe as NotificationsView,Vq as PlatformSpecificContent,$fe as ProgressBar,Gfe as ProgressBarStep,Kfe as ProgressRing,mfe as ProjectHeader,hfe as ProjectSupport,ffe as ProviderSearch,kA as RandomIntegerValueProvider,yfe as RecentDailyDataBarChart,kfe as RelativeActivity,bfe as RelativeActivityDayCoordinator,xfe as RelativeActivityToday,Owe as ReportView,Zfe as Resource,Qfe as ResourceList,Pwe as ResourceListView,Afe as RestingHeartRateCalendar,Xfe as RotatingComponentCoordinator,Jfe as Section,eye as SegmentedControl,Dfe as SeverityCalendar,JA as ShinyOverlay,tye as SingleDataPoint,aye as SingleExternalAccount,nye as SingleNotification,iye as SingleSurveyTask,bA as SingleValueProvider,oye as SparkBarChart,sye as SparkRangeChart,Mwe as StandaloneHealthAndWellnessView,wA as StaticIntegerValueProvider,cye as StatusBarBackground,Kve as StepDetailText,sbe as StepImage,obe as StepImageIcon,Vve as StepLayout,Wve as StepMarkdown,Zve as StepNextButton,Gve as StepText,$ve as StepTitle,Ife as StressLevel,Efe as SurveyAnswerChart,Ofe as SurveyTaskList,vwe as SurveyTasksView,lye as Switch,Obe as SymptomSharkCalendar,$be as SymptomSharkCalendarView,Mbe as SymptomSharkLogEntry,Ube as SymptomSharkLogEntryEdit,Kbe as SymptomSharkLogEntryEditView,qbe as SymptomSharkLogEntryList,Vbe as SymptomSharkLogToday,Rbe as SymptomSharkMonthReport,jbe as SymptomSharkNotesTimeline,Tbe as SymptomSharkOverallExperienceChart,Wbe as SymptomSharkReportBuilder,Zbe as SymptomSharkReportBuilderView,Ybe as SymptomSharkSymptomDetailView,Cbe as SymptomSharkSymptomMatrix,zbe as SymptomSharkSymptomSeverityChart,Fbe as SymptomSharkSymptomSeveritySummary,bbe as SymptomSharkSymptomTreatmentFilters,Lbe as SymptomSharkSymptomTreatmentHistograms,_be as SymptomSharkVisualizationCoordinator,jfe as TermInformation,Twe as TermInformationView,Uq as TextBlock,jue as TimeSeriesChart,iM as Title,uye as TrackerItem,k as UnstyledButton,dye as ValueSelector,zfe as ViewDeviceActivity,Rfe as ViewEhr,mye as ViewHeader,hye as WeekCalendar,Lfe as WeeklyDayNavigator,pbe as YouTubeStep,gbe as YouTubeStepContainer,rve as asthmaDataService,rd as awardPointsAndBadges,lu as bloodPressureDataProvider,bl as capitalizeFirstLetterForLocale,ive as caregiverVariableLanguage,Yc as checkDailyDataAvailability,md as combinedIntradayHeartRateDataProvider,wye as computeAsthmaControlState,gd as computeBestFitGlucoseValue,fd as computeGlucoseReadingRanges,yd as computeGlucoseReadingRecentAverage,FA as computeThresholdDays,fbe as convertToSymptomSharkConfiguration,HA as createAllLibraryDocumentsLoader,dd as createAreaChartDefs,ud as createBarChartDefs,_A as createCustomFieldIntegerValueProvider,CA as createDaysWithDataValueProvider,RA as createIntegerInsightMatrixValueFormatter,VA as createLibraryDocumentSorter,cd as createLineChartDefs,NA as createMinMaxInsightMatrixValueEvaluator,zA as createMinutesToHoursInsightMatrixValueFormatter,DA as createNonZeroAverageValueInsightMatrixValueCalculator,IA as createPercentageOfDaysInsightMatrixValueCalculator,EA as createRandomIntegerValueProvider,jA as createShrinkThousandsInsightMatrixValueFormatter,qA as createSingleLibraryDocumentLoader,SA as createStaticIntegerValueProvider,vd as createThumbnailIfNecessary,Uc as dailyDataTypeDefinitions,bye as dateToAsthmaLogEntryIdentifier,Id as deleteStressLevel,fl as formatDateForLocale,UA as formatLibraryDocumentDateAndType,vl as formatMinutesForLocale,yl as formatNumberForLocale,_d as generateGlucose,OA as generateSampleData,Od as generateSleep,Cd as generateSteps,ru as get6MonthStart,Jc as getAllDailyDataTypes,Mye as getAsthmaAirQualityDescriptionText,xye as getAsthmaDataStatusColor,kye as getAsthmaDataStatusText,Cye as getAsthmaImpactTexts,Oye as getAsthmaImpacts,Sye as getAsthmaSymptomLevel,Aye as getAsthmaSymptomLevelText,Eye as getAsthmaSymptomTexts,_ye as getAsthmaSymptoms,Pye as getAsthmaTriggerTexts,Tye as getAsthmaTriggers,Ne as getColorFromAssortment,ao as getCountryCodeFromIso,eu as getDailyDataTypeDefinition,gl as getDateLocale,Ri as getDayKey,iu as getDefaultIntervalStart,pd as getGlucoseReadings,pl as getIntlLocale,to as getLanguageCodeFromIso,Sd as getMealImageUrls,xd as getMealToEdit,jd as getMealTypeDisplayText,bd as getMeals,nu as getMonthStart,Pd as getSleepMinutes,Td as getSteps,Md as getStressLevel,MA as getSurveyDataProvider,au as getWeekStart,Rye as isBloodOxygenLevelWithinRange,Dye as isDaytimeRestingHeartRateWithinRange,Iye as isNighttimeRestingHeartRateWithinRange,Nye as isRespiratoryRateWithinRange,zye as isSleepDisturbancesWithinRange,jye as isStepsWithinRange,TA as isSurveyDataType,eo as language,Wc as predictableRandomNumber,kd as prepareMealForEditing,Qc as queryDailyData,Xc as queryPreviewDailyData,ad as queryRelativeActivity,Gc as registerDailyDataProvider,Kc as registerDailyDataTypeDefinition,De as resolveColor,wd as saveMeals,Dd as saveStressLevel,kwe as showNewPoints,Cc as simpleAvailabilityCheck,ld as standardDailyDataTypes,id as sumActivityPoints,Ji as supportedLocales,hd as timestampSortAsc,BA as tryParseRegex,Ad as uploadMealImageFile,td as useInitializeView,Zq as useInterval};
|
|
194
194
|
//# sourceMappingURL=index.js.map
|