@saasquatch/vanilla-components 1.2.3-1 → 1.3.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +143 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sqh-close-button.cjs.entry.js +8 -3
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +180 -8
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
- package/dist/cjs/widget-components.cjs.js +1 -1
- package/dist/collection/components/close-button/close-button.js +14 -3
- package/dist/collection/components/copy-button/copy-button.js +63 -24
- package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
- package/dist/collection/components/global-container/global-container.js +28 -10
- package/dist/collection/components/image-component/image-component.js +33 -12
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -11
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +28 -10
- package/dist/collection/components/referral-list/referral-list.js +206 -59
- package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
- package/dist/collection/components/share-button/share-button.js +58 -22
- package/dist/collection/components/share-button-container/share-button-container.js +824 -164
- package/dist/collection/components/stat-component/stat-component.js +28 -10
- package/dist/collection/components/stats-container/stats-container.js +23 -6
- package/dist/collection/components/text-component/text-component.js +58 -43
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/sqh-close-button.entry.js +8 -3
- package/dist/esm/sqh-copy-button_12.entry.js +179 -7
- package/dist/esm/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm/widget-components.mjs +1 -1
- package/dist/esm-es5/loader.mjs +1 -1
- package/dist/esm-es5/sqh-close-button.entry.js +14 -9
- package/dist/esm-es5/sqh-copy-button_12.entry.js +197 -25
- package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
- package/dist/esm-es5/widget-components.mjs +1 -1
- package/dist/types/components/close-button/close-button.d.ts +9 -1
- package/dist/types/components/copy-button/copy-button.d.ts +63 -0
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
- package/dist/types/components/global-container/global-container.d.ts +28 -0
- package/dist/types/components/image-component/image-component.d.ts +33 -0
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -1
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +28 -0
- package/dist/types/components/referral-list/referral-list.d.ts +167 -0
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
- package/dist/types/components/share-button/share-button.d.ts +58 -0
- package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
- package/dist/types/components/stat-component/stat-component.d.ts +28 -0
- package/dist/types/components/stats-container/stats-container.d.ts +18 -0
- package/dist/types/components/text-component/text-component.d.ts +58 -1
- package/dist/types/components.d.ts +1672 -2
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-93574d86.entry.js → p-d7059393.entry.js} +2 -2
- package/dist/widget-components/{p-45e253f6.system.entry.js → p-fba5ea7f.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/package.json +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-e61a8100.system.js","./p-a846f503.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-908068c2.system",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-c0cdba77.system",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-e2b4739f.system",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-
|
|
1
|
+
System.register(["./p-e61a8100.system.js","./p-a846f503.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-908068c2.system",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-c0cdba77.system",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-e2b4739f.system",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-fba5ea7f.system",[[0,"sqh-referral-list",{ishidden:[4],paginatemore:[1],paginateless:[1],noreferralsyet:[1],referralnamecolor:[1],referraltextcolor:[1],unknownuser:[1],showexpiry:[4],shownotes:[4],redeemedvalue:[1],showreferrer:[4],referrercontent:[1],referrervalue:[1],rewardcolor:[1],customernotecolor:[1],usefirstreward:[4],convertedcontent:[1],valuecontent:[1],pendingcolor:[1],pendingcontent:[1],pendingvalue:[1],expiredcolor:[1],expiredcontent:[1],expiredvalue:[1],expiresvalue:[1],cancelledcolor:[1],cancelledcontent:[1],cancelledvalue:[1],internationalization:[4],referrals:[32],referralsCount:[32],referredBy:[32],rewards:[32],loading:[32],offset:[32],locale:[32]}],[0,"sqh-share-button-container",{ishidden:[4],emaildisplayrule:[1],emailtext:[1],emailbackgroundcolor:[1],emailtextcolor:[1],emailicon:[1],emailclassName:[1,"emailclass-name"],emailiconhorizontal:[2],emailiconvertical:[2],emailiconsize:[2],facebookdisplayrule:[1],facebooktext:[1],facebookbackgroundcolor:[1],facebooktextcolor:[1],facebookicon:[1],facebookclassName:[1,"facebookclass-name"],facebookiconhorizontal:[2],facebookiconvertical:[2],facebookiconsize:[2],twitterdisplayrule:[1],twittertext:[1],twitterbackgroundcolor:[1],twittertextcolor:[1],twittericon:[1],twitterclassName:[1,"twitterclass-name"],twittericonhorizontal:[2],twittericonvertical:[2],twittericonsize:[2],smsdisplayrule:[1],smstext:[1],smsbackgroundcolor:[1],smstextcolor:[1],smsicon:[1],smsclassName:[1,"smsclass-name"],smsiconhorizontal:[2],smsiconvertical:[2],smsiconsize:[2],whatsappdisplayrule:[1],whatsapptext:[1],whatsappbackgroundcolor:[1],whatsapptextcolor:[1],whatsappicon:[1],whatsappclassName:[1,"whatsappclass-name"],whatsappiconhorizontal:[2],whatsappiconvertical:[2],whatsappiconsize:[2],linkedindisplayrule:[1],linkedintext:[1],linkedinbackgroundcolor:[1],linkedintextcolor:[1],linkedinicon:[1],linkedinclassName:[1,"linkedinclass-name"],linkediniconhorizontal:[2],linkediniconvertical:[2],linkediniconsize:[2],pinterestdisplayrule:[1],pinteresttext:[1],pinterestbackgroundcolor:[1],pinteresttextcolor:[1],pinteresticon:[1],pinterestclassName:[1,"pinterestclass-name"],pinteresticonhorizontal:[2],pinteresticonvertical:[2],pinteresticonsize:[2],messengerdisplayrule:[1],messengertext:[1],messengerbackgroundcolor:[1],messengertextcolor:[1],messengericon:[1],messengerclassName:[1,"messengerclass-name"],messengericonhorizontal:[2],messengericonvertical:[2],messengericonsize:[2],linedisplayrule:[1],linetext:[1],linebackgroundcolor:[1],linetextcolor:[1],lineicon:[1],lineclassName:[1,"lineclass-name"],lineiconhorizontal:[2],lineiconvertical:[2],lineiconsize:[2],emailurl:[32],facebookurl:[32],twitterurl:[32],smsurl:[32],whatsappurl:[32],linkedinurl:[32],pinteresturl:[32],messengerurl:[32],lineurl:[32]}],[0,"sqh-copy-button",{ishidden:[4],text:[1],width:[2],backgroundcolor:[1],borderradius:[2],textcolor:[1],fontsize:[2],copysuccess:[1],copyfailure:[1],rewardkey:[1],codefontsize:[2],codefontcolor:[1],fueltankcode:[32]}],[0,"sqh-copy-link-button",{ishidden:[4],text:[1],copysuccess:[1],copyfailure:[1],buttoncolor:[1],textcolor:[1],sharelink:[32]}],[4,"sqh-global-container",{background:[1],loadingcolor:[1],fontfamily:[1],maxwidth:[1],poweredby:[4]}],[0,"sqh-image-component",{ishidden:[4],url:[1],width:[2],borderradius:[2],alignment:[1],css:[1]}],[0,"sqh-partner-stat-component",{ishidden:[4],stattype:[1],statvalue:[1],statdescription:[1],statcolor:[1]}],[0,"sqh-stat-component",{ishidden:[4],stattype:[1],statvalue:[1],statdescription:[1],statcolor:[1]}],[4,"sqh-stats-container",{ishidden:[4],paddingtop:[1],paddingbottom:[1],loading:[32],stats:[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],paddingbottom:[1],textalign:[1],background:[1],height:[1]}],[0,"sqh-referral-component",{referral:[16],referraltype:[1],referralvariables:[16],unknownuser:[16],locale:[1]}],[0,"sqh-share-button",{displayrule:[1],text:[1],backgroundcolor:[1],textcolor:[1],icon:[1],buttonClassName:[1,"button-class-name"],iconhorizontal:[2],iconvertical:[2],iconsize:[2],type:[1],url:[1]}]]]],t)}))}}}));
|
|
@@ -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(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`
|
|
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(this.showreferrer,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
|
}
|
|
@@ -133,7 +133,7 @@ var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r]
|
|
|
133
133
|
display: ${this.ishidden?"none":"inherit"};
|
|
134
134
|
padding-top: ${this.paddingtop}px;
|
|
135
135
|
padding-bottom: ${this.paddingbottom}px;
|
|
136
|
-
`;return e("div",{class:t},e("slot",null))}get container(){return r(this)}};te.style="sqh-stats-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}@media (max-width: 499px){sqh-stats-container{-ms-flex-direction:column;flex-direction:column}sqh-stats-container div{-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}}";var ee=i((function(t){t.exports=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return e(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}var r=function(t,e){return function(t){t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(e){t.exports.defaults=e}}}(e={exports:{}}),e.exports}(),i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(t){return c[t]},l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(l,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var f=/(^|[^\[])\^/g,d=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,b={},v=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var s=t.charAt(r-i-1);if(s!==e||n){if(s===e||!n)break;i++}else i++}return t.substr(0,r-i)}var y=function(t,e){if(e){if(i.test(t))return t.replace(s,u)}else if(o.test(t))return t.replace(a,u);return t},x=h,k=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},q=r.defaults,$=w,S=function(t,e){var n=t.replace(/\|/g,(function(t,e,n){for(var r=!1,i=e;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},E=y,_=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1};function A(t,e,n){var r=e.href,i=e.title?E(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:s}:{type:"image",raw:n,href:r,title:i,text:E(s)}}var z=function(){function t(t){this.options=t||q}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var n=this.rules.block.code.exec(t);if(n){var r=e[e.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:$(i,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],r=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var r=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=r.length?t.slice(r.length):t})).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:r}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=S(n.cells[r],n.header.length);return n}}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){for(var n,r,i,s,o,a,c,u=e[0],l=e[2],h=l.length>1,f=")"===l[l.length-1],d={type:"list",raw:u,ordered:h,start:h?+l.slice(0,-1):"",loose:!1,items:[]},p=e[0].match(this.rules.block.item),b=!1,v=p.length,m=0;m<v;m++)u=n=p[m],r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),m!==v-1&&(i=this.rules.block.bullet.exec(p[m+1])[0],(h?1===i.length||!f&&")"===i[i.length-1]:i.length>1||this.options.smartLists&&i!==l)&&(s=p.slice(m+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-s.length),m=v-1)),o=b||/\n\n(?!\s*$)/.test(n),m!==v-1&&(b="\n"===n.charAt(n.length-1),o||(o=b)),o&&(d.loose=!0),c=void 0,(a=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),d.items.push({type:"list_item",raw:u,task:a,checked:c,loose:o,text:n});return d}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):E(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=S(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function(t,e){var n=this.rules.block.text.exec(t);if(n){var r=e[e.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:E(e[1])}},e.tag=function(t,e,n){var r=this.rules.inline.tag.exec(t);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):E(r[0]):r[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=_(e[2],"()");if(n>-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,r).trim(),e[3]=""}var i=e[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o?(i=o[1],s=o[3]):s=""}else s=e[3]?e[3].slice(1,-1):"";return A(e,{href:(i=i.trim().replace(/^<([\s\S]*)>$/,"$1"))?i.replace(this.rules.inline._escapes,"$1"):i,title:s?s.replace(this.rules.inline._escapes,"$1"):s},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return A(n,r,n[0])}},e.strong=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.strong.middle.exec(e.slice(0,r.index+3)))return{type:"strong",raw:t.slice(0,i[0].length),text:t.slice(2,i[0].length-2)}}},e.em=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.em.middle.exec(e.slice(0,r.index+2)))return{type:"em",raw:t.slice(0,i[0].length),text:t.slice(1,i[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=E(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[1]}},e.autolink=function(t,e){var n,r,i=this.rules.inline.autolink.exec(t);if(i)return r="@"===i[2]?"mailto:"+(n=E(this.options.mangle?e(i[1]):i[1])):n=E(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,i;if("@"===n[2])i="mailto:"+(r=E(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);r=E(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e,n){var r,i=this.rules.inline.text.exec(t);if(i)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):E(i[0]):i[0]:E(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},t}(),I={exec:function(){}},T=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(f,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},j=k,O={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=T(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,O.item=T(O.item,"gm").replace(/bull/g,O.bullet).getRegex(),O.list=T(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",O._comment=/<!--(?!-?>)[\s\S]*?-->/,O.html=T(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=T(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.blockquote=T(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=j({},O),O.gfm=j({},O.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.nptable=T(O.gfm.nptable).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.gfm.table=T(O.gfm.table).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.pedantic=j({},O.normal,{html:T("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:I,paragraph:T(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};R.punctuation=T(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",R._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",R.em.start=T(R.em.start).replace(/punctuation/g,R._punctuation).getRegex(),R.em.middle=T(R.em.middle).replace(/punctuation/g,R._punctuation).replace(/overlapSkip/g,R._overlapSkip).getRegex(),R.em.endAst=T(R.em.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.em.endUnd=T(R.em.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.start=T(R.strong.start).replace(/punctuation/g,R._punctuation).getRegex(),R.strong.middle=T(R.strong.middle).replace(/punctuation/g,R._punctuation).replace(/blockSkip/g,R._blockSkip).getRegex(),R.strong.endAst=T(R.strong.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.endUnd=T(R.strong.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=T(R._blockSkip,"g").getRegex(),R.overlapSkip=T(R._overlapSkip,"g").getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=T(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=T(R.tag).replace("comment",O._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=T(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=T(R.reflink).replace("label",R._label).getRegex(),R.reflinkSearch=T(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=j({},R),R.pedantic=j({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=j({},R.normal,{escape:T(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),R.gfm.url=T(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=j({},R.gfm,{br:T(R.br).replace("{2,}","*").getRegex(),text:T(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var F={block:O,inline:R},C=r.defaults,M=F.block,L=F.inline;function D(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function N(t){var e,n,r="",i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Z=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||C,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:M.normal,inline:L.normal};this.options.pedantic?(e.block=M.pedantic,e.inline=L.pedantic):this.options.gfm&&(e.block=M.gfm,e.inline=this.options.breaks?L.breaks:L.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)};var n,r,i=e.prototype;return i.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(t,e,n){var r,i,s,o;for(void 0===e&&(e=[]),void 0===n&&(n=!0),t=t.replace(/^ +$/gm,"");t;)if(r=this.tokenizer.space(t))t=t.substring(r.raw.length),r.type&&e.push(r);else if(r=this.tokenizer.code(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(r=this.tokenizer.fences(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.heading(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.nptable(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.hr(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.blockquote(t))t=t.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),e.push(r);else if(r=this.tokenizer.list(t)){for(t=t.substring(r.raw.length),s=r.items.length,i=0;i<s;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);e.push(r)}else if(r=this.tokenizer.html(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.def(t)))t=t.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.lheading(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.paragraph(t)))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.text(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(t){var a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return e},i.inline=function(t){var e,n,r,i,s,o,a=t.length;for(e=0;e<a;e++)switch((o=t[e]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,n=0;n<i;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(i=o.cells.length,n=0;n<i;n++)for(s=o.cells[n],o.tokens.cells[n]=[],r=0;r<s.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(s[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,n=0;n<i;n++)this.inline(o.items[n].tokens)}return t},i.inlineTokens=function(t,e,n,r,i){var s;void 0===e&&(e=[]),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i="");var o,a=t;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,n,r))t=t.substring(s.raw.length),n=s.inLink,r=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,r)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,r)),e.push(s);else if(s=this.tokenizer.strong(t,a,i))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.em(t,a,i))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.autolink(t,N))t=t.substring(s.raw.length),e.push(s);else if(n||!(s=this.tokenizer.url(t,N))){if(s=this.tokenizer.inlineText(t,r,D))t=t.substring(s.raw.length),i=s.raw.slice(-1),e.push(s);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(s.raw.length),e.push(s);return e},n=e,r=[{key:"rules",get:function(){return{block:M,inline:L}}}],null&&t(n.prototype,null),r&&t(n,r),e}(),U=r.defaults,P=function(t,e,n){if(t){var r;try{r=decodeURIComponent(h(n)).replace(d,"").toLowerCase()}catch(t){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!p.test(n)&&(n=function(t,e){b[" "+t]||(b[" "+t]=v.test(t)?t+"/":w(t,"/",!0));var n=-1===(t=b[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(m,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(g,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},H=y,G=function(){function t(t){this.options=t||U}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(t,r);null!=i&&i!==t&&(n=!0,t=i)}return r?'<pre><code class="'+this.options.langPrefix+H(r,!0)+'">'+(n?t:H(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:H(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=P(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+H(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=P(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),B=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),W=function(){function t(){this.seen={}}return t.prototype.slug=function(t){var e=t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(e)){var n=e;do{this.seen[n]++,e=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(e))}return this.seen[e]=0,e},t}(),V=r.defaults,Y=x,Q=function(){function t(t){this.options=t||V,this.options.renderer=this.options.renderer||new G,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new B,this.slugger=new W}t.parse=function(e,n){return new t(n).parse(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,i,s,o,a,c,u,l,h,f,d,p,b,v,m,g,w,y="",x=t.length;for(n=0;n<x;n++)switch((h=t[n]).type){case"space":continue;case"hr":y+=this.renderer.hr();continue;case"heading":y+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Y(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":y+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u="",c="",s=h.header.length,r=0;r<s;r++)c+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(u+=this.renderer.tablerow(c),l="",s=h.cells.length,r=0;r<s;r++){for(c="",o=(a=h.tokens.cells[r]).length,i=0;i<o;i++)c+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});l+=this.renderer.tablerow(c)}y+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(h.tokens),y+=this.renderer.blockquote(l);continue;case"list":for(f=h.ordered,d=h.start,p=h.loose,s=h.items.length,l="",r=0;r<s;r++)m=(v=h.items[r]).checked,g=v.task,b="",v.task&&(w=this.renderer.checkbox(m),p?v.tokens.length>0&&"text"===v.tokens[0].type?(v.tokens[0].text=w+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=w+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:w}):b+=w),b+=this.parse(v.tokens,p),l+=this.renderer.listitem(b,g,m);y+=this.renderer.list(l,f,d);continue;case"html":y+=this.renderer.html(h.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(l=h.tokens?this.parseInline(h.tokens):h.text;n+1<x&&"text"===t[n+1].type;)l+="\n"+((h=t[++n]).tokens?this.parseInline(h.tokens):h.text);y+=e?this.renderer.paragraph(l):l;continue;default:var k='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}return y},e.parseInline=function(t,e){e=e||this.renderer;var n,r,i="",s=t.length;for(n=0;n<s;n++)switch((r=t[n]).type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},t}(),X=k,K=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=y,tt=r.getDefaults,et=r.changeDefaults,nt=r.defaults;function rt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=X({},rt.defaults,e||{}),K(e),n){var r,i=e.highlight;try{r=Z.lex(t,e)}catch(t){return n(t)}var s=function(t){var s;if(!t)try{s=Q.parse(r,e)}catch(e){t=e}return e.highlight=i,t?n(t):n(null,s)};if(!i||i.length<3)return s();if(delete e.highlight,!r.length)return s();var o=0;return rt.walkTokens(r,(function(t){"code"===t.type&&(o++,setTimeout((function(){i(t.text,t.lang,(function(e,n){if(e)return s(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--o&&s()}))}),0))})),void(0===o&&s())}try{var a=Z.lex(t,e);return e.walkTokens&&rt.walkTokens(a,e.walkTokens),Q.parse(a,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+J(t.message+"",!0)+"</pre>";throw t}}return rt.options=rt.setOptions=function(t){return X(rt.defaults,t),et(rt.defaults),rt},rt.getDefaults=tt,rt.defaults=nt,rt.use=function(t){var e=X({},t);if(t.renderer&&function(){var n=rt.defaults.renderer||new G,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.renderer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=rt.defaults.tokenizer||new z,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.tokenizer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=rt.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}rt.setOptions(e)},rt.walkTokens=function(t,e){for(var r,i=n(t);!(r=i()).done;){var s=r.value;switch(e(s),s.type){case"table":for(var o,a=n(s.tokens.header);!(o=a()).done;)rt.walkTokens(o.value,e);for(var c,u=n(s.tokens.cells);!(c=u()).done;)for(var l,h=n(c.value);!(l=h()).done;)rt.walkTokens(l.value,e);break;case"list":rt.walkTokens(s.items,e);break;default:s.tokens&&rt.walkTokens(s.tokens,e)}}},rt.Parser=Q,rt.parser=Q.parse,rt.Renderer=G,rt.TextRenderer=B,rt.Lexer=Z,rt.lexer=Z.lex,rt.Tokenizer=z,rt.Slugger=W,rt.parse=rt,rt}()}));const ne=class{constructor(e){t(this,e),this.padding="10px 20px 15px"}render(){const t=H`
|
|
136
|
+
`;return e("div",{class:t},e("slot",null))}get container(){return r(this)}};te.style="sqh-stats-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}@media (max-width: 499px){sqh-stats-container{-ms-flex-direction:column;flex-direction:column}sqh-stats-container div{-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}}";var ee=i((function(t){t.exports=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return e(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}var r=function(t,e){return function(t){t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(e){t.exports.defaults=e}}}(e={exports:{}}),e.exports}(),i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(t){return c[t]},l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(l,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var f=/(^|[^\[])\^/g,d=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,b={},v=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var s=t.charAt(r-i-1);if(s!==e||n){if(s===e||!n)break;i++}else i++}return t.substr(0,r-i)}var y=function(t,e){if(e){if(i.test(t))return t.replace(s,u)}else if(o.test(t))return t.replace(a,u);return t},x=h,k=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},q=r.defaults,$=w,S=function(t,e){var n=t.replace(/\|/g,(function(t,e,n){for(var r=!1,i=e;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},E=y,_=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1};function A(t,e,n){var r=e.href,i=e.title?E(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:s}:{type:"image",raw:n,href:r,title:i,text:E(s)}}var z=function(){function t(t){this.options=t||q}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var n=this.rules.block.code.exec(t);if(n){var r=e[e.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:$(i,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],r=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var r=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=r.length?t.slice(r.length):t})).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:r}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=S(n.cells[r],n.header.length);return n}}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){for(var n,r,i,s,o,a,c,u=e[0],l=e[2],h=l.length>1,f=")"===l[l.length-1],d={type:"list",raw:u,ordered:h,start:h?+l.slice(0,-1):"",loose:!1,items:[]},p=e[0].match(this.rules.block.item),b=!1,v=p.length,m=0;m<v;m++)u=n=p[m],r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),m!==v-1&&(i=this.rules.block.bullet.exec(p[m+1])[0],(h?1===i.length||!f&&")"===i[i.length-1]:i.length>1||this.options.smartLists&&i!==l)&&(s=p.slice(m+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-s.length),m=v-1)),o=b||/\n\n(?!\s*$)/.test(n),m!==v-1&&(b="\n"===n.charAt(n.length-1),o||(o=b)),o&&(d.loose=!0),c=void 0,(a=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),d.items.push({type:"list_item",raw:u,task:a,checked:c,loose:o,text:n});return d}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):E(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=S(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function(t,e){var n=this.rules.block.text.exec(t);if(n){var r=e[e.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:E(e[1])}},e.tag=function(t,e,n){var r=this.rules.inline.tag.exec(t);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):E(r[0]):r[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=_(e[2],"()");if(n>-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,r).trim(),e[3]=""}var i=e[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o?(i=o[1],s=o[3]):s=""}else s=e[3]?e[3].slice(1,-1):"";return A(e,{href:(i=i.trim().replace(/^<([\s\S]*)>$/,"$1"))?i.replace(this.rules.inline._escapes,"$1"):i,title:s?s.replace(this.rules.inline._escapes,"$1"):s},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return A(n,r,n[0])}},e.strong=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.strong.middle.exec(e.slice(0,r.index+3)))return{type:"strong",raw:t.slice(0,i[0].length),text:t.slice(2,i[0].length-2)}}},e.em=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.em.middle.exec(e.slice(0,r.index+2)))return{type:"em",raw:t.slice(0,i[0].length),text:t.slice(1,i[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=E(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[1]}},e.autolink=function(t,e){var n,r,i=this.rules.inline.autolink.exec(t);if(i)return r="@"===i[2]?"mailto:"+(n=E(this.options.mangle?e(i[1]):i[1])):n=E(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,i;if("@"===n[2])i="mailto:"+(r=E(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);r=E(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e,n){var r,i=this.rules.inline.text.exec(t);if(i)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):E(i[0]):i[0]:E(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},t}(),I={exec:function(){}},T=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(f,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},j=k,O={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=T(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,O.item=T(O.item,"gm").replace(/bull/g,O.bullet).getRegex(),O.list=T(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",O._comment=/<!--(?!-?>)[\s\S]*?-->/,O.html=T(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=T(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.blockquote=T(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=j({},O),O.gfm=j({},O.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.nptable=T(O.gfm.nptable).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.gfm.table=T(O.gfm.table).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.pedantic=j({},O.normal,{html:T("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:I,paragraph:T(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};R.punctuation=T(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",R._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",R.em.start=T(R.em.start).replace(/punctuation/g,R._punctuation).getRegex(),R.em.middle=T(R.em.middle).replace(/punctuation/g,R._punctuation).replace(/overlapSkip/g,R._overlapSkip).getRegex(),R.em.endAst=T(R.em.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.em.endUnd=T(R.em.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.start=T(R.strong.start).replace(/punctuation/g,R._punctuation).getRegex(),R.strong.middle=T(R.strong.middle).replace(/punctuation/g,R._punctuation).replace(/blockSkip/g,R._blockSkip).getRegex(),R.strong.endAst=T(R.strong.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.endUnd=T(R.strong.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=T(R._blockSkip,"g").getRegex(),R.overlapSkip=T(R._overlapSkip,"g").getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=T(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=T(R.tag).replace("comment",O._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=T(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=T(R.reflink).replace("label",R._label).getRegex(),R.reflinkSearch=T(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=j({},R),R.pedantic=j({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=j({},R.normal,{escape:T(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),R.gfm.url=T(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=j({},R.gfm,{br:T(R.br).replace("{2,}","*").getRegex(),text:T(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var F={block:O,inline:R},C=r.defaults,M=F.block,L=F.inline;function D(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function N(t){var e,n,r="",i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Z=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||C,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:M.normal,inline:L.normal};this.options.pedantic?(e.block=M.pedantic,e.inline=L.pedantic):this.options.gfm&&(e.block=M.gfm,e.inline=this.options.breaks?L.breaks:L.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)};var n,r,i=e.prototype;return i.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(t,e,n){var r,i,s,o;for(void 0===e&&(e=[]),void 0===n&&(n=!0),t=t.replace(/^ +$/gm,"");t;)if(r=this.tokenizer.space(t))t=t.substring(r.raw.length),r.type&&e.push(r);else if(r=this.tokenizer.code(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(r=this.tokenizer.fences(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.heading(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.nptable(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.hr(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.blockquote(t))t=t.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),e.push(r);else if(r=this.tokenizer.list(t)){for(t=t.substring(r.raw.length),s=r.items.length,i=0;i<s;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);e.push(r)}else if(r=this.tokenizer.html(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.def(t)))t=t.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.lheading(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.paragraph(t)))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.text(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(t){var a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return e},i.inline=function(t){var e,n,r,i,s,o,a=t.length;for(e=0;e<a;e++)switch((o=t[e]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,n=0;n<i;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(i=o.cells.length,n=0;n<i;n++)for(s=o.cells[n],o.tokens.cells[n]=[],r=0;r<s.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(s[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,n=0;n<i;n++)this.inline(o.items[n].tokens)}return t},i.inlineTokens=function(t,e,n,r,i){var s;void 0===e&&(e=[]),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i="");var o,a=t;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,n,r))t=t.substring(s.raw.length),n=s.inLink,r=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,r)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,r)),e.push(s);else if(s=this.tokenizer.strong(t,a,i))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.em(t,a,i))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.autolink(t,N))t=t.substring(s.raw.length),e.push(s);else if(n||!(s=this.tokenizer.url(t,N))){if(s=this.tokenizer.inlineText(t,r,D))t=t.substring(s.raw.length),i=s.raw.slice(-1),e.push(s);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(s.raw.length),e.push(s);return e},n=e,r=[{key:"rules",get:function(){return{block:M,inline:L}}}],null&&t(n.prototype,null),r&&t(n,r),e}(),U=r.defaults,P=function(t,e,n){if(t){var r;try{r=decodeURIComponent(h(n)).replace(d,"").toLowerCase()}catch(t){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!p.test(n)&&(n=function(t,e){b[" "+t]||(b[" "+t]=v.test(t)?t+"/":w(t,"/",!0));var n=-1===(t=b[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(m,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(g,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},H=y,G=function(){function t(t){this.options=t||U}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(t,r);null!=i&&i!==t&&(n=!0,t=i)}return r?'<pre><code class="'+this.options.langPrefix+H(r,!0)+'">'+(n?t:H(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:H(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=P(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+H(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=P(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),B=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),W=function(){function t(){this.seen={}}return t.prototype.slug=function(t){var e=t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(e)){var n=e;do{this.seen[n]++,e=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(e))}return this.seen[e]=0,e},t}(),V=r.defaults,Y=x,Q=function(){function t(t){this.options=t||V,this.options.renderer=this.options.renderer||new G,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new B,this.slugger=new W}t.parse=function(e,n){return new t(n).parse(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,i,s,o,a,c,u,l,h,f,d,p,b,v,m,g,w,y="",x=t.length;for(n=0;n<x;n++)switch((h=t[n]).type){case"space":continue;case"hr":y+=this.renderer.hr();continue;case"heading":y+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Y(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":y+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u="",c="",s=h.header.length,r=0;r<s;r++)c+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(u+=this.renderer.tablerow(c),l="",s=h.cells.length,r=0;r<s;r++){for(c="",o=(a=h.tokens.cells[r]).length,i=0;i<o;i++)c+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});l+=this.renderer.tablerow(c)}y+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(h.tokens),y+=this.renderer.blockquote(l);continue;case"list":for(f=h.ordered,d=h.start,p=h.loose,s=h.items.length,l="",r=0;r<s;r++)m=(v=h.items[r]).checked,g=v.task,b="",v.task&&(w=this.renderer.checkbox(m),p?v.tokens.length>0&&"text"===v.tokens[0].type?(v.tokens[0].text=w+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=w+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:w}):b+=w),b+=this.parse(v.tokens,p),l+=this.renderer.listitem(b,g,m);y+=this.renderer.list(l,f,d);continue;case"html":y+=this.renderer.html(h.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(l=h.tokens?this.parseInline(h.tokens):h.text;n+1<x&&"text"===t[n+1].type;)l+="\n"+((h=t[++n]).tokens?this.parseInline(h.tokens):h.text);y+=e?this.renderer.paragraph(l):l;continue;default:var k='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}return y},e.parseInline=function(t,e){e=e||this.renderer;var n,r,i="",s=t.length;for(n=0;n<s;n++)switch((r=t[n]).type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},t}(),X=k,K=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=y,tt=r.getDefaults,et=r.changeDefaults,nt=r.defaults;function rt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=X({},rt.defaults,e||{}),K(e),n){var r,i=e.highlight;try{r=Z.lex(t,e)}catch(t){return n(t)}var s=function(t){var s;if(!t)try{s=Q.parse(r,e)}catch(e){t=e}return e.highlight=i,t?n(t):n(null,s)};if(!i||i.length<3)return s();if(delete e.highlight,!r.length)return s();var o=0;return rt.walkTokens(r,(function(t){"code"===t.type&&(o++,setTimeout((function(){i(t.text,t.lang,(function(e,n){if(e)return s(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--o&&s()}))}),0))})),void(0===o&&s())}try{var a=Z.lex(t,e);return e.walkTokens&&rt.walkTokens(a,e.walkTokens),Q.parse(a,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+J(t.message+"",!0)+"</pre>";throw t}}return rt.options=rt.setOptions=function(t){return X(rt.defaults,t),et(rt.defaults),rt},rt.getDefaults=tt,rt.defaults=nt,rt.use=function(t){var e=X({},t);if(t.renderer&&function(){var n=rt.defaults.renderer||new G,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.renderer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=rt.defaults.tokenizer||new z,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.tokenizer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=rt.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}rt.setOptions(e)},rt.walkTokens=function(t,e){for(var r,i=n(t);!(r=i()).done;){var s=r.value;switch(e(s),s.type){case"table":for(var o,a=n(s.tokens.header);!(o=a()).done;)rt.walkTokens(o.value,e);for(var c,u=n(s.tokens.cells);!(c=u()).done;)for(var l,h=n(c.value);!(l=h()).done;)rt.walkTokens(l.value,e);break;case"list":rt.walkTokens(s.items,e);break;default:s.tokens&&rt.walkTokens(s.tokens,e)}}},rt.Parser=Q,rt.parser=Q.parse,rt.Renderer=G,rt.TextRenderer=B,rt.Lexer=Z,rt.lexer=Z.lex,rt.Tokenizer=z,rt.Slugger=W,rt.parse=rt,rt}()}));const ne=class{constructor(e){t(this,e)}render(){const t=H`
|
|
137
137
|
font-family: ${this.fontfamily||"inherit"};
|
|
138
138
|
font-size: ${this.fontsize?this.fontsize+"px":"inherit"};
|
|
139
139
|
text-align: ${this.textalign};
|