@saasquatch/vanilla-components 1.2.2 → 1.2.3-0

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.
Files changed (28) hide show
  1. package/dist/cjs/{WidgetHost-c5c3687c.js → WidgetHost-18a663ee.js} +12 -11
  2. package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
  3. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +4 -4
  4. package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
  5. package/dist/collection/components/referral-list/referral-list.js +3 -3
  6. package/dist/collection/services/WidgetHost.js +12 -11
  7. package/dist/esm/{WidgetHost-af4232dc.js → WidgetHost-d643a9de.js} +12 -11
  8. package/dist/esm/sqh-close-button.entry.js +1 -1
  9. package/dist/esm/sqh-copy-button_12.entry.js +4 -4
  10. package/dist/esm/sqh-referral-code.entry.js +1 -1
  11. package/dist/esm-es5/{WidgetHost-af4232dc.js → WidgetHost-d643a9de.js} +11 -8
  12. package/dist/esm-es5/sqh-close-button.entry.js +1 -1
  13. package/dist/esm-es5/sqh-copy-button_12.entry.js +4 -4
  14. package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
  15. package/dist/types/components/referral-list/referral-list.d.ts +1 -1
  16. package/dist/types/services/WidgetHost.d.ts +1 -1
  17. package/dist/widget-components/p-023e8818.system.entry.js +1 -0
  18. package/dist/widget-components/{p-42bd54ba.entry.js → p-10f0b8fc.entry.js} +2 -2
  19. package/dist/widget-components/{p-d5287f56.entry.js → p-126c2b5d.entry.js} +1 -1
  20. package/dist/widget-components/{p-6b72d8d8.system.js → p-3a627e51.system.js} +1 -1
  21. package/dist/widget-components/p-58be1132.system.js +1 -1
  22. package/dist/widget-components/{p-b407755a.entry.js → p-afd88281.entry.js} +1 -1
  23. package/dist/widget-components/{p-31a4d435.js → p-b4a53a7e.js} +10 -23
  24. package/dist/widget-components/{p-11fe33bc.system.entry.js → p-edc35bc4.system.entry.js} +2 -2
  25. package/dist/widget-components/{p-88568329.system.entry.js → p-fd5e98db.system.entry.js} +1 -1
  26. package/dist/widget-components/widget-components.esm.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/widget-components/p-f10c0566.system.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as t,h as e,c as n,g as r}from"./p-485eaf44.js";import{c as i,a as s,u as o}from"./p-b18ab5ec.js";import{A as a}from"./p-31a4d435.js";const c=t=>t.substring(4,t.length-1),u=t=>!!t.match(/^#[0-9a-f]{6}$/i),l=(t,e)=>{if(!u(t)&&!(t=>{const e=c(t).split(", ");return 3===e.length&&e.every(t=>parseInt(t)>=0&&parseInt(t)<=255)})(t))return;const n=u(t)?(t=>{const e=(t=>"#"==t.charAt(0)?t.substring(1):t)(t);return`rgb(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)})`})(t):t,r=e/100;return`rgb(${c(n).split(", ").map(t=>Math.floor(parseInt(t)*(1-r))).join(", ")})`},h=(t,e)=>t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)")),f=(t,e)=>{t.classList?t.classList.add(e):h(t,e)||(t.className+=" "+e)},d=(t,e)=>{if(t.classList)t.classList.remove(e);else if(h(t,e)){const n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}},p=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)};var b=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);this.container.insertBefore(e,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(e)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(n);try{var i=105===t.charCodeAt(1)&&64===t.charCodeAt(0);r.insertRule(t,i?0:r.cssRules.length)}catch(t){}}else n.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();function v(t){function e(t,e,r){var i=e.trim().split(p);e=i;var s=i.length,o=t.length;switch(o){case 0:case 1:var a=0;for(t=0===o?"":t[0]+" ";a<s;++a)e[a]=n(t,e[a],r).trim();break;default:var c=a=0;for(e=[];a<s;++a)for(var u=0;u<o;++u)e[c++]=n(t[u]+" ",i[a],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(b,"$1"+t.trim());case 58:return t.trim()+e.replace(b,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(b,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,s){var o=t+";",a=2*e+3*n+4*s;if(944===a){t=o.indexOf(":",9)+1;var c=o.substring(t,o.length-1).trim();return c=o.substring(0,t).trim()+c+";",1===z||2===z&&i(c,1)?"-webkit-"+c+c:c}if(0===z||2===z&&!i(o,1))return o;switch(a){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(S,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(c=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+c+o;case 1005:return f.test(o)?o.replace(h,":-webkit-")+o.replace(h,":-moz-")+o:o;case 1e3:switch(e=(c=o.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(e)){case 226:c=o.replace(w,"tb");break;case 232:c=o.replace(w,"tb-rl");break;case 220:c=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+c+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(e=(o=t).length-10,a=(c=(33===o.charCodeAt(e)?o.substring(0,e):o).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+o.replace(c,"-webkit-"+c)+";"+o.replace(c,"-ms-"+c+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return c=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+c+"-ms-flex-"+c+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===$.test(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,n,s).replace(":fill-available",":stretch"):o.replace(c,"-webkit-"+c)+o.replace(c,"-moz-"+c.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+s&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+o}return o}function i(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),O(2!==e?r:r.replace(q,"$1"),n,e)}function s(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(x," or ($1)").substring(4):"("+e+")"}function o(t,e,n,r,i,s,o,a,u,l){for(var h,f=0,d=e;f<j;++f)switch(h=T[f].call(c,t,d,n,r,i,s,o,a,u,l)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==e)return d}function a(t){return void 0!==(t=t.prefix)&&(O=null,t?"function"!=typeof t?z=1:(z=2,O=t):z=0),a}function c(t,n){var a=t;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<j){var c=o(-1,n,a,a,_,E,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var h=function t(n,a,c,h,f){for(var d,p,b,w,x,k=0,q=0,$=0,S=0,T=0,O=0,F=b=d=0,C=0,M=0,L=0,D=0,N=c.length,Z=N-1,U="",P="",H="",G="";C<N;){if(p=c.charCodeAt(C),C===Z&&0!==q+S+$+k&&(0!==q&&(p=47===q?10:47),S=$=k=0,N++,Z++),0===q+S+$+k){if(C===Z&&(0<M&&(U=U.replace(l,"")),0<U.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(C)}p=59}switch(p){case 123:for(d=(U=U.trim()).charCodeAt(0),b=1,D=++C;C<N;){switch(p=c.charCodeAt(C)){case 123:b++;break;case 125:b--;break;case 47:switch(p=c.charCodeAt(C+1)){case 42:case 47:t:{for(F=C+1;F<Z;++F)switch(c.charCodeAt(F)){case 47:if(42===p&&42===c.charCodeAt(F-1)&&C+2!==F){C=F+1;break t}break;case 10:if(47===p){C=F+1;break t}}C=F}}break;case 91:p++;case 40:p++;case 34:case 39:for(;C++<Z&&c.charCodeAt(C)!==p;);}if(0===b)break;C++}switch(b=c.substring(D,C),0===d&&(d=(U=U.replace(u,"").trim()).charCodeAt(0)),d){case 64:switch(0<M&&(U=U.replace(l,"")),p=U.charCodeAt(1)){case 100:case 109:case 115:case 45:M=a;break;default:M=I}if(D=(b=t(a,M,b,p,f+1)).length,0<j&&(x=o(3,b,M=e(I,U,L),a,_,E,D,p,f,h),U=M.join(""),void 0!==x&&0===(D=(b=x.trim()).length)&&(p=0,b="")),0<D)switch(p){case 115:U=U.replace(y,s);case 100:case 109:case 45:b=U+"{"+b+"}";break;case 107:b=(U=U.replace(v,"$1 $2"))+"{"+b+"}",b=1===z||2===z&&i("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=U+b,112===h&&(P+=b,b="")}else b="";break;default:b=t(a,e(a,U,L),b,h,f+1)}H+=b,b=L=M=F=d=0,U="",p=c.charCodeAt(++C);break;case 125:case 59:if(1<(D=(U=(0<M?U.replace(l,""):U).trim()).length))switch(0===F&&(d=U.charCodeAt(0),45===d||96<d&&123>d)&&(D=(U=U.replace(" ",":")).length),0<j&&void 0!==(x=o(1,U,a,n,_,E,P.length,h,f,h))&&0===(D=(U=x.trim()).length)&&(U="\0\0"),d=U.charCodeAt(0),p=U.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){G+=U+c.charAt(C);break}default:58!==U.charCodeAt(D-1)&&(P+=r(U,d,p,U.charCodeAt(2)))}L=M=F=d=0,U="",p=c.charCodeAt(++C)}}switch(p){case 13:case 10:47===q?q=0:0===1+d&&107!==h&&0<U.length&&(M=1,U+="\0"),0<j*R&&o(0,U,a,n,_,E,P.length,h,f,h),E=1,_++;break;case 59:case 125:if(0===q+S+$+k){E++;break}default:switch(E++,w=c.charAt(C),p){case 9:case 32:if(0===S+k+q)switch(T){case 44:case 58:case 9:case 32:w="";break;default:32!==p&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===S+q+k&&(M=L=1,w="\f"+w);break;case 108:if(0===S+q+k+A&&0<F)switch(C-F){case 2:112===T&&58===c.charCodeAt(C-3)&&(A=T);case 8:111===O&&(A=O)}break;case 58:0===S+q+k&&(F=C);break;case 44:0===q+$+S+k&&(M=1,w+="\r");break;case 34:case 39:0===q&&(S=S===p?0:0===S?p:S);break;case 91:0===S+q+$&&k++;break;case 93:0===S+q+$&&k--;break;case 41:0===S+q+k&&$--;break;case 40:if(0===S+q+k){if(0===d)switch(2*T+3*O){case 533:break;default:d=1}$++}break;case 64:0===q+$+S+k+F+b&&(b=1);break;case 42:case 47:if(!(0<S+k+$))switch(q){case 0:switch(2*p+3*c.charCodeAt(C+1)){case 235:q=47;break;case 220:D=C,q=42}break;case 42:47===p&&42===T&&D+2!==C&&(33===c.charCodeAt(D+2)&&(P+=c.substring(D,C+1)),w="",q=0)}}0===q&&(U+=w)}O=T,T=p,C++}if(0<(D=P.length)){if(M=a,0<j&&void 0!==(x=o(2,P,M,n,_,E,D,h,f,h))&&0===(P=x).length)return G+P+H;if(P=M.join(",")+"{"+P+"}",0!=z*A){switch(2!==z||i(P,2)||(A=0),A){case 111:P=P.replace(g,":-moz-$1")+P;break;case 112:P=P.replace(m,"::-webkit-input-$1")+P.replace(m,"::-moz-$1")+P.replace(m,":-ms-input-$1")+P}A=0}}return G+P+H}(I,a,n,0,0);return 0<j&&void 0!==(c=o(-2,h,a,a,_,E,h.length,0,0,0))&&(h=c),A=0,E=_=1,h}var u=/^\0+/g,l=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,p=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,q=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,_=1,A=0,z=1,I=[],T=[],j=0,O=null,R=0;return c.use=function t(e){switch(e){case void 0:case null:j=T.length=0;break;default:if("function"==typeof e)T[j++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else R=0|!!e}return t},c.set=a,void 0!==t&&a(t),c}var m=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}};function g(t){t&&x.current.insert(t+"}")}var w,y,x={current:null},k=function(t,e,n,r,i,s,o,a,c,u){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return x.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===a)return e+"/*|*/";break;case 3:switch(a){case 102:case 112:return x.current.insert(n[0]+e),"";default:return e+(0===u?"/*|*/":"")}case-2:e.split("/*|*/}").forEach(g)}},q=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},$="undefined"!=typeof document,S={},E=$?void 0:m((function(){var t=m((function(){return{}})),e={},n={};return function(r){return void 0===r||!0===r?e:!1===r?n:t(r)}})),_={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A=/[A-Z]|^ms/g,z=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I=function(t){return 45===t.charCodeAt(1)},T=function(t){return null!=t&&"boolean"!=typeof t},j=(w=function(t){return I(t)?t:t.replace(A,"-$&").toLowerCase()},y={},function(t){return void 0===y[t]&&(y[t]=w(t)),y[t]}),O=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(z,(function(t,e,n){return F={name:e,styles:n,next:F},e}))}return 1===_[t]||I(t)||"number"!=typeof e||0===e?e:e+"px"};function R(t,e,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return F={name:n.name,styles:n.styles,next:F},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)F={name:i.name,styles:i.styles,next:F},i=i.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=R(t,e,n[i],!1);else for(var s in n){var o=n[s];if("object"!=typeof o)null!=e&&void 0!==e[o]?r+=s+"{"+e[o]+"}":T(o)&&(r+=j(s)+":"+O(s,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=e&&void 0!==e[o[0]]){var a=R(t,e,o,!1);switch(s){case"animation":case"animationName":r+=j(s)+":"+a+";";break;default:r+=s+"{"+a+"}"}}else for(var c=0;c<o.length;c++)T(o[c])&&(r+=j(s)+":"+O(s,o[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var s=F,o=n(t);return F=s,R(t,e,o,r)}}if(null==e)return n;var a=e[n];return void 0===a||r?n:a}var F,C=/label:\s*([^\s;\n{]+)\s*;/g,M=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";F=void 0;var s=t[0];null==s||void 0===s.raw?(r=!1,i+=R(n,e,s,!1)):i+=s[0];for(var o=1;o<t.length;o++)i+=R(n,e,t[o],46===i.charCodeAt(i.length-1)),r&&(i+=s[o]);C.lastIndex=0;for(var a,c="";null!==(a=C.exec(i));)c+="-"+a[1];return{name:function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c,styles:i,next:F}},L="undefined"!=typeof document;function D(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var N=function(t,e,n){var r=t.key+"-"+e.name;if((!1===n||!1===L&&void 0!==t.compat)&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var i="",s=e;do{var o=t.insert("."+r,s,t.sheet,!0);L||void 0===o||(i+=o),s=s.next}while(void 0!==s);if(!L&&0!==i.length)return i}};function Z(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function U(t,e,n){var r=[],i=D(t,r,n);return r.length<2?n:i+e(r)}var P=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=t(i);else for(var o in s="",i)i[o]&&o&&(s&&(s+=" "),s+=o);break;default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},H=function(){var t=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r,i,s=new v(e),o={};if($){r=t.container||document.head;var a=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(a,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){o[t]=!0})),t.parentNode!==r&&r.appendChild(t)}))}if($)s.use(t.stylisPlugins)(k),i=function(t,e,n,r){var i=e.name;x.current=n,s(t,e.styles),r&&(u.inserted[i]=!0)};else{s.use(q);var c=S;(t.stylisPlugins||void 0!==t.prefix)&&(s.use(t.stylisPlugins),c=E(t.stylisPlugins||S)(t.prefix)),i=function(t,e,n,r){var i=e.name,o=function(t,e){var n=e.name;return void 0===c[n]&&(c[n]=s(t,e.styles)),c[n]}(t,e);return void 0===u.compat?(r&&(u.inserted[i]=!0),o):r?void(u.inserted[i]=o):o}}var u={key:n,sheet:new b({key:n,container:r,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:o,registered:{},insert:i};return u}(void 0);t.sheet.speedy=function(t){this.isSpeedy=t},t.compat=!0;var e=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered,void 0);return N(t,i,!1),t.key+"-"+i.name};return{css:e,cx:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return U(t.registered,e,P(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered);Z(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered),s="animation-"+i.name;return Z(t,{name:i.name,styles:"@keyframes "+s+"{"+i.styles+"}"}),s},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:D.bind(null,t.registered),merge:U.bind(null,t.registered,e)}}().css;const G=o(i((function(t){
1
+ import{r as t,h as e,c as n,g as r}from"./p-485eaf44.js";import{c as i,a as s,u as o}from"./p-b18ab5ec.js";import{A as a}from"./p-b4a53a7e.js";const c=t=>t.substring(4,t.length-1),u=t=>!!t.match(/^#[0-9a-f]{6}$/i),l=(t,e)=>{if(!u(t)&&!(t=>{const e=c(t).split(", ");return 3===e.length&&e.every(t=>parseInt(t)>=0&&parseInt(t)<=255)})(t))return;const n=u(t)?(t=>{const e=(t=>"#"==t.charAt(0)?t.substring(1):t)(t);return`rgb(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)})`})(t):t,r=e/100;return`rgb(${c(n).split(", ").map(t=>Math.floor(parseInt(t)*(1-r))).join(", ")})`},h=(t,e)=>t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)")),f=(t,e)=>{t.classList?t.classList.add(e):h(t,e)||(t.className+=" "+e)},d=(t,e)=>{if(t.classList)t.classList.remove(e);else if(h(t,e)){const n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}},p=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)};var b=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);this.container.insertBefore(e,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(e)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(n);try{var i=105===t.charCodeAt(1)&&64===t.charCodeAt(0);r.insertRule(t,i?0:r.cssRules.length)}catch(t){}}else n.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();function v(t){function e(t,e,r){var i=e.trim().split(p);e=i;var s=i.length,o=t.length;switch(o){case 0:case 1:var a=0;for(t=0===o?"":t[0]+" ";a<s;++a)e[a]=n(t,e[a],r).trim();break;default:var c=a=0;for(e=[];a<s;++a)for(var u=0;u<o;++u)e[c++]=n(t[u]+" ",i[a],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(b,"$1"+t.trim());case 58:return t.trim()+e.replace(b,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(b,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,s){var o=t+";",a=2*e+3*n+4*s;if(944===a){t=o.indexOf(":",9)+1;var c=o.substring(t,o.length-1).trim();return c=o.substring(0,t).trim()+c+";",1===z||2===z&&i(c,1)?"-webkit-"+c+c:c}if(0===z||2===z&&!i(o,1))return o;switch(a){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(S,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(c=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+c+o;case 1005:return f.test(o)?o.replace(h,":-webkit-")+o.replace(h,":-moz-")+o:o;case 1e3:switch(e=(c=o.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(e)){case 226:c=o.replace(w,"tb");break;case 232:c=o.replace(w,"tb-rl");break;case 220:c=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+c+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(e=(o=t).length-10,a=(c=(33===o.charCodeAt(e)?o.substring(0,e):o).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+o.replace(c,"-webkit-"+c)+";"+o.replace(c,"-ms-"+c+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return c=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+c+"-ms-flex-"+c+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===$.test(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,n,s).replace(":fill-available",":stretch"):o.replace(c,"-webkit-"+c)+o.replace(c,"-moz-"+c.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+s&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+o}return o}function i(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),O(2!==e?r:r.replace(q,"$1"),n,e)}function s(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(x," or ($1)").substring(4):"("+e+")"}function o(t,e,n,r,i,s,o,a,u,l){for(var h,f=0,d=e;f<j;++f)switch(h=T[f].call(c,t,d,n,r,i,s,o,a,u,l)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==e)return d}function a(t){return void 0!==(t=t.prefix)&&(O=null,t?"function"!=typeof t?z=1:(z=2,O=t):z=0),a}function c(t,n){var a=t;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<j){var c=o(-1,n,a,a,_,E,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var h=function t(n,a,c,h,f){for(var d,p,b,w,x,k=0,q=0,$=0,S=0,T=0,O=0,F=b=d=0,C=0,M=0,L=0,D=0,N=c.length,Z=N-1,U="",P="",H="",G="";C<N;){if(p=c.charCodeAt(C),C===Z&&0!==q+S+$+k&&(0!==q&&(p=47===q?10:47),S=$=k=0,N++,Z++),0===q+S+$+k){if(C===Z&&(0<M&&(U=U.replace(l,"")),0<U.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(C)}p=59}switch(p){case 123:for(d=(U=U.trim()).charCodeAt(0),b=1,D=++C;C<N;){switch(p=c.charCodeAt(C)){case 123:b++;break;case 125:b--;break;case 47:switch(p=c.charCodeAt(C+1)){case 42:case 47:t:{for(F=C+1;F<Z;++F)switch(c.charCodeAt(F)){case 47:if(42===p&&42===c.charCodeAt(F-1)&&C+2!==F){C=F+1;break t}break;case 10:if(47===p){C=F+1;break t}}C=F}}break;case 91:p++;case 40:p++;case 34:case 39:for(;C++<Z&&c.charCodeAt(C)!==p;);}if(0===b)break;C++}switch(b=c.substring(D,C),0===d&&(d=(U=U.replace(u,"").trim()).charCodeAt(0)),d){case 64:switch(0<M&&(U=U.replace(l,"")),p=U.charCodeAt(1)){case 100:case 109:case 115:case 45:M=a;break;default:M=I}if(D=(b=t(a,M,b,p,f+1)).length,0<j&&(x=o(3,b,M=e(I,U,L),a,_,E,D,p,f,h),U=M.join(""),void 0!==x&&0===(D=(b=x.trim()).length)&&(p=0,b="")),0<D)switch(p){case 115:U=U.replace(y,s);case 100:case 109:case 45:b=U+"{"+b+"}";break;case 107:b=(U=U.replace(v,"$1 $2"))+"{"+b+"}",b=1===z||2===z&&i("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=U+b,112===h&&(P+=b,b="")}else b="";break;default:b=t(a,e(a,U,L),b,h,f+1)}H+=b,b=L=M=F=d=0,U="",p=c.charCodeAt(++C);break;case 125:case 59:if(1<(D=(U=(0<M?U.replace(l,""):U).trim()).length))switch(0===F&&(d=U.charCodeAt(0),45===d||96<d&&123>d)&&(D=(U=U.replace(" ",":")).length),0<j&&void 0!==(x=o(1,U,a,n,_,E,P.length,h,f,h))&&0===(D=(U=x.trim()).length)&&(U="\0\0"),d=U.charCodeAt(0),p=U.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){G+=U+c.charAt(C);break}default:58!==U.charCodeAt(D-1)&&(P+=r(U,d,p,U.charCodeAt(2)))}L=M=F=d=0,U="",p=c.charCodeAt(++C)}}switch(p){case 13:case 10:47===q?q=0:0===1+d&&107!==h&&0<U.length&&(M=1,U+="\0"),0<j*R&&o(0,U,a,n,_,E,P.length,h,f,h),E=1,_++;break;case 59:case 125:if(0===q+S+$+k){E++;break}default:switch(E++,w=c.charAt(C),p){case 9:case 32:if(0===S+k+q)switch(T){case 44:case 58:case 9:case 32:w="";break;default:32!==p&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===S+q+k&&(M=L=1,w="\f"+w);break;case 108:if(0===S+q+k+A&&0<F)switch(C-F){case 2:112===T&&58===c.charCodeAt(C-3)&&(A=T);case 8:111===O&&(A=O)}break;case 58:0===S+q+k&&(F=C);break;case 44:0===q+$+S+k&&(M=1,w+="\r");break;case 34:case 39:0===q&&(S=S===p?0:0===S?p:S);break;case 91:0===S+q+$&&k++;break;case 93:0===S+q+$&&k--;break;case 41:0===S+q+k&&$--;break;case 40:if(0===S+q+k){if(0===d)switch(2*T+3*O){case 533:break;default:d=1}$++}break;case 64:0===q+$+S+k+F+b&&(b=1);break;case 42:case 47:if(!(0<S+k+$))switch(q){case 0:switch(2*p+3*c.charCodeAt(C+1)){case 235:q=47;break;case 220:D=C,q=42}break;case 42:47===p&&42===T&&D+2!==C&&(33===c.charCodeAt(D+2)&&(P+=c.substring(D,C+1)),w="",q=0)}}0===q&&(U+=w)}O=T,T=p,C++}if(0<(D=P.length)){if(M=a,0<j&&void 0!==(x=o(2,P,M,n,_,E,D,h,f,h))&&0===(P=x).length)return G+P+H;if(P=M.join(",")+"{"+P+"}",0!=z*A){switch(2!==z||i(P,2)||(A=0),A){case 111:P=P.replace(g,":-moz-$1")+P;break;case 112:P=P.replace(m,"::-webkit-input-$1")+P.replace(m,"::-moz-$1")+P.replace(m,":-ms-input-$1")+P}A=0}}return G+P+H}(I,a,n,0,0);return 0<j&&void 0!==(c=o(-2,h,a,a,_,E,h.length,0,0,0))&&(h=c),A=0,E=_=1,h}var u=/^\0+/g,l=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,p=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,q=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,_=1,A=0,z=1,I=[],T=[],j=0,O=null,R=0;return c.use=function t(e){switch(e){case void 0:case null:j=T.length=0;break;default:if("function"==typeof e)T[j++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else R=0|!!e}return t},c.set=a,void 0!==t&&a(t),c}var m=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}};function g(t){t&&x.current.insert(t+"}")}var w,y,x={current:null},k=function(t,e,n,r,i,s,o,a,c,u){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return x.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===a)return e+"/*|*/";break;case 3:switch(a){case 102:case 112:return x.current.insert(n[0]+e),"";default:return e+(0===u?"/*|*/":"")}case-2:e.split("/*|*/}").forEach(g)}},q=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},$="undefined"!=typeof document,S={},E=$?void 0:m((function(){var t=m((function(){return{}})),e={},n={};return function(r){return void 0===r||!0===r?e:!1===r?n:t(r)}})),_={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A=/[A-Z]|^ms/g,z=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I=function(t){return 45===t.charCodeAt(1)},T=function(t){return null!=t&&"boolean"!=typeof t},j=(w=function(t){return I(t)?t:t.replace(A,"-$&").toLowerCase()},y={},function(t){return void 0===y[t]&&(y[t]=w(t)),y[t]}),O=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(z,(function(t,e,n){return F={name:e,styles:n,next:F},e}))}return 1===_[t]||I(t)||"number"!=typeof e||0===e?e:e+"px"};function R(t,e,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return F={name:n.name,styles:n.styles,next:F},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)F={name:i.name,styles:i.styles,next:F},i=i.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=R(t,e,n[i],!1);else for(var s in n){var o=n[s];if("object"!=typeof o)null!=e&&void 0!==e[o]?r+=s+"{"+e[o]+"}":T(o)&&(r+=j(s)+":"+O(s,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=e&&void 0!==e[o[0]]){var a=R(t,e,o,!1);switch(s){case"animation":case"animationName":r+=j(s)+":"+a+";";break;default:r+=s+"{"+a+"}"}}else for(var c=0;c<o.length;c++)T(o[c])&&(r+=j(s)+":"+O(s,o[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var s=F,o=n(t);return F=s,R(t,e,o,r)}}if(null==e)return n;var a=e[n];return void 0===a||r?n:a}var F,C=/label:\s*([^\s;\n{]+)\s*;/g,M=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";F=void 0;var s=t[0];null==s||void 0===s.raw?(r=!1,i+=R(n,e,s,!1)):i+=s[0];for(var o=1;o<t.length;o++)i+=R(n,e,t[o],46===i.charCodeAt(i.length-1)),r&&(i+=s[o]);C.lastIndex=0;for(var a,c="";null!==(a=C.exec(i));)c+="-"+a[1];return{name:function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c,styles:i,next:F}},L="undefined"!=typeof document;function D(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var N=function(t,e,n){var r=t.key+"-"+e.name;if((!1===n||!1===L&&void 0!==t.compat)&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var i="",s=e;do{var o=t.insert("."+r,s,t.sheet,!0);L||void 0===o||(i+=o),s=s.next}while(void 0!==s);if(!L&&0!==i.length)return i}};function Z(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function U(t,e,n){var r=[],i=D(t,r,n);return r.length<2?n:i+e(r)}var P=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=t(i);else for(var o in s="",i)i[o]&&o&&(s&&(s+=" "),s+=o);break;default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},H=function(){var t=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r,i,s=new v(e),o={};if($){r=t.container||document.head;var a=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(a,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){o[t]=!0})),t.parentNode!==r&&r.appendChild(t)}))}if($)s.use(t.stylisPlugins)(k),i=function(t,e,n,r){var i=e.name;x.current=n,s(t,e.styles),r&&(u.inserted[i]=!0)};else{s.use(q);var c=S;(t.stylisPlugins||void 0!==t.prefix)&&(s.use(t.stylisPlugins),c=E(t.stylisPlugins||S)(t.prefix)),i=function(t,e,n,r){var i=e.name,o=function(t,e){var n=e.name;return void 0===c[n]&&(c[n]=s(t,e.styles)),c[n]}(t,e);return void 0===u.compat?(r&&(u.inserted[i]=!0),o):r?void(u.inserted[i]=o):o}}var u={key:n,sheet:new b({key:n,container:r,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:o,registered:{},insert:i};return u}(void 0);t.sheet.speedy=function(t){this.isSpeedy=t},t.compat=!0;var e=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered,void 0);return N(t,i,!1),t.key+"-"+i.name};return{css:e,cx:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return U(t.registered,e,P(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered);Z(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered),s="animation-"+i.name;return Z(t,{name:i.name,styles:"@keyframes "+s+"{"+i.styles+"}"}),s},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:D.bind(null,t.registered),merge:U.bind(null,t.registered,e)}}().css;const G=o(i((function(t){
2
2
  /*!
3
3
  * clipboard.js v2.0.6
4
4
  * https://clipboardjs.com/
@@ -61,7 +61,7 @@ var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r]
61
61
  }
62
62
  `;return!this.ishidden&&e("div",{class:t},e("img",{src:this.url,class:n}))}};Y.style="sqh-image-component{display:block}sqh-image-component div{position:relative}sqh-image-component img{max-width:100%;height:auto}";const Q=class{constructor(e){t(this,e),this.statTypeUpdated=n(this,"statTypeUpdated",7),this.statAdded=n(this,"statAdded",7)}componentWillLoad(){this.statAddedHandler(this.elem)}stattypeHandler(t,e){t!==e&&this.statTypeUpdatedHandler(this.elem)}statAddedHandler(t){this.statAdded.emit(t)}statTypeUpdatedHandler(t){this.statTypeUpdated.emit(t)}render(){const t=H`
63
63
  color: ${this.statcolor};
64
- `;return!this.ishidden&&e("div",{class:t},e("div",{class:"stat-value"},this.statvalue),e("div",{class:"stat-description"},this.statdescription))}get elem(){return r(this)}static get watchers(){return{stattype:["stattypeHandler"]}}};var X,K;function J(t){return t.type===X.literal}function tt(t){return t.type===X.argument}function et(t){return t.type===X.number}function nt(t){return t.type===X.date}function rt(t){return t.type===X.time}function it(t){return t.type===X.select}function st(t){return t.type===X.plural}function ot(t){return t.type===X.pound}function at(t){return t.type===X.tag}function ct(t){return!(!t||"object"!=typeof t||0!==t.type)}function ut(t){return!(!t||"object"!=typeof t||1!==t.type)}Q.style="sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}",function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(X||(X={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(K||(K={}));var lt,ht=(lt=function(t,e){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}lt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ft=function(){return(ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},dt=function(t){function e(n,r,i,s){var o=t.call(this)||this;return o.message=n,o.expected=r,o.found=i,o.location=s,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,e),o}return ht(e,t),e.buildMessage=function(t,e){function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function r(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(t){switch(t.type){case"literal":return'"'+r(t.text)+'"';case"class":var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e+"]";case"any":return"any character";case"end":return"end of input";case"other":return t.description}}return"Expected "+function(t){var e,n,r=t.map(s);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+((o=e)?'"'+r(o)+'"':"end of input")+" found.";var o},e}(Error),pt=function(t,e){e=void 0!==e?e:{};var n,r={},i={start:At},s=At,o=kt("<",!1),a=function(t){return t.join("")},c=kt("#",!1),u=$t("tagElement"),l=kt("/>",!1),h=kt(">",!1),f=kt("</",!1),d=$t("argumentElement"),p=kt("{",!1),b=kt("}",!1),v=$t("numberSkeletonId"),m=/^['\/{}]/,g=qt(["'","/","{","}"],!1,!1),w={type:"any"},y=$t("numberSkeletonTokenOption"),x=kt("/",!1),k=$t("numberSkeletonToken"),q=kt("::",!1),$=function(t){return te.pop(),t.replace(/\s*$/,"")},S=kt(",",!1),E=kt("number",!1),_=function(t,e,n){return ft({type:"number"===e?X.number:"date"===e?X.date:X.time,style:n&&n[2],value:t},ne())},A=kt("'",!1),z=/^[^']/,I=qt(["'"],!0,!1),T=/^[^a-zA-Z'{}]/,j=qt([["a","z"],["A","Z"],"'","{","}"],!0,!1),O=/^[a-zA-Z]/,R=qt([["a","z"],["A","Z"]],!1,!1),F=kt("date",!1),C=kt("time",!1),M=kt("plural",!1),L=kt("selectordinal",!1),D=kt("offset:",!1),N=kt("select",!1),Z=kt("=",!1),U=$t("whitespace"),P=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,H=qt([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),G=$t("syntax pattern"),B=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,W=qt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),V=$t("optional whitespace"),Y=$t("number"),Q=kt("-",!1),K=$t("double apostrophes"),J=kt("''",!1),tt=kt("\n",!1),et=$t("argNameOrNumber"),nt=$t("validTag"),rt=$t("argNumber"),it=kt("0",!1),st=/^[1-9]/,ot=qt([["1","9"]],!1,!1),at=/^[0-9]/,ct=qt([["0","9"]],!1,!1),ut=$t("argName"),lt=$t("tagName"),ht=0,pt=0,bt=[{line:1,column:1}],vt=0,mt=[],gt=0;if(void 0!==e.startRule){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');s=i[e.startRule]}function wt(){return t.substring(pt,ht)}function yt(){return Et(pt,ht)}function xt(t,e){throw function(t,e){return new dt(t,[],"",e)}(t,e=void 0!==e?e:Et(pt,ht))}function kt(t,e){return{type:"literal",text:t,ignoreCase:e}}function qt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function $t(t){return{type:"other",description:t}}function St(e){var n,r=bt[e];if(r)return r;for(n=e-1;!bt[n];)n--;for(r={line:(r=bt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return bt[e]=r,r}function Et(t,e){var n=St(t),r=St(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function _t(t){ht<vt||(ht>vt&&(vt=ht,mt=[]),mt.push(t))}function At(){return zt()}function zt(){var t,e;for(t=[],e=It();e!==r;)t.push(e),e=It();return t}function It(){var e,n;return e=ht,pt=ht,(oe?r:void 0)!==r&&(n=function(){var t,e,n,i,s,o,a;return gt++,(t=Ot())===r&&(t=ht,(e=Rt())!==r&&(n=zt())!==r&&(i=Ft())!==r?(pt=t,o=n,(s=e)!==(a=i)&&xt('Mismatch tag "'+s+'" !== "'+a+'"',yt()),t=e=ft({type:X.tag,value:s,children:o},ne())):(ht=t,t=r)),gt--,t===r&&(e=r,0===gt&&_t(u)),t}())!==r?(pt=e,e=n):(ht=e,e=r),e===r&&(e=function(){var t,e;return t=ht,(e=Tt())!==r&&(pt=t,e=ft({type:X.literal,value:e},ne())),e}())===r&&(e=function(){var e,n,i,s;return gt++,e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(125===t.charCodeAt(ht)?(s="}",ht++):(s=r,0===gt&&_t(b)),s!==r?(pt=e,e=n=ft({type:X.argument,value:i},ne())):(ht=e,e=r)):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(d)),e}())===r&&(e=function(){var e;return(e=function(){var e,n,i,s,o,a,c,u,l;return e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r&&Gt()!==r?("number"===t.substr(ht,6)?(o="number",ht+=6):(o=r,0===gt&&_t(E)),o!==r&&Gt()!==r?(a=ht,44===t.charCodeAt(ht)?(c=",",ht++):(c=r,0===gt&&_t(S)),c!==r&&(u=Gt())!==r&&(l=function(){var e,n,i;return e=ht,"::"===t.substr(ht,2)?(n="::",ht+=2):(n=r,0===gt&&_t(q)),n!==r&&(i=function(){var t,e,n;if(t=ht,e=[],(n=Lt())!==r)for(;n!==r;)e.push(n),n=Lt();else e=r;return e!==r&&(pt=t,e=ft({type:0,tokens:e},ne())),e}())!==r?(pt=e,e=n=i):(ht=e,e=r),e===r&&(e=ht,pt=ht,te.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Tt())!==r?(pt=e,e=n=$(i)):(ht=e,e=r)),e}())!==r?a=c=[c,u,l]:(ht=a,a=r),a===r&&(a=null),a!==r&&(c=Gt())!==r?(125===t.charCodeAt(ht)?(u="}",ht++):(u=r,0===gt&&_t(b)),u!==r?(pt=e,e=n=_(i,o,a)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l;return e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r&&Gt()!==r?("date"===t.substr(ht,4)?(o="date",ht+=4):(o=r,0===gt&&_t(F)),o===r&&("time"===t.substr(ht,4)?(o="time",ht+=4):(o=r,0===gt&&_t(C))),o!==r&&Gt()!==r?(a=ht,44===t.charCodeAt(ht)?(c=",",ht++):(c=r,0===gt&&_t(S)),c!==r&&(u=Gt())!==r&&(l=function(){var e,n,i;return e=ht,"::"===t.substr(ht,2)?(n="::",ht+=2):(n=r,0===gt&&_t(q)),n!==r&&(i=function(){var e,n,i,s;if(e=ht,n=ht,i=[],(s=Dt())===r&&(s=Nt()),s!==r)for(;s!==r;)i.push(s),(s=Dt())===r&&(s=Nt());else i=r;return(n=i!==r?t.substring(n,ht):i)!==r&&(pt=e,n=ft({type:1,pattern:n},ne())),n}())!==r?(pt=e,e=n=i):(ht=e,e=r),e===r&&(e=ht,pt=ht,te.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Tt())!==r?(pt=e,e=n=$(i)):(ht=e,e=r)),e}())!==r?a=c=[c,u,l]:(ht=a,a=r),a===r&&(a=null),a!==r&&(c=Gt())!==r?(125===t.charCodeAt(ht)?(u="}",ht++):(u=r,0===gt&&_t(b)),u!==r?(pt=e,e=n=_(i,o,a)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}()),e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l,h,f;if(e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r)if(Gt()!==r)if((i=Qt())!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r)if(Gt()!==r)if("plural"===t.substr(ht,6)?(o="plural",ht+=6):(o=r,0===gt&&_t(M)),o===r&&("selectordinal"===t.substr(ht,13)?(o="selectordinal",ht+=13):(o=r,0===gt&&_t(L))),o!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(a=",",ht++):(a=r,0===gt&&_t(S)),a!==r)if(Gt()!==r)if(c=ht,"offset:"===t.substr(ht,7)?(u="offset:",ht+=7):(u=r,0===gt&&_t(D)),u!==r&&(l=Gt())!==r&&(h=Bt())!==r?c=u=[u,l,h]:(ht=c,c=r),c===r&&(c=null),c!==r)if((u=Gt())!==r){if(l=[],(h=Ut())!==r)for(;h!==r;)l.push(h),h=Ut();else l=r;l!==r&&(h=Gt())!==r?(125===t.charCodeAt(ht)?(f="}",ht++):(f=r,0===gt&&_t(b)),f!==r?(pt=e,e=n=function(t,e,n,r){return ft({type:X.plural,pluralType:"plural"===e?"cardinal":"ordinal",value:t,offset:n?n[2]:0,options:r.reduce((function(t,e){var n=e.id,r=e.value,i=e.location;return n in t&&xt('Duplicate option "'+n+'" in plural element: "'+wt()+'"',yt()),t[n]={value:r,location:i},t}),{})},ne())}(i,o,c,l)):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;return e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l;if(e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r)if(Gt()!==r)if((i=Qt())!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r)if(Gt()!==r)if("select"===t.substr(ht,6)?(o="select",ht+=6):(o=r,0===gt&&_t(N)),o!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(a=",",ht++):(a=r,0===gt&&_t(S)),a!==r)if(Gt()!==r){if(c=[],(u=Zt())!==r)for(;u!==r;)c.push(u),u=Zt();else c=r;c!==r&&(u=Gt())!==r?(125===t.charCodeAt(ht)?(l="}",ht++):(l=r,0===gt&&_t(b)),l!==r?(pt=e,e=n=function(t,e){return ft({type:X.select,value:t,options:e.reduce((function(t,e){var n=e.id,r=e.value,i=e.location;return n in t&&xt('Duplicate option "'+n+'" in select element: "'+wt()+'"',yt()),t[n]={value:r,location:i},t}),{})},ne())}(i,c)):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;return e}())===r&&(e=function(){var e,n;return e=ht,35===t.charCodeAt(ht)?(n="#",ht++):(n=r,0===gt&&_t(c)),n!==r&&(pt=e,n=ft({type:X.pound},ne())),n}()),e}function Tt(){var e,n,i,s;if(e=ht,pt=ht,(n=(n=oe)?void 0:r)!==r){if(i=[],(s=Wt())===r&&(s=Vt())===r&&(s=Yt())===r&&(60===t.charCodeAt(ht)?(s="<",ht++):(s=r,0===gt&&_t(o))),s!==r)for(;s!==r;)i.push(s),(s=Wt())===r&&(s=Vt())===r&&(s=Yt())===r&&(60===t.charCodeAt(ht)?(s="<",ht++):(s=r,0===gt&&_t(o)));else i=r;i!==r?(pt=e,e=n=a(i)):(ht=e,e=r)}else ht=e,e=r;if(e===r){if(e=ht,n=[],(i=Wt())===r&&(i=Vt())===r&&(i=Yt())===r&&(i=jt()),i!==r)for(;i!==r;)n.push(i),(i=Wt())===r&&(i=Vt())===r&&(i=Yt())===r&&(i=jt());else n=r;n!==r&&(pt=e,n=a(n)),e=n}return e}function jt(){var e,n,i;return e=ht,n=ht,gt++,(i=Rt())===r&&(i=Ft())===r&&(i=Ot()),gt--,i===r?n=void 0:(ht=n,n=r),n!==r?(60===t.charCodeAt(ht)?(i="<",ht++):(i=r,0===gt&&_t(o)),i!==r?(pt=e,e=n="<"):(ht=e,e=r)):(ht=e,e=r),e}function Ot(){var e,n,i,s,a,c;return e=ht,n=ht,60===t.charCodeAt(ht)?(i="<",ht++):(i=r,0===gt&&_t(o)),i!==r&&(s=Xt())!==r&&(a=Gt())!==r?("/>"===t.substr(ht,2)?(c="/>",ht+=2):(c=r,0===gt&&_t(l)),c!==r?n=i=[i,s,a,c]:(ht=n,n=r)):(ht=n,n=r),n!==r&&(pt=e,n=ft({type:X.literal,value:n.join("")},ne())),n}function Rt(){var e,n,i,s;return e=ht,60===t.charCodeAt(ht)?(n="<",ht++):(n=r,0===gt&&_t(o)),n!==r&&(i=Xt())!==r?(62===t.charCodeAt(ht)?(s=">",ht++):(s=r,0===gt&&_t(h)),s!==r?(pt=e,e=n=i):(ht=e,e=r)):(ht=e,e=r),e}function Ft(){var e,n,i,s;return e=ht,"</"===t.substr(ht,2)?(n="</",ht+=2):(n=r,0===gt&&_t(f)),n!==r&&(i=Xt())!==r?(62===t.charCodeAt(ht)?(s=">",ht++):(s=r,0===gt&&_t(h)),s!==r?(pt=e,e=n=i):(ht=e,e=r)):(ht=e,e=r),e}function Ct(){var e,n,i,s,o;if(gt++,e=ht,n=[],i=ht,s=ht,gt++,(o=Pt())===r&&(m.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(g))),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ht,s=ht,gt++,(o=Pt())===r&&(m.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(g))),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r);else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(v)),e}function Mt(){var e,n,i;return gt++,e=ht,47===t.charCodeAt(ht)?(n="/",ht++):(n=r,0===gt&&_t(x)),n!==r&&(i=Ct())!==r?(pt=e,e=n=i):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(y)),e}function Lt(){var t,e,n,i;if(gt++,t=ht,Gt()!==r)if((e=Ct())!==r){for(n=[],i=Mt();i!==r;)n.push(i),i=Mt();n!==r?(pt=t,t=function(t,e){return{stem:t,options:e}}(e,n)):(ht=t,t=r)}else ht=t,t=r;else ht=t,t=r;return gt--,t===r&&0===gt&&_t(k),t}function Dt(){var e,n,i,s;if(e=ht,39===t.charCodeAt(ht)?(n="'",ht++):(n=r,0===gt&&_t(A)),n!==r){if(i=[],(s=Wt())===r&&(z.test(t.charAt(ht))?(s=t.charAt(ht),ht++):(s=r,0===gt&&_t(I))),s!==r)for(;s!==r;)i.push(s),(s=Wt())===r&&(z.test(t.charAt(ht))?(s=t.charAt(ht),ht++):(s=r,0===gt&&_t(I)));else i=r;i!==r?(39===t.charCodeAt(ht)?(s="'",ht++):(s=r,0===gt&&_t(A)),s!==r?e=n=[n,i,s]:(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;if(e===r)if(e=[],(n=Wt())===r&&(T.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(j))),n!==r)for(;n!==r;)e.push(n),(n=Wt())===r&&(T.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(j)));else e=r;return e}function Nt(){var e,n;if(e=[],O.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(R)),n!==r)for(;n!==r;)e.push(n),O.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(R));else e=r;return e}function Zt(){var e,n,i,s,o,a,c;return e=ht,Gt()!==r&&(n=Jt())!==r&&Gt()!==r?(123===t.charCodeAt(ht)?(i="{",ht++):(i=r,0===gt&&_t(p)),i!==r?(pt=ht,te.push("select"),void 0!==r&&(s=zt())!==r?(125===t.charCodeAt(ht)?(o="}",ht++):(o=r,0===gt&&_t(b)),o!==r?(pt=e,a=n,c=s,te.pop(),e=ft({id:a,value:c},ne())):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}function Ut(){var e,n,i,s,o,a,c;return e=ht,Gt()!==r&&(n=function(){var e,n,i,s;return e=ht,n=ht,61===t.charCodeAt(ht)?(i="=",ht++):(i=r,0===gt&&_t(Z)),i!==r&&(s=Bt())!==r?n=i=[i,s]:(ht=n,n=r),(e=n!==r?t.substring(e,ht):n)===r&&(e=Jt()),e}())!==r&&Gt()!==r?(123===t.charCodeAt(ht)?(i="{",ht++):(i=r,0===gt&&_t(p)),i!==r?(pt=ht,te.push("plural"),void 0!==r&&(s=zt())!==r?(125===t.charCodeAt(ht)?(o="}",ht++):(o=r,0===gt&&_t(b)),o!==r?(pt=e,a=n,c=s,te.pop(),e=ft({id:a,value:c},ne())):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}function Pt(){var e;return gt++,P.test(t.charAt(ht))?(e=t.charAt(ht),ht++):(e=r,0===gt&&_t(H)),gt--,e===r&&0===gt&&_t(U),e}function Ht(){var e;return gt++,B.test(t.charAt(ht))?(e=t.charAt(ht),ht++):(e=r,0===gt&&_t(W)),gt--,e===r&&0===gt&&_t(G),e}function Gt(){var e,n,i;for(gt++,e=ht,n=[],i=Pt();i!==r;)n.push(i),i=Pt();return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(V)),e}function Bt(){var e,n,i,s;return gt++,e=ht,45===t.charCodeAt(ht)?(n="-",ht++):(n=r,0===gt&&_t(Q)),n===r&&(n=null),n!==r&&(i=Kt())!==r?(pt=e,e=n=(s=i)?n?-s:s:0):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(Y)),e}function Wt(){var e,n;return gt++,e=ht,"''"===t.substr(ht,2)?(n="''",ht+=2):(n=r,0===gt&&_t(J)),n!==r&&(pt=e,n="'"),gt--,(e=n)===r&&(n=r,0===gt&&_t(K)),e}function Vt(){var e,n,i,s,o,a;if(e=ht,39===t.charCodeAt(ht)?(n="'",ht++):(n=r,0===gt&&_t(A)),n!==r)if((i=function(){var e,n,i,s,o;return e=ht,n=ht,t.length>ht?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(w)),i!==r?(pt=ht,(s=(s="<"===(o=i)||">"===o||"{"===o||"}"===o||ee()&&"#"===o)?void 0:r)!==r?n=i=[i,s]:(ht=n,n=r)):(ht=n,n=r),e=n!==r?t.substring(e,ht):n}())!==r){for(s=ht,o=[],"''"===t.substr(ht,2)?(a="''",ht+=2):(a=r,0===gt&&_t(J)),a===r&&(z.test(t.charAt(ht))?(a=t.charAt(ht),ht++):(a=r,0===gt&&_t(I)));a!==r;)o.push(a),"''"===t.substr(ht,2)?(a="''",ht+=2):(a=r,0===gt&&_t(J)),a===r&&(z.test(t.charAt(ht))?(a=t.charAt(ht),ht++):(a=r,0===gt&&_t(I)));(s=o!==r?t.substring(s,ht):o)!==r?(39===t.charCodeAt(ht)?(o="'",ht++):(o=r,0===gt&&_t(A)),o===r&&(o=null),o!==r?(pt=e,e=n=i+s.replace("''","'")):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;return e}function Yt(){var e,n,i,s,o;return e=ht,n=ht,t.length>ht?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(w)),i!==r?(pt=ht,(s=(s=!("<"===(o=i)||"{"===o||ee()&&"#"===o||te.length>1&&"}"===o))?void 0:r)!==r?n=i=[i,s]:(ht=n,n=r)):(ht=n,n=r),n===r&&(10===t.charCodeAt(ht)?(n="\n",ht++):(n=r,0===gt&&_t(tt))),n!==r?t.substring(e,ht):n}function Qt(){var e,n;return gt++,e=ht,(n=Kt())===r&&(n=Jt()),e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(et)),e}function Xt(){var e,n;return gt++,e=ht,(n=Kt())===r&&(n=function(){var e,n,i,s,o;if(gt++,e=ht,n=[],45===t.charCodeAt(ht)?(i="-",ht++):(i=r,0===gt&&_t(Q)),i===r&&(i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r)),i!==r)for(;i!==r;)n.push(i),45===t.charCodeAt(ht)?(i="-",ht++):(i=r,0===gt&&_t(Q)),i===r&&(i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r));else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(lt)),e}()),e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(nt)),e}function Kt(){var e,n,i,s,o;if(gt++,e=ht,48===t.charCodeAt(ht)?(n="0",ht++):(n=r,0===gt&&_t(it)),n!==r&&(pt=e,n=0),(e=n)===r){if(e=ht,n=ht,st.test(t.charAt(ht))?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(ot)),i!==r){for(s=[],at.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(ct));o!==r;)s.push(o),at.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(ct));s!==r?n=i=[i,s]:(ht=n,n=r)}else ht=n,n=r;n!==r&&(pt=e,n=parseInt(n.join(""),10)),e=n}return gt--,e===r&&(n=r,0===gt&&_t(rt)),e}function Jt(){var e,n,i,s,o;if(gt++,e=ht,n=[],i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r);else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(ut)),e}var te=["root"];function ee(){return"plural"===te[te.length-1]}function ne(){return e&&e.captureLocation?{location:yt()}:{}}var re,ie,se,oe=e&&e.ignoreTag;if((n=s())!==r&&ht===t.length)return n;throw n!==r&&ht<t.length&&_t({type:"end"}),re=mt,ie=vt<t.length?t.charAt(vt):null,se=Et(vt,vt<t.length?vt+1:vt),new dt(dt.buildMessage(re,ie),re,ie,se)},bt=/(^|[^\\])#/g,vt=function(){return(vt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},mt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function gt(t){var e={};return t.replace(mt,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),e}var wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,yt=/^(@+)?(\+|#+)?$/g;function xt(t){var e={};return t.replace(yt,(function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),e}function kt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function qt(t){return kt(t)||{}}function $t(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":e.style="percent";continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=vt(vt(vt({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return vt(vt({},t),qt(e))}),{}));continue;case"engineering":e=vt(vt(vt({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return vt(vt({},t),qt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue}if(wt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(wt,(function(t,n,r,i,s,o){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:s&&o?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+o.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""})),i.options.length&&(e=vt(vt({},e),xt(i.options[0])))}else if(yt.test(i.stem))e=vt(vt({},e),xt(i.stem));else{var s=kt(i.stem);s&&(e=vt(vt({},e),s))}}return e}function St(t,e){var n=pt(t,e);return e&&!1===e.normalizeHashtagInPlural||function t(e){e.forEach((function(e){(st(e)||it(e))&&Object.keys(e.options).forEach((function(n){for(var r,i=e.options[n],s=-1,o=void 0,a=0;a<i.value.length;a++){var c=i.value[a];if(J(c)&&bt.test(c.value)){s=a,o=c;break}}if(o){var u=o.value.replace(bt,"$1{"+e.value+", number}"),l=pt(u);(r=i.value).splice.apply(r,function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}([s,1],l))}t(i.value)}))}))}(n),n}var Et=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};function _t(t){return JSON.stringify(t.map((function(t){return t&&"object"==typeof t?(e=t,Object.keys(e).sort().map((function(t){var n;return(n={})[t]=e[t],n}))):t;var e})))}var At,zt=function(t,e){return void 0===e&&(e={}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=_t(r),o=s&&e[s];return o||(o=new((n=t).bind.apply(n,Et([void 0],r))),s&&(e[s]=o)),o}},It=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(At||(At={}));var Tt,jt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return It(e,t),e.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},e}(Error),Ot=function(t){function e(e,n,r,i){return t.call(this,'Invalid values for "'+e+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE",i)||this}return It(e,t),e}(jt),Rt=function(t){function e(e,n,r){return t.call(this,'Value for "'+e+'" must be of type '+n,"INVALID_VALUE",r)||this}return It(e,t),e}(jt),Ft=function(t){function e(e,n){return t.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+n+'"',"MISSING_VALUE",n)||this}return It(e,t),e}(jt);function Ct(t){return"function"==typeof t}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Tt||(Tt={}));var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var Lt=function(){function t(e,n,r,i){var s,o,a=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&0===e.type&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return function t(e,n,r,i,s,o,a){if(1===e.length&&J(e[0]))return[{type:0,value:e[0].value}];for(var c=[],u=0,l=e;u<l.length;u++){var h=l[u];if(J(h))c.push({type:0,value:h.value});else if(ot(h))"number"==typeof o&&c.push({type:0,value:r.getNumberFormat(n).format(o)});else{var f=h.value;if(!s||!(f in s))throw new Ft(f,a);var d=s[f];if(tt(h))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),c.push({type:"string"==typeof d?0:1,value:d});else if(nt(h)){var p="string"==typeof h.style?i.date[h.style]:ut(h.style)?gt(h.style.pattern):void 0;c.push({type:0,value:r.getDateTimeFormat(n,p).format(d)})}else if(rt(h))p="string"==typeof h.style?i.time[h.style]:ut(h.style)?gt(h.style.pattern):void 0,c.push({type:0,value:r.getDateTimeFormat(n,p).format(d)});else if(et(h))p="string"==typeof h.style?i.number[h.style]:ct(h.style)?$t(h.style.tokens):void 0,c.push({type:0,value:r.getNumberFormat(n,p).format(d)});else{if(at(h)){var b=h.children,v=h.value,m=s[v];if(!Ct(m))throw new Rt(v,"function",a);var g=t(b,n,r,i,s,o),w=m.apply(void 0,g.map((function(t){return t.value})));Array.isArray(w)||(w=[w]),c.push.apply(c,w.map((function(t){return{type:"string"==typeof t?0:1,value:t}})))}if(it(h)){if(!(y=h.options[d]||h.options.other))throw new Ot(h.value,d,Object.keys(h.options),a);c.push.apply(c,t(y.value,n,r,i,s))}else if(st(h)){var y;if(!(y=h.options["="+d])){if(!Intl.PluralRules)throw new jt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",a);var x=r.getPluralRules(n,{type:h.pluralType}).select(d-(h.offset||0));y=h.options[x]||h.options.other}if(!y)throw new Ot(h.value,d,Object.keys(h.options),a);c.push.apply(c,t(y.value,n,r,i,s,d-(h.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&0===n.type&&0===e.type?n.value+=e.value:t.push(e),t}),[])}(c)}(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,(o=r)?Object.keys(s).reduce((function(t,e){var n,r;return t[e]=(n=s[e],(r=o[e])?Mt(Mt(Mt({},n||{}),r||{}),Object.keys(n).reduce((function(t,e){return t[e]=Mt(Mt({},n[e]),r[e]||{}),t}),{})):n),t}),Mt({},s)):s),this.locales=n,this.formatters=i&&i.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zt(Intl.NumberFormat,t.number),getDateTimeFormat:zt(Intl.DateTimeFormat,t.dateTime),getPluralRules:zt(Intl.PluralRules,t.pluralRules)}}(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!0,configurable:!0}),t.memoizedDefaultLocale=null,t.__parse=St,t.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function Dt(t){var e=new Date(t);return e.setHours(0,0,0,0),e}var Nt=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"];function Zt(t){if(!t||~Nt.indexOf(t))return!0;if("string"==typeof t){var e=/s$/.test(t)&&t.substr(0,t.length-1);if(e&&~Nt.indexOf(e))throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'units' value, did you mean: "+e)}throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'units' value, it must be one of: "+Nt.join('", "'))}function Ut(t){if(!t)return"best fit";if("best fit"===t||"numeric"===t)return t;throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'style' value, it must be one of: 'best fit' or 'numeric'")}var Pt=function(t,e){void 0===e&&(e={});var n={style:Ut(e.style),units:Zt(e.units)&&e.units},r="best fit"===n.style?"auto":"always",i=new Intl.RelativeTimeFormat(t,{numeric:r});return{format:function(e,i){var s=i&&void 0!==i.now?null===i.now?0:i.now:Date.now();if(void 0===e&&(e=s),!isFinite(s))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var o=function(t,e){t=+t,e=+e;var n,r,i,s,o,a=Math.round(e-t),c=Math.round(a/1e3),u=Math.round(c/60),l=Math.round(u/60),h=(n=t,r=Dt(e),i=Dt(n),s=r.getTime()-6e4*r.getTimezoneOffset(),o=i.getTime()-6e4*i.getTimezoneOffset(),Math.round((s-o)/864e5)),f=Math.round(h/7),d=400*h/146097,p=Math.round(12*d),b=Math.round(d);return{second:c,"second-short":c,"second-narrow":c,minute:u,"minute-short":u,"minute-narrow":u,hour:l,"hour-short":l,"hour-narrow":l,day:h,"day-short":h,"day-narrow":h,week:f,"week-short":f,"week-narrow":f,month:p,"month-short":p,"month-narrow":p,year:b,"year-short":b,"year-narrow":b}}(s,e),a=n.units||function(t){for(var e=Nt.filter((function(t){return t.indexOf("-short")<1})),n=e[0],r=0,i=e;r<i.length&&(n=i[r],!(Math.abs(t[n])<Pt.thresholds[n]));r++);return n}(o),c=o[a],u="-short"===a.substring(a.length-6,a.length)?"narrow":"long",l=a.replace("-short","");return new Intl.RelativeTimeFormat(t,{numeric:r,style:u}).format(c,l)},resolvedOptions:function(){return{locale:i.resolvedOptions().locale,style:n.style,units:n.units}}}};Pt.defaultLocale="en",Pt.thresholds={second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11};const Ht={format(t,e,n){var r=(n||"en-US").replace("_","-");return new Lt(t,r).format(e)},formatRelative(t,e){var n=(e||"en-US").replace("_","-");return new Pt(n).format(t)}},Gt=class{constructor(e){t(this,e)}getName(){const t=this.referral,e=this.referral;return t.referredUser?t.referredUser.firstName||this.unknownuser:e.referrerUser&&e.referrerUser.firstName||this.unknownuser}getIcon(){return"converted"!==this.referraltype&&"referrer"!==this.referraltype||this.rewardIsExpired()||this.rewardIsCancelled()?"icon-attention":"icon-ok-circled"}getContent(t){return this.rewardIsExpired()&&this.referralvariables.expiredcontent?Ht.format(this.referralvariables.expiredcontent,t,this.locale):this.rewardIsCancelled()&&this.referralvariables.cancelledcontent?Ht.format(this.referralvariables.cancelledcontent,t,this.locale):this.referraltype?Ht.format(this.referralvariables[this.referraltype+"content"],t,this.locale):""}rewardIsExpired(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("EXPIRED")>-1}rewardIsCancelled(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("CANCELLED")>-1}rewardIsRedeemed(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("REDEEMED")>-1}getValue(){const{rewards:t}=this.referral;return 0==t.length?"referrer"===this.referraltype||"converted"===this.referraltype?this.referralvariables.referrervalue:this.referralvariables.pendingvalue:t.length>0&&this.referralvariables.usefirstreward&&t[t.length-1].prettyValue||t[0].prettyValue}getValueContent(t){const{rewards:e}=this.referral;if(!e.length)return"";if(1==e.length){if(this.rewardIsExpired())return Ht.format(this.referralvariables.expiredvalue,t,this.locale);if(this.rewardIsCancelled())return Ht.format(this.referralvariables.cancelledvalue,t,this.locale);if(this.rewardIsRedeemed())return Ht.format(this.referralvariables.redeemedvalue||"Redeemed",t,this.locale);if(this.referralvariables.showexpiry&&e[0].dateExpires){const n=Ht.formatRelative(e[0].dateExpires,this.locale);return Ht.format(this.referralvariables.expiresvalue||"Expires "+n,Object.assign(Object.assign({},t),{expiryDate:n}),this.locale)}return""}return Ht.format(this.referralvariables.valuecontent,t,this.locale)}getNote(){const{rewards:t}=this.referral;return t[0]&&t[0].meta&&t[0].meta.message||""}render(){const{dateReferralStarted:t,rewards:n}=this.referral,r={date:Ht.formatRelative(t,this.locale),extrarewards:n.length-1},i=this.getName(),s=this.getIcon(),o=this.getContent(r),a=this.getValue(),c=this.getValueContent(r),u=this.getNote();return e("div",{class:"squatch-referrals-row"},e("div",null,e("div",{class:"squatch-referrals-heading"},i),e("div",{class:"squatch-referrals-description"},o),this.referralvariables.shownotes&&u&&e("div",{class:"squatch-referrals-description squatch-customer-note",title:u},u)),e("i",{class:`icon squatch-referrals-icon ${s} ${this.rewardIsExpired()&&"expired"} ${this.rewardIsCancelled()&&"cancelled"}`}),e("div",{class:"sqh-column-two"},e("div",{class:`squatch-referrals-value ${this.rewardIsCancelled()&&"cancelled"} ${n.length>0?this.rewardIsExpired()?"expired":"":"referrer"===this.referraltype||"converted"===this.referraltype?"referrer":"pending"}`},a),e("div",{class:`squatch-value-contents ${this.rewardIsExpired()&&"expired"} ${this.rewardIsCancelled()&&"cancelled"}`},c)))}};Gt.style="sqh-referral-component:nth-child(3) .squatch-referrals-row{border-bottom:none}sqh-referral-component .squatch-referrals-row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:80px;border-bottom:1px solid #ececec;max-width:500px;margin:0 auto;padding:0 20px;line-height:1.6}sqh-referral-component .squatch-referrals-row>div:first-of-type{-ms-flex:1;flex:1}sqh-referral-component .squatch-referrals-row .icon{float:left;font-size:32px}sqh-referral-component .squatch-referrals-row .sqh-column-two{padding:10px 0}sqh-referral-component .squatch-referrals-value{width:175px;font-size:16px;float:left;margin:10px 0}sqh-referral-component .squatch-value-contents{font-size:13px;line-height:0px;padding-bottom:25px}sqh-referral-component .squatch-referrals-heading{font-size:16px}sqh-referral-component .squatch-referrals-description{font-size:13px}sqh-referral-component .squatch-customer-note{color:darkslategray;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (max-width: 499px){sqh-referral-component .squatch-referrals-description{display:none}sqh-referral-component .squatch-referrals-row{padding:0}sqh-referral-component .squatch-referrals-row>div:first-of-type{width:100px;overflow:hidden}}";const Bt=class{constructor(e){t(this,e),this.offset=0,this.loading=!0}componentWillLoad(){if(!this.ishidden)return this.getReferrals().then(t=>{this.referrals=t.referrals.data,this.referredBy=t.referredByReferral,this.referralsCount=t.referrals.totalCount,this.loading=!1,this.locale=t.locale}).catch(t=>{this.onError(t)})}getReferrals(t=0){return a.graphql.getReferrals(t)}paginate(t,e){if(this.loading)return null;let{referralsCount:n}=this;if(this.showreferrer&&this.referredBy&&n++,t>=n||t<0)return null;this.loading=!0;const{target:r}=e;r.innerText="...",this.getReferrals(t).then(e=>{r.innerText=t>this.offset?this.paginatemore:this.paginateless,this.referrals=e.referrals.data,this.offset=t,this.loading=!1})}onError(t){console.error(t),this.loading=!1}render(){let t,n;const r={usefirstreward:this.usefirstreward,referrercontent:this.referrercontent,convertedcontent:this.convertedcontent,pendingcontent:this.pendingcontent,pendingvalue:this.pendingvalue,referrervalue:this.referrervalue,valuecontent:this.valuecontent,expiredcontent:this.expiredcontent,expiredvalue:this.expiredvalue,expiresvalue:this.expiresvalue,redeemedvalue:this.redeemedvalue,showexpiry:this.showexpiry,shownotes:this.shownotes,cancelledvalue:this.cancelledvalue,cancelledcontent:this.cancelledcontent};this.referrals&&(n=this.referrals.map(t=>{const n=t.rewards.length>0||t.dateConverted?"converted":"pending";return e("sqh-referral-component",{id:p(),referral:t,referralvariables:r,referraltype:n,unknownuser:this.unknownuser,locale:this.internationalization?this.locale:"en-US"})})),this.referrals.length<3&&this.referredBy&&this.showreferrer&&(t=e("sqh-referral-component",{id:p(),referral:this.referredBy,referralvariables:r,referraltype:"referrer",unknownuser:this.unknownuser,locale:this.internationalization?this.locale:"en-US"}));const i=H`
64
+ `;return!this.ishidden&&e("div",{class:t},e("div",{class:"stat-value"},this.statvalue),e("div",{class:"stat-description"},this.statdescription))}get elem(){return r(this)}static get watchers(){return{stattype:["stattypeHandler"]}}};var X,K;function J(t){return t.type===X.literal}function tt(t){return t.type===X.argument}function et(t){return t.type===X.number}function nt(t){return t.type===X.date}function rt(t){return t.type===X.time}function it(t){return t.type===X.select}function st(t){return t.type===X.plural}function ot(t){return t.type===X.pound}function at(t){return t.type===X.tag}function ct(t){return!(!t||"object"!=typeof t||0!==t.type)}function ut(t){return!(!t||"object"!=typeof t||1!==t.type)}Q.style="sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}",function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(X||(X={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(K||(K={}));var lt,ht=(lt=function(t,e){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}lt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ft=function(){return(ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},dt=function(t){function e(n,r,i,s){var o=t.call(this)||this;return o.message=n,o.expected=r,o.found=i,o.location=s,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,e),o}return ht(e,t),e.buildMessage=function(t,e){function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function r(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(t){switch(t.type){case"literal":return'"'+r(t.text)+'"';case"class":var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e+"]";case"any":return"any character";case"end":return"end of input";case"other":return t.description}}return"Expected "+function(t){var e,n,r=t.map(s);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+((o=e)?'"'+r(o)+'"':"end of input")+" found.";var o},e}(Error),pt=function(t,e){e=void 0!==e?e:{};var n,r={},i={start:At},s=At,o=kt("<",!1),a=function(t){return t.join("")},c=kt("#",!1),u=$t("tagElement"),l=kt("/>",!1),h=kt(">",!1),f=kt("</",!1),d=$t("argumentElement"),p=kt("{",!1),b=kt("}",!1),v=$t("numberSkeletonId"),m=/^['\/{}]/,g=qt(["'","/","{","}"],!1,!1),w={type:"any"},y=$t("numberSkeletonTokenOption"),x=kt("/",!1),k=$t("numberSkeletonToken"),q=kt("::",!1),$=function(t){return te.pop(),t.replace(/\s*$/,"")},S=kt(",",!1),E=kt("number",!1),_=function(t,e,n){return ft({type:"number"===e?X.number:"date"===e?X.date:X.time,style:n&&n[2],value:t},ne())},A=kt("'",!1),z=/^[^']/,I=qt(["'"],!0,!1),T=/^[^a-zA-Z'{}]/,j=qt([["a","z"],["A","Z"],"'","{","}"],!0,!1),O=/^[a-zA-Z]/,R=qt([["a","z"],["A","Z"]],!1,!1),F=kt("date",!1),C=kt("time",!1),M=kt("plural",!1),L=kt("selectordinal",!1),D=kt("offset:",!1),N=kt("select",!1),Z=kt("=",!1),U=$t("whitespace"),P=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,H=qt([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),G=$t("syntax pattern"),B=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,W=qt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),V=$t("optional whitespace"),Y=$t("number"),Q=kt("-",!1),K=$t("double apostrophes"),J=kt("''",!1),tt=kt("\n",!1),et=$t("argNameOrNumber"),nt=$t("validTag"),rt=$t("argNumber"),it=kt("0",!1),st=/^[1-9]/,ot=qt([["1","9"]],!1,!1),at=/^[0-9]/,ct=qt([["0","9"]],!1,!1),ut=$t("argName"),lt=$t("tagName"),ht=0,pt=0,bt=[{line:1,column:1}],vt=0,mt=[],gt=0;if(void 0!==e.startRule){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');s=i[e.startRule]}function wt(){return t.substring(pt,ht)}function yt(){return Et(pt,ht)}function xt(t,e){throw function(t,e){return new dt(t,[],"",e)}(t,e=void 0!==e?e:Et(pt,ht))}function kt(t,e){return{type:"literal",text:t,ignoreCase:e}}function qt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function $t(t){return{type:"other",description:t}}function St(e){var n,r=bt[e];if(r)return r;for(n=e-1;!bt[n];)n--;for(r={line:(r=bt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return bt[e]=r,r}function Et(t,e){var n=St(t),r=St(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function _t(t){ht<vt||(ht>vt&&(vt=ht,mt=[]),mt.push(t))}function At(){return zt()}function zt(){var t,e;for(t=[],e=It();e!==r;)t.push(e),e=It();return t}function It(){var e,n;return e=ht,pt=ht,(oe?r:void 0)!==r&&(n=function(){var t,e,n,i,s,o,a;return gt++,(t=Ot())===r&&(t=ht,(e=Rt())!==r&&(n=zt())!==r&&(i=Ft())!==r?(pt=t,o=n,(s=e)!==(a=i)&&xt('Mismatch tag "'+s+'" !== "'+a+'"',yt()),t=e=ft({type:X.tag,value:s,children:o},ne())):(ht=t,t=r)),gt--,t===r&&(e=r,0===gt&&_t(u)),t}())!==r?(pt=e,e=n):(ht=e,e=r),e===r&&(e=function(){var t,e;return t=ht,(e=Tt())!==r&&(pt=t,e=ft({type:X.literal,value:e},ne())),e}())===r&&(e=function(){var e,n,i,s;return gt++,e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(125===t.charCodeAt(ht)?(s="}",ht++):(s=r,0===gt&&_t(b)),s!==r?(pt=e,e=n=ft({type:X.argument,value:i},ne())):(ht=e,e=r)):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(d)),e}())===r&&(e=function(){var e;return(e=function(){var e,n,i,s,o,a,c,u,l;return e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r&&Gt()!==r?("number"===t.substr(ht,6)?(o="number",ht+=6):(o=r,0===gt&&_t(E)),o!==r&&Gt()!==r?(a=ht,44===t.charCodeAt(ht)?(c=",",ht++):(c=r,0===gt&&_t(S)),c!==r&&(u=Gt())!==r&&(l=function(){var e,n,i;return e=ht,"::"===t.substr(ht,2)?(n="::",ht+=2):(n=r,0===gt&&_t(q)),n!==r&&(i=function(){var t,e,n;if(t=ht,e=[],(n=Lt())!==r)for(;n!==r;)e.push(n),n=Lt();else e=r;return e!==r&&(pt=t,e=ft({type:0,tokens:e},ne())),e}())!==r?(pt=e,e=n=i):(ht=e,e=r),e===r&&(e=ht,pt=ht,te.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Tt())!==r?(pt=e,e=n=$(i)):(ht=e,e=r)),e}())!==r?a=c=[c,u,l]:(ht=a,a=r),a===r&&(a=null),a!==r&&(c=Gt())!==r?(125===t.charCodeAt(ht)?(u="}",ht++):(u=r,0===gt&&_t(b)),u!==r?(pt=e,e=n=_(i,o,a)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l;return e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r&&Gt()!==r?("date"===t.substr(ht,4)?(o="date",ht+=4):(o=r,0===gt&&_t(F)),o===r&&("time"===t.substr(ht,4)?(o="time",ht+=4):(o=r,0===gt&&_t(C))),o!==r&&Gt()!==r?(a=ht,44===t.charCodeAt(ht)?(c=",",ht++):(c=r,0===gt&&_t(S)),c!==r&&(u=Gt())!==r&&(l=function(){var e,n,i;return e=ht,"::"===t.substr(ht,2)?(n="::",ht+=2):(n=r,0===gt&&_t(q)),n!==r&&(i=function(){var e,n,i,s;if(e=ht,n=ht,i=[],(s=Dt())===r&&(s=Nt()),s!==r)for(;s!==r;)i.push(s),(s=Dt())===r&&(s=Nt());else i=r;return(n=i!==r?t.substring(n,ht):i)!==r&&(pt=e,n=ft({type:1,pattern:n},ne())),n}())!==r?(pt=e,e=n=i):(ht=e,e=r),e===r&&(e=ht,pt=ht,te.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Tt())!==r?(pt=e,e=n=$(i)):(ht=e,e=r)),e}())!==r?a=c=[c,u,l]:(ht=a,a=r),a===r&&(a=null),a!==r&&(c=Gt())!==r?(125===t.charCodeAt(ht)?(u="}",ht++):(u=r,0===gt&&_t(b)),u!==r?(pt=e,e=n=_(i,o,a)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}()),e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l,h,f;if(e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r)if(Gt()!==r)if((i=Qt())!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r)if(Gt()!==r)if("plural"===t.substr(ht,6)?(o="plural",ht+=6):(o=r,0===gt&&_t(M)),o===r&&("selectordinal"===t.substr(ht,13)?(o="selectordinal",ht+=13):(o=r,0===gt&&_t(L))),o!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(a=",",ht++):(a=r,0===gt&&_t(S)),a!==r)if(Gt()!==r)if(c=ht,"offset:"===t.substr(ht,7)?(u="offset:",ht+=7):(u=r,0===gt&&_t(D)),u!==r&&(l=Gt())!==r&&(h=Bt())!==r?c=u=[u,l,h]:(ht=c,c=r),c===r&&(c=null),c!==r)if((u=Gt())!==r){if(l=[],(h=Ut())!==r)for(;h!==r;)l.push(h),h=Ut();else l=r;l!==r&&(h=Gt())!==r?(125===t.charCodeAt(ht)?(f="}",ht++):(f=r,0===gt&&_t(b)),f!==r?(pt=e,e=n=function(t,e,n,r){return ft({type:X.plural,pluralType:"plural"===e?"cardinal":"ordinal",value:t,offset:n?n[2]:0,options:r.reduce((function(t,e){var n=e.id,r=e.value,i=e.location;return n in t&&xt('Duplicate option "'+n+'" in plural element: "'+wt()+'"',yt()),t[n]={value:r,location:i},t}),{})},ne())}(i,o,c,l)):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;return e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l;if(e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r)if(Gt()!==r)if((i=Qt())!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r)if(Gt()!==r)if("select"===t.substr(ht,6)?(o="select",ht+=6):(o=r,0===gt&&_t(N)),o!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(a=",",ht++):(a=r,0===gt&&_t(S)),a!==r)if(Gt()!==r){if(c=[],(u=Zt())!==r)for(;u!==r;)c.push(u),u=Zt();else c=r;c!==r&&(u=Gt())!==r?(125===t.charCodeAt(ht)?(l="}",ht++):(l=r,0===gt&&_t(b)),l!==r?(pt=e,e=n=function(t,e){return ft({type:X.select,value:t,options:e.reduce((function(t,e){var n=e.id,r=e.value,i=e.location;return n in t&&xt('Duplicate option "'+n+'" in select element: "'+wt()+'"',yt()),t[n]={value:r,location:i},t}),{})},ne())}(i,c)):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;return e}())===r&&(e=function(){var e,n;return e=ht,35===t.charCodeAt(ht)?(n="#",ht++):(n=r,0===gt&&_t(c)),n!==r&&(pt=e,n=ft({type:X.pound},ne())),n}()),e}function Tt(){var e,n,i,s;if(e=ht,pt=ht,(n=(n=oe)?void 0:r)!==r){if(i=[],(s=Wt())===r&&(s=Vt())===r&&(s=Yt())===r&&(60===t.charCodeAt(ht)?(s="<",ht++):(s=r,0===gt&&_t(o))),s!==r)for(;s!==r;)i.push(s),(s=Wt())===r&&(s=Vt())===r&&(s=Yt())===r&&(60===t.charCodeAt(ht)?(s="<",ht++):(s=r,0===gt&&_t(o)));else i=r;i!==r?(pt=e,e=n=a(i)):(ht=e,e=r)}else ht=e,e=r;if(e===r){if(e=ht,n=[],(i=Wt())===r&&(i=Vt())===r&&(i=Yt())===r&&(i=jt()),i!==r)for(;i!==r;)n.push(i),(i=Wt())===r&&(i=Vt())===r&&(i=Yt())===r&&(i=jt());else n=r;n!==r&&(pt=e,n=a(n)),e=n}return e}function jt(){var e,n,i;return e=ht,n=ht,gt++,(i=Rt())===r&&(i=Ft())===r&&(i=Ot()),gt--,i===r?n=void 0:(ht=n,n=r),n!==r?(60===t.charCodeAt(ht)?(i="<",ht++):(i=r,0===gt&&_t(o)),i!==r?(pt=e,e=n="<"):(ht=e,e=r)):(ht=e,e=r),e}function Ot(){var e,n,i,s,a,c;return e=ht,n=ht,60===t.charCodeAt(ht)?(i="<",ht++):(i=r,0===gt&&_t(o)),i!==r&&(s=Xt())!==r&&(a=Gt())!==r?("/>"===t.substr(ht,2)?(c="/>",ht+=2):(c=r,0===gt&&_t(l)),c!==r?n=i=[i,s,a,c]:(ht=n,n=r)):(ht=n,n=r),n!==r&&(pt=e,n=ft({type:X.literal,value:n.join("")},ne())),n}function Rt(){var e,n,i,s;return e=ht,60===t.charCodeAt(ht)?(n="<",ht++):(n=r,0===gt&&_t(o)),n!==r&&(i=Xt())!==r?(62===t.charCodeAt(ht)?(s=">",ht++):(s=r,0===gt&&_t(h)),s!==r?(pt=e,e=n=i):(ht=e,e=r)):(ht=e,e=r),e}function Ft(){var e,n,i,s;return e=ht,"</"===t.substr(ht,2)?(n="</",ht+=2):(n=r,0===gt&&_t(f)),n!==r&&(i=Xt())!==r?(62===t.charCodeAt(ht)?(s=">",ht++):(s=r,0===gt&&_t(h)),s!==r?(pt=e,e=n=i):(ht=e,e=r)):(ht=e,e=r),e}function Ct(){var e,n,i,s,o;if(gt++,e=ht,n=[],i=ht,s=ht,gt++,(o=Pt())===r&&(m.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(g))),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ht,s=ht,gt++,(o=Pt())===r&&(m.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(g))),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r);else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(v)),e}function Mt(){var e,n,i;return gt++,e=ht,47===t.charCodeAt(ht)?(n="/",ht++):(n=r,0===gt&&_t(x)),n!==r&&(i=Ct())!==r?(pt=e,e=n=i):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(y)),e}function Lt(){var t,e,n,i;if(gt++,t=ht,Gt()!==r)if((e=Ct())!==r){for(n=[],i=Mt();i!==r;)n.push(i),i=Mt();n!==r?(pt=t,t=function(t,e){return{stem:t,options:e}}(e,n)):(ht=t,t=r)}else ht=t,t=r;else ht=t,t=r;return gt--,t===r&&0===gt&&_t(k),t}function Dt(){var e,n,i,s;if(e=ht,39===t.charCodeAt(ht)?(n="'",ht++):(n=r,0===gt&&_t(A)),n!==r){if(i=[],(s=Wt())===r&&(z.test(t.charAt(ht))?(s=t.charAt(ht),ht++):(s=r,0===gt&&_t(I))),s!==r)for(;s!==r;)i.push(s),(s=Wt())===r&&(z.test(t.charAt(ht))?(s=t.charAt(ht),ht++):(s=r,0===gt&&_t(I)));else i=r;i!==r?(39===t.charCodeAt(ht)?(s="'",ht++):(s=r,0===gt&&_t(A)),s!==r?e=n=[n,i,s]:(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;if(e===r)if(e=[],(n=Wt())===r&&(T.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(j))),n!==r)for(;n!==r;)e.push(n),(n=Wt())===r&&(T.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(j)));else e=r;return e}function Nt(){var e,n;if(e=[],O.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(R)),n!==r)for(;n!==r;)e.push(n),O.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(R));else e=r;return e}function Zt(){var e,n,i,s,o,a,c;return e=ht,Gt()!==r&&(n=Jt())!==r&&Gt()!==r?(123===t.charCodeAt(ht)?(i="{",ht++):(i=r,0===gt&&_t(p)),i!==r?(pt=ht,te.push("select"),void 0!==r&&(s=zt())!==r?(125===t.charCodeAt(ht)?(o="}",ht++):(o=r,0===gt&&_t(b)),o!==r?(pt=e,a=n,c=s,te.pop(),e=ft({id:a,value:c},ne())):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}function Ut(){var e,n,i,s,o,a,c;return e=ht,Gt()!==r&&(n=function(){var e,n,i,s;return e=ht,n=ht,61===t.charCodeAt(ht)?(i="=",ht++):(i=r,0===gt&&_t(Z)),i!==r&&(s=Bt())!==r?n=i=[i,s]:(ht=n,n=r),(e=n!==r?t.substring(e,ht):n)===r&&(e=Jt()),e}())!==r&&Gt()!==r?(123===t.charCodeAt(ht)?(i="{",ht++):(i=r,0===gt&&_t(p)),i!==r?(pt=ht,te.push("plural"),void 0!==r&&(s=zt())!==r?(125===t.charCodeAt(ht)?(o="}",ht++):(o=r,0===gt&&_t(b)),o!==r?(pt=e,a=n,c=s,te.pop(),e=ft({id:a,value:c},ne())):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}function Pt(){var e;return gt++,P.test(t.charAt(ht))?(e=t.charAt(ht),ht++):(e=r,0===gt&&_t(H)),gt--,e===r&&0===gt&&_t(U),e}function Ht(){var e;return gt++,B.test(t.charAt(ht))?(e=t.charAt(ht),ht++):(e=r,0===gt&&_t(W)),gt--,e===r&&0===gt&&_t(G),e}function Gt(){var e,n,i;for(gt++,e=ht,n=[],i=Pt();i!==r;)n.push(i),i=Pt();return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(V)),e}function Bt(){var e,n,i,s;return gt++,e=ht,45===t.charCodeAt(ht)?(n="-",ht++):(n=r,0===gt&&_t(Q)),n===r&&(n=null),n!==r&&(i=Kt())!==r?(pt=e,e=n=(s=i)?n?-s:s:0):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(Y)),e}function Wt(){var e,n;return gt++,e=ht,"''"===t.substr(ht,2)?(n="''",ht+=2):(n=r,0===gt&&_t(J)),n!==r&&(pt=e,n="'"),gt--,(e=n)===r&&(n=r,0===gt&&_t(K)),e}function Vt(){var e,n,i,s,o,a;if(e=ht,39===t.charCodeAt(ht)?(n="'",ht++):(n=r,0===gt&&_t(A)),n!==r)if((i=function(){var e,n,i,s,o;return e=ht,n=ht,t.length>ht?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(w)),i!==r?(pt=ht,(s=(s="<"===(o=i)||">"===o||"{"===o||"}"===o||ee()&&"#"===o)?void 0:r)!==r?n=i=[i,s]:(ht=n,n=r)):(ht=n,n=r),e=n!==r?t.substring(e,ht):n}())!==r){for(s=ht,o=[],"''"===t.substr(ht,2)?(a="''",ht+=2):(a=r,0===gt&&_t(J)),a===r&&(z.test(t.charAt(ht))?(a=t.charAt(ht),ht++):(a=r,0===gt&&_t(I)));a!==r;)o.push(a),"''"===t.substr(ht,2)?(a="''",ht+=2):(a=r,0===gt&&_t(J)),a===r&&(z.test(t.charAt(ht))?(a=t.charAt(ht),ht++):(a=r,0===gt&&_t(I)));(s=o!==r?t.substring(s,ht):o)!==r?(39===t.charCodeAt(ht)?(o="'",ht++):(o=r,0===gt&&_t(A)),o===r&&(o=null),o!==r?(pt=e,e=n=i+s.replace("''","'")):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;return e}function Yt(){var e,n,i,s,o;return e=ht,n=ht,t.length>ht?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(w)),i!==r?(pt=ht,(s=(s=!("<"===(o=i)||"{"===o||ee()&&"#"===o||te.length>1&&"}"===o))?void 0:r)!==r?n=i=[i,s]:(ht=n,n=r)):(ht=n,n=r),n===r&&(10===t.charCodeAt(ht)?(n="\n",ht++):(n=r,0===gt&&_t(tt))),n!==r?t.substring(e,ht):n}function Qt(){var e,n;return gt++,e=ht,(n=Kt())===r&&(n=Jt()),e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(et)),e}function Xt(){var e,n;return gt++,e=ht,(n=Kt())===r&&(n=function(){var e,n,i,s,o;if(gt++,e=ht,n=[],45===t.charCodeAt(ht)?(i="-",ht++):(i=r,0===gt&&_t(Q)),i===r&&(i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r)),i!==r)for(;i!==r;)n.push(i),45===t.charCodeAt(ht)?(i="-",ht++):(i=r,0===gt&&_t(Q)),i===r&&(i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r));else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(lt)),e}()),e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(nt)),e}function Kt(){var e,n,i,s,o;if(gt++,e=ht,48===t.charCodeAt(ht)?(n="0",ht++):(n=r,0===gt&&_t(it)),n!==r&&(pt=e,n=0),(e=n)===r){if(e=ht,n=ht,st.test(t.charAt(ht))?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(ot)),i!==r){for(s=[],at.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(ct));o!==r;)s.push(o),at.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(ct));s!==r?n=i=[i,s]:(ht=n,n=r)}else ht=n,n=r;n!==r&&(pt=e,n=parseInt(n.join(""),10)),e=n}return gt--,e===r&&(n=r,0===gt&&_t(rt)),e}function Jt(){var e,n,i,s,o;if(gt++,e=ht,n=[],i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r);else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(ut)),e}var te=["root"];function ee(){return"plural"===te[te.length-1]}function ne(){return e&&e.captureLocation?{location:yt()}:{}}var re,ie,se,oe=e&&e.ignoreTag;if((n=s())!==r&&ht===t.length)return n;throw n!==r&&ht<t.length&&_t({type:"end"}),re=mt,ie=vt<t.length?t.charAt(vt):null,se=Et(vt,vt<t.length?vt+1:vt),new dt(dt.buildMessage(re,ie),re,ie,se)},bt=/(^|[^\\])#/g,vt=function(){return(vt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},mt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function gt(t){var e={};return t.replace(mt,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),e}var wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,yt=/^(@+)?(\+|#+)?$/g;function xt(t){var e={};return t.replace(yt,(function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),e}function kt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function qt(t){return kt(t)||{}}function $t(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":e.style="percent";continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=vt(vt(vt({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return vt(vt({},t),qt(e))}),{}));continue;case"engineering":e=vt(vt(vt({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return vt(vt({},t),qt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue}if(wt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(wt,(function(t,n,r,i,s,o){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:s&&o?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+o.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""})),i.options.length&&(e=vt(vt({},e),xt(i.options[0])))}else if(yt.test(i.stem))e=vt(vt({},e),xt(i.stem));else{var s=kt(i.stem);s&&(e=vt(vt({},e),s))}}return e}function St(t,e){var n=pt(t,e);return e&&!1===e.normalizeHashtagInPlural||function t(e){e.forEach((function(e){(st(e)||it(e))&&Object.keys(e.options).forEach((function(n){for(var r,i=e.options[n],s=-1,o=void 0,a=0;a<i.value.length;a++){var c=i.value[a];if(J(c)&&bt.test(c.value)){s=a,o=c;break}}if(o){var u=o.value.replace(bt,"$1{"+e.value+", number}"),l=pt(u);(r=i.value).splice.apply(r,function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}([s,1],l))}t(i.value)}))}))}(n),n}var Et=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};function _t(t){return JSON.stringify(t.map((function(t){return t&&"object"==typeof t?(e=t,Object.keys(e).sort().map((function(t){var n;return(n={})[t]=e[t],n}))):t;var e})))}var At,zt=function(t,e){return void 0===e&&(e={}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=_t(r),o=s&&e[s];return o||(o=new((n=t).bind.apply(n,Et([void 0],r))),s&&(e[s]=o)),o}},It=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(At||(At={}));var Tt,jt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return It(e,t),e.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},e}(Error),Ot=function(t){function e(e,n,r,i){return t.call(this,'Invalid values for "'+e+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE",i)||this}return It(e,t),e}(jt),Rt=function(t){function e(e,n,r){return t.call(this,'Value for "'+e+'" must be of type '+n,"INVALID_VALUE",r)||this}return It(e,t),e}(jt),Ft=function(t){function e(e,n){return t.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+n+'"',"MISSING_VALUE",n)||this}return It(e,t),e}(jt);function Ct(t){return"function"==typeof t}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Tt||(Tt={}));var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var Lt=function(){function t(e,n,r,i){var s,o,a=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&0===e.type&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return function t(e,n,r,i,s,o,a){if(1===e.length&&J(e[0]))return[{type:0,value:e[0].value}];for(var c=[],u=0,l=e;u<l.length;u++){var h=l[u];if(J(h))c.push({type:0,value:h.value});else if(ot(h))"number"==typeof o&&c.push({type:0,value:r.getNumberFormat(n).format(o)});else{var f=h.value;if(!s||!(f in s))throw new Ft(f,a);var d=s[f];if(tt(h))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),c.push({type:"string"==typeof d?0:1,value:d});else if(nt(h)){var p="string"==typeof h.style?i.date[h.style]:ut(h.style)?gt(h.style.pattern):void 0;c.push({type:0,value:r.getDateTimeFormat(n,p).format(d)})}else if(rt(h))p="string"==typeof h.style?i.time[h.style]:ut(h.style)?gt(h.style.pattern):void 0,c.push({type:0,value:r.getDateTimeFormat(n,p).format(d)});else if(et(h))p="string"==typeof h.style?i.number[h.style]:ct(h.style)?$t(h.style.tokens):void 0,c.push({type:0,value:r.getNumberFormat(n,p).format(d)});else{if(at(h)){var b=h.children,v=h.value,m=s[v];if(!Ct(m))throw new Rt(v,"function",a);var g=t(b,n,r,i,s,o),w=m.apply(void 0,g.map((function(t){return t.value})));Array.isArray(w)||(w=[w]),c.push.apply(c,w.map((function(t){return{type:"string"==typeof t?0:1,value:t}})))}if(it(h)){if(!(y=h.options[d]||h.options.other))throw new Ot(h.value,d,Object.keys(h.options),a);c.push.apply(c,t(y.value,n,r,i,s))}else if(st(h)){var y;if(!(y=h.options["="+d])){if(!Intl.PluralRules)throw new jt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",a);var x=r.getPluralRules(n,{type:h.pluralType}).select(d-(h.offset||0));y=h.options[x]||h.options.other}if(!y)throw new Ot(h.value,d,Object.keys(h.options),a);c.push.apply(c,t(y.value,n,r,i,s,d-(h.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&0===n.type&&0===e.type?n.value+=e.value:t.push(e),t}),[])}(c)}(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,(o=r)?Object.keys(s).reduce((function(t,e){var n,r;return t[e]=(n=s[e],(r=o[e])?Mt(Mt(Mt({},n||{}),r||{}),Object.keys(n).reduce((function(t,e){return t[e]=Mt(Mt({},n[e]),r[e]||{}),t}),{})):n),t}),Mt({},s)):s),this.locales=n,this.formatters=i&&i.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zt(Intl.NumberFormat,t.number),getDateTimeFormat:zt(Intl.DateTimeFormat,t.dateTime),getPluralRules:zt(Intl.PluralRules,t.pluralRules)}}(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!0,configurable:!0}),t.memoizedDefaultLocale=null,t.__parse=St,t.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function Dt(t){var e=new Date(t);return e.setHours(0,0,0,0),e}var Nt=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"];function Zt(t){if(!t||~Nt.indexOf(t))return!0;if("string"==typeof t){var e=/s$/.test(t)&&t.substr(0,t.length-1);if(e&&~Nt.indexOf(e))throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'units' value, did you mean: "+e)}throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'units' value, it must be one of: "+Nt.join('", "'))}function Ut(t){if(!t)return"best fit";if("best fit"===t||"numeric"===t)return t;throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'style' value, it must be one of: 'best fit' or 'numeric'")}var Pt=function(t,e){void 0===e&&(e={});var n={style:Ut(e.style),units:Zt(e.units)&&e.units},r="best fit"===n.style?"auto":"always",i=new Intl.RelativeTimeFormat(t,{numeric:r});return{format:function(e,i){var s=i&&void 0!==i.now?null===i.now?0:i.now:Date.now();if(void 0===e&&(e=s),!isFinite(s))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var o=function(t,e){t=+t,e=+e;var n,r,i,s,o,a=Math.round(e-t),c=Math.round(a/1e3),u=Math.round(c/60),l=Math.round(u/60),h=(n=t,r=Dt(e),i=Dt(n),s=r.getTime()-6e4*r.getTimezoneOffset(),o=i.getTime()-6e4*i.getTimezoneOffset(),Math.round((s-o)/864e5)),f=Math.round(h/7),d=400*h/146097,p=Math.round(12*d),b=Math.round(d);return{second:c,"second-short":c,"second-narrow":c,minute:u,"minute-short":u,"minute-narrow":u,hour:l,"hour-short":l,"hour-narrow":l,day:h,"day-short":h,"day-narrow":h,week:f,"week-short":f,"week-narrow":f,month:p,"month-short":p,"month-narrow":p,year:b,"year-short":b,"year-narrow":b}}(s,e),a=n.units||function(t){for(var e=Nt.filter((function(t){return t.indexOf("-short")<1})),n=e[0],r=0,i=e;r<i.length&&(n=i[r],!(Math.abs(t[n])<Pt.thresholds[n]));r++);return n}(o),c=o[a],u="-short"===a.substring(a.length-6,a.length)?"narrow":"long",l=a.replace("-short","");return new Intl.RelativeTimeFormat(t,{numeric:r,style:u}).format(c,l)},resolvedOptions:function(){return{locale:i.resolvedOptions().locale,style:n.style,units:n.units}}}};Pt.defaultLocale="en",Pt.thresholds={second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11};const Ht={format(t,e,n){var r=(n||"en-US").replace("_","-");return new Lt(t,r).format(e)},formatRelative(t,e){var n=(e||"en-US").replace("_","-");return new Pt(n).format(t)}},Gt=class{constructor(e){t(this,e)}getName(){const t=this.referral,e=this.referral;return t.referredUser?t.referredUser.firstName||this.unknownuser:e.referrerUser&&e.referrerUser.firstName||this.unknownuser}getIcon(){return"converted"!==this.referraltype&&"referrer"!==this.referraltype||this.rewardIsExpired()||this.rewardIsCancelled()?"icon-attention":"icon-ok-circled"}getContent(t){return this.rewardIsExpired()&&this.referralvariables.expiredcontent?Ht.format(this.referralvariables.expiredcontent,t,this.locale):this.rewardIsCancelled()&&this.referralvariables.cancelledcontent?Ht.format(this.referralvariables.cancelledcontent,t,this.locale):this.referraltype?Ht.format(this.referralvariables[this.referraltype+"content"],t,this.locale):""}rewardIsExpired(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("EXPIRED")>-1}rewardIsCancelled(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("CANCELLED")>-1}rewardIsRedeemed(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("REDEEMED")>-1}getValue(){const{rewards:t}=this.referral;return 0==t.length?"referrer"===this.referraltype||"converted"===this.referraltype?this.referralvariables.referrervalue:this.referralvariables.pendingvalue:t.length>0&&this.referralvariables.usefirstreward&&t[t.length-1].prettyValue||t[0].prettyValue}getValueContent(t){const{rewards:e}=this.referral;if(!e.length)return"";if(1==e.length){if(this.rewardIsExpired())return Ht.format(this.referralvariables.expiredvalue,t,this.locale);if(this.rewardIsCancelled())return Ht.format(this.referralvariables.cancelledvalue,t,this.locale);if(this.rewardIsRedeemed())return Ht.format(this.referralvariables.redeemedvalue||"Redeemed",t,this.locale);if(this.referralvariables.showexpiry&&e[0].dateExpires){const n=Ht.formatRelative(e[0].dateExpires,this.locale);return Ht.format(this.referralvariables.expiresvalue||"Expires "+n,Object.assign(Object.assign({},t),{expiryDate:n}),this.locale)}return""}return Ht.format(this.referralvariables.valuecontent,t,this.locale)}getNote(){const{rewards:t}=this.referral;return t[0]&&t[0].meta&&t[0].meta.message||""}render(){const{dateReferralStarted:t,rewards:n}=this.referral,r={date:Ht.formatRelative(t,this.locale),extrarewards:n.length-1},i=this.getName(),s=this.getIcon(),o=this.getContent(r),a=this.getValue(),c=this.getValueContent(r),u=this.getNote();return e("div",{class:"squatch-referrals-row"},e("div",null,e("div",{class:"squatch-referrals-heading"},i),e("div",{class:"squatch-referrals-description"},o),this.referralvariables.shownotes&&u&&e("div",{class:"squatch-referrals-description squatch-customer-note",title:u},u)),e("i",{class:`icon squatch-referrals-icon ${s} ${this.rewardIsExpired()&&"expired"} ${this.rewardIsCancelled()&&"cancelled"}`}),e("div",{class:"sqh-column-two"},e("div",{class:`squatch-referrals-value ${this.rewardIsCancelled()&&"cancelled"} ${n.length>0?this.rewardIsExpired()?"expired":"":"referrer"===this.referraltype||"converted"===this.referraltype?"referrer":"pending"}`},a),e("div",{class:`squatch-value-contents ${this.rewardIsExpired()&&"expired"} ${this.rewardIsCancelled()&&"cancelled"}`},c)))}};Gt.style="sqh-referral-component:nth-child(3) .squatch-referrals-row{border-bottom:none}sqh-referral-component .squatch-referrals-row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:80px;border-bottom:1px solid #ececec;max-width:500px;margin:0 auto;padding:0 20px;line-height:1.6}sqh-referral-component .squatch-referrals-row>div:first-of-type{-ms-flex:1;flex:1}sqh-referral-component .squatch-referrals-row .icon{float:left;font-size:32px}sqh-referral-component .squatch-referrals-row .sqh-column-two{padding:10px 0}sqh-referral-component .squatch-referrals-value{width:175px;font-size:16px;float:left;margin:10px 0}sqh-referral-component .squatch-value-contents{font-size:13px;line-height:0px;padding-bottom:25px}sqh-referral-component .squatch-referrals-heading{font-size:16px}sqh-referral-component .squatch-referrals-description{font-size:13px}sqh-referral-component .squatch-customer-note{color:darkslategray;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (max-width: 499px){sqh-referral-component .squatch-referrals-description{display:none}sqh-referral-component .squatch-referrals-row{padding:0}sqh-referral-component .squatch-referrals-row>div:first-of-type{width:100px;overflow:hidden}}";const Bt=class{constructor(e){t(this,e),this.offset=0,this.loading=!0}componentWillLoad(){if(!this.ishidden)return this.getReferrals(this.showreferrer).then(t=>{this.referrals=t.referrals.data,this.referredBy=t.referredByReferral,this.referralsCount=t.referrals.totalCount,this.loading=!1,this.locale=t.locale}).catch(t=>{this.onError(t)})}getReferrals(t,e=0){return a.graphql.getReferrals(t,e)}paginate(t,e){if(this.loading)return null;let{referralsCount:n}=this;if(this.showreferrer&&this.referredBy&&n++,t>=n||t<0)return null;this.loading=!0;const{target:r}=e;r.innerText="...",this.getReferrals(t).then(e=>{r.innerText=t>this.offset?this.paginatemore:this.paginateless,this.referrals=e.referrals.data,this.offset=t,this.loading=!1})}onError(t){console.error(t),this.loading=!1}render(){let t,n;const r={usefirstreward:this.usefirstreward,referrercontent:this.referrercontent,convertedcontent:this.convertedcontent,pendingcontent:this.pendingcontent,pendingvalue:this.pendingvalue,referrervalue:this.referrervalue,valuecontent:this.valuecontent,expiredcontent:this.expiredcontent,expiredvalue:this.expiredvalue,expiresvalue:this.expiresvalue,redeemedvalue:this.redeemedvalue,showexpiry:this.showexpiry,shownotes:this.shownotes,cancelledvalue:this.cancelledvalue,cancelledcontent:this.cancelledcontent};this.referrals&&(n=this.referrals.map(t=>{const n=t.rewards.length>0||t.dateConverted?"converted":"pending";return e("sqh-referral-component",{id:p(),referral:t,referralvariables:r,referraltype:n,unknownuser:this.unknownuser,locale:this.internationalization?this.locale:"en-US"})})),this.referrals.length<3&&this.referredBy&&this.showreferrer&&(t=e("sqh-referral-component",{id:p(),referral:this.referredBy,referralvariables:r,referraltype:"referrer",unknownuser:this.unknownuser,locale:this.internationalization?this.locale:"en-US"}));const i=H`
65
65
  .squatch-referrals-icon.icon-ok-circled {
66
66
  color: ${this.rewardcolor};
67
67
  }
@@ -1 +1 @@
1
- import{r,h as o}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as e}from"./p-31a4d435.js";const s=class{constructor(o){r(this,o)}componentWillLoad(){return e.graphql.getReferralCode().then(r=>{this.referralcode=r}).catch(r=>{this.onError(r)})}onError(r){console.log("Error loading via GraphQL.",r)}render(){return o("span",null,this.referralcode)}};s.style="sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";export{s as sqh_referral_code}
1
+ import{r,h as o}from"./p-485eaf44.js";import"./p-b18ab5ec.js";import{A as e}from"./p-b4a53a7e.js";const s=class{constructor(o){r(this,o)}componentWillLoad(){return e.graphql.getReferralCode().then(r=>{this.referralcode=r}).catch(r=>{this.onError(r)})}onError(r){console.log("Error loading via GraphQL.",r)}render(){return o("span",null,this.referralcode)}};s.style="sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";export{s as sqh_referral_code}