squiffy-runtime 6.0.0-alpha.15 → 6.0.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/animation.d.ts +11 -0
  2. package/dist/events.d.ts +8 -3
  3. package/dist/import.d.ts +4 -0
  4. package/dist/linkHandler.d.ts +8 -0
  5. package/dist/pluginManager.d.ts +23 -0
  6. package/dist/squiffy.runtime.d.ts +2 -2
  7. package/dist/squiffy.runtime.global.js +126 -0
  8. package/dist/squiffy.runtime.global.js.map +1 -0
  9. package/dist/squiffy.runtime.js +8785 -487
  10. package/dist/squiffy.runtime.js.map +1 -0
  11. package/dist/state.d.ts +19 -0
  12. package/dist/textProcessor.d.ts +8 -13
  13. package/dist/types.d.ts +5 -2
  14. package/dist/types.plugins.d.ts +27 -0
  15. package/dist/updater.d.ts +2 -0
  16. package/dist/utils.d.ts +1 -2
  17. package/package.json +12 -5
  18. package/src/__snapshots__/squiffy.runtime.test.ts.snap +53 -19
  19. package/src/animation.ts +68 -0
  20. package/src/events.ts +9 -10
  21. package/src/import.ts +5 -0
  22. package/src/linkHandler.ts +18 -0
  23. package/src/pluginManager.ts +74 -0
  24. package/src/plugins/animate.ts +97 -0
  25. package/src/plugins/index.ts +13 -0
  26. package/src/plugins/live.ts +83 -0
  27. package/src/plugins/random.ts +22 -0
  28. package/src/plugins/replaceLabel.ts +22 -0
  29. package/src/plugins/rotateSequence.ts +61 -0
  30. package/src/squiffy.runtime.test.ts +306 -134
  31. package/src/squiffy.runtime.ts +460 -332
  32. package/src/state.ts +106 -0
  33. package/src/textProcessor.ts +61 -164
  34. package/src/types.plugins.ts +41 -0
  35. package/src/types.ts +5 -2
  36. package/src/updater.ts +77 -0
  37. package/src/utils.ts +15 -12
  38. package/vite.config.ts +36 -0
  39. package/vitest.config.ts +9 -0
  40. package/vitest.setup.ts +16 -0
  41. package/dist/events.js +0 -35
  42. package/dist/squiffy.runtime.test.js +0 -394
  43. package/dist/textProcessor.js +0 -166
  44. package/dist/types.js +0 -1
  45. package/dist/utils.js +0 -14
@@ -0,0 +1,126 @@
1
+ var squiffyRuntime=(function(ut){"use strict";var Pc=Object.defineProperty;var Ec=(ut,et,Ye)=>et in ut?Pc(ut,et,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ut[et]=Ye;var ae=(ut,et,Ye)=>Ec(ut,typeof et!="symbol"?et+"":et,Ye);var pr;function et(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ye=et();function kn(s){Ye=s}var Xt={exec:()=>null};function te(s,e=""){let t=typeof s=="string"?s:s.source,n={replace:(r,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(Oe.caret,"$1"),t=t.replace(r,a),n},getRegex:()=>new RegExp(t,e)};return n}var Oe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}#`),htmlBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}<(?:[a-z].*>|!--)`,"i")},No=/^(?:[ \t]*(?:\n|$))+/,Bo=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Do=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Yt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,dr=/(?:[*+-]|\d{1,9}[.)])/,xn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wn=te(xn).replace(/bull/g,dr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ho=te(xn).replace(/bull/g,dr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Fo=/^[^\n]+/,mr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,zo=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Vo=te(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dr).getRegex(),vs="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$o=te("^ {0,3}(?:<(script|pre|style|textarea)[\\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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vr).replace("tag",vs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Tn=te(gr).replace("hr",Yt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").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|textarea|!--)").replace("tag",vs).getRegex(),Uo=te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Tn).getRegex(),yr={blockquote:Uo,code:Bo,def:zo,fences:Do,heading:qo,hr:Yt,html:$o,lheading:wn,list:Vo,newline:No,paragraph:Tn,table:Xt,text:Fo},Cn=te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Yt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vs).getRegex(),Wo={...yr,lheading:Ho,table:Cn,paragraph:te(gr).replace("hr",Yt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cn).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|textarea|!--)").replace("tag",vs).getRegex()},Go={...yr,html:te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vr).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+|$)/,fences:Xt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:te(gr).replace("hr",Yt).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",wn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Xo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Yo=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pn=/^( {2,}|\\)\n(?!\s*$)/,Jo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ys=/[\p{P}\p{S}]/u,_r=/[\s\p{P}\p{S}]/u,En=/[^\s\p{P}\p{S}]/u,Qo=te(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_r).getRegex(),Ln=/(?!~)[\p{P}\p{S}]/u,Ko=/(?!~)[\s\p{P}\p{S}]/u,Zo=/(?:[^\s\p{P}\p{S}]|~)/u,jo=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,An=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ea=te(An,"u").replace(/punct/g,ys).getRegex(),ta=te(An,"u").replace(/punct/g,Ln).getRegex(),Rn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",sa=te(Rn,"gu").replace(/notPunctSpace/g,En).replace(/punctSpace/g,_r).replace(/punct/g,ys).getRegex(),ra=te(Rn,"gu").replace(/notPunctSpace/g,Zo).replace(/punctSpace/g,Ko).replace(/punct/g,Ln).getRegex(),na=te("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,En).replace(/punctSpace/g,_r).replace(/punct/g,ys).getRegex(),ia=te(/\\(punct)/,"gu").replace(/punct/g,ys).getRegex(),oa=te(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),aa=te(vr).replace("(?:-->|$)","-->").getRegex(),la=te("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",aa).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_s=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,ca=te(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",_s).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),On=te(/^!?\[(label)\]\[(ref)\]/).replace("label",_s).replace("ref",mr).getRegex(),Mn=te(/^!?\[(ref)\](?:\[\])?/).replace("ref",mr).getRegex(),ua=te("reflink|nolink(?!\\()","g").replace("reflink",On).replace("nolink",Mn).getRegex(),br={_backpedal:Xt,anyPunctuation:ia,autolink:oa,blockSkip:jo,br:Pn,code:Yo,del:Xt,emStrongLDelim:ea,emStrongRDelimAst:sa,emStrongRDelimUnd:na,escape:Xo,link:ca,nolink:Mn,punctuation:Qo,reflink:On,reflinkSearch:ua,tag:la,text:Jo,url:Xt},ha={...br,link:te(/^!?\[(label)\]\((.*?)\)/).replace("label",_s).getRegex(),reflink:te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_s).getRegex()},Sr={...br,emStrongRDelimAst:ra,emStrongLDelim:ta,url:te(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},pa={...Sr,br:te(Pn).replace("{2,}","*").getRegex(),text:te(Sr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bs={normal:yr,gfm:Wo,pedantic:Go},Jt={normal:br,gfm:Sr,breaks:pa,pedantic:ha},fa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},In=s=>fa[s];function ot(s,e){if(e){if(Oe.escapeTest.test(s))return s.replace(Oe.escapeReplace,In)}else if(Oe.escapeTestNoEncode.test(s))return s.replace(Oe.escapeReplaceNoEncode,In);return s}function Nn(s){try{s=encodeURI(s).replace(Oe.percentDecode,"%")}catch{return null}return s}function Bn(s,e){let t=s.replace(Oe.findPipe,(i,a,h)=>{let u=!1,p=a;for(;--p>=0&&h[p]==="\\";)u=!u;return u?"|":" |"}),n=t.split(Oe.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)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(Oe.slashPipe,"|");return n}function Qt(s,e,t){let n=s.length;if(n===0)return"";let r=0;for(;r<n&&s.charAt(n-r-1)===e;)r++;return s.slice(0,n-r)}function da(s,e){if(s.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<s.length;n++)if(s[n]==="\\")n++;else if(s[n]===e[0])t++;else if(s[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function Dn(s,e,t,n,r){let i=e.href,a=e.title||null,h=s[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:s[0].charAt(0)==="!"?"image":"link",raw:t,href:i,title:a,text:h,tokens:n.inlineTokens(h)};return n.state.inLink=!1,u}function ga(s,e,t){let n=s.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
3
+ `).map(i=>{let a=i.match(t.other.beginningSpace);if(a===null)return i;let[h]=a;return h.length>=r.length?i.slice(r.length):i}).join(`
4
+ `)}var Ss=class{constructor(s){ae(this,"options");ae(this,"rules");ae(this,"lexer");this.options=s||Ye}space(s){let e=this.rules.block.newline.exec(s);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(s){let e=this.rules.block.code.exec(s);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Qt(t,`
5
+ `)}}}fences(s){let e=this.rules.block.fences.exec(s);if(e){let t=e[0],n=ga(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(s){let e=this.rules.block.heading.exec(s);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=Qt(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(s){let e=this.rules.block.hr.exec(s);if(e)return{type:"hr",raw:Qt(e[0],`
6
+ `)}}blockquote(s){let e=this.rules.block.blockquote.exec(s);if(e){let t=Qt(e[0],`
7
+ `).split(`
8
+ `),n="",r="",i=[];for(;t.length>0;){let a=!1,h=[],u;for(u=0;u<t.length;u++)if(this.rules.other.blockquoteStart.test(t[u]))h.push(t[u]),a=!0;else if(!a)h.push(t[u]);else break;t=t.slice(u);let p=h.join(`
9
+ `),f=p.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
11
+ ${p}`:p,r=r?`${r}
12
+ ${f}`:f;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,i,!0),this.lexer.state.top=g,t.length===0)break;let l=i.at(-1);if(l?.type==="code")break;if(l?.type==="blockquote"){let c=l,o=c.raw+`
13
+ `+t.join(`
14
+ `),d=this.blockquote(o);i[i.length-1]=d,n=n.substring(0,n.length-c.raw.length)+d.raw,r=r.substring(0,r.length-c.text.length)+d.text;break}else if(l?.type==="list"){let c=l,o=c.raw+`
15
+ `+t.join(`
16
+ `),d=this.list(o);i[i.length-1]=d,n=n.substring(0,n.length-l.raw.length)+d.raw,r=r.substring(0,r.length-c.raw.length)+d.raw,t=o.substring(i.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(s){let e=this.rules.block.list.exec(s);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let i=this.rules.other.listItemRegex(t),a=!1;for(;s;){let u=!1,p="",f="";if(!(e=i.exec(s))||this.rules.block.hr.test(s))break;p=e[0],s=s.substring(p.length);let g=e[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),l=s.split(`
19
+ `,1)[0],c=!g.trim(),o=0;if(this.options.pedantic?(o=2,f=g.trimStart()):c?o=e[1].length+1:(o=e[2].search(this.rules.other.nonSpaceChar),o=o>4?1:o,f=g.slice(o),o+=e[1].length),c&&this.rules.other.blankLine.test(l)&&(p+=l+`
20
+ `,s=s.substring(l.length+1),u=!0),!u){let v=this.rules.other.nextBulletRegex(o),_=this.rules.other.hrRegex(o),S=this.rules.other.fencesBeginRegex(o),y=this.rules.other.headingBeginRegex(o),b=this.rules.other.htmlBeginRegex(o);for(;s;){let k=s.split(`
21
+ `,1)[0],x;if(l=k,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting," "),x=l):x=l.replace(this.rules.other.tabCharGlobal," "),S.test(l)||y.test(l)||b.test(l)||v.test(l)||_.test(l))break;if(x.search(this.rules.other.nonSpaceChar)>=o||!l.trim())f+=`
22
+ `+x.slice(o);else{if(c||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(g)||y.test(g)||_.test(g))break;f+=`
23
+ `+l}!c&&!l.trim()&&(c=!0),p+=k+`
24
+ `,s=s.substring(k.length+1),g=x.slice(o)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(a=!0));let d=null,m;this.options.gfm&&(d=this.rules.other.listIsTask.exec(f),d&&(m=d[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:p,task:!!d,checked:m,loose:!1,text:f,tokens:[]}),r.raw+=p}let h=r.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let u=0;u<r.items.length;u++)if(this.lexer.state.top=!1,r.items[u].tokens=this.lexer.blockTokens(r.items[u].text,[]),!r.loose){let p=r.items[u].tokens.filter(g=>g.type==="space"),f=p.length>0&&p.some(g=>this.rules.other.anyLine.test(g.raw));r.loose=f}if(r.loose)for(let u=0;u<r.items.length;u++)r.items[u].loose=!0;return r}}html(s){let e=this.rules.block.html.exec(s);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(s){let e=this.rules.block.def.exec(s);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(s){let e=this.rules.block.table.exec(s);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=Bn(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let a=0;a<t.length;a++)i.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:i.align[a]});for(let a of r)i.rows.push(Bn(a,i.header.length).map((h,u)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:i.align[u]})));return i}}lheading(s){let e=this.rules.block.lheading.exec(s);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(s){let e=this.rules.block.paragraph.exec(s);if(e){let t=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(s){let e=this.rules.block.text.exec(s);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(s){let e=this.rules.inline.escape.exec(s);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(s){let e=this.rules.inline.tag.exec(s);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(s){let e=this.rules.inline.link.exec(s);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let i=Qt(t.slice(0,-1),"\\");if((t.length-i.length)%2===0)return}else{let i=da(e[2],"()");if(i===-2)return;if(i>-1){let a=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(n);i&&(n=i[1],r=i[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Dn(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(s,e){let t;if((t=this.rules.inline.reflink.exec(s))||(t=this.rules.inline.nolink.exec(s))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let i=t[0].charAt(0);return{type:"text",raw:i,text:i}}return Dn(t,r,t[0],this.lexer,this.rules)}}emStrong(s,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(s);if(!(!n||n[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,i,a,h=r,u=0,p=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,e=e.slice(-1*s.length+r);(n=p.exec(e))!=null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(a=[...i].length,n[3]||n[4]){h+=a;continue}else if((n[5]||n[6])&&r%3&&!((r+a)%3)){u+=a;continue}if(h-=a,h>0)continue;a=Math.min(a,a+h+u);let f=[...n[0]][0].length,g=s.slice(0,r+n.index+f+a);if(Math.min(r,a)%2){let c=g.slice(1,-1);return{type:"em",raw:g,text:c,tokens:this.lexer.inlineTokens(c)}}let l=g.slice(2,-2);return{type:"strong",raw:g,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(s){let e=this.rules.inline.code.exec(s);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(s){let e=this.rules.inline.br.exec(s);if(e)return{type:"br",raw:e[0]}}del(s){let e=this.rules.inline.del.exec(s);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(s){let e=this.rules.inline.autolink.exec(s);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(s){let e;if(e=this.rules.inline.url.exec(s)){let t,n;if(e[2]==="@")t=e[0],n="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(s){let e=this.rules.inline.text.exec(s);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},ht=class bn{constructor(e){ae(this,"tokens");ae(this,"options");ae(this,"state");ae(this,"tokenizer");ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ye,this.options.tokenizer=this.options.tokenizer||new Ss,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Oe,block:bs.normal,inline:Jt.normal};this.options.pedantic?(t.block=bs.pedantic,t.inline=Jt.pedantic):this.options.gfm&&(t.block=bs.gfm,this.options.breaks?t.inline=Jt.breaks:t.inline=Jt.gfm),this.tokenizer.rules=t}static get rules(){return{block:bs,inline:Jt}}static lex(e,t){return new bn(t).lex(e)}static lexInline(e,t){return new bn(t).inlineTokens(e)}lex(e){e=e.replace(Oe.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(Oe.tabCharGlobal," ").replace(Oe.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(a=>(r=a.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let a=t.at(-1);r.raw.length===1&&a!==void 0?a.raw+=`
28
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let a=t.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
29
+ `)?"":`
30
+ `)+r.raw,a.text+=`
31
+ `+r.text,this.inlineQueue.at(-1).src=a.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let a=t.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
32
+ `)?"":`
33
+ `)+r.raw,a.text+=`
34
+ `+r.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let a=1/0,h=e.slice(1),u;this.options.extensions.startBlock.forEach(p=>{u=p.call({lexer:this},h),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
35
+ `)?"":`
36
+ `)+r.raw,a.text+=`
37
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let a=t.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
38
+ `)?"":`
39
+ `)+r.raw,a.text+=`
40
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,a="";for(;e;){i||(a=""),i=!1;let h;if(this.options.extensions?.inline?.some(p=>(h=p.call({lexer:this},e,t))?(e=e.substring(h.raw.length),t.push(h),!0):!1))continue;if(h=this.tokenizer.escape(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.tag(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.link(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(h.raw.length);let p=t.at(-1);h.type==="text"&&p?.type==="text"?(p.raw+=h.raw,p.text+=h.text):t.push(h);continue}if(h=this.tokenizer.emStrong(e,n,a)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.codespan(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.br(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.del(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.autolink(e)){e=e.substring(h.raw.length),t.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(e))){e=e.substring(h.raw.length),t.push(h);continue}let u=e;if(this.options.extensions?.startInline){let p=1/0,f=e.slice(1),g;this.options.extensions.startInline.forEach(l=>{g=l.call({lexer:this},f),typeof g=="number"&&g>=0&&(p=Math.min(p,g))}),p<1/0&&p>=0&&(u=e.substring(0,p+1))}if(h=this.tokenizer.inlineText(u)){e=e.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(a=h.raw.slice(-1)),i=!0;let p=t.at(-1);p?.type==="text"?(p.raw+=h.raw,p.text+=h.text):t.push(h);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return t}},ks=class{constructor(s){ae(this,"options");ae(this,"parser");this.options=s||Ye}space(s){return""}code({text:s,lang:e,escaped:t}){let n=(e||"").match(Oe.notSpaceStart)?.[0],r=s.replace(Oe.endingNewline,"")+`
41
+ `;return n?'<pre><code class="language-'+ot(n)+'">'+(t?r:ot(r,!0))+`</code></pre>
42
+ `:"<pre><code>"+(t?r:ot(r,!0))+`</code></pre>
43
+ `}blockquote({tokens:s}){return`<blockquote>
44
+ ${this.parser.parse(s)}</blockquote>
45
+ `}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:e}){return`<h${e}>${this.parser.parseInline(s)}</h${e}>
46
+ `}hr(s){return`<hr>
47
+ `}list(s){let e=s.ordered,t=s.start,n="";for(let a=0;a<s.items.length;a++){let h=s.items[a];n+=this.listitem(h)}let r=e?"ol":"ul",i=e&&t!==1?' start="'+t+'"':"";return"<"+r+i+`>
48
+ `+n+"</"+r+`>
49
+ `}listitem(s){let e="";if(s.task){let t=this.checkbox({checked:!!s.checked});s.loose?s.tokens[0]?.type==="paragraph"?(s.tokens[0].text=t+" "+s.tokens[0].text,s.tokens[0].tokens&&s.tokens[0].tokens.length>0&&s.tokens[0].tokens[0].type==="text"&&(s.tokens[0].tokens[0].text=t+" "+ot(s.tokens[0].tokens[0].text),s.tokens[0].tokens[0].escaped=!0)):s.tokens.unshift({type:"text",raw:t+" ",text:t+" ",escaped:!0}):e+=t+" "}return e+=this.parser.parse(s.tokens,!!s.loose),`<li>${e}</li>
50
+ `}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
51
+ `}table(s){let e="",t="";for(let r=0;r<s.header.length;r++)t+=this.tablecell(s.header[r]);e+=this.tablerow({text:t});let n="";for(let r=0;r<s.rows.length;r++){let i=s.rows[r];t="";for(let a=0;a<i.length;a++)t+=this.tablecell(i[a]);n+=this.tablerow({text:t})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+n+`</table>
55
+ `}tablerow({text:s}){return`<tr>
56
+ ${s}</tr>
57
+ `}tablecell(s){let e=this.parser.parseInline(s.tokens),t=s.header?"th":"td";return(s.align?`<${t} align="${s.align}">`:`<${t}>`)+e+`</${t}>
58
+ `}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${ot(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:e,tokens:t}){let n=this.parser.parseInline(t),r=Nn(s);if(r===null)return n;s=r;let i='<a href="'+s+'"';return e&&(i+=' title="'+ot(e)+'"'),i+=">"+n+"</a>",i}image({href:s,title:e,text:t,tokens:n}){n&&(t=this.parser.parseInline(n,this.parser.textRenderer));let r=Nn(s);if(r===null)return ot(t);s=r;let i=`<img src="${s}" alt="${t}"`;return e&&(i+=` title="${ot(e)}"`),i+=">",i}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:ot(s.text)}},kr=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}},pt=class Sn{constructor(e){ae(this,"options");ae(this,"renderer");ae(this,"textRenderer");this.options=e||Ye,this.options.renderer=this.options.renderer||new ks,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new kr}static parse(e,t){return new Sn(t).parse(e)}static parseInline(e,t){return new Sn(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let h=i,u=this.options.extensions.renderers[h.type].call({parser:this},h);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){n+=u||"";continue}}let a=i;switch(a.type){case"space":{n+=this.renderer.space(a);continue}case"hr":{n+=this.renderer.hr(a);continue}case"heading":{n+=this.renderer.heading(a);continue}case"code":{n+=this.renderer.code(a);continue}case"table":{n+=this.renderer.table(a);continue}case"blockquote":{n+=this.renderer.blockquote(a);continue}case"list":{n+=this.renderer.list(a);continue}case"html":{n+=this.renderer.html(a);continue}case"def":{n+=this.renderer.def(a);continue}case"paragraph":{n+=this.renderer.paragraph(a);continue}case"text":{let h=a,u=this.renderer.text(h);for(;r+1<e.length&&e[r+1].type==="text";)h=e[++r],u+=`
59
+ `+this.renderer.text(h);t?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{let h='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let h=this.options.extensions.renderers[i.type].call({parser:this},i);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=h||"";continue}}let a=i;switch(a.type){case"escape":{n+=t.text(a);break}case"html":{n+=t.html(a);break}case"link":{n+=t.link(a);break}case"image":{n+=t.image(a);break}case"strong":{n+=t.strong(a);break}case"em":{n+=t.em(a);break}case"codespan":{n+=t.codespan(a);break}case"br":{n+=t.br(a);break}case"del":{n+=t.del(a);break}case"text":{n+=t.text(a);break}default:{let h='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}},Kt=(pr=class{constructor(s){ae(this,"options");ae(this,"block");this.options=s||Ye}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(){return this.block?ht.lex:ht.lexInline}provideParser(){return this.block?pt.parse:pt.parseInline}},ae(pr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ae(pr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),pr),ma=class{constructor(...s){ae(this,"defaults",et());ae(this,"options",this.setOptions);ae(this,"parse",this.parseMarkdown(!0));ae(this,"parseInline",this.parseMarkdown(!1));ae(this,"Parser",pt);ae(this,"Renderer",ks);ae(this,"TextRenderer",kr);ae(this,"Lexer",ht);ae(this,"Tokenizer",Ss);ae(this,"Hooks",Kt);this.use(...s)}walkTokens(s,e){let t=[];for(let n of s)switch(t=t.concat(e.call(this,n)),n.type){case"table":{let r=n;for(let i of r.header)t=t.concat(this.walkTokens(i.tokens,e));for(let i of r.rows)for(let a of i)t=t.concat(this.walkTokens(a.tokens,e));break}case"list":{let r=n;t=t.concat(this.walkTokens(r.items,e));break}default:{let r=n;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let a=r[i].flat(1/0);t=t.concat(this.walkTokens(a,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...s){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=e.renderers[r.name];i?e.renderers[r.name]=function(...a){let h=r.renderer.apply(this,a);return h===!1&&(h=i.apply(this,a)),h}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[r.level];i?i.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new ks(this.defaults);for(let i in t.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let a=i,h=t.renderer[a],u=r[a];r[a]=(...p)=>{let f=h.apply(r,p);return f===!1&&(f=u.apply(r,p)),f||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Ss(this.defaults);for(let i in t.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let a=i,h=t.tokenizer[a],u=r[a];r[a]=(...p)=>{let f=h.apply(r,p);return f===!1&&(f=u.apply(r,p)),f}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new Kt;for(let i in t.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let a=i,h=t.hooks[a],u=r[a];Kt.passThroughHooks.has(i)?r[a]=p=>{if(this.defaults.async&&Kt.passThroughHooksRespectAsync.has(i))return Promise.resolve(h.call(r,p)).then(g=>u.call(r,g));let f=h.call(r,p);return u.call(r,f)}:r[a]=(...p)=>{let f=h.apply(r,p);return f===!1&&(f=u.apply(r,p)),f}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,i=t.walkTokens;n.walkTokens=function(a){let h=[];return h.push(i.call(this,a)),r&&(h=h.concat(r.call(this,a))),h}}this.defaults={...this.defaults,...n}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,e){return ht.lex(s,e??this.defaults)}parser(s,e){return pt.parse(s,e??this.defaults)}parseMarkdown(s){return(e,t)=>{let n={...t},r={...this.defaults,...n},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=s);let a=r.hooks?r.hooks.provideLexer():s?ht.lex:ht.lexInline,h=r.hooks?r.hooks.provideParser():s?pt.parse:pt.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(u=>a(u,r)).then(u=>r.hooks?r.hooks.processAllTokens(u):u).then(u=>r.walkTokens?Promise.all(this.walkTokens(u,r.walkTokens)).then(()=>u):u).then(u=>h(u,r)).then(u=>r.hooks?r.hooks.postprocess(u):u).catch(i);try{r.hooks&&(e=r.hooks.preprocess(e));let u=a(e,r);r.hooks&&(u=r.hooks.processAllTokens(u)),r.walkTokens&&this.walkTokens(u,r.walkTokens);let p=h(u,r);return r.hooks&&(p=r.hooks.postprocess(p)),p}catch(u){return i(u)}}}onError(s,e){return t=>{if(t.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,s){let n="<p>An error occurred:</p><pre>"+ot(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},Pt=new ma;function ne(s,e){return Pt.parse(s,e)}ne.options=ne.setOptions=function(s){return Pt.setOptions(s),ne.defaults=Pt.defaults,kn(ne.defaults),ne},ne.getDefaults=et,ne.defaults=Ye,ne.use=function(...s){return Pt.use(...s),ne.defaults=Pt.defaults,kn(ne.defaults),ne},ne.walkTokens=function(s,e){return Pt.walkTokens(s,e)},ne.parseInline=Pt.parseInline,ne.Parser=pt,ne.parser=pt.parse,ne.Renderer=ks,ne.TextRenderer=kr,ne.Lexer=ht,ne.lexer=ht.lex,ne.Tokenizer=Ss,ne.Hooks=Kt,ne.parse=ne,ne.options,ne.setOptions,ne.use,ne.walkTokens;var va=ne.parseInline,ya=ne;pt.parse,ht.lex;function _a(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var xs={exports:{}},ws={exports:{}},tt={},qe={},qn;function He(){if(qn)return qe;qn=1,qe.__esModule=!0,qe.extend=r,qe.indexOf=u,qe.escapeExpression=p,qe.isEmpty=f,qe.createFrame=g,qe.blockParams=l,qe.appendContextPath=c;var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},e=/[&<>"'`=]/g,t=/[&<>"'`=]/;function n(o){return s[o]}function r(o){for(var d=1;d<arguments.length;d++)for(var m in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],m)&&(o[m]=arguments[d][m]);return o}var i=Object.prototype.toString;qe.toString=i;var a=function(d){return typeof d=="function"};a(/x/)&&(qe.isFunction=a=function(o){return typeof o=="function"&&i.call(o)==="[object Function]"}),qe.isFunction=a;var h=Array.isArray||function(o){return o&&typeof o=="object"?i.call(o)==="[object Array]":!1};qe.isArray=h;function u(o,d){for(var m=0,v=o.length;m<v;m++)if(o[m]===d)return m;return-1}function p(o){if(typeof o!="string"){if(o&&o.toHTML)return o.toHTML();if(o==null)return"";if(!o)return o+"";o=""+o}return t.test(o)?o.replace(e,n):o}function f(o){return!o&&o!==0?!0:!!(h(o)&&o.length===0)}function g(o){var d=r({},o);return d._parent=o,d}function l(o,d){return o.path=d,o}function c(o,d){return(o?o+".":"")+d}return qe}var Ts={exports:{}},Hn;function st(){return Hn||(Hn=1,(function(s,e){e.__esModule=!0;var t=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function n(r,i){var a=i&&i.loc,h=void 0,u=void 0,p=void 0,f=void 0;a&&(h=a.start.line,u=a.end.line,p=a.start.column,f=a.end.column,r+=" - "+h+":"+p);for(var g=Error.prototype.constructor.call(this,r),l=0;l<t.length;l++)this[t[l]]=g[t[l]];Error.captureStackTrace&&Error.captureStackTrace(this,n);try{a&&(this.lineNumber=h,this.endLineNumber=u,Object.defineProperty?(Object.defineProperty(this,"column",{value:p,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=p,this.endColumn=f))}catch{}}n.prototype=new Error,e.default=n,s.exports=e.default})(Ts,Ts.exports)),Ts.exports}var Zt={},Cs={exports:{}},Fn;function ba(){return Fn||(Fn=1,(function(s,e){e.__esModule=!0;var t=He();e.default=function(n){n.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,h=i.fn;if(r===!0)return h(this);if(r===!1||r==null)return a(this);if(t.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),n.helpers.each(r,i)):a(this);if(i.data&&i.ids){var u=t.createFrame(i.data);u.contextPath=t.appendContextPath(i.data.contextPath,i.name),i={data:u}}return h(r,i)})},s.exports=e.default})(Cs,Cs.exports)),Cs.exports}var Ps={exports:{}},zn;function Sa(){return zn||(zn=1,(function(s,e){e.__esModule=!0;function t(a){return a&&a.__esModule?a:{default:a}}var n=He(),r=st(),i=t(r);e.default=function(a){a.registerHelper("each",function(h,u){if(!u)throw new i.default("Must pass iterator to #each");var p=u.fn,f=u.inverse,g=0,l="",c=void 0,o=void 0;u.data&&u.ids&&(o=n.appendContextPath(u.data.contextPath,u.ids[0])+"."),n.isFunction(h)&&(h=h.call(this)),u.data&&(c=n.createFrame(u.data));function d(y,b,k){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!k,o&&(c.contextPath=o+y)),l=l+p(h[y],{data:c,blockParams:n.blockParams([h[y],y],[o+y,null])})}if(h&&typeof h=="object")if(n.isArray(h))for(var m=h.length;g<m;g++)g in h&&d(g,g,g===h.length-1);else if(typeof Symbol=="function"&&h[Symbol.iterator]){for(var v=[],_=h[Symbol.iterator](),S=_.next();!S.done;S=_.next())v.push(S.value);h=v;for(var m=h.length;g<m;g++)d(g,g,g===h.length-1)}else(function(){var y=void 0;Object.keys(h).forEach(function(b){y!==void 0&&d(y,g-1),y=b,g++}),y!==void 0&&d(y,g-1,!0)})();return g===0&&(l=f(this)),l})},s.exports=e.default})(Ps,Ps.exports)),Ps.exports}var Es={exports:{}},Vn;function ka(){return Vn||(Vn=1,(function(s,e){e.__esModule=!0;function t(i){return i&&i.__esModule?i:{default:i}}var n=st(),r=t(n);e.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},s.exports=e.default})(Es,Es.exports)),Es.exports}var Ls={exports:{}},$n;function xa(){return $n||($n=1,(function(s,e){e.__esModule=!0;function t(a){return a&&a.__esModule?a:{default:a}}var n=He(),r=st(),i=t(r);e.default=function(a){a.registerHelper("if",function(h,u){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return n.isFunction(h)&&(h=h.call(this)),!u.hash.includeZero&&!h||n.isEmpty(h)?u.inverse(this):u.fn(this)}),a.registerHelper("unless",function(h,u){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,h,{fn:u.inverse,inverse:u.fn,hash:u.hash})})},s.exports=e.default})(Ls,Ls.exports)),Ls.exports}var As={exports:{}},Un;function wa(){return Un||(Un=1,(function(s,e){e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var n=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)n.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),n[0]=a,t.log.apply(t,n)})},s.exports=e.default})(As,As.exports)),As.exports}var Rs={exports:{}},Wn;function Ta(){return Wn||(Wn=1,(function(s,e){e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(n,r,i){return n&&i.lookupProperty(n,r)})},s.exports=e.default})(Rs,Rs.exports)),Rs.exports}var Os={exports:{}},Gn;function Ca(){return Gn||(Gn=1,(function(s,e){e.__esModule=!0;function t(a){return a&&a.__esModule?a:{default:a}}var n=He(),r=st(),i=t(r);e.default=function(a){a.registerHelper("with",function(h,u){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");n.isFunction(h)&&(h=h.call(this));var p=u.fn;if(n.isEmpty(h))return u.inverse(this);var f=u.data;return u.data&&u.ids&&(f=n.createFrame(u.data),f.contextPath=n.appendContextPath(u.data.contextPath,u.ids[0])),p(h,{data:f,blockParams:n.blockParams([h],[f&&f.contextPath])})})},s.exports=e.default})(Os,Os.exports)),Os.exports}var Xn;function Yn(){if(Xn)return Zt;Xn=1,Zt.__esModule=!0,Zt.registerDefaultHelpers=d,Zt.moveHelperToHooks=m;function s(v){return v&&v.__esModule?v:{default:v}}var e=ba(),t=s(e),n=Sa(),r=s(n),i=ka(),a=s(i),h=xa(),u=s(h),p=wa(),f=s(p),g=Ta(),l=s(g),c=Ca(),o=s(c);function d(v){t.default(v),r.default(v),a.default(v),u.default(v),f.default(v),l.default(v),o.default(v)}function m(v,_,S){v.helpers[_]&&(v.hooks[_]=v.helpers[_],S||delete v.helpers[_])}return Zt}var Ms={},Is={exports:{}},Jn;function Pa(){return Jn||(Jn=1,(function(s,e){e.__esModule=!0;var t=He();e.default=function(n){n.registerDecorator("inline",function(r,i,a,h){var u=r;return i.partials||(i.partials={},u=function(p,f){var g=a.partials;a.partials=t.extend({},g,i.partials);var l=r(p,f);return a.partials=g,l}),i.partials[h.args[0]]=h.fn,u})},s.exports=e.default})(Is,Is.exports)),Is.exports}var Qn;function Ea(){if(Qn)return Ms;Qn=1,Ms.__esModule=!0,Ms.registerDefaultDecorators=n;function s(r){return r&&r.__esModule?r:{default:r}}var e=Pa(),t=s(e);function n(r){t.default(r)}return Ms}var Ns={exports:{}},Kn;function Zn(){return Kn||(Kn=1,(function(s,e){e.__esModule=!0;var t=He(),n={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=t.indexOf(n.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=n.lookupLevel(i),typeof console<"u"&&n.lookupLevel(n.level)<=i){var a=n.methodMap[i];console[a]||(a="log");for(var h=arguments.length,u=Array(h>1?h-1:0),p=1;p<h;p++)u[p-1]=arguments[p];console[a].apply(console,u)}}};e.default=n,s.exports=e.default})(Ns,Ns.exports)),Ns.exports}var Nt={},Bs={},jn;function La(){if(jn)return Bs;jn=1,Bs.__esModule=!0,Bs.createNewLookupObject=e;var s=He();function e(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s.extend.apply(void 0,[Object.create(null)].concat(n))}return Bs}var ei;function ti(){if(ei)return Nt;ei=1,Nt.__esModule=!0,Nt.createProtoAccessControl=i,Nt.resultIsAllowed=a,Nt.resetLoggedProperties=p;function s(f){return f&&f.__esModule?f:{default:f}}var e=La(),t=Zn(),n=s(t),r=Object.create(null);function i(f){var g=Object.create(null);g.constructor=!1,g.__defineGetter__=!1,g.__defineSetter__=!1,g.__lookupGetter__=!1;var l=Object.create(null);return l.__proto__=!1,{properties:{whitelist:e.createNewLookupObject(l,f.allowedProtoProperties),defaultValue:f.allowProtoPropertiesByDefault},methods:{whitelist:e.createNewLookupObject(g,f.allowedProtoMethods),defaultValue:f.allowProtoMethodsByDefault}}}function a(f,g,l){return h(typeof f=="function"?g.methods:g.properties,l)}function h(f,g){return f.whitelist[g]!==void 0?f.whitelist[g]===!0:f.defaultValue!==void 0?f.defaultValue:(u(g),!1)}function u(f){r[f]!==!0&&(r[f]=!0,n.default.log("error",'Handlebars: Access has been denied to resolve the property "'+f+`" because it is not an "own property" of its parent.
61
+ You can add a runtime option to disable the check or this warning:
62
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function p(){Object.keys(r).forEach(function(f){delete r[f]})}return Nt}var si;function xr(){if(si)return tt;si=1,tt.__esModule=!0,tt.HandlebarsEnvironment=o;function s(m){return m&&m.__esModule?m:{default:m}}var e=He(),t=st(),n=s(t),r=Yn(),i=Ea(),a=Zn(),h=s(a),u=ti(),p="4.7.8";tt.VERSION=p;var f=8;tt.COMPILER_REVISION=f;var g=7;tt.LAST_COMPATIBLE_COMPILER_REVISION=g;var l={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};tt.REVISION_CHANGES=l;var c="[object Object]";function o(m,v,_){this.helpers=m||{},this.partials=v||{},this.decorators=_||{},r.registerDefaultHelpers(this),i.registerDefaultDecorators(this)}o.prototype={constructor:o,logger:h.default,log:h.default.log,registerHelper:function(v,_){if(e.toString.call(v)===c){if(_)throw new n.default("Arg not supported with multiple helpers");e.extend(this.helpers,v)}else this.helpers[v]=_},unregisterHelper:function(v){delete this.helpers[v]},registerPartial:function(v,_){if(e.toString.call(v)===c)e.extend(this.partials,v);else{if(typeof _>"u")throw new n.default('Attempting to register a partial called "'+v+'" as undefined');this.partials[v]=_}},unregisterPartial:function(v){delete this.partials[v]},registerDecorator:function(v,_){if(e.toString.call(v)===c){if(_)throw new n.default("Arg not supported with multiple decorators");e.extend(this.decorators,v)}else this.decorators[v]=_},unregisterDecorator:function(v){delete this.decorators[v]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var d=h.default.log;return tt.log=d,tt.createFrame=e.createFrame,tt.logger=h.default,tt}var Ds={exports:{}},ri;function Aa(){return ri||(ri=1,(function(s,e){e.__esModule=!0;function t(n){this.string=n}t.prototype.toString=t.prototype.toHTML=function(){return""+this.string},e.default=t,s.exports=e.default})(Ds,Ds.exports)),Ds.exports}var ft={},qs={},ni;function Ra(){if(ni)return qs;ni=1,qs.__esModule=!0,qs.wrapHelper=s;function s(e,t){if(typeof e!="function")return e;var n=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)};return n}return qs}var ii;function Oa(){if(ii)return ft;ii=1,ft.__esModule=!0,ft.checkRevision=f,ft.template=g,ft.wrapProgram=l,ft.resolvePartial=c,ft.invokePartial=o,ft.noop=d;function s(y){return y&&y.__esModule?y:{default:y}}function e(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(b[k]=y[k]);return b.default=y,b}var t=He(),n=e(t),r=st(),i=s(r),a=xr(),h=Yn(),u=Ra(),p=ti();function f(y){var b=y&&y[0]||1,k=a.COMPILER_REVISION;if(!(b>=a.LAST_COMPATIBLE_COMPILER_REVISION&&b<=a.COMPILER_REVISION))if(b<a.LAST_COMPATIBLE_COMPILER_REVISION){var x=a.REVISION_CHANGES[k],C=a.REVISION_CHANGES[b];throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+x+") or downgrade your runtime to an older version ("+C+").")}else throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+y[1]+").")}function g(y,b){if(!b)throw new i.default("No environment passed to template");if(!y||!y.main)throw new i.default("Unknown template object: "+typeof y);y.main.decorator=y.main_d,b.VM.checkRevision(y.compiler);var k=y.compiler&&y.compiler[0]===7;function x(P,T,E){E.hash&&(T=n.extend({},T,E.hash),E.ids&&(E.ids[0]=!0)),P=b.VM.resolvePartial.call(this,P,T,E);var L=n.extend({},E,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),M=b.VM.invokePartial.call(this,P,T,L);if(M==null&&b.compile&&(E.partials[E.name]=b.compile(P,y.compilerOptions,b),M=E.partials[E.name](T,L)),M!=null){if(E.indent){for(var q=M.split(`
63
+ `),z=0,U=q.length;z<U&&!(!q[z]&&z+1===U);z++)q[z]=E.indent+q[z];M=q.join(`
64
+ `)}return M}else throw new i.default("The partial "+E.name+" could not be compiled when running in runtime-only mode")}var C={strict:function(T,E,L){if(!T||!(E in T))throw new i.default('"'+E+'" not defined in '+T,{loc:L});return C.lookupProperty(T,E)},lookupProperty:function(T,E){var L=T[E];if(L==null||Object.prototype.hasOwnProperty.call(T,E)||p.resultIsAllowed(L,C.protoAccessControl,E))return L},lookup:function(T,E){for(var L=T.length,M=0;M<L;M++){var q=T[M]&&C.lookupProperty(T[M],E);if(q!=null)return T[M][E]}},lambda:function(T,E){return typeof T=="function"?T.call(E):T},escapeExpression:n.escapeExpression,invokePartial:x,fn:function(T){var E=y[T];return E.decorator=y[T+"_d"],E},programs:[],program:function(T,E,L,M,q){var z=this.programs[T],U=this.fn(T);return E||q||M||L?z=l(this,T,U,E,L,M,q):z||(z=this.programs[T]=l(this,T,U)),z},data:function(T,E){for(;T&&E--;)T=T._parent;return T},mergeIfNeeded:function(T,E){var L=T||E;return T&&E&&T!==E&&(L=n.extend({},E,T)),L},nullContext:Object.seal({}),noop:b.VM.noop,compilerInfo:y.compiler};function R(P){var T=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],E=T.data;R._setup(T),!T.partial&&y.useData&&(E=m(P,E));var L=void 0,M=y.useBlockParams?[]:void 0;y.useDepths&&(T.depths?L=P!=T.depths[0]?[P].concat(T.depths):T.depths:L=[P]);function q(z){return""+y.main(C,z,C.helpers,C.partials,E,M,L)}return q=v(y.main,q,C,T.depths||[],E,M),q(P,T)}return R.isTop=!0,R._setup=function(P){if(P.partial)C.protoAccessControl=P.protoAccessControl,C.helpers=P.helpers,C.partials=P.partials,C.decorators=P.decorators,C.hooks=P.hooks;else{var T=n.extend({},b.helpers,P.helpers);_(T,C),C.helpers=T,y.usePartial&&(C.partials=C.mergeIfNeeded(P.partials,b.partials)),(y.usePartial||y.useDecorators)&&(C.decorators=n.extend({},b.decorators,P.decorators)),C.hooks={},C.protoAccessControl=p.createProtoAccessControl(P);var E=P.allowCallsToHelperMissing||k;h.moveHelperToHooks(C,"helperMissing",E),h.moveHelperToHooks(C,"blockHelperMissing",E)}},R._child=function(P,T,E,L){if(y.useBlockParams&&!E)throw new i.default("must pass block params");if(y.useDepths&&!L)throw new i.default("must pass parent depths");return l(C,P,y[P],T,0,E,L)},R}function l(y,b,k,x,C,R,P){function T(E){var L=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],M=P;return P&&E!=P[0]&&!(E===y.nullContext&&P[0]===null)&&(M=[E].concat(P)),k(y,E,y.helpers,y.partials,L.data||x,R&&[L.blockParams].concat(R),M)}return T=v(k,T,y,P,x,R),T.program=b,T.depth=P?P.length:0,T.blockParams=C||0,T}function c(y,b,k){return y?!y.call&&!k.name&&(k.name=y,y=k.partials[y]):k.name==="@partial-block"?y=k.data["partial-block"]:y=k.partials[k.name],y}function o(y,b,k){var x=k.data&&k.data["partial-block"];k.partial=!0,k.ids&&(k.data.contextPath=k.ids[0]||k.data.contextPath);var C=void 0;if(k.fn&&k.fn!==d&&(function(){k.data=a.createFrame(k.data);var R=k.fn;C=k.data["partial-block"]=function(T){var E=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return E.data=a.createFrame(E.data),E.data["partial-block"]=x,R(T,E)},R.partials&&(k.partials=n.extend({},k.partials,R.partials))})(),y===void 0&&C&&(y=C),y===void 0)throw new i.default("The partial "+k.name+" could not be found");if(y instanceof Function)return y(b,k)}function d(){return""}function m(y,b){return(!b||!("root"in b))&&(b=b?a.createFrame(b):{},b.root=y),b}function v(y,b,k,x,C,R){if(y.decorator){var P={};b=y.decorator(b,P,k,x&&x[0],C,R,x),n.extend(b,P)}return b}function _(y,b){Object.keys(y).forEach(function(k){var x=y[k];y[k]=S(x,b)})}function S(y,b){var k=b.lookupProperty;return u.wrapHelper(y,function(x){return n.extend({lookupProperty:k},x)})}return ft}var Hs={exports:{}},oi;function ai(){return oi||(oi=1,(function(s,e){e.__esModule=!0,e.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var n=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=n),t}},s.exports=e.default})(Hs,Hs.exports)),Hs.exports}var li;function Ma(){return li||(li=1,(function(s,e){e.__esModule=!0;function t(_){return _&&_.__esModule?_:{default:_}}function n(_){if(_&&_.__esModule)return _;var S={};if(_!=null)for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(S[y]=_[y]);return S.default=_,S}var r=xr(),i=n(r),a=Aa(),h=t(a),u=st(),p=t(u),f=He(),g=n(f),l=Oa(),c=n(l),o=ai(),d=t(o);function m(){var _=new i.HandlebarsEnvironment;return g.extend(_,i),_.SafeString=h.default,_.Exception=p.default,_.Utils=g,_.escapeExpression=g.escapeExpression,_.VM=c,_.template=function(S){return c.template(S,_)},_}var v=m();v.create=m,d.default(v),v.default=v,e.default=v,s.exports=e.default})(ws,ws.exports)),ws.exports}var Fs={exports:{}},ci;function ui(){return ci||(ci=1,(function(s,e){e.__esModule=!0;var t={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!t.helpers.scopedId(r)&&!r.depth}}};e.default=t,s.exports=e.default})(Fs,Fs.exports)),Fs.exports}var Bt={},zs={exports:{}},hi;function Ia(){return hi||(hi=1,(function(s,e){e.__esModule=!0;var t=(function(){var n={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(h,u,p,f,g,l,c){var o=l.length-1;switch(g){case 1:return l[o-1];case 2:this.$=f.prepareProgram(l[o]);break;case 3:this.$=l[o];break;case 4:this.$=l[o];break;case 5:this.$=l[o];break;case 6:this.$=l[o];break;case 7:this.$=l[o];break;case 8:this.$=l[o];break;case 9:this.$={type:"CommentStatement",value:f.stripComment(l[o]),strip:f.stripFlags(l[o],l[o]),loc:f.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[o],value:l[o],loc:f.locInfo(this._$)};break;case 11:this.$=f.prepareRawBlock(l[o-2],l[o-1],l[o],this._$);break;case 12:this.$={path:l[o-3],params:l[o-2],hash:l[o-1]};break;case 13:this.$=f.prepareBlock(l[o-3],l[o-2],l[o-1],l[o],!1,this._$);break;case 14:this.$=f.prepareBlock(l[o-3],l[o-2],l[o-1],l[o],!0,this._$);break;case 15:this.$={open:l[o-5],path:l[o-4],params:l[o-3],hash:l[o-2],blockParams:l[o-1],strip:f.stripFlags(l[o-5],l[o])};break;case 16:this.$={path:l[o-4],params:l[o-3],hash:l[o-2],blockParams:l[o-1],strip:f.stripFlags(l[o-5],l[o])};break;case 17:this.$={path:l[o-4],params:l[o-3],hash:l[o-2],blockParams:l[o-1],strip:f.stripFlags(l[o-5],l[o])};break;case 18:this.$={strip:f.stripFlags(l[o-1],l[o-1]),program:l[o]};break;case 19:var d=f.prepareBlock(l[o-2],l[o-1],l[o],l[o],!1,this._$),m=f.prepareProgram([d],l[o-1].loc);m.chained=!0,this.$={strip:l[o-2].strip,program:m,chain:!0};break;case 20:this.$=l[o];break;case 21:this.$={path:l[o-1],strip:f.stripFlags(l[o-2],l[o])};break;case 22:this.$=f.prepareMustache(l[o-3],l[o-2],l[o-1],l[o-4],f.stripFlags(l[o-4],l[o]),this._$);break;case 23:this.$=f.prepareMustache(l[o-3],l[o-2],l[o-1],l[o-4],f.stripFlags(l[o-4],l[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[o-3],params:l[o-2],hash:l[o-1],indent:"",strip:f.stripFlags(l[o-4],l[o]),loc:f.locInfo(this._$)};break;case 25:this.$=f.preparePartialBlock(l[o-2],l[o-1],l[o],this._$);break;case 26:this.$={path:l[o-3],params:l[o-2],hash:l[o-1],strip:f.stripFlags(l[o-4],l[o])};break;case 27:this.$=l[o];break;case 28:this.$=l[o];break;case 29:this.$={type:"SubExpression",path:l[o-3],params:l[o-2],hash:l[o-1],loc:f.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[o],loc:f.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:f.id(l[o-2]),value:l[o],loc:f.locInfo(this._$)};break;case 32:this.$=f.id(l[o-1]);break;case 33:this.$=l[o];break;case 34:this.$=l[o];break;case 35:this.$={type:"StringLiteral",value:l[o],original:l[o],loc:f.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[o]),original:Number(l[o]),loc:f.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[o]==="true",original:l[o]==="true",loc:f.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:f.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:f.locInfo(this._$)};break;case 40:this.$=l[o];break;case 41:this.$=l[o];break;case 42:this.$=f.preparePath(!0,l[o],this._$);break;case 43:this.$=f.preparePath(!1,l[o],this._$);break;case 44:l[o-2].push({part:f.id(l[o]),original:l[o],separator:l[o-1]}),this.$=l[o-2];break;case 45:this.$=[{part:f.id(l[o]),original:l[o]}];break;case 46:this.$=[];break;case 47:l[o-1].push(l[o]);break;case 48:this.$=[];break;case 49:l[o-1].push(l[o]);break;case 50:this.$=[];break;case 51:l[o-1].push(l[o]);break;case 58:this.$=[];break;case 59:l[o-1].push(l[o]);break;case 64:this.$=[];break;case 65:l[o-1].push(l[o]);break;case 70:this.$=[];break;case 71:l[o-1].push(l[o]);break;case 78:this.$=[];break;case 79:l[o-1].push(l[o]);break;case 82:this.$=[];break;case 83:l[o-1].push(l[o]);break;case 86:this.$=[];break;case 87:l[o-1].push(l[o]);break;case 90:this.$=[];break;case 91:l[o-1].push(l[o]);break;case 94:this.$=[];break;case 95:l[o-1].push(l[o]);break;case 98:this.$=[l[o]];break;case 99:l[o-1].push(l[o]);break;case 100:this.$=[l[o]];break;case 101:l[o-1].push(l[o]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(h,u){throw new Error(h)},parse:function(h){var u=this,p=[0],f=[null],g=[],l=this.table,c="",o=0,d=0;this.lexer.setInput(h),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var m=this.lexer.yylloc;g.push(m);var v=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function _(){var L;return L=u.lexer.lex()||1,typeof L!="number"&&(L=u.symbols_[L]||L),L}for(var S,y,b,k,x={},C,R,P,T;;){if(y=p[p.length-1],this.defaultActions[y]?b=this.defaultActions[y]:((S===null||typeof S>"u")&&(S=_()),b=l[y]&&l[y][S]),typeof b>"u"||!b.length||!b[0]){var E="";{T=[];for(C in l[y])this.terminals_[C]&&C>2&&T.push("'"+this.terminals_[C]+"'");this.lexer.showPosition?E="Parse error on line "+(o+1)+`:
65
+ `+this.lexer.showPosition()+`
66
+ Expecting `+T.join(", ")+", got '"+(this.terminals_[S]||S)+"'":E="Parse error on line "+(o+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(E,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:m,expected:T})}}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+S);switch(b[0]){case 1:p.push(S),f.push(this.lexer.yytext),g.push(this.lexer.yylloc),p.push(b[1]),S=null,d=this.lexer.yyleng,c=this.lexer.yytext,o=this.lexer.yylineno,m=this.lexer.yylloc;break;case 2:if(R=this.productions_[b[1]][1],x.$=f[f.length-R],x._$={first_line:g[g.length-(R||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(R||1)].first_column,last_column:g[g.length-1].last_column},v&&(x._$.range=[g[g.length-(R||1)].range[0],g[g.length-1].range[1]]),k=this.performAction.call(x,c,d,o,this.yy,b[1],f,g),typeof k<"u")return k;R&&(p=p.slice(0,-1*R*2),f=f.slice(0,-1*R),g=g.slice(0,-1*R)),p.push(this.productions_[b[1]][0]),f.push(x.$),g.push(x._$),P=l[p[p.length-2]][p[p.length-1]],p.push(P);break;case 3:return!0}}return!0}},r=(function(){var a={EOF:1,parseError:function(u,p){if(this.yy.parser)this.yy.parser.parseError(u,p);else throw new Error(u)},setInput:function(u){return this._input=u,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var p=u.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var p=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p-1),this.offset-=p;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===g.length?this.yylloc.first_column:0)+g[g.length-f.length].length-f[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-p]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),p=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
67
+ `+p+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,p,f,g,l;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),o=0;o<c.length&&(f=this._input.match(this.rules[c[o]]),!(f&&(!p||f[0].length>p[0].length)&&(p=f,g=o,!this.options.flex)));o++);return p?(l=p[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],u=this.performAction.call(this,this.yy,this,c[g],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
68
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return typeof u<"u"?u:this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(u){this.begin(u)}};return a.options={},a.performAction=function(u,p,f,g){function l(c,o){return p.yytext=p.yytext.substring(c,p.yyleng-o+c)}switch(f){case 0:if(p.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):p.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),p.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(p.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return p.yytext=l(1,2).replace(/\\"/g,'"'),80;case 32:return p.yytext=l(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return p.yytext=p.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a})();n.lexer=r;function i(){this.yy={}}return i.prototype=n,n.Parser=i,new i})();e.default=t,s.exports=e.default})(zs,zs.exports)),zs.exports}var Vs={exports:{}},$s={exports:{}},pi;function fi(){return pi||(pi=1,(function(s,e){e.__esModule=!0;function t(p){return p&&p.__esModule?p:{default:p}}var n=st(),r=t(n);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(f,g){var l=this.accept(f[g]);if(this.mutating){if(l&&!i.prototype[l.type])throw new r.default('Unexpected node type "'+l.type+'" found when accepting '+g+" on "+f.type);f[g]=l}},acceptRequired:function(f,g){if(this.acceptKey(f,g),!f[g])throw new r.default(f.type+" requires "+g)},acceptArray:function(f){for(var g=0,l=f.length;g<l;g++)this.acceptKey(f,g),f[g]||(f.splice(g,1),g--,l--)},accept:function(f){if(f){if(!this[f.type])throw new r.default("Unknown type: "+f.type,f);this.current&&this.parents.unshift(this.current),this.current=f;var g=this[f.type](f);if(this.current=this.parents.shift(),!this.mutating||g)return g;if(g!==!1)return f}},Program:function(f){this.acceptArray(f.body)},MustacheStatement:a,Decorator:a,BlockStatement:h,DecoratorBlock:h,PartialStatement:u,PartialBlockStatement:function(f){u.call(this,f),this.acceptKey(f,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(f){this.acceptArray(f.pairs)},HashPair:function(f){this.acceptRequired(f,"value")}};function a(p){this.acceptRequired(p,"path"),this.acceptArray(p.params),this.acceptKey(p,"hash")}function h(p){a.call(this,p),this.acceptKey(p,"program"),this.acceptKey(p,"inverse")}function u(p){this.acceptRequired(p,"name"),this.acceptArray(p.params),this.acceptKey(p,"hash")}e.default=i,s.exports=e.default})($s,$s.exports)),$s.exports}var di;function Na(){return di||(di=1,(function(s,e){e.__esModule=!0;function t(f){return f&&f.__esModule?f:{default:f}}var n=fi(),r=t(n);function i(){var f=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=f}i.prototype=new r.default,i.prototype.Program=function(f){var g=!this.options.ignoreStandalone,l=!this.isRootSeen;this.isRootSeen=!0;for(var c=f.body,o=0,d=c.length;o<d;o++){var m=c[o],v=this.accept(m);if(v){var _=a(c,o,l),S=h(c,o,l),y=v.openStandalone&&_,b=v.closeStandalone&&S,k=v.inlineStandalone&&_&&S;v.close&&u(c,o,!0),v.open&&p(c,o,!0),g&&k&&(u(c,o),p(c,o)&&m.type==="PartialStatement"&&(m.indent=/([ \t]+$)/.exec(c[o-1].original)[1])),g&&y&&(u((m.program||m.inverse).body),p(c,o)),g&&b&&(u(c,o),p((m.inverse||m.program).body))}}return f},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(f){this.accept(f.program),this.accept(f.inverse);var g=f.program||f.inverse,l=f.program&&f.inverse,c=l,o=l;if(l&&l.chained)for(c=l.body[0].program;o.chained;)o=o.body[o.body.length-1].program;var d={open:f.openStrip.open,close:f.closeStrip.close,openStandalone:h(g.body),closeStandalone:a((c||g).body)};if(f.openStrip.close&&u(g.body,null,!0),l){var m=f.inverseStrip;m.open&&p(g.body,null,!0),m.close&&u(c.body,null,!0),f.closeStrip.open&&p(o.body,null,!0),!this.options.ignoreStandalone&&a(g.body)&&h(c.body)&&(p(g.body),u(c.body))}else f.closeStrip.open&&p(g.body,null,!0);return d},i.prototype.Decorator=i.prototype.MustacheStatement=function(f){return f.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(f){var g=f.strip||{};return{inlineStandalone:!0,open:g.open,close:g.close}};function a(f,g,l){g===void 0&&(g=f.length);var c=f[g-1],o=f[g-2];if(!c)return l;if(c.type==="ContentStatement")return(o||!l?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(c.original)}function h(f,g,l){g===void 0&&(g=-1);var c=f[g+1],o=f[g+2];if(!c)return l;if(c.type==="ContentStatement")return(o||!l?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(c.original)}function u(f,g,l){var c=f[g==null?0:g+1];if(!(!c||c.type!=="ContentStatement"||!l&&c.rightStripped)){var o=c.value;c.value=c.value.replace(l?/^\s+/:/^[ \t]*\r?\n?/,""),c.rightStripped=c.value!==o}}function p(f,g,l){var c=f[g==null?f.length-1:g-1];if(!(!c||c.type!=="ContentStatement"||!l&&c.leftStripped)){var o=c.value;return c.value=c.value.replace(l?/\s+$/:/[ \t]+$/,""),c.leftStripped=c.value!==o,c.leftStripped}}e.default=i,s.exports=e.default})(Vs,Vs.exports)),Vs.exports}var Ve={},gi;function Ba(){if(gi)return Ve;gi=1,Ve.__esModule=!0,Ve.SourceLocation=r,Ve.id=i,Ve.stripFlags=a,Ve.stripComment=h,Ve.preparePath=u,Ve.prepareMustache=p,Ve.prepareRawBlock=f,Ve.prepareBlock=g,Ve.prepareProgram=l,Ve.preparePartialBlock=c;function s(o){return o&&o.__esModule?o:{default:o}}var e=st(),t=s(e);function n(o,d){if(d=d.path?d.path.original:d,o.path.original!==d){var m={loc:o.path.loc};throw new t.default(o.path.original+" doesn't match "+d,m)}}function r(o,d){this.source=o,this.start={line:d.first_line,column:d.first_column},this.end={line:d.last_line,column:d.last_column}}function i(o){return/^\[.*\]$/.test(o)?o.substring(1,o.length-1):o}function a(o,d){return{open:o.charAt(2)==="~",close:d.charAt(d.length-3)==="~"}}function h(o){return o.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function u(o,d,m){m=this.locInfo(m);for(var v=o?"@":"",_=[],S=0,y=0,b=d.length;y<b;y++){var k=d[y].part,x=d[y].original!==k;if(v+=(d[y].separator||"")+k,!x&&(k===".."||k==="."||k==="this")){if(_.length>0)throw new t.default("Invalid path: "+v,{loc:m});k===".."&&S++}else _.push(k)}return{type:"PathExpression",data:o,depth:S,parts:_,original:v,loc:m}}function p(o,d,m,v,_,S){var y=v.charAt(3)||v.charAt(2),b=y!=="{"&&y!=="&",k=/\*/.test(v);return{type:k?"Decorator":"MustacheStatement",path:o,params:d,hash:m,escaped:b,strip:_,loc:this.locInfo(S)}}function f(o,d,m,v){n(o,m),v=this.locInfo(v);var _={type:"Program",body:d,strip:{},loc:v};return{type:"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:_,openStrip:{},inverseStrip:{},closeStrip:{},loc:v}}function g(o,d,m,v,_,S){v&&v.path&&n(o,v);var y=/\*/.test(o.open);d.blockParams=o.blockParams;var b=void 0,k=void 0;if(m){if(y)throw new t.default("Unexpected inverse block on decorator",m);m.chain&&(m.program.body[0].closeStrip=v.strip),k=m.strip,b=m.program}return _&&(_=b,b=d,d=_),{type:y?"DecoratorBlock":"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:d,inverse:b,openStrip:o.strip,inverseStrip:k,closeStrip:v&&v.strip,loc:this.locInfo(S)}}function l(o,d){if(!d&&o.length){var m=o[0].loc,v=o[o.length-1].loc;m&&v&&(d={source:m.source,start:{line:m.start.line,column:m.start.column},end:{line:v.end.line,column:v.end.column}})}return{type:"Program",body:o,strip:{},loc:d}}function c(o,d,m,v){return n(o,m),{type:"PartialBlockStatement",name:o.path,params:o.params,hash:o.hash,program:d,openStrip:o.strip,closeStrip:m&&m.strip,loc:this.locInfo(v)}}return Ve}var mi;function Da(){if(mi)return Bt;mi=1,Bt.__esModule=!0,Bt.parseWithoutProcessing=f,Bt.parse=g;function s(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(c[o]=l[o]);return c.default=l,c}function e(l){return l&&l.__esModule?l:{default:l}}var t=Ia(),n=e(t),r=Na(),i=e(r),a=Ba(),h=s(a),u=He();Bt.parser=n.default;var p={};u.extend(p,h);function f(l,c){if(l.type==="Program")return l;n.default.yy=p,p.locInfo=function(d){return new p.SourceLocation(c&&c.srcName,d)};var o=n.default.parse(l);return o}function g(l,c){var o=f(l,c),d=new i.default(c);return d.accept(o)}return Bt}var Dt={},vi;function qa(){if(vi)return Dt;vi=1,Dt.__esModule=!0,Dt.Compiler=h,Dt.precompile=u,Dt.compile=p;function s(l){return l&&l.__esModule?l:{default:l}}var e=st(),t=s(e),n=He(),r=ui(),i=s(r),a=[].slice;function h(){}h.prototype={compiler:h,equals:function(c){var o=this.opcodes.length;if(c.opcodes.length!==o)return!1;for(var d=0;d<o;d++){var m=this.opcodes[d],v=c.opcodes[d];if(m.opcode!==v.opcode||!f(m.args,v.args))return!1}o=this.children.length;for(var d=0;d<o;d++)if(!this.children[d].equals(c.children[d]))return!1;return!0},guid:0,compile:function(c,o){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=o,this.stringParams=o.stringParams,this.trackIds=o.trackIds,o.blockParams=o.blockParams||[],o.knownHelpers=n.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},o.knownHelpers),this.accept(c)},compileProgram:function(c){var o=new this.compiler,d=o.compile(c,this.options),m=this.guid++;return this.usePartial=this.usePartial||d.usePartial,this.children[m]=d,this.useDepths=this.useDepths||d.useDepths,m},accept:function(c){if(!this[c.type])throw new t.default("Unknown type: "+c.type,c);this.sourceNode.unshift(c);var o=this[c.type](c);return this.sourceNode.shift(),o},Program:function(c){this.options.blockParams.unshift(c.blockParams);for(var o=c.body,d=o.length,m=0;m<d;m++)this.accept(o[m]);return this.options.blockParams.shift(),this.isSimple=d===1,this.blockParams=c.blockParams?c.blockParams.length:0,this},BlockStatement:function(c){g(c);var o=c.program,d=c.inverse;o=o&&this.compileProgram(o),d=d&&this.compileProgram(d);var m=this.classifySexpr(c);m==="helper"?this.helperSexpr(c,o,d):m==="simple"?(this.simpleSexpr(c),this.opcode("pushProgram",o),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",c.path.original)):(this.ambiguousSexpr(c,o,d),this.opcode("pushProgram",o),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(c){var o=c.program&&this.compileProgram(c.program),d=this.setupFullMustacheParams(c,o,void 0),m=c.path;this.useDecorators=!0,this.opcode("registerDecorator",d.length,m.original)},PartialStatement:function(c){this.usePartial=!0;var o=c.program;o&&(o=this.compileProgram(c.program));var d=c.params;if(d.length>1)throw new t.default("Unsupported number of partial arguments: "+d.length,c);d.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):d.push({type:"PathExpression",parts:[],depth:0}));var m=c.name.original,v=c.name.type==="SubExpression";v&&this.accept(c.name),this.setupFullMustacheParams(c,o,void 0,!0);var _=c.indent||"";this.options.preventIndent&&_&&(this.opcode("appendContent",_),_=""),this.opcode("invokePartial",v,m,_),this.opcode("append")},PartialBlockStatement:function(c){this.PartialStatement(c)},MustacheStatement:function(c){this.SubExpression(c),c.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(c){this.DecoratorBlock(c)},ContentStatement:function(c){c.value&&this.opcode("appendContent",c.value)},CommentStatement:function(){},SubExpression:function(c){g(c);var o=this.classifySexpr(c);o==="simple"?this.simpleSexpr(c):o==="helper"?this.helperSexpr(c):this.ambiguousSexpr(c)},ambiguousSexpr:function(c,o,d){var m=c.path,v=m.parts[0],_=o!=null||d!=null;this.opcode("getContext",m.depth),this.opcode("pushProgram",o),this.opcode("pushProgram",d),m.strict=!0,this.accept(m),this.opcode("invokeAmbiguous",v,_)},simpleSexpr:function(c){var o=c.path;o.strict=!0,this.accept(o),this.opcode("resolvePossibleLambda")},helperSexpr:function(c,o,d){var m=this.setupFullMustacheParams(c,o,d),v=c.path,_=v.parts[0];if(this.options.knownHelpers[_])this.opcode("invokeKnownHelper",m.length,_);else{if(this.options.knownHelpersOnly)throw new t.default("You specified knownHelpersOnly, but used the unknown helper "+_,c);v.strict=!0,v.falsy=!0,this.accept(v),this.opcode("invokeHelper",m.length,v.original,i.default.helpers.simpleId(v))}},PathExpression:function(c){this.addDepth(c.depth),this.opcode("getContext",c.depth);var o=c.parts[0],d=i.default.helpers.scopedId(c),m=!c.depth&&!d&&this.blockParamIndex(o);m?this.opcode("lookupBlockParam",m,c.parts):o?c.data?(this.options.data=!0,this.opcode("lookupData",c.depth,c.parts,c.strict)):this.opcode("lookupOnContext",c.parts,c.falsy,c.strict,d):this.opcode("pushContext")},StringLiteral:function(c){this.opcode("pushString",c.value)},NumberLiteral:function(c){this.opcode("pushLiteral",c.value)},BooleanLiteral:function(c){this.opcode("pushLiteral",c.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(c){var o=c.pairs,d=0,m=o.length;for(this.opcode("pushHash");d<m;d++)this.pushParam(o[d].value);for(;d--;)this.opcode("assignToHash",o[d].key);this.opcode("popHash")},opcode:function(c){this.opcodes.push({opcode:c,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(c){c&&(this.useDepths=!0)},classifySexpr:function(c){var o=i.default.helpers.simpleId(c.path),d=o&&!!this.blockParamIndex(c.path.parts[0]),m=!d&&i.default.helpers.helperExpression(c),v=!d&&(m||o);if(v&&!m){var _=c.path.parts[0],S=this.options;S.knownHelpers[_]?m=!0:S.knownHelpersOnly&&(v=!1)}return m?"helper":v?"ambiguous":"simple"},pushParams:function(c){for(var o=0,d=c.length;o<d;o++)this.pushParam(c[o])},pushParam:function(c){var o=c.value!=null?c.value:c.original||"";if(this.stringParams)o.replace&&(o=o.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),c.depth&&this.addDepth(c.depth),this.opcode("getContext",c.depth||0),this.opcode("pushStringParam",o,c.type),c.type==="SubExpression"&&this.accept(c);else{if(this.trackIds){var d=void 0;if(c.parts&&!i.default.helpers.scopedId(c)&&!c.depth&&(d=this.blockParamIndex(c.parts[0])),d){var m=c.parts.slice(1).join(".");this.opcode("pushId","BlockParam",d,m)}else o=c.original||o,o.replace&&(o=o.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",c.type,o)}this.accept(c)}},setupFullMustacheParams:function(c,o,d,m){var v=c.params;return this.pushParams(v),this.opcode("pushProgram",o),this.opcode("pushProgram",d),c.hash?this.accept(c.hash):this.opcode("emptyHash",m),v},blockParamIndex:function(c){for(var o=0,d=this.options.blockParams.length;o<d;o++){var m=this.options.blockParams[o],v=m&&n.indexOf(m,c);if(m&&v>=0)return[o,v]}}};function u(l,c,o){if(l==null||typeof l!="string"&&l.type!=="Program")throw new t.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+l);c=c||{},"data"in c||(c.data=!0),c.compat&&(c.useDepths=!0);var d=o.parse(l,c),m=new o.Compiler().compile(d,c);return new o.JavaScriptCompiler().compile(m,c)}function p(l,c,o){if(c===void 0&&(c={}),l==null||typeof l!="string"&&l.type!=="Program")throw new t.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+l);c=n.extend({},c),"data"in c||(c.data=!0),c.compat&&(c.useDepths=!0);var d=void 0;function m(){var _=o.parse(l,c),S=new o.Compiler().compile(_,c),y=new o.JavaScriptCompiler().compile(S,c,void 0,!0);return o.template(y)}function v(_,S){return d||(d=m()),d.call(this,_,S)}return v._setup=function(_){return d||(d=m()),d._setup(_)},v._child=function(_,S,y,b){return d||(d=m()),d._child(_,S,y,b)},v}function f(l,c){if(l===c)return!0;if(n.isArray(l)&&n.isArray(c)&&l.length===c.length){for(var o=0;o<l.length;o++)if(!f(l[o],c[o]))return!1;return!0}}function g(l){if(!l.path.parts){var c=l.path;l.path={type:"PathExpression",data:!1,depth:0,parts:[c.original+""],original:c.original+"",loc:c.loc}}}return Dt}var Us={exports:{}},Ws={exports:{}},jt={},wr={},Gs={},Xs={},yi;function Ha(){if(yi)return Xs;yi=1;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Xs.encode=function(e){if(0<=e&&e<s.length)return s[e];throw new TypeError("Must be between 0 and 63: "+e)},Xs.decode=function(e){var t=65,n=90,r=97,i=122,a=48,h=57,u=43,p=47,f=26,g=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+f:a<=e&&e<=h?e-a+g:e==u?62:e==p?63:-1},Xs}var _i;function bi(){if(_i)return Gs;_i=1;var s=Ha(),e=5,t=1<<e,n=t-1,r=t;function i(h){return h<0?(-h<<1)+1:(h<<1)+0}function a(h){var u=(h&1)===1,p=h>>1;return u?-p:p}return Gs.encode=function(u){var p="",f,g=i(u);do f=g&n,g>>>=e,g>0&&(f|=r),p+=s.encode(f);while(g>0);return p},Gs.decode=function(u,p,f){var g=u.length,l=0,c=0,o,d;do{if(p>=g)throw new Error("Expected more digits in base 64 VLQ value.");if(d=s.decode(u.charCodeAt(p++)),d===-1)throw new Error("Invalid base64 digit: "+u.charAt(p-1));o=!!(d&r),d&=n,l=l+(d<<c),c+=e}while(o);f.value=a(l),f.rest=p},Gs}var Tr={},Si;function es(){return Si||(Si=1,(function(s){function e(y,b,k){if(b in y)return y[b];if(arguments.length===3)return k;throw new Error('"'+b+'" is a required argument.')}s.getArg=e;var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(y){var b=y.match(t);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}s.urlParse=r;function i(y){var b="";return y.scheme&&(b+=y.scheme+":"),b+="//",y.auth&&(b+=y.auth+"@"),y.host&&(b+=y.host),y.port&&(b+=":"+y.port),y.path&&(b+=y.path),b}s.urlGenerate=i;function a(y){var b=y,k=r(y);if(k){if(!k.path)return y;b=k.path}for(var x=s.isAbsolute(b),C=b.split(/\/+/),R,P=0,T=C.length-1;T>=0;T--)R=C[T],R==="."?C.splice(T,1):R===".."?P++:P>0&&(R===""?(C.splice(T+1,P),P=0):(C.splice(T,2),P--));return b=C.join("/"),b===""&&(b=x?"/":"."),k?(k.path=b,i(k)):b}s.normalize=a;function h(y,b){y===""&&(y="."),b===""&&(b=".");var k=r(b),x=r(y);if(x&&(y=x.path||"/"),k&&!k.scheme)return x&&(k.scheme=x.scheme),i(k);if(k||b.match(n))return b;if(x&&!x.host&&!x.path)return x.host=b,i(x);var C=b.charAt(0)==="/"?b:a(y.replace(/\/+$/,"")+"/"+b);return x?(x.path=C,i(x)):C}s.join=h,s.isAbsolute=function(y){return y.charAt(0)==="/"||t.test(y)};function u(y,b){y===""&&(y="."),y=y.replace(/\/$/,"");for(var k=0;b.indexOf(y+"/")!==0;){var x=y.lastIndexOf("/");if(x<0||(y=y.slice(0,x),y.match(/^([^\/]+:\/)?\/*$/)))return b;++k}return Array(k+1).join("../")+b.substr(y.length+1)}s.relative=u;var p=(function(){var y=Object.create(null);return!("__proto__"in y)})();function f(y){return y}function g(y){return c(y)?"$"+y:y}s.toSetString=p?f:g;function l(y){return c(y)?y.slice(1):y}s.fromSetString=p?f:l;function c(y){if(!y)return!1;var b=y.length;if(b<9||y.charCodeAt(b-1)!==95||y.charCodeAt(b-2)!==95||y.charCodeAt(b-3)!==111||y.charCodeAt(b-4)!==116||y.charCodeAt(b-5)!==111||y.charCodeAt(b-6)!==114||y.charCodeAt(b-7)!==112||y.charCodeAt(b-8)!==95||y.charCodeAt(b-9)!==95)return!1;for(var k=b-10;k>=0;k--)if(y.charCodeAt(k)!==36)return!1;return!0}function o(y,b,k){var x=m(y.source,b.source);return x!==0||(x=y.originalLine-b.originalLine,x!==0)||(x=y.originalColumn-b.originalColumn,x!==0||k)||(x=y.generatedColumn-b.generatedColumn,x!==0)||(x=y.generatedLine-b.generatedLine,x!==0)?x:m(y.name,b.name)}s.compareByOriginalPositions=o;function d(y,b,k){var x=y.generatedLine-b.generatedLine;return x!==0||(x=y.generatedColumn-b.generatedColumn,x!==0||k)||(x=m(y.source,b.source),x!==0)||(x=y.originalLine-b.originalLine,x!==0)||(x=y.originalColumn-b.originalColumn,x!==0)?x:m(y.name,b.name)}s.compareByGeneratedPositionsDeflated=d;function m(y,b){return y===b?0:y===null?1:b===null?-1:y>b?1:-1}function v(y,b){var k=y.generatedLine-b.generatedLine;return k!==0||(k=y.generatedColumn-b.generatedColumn,k!==0)||(k=m(y.source,b.source),k!==0)||(k=y.originalLine-b.originalLine,k!==0)||(k=y.originalColumn-b.originalColumn,k!==0)?k:m(y.name,b.name)}s.compareByGeneratedPositionsInflated=v;function _(y){return JSON.parse(y.replace(/^\)]}'[^\n]*\n/,""))}s.parseSourceMapInput=_;function S(y,b,k){if(b=b||"",y&&(y[y.length-1]!=="/"&&b[0]!=="/"&&(y+="/"),b=y+b),k){var x=r(k);if(!x)throw new Error("sourceMapURL could not be parsed");if(x.path){var C=x.path.lastIndexOf("/");C>=0&&(x.path=x.path.substring(0,C+1))}b=h(i(x),b)}return a(b)}s.computeSourceURL=S})(Tr)),Tr}var Cr={},ki;function xi(){if(ki)return Cr;ki=1;var s=es(),e=Object.prototype.hasOwnProperty,t=typeof Map<"u";function n(){this._array=[],this._set=t?new Map:Object.create(null)}return n.fromArray=function(i,a){for(var h=new n,u=0,p=i.length;u<p;u++)h.add(i[u],a);return h},n.prototype.size=function(){return t?this._set.size:Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(i,a){var h=t?i:s.toSetString(i),u=t?this.has(i):e.call(this._set,h),p=this._array.length;(!u||a)&&this._array.push(i),u||(t?this._set.set(i,p):this._set[h]=p)},n.prototype.has=function(i){if(t)return this._set.has(i);var a=s.toSetString(i);return e.call(this._set,a)},n.prototype.indexOf=function(i){if(t){var a=this._set.get(i);if(a>=0)return a}else{var h=s.toSetString(i);if(e.call(this._set,h))return this._set[h]}throw new Error('"'+i+'" is not in the set.')},n.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},n.prototype.toArray=function(){return this._array.slice()},Cr.ArraySet=n,Cr}var Pr={},wi;function Fa(){if(wi)return Pr;wi=1;var s=es();function e(n,r){var i=n.generatedLine,a=r.generatedLine,h=n.generatedColumn,u=r.generatedColumn;return a>i||a==i&&u>=h||s.compareByGeneratedPositionsInflated(n,r)<=0}function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},t.prototype.add=function(r){e(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Pr.MappingList=t,Pr}var Ti;function Ci(){if(Ti)return wr;Ti=1;var s=bi(),e=es(),t=xi().ArraySet,n=Fa().MappingList;function r(i){i||(i={}),this._file=e.getArg(i,"file",null),this._sourceRoot=e.getArg(i,"sourceRoot",null),this._skipValidation=e.getArg(i,"skipValidation",!1),this._sources=new t,this._names=new t,this._mappings=new n,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var h=a.sourceRoot,u=new r({file:a.file,sourceRoot:h});return a.eachMapping(function(p){var f={generated:{line:p.generatedLine,column:p.generatedColumn}};p.source!=null&&(f.source=p.source,h!=null&&(f.source=e.relative(h,f.source)),f.original={line:p.originalLine,column:p.originalColumn},p.name!=null&&(f.name=p.name)),u.addMapping(f)}),a.sources.forEach(function(p){var f=p;h!==null&&(f=e.relative(h,p)),u._sources.has(f)||u._sources.add(f);var g=a.sourceContentFor(p);g!=null&&u.setSourceContent(p,g)}),u},r.prototype.addMapping=function(a){var h=e.getArg(a,"generated"),u=e.getArg(a,"original",null),p=e.getArg(a,"source",null),f=e.getArg(a,"name",null);this._skipValidation||this._validateMapping(h,u,p,f),p!=null&&(p=String(p),this._sources.has(p)||this._sources.add(p)),f!=null&&(f=String(f),this._names.has(f)||this._names.add(f)),this._mappings.add({generatedLine:h.line,generatedColumn:h.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:p,name:f})},r.prototype.setSourceContent=function(a,h){var u=a;this._sourceRoot!=null&&(u=e.relative(this._sourceRoot,u)),h!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[e.toSetString(u)]=h):this._sourcesContents&&(delete this._sourcesContents[e.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,h,u){var p=h;if(h==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);p=a.file}var f=this._sourceRoot;f!=null&&(p=e.relative(f,p));var g=new t,l=new t;this._mappings.unsortedForEach(function(c){if(c.source===p&&c.originalLine!=null){var o=a.originalPositionFor({line:c.originalLine,column:c.originalColumn});o.source!=null&&(c.source=o.source,u!=null&&(c.source=e.join(u,c.source)),f!=null&&(c.source=e.relative(f,c.source)),c.originalLine=o.line,c.originalColumn=o.column,o.name!=null&&(c.name=o.name))}var d=c.source;d!=null&&!g.has(d)&&g.add(d);var m=c.name;m!=null&&!l.has(m)&&l.add(m)},this),this._sources=g,this._names=l,a.sources.forEach(function(c){var o=a.sourceContentFor(c);o!=null&&(u!=null&&(c=e.join(u,c)),f!=null&&(c=e.relative(f,c)),this.setSourceContent(c,o))},this)},r.prototype._validateMapping=function(a,h,u,p){if(h&&typeof h.line!="number"&&typeof h.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!h&&!u&&!p)){if(a&&"line"in a&&"column"in a&&h&&"line"in h&&"column"in h&&a.line>0&&a.column>=0&&h.line>0&&h.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:u,original:h,name:p}))}},r.prototype._serializeMappings=function(){for(var a=0,h=1,u=0,p=0,f=0,g=0,l="",c,o,d,m,v=this._mappings.toArray(),_=0,S=v.length;_<S;_++){if(o=v[_],c="",o.generatedLine!==h)for(a=0;o.generatedLine!==h;)c+=";",h++;else if(_>0){if(!e.compareByGeneratedPositionsInflated(o,v[_-1]))continue;c+=","}c+=s.encode(o.generatedColumn-a),a=o.generatedColumn,o.source!=null&&(m=this._sources.indexOf(o.source),c+=s.encode(m-g),g=m,c+=s.encode(o.originalLine-1-p),p=o.originalLine-1,c+=s.encode(o.originalColumn-u),u=o.originalColumn,o.name!=null&&(d=this._names.indexOf(o.name),c+=s.encode(d-f),f=d)),l+=c}return l},r.prototype._generateSourcesContent=function(a,h){return a.map(function(u){if(!this._sourcesContents)return null;h!=null&&(u=e.relative(h,u));var p=e.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,p)?this._sourcesContents[p]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},wr.SourceMapGenerator=r,wr}var ts={},Er={},Pi;function za(){return Pi||(Pi=1,(function(s){s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2;function e(t,n,r,i,a,h){var u=Math.floor((n-t)/2)+t,p=a(r,i[u],!0);return p===0?u:p>0?n-u>1?e(u,n,r,i,a,h):h==s.LEAST_UPPER_BOUND?n<i.length?n:-1:u:u-t>1?e(t,u,r,i,a,h):h==s.LEAST_UPPER_BOUND?u:t<0?-1:t}s.search=function(n,r,i,a){if(r.length===0)return-1;var h=e(-1,r.length,n,r,i,a||s.GREATEST_LOWER_BOUND);if(h<0)return-1;for(;h-1>=0&&i(r[h],r[h-1],!0)===0;)--h;return h}})(Er)),Er}var Lr={},Ei;function Va(){if(Ei)return Lr;Ei=1;function s(n,r,i){var a=n[r];n[r]=n[i],n[i]=a}function e(n,r){return Math.round(n+Math.random()*(r-n))}function t(n,r,i,a){if(i<a){var h=e(i,a),u=i-1;s(n,h,a);for(var p=n[a],f=i;f<a;f++)r(n[f],p)<=0&&(u+=1,s(n,u,f));s(n,u+1,f);var g=u+1;t(n,r,i,g-1),t(n,r,g+1,a)}}return Lr.quickSort=function(n,r){t(n,r,0,n.length-1)},Lr}var Li;function $a(){if(Li)return ts;Li=1;var s=es(),e=za(),t=xi().ArraySet,n=bi(),r=Va().quickSort;function i(p,f){var g=p;return typeof p=="string"&&(g=s.parseSourceMapInput(p)),g.sections!=null?new u(g,f):new a(g,f)}i.fromSourceMap=function(p,f){return a.fromSourceMap(p,f)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(f,g){var l=f.charAt(g);return l===";"||l===","},i.prototype._parseMappings=function(f,g){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(f,g,l){var c=g||null,o=l||i.GENERATED_ORDER,d;switch(o){case i.GENERATED_ORDER:d=this._generatedMappings;break;case i.ORIGINAL_ORDER:d=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var m=this.sourceRoot;d.map(function(v){var _=v.source===null?null:this._sources.at(v.source);return _=s.computeSourceURL(m,_,this._sourceMapURL),{source:_,generatedLine:v.generatedLine,generatedColumn:v.generatedColumn,originalLine:v.originalLine,originalColumn:v.originalColumn,name:v.name===null?null:this._names.at(v.name)}},this).forEach(f,c)},i.prototype.allGeneratedPositionsFor=function(f){var g=s.getArg(f,"line"),l={source:s.getArg(f,"source"),originalLine:g,originalColumn:s.getArg(f,"column",0)};if(l.source=this._findSourceIndex(l.source),l.source<0)return[];var c=[],o=this._findMapping(l,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,e.LEAST_UPPER_BOUND);if(o>=0){var d=this._originalMappings[o];if(f.column===void 0)for(var m=d.originalLine;d&&d.originalLine===m;)c.push({line:s.getArg(d,"generatedLine",null),column:s.getArg(d,"generatedColumn",null),lastColumn:s.getArg(d,"lastGeneratedColumn",null)}),d=this._originalMappings[++o];else for(var v=d.originalColumn;d&&d.originalLine===g&&d.originalColumn==v;)c.push({line:s.getArg(d,"generatedLine",null),column:s.getArg(d,"generatedColumn",null),lastColumn:s.getArg(d,"lastGeneratedColumn",null)}),d=this._originalMappings[++o]}return c},ts.SourceMapConsumer=i;function a(p,f){var g=p;typeof p=="string"&&(g=s.parseSourceMapInput(p));var l=s.getArg(g,"version"),c=s.getArg(g,"sources"),o=s.getArg(g,"names",[]),d=s.getArg(g,"sourceRoot",null),m=s.getArg(g,"sourcesContent",null),v=s.getArg(g,"mappings"),_=s.getArg(g,"file",null);if(l!=this._version)throw new Error("Unsupported version: "+l);d&&(d=s.normalize(d)),c=c.map(String).map(s.normalize).map(function(S){return d&&s.isAbsolute(d)&&s.isAbsolute(S)?s.relative(d,S):S}),this._names=t.fromArray(o.map(String),!0),this._sources=t.fromArray(c,!0),this._absoluteSources=this._sources.toArray().map(function(S){return s.computeSourceURL(d,S,f)}),this.sourceRoot=d,this.sourcesContent=m,this._mappings=v,this._sourceMapURL=f,this.file=_}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(p){var f=p;if(this.sourceRoot!=null&&(f=s.relative(this.sourceRoot,f)),this._sources.has(f))return this._sources.indexOf(f);var g;for(g=0;g<this._absoluteSources.length;++g)if(this._absoluteSources[g]==p)return g;return-1},a.fromSourceMap=function(f,g){var l=Object.create(a.prototype),c=l._names=t.fromArray(f._names.toArray(),!0),o=l._sources=t.fromArray(f._sources.toArray(),!0);l.sourceRoot=f._sourceRoot,l.sourcesContent=f._generateSourcesContent(l._sources.toArray(),l.sourceRoot),l.file=f._file,l._sourceMapURL=g,l._absoluteSources=l._sources.toArray().map(function(k){return s.computeSourceURL(l.sourceRoot,k,g)});for(var d=f._mappings.toArray().slice(),m=l.__generatedMappings=[],v=l.__originalMappings=[],_=0,S=d.length;_<S;_++){var y=d[_],b=new h;b.generatedLine=y.generatedLine,b.generatedColumn=y.generatedColumn,y.source&&(b.source=o.indexOf(y.source),b.originalLine=y.originalLine,b.originalColumn=y.originalColumn,y.name&&(b.name=c.indexOf(y.name)),v.push(b)),m.push(b)}return r(l.__originalMappings,s.compareByOriginalPositions),l},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function h(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(f,g){for(var l=1,c=0,o=0,d=0,m=0,v=0,_=f.length,S=0,y={},b={},k=[],x=[],C,R,P,T,E;S<_;)if(f.charAt(S)===";")l++,S++,c=0;else if(f.charAt(S)===",")S++;else{for(C=new h,C.generatedLine=l,T=S;T<_&&!this._charIsMappingSeparator(f,T);T++);if(R=f.slice(S,T),P=y[R],P)S+=R.length;else{for(P=[];S<T;)n.decode(f,S,b),E=b.value,S=b.rest,P.push(E);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");y[R]=P}C.generatedColumn=c+P[0],c=C.generatedColumn,P.length>1&&(C.source=m+P[1],m+=P[1],C.originalLine=o+P[2],o=C.originalLine,C.originalLine+=1,C.originalColumn=d+P[3],d=C.originalColumn,P.length>4&&(C.name=v+P[4],v+=P[4])),x.push(C),typeof C.originalLine=="number"&&k.push(C)}r(x,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,r(k,s.compareByOriginalPositions),this.__originalMappings=k},a.prototype._findMapping=function(f,g,l,c,o,d){if(f[l]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+f[l]);if(f[c]<0)throw new TypeError("Column must be greater than or equal to 0, got "+f[c]);return e.search(f,g,o,d)},a.prototype.computeColumnSpans=function(){for(var f=0;f<this._generatedMappings.length;++f){var g=this._generatedMappings[f];if(f+1<this._generatedMappings.length){var l=this._generatedMappings[f+1];if(g.generatedLine===l.generatedLine){g.lastGeneratedColumn=l.generatedColumn-1;continue}}g.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(f){var g={generatedLine:s.getArg(f,"line"),generatedColumn:s.getArg(f,"column")},l=this._findMapping(g,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(f,"bias",i.GREATEST_LOWER_BOUND));if(l>=0){var c=this._generatedMappings[l];if(c.generatedLine===g.generatedLine){var o=s.getArg(c,"source",null);o!==null&&(o=this._sources.at(o),o=s.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var d=s.getArg(c,"name",null);return d!==null&&(d=this._names.at(d)),{source:o,line:s.getArg(c,"originalLine",null),column:s.getArg(c,"originalColumn",null),name:d}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(f){return f==null}):!1},a.prototype.sourceContentFor=function(f,g){if(!this.sourcesContent)return null;var l=this._findSourceIndex(f);if(l>=0)return this.sourcesContent[l];var c=f;this.sourceRoot!=null&&(c=s.relative(this.sourceRoot,c));var o;if(this.sourceRoot!=null&&(o=s.urlParse(this.sourceRoot))){var d=c.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!o.path||o.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(g)return null;throw new Error('"'+c+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(f){var g=s.getArg(f,"source");if(g=this._findSourceIndex(g),g<0)return{line:null,column:null,lastColumn:null};var l={source:g,originalLine:s.getArg(f,"line"),originalColumn:s.getArg(f,"column")},c=this._findMapping(l,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(f,"bias",i.GREATEST_LOWER_BOUND));if(c>=0){var o=this._originalMappings[c];if(o.source===l.source)return{line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ts.BasicSourceMapConsumer=a;function u(p,f){var g=p;typeof p=="string"&&(g=s.parseSourceMapInput(p));var l=s.getArg(g,"version"),c=s.getArg(g,"sections");if(l!=this._version)throw new Error("Unsupported version: "+l);this._sources=new t,this._names=new t;var o={line:-1,column:0};this._sections=c.map(function(d){if(d.url)throw new Error("Support for url field in sections not implemented.");var m=s.getArg(d,"offset"),v=s.getArg(m,"line"),_=s.getArg(m,"column");if(v<o.line||v===o.line&&_<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=m,{generatedOffset:{generatedLine:v+1,generatedColumn:_+1},consumer:new i(s.getArg(d,"map"),f)}})}return u.prototype=Object.create(i.prototype),u.prototype.constructor=i,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var p=[],f=0;f<this._sections.length;f++)for(var g=0;g<this._sections[f].consumer.sources.length;g++)p.push(this._sections[f].consumer.sources[g]);return p}}),u.prototype.originalPositionFor=function(f){var g={generatedLine:s.getArg(f,"line"),generatedColumn:s.getArg(f,"column")},l=e.search(g,this._sections,function(o,d){var m=o.generatedLine-d.generatedOffset.generatedLine;return m||o.generatedColumn-d.generatedOffset.generatedColumn}),c=this._sections[l];return c?c.consumer.originalPositionFor({line:g.generatedLine-(c.generatedOffset.generatedLine-1),column:g.generatedColumn-(c.generatedOffset.generatedLine===g.generatedLine?c.generatedOffset.generatedColumn-1:0),bias:f.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(f){return f.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(f,g){for(var l=0;l<this._sections.length;l++){var c=this._sections[l],o=c.consumer.sourceContentFor(f,!0);if(o)return o}if(g)return null;throw new Error('"'+f+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(f){for(var g=0;g<this._sections.length;g++){var l=this._sections[g];if(l.consumer._findSourceIndex(s.getArg(f,"source"))!==-1){var c=l.consumer.generatedPositionFor(f);if(c){var o={line:c.line+(l.generatedOffset.generatedLine-1),column:c.column+(l.generatedOffset.generatedLine===c.line?l.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},u.prototype._parseMappings=function(f,g){this.__generatedMappings=[],this.__originalMappings=[];for(var l=0;l<this._sections.length;l++)for(var c=this._sections[l],o=c.consumer._generatedMappings,d=0;d<o.length;d++){var m=o[d],v=c.consumer._sources.at(m.source);v=s.computeSourceURL(c.consumer.sourceRoot,v,this._sourceMapURL),this._sources.add(v),v=this._sources.indexOf(v);var _=null;m.name&&(_=c.consumer._names.at(m.name),this._names.add(_),_=this._names.indexOf(_));var S={source:v,generatedLine:m.generatedLine+(c.generatedOffset.generatedLine-1),generatedColumn:m.generatedColumn+(c.generatedOffset.generatedLine===m.generatedLine?c.generatedOffset.generatedColumn-1:0),originalLine:m.originalLine,originalColumn:m.originalColumn,name:_};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}r(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),r(this.__originalMappings,s.compareByOriginalPositions)},ts.IndexedSourceMapConsumer=u,ts}var Ar={},Ai;function Ua(){if(Ai)return Ar;Ai=1;var s=Ci().SourceMapGenerator,e=es(),t=/(\r?\n)/,n=10,r="$$$isSourceNode$$$";function i(a,h,u,p,f){this.children=[],this.sourceContents={},this.line=a??null,this.column=h??null,this.source=u??null,this.name=f??null,this[r]=!0,p!=null&&this.add(p)}return i.fromStringWithSourceMap=function(h,u,p){var f=new i,g=h.split(t),l=0,c=function(){var _=y(),S=y()||"";return _+S;function y(){return l<g.length?g[l++]:void 0}},o=1,d=0,m=null;return u.eachMapping(function(_){if(m!==null)if(o<_.generatedLine)v(m,c()),o++,d=0;else{var S=g[l]||"",y=S.substr(0,_.generatedColumn-d);g[l]=S.substr(_.generatedColumn-d),d=_.generatedColumn,v(m,y),m=_;return}for(;o<_.generatedLine;)f.add(c()),o++;if(d<_.generatedColumn){var S=g[l]||"";f.add(S.substr(0,_.generatedColumn)),g[l]=S.substr(_.generatedColumn),d=_.generatedColumn}m=_},this),l<g.length&&(m&&v(m,c()),f.add(g.splice(l).join(""))),u.sources.forEach(function(_){var S=u.sourceContentFor(_);S!=null&&(p!=null&&(_=e.join(p,_)),f.setSourceContent(_,S))}),f;function v(_,S){if(_===null||_.source===void 0)f.add(S);else{var y=p?e.join(p,_.source):_.source;f.add(new i(_.originalLine,_.originalColumn,y,S,_.name))}}},i.prototype.add=function(h){if(Array.isArray(h))h.forEach(function(u){this.add(u)},this);else if(h[r]||typeof h=="string")h&&this.children.push(h);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+h);return this},i.prototype.prepend=function(h){if(Array.isArray(h))for(var u=h.length-1;u>=0;u--)this.prepend(h[u]);else if(h[r]||typeof h=="string")this.children.unshift(h);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+h);return this},i.prototype.walk=function(h){for(var u,p=0,f=this.children.length;p<f;p++)u=this.children[p],u[r]?u.walk(h):u!==""&&h(u,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(h){var u,p,f=this.children.length;if(f>0){for(u=[],p=0;p<f-1;p++)u.push(this.children[p]),u.push(h);u.push(this.children[p]),this.children=u}return this},i.prototype.replaceRight=function(h,u){var p=this.children[this.children.length-1];return p[r]?p.replaceRight(h,u):typeof p=="string"?this.children[this.children.length-1]=p.replace(h,u):this.children.push("".replace(h,u)),this},i.prototype.setSourceContent=function(h,u){this.sourceContents[e.toSetString(h)]=u},i.prototype.walkSourceContents=function(h){for(var u=0,p=this.children.length;u<p;u++)this.children[u][r]&&this.children[u].walkSourceContents(h);for(var f=Object.keys(this.sourceContents),u=0,p=f.length;u<p;u++)h(e.fromSetString(f[u]),this.sourceContents[f[u]])},i.prototype.toString=function(){var h="";return this.walk(function(u){h+=u}),h},i.prototype.toStringWithSourceMap=function(h){var u={code:"",line:1,column:0},p=new s(h),f=!1,g=null,l=null,c=null,o=null;return this.walk(function(d,m){u.code+=d,m.source!==null&&m.line!==null&&m.column!==null?((g!==m.source||l!==m.line||c!==m.column||o!==m.name)&&p.addMapping({source:m.source,original:{line:m.line,column:m.column},generated:{line:u.line,column:u.column},name:m.name}),g=m.source,l=m.line,c=m.column,o=m.name,f=!0):f&&(p.addMapping({generated:{line:u.line,column:u.column}}),g=null,f=!1);for(var v=0,_=d.length;v<_;v++)d.charCodeAt(v)===n?(u.line++,u.column=0,v+1===_?(g=null,f=!1):f&&p.addMapping({source:m.source,original:{line:m.line,column:m.column},generated:{line:u.line,column:u.column},name:m.name})):u.column++}),this.walkSourceContents(function(d,m){p.setSourceContent(d,m)}),{code:u.code,map:p}},Ar.SourceNode=i,Ar}var Ri;function Wa(){return Ri||(Ri=1,jt.SourceMapGenerator=Ci().SourceMapGenerator,jt.SourceMapConsumer=$a().SourceMapConsumer,jt.SourceNode=Ua().SourceNode),jt}var Oi;function Ga(){return Oi||(Oi=1,(function(s,e){e.__esModule=!0;var t=He(),n=void 0;try{var r=Wa();n=r.SourceNode}catch{}n||(n=function(h,u,p,f){this.src="",f&&this.add(f)},n.prototype={add:function(u){t.isArray(u)&&(u=u.join("")),this.src+=u},prepend:function(u){t.isArray(u)&&(u=u.join("")),this.src=u+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(h,u,p){if(t.isArray(h)){for(var f=[],g=0,l=h.length;g<l;g++)f.push(u.wrap(h[g],p));return f}else if(typeof h=="boolean"||typeof h=="number")return h+"";return h}function a(h){this.srcFile=h,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(u,p){this.source.unshift(this.wrap(u,p))},push:function(u,p){this.source.push(this.wrap(u,p))},merge:function(){var u=this.empty();return this.each(function(p){u.add([" ",p,`
69
+ `])}),u},each:function(u){for(var p=0,f=this.source.length;p<f;p++)u(this.source[p])},empty:function(){var u=this.currentLocation||{start:{}};return new n(u.start.line,u.start.column,this.srcFile)},wrap:function(u){var p=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return u instanceof n?u:(u=i(u,this,p),new n(p.start.line,p.start.column,this.srcFile,u))},functionCall:function(u,p,f){return f=this.generateList(f),this.wrap([u,p?"."+p+"(":"(",f,")"])},quotedString:function(u){return'"'+(u+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(u){var p=this,f=[];Object.keys(u).forEach(function(l){var c=i(u[l],p);c!=="undefined"&&f.push([p.quotedString(l),":",c])});var g=this.generateList(f);return g.prepend("{"),g.add("}"),g},generateList:function(u){for(var p=this.empty(),f=0,g=u.length;f<g;f++)f&&p.add(","),p.add(i(u[f],this));return p},generateArray:function(u){var p=this.generateList(u);return p.prepend("["),p.add("]"),p}},e.default=a,s.exports=e.default})(Ws,Ws.exports)),Ws.exports}var Mi;function Xa(){return Mi||(Mi=1,(function(s,e){e.__esModule=!0;function t(l){return l&&l.__esModule?l:{default:l}}var n=xr(),r=st(),i=t(r),a=He(),h=Ga(),u=t(h);function p(l){this.value=l}function f(){}f.prototype={nameLookup:function(c,o){return this.internalNameLookup(c,o)},depthedLookup:function(c){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(c),")"]},compilerInfo:function(){var c=n.COMPILER_REVISION,o=n.REVISION_CHANGES[c];return[c,o]},appendToBuffer:function(c,o,d){return a.isArray(c)||(c=[c]),c=this.source.wrap(c,o),this.environment.isSimple?["return ",c,";"]:d?["buffer += ",c,";"]:(c.appendToBuffer=!0,c)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(c,o){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",c,",",JSON.stringify(o),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(c,o,d,m){this.environment=c,this.options=o,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!m,this.name=this.environment.name,this.isChild=!!d,this.context=d||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(c,o),this.useDepths=this.useDepths||c.useDepths||c.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||c.useBlockParams;var v=c.opcodes,_=void 0,S=void 0,y=void 0,b=void 0;for(y=0,b=v.length;y<b;y++)_=v[y],this.source.currentLocation=_.loc,S=S||_.loc,this[_.opcode].apply(this,_.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
70
+ `]),this.decorators.push("return fn;"),m?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
71
+ `),this.decorators.push(`}
72
+ `),this.decorators=this.decorators.merge()));var k=this.createFunctionContext(m);if(this.isChild)return k;var x={compiler:this.compilerInfo(),main:k};this.decorators&&(x.main_d=this.decorators,x.useDecorators=!0);var C=this.context,R=C.programs,P=C.decorators;for(y=0,b=R.length;y<b;y++)R[y]&&(x[y]=R[y],P[y]&&(x[y+"_d"]=P[y],x.useDecorators=!0));return this.environment.usePartial&&(x.usePartial=!0),this.options.data&&(x.useData=!0),this.useDepths&&(x.useDepths=!0),this.useBlockParams&&(x.useBlockParams=!0),this.options.compat&&(x.compat=!0),m?x.compilerOptions=this.options:(x.compiler=JSON.stringify(x.compiler),this.source.currentLocation={start:{line:1,column:0}},x=this.objectLiteral(x),o.srcName?(x=x.toStringWithSourceMap({file:o.destName}),x.map=x.map&&x.map.toString()):x=x.toString()),x},preamble:function(){this.lastContext=0,this.source=new u.default(this.options.srcName),this.decorators=new u.default(this.options.srcName)},createFunctionContext:function(c){var o=this,d="",m=this.stackVars.concat(this.registers.list);m.length>0&&(d+=", "+m.join(", "));var v=0;Object.keys(this.aliases).forEach(function(y){var b=o.aliases[y];b.children&&b.referenceCount>1&&(d+=", alias"+ ++v+"="+y,b.children[0]="alias"+v)}),this.lookupPropertyFunctionIsUsed&&(d+=", "+this.lookupPropertyFunctionVarDeclaration());var _=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&_.push("blockParams"),this.useDepths&&_.push("depths");var S=this.mergeSource(d);return c?(_.push(S),Function.apply(this,_)):this.source.wrap(["function(",_.join(","),`) {
73
+ `,S,"}"])},mergeSource:function(c){var o=this.environment.isSimple,d=!this.forceBuffer,m=void 0,v=void 0,_=void 0,S=void 0;return this.source.each(function(y){y.appendToBuffer?(_?y.prepend(" + "):_=y,S=y):(_&&(v?_.prepend("buffer += "):m=!0,S.add(";"),_=S=void 0),v=!0,o||(d=!1))}),d?_?(_.prepend("return "),S.add(";")):v||this.source.push('return "";'):(c+=", buffer = "+(m?"":this.initializeBuffer()),_?(_.prepend("return buffer + "),S.add(";")):this.source.push("return buffer;")),c&&this.source.prepend("var "+c.substring(2)+(m?"":`;
74
+ `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
75
+ lookupProperty = container.lookupProperty || function(parent, propertyName) {
76
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
77
+ return parent[propertyName];
78
+ }
79
+ return undefined
80
+ }
81
+ `.trim()},blockValue:function(c){var o=this.aliasable("container.hooks.blockHelperMissing"),d=[this.contextName(0)];this.setupHelperArgs(c,0,d);var m=this.popStack();d.splice(1,0,m),this.push(this.source.functionCall(o,"call",d))},ambiguousBlockValue:function(){var c=this.aliasable("container.hooks.blockHelperMissing"),o=[this.contextName(0)];this.setupHelperArgs("",0,o,!0),this.flushInline();var d=this.topStack();o.splice(1,0,d),this.pushSource(["if (!",this.lastHelper,") { ",d," = ",this.source.functionCall(c,"call",o),"}"])},appendContent:function(c){this.pendingContent?c=this.pendingContent+c:this.pendingLocation=this.source.currentLocation,this.pendingContent=c},append:function(){if(this.isInline())this.replaceStack(function(o){return[" != null ? ",o,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var c=this.popStack();this.pushSource(["if (",c," != null) { ",this.appendToBuffer(c,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(c){this.lastContext=c},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(c,o,d,m){var v=0;!m&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(c[v++])):this.pushContext(),this.resolvePath("context",c,v,o,d)},lookupBlockParam:function(c,o){this.useBlockParams=!0,this.push(["blockParams[",c[0],"][",c[1],"]"]),this.resolvePath("context",o,1)},lookupData:function(c,o,d){c?this.pushStackLiteral("container.data(data, "+c+")"):this.pushStackLiteral("data"),this.resolvePath("data",o,0,!0,d)},resolvePath:function(c,o,d,m,v){var _=this;if(this.options.strict||this.options.assumeObjects){this.push(g(this.options.strict&&v,this,o,d,c));return}for(var S=o.length;d<S;d++)this.replaceStack(function(y){var b=_.nameLookup(y,o[d],c);return m?[" && ",b]:[" != null ? ",b," : ",y]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(c,o){this.pushContext(),this.pushString(o),o!=="SubExpression"&&(typeof c=="string"?this.pushString(c):this.pushStackLiteral(c))},emptyHash:function(c){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(c?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var c=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(c.ids)),this.stringParams&&(this.push(this.objectLiteral(c.contexts)),this.push(this.objectLiteral(c.types))),this.push(this.objectLiteral(c.values))},pushString:function(c){this.pushStackLiteral(this.quotedString(c))},pushLiteral:function(c){this.pushStackLiteral(c)},pushProgram:function(c){c!=null?this.pushStackLiteral(this.programExpression(c)):this.pushStackLiteral(null)},registerDecorator:function(c,o){var d=this.nameLookup("decorators",o,"decorator"),m=this.setupHelperArgs(o,c);this.decorators.push(["fn = ",this.decorators.functionCall(d,"",["fn","props","container",m])," || fn;"])},invokeHelper:function(c,o,d){var m=this.popStack(),v=this.setupHelper(c,o),_=[];d&&_.push(v.name),_.push(m),this.options.strict||_.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(_,"||"),")"],y=this.source.functionCall(S,"call",v.callParams);this.push(y)},itemsSeparatedBy:function(c,o){var d=[];d.push(c[0]);for(var m=1;m<c.length;m++)d.push(o,c[m]);return d},invokeKnownHelper:function(c,o){var d=this.setupHelper(c,o);this.push(this.source.functionCall(d.name,"call",d.callParams))},invokeAmbiguous:function(c,o){this.useRegister("helper");var d=this.popStack();this.emptyHash();var m=this.setupHelper(0,c,o),v=this.lastHelper=this.nameLookup("helpers",c,"helper"),_=["(","(helper = ",v," || ",d,")"];this.options.strict||(_[0]="(helper = ",_.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",_,m.paramsInit?["),(",m.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",m.callParams)," : helper))"])},invokePartial:function(c,o,d){var m=[],v=this.setupParams(o,1,m);c&&(o=this.popStack(),delete v.name),d&&(v.indent=JSON.stringify(d)),v.helpers="helpers",v.partials="partials",v.decorators="container.decorators",c?m.unshift(o):m.unshift(this.nameLookup("partials",o,"partial")),this.options.compat&&(v.depths="depths"),v=this.objectLiteral(v),m.push(v),this.push(this.source.functionCall("container.invokePartial","",m))},assignToHash:function(c){var o=this.popStack(),d=void 0,m=void 0,v=void 0;this.trackIds&&(v=this.popStack()),this.stringParams&&(m=this.popStack(),d=this.popStack());var _=this.hash;d&&(_.contexts[c]=d),m&&(_.types[c]=m),v&&(_.ids[c]=v),_.values[c]=o},pushId:function(c,o,d){c==="BlockParam"?this.pushStackLiteral("blockParams["+o[0]+"].path["+o[1]+"]"+(d?" + "+JSON.stringify("."+d):"")):c==="PathExpression"?this.pushString(o):c==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:f,compileChildren:function(c,o){for(var d=c.children,m=void 0,v=void 0,_=0,S=d.length;_<S;_++){m=d[_],v=new this.compiler;var y=this.matchExistingProgram(m);if(y==null){this.context.programs.push("");var b=this.context.programs.length;m.index=b,m.name="program"+b,this.context.programs[b]=v.compile(m,o,this.context,!this.precompile),this.context.decorators[b]=v.decorators,this.context.environments[b]=m,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams,m.useDepths=this.useDepths,m.useBlockParams=this.useBlockParams}else m.index=y.index,m.name="program"+y.index,this.useDepths=this.useDepths||y.useDepths,this.useBlockParams=this.useBlockParams||y.useBlockParams}},matchExistingProgram:function(c){for(var o=0,d=this.context.environments.length;o<d;o++){var m=this.context.environments[o];if(m&&m.equals(c))return m}},programExpression:function(c){var o=this.environment.children[c],d=[o.index,"data",o.blockParams];return(this.useBlockParams||this.useDepths)&&d.push("blockParams"),this.useDepths&&d.push("depths"),"container.program("+d.join(", ")+")"},useRegister:function(c){this.registers[c]||(this.registers[c]=!0,this.registers.list.push(c))},push:function(c){return c instanceof p||(c=this.source.wrap(c)),this.inlineStack.push(c),c},pushStackLiteral:function(c){this.push(new p(c))},pushSource:function(c){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),c&&this.source.push(c)},replaceStack:function(c){var o=["("],d=void 0,m=void 0,v=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var _=this.popStack(!0);if(_ instanceof p)d=[_.value],o=["(",d],v=!0;else{m=!0;var S=this.incrStack();o=["((",this.push(S)," = ",_,")"],d=this.topStack()}var y=c.call(this,d);v||this.popStack(),m&&this.stackSlot--,this.push(o.concat(y,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var c=this.inlineStack;this.inlineStack=[];for(var o=0,d=c.length;o<d;o++){var m=c[o];if(m instanceof p)this.compileStack.push(m);else{var v=this.incrStack();this.pushSource([v," = ",m,";"]),this.compileStack.push(v)}}},isInline:function(){return this.inlineStack.length},popStack:function(c){var o=this.isInline(),d=(o?this.inlineStack:this.compileStack).pop();if(!c&&d instanceof p)return d.value;if(!o){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return d},topStack:function(){var c=this.isInline()?this.inlineStack:this.compileStack,o=c[c.length-1];return o instanceof p?o.value:o},contextName:function(c){return this.useDepths&&c?"depths["+c+"]":"depth"+c},quotedString:function(c){return this.source.quotedString(c)},objectLiteral:function(c){return this.source.objectLiteral(c)},aliasable:function(c){var o=this.aliases[c];return o?(o.referenceCount++,o):(o=this.aliases[c]=this.source.wrap(c),o.aliasable=!0,o.referenceCount=1,o)},setupHelper:function(c,o,d){var m=[],v=this.setupHelperArgs(o,c,m,d),_=this.nameLookup("helpers",o,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:m,paramsInit:v,name:_,callParams:[S].concat(m)}},setupParams:function(c,o,d){var m={},v=[],_=[],S=[],y=!d,b=void 0;y&&(d=[]),m.name=this.quotedString(c),m.hash=this.popStack(),this.trackIds&&(m.hashIds=this.popStack()),this.stringParams&&(m.hashTypes=this.popStack(),m.hashContexts=this.popStack());var k=this.popStack(),x=this.popStack();(x||k)&&(m.fn=x||"container.noop",m.inverse=k||"container.noop");for(var C=o;C--;)b=this.popStack(),d[C]=b,this.trackIds&&(S[C]=this.popStack()),this.stringParams&&(_[C]=this.popStack(),v[C]=this.popStack());return y&&(m.args=this.source.generateArray(d)),this.trackIds&&(m.ids=this.source.generateArray(S)),this.stringParams&&(m.types=this.source.generateArray(_),m.contexts=this.source.generateArray(v)),this.options.data&&(m.data="data"),this.useBlockParams&&(m.blockParams="blockParams"),m},setupHelperArgs:function(c,o,d,m){var v=this.setupParams(c,o,d);return v.loc=JSON.stringify(this.source.currentLocation),v=this.objectLiteral(v),m?(this.useRegister("options"),d.push("options"),["options=",v]):d?(d.push(v),""):v}},(function(){for(var l="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),c=f.RESERVED_WORDS={},o=0,d=l.length;o<d;o++)c[l[o]]=!0})(),f.isValidJavaScriptVariableName=function(l){return!f.RESERVED_WORDS[l]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(l)};function g(l,c,o,d,m){var v=c.popStack(),_=o.length;for(l&&_--;d<_;d++)v=c.nameLookup(v,o[d],m);return l?[c.aliasable("container.strict"),"(",v,", ",c.quotedString(o[d]),", ",JSON.stringify(c.source.currentLocation)," )"]:v}e.default=f,s.exports=e.default})(Us,Us.exports)),Us.exports}var Ii;function Ya(){return Ii||(Ii=1,(function(s,e){e.__esModule=!0;function t(_){return _&&_.__esModule?_:{default:_}}var n=Ma(),r=t(n),i=ui(),a=t(i),h=Da(),u=qa(),p=Xa(),f=t(p),g=fi(),l=t(g),c=ai(),o=t(c),d=r.default.create;function m(){var _=d();return _.compile=function(S,y){return u.compile(S,y,_)},_.precompile=function(S,y){return u.precompile(S,y,_)},_.AST=a.default,_.Compiler=u.Compiler,_.JavaScriptCompiler=f.default,_.Parser=h.parser,_.parse=h.parse,_.parseWithoutProcessing=h.parseWithoutProcessing,_}var v=m();v.create=m,o.default(v),v.Visitor=l.default,v.default=v,e.default=v,s.exports=e.default})(xs,xs.exports)),xs.exports}var Ja=Ya();const Je=_a(Ja);class Qa{constructor(e,t,n){this.story=e,this.state=t,this.getCurrentSection=n,this.handlebars=Je.create(),this.handlebars.registerHelper("embed",i=>{const a=this.getCurrentSection();if(a.passages&&i in a.passages)return this.process(a.passages[i].text||"",!0);if(i in this.story.sections)return this.process(this.story.sections[i].text||"",!0)}),this.handlebars.registerHelper("seen",i=>this.state.getSeen(i)),this.handlebars.registerHelper("get",i=>this.state.get(i)),this.handlebars.registerHelper("and",(...i)=>i.slice(0,-1).every(Boolean)),this.handlebars.registerHelper("or",(...i)=>i.slice(0,-1).some(Boolean)),this.handlebars.registerHelper("not",i=>!i),this.handlebars.registerHelper("eq",(i,a)=>i==a),this.handlebars.registerHelper("ne",(i,a)=>i!=a),this.handlebars.registerHelper("gt",(i,a)=>i>a),this.handlebars.registerHelper("lt",(i,a)=>i<a),this.handlebars.registerHelper("gte",(i,a)=>i>=a),this.handlebars.registerHelper("lte",(i,a)=>i<=a),this.handlebars.registerHelper("array",function(...i){return i.pop(),i});const r=i=>{let a="";const h=i.hash.set||"";return h&&(a+=` data-set='${JSON.stringify(h.split(",").map(u=>u.trim()))}'`),a};this.handlebars.registerHelper("section",(i,a)=>{const h=a.hash.text||i;return new Je.SafeString(`<a class="squiffy-link link-section" data-section="${i}"${r(a)} role="link" tabindex="0">${h}</a>`)}),this.handlebars.registerHelper("passage",(i,a)=>{const h=a.hash.text||i;return new Je.SafeString(`<a class="squiffy-link link-passage" data-passage="${i}"${r(a)} role="link" tabindex="0">${h}</a>`)})}process(e,t){return e=this.handlebars.compile(e)(this.state.getStore()),t?va(e,{async:!1}).trim():ya(e,{async:!1}).trim()}}class Ka{constructor(){this.listeners=new Map}on(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>this.off(e,t)}off(e,t){this.listeners.get(e)?.delete(t)}once(e,t){const n=this.on(e,r=>{n(),t(r)});return n}emit(e,t){this.listeners.get(e)?.forEach(n=>{try{n(t)}catch(r){console.error(`[Squiffy] handler for "${String(e)}" failed`,r)}})}}class Za{constructor(e,t,n,r,i){this.store={},this.persist=e,this.storyId=t,this.onSet=n,this.emitter=r,this.onSetInternal=i}usePersistentStorage(){return this.persist&&window.localStorage&&this.storyId}set(e,t){this.setInternal(e,t,!0)}setInternal(e,t,n){typeof t>"u"&&(t=!0),n&&this.onSetInternal&&this.onSetInternal(e,this.get(e),structuredClone(t)),this.store[e]=structuredClone(t),this.usePersistentStorage()&&(localStorage[this.storyId+"-"+e]=JSON.stringify(t)),n&&this.emitter.emit("set",{attribute:e,value:t}),this.onSet(e,t)}get(e){return e in this.store?structuredClone(this.store[e]):null}getStore(){return structuredClone(this.store)}load(){if(!this.usePersistentStorage())return;const e=Object.keys(localStorage);for(const t of e)if(t.startsWith(this.storyId+"-")){const n=t.substring(this.storyId.length+1);this.store[n]=JSON.parse(localStorage[t])}}reset(){if(this.store={},!this.usePersistentStorage())return;const e=Object.keys(localStorage);for(const t of e)t.startsWith(this.storyId)&&localStorage.removeItem(t)}setSeen(e){let t=this.get("_seen_sections");t||(t=[]),t.indexOf(e)==-1&&(t.push(e),this.set("_seen_sections",t))}getSeen(e){const t=this.get("_seen_sections");return t?t.indexOf(e)>-1:!1}}function ja(s,e,t,n,r){function i(p){return p.replace(/'/g,"\\'")}function a(p){return t.querySelectorAll(`[data-source='[[${i(p)}]]']`)}function h(p,f){return t.querySelectorAll(`[data-source='[[${i(p)}]][${i(f)}]']`)}function u(p,f){const g=Array.from(p.querySelectorAll("a.link-passage.disabled")).map(l=>l.getAttribute("data-passage"));p.innerHTML=f;for(const l of g){const c=p.querySelector(`a.link-passage[data-passage="${l}"]`);c&&r(c)}}for(const p of Object.keys(s.sections)){const f=a(p);if(f.length){const g=e.sections[p];if(g){if(g.text!=s.sections[p].text)for(const l of f)u(l,n.processText(g.text,!1))}else for(const l of f)l.closest(".squiffy-output-section").remove()}if(s.sections[p].passages)for(const g of Object.keys(s.sections[p].passages)){const l=h(p,g);if(!l.length)continue;const c=e.sections[p]?.passages&&e.sections[p]?.passages[g];if(c){if(c.text&&c.text!=s.sections[p].passages[g].text)for(const o of l)u(o,n.processText(c.text,!1))}else for(const o of l)o.closest(".squiffy-output-passage").remove()}}}class el{constructor(e,t,n,r,i,a,h,u,p,f){this.plugins=[],this.outputElement=e,this.textProcessor=t,this.state=n,this.linkHandler=r,this.getSectionText=i,this.getPassageText=a,this.processText=h,this.addTransition=u,this.animation=p,this.emitter=f}add(e){const t=e.init({outputElement:this.outputElement,registerHelper:(n,r)=>{this.textProcessor.handlebars.registerHelper(n,r)},registerLinkHandler:(n,r)=>{this.linkHandler.registerLinkHandler(n,r)},get:n=>this.state.get(n),set:(n,r)=>this.state.set(n,r),getSectionText:this.getSectionText,getPassageText:this.getPassageText,processText:this.processText,addTransition:this.addTransition,animation:this.animation,on:(n,r)=>this.emitter.on(n,r),off:(n,r)=>this.emitter.off(n,r),once:(n,r)=>this.emitter.once(n,r)});return this.plugins.push(e),t}onWrite(e){this.plugins.forEach(t=>t.onWrite?.(e))}onLoad(){this.plugins.forEach(e=>e.onLoad?.())}}function Ni(s,e){return new Promise(t=>{s.addEventListener("transitionend",function(){s.innerHTML=e,s.addEventListener("transitionend",function(){s.classList.remove("fade-in"),t()},{once:!0}),s.classList.remove("fade-out"),s.classList.add("fade-in")},{once:!0}),s.classList.add("fade-out")})}function tl(){return{name:"replaceLabel",init(s){s.registerHelper("label",(e,t)=>new Je.SafeString(`<span class="squiffy-label-${e}">${t.fn(this)}</span>`)),s.registerHelper("replace",(e,t)=>{const n=t.fn(this),r=s.outputElement.querySelector(`.squiffy-label-${e}`);return r&&s.addTransition(()=>Ni(r,n)),""})}}}function sl(){const s=(n,r,i,a)=>{const h=i.map(l=>l.toString()),u=t(h,null),p=a.hash.set||"";p&&n.set(p,u[0]);const f=JSON.stringify(u.slice(1))||"",g=a.hash.show=="next"?u[1]:u[0];return new Je.SafeString(`<a class="squiffy-link" data-handler="${r}" data-value="${u[0]}" data-show="${a.hash.show||""}" data-options='${f}' data-attribute="${p}" role="link">${g}</a>`)},e=(n,r,i)=>{const a={},h=JSON.parse(r.getAttribute("data-options"))||[],u=t(h,i?r.getAttribute("data-value"):"");r.innerHTML=r.getAttribute("data-show")=="next"?u[1]:u[0],r.setAttribute("data-value",u[0]),r.setAttribute("data-options",JSON.stringify(u.slice(1))||""),u[1]||(a.disableLink=!0);const p=r.getAttribute("data-attribute");return p&&n.set(p,r.getAttribute("data-value")),a},t=(n,r)=>{const i=n[0],a=n.slice(1);return r&&a.push(r),[i,...a]};return{name:"rotateSequence",init(n){n.registerHelper("rotate",(r,i)=>s(n,"rotate",r,i)),n.registerHelper("sequence",(r,i)=>s(n,"sequence",r,i)),n.registerLinkHandler("rotate",r=>e(n,r,!0)),n.registerLinkHandler("sequence",r=>e(n,r,!1))}}}function rl(){return{name:"random",init(s){s.registerHelper("random",(e,t)=>{const n=e.map(h=>h.toString()),r=Math.floor(Math.random()*n.length),i=n[r],a=t.hash.set||"";return a&&s.set(a,i),new Je.SafeString(i)})}}}function nl(){let s;return{name:"live",init(e){s=e,s.registerHelper("live",(r,i)=>{const a=i.hash.section||"";if(a)return new Je.SafeString(`<span class="squiffy-live" data-attribute="${r}" data-section="${a}"></span>`);const h=i.hash.passage||"";return h?new Je.SafeString(`<span class="squiffy-live" data-attribute="${r}" data-passage="${h}"></span>`):new Je.SafeString(`<span class="squiffy-live" data-attribute="${r}"></span>`)});const t=async r=>{const i=[],a=`.squiffy-live[data-attribute="${CSS.escape(r.attribute)}"]`;for(const h of s.outputElement.querySelectorAll(a)){const u=h.innerHTML;let p="";if(h.dataset.section){const f=s.getSectionText(h.dataset.section);f&&(p=s.processText(f,!0))}else if(h.dataset.passage){const f=s.getPassageText(h.dataset.passage);f&&(p=s.processText(f,!0))}else p=r.value;u!==p&&i.push(Ni(h,p))}await Promise.all(i)};let n=Promise.resolve();s.on("set",r=>{n=n.then(()=>t(r))})},onWrite(e){if(!s)return;e.querySelectorAll(".squiffy-live").forEach(n=>{if(n.dataset.section){const r=s.getSectionText(n.dataset.section);r&&(n.innerHTML=s.processText(r,!0))}else if(n.dataset.passage){const r=s.getPassageText(n.dataset.passage);r&&(n.innerHTML=s.processText(r,!0))}else{const r=n.dataset.attribute;n.textContent=r?s.get(r):""}})}}}function il(){let s;const e=n=>{const r={};for(const[i,a]of Object.entries(n)){if(a==null){r[i]=a;continue}try{r[i]=JSON.parse(a)}catch{r[i]=a}}return r},t=n=>{const r=".squiffy-animate";for(const i of n.querySelectorAll(r)){const a=e(i.dataset);if(!a.content||(i.innerHTML=a.content,!a.name))continue;const h=()=>{a.loop?s.animation.runAnimation(a.name,i,a,()=>{},!0):s.addTransition(()=>new Promise(u=>{const p=i.innerHTML;s.animation.runAnimation(a.name,i,a,()=>{i.classList.remove("squiffy-animate"),i.innerHTML=p,u()},!1)}))};if(a.trigger==="link"){const u=i.querySelectorAll("a");for(const p of u)s.animation.addLinkAnimation(p,h)}else h()}};return{name:"animate",init(n){s=n,s.registerHelper("animate",(r,i)=>{const a=i.fn(this),h={name:r,content:a,...i.hash},u=Object.entries(h).map(([p,f])=>` data-${Je.escapeExpression(p)}="${Je.escapeExpression(JSON.stringify(f))}"`).join("");return new Je.SafeString(`<span class="squiffy-animate"${u}></span>`)})},onWrite(n){t(n)},onLoad(){t(s.outputElement)}}}const ss={ReplaceLabel:tl,RotateSequencePlugin:sl,RandomPlugin:rl,LivePlugin:nl,AnimatePlugin:il};class ol{constructor(){this.linkHandlers={}}registerLinkHandler(e,t){this.linkHandlers[e]=t}handleLink(e){const t=e.getAttribute("data-handler")||"",n=this.linkHandlers[t];return n?[!0,t,n(e)]:[!1,t,null]}}/**
82
+ * anime.js - ESM
83
+ * @version v4.1.3
84
+ * @author Julian Garnier
85
+ * @license MIT
86
+ * @copyright (c) 2025 Julian Garnier
87
+ * @see https://animejs.com
88
+ */const at=typeof window<"u",Me=at?window:null,H=at?document:null,fe={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},K={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},$e={NONE:0,AUTO:1,FORCE:2},ke={replace:0,none:1,blend:2},Bi=Symbol(),Ys=Symbol(),Rr=Symbol(),rs=Symbol(),Di=Symbol(),qi=Symbol(),Z=1e-11,qt=1e12,Ie=1e3,Or=120,dt="",Mr=(()=>{const s=new Map;return s.set("x","translateX"),s.set("y","translateY"),s.set("z","translateZ"),s})(),ns=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Ir=ns.reduce((s,e)=>({...s,[e]:e+"("}),{}),W=()=>{},al=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,ll=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,cl=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,ul=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,hl=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Hi=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Fi=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,pl=/([a-z])([A-Z])/g,fl=/(\w+)(\([^)]+\)+)/g,zi=/(\*=|\+=|-=)/,Vi={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:Or,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:Ie,delay:0,loopDelay:0,ease:"out(2)",composition:ke.replace,modifier:s=>s,onBegin:W,onBeforeUpdate:W,onUpdate:W,onLoop:W,onPause:W,onComplete:W,onRender:W},me={current:null,root:H},G={defaults:Vi,precision:4,timeScale:1,tickThreshold:200},$i={version:"4.1.3",engine:null};at&&(Me.AnimeJS||(Me.AnimeJS=[]),Me.AnimeJS.push($i));const Ui=s=>s.replace(pl,"$1-$2").toLowerCase(),ye=(s,e)=>s.indexOf(e)===0,St=Date.now,Le=Array.isArray,_e=s=>s&&s.constructor===Object,Ue=s=>typeof s=="number"&&!isNaN(s),Fe=s=>typeof s=="string",de=s=>typeof s=="function",I=s=>typeof s>"u",is=s=>I(s)||s===null,Nr=s=>at&&s instanceof SVGElement,Wi=s=>al.test(s),Gi=s=>ye(s,"rgb"),Xi=s=>ye(s,"hsl"),dl=s=>Wi(s)||Gi(s)||Xi(s),Ht=s=>!G.defaults.hasOwnProperty(s),Et=s=>Fe(s)?parseFloat(s):s,Ft=Math.pow,kt=Math.sqrt,Br=Math.sin,Dr=Math.cos,lt=Math.abs,Yi=Math.exp,gl=Math.ceil,os=Math.floor,ml=Math.asin,qr=Math.max,Js=Math.atan2,zt=Math.PI,Hr=Math.round,F=(s,e,t)=>s<e?e:s>t?t:s,Ji={},B=(s,e)=>{if(e<0)return s;if(!e)return Hr(s);let t=Ji[e];return t||(t=Ji[e]=10**e),Hr(s*t)/t},Lt=(s,e)=>Le(e)?e.reduce((t,n)=>lt(n-s)<lt(t-s)?n:t):e?Hr(s/e)*e:s,gt=(s,e,t)=>s+(e-s)*t,Fr=(s,e,t)=>{const n=10**(t||0);return os((Math.random()*(e-s+1/n)+s)*n)/n},Qi=s=>{let e=s.length,t,n;for(;e;)n=Fr(0,--e),t=s[e],s[e]=s[n],s[n]=t;return s},Qs=s=>s===1/0?qt:s===-1/0?-1e12:s,Vt=s=>s<=Z?Z:Qs(B(s,11)),Ne=s=>Le(s)?[...s]:s,as=(s,e)=>{const t={...s};for(let n in e){const r=s[n];t[n]=I(r)?e[n]:r}return t},se=(s,e,t,n="_prev",r="_next")=>{let i=s._head,a=r;for(t&&(i=s._tail,a=n);i;){const h=i[a];e(i),i=h}},mt=(s,e,t="_prev",n="_next")=>{const r=e[t],i=e[n];r?r[n]=i:s._head=i,i?i[t]=r:s._tail=r,e[t]=null,e[n]=null},vt=(s,e,t,n="_prev",r="_next")=>{let i=s._tail;for(;i&&t&&t(i,e);)i=i[n];const a=i?i[r]:s._head;i?i[r]=e:s._head=e,a?a[n]=e:s._tail=e,e[n]=i,e[r]=a},zr=s=>{let e;return(...t)=>{let n,r,i,a;e&&(n=e.currentIteration,r=e.iterationProgress,i=e.reversed,a=e._alternate,e.revert());const h=s(...t);return h&&!de(h)&&h.revert&&(e=h),I(r)||(e.currentIteration=n,e.iterationProgress=(a&&n%2?!i:i)?1-r:r),h||W}};class Ki{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=B(Ie/Or,0),this._fps=Or,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=this._frameDuration,n=+e,r=n<Z?Z:n,i=B(Ie/r,0);this._fps=r,this._frameDuration=i,this._scheduledTime+=i-t}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<Z?Z:t}requestTick(e){const t=this._scheduledTime,n=this._elapsedTime;if(this._elapsedTime+=e-n,n<t)return $e.NONE;const r=this._frameDuration,i=n-t;return this._scheduledTime+=i<r?r:i,$e.AUTO}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}}const Ks=(s,e,t,n,r)=>{const i=s.parent,a=s.duration,h=s.completed,u=s.iterationDuration,p=s.iterationCount,f=s._currentIteration,g=s._loopDelay,l=s._reversed,c=s._alternate,o=s._hasChildren,d=s._delay,m=s._currentTime,v=d+u,_=e-d,S=F(m,-d,a),y=F(_,-d,a),b=_-m,k=y>0,x=y>=a,C=a<=Z,R=r===$e.FORCE;let P=0,T=_,E=0;if(p>1){const U=~~(y/(u+(x?0:g)));s._currentIteration=F(U,0,p),x&&s._currentIteration--,P=s._currentIteration%2,T=y%(u+g)||0}const L=l^(c&&P),M=s._ease;let q=x?L?0:a:L?u-T:T;M&&(q=u*M(q/u)||0);const z=(i?i.backwards:_<m)?!L:!!L;if(s._currentTime=_,s._iterationTime=q,s.backwards=z,k&&!s.began?(s.began=!0,!t&&!(i&&(z||!i.began))&&s.onBegin(s)):_<=0&&(s.began=!1),!t&&!o&&k&&s._currentIteration!==f&&s.onLoop(s),R||r===$e.AUTO&&(e>=d&&e<=v||e<=d&&S>d||e>=v&&S!==a)||q>=v&&S!==a||q<=d&&S>0||e<=S&&S===a&&h||x&&!h&&C){if(k&&(s.computeDeltaTime(S),t||s.onBeforeUpdate(s)),!o){const U=R||(z?b*-1:b)>=G.tickThreshold,V=s._offset+(i?i._offset:0)+d+q;let A=s._head,oe,j,xe,ve,$=0;for(;A;){const ee=A._composition,re=A._currentTime,ge=A._changeDuration,nt=A._absoluteStartTime+A._changeDuration,Ae=A._nextRep,le=A._prevRep,ce=ee!==ke.none;if((U||(re!==ge||V<=nt+(Ae?Ae._delay:0))&&(re!==0||V>=A._absoluteStartTime))&&(!ce||!A._isOverridden&&(!A._isOverlapped||V<=nt)&&(!Ae||Ae._isOverridden||V<=Ae._absoluteStartTime)&&(!le||le._isOverridden||V>=le._absoluteStartTime+le._changeDuration+A._delay))){const ie=A._currentTime=F(q-A._startTime,0,ge),ue=A._ease(ie/A._updateDuration),Te=A._modifier,Xe=A._valueType,Ce=A._tweenType,Pe=Ce===fe.OBJECT,it=Xe===K.NUMBER,we=it&&Pe||ue===0||ue===1?-1:G.precision;let w,O;if(it)w=O=Te(B(gt(A._fromNumber,A._toNumber,ue),we));else if(Xe===K.UNIT)O=Te(B(gt(A._fromNumber,A._toNumber,ue),we)),w=`${O}${A._unit}`;else if(Xe===K.COLOR){const N=A._fromNumbers,J=A._toNumbers,Q=B(F(Te(gt(N[0],J[0],ue)),0,255),0),pe=B(F(Te(gt(N[1],J[1],ue)),0,255),0),De=B(F(Te(gt(N[2],J[2],ue)),0,255),0),Ee=F(Te(B(gt(N[3],J[3],ue),we)),0,1);if(w=`rgba(${Q},${pe},${De},${Ee})`,ce){const Se=A._numbers;Se[0]=Q,Se[1]=pe,Se[2]=De,Se[3]=Ee}}else if(Xe===K.COMPLEX){w=A._strings[0];for(let N=0,J=A._toNumbers.length;N<J;N++){const Q=Te(B(gt(A._fromNumbers[N],A._toNumbers[N],ue),we)),pe=A._strings[N+1];w+=`${pe?Q+pe:Q}`,ce&&(A._numbers[N]=Q)}}if(ce&&(A._number=O),!n&&ee!==ke.blend){const N=A.property;oe=A.target,Pe?oe[N]=w:Ce===fe.ATTRIBUTE?oe.setAttribute(N,w):(j=oe.style,Ce===fe.TRANSFORM?(oe!==xe&&(xe=oe,ve=oe[rs]),ve[N]=w,$=1):Ce===fe.CSS?j[N]=w:Ce===fe.CSS_VAR&&j.setProperty(N,w)),k&&(E=1)}else A._value=w}if($&&A._renderTransforms){let ie=dt;for(let ue in ve)ie+=`${Ir[ue]}${ve[ue]}) `;j.transform=ie,$=0}A=A._next}!t&&E&&s.onRender(s)}!t&&k&&s.onUpdate(s)}return i&&C?!t&&(i.began&&!z&&_>=a&&!h||z&&_<=Z&&h)&&(s.onComplete(s),s.completed=!z):k&&x?p===1/0?s._startTime+=s.duration:s._currentIteration>=p-1&&(s.paused=!0,!h&&!o&&(s.completed=!0,!t&&!(i&&(z||!i.began))&&(s.onComplete(s),s._resolve(s)))):s.completed=!1,E},At=(s,e,t,n,r)=>{const i=s._currentIteration;if(Ks(s,e,t,n,r),s._hasChildren){const a=s,h=a.backwards,u=n?e:a._iterationTime,p=St();let f=0,g=!0;if(!n&&a._currentIteration!==i){const l=a.iterationDuration;se(a,c=>{if(!h)!c.completed&&!c.backwards&&c._currentTime<c.iterationDuration&&Ks(c,l,t,1,$e.FORCE),c.began=!1,c.completed=!1;else{const o=c.duration,d=c._offset+c._delay,m=d+o;!t&&o<=Z&&(!d||m===l)&&c.onComplete(c)}}),t||a.onLoop(a)}se(a,l=>{const c=B((u-l._offset)*l._speed,12),o=l._fps<a._fps?l.requestTick(p):r;f+=Ks(l,c,t,n,o),!l.completed&&g&&(g=!1)},h),!t&&f&&a.onRender(a),(g||h)&&a._currentTime>=a.duration&&(a.paused=!0,a.completed||(a.completed=!0,t||(a.onComplete(a),a._resolve(a))))}},$t={animation:null,update:W},vl=s=>{let e=$t.animation;return e||(e={duration:Z,computeDeltaTime:W,_offset:0,_delay:0,_head:null,_tail:null},$t.animation=e,$t.update=()=>{s.forEach(t=>{for(let n in t){const r=t[n],i=r._head;if(i){const a=i._valueType,h=a===K.COMPLEX||a===K.COLOR?Ne(i._fromNumbers):null;let u=i._fromNumber,p=r._tail;for(;p&&p!==i;){if(h)for(let f=0,g=p._numbers.length;f<g;f++)h[f]+=p._numbers[f];else u+=p._number;p=p._prevAdd}i._toNumber=u,i._toNumbers=h}}}),Ks(e,1,1,0,$e.FORCE)}),e},Zi=at?requestAnimationFrame:setImmediate,yl=at?cancelAnimationFrame:clearImmediate;class _l extends Ki{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=Vi,this.paused=!0,this.reqId=0}update(){const e=this._currentTime=St();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,n=this._fps;let r=this._head;for(;r;){const i=r._next;r.paused?(mt(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):At(r,(e-r._startTime)*r._speed*t,0,0,r._fps<n?r.requestTick(e):$e.AUTO),r=i}$t.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(St()),this.reqId=Zi(ji)),this}pause(){if(this.reqId)return this.paused=!0,bl()}resume(){if(this.paused)return this.paused=!1,se(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(G.timeScale===1?1:Ie)}set speed(e){this._speed=e*G.timeScale,se(this,t=>t.speed=t._speed)}get timeUnit(){return G.timeScale===1?"ms":"s"}set timeUnit(e){const n=e==="s",r=n?.001:1;if(G.timeScale!==r){G.timeScale=r,G.tickThreshold=200*r;const i=n?.001:Ie;this.defaults.duration*=i,this._speed*=i}}get precision(){return G.precision}set precision(e){G.precision=e}}const be=(()=>{const s=new _l(St());return at&&($i.engine=s,H.addEventListener("visibilitychange",()=>{s.pauseOnDocumentHidden&&(H.hidden?s.pause():s.resume())})),s})(),ji=()=>{be._head?(be.reqId=Zi(ji),be.update()):be.reqId=0},bl=()=>(yl(be.reqId),be.reqId=0,be),Sl=(s,e,t)=>{const n=s.style.transform;let r;if(n){const i=s[rs];let a;for(;a=fl.exec(n);){const h=a[1],u=a[2].slice(1,-1);i[h]=u,h===e&&(r=u,t&&(t[e]=u))}}return n&&!I(r)?r:ye(e,"scale")?"1":ye(e,"rotate")||ye(e,"skew")?"0deg":"0px"};function Vr(s){const e=Fe(s)?me.root.querySelectorAll(s):s;if(e instanceof NodeList||e instanceof HTMLCollection)return e}function Qe(s){if(is(s))return[];if(!at)return Le(s)&&s.flat(1/0)||[s];if(Le(s)){const t=s.flat(1/0),n=[];for(let r=0,i=t.length;r<i;r++){const a=t[r];if(!is(a)){const h=Vr(a);if(h)for(let u=0,p=h.length;u<p;u++){const f=h[u];if(!is(f)){let g=!1;for(let l=0,c=n.length;l<c;l++)if(n[l]===f){g=!0;break}g||n.push(f)}}else{let u=!1;for(let p=0,f=n.length;p<f;p++)if(n[p]===a){u=!0;break}u||n.push(a)}}}return n}const e=Vr(s);return e?Array.from(e):[s]}function ls(s){const e=Qe(s),t=e.length;if(t)for(let n=0;n<t;n++){const r=e[n];if(!r[Bi]){r[Bi]=!0;const i=Nr(r);(r.nodeType||i)&&(r[Ys]=!0,r[Rr]=i,r[rs]={})}}return e}const eo=s=>{const t=Qe(s)[0];if(!(!t||!Nr(t)))return t},kl=(s,e=.33)=>t=>{const n=eo(s);if(!n)return;const r=t.tagName==="path",i=r?" ":",",a=t[Di];a&&t.setAttribute(r?"d":"points",a);let h="",u="";if(!e)h=t.getAttribute(r?"d":"points"),u=n.getAttribute(r?"d":"points");else{const p=t.getTotalLength(),f=n.getTotalLength(),g=Math.max(Math.ceil(p*e),Math.ceil(f*e));for(let l=0;l<g;l++){const c=l/(g-1),o=t.getPointAtLength(p*c),d=n.getPointAtLength(f*c),m=r?l===0?"M":"L":"";h+=m+B(o.x,3)+i+o.y+" ",u+=m+B(d.x,3)+i+d.y+" "}}return t[Di]=u,[h,u]},xl=s=>{let e=1;if(s&&s.getCTM){const t=s.getCTM();if(t){const n=kt(t.a*t.a+t.b*t.b),r=kt(t.c*t.c+t.d*t.d);e=(n+r)/2}}return e},wl=(s,e,t)=>{const n=Ie,r=getComputedStyle(s),i=r.strokeLinecap,a=r.vectorEffect==="non-scaling-stroke"?s:null;let h=i;const u=new Proxy(s,{get(p,f){const g=p[f];return f===qi?p:f==="setAttribute"?(...l)=>{if(l[0]==="draw"){const o=l[1].split(" "),d=+o[0],m=+o[1],v=xl(a),_=d*-1e3*v,S=m*n*v+_,y=n*v+(d===0&&m===1||d===1&&m===0?0:10*v)-S;if(i!=="butt"){const b=d===m?"butt":i;h!==b&&(p.style.strokeLinecap=`${b}`,h=b)}p.setAttribute("stroke-dashoffset",`${_}`),p.setAttribute("stroke-dasharray",`${S} ${y}`)}return Reflect.apply(g,p,l)}:de(g)?(...l)=>Reflect.apply(g,p,l):g}});return s.getAttribute("pathLength")!==`${n}`&&(s.setAttribute("pathLength",`${n}`),u.setAttribute("draw",`${e} ${t}`)),u},Tl=(s,e=0,t=0)=>Qe(s).map(r=>wl(r,e,t)),$r=(s,e,t=0)=>s.getPointAtLength(e+t>=1?e+t:0),Ur=(s,e)=>t=>{const n=+s.getTotalLength(),r=t[Rr],i=s.getCTM();return{from:0,to:n,modifier:a=>{if(e==="a"){const h=$r(s,a,-1),u=$r(s,a,1);return Js(u.y-h.y,u.x-h.x)*180/zt}else{const h=$r(s,a,0);return e==="x"?r||!i?h.x:h.x*i.a+h.y*i.c+i.e:r||!i?h.y:h.x*i.b+h.y*i.d+i.f}}}},Cl=s=>{const e=eo(s);if(e)return{translateX:Ur(e,"x"),translateY:Ur(e,"y"),rotate:Ur(e,"a")}},Pl=["opacity","rotate","overflow","color"],El=(s,e)=>{if(Pl.includes(e))return!1;if(s.getAttribute(e)||e in s){if(e==="scale"){const t=s.parentNode;return t&&t.tagName==="filter"}return!0}},Ll={morphTo:kl,createMotionPath:Cl,createDrawable:Tl},Al=s=>{const e=ll.exec(s)||cl.exec(s),t=I(e[4])?1:+e[4];return[+e[1],+e[2],+e[3],t]},Rl=s=>{const e=s.length,t=e===4||e===5;return[+("0x"+s[1]+s[t?1:2]),+("0x"+s[t?2:3]+s[t?2:4]),+("0x"+s[t?3:5]+s[t?3:6]),e===5||e===9?+(+("0x"+s[t?4:7]+s[t?4:8])/255).toFixed(3):1]},Wr=(s,e,t)=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*(2/3-t)*6:s),Ol=s=>{const e=ul.exec(s)||hl.exec(s),t=+e[1]/360,n=+e[2]/100,r=+e[3]/100,i=I(e[4])?1:+e[4];let a,h,u;if(n===0)a=h=u=r;else{const p=r<.5?r*(1+n):r+n-r*n,f=2*r-p;a=B(Wr(f,p,t+1/3)*255,0),h=B(Wr(f,p,t)*255,0),u=B(Wr(f,p,t-1/3)*255,0)}return[a,h,u,i]},Ml=s=>Gi(s)?Al(s):Wi(s)?Rl(s):Xi(s)?Ol(s):[0,0,0,1],D=(s,e)=>I(s)?e:s,We=(s,e,t,n,r)=>{if(de(s)){const i=()=>{const a=s(e,t,n);return isNaN(+a)?a||0:+a};return r&&(r.func=i),i()}else return s},Gr=(s,e)=>s[Ys]?s[Rr]&&El(s,e)?fe.ATTRIBUTE:ns.includes(e)||Mr.get(e)?fe.TRANSFORM:ye(e,"--")?fe.CSS_VAR:e in s.style?fe.CSS:e in s?fe.OBJECT:fe.ATTRIBUTE:fe.OBJECT,to=(s,e,t)=>{const n=s.style[e];n&&t&&(t[e]=n);const r=n||getComputedStyle(s[qi]||s).getPropertyValue(e);return r==="auto"?"0":r},Rt=(s,e,t,n)=>{const r=I(t)?Gr(s,e):t;return r===fe.OBJECT?s[e]||0:r===fe.ATTRIBUTE?s.getAttribute(e):r===fe.TRANSFORM?Sl(s,e,n):r===fe.CSS_VAR?to(s,e,n).trimStart():to(s,e,n)},Ot=(s,e,t)=>t==="-"?s-e:t==="+"?s+e:s*e,Xr=()=>({t:K.NUMBER,n:0,u:null,o:null,d:null,s:null}),Ke=(s,e)=>{if(e.t=K.NUMBER,e.n=0,e.u=null,e.o=null,e.d=null,e.s=null,!s)return e;const t=+s;if(isNaN(t)){let n=s;n[1]==="="&&(e.o=n[0],n=n.slice(2));const r=n.includes(" ")?!1:Fi.exec(n);if(r)return e.t=K.UNIT,e.n=+r[1],e.u=r[2],e;if(e.o)return e.n=+n,e;if(dl(n))return e.t=K.COLOR,e.d=Ml(n),e;{const i=n.match(Hi);return e.t=K.COMPLEX,e.d=i?i.map(Number):[],e.s=n.split(Hi)||[],e}}else return e.n=t,e},so=(s,e)=>(e.t=s._valueType,e.n=s._toNumber,e.u=s._unit,e.o=null,e.d=Ne(s._toNumbers),e.s=Ne(s._strings),e),Be=Xr(),Zs={_rep:new WeakMap,_add:new Map},Yr=(s,e,t="_rep")=>{const n=Zs[t];let r=n.get(s);return r||(r={},n.set(s,r)),r[e]?r[e]:r[e]={_head:null,_tail:null}},Il=(s,e)=>s._isOverridden||s._absoluteStartTime>e._absoluteStartTime,js=s=>{s._isOverlapped=1,s._isOverridden=1,s._changeDuration=Z,s._currentTime=Z},ro=(s,e)=>{const t=s._composition;if(t===ke.replace){const n=s._absoluteStartTime;vt(e,s,Il,"_prevRep","_nextRep");const r=s._prevRep;if(r){const i=r.parent,a=r._absoluteStartTime+r._changeDuration;if(s.parent.id!==i.id&&i.iterationCount>1&&a+(i.duration-i.iterationDuration)>n){js(r);let p=r._prevRep;for(;p&&p.parent.id===i.id;)js(p),p=p._prevRep}const h=n-s._delay;if(a>h){const p=r._startTime,f=a-(p+r._updateDuration),g=B(h-f-p,12);r._changeDuration=g,r._currentTime=g,r._isOverlapped=1,g<Z&&js(r)}let u=!0;if(se(i,p=>{p._isOverlapped||(u=!1)}),u){const p=i.parent;if(p){let f=!0;se(p,g=>{g!==i&&se(g,l=>{l._isOverlapped||(f=!1)})}),f&&p.cancel()}else i.cancel()}}}else if(t===ke.blend){const n=Yr(s.target,s.property,"_add"),r=vl(Zs._add);let i=n._head;i||(i={...s},i._composition=ke.replace,i._updateDuration=Z,i._startTime=0,i._numbers=Ne(s._fromNumbers),i._number=0,i._next=null,i._prev=null,vt(n,i),vt(r,i));const a=s._toNumber;if(s._fromNumber=i._fromNumber-a,s._toNumber=0,s._numbers=Ne(s._fromNumbers),s._number=0,i._fromNumber=a,s._toNumbers){const h=Ne(s._toNumbers);h&&h.forEach((u,p)=>{s._fromNumbers[p]=i._fromNumbers[p]-u,s._toNumbers[p]=0}),i._fromNumbers=h}vt(n,s,null,"_prevAdd","_nextAdd")}return s},no=s=>{const e=s._composition;if(e!==ke.none){const t=s.target,n=s.property,a=Zs._rep.get(t)[n];if(mt(a,s,"_prevRep","_nextRep"),e===ke.blend){const h=Zs._add,u=h.get(t);if(!u)return;const p=u[n],f=$t.animation;mt(p,s,"_prevAdd","_nextAdd");const g=p._head;if(g&&g===p._tail){mt(p,g,"_prevAdd","_nextAdd"),mt(f,g);let l=!0;for(let c in u)if(u[c]._head){l=!1;break}l&&h.delete(t)}}}return s},io=s=>(s.paused=!0,s.began=!1,s.completed=!1,s),Jr=s=>(s._cancelled&&(s._hasChildren?se(s,Jr):se(s,e=>{e._composition!==ke.none&&ro(e,Yr(e.target,e.property))}),s._cancelled=0),s);let Nl=0;class Ge extends Ki{constructor(e={},t=null,n=0){super(0);const{id:r,delay:i,duration:a,reversed:h,alternate:u,loop:p,loopDelay:f,autoplay:g,frameRate:l,playbackRate:c,onComplete:o,onLoop:d,onPause:m,onBegin:v,onBeforeUpdate:_,onUpdate:S}=e;me.current&&me.current.register(this);const y=t?0:be._elapsedTime,b=t?t.defaults:G.defaults,k=de(i)||I(i)?b.delay:+i,x=de(a)||I(a)?1/0:+a,C=D(p,b.loop),R=D(f,b.loopDelay),P=C===!0||C===1/0||C<0?1/0:C+1;let T=0;t?T=n:(be.reqId||be.requestTick(St()),T=(be._elapsedTime-be._startTime)*G.timeScale),this.id=I(r)?++Nl:r,this.parent=t,this.duration=Qs((x+R)*P-R)||Z,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=v||b.onBegin,this.onBeforeUpdate=_||b.onBeforeUpdate,this.onUpdate=S||b.onUpdate,this.onLoop=d||b.onLoop,this.onPause=m||b.onPause,this.onComplete=o||b.onComplete,this.iterationDuration=x,this.iterationCount=P,this._autoplay=t?!1:D(g,b.autoplay),this._offset=T,this._delay=k,this._loopDelay=R,this._iterationTime=0,this._currentIteration=0,this._resolve=W,this._running=!1,this._reversed=+D(h,b.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=D(u,b.alternate),this._prev=null,this._next=null,this._elapsedTime=y,this._startTime=y,this._lastTime=y,this._fps=D(l,b.frameRate),this._speed=D(c,b.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return F(B(this._currentTime,G.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return B(this._iterationTime,G.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return F(B(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return F(B(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){const t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*F(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return Jr(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,At(this,0,1,e,$e.FORCE),io(this),this._hasChildren&&se(this,io),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&At(this,this.duration,1,e,$e.FORCE),this.reset(e);const t=this._autoplay;return t===!0?this.resume():t&&!I(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*be._speed);return this._startTime=St()-(this._currentTime+this._delay)*e,this}pause(){return this.paused?this:(this.paused=!0,this.onPause(this),this)}resume(){return this.paused?(this.paused=!1,this.duration<=Z&&!this._hasChildren?At(this,Z,0,0,$e.FORCE):(this._running||(vt(be,this),be._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,be.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,n=0){Jr(this),this.completed=!1;const r=this.paused;return this.paused=!0,At(this,e+this._delay,~~t,~~n,$e.AUTO),r?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,n=this.iterationDuration,r=t===1/0?os(qt/n):t;return this._reversed=+(this._alternate&&!(r%2)?e:!e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*r-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?se(this,e=>e.cancel(),!0):se(this,no),this._cancelled=1,this.pause()}stretch(e){const t=this.duration,n=Vt(e);if(t===n)return this;const r=e/t,i=e<=Z;return this.duration=i?Z:n,this.iterationDuration=i?Z:Vt(this.iterationDuration*r),this._offset*=r,this._delay*=r,this._loopDelay*=r,this}revert(){At(this,0,1,0,$e.AUTO);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=W){const t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=W};return new Promise(r=>(this._resolve=()=>r(n()),this.completed&&this._resolve(),this))}}const Bl=s=>new Ge(s,null,0).init(),yt=s=>s,oo=(s,e,t)=>(((1-3*t+3*e)*s+(3*t-6*e))*s+3*e)*s,Dl=(s,e,t)=>{let n=0,r=1,i,a,h=0;do a=n+(r-n)/2,i=oo(a,e,t)-s,i>0?r=a:n=a;while(lt(i)>1e-7&&++h<100);return a},ql=(s=.5,e=0,t=.5,n=1)=>s===e&&t===n?yt:r=>r===0||r===1?r:oo(Dl(r,s,t),e,n),Hl=(s=10,e)=>{const t=e?gl:os;return n=>t(F(n,0,1)*s)*(1/s)},ao=(...s)=>{const e=s.length;if(!e)return yt;const t=e-1,n=s[0],r=s[t],i=[0],a=[Et(n)];for(let h=1;h<t;h++){const u=s[h],p=Fe(u)?u.trim().split(" "):[u],f=p[0],g=p[1];i.push(I(g)?h/t:Et(g)/100),a.push(Et(f))}return a.push(Et(r)),i.push(1),function(u){for(let p=1,f=i.length;p<f;p++){const g=i[p];if(u<=g){const l=i[p-1],c=a[p-1];return c+(a[p]-c)*(u-l)/(g-l)}}return a[a.length-1]}},Fl=(s=10,e=1)=>{const t=[0],n=s-1;for(let r=1;r<n;r++){const i=t[r-1],a=r/n,h=(r+1)/n,u=a+(h-a)*Math.random(),p=a*(1-e)+u*e;t.push(F(p,i,1))}return t.push(1),ao(...t)},zl=zt/2,lo=zt*2,Ut=(s=1.68)=>e=>Ft(e,+s),co={[dt]:Ut,Quad:Ut(2),Cubic:Ut(3),Quart:Ut(4),Quint:Ut(5),Sine:s=>1-Dr(s*zl),Circ:s=>1-kt(1-s*s),Expo:s=>s?Ft(2,10*s-10):0,Bounce:s=>{let e,t=4;for(;s<((e=Ft(2,--t))-1)/11;);return 1/Ft(4,3-t)-7.5625*Ft((e*3-2)/22-s,2)},Back:(s=1.70158)=>e=>(+s+1)*e*e*e-+s*e*e,Elastic:(s=1,e=.3)=>{const t=F(+s,1,10),n=F(+e,Z,2),r=n/lo*ml(1/t),i=lo/n;return a=>a===0||a===1?a:-t*Ft(2,-10*(1-a))*Br((1-a-r)*i)}},cs={in:s=>e=>s(e),out:s=>e=>1-s(1-e),inOut:s=>e=>e<.5?s(e*2)/2:1-s(e*-2+2)/2,outIn:s=>e=>e<.5?(1-s(1-e*2))/2:(s(e*2-1)+1)/2},uo=(s,e,t)=>{if(t[s])return t[s];if(s.indexOf("(")<=-1){const r=cs[s]||s.includes("Back")||s.includes("Elastic")?e[s]():e[s];return r?t[s]=r:yt}else{const n=s.slice(0,-1).split("("),r=e[n[0]];return r?t[s]=r(...n[1].split(",")):yt}},Wt=(()=>{const s={linear:ao,irregular:Fl,steps:Hl,cubicBezier:ql};for(let e in cs)for(let t in co){const n=co[t],r=cs[e];s[e+t]=t===dt||t==="Back"||t==="Elastic"?(i,a)=>r(n(i,a)):r(n)}return s})(),Vl={linear:yt},Mt=s=>de(s)?s:Fe(s)?uo(s,Wt,Vl):yt,ho={},Qr=(s,e,t)=>{if(t===fe.TRANSFORM){const n=Mr.get(s);return n||s}else if(t===fe.CSS||t===fe.ATTRIBUTE&&Nr(e)&&s in e.style){const n=ho[s];if(n)return n;{const r=s&&Ui(s);return ho[s]=r,r}}else return s},Kr={deg:1,rad:180/zt,turn:360},po={},Zr=(s,e,t,n=!1)=>{const r=e.u,i=e.n;if(e.t===K.UNIT&&r===t)return e;const a=i+r+t,h=po[a];if(!I(h)&&!n)e.n=h;else{let u;if(r in Kr)u=i*Kr[r]/Kr[t];else{const f=s.cloneNode(),g=s.parentNode,l=g&&g!==H?g:H.body;l.appendChild(f);const c=f.style;c.width=100+r;const o=f.offsetWidth||100;c.width=100+t;const d=f.offsetWidth||100,m=o/d;l.removeChild(f),u=m*i}e.n=u,po[a]=u}return e.t,K.UNIT,e.u=t,e},er=s=>{if(s._hasChildren)se(s,er,!0);else{const e=s;e.pause(),se(e,t=>{const n=t.property,r=t.target;if(r[Ys]){const i=r.style,a=e._inlineStyles[n];if(t._tweenType===fe.TRANSFORM){const h=r[rs];if(I(a)||a===dt?delete h[n]:h[n]=a,t._renderTransforms)if(!Object.keys(h).length)i.removeProperty("transform");else{let u=dt;for(let p in h)u+=Ir[p]+h[p]+") ";i.transform=u}}else I(a)||a===dt?i.removeProperty(n):i[n]=a;e._tail===t&&e.targets.forEach(h=>{h.getAttribute&&h.getAttribute("style")===dt&&h.removeAttribute("style")})}})}return s},X=Xr(),Y=Xr(),tr={func:null},sr=[null],Gt=[null,null],rr={to:null};let $l=0,xt,ct;const Ul=(s,e)=>{const t={};if(Le(s)){const n=[].concat(...s.map(r=>Object.keys(r))).filter(Ht);for(let r=0,i=n.length;r<i;r++){const a=n[r],h=s.map(u=>{const p={};for(let f in u){const g=u[f];Ht(f)?f===a&&(p.to=g):p[f]=g}return p});t[a]=h}}else{const n=D(e.duration,G.defaults.duration);Object.keys(s).map(i=>({o:parseFloat(i)/100,p:s[i]})).sort((i,a)=>i.o-a.o).forEach(i=>{const a=i.o,h=i.p;for(let u in h)if(Ht(u)){let p=t[u];p||(p=t[u]=[]);const f=a*n;let g=p.length,l=p[g-1];const c={to:h[u]};let o=0;for(let d=0;d<g;d++)o+=p[d].duration;g===1&&(c.from=l.to),h.ease&&(c.ease=h.ease),c.duration=f-(g?o:0),p.push(c)}return i});for(let i in t){const a=t[i];let h;for(let u=0,p=a.length;u<p;u++){const f=a[u],g=f.ease;f.ease=h||void 0,h=g}a[0].duration||a.shift()}}return t};class _t extends Ge{constructor(e,t,n,r,i=!1,a=0,h=0){super(t,n,r);const u=ls(e),p=u.length,f=t.keyframes,g=f?as(Ul(f,t),t):t,{delay:l,duration:c,ease:o,playbackEase:d,modifier:m,composition:v,onRender:_}=g,S=n?n.defaults:G.defaults,y=D(d,S.playbackEase),b=y?Mt(y):null,k=!I(o)&&!I(o.ease),x=k?o.ease:D(o,b?"linear":S.ease),C=k?o.duration:D(c,S.duration),R=D(l,S.delay),P=m||S.modifier,T=I(v)&&p>=Ie?ke.none:I(v)?S.composition:v,E={},L=this._offset+(n?n._offset:0);let M=NaN,q=NaN,z=0,U=0;for(let V=0;V<p;V++){const A=u[V],oe=a||V,j=h||p;let xe=NaN,ve=NaN;for(let $ in g)if(Ht($)){const ee=Gr(A,$),re=Qr($,A,ee);let ge=g[$];const nt=Le(ge);if(i&&!nt&&(Gt[0]=ge,Gt[1]=ge,ge=Gt),nt){const Te=ge.length,Xe=!_e(ge[0]);Te===2&&Xe?(rr.to=ge,sr[0]=rr,xt=sr):Te>2&&Xe?(xt=[],ge.forEach((Ce,Pe)=>{Pe?Pe===1?(Gt[1]=Ce,xt.push(Gt)):xt.push(Ce):Gt[0]=Ce})):xt=ge}else sr[0]=ge,xt=sr;let Ae=null,le=null,ce=NaN,ie=0,ue=0;for(let Te=xt.length;ue<Te;ue++){const Xe=xt[ue];_e(Xe)?ct=Xe:(rr.to=Xe,ct=rr),tr.func=null;const Ce=We(ct.to,A,oe,j,tr);let Pe;_e(Ce)&&!I(Ce.to)?(ct=Ce,Pe=Ce.to):Pe=Ce;const it=We(ct.from,A,oe,j),we=ct.ease,w=!I(we)&&!I(we.ease),O=w?we.ease:we||x,N=w?we.duration:We(D(ct.duration,Te>1?We(C,A,oe,j)/Te:C),A,oe,j),J=We(D(ct.delay,ue?0:R),A,oe,j),Q=We(D(ct.composition,T),A,oe,j),pe=Ue(Q)?Q:ke[Q],De=ct.modifier||P,Ee=!I(it),Se=!I(Pe),Ze=Le(Pe),Cc=Ze||Ee&&Se,vn=le?ie+J:J,yn=B(L+vn,12);!U&&(Ee||Ze)&&(U=1);let je=le;if(pe!==ke.none){Ae||(Ae=Yr(A,re));let he=Ae._head;for(;he&&!he._isOverridden&&he._absoluteStartTime<=yn;)if(je=he,he=he._nextRep,he&&he._absoluteStartTime>=yn)for(;he;)js(he),he=he._nextRep}if(Cc?(Ke(Ze?We(Pe[0],A,oe,j):it,X),Ke(Ze?We(Pe[1],A,oe,j,tr):Pe,Y),X.t===K.NUMBER&&(je?je._valueType===K.UNIT&&(X.t=K.UNIT,X.u=je._unit):(Ke(Rt(A,re,ee,E),Be),Be.t===K.UNIT&&(X.t=K.UNIT,X.u=Be.u)))):(Se?Ke(Pe,Y):le?so(le,Y):Ke(n&&je&&je.parent.parent===n?je._value:Rt(A,re,ee,E),Y),Ee?Ke(it,X):le?so(le,X):Ke(n&&je&&je.parent.parent===n?je._value:Rt(A,re,ee,E),X)),X.o&&(X.n=Ot(je?je._toNumber:Ke(Rt(A,re,ee,E),Be).n,X.n,X.o)),Y.o&&(Y.n=Ot(X.n,Y.n,Y.o)),X.t!==Y.t){if(X.t===K.COMPLEX||Y.t===K.COMPLEX){const he=X.t===K.COMPLEX?X:Y,Re=X.t===K.COMPLEX?Y:X;Re.t=K.COMPLEX,Re.s=Ne(he.s),Re.d=he.d.map(()=>Re.n)}else if(X.t===K.UNIT||Y.t===K.UNIT){const he=X.t===K.UNIT?X:Y,Re=X.t===K.UNIT?Y:X;Re.t=K.UNIT,Re.u=he.u}else if(X.t===K.COLOR||Y.t===K.COLOR){const he=X.t===K.COLOR?X:Y,Re=X.t===K.COLOR?Y:X;Re.t=K.COLOR,Re.s=he.s,Re.d=[0,0,0,1]}}if(X.u!==Y.u){let he=Y.u?X:Y;he=Zr(A,he,Y.u?Y.u:X.u,!1)}if(Y.d&&X.d&&Y.d.length!==X.d.length){const he=X.d.length>Y.d.length?X:Y,Re=he===X?Y:X;Re.d=he.d.map((Ac,Io)=>I(Re.d[Io])?0:Re.d[Io]),Re.s=Ne(he.s)}const _n=B(+N||Z,12),fr={parent:this,id:$l++,property:re,target:A,_value:null,_func:tr.func,_ease:Mt(O),_fromNumbers:Ne(X.d),_toNumbers:Ne(Y.d),_strings:Ne(Y.s),_fromNumber:X.n,_toNumber:Y.n,_numbers:Ne(X.d),_number:X.n,_unit:Y.u,_modifier:De,_currentTime:0,_startTime:vn,_delay:+J,_updateDuration:_n,_changeDuration:_n,_absoluteStartTime:yn,_tweenType:ee,_valueType:Y.t,_composition:pe,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};pe!==ke.none&&ro(fr,Ae),isNaN(ce)&&(ce=fr._startTime),ie=B(vn+_n,12),le=fr,z++,vt(this,fr)}(isNaN(q)||ce<q)&&(q=ce),(isNaN(M)||ie>M)&&(M=ie),ee===fe.TRANSFORM&&(xe=z-ue,ve=z)}if(!isNaN(xe)){let $=0;se(this,ee=>{$>=xe&&$<ve&&(ee._renderTransforms=1,ee._composition===ke.blend&&se($t.animation,re=>{re.id===ee.id&&(re._renderTransforms=1)})),$++})}}p||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),q?(se(this,V=>{V._startTime-V._delay||(V._delay-=q),V._startTime-=q}),M-=q):q=0,M||(M=Z,this.iterationCount=0),this.targets=u,this.duration=M===Z?Z:Qs((M+this._loopDelay)*this.iterationCount-this._loopDelay)||Z,this.onRender=_||S.onRender,this._ease=b,this._delay=q,this.iterationDuration=M,this._inlineStyles=E,!this._autoplay&&U&&this.onRender(this)}stretch(e){const t=this.duration;if(t===Vt(e))return this;const n=e/t;return se(this,r=>{r._updateDuration=Vt(r._updateDuration*n),r._changeDuration=Vt(r._changeDuration*n),r._currentTime*=n,r._startTime*=n,r._absoluteStartTime*=n}),super.stretch(e)}refresh(){return se(this,e=>{const t=e._func;if(t){const n=Rt(e.target,e.property,e._tweenType);Ke(n,Be),Ke(t(),Y),e._fromNumbers=Ne(Be.d),e._fromNumber=Be.n,e._toNumbers=Ne(Y.d),e._strings=Ne(Y.s),e._toNumber=Y.o?Ot(Be.n,Y.n,Y.o):Y.n}}),this}revert(){return super.revert(),er(this)}then(e){return super.then(e)}}const jr=(s,e)=>new _t(s,e,null,0,!1).init(),nr=(s,e=100)=>{const t=[];for(let n=0;n<=e;n++)t.push(s(n/e));return`linear(${t.join(", ")})`},en={in:"ease-in",out:"ease-out",inOut:"ease-in-out"},Wl=(()=>{const s={};for(let e in cs)s[e]=t=>cs[e](Ut(t));return s})(),tn=s=>{let e=en[s];if(e)return e;if(e="linear",Fe(s)){if(ye(s,"linear")||ye(s,"cubic-")||ye(s,"steps")||ye(s,"ease"))e=s;else if(ye(s,"cubicB"))e=Ui(s);else{const t=uo(s,Wl,en);de(t)&&(e=t===yt?"linear":nr(t))}en[s]=e}else if(de(s)){const t=nr(s);t&&(e=t)}else s.ease&&(e=nr(s.ease));return e},fo=["x","y","z"],Gl=["perspective","width","height","margin","padding","top","right","bottom","left","borderWidth","fontSize","borderRadius",...fo],Xl=[...fo,...ns.filter(s=>["X","Y","Z"].some(e=>s.endsWith(e)))];let sn=null;const rn={_head:null,_tail:null},nn=(s,e,t)=>{let n=rn._head;for(;n;){const r=n._next,i=n.$el===s,a=!e||n.property===e,h=!t||n.parent===t;if(i&&a&&h){const u=n.animation;try{u.commitStyles()}catch{}u.cancel(),mt(rn,n);const p=n.parent;p&&(p._completed++,p.animations.length===p._completed&&(p.completed=!0,p.muteCallbacks||(p.paused=!0,p.onComplete(p),p._resolve(p))))}n=r}},go=(s,e,t,n,r)=>{const i=e.animate(n,r),a=r.delay+ +r.duration*r.iterations;i.playbackRate=s._speed,s.paused&&i.pause(),s.duration<a&&(s.duration=a,s.controlAnimation=i),s.animations.push(i),nn(e,t),vt(rn,{parent:s,animation:i,$el:e,property:t,_next:null,_prev:null});const h=()=>{nn(e,t,s)};return i.onremove=h,i.onfinish=h,i},us=(s,e,t,n,r)=>{let i=We(e,t,n,r);return Ue(i)?Gl.includes(s)||ye(s,"translate")?`${i}px`:ye(s,"rotate")||ye(s,"skew")?`${i}deg`:`${i}`:i},mo=(s,e,t,n,r,i)=>{let a="0";const h=I(n)?getComputedStyle(s)[e]:us(e,n,s,r,i);return I(t)?a=Le(n)?n.map(u=>us(e,u,s,r,i)):h:a=[us(e,t,s,r,i),h],a};class vo{constructor(e,t){me.current&&me.current.register(this),is(sn)&&(at&&(I(CSS)||!Object.hasOwnProperty.call(CSS,"registerProperty"))?sn=!1:(ns.forEach(v=>{const _=ye(v,"skew"),S=ye(v,"scale"),y=ye(v,"rotate"),b=ye(v,"translate"),k=y||_,x=k?"<angle>":S?"<number>":b?"<length-percentage>":"*";try{CSS.registerProperty({name:"--"+v,syntax:x,inherits:!1,initialValue:b?"0px":k?"0deg":S?"1":"0"})}catch{}}),sn=!0));const n=ls(e),r=n.length;r||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");const i=D(t.ease,tn(G.defaults.ease)),a=i.ease&&i,h=D(t.autoplay,G.defaults.autoplay),u=h&&h.link?h:!1,p=t.alternate&&t.alternate===!0,f=t.reversed&&t.reversed===!0,g=D(t.loop,G.defaults.loop),l=g===!0||g===1/0?1/0:Ue(g)?g+1:1,c=p?f?"alternate-reverse":"alternate":f?"reverse":"normal",o="forwards",d=tn(i),m=G.timeScale===1?1:Ie;this.targets=n,this.animations=[],this.controlAnimation=null,this.onComplete=t.onComplete||W,this.duration=0,this.muteCallbacks=!1,this.completed=!1,this.paused=!h||u!==!1,this.reversed=f,this.autoplay=h,this._speed=D(t.playbackRate,G.defaults.playbackRate),this._resolve=W,this._completed=0,this._inlineStyles=n.map(v=>v.getAttribute("style")),n.forEach((v,_)=>{const S=v[rs],y=Xl.some(C=>t.hasOwnProperty(C)),b=(a?a.duration:We(D(t.duration,G.defaults.duration),v,_,r))*m,k=We(D(t.delay,G.defaults.delay),v,_,r)*m,x=D(t.composition,"replace");for(let C in t){if(!Ht(C))continue;const R={},P={iterations:l,direction:c,fill:o,easing:d,duration:b,delay:k,composite:x},T=t[C],E=y?ns.includes(C)?C:Mr.get(C):!1;let L;if(_e(T)){const M=T,q=D(M.ease,i),z=q.ease&&q,U=M.to,V=M.from;if(P.duration=(z?z.duration:We(D(M.duration,b),v,_,r))*m,P.delay=We(D(M.delay,k),v,_,r)*m,P.composite=D(M.composition,x),P.easing=tn(q),L=mo(v,C,V,U,_,r),E?(R[`--${E}`]=L,S[E]=L):R[C]=mo(v,C,V,U,_,r),go(this,v,C,R,P),!I(V))if(!E)v.style[C]=R[C][0];else{const A=`--${E}`;v.style.setProperty(A,R[A][0])}}else L=Le(T)?T.map(M=>us(C,M,v,_,r)):us(C,T,v,_,r),E?(R[`--${E}`]=L,S[E]=L):R[C]=L,go(this,v,C,R,P)}if(y){let C=dt;for(let R in S)C+=`${Ir[R]}var(--${R})) `;v.style.transform=C}}),u&&this.autoplay.link(this)}forEach(e){const t=Fe(e)?n=>n[e]():e;return this.animations.forEach(t),this}get speed(){return this._speed}set speed(e){this._speed=+e,this.forEach(t=>t.playbackRate=e)}get currentTime(){const e=this.controlAnimation,t=G.timeScale;return this.completed?this.duration:e?+e.currentTime*(t===1?1:t):0}set currentTime(e){const t=e*(G.timeScale===1?1:Ie);this.forEach(n=>{t>=this.duration&&n.play(),n.currentTime=t})}get progress(){return this.currentTime/this.duration}set progress(e){this.forEach(t=>t.currentTime=e*this.duration||0)}resume(){return this.paused?(this.paused=!1,this.forEach("play")):this}pause(){return this.paused?this:(this.paused=!0,this.forEach("pause"))}alternate(){return this.reversed=!this.reversed,this.forEach("reverse"),this.paused&&this.forEach("pause"),this}play(){return this.reversed&&this.alternate(),this.resume()}reverse(){return this.reversed||this.alternate(),this.resume()}seek(e,t=!1){return t&&(this.muteCallbacks=!0),e<this.duration&&(this.completed=!1),this.currentTime=e,this.muteCallbacks=!1,this.paused&&this.pause(),this}restart(){return this.completed=!1,this.seek(0,!0).resume()}commitStyles(){return this.forEach("commitStyles")}complete(){return this.seek(this.duration)}cancel(){return this.forEach("cancel"),this.pause()}revert(){return this.cancel(),this.targets.forEach((e,t)=>e.setAttribute("style",this._inlineStyles[t])),this}then(e=W){const t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=W};return new Promise(r=>(this._resolve=()=>r(n()),this.completed&&this._resolve(),this))}}const Yl={animate:(s,e)=>new vo(s,e),convertEase:nr},yo=(s=W)=>new Ge({duration:1*G.timeScale,onComplete:s},null,0).resume();function It(s,e,t){const n=ls(s);if(!n.length)return;const[r]=n,i=Gr(r,e),a=Qr(e,r,i);let h=Rt(r,a);if(I(t))return h;if(Ke(h,Be),Be.t===K.NUMBER||Be.t===K.UNIT){if(t===!1)return Be.n;{const u=Zr(r,Be,t,!1);return`${B(u.n,G.precision)}${u.u}`}}}const wt=(s,e)=>{if(!I(e))return e.duration=Z,e.composition=D(e.composition,ke.none),new _t(s,e,null,0,!0).resume()},_o=(s,e,t)=>{let n=!1;return se(e,r=>{const i=r.target;if(s.includes(i)){const a=r.property,h=r._tweenType,u=Qr(t,i,h);(!u||u&&u===a)&&(r.parent._tail===r&&r._tweenType===fe.TRANSFORM&&r._prev&&r._prev._tweenType===fe.TRANSFORM&&(r._prev._renderTransforms=1),mt(e,r),no(r),n=!0)}},!0),n},bt=(s,e,t)=>{const n=Qe(s),r=e||be,i=e&&e.controlAnimation&&e;for(let h=0,u=n.length;h<u;h++){const p=n[h];nn(p,t,i)}let a;if(r._hasChildren){let h=0;se(r,u=>{if(!u._hasChildren)if(a=_o(n,u,t),a&&!u._head)u.cancel(),mt(r,u);else{const f=u._offset+u._delay+u.duration;f>h&&(h=f)}u._head?bt(s,u,t):u._hasChildren=!1},!0),I(r.iterationDuration)||(r.iterationDuration=h)}else a=_o(n,r,t);return a&&!r._head&&(r._hasChildren=!1,r.cancel&&r.cancel()),n},Jl=zr,Ql=s=>s[Fr(0,s.length-1)],Kl=(s,e)=>(+s).toFixed(e),Zl=(s,e,t)=>`${s}`.padStart(e,t),jl=(s,e,t)=>`${s}`.padEnd(e,t),ec=(s,e,t)=>((s-e)%(t-e)+(t-e))%(t-e)+e,hs=(s,e,t,n,r)=>n+(s-e)/(t-e)*(r-n),tc=s=>s*zt/180,sc=s=>s*180/zt,bo=(s,e,t,n)=>{let r=Ie/G.defaults.frameRate;if(n!==!1){const a=n||be._hasChildren&&be;a&&a.deltaTime&&(r=a.deltaTime)}const i=1-Math.exp(-t*r*.1);return t?t===1?e:(1-i)*s+i*e:s},rc=(s,e=0)=>(...t)=>e?n=>s(...t,n):n=>s(n,...t),So=s=>(...e)=>{const t=s(...e);return new Proxy(W,{apply:(n,r,[i])=>t(i),get:(n,r)=>So((...i)=>{const a=ko[r](...i);return h=>a(t(h))})})},rt=(s,e=0)=>(...t)=>(t.length<s.length?So(rc(s,e)):s)(...t),ko={$:ls,get:It,set:wt,remove:bt,cleanInlineStyles:er,random:Fr,randomPick:Ql,shuffle:Qi,lerp:bo,sync:yo,keepTime:Jl,clamp:rt(F),round:rt(B),snap:rt(Lt),wrap:rt(ec),interpolate:rt(gt,1),mapRange:rt(hs),roundPad:rt(Kl),padStart:rt(Zl),padEnd:rt(jl),degToRad:rt(tc),radToDeg:rt(sc)},nc=(s,e)=>{if(ye(e,"<")){const t=e[1]==="<",n=s._tail,r=n?n._offset+n._delay:0;return t?r:r+n.duration}},ps=(s,e)=>{let t=s.iterationDuration;if(t===Z&&(t=0),I(e))return t;if(Ue(+e))return+e;const n=e,r=s?s.labels:null,i=!is(r),a=nc(s,n),h=!I(a),u=zi.exec(n);if(u){const p=u[0],f=n.split(p),g=i&&f[0]?r[f[0]]:t,l=h?a:i?g:t,c=+f[1];return Ot(l,c,p[0])}else return h?a:i?I(r[n])?t:r[n]:t};function ic(s){return Qs((s.iterationDuration+s._loopDelay)*s.iterationCount-s._loopDelay)||Z}function on(s,e,t,n,r,i){const h=Ue(s.duration)&&s.duration<=Z?t-Z:t;At(e,h,1,1,$e.AUTO);const u=n?new _t(n,s,e,h,!1,r,i):new Ge(s,e,h);return u.init(1),vt(e,u),se(e,p=>{const g=p._offset+p._delay+p.duration;g>e.iterationDuration&&(e.iterationDuration=g)}),e.duration=ic(e),e}class xo extends Ge{constructor(e={}){super(e,null,0),this.duration=0,this.labels={};const t=e.defaults,n=G.defaults;this.defaults=t?as(t,n):n,this.onRender=e.onRender||n.onRender;const r=D(e.playbackEase,n.playbackEase);this._ease=r?Mt(r):null,this.iterationDuration=0}add(e,t,n){const r=_e(t),i=_e(e);if(r||i){if(this._hasChildren=!0,r){const a=t;if(de(n)){const h=n,u=Qe(e),p=this.duration,f=this.iterationDuration,g=a.id;let l=0;const c=u.length;u.forEach(o=>{const d={...a};this.duration=p,this.iterationDuration=f,I(g)||(d.id=g+"-"+l),on(d,this,ps(this,h(o,l,c,this)),o,l,c),l++})}else on(a,this,ps(this,n),e)}else on(e,this,ps(this,t));return this.init(1)}}sync(e,t){if(I(e)||e&&I(e.pause))return this;e.pause();const n=+(e.effect?e.effect.getTiming().duration:e.duration);return this.add(e,{currentTime:[0,n],duration:n,ease:"linear"},t)}set(e,t,n){return I(t)?this:(t.duration=Z,t.composition=ke.replace,this.add(e,t,n))}call(e,t){return I(e)||e&&!de(e)?this:this.add({duration:0,onComplete:()=>e(this)},t)}label(e,t){return I(e)||e&&!Fe(e)?this:(this.labels[e]=ps(this,t),this)}remove(e,t){return bt(e,this,t),this}stretch(e){const t=this.duration;if(t===Vt(e))return this;const n=e/t,r=this.labels;se(this,i=>i.stretch(i.duration*n));for(let i in r)r[i]*=n;return super.stretch(e)}refresh(){return se(this,e=>{e.refresh&&e.refresh()}),this}revert(){return super.revert(),se(this,e=>e.revert,!0),er(this)}then(e){return super.then(e)}}const oc=s=>new xo(s).init();class an{constructor(e,t){me.current&&me.current.register(this);const n=()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},r=()=>{if(this.callbacks.completed)return;let u=!0;for(let p in this.animations)if(!this.animations[p].paused&&u){u=!1;break}u&&this.callbacks.complete()},i={onBegin:n,onComplete:r,onPause:r},a={v:1,autoplay:!1},h={};if(this.targets=[],this.animations={},this.callbacks=null,!(I(e)||I(t))){for(let u in t){const p=t[u];Ht(u)?h[u]=p:ye(u,"on")?a[u]=p:i[u]=p}this.callbacks=new _t({v:0},a);for(let u in h){const p=h[u],f=_e(p);let g={},l="+=0";if(f){const d=p.unit;Fe(d)&&(l+=d)}else g.duration=p;g[u]=f?as({to:l},p):l;const c=as(i,g);c.composition=ke.replace,c.autoplay=!1;const o=this.animations[u]=new _t(e,c,null,0,!1).init();this.targets.length||this.targets.push(...o.targets),this[u]=(d,m,v)=>{const _=o._head;if(I(d)&&_){const S=_._numbers;return S&&S.length?S:_._modifier(_._number)}else return se(o,S=>{if(Le(d))for(let y=0,b=d.length;y<b;y++)I(S._numbers[y])||(S._fromNumbers[y]=S._modifier(S._numbers[y]),S._toNumbers[y]=d[y]);else S._fromNumber=S._modifier(S._number),S._toNumber=d;I(v)||(S._ease=Mt(v)),S._currentTime=0}),I(m)||o.stretch(m),o.reset(1).resume(),this}}}}revert(){for(let e in this.animations)this[e]=W,this.animations[e].revert();return this.animations={},this.targets.length=0,this.callbacks&&this.callbacks.revert(),this}}const ac=(s,e)=>new an(s,e),Tt=Ie*10;class wo{constructor(e={}){this.timeStep=.02,this.restThreshold=5e-4,this.restDuration=200,this.maxDuration=6e4,this.maxRestSteps=this.restDuration/this.timeStep/Ie,this.maxIterations=this.maxDuration/this.timeStep/Ie,this.m=F(D(e.mass,1),0,Tt),this.s=F(D(e.stiffness,100),1,Tt),this.d=F(D(e.damping,10),.1,Tt),this.v=F(D(e.velocity,0),-1e4,Tt),this.w0=0,this.zeta=0,this.wd=0,this.b=0,this.solverDuration=0,this.duration=0,this.compute(),this.ease=t=>t===0||t===1?t:this.solve(t*this.solverDuration)}solve(e){const{zeta:t,w0:n,wd:r,b:i}=this;let a=e;return t<1?a=Yi(-a*t*n)*(1*Dr(r*a)+i*Br(r*a)):a=(1+i*a)*Yi(-a*n),1-a}compute(){const{maxRestSteps:e,maxIterations:t,restThreshold:n,timeStep:r,m:i,d:a,s:h,v:u}=this,p=this.w0=F(kt(h/i),Z,Ie),f=this.zeta=a/(2*kt(h*i)),g=this.wd=f<1?p*kt(1-f*f):0;this.b=f<1?(f*p+-u)/g:-u+p;let l=0,c=0,o=0;for(;c<e&&o<t;)lt(1-this.solve(l))<n?c++:c=0,this.solverDuration=l,l+=r,o++;this.duration=B(this.solverDuration*Ie,0)*G.timeScale}get mass(){return this.m}set mass(e){this.m=F(D(e,1),0,Tt),this.compute()}get stiffness(){return this.s}set stiffness(e){this.s=F(D(e,100),1,Tt),this.compute()}get damping(){return this.d}set damping(e){this.d=F(D(e,10),.1,Tt),this.compute()}get velocity(){return this.v}set velocity(e){this.v=F(D(e,0),-1e4,Tt),this.compute()}}const ln=s=>new wo(s),Ct=s=>{s.cancelable&&s.preventDefault()};class lc{constructor(e){this.el=e,this.zIndex=0,this.parentElement=null,this.classList={add:W,remove:W}}get x(){return this.el.x||0}set x(e){this.el.x=e}get y(){return this.el.y||0}set y(e){this.el.y=e}get width(){return this.el.width||0}set width(e){this.el.width=e}get height(){return this.el.height||0}set height(e){this.el.height=e}getBoundingClientRect(){return{top:this.y,right:this.x,bottom:this.y+this.height,left:this.x+this.width}}}class cc{constructor(e){this.$el=e,this.inlineTransforms=[],this.point=new DOMPoint,this.inversedMatrix=this.getMatrix().inverse()}normalizePoint(e,t){return this.point.x=e,this.point.y=t,this.point.matrixTransform(this.inversedMatrix)}traverseUp(e){let t=this.$el.parentElement,n=0;for(;t&&t!==H;)e(t,n),t=t.parentElement,n++}getMatrix(){const e=new DOMMatrix;return this.traverseUp(t=>{const n=getComputedStyle(t).transform;if(n){const r=new DOMMatrix(n);e.preMultiplySelf(r)}}),e}remove(){this.traverseUp((e,t)=>{this.inlineTransforms[t]=e.style.transform,e.style.transform="none"})}revert(){this.traverseUp((e,t)=>{const n=this.inlineTransforms[t];n===""?e.style.removeProperty("transform"):e.style.transform=n})}}const ze=(s,e)=>s&&de(s)?s(e):s;let ir=0;class To{constructor(e,t={}){if(!e)return;me.current&&me.current.register(this);const n=t.x,r=t.y,i=t.trigger,a=t.modifier,h=t.releaseEase,u=h&&Mt(h),p=!I(h)&&!I(h.ease),f=_e(n)&&!I(n.mapTo)?n.mapTo:"translateX",g=_e(r)&&!I(r.mapTo)?r.mapTo:"translateY",l=ze(t.container,this);this.containerArray=Le(l)?l:null,this.$container=l&&!this.containerArray?Qe(l)[0]:H.body,this.useWin=this.$container===H.body,this.$scrollContainer=this.useWin?Me:this.$container,this.$target=_e(e)?new lc(e):Qe(e)[0],this.$trigger=Qe(i||e)[0],this.fixed=It(this.$target,"position")==="fixed",this.isFinePointer=!0,this.containerPadding=[0,0,0,0],this.containerFriction=0,this.releaseContainerFriction=0,this.snapX=0,this.snapY=0,this.scrollSpeed=0,this.scrollThreshold=0,this.dragSpeed=0,this.maxVelocity=0,this.minVelocity=0,this.velocityMultiplier=0,this.cursor=!1,this.releaseXSpring=p?h:ln({mass:D(t.releaseMass,1),stiffness:D(t.releaseStiffness,80),damping:D(t.releaseDamping,20)}),this.releaseYSpring=p?h:ln({mass:D(t.releaseMass,1),stiffness:D(t.releaseStiffness,80),damping:D(t.releaseDamping,20)}),this.releaseEase=u||Wt.outQuint,this.hasReleaseSpring=p,this.onGrab=t.onGrab||W,this.onDrag=t.onDrag||W,this.onRelease=t.onRelease||W,this.onUpdate=t.onUpdate||W,this.onSettle=t.onSettle||W,this.onSnap=t.onSnap||W,this.onResize=t.onResize||W,this.onAfterResize=t.onAfterResize||W,this.disabled=[0,0];const c={};if(a&&(c.modifier=a),I(n)||n===!0)c[f]=0;else if(_e(n)){const o=n,d={};o.modifier&&(d.modifier=o.modifier),o.composition&&(d.composition=o.composition),c[f]=d}else n===!1&&(c[f]=0,this.disabled[0]=1);if(I(r)||r===!0)c[g]=0;else if(_e(r)){const o=r,d={};o.modifier&&(d.modifier=o.modifier),o.composition&&(d.composition=o.composition),c[g]=d}else r===!1&&(c[g]=0,this.disabled[1]=1);this.animate=new an(this.$target,c),this.xProp=f,this.yProp=g,this.destX=0,this.destY=0,this.deltaX=0,this.deltaY=0,this.scroll={x:0,y:0},this.coords=[this.x,this.y,0,0],this.snapped=[0,0],this.pointer=[0,0,0,0,0,0,0,0],this.scrollView=[0,0],this.dragArea=[0,0,0,0],this.containerBounds=[-1e12,qt,qt,-1e12],this.scrollBounds=[0,0,0,0],this.targetBounds=[0,0,0,0],this.window=[0,0],this.velocityStack=[0,0,0],this.velocityStackIndex=0,this.velocityTime=St(),this.velocity=0,this.angle=0,this.cursorStyles=null,this.triggerStyles=null,this.bodyStyles=null,this.targetStyles=null,this.touchActionStyles=null,this.transforms=new cc(this.$target),this.overshootCoords={x:0,y:0},this.overshootTicker=new Ge({autoplay:!1,onUpdate:()=>{this.updated=!0,this.manual=!0,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,1),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,1)},onComplete:()=>{this.manual=!1,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,0),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,0)}},null,0).init(),this.updateTicker=new Ge({autoplay:!1,onUpdate:()=>this.update()},null,0).init(),this.contained=!I(l),this.manual=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.enabled=!1,this.initialized=!1,this.activeProp=this.disabled[1]?f:g,this.animate.callbacks.onRender=()=>{const o=this.updated,m=!(this.grabbed&&o)&&this.released,v=this.x,_=this.y,S=v-this.coords[2],y=_-this.coords[3];this.deltaX=S,this.deltaY=y,this.coords[2]=v,this.coords[3]=_,o&&(S||y)&&this.onUpdate(this),m?(this.computeVelocity(S,y),this.angle=Js(y,S)):this.updated=!1},this.animate.callbacks.onComplete=()=>{!this.grabbed&&this.released&&(this.released=!1),this.manual||(this.deltaX=0,this.deltaY=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.onSettle(this))},this.resizeTicker=new Ge({autoplay:!1,duration:150*G.timeScale,onComplete:()=>{this.onResize(this),this.refresh(),this.onAfterResize(this)}}).init(),this.parameters=t,this.resizeObserver=new ResizeObserver(()=>{this.initialized?this.resizeTicker.restart():this.initialized=!0}),this.enable(),this.refresh(),this.resizeObserver.observe(this.$container),_e(e)||this.resizeObserver.observe(this.$target)}computeVelocity(e,t){const n=this.velocityTime,r=St(),i=r-n;if(i<17)return this.velocity;this.velocityTime=r;const a=this.velocityStack,h=this.velocityMultiplier,u=this.minVelocity,p=this.maxVelocity,f=this.velocityStackIndex;a[f]=B(F(kt(e*e+t*t)/i*h,u,p),5);const g=qr(a[0],a[1],a[2]);return this.velocity=g,this.velocityStackIndex=(f+1)%3,g}setX(e,t=!1){if(this.disabled[0])return;const n=B(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destX=n,this.snapped[0]=Lt(n,this.snapX),this.animate[this.xProp](n,0),this.manual=!1,this}setY(e,t=!1){if(this.disabled[1])return;const n=B(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destY=n,this.snapped[1]=Lt(n,this.snapY),this.animate[this.yProp](n,0),this.manual=!1,this}get x(){return B(this.animate[this.xProp](),G.precision)}set x(e){this.setX(e,!1)}get y(){return B(this.animate[this.yProp](),G.precision)}set y(e){this.setY(e,!1)}get progressX(){return hs(this.x,this.containerBounds[3],this.containerBounds[1],0,1)}set progressX(e){this.setX(hs(e,0,1,this.containerBounds[3],this.containerBounds[1]),!1)}get progressY(){return hs(this.y,this.containerBounds[0],this.containerBounds[2],0,1)}set progressY(e){this.setY(hs(e,0,1,this.containerBounds[0],this.containerBounds[2]),!1)}updateScrollCoords(){const e=B(this.useWin?Me.scrollX:this.$container.scrollLeft,0),t=B(this.useWin?Me.scrollY:this.$container.scrollTop,0),[n,r,i,a]=this.containerPadding,h=this.scrollThreshold;this.scroll.x=e,this.scroll.y=t,this.scrollBounds[0]=t-this.targetBounds[0]+n-h,this.scrollBounds[1]=e-this.targetBounds[1]-r+h,this.scrollBounds[2]=t-this.targetBounds[2]-i+h,this.scrollBounds[3]=e-this.targetBounds[3]+a-h}updateBoundingValues(){const e=this.$container;if(!e)return;const t=this.x,n=this.y,r=this.coords[2],i=this.coords[3];this.coords[2]=0,this.coords[3]=0,this.setX(0,!0),this.setY(0,!0),this.transforms.remove();const a=this.window[0]=Me.innerWidth,h=this.window[1]=Me.innerHeight,u=this.useWin,p=e.scrollWidth,f=e.scrollHeight,g=this.fixed,l=e.getBoundingClientRect(),[c,o,d,m]=this.containerPadding;this.dragArea[0]=u?0:l.left,this.dragArea[1]=u?0:l.top,this.scrollView[0]=u?F(p,a,p):p,this.scrollView[1]=u?F(f,h,f):f,this.updateScrollCoords();const{width:v,height:_,left:S,top:y,right:b,bottom:k}=e.getBoundingClientRect();this.dragArea[2]=B(u?F(v,a,a):v,0),this.dragArea[3]=B(u?F(_,h,h):_,0);const x=It(e,"overflow"),C=x==="visible",R=x==="hidden";if(this.canScroll=g?!1:this.contained&&(e===H.body&&C||!R&&!C)&&(p>this.dragArea[2]+m-o||f>this.dragArea[3]+c-d)&&(!this.containerArray||this.containerArray&&!Le(this.containerArray)),this.contained){const P=this.scroll.x,T=this.scroll.y,E=this.canScroll,L=this.$target.getBoundingClientRect(),M=E?u?0:e.scrollLeft:0,q=E?u?0:e.scrollTop:0,z=E?this.scrollView[0]-M-v:0,U=E?this.scrollView[1]-q-_:0;this.targetBounds[0]=B(L.top+T-(u?0:y),0),this.targetBounds[1]=B(L.right+P-(u?a:b),0),this.targetBounds[2]=B(L.bottom+T-(u?h:k),0),this.targetBounds[3]=B(L.left+P-(u?0:S),0),this.containerArray?(this.containerBounds[0]=this.containerArray[0]+c,this.containerBounds[1]=this.containerArray[1]-o,this.containerBounds[2]=this.containerArray[2]-d,this.containerBounds[3]=this.containerArray[3]+m):(this.containerBounds[0]=-B(L.top-(g?F(y,0,h):y)+q-c,0),this.containerBounds[1]=-B(L.right-(g?F(b,0,a):b)-z+o,0),this.containerBounds[2]=-B(L.bottom-(g?F(k,0,h):k)-U+d,0),this.containerBounds[3]=-B(L.left-(g?F(S,0,a):S)+M-m,0))}this.transforms.revert(),this.coords[2]=r,this.coords[3]=i,this.setX(t,!0),this.setY(n,!0)}isOutOfBounds(e,t,n){if(!this.contained)return 0;const[r,i,a,h]=e,[u,p]=this.disabled,f=!u&&t<h||!u&&t>i,g=!p&&n<r||!p&&n>a;return f&&!g?1:!f&&g?2:f&&g?3:0}refresh(){const e=this.parameters,t=e.x,n=e.y,r=ze(e.container,this),i=ze(e.containerPadding,this)||0,a=Le(i)?i:[i,i,i,i],h=this.x,u=this.y,p=ze(e.cursor,this),f={onHover:"grab",onGrab:"grabbing"};if(p){const{onHover:d,onGrab:m}=p;d&&(f.onHover=d),m&&(f.onGrab=m)}this.containerArray=Le(r)?r:null,this.$container=r&&!this.containerArray?Qe(r)[0]:H.body,this.useWin=this.$container===H.body,this.$scrollContainer=this.useWin?Me:this.$container,this.isFinePointer=matchMedia("(pointer:fine)").matches,this.containerPadding=D(a,[0,0,0,0]),this.containerFriction=F(D(ze(e.containerFriction,this),.8),0,1),this.releaseContainerFriction=F(D(ze(e.releaseContainerFriction,this),this.containerFriction),0,1),this.snapX=ze(_e(t)&&!I(t.snap)?t.snap:e.snap,this),this.snapY=ze(_e(n)&&!I(n.snap)?n.snap:e.snap,this),this.scrollSpeed=D(ze(e.scrollSpeed,this),1.5),this.scrollThreshold=D(ze(e.scrollThreshold,this),20),this.dragSpeed=D(ze(e.dragSpeed,this),1),this.minVelocity=D(ze(e.minVelocity,this),0),this.maxVelocity=D(ze(e.maxVelocity,this),50),this.velocityMultiplier=D(ze(e.velocityMultiplier,this),1),this.cursor=p===!1?!1:f,this.updateBoundingValues();const[g,l,c,o]=this.containerBounds;this.setX(F(h,o,l),!0),this.setY(F(u,g,c),!0)}update(){if(this.updateScrollCoords(),this.canScroll){const[_,S,y,b]=this.containerPadding,[k,x]=this.scrollView,C=this.dragArea[2],R=this.dragArea[3],P=this.scroll.x,T=this.scroll.y,E=this.$container.scrollWidth,L=this.$container.scrollHeight,M=this.useWin?F(E,this.window[0],E):E,q=this.useWin?F(L,this.window[1],L):L,z=k-M,U=x-q;this.dragged&&z>0&&(this.coords[0]-=z,this.scrollView[0]=M),this.dragged&&U>0&&(this.coords[1]-=U,this.scrollView[1]=q);const V=this.scrollSpeed*10,A=this.scrollThreshold,[oe,j]=this.coords,[xe,ve,$,ee]=this.scrollBounds,re=B(F((j-xe+_)/A,-1,0)*V,0),ge=B(F((oe-ve-S)/A,0,1)*V,0),nt=B(F((j-$-y)/A,0,1)*V,0),Ae=B(F((oe-ee+b)/A,-1,0)*V,0);if(re||nt||Ae||ge){const[le,ce]=this.disabled;let ie=P,ue=T;le||(ie=B(F(P+(Ae||ge),0,k-C),0),this.coords[0]-=P-ie),ce||(ue=B(F(T+(re||nt),0,x-R),0),this.coords[1]-=T-ue),this.useWin?this.$scrollContainer.scrollBy(-(P-ie),-(T-ue)):this.$scrollContainer.scrollTo(ie,ue)}}const[e,t,n,r]=this.containerBounds,[i,a,h,u,p,f]=this.pointer;this.coords[0]+=(i-p)*this.dragSpeed,this.coords[1]+=(a-f)*this.dragSpeed,this.pointer[4]=i,this.pointer[5]=a;const[g,l]=this.coords,[c,o]=this.snapped,d=(1-this.containerFriction)*this.dragSpeed;this.setX(g>t?t+(g-t)*d:g<r?r+(g-r)*d:g,!1),this.setY(l>n?n+(l-n)*d:l<e?e+(l-e)*d:l,!1),this.computeVelocity(i-p,a-f),this.angle=Js(a-u,i-h);const[m,v]=this.snapped;(m!==c&&this.snapX||v!==o&&this.snapY)&&this.onSnap(this)}stop(){this.updateTicker.pause(),this.overshootTicker.pause();for(let e in this.animate.animations)this.animate.animations[e].pause();return bt(this,null,"x"),bt(this,null,"y"),bt(this,null,"progressX"),bt(this,null,"progressY"),bt(this.scroll),bt(this.overshootCoords),this}scrollInView(e,t=0,n=Wt.inOutQuad){this.updateScrollCoords();const r=this.destX,i=this.destY,a=this.scroll,h=this.scrollBounds,u=this.canScroll;if(!this.containerArray&&this.isOutOfBounds(h,r,i)){const[p,f,g,l]=h,c=B(F(i-p,-1e12,0),0),o=B(F(r-f,0,qt),0),d=B(F(i-g,0,qt),0),m=B(F(r-l,-1e12,0),0);new _t(a,{x:B(a.x+(m?m-t:o?o+t:0),0),y:B(a.y+(c?c-t:d?d+t:0),0),duration:I(e)?350*G.timeScale:e,ease:n,onUpdate:()=>{this.canScroll=!1,this.$scrollContainer.scrollTo(a.x,a.y)}}).init().then(()=>{this.canScroll=u})}return this}handleHover(){this.isFinePointer&&this.cursor&&!this.cursorStyles&&(this.cursorStyles=wt(this.$trigger,{cursor:this.cursor.onHover}))}animateInView(e,t=0,n=Wt.inOutQuad){this.stop(),this.updateBoundingValues();const r=this.x,i=this.y,[a,h,u,p]=this.containerPadding,f=this.scroll.y-this.targetBounds[0]+a+t,g=this.scroll.x-this.targetBounds[1]-h-t,l=this.scroll.y-this.targetBounds[2]-u-t,c=this.scroll.x-this.targetBounds[3]+p+t,o=this.isOutOfBounds([f,g,l,c],r,i);if(o){const[d,m]=this.disabled,v=F(Lt(r,this.snapX),c,g),_=F(Lt(i,this.snapY),f,l),S=I(e)?350*G.timeScale:e;!d&&(o===1||o===3)&&this.animate[this.xProp](v,S,n),!m&&(o===2||o===3)&&this.animate[this.yProp](_,S,n)}return this}handleDown(e){const t=e.target;if(this.grabbed||t.type==="range")return;e.stopPropagation(),this.grabbed=!0,this.released=!1,this.stop(),this.updateBoundingValues();const n=e.changedTouches,r=n?n[0].clientX:e.clientX,i=n?n[0].clientY:e.clientY,{x:a,y:h}=this.transforms.normalizePoint(r,i),[u,p,f,g]=this.containerBounds,l=(1-this.containerFriction)*this.dragSpeed,c=this.x,o=this.y;this.coords[0]=this.coords[2]=l?c>p?p+(c-p)/l:c<g?g+(c-g)/l:c:c,this.coords[1]=this.coords[3]=l?o>f?f+(o-f)/l:o<u?u+(o-u)/l:o:o,this.pointer[0]=a,this.pointer[1]=h,this.pointer[2]=a,this.pointer[3]=h,this.pointer[4]=a,this.pointer[5]=h,this.pointer[6]=a,this.pointer[7]=h,this.deltaX=0,this.deltaY=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.angle=0,this.targetStyles&&(this.targetStyles.revert(),this.targetStyles=null);const d=It(this.$target,"zIndex",!1);ir=(d>ir?d:ir)+1,this.targetStyles=wt(this.$target,{zIndex:ir}),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.isFinePointer&&this.cursor&&(this.bodyStyles=wt(H.body,{cursor:this.cursor.onGrab})),this.scrollInView(100,0,Wt.out(3)),this.onGrab(this),H.addEventListener("touchmove",this),H.addEventListener("touchend",this),H.addEventListener("touchcancel",this),H.addEventListener("mousemove",this),H.addEventListener("mouseup",this),H.addEventListener("selectstart",this)}handleMove(e){if(!this.grabbed)return;const t=e.changedTouches,n=t?t[0].clientX:e.clientX,r=t?t[0].clientY:e.clientY,{x:i,y:a}=this.transforms.normalizePoint(n,r),h=i-this.pointer[6],u=a-this.pointer[7];let p=e.target,f=!1,g=!1,l=!1;for(;t&&p&&p!==this.$trigger;){const c=It(p,"overflow-y");if(c!=="hidden"&&c!=="visible"){const{scrollTop:o,scrollHeight:d,clientHeight:m}=p;if(d>m){l=!0,f=o<=3,g=o>=d-m-3;break}}p=p.parentNode}l&&(!f&&!g||f&&u<0||g&&u>0)?(this.pointer[0]=i,this.pointer[1]=a,this.pointer[2]=i,this.pointer[3]=a,this.pointer[4]=i,this.pointer[5]=a,this.pointer[6]=i,this.pointer[7]=a):(Ct(e),this.triggerStyles||(this.triggerStyles=wt(this.$trigger,{pointerEvents:"none"})),this.$trigger.addEventListener("touchstart",Ct,{passive:!1}),this.$trigger.addEventListener("touchmove",Ct,{passive:!1}),this.$trigger.addEventListener("touchend",Ct),(!this.disabled[0]&&lt(h)>3||!this.disabled[1]&&lt(u)>3)&&(this.updateTicker.resume(),this.pointer[2]=this.pointer[0],this.pointer[3]=this.pointer[1],this.pointer[0]=i,this.pointer[1]=a,this.dragged=!0,this.released=!1,this.onDrag(this)))}handleUp(){if(!this.grabbed)return;this.updateTicker.pause(),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null);const[e,t]=this.disabled,[n,r,i,a,h,u]=this.pointer,[p,f,g,l]=this.containerBounds,[c,o]=this.snapped,d=this.releaseXSpring,m=this.releaseYSpring,v=this.releaseEase,_=this.hasReleaseSpring,S=this.overshootCoords,y=this.x,b=this.y,k=this.computeVelocity(n-h,r-u),x=this.angle=Js(r-a,n-i),C=k*150,R=(1-this.releaseContainerFriction)*this.dragSpeed,P=y+Dr(x)*C,T=b+Br(x)*C,E=P>f?f+(P-f)*R:P<l?l+(P-l)*R:P,L=T>g?g+(T-g)*R:T<p?p+(T-p)*R:T,M=this.destX=F(B(Lt(E,this.snapX),5),l,f),q=this.destY=F(B(Lt(L,this.snapY),5),p,g),z=this.isOutOfBounds(this.containerBounds,P,T);let U=0,V=0,A=v,oe=v,j=0;if(S.x=y,S.y=b,!e){const ve=M===f?y>f?-1:1:y<l?-1:1,$=B(y-M,0);d.velocity=t&&_?$?C*ve/lt($):0:k;const{ease:ee,duration:re,restDuration:ge}=d;U=y===M?0:_?re:re-ge*G.timeScale,_&&(A=ee),U>j&&(j=U)}if(!t){const ve=q===g?b>g?-1:1:b<p?-1:1,$=B(b-q,0);m.velocity=e&&_?$?C*ve/lt($):0:k;const{ease:ee,duration:re,restDuration:ge}=m;V=b===q?0:_?re:re-ge*G.timeScale,_&&(oe=ee),V>j&&(j=V)}if(!_&&z&&R&&(U||V)){const ve=ke.blend;new _t(S,{x:{to:E,duration:U*.65},y:{to:L,duration:V*.65},ease:v,composition:ve}).init(),new _t(S,{x:{to:M,duration:U},y:{to:q,duration:V},ease:v,composition:ve}).init(),this.overshootTicker.stretch(qr(U,V)).restart()}else e||this.animate[this.xProp](M,U,A),t||this.animate[this.yProp](q,V,oe);this.scrollInView(j,this.scrollThreshold,v);let xe=!1;M!==c&&(this.snapped[0]=M,this.snapX&&(xe=!0)),q!==o&&this.snapY&&(this.snapped[1]=q,this.snapY&&(xe=!0)),xe&&this.onSnap(this),this.grabbed=!1,this.dragged=!1,this.updated=!0,this.released=!0,this.onRelease(this),this.$trigger.removeEventListener("touchstart",Ct),this.$trigger.removeEventListener("touchmove",Ct),this.$trigger.removeEventListener("touchend",Ct),H.removeEventListener("touchmove",this),H.removeEventListener("touchend",this),H.removeEventListener("touchcancel",this),H.removeEventListener("mousemove",this),H.removeEventListener("mouseup",this),H.removeEventListener("selectstart",this)}reset(){return this.stop(),this.resizeTicker.pause(),this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.setX(0,!0),this.setY(0,!0),this.coords[0]=0,this.coords[1]=0,this.pointer[0]=0,this.pointer[1]=0,this.pointer[2]=0,this.pointer[3]=0,this.pointer[4]=0,this.pointer[5]=0,this.pointer[6]=0,this.pointer[7]=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.angle=0,this}enable(){return this.enabled||(this.enabled=!0,this.$target.classList.remove("is-disabled"),this.touchActionStyles=wt(this.$trigger,{touchAction:this.disabled[0]?"pan-x":this.disabled[1]?"pan-y":"none"}),this.$trigger.addEventListener("touchstart",this,{passive:!0}),this.$trigger.addEventListener("mousedown",this,{passive:!0}),this.$trigger.addEventListener("mouseenter",this)),this}disable(){return this.enabled=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.touchActionStyles.revert(),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null),this.targetStyles&&(this.targetStyles.revert(),this.targetStyles=null),this.$target.classList.add("is-disabled"),this.$trigger.removeEventListener("touchstart",this),this.$trigger.removeEventListener("mousedown",this),this.$trigger.removeEventListener("mouseenter",this),H.removeEventListener("touchmove",this),H.removeEventListener("touchend",this),H.removeEventListener("touchcancel",this),H.removeEventListener("mousemove",this),H.removeEventListener("mouseup",this),H.removeEventListener("selectstart",this),this}revert(){return this.reset(),this.disable(),this.$target.classList.remove("is-disabled"),this.updateTicker.revert(),this.overshootTicker.revert(),this.resizeTicker.revert(),this.animate.revert(),this.resizeObserver.disconnect(),this}handleEvent(e){switch(e.type){case"mousedown":this.handleDown(e);break;case"touchstart":this.handleDown(e);break;case"mousemove":this.handleMove(e);break;case"touchmove":this.handleMove(e);break;case"mouseup":this.handleUp();break;case"touchend":this.handleUp();break;case"touchcancel":this.handleUp();break;case"mouseenter":this.handleHover();break;case"selectstart":Ct(e);break}}}const uc=(s,e)=>new To(s,e);class Co{constructor(e={}){me.current&&me.current.register(this);const t=e.root;let n=H;t&&(n=t.current||t.nativeElement||Qe(t)[0]||H);const r=e.defaults,i=G.defaults,a=e.mediaQueries;if(this.defaults=r?as(r,i):i,this.root=n,this.constructors=[],this.revertConstructors=[],this.revertibles=[],this.constructorsOnce=[],this.revertConstructorsOnce=[],this.revertiblesOnce=[],this.once=!1,this.onceIndex=0,this.methods={},this.matches={},this.mediaQueryLists={},this.data={},a)for(let h in a){const u=Me.matchMedia(a[h]);this.mediaQueryLists[h]=u,u.addEventListener("change",this)}}register(e){(this.once?this.revertiblesOnce:this.revertibles).push(e)}execute(e){let t=me.current,n=me.root,r=G.defaults;me.current=this,me.root=this.root,G.defaults=this.defaults;const i=this.mediaQueryLists;for(let h in i)this.matches[h]=i[h].matches;const a=e(this);return me.current=t,me.root=n,G.defaults=r,a}refresh(){return this.onceIndex=0,this.execute(()=>{let e=this.revertibles.length,t=this.revertConstructors.length;for(;e--;)this.revertibles[e].revert();for(;t--;)this.revertConstructors[t](this);this.revertibles.length=0,this.revertConstructors.length=0,this.constructors.forEach(n=>{const r=n(this);de(r)&&this.revertConstructors.push(r)})}),this}add(e,t){if(this.once=!1,de(e)){const n=e;this.constructors.push(n),this.execute(()=>{const r=n(this);de(r)&&this.revertConstructors.push(r)})}else this.methods[e]=(...n)=>this.execute(()=>t(...n));return this}addOnce(e){if(this.once=!0,de(e)){const t=this.onceIndex++;if(this.constructorsOnce[t])return this;const r=e;this.constructorsOnce[t]=r,this.execute(()=>{const i=r(this);de(i)&&this.revertConstructorsOnce.push(i)})}return this}keepTime(e){this.once=!0;const t=this.onceIndex++,n=this.constructorsOnce[t];if(de(n))return n(this);const r=zr(e);this.constructorsOnce[t]=r;let i;return this.execute(()=>{i=r(this)}),i}handleEvent(e){switch(e.type){case"change":this.refresh();break}}revert(){const e=this.revertibles,t=this.revertConstructors,n=this.revertiblesOnce,r=this.revertConstructorsOnce,i=this.mediaQueryLists;let a=e.length,h=t.length,u=n.length,p=r.length;for(;a--;)e[a].revert();for(;h--;)t[h](this);for(;u--;)n[u].revert();for(;p--;)r[p](this);for(let f in i)i[f].removeEventListener("change",this);e.length=0,t.length=0,this.constructors.length=0,n.length=0,r.length=0,this.constructorsOnce.length=0,this.onceIndex=0,this.matches={},this.methods={},this.mediaQueryLists={},this.data={}}}const hc=s=>new Co(s),pc=()=>{const s=H.createElement("div");H.body.appendChild(s),s.style.height="100lvh";const e=s.offsetHeight;return H.body.removeChild(s),e},or=(s,e)=>s&&de(s)?s(e):s,ar=new Map;class fc{constructor(e){this.element=e,this.useWin=this.element===H.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.zIndex=0,this.scrollX=0,this.scrollY=0,this.prevScrollX=0,this.prevScrollY=0,this.scrollWidth=0,this.scrollHeight=0,this.velocity=0,this.backwardX=!1,this.backwardY=!1,this.scrollTicker=new Ge({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const t=this.backwardX||this.backwardY;se(this,n=>n.handleScroll(),t)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new Ge({autoplay:!1,frameRate:30,onUpdate:t=>{const n=t.deltaTime,r=this.prevScrollX,i=this.prevScrollY,a=this.scrollX,h=this.scrollY,u=r-a,p=i-h;this.prevScrollX=a,this.prevScrollY=h,u&&(this.backwardX=r>a),p&&(this.backwardY=i>h),this.velocity=B(n>0?Math.sqrt(u*u+p*p)/n:0,5)}}).init(),this.resizeTicker=new Ge({autoplay:!1,duration:250*G.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new Ge({autoplay:!1,duration:500*G.timeScale,onBegin:()=>{this.scrollTicker.resume()},onComplete:()=>{this.scrollTicker.pause()}}).init(),this._head=null,this._tail=null,this.updateScrollCoords(),this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll(),this.resizeObserver=new ResizeObserver(()=>this.resizeTicker.restart()),this.resizeObserver.observe(this.element),(this.useWin?Me:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=B(e?Me.scrollX:t.scrollLeft,0),this.scrollY=B(e?Me.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=Me.innerWidth,this.winHeight=pc()}updateBounds(){const e=getComputedStyle(this.element),t=this.element;this.scrollWidth=t.scrollWidth+parseFloat(e.marginLeft)+parseFloat(e.marginRight),this.scrollHeight=t.scrollHeight+parseFloat(e.marginTop)+parseFloat(e.marginBottom),this.updateWindowBounds();let n,r;if(this.useWin)n=this.winWidth,r=this.winHeight;else{const i=t.getBoundingClientRect();n=t.clientWidth,r=t.clientHeight,this.top=i.top,this.left=i.left}this.width=n,this.height=r}refreshScrollObservers(){se(this,e=>{e._debug&&e.removeDebug()}),this.updateBounds(),se(this,e=>{e.refresh(),e._debug&&e.debug()})}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){switch(e.type){case"scroll":this.handleScroll();break}}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.disconnect(),(this.useWin?Me:this.element).removeEventListener("scroll",this),ar.delete(this.element)}}const dc=s=>{const e=s&&Qe(s)[0]||H.body;let t=ar.get(e);return t||(t=new fc(e),ar.set(e,t)),t},fs=(s,e,t,n,r)=>{const i=e==="min",a=e==="max",h=e==="top"||e==="left"||e==="start"||i?0:e==="bottom"||e==="right"||e==="end"||a?"100%":e==="center"?"50%":e,{n:u,u:p}=Ke(h,Be);let f=u;return p==="%"?f=u/100*t:p&&(f=Zr(s,Be,"px",!0).n),a&&n<0&&(f+=n),i&&r>0&&(f+=r),f},lr=(s,e,t,n,r)=>{let i;if(Fe(e)){const a=zi.exec(e);if(a){const h=a[0],u=h[0],p=e.split(h),f=p[0]==="min",g=p[0]==="max",l=fs(s,p[0],t,n,r),c=fs(s,p[1],t,n,r);if(f){const o=Ot(fs(s,"min",t),c,u);i=o<l?l:o}else if(g){const o=Ot(fs(s,"max",t),c,u);i=o>l?l:o}else i=Ot(l,c,u)}else i=fs(s,e,t,n,r)}else i=e;return B(i,0)},Po=s=>{let e;const t=s.targets;for(let n=0,r=t.length;n<r;n++){const i=t[n];if(i[Ys]){e=i;break}}return e};let gc=0;const Eo=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"];class Lo{constructor(e={}){me.current&&me.current.register(this);const t=D(e.sync,"play pause"),n=t?Mt(t):null,r=t&&(t==="linear"||t===yt),i=t&&!(n===yt&&!r),a=t&&(Ue(t)||t===!0||r),h=t&&Fe(t)&&!i&&!a,u=h?t.split(" ").map(f=>()=>{const g=this.linked;return g&&g[f]?g[f]():null}):null,p=h&&u.length>2;this.index=gc++,this.id=I(e.id)?this.index:e.id,this.container=dc(e.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=i||a||!!u,this.syncEase=i?n:null,this.syncSmooth=a?t===!0||r?1:t:null,this.onSyncEnter=u&&!p&&u[0]?u[0]:W,this.onSyncLeave=u&&!p&&u[1]?u[1]:W,this.onSyncEnterForward=u&&p&&u[0]?u[0]:W,this.onSyncLeaveForward=u&&p&&u[1]?u[1]:W,this.onSyncEnterBackward=u&&p&&u[2]?u[2]:W,this.onSyncLeaveBackward=u&&p&&u[3]?u[3]:W,this.onEnter=e.onEnter||W,this.onLeave=e.onLeave||W,this.onEnterForward=e.onEnterForward||W,this.onLeaveForward=e.onLeaveForward||W,this.onEnterBackward=e.onEnterBackward||W,this.onLeaveBackward=e.onLeaveBackward||W,this.onUpdate=e.onUpdate||W,this.onSyncComplete=e.onSyncComplete||W,this.reverted=!1,this.completed=!1,this.began=!1,this.isInView=!1,this.forceEnter=!1,this.hasEntered=!1,this.offset=0,this.offsetStart=0,this.offsetEnd=0,this.distance=0,this.prevProgress=0,this.thresholds=["start","end","end","start"],this.coords=[0,0,0,0],this.debugStyles=null,this.$debug=null,this._params=e,this._debug=D(e.debug,!1),this._next=null,this._prev=null,vt(this.container,this),yo(()=>{if(!this.reverted){if(!this.target){const f=Qe(e.target)[0];this.target=f||H.body,this.refresh()}this._debug&&this.debug()}})}link(e){if(e&&(e.pause(),this.linked=e,!this._params.target)){let t;I(e.targets)?se(e,n=>{n.targets&&!t&&(t=Po(n))}):t=Po(e),this.target=t||H.body,this.refresh()}return this}get velocity(){return this.container.velocity}get backward(){return this.horizontal?this.container.backwardX:this.container.backwardY}get scroll(){return this.horizontal?this.container.scrollX:this.container.scrollY}get progress(){const e=(this.scroll-this.offsetStart)/this.distance;return e===1/0||isNaN(e)?0:B(F(e,0,1),6)}refresh(){this.reverted=!1;const e=this._params;return this.repeat=D(or(e.repeat,this),!0),this.horizontal=D(or(e.axis,this),"y")==="x",this.enter=D(or(e.enter,this),"end start"),this.leave=D(or(e.leave,this),"start end"),this.updateBounds(),this.handleScroll(),this}removeDebug(){return this.$debug&&(this.$debug.parentNode.removeChild(this.$debug),this.$debug=null),this.debugStyles&&(this.debugStyles.revert(),this.$debug=null),this}debug(){this.removeDebug();const e=this.container,t=this.horizontal,n=e.element.querySelector(":scope > .animejs-onscroll-debug"),r=H.createElement("div"),i=H.createElement("div"),a=H.createElement("div"),h=Eo[this.index%Eo.length],u=e.useWin,p=u?e.winWidth:e.width,f=u?e.winHeight:e.height,g=e.scrollWidth,l=e.scrollHeight,c=this.container.width>360?320:260,o=t?0:10,d=t?10:0,m=t?24:c/2,v=t?m:15,_=t?60:m,S=t?_:v,y=t?"repeat-x":"repeat-y",b=P=>t?"0px "+P+"px":P+"px 2px",k=P=>`linear-gradient(${t?90:0}deg, ${P} 2px, transparent 1px)`,x=(P,T,E,L,M)=>`position:${P};left:${T}px;top:${E}px;width:${L}px;height:${M}px;`;r.style.cssText=`${x("absolute",o,d,t?g:c,t?c:l)}
89
+ pointer-events: none;
90
+ z-index: ${this.container.zIndex++};
91
+ display: flex;
92
+ flex-direction: ${t?"column":"row"};
93
+ filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));
94
+ `,i.style.cssText=`${x("sticky",0,0,t?p:m,t?m:f)}`,n||(i.style.cssText+=`background:
95
+ ${k("#FFFF")}${b(m-10)} / 100px 100px ${y},
96
+ ${k("#FFF8")}${b(m-10)} / 10px 10px ${y};
97
+ `),a.style.cssText=`${x("relative",0,0,t?g:m,t?m:l)}`,n||(a.style.cssText+=`background:
98
+ ${k("#FFFF")}${b(0)} / ${t?"100px 10px":"10px 100px"} ${y},
99
+ ${k("#FFF8")}${b(0)} / ${t?"10px 0px":"0px 10px"} ${y};
100
+ `);const C=[" enter: "," leave: "];this.coords.forEach((P,T)=>{const E=T>1,L=(E?0:this.offset)+P,M=T%2,q=L<S,z=L>(E?t?p:f:t?g:l)-S,U=(E?M&&!q:!M&&!q)||z,V=H.createElement("div"),A=H.createElement("div"),oe=t?U?"right":"left":U?"bottom":"top",j=U?(t?_:v)+(E?t?-1:z?0:-2:t?-1:-2):t?1:0;A.innerHTML=`${this.id}${C[M]}${this.thresholds[T]}`,V.style.cssText=`${x("absolute",0,0,_,v)}
101
+ display: flex;
102
+ flex-direction: ${t?"column":"row"};
103
+ justify-content: flex-${E?"start":"end"};
104
+ align-items: flex-${U?"end":"start"};
105
+ border-${oe}: 2px solid ${h};
106
+ `,A.style.cssText=`
107
+ overflow: hidden;
108
+ max-width: ${c/2-10}px;
109
+ height: ${v};
110
+ margin-${t?U?"right":"left":U?"bottom":"top"}: -2px;
111
+ padding: 1px;
112
+ font-family: ui-monospace, monospace;
113
+ font-size: 10px;
114
+ letter-spacing: -.025em;
115
+ line-height: 9px;
116
+ font-weight: 600;
117
+ text-align: ${t&&U||!t&&!E?"right":"left"};
118
+ white-space: pre;
119
+ text-overflow: ellipsis;
120
+ color: ${M?h:"rgba(0,0,0,.75)"};
121
+ background-color: ${M?"rgba(0,0,0,.65)":h};
122
+ border: 2px solid ${M?h:"transparent"};
123
+ border-${t?U?"top-left":"top-right":U?"top-left":"bottom-left"}-radius: 5px;
124
+ border-${t?U?"bottom-left":"bottom-right":U?"top-right":"bottom-right"}-radius: 5px;
125
+ `,V.appendChild(A);let xe=L-j+(t?1:0);V.style[t?"left":"top"]=`${xe}px`,(E?i:a).appendChild(V)}),r.appendChild(i),r.appendChild(a),e.element.appendChild(r),n||r.classList.add("animejs-onscroll-debug"),this.$debug=r,It(e.element,"position")==="static"&&(this.debugStyles=wt(e.element,{position:"relative "}))}updateBounds(){this._debug&&this.removeDebug();let e;const t=this.target,n=this.container,r=this.horizontal,i=this.linked;let a,h=t;for(i&&(a=i.currentTime,i.seek(0,!0)),h.parentElement;h&&h!==n.element&&h!==H.body;){const L=It(h,"position")==="sticky"?wt(h,{position:"static"}):!1;h=h.parentElement,L&&(e||(e=[]),e.push(L))}const u=t.getBoundingClientRect(),p=r?u.left+n.scrollX-n.left:u.top+n.scrollY-n.top,f=r?u.width:u.height,g=r?n.width:n.height,c=(r?n.scrollWidth:n.scrollHeight)-g,o=this.enter,d=this.leave;let m="start",v="end",_="end",S="start";if(Fe(o)){const L=o.split(" ");_=L[0],m=L.length>1?L[1]:m}else if(_e(o)){const L=o;I(L.container)||(_=L.container),I(L.target)||(m=L.target)}else Ue(o)&&(_=o);if(Fe(d)){const L=d.split(" ");S=L[0],v=L.length>1?L[1]:v}else if(_e(d)){const L=d;I(L.container)||(S=L.container),I(L.target)||(v=L.target)}else Ue(d)&&(S=d);const y=lr(t,m,f),b=lr(t,v,f),k=y+p-g,x=b+p-c,C=lr(t,_,g,k,x),R=lr(t,S,g,k,x),P=y+p-C,T=b+p-R,E=T-P;this.offset=p,this.offsetStart=P,this.offsetEnd=T,this.distance=E<=0?0:E,this.thresholds=[m,v,_,S],this.coords=[y,b,C,R],e&&e.forEach(L=>L.revert()),i&&i.seek(a,!0),this._debug&&this.debug()}handleScroll(){const e=this.linked,t=this.sync,n=this.syncEase,r=this.syncSmooth,i=e&&(n||r),a=this.horizontal,h=this.container,u=this.scroll,p=u<=this.offsetStart,f=u>=this.offsetEnd,g=!p&&!f,l=u===this.offsetStart||u===this.offsetEnd,c=!this.hasEntered&&l,o=this._debug&&this.$debug;let d=!1,m=!1,v=this.progress;if(p&&this.began&&(this.began=!1),v>0&&!this.began&&(this.began=!0),i){const _=e.progress;if(r&&Ue(r)){if(r<1){const y=_<v&&v===1?1e-4:_>v&&!v?-1e-4:0;v=B(bo(_,v,gt(.01,.2,r),!1)+y,6)}}else n&&(v=n(v));d=v!==this.prevProgress,m=_===1,d&&!m&&r&&_&&h.wakeTicker.restart()}if(o){const _=a?h.scrollY:h.scrollX;o.style[a?"top":"left"]=_+10+"px"}(g&&!this.isInView||c&&!this.forceEnter&&!this.hasEntered)&&(g&&(this.isInView=!0),!this.forceEnter||!this.hasEntered?(o&&g&&(o.style.zIndex=`${this.container.zIndex++}`),this.onSyncEnter(this),this.onEnter(this),this.backward?(this.onSyncEnterBackward(this),this.onEnterBackward(this)):(this.onSyncEnterForward(this),this.onEnterForward(this)),this.hasEntered=!0,c&&(this.forceEnter=!0)):g&&(this.forceEnter=!1)),(g||!g&&this.isInView)&&(d=!0),d&&(i&&e.seek(e.duration*v),this.onUpdate(this)),!g&&this.isInView&&(this.isInView=!1,this.onSyncLeave(this),this.onLeave(this),this.backward?(this.onSyncLeaveBackward(this),this.onLeaveBackward(this)):(this.onSyncLeaveForward(this),this.onLeaveForward(this)),t&&!r&&(m=!0)),v>=1&&this.began&&!this.completed&&(t&&m||!t)&&(t&&this.onSyncComplete(this),this.completed=!0,(!this.repeat&&!e||!this.repeat&&e&&e.completed)&&this.revert()),v<1&&this.completed&&(this.completed=!1),this.prevProgress=v}revert(){if(this.reverted)return;const e=this.container;return mt(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this}}const mc=(s={})=>new Lo(s),cr=typeof Intl<"u"&&Intl.Segmenter,vc=/\{value\}/g,yc=/\{i\}/g,_c=/(\s+)/,bc=/^\s+$/,cn="line",ds="word",gs="char",ms="data-line";let un=null,hn=null,ur=null;const Ao=s=>s.isWordLike||s.segment===" "||Ue(+s.segment),pn=s=>s.setAttribute("aria-hidden","true"),hr=(s,e)=>[...s.querySelectorAll(`[data-${e}]:not([data-${e}] [data-${e}])`)],Sc={line:"#00D672",word:"#FF4B4B",char:"#5A87FF"},Ro=s=>{if(!s.childElementCount&&!s.textContent.trim()){const e=s.parentElement;s.remove(),e&&Ro(e)}},Oo=(s,e,t)=>{const n=s.getAttribute(ms);(n!==null&&+n!==e||s.tagName==="BR")&&t.add(s);let r=s.childElementCount;for(;r--;)Oo(s.children[r],e,t);return t},fn=(s,e={})=>{let t="";const n=Fe(e.class)?` class="${e.class}"`:"",r=D(e.clone,!1),i=D(e.wrap,!1),a=i?i===!0?"clip":i:r?"clip":!1;if(i&&(t+=`<span${a?` style="overflow:${a};"`:""}>`),t+=`<span${n}${r?' style="position:relative;"':""} data-${s}="{i}">`,r){const h=r==="left"?"-100%":r==="right"?"100%":"0",u=r==="top"?"-100%":r==="bottom"?"100%":"0";t+="<span>{value}</span>",t+=`<span inert style="position:absolute;top:${u};left:${h};white-space:nowrap;">{value}</span>`}else t+="{value}";return t+="</span>",i&&(t+="</span>"),t},dn=(s,e,t,n,r,i,a,h,u)=>{const p=r===cn,f=r===gs,g=`_${r}_`,l=de(s)?s(t):s,c=p?"block":"inline-block";ur.innerHTML=l.replace(vc,`<i class="${g}"></i>`).replace(yc,`${f?u:p?a:h}`);const o=ur.content,d=o.firstElementChild,m=o.querySelector(`[data-${r}]`)||d,v=o.querySelectorAll(`i.${g}`),_=v.length;if(_){d.style.display=c,m.style.display=c,m.setAttribute(ms,`${a}`),p||(m.setAttribute("data-word",`${h}`),f&&m.setAttribute("data-char",`${u}`));let S=_;for(;S--;){const y=v[S],b=y.parentElement;b.style.display=c,p?b.innerHTML=t.innerHTML:b.replaceChild(t.cloneNode(!0),y)}e.push(m),n.appendChild(o)}else console.warn('The expression "{value}" is missing from the provided template.');return i&&(d.style.outline=`1px dotted ${Sc[r]}`),d};class Mo{constructor(e,t={}){un||(un=cr?new cr([],{granularity:ds}):{segment:o=>{const d=[],m=o.split(_c);for(let v=0,_=m.length;v<_;v++){const S=m[v];d.push({segment:S,isWordLike:!bc.test(S)})}return d}}),hn||(hn=cr?new cr([],{granularity:"grapheme"}):{segment:o=>[...o].map(d=>({segment:d}))}),!ur&&at&&(ur=H.createElement("template")),me.current&&me.current.register(this);const{words:n,chars:r,lines:i,accessible:a,includeSpaces:h,debug:u}=t,p=(e=Le(e)?e[0]:e)&&e.nodeType?e:(Vr(e)||[])[0],f=i===!0?{}:i,g=n===!0||I(n)?{}:n,l=r===!0?{}:r;this.debug=D(u,!1),this.includeSpaces=D(h,!1),this.accessible=D(a,!0),this.linesOnly=f&&!g&&!l,this.lineTemplate=_e(f)?fn(cn,f):f,this.wordTemplate=_e(g)||this.linesOnly?fn(ds,g):g,this.charTemplate=_e(l)?fn(gs,l):l,this.$target=p,this.html=p&&p.innerHTML,this.lines=[],this.words=[],this.chars=[],this.effects=[],this.effectsCleanups=[],this.cache=null,this.ready=!1,this.width=0,this.resizeTimeout=null;const c=()=>this.html&&(f||g||l)&&this.split();this.resizeObserver=new ResizeObserver(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{const o=p.offsetWidth;o!==this.width&&(this.width=o,c())},150)}),this.lineTemplate&&!this.ready?H.fonts.ready.then(c):c(),p?this.resizeObserver.observe(p):console.warn("No Text Splitter target found.")}addEffect(e){if(!de(e))return console.warn("Effect must return a function.");const t=zr(e);return this.effects.push(t),this.ready&&(this.effectsCleanups[this.effects.length-1]=t(this)),this}revert(){return clearTimeout(this.resizeTimeout),this.lines.length=this.words.length=this.chars.length=0,this.resizeObserver.disconnect(),this.effectsCleanups.forEach(e=>de(e)?e(this):e.revert&&e.revert()),this.$target.innerHTML=this.html,this}splitNode(e){const t=this.wordTemplate,n=this.charTemplate,r=this.includeSpaces,i=this.debug,a=e.nodeType;if(a===3){const h=e.nodeValue;if(h.trim()){const u=[],p=this.words,f=this.chars,g=un.segment(h),l=H.createDocumentFragment();let c=null;for(const o of g){const d=o.segment,m=Ao(o);if(!c||m&&c&&Ao(c))u.push(d);else{const v=u.length-1;!u[v].includes(" ")&&!d.includes(" ")?u[v]+=d:u.push(d)}c=o}for(let o=0,d=u.length;o<d;o++){const m=u[o];if(m.trim()){const v=u[o+1],_=r&&v&&!v.trim(),S=m,y=n?hn.segment(S):null,b=n?H.createDocumentFragment():H.createTextNode(_?m+" ":m);if(n){const k=[...y];for(let x=0,C=k.length;x<C;x++){const R=k[x],T=x===C-1&&_?R.segment+" ":R.segment,E=H.createTextNode(T);dn(n,f,E,b,gs,i,-1,p.length,f.length)}}t?dn(t,p,b,l,ds,i,-1,p.length,f.length):n?l.appendChild(b):l.appendChild(H.createTextNode(m)),_&&o++}else{if(o&&r)continue;l.appendChild(H.createTextNode(m))}}e.parentNode.replaceChild(l,e)}}else if(a===1){const h=[...e.childNodes];for(let u=0,p=h.length;u<p;u++)this.splitNode(h[u])}}split(e=!1){const t=this.$target,n=!!this.cache&&!e,r=this.lineTemplate,i=this.wordTemplate,a=this.charTemplate,h=H.fonts.status!=="loading",u=r&&h;this.ready=!r||h,(u||e)&&this.effectsCleanups.forEach(l=>de(l)&&l(this)),n||(e&&(t.innerHTML=this.html,this.words.length=this.chars.length=0),this.splitNode(t),this.cache=t.innerHTML),u&&(n&&(t.innerHTML=this.cache),this.lines.length=0,i&&(this.words=hr(t,ds))),a&&(u||i)&&(this.chars=hr(t,gs));const p=this.words.length?this.words:this.chars;let f,g=0;for(let l=0,c=p.length;l<c;l++){const o=p[l],{top:d,height:m}=o.getBoundingClientRect();f&&d-f>m*.5&&g++,o.setAttribute(ms,`${g}`);const v=o.querySelectorAll(`[${ms}]`);let _=v.length;for(;_--;)v[_].setAttribute(ms,`${g}`);f=d}if(u){const l=H.createDocumentFragment(),c=new Set,o=[];for(let d=0;d<g+1;d++){const m=t.cloneNode(!0);Oo(m,d,new Set).forEach(v=>{const _=v.parentElement;_&&c.add(_),v.remove()}),o.push(m)}c.forEach(Ro);for(let d=0,m=o.length;d<m;d++)dn(r,this.lines,o[d],l,cn,this.debug,d);t.innerHTML="",t.appendChild(l),i&&(this.words=hr(t,ds)),a&&(this.chars=hr(t,gs))}if(this.linesOnly){const l=this.words;let c=l.length;for(;c--;){const o=l[c];o.replaceWith(o.textContent)}l.length=0}if(this.accessible&&(u||!n)){const l=H.createElement("span");l.style.cssText="position:absolute;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;white-space:nowrap;",l.innerHTML=this.html,t.insertBefore(l,t.firstChild),this.lines.forEach(pn),this.words.forEach(pn),this.chars.forEach(pn)}return this.width=t.offsetWidth,(u||e)&&this.effects.forEach((l,c)=>this.effectsCleanups[c]=l(this)),this}refresh(){this.split(!0)}}const gn={split:(s,e)=>new Mo(s,e)},mn=(s,e={})=>{let t=[],n=0;const r=e.from,i=e.reversed,a=e.ease,h=!I(a),p=h&&!I(a.ease)?a.ease:h?Mt(a):null,f=e.grid,g=e.axis,l=e.total,c=I(r)||r===0||r==="first",o=r==="center",d=r==="last",m=r==="random",v=Le(s),_=e.use,S=Et(v?s[0]:s),y=v?Et(s[1]):0,b=Fi.exec((v?s[1]:s)+dt),k=e.start||0+(v?S:0);let x=c?0:Ue(r)?r:0;return(C,R,P,T)=>{const[E]=ls(C),L=I(l)?P:l,M=I(_)?!1:de(_)?_(E,R,L):Rt(E,_),q=Ue(M)||Fe(M)&&Ue(+M)?+M:R;if(o&&(x=(L-1)/2),d&&(x=L-1),!t.length){for(let A=0;A<L;A++){if(!f)t.push(lt(x-A));else{const oe=o?(f[0]-1)/2:x%f[0],j=o?(f[1]-1)/2:os(x/f[0]),xe=A%f[0],ve=os(A/f[0]),$=oe-xe,ee=j-ve;let re=kt($*$+ee*ee);g==="x"&&(re=-$),g==="y"&&(re=-ee),t.push(re)}n=qr(...t)}p&&(t=t.map(A=>p(A/n)*n)),i&&(t=t.map(A=>g?A<0?A*-1:-A:lt(n-A))),m&&(t=Qi(t))}const z=v?(y-S)/n:S;let V=(T?ps(T,I(e.start)?T.iterationDuration:k):k)+(z*B(t[q],2)||0);return e.modifier&&(V=e.modifier(V)),b&&(V=`${V}${b[2]}`),V}},kc=Object.freeze(Object.defineProperty({__proto__:null,Animatable:an,Draggable:To,JSAnimation:_t,Scope:Co,ScrollObserver:Lo,Spring:wo,TextSplitter:Mo,Timeline:xo,Timer:Ge,WAAPIAnimation:vo,animate:jr,createAnimatable:ac,createDraggable:uc,createScope:hc,createSpring:ln,createTimeline:oc,createTimer:Bl,eases:Wt,engine:be,onScroll:mc,scrollContainers:ar,stagger:mn,svg:Ll,text:gn,utils:ko,waapi:Yl},Symbol.toStringTag,{value:"Module"}));class xc{constructor(){this.animations={},this.linkAnimations=new Map,this.registerAnimation("typewriter",function(e,t,n,r){const{chars:i}=gn.split(e,{words:!1,chars:!0}),a=t.fadeDuration||100,h=t.interval||100;jr(i,{opacity:[0,1],easing:"linear",duration:a,delay:mn(h,{start:t.start||0}),loop:r,onComplete:n})}),this.registerAnimation("toast",function(e,t,n,r){const{words:i}=gn.split(e,{words:!0,chars:!1}),a=t.fadeDuration||100,h=t.interval||200;jr(i,{opacity:[0,1],y:[{to:["100%","0%"]}],easing:"linear",duration:a,delay:mn(h,{start:t.start||0}),loop:r,onComplete:n})})}registerAnimation(e,t){this.animations[e]=t}runAnimation(e,t,n,r,i){const a=this.animations[e];a?a(t,n,r,i):(console.warn(`No animation registered with name: ${e}`),r())}addLinkAnimation(e,t){this.linkAnimations.set(e,t)}runLinkAnimation(e){const t=this.linkAnimations.get(e);t&&t()}}const wc={animejs:kc},Tc=async s=>{let e,t,n,r,i,a=0;const h=new Ka,u=[];let p=!1;async function f(w){if(p||w.closest(".squiffy-output-section")!==n||w.classList.contains("disabled"))return!1;const N=w.getAttribute("data-passage"),J=w.getAttribute("data-section");if(N!==null){l(w),ie("_turncount",ce("_turncount")+1),await d(w),N&&(i=null,await b(N));const Ee="@"+ce("_turncount");return t.passages&&(Ee in t.passages&&await b(Ee),"@last"in t.passages&&ce("_turncount")>=(t.passageCount||0)&&await b("@last")),h.emit("linkClick",{linkType:"passage"}),!0}if(J!==null)return await d(w),J&&await v(J),h.emit("linkClick",{linkType:"section"}),!0;const[Q,pe,De]=Te.handleLink(w);return Q?(De?.disableLink&&l(w),C(),h.emit("linkClick",{linkType:pe}),!0):!1}async function g(w){const O=w.target;O.classList.contains("squiffy-link")&&await f(O)}function l(w){w.classList.add("disabled"),w.setAttribute("tabindex","-1")}function c(w){w.classList.remove("disabled"),w.removeAttribute("tabindex")}async function o(){R()||await v(e.start)}async function d(w){it.runLinkAnimation(w),await y();const O=w.getAttribute("data-set");if(O){const N=JSON.parse(O);for(const J of N)m(J)}}function m(w){w=w.replace(/^(\w*\s*):=(.*)$/,(J,Q,pe)=>Q+"="+z.processText(pe,!0));const N=/^([\w]*)\s*=\s*(.*)$/.exec(w);if(N){const J=N[1];let Q=N[2];isNaN(Q)?(Q.startsWith("@")&&(Q=ce(Q.substring(1))),ie(J,Q)):ie(J,parseFloat(Q))}else{const Q=/^([\w]*)\s*([+\-*/])=\s*(.*)$/.exec(w);if(Q){const pe=Q[1],De=Q[2];let Ee=Q[3];Ee.startsWith("@")&&(Ee=ce(Ee.substring(1)));const Se=parseFloat(Ee);let Ze=ce(pe);Ze===null&&(Ze=0),De=="+"&&(Ze+=Se),De=="-"&&(Ze-=Se),De=="*"&&(Ze*=Se),De=="/"&&(Ze/=Se),ie(pe,Ze)}else{let pe=!0;w.startsWith("not ")&&(w=w.substring(4),pe=!1),ie(w,pe)}}}async function v(w){const O=j();if(T(w),t=e.sections[w],!t)return;ie("_section",w),le.setSeen(w);const N=e.sections[""];(N?.clear||t.clear)&&M(),N&&await S(N,"[[]]"),await S(t,`[[${w}]]`),ce("_section")==w&&(ie("_turncount",0),nt(),C());const J=j();J!=O&&h.emit("canGoBackChanged",{canGoBack:J})}function _(w,O=null){const N={get:ce,set:ie,ui:{transition:Pe,write:z.write,scrollToEnd:z.scrollToEnd},story:{go:v},element:ve,import:wc,...O};e.js[w](N,ce,ie)}async function S(w,O){w.attributes&&await k(w.attributes),w.jsIndex!==void 0&&_(w.jsIndex),z.write(w.text||"",O),await y()}async function y(){p=!0,n.classList.add("links-disabled");for(const w of u)await w();u.length=0,p=!1,n.classList.remove("links-disabled")}async function b(w){const O=j();let N=t.passages&&t.passages[w];const J=e.sections[""];if(!N&&J&&J.passages&&(N=J.passages[w]),!N)throw`No passage named ${w} in the current section or master section`;le.setSeen(w);const Q=[],pe=[];if(J&&J.passages){const Se=J.passages[""];Se&&(Q.push(Se),pe.push(()=>S(Se,"[[]][]")))}const De=t.passages&&t.passages[""];De&&(Q.push(De),pe.push(()=>S(De,`[[${ce("_section")}]][]`))),Q.push(N),pe.push(()=>S(N,`[[${ce("_section")}]][${w}]`)),Q.some(Se=>Se.clear)&&(M(),E()),r=document.createElement("div"),r.classList.add("squiffy-output-passage"),r.setAttribute("data-passage",`${w}`),n.appendChild(r),i=null;for(const Se of pe)await Se();nt(),C();const Ee=j();Ee!=O&&h.emit("canGoBackChanged",{canGoBack:Ee})}async function k(w){for(const O of w)m(O)}function x(){le.reset(),ee.scroll==="element"||ee.scroll==="none"?($.innerHTML="",o()):location.reload()}function C(){ie("_output",$.innerHTML)}function R(){const w=()=>{e.uiJsIndex!==void 0&&_(e.uiJsIndex,{registerAnimation:it.registerAnimation.bind(it)})};le.load();const O=ce("_output");return O?($.innerHTML=O,V(),A(),i=$.querySelector(".squiffy-output-block:last-child"),t=e.sections[ce("_section")],w(),we.onLoad(),!0):(w(),!1)}function P(){i=document.createElement("div"),i.classList.add("squiffy-output-block"),(r||n)?.appendChild(i)}function T(w){n&&(n.querySelectorAll("input").forEach(O=>{const N=O.getAttribute("data-attribute")||O.id;N&&ie(N,O.value),O.disabled=!0}),n.querySelectorAll("[contenteditable]").forEach(O=>{const N=O.getAttribute("data-attribute")||O.id;N&&ie(N,O.innerHTML),O.contentEditable="false"}),n.querySelectorAll("textarea").forEach(O=>{const N=O.getAttribute("data-attribute")||O.id;N&&ie(N,O.value),O.disabled=!0})),r=null,E(w),P()}function E(w){n=document.createElement("div"),n.classList.add("squiffy-output-section"),n.setAttribute("data-section",w??ce("_section")),w||n.setAttribute("data-clear","true"),$.appendChild(n)}function L(){return $.querySelector(".squiffy-clear-stack")}function M(){let w=L();w||(w=document.createElement("div"),w.classList.add("squiffy-clear-stack"),w.style.display="none",$.prepend(w));const O=document.createElement("div");w.appendChild(O);for(const N of[...$.children])N!==w&&O.appendChild(N)}function q(){const w=L();for(const N of[...$.children])N!==w&&N.remove();const O=w.children[w.children.length-1];for(const N of[...O.children])$.appendChild(N);O.remove()}const z={write:(w,O)=>{a=$.scrollHeight;const N=z.processText(w,!1).trim();i||P();const J=document.createElement("div");O&&J.setAttribute("data-source",O),J.innerHTML=N,we.onWrite(J),i.appendChild(J),z.scrollToEnd()},clearScreen:()=>{M(),E()},scrollToEnd:()=>{if(ee.scroll!=="none")if(ee.scroll==="element")$.lastElementChild.scrollIntoView({block:"end",inline:"nearest",behavior:"smooth"});else{let w=a;const O=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(w>O){const N=document.documentElement.scrollHeight-window.innerHeight;w>N&&(w=N),window.scrollTo({top:w,behavior:"smooth"})}}},processText:(w,O)=>ue.process(w,O)};function U(w){if(w.start!=e.start){e=w,le.reset(),$.innerHTML="",v(e.start);return}ja(e,w,$,z,l),e=w,V(),A()}function V(){const w=$.querySelectorAll(".squiffy-output-section:last-child");n=w[w.length-1];const O=n.getAttribute("data-section");t=e.sections[O]}function A(){r=n.querySelector(".squiffy-output-passage:last-child")}function oe(){const w=L(),O=$.querySelectorAll(".squiffy-output-section").length+$.querySelectorAll(".squiffy-output-passage").length;return w?O+w.children.length:O}function j(){return oe()>1}function xe(){if(!j())return;const w=L();if(r){const O=r.getAttribute("data-passage");Ae(r.getAttribute("data-undo")),r.remove();let N=!1,J=!1;for(const Q of $.children)if(Q!==w){if(Q.getAttribute("data-clear")=="true"&&Q.children.length==0){N=!0;continue}J=!0;break}N&&!J&&(q(),V());for(const Q of n.querySelectorAll("a.squiffy-link[data-passage]"))Q.getAttribute("data-passage")==O&&c(Q);A()}else{Ae(n.getAttribute("data-undo")),n.remove();let O=!1;for(const N of[...$.children])if(N!==w){O=!0;break}O||q(),V(),A()}j()||h.emit("canGoBackChanged",{canGoBack:!1})}const ve=s.element,$=document.createElement("div");ve.appendChild($),e=s.story;const ee={scroll:s.scroll||"body",persist:s.persist===void 0?!0:s.persist,onSet:s.onSet||(()=>{})};s.persist===!0&&!e.id&&(console.warn("Persist is set to true in Squiffy runtime options, but no story id has been set. Persist will be disabled."),ee.persist=!1),ee.scroll==="element"&&($.style.overflowY="auto"),$.addEventListener("click",g),$.addEventListener("keypress",async function(w){w.key==="Enter"&&await g(w)});let re={};const ge=function(w,O){w!="_output"&&(w in re||(re[w]=O))},nt=function(){(r??n).setAttribute("data-undo",JSON.stringify(re)),re={}},Ae=function(w){if(!w)return;const O=JSON.parse(w);if(O)for(const N of Object.keys(O))le.setInternal(N,O[N],!1)},le=new Za(ee.persist,e.id||"",ee.onSet,h,ge),ce=le.get.bind(le),ie=le.set.bind(le),ue=new Qa(e,le,()=>t),Te=new ol,Xe=w=>w in e.sections&&e.sections[w].text||null,Ce=w=>t.passages&&w in t.passages?t.passages[w].text||null:"passages"in e.sections[""]&&e.sections[""].passages&&w in e.sections[""].passages&&e.sections[""].passages[w].text||null,Pe=w=>{u.push(w)},it=new xc,we=new el($,ue,le,Te,Xe,Ce,z.processText,Pe,it,h);return we.add(ss.ReplaceLabel()),we.add(ss.RotateSequencePlugin()),we.add(ss.RandomPlugin()),we.add(ss.LivePlugin()),we.add(ss.AnimatePlugin()),{begin:o,restart:x,get:ce,set:ie,clickLink:f,update:U,goBack:xe,on:(w,O)=>h.on(w,O),off:(w,O)=>h.off(w,O),once:(w,O)=>h.once(w,O)}};return ut.init=Tc,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"}),ut})({});
126
+ //# sourceMappingURL=squiffy.runtime.global.js.map