squiffy-runtime 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,81 +1,81 @@
1
- var squiffyRuntime=(function(mr){Object.defineProperty(mr,Symbol.toStringTag,{value:"Module"});var Do=Object.create,As=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Ho=Object.getOwnPropertyNames,$o=Object.getPrototypeOf,_i=Object.prototype.hasOwnProperty,ue=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Gt=(e,t)=>{let s={};for(var r in e)As(s,r,{get:e[r],enumerable:!0});return t||As(s,Symbol.toStringTag,{value:"Module"}),s},qo=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Ho(t),n=0,o=i.length,a;n<o;n++)a=i[n],!_i.call(e,a)&&a!==s&&As(e,a,{get:(h=>t[h]).bind(null,a),enumerable:!(r=Bo(t,a))||r.enumerable});return e},Fo=(e,t,s)=>(s=e!=null?Do($o(e)):{},qo(t||!e||!e.__esModule||!_i.call(e,"default")?As(s,"default",{value:e,enumerable:!0}):s,e));function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function Vo(e,t){if(ns(e)!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var r=s.call(e,t||"default");if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zo(e){var t=Vo(e,"string");return ns(t)=="symbol"?t:t+""}function Pe(e,t,s){return(t=zo(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var Ls;function vr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Mt=vr();function Si(e){Mt=e}var Dt={exec:()=>null};function Zt(e){let t=[];return s=>{let r=Math.max(0,Math.min(3,s-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function ve(e,t=""){let s=typeof e=="string"?e:e.source,r={replace:(i,n)=>{let o=typeof n=="string"?n:n.source;return o=o.replace(ze.caret,"$1"),s=s.replace(i,o),r},getRegex:()=>new RegExp(s,t)};return r}var Uo=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),ze={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Zt(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Zt(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Zt(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Zt(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Zt(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Zt(e=>new RegExp(`^ {0,${e}}>`))},Wo=/^(?:[ \t]*(?:\n|$))+/,Xo=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yo=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,os=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Go=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ki=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wi=ve(ki).replace(/bull/g,yr).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Zo=ve(ki).replace(/bull/g,yr).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}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),br=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Qo=/^[^\n]+/,_r=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Jo=ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_r).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ko=ve(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,yr).getRegex(),Rs="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",Sr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jo=ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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",Sr).replace("tag",Rs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xi=e=>ve(br).replace("hr",os).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rs).getRegex(),ea=xi(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ta=xi(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),kr={blockquote:ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ta).getRegex(),code:Xo,def:Jo,fences:Yo,heading:Go,hr:os,html:jo,lheading:wi,list:Ko,newline:Wo,paragraph:ea,table:Dt,text:Qo},Ti=ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",os).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rs).getRegex(),sa={...kr,lheading:Zo,table:Ti,paragraph:ve(br).replace("hr",os).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ti).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rs).getRegex()},ra={...kr,html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sr).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:Dt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ve(br).replace("hr",os).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",wi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ia=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,na=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ci=/^( {2,}|\\)\n(?!\s*$)/,oa=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,St=/[\p{P}\p{S}]/u,Qt=/[\s\p{P}\p{S}]/u,as=/[^\s\p{P}\p{S}]/u,aa=ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Qt).getRegex(),la=/[\p{Pi}\p{Ps}"']/u,Pi=/(?!~)[\p{P}\p{S}]/u,ca=/(?!~)[\s\p{P}\p{S}]/u,ua=/(?:[^\s\p{P}\p{S}]|~)/u,ha=ve(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Uo?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ei=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,da=ve(Ei,"u").replace(/punct/g,St).getRegex(),fa=ve(Ei,"u").replace(/punct/g,Pi).getRegex(),pa=ve(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,la).replace(/punct/g,St).getRegex(),Ai="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ga=ve(Ai,"gu").replace(/notPunctSpace/g,as).replace(/punctSpace/g,Qt).replace(/punct/g,St).getRegex(),ma=ve(Ai,"gu").replace(/notPunctSpace/g,ua).replace(/punctSpace/g,ca).replace(/punct/g,Pi).getRegex(),va=ve("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,as).replace(/punctSpace/g,Qt).replace(/punct/g,St).getRegex(),ya=ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,as).replace(/punctSpace/g,Qt).replace(/punct/g,St).getRegex(),ba=ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,as).replace(/punctSpace/g,Qt).replace(/punct/g,St).getRegex(),_a=ve(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,St).getRegex(),Sa=ve("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,as).replace(/punctSpace/g,Qt).replace(/punct/g,St).getRegex(),ka=ve(/\\(punct)/,"gu").replace(/punct/g,St).getRegex(),wa=ve(/^<(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(),xa=ve(Sr).replace("(?:-->|$)","-->").getRegex(),Ta=ve("^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",xa).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Is=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ca=ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Is).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Li=ve(/^!?\[(label)\]\[(ref)\]/).replace("label",Is).replace("ref",_r).getRegex(),Ri=ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",_r).getRegex(),Pa=ve("reflink|nolink(?!\\()","g").replace("reflink",Li).replace("nolink",Ri).getRegex(),Ii=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wr={_backpedal:Dt,anyPunctuation:ka,autolink:wa,blockSkip:ha,br:Ci,code:na,del:Dt,delLDelim:Dt,delRDelim:Dt,emStrongLDelim:da,emStrongRDelimAst:ga,emStrongRDelimUnd:ya,escape:ia,link:Ca,nolink:Ri,punctuation:aa,reflink:Li,reflinkSearch:Pa,tag:Ta,text:oa,url:Dt},Ea={...wr,emStrongLDelim:pa,emStrongRDelimAst:va,emStrongRDelimUnd:ba,link:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Is).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Is).getRegex()},xr={...wr,emStrongRDelimAst:ma,emStrongLDelim:fa,delLDelim:_a,delRDelim:Sa,url:ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ii).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:ve(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ii).getRegex()},Aa={...xr,br:ve(Ci).replace("{2,}","*").getRegex(),text:ve(xr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Os={normal:kr,gfm:sa,pedantic:ra},ls={normal:wr,gfm:xr,breaks:Aa,pedantic:Ea},La={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Oi=e=>La[e];function vt(e,t){if(t){if(ze.escapeTest.test(e))return e.replace(ze.escapeReplace,Oi)}else if(ze.escapeTestNoEncode.test(e))return e.replace(ze.escapeReplaceNoEncode,Oi);return e}function Ni(e){try{e=encodeURI(e).replace(ze.percentDecode,"%")}catch{return null}return e}function Mi(e,t){let s=e.replace(ze.findPipe,(i,n,o)=>{let a=!1,h=n;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}).split(ze.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(ze.slashPipe,"|");return s}function Pt(e,t,s){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let n=e.charAt(r-i-1);if(n===t&&!s)i++;else if(n!==t&&s)i++;else break}return e.slice(0,r-i)}function Di(e){let t=e.split(`
3
- `),s=t.length-1;for(;s>=0&&ze.blankLine.test(t[s]);)s--;return t.length-s<=2?e:t.slice(0,s+1).join(`
4
- `)}function Ra(e,t){if(e.indexOf(t[1])===-1)return-1;let s=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])s++;else if(e[r]===t[1]&&(s--,s<0))return r;return s>0?-2:-1}function Ia(e,t=0){let s=t,r="";for(let i of e)if(i===" "){let n=4-s%4;r+=" ".repeat(n),s+=n}else r+=i,s++;return r}function Bi(e,t,s,r,i){let n=t.href,o=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1"),h=e[0].charAt(0)==="!";r.state.inLink=!0;let u=r.state.linkEmitted,f=r.state.inRawBlock;r.state.linkEmitted=!1;let l=r.inlineTokens(a),d=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=!1,!h){if(d){r.state.inRawBlock=f;return}r.state.linkEmitted=!0}return{type:h?"image":"link",raw:s,href:n,title:o,text:a,tokens:l}}function Oa(e,t,s){let r=e.match(s.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
5
- `).map(n=>{let o=n.match(s.other.beginningSpace);if(o===null)return n;let[a]=o;return a.length>=i.length?n.slice(i.length):n}).join(`
6
- `)}var Ns=class{constructor(e){Pe(this,"options",void 0),Pe(this,"rules",void 0),Pe(this,"lexer",void 0),this.options=e||Mt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let s=this.options.pedantic?t[0]:Di(t[0]);return{type:"code",raw:s,codeBlockStyle:"indented",text:s.replace(this.rules.other.codeRemoveIndent,"")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let s=t[0],r=Oa(s,t[3]||"",this.rules);return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(this.rules.other.endingHash.test(s)){let r=Pt(s,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(s=r.trim())}return{type:"heading",raw:Pt(t[0],`
1
+ var squiffyRuntime=(function(yr){Object.defineProperty(yr,Symbol.toStringTag,{value:"Module"});var Vo=Object.create,Rs=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyNames,Wo=Object.getPrototypeOf,xi=Object.prototype.hasOwnProperty,he=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Zt=(e,t)=>{let s={};for(var r in e)Rs(s,r,{get:e[r],enumerable:!0});return t||Rs(s,Symbol.toStringTag,{value:"Module"}),s},Xo=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Uo(t),o=0,n=i.length,a;o<n;o++)a=i[o],!xi.call(e,a)&&a!==s&&Rs(e,a,{get:(h=>t[h]).bind(null,a),enumerable:!(r=zo(t,a))||r.enumerable});return e},Yo=(e,t,s)=>(s=e!=null?Vo(Wo(e)):{},Xo(t||!e||!e.__esModule||!xi.call(e,"default")?Rs(s,"default",{value:e,enumerable:!0}):s,e));function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(e)}function Go(e,t){if(os(e)!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var r=s.call(e,t||"default");if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zo(e){var t=Go(e,"string");return os(t)=="symbol"?t:t+""}function Pe(e,t,s){return(t=Zo(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Qo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jo(e,t){Qo(e,t),t.add(e)}function Ko(e,t,s){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:s;throw new TypeError("Private element is not present on this object")}var br,Is;function _r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Mt=_r();function Ti(e){Mt=e}var Dt={exec:()=>null};function Qt(e){let t=[];return s=>{let r=Math.max(0,Math.min(3,s-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function ue(e,t=""){let s=typeof e=="string"?e:e.source,r={replace:(i,o)=>{let n=typeof o=="string"?o:o.source;return n=n.replace(qe.caret,"$1"),s=s.replace(i,n),r},getRegex:()=>new RegExp(s,t)};return r}var jo=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),qe={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Qt(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Qt(e=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Qt(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Qt(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Qt(e=>new RegExp(`^ {0,${e}}(?:</?(?:${ls})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:Qt(e=>new RegExp(`^ {0,${e}}>`))},ea=/^(?:[ \t]*(?:\n|$))+/,ta=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,sa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,as=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ra=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ci=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Pi=ue(Ci).replace(/bull/g,Sr).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ia=ue(Ci).replace(/bull/g,Sr).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,na=/^[^\n]+/,wr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oa=ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),aa=ue(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Sr).getRegex(),ls="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",xr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,la=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",xr).replace("tag",ls).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ei=e=>ue(kr).replace("hr",as).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",ls).getRegex(),ca=Ei(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ua=Ei(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Tr={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ua).getRegex(),code:ta,def:oa,fences:sa,heading:ra,hr:as,html:la,lheading:Pi,list:aa,newline:ea,paragraph:ca,table:Dt,text:na},Ai=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",as).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",ls).getRegex(),ha={...Tr,lheading:ia,table:Ai,paragraph:ue(kr).replace("hr",as).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ai).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",ls).getRegex()},pa={...Tr,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xr).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:Dt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(kr).replace("hr",as).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",Pi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fa=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,da=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Li=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,ga=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yt=/[\p{P}\p{S}]/u,Jt=/[\s\p{P}\p{S}]/u,cs=/[^\s\p{P}\p{S}]/u,ma=ue(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Jt).getRegex(),va=/[\p{Pi}\p{Ps}"']/u,Ri=/(?!~)[\p{P}\p{S}]/u,ya=/(?!~)[\s\p{P}\p{S}]/u,ba=/(?:[^\s\p{P}\p{S}]|~)/u,_a=ue(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",jo?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ii=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Sa=ue(Ii,"u").replace(/punct/g,yt).getRegex(),ka=ue(Ii,"u").replace(/punct/g,Ri).getRegex(),wa=ue(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,va).replace(/punct/g,yt).getRegex(),Oi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xa=ue(Oi,"gu").replace(/notPunctSpace/g,cs).replace(/punctSpace/g,Jt).replace(/punct/g,yt).getRegex(),Ta=ue(Oi,"gu").replace(/notPunctSpace/g,ba).replace(/punctSpace/g,ya).replace(/punct/g,Ri).getRegex(),Ca=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,cs).replace(/punctSpace/g,Jt).replace(/punct/g,yt).getRegex(),Pa=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,cs).replace(/punctSpace/g,Jt).replace(/punct/g,yt).getRegex(),Ea=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,cs).replace(/punctSpace/g,Jt).replace(/punct/g,yt).getRegex(),Aa=ue(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,yt).getRegex(),La=ue("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,cs).replace(/punctSpace/g,Jt).replace(/punct/g,yt).getRegex(),Ra=ue(/\\(punct)/,"gu").replace(/punct/g,yt).getRegex(),Ia=ue(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,yt).getRegex(),Oa=ue(/^<(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(),Na=ue(xr).replace("(?:-->|$)","-->").getRegex(),Ma=ue("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Na).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ni=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Os=ue(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Ni).getRegex(),Da=ue(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",Os).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ba=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Os).replace("ref",wr).getRegex(),$a=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",wr).getRegex(),Mi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Ha=ue(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Ni).getRegex(),qa=ue("reflink|nolink(?!\\()","g").replace("reflink",ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Ha).replace("ref",Mi).getRegex()).replace("nolink",ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",Mi).getRegex()).getRegex(),Di=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Fa=ue(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),Cr={_backpedal:Dt,anyPunctuation:Ra,anyPunctuationOutsideCode:Ia,autolink:Oa,blockSkip:_a,br:Li,code:da,del:Dt,delLDelim:Dt,delRDelim:Dt,emStrongLDelim:Sa,emStrongRDelimAst:xa,emStrongRDelimUnd:Pa,escape:fa,link:Da,nolink:$a,punctuation:ma,reflink:Ba,reflinkSearch:qa,tag:Ma,text:ga,url:Dt},Va={...Cr,emStrongLDelim:wa,emStrongRDelimAst:Ca,emStrongRDelimUnd:Ea,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Os).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Os).getRegex()},Pr={...Cr,emStrongRDelimAst:Ta,emStrongLDelim:ka,delLDelim:Aa,delRDelim:La,url:ue(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Fa).replace("protocol",Di).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ue(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Di).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},za={...Pr,br:ue(Li).replace("{2,}","*").getRegex(),text:ue(Pr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ns={normal:Tr,gfm:ha,pedantic:pa},us={normal:Cr,gfm:Pr,breaks:za,pedantic:Va},Ua={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bi=e=>Ua[e];function je(e,t){if(t){if(qe.escapeTest.test(e))return e.replace(qe.escapeReplace,Bi)}else if(qe.escapeTestNoEncode.test(e))return e.replace(qe.escapeReplaceNoEncode,Bi);return e}function Wa(e){return qe.numericCharacterReference.test(e)?e.replace(qe.numericCharacterReferenceOrAmpersand,(t,s,r)=>{if(s===void 0&&r===void 0)return"&amp;";let i=s===void 0?Number.parseInt(r,16):Number.parseInt(s,10);return i===0||i>1114111||i>=55296&&i<=57343?"�":i===38?"&amp;":String.fromCodePoint(i)}):e}function $i(e){try{e=encodeURI(e).replace(qe.percentDecode,"%")}catch{return null}return e}function Hi(e,t){let s=e.replace(qe.findPipe,(i,o,n)=>{let a=!1,h=o;for(;--h>=0&&n[h]==="\\";)a=!a;return a?"|":" |"}).split(qe.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(qe.slashPipe,"|");return s}function Pt(e,t,s){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let o=e.charAt(r-i-1);if(o===t&&!s)i++;else if(o!==t&&s)i++;else break}return e.slice(0,r-i)}function qi(e){let t=e.split(`
3
+ `),s=t.length-1;for(;s>=0&&qe.blankLine.test(t[s]);)s--;return t.length-s<=2?e:t.slice(0,s+1).join(`
4
+ `)}function Ms(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function Fi(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let s=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])s++;else if(e[r]===t[1]&&(s--,s<0))return r;return s>0?-2:-1}function Er(e,t=0){let s=t,r="";for(let i of e)if(i===" "){let o=4-s%4;r+=" ".repeat(o),s+=o}else r+=i,s++;return r}function Vi(e,t,s,r,i){let o=t.href,n=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1"),h=e[0].charAt(0)==="!",u=r.state.inLink,p=r.state.linkEmitted,l=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let f=r.inlineTokens(a),c=r.state.linkEmitted;if(r.state.linkEmitted=p,r.state.inLink=u,!h){if(c){r.state.inRawBlock=l;return}r.state.linkEmitted=!0}return{type:h?"image":"link",raw:s,href:o,title:n,text:a,tokens:f}}function Xa(e,t,s){let r=e.match(s.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
5
+ `).map(o=>{let n=o.match(s.other.beginningSpace);if(n===null)return o;let[a]=n;return o.slice(Math.min(a.length,i.length))}).join(`
6
+ `)}function zi(e,t,s,r){if(!t.includes("<"))return!1;for(let i=0;i<t.length;i++){if(t[i]==="\\"){i++;continue}if(t[i]==="`"){let a=r.inline.code.exec(t.slice(i));if(a){i+=a[0].length-1;continue}}if(t[i]!=="<")continue;let o=e.slice(s+i),n=r.inline.tag.exec(o)||r.inline.autolink.exec(o);if(n){if(n[0].length>t.length-i)return!0;i+=n[0].length-1}}return!1}var Ds=class{constructor(e){Pe(this,"options",void 0),Pe(this,"rules",void 0),Pe(this,"lexer",void 0),this.options=e||Mt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let s=this.options.pedantic?t[0]:qi(t[0]);return{type:"code",raw:s,codeBlockStyle:"indented",text:s.replace(this.rules.other.codeRemoveIndent,"")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let s=t[0],r=Xa(s,t[3]||"",this.rules);return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(this.rules.other.endingHash.test(s)){let r=Pt(s,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceTabChar.test(r))&&(s=r.trim())}return{type:"heading",raw:Pt(t[0],`
7
7
  `),depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Pt(t[0],`
8
8
  `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let s=Pt(t[0],`
9
9
  `).split(`
10
- `),r="",i="",n=[];for(;s.length>0;){let o=!1,a=[],h;for(h=0;h<s.length;h++)if(this.rules.other.blockquoteStart.test(s[h]))a.push(s[h]),o=!0;else if(!o)a.push(s[h]);else break;s=s.slice(h);let u=a.join(`
11
- `),f=u.replace(this.rules.other.blockquoteSetextReplace,`
10
+ `),r="",i="",o=[];for(;s.length>0;){let n=!1,a=[],h=0;for(;h<s.length;h++)if(this.rules.other.blockquoteStart.test(s[h]))a.push(s[h]),n=!0;else if(!n)a.push(s[h]);else break;s=s.slice(h);let u=a.join(`
11
+ `),p=u.replace(this.rules.other.blockquoteSetextReplace,`
12
12
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
13
13
  ${u}`:u,i=i?`${i}
14
- ${f}`:f;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,n,!0),this.lexer.state.top=l,s.length===0)break;let d=n.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let c=d,p=s.join(`
14
+ ${p}`:p;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,o,!0),this.lexer.state.top=l,s.length===0)break;let f=o.at(-1);if(f?.type==="code"||f?.type==="heading"||f?.type==="hr"||f?.type==="html")break;if(f?.type==="blockquote"){let c=f,d=s.join(`
15
15
  `),g=c.raw+`
16
- `+p.replace(this.rules.other.blockquoteSetextReplace2,""),v=this.blockquote(g);n[n.length-1]=v,r=`${r}
17
- ${p}`,i=i.substring(0,i.length-c.text.length)+v.text;break}else if(d?.type==="list"){let c=d,p=c.raw+`
16
+ `+d.replace(this.rules.other.blockquoteSetextReplace2,""),v=this.blockquote(g);o[o.length-1]=v;let _=g.substring(v.raw.length).replace(/^\n/,""),S=_?_.split(`
17
+ `).length:0,y=S?s.slice(0,-S):s;y.length>0&&(r=`${r}
18
+ ${y.join(`
19
+ `)}`),i=i.substring(0,i.length-c.text.length)+v.text;break}else if(f?.type==="list"){let c=f,d=c.raw+`
18
20
  `+s.join(`
19
- `),g=this.list(p);n[n.length-1]=g,r=r.substring(0,r.length-d.raw.length)+g.raw,i=i.substring(0,i.length-c.raw.length)+g.raw,s=p.substring(n.at(-1).raw.length).split(`
20
- `);continue}}return{type:"blockquote",raw:r,tokens:n,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),r=s.length>1,i={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");let n=this.rules.other.listItemRegex(s),o=!1;for(;e;){let h=!1,u="",f="";if(!(t=n.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let l=Ia(t[2].split(`
21
- `,1)[0],t[1].length),d=e.split(`
22
- `,1)[0],c=!l.trim(),p=0;if(this.options.pedantic?(p=2,f=l.trimStart()):c?p=t[1].length+1:(p=l.search(this.rules.other.nonSpaceChar),p=p>4?1:p,f=l.slice(p),p+=t[1].length),c&&this.rules.other.blankLine.test(d)&&(u+=d+`
23
- `,e=e.substring(d.length+1),h=!0),!h){let g=this.rules.other.nextBulletRegex(p),v=this.rules.other.hrRegex(p),_=this.rules.other.fencesBeginRegex(p),S=this.rules.other.headingBeginRegex(p),y=this.rules.other.htmlBeginRegex(p),m=this.rules.other.blockquoteBeginRegex(p);for(;e;){let b=e.split(`
24
- `,1)[0],k;if(d=b,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),k=d):k=d.replace(this.rules.other.tabCharGlobal," "),_.test(d)||S.test(d)||y.test(d)||m.test(d)||g.test(d)||v.test(d))break;if(k.search(this.rules.other.nonSpaceChar)>=p||!d.trim())f+=`
25
- `+k.slice(p);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(l)||S.test(l)||v.test(l))break;f+=`
26
- `+d}c=!d.trim(),u+=b+`
27
- `,e=e.substring(b.length+1),l=k.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),i.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),i.raw+=u}let a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let h of i.items)if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),!i.loose){let u=h.tokens.filter(f=>f.type==="space");i.loose=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw))}for(let h of i.items){let u=h.tokens[0];if(h.task&&(u?.type==="text"||u?.type==="paragraph")){h.text=h.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let l=this.lexer.inlineQueue.length-1;l>=0;l--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[l].src)){this.lexer.inlineQueue[l].src=this.lexer.inlineQueue[l].src.replace(this.rules.other.listReplaceTask,"");break}let f=this.rules.other.listTaskCheckbox.exec(h.raw);if(f){let l={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};h.checked=l.checked,i.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=l.raw+h.tokens[0].raw,h.tokens[0].text=l.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(l)):h.tokens.unshift({type:"paragraph",raw:l.raw,text:l.raw,tokens:[l]}):h.tokens.unshift(l)}}else h.task&&(h.task=!1)}if(i.loose)for(let h of i.items){h.loose=!0;for(let u of h.tokens)u.type==="text"&&(u.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let s=Di(t[0]);return{type:"html",block:!0,raw:s,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:s}}}def(e){let t=this.rules.block.def.exec(e);if(t){let s=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:Pt(t[0],`
28
- `),href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let s=Mi(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
29
- `):[],n={type:"table",raw:Pt(t[0],`
30
- `),header:[],align:[],rows:[]};if(s.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?n.align.push("right"):this.rules.other.tableAlignCenter.test(o)?n.align.push("center"):this.rules.other.tableAlignLeft.test(o)?n.align.push("left"):n.align.push(null);for(let o=0;o<s.length;o++)n.header.push({text:s[o],tokens:this.lexer.inline(s[o]),header:!0,align:n.align[o]});for(let o of i)n.rows.push(Mi(o,n.header.length).map((a,h)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:n.align[h]})));return n}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let s=t[1].trim();return{type:"heading",raw:Pt(t[0],`
21
+ `),g=this.list(d);o[o.length-1]=g,r=r.substring(0,r.length-f.raw.length)+g.raw,i=i.substring(0,i.length-c.raw.length)+g.raw,s=d.substring(o.at(-1).raw.length).split(`
22
+ `);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=e,r=()=>s.length-e.length,i=t[1].trim(),o=i.length>1,n={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let a=this.rules.other.listItemRegex(i),h=!1;for(;e;){let p=!1,l="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;let f=r();e=e.substring(t[0].length);let c=t[2].split(`
23
+ `,1)[0],d=t[1].length,g=this.options.pedantic?Er(c,d):c.replace(this.rules.other.leadingSpaceTab,m=>Er(m,d)),v=e.split(`
24
+ `,1)[0],_=!g.trim(),S=0;if(this.options.pedantic?(S=2,l=g.trimStart()):_?S=d+1:(S=g.search(this.rules.other.nonSpaceChar),S=S>4?1:S,l=g.slice(S),S+=d),_&&this.rules.other.blankLine.test(v)&&(e=e.substring(v.length+1),p=!0),!p){let m=this.rules.other.nextBulletRegex(S),b=this.rules.other.hrRegex(S),k=this.rules.other.fencesBeginRegex(S),w=this.rules.other.headingBeginRegex(S),A=this.rules.other.htmlBeginRegex(S),O=this.rules.other.blockquoteBeginRegex(S);for(;e;){let P=e.split(`
25
+ `,1)[0],E;if(v=P,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),E=v):E=v.replace(this.rules.other.leadingSpaceTab,T=>Er(T)),k.test(v)||w.test(v)||A.test(v)||O.test(v)||m.test(v)||b.test(v))break;if(E.search(this.rules.other.nonSpaceChar)>=S||!v.trim())l+=`
26
+ `+E.slice(S);else{if(_||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(g)||w.test(g)||b.test(g))break;l+=`
27
+ `+v}_=!v.trim(),e=e.substring(P.length+1),g=E.slice(S)}}let y=s.slice(f,r());n.loose||(h?n.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(h=!0)),n.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(l),loose:!1,text:l,tokens:[]})}let u=n.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;n.raw=s.slice(0,r()).trimEnd();for(let p of n.items)if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),!n.loose){let l=p.tokens.filter(f=>f.type==="space");n.loose=l.length>0&&l.some(f=>this.rules.other.anyLine.test(f.raw))}for(let p of n.items){let l=p.tokens[0];if(p.task&&(l?.type==="text"||l?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),l.raw=l.raw.replace(this.rules.other.listReplaceTask,""),l.text=l.text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}let f=this.rules.other.listTaskCheckbox.exec(p.raw);if(f){let c={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};p.checked=c.checked,n.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=c.raw+p.tokens[0].raw,p.tokens[0].text=c.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(c)):p.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):p.tokens.unshift(c)}}else p.task&&(p.task=!1)}if(n.loose)for(let p of n.items){p.loose=!0;for(let l of p.tokens)l.type==="text"&&(l.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t){let s=qi(t[0]);return{type:"html",block:!0,raw:s,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:s}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&Fi(t[2],"()")!==-1)return;let s=Ms(t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:Pt(t[0],`
28
+ `),href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let s=Hi(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
29
+ `):[],o={type:"table",raw:Pt(t[0],`
30
+ `),header:[],align:[],rows:[]};if(s.length===r.length){for(let n of r)this.rules.other.tableAlignRight.test(n)?o.align.push("right"):this.rules.other.tableAlignCenter.test(n)?o.align.push("center"):this.rules.other.tableAlignLeft.test(n)?o.align.push("left"):o.align.push(null);for(let n=0;n<s.length;n++)o.header.push({text:s[n],tokens:this.lexer.inline(s[n]),header:!0,align:o.align[n]});for(let n of i)o.rows.push(Hi(n,o.header.length).map((a,h)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:o.align[h]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let s=t[1].trim();return{type:"heading",raw:Pt(t[0],`
31
31
  `),depth:t[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let s=t[1].charAt(t[1].length-1)===`
32
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let s=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let n=Pt(s.slice(0,-1),"\\");if((s.length-n.length)%2===0)return}else{let n=Ra(t[2],"()");if(n===-2)return;if(n>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+n;t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(r);n&&(r=n[1],i=n[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?r=r.slice(1):r=r.slice(1,-1)),Bi(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){let r=t[(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!r){let i=s[0].charAt(0);return{type:"text",raw:i,text:i}}return Bi(s,r,s[0],this.lexer,this.rules)}}emStrong(e,t,s=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!s||this.rules.inline.punctuation.exec(s))){let i=[...r[0]].length-1,n,o,a=i,h=0,u=r[0][0],f=s===u,l=u==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!==null;){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}else if(r[5]||r[6]){if(i%3&&!((i+o)%3)){h+=o;continue}if(f)break}if(a-=o,a>0)continue;o=Math.min(o,o+a+h);let d=[...r[0]][0].length,c=e.slice(0,i+r.index+d+o);if(Math.min(i,o)%2){let g=c.slice(1,-1);return{type:"em",raw:c,text:g,tokens:this.lexer.inlineTokens(g)}}let p=c.slice(2,-2);return{type:"strong",raw:c,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(s),i=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return r&&i&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:t[0],text:s}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,s=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!s||this.rules.inline.punctuation.exec(s))){let i=[...r[0]].length-1,n,o,a=i,h=this.rules.inline.delRDelim;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(r=h.exec(t))!==null;){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(o=[...n].length,o!==i))continue;if(r[3]||r[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let u=[...r[0]][0].length,f=e.slice(0,i+r.index+u+o),l=f.slice(i,-i);return{type:"del",raw:f,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let s,r;return t[2]==="@"?(s=t[1],r="mailto:"+s):(s=t[1],r=s),{type:"link",raw:t[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let s,r;if(t[2]==="@")s=t[0],r="mailto:"+s;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);s=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let s=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:s}}}},ht=class yi{constructor(t){Pe(this,"tokens",void 0),Pe(this,"options",void 0),Pe(this,"state",void 0),Pe(this,"inlineQueue",void 0),Pe(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new Ns,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let s={other:ze,block:Os.normal,inline:ls.normal};this.options.pedantic?(s.block=Os.pedantic,s.inline=ls.pedantic):this.options.gfm&&(s.block=Os.gfm,this.options.breaks?s.inline=ls.breaks:s.inline=ls.gfm),this.tokenizer.rules=s}static get rules(){return{block:Os,inline:ls}}static lex(t,s){return new yi(s).lex(t)}static lexInline(t,s){return new yi(s).inlineTokens(t)}lex(t){t=t.replace(ze.carriageReturn,`
33
- `),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let r=this.inlineQueue[s];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(ze.tabCharGlobal," ").replace(ze.spaceLine,""));let i=1/0;for(;t;){if(t.length<i)i=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let n;if(this.options.extensions?.block?.some(a=>(n=a.call({lexer:this},t,s))?(t=t.substring(n.raw.length),s.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let a=s.at(-1);n.raw.length===1&&a!==void 0?a.raw+=`
34
- `:s.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let a=s.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
32
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=this.rules.inline.link.exec(e);if(t){let s=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&zi(e,t[1],s,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let n=Pt(r.slice(0,-1),"\\");if((r.length-n.length)%2===0)return}else{let n=Fi(t[2],"()");if(n===-2)return;if(n>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+n;t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let i=t[2],o="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(i);n&&(i=n[1],o=n[3])}else o=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Vi(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){let r=s[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&zi(e,s[1],r,this.rules))return;let i=t[Ms((s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "))];if(!i){let o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return Vi(s,i,s[0],this.lexer,this.rules)}}emStrong(e,t,s=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!s||this.rules.inline.punctuation.exec(s))){let i=[...r[0]].length-1,o,n,a=i,h=0,u=r[0][0],p=s===u,l=u==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(n=[...o].length,r[3]||r[4]){a+=n;continue}else if(r[5]||r[6]){if(i%3&&!((i+n)%3)){h+=n;continue}if(p)break}if(a-=n,a>0)continue;n=Math.min(n,n+a+h);let f=[...r[0]][0].length,c=e.slice(0,i+r.index+f+n);if(Math.min(i,n)%2){let g=c.slice(1,-1);return{type:"em",raw:c,text:g,tokens:this.lexer.inlineTokens(g)}}let d=c.slice(2,-2);return{type:"strong",raw:c,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(s),i=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return r&&i&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:t[0],text:s}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,s=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!s||this.rules.inline.punctuation.exec(s))){let i=[...r[0]].length-1,o,n,a=i,h=this.rules.inline.delRDelim;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(r=h.exec(t))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(n=[...o].length,n!==i))continue;if(r[3]||r[4]){a+=n;continue}if(a-=n,a>0)continue;n=Math.min(n,n+a);let u=[...r[0]][0].length,p=e.slice(0,i+r.index+u+n),l=p.slice(i,-i);return{type:"del",raw:p,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let s,r;return t[2]==="@"?(s=t[1],r="mailto:"+s):(s=t[1],r=s),{type:"link",raw:t[0],text:s,href:r,autolink:!0,tokens:[{type:"text",raw:s,text:s}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let s,r;if(t[2]==="@")s=t[0],r="mailto:"+s;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);s=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:s,href:r,autolink:!0,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let s=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:s?t[0]:Wa(t[0]),escaped:s}}}},pt=(br=new WeakSet,class ki{constructor(t){Jo(this,br),Pe(this,"tokens",void 0),Pe(this,"options",void 0),Pe(this,"state",void 0),Pe(this,"inlineQueue",void 0),Pe(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new Ds,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let s={other:qe,block:Ns.normal,inline:us.normal};this.options.pedantic?(s.block=Ns.pedantic,s.inline=us.pedantic):this.options.gfm&&(s.block=Ns.gfm,this.options.breaks?s.inline=us.breaks:s.inline=us.gfm),this.tokenizer.rules=s}static get rules(){return{block:Ns,inline:us}}static lex(t,s){return new ki(s).lex(t)}static lexInline(t,s){return new ki(s).inlineTokens(t)}lex(t){t=t.replace(qe.carriageReturn,`
33
+ `),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let r=this.inlineQueue[s];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(qe.tabCharGlobal," ").replace(qe.spaceLine,""));let i=1/0;for(;t;){if(t.length<i)i=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},t,s))?(t=t.substring(o.raw.length),s.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let a=s.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
34
+ `:s.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let a=s.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
35
35
  `)?"":`
36
- `)+n.raw,a.text+=`
37
- `+n.text,this.inlineQueue.at(-1).src=a.text):s.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let a=s.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
36
+ `)+o.raw,a.text+=`
37
+ `+o.text,this.inlineQueue.at(-1).src=a.text):s.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let a=s.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
38
38
  `)?"":`
39
- `)+n.raw,a.text+=`
40
- `+n.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},s.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),s.push(n);continue}let o=t;if(this.options.extensions?.startBlock){let a=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},h),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){let a=s.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
39
+ `)+o.raw,a.text+=`
40
+ `+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},s.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),s.push(o);continue}let n=t;if(this.options.extensions?.startBlock){let a=1/0,h=t.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&&(n=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(n))){let a=s.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
41
41
  `)?"":`
42
- `)+n.raw,a.text+=`
43
- `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):s.push(n),r=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let a=s.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
42
+ `)+o.raw,a.text+=`
43
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):s.push(o),r=n.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let a=s.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
44
44
  `)?"":`
45
- `)+n.raw,a.text+=`
46
- `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):s.push(n);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}linkInText(t){if(!t.includes("["))return!1;let s=this.tokenizer.rules.inline.link;for(let r of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(s.test(r[0])&&t.charAt(r.index-1)!=="!")return!0;for(let r of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let i=r[0],n=i.lastIndexOf("[");if(!(i.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,i.slice(n+1,-1)))&&!(n>1&&this.linkInText(i.slice(1,n-1))))return!0}return!1}inlineTokens(t,s=[]){this.tokenizer.lexer=this;let r=t;if(this.tokens.links&&t.includes("[")){let a=this.tokenizer.rules.inline.reflinkSearch,h=u=>{let f=u.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,u.slice(f+1,-1)))return u;if(f>1&&u.charAt(0)!=="!"){let l=u.slice(1,f-1);if(this.linkInText(l))return"["+l.replace(a,h)+"]["+"a".repeat(u.length-f-2)+"]"}return"["+"a".repeat(u.length-2)+"]"};r=r.replace(a,h)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,a=>"+".repeat(a.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(a,h,u)=>{let f=u?u.length:0;return a.slice(0,f)+"["+"a".repeat(a.length-f-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,n="",o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(n=""),i=!1;let a;if(this.options.extensions?.inline?.some(u=>(a=u.call({lexer:this},t,s))?(t=t.substring(a.raw.length),s.push(a),!0):!1))continue;if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length);let u=s.at(-1);a.type==="text"&&u?.type==="text"?(u.raw+=a.raw,u.text+=a.text):s.push(a);continue}if(a=this.tokenizer.emStrong(t,r,n)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.del(t,r,n)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.autolink(t)){t=t.substring(a.raw.length),s.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t))){t=t.substring(a.raw.length),s.push(a);continue}let h=t;if(this.options.extensions?.startInline){let u=1/0,f=t.slice(1),l;this.options.extensions.startInline.forEach(d=>{l=d.call({lexer:this},f),typeof l=="number"&&l>=0&&(u=Math.min(u,l))}),u<1/0&&u>=0&&(h=t.substring(0,u+1))}if(a=this.tokenizer.inlineText(h)){t=t.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(n=a.raw.slice(-1)),i=!0;let u=s.at(-1);u?.type==="text"?(u.raw+=a.raw,u.text+=a.text):s.push(a);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return s}infiniteLoopError(t){let s="Infinite loop on byte: "+t;if(this.options.silent)console.error(s);else throw new Error(s)}},Ms=class{constructor(e){Pe(this,"options",void 0),Pe(this,"parser",void 0),this.options=e||Mt}space(e){return""}code({text:e,lang:t,escaped:s}){let r=(t||"").match(ze.notSpaceStart)?.[0],i=e.replace(ze.endingNewline,"")+`
47
- `;return r?'<pre><code class="language-'+vt(r)+'">'+(s?i:vt(i,!0))+`</code></pre>
48
- `:"<pre><code>"+(s?i:vt(i,!0))+`</code></pre>
45
+ `)+o.raw,a.text+=`
46
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):s.push(o);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}linkInText(t){if(!t.includes("["))return!1;let s=this.tokenizer.rules.inline.link;for(let r of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(s.test(r[0])&&t.charAt(r.index-1)!=="!")return!0;for(let r of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let i=r[0],o=i.lastIndexOf("[");if(!(i.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,Ms(i.slice(o+1,-1))))&&!(o>1&&this.linkInText(i.slice(1,o-1))))return!0}return!1}inlineTokens(t,s=[]){this.tokenizer.lexer=this;let r=this.state.linkParenPossible;this.state.linkParenPossible=r&&t.includes(")");try{return Ko(br,this,Ya).call(this,t,s)}finally{this.state.linkParenPossible=r}}infiniteLoopError(t){let s="Infinite loop on byte: "+t;if(this.options.silent)console.error(s);else throw new Error(s)}});function Ya(e,t){let s=e;if(this.tokens.links&&e.includes("[")){let n=this.tokenizer.rules.inline.reflinkSearch,a=h=>{let u=h.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,Ms(h.slice(u+1,-1))))return h;if(u>1&&h.charAt(0)!=="!"){let p=h.slice(1,u-1);if(this.linkInText(p))return"["+p.replace(n,a)+"]["+"a".repeat(h.length-u-2)+"]"}return"["+"a".repeat(h.length-2)+"]"};s=s.replace(n,a)}s=s.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(n,a,h)=>h?"+".repeat(n.length):a?a+n.slice(a.length,-a.length).replace(/`/g,"+")+a:n),s=s.replace(this.tokenizer.rules.inline.blockSkip,(n,a,h)=>{let u=h?h.length:0;return n.slice(0,u)+"["+"a".repeat(n.length-u-2)+"]"}),s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let r=!1,i="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=""),r=!1;let n;if(this.options.extensions?.inline?.some(h=>(n=h.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let h=t.at(-1);n.type==="text"&&h?.type==="text"?(h.raw+=n.raw,h.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,s,i)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,s,i)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let a=e;if(this.options.extensions?.startInline){let h=1/0,u=e.slice(1),p;this.options.extensions.startInline.forEach(l=>{p=l.call({lexer:this},u),typeof p=="number"&&p>=0&&(h=Math.min(h,p))}),h<1/0&&h>=0&&(a=e.substring(0,h+1))}if(n=this.tokenizer.inlineText(a)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(i=n.raw.slice(-1)),r=!0;let h=t.at(-1);h?.type==="text"?(h.raw+=n.raw,h.text+=n.text):t.push(n);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}var Bs=class{constructor(e){Pe(this,"options",void 0),Pe(this,"parser",void 0),this.options=e||Mt}space(e){return""}code({text:e,lang:t,escaped:s}){let r=(t||"").match(qe.notSpaceStart)?.[0],i=e?e.replace(qe.endingNewline,"")+`
47
+ `:"";return r?'<pre><code class="language-'+je(r)+'">'+(s?i:je(i,!0))+`</code></pre>
48
+ `:"<pre><code>"+(s?i:je(i,!0))+`</code></pre>
49
49
  `}blockquote({tokens:e}){return`<blockquote>
50
50
  ${this.parser.parse(e)}</blockquote>
51
51
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
52
52
  `}hr(e){return`<hr>
53
- `}list(e){let t=e.ordered,s=e.start,r="";for(let o=0;o<e.items.length;o++){let a=e.items[o];r+=this.listitem(a)}let i=t?"ol":"ul",n=t&&s!==1?' start="'+s+'"':"";return"<"+i+n+`>
53
+ `}list(e){let t=e.ordered,s=e.start,r="";for(let n=0;n<e.items.length;n++){let a=e.items[n];r+=this.listitem(a)}let i=t?"ol":"ul",o=t&&s!==1?' start="'+s+'"':"";return"<"+i+o+`>
54
54
  `+r+"</"+i+`>
55
55
  `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
56
56
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
57
- `}table(e){let t="",s="";for(let i=0;i<e.header.length;i++)s+=this.tablecell(e.header[i]);t+=this.tablerow({text:s});let r="";for(let i=0;i<e.rows.length;i++){let n=e.rows[i];s="";for(let o=0;o<n.length;o++)s+=this.tablecell(n[o]);r+=this.tablerow({text:s})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
57
+ `}table(e){let t="",s="";for(let i=0;i<e.header.length;i++)s+=this.tablecell(e.header[i]);t+=this.tablerow({text:s});let r="";for(let i=0;i<e.rows.length;i++){let o=e.rows[i];s="";for(let n=0;n<o.length;n++)s+=this.tablecell(o[n]);r+=this.tablerow({text:s})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
58
58
  <thead>
59
59
  `+t+`</thead>
60
60
  `+r+`</table>
61
61
  `}tablerow({text:e}){return`<tr>
62
62
  ${e}</tr>
63
63
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
64
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${vt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){let r=this.parser.parseInline(s),i=Ni(e);if(i===null)return r;e=i;let n='<a href="'+e+'"';return t&&(n+=' title="'+vt(t)+'"'),n+=">"+r+"</a>",n}image({href:e,title:t,text:s,tokens:r}){r&&(s=this.parser.parseInline(r,this.parser.textRenderer));let i=Ni(e);if(i===null)return vt(s);e=i;let n=`<img src="${e}" alt="${vt(s)}"`;return t&&(n+=` title="${vt(t)}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:vt(e.text)}},Tr=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},dt=class bi{constructor(t){Pe(this,"options",void 0),Pe(this,"renderer",void 0),Pe(this,"textRenderer",void 0),this.options=t||Mt,this.options.renderer=this.options.renderer||new Ms,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Tr}static parse(t,s){return new bi(s).parse(t)}static parseInline(t,s){return new bi(s).parseInline(t)}parse(t){this.renderer.parser=this;let s="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let o=i,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(o.type)){s+=a||"";continue}}let n=i;switch(n.type){case"space":s+=this.renderer.space(n);break;case"hr":s+=this.renderer.hr(n);break;case"heading":s+=this.renderer.heading(n);break;case"code":s+=this.renderer.code(n);break;case"table":s+=this.renderer.table(n);break;case"blockquote":s+=this.renderer.blockquote(n);break;case"list":s+=this.renderer.list(n);break;case"checkbox":s+=this.renderer.checkbox(n);break;case"html":s+=this.renderer.html(n);break;case"def":s+=this.renderer.def(n);break;case"paragraph":s+=this.renderer.paragraph(n);break;case"text":s+=this.renderer.text(n);break;default:{let o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(t,s=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let n=t[i];if(this.options.extensions?.renderers?.[n.type]){let a=this.options.extensions.renderers[n.type].call({parser:this},n);if(a!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(n.type)){r+=a||"";continue}}let o=n;switch(o.type){case"escape":r+=s.text(o);break;case"html":r+=s.html(o);break;case"link":r+=s.link(o);break;case"image":r+=s.image(o);break;case"checkbox":r+=s.checkbox(o);break;case"strong":r+=s.strong(o);break;case"em":r+=s.em(o);break;case"codespan":r+=s.codespan(o);break;case"br":r+=s.br(o);break;case"del":r+=s.del(o);break;case"text":r+=s.text(o);break;default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},cs=(Ls=class{constructor(e){Pe(this,"options",void 0),Pe(this,"block",void 0),this.options=e||Mt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ht.lex:ht.lexInline}provideParser(e=this.block){return e?dt.parse:dt.parseInline}},Pe(Ls,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Pe(Ls,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ls),Na=class{constructor(...e){Pe(this,"defaults",vr()),Pe(this,"options",this.setOptions),Pe(this,"parse",this.parseMarkdown(!0)),Pe(this,"parseInline",this.parseMarkdown(!1)),Pe(this,"Parser",dt),Pe(this,"Renderer",Ms),Pe(this,"TextRenderer",Tr),Pe(this,"Lexer",ht),Pe(this,"Tokenizer",Ns),Pe(this,"Hooks",cs),this.use(...e)}walkTokens(e,t){let s=[];for(let r of e)switch(s=s.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let n of i.header)s=s.concat(this.walkTokens(n.tokens,t));for(let n of i.rows)for(let o of n)s=s.concat(this.walkTokens(o.tokens,t));break}case"list":{let i=r;s=s.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(n=>{let o=i[n].flat(1/0);s=s.concat(this.walkTokens(o,t))}):i.tokens&&(s=s.concat(this.walkTokens(i.tokens,t)))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{let r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let n=t.renderers[i.name];n?t.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=n.apply(this,o)),a}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let n=t[i.level];n?n.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),s.renderer){let i=this.defaults.renderer||new Ms(this.defaults);for(let n in s.renderer){if(!(n in i))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let o=n,a=s.renderer[o],h=i[o];i[o]=(...u)=>{let f=a.apply(i,u);return f===!1&&(f=h.apply(i,u)),f||""}}r.renderer=i}if(s.tokenizer){let i=this.defaults.tokenizer||new Ns(this.defaults);for(let n in s.tokenizer){if(!(n in i))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let o=n,a=s.tokenizer[o],h=i[o];i[o]=(...u)=>{let f=a.apply(i,u);return f===!1&&(f=h.apply(i,u)),f}}r.tokenizer=i}if(s.hooks){let i=this.defaults.hooks||new cs;for(let n in s.hooks){if(!(n in i))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let o=n,a=s.hooks[o],h=i[o];cs.passThroughHooks.has(n)?i[o]=u=>{if(this.defaults.async&&cs.passThroughHooksRespectAsync.has(n))return(async()=>{let l=await a.call(i,u);return h.call(i,l)})();let f=a.call(i,u);return h.call(i,f)}:i[o]=(...u)=>{if(this.defaults.async)return(async()=>{let l=await a.apply(i,u);return l===!1&&(l=await h.apply(i,u)),l})();let f=a.apply(i,u);return f===!1&&(f=h.apply(i,u)),f}}r.hooks=i}if(s.walkTokens){let i=this.defaults.walkTokens,n=s.walkTokens;r.walkTokens=function(o){let a=[];return a.push(n.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ht.lex(e,t??this.defaults)}parser(e,t){return dt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,s)=>{let r={...s},i={...this.defaults,...r},n=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return n(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 t>"u"||t===null)return n(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(t):t,a=await(i.hooks?await i.hooks.provideLexer(e):e?ht.lex:ht.lexInline)(o,i),h=i.hooks?await i.hooks.processAllTokens(a):a;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser(e):e?dt.parse:dt.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(n);try{i.hooks&&(t=i.hooks.preprocess(t));let o=(i.hooks?i.hooks.provideLexer(e):e?ht.lex:ht.lexInline)(t,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let a=(i.hooks?i.hooks.provideParser(e):e?dt.parse:dt.parseInline)(o,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(o){return n(o)}}}onError(e,t){return s=>{if(s.message+=`
65
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+vt(s.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(s);throw s}}},Bt=new Na;function Ce(e,t){return Bt.parse(e,t)}Ce.options=Ce.setOptions=function(e){return Bt.setOptions(e),Ce.defaults=Bt.defaults,Si(Ce.defaults),Ce},Ce.getDefaults=vr,Ce.defaults=Mt;function Ma(...e){return Bt.use(...e),Ce.defaults=Bt.defaults,Si(Ce.defaults),Ce}Ce.use=Ma,Ce.walkTokens=function(e,t){return Bt.walkTokens(e,t)},Ce.parseInline=Bt.parseInline,Ce.Parser=dt,Ce.parser=dt.parse,Ce.Renderer=Ms,Ce.TextRenderer=Tr,Ce.Lexer=ht,Ce.lexer=ht.lex,Ce.Tokenizer=Ns,Ce.Hooks=cs,Ce.parse=Ce;var su=Ce.options,ru=Ce.setOptions,iu=Ce.walkTokens,Cr=Ce.parseInline,Pr=Ce,nu=dt.parse,ou=ht.lex,We=ue((e=>{e.__esModule=!0,e.extend=n,e.indexOf=u,e.escapeExpression=f,e.isEmpty=l,e.createFrame=d,e.blockParams=c,e.appendContextPath=p;var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},s=/[&<>"'`=]/g,r=/[&<>"'`=]/;function i(g){return t[g]}function n(g){for(var v=1;v<arguments.length;v++)for(var _ in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],_)&&(g[_]=arguments[v][_]);return g}var o=Object.prototype.toString;e.toString=o;var a=function(v){return typeof v=="function"};a(/x/)&&(e.isFunction=a=function(g){return typeof g=="function"&&o.call(g)==="[object Function]"}),e.isFunction=a;var h=Array.isArray||function(g){return g&&typeof g=="object"?o.call(g)==="[object Array]":!1};e.isArray=h;function u(g,v){for(var _=0,S=g.length;_<S;_++)if(g[_]===v)return _;return-1}function f(g){if(typeof g!="string"){if(g&&typeof g.toHTML=="function")return g.toHTML();if(g==null)return"";if(!g)return g+"";g=""+g}return r.test(g)?g.replace(s,i):g}function l(g){return!g&&g!==0?!0:!!(h(g)&&g.length===0)}function d(g){var v=n({},g);return v._parent=g,v}function c(g,v){return g.path=v,g}function p(g,v){return(g?g+".":"")+v}})),ft=ue(((e,t)=>{e.__esModule=!0;var s=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(i,n){var o=n&&n.loc,a=void 0,h=void 0,u=void 0,f=void 0;o&&o.start&&(a=o.start.line,u=o.start.column,o.end&&(h=o.end.line,f=o.end.column),i+=" - "+a+":"+u);for(var l=Error.prototype.constructor.call(this,i),d=0;d<s.length;d++)this[s[d]]=l[s[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{o&&(this.lineNumber=a,this.endLineNumber=h,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=u,this.endColumn=f))}catch{}}r.prototype=new Error,e.default=r,t.exports=e.default})),Da=ue(((e,t)=>{e.__esModule=!0;var s=We();e.default=function(r){r.registerHelper("blockHelperMissing",function(i,n){var o=n.inverse,a=n.fn;if(i===!0)return a(this);if(i===!1||i==null)return o(this);if(s.isArray(i))return i.length>0?(n.ids&&(n.ids=[n.name]),r.helpers.each(i,n)):o(this);if(n.data&&n.ids){var h=s.createFrame(n.data);h.contextPath=s.appendContextPath(n.data.contextPath,n.name),n={data:h}}return a(i,n)})},t.exports=e.default})),Ba=ue(((e,t)=>{e.__esModule=!0;function s(o){return o&&o.__esModule?o:{default:o}}var r=We(),i=s(ft());function n(o){try{var a=o.return;r.isFunction(a)&&a.call(o)}catch{}}e.default=function(o){o.registerHelper("each",function(a,h){if(!h)throw new i.default("Must pass iterator to #each");var u=h.fn,f=h.inverse,l=0,d="",c=void 0,p=void 0;h.data&&h.ids&&(p=r.appendContextPath(h.data.contextPath,h.ids[0])+"."),r.isFunction(a)&&(a=a.call(this)),h.data&&(c=r.createFrame(h.data));function g(m,b,k,w){c&&(c.key=m,c.index=b,c.first=b===0,c.last=!!k,p&&(c.contextPath=p+m)),d=d+u(w,{data:c,blockParams:r.blockParams([w,m],[p+m,null])})}if(a&&typeof a=="object")if(r.isArray(a))for(var v=a.length;l<v;l++)l in a&&g(l,l,l===a.length-1,a[l]);else if(typeof Symbol=="function"&&a[Symbol.iterator])for(var _=a[Symbol.iterator](),S=_.next();!S.done;){var y=_.next();try{g(l,l,y.done,S.value)}catch(m){throw y.done||n(_),m}S=y,l++}else(function(){var m=void 0;Object.keys(a).forEach(function(b){m!==void 0&&g(m,l-1,!1,a[m]),m=b,l++}),m!==void 0&&g(m,l-1,!0,a[m])})();return l===0&&(d=f(this)),d})},t.exports=e.default})),Ha=ue(((e,t)=>{e.__esModule=!0;function s(i){return i&&i.__esModule?i:{default:i}}var r=s(ft());e.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default})),$a=ue(((e,t)=>{e.__esModule=!0;function s(n){return n&&n.__esModule?n:{default:n}}var r=We(),i=s(ft());e.default=function(n){n.registerHelper("if",function(o,a){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return r.isFunction(o)&&(o=o.call(this)),!a.hash.includeZero&&!o||r.isEmpty(o)?a.inverse(this):a.fn(this)}),n.registerHelper("unless",function(o,a){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return n.helpers.if.call(this,o,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},t.exports=e.default})),qa=ue(((e,t)=>{e.__esModule=!0,e.default=function(s){s.registerHelper("log",function(){for(var r=[void 0],i=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)r.push(arguments[n]);var o=1;i.hash.level!=null?o=i.hash.level:i.data&&i.data.level!=null&&(o=i.data.level),r[0]=o,s.log.apply(s,r)})},t.exports=e.default})),Fa=ue(((e,t)=>{e.__esModule=!0,e.default=function(s){s.registerHelper("lookup",function(r,i,n){return r&&n.lookupProperty(r,i)})},t.exports=e.default})),Va=ue(((e,t)=>{e.__esModule=!0;function s(n){return n&&n.__esModule?n:{default:n}}var r=We(),i=s(ft());e.default=function(n){n.registerHelper("with",function(o,a){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");r.isFunction(o)&&(o=o.call(this));var h=a.fn;if(r.isEmpty(o))return a.inverse(this);var u=a.data;return a.data&&a.ids&&(u=r.createFrame(a.data),u.contextPath=r.appendContextPath(a.data.contextPath,a.ids[0])),h(o,{data:u,blockParams:r.blockParams([o],[u&&u.contextPath])})})},t.exports=e.default})),Hi=ue((e=>{e.__esModule=!0,e.registerDefaultHelpers=u,e.moveHelperToHooks=f;function t(l){return l&&l.__esModule?l:{default:l}}var s=t(Da()),r=t(Ba()),i=t(Ha()),n=t($a()),o=t(qa()),a=t(Fa()),h=t(Va());function u(l){s.default(l),r.default(l),i.default(l),n.default(l),o.default(l),a.default(l),h.default(l)}function f(l,d,c){l.helpers[d]&&(l.hooks[d]=l.helpers[d],c||(l.helpers[d]=void 0))}})),za=ue(((e,t)=>{e.__esModule=!0;var s=We();e.default=function(r){r.registerDecorator("inline",function(i,n,o,a){var h=i;return n.partials||(n.partials={},h=function(u,f){var l=o.partials;o.partials=s.extend({},l,n.partials);var d=i(u,f);return o.partials=l,d}),n.partials[a.args[0]]=a.fn,h})},t.exports=e.default})),Ua=ue((e=>{e.__esModule=!0,e.registerDefaultDecorators=r;function t(i){return i&&i.__esModule?i:{default:i}}var s=t(za());function r(i){s.default(i)}})),$i=ue(((e,t)=>{e.__esModule=!0;var s=We(),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(n){if(typeof n=="string"){var o=s.indexOf(r.methodMap,n.toLowerCase());o>=0?n=o:n=parseInt(n,10)}return n},log:function(n){if(n=r.lookupLevel(n),typeof console<"u"&&r.lookupLevel(r.level)<=n){var o=r.methodMap[n];console[o]||(o="log");for(var a=arguments.length,h=Array(a>1?a-1:0),u=1;u<a;u++)h[u-1]=arguments[u];console[o].apply(console,h)}}};e.default=r,t.exports=e.default})),qi=ue((e=>{e.__esModule=!0,e.createProtoAccessControl=n,e.resultIsAllowed=o,e.isPrototypeConstructor=a,e.resetLoggedProperties=f;function t(l){return l&&l.__esModule?l:{default:l}}var s=We(),r=t($i()),i=Object.create(null);function n(l){var d=Object.create(null);d.__proto__=!1,s.extend(d,l.allowedProtoProperties);var c=Object.create(null);return c.constructor=!1,c.__defineGetter__=!1,c.__defineSetter__=!1,c.__lookupGetter__=!1,c.__lookupSetter__=!1,s.extend(c,l.allowedProtoMethods),{properties:{whitelist:d,defaultValue:l.allowProtoPropertiesByDefault},methods:{whitelist:c,defaultValue:l.allowProtoMethodsByDefault}}}function o(l,d,c){return h(typeof l=="function"?d.methods:d.properties,c)}function a(l,d,c){return d==="constructor"&&typeof c=="function"&&l===c.prototype}function h(l,d){return l.whitelist[d]!==void 0?l.whitelist[d]===!0:l.defaultValue!==void 0?l.defaultValue:(u(d),!1)}function u(l){i[l]!==!0&&(i[l]=!0,r.default.log("error",'Handlebars: Access has been denied to resolve the property "'+l+`" because it is not an "own property" of its parent.
64
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${je(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:s,tokens:r,autolink:i}){let o=i?je(s,!0):this.parser.parseInline(r),n=$i(e);if(n===null)return o;e=je(n,i);let a='<a href="'+e+'"';return t&&(a+=' title="'+je(t)+'"'),a+=">"+o+"</a>",a}image({href:e,title:t,text:s,tokens:r}){r&&(s=this.parser.parseInline(r,this.parser.textRenderer));let i=$i(e);if(i===null)return je(s);e=i;let o=`<img src="${je(e)}" alt="${je(s)}"`;return t&&(o+=` title="${je(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:je(e.text)}},Ar=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ft=class wi{constructor(t){Pe(this,"options",void 0),Pe(this,"renderer",void 0),Pe(this,"textRenderer",void 0),this.options=t||Mt,this.options.renderer=this.options.renderer||new Bs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ar}static parse(t,s){return new wi(s).parse(t)}static parseInline(t,s){return new wi(s).parseInline(t)}parse(t){this.renderer.parser=this;let s="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let n=i,a=this.options.extensions.renderers[n.type].call({parser:this},n);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(n.type)){s+=a||"";continue}}let o=i;switch(o.type){case"space":s+=this.renderer.space(o);break;case"hr":s+=this.renderer.hr(o);break;case"heading":s+=this.renderer.heading(o);break;case"code":s+=this.renderer.code(o);break;case"table":s+=this.renderer.table(o);break;case"blockquote":s+=this.renderer.blockquote(o);break;case"list":s+=this.renderer.list(o);break;case"checkbox":s+=this.renderer.checkbox(o);break;case"html":s+=this.renderer.html(o);break;case"def":s+=this.renderer.def(o);break;case"paragraph":s+=this.renderer.paragraph(o);break;case"text":s+=this.renderer.text(o);break;default:{let n='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return s}parseInline(t,s=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let o=t[i];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(o.type)){r+=a||"";continue}}let n=o;switch(n.type){case"escape":r+=s.text(n);break;case"html":r+=s.html(n);break;case"link":r+=s.link(n);break;case"image":r+=s.image(n);break;case"checkbox":r+=s.checkbox(n);break;case"strong":r+=s.strong(n);break;case"em":r+=s.em(n);break;case"codespan":r+=s.codespan(n);break;case"br":r+=s.br(n);break;case"del":r+=s.del(n);break;case"text":r+=s.text(n);break;default:{let a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},hs=(Is=class{constructor(e){Pe(this,"options",void 0),Pe(this,"block",void 0),this.options=e||Mt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pt.lex:pt.lexInline}provideParser(e=this.block){return e?ft.parse:ft.parseInline}},Pe(Is,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Pe(Is,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Is);function Bt(e,t){if(Array.isArray(t))for(let s=0;s<t.length;s++)e.push(t[s]);else e.push(t)}var Ga=class{constructor(...e){Pe(this,"defaults",_r()),Pe(this,"options",this.setOptions),Pe(this,"parse",this.parseMarkdown(!0)),Pe(this,"parseInline",this.parseMarkdown(!1)),Pe(this,"Parser",ft),Pe(this,"Renderer",Bs),Pe(this,"TextRenderer",Ar),Pe(this,"Lexer",pt),Pe(this,"Tokenizer",Ds),Pe(this,"Hooks",hs),this.use(...e)}walkTokens(e,t){let s=[];for(let r of e)switch(Bt(s,t.call(this,r)),r.type){case"table":{let i=r;for(let o of i.header)Bt(s,this.walkTokens(o.tokens,t));for(let o of i.rows)for(let n of o)Bt(s,this.walkTokens(n.tokens,t));break}case"list":{let i=r;Bt(s,this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{let n=i[o].flat(1/0);Bt(s,this.walkTokens(n,t))}):i.tokens&&Bt(s,this.walkTokens(i.tokens,t))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{let r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=t.renderers[i.name];o?t.renderers[i.name]=function(...n){let a=i.renderer.apply(this,n);return a===!1&&(a=o.apply(this,n)),a}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),s.renderer){let i=this.defaults.renderer||new Bs(this.defaults);for(let o in s.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let n=o,a=s.renderer[n],h=i[n];i[n]=(...u)=>{let p=a.apply(i,u);return p===!1&&(p=h.apply(i,u)),p||""}}r.renderer=i}if(s.tokenizer){let i=this.defaults.tokenizer||new Ds(this.defaults);for(let o in s.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let n=o,a=s.tokenizer[n],h=i[n];i[n]=(...u)=>{let p=a.apply(i,u);return p===!1&&(p=h.apply(i,u)),p}}r.tokenizer=i}if(s.hooks){let i=this.defaults.hooks||new hs;for(let o in s.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let n=o,a=s.hooks[n],h=i[n];hs.passThroughHooks.has(o)?i[n]=u=>{if(this.defaults.async&&hs.passThroughHooksRespectAsync.has(o))return(async()=>{let l=await a.call(i,u);return h.call(i,l)})();let p=a.call(i,u);return h.call(i,p)}:i[n]=(...u)=>{if(this.defaults.async)return(async()=>{let l=await a.apply(i,u);return l===!1&&(l=await h.apply(i,u)),l})();let p=a.apply(i,u);return p===!1&&(p=h.apply(i,u)),p}}r.hooks=i}if(s.walkTokens){let i=this.defaults.walkTokens,o=s.walkTokens;r.walkTokens=function(n){let a=[];return a.push(o.call(this,n)),i&&Bt(a,i.call(this,n)),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pt.lex(e,t??this.defaults)}parser(e,t){return ft.parse(e,t??this.defaults)}parseMarkdown(e){return(t,s)=>{let r={...s},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(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 t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,a=await(i.hooks?await i.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(n,i),h=i.hooks?await i.hooks.processAllTokens(a):a;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser(e):e?ft.parse:ft.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let a=(i.hooks?i.hooks.provideParser(e):e?ft.parse:ft.parseInline)(n,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(n){return o(n)}}}onError(e,t){return s=>{if(s.message+=`
65
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+je(s.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(s);throw s}}},$t=new Ga;function Ce(e,t){return $t.parse(e,t)}Ce.options=Ce.setOptions=function(e){return $t.setOptions(e),Ce.defaults=$t.defaults,Ti(Ce.defaults),Ce},Ce.getDefaults=_r,Ce.defaults=Mt;function Za(...e){return $t.use(...e),Ce.defaults=$t.defaults,Ti(Ce.defaults),Ce}Ce.use=Za,Ce.walkTokens=function(e,t){return $t.walkTokens(e,t)},Ce.parseInline=$t.parseInline,Ce.Parser=ft,Ce.parser=ft.parse,Ce.Renderer=Bs,Ce.TextRenderer=Ar,Ce.Lexer=pt,Ce.lexer=pt.lex,Ce.Tokenizer=Ds,Ce.Hooks=hs,Ce.parse=Ce;var mu=Ce.options,vu=Ce.setOptions,yu=Ce.walkTokens,Lr=Ce.parseInline,Rr=Ce,bu=ft.parse,_u=pt.lex,We=he((e=>{e.__esModule=!0,e.extend=o,e.indexOf=u,e.escapeExpression=p,e.isEmpty=l,e.createFrame=f,e.blockParams=c,e.appendContextPath=d;var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},s=/[&<>"'`=]/g,r=/[&<>"'`=]/;function i(g){return t[g]}function o(g){for(var v=1;v<arguments.length;v++)for(var _ in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],_)&&(g[_]=arguments[v][_]);return g}var n=Object.prototype.toString;e.toString=n;var a=function(v){return typeof v=="function"};a(/x/)&&(e.isFunction=a=function(g){return typeof g=="function"&&n.call(g)==="[object Function]"}),e.isFunction=a;var h=Array.isArray||function(g){return g&&typeof g=="object"?n.call(g)==="[object Array]":!1};e.isArray=h;function u(g,v){for(var _=0,S=g.length;_<S;_++)if(g[_]===v)return _;return-1}function p(g){if(typeof g!="string"){if(g&&typeof g.toHTML=="function")return g.toHTML();if(g==null)return"";if(!g)return g+"";g=""+g}return r.test(g)?g.replace(s,i):g}function l(g){return!g&&g!==0?!0:!!(h(g)&&g.length===0)}function f(g){var v=o({},g);return v._parent=g,v}function c(g,v){return g.path=v,g}function d(g,v){return(g?g+".":"")+v}})),dt=he(((e,t)=>{e.__esModule=!0;var s=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(i,o){var n=o&&o.loc,a=void 0,h=void 0,u=void 0,p=void 0;n&&n.start&&(a=n.start.line,u=n.start.column,n.end&&(h=n.end.line,p=n.end.column),i+=" - "+a+":"+u);for(var l=Error.prototype.constructor.call(this,i),f=0;f<s.length;f++)this[s[f]]=l[s[f]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{n&&(this.lineNumber=a,this.endLineNumber=h,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:p,enumerable:!0})):(this.column=u,this.endColumn=p))}catch{}}r.prototype=new Error,e.default=r,t.exports=e.default})),Qa=he(((e,t)=>{e.__esModule=!0;var s=We();e.default=function(r){r.registerHelper("blockHelperMissing",function(i,o){var n=o.inverse,a=o.fn;if(i===!0)return a(this);if(i===!1||i==null)return n(this);if(s.isArray(i))return i.length>0?(o.ids&&(o.ids=[o.name]),r.helpers.each(i,o)):n(this);if(o.data&&o.ids){var h=s.createFrame(o.data);h.contextPath=s.appendContextPath(o.data.contextPath,o.name),o={data:h}}return a(i,o)})},t.exports=e.default})),Ja=he(((e,t)=>{e.__esModule=!0;function s(n){return n&&n.__esModule?n:{default:n}}var r=We(),i=s(dt());function o(n){try{var a=n.return;r.isFunction(a)&&a.call(n)}catch{}}e.default=function(n){n.registerHelper("each",function(a,h){if(!h)throw new i.default("Must pass iterator to #each");var u=h.fn,p=h.inverse,l=0,f="",c=void 0,d=void 0;h.data&&h.ids&&(d=r.appendContextPath(h.data.contextPath,h.ids[0])+"."),r.isFunction(a)&&(a=a.call(this)),h.data&&(c=r.createFrame(h.data));function g(m,b,k,w){c&&(c.key=m,c.index=b,c.first=b===0,c.last=!!k,d&&(c.contextPath=d+m)),f=f+u(w,{data:c,blockParams:r.blockParams([w,m],[d+m,null])})}if(a&&typeof a=="object")if(r.isArray(a))for(var v=a.length;l<v;l++)l in a&&g(l,l,l===a.length-1,a[l]);else if(typeof Symbol=="function"&&a[Symbol.iterator])for(var _=a[Symbol.iterator](),S=_.next();!S.done;){var y=_.next();try{g(l,l,y.done,S.value)}catch(m){throw y.done||o(_),m}S=y,l++}else(function(){var m=void 0;Object.keys(a).forEach(function(b){m!==void 0&&g(m,l-1,!1,a[m]),m=b,l++}),m!==void 0&&g(m,l-1,!0,a[m])})();return l===0&&(f=p(this)),f})},t.exports=e.default})),Ka=he(((e,t)=>{e.__esModule=!0;function s(i){return i&&i.__esModule?i:{default:i}}var r=s(dt());e.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default})),ja=he(((e,t)=>{e.__esModule=!0;function s(o){return o&&o.__esModule?o:{default:o}}var r=We(),i=s(dt());e.default=function(o){o.registerHelper("if",function(n,a){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return r.isFunction(n)&&(n=n.call(this)),!a.hash.includeZero&&!n||r.isEmpty(n)?a.inverse(this):a.fn(this)}),o.registerHelper("unless",function(n,a){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return o.helpers.if.call(this,n,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},t.exports=e.default})),el=he(((e,t)=>{e.__esModule=!0,e.default=function(s){s.registerHelper("log",function(){for(var r=[void 0],i=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)r.push(arguments[o]);var n=1;i.hash.level!=null?n=i.hash.level:i.data&&i.data.level!=null&&(n=i.data.level),r[0]=n,s.log.apply(s,r)})},t.exports=e.default})),tl=he(((e,t)=>{e.__esModule=!0,e.default=function(s){s.registerHelper("lookup",function(r,i,o){return r&&o.lookupProperty(r,i)})},t.exports=e.default})),sl=he(((e,t)=>{e.__esModule=!0;function s(o){return o&&o.__esModule?o:{default:o}}var r=We(),i=s(dt());e.default=function(o){o.registerHelper("with",function(n,a){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");r.isFunction(n)&&(n=n.call(this));var h=a.fn;if(r.isEmpty(n))return a.inverse(this);var u=a.data;return a.data&&a.ids&&(u=r.createFrame(a.data),u.contextPath=r.appendContextPath(a.data.contextPath,a.ids[0])),h(n,{data:u,blockParams:r.blockParams([n],[u&&u.contextPath])})})},t.exports=e.default})),Ui=he((e=>{e.__esModule=!0,e.registerDefaultHelpers=u,e.moveHelperToHooks=p;function t(l){return l&&l.__esModule?l:{default:l}}var s=t(Qa()),r=t(Ja()),i=t(Ka()),o=t(ja()),n=t(el()),a=t(tl()),h=t(sl());function u(l){s.default(l),r.default(l),i.default(l),o.default(l),n.default(l),a.default(l),h.default(l)}function p(l,f,c){l.helpers[f]&&(l.hooks[f]=l.helpers[f],c||(l.helpers[f]=void 0))}})),rl=he(((e,t)=>{e.__esModule=!0;var s=We();e.default=function(r){r.registerDecorator("inline",function(i,o,n,a){var h=i;return o.partials||(o.partials={},h=function(u,p){var l=n.partials;n.partials=s.extend({},l,o.partials);var f=i(u,p);return n.partials=l,f}),o.partials[a.args[0]]=a.fn,h})},t.exports=e.default})),il=he((e=>{e.__esModule=!0,e.registerDefaultDecorators=r;function t(i){return i&&i.__esModule?i:{default:i}}var s=t(rl());function r(i){s.default(i)}})),Wi=he(((e,t)=>{e.__esModule=!0;var s=We(),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(o){if(typeof o=="string"){var n=s.indexOf(r.methodMap,o.toLowerCase());n>=0?o=n:o=parseInt(o,10)}return o},log:function(o){if(o=r.lookupLevel(o),typeof console<"u"&&r.lookupLevel(r.level)<=o){var n=r.methodMap[o];console[n]||(n="log");for(var a=arguments.length,h=Array(a>1?a-1:0),u=1;u<a;u++)h[u-1]=arguments[u];console[n].apply(console,h)}}};e.default=r,t.exports=e.default})),Xi=he((e=>{e.__esModule=!0,e.createProtoAccessControl=o,e.resultIsAllowed=n,e.isPrototypeConstructor=a,e.resetLoggedProperties=p;function t(l){return l&&l.__esModule?l:{default:l}}var s=We(),r=t(Wi()),i=Object.create(null);function o(l){var f=Object.create(null);f.__proto__=!1,s.extend(f,l.allowedProtoProperties);var c=Object.create(null);return c.constructor=!1,c.__defineGetter__=!1,c.__defineSetter__=!1,c.__lookupGetter__=!1,c.__lookupSetter__=!1,s.extend(c,l.allowedProtoMethods),{properties:{whitelist:f,defaultValue:l.allowProtoPropertiesByDefault},methods:{whitelist:c,defaultValue:l.allowProtoMethodsByDefault}}}function n(l,f,c){return h(typeof l=="function"?f.methods:f.properties,c)}function a(l,f,c){return f==="constructor"&&typeof c=="function"&&l===c.prototype}function h(l,f){return l.whitelist[f]!==void 0?l.whitelist[f]===!0:l.defaultValue!==void 0?l.defaultValue:(u(f),!1)}function u(l){i[l]!==!0&&(i[l]=!0,r.default.log("error",'Handlebars: Access has been denied to resolve the property "'+l+`" because it is not an "own property" of its parent.
66
66
  You can add a runtime option to disable the check or this warning:
67
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function f(){Object.keys(i).forEach(function(l){delete i[l]})}})),Er=ue((e=>{e.__esModule=!0,e.HandlebarsEnvironment=c;function t(g){return g&&g.__esModule?g:{default:g}}var s=We(),r=t(ft()),i=Hi(),n=Ua(),o=t($i()),a=qi(),h="4.7.10";e.VERSION=h;var u=8;e.COMPILER_REVISION=u;var f=7;e.LAST_COMPATIBLE_COMPILER_REVISION=f;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"};e.REVISION_CHANGES=l;var d="[object Object]";function c(g,v,_){this.helpers=g||{},this.partials=v||{},this.decorators=_||{},i.registerDefaultHelpers(this),n.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:o.default,log:o.default.log,registerHelper:function(v,_){if(s.toString.call(v)===d){if(_)throw new r.default("Arg not supported with multiple helpers");s.extend(this.helpers,v)}else this.helpers[v]=_},unregisterHelper:function(v){delete this.helpers[v]},registerPartial:function(v,_){if(s.toString.call(v)===d)s.extend(this.partials,v);else{if(typeof _>"u")throw new r.default('Attempting to register a partial called "'+v+'" as undefined');this.partials[v]=_}},unregisterPartial:function(v){delete this.partials[v]},registerDecorator:function(v,_){if(s.toString.call(v)===d){if(_)throw new r.default("Arg not supported with multiple decorators");s.extend(this.decorators,v)}else this.decorators[v]=_},unregisterDecorator:function(v){delete this.decorators[v]},resetLoggedPropertyAccesses:function(){a.resetLoggedProperties()}};var p=o.default.log;e.log=p,e.createFrame=s.createFrame,e.logger=o.default})),Wa=ue(((e,t)=>{e.__esModule=!0;function s(r){this.string=r}s.prototype.toString=s.prototype.toHTML=function(){return""+this.string},e.default=s,t.exports=e.default})),Xa=ue((e=>{e.__esModule=!0,e.wrapHelper=t;function t(s,r){return typeof s!="function"?s:function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=r(n),s.apply(this,arguments)}}})),Ya=ue((e=>{e.__esModule=!0,e.checkRevision=u,e.template=f,e.wrapProgram=l,e.resolvePartial=d,e.invokePartial=c,e.noop=p;function t(m){return m&&m.__esModule?m:{default:m}}function s(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var k in m)Object.prototype.hasOwnProperty.call(m,k)&&(b[k]=m[k]);return b.default=m,b}var r=s(We()),i=t(ft()),n=Er(),o=Hi(),a=Xa(),h=qi();function u(m){var b=m&&m[0]||1,k=n.COMPILER_REVISION;if(!(b>=n.LAST_COMPATIBLE_COMPILER_REVISION&&b<=n.COMPILER_REVISION))if(b<n.LAST_COMPATIBLE_COMPILER_REVISION){var w=n.REVISION_CHANGES[k],E=n.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 ("+w+") or downgrade your runtime to an older version ("+E+").")}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 ("+m[1]+").")}function f(m,b){if(!b)throw new i.default("No environment passed to template");if(!m||!m.main)throw new i.default("Unknown template object: "+typeof m);m.main.decorator=m.main_d,b.VM.checkRevision(m.compiler);var k=m.compiler&&m.compiler[0]===7;function w(P,A,C){C.hash&&(A=r.extend({},A,C.hash),C.ids&&(C.ids[0]=!0)),P=b.VM.resolvePartial.call(this,P,A,C),C.hooks=this.hooks,C.protoAccessControl=this.protoAccessControl;var H=b.VM.invokePartial.call(this,P,A,C);if(H==null&&r.isFunction(P))throw new i.default("The partial "+C.name+" returned no output: partials must return a string");if(H==null&&b.compile){if(typeof P!="string")throw new i.default("The partial "+C.name+" could not be compiled: partials must be strings or functions returning strings");C.partials[C.name]=b.compile(P,m.compilerOptions,b),H=C.partials[C.name](A,C)}if(H!=null){if(C.indent){for(var $=H.split(`
68
- `),V=0,x=$.length;V<x&&!(!$[V]&&V+1===x);V++)$[V]=C.indent+$[V];H=$.join(`
69
- `)}return H}else throw new i.default("The partial "+C.name+" could not be compiled when running in runtime-only mode")}var E={strict:function(A,C,H){if(!A||!(C in A))throw new i.default('"'+C+'" not defined in '+A,{loc:H});return E.lookupProperty(A,C)},lookupProperty:function(A,C){var H=A[C];if(H==null||Object.prototype.hasOwnProperty.call(A,C)&&!h.isPrototypeConstructor(A,C,H)||h.resultIsAllowed(H,E.protoAccessControl,C))return H},lookup:function(A,C){for(var H=A.length,$=0;$<H;$++){var V=A[$]&&E.lookupProperty(A[$],C);if(V!=null)return V}},lambda:function(A,C){return typeof A=="function"?A.call(C):A},escapeExpression:r.escapeExpression,invokePartial:w,fn:function(A){var C=m[A];return C.decorator=m[A+"_d"],C},programs:[],program:function(A,C,H,$,V){var x=this.programs[A],M=this.fn(A);return C||V||$||H?x=l(this,A,M,C,H,$,V):x||(x=this.programs[A]=l(this,A,M)),x},data:function(A,C){for(;A&&C--;)A=A._parent;return A},mergeIfNeeded:function(A,C){var H=A||C;return A&&C&&A!==C&&(H=r.extend({},C,A)),H},nullContext:Object.seal({}),noop:b.VM.noop,compilerInfo:m.compiler};function O(P){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],C=A.data;O._setup(A),!A.partial&&m.useData&&(C=v(P,C));var H=void 0,$=m.useBlockParams?[]:void 0;m.useDepths&&(A.depths?H=P!=A.depths[0]?[P].concat(A.depths):A.depths:H=[P]);function V(x){return""+m.main(E,x,E.helpers,E.partials,C,$,H)}return V=_(m.main,V,E,A.depths||[],C,$),V(P,A)}return O.isTop=!0,O._setup=function(P){if(P.partial)E.protoAccessControl=P.protoAccessControl,E.helpers=P.helpers,E.partials=P.partials,E.decorators=P.decorators,E.hooks=P.hooks;else{var A={};S(A,b.helpers,E),S(A,P.helpers,E),E.helpers=A,m.usePartial&&(E.partials=E.mergeIfNeeded(P.partials,b.partials)),(m.usePartial||m.useDecorators)&&(E.decorators=r.extend({},b.decorators,P.decorators)),E.hooks={},E.protoAccessControl=h.createProtoAccessControl(P);var C=P.allowCallsToHelperMissing||k;o.moveHelperToHooks(E,"helperMissing",C),o.moveHelperToHooks(E,"blockHelperMissing",C)}},O._child=function(P,A,C,H){if(m.useBlockParams&&!C)throw new i.default("must pass block params");if(m.useDepths&&!H)throw new i.default("must pass parent depths");return l(E,P,m[P],A,0,C,H)},O}function l(m,b,k,w,E,O,P){function A(C){var H=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],$=P;return P&&C!=P[0]&&!(C===m.nullContext&&P[0]===null)&&($=[C].concat(P)),k(m,C,m.helpers,m.partials,H.data||w,O&&[H.blockParams].concat(O),$)}return A=_(k,A,m,P,w,O),A.program=b,A.depth=P?P.length:0,A.blockParams=E||0,A}function d(m,b,k){return m?typeof m!="function"&&!k.name&&(k.name=m,m=g(k.partials,m)):k.name==="@partial-block"?m=g(k.data,"partial-block"):m=g(k.partials,k.name),m}function c(m,b,k){var w=g(k.data,"partial-block");k.partial=!0,k.ids&&(k.data.contextPath=k.ids[0]||k.data.contextPath);var E=void 0;if(k.fn&&k.fn!==p&&(function(){k.data=n.createFrame(k.data);var O=k.fn;E=k.data["partial-block"]=function(A){var C=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return C.data=n.createFrame(C.data),C.data["partial-block"]=w,O(A,C)},O.partials&&(k.partials=r.extend({},k.partials,O.partials))})(),m===void 0&&E&&(m=E),m===void 0)throw new i.default("The partial "+k.name+" could not be found");if(m instanceof Function)return m(b,k)}function p(){return""}function g(m,b){if(m&&Object.prototype.hasOwnProperty.call(m,b))return m[b]}function v(m,b){return(!b||!("root"in b))&&(b=b?n.createFrame(b):{},b.root=m),b}function _(m,b,k,w,E,O){if(m.decorator){var P={};b=m.decorator(b,P,k,w&&w[0],E,O,w),r.extend(b,P)}return b}function S(m,b,k){b&&Object.keys(b).forEach(function(w){var E=b[w];m[w]=y(E,k)})}function y(m,b){var k=b.lookupProperty;return a.wrapHelper(m,function(w){return w.lookupProperty=k,w})}})),Fi=ue(((e,t)=>{e.__esModule=!0,e.default=function(s){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var r=globalThis.Handlebars;s.noConflict=function(){return globalThis.Handlebars===s&&(globalThis.Handlebars=r),s}},t.exports=e.default})),Ga=ue(((e,t)=>{e.__esModule=!0;function s(d){return d&&d.__esModule?d:{default:d}}function r(d){if(d&&d.__esModule)return d;var c={};if(d!=null)for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(c[p]=d[p]);return c.default=d,c}var i=r(Er()),n=s(Wa()),o=s(ft()),a=r(We()),h=r(Ya()),u=s(Fi());function f(){var d=new i.HandlebarsEnvironment;return a.extend(d,i),d.SafeString=n.default,d.Exception=o.default,d.Utils=a,d.escapeExpression=a.escapeExpression,d.VM=h,d.template=function(c){return h.template(c,d)},d}var l=f();l.create=f,u.default(l),l.default=l,e.default=l,t.exports=e.default})),Vi=ue(((e,t)=>{e.__esModule=!0;var s={helpers:{helperExpression:function(i){return i.type==="SubExpression"||(i.type==="MustacheStatement"||i.type==="BlockStatement")&&!!(i.params&&i.params.length||i.hash)},scopedId:function(i){return/^\.|this\b/.test(i.original)},simpleId:function(i){return i.parts.length===1&&!s.helpers.scopedId(i)&&!i.depth}}};e.default=s,t.exports=e.default})),Za=ue(((e,t)=>{e.__esModule=!0;var s=(function(){var r={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(o,a,h,u,f,l,d){var c=l.length-1;switch(f){case 1:return l[c-1];case 2:this.$=u.prepareProgram(l[c]);break;case 3:this.$=l[c];break;case 4:this.$=l[c];break;case 5:this.$=l[c];break;case 6:this.$=l[c];break;case 7:this.$=l[c];break;case 8:this.$=l[c];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[c]),strip:u.stripFlags(l[c],l[c]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[c],value:l[c],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[c-2],l[c-1],l[c],this._$);break;case 12:this.$={path:l[c-3],params:l[c-2],hash:l[c-1]};break;case 13:this.$=u.prepareBlock(l[c-3],l[c-2],l[c-1],l[c],!1,this._$);break;case 14:this.$=u.prepareBlock(l[c-3],l[c-2],l[c-1],l[c],!0,this._$);break;case 15:this.$={open:l[c-5],path:l[c-4],params:l[c-3],hash:l[c-2],blockParams:l[c-1],strip:u.stripFlags(l[c-5],l[c])};break;case 16:this.$={path:l[c-4],params:l[c-3],hash:l[c-2],blockParams:l[c-1],strip:u.stripFlags(l[c-5],l[c])};break;case 17:this.$={path:l[c-4],params:l[c-3],hash:l[c-2],blockParams:l[c-1],strip:u.stripFlags(l[c-5],l[c])};break;case 18:this.$={strip:u.stripFlags(l[c-1],l[c-1]),program:l[c]};break;case 19:var p=u.prepareBlock(l[c-2],l[c-1],l[c],l[c],!1,this._$),g=u.prepareProgram([p],l[c-1].loc);g.chained=!0,this.$={strip:l[c-2].strip,program:g,chain:!0};break;case 20:this.$=l[c];break;case 21:this.$={path:l[c-1],strip:u.stripFlags(l[c-2],l[c])};break;case 22:this.$=u.prepareMustache(l[c-3],l[c-2],l[c-1],l[c-4],u.stripFlags(l[c-4],l[c]),this._$);break;case 23:this.$=u.prepareMustache(l[c-3],l[c-2],l[c-1],l[c-4],u.stripFlags(l[c-4],l[c]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[c-3],params:l[c-2],hash:l[c-1],indent:"",strip:u.stripFlags(l[c-4],l[c]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[c-2],l[c-1],l[c],this._$);break;case 26:this.$={path:l[c-3],params:l[c-2],hash:l[c-1],strip:u.stripFlags(l[c-4],l[c])};break;case 27:this.$=l[c];break;case 28:this.$=l[c];break;case 29:this.$={type:"SubExpression",path:l[c-3],params:l[c-2],hash:l[c-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[c],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[c-2]),value:l[c],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[c-1]);break;case 33:this.$=l[c];break;case 34:this.$=l[c];break;case 35:this.$={type:"StringLiteral",value:l[c],original:l[c],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[c]),original:Number(l[c]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[c]==="true",original:l[c]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[c];break;case 41:this.$=l[c];break;case 42:this.$=u.preparePath(!0,l[c],this._$);break;case 43:this.$=u.preparePath(!1,l[c],this._$);break;case 44:l[c-2].push({part:u.id(l[c]),original:l[c],separator:l[c-1]}),this.$=l[c-2];break;case 45:this.$=[{part:u.id(l[c]),original:l[c]}];break;case 46:this.$=[];break;case 47:l[c-1].push(l[c]);break;case 48:this.$=[];break;case 49:l[c-1].push(l[c]);break;case 50:this.$=[];break;case 51:l[c-1].push(l[c]);break;case 58:this.$=[];break;case 59:l[c-1].push(l[c]);break;case 64:this.$=[];break;case 65:l[c-1].push(l[c]);break;case 70:this.$=[];break;case 71:l[c-1].push(l[c]);break;case 78:this.$=[];break;case 79:l[c-1].push(l[c]);break;case 82:this.$=[];break;case 83:l[c-1].push(l[c]);break;case 86:this.$=[];break;case 87:l[c-1].push(l[c]);break;case 90:this.$=[];break;case 91:l[c-1].push(l[c]);break;case 94:this.$=[];break;case 95:l[c-1].push(l[c]);break;case 98:this.$=[l[c]];break;case 99:l[c-1].push(l[c]);break;case 100:this.$=[l[c]];break;case 101:l[c-1].push(l[c])}},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(o,a){throw new Error(o)},parse:function(o){var a=this,h=[0],u=[null],f=[],l=this.table,d="",c=0,p=0,g=0;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;f.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var $=a.lexer.lex()||1;return typeof $!="number"&&($=a.symbols_[$]||$),$}for(var y,m,b,k,w,E={},O,P,A,C;;){if(b=h[h.length-1],this.defaultActions[b]?k=this.defaultActions[b]:((y===null||typeof y>"u")&&(y=S()),k=l[b]&&l[b][y]),typeof k>"u"||!k.length||!k[0]){var H="";if(!g){C=[];for(O in l[b])this.terminals_[O]&&O>2&&C.push("'"+this.terminals_[O]+"'");this.lexer.showPosition?H="Parse error on line "+(c+1)+`:
67
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function p(){Object.keys(i).forEach(function(l){delete i[l]})}})),Ir=he((e=>{e.__esModule=!0,e.HandlebarsEnvironment=c;function t(g){return g&&g.__esModule?g:{default:g}}var s=We(),r=t(dt()),i=Ui(),o=il(),n=t(Wi()),a=Xi(),h="4.7.10";e.VERSION=h;var u=8;e.COMPILER_REVISION=u;var p=7;e.LAST_COMPATIBLE_COMPILER_REVISION=p;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"};e.REVISION_CHANGES=l;var f="[object Object]";function c(g,v,_){this.helpers=g||{},this.partials=v||{},this.decorators=_||{},i.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:n.default,log:n.default.log,registerHelper:function(v,_){if(s.toString.call(v)===f){if(_)throw new r.default("Arg not supported with multiple helpers");s.extend(this.helpers,v)}else this.helpers[v]=_},unregisterHelper:function(v){delete this.helpers[v]},registerPartial:function(v,_){if(s.toString.call(v)===f)s.extend(this.partials,v);else{if(typeof _>"u")throw new r.default('Attempting to register a partial called "'+v+'" as undefined');this.partials[v]=_}},unregisterPartial:function(v){delete this.partials[v]},registerDecorator:function(v,_){if(s.toString.call(v)===f){if(_)throw new r.default("Arg not supported with multiple decorators");s.extend(this.decorators,v)}else this.decorators[v]=_},unregisterDecorator:function(v){delete this.decorators[v]},resetLoggedPropertyAccesses:function(){a.resetLoggedProperties()}};var d=n.default.log;e.log=d,e.createFrame=s.createFrame,e.logger=n.default})),nl=he(((e,t)=>{e.__esModule=!0;function s(r){this.string=r}s.prototype.toString=s.prototype.toHTML=function(){return""+this.string},e.default=s,t.exports=e.default})),ol=he((e=>{e.__esModule=!0,e.wrapHelper=t;function t(s,r){return typeof s!="function"?s:function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=r(o),s.apply(this,arguments)}}})),al=he((e=>{e.__esModule=!0,e.checkRevision=u,e.template=p,e.wrapProgram=l,e.resolvePartial=f,e.invokePartial=c,e.noop=d;function t(m){return m&&m.__esModule?m:{default:m}}function s(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var k in m)Object.prototype.hasOwnProperty.call(m,k)&&(b[k]=m[k]);return b.default=m,b}var r=s(We()),i=t(dt()),o=Ir(),n=Ui(),a=ol(),h=Xi();function u(m){var b=m&&m[0]||1,k=o.COMPILER_REVISION;if(!(b>=o.LAST_COMPATIBLE_COMPILER_REVISION&&b<=o.COMPILER_REVISION))if(b<o.LAST_COMPATIBLE_COMPILER_REVISION){var w=o.REVISION_CHANGES[k],A=o.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 ("+w+") or downgrade your runtime to an older version ("+A+").")}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 ("+m[1]+").")}function p(m,b){if(!b)throw new i.default("No environment passed to template");if(!m||!m.main)throw new i.default("Unknown template object: "+typeof m);m.main.decorator=m.main_d,b.VM.checkRevision(m.compiler);var k=m.compiler&&m.compiler[0]===7;function w(P,E,T){T.hash&&(E=r.extend({},E,T.hash),T.ids&&(T.ids[0]=!0)),P=b.VM.resolvePartial.call(this,P,E,T),T.hooks=this.hooks,T.protoAccessControl=this.protoAccessControl;var $=b.VM.invokePartial.call(this,P,E,T);if($==null&&r.isFunction(P))throw new i.default("The partial "+T.name+" returned no output: partials must return a string");if($==null&&b.compile){if(typeof P!="string")throw new i.default("The partial "+T.name+" could not be compiled: partials must be strings or functions returning strings");T.partials[T.name]=b.compile(P,m.compilerOptions,b),$=T.partials[T.name](E,T)}if($!=null){if(T.indent){for(var H=$.split(`
68
+ `),V=0,x=H.length;V<x&&!(!H[V]&&V+1===x);V++)H[V]=T.indent+H[V];$=H.join(`
69
+ `)}return $}else throw new i.default("The partial "+T.name+" could not be compiled when running in runtime-only mode")}var A={strict:function(E,T,$){if(!E||!(T in E))throw new i.default('"'+T+'" not defined in '+E,{loc:$});return A.lookupProperty(E,T)},lookupProperty:function(E,T){var $=E[T];if($==null||Object.prototype.hasOwnProperty.call(E,T)&&!h.isPrototypeConstructor(E,T,$)||h.resultIsAllowed($,A.protoAccessControl,T))return $},lookup:function(E,T){for(var $=E.length,H=0;H<$;H++){var V=E[H]&&A.lookupProperty(E[H],T);if(V!=null)return V}},lambda:function(E,T){return typeof E=="function"?E.call(T):E},escapeExpression:r.escapeExpression,invokePartial:w,fn:function(E){var T=m[E];return T.decorator=m[E+"_d"],T},programs:[],program:function(E,T,$,H,V){var x=this.programs[E],M=this.fn(E);return T||V||H||$?x=l(this,E,M,T,$,H,V):x||(x=this.programs[E]=l(this,E,M)),x},data:function(E,T){for(;E&&T--;)E=E._parent;return E},mergeIfNeeded:function(E,T){var $=E||T;return E&&T&&E!==T&&($=r.extend({},T,E)),$},nullContext:Object.seal({}),noop:b.VM.noop,compilerInfo:m.compiler};function O(P){var E=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],T=E.data;O._setup(E),!E.partial&&m.useData&&(T=v(P,T));var $=void 0,H=m.useBlockParams?[]:void 0;m.useDepths&&(E.depths?$=P!=E.depths[0]?[P].concat(E.depths):E.depths:$=[P]);function V(x){return""+m.main(A,x,A.helpers,A.partials,T,H,$)}return V=_(m.main,V,A,E.depths||[],T,H),V(P,E)}return O.isTop=!0,O._setup=function(P){if(P.partial)A.protoAccessControl=P.protoAccessControl,A.helpers=P.helpers,A.partials=P.partials,A.decorators=P.decorators,A.hooks=P.hooks;else{var E={};S(E,b.helpers,A),S(E,P.helpers,A),A.helpers=E,m.usePartial&&(A.partials=A.mergeIfNeeded(P.partials,b.partials)),(m.usePartial||m.useDecorators)&&(A.decorators=r.extend({},b.decorators,P.decorators)),A.hooks={},A.protoAccessControl=h.createProtoAccessControl(P);var T=P.allowCallsToHelperMissing||k;n.moveHelperToHooks(A,"helperMissing",T),n.moveHelperToHooks(A,"blockHelperMissing",T)}},O._child=function(P,E,T,$){if(m.useBlockParams&&!T)throw new i.default("must pass block params");if(m.useDepths&&!$)throw new i.default("must pass parent depths");return l(A,P,m[P],E,0,T,$)},O}function l(m,b,k,w,A,O,P){function E(T){var $=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],H=P;return P&&T!=P[0]&&!(T===m.nullContext&&P[0]===null)&&(H=[T].concat(P)),k(m,T,m.helpers,m.partials,$.data||w,O&&[$.blockParams].concat(O),H)}return E=_(k,E,m,P,w,O),E.program=b,E.depth=P?P.length:0,E.blockParams=A||0,E}function f(m,b,k){return m?typeof m!="function"&&!k.name&&(k.name=m,m=g(k.partials,m)):k.name==="@partial-block"?m=g(k.data,"partial-block"):m=g(k.partials,k.name),m}function c(m,b,k){var w=g(k.data,"partial-block");k.partial=!0,k.ids&&(k.data.contextPath=k.ids[0]||k.data.contextPath);var A=void 0;if(k.fn&&k.fn!==d&&(function(){k.data=o.createFrame(k.data);var O=k.fn;A=k.data["partial-block"]=function(E){var T=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return T.data=o.createFrame(T.data),T.data["partial-block"]=w,O(E,T)},O.partials&&(k.partials=r.extend({},k.partials,O.partials))})(),m===void 0&&A&&(m=A),m===void 0)throw new i.default("The partial "+k.name+" could not be found");if(m instanceof Function)return m(b,k)}function d(){return""}function g(m,b){if(m&&Object.prototype.hasOwnProperty.call(m,b))return m[b]}function v(m,b){return(!b||!("root"in b))&&(b=b?o.createFrame(b):{},b.root=m),b}function _(m,b,k,w,A,O){if(m.decorator){var P={};b=m.decorator(b,P,k,w&&w[0],A,O,w),r.extend(b,P)}return b}function S(m,b,k){b&&Object.keys(b).forEach(function(w){var A=b[w];m[w]=y(A,k)})}function y(m,b){var k=b.lookupProperty;return a.wrapHelper(m,function(w){return w.lookupProperty=k,w})}})),Yi=he(((e,t)=>{e.__esModule=!0,e.default=function(s){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var r=globalThis.Handlebars;s.noConflict=function(){return globalThis.Handlebars===s&&(globalThis.Handlebars=r),s}},t.exports=e.default})),ll=he(((e,t)=>{e.__esModule=!0;function s(f){return f&&f.__esModule?f:{default:f}}function r(f){if(f&&f.__esModule)return f;var c={};if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d]);return c.default=f,c}var i=r(Ir()),o=s(nl()),n=s(dt()),a=r(We()),h=r(al()),u=s(Yi());function p(){var f=new i.HandlebarsEnvironment;return a.extend(f,i),f.SafeString=o.default,f.Exception=n.default,f.Utils=a,f.escapeExpression=a.escapeExpression,f.VM=h,f.template=function(c){return h.template(c,f)},f}var l=p();l.create=p,u.default(l),l.default=l,e.default=l,t.exports=e.default})),Gi=he(((e,t)=>{e.__esModule=!0;var s={helpers:{helperExpression:function(i){return i.type==="SubExpression"||(i.type==="MustacheStatement"||i.type==="BlockStatement")&&!!(i.params&&i.params.length||i.hash)},scopedId:function(i){return/^\.|this\b/.test(i.original)},simpleId:function(i){return i.parts.length===1&&!s.helpers.scopedId(i)&&!i.depth}}};e.default=s,t.exports=e.default})),cl=he(((e,t)=>{e.__esModule=!0;var s=(function(){var r={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(n,a,h,u,p,l,f){var c=l.length-1;switch(p){case 1:return l[c-1];case 2:this.$=u.prepareProgram(l[c]);break;case 3:this.$=l[c];break;case 4:this.$=l[c];break;case 5:this.$=l[c];break;case 6:this.$=l[c];break;case 7:this.$=l[c];break;case 8:this.$=l[c];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[c]),strip:u.stripFlags(l[c],l[c]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[c],value:l[c],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[c-2],l[c-1],l[c],this._$);break;case 12:this.$={path:l[c-3],params:l[c-2],hash:l[c-1]};break;case 13:this.$=u.prepareBlock(l[c-3],l[c-2],l[c-1],l[c],!1,this._$);break;case 14:this.$=u.prepareBlock(l[c-3],l[c-2],l[c-1],l[c],!0,this._$);break;case 15:this.$={open:l[c-5],path:l[c-4],params:l[c-3],hash:l[c-2],blockParams:l[c-1],strip:u.stripFlags(l[c-5],l[c])};break;case 16:this.$={path:l[c-4],params:l[c-3],hash:l[c-2],blockParams:l[c-1],strip:u.stripFlags(l[c-5],l[c])};break;case 17:this.$={path:l[c-4],params:l[c-3],hash:l[c-2],blockParams:l[c-1],strip:u.stripFlags(l[c-5],l[c])};break;case 18:this.$={strip:u.stripFlags(l[c-1],l[c-1]),program:l[c]};break;case 19:var d=u.prepareBlock(l[c-2],l[c-1],l[c],l[c],!1,this._$),g=u.prepareProgram([d],l[c-1].loc);g.chained=!0,this.$={strip:l[c-2].strip,program:g,chain:!0};break;case 20:this.$=l[c];break;case 21:this.$={path:l[c-1],strip:u.stripFlags(l[c-2],l[c])};break;case 22:this.$=u.prepareMustache(l[c-3],l[c-2],l[c-1],l[c-4],u.stripFlags(l[c-4],l[c]),this._$);break;case 23:this.$=u.prepareMustache(l[c-3],l[c-2],l[c-1],l[c-4],u.stripFlags(l[c-4],l[c]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[c-3],params:l[c-2],hash:l[c-1],indent:"",strip:u.stripFlags(l[c-4],l[c]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[c-2],l[c-1],l[c],this._$);break;case 26:this.$={path:l[c-3],params:l[c-2],hash:l[c-1],strip:u.stripFlags(l[c-4],l[c])};break;case 27:this.$=l[c];break;case 28:this.$=l[c];break;case 29:this.$={type:"SubExpression",path:l[c-3],params:l[c-2],hash:l[c-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[c],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[c-2]),value:l[c],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[c-1]);break;case 33:this.$=l[c];break;case 34:this.$=l[c];break;case 35:this.$={type:"StringLiteral",value:l[c],original:l[c],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[c]),original:Number(l[c]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[c]==="true",original:l[c]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[c];break;case 41:this.$=l[c];break;case 42:this.$=u.preparePath(!0,l[c],this._$);break;case 43:this.$=u.preparePath(!1,l[c],this._$);break;case 44:l[c-2].push({part:u.id(l[c]),original:l[c],separator:l[c-1]}),this.$=l[c-2];break;case 45:this.$=[{part:u.id(l[c]),original:l[c]}];break;case 46:this.$=[];break;case 47:l[c-1].push(l[c]);break;case 48:this.$=[];break;case 49:l[c-1].push(l[c]);break;case 50:this.$=[];break;case 51:l[c-1].push(l[c]);break;case 58:this.$=[];break;case 59:l[c-1].push(l[c]);break;case 64:this.$=[];break;case 65:l[c-1].push(l[c]);break;case 70:this.$=[];break;case 71:l[c-1].push(l[c]);break;case 78:this.$=[];break;case 79:l[c-1].push(l[c]);break;case 82:this.$=[];break;case 83:l[c-1].push(l[c]);break;case 86:this.$=[];break;case 87:l[c-1].push(l[c]);break;case 90:this.$=[];break;case 91:l[c-1].push(l[c]);break;case 94:this.$=[];break;case 95:l[c-1].push(l[c]);break;case 98:this.$=[l[c]];break;case 99:l[c-1].push(l[c]);break;case 100:this.$=[l[c]];break;case 101:l[c-1].push(l[c])}},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(n,a){throw new Error(n)},parse:function(n){var a=this,h=[0],u=[null],p=[],l=this.table,f="",c=0,d=0,g=0;this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;p.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var H=a.lexer.lex()||1;return typeof H!="number"&&(H=a.symbols_[H]||H),H}for(var y,m,b,k,w,A={},O,P,E,T;;){if(b=h[h.length-1],this.defaultActions[b]?k=this.defaultActions[b]:((y===null||typeof y>"u")&&(y=S()),k=l[b]&&l[b][y]),typeof k>"u"||!k.length||!k[0]){var $="";if(!g){T=[];for(O in l[b])this.terminals_[O]&&O>2&&T.push("'"+this.terminals_[O]+"'");this.lexer.showPosition?$="Parse error on line "+(c+1)+`:
70
70
  `+this.lexer.showPosition()+`
71
- Expecting `+C.join(", ")+", got '"+(this.terminals_[y]||y)+"'":H="Parse error on line "+(c+1)+": Unexpected "+(y==1?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(H,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:v,expected:C})}}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(k[0]){case 1:h.push(y),u.push(this.lexer.yytext),f.push(this.lexer.yylloc),h.push(k[1]),y=null,m?(y=m,m=null):(p=this.lexer.yyleng,d=this.lexer.yytext,c=this.lexer.yylineno,v=this.lexer.yylloc,g>0&&g--);break;case 2:if(P=this.productions_[k[1]][1],E.$=u[u.length-P],E._$={first_line:f[f.length-(P||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(P||1)].first_column,last_column:f[f.length-1].last_column},_&&(E._$.range=[f[f.length-(P||1)].range[0],f[f.length-1].range[1]]),w=this.performAction.call(E,d,p,c,this.yy,k[1],u,f),typeof w<"u")return w;P&&(h=h.slice(0,-1*P*2),u=u.slice(0,-1*P),f=f.slice(0,-1*P)),h.push(this.productions_[k[1]][0]),u.push(E.$),f.push(E._$),A=l[h[h.length-2]][h[h.length-1]],h.push(A);break;case 3:return!0}}return!0}};r.lexer=(function(){var n={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(a){return this._input=a,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 a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var h=a.length,u=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h-1),this.offset-=h;var f=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),u.length-1&&(this.yylineno-=u.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:u?(u.length===f.length?this.yylloc.first_column:0)+f[f.length-u.length].length-u[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-h]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),h=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
72
- `+h+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,h,u,f,l;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),c=0;c<d.length&&(u=this._input.match(this.rules[d[c]]),!(u&&(!h||u[0].length>h[0].length)&&(h=u,f=c,!this.options.flex)));c++);return h?(l=h[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+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,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(h[0].length),this.matched+=h[0],a=this.performAction.call(this,this.yy,this,d[f],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
73
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},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(a){this.begin(a)}};return n.options={},n.performAction=function(a,h,u,f){function l(d,c){return h.yytext=h.yytext.substring(d,h.yyleng-c+d)}switch(u){case 0:if(h.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):h.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),h.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(h.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 h.yytext=l(1,2).replace(/\\"/g,'"'),80;case 32:return h.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 h.yytext=h.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},n.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.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}},n})();function i(){this.yy={}}return i.prototype=r,r.Parser=i,new i})();e.default=s,t.exports=e.default})),zi=ue((e=>{e.__esModule=!0;var t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];e.NODE_TYPES=t})),Ui=ue(((e,t)=>{e.__esModule=!0;function s(l){return l&&l.__esModule?l:{default:l}}var r=s(ft()),i=We(),n=zi();function o(){this.parents=[]}function a(l,d){return i.indexOf(n.NODE_TYPES,d)!==-1||!(d in o.prototype)&&typeof l[d]=="function"}o.prototype={constructor:o,mutating:!1,acceptKey:function(d,c){var p=this.accept(d[c]);if(this.mutating){if(p&&!a(this,p.type))throw new r.default('Unexpected node type "'+p.type+'" found when accepting '+c+" on "+d.type);d[c]=p}},acceptRequired:function(d,c){if(this.acceptKey(d,c),!d[c])throw new r.default(d.type+" requires "+c)},acceptArray:function(d){for(var c=0,p=d.length;c<p;c++)this.acceptKey(d,c),d[c]||(d.splice(c,1),c--,p--)},accept:function(d){if(d){if(!a(this,d.type)||!this[d.type])throw new r.default("Unknown type: "+d.type,d);this.current&&this.parents.unshift(this.current),this.current=d;var c=this[d.type](d);if(this.current=this.parents.shift(),!this.mutating||c)return c;if(c!==!1)return d}},Program:function(d){this.acceptArray(d.body)},MustacheStatement:h,Decorator:h,BlockStatement:u,DecoratorBlock:u,PartialStatement:f,PartialBlockStatement:function(d){f.call(this,d),this.acceptKey(d,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:h,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(d){this.acceptArray(d.pairs)},HashPair:function(d){this.acceptRequired(d,"value")}};function h(l){this.acceptRequired(l,"path"),this.acceptArray(l.params),this.acceptKey(l,"hash")}function u(l){h.call(this,l),this.acceptKey(l,"program"),this.acceptKey(l,"inverse")}function f(l){this.acceptRequired(l,"name"),this.acceptArray(l.params),this.acceptKey(l,"hash")}e.default=o,t.exports=e.default})),Qa=ue(((e,t)=>{e.__esModule=!0;function s(u){return u&&u.__esModule?u:{default:u}}var r=s(Ui());function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var f=!this.options.ignoreStandalone,l=!this.isRootSeen;this.isRootSeen=!0;for(var d=u.body,c=0,p=d.length;c<p;c++){var g=d[c],v=this.accept(g);if(v){var _=n(d,c,l),S=o(d,c,l),y=v.openStandalone&&_,m=v.closeStandalone&&S,b=v.inlineStandalone&&_&&S;v.close&&a(d,c,!0),v.open&&h(d,c,!0),f&&b&&(a(d,c),h(d,c)&&g.type==="PartialStatement"&&(g.indent=/(?:^|[^ \t])([ \t]+)$/.exec(d[c-1].original)[1])),f&&y&&(a((g.program||g.inverse).body),h(d,c)),f&&m&&(a(d,c),h((g.inverse||g.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var f=u.program||u.inverse,l=u.program&&u.inverse,d=l,c=l;if(l&&l.chained)for(d=l.body[0].program;c.chained;)c=c.body[c.body.length-1].program;var p={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:o(f.body),closeStandalone:n((d||f).body)};if(u.openStrip.close&&a(f.body,null,!0),l){var g=u.inverseStrip;g.open&&h(f.body,null,!0),g.close&&a(d.body,null,!0),u.closeStrip.open&&h(c.body,null,!0),!this.options.ignoreStandalone&&n(f.body)&&o(d.body)&&(h(f.body),a(d.body))}else u.closeStrip.open&&h(f.body,null,!0);return p},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var f=u.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}};function n(u,f,l){f===void 0&&(f=u.length);var d=u[f-1],c=u[f-2];if(!d)return l;if(d.type==="ContentStatement")return(c||!l?/(?:^|\S)[^\S\n]*\n\s*$/:/^\s*$|(?:^|\S)[^\S\n]*\n\s*$/).test(d.original)}function o(u,f,l){f===void 0&&(f=-1);var d=u[f+1],c=u[f+2];if(!d)return l;if(d.type==="ContentStatement")return(c||!l?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original)}function a(u,f,l){var d=u[f==null?0:f+1];if(!(!d||d.type!=="ContentStatement"||!l&&d.rightStripped)){var c=d.value;d.value=d.value.replace(l?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.value!==c}}function h(u,f,l){var d=u[f==null?u.length-1:f-1];if(!(!d||d.type!=="ContentStatement"||!l&&d.leftStripped)){var c=d.value;return d.value=d.value.replace(l?/(^|\S)\s+$/:/(^|[^ \t])[ \t]+$/,"$1"),d.leftStripped=d.value!==c,d.leftStripped}}e.default=i,t.exports=e.default})),Ja=ue((e=>{e.__esModule=!0,e.SourceLocation=i,e.id=n,e.stripFlags=o,e.stripComment=a,e.preparePath=h,e.prepareMustache=u,e.prepareRawBlock=f,e.prepareBlock=l,e.prepareProgram=d,e.preparePartialBlock=c;function t(p){return p&&p.__esModule?p:{default:p}}var s=t(ft());function r(p,g){if(g=g.path?g.path.original:g,p.path.original!==g){var v={loc:p.path.loc};throw new s.default(p.path.original+" doesn't match "+g,v)}}function i(p,g){this.source=p,this.start={line:g.first_line,column:g.first_column},this.end={line:g.last_line,column:g.last_column}}function n(p){return/^\[.*\]$/.test(p)?p.substring(1,p.length-1):p}function o(p,g){return{open:p.charAt(2)==="~",close:g.charAt(g.length-3)==="~"}}function a(p){return p.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function h(p,g,v){v=this.locInfo(v);for(var _=p?"@":"",S=[],y=0,m=0,b=g.length;m<b;m++){var k=g[m].part,w=g[m].original!==k;if(_+=(g[m].separator||"")+k,!w&&(k===".."||k==="."||k==="this")){if(S.length>0)throw new s.default("Invalid path: "+_,{loc:v});k===".."&&y++}else S.push(k)}return{type:"PathExpression",data:p,depth:y,parts:S,original:_,loc:v}}function u(p,g,v,_,S,y){var m=_.charAt(3)||_.charAt(2),b=m!=="{"&&m!=="&";return{type:/\*/.test(_)?"Decorator":"MustacheStatement",path:p,params:g,hash:v,escaped:b,strip:S,loc:this.locInfo(y)}}function f(p,g,v,_){r(p,v),_=this.locInfo(_);var S={type:"Program",body:g,strip:{},loc:_};return{type:"BlockStatement",path:p.path,params:p.params,hash:p.hash,program:S,openStrip:{},inverseStrip:{},closeStrip:{},loc:_}}function l(p,g,v,_,S,y){_&&_.path&&r(p,_);var m=/\*/.test(p.open);g.blockParams=p.blockParams;var b=void 0,k=void 0;if(v){if(m)throw new s.default("Unexpected inverse block on decorator",v);v.chain&&(v.program.body[0].closeStrip=_.strip),k=v.strip,b=v.program}return S&&(S=b,b=g,g=S),{type:m?"DecoratorBlock":"BlockStatement",path:p.path,params:p.params,hash:p.hash,program:g,inverse:b,openStrip:p.strip,inverseStrip:k,closeStrip:_&&_.strip,loc:this.locInfo(y)}}function d(p,g){if(!g&&p.length){var v=p[0].loc,_=p[p.length-1].loc;v&&_&&(g={source:v.source,start:{line:v.start.line,column:v.start.column},end:{line:_.end.line,column:_.end.column}})}return{type:"Program",body:p,strip:{},loc:g}}function c(p,g,v,_){return r(p,v),{type:"PartialBlockStatement",name:p.path,params:p.params,hash:p.hash,program:g,openStrip:p.strip,closeStrip:v&&v.strip,loc:this.locInfo(_)}}})),Ka=ue((e=>{e.__esModule=!0,e.parseWithoutProcessing=h,e.parse=u;function t(f){if(f&&f.__esModule)return f;var l={};if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(l[d]=f[d]);return l.default=f,l}function s(f){return f&&f.__esModule?f:{default:f}}var r=s(Za()),i=s(Qa()),n=t(Ja()),o=We();e.parser=r.default;var a={};o.extend(a,n);function h(f,l){return f.type==="Program"?f:(r.default.yy=a,a.locInfo=function(d){return new a.SourceLocation(l&&l.srcName,d)},r.default.parse(f))}function u(f,l){var d=h(f,l);return new i.default(l).accept(d)}})),ja=ue((e=>{e.__esModule=!0,e.Compiler=a,e.precompile=h,e.compile=u;function t(S){return S&&S.__esModule?S:{default:S}}var s=t(ft()),r=We(),i=t(Vi()),n=zi(),o=[].slice;function a(){}a.prototype={compiler:a,equals:function(y){var m=this.opcodes.length;if(y.opcodes.length!==m)return!1;for(var b=0;b<m;b++){var k=this.opcodes[b],w=y.opcodes[b];if(k.opcode!==w.opcode||!v(k.args,w.args))return!1}m=this.children.length;for(var b=0;b<m;b++)if(!this.children[b].equals(y.children[b]))return!1;return!0},guid:0,compile:function(y,m){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=m,this.stringParams=m.stringParams,this.trackIds=m.trackIds,m.blockParams=m.blockParams||[],m.knownHelpers=r.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},m.knownHelpers),this.accept(y)},compileProgram:function(y){var m=new this.compiler().compile(y,this.options),b=this.guid++;return this.usePartial=this.usePartial||m.usePartial,this.children[b]=m,this.useDepths=this.useDepths||m.useDepths,b},accept:function(y){if(r.indexOf(n.NODE_TYPES,y.type)===-1||!this[y.type])throw new s.default("Unknown type: "+y.type,y);this.sourceNode.unshift(y);var m=this[y.type](y);return this.sourceNode.shift(),m},Program:function(y){g(y),this.options.blockParams.unshift(y.blockParams);for(var m=y.body,b=m.length,k=0;k<b;k++)this.accept(m[k]);return this.options.blockParams.shift(),this.isSimple=b===1,this.blockParams=y.blockParams?y.blockParams.length:0,this},BlockStatement:function(y){_(y);var m=y.program,b=y.inverse;m=m&&this.compileProgram(m),b=b&&this.compileProgram(b);var k=this.classifySexpr(y);k==="helper"?this.helperSexpr(y,m,b):k==="simple"?(this.simpleSexpr(y),this.opcode("pushProgram",m),this.opcode("pushProgram",b),this.opcode("emptyHash"),this.opcode("blockValue",y.path.original)):(this.ambiguousSexpr(y,m,b),this.opcode("pushProgram",m),this.opcode("pushProgram",b),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(y){var m=y.program&&this.compileProgram(y.program),b=this.setupFullMustacheParams(y,m,void 0),k=y.path;this.useDecorators=!0,this.opcode("registerDecorator",b.length,k.original)},PartialStatement:function(y){this.usePartial=!0;var m=y.program;m&&(m=this.compileProgram(y.program));var b=y.params;if(b.length>1)throw new s.default("Unsupported number of partial arguments: "+b.length,y);b.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):b.push({type:"PathExpression",parts:[],depth:0}));var k=y.name.original,w=y.name.type==="SubExpression";w&&this.accept(y.name),this.setupFullMustacheParams(y,m,void 0,!0);var E=y.indent||"";this.options.preventIndent&&E&&(this.opcode("appendContent",E),E=""),this.opcode("invokePartial",w,k,E),this.opcode("append")},PartialBlockStatement:function(y){this.PartialStatement(y)},MustacheStatement:function(y){this.SubExpression(y),y.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(y){this.DecoratorBlock(y)},ContentStatement:function(y){if(y.value!=null&&typeof y.value!="string")throw f(y,"value must be a string");y.value&&this.opcode("appendContent",y.value)},CommentStatement:function(){},SubExpression:function(y){_(y);var m=this.classifySexpr(y);m==="simple"?this.simpleSexpr(y):m==="helper"?this.helperSexpr(y):this.ambiguousSexpr(y)},ambiguousSexpr:function(y,m,b){var k=y.path,w=k.parts[0],E=m!=null||b!=null;this.opcode("getContext",l(k)),this.opcode("pushProgram",m),this.opcode("pushProgram",b),k.strict=!0,this.accept(k),this.opcode("invokeAmbiguous",w,E)},simpleSexpr:function(y){var m=y.path;m.strict=!0,this.accept(m),this.opcode("resolvePossibleLambda")},helperSexpr:function(y,m,b){var k=this.setupFullMustacheParams(y,m,b),w=y.path,E=w.parts[0];if(this.options.knownHelpers[E])this.opcode("invokeKnownHelper",k.length,E);else{if(this.options.knownHelpersOnly)throw new s.default("You specified knownHelpersOnly, but used the unknown helper "+E,y);w.strict=!0,w.falsy=!0,this.accept(w),this.opcode("invokeHelper",k.length,w.original,i.default.helpers.simpleId(w))}},PathExpression:function(y){var m=l(y),b=p(y);this.addDepth(m),this.opcode("getContext",m);var k=b[0],w=i.default.helpers.scopedId(y),E=!m&&!w&&this.blockParamIndex(k);E?this.opcode("lookupBlockParam",E,b):k?y.data?(this.options.data=!0,this.opcode("lookupData",m,b,y.strict)):this.opcode("lookupOnContext",b,y.falsy,y.strict,w):this.opcode("pushContext")},StringLiteral:function(y){d(y),this.opcode("pushString",y.value)},NumberLiteral:function(y){d(y),this.opcode("pushLiteral",y.value)},BooleanLiteral:function(y){d(y),this.opcode("pushLiteral",y.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(y){var m=y.pairs,b=0,k=void 0;if(!r.isArray(m))throw f(y,"pairs must be an array");k=m.length;for(var w=0;w<k;w++)if(!m[w]||typeof m[w].key!="string")throw f(y,"pair keys must be strings");for(this.opcode("pushHash");b<k;b++)this.pushParam(m[b].value);for(;b--;)this.opcode("assignToHash",m[b].key);this.opcode("popHash")},opcode:function(y){this.opcodes.push({opcode:y,args:o.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(y){y&&(this.useDepths=!0)},classifySexpr:function(y){p(y.path);var m=i.default.helpers.simpleId(y.path),b=m&&!!this.blockParamIndex(y.path.parts[0]),k=!b&&i.default.helpers.helperExpression(y),w=!b&&(k||m);if(w&&!k){var E=y.path.parts[0],O=this.options;O.knownHelpers[E]?k=!0:O.knownHelpersOnly&&(w=!1)}return k?"helper":w?"ambiguous":"simple"},pushParams:function(y){for(var m=0,b=y.length;m<b;m++)this.pushParam(y[m])},pushParam:function(y){d(y);var m=y.value!=null?y.value:y.original||"",b=l(y);if(this.stringParams)typeof m!="number"&&typeof m!="boolean"&&(m=String(m)),m.replace&&(m=m.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),b&&this.addDepth(b),this.opcode("getContext",b),this.opcode("pushStringParam",m,y.type),y.type==="SubExpression"&&this.accept(y);else{if(this.trackIds){var k=void 0;if(y.parts&&!i.default.helpers.scopedId(y)&&!b&&(k=this.blockParamIndex(p(y)[0])),k){var w=y.parts.slice(1).join(".");this.opcode("pushId","BlockParam",k,w)}else m=y.original||m,m.replace&&(m=m.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",y.type,m)}this.accept(y)}},setupFullMustacheParams:function(y,m,b,k){var w=y.params;return this.pushParams(w),this.opcode("pushProgram",m),this.opcode("pushProgram",b),y.hash?this.accept(y.hash):this.opcode("emptyHash",k),w},blockParamIndex:function(y){for(var m=0,b=this.options.blockParams.length;m<b;m++){var k=this.options.blockParams[m],w=k&&r.indexOf(k,y);if(k&&w>=0)return[m,w]}}};function h(S,y,m){if(S==null||typeof S!="string"&&S.type!=="Program")throw new s.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+S);y=y||{},"data"in y||(y.data=!0),y.compat&&(y.useDepths=!0);var b=m.parse(S,y),k=new m.Compiler().compile(b,y);return new m.JavaScriptCompiler().compile(k,y)}function u(S,y,m){if(y===void 0&&(y={}),S==null||typeof S!="string"&&S.type!=="Program")throw new s.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+S);y=r.extend({},y),"data"in y||(y.data=!0),y.compat&&(y.useDepths=!0);var b=void 0;function k(){var E=m.parse(S,y),O=new m.Compiler().compile(E,y),P=new m.JavaScriptCompiler().compile(O,y,void 0,!0);return m.template(P)}function w(E,O){return b||(b=k()),b.call(this,E,O)}return w._setup=function(E){return b||(b=k()),b._setup(E)},w._child=function(E,O,P,A){return b||(b=k()),b._child(E,O,P,A)},w}function f(S,y){return new s.default("Invalid AST: "+S.type+" "+y,S)}function l(S){var y=S.depth;if(y==null)return 0;if(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y<0)throw f(S,"depth must be a non-negative integer");return y}function d(S){var y=S.value;if(S.type==="StringLiteral"&&typeof y!="string")throw f(S,"value must be a string");if(S.type==="NumberLiteral"&&typeof y!="number")throw f(S,"value must be a number");if(S.type==="BooleanLiteral"&&typeof y!="boolean")throw f(S,"value must be a boolean")}function c(S,y,m){if(!r.isArray(y))throw f(S,m+" must be an array");for(var b=0;b<y.length;b++)if(typeof y[b]!="string")throw f(S,m+" must only contain strings");return y}function p(S){return c(S,S.parts,"parts")}function g(S){S.blockParams!=null&&c(S,S.blockParams,"blockParams")}function v(S,y){if(S===y)return!0;if(r.isArray(S)&&r.isArray(y)&&S.length===y.length){for(var m=0;m<S.length;m++)if(!v(S[m],y[m]))return!1;return!0}}function _(S){if(!S.path.parts){var y=S.path;S.path={type:"PathExpression",data:!1,depth:0,parts:[y.original+""],original:y.original+"",loc:y.loc}}}})),el=ue((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(s){if(0<=s&&s<t.length)return t[s];throw new TypeError("Must be between 0 and 63: "+s)},e.decode=function(s){var r=65,i=90,n=97,o=122,a=48,h=57,u=43,f=47,l=26,d=52;return r<=s&&s<=i?s-r:n<=s&&s<=o?s-n+l:a<=s&&s<=h?s-a+d:s==u?62:s==f?63:-1}})),Wi=ue((e=>{var t=el(),s=5,r=1<<s,i=r-1,n=r;function o(h){return h<0?(-h<<1)+1:(h<<1)+0}function a(h){var u=(h&1)===1,f=h>>1;return u?-f:f}e.encode=function(u){var f="",l,d=o(u);do l=d&i,d>>>=s,d>0&&(l|=n),f+=t.encode(l);while(d>0);return f},e.decode=function(u,f,l){var d=u.length,c=0,p=0,g,v;do{if(f>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(v=t.decode(u.charCodeAt(f++)),v===-1)throw new Error("Invalid base64 digit: "+u.charAt(f-1));g=!!(v&n),v&=i,c=c+(v<<p),p+=s}while(g);l.value=a(c),l.rest=f}})),us=ue((e=>{function t(m,b,k){if(b in m)return m[b];if(arguments.length===3)return k;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var s=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(m){var b=m.match(s);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=i;function n(m){var b="";return m.scheme&&(b+=m.scheme+":"),b+="//",m.auth&&(b+=m.auth+"@"),m.host&&(b+=m.host),m.port&&(b+=":"+m.port),m.path&&(b+=m.path),b}e.urlGenerate=n;function o(m){var b=m,k=i(m);if(k){if(!k.path)return m;b=k.path}for(var w=e.isAbsolute(b),E=b.split(/\/+/),O,P=0,A=E.length-1;A>=0;A--)O=E[A],O==="."?E.splice(A,1):O===".."?P++:P>0&&(O===""?(E.splice(A+1,P),P=0):(E.splice(A,2),P--));return b=E.join("/"),b===""&&(b=w?"/":"."),k?(k.path=b,n(k)):b}e.normalize=o;function a(m,b){m===""&&(m="."),b===""&&(b=".");var k=i(b),w=i(m);if(w&&(m=w.path||"/"),k&&!k.scheme)return w&&(k.scheme=w.scheme),n(k);if(k||b.match(r))return b;if(w&&!w.host&&!w.path)return w.host=b,n(w);var E=b.charAt(0)==="/"?b:o(m.replace(/\/+$/,"")+"/"+b);return w?(w.path=E,n(w)):E}e.join=a,e.isAbsolute=function(m){return m.charAt(0)==="/"||s.test(m)};function h(m,b){m===""&&(m="."),m=m.replace(/\/$/,"");for(var k=0;b.indexOf(m+"/")!==0;){var w=m.lastIndexOf("/");if(w<0||(m=m.slice(0,w),m.match(/^([^\/]+:\/)?\/*$/)))return b;++k}return Array(k+1).join("../")+b.substr(m.length+1)}e.relative=h;var u=(function(){return!("__proto__"in Object.create(null))})();function f(m){return m}function l(m){return c(m)?"$"+m:m}e.toSetString=u?f:l;function d(m){return c(m)?m.slice(1):m}e.fromSetString=u?f:d;function c(m){if(!m)return!1;var b=m.length;if(b<9||m.charCodeAt(b-1)!==95||m.charCodeAt(b-2)!==95||m.charCodeAt(b-3)!==111||m.charCodeAt(b-4)!==116||m.charCodeAt(b-5)!==111||m.charCodeAt(b-6)!==114||m.charCodeAt(b-7)!==112||m.charCodeAt(b-8)!==95||m.charCodeAt(b-9)!==95)return!1;for(var k=b-10;k>=0;k--)if(m.charCodeAt(k)!==36)return!1;return!0}function p(m,b,k){var w=v(m.source,b.source);return w!==0||(w=m.originalLine-b.originalLine,w!==0)||(w=m.originalColumn-b.originalColumn,w!==0||k)||(w=m.generatedColumn-b.generatedColumn,w!==0)||(w=m.generatedLine-b.generatedLine,w!==0)?w:v(m.name,b.name)}e.compareByOriginalPositions=p;function g(m,b,k){var w=m.generatedLine-b.generatedLine;return w!==0||(w=m.generatedColumn-b.generatedColumn,w!==0||k)||(w=v(m.source,b.source),w!==0)||(w=m.originalLine-b.originalLine,w!==0)||(w=m.originalColumn-b.originalColumn,w!==0)?w:v(m.name,b.name)}e.compareByGeneratedPositionsDeflated=g;function v(m,b){return m===b?0:m===null?1:b===null?-1:m>b?1:-1}function _(m,b){var k=m.generatedLine-b.generatedLine;return k!==0||(k=m.generatedColumn-b.generatedColumn,k!==0)||(k=v(m.source,b.source),k!==0)||(k=m.originalLine-b.originalLine,k!==0)||(k=m.originalColumn-b.originalColumn,k!==0)?k:v(m.name,b.name)}e.compareByGeneratedPositionsInflated=_;function S(m){return JSON.parse(m.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function y(m,b,k){if(b=b||"",m&&(m[m.length-1]!=="/"&&b[0]!=="/"&&(m+="/"),b=m+b),k){var w=i(k);if(!w)throw new Error("sourceMapURL could not be parsed");if(w.path){var E=w.path.lastIndexOf("/");E>=0&&(w.path=w.path.substring(0,E+1))}b=a(n(w),b)}return o(b)}e.computeSourceURL=y})),Xi=ue((e=>{var t=us(),s=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(o,a){for(var h=new i,u=0,f=o.length;u<f;u++)h.add(o[u],a);return h},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(o,a){var h=r?o:t.toSetString(o),u=r?this.has(o):s.call(this._set,h),f=this._array.length;(!u||a)&&this._array.push(o),u||(r?this._set.set(o,f):this._set[h]=f)},i.prototype.has=function(o){if(r)return this._set.has(o);var a=t.toSetString(o);return s.call(this._set,a)},i.prototype.indexOf=function(o){if(r){var a=this._set.get(o);if(a>=0)return a}else{var h=t.toSetString(o);if(s.call(this._set,h))return this._set[h]}throw new Error('"'+o+'" is not in the set.')},i.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),tl=ue((e=>{var t=us();function s(i,n){var o=i.generatedLine,a=n.generatedLine,h=i.generatedColumn,u=n.generatedColumn;return a>o||a==o&&u>=h||t.compareByGeneratedPositionsInflated(i,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(n,o){this._array.forEach(n,o)},r.prototype.add=function(n){s(this._last,n)?(this._last=n,this._array.push(n)):(this._sorted=!1,this._array.push(n))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r})),Yi=ue((e=>{var t=Wi(),s=us(),r=Xi().ArraySet,i=tl().MappingList;function n(o){o||(o={}),this._file=s.getArg(o,"file",null),this._sourceRoot=s.getArg(o,"sourceRoot",null),this._skipValidation=s.getArg(o,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}n.prototype._version=3,n.fromSourceMap=function(a){var h=a.sourceRoot,u=new n({file:a.file,sourceRoot:h});return a.eachMapping(function(f){var l={generated:{line:f.generatedLine,column:f.generatedColumn}};f.source!=null&&(l.source=f.source,h!=null&&(l.source=s.relative(h,l.source)),l.original={line:f.originalLine,column:f.originalColumn},f.name!=null&&(l.name=f.name)),u.addMapping(l)}),a.sources.forEach(function(f){var l=f;h!==null&&(l=s.relative(h,f)),u._sources.has(l)||u._sources.add(l);var d=a.sourceContentFor(f);d!=null&&u.setSourceContent(f,d)}),u},n.prototype.addMapping=function(a){var h=s.getArg(a,"generated"),u=s.getArg(a,"original",null),f=s.getArg(a,"source",null),l=s.getArg(a,"name",null);this._skipValidation||this._validateMapping(h,u,f,l),f!=null&&(f=String(f),this._sources.has(f)||this._sources.add(f)),l!=null&&(l=String(l),this._names.has(l)||this._names.add(l)),this._mappings.add({generatedLine:h.line,generatedColumn:h.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:f,name:l})},n.prototype.setSourceContent=function(a,h){var u=a;this._sourceRoot!=null&&(u=s.relative(this._sourceRoot,u)),h!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[s.toSetString(u)]=h):this._sourcesContents&&(delete this._sourcesContents[s.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},n.prototype.applySourceMap=function(a,h,u){var f=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.`);f=a.file}var l=this._sourceRoot;l!=null&&(f=s.relative(l,f));var d=new r,c=new r;this._mappings.unsortedForEach(function(p){if(p.source===f&&p.originalLine!=null){var g=a.originalPositionFor({line:p.originalLine,column:p.originalColumn});g.source!=null&&(p.source=g.source,u!=null&&(p.source=s.join(u,p.source)),l!=null&&(p.source=s.relative(l,p.source)),p.originalLine=g.line,p.originalColumn=g.column,g.name!=null&&(p.name=g.name))}var v=p.source;v!=null&&!d.has(v)&&d.add(v);var _=p.name;_!=null&&!c.has(_)&&c.add(_)},this),this._sources=d,this._names=c,a.sources.forEach(function(p){var g=a.sourceContentFor(p);g!=null&&(u!=null&&(p=s.join(u,p)),l!=null&&(p=s.relative(l,p)),this.setSourceContent(p,g))},this)},n.prototype._validateMapping=function(a,h,u,f){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&&!f)){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:f}))}},n.prototype._serializeMappings=function(){for(var a=0,h=1,u=0,f=0,l=0,d=0,c="",p,g,v,_,S=this._mappings.toArray(),y=0,m=S.length;y<m;y++){if(g=S[y],p="",g.generatedLine!==h)for(a=0;g.generatedLine!==h;)p+=";",h++;else if(y>0){if(!s.compareByGeneratedPositionsInflated(g,S[y-1]))continue;p+=","}p+=t.encode(g.generatedColumn-a),a=g.generatedColumn,g.source!=null&&(_=this._sources.indexOf(g.source),p+=t.encode(_-d),d=_,p+=t.encode(g.originalLine-1-f),f=g.originalLine-1,p+=t.encode(g.originalColumn-u),u=g.originalColumn,g.name!=null&&(v=this._names.indexOf(g.name),p+=t.encode(v-l),l=v)),c+=p}return c},n.prototype._generateSourcesContent=function(a,h){return a.map(function(u){if(!this._sourcesContents)return null;h!=null&&(u=s.relative(h,u));var f=s.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,f)?this._sourcesContents[f]:null},this)},n.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},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=n})),sl=ue((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(s,r,i,n,o,a){var h=Math.floor((r-s)/2)+s,u=o(i,n[h],!0);return u===0?h:u>0?r-h>1?t(h,r,i,n,o,a):a==e.LEAST_UPPER_BOUND?r<n.length?r:-1:h:h-s>1?t(s,h,i,n,o,a):a==e.LEAST_UPPER_BOUND?h:s<0?-1:s}e.search=function(r,i,n,o){if(i.length===0)return-1;var a=t(-1,i.length,r,i,n,o||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&n(i[a],i[a-1],!0)===0;)--a;return a}})),rl=ue((e=>{function t(i,n,o){var a=i[n];i[n]=i[o],i[o]=a}function s(i,n){return Math.round(i+Math.random()*(n-i))}function r(i,n,o,a){if(o<a){var h=s(o,a),u=o-1;t(i,h,a);for(var f=i[a],l=o;l<a;l++)n(i[l],f)<=0&&(u+=1,t(i,u,l));t(i,u+1,l);var d=u+1;r(i,n,o,d-1),r(i,n,d+1,a)}}e.quickSort=function(i,n){r(i,n,0,i.length-1)}})),il=ue((e=>{var t=us(),s=sl(),r=Xi().ArraySet,i=Wi(),n=rl().quickSort;function o(f,l){var d=f;return typeof f=="string"&&(d=t.parseSourceMapInput(f)),d.sections!=null?new u(d,l):new a(d,l)}o.fromSourceMap=function(f,l){return a.fromSourceMap(f,l)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(l,d){var c=l.charAt(d);return c===";"||c===","},o.prototype._parseMappings=function(l,d){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(l,d,c){var p=d||null,g=c||o.GENERATED_ORDER,v;switch(g){case o.GENERATED_ORDER:v=this._generatedMappings;break;case o.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;v.map(function(S){var y=S.source===null?null:this._sources.at(S.source);return y=t.computeSourceURL(_,y,this._sourceMapURL),{source:y,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(l,p)},o.prototype.allGeneratedPositionsFor=function(l){var d=t.getArg(l,"line"),c={source:t.getArg(l,"source"),originalLine:d,originalColumn:t.getArg(l,"column",0)};if(c.source=this._findSourceIndex(c.source),c.source<0)return[];var p=[],g=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(g>=0){var v=this._originalMappings[g];if(l.column===void 0)for(var _=v.originalLine;v&&v.originalLine===_;)p.push({line:t.getArg(v,"generatedLine",null),column:t.getArg(v,"generatedColumn",null),lastColumn:t.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++g];else for(var S=v.originalColumn;v&&v.originalLine===d&&v.originalColumn==S;)p.push({line:t.getArg(v,"generatedLine",null),column:t.getArg(v,"generatedColumn",null),lastColumn:t.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++g]}return p},e.SourceMapConsumer=o;function a(f,l){var d=f;typeof f=="string"&&(d=t.parseSourceMapInput(f));var c=t.getArg(d,"version"),p=t.getArg(d,"sources"),g=t.getArg(d,"names",[]),v=t.getArg(d,"sourceRoot",null),_=t.getArg(d,"sourcesContent",null),S=t.getArg(d,"mappings"),y=t.getArg(d,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);v&&(v=t.normalize(v)),p=p.map(String).map(t.normalize).map(function(m){return v&&t.isAbsolute(v)&&t.isAbsolute(m)?t.relative(v,m):m}),this._names=r.fromArray(g.map(String),!0),this._sources=r.fromArray(p,!0),this._absoluteSources=this._sources.toArray().map(function(m){return t.computeSourceURL(v,m,l)}),this.sourceRoot=v,this.sourcesContent=_,this._mappings=S,this._sourceMapURL=l,this.file=y}a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.prototype._findSourceIndex=function(f){var l=f;if(this.sourceRoot!=null&&(l=t.relative(this.sourceRoot,l)),this._sources.has(l))return this._sources.indexOf(l);var d;for(d=0;d<this._absoluteSources.length;++d)if(this._absoluteSources[d]==f)return d;return-1},a.fromSourceMap=function(l,d){var c=Object.create(a.prototype),p=c._names=r.fromArray(l._names.toArray(),!0),g=c._sources=r.fromArray(l._sources.toArray(),!0);c.sourceRoot=l._sourceRoot,c.sourcesContent=l._generateSourcesContent(c._sources.toArray(),c.sourceRoot),c.file=l._file,c._sourceMapURL=d,c._absoluteSources=c._sources.toArray().map(function(w){return t.computeSourceURL(c.sourceRoot,w,d)});for(var v=l._mappings.toArray().slice(),_=c.__generatedMappings=[],S=c.__originalMappings=[],y=0,m=v.length;y<m;y++){var b=v[y],k=new h;k.generatedLine=b.generatedLine,k.generatedColumn=b.generatedColumn,b.source&&(k.source=g.indexOf(b.source),k.originalLine=b.originalLine,k.originalColumn=b.originalColumn,b.name&&(k.name=p.indexOf(b.name)),S.push(k)),_.push(k)}return n(c.__originalMappings,t.compareByOriginalPositions),c},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(l,d){for(var c=1,p=0,g=0,v=0,_=0,S=0,y=l.length,m=0,b={},k={},w=[],E=[],O,P,A,C,H;m<y;)if(l.charAt(m)===";")c++,m++,p=0;else if(l.charAt(m)===",")m++;else{for(O=new h,O.generatedLine=c,C=m;C<y&&!this._charIsMappingSeparator(l,C);C++);if(P=l.slice(m,C),A=b[P],A)m+=P.length;else{for(A=[];m<C;)i.decode(l,m,k),H=k.value,m=k.rest,A.push(H);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");b[P]=A}O.generatedColumn=p+A[0],p=O.generatedColumn,A.length>1&&(O.source=_+A[1],_+=A[1],O.originalLine=g+A[2],g=O.originalLine,O.originalLine+=1,O.originalColumn=v+A[3],v=O.originalColumn,A.length>4&&(O.name=S+A[4],S+=A[4])),E.push(O),typeof O.originalLine=="number"&&w.push(O)}n(E,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,n(w,t.compareByOriginalPositions),this.__originalMappings=w},a.prototype._findMapping=function(l,d,c,p,g,v){if(l[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+l[c]);if(l[p]<0)throw new TypeError("Column must be greater than or equal to 0, got "+l[p]);return s.search(l,d,g,v)},a.prototype.computeColumnSpans=function(){for(var l=0;l<this._generatedMappings.length;++l){var d=this._generatedMappings[l];if(l+1<this._generatedMappings.length){var c=this._generatedMappings[l+1];if(d.generatedLine===c.generatedLine){d.lastGeneratedColumn=c.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(l){var d={generatedLine:t.getArg(l,"line"),generatedColumn:t.getArg(l,"column")},c=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(l,"bias",o.GREATEST_LOWER_BOUND));if(c>=0){var p=this._generatedMappings[c];if(p.generatedLine===d.generatedLine){var g=t.getArg(p,"source",null);g!==null&&(g=this._sources.at(g),g=t.computeSourceURL(this.sourceRoot,g,this._sourceMapURL));var v=t.getArg(p,"name",null);return v!==null&&(v=this._names.at(v)),{source:g,line:t.getArg(p,"originalLine",null),column:t.getArg(p,"originalColumn",null),name:v}}}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(l){return l==null}):!1},a.prototype.sourceContentFor=function(l,d){if(!this.sourcesContent)return null;var c=this._findSourceIndex(l);if(c>=0)return this.sourcesContent[c];var p=l;this.sourceRoot!=null&&(p=t.relative(this.sourceRoot,p));var g;if(this.sourceRoot!=null&&(g=t.urlParse(this.sourceRoot))){var v=p.replace(/^file:\/\//,"");if(g.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!g.path||g.path=="/")&&this._sources.has("/"+p))return this.sourcesContent[this._sources.indexOf("/"+p)]}if(d)return null;throw new Error('"'+p+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(l){var d=t.getArg(l,"source");if(d=this._findSourceIndex(d),d<0)return{line:null,column:null,lastColumn:null};var c={source:d,originalLine:t.getArg(l,"line"),originalColumn:t.getArg(l,"column")},p=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(l,"bias",o.GREATEST_LOWER_BOUND));if(p>=0){var g=this._originalMappings[p];if(g.source===c.source)return{line:t.getArg(g,"generatedLine",null),column:t.getArg(g,"generatedColumn",null),lastColumn:t.getArg(g,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=a;function u(f,l){var d=f;typeof f=="string"&&(d=t.parseSourceMapInput(f));var c=t.getArg(d,"version"),p=t.getArg(d,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new r,this._names=new r;var g={line:-1,column:0};this._sections=p.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var _=t.getArg(v,"offset"),S=t.getArg(_,"line"),y=t.getArg(_,"column");if(S<g.line||S===g.line&&y<g.column)throw new Error("Section offsets must be ordered and non-overlapping.");return g=_,{generatedOffset:{generatedLine:S+1,generatedColumn:y+1},consumer:new o(t.getArg(v,"map"),l)}})}u.prototype=Object.create(o.prototype),u.prototype.constructor=o,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var f=[],l=0;l<this._sections.length;l++)for(var d=0;d<this._sections[l].consumer.sources.length;d++)f.push(this._sections[l].consumer.sources[d]);return f}}),u.prototype.originalPositionFor=function(l){var d={generatedLine:t.getArg(l,"line"),generatedColumn:t.getArg(l,"column")},c=s.search(d,this._sections,function(g,v){var _=g.generatedLine-v.generatedOffset.generatedLine;return _||g.generatedColumn-v.generatedOffset.generatedColumn}),p=this._sections[c];return p?p.consumer.originalPositionFor({line:d.generatedLine-(p.generatedOffset.generatedLine-1),column:d.generatedColumn-(p.generatedOffset.generatedLine===d.generatedLine?p.generatedOffset.generatedColumn-1:0),bias:l.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(l){return l.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(l,d){for(var c=0;c<this._sections.length;c++){var p=this._sections[c].consumer.sourceContentFor(l,!0);if(p)return p}if(d)return null;throw new Error('"'+l+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(l){for(var d=0;d<this._sections.length;d++){var c=this._sections[d];if(c.consumer._findSourceIndex(t.getArg(l,"source"))!==-1){var p=c.consumer.generatedPositionFor(l);if(p)return{line:p.line+(c.generatedOffset.generatedLine-1),column:p.column+(c.generatedOffset.generatedLine===p.line?c.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(l,d){this.__generatedMappings=[],this.__originalMappings=[];for(var c=0;c<this._sections.length;c++)for(var p=this._sections[c],g=p.consumer._generatedMappings,v=0;v<g.length;v++){var _=g[v],S=p.consumer._sources.at(_.source);S=t.computeSourceURL(p.consumer.sourceRoot,S,this._sourceMapURL),this._sources.add(S),S=this._sources.indexOf(S);var y=null;_.name&&(y=p.consumer._names.at(_.name),this._names.add(y),y=this._names.indexOf(y));var m={source:S,generatedLine:_.generatedLine+(p.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(p.generatedOffset.generatedLine===_.generatedLine?p.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:y};this.__generatedMappings.push(m),typeof m.originalLine=="number"&&this.__originalMappings.push(m)}n(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),n(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=u})),nl=ue((e=>{var t=Yi().SourceMapGenerator,s=us(),r=/(\r?\n)/,i=10,n="$$$isSourceNode$$$";function o(a,h,u,f,l){this.children=[],this.sourceContents={},this.line=a??null,this.column=h??null,this.source=u??null,this.name=l??null,this[n]=!0,f!=null&&this.add(f)}o.fromStringWithSourceMap=function(h,u,f){var l=new o,d=h.split(r),c=0,p=function(){return y()+(y()||"");function y(){return c<d.length?d[c++]:void 0}},g=1,v=0,_=null;return u.eachMapping(function(y){if(_!==null)if(g<y.generatedLine)S(_,p()),g++,v=0;else{var m=d[c]||"",b=m.substr(0,y.generatedColumn-v);d[c]=m.substr(y.generatedColumn-v),v=y.generatedColumn,S(_,b),_=y;return}for(;g<y.generatedLine;)l.add(p()),g++;if(v<y.generatedColumn){var m=d[c]||"";l.add(m.substr(0,y.generatedColumn)),d[c]=m.substr(y.generatedColumn),v=y.generatedColumn}_=y},this),c<d.length&&(_&&S(_,p()),l.add(d.splice(c).join(""))),u.sources.forEach(function(y){var m=u.sourceContentFor(y);m!=null&&(f!=null&&(y=s.join(f,y)),l.setSourceContent(y,m))}),l;function S(y,m){if(y===null||y.source===void 0)l.add(m);else{var b=f?s.join(f,y.source):y.source;l.add(new o(y.originalLine,y.originalColumn,b,m,y.name))}}},o.prototype.add=function(h){if(Array.isArray(h))h.forEach(function(u){this.add(u)},this);else if(h[n]||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},o.prototype.prepend=function(h){if(Array.isArray(h))for(var u=h.length-1;u>=0;u--)this.prepend(h[u]);else if(h[n]||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},o.prototype.walk=function(h){for(var u,f=0,l=this.children.length;f<l;f++)u=this.children[f],u[n]?u.walk(h):u!==""&&h(u,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(h){var u,f,l=this.children.length;if(l>0){for(u=[],f=0;f<l-1;f++)u.push(this.children[f]),u.push(h);u.push(this.children[f]),this.children=u}return this},o.prototype.replaceRight=function(h,u){var f=this.children[this.children.length-1];return f[n]?f.replaceRight(h,u):typeof f=="string"?this.children[this.children.length-1]=f.replace(h,u):this.children.push("".replace(h,u)),this},o.prototype.setSourceContent=function(h,u){this.sourceContents[s.toSetString(h)]=u},o.prototype.walkSourceContents=function(h){for(var u=0,f=this.children.length;u<f;u++)this.children[u][n]&&this.children[u].walkSourceContents(h);for(var l=Object.keys(this.sourceContents),u=0,f=l.length;u<f;u++)h(s.fromSetString(l[u]),this.sourceContents[l[u]])},o.prototype.toString=function(){var h="";return this.walk(function(u){h+=u}),h},o.prototype.toStringWithSourceMap=function(h){var u={code:"",line:1,column:0},f=new t(h),l=!1,d=null,c=null,p=null,g=null;return this.walk(function(v,_){u.code+=v,_.source!==null&&_.line!==null&&_.column!==null?((d!==_.source||c!==_.line||p!==_.column||g!==_.name)&&f.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:u.line,column:u.column},name:_.name}),d=_.source,c=_.line,p=_.column,g=_.name,l=!0):l&&(f.addMapping({generated:{line:u.line,column:u.column}}),d=null,l=!1);for(var S=0,y=v.length;S<y;S++)v.charCodeAt(S)===i?(u.line++,u.column=0,S+1===y?(d=null,l=!1):l&&f.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:u.line,column:u.column},name:_.name})):u.column++}),this.walkSourceContents(function(v,_){f.setSourceContent(v,_)}),{code:u.code,map:f}},e.SourceNode=o})),ol=ue((e=>{e.SourceMapGenerator=Yi().SourceMapGenerator,e.SourceMapConsumer=il().SourceMapConsumer,e.SourceNode=nl().SourceNode})),al=ue((e=>{e.__esModule=!0,e.safeJsonLiteral=o;var t=We(),s=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,r=/<(?=!--|\/?script)/gi;function i(f){return f.replace(r,"\\u003C")}function n(f){return"\\u"+f.charCodeAt(0).toString(16)}function o(f){return i(JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,n))}var a=void 0;try{(typeof define!="function"||!define.amd)&&(a=ol().SourceNode)}catch{}a||(a=function(f,l,d,c){this.src="",c&&this.add(c)},a.prototype={add:function(l){t.isArray(l)&&(l=l.join("")),this.src+=l},prepend:function(l){t.isArray(l)&&(l=l.join("")),this.src=l+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function h(f,l,d){if(t.isArray(f)){for(var c=[],p=0,g=f.length;p<g;p++)c.push(l.wrap(f[p],d));return c}else if(typeof f=="boolean"||typeof f=="number")return f+"";return f}function u(f){this.srcFile=f,this.source=[]}u.prototype={isEmpty:function(){return!this.source.length},prepend:function(l,d){this.source.unshift(this.wrap(l,d))},push:function(l,d){this.source.push(this.wrap(l,d))},merge:function(){var l=this.empty();return this.each(function(d){l.add([" ",d,`
74
- `])}),l},each:function(l){for(var d=0,c=this.source.length;d<c;d++)l(this.source[d])},empty:function(){var l=this.currentLocation||{start:{}};return new a(l.start.line,l.start.column,this.srcFile)},wrap:function(l){var d=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return l instanceof a?l:(l=h(l,this,d),new a(d.start.line,d.start.column,this.srcFile,l))},functionCall:function(l,d,c){return c=this.generateList(c),this.wrap([l,d?"."+d+"(":"(",c,")"])},quotedString:function(l){return l=l+"",s.test(l)?o(l):'"'+l+'"'},objectLiteral:function(l){var d=this,c=[];Object.keys(l).forEach(function(g){var v=h(l[g],d);v!=="undefined"&&c.push([d.quotedString(g),":",v])});var p=this.generateList(c);return p.prepend("{"),p.add("}"),p},generateList:function(l){for(var d=this.empty(),c=0,p=l.length;c<p;c++)c&&d.add(","),d.add(h(l[c],this));return d},generateArray:function(l){var d=this.generateList(l);return d.prepend("["),d.add("]"),d}},e.default=u})),ll=ue(((e,t)=>{e.__esModule=!0;function s(d){return d&&d.__esModule?d:{default:d}}var r=Er(),i=s(ft()),n=We(),o=al(),a=s(o);function h(d){this.value=d}function u(){}u.prototype={nameLookup:function(c,p){return this.internalNameLookup(c,p)},depthedLookup:function(c){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(c),")"]},compilerInfo:function(){var c=r.COMPILER_REVISION;return[c,r.REVISION_CHANGES[c]]},appendToBuffer:function(c,p,g){return n.isArray(c)||(c=[c]),c=this.source.wrap(c,p),this.environment.isSimple?["return ",c,";"]:g?["buffer += ",c,";"]:(c.appendToBuffer=!0,c)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(c,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",c,",",this.quotedString(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(c,p,g,v){this.environment=c,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,this.name=this.environment.name,this.isChild=!!g,this.context=g||{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,p),this.useDepths=this.useDepths||c.useDepths||c.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||c.useBlockParams;var _=c.opcodes,S=void 0,y=void 0,m=void 0,b=void 0;for(m=0,b=_.length;m<b;m++)S=_[m],this.source.currentLocation=S.loc,y=y||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=y,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(),`;
71
+ Expecting `+T.join(", ")+", got '"+(this.terminals_[y]||y)+"'":$="Parse error on line "+(c+1)+": Unexpected "+(y==1?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError($,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:v,expected:T})}}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(k[0]){case 1:h.push(y),u.push(this.lexer.yytext),p.push(this.lexer.yylloc),h.push(k[1]),y=null,m?(y=m,m=null):(d=this.lexer.yyleng,f=this.lexer.yytext,c=this.lexer.yylineno,v=this.lexer.yylloc,g>0&&g--);break;case 2:if(P=this.productions_[k[1]][1],A.$=u[u.length-P],A._$={first_line:p[p.length-(P||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(P||1)].first_column,last_column:p[p.length-1].last_column},_&&(A._$.range=[p[p.length-(P||1)].range[0],p[p.length-1].range[1]]),w=this.performAction.call(A,f,d,c,this.yy,k[1],u,p),typeof w<"u")return w;P&&(h=h.slice(0,-1*P*2),u=u.slice(0,-1*P),p=p.slice(0,-1*P)),h.push(this.productions_[k[1]][0]),u.push(A.$),p.push(A._$),E=l[h[h.length-2]][h[h.length-1]],h.push(E);break;case 3:return!0}}return!0}};r.lexer=(function(){var o={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(a){return this._input=a,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 a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var h=a.length,u=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h-1),this.offset-=h;var p=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),u.length-1&&(this.yylineno-=u.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:u?(u.length===p.length?this.yylloc.first_column:0)+p[p.length-u.length].length-u[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-h]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),h=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
72
+ `+h+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,h,u,p,l;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),c=0;c<f.length&&(u=this._input.match(this.rules[f[c]]),!(u&&(!h||u[0].length>h[0].length)&&(h=u,p=c,!this.options.flex)));c++);return h?(l=h[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+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,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(h[0].length),this.matched+=h[0],a=this.performAction.call(this,this.yy,this,f[p],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
73
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},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(a){this.begin(a)}};return o.options={},o.performAction=function(a,h,u,p){function l(f,c){return h.yytext=h.yytext.substring(f,h.yyleng-c+f)}switch(u){case 0:if(h.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):h.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),h.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(h.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 h.yytext=l(1,2).replace(/\\"/g,'"'),80;case 32:return h.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 h.yytext=h.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},o.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],o.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}},o})();function i(){this.yy={}}return i.prototype=r,r.Parser=i,new i})();e.default=s,t.exports=e.default})),Zi=he((e=>{e.__esModule=!0;var t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];e.NODE_TYPES=t})),Qi=he(((e,t)=>{e.__esModule=!0;function s(l){return l&&l.__esModule?l:{default:l}}var r=s(dt()),i=We(),o=Zi();function n(){this.parents=[]}function a(l,f){return i.indexOf(o.NODE_TYPES,f)!==-1||!(f in n.prototype)&&typeof l[f]=="function"}n.prototype={constructor:n,mutating:!1,acceptKey:function(f,c){var d=this.accept(f[c]);if(this.mutating){if(d&&!a(this,d.type))throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+c+" on "+f.type);f[c]=d}},acceptRequired:function(f,c){if(this.acceptKey(f,c),!f[c])throw new r.default(f.type+" requires "+c)},acceptArray:function(f){for(var c=0,d=f.length;c<d;c++)this.acceptKey(f,c),f[c]||(f.splice(c,1),c--,d--)},accept:function(f){if(f){if(!a(this,f.type)||!this[f.type])throw new r.default("Unknown type: "+f.type,f);this.current&&this.parents.unshift(this.current),this.current=f;var c=this[f.type](f);if(this.current=this.parents.shift(),!this.mutating||c)return c;if(c!==!1)return f}},Program:function(f){this.acceptArray(f.body)},MustacheStatement:h,Decorator:h,BlockStatement:u,DecoratorBlock:u,PartialStatement:p,PartialBlockStatement:function(f){p.call(this,f),this.acceptKey(f,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:h,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 h(l){this.acceptRequired(l,"path"),this.acceptArray(l.params),this.acceptKey(l,"hash")}function u(l){h.call(this,l),this.acceptKey(l,"program"),this.acceptKey(l,"inverse")}function p(l){this.acceptRequired(l,"name"),this.acceptArray(l.params),this.acceptKey(l,"hash")}e.default=n,t.exports=e.default})),ul=he(((e,t)=>{e.__esModule=!0;function s(u){return u&&u.__esModule?u:{default:u}}var r=s(Qi());function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var p=!this.options.ignoreStandalone,l=!this.isRootSeen;this.isRootSeen=!0;for(var f=u.body,c=0,d=f.length;c<d;c++){var g=f[c],v=this.accept(g);if(v){var _=o(f,c,l),S=n(f,c,l),y=v.openStandalone&&_,m=v.closeStandalone&&S,b=v.inlineStandalone&&_&&S;v.close&&a(f,c,!0),v.open&&h(f,c,!0),p&&b&&(a(f,c),h(f,c)&&g.type==="PartialStatement"&&(g.indent=/(?:^|[^ \t])([ \t]+)$/.exec(f[c-1].original)[1])),p&&y&&(a((g.program||g.inverse).body),h(f,c)),p&&m&&(a(f,c),h((g.inverse||g.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var p=u.program||u.inverse,l=u.program&&u.inverse,f=l,c=l;if(l&&l.chained)for(f=l.body[0].program;c.chained;)c=c.body[c.body.length-1].program;var d={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:n(p.body),closeStandalone:o((f||p).body)};if(u.openStrip.close&&a(p.body,null,!0),l){var g=u.inverseStrip;g.open&&h(p.body,null,!0),g.close&&a(f.body,null,!0),u.closeStrip.open&&h(c.body,null,!0),!this.options.ignoreStandalone&&o(p.body)&&n(f.body)&&(h(p.body),a(f.body))}else u.closeStrip.open&&h(p.body,null,!0);return d},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var p=u.strip||{};return{inlineStandalone:!0,open:p.open,close:p.close}};function o(u,p,l){p===void 0&&(p=u.length);var f=u[p-1],c=u[p-2];if(!f)return l;if(f.type==="ContentStatement")return(c||!l?/(?:^|\S)[^\S\n]*\n\s*$/:/^\s*$|(?:^|\S)[^\S\n]*\n\s*$/).test(f.original)}function n(u,p,l){p===void 0&&(p=-1);var f=u[p+1],c=u[p+2];if(!f)return l;if(f.type==="ContentStatement")return(c||!l?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function a(u,p,l){var f=u[p==null?0:p+1];if(!(!f||f.type!=="ContentStatement"||!l&&f.rightStripped)){var c=f.value;f.value=f.value.replace(l?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==c}}function h(u,p,l){var f=u[p==null?u.length-1:p-1];if(!(!f||f.type!=="ContentStatement"||!l&&f.leftStripped)){var c=f.value;return f.value=f.value.replace(l?/(^|\S)\s+$/:/(^|[^ \t])[ \t]+$/,"$1"),f.leftStripped=f.value!==c,f.leftStripped}}e.default=i,t.exports=e.default})),hl=he((e=>{e.__esModule=!0,e.SourceLocation=i,e.id=o,e.stripFlags=n,e.stripComment=a,e.preparePath=h,e.prepareMustache=u,e.prepareRawBlock=p,e.prepareBlock=l,e.prepareProgram=f,e.preparePartialBlock=c;function t(d){return d&&d.__esModule?d:{default:d}}var s=t(dt());function r(d,g){if(g=g.path?g.path.original:g,d.path.original!==g){var v={loc:d.path.loc};throw new s.default(d.path.original+" doesn't match "+g,v)}}function i(d,g){this.source=d,this.start={line:g.first_line,column:g.first_column},this.end={line:g.last_line,column:g.last_column}}function o(d){return/^\[.*\]$/.test(d)?d.substring(1,d.length-1):d}function n(d,g){return{open:d.charAt(2)==="~",close:g.charAt(g.length-3)==="~"}}function a(d){return d.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function h(d,g,v){v=this.locInfo(v);for(var _=d?"@":"",S=[],y=0,m=0,b=g.length;m<b;m++){var k=g[m].part,w=g[m].original!==k;if(_+=(g[m].separator||"")+k,!w&&(k===".."||k==="."||k==="this")){if(S.length>0)throw new s.default("Invalid path: "+_,{loc:v});k===".."&&y++}else S.push(k)}return{type:"PathExpression",data:d,depth:y,parts:S,original:_,loc:v}}function u(d,g,v,_,S,y){var m=_.charAt(3)||_.charAt(2),b=m!=="{"&&m!=="&";return{type:/\*/.test(_)?"Decorator":"MustacheStatement",path:d,params:g,hash:v,escaped:b,strip:S,loc:this.locInfo(y)}}function p(d,g,v,_){r(d,v),_=this.locInfo(_);var S={type:"Program",body:g,strip:{},loc:_};return{type:"BlockStatement",path:d.path,params:d.params,hash:d.hash,program:S,openStrip:{},inverseStrip:{},closeStrip:{},loc:_}}function l(d,g,v,_,S,y){_&&_.path&&r(d,_);var m=/\*/.test(d.open);g.blockParams=d.blockParams;var b=void 0,k=void 0;if(v){if(m)throw new s.default("Unexpected inverse block on decorator",v);v.chain&&(v.program.body[0].closeStrip=_.strip),k=v.strip,b=v.program}return S&&(S=b,b=g,g=S),{type:m?"DecoratorBlock":"BlockStatement",path:d.path,params:d.params,hash:d.hash,program:g,inverse:b,openStrip:d.strip,inverseStrip:k,closeStrip:_&&_.strip,loc:this.locInfo(y)}}function f(d,g){if(!g&&d.length){var v=d[0].loc,_=d[d.length-1].loc;v&&_&&(g={source:v.source,start:{line:v.start.line,column:v.start.column},end:{line:_.end.line,column:_.end.column}})}return{type:"Program",body:d,strip:{},loc:g}}function c(d,g,v,_){return r(d,v),{type:"PartialBlockStatement",name:d.path,params:d.params,hash:d.hash,program:g,openStrip:d.strip,closeStrip:v&&v.strip,loc:this.locInfo(_)}}})),pl=he((e=>{e.__esModule=!0,e.parseWithoutProcessing=h,e.parse=u;function t(p){if(p&&p.__esModule)return p;var l={};if(p!=null)for(var f in p)Object.prototype.hasOwnProperty.call(p,f)&&(l[f]=p[f]);return l.default=p,l}function s(p){return p&&p.__esModule?p:{default:p}}var r=s(cl()),i=s(ul()),o=t(hl()),n=We();e.parser=r.default;var a={};n.extend(a,o);function h(p,l){return p.type==="Program"?p:(r.default.yy=a,a.locInfo=function(f){return new a.SourceLocation(l&&l.srcName,f)},r.default.parse(p))}function u(p,l){var f=h(p,l);return new i.default(l).accept(f)}})),fl=he((e=>{e.__esModule=!0,e.Compiler=a,e.precompile=h,e.compile=u;function t(S){return S&&S.__esModule?S:{default:S}}var s=t(dt()),r=We(),i=t(Gi()),o=Zi(),n=[].slice;function a(){}a.prototype={compiler:a,equals:function(y){var m=this.opcodes.length;if(y.opcodes.length!==m)return!1;for(var b=0;b<m;b++){var k=this.opcodes[b],w=y.opcodes[b];if(k.opcode!==w.opcode||!v(k.args,w.args))return!1}m=this.children.length;for(var b=0;b<m;b++)if(!this.children[b].equals(y.children[b]))return!1;return!0},guid:0,compile:function(y,m){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=m,this.stringParams=m.stringParams,this.trackIds=m.trackIds,m.blockParams=m.blockParams||[],m.knownHelpers=r.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},m.knownHelpers),this.accept(y)},compileProgram:function(y){var m=new this.compiler().compile(y,this.options),b=this.guid++;return this.usePartial=this.usePartial||m.usePartial,this.children[b]=m,this.useDepths=this.useDepths||m.useDepths,b},accept:function(y){if(r.indexOf(o.NODE_TYPES,y.type)===-1||!this[y.type])throw new s.default("Unknown type: "+y.type,y);this.sourceNode.unshift(y);var m=this[y.type](y);return this.sourceNode.shift(),m},Program:function(y){g(y),this.options.blockParams.unshift(y.blockParams);for(var m=y.body,b=m.length,k=0;k<b;k++)this.accept(m[k]);return this.options.blockParams.shift(),this.isSimple=b===1,this.blockParams=y.blockParams?y.blockParams.length:0,this},BlockStatement:function(y){_(y);var m=y.program,b=y.inverse;m=m&&this.compileProgram(m),b=b&&this.compileProgram(b);var k=this.classifySexpr(y);k==="helper"?this.helperSexpr(y,m,b):k==="simple"?(this.simpleSexpr(y),this.opcode("pushProgram",m),this.opcode("pushProgram",b),this.opcode("emptyHash"),this.opcode("blockValue",y.path.original)):(this.ambiguousSexpr(y,m,b),this.opcode("pushProgram",m),this.opcode("pushProgram",b),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(y){var m=y.program&&this.compileProgram(y.program),b=this.setupFullMustacheParams(y,m,void 0),k=y.path;this.useDecorators=!0,this.opcode("registerDecorator",b.length,k.original)},PartialStatement:function(y){this.usePartial=!0;var m=y.program;m&&(m=this.compileProgram(y.program));var b=y.params;if(b.length>1)throw new s.default("Unsupported number of partial arguments: "+b.length,y);b.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):b.push({type:"PathExpression",parts:[],depth:0}));var k=y.name.original,w=y.name.type==="SubExpression";w&&this.accept(y.name),this.setupFullMustacheParams(y,m,void 0,!0);var A=y.indent||"";this.options.preventIndent&&A&&(this.opcode("appendContent",A),A=""),this.opcode("invokePartial",w,k,A),this.opcode("append")},PartialBlockStatement:function(y){this.PartialStatement(y)},MustacheStatement:function(y){this.SubExpression(y),y.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(y){this.DecoratorBlock(y)},ContentStatement:function(y){if(y.value!=null&&typeof y.value!="string")throw p(y,"value must be a string");y.value&&this.opcode("appendContent",y.value)},CommentStatement:function(){},SubExpression:function(y){_(y);var m=this.classifySexpr(y);m==="simple"?this.simpleSexpr(y):m==="helper"?this.helperSexpr(y):this.ambiguousSexpr(y)},ambiguousSexpr:function(y,m,b){var k=y.path,w=k.parts[0],A=m!=null||b!=null;this.opcode("getContext",l(k)),this.opcode("pushProgram",m),this.opcode("pushProgram",b),k.strict=!0,this.accept(k),this.opcode("invokeAmbiguous",w,A)},simpleSexpr:function(y){var m=y.path;m.strict=!0,this.accept(m),this.opcode("resolvePossibleLambda")},helperSexpr:function(y,m,b){var k=this.setupFullMustacheParams(y,m,b),w=y.path,A=w.parts[0];if(this.options.knownHelpers[A])this.opcode("invokeKnownHelper",k.length,A);else{if(this.options.knownHelpersOnly)throw new s.default("You specified knownHelpersOnly, but used the unknown helper "+A,y);w.strict=!0,w.falsy=!0,this.accept(w),this.opcode("invokeHelper",k.length,w.original,i.default.helpers.simpleId(w))}},PathExpression:function(y){var m=l(y),b=d(y);this.addDepth(m),this.opcode("getContext",m);var k=b[0],w=i.default.helpers.scopedId(y),A=!m&&!w&&this.blockParamIndex(k);A?this.opcode("lookupBlockParam",A,b):k?y.data?(this.options.data=!0,this.opcode("lookupData",m,b,y.strict)):this.opcode("lookupOnContext",b,y.falsy,y.strict,w):this.opcode("pushContext")},StringLiteral:function(y){f(y),this.opcode("pushString",y.value)},NumberLiteral:function(y){f(y),this.opcode("pushLiteral",y.value)},BooleanLiteral:function(y){f(y),this.opcode("pushLiteral",y.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(y){var m=y.pairs,b=0,k=void 0;if(!r.isArray(m))throw p(y,"pairs must be an array");k=m.length;for(var w=0;w<k;w++)if(!m[w]||typeof m[w].key!="string")throw p(y,"pair keys must be strings");for(this.opcode("pushHash");b<k;b++)this.pushParam(m[b].value);for(;b--;)this.opcode("assignToHash",m[b].key);this.opcode("popHash")},opcode:function(y){this.opcodes.push({opcode:y,args:n.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(y){y&&(this.useDepths=!0)},classifySexpr:function(y){d(y.path);var m=i.default.helpers.simpleId(y.path),b=m&&!!this.blockParamIndex(y.path.parts[0]),k=!b&&i.default.helpers.helperExpression(y),w=!b&&(k||m);if(w&&!k){var A=y.path.parts[0],O=this.options;O.knownHelpers[A]?k=!0:O.knownHelpersOnly&&(w=!1)}return k?"helper":w?"ambiguous":"simple"},pushParams:function(y){for(var m=0,b=y.length;m<b;m++)this.pushParam(y[m])},pushParam:function(y){f(y);var m=y.value!=null?y.value:y.original||"",b=l(y);if(this.stringParams)typeof m!="number"&&typeof m!="boolean"&&(m=String(m)),m.replace&&(m=m.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),b&&this.addDepth(b),this.opcode("getContext",b),this.opcode("pushStringParam",m,y.type),y.type==="SubExpression"&&this.accept(y);else{if(this.trackIds){var k=void 0;if(y.parts&&!i.default.helpers.scopedId(y)&&!b&&(k=this.blockParamIndex(d(y)[0])),k){var w=y.parts.slice(1).join(".");this.opcode("pushId","BlockParam",k,w)}else m=y.original||m,m.replace&&(m=m.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",y.type,m)}this.accept(y)}},setupFullMustacheParams:function(y,m,b,k){var w=y.params;return this.pushParams(w),this.opcode("pushProgram",m),this.opcode("pushProgram",b),y.hash?this.accept(y.hash):this.opcode("emptyHash",k),w},blockParamIndex:function(y){for(var m=0,b=this.options.blockParams.length;m<b;m++){var k=this.options.blockParams[m],w=k&&r.indexOf(k,y);if(k&&w>=0)return[m,w]}}};function h(S,y,m){if(S==null||typeof S!="string"&&S.type!=="Program")throw new s.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+S);y=y||{},"data"in y||(y.data=!0),y.compat&&(y.useDepths=!0);var b=m.parse(S,y),k=new m.Compiler().compile(b,y);return new m.JavaScriptCompiler().compile(k,y)}function u(S,y,m){if(y===void 0&&(y={}),S==null||typeof S!="string"&&S.type!=="Program")throw new s.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+S);y=r.extend({},y),"data"in y||(y.data=!0),y.compat&&(y.useDepths=!0);var b=void 0;function k(){var A=m.parse(S,y),O=new m.Compiler().compile(A,y),P=new m.JavaScriptCompiler().compile(O,y,void 0,!0);return m.template(P)}function w(A,O){return b||(b=k()),b.call(this,A,O)}return w._setup=function(A){return b||(b=k()),b._setup(A)},w._child=function(A,O,P,E){return b||(b=k()),b._child(A,O,P,E)},w}function p(S,y){return new s.default("Invalid AST: "+S.type+" "+y,S)}function l(S){var y=S.depth;if(y==null)return 0;if(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y<0)throw p(S,"depth must be a non-negative integer");return y}function f(S){var y=S.value;if(S.type==="StringLiteral"&&typeof y!="string")throw p(S,"value must be a string");if(S.type==="NumberLiteral"&&typeof y!="number")throw p(S,"value must be a number");if(S.type==="BooleanLiteral"&&typeof y!="boolean")throw p(S,"value must be a boolean")}function c(S,y,m){if(!r.isArray(y))throw p(S,m+" must be an array");for(var b=0;b<y.length;b++)if(typeof y[b]!="string")throw p(S,m+" must only contain strings");return y}function d(S){return c(S,S.parts,"parts")}function g(S){S.blockParams!=null&&c(S,S.blockParams,"blockParams")}function v(S,y){if(S===y)return!0;if(r.isArray(S)&&r.isArray(y)&&S.length===y.length){for(var m=0;m<S.length;m++)if(!v(S[m],y[m]))return!1;return!0}}function _(S){if(!S.path.parts){var y=S.path;S.path={type:"PathExpression",data:!1,depth:0,parts:[y.original+""],original:y.original+"",loc:y.loc}}}})),dl=he((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(s){if(0<=s&&s<t.length)return t[s];throw new TypeError("Must be between 0 and 63: "+s)},e.decode=function(s){var r=65,i=90,o=97,n=122,a=48,h=57,u=43,p=47,l=26,f=52;return r<=s&&s<=i?s-r:o<=s&&s<=n?s-o+l:a<=s&&s<=h?s-a+f:s==u?62:s==p?63:-1}})),Ji=he((e=>{var t=dl(),s=5,r=1<<s,i=r-1,o=r;function n(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}e.encode=function(u){var p="",l,f=n(u);do l=f&i,f>>>=s,f>0&&(l|=o),p+=t.encode(l);while(f>0);return p},e.decode=function(u,p,l){var f=u.length,c=0,d=0,g,v;do{if(p>=f)throw new Error("Expected more digits in base 64 VLQ value.");if(v=t.decode(u.charCodeAt(p++)),v===-1)throw new Error("Invalid base64 digit: "+u.charAt(p-1));g=!!(v&o),v&=i,c=c+(v<<d),d+=s}while(g);l.value=a(c),l.rest=p}})),ps=he((e=>{function t(m,b,k){if(b in m)return m[b];if(arguments.length===3)return k;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var s=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(m){var b=m.match(s);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=i;function o(m){var b="";return m.scheme&&(b+=m.scheme+":"),b+="//",m.auth&&(b+=m.auth+"@"),m.host&&(b+=m.host),m.port&&(b+=":"+m.port),m.path&&(b+=m.path),b}e.urlGenerate=o;function n(m){var b=m,k=i(m);if(k){if(!k.path)return m;b=k.path}for(var w=e.isAbsolute(b),A=b.split(/\/+/),O,P=0,E=A.length-1;E>=0;E--)O=A[E],O==="."?A.splice(E,1):O===".."?P++:P>0&&(O===""?(A.splice(E+1,P),P=0):(A.splice(E,2),P--));return b=A.join("/"),b===""&&(b=w?"/":"."),k?(k.path=b,o(k)):b}e.normalize=n;function a(m,b){m===""&&(m="."),b===""&&(b=".");var k=i(b),w=i(m);if(w&&(m=w.path||"/"),k&&!k.scheme)return w&&(k.scheme=w.scheme),o(k);if(k||b.match(r))return b;if(w&&!w.host&&!w.path)return w.host=b,o(w);var A=b.charAt(0)==="/"?b:n(m.replace(/\/+$/,"")+"/"+b);return w?(w.path=A,o(w)):A}e.join=a,e.isAbsolute=function(m){return m.charAt(0)==="/"||s.test(m)};function h(m,b){m===""&&(m="."),m=m.replace(/\/$/,"");for(var k=0;b.indexOf(m+"/")!==0;){var w=m.lastIndexOf("/");if(w<0||(m=m.slice(0,w),m.match(/^([^\/]+:\/)?\/*$/)))return b;++k}return Array(k+1).join("../")+b.substr(m.length+1)}e.relative=h;var u=(function(){return!("__proto__"in Object.create(null))})();function p(m){return m}function l(m){return c(m)?"$"+m:m}e.toSetString=u?p:l;function f(m){return c(m)?m.slice(1):m}e.fromSetString=u?p:f;function c(m){if(!m)return!1;var b=m.length;if(b<9||m.charCodeAt(b-1)!==95||m.charCodeAt(b-2)!==95||m.charCodeAt(b-3)!==111||m.charCodeAt(b-4)!==116||m.charCodeAt(b-5)!==111||m.charCodeAt(b-6)!==114||m.charCodeAt(b-7)!==112||m.charCodeAt(b-8)!==95||m.charCodeAt(b-9)!==95)return!1;for(var k=b-10;k>=0;k--)if(m.charCodeAt(k)!==36)return!1;return!0}function d(m,b,k){var w=v(m.source,b.source);return w!==0||(w=m.originalLine-b.originalLine,w!==0)||(w=m.originalColumn-b.originalColumn,w!==0||k)||(w=m.generatedColumn-b.generatedColumn,w!==0)||(w=m.generatedLine-b.generatedLine,w!==0)?w:v(m.name,b.name)}e.compareByOriginalPositions=d;function g(m,b,k){var w=m.generatedLine-b.generatedLine;return w!==0||(w=m.generatedColumn-b.generatedColumn,w!==0||k)||(w=v(m.source,b.source),w!==0)||(w=m.originalLine-b.originalLine,w!==0)||(w=m.originalColumn-b.originalColumn,w!==0)?w:v(m.name,b.name)}e.compareByGeneratedPositionsDeflated=g;function v(m,b){return m===b?0:m===null?1:b===null?-1:m>b?1:-1}function _(m,b){var k=m.generatedLine-b.generatedLine;return k!==0||(k=m.generatedColumn-b.generatedColumn,k!==0)||(k=v(m.source,b.source),k!==0)||(k=m.originalLine-b.originalLine,k!==0)||(k=m.originalColumn-b.originalColumn,k!==0)?k:v(m.name,b.name)}e.compareByGeneratedPositionsInflated=_;function S(m){return JSON.parse(m.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function y(m,b,k){if(b=b||"",m&&(m[m.length-1]!=="/"&&b[0]!=="/"&&(m+="/"),b=m+b),k){var w=i(k);if(!w)throw new Error("sourceMapURL could not be parsed");if(w.path){var A=w.path.lastIndexOf("/");A>=0&&(w.path=w.path.substring(0,A+1))}b=a(o(w),b)}return n(b)}e.computeSourceURL=y})),Ki=he((e=>{var t=ps(),s=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(n,a){for(var h=new i,u=0,p=n.length;u<p;u++)h.add(n[u],a);return h},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(n,a){var h=r?n:t.toSetString(n),u=r?this.has(n):s.call(this._set,h),p=this._array.length;(!u||a)&&this._array.push(n),u||(r?this._set.set(n,p):this._set[h]=p)},i.prototype.has=function(n){if(r)return this._set.has(n);var a=t.toSetString(n);return s.call(this._set,a)},i.prototype.indexOf=function(n){if(r){var a=this._set.get(n);if(a>=0)return a}else{var h=t.toSetString(n);if(s.call(this._set,h))return this._set[h]}throw new Error('"'+n+'" is not in the set.')},i.prototype.at=function(n){if(n>=0&&n<this._array.length)return this._array[n];throw new Error("No element indexed by "+n)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),gl=he((e=>{var t=ps();function s(i,o){var n=i.generatedLine,a=o.generatedLine,h=i.generatedColumn,u=o.generatedColumn;return a>n||a==n&&u>=h||t.compareByGeneratedPositionsInflated(i,o)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(o,n){this._array.forEach(o,n)},r.prototype.add=function(o){s(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r})),ji=he((e=>{var t=Ji(),s=ps(),r=Ki().ArraySet,i=gl().MappingList;function o(n){n||(n={}),this._file=s.getArg(n,"file",null),this._sourceRoot=s.getArg(n,"sourceRoot",null),this._skipValidation=s.getArg(n,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(a){var h=a.sourceRoot,u=new o({file:a.file,sourceRoot:h});return a.eachMapping(function(p){var l={generated:{line:p.generatedLine,column:p.generatedColumn}};p.source!=null&&(l.source=p.source,h!=null&&(l.source=s.relative(h,l.source)),l.original={line:p.originalLine,column:p.originalColumn},p.name!=null&&(l.name=p.name)),u.addMapping(l)}),a.sources.forEach(function(p){var l=p;h!==null&&(l=s.relative(h,p)),u._sources.has(l)||u._sources.add(l);var f=a.sourceContentFor(p);f!=null&&u.setSourceContent(p,f)}),u},o.prototype.addMapping=function(a){var h=s.getArg(a,"generated"),u=s.getArg(a,"original",null),p=s.getArg(a,"source",null),l=s.getArg(a,"name",null);this._skipValidation||this._validateMapping(h,u,p,l),p!=null&&(p=String(p),this._sources.has(p)||this._sources.add(p)),l!=null&&(l=String(l),this._names.has(l)||this._names.add(l)),this._mappings.add({generatedLine:h.line,generatedColumn:h.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:p,name:l})},o.prototype.setSourceContent=function(a,h){var u=a;this._sourceRoot!=null&&(u=s.relative(this._sourceRoot,u)),h!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[s.toSetString(u)]=h):this._sourcesContents&&(delete this._sourcesContents[s.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.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 l=this._sourceRoot;l!=null&&(p=s.relative(l,p));var f=new r,c=new r;this._mappings.unsortedForEach(function(d){if(d.source===p&&d.originalLine!=null){var g=a.originalPositionFor({line:d.originalLine,column:d.originalColumn});g.source!=null&&(d.source=g.source,u!=null&&(d.source=s.join(u,d.source)),l!=null&&(d.source=s.relative(l,d.source)),d.originalLine=g.line,d.originalColumn=g.column,g.name!=null&&(d.name=g.name))}var v=d.source;v!=null&&!f.has(v)&&f.add(v);var _=d.name;_!=null&&!c.has(_)&&c.add(_)},this),this._sources=f,this._names=c,a.sources.forEach(function(d){var g=a.sourceContentFor(d);g!=null&&(u!=null&&(d=s.join(u,d)),l!=null&&(d=s.relative(l,d)),this.setSourceContent(d,g))},this)},o.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}))}},o.prototype._serializeMappings=function(){for(var a=0,h=1,u=0,p=0,l=0,f=0,c="",d,g,v,_,S=this._mappings.toArray(),y=0,m=S.length;y<m;y++){if(g=S[y],d="",g.generatedLine!==h)for(a=0;g.generatedLine!==h;)d+=";",h++;else if(y>0){if(!s.compareByGeneratedPositionsInflated(g,S[y-1]))continue;d+=","}d+=t.encode(g.generatedColumn-a),a=g.generatedColumn,g.source!=null&&(_=this._sources.indexOf(g.source),d+=t.encode(_-f),f=_,d+=t.encode(g.originalLine-1-p),p=g.originalLine-1,d+=t.encode(g.originalColumn-u),u=g.originalColumn,g.name!=null&&(v=this._names.indexOf(g.name),d+=t.encode(v-l),l=v)),c+=d}return c},o.prototype._generateSourcesContent=function(a,h){return a.map(function(u){if(!this._sourcesContents)return null;h!=null&&(u=s.relative(h,u));var p=s.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,p)?this._sourcesContents[p]:null},this)},o.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},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o})),ml=he((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(s,r,i,o,n,a){var h=Math.floor((r-s)/2)+s,u=n(i,o[h],!0);return u===0?h:u>0?r-h>1?t(h,r,i,o,n,a):a==e.LEAST_UPPER_BOUND?r<o.length?r:-1:h:h-s>1?t(s,h,i,o,n,a):a==e.LEAST_UPPER_BOUND?h:s<0?-1:s}e.search=function(r,i,o,n){if(i.length===0)return-1;var a=t(-1,i.length,r,i,o,n||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&o(i[a],i[a-1],!0)===0;)--a;return a}})),vl=he((e=>{function t(i,o,n){var a=i[o];i[o]=i[n],i[n]=a}function s(i,o){return Math.round(i+Math.random()*(o-i))}function r(i,o,n,a){if(n<a){var h=s(n,a),u=n-1;t(i,h,a);for(var p=i[a],l=n;l<a;l++)o(i[l],p)<=0&&(u+=1,t(i,u,l));t(i,u+1,l);var f=u+1;r(i,o,n,f-1),r(i,o,f+1,a)}}e.quickSort=function(i,o){r(i,o,0,i.length-1)}})),yl=he((e=>{var t=ps(),s=ml(),r=Ki().ArraySet,i=Ji(),o=vl().quickSort;function n(p,l){var f=p;return typeof p=="string"&&(f=t.parseSourceMapInput(p)),f.sections!=null?new u(f,l):new a(f,l)}n.fromSourceMap=function(p,l){return a.fromSourceMap(p,l)},n.prototype._version=3,n.prototype.__generatedMappings=null,Object.defineProperty(n.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),n.prototype.__originalMappings=null,Object.defineProperty(n.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),n.prototype._charIsMappingSeparator=function(l,f){var c=l.charAt(f);return c===";"||c===","},n.prototype._parseMappings=function(l,f){throw new Error("Subclasses must implement _parseMappings")},n.GENERATED_ORDER=1,n.ORIGINAL_ORDER=2,n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.prototype.eachMapping=function(l,f,c){var d=f||null,g=c||n.GENERATED_ORDER,v;switch(g){case n.GENERATED_ORDER:v=this._generatedMappings;break;case n.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;v.map(function(S){var y=S.source===null?null:this._sources.at(S.source);return y=t.computeSourceURL(_,y,this._sourceMapURL),{source:y,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(l,d)},n.prototype.allGeneratedPositionsFor=function(l){var f=t.getArg(l,"line"),c={source:t.getArg(l,"source"),originalLine:f,originalColumn:t.getArg(l,"column",0)};if(c.source=this._findSourceIndex(c.source),c.source<0)return[];var d=[],g=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(g>=0){var v=this._originalMappings[g];if(l.column===void 0)for(var _=v.originalLine;v&&v.originalLine===_;)d.push({line:t.getArg(v,"generatedLine",null),column:t.getArg(v,"generatedColumn",null),lastColumn:t.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++g];else for(var S=v.originalColumn;v&&v.originalLine===f&&v.originalColumn==S;)d.push({line:t.getArg(v,"generatedLine",null),column:t.getArg(v,"generatedColumn",null),lastColumn:t.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++g]}return d},e.SourceMapConsumer=n;function a(p,l){var f=p;typeof p=="string"&&(f=t.parseSourceMapInput(p));var c=t.getArg(f,"version"),d=t.getArg(f,"sources"),g=t.getArg(f,"names",[]),v=t.getArg(f,"sourceRoot",null),_=t.getArg(f,"sourcesContent",null),S=t.getArg(f,"mappings"),y=t.getArg(f,"file",null);if(c!=this._version)throw new Error("Unsupported version: "+c);v&&(v=t.normalize(v)),d=d.map(String).map(t.normalize).map(function(m){return v&&t.isAbsolute(v)&&t.isAbsolute(m)?t.relative(v,m):m}),this._names=r.fromArray(g.map(String),!0),this._sources=r.fromArray(d,!0),this._absoluteSources=this._sources.toArray().map(function(m){return t.computeSourceURL(v,m,l)}),this.sourceRoot=v,this.sourcesContent=_,this._mappings=S,this._sourceMapURL=l,this.file=y}a.prototype=Object.create(n.prototype),a.prototype.consumer=n,a.prototype._findSourceIndex=function(p){var l=p;if(this.sourceRoot!=null&&(l=t.relative(this.sourceRoot,l)),this._sources.has(l))return this._sources.indexOf(l);for(var f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==p)return f;return-1},a.fromSourceMap=function(l,f){var c=Object.create(a.prototype),d=c._names=r.fromArray(l._names.toArray(),!0),g=c._sources=r.fromArray(l._sources.toArray(),!0);c.sourceRoot=l._sourceRoot,c.sourcesContent=l._generateSourcesContent(c._sources.toArray(),c.sourceRoot),c.file=l._file,c._sourceMapURL=f,c._absoluteSources=c._sources.toArray().map(function(w){return t.computeSourceURL(c.sourceRoot,w,f)});for(var v=l._mappings.toArray().slice(),_=c.__generatedMappings=[],S=c.__originalMappings=[],y=0,m=v.length;y<m;y++){var b=v[y],k=new h;k.generatedLine=b.generatedLine,k.generatedColumn=b.generatedColumn,b.source&&(k.source=g.indexOf(b.source),k.originalLine=b.originalLine,k.originalColumn=b.originalColumn,b.name&&(k.name=d.indexOf(b.name)),S.push(k)),_.push(k)}return o(c.__originalMappings,t.compareByOriginalPositions),c},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(l,f){for(var c=1,d=0,g=0,v=0,_=0,S=0,y=l.length,m=0,b={},k={},w=[],A=[],O,P,E,T,$;m<y;)if(l.charAt(m)===";")c++,m++,d=0;else if(l.charAt(m)===",")m++;else{for(O=new h,O.generatedLine=c,T=m;T<y&&!this._charIsMappingSeparator(l,T);T++);if(P=l.slice(m,T),E=b[P],E)m+=P.length;else{for(E=[];m<T;)i.decode(l,m,k),$=k.value,m=k.rest,E.push($);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");b[P]=E}O.generatedColumn=d+E[0],d=O.generatedColumn,E.length>1&&(O.source=_+E[1],_+=E[1],O.originalLine=g+E[2],g=O.originalLine,O.originalLine+=1,O.originalColumn=v+E[3],v=O.originalColumn,E.length>4&&(O.name=S+E[4],S+=E[4])),A.push(O),typeof O.originalLine=="number"&&w.push(O)}o(A,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,o(w,t.compareByOriginalPositions),this.__originalMappings=w},a.prototype._findMapping=function(l,f,c,d,g,v){if(l[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+l[c]);if(l[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+l[d]);return s.search(l,f,g,v)},a.prototype.computeColumnSpans=function(){for(var l=0;l<this._generatedMappings.length;++l){var f=this._generatedMappings[l];if(l+1<this._generatedMappings.length){var c=this._generatedMappings[l+1];if(f.generatedLine===c.generatedLine){f.lastGeneratedColumn=c.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(l){var f={generatedLine:t.getArg(l,"line"),generatedColumn:t.getArg(l,"column")},c=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(l,"bias",n.GREATEST_LOWER_BOUND));if(c>=0){var d=this._generatedMappings[c];if(d.generatedLine===f.generatedLine){var g=t.getArg(d,"source",null);g!==null&&(g=this._sources.at(g),g=t.computeSourceURL(this.sourceRoot,g,this._sourceMapURL));var v=t.getArg(d,"name",null);return v!==null&&(v=this._names.at(v)),{source:g,line:t.getArg(d,"originalLine",null),column:t.getArg(d,"originalColumn",null),name:v}}}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(l){return l==null}):!1},a.prototype.sourceContentFor=function(l,f){if(!this.sourcesContent)return null;var c=this._findSourceIndex(l);if(c>=0)return this.sourcesContent[c];var d=l;this.sourceRoot!=null&&(d=t.relative(this.sourceRoot,d));var g;if(this.sourceRoot!=null&&(g=t.urlParse(this.sourceRoot))){var v=d.replace(/^file:\/\//,"");if(g.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!g.path||g.path=="/")&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(l){var f=t.getArg(l,"source");if(f=this._findSourceIndex(f),f<0)return{line:null,column:null,lastColumn:null};var c={source:f,originalLine:t.getArg(l,"line"),originalColumn:t.getArg(l,"column")},d=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(l,"bias",n.GREATEST_LOWER_BOUND));if(d>=0){var g=this._originalMappings[d];if(g.source===c.source)return{line:t.getArg(g,"generatedLine",null),column:t.getArg(g,"generatedColumn",null),lastColumn:t.getArg(g,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=a;function u(p,l){var f=p;typeof p=="string"&&(f=t.parseSourceMapInput(p));var c=t.getArg(f,"version"),d=t.getArg(f,"sections");if(c!=this._version)throw new Error("Unsupported version: "+c);this._sources=new r,this._names=new r;var g={line:-1,column:0};this._sections=d.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var _=t.getArg(v,"offset"),S=t.getArg(_,"line"),y=t.getArg(_,"column");if(S<g.line||S===g.line&&y<g.column)throw new Error("Section offsets must be ordered and non-overlapping.");return g=_,{generatedOffset:{generatedLine:S+1,generatedColumn:y+1},consumer:new n(t.getArg(v,"map"),l)}})}u.prototype=Object.create(n.prototype),u.prototype.constructor=n,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var p=[],l=0;l<this._sections.length;l++)for(var f=0;f<this._sections[l].consumer.sources.length;f++)p.push(this._sections[l].consumer.sources[f]);return p}}),u.prototype.originalPositionFor=function(l){var f={generatedLine:t.getArg(l,"line"),generatedColumn:t.getArg(l,"column")},c=s.search(f,this._sections,function(g,v){var _=g.generatedLine-v.generatedOffset.generatedLine;return _||g.generatedColumn-v.generatedOffset.generatedColumn}),d=this._sections[c];return d?d.consumer.originalPositionFor({line:f.generatedLine-(d.generatedOffset.generatedLine-1),column:f.generatedColumn-(d.generatedOffset.generatedLine===f.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:l.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(l){return l.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(l,f){for(var c=0;c<this._sections.length;c++){var d=this._sections[c].consumer.sourceContentFor(l,!0);if(d)return d}if(f)return null;throw new Error('"'+l+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(l){for(var f=0;f<this._sections.length;f++){var c=this._sections[f];if(c.consumer._findSourceIndex(t.getArg(l,"source"))!==-1){var d=c.consumer.generatedPositionFor(l);if(d)return{line:d.line+(c.generatedOffset.generatedLine-1),column:d.column+(c.generatedOffset.generatedLine===d.line?c.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(l,f){this.__generatedMappings=[],this.__originalMappings=[];for(var c=0;c<this._sections.length;c++)for(var d=this._sections[c],g=d.consumer._generatedMappings,v=0;v<g.length;v++){var _=g[v],S=d.consumer._sources.at(_.source);S=t.computeSourceURL(d.consumer.sourceRoot,S,this._sourceMapURL),this._sources.add(S),S=this._sources.indexOf(S);var y=null;_.name&&(y=d.consumer._names.at(_.name),this._names.add(y),y=this._names.indexOf(y));var m={source:S,generatedLine:_.generatedLine+(d.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(d.generatedOffset.generatedLine===_.generatedLine?d.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:y};this.__generatedMappings.push(m),typeof m.originalLine=="number"&&this.__originalMappings.push(m)}o(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),o(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=u})),bl=he((e=>{var t=ji().SourceMapGenerator,s=ps(),r=/(\r?\n)/,i=10,o="$$$isSourceNode$$$";function n(a,h,u,p,l){this.children=[],this.sourceContents={},this.line=a??null,this.column=h??null,this.source=u??null,this.name=l??null,this[o]=!0,p!=null&&this.add(p)}n.fromStringWithSourceMap=function(h,u,p){var l=new n,f=h.split(r),c=0,d=function(){return y()+(y()||"");function y(){return c<f.length?f[c++]:void 0}},g=1,v=0,_=null;return u.eachMapping(function(y){if(_!==null)if(g<y.generatedLine)S(_,d()),g++,v=0;else{var m=f[c]||"",b=m.substr(0,y.generatedColumn-v);f[c]=m.substr(y.generatedColumn-v),v=y.generatedColumn,S(_,b),_=y;return}for(;g<y.generatedLine;)l.add(d()),g++;if(v<y.generatedColumn){var m=f[c]||"";l.add(m.substr(0,y.generatedColumn)),f[c]=m.substr(y.generatedColumn),v=y.generatedColumn}_=y},this),c<f.length&&(_&&S(_,d()),l.add(f.splice(c).join(""))),u.sources.forEach(function(y){var m=u.sourceContentFor(y);m!=null&&(p!=null&&(y=s.join(p,y)),l.setSourceContent(y,m))}),l;function S(y,m){if(y===null||y.source===void 0)l.add(m);else{var b=p?s.join(p,y.source):y.source;l.add(new n(y.originalLine,y.originalColumn,b,m,y.name))}}},n.prototype.add=function(h){if(Array.isArray(h))h.forEach(function(u){this.add(u)},this);else if(h[o]||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},n.prototype.prepend=function(h){if(Array.isArray(h))for(var u=h.length-1;u>=0;u--)this.prepend(h[u]);else if(h[o]||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},n.prototype.walk=function(h){for(var u,p=0,l=this.children.length;p<l;p++)u=this.children[p],u[o]?u.walk(h):u!==""&&h(u,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(h){var u,p,l=this.children.length;if(l>0){for(u=[],p=0;p<l-1;p++)u.push(this.children[p]),u.push(h);u.push(this.children[p]),this.children=u}return this},n.prototype.replaceRight=function(h,u){var p=this.children[this.children.length-1];return p[o]?p.replaceRight(h,u):typeof p=="string"?this.children[this.children.length-1]=p.replace(h,u):this.children.push("".replace(h,u)),this},n.prototype.setSourceContent=function(h,u){this.sourceContents[s.toSetString(h)]=u},n.prototype.walkSourceContents=function(h){for(var u=0,p=this.children.length;u<p;u++)this.children[u][o]&&this.children[u].walkSourceContents(h);for(var l=Object.keys(this.sourceContents),u=0,p=l.length;u<p;u++)h(s.fromSetString(l[u]),this.sourceContents[l[u]])},n.prototype.toString=function(){var h="";return this.walk(function(u){h+=u}),h},n.prototype.toStringWithSourceMap=function(h){var u={code:"",line:1,column:0},p=new t(h),l=!1,f=null,c=null,d=null,g=null;return this.walk(function(v,_){u.code+=v,_.source!==null&&_.line!==null&&_.column!==null?((f!==_.source||c!==_.line||d!==_.column||g!==_.name)&&p.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:u.line,column:u.column},name:_.name}),f=_.source,c=_.line,d=_.column,g=_.name,l=!0):l&&(p.addMapping({generated:{line:u.line,column:u.column}}),f=null,l=!1);for(var S=0,y=v.length;S<y;S++)v.charCodeAt(S)===i?(u.line++,u.column=0,S+1===y?(f=null,l=!1):l&&p.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:u.line,column:u.column},name:_.name})):u.column++}),this.walkSourceContents(function(v,_){p.setSourceContent(v,_)}),{code:u.code,map:p}},e.SourceNode=n})),_l=he((e=>{e.SourceMapGenerator=ji().SourceMapGenerator,e.SourceMapConsumer=yl().SourceMapConsumer,e.SourceNode=bl().SourceNode})),Sl=he((e=>{e.__esModule=!0,e.safeJsonLiteral=n;var t=We(),s=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,r=/<(?=!--|\/?script)/gi;function i(p){return p.replace(r,"\\u003C")}function o(p){return"\\u"+p.charCodeAt(0).toString(16)}function n(p){return i(JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,o))}var a=void 0;try{(typeof define!="function"||!define.amd)&&(a=_l().SourceNode)}catch{}a||(a=function(p,l,f,c){this.src="",c&&this.add(c)},a.prototype={add:function(l){t.isArray(l)&&(l=l.join("")),this.src+=l},prepend:function(l){t.isArray(l)&&(l=l.join("")),this.src=l+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function h(p,l,f){if(t.isArray(p)){for(var c=[],d=0,g=p.length;d<g;d++)c.push(l.wrap(p[d],f));return c}else if(typeof p=="boolean"||typeof p=="number")return p+"";return p}function u(p){this.srcFile=p,this.source=[]}u.prototype={isEmpty:function(){return!this.source.length},prepend:function(l,f){this.source.unshift(this.wrap(l,f))},push:function(l,f){this.source.push(this.wrap(l,f))},merge:function(){var l=this.empty();return this.each(function(f){l.add([" ",f,`
74
+ `])}),l},each:function(l){for(var f=0,c=this.source.length;f<c;f++)l(this.source[f])},empty:function(){var l=this.currentLocation||{start:{}};return new a(l.start.line,l.start.column,this.srcFile)},wrap:function(l){var f=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return l instanceof a?l:(l=h(l,this,f),new a(f.start.line,f.start.column,this.srcFile,l))},functionCall:function(l,f,c){return c=this.generateList(c),this.wrap([l,f?"."+f+"(":"(",c,")"])},quotedString:function(l){return l=l+"",s.test(l)?n(l):'"'+l+'"'},objectLiteral:function(l){var f=this,c=[];Object.keys(l).forEach(function(g){var v=h(l[g],f);v!=="undefined"&&c.push([f.quotedString(g),":",v])});var d=this.generateList(c);return d.prepend("{"),d.add("}"),d},generateList:function(l){for(var f=this.empty(),c=0,d=l.length;c<d;c++)c&&f.add(","),f.add(h(l[c],this));return f},generateArray:function(l){var f=this.generateList(l);return f.prepend("["),f.add("]"),f}},e.default=u})),kl=he(((e,t)=>{e.__esModule=!0;function s(f){return f&&f.__esModule?f:{default:f}}var r=Ir(),i=s(dt()),o=We(),n=Sl(),a=s(n);function h(f){this.value=f}function u(){}u.prototype={nameLookup:function(c,d){return this.internalNameLookup(c,d)},depthedLookup:function(c){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(c),")"]},compilerInfo:function(){var c=r.COMPILER_REVISION;return[c,r.REVISION_CHANGES[c]]},appendToBuffer:function(c,d,g){return o.isArray(c)||(c=[c]),c=this.source.wrap(c,d),this.environment.isSimple?["return ",c,";"]:g?["buffer += ",c,";"]:(c.appendToBuffer=!0,c)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(c,d){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",c,",",this.quotedString(d),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(c,d,g,v){this.environment=c,this.options=d,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,this.name=this.environment.name,this.isChild=!!g,this.context=g||{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,d),this.useDepths=this.useDepths||c.useDepths||c.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||c.useBlockParams;var _=c.opcodes,S=void 0,y=void 0,m=void 0,b=void 0;for(m=0,b=_.length;m<b;m++)S=_[m],this.source.currentLocation=S.loc,y=y||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=y,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(),`;
75
75
  `]),this.decorators.push("return fn;"),v?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) {
76
76
  `),this.decorators.push(`}
77
- `),this.decorators=this.decorators.merge()));var k=this.createFunctionContext(v);if(this.isChild)return k;var w={compiler:this.compilerInfo(),main:k};this.decorators&&(w.main_d=this.decorators,w.useDecorators=!0);var E=this.context,O=E.programs,P=E.decorators;for(m=0,b=O.length;m<b;m++)w[m]=O[m],P[m]&&(w[m+"_d"]=P[m],w.useDecorators=!0);return this.environment.usePartial&&(w.usePartial=!0),this.options.data&&(w.useData=!0),this.useDepths&&(w.useDepths=!0),this.useBlockParams&&(w.useBlockParams=!0),this.options.compat&&(w.compat=!0),v?w.compilerOptions=this.options:(w.compiler=JSON.stringify(w.compiler),this.source.currentLocation={start:{line:1,column:0}},w=this.objectLiteral(w),p.srcName?(w=w.toStringWithSourceMap({file:p.destName}),w.map=w.map&&w.map.toString()):w=w.toString()),w},preamble:function(){this.lastContext=0,this.source=new a.default(this.options.srcName),this.decorators=new a.default(this.options.srcName)},createFunctionContext:function(c){var p=this,g="",v=this.stackVars.concat(this.registers.list);v.length>0&&(g+=", "+v.join(", "));var _=0;Object.keys(this.aliases).forEach(function(m){var b=p.aliases[m];b.children&&b.referenceCount>1&&(g+=", alias"+ ++_+"="+m,b.children[0]="alias"+_)}),this.lookupPropertyFunctionIsUsed&&(g+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var y=this.mergeSource(g);return c?(S.push(y),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
78
- `,y,"}"])},mergeSource:function(c){var p=this.environment.isSimple,g=!this.forceBuffer,v=void 0,_=void 0,S=void 0,y=void 0;return this.source.each(function(m){m.appendToBuffer?(S?m.prepend(" + "):S=m,y=m):(S&&(_?S.prepend("buffer += "):v=!0,y.add(";"),S=y=void 0),_=!0,p||(g=!1))}),g?S?(S.prepend("return "),y.add(";")):_||this.source.push('return "";'):(c+=", buffer = "+(v?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),y.add(";")):this.source.push("return buffer;")),c&&this.source.prepend("var "+c.substring(2)+(v?"":`;
77
+ `),this.decorators=this.decorators.merge()));var k=this.createFunctionContext(v);if(this.isChild)return k;var w={compiler:this.compilerInfo(),main:k};this.decorators&&(w.main_d=this.decorators,w.useDecorators=!0);var A=this.context,O=A.programs,P=A.decorators;for(m=0,b=O.length;m<b;m++)w[m]=O[m],P[m]&&(w[m+"_d"]=P[m],w.useDecorators=!0);return this.environment.usePartial&&(w.usePartial=!0),this.options.data&&(w.useData=!0),this.useDepths&&(w.useDepths=!0),this.useBlockParams&&(w.useBlockParams=!0),this.options.compat&&(w.compat=!0),v?w.compilerOptions=this.options:(w.compiler=JSON.stringify(w.compiler),this.source.currentLocation={start:{line:1,column:0}},w=this.objectLiteral(w),d.srcName?(w=w.toStringWithSourceMap({file:d.destName}),w.map=w.map&&w.map.toString()):w=w.toString()),w},preamble:function(){this.lastContext=0,this.source=new a.default(this.options.srcName),this.decorators=new a.default(this.options.srcName)},createFunctionContext:function(c){var d=this,g="",v=this.stackVars.concat(this.registers.list);v.length>0&&(g+=", "+v.join(", "));var _=0;Object.keys(this.aliases).forEach(function(m){var b=d.aliases[m];b.children&&b.referenceCount>1&&(g+=", alias"+ ++_+"="+m,b.children[0]="alias"+_)}),this.lookupPropertyFunctionIsUsed&&(g+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var y=this.mergeSource(g);return c?(S.push(y),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
78
+ `,y,"}"])},mergeSource:function(c){var d=this.environment.isSimple,g=!this.forceBuffer,v=void 0,_=void 0,S=void 0,y=void 0;return this.source.each(function(m){m.appendToBuffer?(S?m.prepend(" + "):S=m,y=m):(S&&(_?S.prepend("buffer += "):v=!0,y.add(";"),S=y=void 0),_=!0,d||(g=!1))}),g?S?(S.prepend("return "),y.add(";")):_||this.source.push('return "";'):(c+=", buffer = "+(v?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),y.add(";")):this.source.push("return buffer;")),c&&this.source.prepend("var "+c.substring(2)+(v?"":`;
79
79
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
80
80
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
81
81
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -83,14 +83,14 @@ Expecting `+C.join(", ")+", got '"+(this.terminals_[y]||y)+"'":H="Parse error on
83
83
  }
84
84
  return undefined
85
85
  }
86
- `.trim()},blockValue:function(c){var p=this.aliasable("container.hooks.blockHelperMissing"),g=[this.contextName(0)];this.setupHelperArgs(c,0,g);var v=this.popStack();g.splice(1,0,v),this.push(this.source.functionCall(p,"call",g))},ambiguousBlockValue:function(){var c=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var g=this.topStack();p.splice(1,0,g),this.pushSource(["if (!",this.lastHelper,") { ",g," = ",this.source.functionCall(c,"call",p),"}"])},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(p){return[" != null ? ",p,' : ""']}),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,p,g,v){var _=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(c[_++])):this.pushContext(),this.resolvePath("context",c,_,p,g)},lookupBlockParam:function(c,p){this.useBlockParams=!0,this.push(["blockParams[",c[0],"][",c[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(c,p,g){c?this.pushStackLiteral("container.data(data, "+c+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,g)},resolvePath:function(c,p,g,v,_){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(l(this.options.strict&&_,this,p,g,c));return}for(var y=p.length,m=function(k){S.replaceStack(function(w){var E=S.nameLookup(w,p[k],c);return v?[" && ",E]:[" != null ? ",E," : ",w]})},b=g;b<y;b++)m(b)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(c,p){this.pushContext(),this.pushString(p),p!=="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,p){var g=this.nameLookup("decorators",p,"decorator"),v=this.setupHelperArgs(p,c);this.decorators.push(["var decorator = ",g,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(c,p,g){var v=this.popStack(),_=this.setupHelper(c,p),S=[];g&&S.push(_.name),S.push(v),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var y=["(",this.itemsSeparatedBy(S,"||"),")"],m=this.source.functionCall(y,"call",_.callParams);this.push(m)},itemsSeparatedBy:function(c,p){var g=[];g.push(c[0]);for(var v=1;v<c.length;v++)g.push(p,c[v]);return g},invokeKnownHelper:function(c,p){var g=this.setupHelper(c,p);this.push(this.source.functionCall(g.name,"call",g.callParams))},invokeAmbiguous:function(c,p){this.useRegister("helper");var g=this.popStack();this.emptyHash();var v=this.setupHelper(0,c,p),_=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",c,"helper")," || ",g,")"];this.options.strict||(_[0]="(helper = ",_.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",_,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(c,p,g){var v=[],_=this.setupParams(p,1,v);c&&(p=this.popStack(),delete _.name),g&&(_.indent=this.quotedString(g)),_.helpers="helpers",_.partials="partials",_.decorators="container.decorators",c?v.unshift(p):v.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(_.depths="depths"),_=this.objectLiteral(_),v.push(_),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(c){var p=this.popStack(),g=void 0,v=void 0,_=void 0;this.trackIds&&(_=this.popStack()),this.stringParams&&(v=this.popStack(),g=this.popStack());var S=this.hash;g&&(S.contexts[c]=g),v&&(S.types[c]=v),_&&(S.ids[c]=_),S.values[c]=p},pushId:function(c,p,g){c==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(g?" + "+this.quotedString("."+g):"")):c==="PathExpression"?this.pushString(p):c==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(c,p){for(var g=c.children,v=void 0,_=void 0,S=0,y=g.length;S<y;S++){v=g[S],_=new this.compiler;var m=this.matchExistingProgram(v);if(m==null){var b=this.context.programs.push("")-1;v.index=b,v.name="program"+b,this.context.programs[b]=_.compile(v,p,this.context,!this.precompile),this.context.decorators[b]=_.decorators,this.context.environments[b]=v,this.useDepths=this.useDepths||_.useDepths,this.useBlockParams=this.useBlockParams||_.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=m.index,v.name="program"+m.index,this.useDepths=this.useDepths||m.useDepths,this.useBlockParams=this.useBlockParams||m.useBlockParams}},matchExistingProgram:function(c){for(var p=0,g=this.context.environments.length;p<g;p++){var v=this.context.environments[p];if(v&&v.equals(c))return v}},programExpression:function(c){var p=this.environment.children[c],g=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&g.push("blockParams"),this.useDepths&&g.push("depths"),"container.program("+g.join(", ")+")"},useRegister:function(c){this.registers[c]||(this.registers[c]=!0,this.registers.list.push(c))},push:function(c){return c instanceof h||(c=this.source.wrap(c)),this.inlineStack.push(c),c},pushStackLiteral:function(c){this.push(new h(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 p=["("],g=void 0,v=void 0,_=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof h)g=[S.value],p=["(",g],_=!0;else{v=!0;var y=this.incrStack();p=["((",this.push(y)," = ",S,")"],g=this.topStack()}var m=c.call(this,g);_||this.popStack(),v&&this.stackSlot--,this.push(p.concat(m,")"))},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 p=0,g=c.length;p<g;p++){var v=c[p];if(v instanceof h)this.compileStack.push(v);else{var _=this.incrStack();this.pushSource([_," = ",v,";"]),this.compileStack.push(_)}}},isInline:function(){return this.inlineStack.length},popStack:function(c){var p=this.isInline(),g=(p?this.inlineStack:this.compileStack).pop();if(!c&&g instanceof h)return g.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return g},topStack:function(){var c=this.isInline()?this.inlineStack:this.compileStack,p=c[c.length-1];return p instanceof h?p.value:p},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 p=this.aliases[c];return p?(p.referenceCount++,p):(p=this.aliases[c]=this.source.wrap(c),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(c,p,g){var v=[];return{params:v,paramsInit:this.setupHelperArgs(p,c,v,g),name:this.nameLookup("helpers",p,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(v)}},setupParams:function(c,p,g){var v={},_=[],S=[],y=[],m=!g,b=void 0;m&&(g=[]),v.name=this.quotedString(c),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var k=this.popStack(),w=this.popStack();(w||k)&&(v.fn=w||"container.noop",v.inverse=k||"container.noop");for(var E=p;E--;)b=this.popStack(),g[E]=b,this.trackIds&&(y[E]=this.popStack()),this.stringParams&&(S[E]=this.popStack(),_[E]=this.popStack());return m&&(v.args=this.source.generateArray(g)),this.trackIds&&(v.ids=this.source.generateArray(y)),this.stringParams&&(v.types=this.source.generateArray(S),v.contexts=this.source.generateArray(_)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(c,p,g,v){var _=this.setupParams(c,p,g);return _.loc=f(this),_=this.objectLiteral(_),v?(this.useRegister("options"),g.push("options"),["options=",_]):g?(g.push(_),""):_}},(function(){for(var d="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=u.RESERVED_WORDS={},p=0,g=d.length;p<g;p++)c[d[p]]=!0})(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function f(d){var c=d.source.currentLocation;return c?o.safeJsonLiteral(c):"undefined"}function l(d,c,p,g,v){var _=c.popStack(),S=p.length;d&&S--;for(var y=g;y<S;y++)_=c.nameLookup(_,p[y],v);return d?[c.aliasable("container.strict"),"(",_,", ",c.quotedString(p[S]),", ",f(c)," )"]:_}e.default=u,t.exports=e.default})),cl=ue(((e,t)=>{e.__esModule=!0;function s(c){return c&&c.__esModule?c:{default:c}}var r=s(Ga()),i=s(Vi()),n=Ka(),o=ja(),a=s(ll()),h=s(Ui()),u=s(Fi()),f=r.default.create;function l(){var c=f();return c.compile=function(p,g){return o.compile(p,g,c)},c.precompile=function(p,g){return o.precompile(p,g,c)},c.AST=i.default,c.Compiler=o.Compiler,c.JavaScriptCompiler=a.default,c.Parser=n.parser,c.parse=n.parse,c.parseWithoutProcessing=n.parseWithoutProcessing,c}var d=l();d.create=l,u.default(d),d.Visitor=h.default,d.default=d,e.default=d,t.exports=e.default})),Qe=Fo(cl(),1),Ar={"=":"eq","==":"eq","!=":"ne",">":"gt","<":"lt",">=":"gte","<=":"lte"},ul=["==","!=",">=","<=","&&","||","=",">","<","!"],hl=["and","or","not"],dl=["true","false","null","undefined"],fl=new Set([...` \r
87
- !"'()<>=&|{}~`]),je=class extends Error{};function pl(e){const t=[];let s=0;for(;s<e.length;){const r=e[s];if(/\s/.test(r)){s++;continue}if(r==="("||r===")"){t.push({type:r,text:r}),s++;continue}if(r==='"'||r==="'"){let a=s+1;for(;a<e.length&&e[a]!==r;)e[a]==="\\"&&a++,a++;if(a>=e.length)throw new je("unterminated string");t.push({type:"value",text:e.slice(s,a+1)}),s=a+1;continue}const i=ul.find(a=>e.startsWith(a,s));if(i){t.push({type:"op",text:i}),s+=i.length;continue}let n=s;for(;n<e.length&&!fl.has(e[n]);){if(e[n]==="["){const a=e.indexOf("]",n);if(a===-1)throw new je("missing ']'");n=a}n++}if(n===s)throw new je(`unexpected '${r}'`);const o=e.slice(s,n);hl.includes(o)?t.push({type:"op",text:o}):dl.includes(o)||/^-?\d+(\.\d+)?$/.test(o)?t.push({type:"value",text:o}):t.push({type:"ident",text:o}),s=n}return t}var gl=class{constructor(e){this.tokens=e,this.pos=0,this.usedInfix=!1}peek(e=0){return this.tokens[this.pos+e]}next(){return this.tokens[this.pos++]}isOp(e,...t){return e?.type==="op"&&t.includes(e.text)}startsPrimary(e){return e?.type==="ident"||e?.type==="value"||e?.type==="("}describe(e){return e?`'${e.text}'`:"end of expression"}parseCondition(){const e=[this.parseOr()];for(;this.peek()?.type==="ident"&&this.isOp(this.peek(1),"=");)e.push(this.parseHashPair());if(this.peek())throw new je(`unexpected ${this.describe(this.peek())}`);return e}parseHashPair(){const e=this.next().text;return this.next(),{kind:"raw",text:`${e}=${Lr(this.parsePrimary())}`}}parseOr(){return this.parseChain(["or","||"],"or",()=>this.parseAnd())}parseAnd(){return this.parseChain(["and","&&"],"and",()=>this.parseNot())}parseChain(e,t,s){const r=[s()];for(;this.isOp(this.peek(),...e);){const i=this.next().text;if(!this.peek())throw new je(`expected a value after '${i}'`);r.push(s())}return r.length===1?r[0]:(this.usedInfix=!0,{kind:"call",name:t,args:r})}parseNot(){if(this.isOp(this.peek(),"not","!")){const e=this.next().text;if(!this.peek())throw new je(`expected a value after '${e}'`);return this.usedInfix=!0,{kind:"call",name:"not",args:[this.parseNot()]}}return this.parseComparison()}parseComparison(){const e=this.parsePrimary(),t=this.peek();if(t?.type!=="op"||!(t.text in Ar))return e;if(this.next(),!this.peek())throw new je(`expected a value after '${t.text}'`);const s=this.parsePrimary(),r=this.peek();if(r?.type==="op"&&r.text in Ar)throw new je(`comparisons can't be chained (at '${r.text}'), use "and" to combine them`);return this.usedInfix=!0,{kind:"call",name:Ar[t.text],args:[e,s]}}parsePrimary(){const e=this.peek();if(e?.type==="ident"||e?.type==="value")return this.next(),{kind:"raw",text:e.text};if(e?.type==="("){this.next();const t=this.isHelperCall()?this.parseHelperCall():this.parseOr();if(this.peek()?.type!==")")throw new je(`expected ')' but found ${this.describe(this.peek())}`);return this.next(),t}if(this.isOp(e,"not","!")){const t=e?.text==="!"?"!value":"not value";throw new je(`'${e?.text}' must be inside parentheses here, e.g. (${t})`)}throw e?.type==="op"?new je(`expected a value before '${e.text}'`):new je(e?`unexpected ${this.describe(e)}`:"expected a value")}isHelperCall(){const e=this.peek(),t=this.peek(1);return this.isOp(e,"and","or")?!0:e?.type==="ident"&&this.startsPrimary(t)}parseHelperCall(){const e=this.next().text,t=[];for(;this.peek()&&this.peek()?.type!==")";)this.peek()?.type==="ident"&&this.isOp(this.peek(1),"=")?t.push(this.parseHashPair()):t.push(this.parsePrimary());return{kind:"call",name:e,args:t}}};function Lr(e){return e.kind==="raw"?e.text:`(${e.name} ${e.args.map(Lr).join(" ")})`}function ml(e){let t;try{t=pl(e)}catch{return null}const s=t.some(o=>o.type==="op"),r=new gl(t);let i,n=null;try{i=r.parseCondition()}catch(o){if(!s||!(o instanceof je))return null;n=o,i=[]}if(n)throw new Error(`Invalid condition "${e.trim()}": ${n.message}`);return r.usedInfix?i.map(Lr).join(" "):null}var Rr=/(\\*)\{\{(~?\s*)(#if|#unless|else\s+if|else\s+unless)(?=[\s(!])/g;function vl(e,t){let s=null;for(let r=t;r<e.length;r++){const i=e[r];if(s)i==="\\"?r++:i===s&&(s=null);else if(i==='"'||i==="'")s=i;else{if(e.startsWith("~}}",r))return r;if(e.startsWith("}}",r))return r}}return-1}function yl(e){if(!e.includes("{{"))return e;let t="",s=0;Rr.lastIndex=0;let r;for(;(r=Rr.exec(e))!==null;){if(r[1].length%2===1)continue;const i=r.index+r[0].length,n=vl(e,i);if(n===-1)break;const o=ml(e.slice(i,n));o!==null&&(t+=e.slice(s,i)+" "+o,s=n),Rr.lastIndex=n}return t+e.slice(s)}var bl=class{constructor(e,t,s){this.getStory=e,this.state=t,this.getCurrentSection=s,this.handlebars=Qe.default.create(),this.handlebars.registerHelper("embed",o=>{const a=this.getCurrentSection();if(a.passages&&o in a.passages)return new Qe.default.SafeString(this.process(a.passages[o].text||"",!0));const h=this.getStory();if(o in h.sections)return new Qe.default.SafeString(this.process(h.sections[o].text||"",!0))}),this.handlebars.registerHelper("seen",o=>this.state.getSeen(o)),this.handlebars.registerHelper("get",o=>this.state.get(o)),this.handlebars.registerHelper("at",o=>{const a=this.state.get("_section");return Array.isArray(o)?o.includes(a):a===o});const r=o=>o&&typeof o=="object"&&typeof o.toString=="function"&&!Array.isArray(o)?o.toString():o;this.handlebars.registerHelper("set",(o,a)=>(this.state.set(o,r(a)),"")),this.handlebars.registerHelper("unset",o=>(this.state.set(o,!1),"")),this.handlebars.registerHelper("inc",(o,a)=>{const h=typeof a=="number"?a:1,u=this.state.get(o)||0;return this.state.set(o,u+h),""}),this.handlebars.registerHelper("dec",(o,a)=>{const h=typeof a=="number"?a:1,u=this.state.get(o)||0;return this.state.set(o,u-h),""}),this.handlebars.registerHelper("and",(...o)=>o.slice(0,-1).every(Boolean)),this.handlebars.registerHelper("or",(...o)=>o.slice(0,-1).some(Boolean)),this.handlebars.registerHelper("not",o=>!o),this.handlebars.registerHelper("eq",(o,a)=>o==a),this.handlebars.registerHelper("ne",(o,a)=>o!=a),this.handlebars.registerHelper("gt",(o,a)=>o>a),this.handlebars.registerHelper("lt",(o,a)=>o<a),this.handlebars.registerHelper("gte",(o,a)=>o>=a),this.handlebars.registerHelper("lte",(o,a)=>o<=a),this.handlebars.registerHelper("array",function(...o){return o.pop(),o}),this.handlebars.registerHelper("append",(o,a)=>{const h=this.state.get(o)||[],u=Array.isArray(h)?[...h]:[h],f=r(a);return Array.isArray(f)?u.push(...f.map(r)):u.push(f),this.state.set(o,u),""}),this.handlebars.registerHelper("prepend",(o,a)=>{const h=this.state.get(o)||[],u=Array.isArray(h)?[...h]:[h],f=r(a);return Array.isArray(f)?u.unshift(...f.map(r)):u.unshift(f),this.state.set(o,u),""}),this.handlebars.registerHelper("pop",o=>{const a=this.state.get(o)||[];if(!Array.isArray(a)||a.length===0)return"";const h=[...a],u=h.shift();return this.state.set(o,h),u}),this.handlebars.registerHelper("remove",(o,a)=>{const h=this.state.get(o)||[];if(!Array.isArray(h))return"";const u=r(a),f=h.findIndex(l=>r(l)===u);if(f!==-1){const l=[...h];l.splice(f,1),this.state.set(o,l)}return""}),this.handlebars.registerHelper("contains",(o,a)=>{let h;if(typeof o=="string"){const f=this.state.get(o);h=Array.isArray(f)?f:[]}else if(Array.isArray(o))h=o;else return!1;const u=r(a);return h.some(f=>r(f)===u)}),this.handlebars.registerHelper("length",o=>{let a;if(typeof o=="string"){const h=this.state.get(o);a=Array.isArray(h)?h:[]}else if(Array.isArray(o))a=o;else return 0;return a.length});const i=o=>{let a="";const h=o.hash.set||"";return h&&(a+=` data-set='${JSON.stringify(h.split(",").map(u=>u.trim()))}'`),a},n=o=>String(o).replace(/&/g,"&amp;").replace(/"/g,"&quot;");this.handlebars.registerHelper("section",(o,a)=>{const h=a.hash.text||o;return new Qe.default.SafeString(`<a class="squiffy-link link-section" data-section="${n(o)}"${i(a)} role="link" tabindex="0">${h}</a>`)}),this.handlebars.registerHelper("passage",(o,a)=>{const h=a.hash.text||o;return new Qe.default.SafeString(`<a class="squiffy-link link-passage" data-passage="${n(o)}"${i(a)} role="link" tabindex="0">${h}</a>`)})}process(e,t){try{return e=this.handlebars.compile(yl(e))(this.state.getStore()),t?Cr(e,{async:!1}).trim():Pr(e,{async:!1}).trim()}catch(s){const r=s instanceof Error?s.message:String(s);return console.error("Squiffy template error:",r),`<div class="squiffy-error" style="color: red; background: #ffe0e0; padding: 8px; border: 1px solid red; margin: 4px 0; font-family: monospace; white-space: pre-wrap;"><strong>Template error:</strong> ${r}</div>`}}},_l=class{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 s=this.on(e,r=>{s(),t(r)});return s}emit(e,t){this.listeners.get(e)?.forEach(s=>{try{s(t)}catch(r){console.error(`[Squiffy] handler for "${String(e)}" failed`,r)}})}},Sl=class{constructor(e,t,s,r,i){this.store={},this.persist=e,this.storyId=t,this.onSet=s,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,s){typeof t>"u"&&(t=!0),s&&this.onSetInternal&&this.onSetInternal(e,this.get(e),structuredClone(t)),this.store[e]=structuredClone(t),this.usePersistentStorage()&&(localStorage[this.storyId+"-"+e]=JSON.stringify(t)),s&&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 new Proxy({},{get:(e,t)=>this.get(String(t)),has:(e,t)=>String(t)in this.store,ownKeys:()=>Object.keys(this.store),getOwnPropertyDescriptor:(e,t)=>{const s=String(t);if(s in this.store)return{enumerable:!0,configurable:!0,value:this.get(s)}}})}load(){if(!this.usePersistentStorage())return;const e=Object.keys(localStorage);for(const t of e)if(t.startsWith(this.storyId+"-")){const s=t.substring(this.storyId.length+1);this.store[s]=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 Gi(e,t){return!e&&!t?!0:!e||!t||e.length!==t.length?!1:e.every((s,r)=>s===t[r])}function kl(e,t,s,r,i,n){function o(f){return f.replace(/'/g,"\\'")}function a(f){return s.querySelectorAll(`[data-source='[[${o(f)}]]']`)}function h(f,l){return s.querySelectorAll(`[data-source='[[${o(f)}]][${o(l)}]']`)}function u(f,l){const d=Array.from(f.querySelectorAll("a.link-passage.disabled")).map(c=>c.getAttribute("data-passage"));f.innerHTML=l;for(const c of d){const p=f.querySelector(`a.link-passage[data-passage="${c}"]`);p&&i(p)}}for(const f of Object.keys(e.sections)){const l=a(f);if(l.length){const d=t.sections[f];if(d){const c=e.sections[f],p=!Gi(c.attributes,d.attributes),g=d.text!=c.text;if(p&&n(d.attributes||[]),g||p)for(const v of l)u(v,r(d.text||"",d))}else for(const c of l)c.closest(".squiffy-output-section")?.remove()}if(e.sections[f].passages)for(const d of Object.keys(e.sections[f].passages)){const c=h(f,d);if(!c.length)continue;const p=t.sections[f]?.passages&&t.sections[f]?.passages[d];if(p){const g=e.sections[f].passages[d],v=!Gi(g.attributes,p.attributes),_=p.text!=g.text;if(v&&n(p.attributes||[]),_||v)for(const S of c)u(S,r(p.text||"",t.sections[f]))}else for(const g of c)g.closest(".squiffy-output-passage")?.remove()}}}var wl=class{constructor(e,t,s,r,i,n,o,a,h,u){this.plugins=[],this.outputElement=e,this.textProcessor=t,this.state=s,this.linkHandler=r,this.getSectionText=i,this.getPassageText=n,this.processText=o,this.addTransition=a,this.animation=h,this.emitter=u}add(e){const t=e.init({outputElement:this.outputElement,registerHelper:(s,r)=>{this.textProcessor.handlebars.registerHelper(s,r)},registerLinkHandler:(s,r)=>{this.linkHandler.registerLinkHandler(s,r)},get:s=>this.state.get(s),set:(s,r)=>this.state.set(s,r),getSectionText:this.getSectionText,getPassageText:this.getPassageText,processText:this.processText,addTransition:this.addTransition,animation:this.animation,on:(s,r)=>this.emitter.on(s,r),off:(s,r)=>this.emitter.off(s,r),once:(s,r)=>this.emitter.once(s,r)});return this.plugins.push(e),t}onWrite(e){this.plugins.forEach(t=>t.onWrite?.(e))}onLoad(){this.plugins.forEach(e=>e.onLoad?.())}};function Zi(e,t){return new Promise(s=>{e.addEventListener("transitionend",function(){e.innerHTML=t,e.addEventListener("transitionend",function(){e.classList.remove("fade-in"),s()},{once:!0}),e.classList.remove("fade-out"),e.classList.add("fade-in")},{once:!0}),e.classList.add("fade-out")})}function xl(){return{name:"replaceLabel",init(e){e.registerHelper("label",function(t,s){return new Qe.default.SafeString(`<span class="squiffy-label-${t}">${s.fn(this)}</span>`)}),e.registerHelper("replace",function(t,s){const r=s.fn(this),i=e.outputElement.querySelector(`.squiffy-label-${t}`);if(i){const n=r.includes(`
86
+ `.trim()},blockValue:function(c){var d=this.aliasable("container.hooks.blockHelperMissing"),g=[this.contextName(0)];this.setupHelperArgs(c,0,g);var v=this.popStack();g.splice(1,0,v),this.push(this.source.functionCall(d,"call",g))},ambiguousBlockValue:function(){var c=this.aliasable("container.hooks.blockHelperMissing"),d=[this.contextName(0)];this.setupHelperArgs("",0,d,!0),this.flushInline();var g=this.topStack();d.splice(1,0,g),this.pushSource(["if (!",this.lastHelper,") { ",g," = ",this.source.functionCall(c,"call",d),"}"])},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(d){return[" != null ? ",d,' : ""']}),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,d,g,v){var _=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(c[_++])):this.pushContext(),this.resolvePath("context",c,_,d,g)},lookupBlockParam:function(c,d){this.useBlockParams=!0,this.push(["blockParams[",c[0],"][",c[1],"]"]),this.resolvePath("context",d,1)},lookupData:function(c,d,g){c?this.pushStackLiteral("container.data(data, "+c+")"):this.pushStackLiteral("data"),this.resolvePath("data",d,0,!0,g)},resolvePath:function(c,d,g,v,_){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(l(this.options.strict&&_,this,d,g,c));return}for(var y=d.length,m=function(k){S.replaceStack(function(w){var A=S.nameLookup(w,d[k],c);return v?[" && ",A]:[" != null ? ",A," : ",w]})},b=g;b<y;b++)m(b)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(c,d){this.pushContext(),this.pushString(d),d!=="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,d){var g=this.nameLookup("decorators",d,"decorator"),v=this.setupHelperArgs(d,c);this.decorators.push(["var decorator = ",g,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+d+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(c,d,g){var v=this.popStack(),_=this.setupHelper(c,d),S=[];g&&S.push(_.name),S.push(v),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var y=["(",this.itemsSeparatedBy(S,"||"),")"],m=this.source.functionCall(y,"call",_.callParams);this.push(m)},itemsSeparatedBy:function(c,d){var g=[];g.push(c[0]);for(var v=1;v<c.length;v++)g.push(d,c[v]);return g},invokeKnownHelper:function(c,d){var g=this.setupHelper(c,d);this.push(this.source.functionCall(g.name,"call",g.callParams))},invokeAmbiguous:function(c,d){this.useRegister("helper");var g=this.popStack();this.emptyHash();var v=this.setupHelper(0,c,d),_=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",c,"helper")," || ",g,")"];this.options.strict||(_[0]="(helper = ",_.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",_,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(c,d,g){var v=[],_=this.setupParams(d,1,v);c&&(d=this.popStack(),delete _.name),g&&(_.indent=this.quotedString(g)),_.helpers="helpers",_.partials="partials",_.decorators="container.decorators",c?v.unshift(d):v.unshift(this.nameLookup("partials",d,"partial")),this.options.compat&&(_.depths="depths"),_=this.objectLiteral(_),v.push(_),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(c){var d=this.popStack(),g=void 0,v=void 0,_=void 0;this.trackIds&&(_=this.popStack()),this.stringParams&&(v=this.popStack(),g=this.popStack());var S=this.hash;g&&(S.contexts[c]=g),v&&(S.types[c]=v),_&&(S.ids[c]=_),S.values[c]=d},pushId:function(c,d,g){c==="BlockParam"?this.pushStackLiteral("blockParams["+d[0]+"].path["+d[1]+"]"+(g?" + "+this.quotedString("."+g):"")):c==="PathExpression"?this.pushString(d):c==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(c,d){for(var g=c.children,v=void 0,_=void 0,S=0,y=g.length;S<y;S++){v=g[S],_=new this.compiler;var m=this.matchExistingProgram(v);if(m==null){var b=this.context.programs.push("")-1;v.index=b,v.name="program"+b,this.context.programs[b]=_.compile(v,d,this.context,!this.precompile),this.context.decorators[b]=_.decorators,this.context.environments[b]=v,this.useDepths=this.useDepths||_.useDepths,this.useBlockParams=this.useBlockParams||_.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=m.index,v.name="program"+m.index,this.useDepths=this.useDepths||m.useDepths,this.useBlockParams=this.useBlockParams||m.useBlockParams}},matchExistingProgram:function(c){for(var d=0,g=this.context.environments.length;d<g;d++){var v=this.context.environments[d];if(v&&v.equals(c))return v}},programExpression:function(c){var d=this.environment.children[c],g=[d.index,"data",d.blockParams];return(this.useBlockParams||this.useDepths)&&g.push("blockParams"),this.useDepths&&g.push("depths"),"container.program("+g.join(", ")+")"},useRegister:function(c){this.registers[c]||(this.registers[c]=!0,this.registers.list.push(c))},push:function(c){return c instanceof h||(c=this.source.wrap(c)),this.inlineStack.push(c),c},pushStackLiteral:function(c){this.push(new h(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 d=["("],g=void 0,v=void 0,_=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof h)g=[S.value],d=["(",g],_=!0;else{v=!0;var y=this.incrStack();d=["((",this.push(y)," = ",S,")"],g=this.topStack()}var m=c.call(this,g);_||this.popStack(),v&&this.stackSlot--,this.push(d.concat(m,")"))},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 d=0,g=c.length;d<g;d++){var v=c[d];if(v instanceof h)this.compileStack.push(v);else{var _=this.incrStack();this.pushSource([_," = ",v,";"]),this.compileStack.push(_)}}},isInline:function(){return this.inlineStack.length},popStack:function(c){var d=this.isInline(),g=(d?this.inlineStack:this.compileStack).pop();if(!c&&g instanceof h)return g.value;if(!d){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return g},topStack:function(){var c=this.isInline()?this.inlineStack:this.compileStack,d=c[c.length-1];return d instanceof h?d.value:d},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 d=this.aliases[c];return d?(d.referenceCount++,d):(d=this.aliases[c]=this.source.wrap(c),d.aliasable=!0,d.referenceCount=1,d)},setupHelper:function(c,d,g){var v=[];return{params:v,paramsInit:this.setupHelperArgs(d,c,v,g),name:this.nameLookup("helpers",d,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(v)}},setupParams:function(c,d,g){var v={},_=[],S=[],y=[],m=!g,b=void 0;m&&(g=[]),v.name=this.quotedString(c),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var k=this.popStack(),w=this.popStack();(w||k)&&(v.fn=w||"container.noop",v.inverse=k||"container.noop");for(var A=d;A--;)b=this.popStack(),g[A]=b,this.trackIds&&(y[A]=this.popStack()),this.stringParams&&(S[A]=this.popStack(),_[A]=this.popStack());return m&&(v.args=this.source.generateArray(g)),this.trackIds&&(v.ids=this.source.generateArray(y)),this.stringParams&&(v.types=this.source.generateArray(S),v.contexts=this.source.generateArray(_)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(c,d,g,v){var _=this.setupParams(c,d,g);return _.loc=p(this),_=this.objectLiteral(_),v?(this.useRegister("options"),g.push("options"),["options=",_]):g?(g.push(_),""):_}},(function(){for(var f="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=u.RESERVED_WORDS={},d=0,g=f.length;d<g;d++)c[f[d]]=!0})(),u.isValidJavaScriptVariableName=function(f){return!u.RESERVED_WORDS[f]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(f)};function p(f){var c=f.source.currentLocation;return c?n.safeJsonLiteral(c):"undefined"}function l(f,c,d,g,v){var _=c.popStack(),S=d.length;f&&S--;for(var y=g;y<S;y++)_=c.nameLookup(_,d[y],v);return f?[c.aliasable("container.strict"),"(",_,", ",c.quotedString(d[S]),", ",p(c)," )"]:_}e.default=u,t.exports=e.default})),wl=he(((e,t)=>{e.__esModule=!0;function s(c){return c&&c.__esModule?c:{default:c}}var r=s(ll()),i=s(Gi()),o=pl(),n=fl(),a=s(kl()),h=s(Qi()),u=s(Yi()),p=r.default.create;function l(){var c=p();return c.compile=function(d,g){return n.compile(d,g,c)},c.precompile=function(d,g){return n.precompile(d,g,c)},c.AST=i.default,c.Compiler=n.Compiler,c.JavaScriptCompiler=a.default,c.Parser=o.parser,c.parse=o.parse,c.parseWithoutProcessing=o.parseWithoutProcessing,c}var f=l();f.create=l,u.default(f),f.Visitor=h.default,f.default=f,e.default=f,t.exports=e.default})),Qe=Yo(wl(),1),Or={"=":"eq","==":"eq","!=":"ne",">":"gt","<":"lt",">=":"gte","<=":"lte"},xl=["==","!=",">=","<=","&&","||","=",">","<","!"],Tl=["and","or","not"],Cl=["true","false","null","undefined"],Pl=new Set([...` \r
87
+ !"'()<>=&|{}~`]),et=class extends Error{};function El(e){const t=[];let s=0;for(;s<e.length;){const r=e[s];if(/\s/.test(r)){s++;continue}if(r==="("||r===")"){t.push({type:r,text:r}),s++;continue}if(r==='"'||r==="'"){let a=s+1;for(;a<e.length&&e[a]!==r;)e[a]==="\\"&&a++,a++;if(a>=e.length)throw new et("unterminated string");t.push({type:"value",text:e.slice(s,a+1)}),s=a+1;continue}const i=xl.find(a=>e.startsWith(a,s));if(i){t.push({type:"op",text:i}),s+=i.length;continue}let o=s;for(;o<e.length&&!Pl.has(e[o]);){if(e[o]==="["){const a=e.indexOf("]",o);if(a===-1)throw new et("missing ']'");o=a}o++}if(o===s)throw new et(`unexpected '${r}'`);const n=e.slice(s,o);Tl.includes(n)?t.push({type:"op",text:n}):Cl.includes(n)||/^-?\d+(\.\d+)?$/.test(n)?t.push({type:"value",text:n}):t.push({type:"ident",text:n}),s=o}return t}var Al=class{constructor(e){this.tokens=e,this.pos=0,this.usedInfix=!1}peek(e=0){return this.tokens[this.pos+e]}next(){return this.tokens[this.pos++]}isOp(e,...t){return e?.type==="op"&&t.includes(e.text)}startsPrimary(e){return e?.type==="ident"||e?.type==="value"||e?.type==="("}describe(e){return e?`'${e.text}'`:"end of expression"}parseCondition(){const e=[this.parseOr()];for(;this.peek()?.type==="ident"&&this.isOp(this.peek(1),"=");)e.push(this.parseHashPair());if(this.peek())throw new et(`unexpected ${this.describe(this.peek())}`);return e}parseHashPair(){const e=this.next().text;return this.next(),{kind:"raw",text:`${e}=${Nr(this.parsePrimary())}`}}parseOr(){return this.parseChain(["or","||"],"or",()=>this.parseAnd())}parseAnd(){return this.parseChain(["and","&&"],"and",()=>this.parseNot())}parseChain(e,t,s){const r=[s()];for(;this.isOp(this.peek(),...e);){const i=this.next().text;if(!this.peek())throw new et(`expected a value after '${i}'`);r.push(s())}return r.length===1?r[0]:(this.usedInfix=!0,{kind:"call",name:t,args:r})}parseNot(){if(this.isOp(this.peek(),"not","!")){const e=this.next().text;if(!this.peek())throw new et(`expected a value after '${e}'`);return this.usedInfix=!0,{kind:"call",name:"not",args:[this.parseNot()]}}return this.parseComparison()}parseComparison(){const e=this.parsePrimary(),t=this.peek();if(t?.type!=="op"||!(t.text in Or))return e;if(this.next(),!this.peek())throw new et(`expected a value after '${t.text}'`);const s=this.parsePrimary(),r=this.peek();if(r?.type==="op"&&r.text in Or)throw new et(`comparisons can't be chained (at '${r.text}'), use "and" to combine them`);return this.usedInfix=!0,{kind:"call",name:Or[t.text],args:[e,s]}}parsePrimary(){const e=this.peek();if(e?.type==="ident"||e?.type==="value")return this.next(),{kind:"raw",text:e.text};if(e?.type==="("){this.next();const t=this.isHelperCall()?this.parseHelperCall():this.parseOr();if(this.peek()?.type!==")")throw new et(`expected ')' but found ${this.describe(this.peek())}`);return this.next(),t}if(this.isOp(e,"not","!")){const t=e?.text==="!"?"!value":"not value";throw new et(`'${e?.text}' must be inside parentheses here, e.g. (${t})`)}throw e?.type==="op"?new et(`expected a value before '${e.text}'`):new et(e?`unexpected ${this.describe(e)}`:"expected a value")}isHelperCall(){const e=this.peek(),t=this.peek(1);return this.isOp(e,"and","or")?!0:e?.type==="ident"&&this.startsPrimary(t)}parseHelperCall(){const e=this.next().text,t=[];for(;this.peek()&&this.peek()?.type!==")";)this.peek()?.type==="ident"&&this.isOp(this.peek(1),"=")?t.push(this.parseHashPair()):t.push(this.parsePrimary());return{kind:"call",name:e,args:t}}};function Nr(e){return e.kind==="raw"?e.text:`(${e.name} ${e.args.map(Nr).join(" ")})`}function Ll(e){let t;try{t=El(e)}catch{return null}const s=t.some(n=>n.type==="op"),r=new Al(t);let i,o=null;try{i=r.parseCondition()}catch(n){if(!s||!(n instanceof et))return null;o=n,i=[]}if(o)throw new Error(`Invalid condition "${e.trim()}": ${o.message}`);return r.usedInfix?i.map(Nr).join(" "):null}var Mr=/(\\*)\{\{(~?\s*)(#if|#unless|else\s+if|else\s+unless)(?=[\s(!])/g;function Rl(e,t){let s=null;for(let r=t;r<e.length;r++){const i=e[r];if(s)i==="\\"?r++:i===s&&(s=null);else if(i==='"'||i==="'")s=i;else{if(e.startsWith("~}}",r))return r;if(e.startsWith("}}",r))return r}}return-1}function Il(e){if(!e.includes("{{"))return e;let t="",s=0;Mr.lastIndex=0;let r;for(;(r=Mr.exec(e))!==null;){if(r[1].length%2===1)continue;const i=r.index+r[0].length,o=Rl(e,i);if(o===-1)break;const n=Ll(e.slice(i,o));n!==null&&(t+=e.slice(s,i)+" "+n,s=o),Mr.lastIndex=o}return t+e.slice(s)}var Ol=class{constructor(e,t,s){this.getStory=e,this.state=t,this.getCurrentSection=s,this.handlebars=Qe.default.create(),this.handlebars.registerHelper("embed",n=>{const a=this.getCurrentSection();if(a.passages&&n in a.passages)return new Qe.default.SafeString(this.process(a.passages[n].text||"",!0));const h=this.getStory();if(n in h.sections)return new Qe.default.SafeString(this.process(h.sections[n].text||"",!0))}),this.handlebars.registerHelper("seen",n=>this.state.getSeen(n)),this.handlebars.registerHelper("get",n=>this.state.get(n)),this.handlebars.registerHelper("at",n=>{const a=this.state.get("_section");return Array.isArray(n)?n.includes(a):a===n});const r=n=>n&&typeof n=="object"&&typeof n.toString=="function"&&!Array.isArray(n)?n.toString():n;this.handlebars.registerHelper("set",(n,a)=>(this.state.set(n,r(a)),"")),this.handlebars.registerHelper("unset",n=>(this.state.set(n,!1),"")),this.handlebars.registerHelper("inc",(n,a)=>{const h=typeof a=="number"?a:1,u=this.state.get(n)||0;return this.state.set(n,u+h),""}),this.handlebars.registerHelper("dec",(n,a)=>{const h=typeof a=="number"?a:1,u=this.state.get(n)||0;return this.state.set(n,u-h),""}),this.handlebars.registerHelper("and",(...n)=>n.slice(0,-1).every(Boolean)),this.handlebars.registerHelper("or",(...n)=>n.slice(0,-1).some(Boolean)),this.handlebars.registerHelper("not",n=>!n),this.handlebars.registerHelper("eq",(n,a)=>n==a),this.handlebars.registerHelper("ne",(n,a)=>n!=a),this.handlebars.registerHelper("gt",(n,a)=>n>a),this.handlebars.registerHelper("lt",(n,a)=>n<a),this.handlebars.registerHelper("gte",(n,a)=>n>=a),this.handlebars.registerHelper("lte",(n,a)=>n<=a),this.handlebars.registerHelper("array",function(...n){return n.pop(),n}),this.handlebars.registerHelper("append",(n,a)=>{const h=this.state.get(n)||[],u=Array.isArray(h)?[...h]:[h],p=r(a);return Array.isArray(p)?u.push(...p.map(r)):u.push(p),this.state.set(n,u),""}),this.handlebars.registerHelper("prepend",(n,a)=>{const h=this.state.get(n)||[],u=Array.isArray(h)?[...h]:[h],p=r(a);return Array.isArray(p)?u.unshift(...p.map(r)):u.unshift(p),this.state.set(n,u),""}),this.handlebars.registerHelper("pop",n=>{const a=this.state.get(n)||[];if(!Array.isArray(a)||a.length===0)return"";const h=[...a],u=h.shift();return this.state.set(n,h),u}),this.handlebars.registerHelper("remove",(n,a)=>{const h=this.state.get(n)||[];if(!Array.isArray(h))return"";const u=r(a),p=h.findIndex(l=>r(l)===u);if(p!==-1){const l=[...h];l.splice(p,1),this.state.set(n,l)}return""}),this.handlebars.registerHelper("contains",(n,a)=>{let h;if(typeof n=="string"){const p=this.state.get(n);h=Array.isArray(p)?p:[]}else if(Array.isArray(n))h=n;else return!1;const u=r(a);return h.some(p=>r(p)===u)}),this.handlebars.registerHelper("length",n=>{let a;if(typeof n=="string"){const h=this.state.get(n);a=Array.isArray(h)?h:[]}else if(Array.isArray(n))a=n;else return 0;return a.length});const i=n=>{let a="";const h=n.hash.set||"";return h&&(a+=` data-set='${JSON.stringify(h.split(",").map(u=>u.trim()))}'`),a},o=n=>String(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;");this.handlebars.registerHelper("section",(n,a)=>{const h=a.hash.text||n;return new Qe.default.SafeString(`<a class="squiffy-link link-section" data-section="${o(n)}"${i(a)} role="link" tabindex="0">${h}</a>`)}),this.handlebars.registerHelper("passage",(n,a)=>{const h=a.hash.text||n;return new Qe.default.SafeString(`<a class="squiffy-link link-passage" data-passage="${o(n)}"${i(a)} role="link" tabindex="0">${h}</a>`)})}process(e,t){try{return e=this.handlebars.compile(Il(e))(this.state.getStore()),t?Lr(e,{async:!1}).trim():Rr(e,{async:!1}).trim()}catch(s){const r=s instanceof Error?s.message:String(s);return console.error("Squiffy template error:",r),`<div class="squiffy-error" style="color: red; background: #ffe0e0; padding: 8px; border: 1px solid red; margin: 4px 0; font-family: monospace; white-space: pre-wrap;"><strong>Template error:</strong> ${r}</div>`}}},Nl=class{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 s=this.on(e,r=>{s(),t(r)});return s}emit(e,t){this.listeners.get(e)?.forEach(s=>{try{s(t)}catch(r){console.error(`[Squiffy] handler for "${String(e)}" failed`,r)}})}},Ml=class{constructor(e,t,s,r,i){this.store={},this.persist=e,this.storyId=t,this.onSet=s,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,s){typeof t>"u"&&(t=!0),s&&this.onSetInternal&&this.onSetInternal(e,this.get(e),structuredClone(t)),this.store[e]=structuredClone(t),this.usePersistentStorage()&&(localStorage[this.storyId+"-"+e]=JSON.stringify(t)),s&&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 new Proxy({},{get:(e,t)=>this.get(String(t)),has:(e,t)=>String(t)in this.store,ownKeys:()=>Object.keys(this.store),getOwnPropertyDescriptor:(e,t)=>{const s=String(t);if(s in this.store)return{enumerable:!0,configurable:!0,value:this.get(s)}}})}load(){if(!this.usePersistentStorage())return;const e=Object.keys(localStorage);for(const t of e)if(t.startsWith(this.storyId+"-")){const s=t.substring(this.storyId.length+1);this.store[s]=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 en(e,t){return!e&&!t?!0:!e||!t||e.length!==t.length?!1:e.every((s,r)=>s===t[r])}function Dl(e,t,s,r,i,o){function n(p){return p.replace(/'/g,"\\'")}function a(p){return s.querySelectorAll(`[data-source='[[${n(p)}]]']`)}function h(p,l){return s.querySelectorAll(`[data-source='[[${n(p)}]][${n(l)}]']`)}function u(p,l){const f=Array.from(p.querySelectorAll("a.link-passage.disabled")).map(c=>c.getAttribute("data-passage"));p.innerHTML=l;for(const c of f){const d=p.querySelector(`a.link-passage[data-passage="${c}"]`);d&&i(d)}}for(const p of Object.keys(e.sections)){const l=a(p);if(l.length){const f=t.sections[p];if(f){const c=e.sections[p],d=!en(c.attributes,f.attributes),g=f.text!=c.text;if(d&&o(f.attributes||[]),g||d)for(const v of l)u(v,r(f.text||"",f))}else for(const c of l)c.closest(".squiffy-output-section")?.remove()}if(e.sections[p].passages)for(const f of Object.keys(e.sections[p].passages)){const c=h(p,f);if(!c.length)continue;const d=t.sections[p]?.passages&&t.sections[p]?.passages[f];if(d){const g=e.sections[p].passages[f],v=!en(g.attributes,d.attributes),_=d.text!=g.text;if(v&&o(d.attributes||[]),_||v)for(const S of c)u(S,r(d.text||"",t.sections[p]))}else for(const g of c)g.closest(".squiffy-output-passage")?.remove()}}}var Bl=class{constructor(e,t,s,r,i,o,n,a,h,u){this.plugins=[],this.outputElement=e,this.textProcessor=t,this.state=s,this.linkHandler=r,this.getSectionText=i,this.getPassageText=o,this.processText=n,this.addTransition=a,this.animation=h,this.emitter=u}add(e){const t=e.init({outputElement:this.outputElement,registerHelper:(s,r)=>{this.textProcessor.handlebars.registerHelper(s,r)},registerLinkHandler:(s,r)=>{this.linkHandler.registerLinkHandler(s,r)},get:s=>this.state.get(s),set:(s,r)=>this.state.set(s,r),getSectionText:this.getSectionText,getPassageText:this.getPassageText,processText:this.processText,addTransition:this.addTransition,animation:this.animation,on:(s,r)=>this.emitter.on(s,r),off:(s,r)=>this.emitter.off(s,r),once:(s,r)=>this.emitter.once(s,r)});return this.plugins.push(e),t}onWrite(e){this.plugins.forEach(t=>t.onWrite?.(e))}onLoad(){this.plugins.forEach(e=>e.onLoad?.())}};function tn(e,t){return new Promise(s=>{e.addEventListener("transitionend",function(){e.innerHTML=t,e.addEventListener("transitionend",function(){e.classList.remove("fade-in"),s()},{once:!0}),e.classList.remove("fade-out"),e.classList.add("fade-in")},{once:!0}),e.classList.add("fade-out")})}function $l(){return{name:"replaceLabel",init(e){e.registerHelper("label",function(t,s){return new Qe.default.SafeString(`<span class="squiffy-label-${t}">${s.fn(this)}</span>`)}),e.registerHelper("replace",function(t,s){const r=s.fn(this),i=e.outputElement.querySelector(`.squiffy-label-${t}`);if(i){const o=r.includes(`
88
88
 
89
- `)?Pr(r,{async:!1}).trim():Cr(r,{async:!1}).trim();e.addTransition(()=>Zi(i,n))}return""})}}}function Tl(){const e=i=>i.replace(/&/g,"&amp;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=(i,n,o,a)=>{const h=o.map(c=>c.toString()),u=r(h,null),f=a.hash.set||"";f&&i.set(f,u[0]);const l=e(JSON.stringify(u.slice(1))||""),d=a.hash.show=="next"?u[1]:u[0];return new Qe.default.SafeString(`<a class="squiffy-link" data-handler="${n}" data-value="${e(u[0])}" data-show="${a.hash.show||""}" data-options='${l}' data-attribute="${f}" role="link">${d}</a>`)},s=(i,n,o)=>{const a={},h=JSON.parse(n.getAttribute("data-options")??"[]")||[],u=r(h,o?n.getAttribute("data-value"):"");n.innerHTML=n.getAttribute("data-show")=="next"?u[1]:u[0],n.setAttribute("data-value",u[0]),n.setAttribute("data-options",JSON.stringify(u.slice(1))||""),u[1]||(a.disableLink=!0);const f=n.getAttribute("data-attribute");return f&&i.set(f,n.getAttribute("data-value")),window.getSelection()?.removeAllRanges(),a},r=(i,n)=>{const o=i[0],a=i.slice(1);return n&&a.push(n),[o,...a]};return{name:"rotateSequence",init(i){i.registerHelper("rotate",(n,o)=>t(i,"rotate",n,o)),i.registerHelper("sequence",(n,o)=>t(i,"sequence",n,o)),i.registerLinkHandler("rotate",n=>s(i,n,!0)),i.registerLinkHandler("sequence",n=>s(i,n,!1))}}}function Cl(){return{name:"random",init(e){e.registerHelper("random",(t,s)=>{const r=t.map(o=>o.toString()),i=r[Math.floor(Math.random()*r.length)],n=s.hash.set||"";return n&&e.set(n,i),new Qe.default.SafeString(i)})}}}function Pl(){let e;return{name:"live",init(t){e=t,e.registerHelper("live",(r,i)=>{const n=i.hash.section||"";if(n)return new Qe.default.SafeString(`<span class="squiffy-live" data-attribute="${r}" data-section="${n}"></span>`);const o=i.hash.passage||"";return o?new Qe.default.SafeString(`<span class="squiffy-live" data-attribute="${r}" data-passage="${o}"></span>`):new Qe.default.SafeString(`<span class="squiffy-live" data-attribute="${r}"></span>`)});const s=async r=>{const i=[],n=`.squiffy-live[data-attribute="${CSS.escape(r.attribute)}"]`;for(const o of e.outputElement.querySelectorAll(n)){const a=o.innerHTML;let h="";if(o.dataset.section){const u=e.getSectionText(o.dataset.section);u&&(h=e.processText(u,!0))}else if(o.dataset.passage){const u=e.getPassageText(o.dataset.passage);u&&(h=e.processText(u,!0))}else h=r.value;a!==h&&i.push(Zi(o,h))}await Promise.all(i)};e.on("set",async r=>{await s(r)})},onWrite(t){e&&t.querySelectorAll(".squiffy-live").forEach(s=>{if(s.dataset.section){const r=e.getSectionText(s.dataset.section);r&&(s.innerHTML=e.processText(r,!0))}else if(s.dataset.passage){const r=e.getPassageText(s.dataset.passage);r&&(s.innerHTML=e.processText(r,!0))}else{const r=s.dataset.attribute;s.textContent=r?e.get(r):""}})}}}function El(){let e;const t=r=>{const i={};for(const[n,o]of Object.entries(r)){if(o==null){i[n]=o;continue}try{i[n]=JSON.parse(o)}catch{i[n]=o}}return i},s=r=>{for(const i of r.querySelectorAll(".squiffy-animate")){const n=t(i.dataset);if(!n.content||(n.content.includes(`
89
+ `)?Rr(r,{async:!1}).trim():Lr(r,{async:!1}).trim();e.addTransition(()=>tn(i,o))}return""})}}}function Hl(){const e=i=>i.replace(/&/g,"&amp;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=(i,o,n,a)=>{const h=n.map(c=>c.toString()),u=r(h,null),p=a.hash.set||"";p&&i.set(p,u[0]);const l=e(JSON.stringify(u.slice(1))||""),f=a.hash.show=="next"?u[1]:u[0];return new Qe.default.SafeString(`<a class="squiffy-link" data-handler="${o}" data-value="${e(u[0])}" data-show="${a.hash.show||""}" data-options='${l}' data-attribute="${p}" role="link">${f}</a>`)},s=(i,o,n)=>{const a={},h=JSON.parse(o.getAttribute("data-options")??"[]")||[],u=r(h,n?o.getAttribute("data-value"):"");o.innerHTML=o.getAttribute("data-show")=="next"?u[1]:u[0],o.setAttribute("data-value",u[0]),o.setAttribute("data-options",JSON.stringify(u.slice(1))||""),u[1]||(a.disableLink=!0);const p=o.getAttribute("data-attribute");return p&&i.set(p,o.getAttribute("data-value")),window.getSelection()?.removeAllRanges(),a},r=(i,o)=>{const n=i[0],a=i.slice(1);return o&&a.push(o),[n,...a]};return{name:"rotateSequence",init(i){i.registerHelper("rotate",(o,n)=>t(i,"rotate",o,n)),i.registerHelper("sequence",(o,n)=>t(i,"sequence",o,n)),i.registerLinkHandler("rotate",o=>s(i,o,!0)),i.registerLinkHandler("sequence",o=>s(i,o,!1))}}}function ql(){return{name:"random",init(e){e.registerHelper("random",(t,s)=>{const r=t.map(n=>n.toString()),i=r[Math.floor(Math.random()*r.length)],o=s.hash.set||"";return o&&e.set(o,i),new Qe.default.SafeString(i)})}}}function Fl(){let e;return{name:"live",init(t){e=t,e.registerHelper("live",(r,i)=>{const o=i.hash.section||"";if(o)return new Qe.default.SafeString(`<span class="squiffy-live" data-attribute="${r}" data-section="${o}"></span>`);const n=i.hash.passage||"";return n?new Qe.default.SafeString(`<span class="squiffy-live" data-attribute="${r}" data-passage="${n}"></span>`):new Qe.default.SafeString(`<span class="squiffy-live" data-attribute="${r}"></span>`)});const s=async r=>{const i=[],o=`.squiffy-live[data-attribute="${CSS.escape(r.attribute)}"]`;for(const n of e.outputElement.querySelectorAll(o)){const a=n.innerHTML;let h="";if(n.dataset.section){const u=e.getSectionText(n.dataset.section);u&&(h=e.processText(u,!0))}else if(n.dataset.passage){const u=e.getPassageText(n.dataset.passage);u&&(h=e.processText(u,!0))}else h=r.value;a!==h&&i.push(tn(n,h))}await Promise.all(i)};e.on("set",async r=>{await s(r)})},onWrite(t){e&&t.querySelectorAll(".squiffy-live").forEach(s=>{if(s.dataset.section){const r=e.getSectionText(s.dataset.section);r&&(s.innerHTML=e.processText(r,!0))}else if(s.dataset.passage){const r=e.getPassageText(s.dataset.passage);r&&(s.innerHTML=e.processText(r,!0))}else{const r=s.dataset.attribute;s.textContent=r?e.get(r):""}})}}}function Vl(){let e;const t=r=>{const i={};for(const[o,n]of Object.entries(r)){if(n==null){i[o]=n;continue}try{i[o]=JSON.parse(n)}catch{i[o]=n}}return i},s=r=>{for(const i of r.querySelectorAll(".squiffy-animate")){const o=t(i.dataset);if(!o.content||(o.content.includes(`
90
90
 
91
- `)?i.innerHTML=Pr(n.content,{async:!1}).trim():i.innerHTML=Cr(n.content,{async:!1}).trim(),!n.name))continue;const o=i.innerHTML;let a=[];const h=()=>{for(const l of a)e.animation.removeLinkAnimation(l);a=[...i.querySelectorAll("a")];for(const l of a)e.animation.addLinkAnimation(l,f)},u=()=>{if(n.trigger!=="link"){i.innerHTML=o;return}const l=a;i.innerHTML=o,h(),a.forEach((d,c)=>{const p=l[c];if(!p)return;p.classList.contains("disabled")&&d.classList.add("disabled");const g=p.getAttribute("tabindex");g!==null&&d.setAttribute("tabindex",g)})},f=()=>{n.loop?e.animation.runAnimation(n.name,i,n,()=>{},!0):(e.animation.isInitiallyHidden(n.name)&&(i.style.opacity="0"),e.addTransition(()=>new Promise(l=>{i.style.opacity="",e.animation.runAnimation(n.name,i,n,()=>{i.classList.remove("squiffy-animate"),u(),l()},!1)})))};n.trigger==="link"?h():f()}};return{name:"animate",init(r){e=r,e.registerHelper("animate",function(i,n){const o=n.fn(this),a={name:i,content:o,...n.hash},h=Object.entries(a).map(([f,l])=>` data-${Qe.default.escapeExpression(f)}="${Qe.default.escapeExpression(JSON.stringify(l))}"`).join(""),u=o.includes(`
91
+ `)?i.innerHTML=Rr(o.content,{async:!1}).trim():i.innerHTML=Lr(o.content,{async:!1}).trim(),!o.name))continue;const n=i.innerHTML;let a=[];const h=()=>{for(const l of a)e.animation.removeLinkAnimation(l);a=[...i.querySelectorAll("a")];for(const l of a)e.animation.addLinkAnimation(l,p)},u=()=>{if(o.trigger!=="link"){i.innerHTML=n;return}const l=a;i.innerHTML=n,h(),a.forEach((f,c)=>{const d=l[c];if(!d)return;d.classList.contains("disabled")&&f.classList.add("disabled");const g=d.getAttribute("tabindex");g!==null&&f.setAttribute("tabindex",g)})},p=()=>{o.loop?e.animation.runAnimation(o.name,i,o,()=>{},!0):(e.animation.isInitiallyHidden(o.name)&&(i.style.opacity="0"),e.addTransition(()=>new Promise(l=>{i.style.opacity="",e.animation.runAnimation(o.name,i,o,()=>{i.classList.remove("squiffy-animate"),u(),l()},!1)})))};o.trigger==="link"?h():p()}};return{name:"animate",init(r){e=r,e.registerHelper("animate",function(i,o){const n=o.fn(this),a={name:i,content:n,...o.hash},h=Object.entries(a).map(([p,l])=>` data-${Qe.default.escapeExpression(p)}="${Qe.default.escapeExpression(JSON.stringify(l))}"`).join(""),u=n.includes(`
92
92
 
93
- `)?"div":"span";return new Qe.default.SafeString(`<${u} class="squiffy-animate"${h}></${u}>`)})},onWrite(r){s(r)},onLoad(){s(e.outputElement)}}}var hs={ReplaceLabel:xl,RotateSequencePlugin:Tl,RandomPlugin:Cl,LivePlugin:Pl,AnimatePlugin:El},Al=class{constructor(){this.linkHandlers={}}registerLinkHandler(e,t){this.linkHandlers[e]=t}handleLink(e){const t=e.getAttribute("data-handler")||"",s=this.linkHandlers[t];return s?[!0,t,s(e)]:[!1,t,{}]}},yt=typeof window<"u",Xe=yt?window:null,Q=yt?document:null,Le={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},pe={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},et={NONE:0,AUTO:1,FORCE:2},He={replace:0,none:1,blend:2},Qi=Symbol(),Ht=Symbol(),Ir=Symbol(),ds=Symbol(),Ji=Symbol(),Re=1e-11,pt=1e12,Ye=1e3,au="var(",Ds=[],Or=(()=>{const e=new Map;return e.set("x","translateX"),e.set("y","translateY"),e.set("z","translateZ"),e})(),$t=["perspective","translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY"],Ki=$t.reduce((e,t)=>({...e,[t]:t+"("}),{}),oe=()=>{},Ll=e=>e,Rl=/\)\s*[-.\d]/,Il=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,Ol=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Nl=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Ml=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Dl=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,ji=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,en=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,Bl=/([a-z])([A-Z])/g,tn=/(\*=|\+=|-=)/,Hl=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/,fs={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:240,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:Ye,delay:0,loopDelay:0,ease:"out(2)",composition:He.replace,modifier:Ll,onBegin:oe,onBeforeUpdate:oe,onUpdate:oe,onLoop:oe,onPause:oe,onComplete:oe,onRender:oe},Ie={current:null,root:Q},z={defaults:fs,precision:4,timeScale:1,tickThreshold:200,editor:null},sn={version:"4.5.0",engine:null};yt&&(Xe.AnimeJS||(Xe.AnimeJS=[]),Xe.AnimeJS.push(sn));var Bs=e=>e.replace(Bl,"$1-$2").toLowerCase(),Me=(e,t)=>e.indexOf(t)===0,Et=Date.now,$e=Array.isArray,De=e=>e&&e.constructor===Object,qe=e=>typeof e=="number"&&!isNaN(e),Be=e=>typeof e=="string",Ee=e=>typeof e=="function",D=e=>typeof e>"u",qt=e=>D(e)||e===null,Hs=e=>yt&&e instanceof SVGElement,rn=e=>Il.test(e),nn=e=>Me(e,"rgb"),on=e=>Me(e,"hsl"),$l=e=>rn(e)||(nn(e)||on(e))&&(e[e.length-1]===")"||!Rl.test(e)),Jt=e=>!z.defaults.hasOwnProperty(e),ql=["opacity","rotate","overflow","color"],Fl=(e,t)=>{if(ql.includes(t))return!1;if(e.getAttribute(t)||t in e){if(t==="scale"){const s=e.parentNode;return s&&s.tagName==="filter"}return!0}},Ft=e=>Be(e)?parseFloat(e):e,Vt=Math.pow,nt=Math.sqrt,Nr=Math.sin,Mr=Math.cos,ot=Math.abs,$s=Math.exp,Vl=Math.ceil,Kt=Math.floor,zl=Math.asin,an=Math.max,qs=Math.atan2,bt=Math.PI,Dr=Math.round,Z=(e,t,s)=>e<t?t:e>s?s:e,F=(e,t)=>{if(t<0)return e;if(!t)return Dr(e);const s=10**t;return Dr(e*s)/s},zt=(e,t)=>$e(t)?t.reduce((s,r)=>ot(r-e)<ot(s-e)?r:s):t?Dr(e/t)*t:e,At=(e,t,s)=>s===1?t:s===0?e:e+(t-e)*s,Fs=e=>e===1/0?pt:e===-1/0?-pt:e,jt=e=>e<=1e-11?Re:Fs(F(e,11)),Ue=e=>$e(e)?[...e]:e,at=(e,t)=>{const s={...e};for(let r in t){const i=e[r];s[r]=D(i)?t[r]:i}return s},Se=(e,t,s,r="_prev",i="_next")=>{let n=e._head,o=i;for(s&&(n=e._tail,o=r);n;){const a=n[o];t(n),n=a}},gt=(e,t,s="_prev",r="_next")=>{const i=t[s],n=t[r];i?i[r]=n:e._head=n,n?n[s]=i:e._tail=i,t[s]=null,t[r]=null},mt=(e,t,s,r="_prev",i="_next")=>{let n=e._tail;for(;n&&s&&s(n,t);)n=n[r];const o=n?n[i]:e._head;n?n[i]=t:e._head=t,o?o[r]=t:e._tail=t,t[r]=n,t[i]=o},Ul=(e,t,s)=>{const r=e.style.transform;if(r){const i=e[ds];let n=0;const o=r.length;let a;for(;n<o;){for(;n<o&&r.charCodeAt(n)===32;)n++;if(n>=o)break;const u=n;for(;n<o&&r.charCodeAt(n)!==40;)n++;if(n>=o)break;const f=r.substring(u,n);let l=1;const d=n+1;let c=-1,p=-1;for(n++;n<o&&l>0;){const v=r.charCodeAt(n);v===40?l++:v===41?l--:v===44&&l===1&&(c===-1?c=n:p===-1&&(p=n)),n++}const g=n-1;f==="translate"||f==="translate3d"?(c===-1?i.translateX=r.substring(d,g).trim():(i.translateX=r.substring(d,c).trim(),p===-1?i.translateY=r.substring(c+1,g).trim():(i.translateY=r.substring(c+1,p).trim(),i.translateZ=r.substring(p+1,g).trim())),a=r.substring(d,g)):f==="scale"||f==="scale3d"?c===-1?i.scale=r.substring(d,g).trim():(i.scaleX=r.substring(d,c).trim(),p===-1?i.scaleY=r.substring(c+1,g).trim():(i.scaleY=r.substring(c+1,p).trim(),i.scaleZ=r.substring(p+1,g).trim())):i[f]=r.substring(d,g)}if(t==="translate3d"&&a)return s&&(s[t]=a),a;const h=i[t];if(!D(h))return s&&(s[t]=h),h}return t==="translate3d"?"0px, 0px, 0px":t==="rotate3d"?"0, 0, 0, 0deg":Me(t,"scale")?"1":Me(t,"rotate")||Me(t,"skew")?"0deg":"0px"},ln=e=>{let t="";for(let s=0,r=$t.length;s<r;s++){const i=$t[s],n=e[i];if(n!==void 0){if(i==="translateX"){const o=e.translateY;if(o!==void 0){const a=e.translateZ;a!==void 0?(t+=`translate3d(${n},${o},${a}) `,s+=2):(t+=`translate(${n},${o}) `,s+=1);continue}}if(i==="scaleX"&&e.scale===void 0){const o=e.scaleY;if(o!==void 0){const a=e.scaleZ;a!==void 0?(t+=`scale3d(${n},${o},${a}) `,s+=2):(t+=`scale(${n},${o}) `,s+=1);continue}}t+=`${Ki[i]}${n}) `}i==="rotateZ"&&e.rotate3d!==void 0&&(t+=`rotate3d(${e.rotate3d}) `)}return e.matrix!==void 0&&(t+=`matrix(${e.matrix}) `),e.matrix3d!==void 0&&(t+=`matrix3d(${e.matrix3d}) `),t},Br=[];function cn(e,t){if(!e)return null;const s=Br.length;e:for(let r=0;r<s;r++){const i=Br[r];if(i.detect&&!i.detect(e))continue;const n=i.targetAdapters;for(let o=0,a=n.length;o<a;o++){const h=n[o];if(h.detect(e)){const u=h.props[t];if(u&&(!u.gate||u.gate(e)))return u;break e}}}for(let r=0;r<s;r++){const i=Br[r];if(i.detect&&!i.detect(e))continue;const n=i.propertyResolvers;for(let o=0,a=n.length;o<a;o++){const h=n[o](e,t);if(h)return h}}return null}var Wl=e=>{const t=Ol.exec(e)||Nl.exec(e),s=D(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],s]},Xl=e=>{const t=e.length,s=t===4||t===5;return[+("0x"+e[1]+e[s?1:2]),+("0x"+e[s?2:3]+e[s?2:4]),+("0x"+e[s?3:5]+e[s?3:6]),t===5||t===9?+(+("0x"+e[s?4:7]+e[s?4:8])/255).toFixed(3):1]},Hr=(e,t,s)=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e),Yl=e=>{const t=Ml.exec(e)||Dl.exec(e),s=+t[1]/360,r=+t[2]/100,i=+t[3]/100,n=D(t[4])?1:+t[4];let o,a,h;if(r===0)o=a=h=i;else{const u=i<.5?i*(1+r):i+r-i*r,f=2*i-u;o=F(Hr(f,u,s+1/3)*255,0),a=F(Hr(f,u,s)*255,0),h=F(Hr(f,u,s-1/3)*255,0)}return[o,a,h,n]},Gl=e=>nn(e)?Wl(e):rn(e)?Xl(e):on(e)?Yl(e):[0,0,0,1],U=(e,t)=>D(e)?t:e,un=(e,t)=>{const s=e.match(Hl),r=t[Ht]?t:document.documentElement;let i=getComputedStyle(r)?.getPropertyValue(s[1]);return(!i||i.trim()==="")&&s[2]&&(i=s[2].trim()),i||0},Ne=(e,t,s,r,i,n)=>{if(Ee(e)){if(!i){const a=e(t,s,r,n);return isNaN(+a)?a||0:+a}const o=()=>{const a=e(t,s,r,n);return isNaN(+a)?a||0:+a};return i.func=o,o()}if(Be(e)&&Me(e,"var(")){if(!i)return un(e,t);const o=()=>un(e,t);return i.func=o,o()}return e},$r=(e,t)=>e[Ht]?e[Ir]&&Fl(e,t)?Le.ATTRIBUTE:$t.includes(t)||Or.get(t)?Le.TRANSFORM:Me(t,"--")?Le.CSS_VAR:t in e.style?Le.CSS:t in e?Le.OBJECT:Le.ATTRIBUTE:Le.OBJECT,hn=(e,t,s)=>{const r=e.style[t];r&&s&&(s[t]=r);const i=r||getComputedStyle(e[Ji]||e).getPropertyValue(t);return i==="auto"?"0":i},Ut=(e,t,s,r)=>{const i=D(s)?$r(e,t):s,n=cn(e,t);if(n){const o=n.get(e);return o&&r&&(r[t]=o),o??0}if(i===Le.OBJECT){const o=e[t];return o&&r&&(r[t]=o),o||0}if(i===Le.ATTRIBUTE){const o=e.getAttribute(t);return o&&r&&(r[t]=o),o}return i===Le.TRANSFORM?Ul(e,t,r):i===Le.CSS_VAR?hn(e,t,r).trimStart():hn(e,t,r)},Wt=(e,t,s)=>s==="-"?e-t:s==="+"?e+t:e*t,qr=()=>({t:pe.NUMBER,n:0,u:null,o:null,d:null,s:null}),Je=(e,t)=>{if(t.t=pe.NUMBER,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const s=+e;if(!isNaN(s))return t.n=s,t;let r=e;r[1]==="="&&(t.o=r[0],r=r.slice(2));const i=r.includes(" ")?!1:en.exec(r);if(i)return t.t=pe.UNIT,t.n=+i[1],t.u=i[2],t;if(t.o)return t.n=+r,t;if($l(r))return t.t=pe.COLOR,t.d=Gl(r),t;{const n=r.match(ji);return t.t=pe.COMPLEX,t.d=n?n.map(Number):[],t.s=r.split(ji)||[],t}},dn=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=Ue(e._toNumbers),t.s=Ue(e._strings),t),Fe=qr(),fn=(e,t,s)=>{const r=e._modifier,i=e._fromNumbers,n=e._toNumbers,o=e._strings;let a=o[0];for(let h=0,u=n.length;h<u;h++){const f=r(F(At(i[h],n[h],t),s)),l=o[h+1];a+=`${l?f+l:f}`,e._numbers[h]=f}return a},Vs=(e,t,s,r,i)=>{const n=e.parent,o=e.duration,a=e.completed,h=e.iterationDuration,u=e.iterationCount,f=e._currentIteration,l=e._loopDelay,d=e._reversed,c=e._alternate,p=e._hasChildren,g=e._delay,v=e._currentTime,_=g+h,S=t-g,y=Z(v,-g,o),m=Z(S,-g,o),b=S-v,k=m>0,w=m>=o,E=o<=Re,O=i===et.FORCE;let P=0,A=S,C=0;if(u>1){const M=h+(w?0:l),I=~~(m/M);e._currentIteration=Z(I,0,u),w&&e._currentIteration--,P=e._currentIteration%2,A=m-I*M||0}const H=d^(c&&P),$=e._ease;let V=w?H?0:o:H?h-A:A;$&&(V=h*$(V/h)||0);const x=(n?n.backwards:S<v)?!H:!!H;if(e._currentTime=S,e._iterationTime=V,e.backwards=x,k&&!e.began?(e.began=!0,!s&&!(n&&(x||!n.began))&&e.onBegin(e)):S<=0&&(e.began=!1),!s&&!p&&k&&e._currentIteration!==f&&e.onLoop(e),O||i===et.AUTO&&(t>=(n&&g>0?0:g)&&t<=_||t<=g&&y>g||t>=_&&y!==o)||V>=_&&y!==o||V<=g&&y>0&&!w||t<=y&&y===o&&a||w&&!a&&E){if(k&&(e.computeDeltaTime(y),s||e.onBeforeUpdate(e)),!p){const M=O||(x?b*-1:b)>=z.tickThreshold,I=F(e._offset+(n?n._offset:0)+g+V,12);let L=e._head,q,K,G,W,ee=0;for(;L;){const Y=L._composition,re=L._currentTime,ge=L._changeDuration,he=L._absoluteStartTime+L._changeDuration,le=L._nextRep,J=L._prevRep,ce=Y!==He.none,de=J?J._absoluteStartTime+J._changeDuration:0,ie=J&&J.parent!==L.parent,ae=!le||le._isOverridden?he:le.parent===L.parent?he+le._delay:le._absoluteStartTime<le._absoluteUpdateStartTime?le._absoluteStartTime:le._absoluteUpdateStartTime;if((M||(re!==ge||I<=ae||J&&!ie&&(!le||le.parent!==L.parent))&&(re!==0||I>=L._absoluteStartTime||ie&&!L._hasFromValue&&!J._isOverridden&&I>=de||le&&!le._isOverridden&&le.parent===L.parent&&le._currentTime!==0&&V<le._startTime))&&(!J||ie||V>=L._startTime)&&(!ce||!L._isOverridden&&(!L._isOverlapped||I<=he)&&(!le||le._isOverridden||I<=ae)&&(!J||J._isOverridden||(ie?I>=L._absoluteStartTime||!L._hasFromValue&&I>=de:I>=de+L._delay)))){const ke=L._currentTime=Z(V-L._startTime,0,ge),ye=L._ease(ke/L._updateDuration),we=L._modifier,Te=L._valueType,xe=L._tweenType,me=xe===Le.OBJECT,te=Te===pe.NUMBER,T=te&&me||ye===0||ye===1?-1:z.precision;let N,B;if(te)N=B=we(F(At(L._fromNumber,L._toNumber,ye),T));else if(Te===pe.UNIT)B=we(F(At(L._fromNumber,L._toNumber,ye),T)),N=`${B}${L._unit}`;else if(Te===pe.COLOR){const R=L._numbers,X=L._fromNumbers,j=L._toNumbers,se=1-ye,be=X[0],Ae=X[1],Oe=X[2],Yt=j[0],Es=j[1],Nt=j[2];R[0]=we(Math.sqrt(be*be*se+Yt*Yt*ye)),R[1]=we(Math.sqrt(Ae*Ae*se+Es*Es*ye)),R[2]=we(Math.sqrt(Oe*Oe*se+Nt*Nt*ye)),R[3]=we(At(X[3],j[3],ye)),(!L._setter||r)&&(N=`rgba(${F(R[0],0)},${F(R[1],0)},${F(R[2],0)},${R[3]})`)}else Te===pe.COMPLEX&&(N=fn(L,ye,T));if(ce&&(L._number=B),!r&&Y!==He.blend){const R=L.property;q=L.target,L._setter?L._setter(q,B,L):me?q[R]=N:xe===Le.ATTRIBUTE?q.setAttribute(R,N):(K=q.style,xe===Le.TRANSFORM?(q!==G&&(G=q,W=q[ds]),W[R]=N,ee=1):xe===Le.CSS?K[R]=N:xe===Le.CSS_VAR&&K.setProperty(R,N)),k&&(C=1)}else L._value=N}else re&&J&&!ie&&V<L._startTime&&(L._currentTime=0);ee&&L._renderTransforms&&(K.transform=ln(W),ee=0),L=L._next}!s&&C&&e.onRender(e)}!s&&k&&e.onUpdate(e)}return n&&E?!s&&(n.began&&!x&&S>0&&!a||x&&S<=1e-11&&a)&&(e.onComplete(e),e.completed=!x):k&&w?u===1/0?e._startTime+=e.duration:e._currentIteration>=u-1&&(e.paused=!0,!a&&!p&&(e.completed=!0,!s&&!(n&&(x||!n.began))&&(e.onComplete(e),e._resolve(e)))):e.completed=!1,C},Xt=(e,t,s,r,i)=>{const n=e._currentIteration;if(Vs(e,t,s,r,i),e._hasChildren){const o=e,a=o.backwards,h=r?t:o._iterationTime,u=Et();let f=0,l=!0;if(!r&&o._currentIteration!==n){const d=o.iterationDuration;Se(o,c=>{if(!a)!c.completed&&!c.backwards&&c._currentTime<c.iterationDuration&&Vs(c,d,s,1,et.FORCE),c.began=!1,c.completed=!1;else{const p=c.duration,g=c._offset+c._delay,v=g+p;!s&&p<=1e-11&&(!g||v===d)&&c.onComplete(c)}}),s||o.onLoop(o)}Se(o,d=>{const c=F((h-d._offset)*d._speed,12);if(a&&c>d._delay+d.duration)return;const p=d._fps<o._fps?d.requestTick(u):i;f+=Vs(d,c,s,r,p),!d.completed&&l&&(l=!1)},a),!s&&f&&o.onRender(o),(l||a)&&o._currentTime>=o.duration&&(o.paused=!0,o.completed||(o.completed=!0,s||(o.onComplete(o),o._resolve(o))))}},pn={},Fr=(e,t,s)=>{if(s===Le.TRANSFORM){const r=Or.get(e);return r||e}else if(s===Le.CSS||s===Le.ATTRIBUTE&&Hs(t)&&e in t.style){const r=pn[e];if(r)return r;{const i=e&&Bs(e);return pn[e]=i,i}}else return e},zs=(e,t=!1)=>{if(e._hasChildren)Se(e,s=>zs(s,t),!0);else{const s=e;s.pause(),Se(s,r=>{const i=r.property,n=r.target,o=r._tweenType,a=r._inlineValue,h=qt(a)||a==="";if(r._setter){if(!t&&!h){if(Je(a,Fe),Fe.d){const u=Fe.d,f=r._numbers;for(let l=0,d=u.length;l<d;l++)f[l]=u[l]}else r._number=Fe.n;r._setter(r.target,r._number,r)}}else if(o===Le.OBJECT)!t&&!h&&(n[i]=a);else if(n[Ht])if(o===Le.ATTRIBUTE)t||(h?n.removeAttribute(i):n.setAttribute(i,a));else{const u=n.style;if(o===Le.TRANSFORM){const f=n[ds];h?delete f[i]:f[i]=a,r._renderTransforms&&(Object.keys(f).length?u.transform=ln(f):u.removeProperty("transform"))}else h?u.removeProperty(Bs(i)):u[i]=a}n[Ht]&&s._tail===r&&s.targets.forEach(u=>{u.getAttribute&&u.getAttribute("style")===""&&u.removeAttribute("style")})})}return e},gn=e=>zs(e,!0),mn=class{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._lastTickTime=e,this._startTime=e,this._lastTime=e,this._frameDuration=Ye/240,this._fps=240,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=+e,s=t<1e-11?Re:t,r=Ye/s;s>fs.frameRate&&(fs.frameRate=s),this._fps=s,this._frameDuration=r}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<1e-11?Re:t}requestTick(e){const t=this._frameDuration,s=e-this._lastTickTime,r=t*.25;return s+(r<4?r:4)<t?et.NONE:(this._lastTickTime=s>=t?e-s%t:e,et.AUTO)}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}},es={animation:null,update:oe},Zl=e=>{let t=es.animation;return t||(t={duration:Re,computeDeltaTime:oe,_offset:0,_delay:0,_head:null,_tail:null},es.animation=t,es.update=()=>{e.forEach(s=>{for(let r in s){const i=s[r],n=i._head;if(n){const o=n._valueType,a=o===pe.COMPLEX||o===pe.COLOR?Ue(n._fromNumbers):null;let h=n._fromNumber,u=i._tail;for(;u&&u!==n;){if(a)for(let f=0,l=u._numbers.length;f<l;f++)a[f]+=u._numbers[f];else h+=u._number;u=u._prevAdd}n._toNumber=h,n._toNumbers=a}}}),Vs(t,1,1,0,et.FORCE)}),t},vn=yt?requestAnimationFrame:setImmediate,Ql=yt?cancelAnimationFrame:clearImmediate,Jl=class extends mn{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=fs,this.paused=!0,this.reqId=0}update(){const e=this._currentTime=Et();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,s=this._fps;let r=this._head;for(;r;){const i=r._next;r.paused?(gt(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):Xt(r,(e-r._startTime)*r._speed*t,0,0,r._fps<s?r.requestTick(e):et.AUTO),r=i}es.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(Et()),this.reqId=vn(yn)),this}pause(){if(this.reqId)return this.paused=!0,Kl()}resume(){if(this.paused)return this.paused=!1,Se(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(z.timeScale===1?1:Ye)}set speed(e){const t=e*z.timeScale;this._speed!==t&&(this._speed=t,Se(this,s=>s.speed=s._speed))}get timeUnit(){return z.timeScale===1?"ms":"s"}set timeUnit(e){const s=e==="s",r=s?.001:1;if(z.timeScale!==r){z.timeScale=r,z.tickThreshold=200*r;const i=s?.001:Ye;this.defaults.duration*=i,this._speed*=i}}get precision(){return z.precision}set precision(e){z.precision=e}},Ve=(()=>{const e=new Jl(Et());return yt&&(sn.engine=e,Q.addEventListener("visibilitychange",()=>{e.pauseOnDocumentHidden&&(Q.hidden?e.pause():e.resume())})),e})(),yn=()=>{Ve._head?(Ve.reqId=vn(yn),Ve.update()):Ve.reqId=0},Kl=()=>(Ql(Ve.reqId),Ve.reqId=0,Ve),Us={_rep:new WeakMap,_add:new Map},Vr=(e,t,s="_rep")=>{const r=Us[s];let i=r.get(e);return i||(i={},r.set(e,i)),i[t]?i[t]:i[t]={_head:null,_tail:null}},jl=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,Ws=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=Re,e._currentTime=Re},bn=(e,t)=>{const s=e._composition;if(s===He.replace){const r=e._absoluteStartTime;mt(t,e,jl,"_prevRep","_nextRep");const i=e._prevRep;if(i){const n=i.parent,o=i._absoluteEndTime;if(e.parent.id!==n.id&&n.iterationCount>1&&o+(n.duration-n.iterationDuration)>r){Ws(i);let u=i._prevRep;for(;u&&u.parent.id===n.id;)Ws(u),u=u._prevRep}const a=e._absoluteUpdateStartTime;if(o>a){const u=i._startTime,f=o-(u+i._updateDuration),l=F(a-f-u,12);i._changeDuration=l,i._currentTime=l,i._isOverlapped=1,l<1e-11&&Ws(i)}const h=e.parent.parent;if(!h||h!==n.parent){let u=!0;if(Se(n,f=>{f._isOverlapped||(u=!1)}),u){const f=n.parent;if(f){let l=!0;Se(f,d=>{d!==n&&Se(d,c=>{c._isOverlapped||(l=!1)})}),l&&f.cancel()}else n.cancel()}}}}else if(s===He.blend){const r=Vr(e.target,e.property,"_add"),i=Zl(Us._add);let n=r._head;n||(n={...e},n._composition=He.replace,n._updateDuration=Re,n._startTime=0,n._numbers=Ue(e._fromNumbers),n._number=0,n._next=null,n._prev=null,mt(r,n),mt(i,n));const o=e._toNumber;if(e._fromNumber=n._fromNumber-o,e._toNumber=0,e._numbers=Ue(e._fromNumbers),e._number=0,n._fromNumber=o,e._toNumbers.length){const a=Ue(e._toNumbers);a.forEach((h,u)=>{e._fromNumbers[u]=n._fromNumbers[u]-h,e._toNumbers[u]=0}),n._fromNumbers=a}mt(r,e,null,"_prevAdd","_nextAdd")}return e},_n=e=>{const t=e._composition;if(t!==He.none){const s=e.target,r=e.property,i=Us._rep.get(s)[r];if(gt(i,e,"_prevRep","_nextRep"),t===He.blend){const n=Us._add,o=n.get(s);if(!o)return;const a=o[r],h=es.animation;gt(a,e,"_prevAdd","_nextAdd");const u=a._head;if(u&&u===a._tail){gt(a,u,"_prevAdd","_nextAdd"),gt(h,u);let f=!0;for(let l in o)if(o[l]._head){f=!1;break}f&&n.delete(s)}}}return e},Sn=(e,t,s)=>{let r=!1;return Se(t,i=>{const n=i.target;if(e.includes(n)){const o=i.property,a=i._tweenType,h=Fr(s,n,a);(!h||h&&h===o)&&(i.parent._tail===i&&i._tweenType===Le.TRANSFORM&&i._prev&&i._prev._tweenType===Le.TRANSFORM&&(i._prev._renderTransforms=1),gt(t,i),_n(i),r=!0)}},!0),r},kt=(e,t,s)=>{const r=t||Ve;let i;if(r._hasChildren){let n=0;Se(r,o=>{if(!o._hasChildren)if(i=Sn(e,o,s),i&&!o._head)o.cancel(),gt(r,o);else{const a=o._offset+o._delay+o.duration;a>n&&(n=a)}o._head?kt(e,o,s):o._hasChildren=!1},!0),D(r.iterationDuration)||(r.iterationDuration=n)}else i=Sn(e,r,s);i&&!r._head&&(r._hasChildren=!1,r.cancel&&r.cancel())},kn=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),zr=e=>(e._cancelled&&(e._hasChildren?Se(e,zr):Se(e,t=>{t._composition!==He.none&&bn(t,Vr(t.target,t.property))}),e._cancelled=0),e),wn=0,ec=(e,t)=>e._priority>t._priority,tt=class extends mn{constructor(e={},t=null,s=0){super(0),++wn;const{id:r,delay:i,duration:n,reversed:o,alternate:a,loop:h,loopDelay:u,autoplay:f,frameRate:l,playbackRate:d,priority:c,onComplete:p,onLoop:g,onPause:v,onBegin:_,onBeforeUpdate:S,onUpdate:y}=e;Ie.current&&Ie.current.register(this);const m=t?0:Ve._lastTickTime,b=t?t.defaults:z.defaults,k=Ee(i)||D(i)?b.delay:+i,w=Ee(n)||D(n)?1/0:+n,E=U(h,b.loop),O=U(u,b.loopDelay);let P=E===!0||E===1/0||E<0?1/0:E+1,A=0;t?A=s:(Ve.reqId||Ve.requestTick(Et()),A=(Ve._lastTickTime-Ve._startTime)*z.timeScale),this.id=D(r)?wn:r,this.parent=t,this.duration=Fs((w+O)*P-O)||1e-11,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=_||b.onBegin,this.onBeforeUpdate=S||b.onBeforeUpdate,this.onUpdate=y||b.onUpdate,this.onLoop=g||b.onLoop,this.onPause=v||b.onPause,this.onComplete=p||b.onComplete,this.iterationDuration=w,this.iterationCount=P,this._autoplay=t?!1:U(f,b.autoplay),this._offset=A,this._delay=k,this._loopDelay=O,this._iterationTime=0,this._currentIteration=0,this._resolve=oe,this._running=!1,this._reversed=+U(o,b.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=U(a,b.alternate),this._prev=null,this._next=null,this._lastTickTime=m,this._startTime=m,this._lastTime=m,this._fps=U(l,b.frameRate),this._speed=U(d,b.playbackRate),this._priority=+U(c,1)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(!0).play()}get currentTime(){return Z(F(this._currentTime,z.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return Z(F(this._iterationTime,z.precision),0,this.iterationDuration)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return Z(F(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return Z(F(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*Z(+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=!1){return zr(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,Xt(this,0,1,~~e,et.FORCE),kn(this),this._hasChildren&&Se(this,kn),this}init(e=!1){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&Xt(this,this.duration,1,~~e,et.FORCE),this.reset(e);const t=this._autoplay;return t===!0?this.resume():t&&!D(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*Ve._speed);return this._startTime=Et()-(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<=1e-11&&!this._hasChildren?Xt(this,Re,0,0,et.FORCE):(this._running||(mt(Ve,this,ec),Ve._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,Ve.wake()),this):this}restart(){return this.reset().resume()}seek(e,t=0,s=0){zr(this),this.completed=!1;const r=this.paused;return this.paused=!0,Xt(this,e+this._delay,~~t,~~s,et.AUTO),r?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,s=this.iterationDuration,r=t===1/0?Kt(pt/s):t;return this._reversed=+(this._alternate&&!(r%2)?e:!e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(s*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,_n),this._cancelled=1,this.pause()}stretch(e){const t=this.duration,s=jt(e);if(t===s)return this;const r=e/t,i=e<=Re;return this.duration=i?Re:s,this.iterationDuration=i?Re:jt(this.iterationDuration*r),this._offset*=r,this._delay*=r,this._loopDelay*=r,this}revert(){Xt(this,0,1,0,et.AUTO);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(e=0){return this.seek(this.duration,e).cancel()}then(e=oe){const t=this.then,s=()=>{this.then=null,e(this),this.then=t,this._resolve=oe};return new Promise(r=>(this._resolve=()=>r(s()),this.completed&&this._resolve(),this))}},tc=e=>new tt(e,null,0).init();function Ur(e){const t=Be(e)?Ie.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function st(e){if(qt(e))return[];if(!yt)return $e(e)&&e.flat(1/0)||[e];if($e(e)){const s=e.flat(1/0),r=[];for(let i=0,n=s.length;i<n;i++){const o=s[i];if(!qt(o)){const a=Ur(o);if(a)for(let h=0,u=a.length;h<u;h++){const f=a[h];if(!qt(f)){let l=!1;for(let d=0,c=r.length;d<c;d++)if(r[d]===f){l=!0;break}l||r.push(f)}}else{let h=!1;for(let u=0,f=r.length;u<f;u++)if(r[u]===o){h=!0;break}h||r.push(o)}}}return r}const t=Ur(e);return t?Array.from(t):[e]}function Lt(e){const t=st(e),s=t.length;for(let r=0;r<s;r++){const i=t[r];if(!i[Qi]){i[Qi]=!0;const n=Hs(i);(i.nodeType||n)&&(i[Ht]=!0,i[Ir]=n,i[ds]={})}}return t}var Wr={deg:1,rad:180/bt,turn:360},xn={},Xs=(e,t,s,r=!1)=>{const i=t.u,n=t.n;if(t.t===pe.UNIT&&i===s)return t;const o=n+i+s,a=xn[o];if(!D(a)&&!r)t.n=a;else{let h;if(i in Wr)h=n*Wr[i]/Wr[s];else{const f=e.cloneNode(),l=e.parentNode,d=l&&l!==Q?l:Q.body;d.appendChild(f);const c=f.style;c.width=100+i;const p=f.offsetWidth||100;c.width=100+s;const g=p/(f.offsetWidth||100);d.removeChild(f),h=g*n}t.n=h,xn[o]=h}return t.t,pe.UNIT,t.u=s,t},rt=e=>e,ps=(e=1.68)=>t=>Vt(t,+e),Xr={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(t*2)/2:1-e(t*-2+2)/2,outIn:e=>t=>t<.5?(1-e(1-t*2))/2:(e(t*2-1)+1)/2},sc=bt/2,Tn=bt*2,Cn={"":ps,Quad:ps(2),Cubic:ps(3),Quart:ps(4),Quint:ps(5),Sine:e=>1-Mr(e*sc),Circ:e=>1-nt(1-e*e),Expo:e=>e?Vt(2,10*e-10):0,Bounce:e=>{let t,s=4;for(;e<((t=Vt(2,--s))-1)/11;);return 1/Vt(4,3-s)-7.5625*Vt((t*3-2)/22-e,2)},Back:(e=1.7)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const s=Z(+e,1,10),r=Z(+t,Re,2),i=r/Tn*zl(1/s),n=Tn/r;return o=>o===0||o===1?o:-s*Vt(2,-10*(1-o))*Nr((1-o-i)*n)}},wt=(()=>{const e={linear:rt,none:rt};for(let t in Xr)for(let s in Cn){const r=Cn[s],i=Xr[t];e[t+s]=s===""||s==="Back"||s==="Elastic"?(n,o)=>i(r(n,o)):i(r)}return e})(),Ys={linear:rt,none:rt},Pn=e=>{if(Ys[e])return Ys[e];if(e.indexOf("(")<=-1){const t=Xr[e]||e.includes("Back")||e.includes("Elastic")?wt[e]():wt[e];return t?Ys[e]=t:rt}else{const t=e.slice(0,-1).split("("),s=wt[t[0]];return s?Ys[e]=s(...t[1].split(",")):rt}},En=["steps(","irregular(","linear(","cubicBezier("],xt=e=>{if(Be(e)){for(let t=0,s=En.length;t<s;t++)if(Me(e,En[t]))return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``),rt}return Ee(e)?e:Be(e)?Pn(e):rt},ne=qr(),fe=qr(),ts={},Gs={func:null},Zs={func:null},Qs=[null],ss=[null,null],Js={to:null},rc=0,An=0,Rt,_t,ic=(e,t)=>{const s={};if($e(e)){const r=[].concat(...e.map(i=>Object.keys(i))).filter(Jt);for(let i=0,n=r.length;i<n;i++){const o=r[i];s[o]=e.map(a=>{const h={};for(let u in a){const f=a[u];Jt(u)?u===o&&(h.to=f):h[u]=f}return h})}}else{const r=U(t.duration,z.defaults.duration);Object.keys(e).map(i=>({o:parseFloat(i)/100,p:e[i]})).sort((i,n)=>i.o-n.o).forEach(i=>{const n=i.o,o=i.p;for(let a in o)if(Jt(a)){let h=s[a];h||(h=s[a]=[]);const u=n*r;let f=h.length,l=h[f-1];const d={to:o[a]};let c=0;for(let p=0;p<f;p++)c+=h[p].duration;f===1&&(d.from=l.to),o.ease&&(d.ease=o.ease),d.duration=u-(f?c:0),h.push(d)}return i});for(let i in s){const n=s[i];let o;for(let a=0,h=n.length;a<h;a++){const u=n[a],f=u.ease;u.ease=o||void 0,o=f}n[0].duration||n.shift()}}return s},Tt=class extends tt{constructor(e,t,s,r,i=!1,n=0,o){super(t,s,r),this._head,this._tail,++An;const a=Lt(e),h=a.length,u=t.keyframes,f=u?at(ic(u,t),t):t,{id:l,delay:d,duration:c,ease:p,playbackEase:g,modifier:v,composition:_,onRender:S}=f,y=s?s.defaults:z.defaults,m=U(p,y.ease),b=U(g,y.playbackEase),k=b?xt(b):null,w=!D(m.ease),E=w?m.ease:U(p,k?"linear":y.ease),O=w?m.settlingDuration:U(c,y.duration),P=U(d,y.delay),A=v||y.modifier,C=D(_)&&h>=1e3?He.none:D(_)?y.composition:_,H=this._offset+(s?s._offset:0);w&&(m.parent=this);let $=NaN,V=NaN,x=0,M=0;for(let I=0;I<h;I++){const L=a[I],q=n||I,K=o||a;let G=NaN,W=NaN;for(let ee in f)if(Jt(ee)){const Y=$r(L,ee),re=cn(L,ee),ge=Fr(ee,L,Y);let he=f[ee];const le=$e(he);if(i&&!le&&(ss[0]=he,ss[1]=he,he=ss),le){const ke=he.length,ye=!De(he[0]);ke===2&&ye?(Js.to=he,Qs[0]=Js,Rt=Qs):ke>2&&ye?(Rt=[],he.forEach((we,Te)=>{Te?Te===1?(ss[1]=we,Rt.push(ss)):Rt.push(we):ss[0]=we})):Rt=he}else Qs[0]=he,Rt=Qs;let J=null,ce=null,de=NaN,ie=0,ae=0;for(let ke=Rt.length;ae<ke;ae++){const ye=Rt[ae];De(ye)?_t=ye:(Js.to=ye,_t=Js),Gs.func=null,Zs.func=null;const we=Ne(U(_t.composition,C),L,q,K,null,null),Te=qe(we)?we:He[we];!J&&Te!==He.none&&(J=Vr(L,ge));const xe=J?J._tail:null,me=s&&xe&&xe.parent.parent===s?xe:ce,te=Ne(_t.to,L,q,K,Gs,me);let T;De(te)&&!D(te.to)?(_t=te,T=te.to):T=te;const N=Ne(_t.from,L,q,K,Zs,me),B=_t.ease||E,R=Ne(B,L,q,K,null,me),X=Ee(R)||Be(R)?R:B,j=!D(X)&&!D(X.ease),se=j?X.ease:X,be=j?X.settlingDuration:Ne(U(_t.duration,ke>1?Ne(O,L,q,K,null,me)/ke:O),L,q,K,null,me),Ae=Ne(U(_t.delay,ae?0:P),L,q,K,null,me),Oe=_t.modifier||A,Yt=!D(N),Es=!D(T),Nt=$e(T),Kc=Nt||Yt&&Es,jc=ce?ie:0,pi=ce?ie+Ae:Ae,gi=F(H+pi,12),eu=F(H+jc,12);!M&&(Yt||Nt)&&(M=1);let ut=ce;if(Te!==He.none){let _e=J._head;for(;_e&&_e._absoluteStartTime<=gi;)if(_e._isOverridden||(ut=_e),_e=_e._nextRep,_e&&_e._absoluteStartTime>=gi)for(;_e;)Ws(_e),_e=_e._nextRep}if(Kc){Je(Nt?Ne(T[0],L,q,K,Zs,me):N,ne),Je(Nt?Ne(T[1],L,q,K,Gs,me):T,fe);const _e=Ut(L,ge,Y,ts);ne.t===pe.NUMBER&&(ut?ut._valueType===pe.UNIT&&(ne.t=pe.UNIT,ne.u=ut._unit):(Je(_e,Fe),Fe.t===pe.UNIT&&(ne.t=pe.UNIT,ne.u=Fe.u)))}else Es?Je(T,fe):ce?dn(ce,fe):Je(s&&ut&&ut.parent.parent===s?ut._value:Ut(L,ge,Y,ts),fe),Yt?Je(N,ne):ce?dn(ce,ne):Je(s&&ut&&ut.parent.parent===s?ut._value:Ut(L,ge,Y,ts),ne);if(ne.o&&(ne.n=Wt(ut?ut._toNumber:Je(Ut(L,ge,Y,ts),Fe).n,ne.n,ne.o)),fe.o&&(fe.n=Wt(ne.n,fe.n,fe.o)),ne.t!==fe.t){if(ne.t===pe.COMPLEX||fe.t===pe.COMPLEX){const _e=ne.t===pe.COMPLEX?ne:fe,Ze=ne.t===pe.COMPLEX?fe:ne;Ze.t=pe.COMPLEX,Ze.s=Ue(_e.s),Ze.d=_e.d.map(()=>Ze.n)}else if(ne.t===pe.UNIT||fe.t===pe.UNIT){const _e=ne.t===pe.UNIT?ne:fe,Ze=ne.t===pe.UNIT?fe:ne;Ze.t=pe.UNIT,Ze.u=_e.u}else if(ne.t===pe.COLOR||fe.t===pe.COLOR){const _e=ne.t===pe.COLOR?ne:fe,Ze=ne.t===pe.COLOR?fe:ne;Ze.t=pe.COLOR,Ze.d=_e.d.map(()=>0)}}if(ne.u!==fe.u){let _e=fe.u?ne:fe;_e=Xs(L,_e,fe.u?fe.u:ne.u,!1)}if(fe.d&&ne.d&&fe.d.length!==ne.d.length){const _e=ne.d.length>fe.d.length?ne:fe,Ze=_e===ne?fe:ne;Ze.d=_e.d.map((lu,Mo)=>D(Ze.d[Mo])?0:Ze.d[Mo]),Ze.s=Ue(_e.s)}const mi=F(+be||1e-11,12);let Io=ts[ge];qt(Io)||(ts[ge]=null);const tu=re?re.set:null;ie=F(pi+mi,12);const gr=ne.d,Oo=fe.d,No=fe.s,it={parent:this,id:rc++,property:ge,target:L,_value:null,_toFunc:Gs.func,_fromFunc:Zs.func,_ease:xt(se),_fromNumbers:gr?Ue(gr):Ds,_toNumbers:Oo?Ue(Oo):Ds,_strings:No?Ue(No):Ds,_fromNumber:ne.n,_toNumber:fe.n,_numbers:gr?Ue(gr):Ds,_number:ne.n,_unit:fe.u,_modifier:Oe,_currentTime:0,_startTime:pi,_delay:+Ae,_updateDuration:mi,_changeDuration:mi,_absoluteStartTime:gi,_absoluteUpdateStartTime:eu,_absoluteEndTime:F(H+ie,12),_hasFromValue:Yt||Nt?1:0,_tweenType:Y,_setter:tu,_valueType:fe.t,_composition:Te,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:Io,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};Te!==He.none&&bn(it,J);const vi=it._valueType;if(vi===pe.COMPLEX)it._value=fn(it,1,-1);else if(vi===pe.UNIT)it._value=`${Oe(it._toNumber)}${it._unit}`;else if(vi===pe.COLOR){const _e=fe.d;it._value=`rgba(${F(_e[0],0)},${F(_e[1],0)},${F(_e[2],0)},${_e[3]})`}else it._value=Oe(it._toNumber);isNaN(de)&&(de=it._startTime),ce=it,x++,mt(this,it)}(isNaN(V)||de<V)&&(V=de),(isNaN($)||ie>$)&&($=ie),Y===Le.TRANSFORM&&(G=x-ae,W=x)}if(!isNaN(G)){let ee=0;Se(this,Y=>{ee>=G&&ee<W&&(Y._renderTransforms=1,Y._composition===He.blend&&Se(es.animation,re=>{re.id===Y.id&&(re._renderTransforms=1)})),ee++})}}h||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),V?(Se(this,I=>{I._startTime-I._delay||(I._delay-=V),I._startTime-=V}),$-=V):V=0,$||($=Re,this.iterationCount=0),this.targets=a,this.id=D(l)?An:l,this.duration=$===1e-11?Re:Fs(($+this._loopDelay)*this.iterationCount-this._loopDelay)||1e-11,this.onRender=S||y.onRender,this._ease=k,this._delay=V,this.iterationDuration=$,!this._autoplay&&M&&this.onRender(this)}stretch(e){const t=this.duration;if(t===jt(e))return this;const s=e/t;return Se(this,r=>{r._updateDuration=jt(r._updateDuration*s),r._changeDuration=jt(r._changeDuration*s),r._currentTime*=s,r._delay*=s,r._startTime*=s,r._absoluteStartTime*=s,r._absoluteUpdateStartTime*=s,r._absoluteEndTime*=s}),super.stretch(e)}refresh(){return Se(this,e=>{const t=e._toFunc,s=e._fromFunc;(t||s)&&(s?(Je(s(),ne),ne.u!==e._unit&&e.target[Ht]&&Xs(e.target,ne,e._unit,!0),e._fromNumbers=Ue(ne.d),e._fromNumber=ne.n):t&&(Je(Ut(e.target,e.property,e._tweenType),Fe),e._fromNumbers=Ue(Fe.d),e._fromNumber=Fe.n),t&&(Je(t(),fe),e._toNumbers=Ue(fe.d),e._strings=Ue(fe.s),e._toNumber=fe.o?Wt(e._fromNumber,fe.n,fe.o):fe.n))}),this.duration===1e-11&&this.restart(),this}revert(){return super.revert(),zs(this)}then(e){return super.then(e)}},gs=(e,t)=>z.editor?z.editor.addAnimation(e,t):new Tt(e,t,null,0,!1).init(),nc=(e,t)=>{if(Me(t,"<")){const s=t[1]==="<",r=e._tail,i=r?r._offset+r._delay:0;return s?i:i+r.duration}},ms=(e,t)=>{let s=e.iterationDuration;if(s===1e-11&&(s=0),D(t))return s;if(qe(+t))return+t;const r=t,i=e?e.labels:null,n=!qt(i),o=nc(e,r),a=!D(o),h=tn.exec(r);if(h){const u=h[0],f=r.split(u),l=n&&f[0]?i[f[0]]:s,d=a?o:n?l:s,c=+f[1];return Wt(d,c,u[0])}else return a?o:n?D(i[r])?s:i[r]:s};function oc(e){return Fs((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||1e-11}function Yr(e,t,s,r,i,n){const o=qe(e.duration)&&e.duration<=1e-11?s-Re:s;t.composition&&Xt(t,o,1,1,et.AUTO);const a=r?new Tt(r,e,t,o,!1,i,n):new tt(e,t,o);return t.composition&&a.init(!0),mt(t,a),Se(t,h=>{const u=h._offset+h._delay+h.duration;u>t.iterationDuration&&(t.iterationDuration=u)}),t.duration=oc(t),t}var Ln=0,Rn=class extends tt{constructor(e={}){super(e,null,0),++Ln,this.id=D(e.id)?Ln:e.id,this.duration=0,this.labels={};const t=e.defaults,s=z.defaults;this.defaults=t?at(t,s):s,this.composition=U(e.composition,!0),this.onRender=e.onRender||s.onRender;const r=U(e.playbackEase,s.playbackEase);this._ease=r?xt(r):null,this.iterationDuration=0}add(e,t,s){const r=De(t),i=De(e);if(r||i){if(this._hasChildren=!0,r){const n=t,o=z.editor&&z.editor.addTimelineChild,a=s&&s.type==="Stagger"&&z.editor,h=Ee(s)?s:null;if(h||a){const u=st(e),f=this.duration,l=this.iterationDuration,d=n.id;let c=0;const p=u.length,g=o?o(e,n,this.id,s,p):null,v=h||z.editor.resolveStagger(s.defaultValue);u.forEach(_=>{const S={...g||n};this.duration=f,this.iterationDuration=l,D(d)||(S.id=d+"-"+c);const y=ms(this,v(_,c,u,null,this));Yr(S,this,y,_,c,u),c++})}else{const u=o?o(e,n,this.id,s):n,f=s&&s.type?s.defaultValue:s;Yr(u,this,ms(this,f),e)}}else Yr(e,this,ms(this,t));return this.composition&&this.init(!0),this}}sync(e,t){if(D(e)||e&&D(e.pause))return this;e.pause();const s=+(e.effect?e.effect.getTiming().duration:e.duration);!D(e)&&!D(e.persist)&&(e.persist=!0);const r=z.editor,i=r&&r.addTimelineChild;r&&r.addTimelineSync&&(t=r.addTimelineSync(e,t,this.id),r.addTimelineChild=null);const n=this.add(e,{currentTime:[0,s],duration:s,delay:0,ease:"linear",playbackEase:"linear"},t);return r&&(r.addTimelineChild=i),n}set(e,t,s){return D(t)?this:(t.duration=Re,t.composition=He.replace,this.add(e,t,s))}call(e,t){return D(e)||e&&!Ee(e)?this:(z.editor&&z.editor.addTimelineCall&&(t=z.editor.addTimelineCall(e,t,this.id)),this.add({duration:0,delay:0,onComplete:()=>e(this)},t))}label(e,t){return D(e)||e&&!Be(e)?this:(z.editor&&z.editor.addTimelineLabel&&(t=z.editor.addTimelineLabel(e,t,this.id)),this.labels[e]=ms(this,t),this)}remove(e,t){return kt(st(e),this,t),this}stretch(e){const t=this.duration;if(t===jt(e))return this;const s=e/t,r=this.labels;Se(this,i=>i.stretch(i.duration*s));for(let i in r)r[i]*=s;return super.stretch(e)}refresh(){return Se(this,e=>{e.refresh&&e.refresh()}),this}revert(){return super.revert(),Se(this,e=>e.revert,!0),zs(this)}then(e){return super.then(e)}},In=e=>z.editor?z.editor.addTimeline(e):new Rn(e).init(),Gr=class{constructor(e,t){Ie.current&&Ie.current.register(this);const s=()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},r=()=>{if(this.callbacks.completed)return;let a=!0;for(let h in this.animations)if(!this.animations[h].paused&&a){a=!1;break}a&&this.callbacks.complete()},i={onBegin:s,onComplete:r,onPause:r},n={v:1,autoplay:!1},o={};if(this.targets=[],this.animations={},this.callbacks=null,!(D(e)||D(t))){for(let a in t){const h=t[a];Jt(a)?o[a]=h:Me(a,"on")?n[a]=h:i[a]=h}this.callbacks=new Tt({v:0},n);for(let a in o){const h=o[a],u=De(h);let f={},l="+=0";if(u){const p=h.unit;Be(p)&&(l+=p)}else f.duration=h;f[a]=u?at({to:l},h):l;const d=at(i,f);d.composition=He.replace,d.autoplay=!1;const c=this.animations[a]=new Tt(e,d,null,0,!1).init();this.targets.length||this.targets.push(...c.targets),this[a]=(p,g,v)=>{const _=c._head;if(D(p)&&_){const S=_._numbers;return S&&S.length?S:_._modifier(_._number)}else return Se(c,S=>{if($e(p))for(let y=0,m=p.length;y<m;y++)D(S._numbers[y])||(S._fromNumbers[y]=S._modifier(S._numbers[y]),S._toNumbers[y]=p[y]);else S._fromNumber=S._modifier(S._number),S._toNumber=p;D(v)||(S._ease=xt(v)),S._currentTime=0}),D(g)||c.stretch(g),c.reset(!0).resume(),this}}}}revert(){for(let e in this.animations)this[e]=oe,this.animations[e].revert();return this.animations={},this.targets.length=0,this.callbacks&&this.callbacks.revert(),this}},ac=(e,t)=>new Gr(e,t),lc=Gt({clamp:()=>Z,damp:()=>gc,degToRad:()=>fc,lerp:()=>At,mapRange:()=>vs,padEnd:()=>hc,padStart:()=>uc,radToDeg:()=>pc,round:()=>F,roundPad:()=>cc,snap:()=>zt,wrap:()=>dc}),cc=(e,t)=>(+e).toFixed(t),uc=(e,t,s)=>`${e}`.padStart(t,s),hc=(e,t,s)=>`${e}`.padEnd(t,s),dc=(e,t,s)=>((e-t)%(s-t)+(s-t))%(s-t)+t,vs=(e,t,s,r,i)=>r+(e-t)/(s-t)*(i-r),fc=e=>e*Math.PI/180,pc=e=>e*180/Math.PI,gc=(e,t,s,r)=>r?r===1?t:At(e,t,1-Math.exp(-r*s*.1)):e,Ke=Ye*10,Ks=class{constructor(e={}){const t=!D(e.bounce)||!D(e.duration);this.timeStep=.02,this.restThreshold=5e-4,this.restDuration=200,this.maxDuration=6e4,this.maxRestSteps=this.restDuration/this.timeStep/Ye,this.maxIterations=this.maxDuration/this.timeStep/Ye,this.bn=Z(U(e.bounce,.5),-1,1),this.pd=Z(U(e.duration,628),10*z.timeScale,Ke*z.timeScale),this.m=Z(U(e.mass,1),1,Ke),this.s=Z(U(e.stiffness,100),Re,Ke),this.d=Z(U(e.damping,10),Re,Ke),this.v=Z(U(e.velocity,0),-Ke,Ke),this.w0=0,this.zeta=0,this.wd=0,this.b=0,this.completed=!1,this.solverDuration=0,this.settlingDuration=0,this.parent=null,this.onComplete=e.onComplete||oe,t&&this.calculateSDFromBD(),this.compute(),this.ease=s=>{const r=s*this.settlingDuration,i=this.completed,n=this.pd;return r>=n&&!i&&(this.completed=!0,this.onComplete(this.parent)),r<n&&i&&(this.completed=!1),s===0||s===1?s:this.solve(s*this.solverDuration)}}solve(e){const{zeta:t,w0:s,wd:r,b:i}=this;let n=e;return t<1?n=$s(-n*t*s)*(1*Mr(r*n)+i*Nr(r*n)):t===1?n=(1+i*n)*$s(-n*s):n=((1+i)*$s((-t*s+r)*n)+(1-i)*$s((-t*s-r)*n))/2,1-n}calculateSDFromBD(){const e=z.timeScale===1?this.pd/Ye:this.pd;this.m=1,this.v=0,this.s=Vt(2*bt/e,2),this.bn>=0?this.d=(1-this.bn)*4*bt/e:this.d=4*bt/(e*(1+this.bn)),this.s=F(Z(this.s,Re,Ke),3),this.d=F(Z(this.d,Re,300),3)}calculateBDFromSD(){const e=2*bt/nt(this.s);this.pd=e*(z.timeScale===1?Ye:1),this.d/(2*nt(this.s))<=1?this.bn=1-this.d*e/(4*bt):this.bn=4*bt/(this.d*e)-1,this.bn=F(Z(this.bn,-1,1),3),this.pd=F(Z(this.pd,10*z.timeScale,Ke*z.timeScale),3)}compute(){const{maxRestSteps:e,maxIterations:t,restThreshold:s,timeStep:r,m:i,d:n,s:o,v:a}=this,h=this.w0=Z(nt(o/i),Re,Ye),u=this.zeta=n/(2*nt(o*i));u<1?(this.wd=h*nt(1-u*u),this.b=(u*h+-a)/this.wd):u===1?(this.wd=0,this.b=-a+h):(this.wd=h*nt(u*u-1),this.b=(u*h+-a)/this.wd);let f=0,l=0,d=0;for(;l<=e&&d<=t;)ot(1-this.solve(f))<s?l++:l=0,this.solverDuration=f,f+=r,d++;this.settlingDuration=F(this.solverDuration*Ye,0)*z.timeScale}get bounce(){return this.bn}set bounce(e){this.bn=Z(U(e,1),-1,1),this.calculateSDFromBD(),this.compute()}get duration(){return this.pd}set duration(e){this.pd=Z(U(e,1),10*z.timeScale,Ke*z.timeScale),this.calculateSDFromBD(),this.compute()}get stiffness(){return this.s}set stiffness(e){this.s=Z(U(e,100),Re,Ke),this.calculateBDFromSD(),this.compute()}get damping(){return this.d}set damping(e){this.d=Z(U(e,10),Re,Ke),this.calculateBDFromSD(),this.compute()}get mass(){return this.m}set mass(e){this.m=Z(U(e,1),1,Ke),this.compute()}get velocity(){return this.v}set velocity(e){this.v=Z(U(e,0),-Ke,Ke),this.compute()}},js=e=>new Ks(e),On=e=>(console.warn("createSpring() is deprecated use spring() instead"),new Ks(e)),Zr={_head:null,_tail:null},Qr=(e,t,s)=>{let r=Zr._head,i;for(;r;){const n=r._next,o=r.$el===e,a=!t||r.property===t,h=!s||r.parent===s;if(o&&a&&h){i=r.animation;try{i.commitStyles()}catch{}i.cancel(),gt(Zr,r);const u=r.parent;u&&(u._completed++,u.animations.length===u._completed&&(u.completed=!0,u.paused=!0,u.muteCallbacks||(u.onComplete(u),u._resolve(u))))}r=n}return i},Nn=(e,t,s,r,i)=>{const n=t.animate(r,i),o=i.delay+ +i.duration*i.iterations;n.playbackRate=e._speed,e.paused&&n.pause(),e.duration<o&&(e.duration=o,e.controlAnimation=n),e.animations.push(n),Qr(t,s),mt(Zr,{parent:e,animation:n,$el:t,property:s,_next:null,_prev:null});const a=()=>Qr(t,s,e);return n.oncancel=a,n.onremove=a,e.persist||(n.onfinish=a),n};function It(e,t,s){const r=Lt(e);if(!r.length)return;const[i]=r,n=$r(i,t),o=Fr(t,i,n);let a=Ut(i,o);if(D(s))return a;if(Je(a,Fe),Fe.t===pe.NUMBER||Fe.t===pe.UNIT){if(s===!1)return Fe.n;{const h=Xs(i,Fe,s,!1);return`${F(h.n,z.precision)}${h.u}`}}}var Ct=(e,t)=>{if(!D(t))return z.editor&&z.editor.addSet?z.editor.addSet(e,t):(t.duration=Re,t.composition=U(t.composition,He.none),new Tt(e,t,null,0,!0).resume())},Mn=(e,t,s)=>{const r=st(e);for(let i=0,n=r.length;i<n;i++)Qr(r[i],s,t&&t.controlAnimation&&t);return kt(r,t,s),r},Ot=e=>{e.cancelable&&e.preventDefault()},mc=class{constructor(e){this.el=e,this.zIndex=0,this.parentElement=null,this.classList={add:oe,remove:oe}}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}}},vc=class{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,s=0;for(;t&&t!==Q;)e(t,s),t=t.parentElement,s++}getMatrix(){const e=new DOMMatrix;return this.traverseUp(t=>{const s=getComputedStyle(t).transform;if(s){const r=new DOMMatrix(s);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 s=this.inlineTransforms[t];s===""?e.style.removeProperty("transform"):e.style.transform=s})}},Ge=(e,t)=>e&&Ee(e)?e(t):e,er=0,Dn=class{constructor(e,t={}){if(!e)return;Ie.current&&Ie.current.register(this);const s=t.x,r=t.y,i=t.trigger,n=t.modifier,o=t.releaseEase,a=o&&xt(o),h=!D(o)&&!D(o.ease),u=De(s)&&!D(s.mapTo)?s.mapTo:"translateX",f=De(r)&&!D(r.mapTo)?r.mapTo:"translateY",l=Ge(t.container,this);this.containerArray=$e(l)?l:null,this.$container=l&&!this.containerArray?st(l)[0]:Q.body,this.useWin=this.$container===Q.body,this.$scrollContainer=this.useWin?Xe:this.$container,this.$target=De(e)?new mc(e):st(e)[0],this.$trigger=st(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.dragThreshold=3,this.maxVelocity=0,this.minVelocity=0,this.velocityMultiplier=0,this.cursor=!1,this.releaseXSpring=h?o:js({mass:U(t.releaseMass,1),stiffness:U(t.releaseStiffness,80),damping:U(t.releaseDamping,20)}),this.releaseYSpring=h?o:js({mass:U(t.releaseMass,1),stiffness:U(t.releaseStiffness,80),damping:U(t.releaseDamping,20)}),this.releaseEase=a||wt.outQuint,this.hasReleaseSpring=h,this.onGrab=t.onGrab||oe,this.onDrag=t.onDrag||oe,this.onRelease=t.onRelease||oe,this.onUpdate=t.onUpdate||oe,this.onSettle=t.onSettle||oe,this.onSnap=t.onSnap||oe,this.onResize=t.onResize||oe,this.onAfterResize=t.onAfterResize||oe,this.disabled=[0,0];const d={};if(n&&(d.modifier=n),D(s)||s===!0)d[u]=0;else if(De(s)){const c=s,p={};c.modifier&&(p.modifier=c.modifier),c.composition&&(p.composition=c.composition),d[u]=p}else s===!1&&(d[u]=0,this.disabled[0]=1);if(D(r)||r===!0)d[f]=0;else if(De(r)){const c=r,p={};c.modifier&&(p.modifier=c.modifier),c.composition&&(p.composition=c.composition),d[f]=p}else r===!1&&(d[f]=0,this.disabled[1]=1);this.animate=new Gr(this.$target,d),this.xProp=u,this.yProp=f,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=[-pt,pt,pt,-pt],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=Et(),this.velocity=0,this.angle=0,this.cursorStyles=null,this.triggerStyles=null,this.bodyStyles=null,this.targetStyles=null,this.touchActionStyles=null,this.transforms=new vc(this.$target),this.overshootCoords={x:0,y:0},this.overshootTicker=new tt({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 tt({autoplay:!1,onUpdate:()=>this.update()},null,0).init(),this.contained=!D(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]?u:f,this.animate.callbacks.onRender=()=>{const c=this.updated,p=!(this.grabbed&&c)&&this.released,g=this.x,v=this.y,_=g-this.coords[2],S=v-this.coords[3];this.deltaX=_,this.deltaY=S,this.coords[2]=g,this.coords[3]=v,c&&(_||S)&&this.onUpdate(this),p?(this.computeVelocity(_,S),this.angle=qs(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 tt({autoplay:!1,duration:150*z.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),De(e)||this.resizeObserver.observe(this.$target)}computeVelocity(e,t){const s=this.velocityTime,r=Et(),i=r-s;if(i<17)return this.velocity;this.velocityTime=r;const n=this.velocityStack,o=this.velocityMultiplier,a=this.minVelocity,h=this.maxVelocity,u=this.velocityStackIndex;n[u]=F(Z(nt(e*e+t*t)/i*o,a,h),5);const f=an(n[0],n[1],n[2]);return this.velocity=f,this.velocityStackIndex=(u+1)%3,f}setX(e,t=!1){if(this.disabled[0])return;const s=F(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destX=s,this.snapped[0]=zt(s,this.snapX),this.animate[this.xProp](s,0),this.manual=!1,this}setY(e,t=!1){if(this.disabled[1])return;const s=F(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destY=s,this.snapped[1]=zt(s,this.snapY),this.animate[this.yProp](s,0),this.manual=!1,this}get x(){return F(this.animate[this.xProp](),z.precision)}set x(e){this.setX(e,!1)}get y(){return F(this.animate[this.yProp](),z.precision)}set y(e){this.setY(e,!1)}get progressX(){return vs(this.x,this.containerBounds[3],this.containerBounds[1],0,1)}set progressX(e){this.setX(vs(e,0,1,this.containerBounds[3],this.containerBounds[1]),!1)}get progressY(){return vs(this.y,this.containerBounds[0],this.containerBounds[2],0,1)}set progressY(e){this.setY(vs(e,0,1,this.containerBounds[0],this.containerBounds[2]),!1)}updateScrollCoords(){const e=F(this.useWin?Xe.scrollX:this.$container.scrollLeft,0),t=F(this.useWin?Xe.scrollY:this.$container.scrollTop,0),[s,r,i,n]=this.containerPadding,o=this.scrollThreshold;this.scroll.x=e,this.scroll.y=t,this.scrollBounds[0]=t-this.targetBounds[0]+s-o,this.scrollBounds[1]=e-this.targetBounds[1]-r+o,this.scrollBounds[2]=t-this.targetBounds[2]-i+o,this.scrollBounds[3]=e-this.targetBounds[3]+n-o}updateBoundingValues(){const e=this.$container;if(!e)return;const t=this.x,s=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 n=this.window[0]=Xe.innerWidth,o=this.window[1]=Xe.innerHeight,a=this.useWin,h=e.scrollWidth,u=e.scrollHeight,f=this.fixed,l=e.getBoundingClientRect(),[d,c,p,g]=this.containerPadding;this.dragArea[0]=a?0:l.left,this.dragArea[1]=a?0:l.top,this.scrollView[0]=a?Z(h,n,h):h,this.scrollView[1]=a?Z(u,o,u):u,this.updateScrollCoords();const{width:v,height:_,left:S,top:y,right:m,bottom:b}=e.getBoundingClientRect();this.dragArea[2]=F(a?Z(v,n,n):v,0),this.dragArea[3]=F(a?Z(_,o,o):_,0);const k=It(e,"overflow"),w=k==="visible",E=k==="hidden";if(this.canScroll=f?!1:this.contained&&(e===Q.body&&w||!E&&!w)&&(h>this.dragArea[2]+g-c||u>this.dragArea[3]+d-p)&&(!this.containerArray||this.containerArray&&!$e(this.containerArray)),this.contained){const O=this.scroll.x,P=this.scroll.y,A=this.canScroll,C=this.$target.getBoundingClientRect(),H=A?a?0:e.scrollLeft:0,$=A?a?0:e.scrollTop:0,V=A?this.scrollView[0]-H-v:0,x=A?this.scrollView[1]-$-_:0;this.targetBounds[0]=F(C.top+P-(a?0:y),0),this.targetBounds[1]=F(C.right+O-(a?n:m),0),this.targetBounds[2]=F(C.bottom+P-(a?o:b),0),this.targetBounds[3]=F(C.left+O-(a?0:S),0),this.containerArray?(this.containerBounds[0]=this.containerArray[0]+d,this.containerBounds[1]=this.containerArray[1]-c,this.containerBounds[2]=this.containerArray[2]-p,this.containerBounds[3]=this.containerArray[3]+g):(this.containerBounds[0]=-F(C.top-(f?Z(y,0,o):y)+$-d,0),this.containerBounds[1]=-F(C.right-(f?Z(m,0,n):m)-V+c,0),this.containerBounds[2]=-F(C.bottom-(f?Z(b,0,o):b)-x+p,0),this.containerBounds[3]=-F(C.left-(f?Z(S,0,n):S)+H-g,0))}this.transforms.revert(),this.coords[2]=r,this.coords[3]=i,this.setX(t,!0),this.setY(s,!0)}isOutOfBounds(e,t,s){if(!this.contained)return 0;const[r,i,n,o]=e,[a,h]=this.disabled,u=!a&&t<o||!a&&t>i,f=!h&&s<r||!h&&s>n;return u&&!f?1:!u&&f?2:u&&f?3:0}refresh(){const e=this.parameters,t=e.x,s=e.y,r=Ge(e.container,this),i=Ge(e.containerPadding,this)||0,n=$e(i)?i:[i,i,i,i],o=this.x,a=this.y,h=Ge(e.cursor,this),u={onHover:"grab",onGrab:"grabbing"};if(h){const{onHover:v,onGrab:_}=h;v&&(u.onHover=v),_&&(u.onGrab=_)}const f=Ge(e.dragThreshold,this),l={mouse:3,touch:7};if(qe(f))l.mouse=f,l.touch=f;else if(f){const{mouse:v,touch:_}=f;D(v)||(l.mouse=v),D(_)||(l.touch=_)}this.containerArray=$e(r)?r:null,this.$container=r&&!this.containerArray?st(r)[0]:Q.body,this.useWin=this.$container===Q.body,this.$scrollContainer=this.useWin?Xe:this.$container,this.isFinePointer=matchMedia("(pointer:fine)").matches,this.containerPadding=U(n,[0,0,0,0]),this.containerFriction=Z(U(Ge(e.containerFriction,this),.8),0,1),this.releaseContainerFriction=Z(U(Ge(e.releaseContainerFriction,this),this.containerFriction),0,1),this.snapX=Ge(De(t)&&!D(t.snap)?t.snap:e.snap,this),this.snapY=Ge(De(s)&&!D(s.snap)?s.snap:e.snap,this),this.scrollSpeed=U(Ge(e.scrollSpeed,this),1.5),this.scrollThreshold=U(Ge(e.scrollThreshold,this),20),this.dragSpeed=U(Ge(e.dragSpeed,this),1),this.dragThreshold=this.isFinePointer?l.mouse:l.touch,this.minVelocity=U(Ge(e.minVelocity,this),0),this.maxVelocity=U(Ge(e.maxVelocity,this),50),this.velocityMultiplier=U(Ge(e.velocityMultiplier,this),1),this.cursor=h===!1?!1:u,this.updateBoundingValues();const[d,c,p,g]=this.containerBounds;this.setX(Z(o,g,c),!0),this.setY(Z(a,d,p),!0)}update(){if(this.updateScrollCoords(),this.canScroll){const[_,S,y,m]=this.containerPadding,[b,k]=this.scrollView,w=this.dragArea[2],E=this.dragArea[3],O=this.scroll.x,P=this.scroll.y,A=this.$container.scrollWidth,C=this.$container.scrollHeight,H=this.useWin?Z(A,this.window[0],A):A,$=this.useWin?Z(C,this.window[1],C):C,V=b-H,x=k-$;this.dragged&&V>0&&(this.coords[0]-=V,this.scrollView[0]=H),this.dragged&&x>0&&(this.coords[1]-=x,this.scrollView[1]=$);const M=this.scrollSpeed*10,I=this.scrollThreshold,[L,q]=this.coords,[K,G,W,ee]=this.scrollBounds,Y=F(Z((q-K+_)/I,-1,0)*M,0),re=F(Z((L-G-S)/I,0,1)*M,0),ge=F(Z((q-W-y)/I,0,1)*M,0),he=F(Z((L-ee+m)/I,-1,0)*M,0);if(Y||ge||he||re){const[le,J]=this.disabled;let ce=O,de=P;le||(ce=F(Z(O+(he||re),0,b-w),0),this.coords[0]-=O-ce),J||(de=F(Z(P+(Y||ge),0,k-E),0),this.coords[1]-=P-de),this.useWin?this.$scrollContainer.scrollBy(-(O-ce),-(P-de)):this.$scrollContainer.scrollTo(ce,de)}}const[e,t,s,r]=this.containerBounds,[i,n,o,a,h,u]=this.pointer;this.coords[0]+=(i-h)*this.dragSpeed,this.coords[1]+=(n-u)*this.dragSpeed,this.pointer[4]=i,this.pointer[5]=n;const[f,l]=this.coords,[d,c]=this.snapped,p=(1-this.containerFriction)*this.dragSpeed;this.setX(f>t?t+(f-t)*p:f<r?r+(f-r)*p:f,!1),this.setY(l>s?s+(l-s)*p:l<e?e+(l-e)*p:l,!1),this.computeVelocity(i-h,n-u),this.angle=qs(n-a,i-o);const[g,v]=this.snapped;(g!==d&&this.snapX||v!==c&&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 kt([this],null,"x"),kt([this],null,"y"),kt([this],null,"progressX"),kt([this],null,"progressY"),kt([this.scroll]),kt([this.overshootCoords]),this}scrollInView(e,t=0,s=wt.inOutQuad){this.updateScrollCoords();const r=this.destX,i=this.destY,n=this.scroll,o=this.scrollBounds,a=this.canScroll;if(!this.containerArray&&this.isOutOfBounds(o,r,i)){const[h,u,f,l]=o,d=F(Z(i-h,-pt,0),0),c=F(Z(r-u,0,pt),0),p=F(Z(i-f,0,pt),0),g=F(Z(r-l,-pt,0),0);new Tt(n,{x:F(n.x+(g?g-t:c?c+t:0),0),y:F(n.y+(d?d-t:p?p+t:0),0),duration:D(e)?350*z.timeScale:e,ease:s,onUpdate:()=>{this.canScroll=!1,this.$scrollContainer.scrollTo(n.x,n.y)}}).init().then(()=>{this.canScroll=a})}return this}handleHover(){this.isFinePointer&&this.cursor&&!this.cursorStyles&&(this.cursorStyles=Ct(this.$trigger,{cursor:this.cursor.onHover}))}animateInView(e,t=0,s=wt.inOutQuad){this.stop(),this.updateBoundingValues();const r=this.x,i=this.y,[n,o,a,h]=this.containerPadding,u=this.scroll.y-this.targetBounds[0]+n+t,f=this.scroll.x-this.targetBounds[1]-o-t,l=this.scroll.y-this.targetBounds[2]-a-t,d=this.scroll.x-this.targetBounds[3]+h+t,c=this.isOutOfBounds([u,f,l,d],r,i);if(c){const[p,g]=this.disabled,v=Z(zt(r,this.snapX),d,f),_=Z(zt(i,this.snapY),u,l),S=D(e)?350*z.timeScale:e;!p&&(c===1||c===3)&&this.animate[this.xProp](v,S,s),!g&&(c===2||c===3)&&this.animate[this.yProp](_,S,s)}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 s=e.changedTouches,r=s?s[0].clientX:e.clientX,i=s?s[0].clientY:e.clientY,{x:n,y:o}=this.transforms.normalizePoint(r,i),[a,h,u,f]=this.containerBounds,l=(1-this.containerFriction)*this.dragSpeed,d=this.x,c=this.y;this.coords[0]=this.coords[2]=l?d>h?h+(d-h)/l:d<f?f+(d-f)/l:d:d,this.coords[1]=this.coords[3]=l?c>u?u+(c-u)/l:c<a?a+(c-a)/l:c:c,this.pointer[0]=n,this.pointer[1]=o,this.pointer[2]=n,this.pointer[3]=o,this.pointer[4]=n,this.pointer[5]=o,this.pointer[6]=n,this.pointer[7]=o,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 p=It(this.$target,"zIndex",!1);er=(p>er?p:er)+1,this.targetStyles=Ct(this.$target,{zIndex:er}),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.isFinePointer&&this.cursor&&(this.bodyStyles=Ct(Q.body,{cursor:this.cursor.onGrab})),this.scrollInView(100,0,wt.out(3)),this.onGrab(this),Q.addEventListener("touchmove",this),Q.addEventListener("touchend",this),Q.addEventListener("touchcancel",this),Q.addEventListener("mousemove",this),Q.addEventListener("mouseup",this),Q.addEventListener("selectstart",this)}handleMove(e){if(!this.grabbed)return;const t=e.changedTouches,s=t?t[0].clientX:e.clientX,r=t?t[0].clientY:e.clientY,{x:i,y:n}=this.transforms.normalizePoint(s,r),o=i-this.pointer[6],a=n-this.pointer[7];let h=e.target,u=!1,f=!1,l=!1;for(;t&&h&&h!==this.$trigger;){const d=It(h,"overflow-y");if(d!=="hidden"&&d!=="visible"){const{scrollTop:c,scrollHeight:p,clientHeight:g}=h;if(p>g){l=!0,u=c<=3,f=c>=p-g-3;break}}h=h.parentElement}l&&(!u&&!f||u&&a<0||f&&a>0)?(this.pointer[0]=i,this.pointer[1]=n,this.pointer[2]=i,this.pointer[3]=n,this.pointer[4]=i,this.pointer[5]=n,this.pointer[6]=i,this.pointer[7]=n):(Ot(e),this.triggerStyles||(this.triggerStyles=Ct(this.$trigger,{pointerEvents:"none"})),this.$trigger.addEventListener("touchstart",Ot,{passive:!1}),this.$trigger.addEventListener("touchmove",Ot,{passive:!1}),this.$trigger.addEventListener("touchend",Ot),(this.dragged||!this.disabled[0]&&ot(o)>this.dragThreshold||!this.disabled[1]&&ot(a)>this.dragThreshold)&&(this.updateTicker.resume(),this.pointer[2]=this.pointer[0],this.pointer[3]=this.pointer[1],this.pointer[0]=i,this.pointer[1]=n,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,[s,r,i,n,o,a]=this.pointer,[h,u,f,l]=this.containerBounds,[d,c]=this.snapped,p=this.releaseXSpring,g=this.releaseYSpring,v=this.releaseEase,_=this.hasReleaseSpring,S=this.overshootCoords,y=this.x,m=this.y,b=this.computeVelocity(s-o,r-a),k=this.angle=qs(r-n,s-i),w=b*150,E=(1-this.releaseContainerFriction)*this.dragSpeed,O=y+Mr(k)*w,P=m+Nr(k)*w,A=O>u?u+(O-u)*E:O<l?l+(O-l)*E:O,C=P>f?f+(P-f)*E:P<h?h+(P-h)*E:P,H=this.destX=Z(F(zt(A,this.snapX),5),l,u),$=this.destY=Z(F(zt(C,this.snapY),5),h,f),V=this.isOutOfBounds(this.containerBounds,O,P);let x=0,M=0,I=v,L=v,q=0;if(S.x=y,S.y=m,!e){const G=H===u?y>u?-1:1:y<l?-1:1,W=F(y-H,0);p.velocity=t&&_?W?w*G/ot(W):0:b;const{ease:ee,settlingDuration:Y,restDuration:re}=p;x=y===H?0:_?Y:Y-re*z.timeScale,_&&(I=ee),x>q&&(q=x)}if(!t){const G=$===f?m>f?-1:1:m<h?-1:1,W=F(m-$,0);g.velocity=e&&_?W?w*G/ot(W):0:b;const{ease:ee,settlingDuration:Y,restDuration:re}=g;M=m===$?0:_?Y:Y-re*z.timeScale,_&&(L=ee),M>q&&(q=M)}if(!_&&V&&E&&(x||M)){const G=He.blend;new Tt(S,{x:{to:A,duration:x*.65},y:{to:C,duration:M*.65},ease:v,composition:G}).init(),new Tt(S,{x:{to:H,duration:x},y:{to:$,duration:M},ease:v,composition:G}).init(),this.overshootTicker.stretch(an(x,M)).restart()}else e||this.animate[this.xProp](H,x,I),t||this.animate[this.yProp]($,M,L);this.scrollInView(q,this.scrollThreshold,v);let K=!1;H!==d&&(this.snapped[0]=H,this.snapX&&(K=!0)),$!==c&&this.snapY&&(this.snapped[1]=$,this.snapY&&(K=!0)),K&&this.onSnap(this),this.grabbed=!1,this.dragged=!1,this.updated=!0,this.released=!0,this.onRelease(this),this.$trigger.removeEventListener("touchstart",Ot),this.$trigger.removeEventListener("touchmove",Ot),this.$trigger.removeEventListener("touchend",Ot),Q.removeEventListener("touchmove",this),Q.removeEventListener("touchend",this),Q.removeEventListener("touchcancel",this),Q.removeEventListener("mousemove",this),Q.removeEventListener("mouseup",this),Q.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=Ct(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),Q.removeEventListener("touchmove",this),Q.removeEventListener("touchend",this),Q.removeEventListener("touchcancel",this),Q.removeEventListener("mousemove",this),Q.removeEventListener("mouseup",this),Q.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":Ot(e)}}},yc=(e,t)=>new Dn(e,t),Jr=(e=oe)=>new tt({duration:1*z.timeScale,onComplete:e},null,0).resume(),tr=e=>{let t;return((...s)=>{let r,i,n,o,a;t&&(r=t.currentIteration,i=t.iterationProgress,n=t.reversed,o=t._alternate,a=t._startTime,t.revert());const h=e(...s);return h&&!Ee(h)&&h.revert&&(t=h),D(i)||(t.currentIteration=r,t.iterationProgress=(o&&r%2?!n:n)?1-i:i,t._startTime=a),h||oe})},Bn=class{constructor(e={}){Ie.current&&Ie.current.register(this);const t=e.root;let s=Q;t&&(s=t.current||t.nativeElement||st(t)[0]||Q);const r=e.defaults,i=z.defaults,n=e.mediaQueries;if(this.defaults=r?at(r,i):i,this.root=s,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={},n)for(let o in n){const a=Xe.matchMedia(n[o]);this.mediaQueryLists[o]=a,a.addEventListener("change",this)}}register(e){(this.once?this.revertiblesOnce:this.revertibles).push(e)}execute(e){let t=Ie.current,s=Ie.root,r=z.defaults;Ie.current=this,Ie.root=this.root,z.defaults=this.defaults;const i=this.mediaQueryLists;for(let o in i)this.matches[o]=i[o].matches;const n=e(this);return Ie.current=t,Ie.root=s,z.defaults=r,n}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(s=>{const r=s(this);Ee(r)&&this.revertConstructors.push(r)})}),this}add(e,t){if(this.once=!1,Ee(e)){const s=e;this.constructors.push(s),this.execute(()=>{const r=s(this);Ee(r)&&this.revertConstructors.push(r)})}else this.methods[e]=(...s)=>this.execute(()=>t(...s));return this}addOnce(e){if(this.once=!0,Ee(e)){const t=this.onceIndex++;if(this.constructorsOnce[t])return this;const s=e;this.constructorsOnce[t]=s,this.execute(()=>{const r=s(this);Ee(r)&&this.revertConstructorsOnce.push(r)})}return this}keepTime(e){this.once=!0;const t=this.onceIndex++,s=this.constructorsOnce[t];if(Ee(s))return s(this);const r=tr(e);this.constructorsOnce[t]=r;let i;return this.execute(()=>{i=r(this)}),i}handleEvent(e){e.type==="change"&&this.refresh()}revert(){const e=this.revertibles,t=this.revertConstructors,s=this.revertiblesOnce,r=this.revertConstructorsOnce,i=this.mediaQueryLists;let n=e.length,o=t.length,a=s.length,h=r.length;for(;n--;)e[n].revert();for(;o--;)t[o](this);for(;a--;)s[a].revert();for(;h--;)r[h](this);for(let u in i)i[u].removeEventListener("change",this);e.length=0,t.length=0,this.constructors.length=0,s.length=0,r.length=0,this.constructorsOnce.length=0,this.onceIndex=0,this.matches={},this.methods={},this.mediaQueryLists={},this.data={}}},bc=e=>new Bn(e),_c=()=>{const e=Q.createElement("div");Q.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return Q.body.removeChild(e),t},sr=(e,t)=>e&&Ee(e)?e(t):e,rr=new Map,Sc=class{constructor(e){this.element=e,this.useWin=this.element===Q.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.scale=1,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 tt({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const t=this.backwardX||this.backwardY;Se(this,s=>s.handleScroll(),t)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new tt({autoplay:!1,frameRate:30,onUpdate:t=>{const s=t.deltaTime,r=this.prevScrollX,i=this.prevScrollY,n=this.scrollX,o=this.scrollY,a=r-n,h=i-o;this.prevScrollX=n,this.prevScrollY=o,a&&(this.backwardX=r>n),h&&(this.backwardY=i>o),this.velocity=F(s>0?Math.sqrt(a*a+h*h)/s:0,5)}}).init(),this.resizeTicker=new tt({autoplay:!1,duration:250*z.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new tt({autoplay:!1,duration:500*z.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?Xe:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=F(e?Xe.scrollX:t.scrollLeft,0),this.scrollY=F(e?Xe.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=Xe.innerWidth,this.winHeight=_c()}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 s,r;if(this.useWin)s=this.winWidth,r=this.winHeight;else{const i=t.getBoundingClientRect();s=t.clientWidth,r=t.clientHeight,this.top=i.top,this.left=i.left,this.scale=i.width?s/i.width:i.height?r/i.height:1}this.width=s,this.height=r}refreshScrollObservers(){Se(this,e=>{e.ready&&e._debug&&e.removeDebug()}),this.updateBounds(),Se(this,e=>{e.ready&&(e.refresh(),e.onResize(e),e._debug&&e.debug())})}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){e.type==="scroll"&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.disconnect(),(this.useWin?Xe:this.element).removeEventListener("scroll",this),rr.delete(this.element)}},kc=e=>{const t=e&&st(e)[0]||Q.body;let s=rr.get(t);return s||(s=new Sc(t),rr.set(t,s)),s},ys=(e,t,s,r,i)=>{const n=t==="min",o=t==="max",{n:a,u:h}=Je(t==="top"||t==="left"||t==="start"||n?0:t==="bottom"||t==="right"||t==="end"||o?"100%":t==="center"?"50%":t,Fe);let u=a;return h==="%"?u=a/100*s:h&&(u=Xs(e,Fe,"px",!0).n),o&&r<0&&(u+=r),n&&i>0&&(u+=i),u},ir=(e,t,s,r,i)=>{let n;if(Be(t)){const o=tn.exec(t);if(o){const a=o[0],h=a[0],u=t.split(a),f=u[0]==="min",l=u[0]==="max",d=ys(e,u[0],s,r,i),c=ys(e,u[1],s,r,i);if(f){const p=Wt(ys(e,"min",s),c,h);n=p<d?d:p}else if(l){const p=Wt(ys(e,"max",s),c,h);n=p>d?d:p}else n=Wt(d,c,h)}else n=ys(e,t,s,r,i)}else n=t;return F(n,0)},Hn=e=>{let t;const s=e.targets;for(let r=0,i=s.length;r<i;r++){const n=s[r];if(n[Ht]){t=n;break}}return t},wc=0,$n=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"],qn=class{constructor(e={}){Ie.current&&Ie.current.register(this);const t=U(e.sync,"play pause"),s=t?xt(t):null,r=t&&(t==="linear"||t===rt),i=t&&!(s===rt&&!r),n=t&&(qe(t)||t===!0||r),o=t&&Be(t)&&!i&&!n,a=o?t.split(" ").map(u=>()=>{const f=this.linked;return f&&f[u]?f[u]():null}):null,h=o&&a.length>2;this.index=wc++,this.id=D(e.id)?this.index:e.id,this.container=kc(e.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=i||n||!!a,this.syncEase=i?s:null,this.syncSmooth=n?t===!0||r?1:t:null,this.onSyncEnter=a&&!h&&a[0]?a[0]:oe,this.onSyncLeave=a&&!h&&a[1]?a[1]:oe,this.onSyncEnterForward=a&&h&&a[0]?a[0]:oe,this.onSyncLeaveForward=a&&h&&a[1]?a[1]:oe,this.onSyncEnterBackward=a&&h&&a[2]?a[2]:oe,this.onSyncLeaveBackward=a&&h&&a[3]?a[3]:oe,this.onEnter=e.onEnter||oe,this.onLeave=e.onLeave||oe,this.onEnterForward=e.onEnterForward||oe,this.onLeaveForward=e.onLeaveForward||oe,this.onEnterBackward=e.onEnterBackward||oe,this.onLeaveBackward=e.onLeaveBackward||oe,this.onUpdate=e.onUpdate||oe,this.onResize=e.onResize||oe,this.onSyncComplete=e.onSyncComplete||oe,this.reverted=!1,this.ready=!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=U(e.debug,!1),this._next=null,this._prev=null,mt(this.container,this),Jr(()=>{if(!this.reverted){if(!this.target){const u=st(e.target)[0];this.target=u||Q.body,this.refresh()}this._debug&&this.debug()}})}link(e){if(e&&(e.pause(),this.linked=e,!D(e)&&!D(e.persist)&&(e.persist=!0),!this._params.target)){let t;D(e.targets)?Se(e,s=>{s.targets&&!t&&(t=Hn(s))}):t=Hn(e),this.target=t||Q.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:F(Z(e,0,1),6)}refresh(){this.ready=!0,this.reverted=!1;const e=this._params;return this.repeat=U(sr(e.repeat,this),!0),this.horizontal=U(sr(e.axis,this),"y")==="x",this.enter=U(sr(e.enter,this),"end start"),this.leave=U(sr(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,s=e.element.querySelector(":scope > .animejs-onscroll-debug"),r=Q.createElement("div"),i=Q.createElement("div"),n=Q.createElement("div"),o=$n[this.index%$n.length],a=e.useWin,h=a?e.winWidth:e.width,u=a?e.winHeight:e.height,f=e.scrollWidth,l=e.scrollHeight,d=this.container.width>360?320:260,c=t?0:10,p=t?10:0,g=t?24:d/2,v=t?g:15,_=t?60:g,S=t?_:v,y=t?"repeat-x":"repeat-y",m=E=>t?"0px "+E+"px":E+"px 2px",b=E=>`linear-gradient(${t?90:0}deg, ${E} 2px, transparent 1px)`,k=(E,O,P,A,C)=>`position:${E};left:${O}px;top:${P}px;width:${A}px;height:${C}px;`;r.style.cssText=`${k("absolute",c,p,t?f:d,t?d:l)}
93
+ `)?"div":"span";return new Qe.default.SafeString(`<${u} class="squiffy-animate"${h}></${u}>`)})},onWrite(r){s(r)},onLoad(){s(e.outputElement)}}}var fs={ReplaceLabel:$l,RotateSequencePlugin:Hl,RandomPlugin:ql,LivePlugin:Fl,AnimatePlugin:Vl},zl=class{constructor(){this.linkHandlers={}}registerLinkHandler(e,t){this.linkHandlers[e]=t}handleLink(e){const t=e.getAttribute("data-handler")||"",s=this.linkHandlers[t];return s?[!0,t,s(e)]:[!1,t,{}]}},bt=typeof window<"u",Xe=bt?window:null,Q=bt?document:null,Le={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},ge={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},tt={NONE:0,AUTO:1,FORCE:2},$e={replace:0,none:1,blend:2},sn=Symbol(),Ht=Symbol(),Dr=Symbol(),ds=Symbol(),rn=Symbol(),Re=1e-11,gt=1e12,Ye=1e3,Su="var(",$s=[],Br=(()=>{const e=new Map;return e.set("x","translateX"),e.set("y","translateY"),e.set("z","translateZ"),e})(),qt=["perspective","translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY"],nn=qt.reduce((e,t)=>({...e,[t]:t+"("}),{}),oe=()=>{},Ul=e=>e,Wl=/\)\s*[-.\d]/,Xl=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,Yl=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Gl=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Zl=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Ql=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,on=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,an=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,Jl=/([a-z])([A-Z])/g,ln=/(\*=|\+=|-=)/,Kl=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/,gs={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:240,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:Ye,delay:0,loopDelay:0,ease:"out(2)",composition:$e.replace,modifier:Ul,onBegin:oe,onBeforeUpdate:oe,onUpdate:oe,onLoop:oe,onPause:oe,onComplete:oe,onRender:oe},Ie={current:null,root:Q},z={defaults:gs,precision:4,timeScale:1,tickThreshold:200,editor:null},cn={version:"4.5.0",engine:null};bt&&(Xe.AnimeJS||(Xe.AnimeJS=[]),Xe.AnimeJS.push(cn));var Hs=e=>e.replace(Jl,"$1-$2").toLowerCase(),Me=(e,t)=>e.indexOf(t)===0,Et=Date.now,He=Array.isArray,De=e=>e&&e.constructor===Object,Fe=e=>typeof e=="number"&&!isNaN(e),Be=e=>typeof e=="string",Ee=e=>typeof e=="function",D=e=>typeof e>"u",Ft=e=>D(e)||e===null,qs=e=>bt&&e instanceof SVGElement,un=e=>Xl.test(e),hn=e=>Me(e,"rgb"),pn=e=>Me(e,"hsl"),jl=e=>un(e)||(hn(e)||pn(e))&&(e[e.length-1]===")"||!Wl.test(e)),Kt=e=>!z.defaults.hasOwnProperty(e),ec=["opacity","rotate","overflow","color"],tc=(e,t)=>{if(ec.includes(t))return!1;if(e.getAttribute(t)||t in e){if(t==="scale"){const s=e.parentNode;return s&&s.tagName==="filter"}return!0}},Vt=e=>Be(e)?parseFloat(e):e,zt=Math.pow,ot=Math.sqrt,$r=Math.sin,Hr=Math.cos,at=Math.abs,Fs=Math.exp,sc=Math.ceil,jt=Math.floor,rc=Math.asin,fn=Math.max,Vs=Math.atan2,_t=Math.PI,qr=Math.round,Z=(e,t,s)=>e<t?t:e>s?s:e,F=(e,t)=>{if(t<0)return e;if(!t)return qr(e);const s=10**t;return qr(e*s)/s},Ut=(e,t)=>He(t)?t.reduce((s,r)=>at(r-e)<at(s-e)?r:s):t?qr(e/t)*t:e,At=(e,t,s)=>s===1?t:s===0?e:e+(t-e)*s,zs=e=>e===1/0?gt:e===-1/0?-gt:e,es=e=>e<=1e-11?Re:zs(F(e,11)),Ue=e=>He(e)?[...e]:e,lt=(e,t)=>{const s={...e};for(let r in t){const i=e[r];s[r]=D(i)?t[r]:i}return s},Se=(e,t,s,r="_prev",i="_next")=>{let o=e._head,n=i;for(s&&(o=e._tail,n=r);o;){const a=o[n];t(o),o=a}},mt=(e,t,s="_prev",r="_next")=>{const i=t[s],o=t[r];i?i[r]=o:e._head=o,o?o[s]=i:e._tail=i,t[s]=null,t[r]=null},vt=(e,t,s,r="_prev",i="_next")=>{let o=e._tail;for(;o&&s&&s(o,t);)o=o[r];const n=o?o[i]:e._head;o?o[i]=t:e._head=t,n?n[r]=t:e._tail=t,t[r]=o,t[i]=n},ic=(e,t,s)=>{const r=e.style.transform;if(r){const i=e[ds];let o=0;const n=r.length;let a;for(;o<n;){for(;o<n&&r.charCodeAt(o)===32;)o++;if(o>=n)break;const u=o;for(;o<n&&r.charCodeAt(o)!==40;)o++;if(o>=n)break;const p=r.substring(u,o);let l=1;const f=o+1;let c=-1,d=-1;for(o++;o<n&&l>0;){const v=r.charCodeAt(o);v===40?l++:v===41?l--:v===44&&l===1&&(c===-1?c=o:d===-1&&(d=o)),o++}const g=o-1;p==="translate"||p==="translate3d"?(c===-1?i.translateX=r.substring(f,g).trim():(i.translateX=r.substring(f,c).trim(),d===-1?i.translateY=r.substring(c+1,g).trim():(i.translateY=r.substring(c+1,d).trim(),i.translateZ=r.substring(d+1,g).trim())),a=r.substring(f,g)):p==="scale"||p==="scale3d"?c===-1?i.scale=r.substring(f,g).trim():(i.scaleX=r.substring(f,c).trim(),d===-1?i.scaleY=r.substring(c+1,g).trim():(i.scaleY=r.substring(c+1,d).trim(),i.scaleZ=r.substring(d+1,g).trim())):i[p]=r.substring(f,g)}if(t==="translate3d"&&a)return s&&(s[t]=a),a;const h=i[t];if(!D(h))return s&&(s[t]=h),h}return t==="translate3d"?"0px, 0px, 0px":t==="rotate3d"?"0, 0, 0, 0deg":Me(t,"scale")?"1":Me(t,"rotate")||Me(t,"skew")?"0deg":"0px"},dn=e=>{let t="";for(let s=0,r=qt.length;s<r;s++){const i=qt[s],o=e[i];if(o!==void 0){if(i==="translateX"){const n=e.translateY;if(n!==void 0){const a=e.translateZ;a!==void 0?(t+=`translate3d(${o},${n},${a}) `,s+=2):(t+=`translate(${o},${n}) `,s+=1);continue}}if(i==="scaleX"&&e.scale===void 0){const n=e.scaleY;if(n!==void 0){const a=e.scaleZ;a!==void 0?(t+=`scale3d(${o},${n},${a}) `,s+=2):(t+=`scale(${o},${n}) `,s+=1);continue}}t+=`${nn[i]}${o}) `}i==="rotateZ"&&e.rotate3d!==void 0&&(t+=`rotate3d(${e.rotate3d}) `)}return e.matrix!==void 0&&(t+=`matrix(${e.matrix}) `),e.matrix3d!==void 0&&(t+=`matrix3d(${e.matrix3d}) `),t},Fr=[];function gn(e,t){if(!e)return null;const s=Fr.length;e:for(let r=0;r<s;r++){const i=Fr[r];if(i.detect&&!i.detect(e))continue;const o=i.targetAdapters;for(let n=0,a=o.length;n<a;n++){const h=o[n];if(h.detect(e)){const u=h.props[t];if(u&&(!u.gate||u.gate(e)))return u;break e}}}for(let r=0;r<s;r++){const i=Fr[r];if(i.detect&&!i.detect(e))continue;const o=i.propertyResolvers;for(let n=0,a=o.length;n<a;n++){const h=o[n](e,t);if(h)return h}}return null}var nc=e=>{const t=Yl.exec(e)||Gl.exec(e),s=D(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],s]},oc=e=>{const t=e.length,s=t===4||t===5;return[+("0x"+e[1]+e[s?1:2]),+("0x"+e[s?2:3]+e[s?2:4]),+("0x"+e[s?3:5]+e[s?3:6]),t===5||t===9?+(+("0x"+e[s?4:7]+e[s?4:8])/255).toFixed(3):1]},Vr=(e,t,s)=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e),ac=e=>{const t=Zl.exec(e)||Ql.exec(e),s=+t[1]/360,r=+t[2]/100,i=+t[3]/100,o=D(t[4])?1:+t[4];let n,a,h;if(r===0)n=a=h=i;else{const u=i<.5?i*(1+r):i+r-i*r,p=2*i-u;n=F(Vr(p,u,s+1/3)*255,0),a=F(Vr(p,u,s)*255,0),h=F(Vr(p,u,s-1/3)*255,0)}return[n,a,h,o]},lc=e=>hn(e)?nc(e):un(e)?oc(e):pn(e)?ac(e):[0,0,0,1],U=(e,t)=>D(e)?t:e,mn=(e,t)=>{const s=e.match(Kl),r=t[Ht]?t:document.documentElement;let i=getComputedStyle(r)?.getPropertyValue(s[1]);return(!i||i.trim()==="")&&s[2]&&(i=s[2].trim()),i||0},Ne=(e,t,s,r,i,o)=>{if(Ee(e)){if(!i){const a=e(t,s,r,o);return isNaN(+a)?a||0:+a}const n=()=>{const a=e(t,s,r,o);return isNaN(+a)?a||0:+a};return i.func=n,n()}if(Be(e)&&Me(e,"var(")){if(!i)return mn(e,t);const n=()=>mn(e,t);return i.func=n,n()}return e},zr=(e,t)=>e[Ht]?e[Dr]&&tc(e,t)?Le.ATTRIBUTE:qt.includes(t)||Br.get(t)?Le.TRANSFORM:Me(t,"--")?Le.CSS_VAR:t in e.style?Le.CSS:t in e?Le.OBJECT:Le.ATTRIBUTE:Le.OBJECT,vn=(e,t,s)=>{const r=e.style[t];r&&s&&(s[t]=r);const i=r||getComputedStyle(e[rn]||e).getPropertyValue(t);return i==="auto"?"0":i},Wt=(e,t,s,r)=>{const i=D(s)?zr(e,t):s,o=gn(e,t);if(o){const n=o.get(e);return n&&r&&(r[t]=n),n??0}if(i===Le.OBJECT){const n=e[t];return n&&r&&(r[t]=n),n||0}if(i===Le.ATTRIBUTE){const n=e.getAttribute(t);return n&&r&&(r[t]=n),n}return i===Le.TRANSFORM?ic(e,t,r):i===Le.CSS_VAR?vn(e,t,r).trimStart():vn(e,t,r)},Xt=(e,t,s)=>s==="-"?e-t:s==="+"?e+t:e*t,Ur=()=>({t:ge.NUMBER,n:0,u:null,o:null,d:null,s:null}),Je=(e,t)=>{if(t.t=ge.NUMBER,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const s=+e;if(!isNaN(s))return t.n=s,t;let r=e;r[1]==="="&&(t.o=r[0],r=r.slice(2));const i=r.includes(" ")?!1:an.exec(r);if(i)return t.t=ge.UNIT,t.n=+i[1],t.u=i[2],t;if(t.o)return t.n=+r,t;if(jl(r))return t.t=ge.COLOR,t.d=lc(r),t;{const o=r.match(on);return t.t=ge.COMPLEX,t.d=o?o.map(Number):[],t.s=r.split(on)||[],t}},yn=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=Ue(e._toNumbers),t.s=Ue(e._strings),t),Ve=Ur(),bn=(e,t,s)=>{const r=e._modifier,i=e._fromNumbers,o=e._toNumbers,n=e._strings;let a=n[0];for(let h=0,u=o.length;h<u;h++){const p=r(F(At(i[h],o[h],t),s)),l=n[h+1];a+=`${l?p+l:p}`,e._numbers[h]=p}return a},Us=(e,t,s,r,i)=>{const o=e.parent,n=e.duration,a=e.completed,h=e.iterationDuration,u=e.iterationCount,p=e._currentIteration,l=e._loopDelay,f=e._reversed,c=e._alternate,d=e._hasChildren,g=e._delay,v=e._currentTime,_=g+h,S=t-g,y=Z(v,-g,n),m=Z(S,-g,n),b=S-v,k=m>0,w=m>=n,A=n<=Re,O=i===tt.FORCE;let P=0,E=S,T=0;if(u>1){const M=h+(w?0:l),I=~~(m/M);e._currentIteration=Z(I,0,u),w&&e._currentIteration--,P=e._currentIteration%2,E=m-I*M||0}const $=f^(c&&P),H=e._ease;let V=w?$?0:n:$?h-E:E;H&&(V=h*H(V/h)||0);const x=(o?o.backwards:S<v)?!$:!!$;if(e._currentTime=S,e._iterationTime=V,e.backwards=x,k&&!e.began?(e.began=!0,!s&&!(o&&(x||!o.began))&&e.onBegin(e)):S<=0&&(e.began=!1),!s&&!d&&k&&e._currentIteration!==p&&e.onLoop(e),O||i===tt.AUTO&&(t>=(o&&g>0?0:g)&&t<=_||t<=g&&y>g||t>=_&&y!==n)||V>=_&&y!==n||V<=g&&y>0&&!w||t<=y&&y===n&&a||w&&!a&&A){if(k&&(e.computeDeltaTime(y),s||e.onBeforeUpdate(e)),!d){const M=O||(x?b*-1:b)>=z.tickThreshold,I=F(e._offset+(o?o._offset:0)+g+V,12);let L=e._head,q,K,G,W,ee=0;for(;L;){const Y=L._composition,re=L._currentTime,me=L._changeDuration,pe=L._absoluteStartTime+L._changeDuration,le=L._nextRep,J=L._prevRep,ce=Y!==$e.none,fe=J?J._absoluteStartTime+J._changeDuration:0,ie=J&&J.parent!==L.parent,ae=!le||le._isOverridden?pe:le.parent===L.parent?pe+le._delay:le._absoluteStartTime<le._absoluteUpdateStartTime?le._absoluteStartTime:le._absoluteUpdateStartTime;if((M||(re!==me||I<=ae||J&&!ie&&(!le||le.parent!==L.parent))&&(re!==0||I>=L._absoluteStartTime||ie&&!L._hasFromValue&&!J._isOverridden&&I>=fe||le&&!le._isOverridden&&le.parent===L.parent&&le._currentTime!==0&&V<le._startTime))&&(!J||ie||V>=L._startTime)&&(!ce||!L._isOverridden&&(!L._isOverlapped||I<=pe)&&(!le||le._isOverridden||I<=ae)&&(!J||J._isOverridden||(ie?I>=L._absoluteStartTime||!L._hasFromValue&&I>=fe:I>=fe+L._delay)))){const ke=L._currentTime=Z(V-L._startTime,0,me),ye=L._ease(ke/L._updateDuration),we=L._modifier,Te=L._valueType,xe=L._tweenType,ve=xe===Le.OBJECT,te=Te===ge.NUMBER,C=te&&ve||ye===0||ye===1?-1:z.precision;let N,B;if(te)N=B=we(F(At(L._fromNumber,L._toNumber,ye),C));else if(Te===ge.UNIT)B=we(F(At(L._fromNumber,L._toNumber,ye),C)),N=`${B}${L._unit}`;else if(Te===ge.COLOR){const R=L._numbers,X=L._fromNumbers,j=L._toNumbers,se=1-ye,be=X[0],Ae=X[1],Oe=X[2],Gt=j[0],Ls=j[1],Nt=j[2];R[0]=we(Math.sqrt(be*be*se+Gt*Gt*ye)),R[1]=we(Math.sqrt(Ae*Ae*se+Ls*Ls*ye)),R[2]=we(Math.sqrt(Oe*Oe*se+Nt*Nt*ye)),R[3]=we(At(X[3],j[3],ye)),(!L._setter||r)&&(N=`rgba(${F(R[0],0)},${F(R[1],0)},${F(R[2],0)},${R[3]})`)}else Te===ge.COMPLEX&&(N=bn(L,ye,C));if(ce&&(L._number=B),!r&&Y!==$e.blend){const R=L.property;q=L.target,L._setter?L._setter(q,B,L):ve?q[R]=N:xe===Le.ATTRIBUTE?q.setAttribute(R,N):(K=q.style,xe===Le.TRANSFORM?(q!==G&&(G=q,W=q[ds]),W[R]=N,ee=1):xe===Le.CSS?K[R]=N:xe===Le.CSS_VAR&&K.setProperty(R,N)),k&&(T=1)}else L._value=N}else re&&J&&!ie&&V<L._startTime&&(L._currentTime=0);ee&&L._renderTransforms&&(K.transform=dn(W),ee=0),L=L._next}!s&&T&&e.onRender(e)}!s&&k&&e.onUpdate(e)}return o&&A?!s&&(o.began&&!x&&S>0&&!a||x&&S<=1e-11&&a)&&(e.onComplete(e),e.completed=!x):k&&w?u===1/0?e._startTime+=e.duration:e._currentIteration>=u-1&&(e.paused=!0,!a&&!d&&(e.completed=!0,!s&&!(o&&(x||!o.began))&&(e.onComplete(e),e._resolve(e)))):e.completed=!1,T},Yt=(e,t,s,r,i)=>{const o=e._currentIteration;if(Us(e,t,s,r,i),e._hasChildren){const n=e,a=n.backwards,h=r?t:n._iterationTime,u=Et();let p=0,l=!0;if(!r&&n._currentIteration!==o){const f=n.iterationDuration;Se(n,c=>{if(!a)!c.completed&&!c.backwards&&c._currentTime<c.iterationDuration&&Us(c,f,s,1,tt.FORCE),c.began=!1,c.completed=!1;else{const d=c.duration,g=c._offset+c._delay,v=g+d;!s&&d<=1e-11&&(!g||v===f)&&c.onComplete(c)}}),s||n.onLoop(n)}Se(n,f=>{const c=F((h-f._offset)*f._speed,12);if(a&&c>f._delay+f.duration)return;const d=f._fps<n._fps?f.requestTick(u):i;p+=Us(f,c,s,r,d),!f.completed&&l&&(l=!1)},a),!s&&p&&n.onRender(n),(l||a)&&n._currentTime>=n.duration&&(n.paused=!0,n.completed||(n.completed=!0,s||(n.onComplete(n),n._resolve(n))))}},_n={},Wr=(e,t,s)=>{if(s===Le.TRANSFORM){const r=Br.get(e);return r||e}else if(s===Le.CSS||s===Le.ATTRIBUTE&&qs(t)&&e in t.style){const r=_n[e];if(r)return r;{const i=e&&Hs(e);return _n[e]=i,i}}else return e},Ws=(e,t=!1)=>{if(e._hasChildren)Se(e,s=>Ws(s,t),!0);else{const s=e;s.pause(),Se(s,r=>{const i=r.property,o=r.target,n=r._tweenType,a=r._inlineValue,h=Ft(a)||a==="";if(r._setter){if(!t&&!h){if(Je(a,Ve),Ve.d){const u=Ve.d,p=r._numbers;for(let l=0,f=u.length;l<f;l++)p[l]=u[l]}else r._number=Ve.n;r._setter(r.target,r._number,r)}}else if(n===Le.OBJECT)!t&&!h&&(o[i]=a);else if(o[Ht])if(n===Le.ATTRIBUTE)t||(h?o.removeAttribute(i):o.setAttribute(i,a));else{const u=o.style;if(n===Le.TRANSFORM){const p=o[ds];h?delete p[i]:p[i]=a,r._renderTransforms&&(Object.keys(p).length?u.transform=dn(p):u.removeProperty("transform"))}else h?u.removeProperty(Hs(i)):u[i]=a}o[Ht]&&s._tail===r&&s.targets.forEach(u=>{u.getAttribute&&u.getAttribute("style")===""&&u.removeAttribute("style")})})}return e},Sn=e=>Ws(e,!0),kn=class{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._lastTickTime=e,this._startTime=e,this._lastTime=e,this._frameDuration=Ye/240,this._fps=240,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=+e,s=t<1e-11?Re:t,r=Ye/s;s>gs.frameRate&&(gs.frameRate=s),this._fps=s,this._frameDuration=r}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<1e-11?Re:t}requestTick(e){const t=this._frameDuration,s=e-this._lastTickTime,r=t*.25;return s+(r<4?r:4)<t?tt.NONE:(this._lastTickTime=s>=t?e-s%t:e,tt.AUTO)}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}},ts={animation:null,update:oe},cc=e=>{let t=ts.animation;return t||(t={duration:Re,computeDeltaTime:oe,_offset:0,_delay:0,_head:null,_tail:null},ts.animation=t,ts.update=()=>{e.forEach(s=>{for(let r in s){const i=s[r],o=i._head;if(o){const n=o._valueType,a=n===ge.COMPLEX||n===ge.COLOR?Ue(o._fromNumbers):null;let h=o._fromNumber,u=i._tail;for(;u&&u!==o;){if(a)for(let p=0,l=u._numbers.length;p<l;p++)a[p]+=u._numbers[p];else h+=u._number;u=u._prevAdd}o._toNumber=h,o._toNumbers=a}}}),Us(t,1,1,0,tt.FORCE)}),t},wn=bt?requestAnimationFrame:setImmediate,uc=bt?cancelAnimationFrame:clearImmediate,hc=class extends kn{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=gs,this.paused=!0,this.reqId=0}update(){const e=this._currentTime=Et();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,s=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()):Yt(r,(e-r._startTime)*r._speed*t,0,0,r._fps<s?r.requestTick(e):tt.AUTO),r=i}ts.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(Et()),this.reqId=wn(xn)),this}pause(){if(this.reqId)return this.paused=!0,pc()}resume(){if(this.paused)return this.paused=!1,Se(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(z.timeScale===1?1:Ye)}set speed(e){const t=e*z.timeScale;this._speed!==t&&(this._speed=t,Se(this,s=>s.speed=s._speed))}get timeUnit(){return z.timeScale===1?"ms":"s"}set timeUnit(e){const s=e==="s",r=s?.001:1;if(z.timeScale!==r){z.timeScale=r,z.tickThreshold=200*r;const i=s?.001:Ye;this.defaults.duration*=i,this._speed*=i}}get precision(){return z.precision}set precision(e){z.precision=e}},ze=(()=>{const e=new hc(Et());return bt&&(cn.engine=e,Q.addEventListener("visibilitychange",()=>{e.pauseOnDocumentHidden&&(Q.hidden?e.pause():e.resume())})),e})(),xn=()=>{ze._head?(ze.reqId=wn(xn),ze.update()):ze.reqId=0},pc=()=>(uc(ze.reqId),ze.reqId=0,ze),Xs={_rep:new WeakMap,_add:new Map},Xr=(e,t,s="_rep")=>{const r=Xs[s];let i=r.get(e);return i||(i={},r.set(e,i)),i[t]?i[t]:i[t]={_head:null,_tail:null}},fc=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,Ys=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=Re,e._currentTime=Re},Tn=(e,t)=>{const s=e._composition;if(s===$e.replace){const r=e._absoluteStartTime;vt(t,e,fc,"_prevRep","_nextRep");const i=e._prevRep;if(i){const o=i.parent,n=i._absoluteEndTime;if(e.parent.id!==o.id&&o.iterationCount>1&&n+(o.duration-o.iterationDuration)>r){Ys(i);let u=i._prevRep;for(;u&&u.parent.id===o.id;)Ys(u),u=u._prevRep}const a=e._absoluteUpdateStartTime;if(n>a){const u=i._startTime,p=n-(u+i._updateDuration),l=F(a-p-u,12);i._changeDuration=l,i._currentTime=l,i._isOverlapped=1,l<1e-11&&Ys(i)}const h=e.parent.parent;if(!h||h!==o.parent){let u=!0;if(Se(o,p=>{p._isOverlapped||(u=!1)}),u){const p=o.parent;if(p){let l=!0;Se(p,f=>{f!==o&&Se(f,c=>{c._isOverlapped||(l=!1)})}),l&&p.cancel()}else o.cancel()}}}}else if(s===$e.blend){const r=Xr(e.target,e.property,"_add"),i=cc(Xs._add);let o=r._head;o||(o={...e},o._composition=$e.replace,o._updateDuration=Re,o._startTime=0,o._numbers=Ue(e._fromNumbers),o._number=0,o._next=null,o._prev=null,vt(r,o),vt(i,o));const n=e._toNumber;if(e._fromNumber=o._fromNumber-n,e._toNumber=0,e._numbers=Ue(e._fromNumbers),e._number=0,o._fromNumber=n,e._toNumbers.length){const a=Ue(e._toNumbers);a.forEach((h,u)=>{e._fromNumbers[u]=o._fromNumbers[u]-h,e._toNumbers[u]=0}),o._fromNumbers=a}vt(r,e,null,"_prevAdd","_nextAdd")}return e},Cn=e=>{const t=e._composition;if(t!==$e.none){const s=e.target,r=e.property,i=Xs._rep.get(s)[r];if(mt(i,e,"_prevRep","_nextRep"),t===$e.blend){const o=Xs._add,n=o.get(s);if(!n)return;const a=n[r],h=ts.animation;mt(a,e,"_prevAdd","_nextAdd");const u=a._head;if(u&&u===a._tail){mt(a,u,"_prevAdd","_nextAdd"),mt(h,u);let p=!0;for(let l in n)if(n[l]._head){p=!1;break}p&&o.delete(s)}}}return e},Pn=(e,t,s)=>{let r=!1;return Se(t,i=>{const o=i.target;if(e.includes(o)){const n=i.property,a=i._tweenType,h=Wr(s,o,a);(!h||h&&h===n)&&(i.parent._tail===i&&i._tweenType===Le.TRANSFORM&&i._prev&&i._prev._tweenType===Le.TRANSFORM&&(i._prev._renderTransforms=1),mt(t,i),Cn(i),r=!0)}},!0),r},kt=(e,t,s)=>{const r=t||ze;let i;if(r._hasChildren){let o=0;Se(r,n=>{if(!n._hasChildren)if(i=Pn(e,n,s),i&&!n._head)n.cancel(),mt(r,n);else{const a=n._offset+n._delay+n.duration;a>o&&(o=a)}n._head?kt(e,n,s):n._hasChildren=!1},!0),D(r.iterationDuration)||(r.iterationDuration=o)}else i=Pn(e,r,s);i&&!r._head&&(r._hasChildren=!1,r.cancel&&r.cancel())},En=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),Yr=e=>(e._cancelled&&(e._hasChildren?Se(e,Yr):Se(e,t=>{t._composition!==$e.none&&Tn(t,Xr(t.target,t.property))}),e._cancelled=0),e),An=0,dc=(e,t)=>e._priority>t._priority,st=class extends kn{constructor(e={},t=null,s=0){super(0),++An;const{id:r,delay:i,duration:o,reversed:n,alternate:a,loop:h,loopDelay:u,autoplay:p,frameRate:l,playbackRate:f,priority:c,onComplete:d,onLoop:g,onPause:v,onBegin:_,onBeforeUpdate:S,onUpdate:y}=e;Ie.current&&Ie.current.register(this);const m=t?0:ze._lastTickTime,b=t?t.defaults:z.defaults,k=Ee(i)||D(i)?b.delay:+i,w=Ee(o)||D(o)?1/0:+o,A=U(h,b.loop),O=U(u,b.loopDelay);let P=A===!0||A===1/0||A<0?1/0:A+1,E=0;t?E=s:(ze.reqId||ze.requestTick(Et()),E=(ze._lastTickTime-ze._startTime)*z.timeScale),this.id=D(r)?An:r,this.parent=t,this.duration=zs((w+O)*P-O)||1e-11,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=_||b.onBegin,this.onBeforeUpdate=S||b.onBeforeUpdate,this.onUpdate=y||b.onUpdate,this.onLoop=g||b.onLoop,this.onPause=v||b.onPause,this.onComplete=d||b.onComplete,this.iterationDuration=w,this.iterationCount=P,this._autoplay=t?!1:U(p,b.autoplay),this._offset=E,this._delay=k,this._loopDelay=O,this._iterationTime=0,this._currentIteration=0,this._resolve=oe,this._running=!1,this._reversed=+U(n,b.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=U(a,b.alternate),this._prev=null,this._next=null,this._lastTickTime=m,this._startTime=m,this._lastTime=m,this._fps=U(l,b.frameRate),this._speed=U(f,b.playbackRate),this._priority=+U(c,1)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(!0).play()}get currentTime(){return Z(F(this._currentTime,z.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return Z(F(this._iterationTime,z.precision),0,this.iterationDuration)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return Z(F(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return Z(F(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*Z(+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=!1){return Yr(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,Yt(this,0,1,~~e,tt.FORCE),En(this),this._hasChildren&&Se(this,En),this}init(e=!1){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&Yt(this,this.duration,1,~~e,tt.FORCE),this.reset(e);const t=this._autoplay;return t===!0?this.resume():t&&!D(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*ze._speed);return this._startTime=Et()-(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<=1e-11&&!this._hasChildren?Yt(this,Re,0,0,tt.FORCE):(this._running||(vt(ze,this,dc),ze._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,ze.wake()),this):this}restart(){return this.reset().resume()}seek(e,t=0,s=0){Yr(this),this.completed=!1;const r=this.paused;return this.paused=!0,Yt(this,e+this._delay,~~t,~~s,tt.AUTO),r?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,s=this.iterationDuration,r=t===1/0?jt(gt/s):t;return this._reversed=+(this._alternate&&!(r%2)?e:!e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(s*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,Cn),this._cancelled=1,this.pause()}stretch(e){const t=this.duration,s=es(e);if(t===s)return this;const r=e/t,i=e<=Re;return this.duration=i?Re:s,this.iterationDuration=i?Re:es(this.iterationDuration*r),this._offset*=r,this._delay*=r,this._loopDelay*=r,this}revert(){Yt(this,0,1,0,tt.AUTO);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(e=0){return this.seek(this.duration,e).cancel()}then(e=oe){const t=this.then,s=()=>{this.then=null,e(this),this.then=t,this._resolve=oe};return new Promise(r=>(this._resolve=()=>r(s()),this.completed&&this._resolve(),this))}},gc=e=>new st(e,null,0).init();function Gr(e){const t=Be(e)?Ie.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function rt(e){if(Ft(e))return[];if(!bt)return He(e)&&e.flat(1/0)||[e];if(He(e)){const s=e.flat(1/0),r=[];for(let i=0,o=s.length;i<o;i++){const n=s[i];if(!Ft(n)){const a=Gr(n);if(a)for(let h=0,u=a.length;h<u;h++){const p=a[h];if(!Ft(p)){let l=!1;for(let f=0,c=r.length;f<c;f++)if(r[f]===p){l=!0;break}l||r.push(p)}}else{let h=!1;for(let u=0,p=r.length;u<p;u++)if(r[u]===n){h=!0;break}h||r.push(n)}}}return r}const t=Gr(e);return t?Array.from(t):[e]}function Lt(e){const t=rt(e),s=t.length;for(let r=0;r<s;r++){const i=t[r];if(!i[sn]){i[sn]=!0;const o=qs(i);(i.nodeType||o)&&(i[Ht]=!0,i[Dr]=o,i[ds]={})}}return t}var Zr={deg:1,rad:180/_t,turn:360},Ln={},Gs=(e,t,s,r=!1)=>{const i=t.u,o=t.n;if(t.t===ge.UNIT&&i===s)return t;const n=o+i+s,a=Ln[n];if(!D(a)&&!r)t.n=a;else{let h;if(i in Zr)h=o*Zr[i]/Zr[s];else{const p=e.cloneNode(),l=e.parentNode,f=l&&l!==Q?l:Q.body;f.appendChild(p);const c=p.style;c.width=100+i;const d=p.offsetWidth||100;c.width=100+s;const g=d/(p.offsetWidth||100);f.removeChild(p),h=g*o}t.n=h,Ln[n]=h}return t.t,ge.UNIT,t.u=s,t},it=e=>e,ms=(e=1.68)=>t=>zt(t,+e),Qr={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(t*2)/2:1-e(t*-2+2)/2,outIn:e=>t=>t<.5?(1-e(1-t*2))/2:(e(t*2-1)+1)/2},mc=_t/2,Rn=_t*2,In={"":ms,Quad:ms(2),Cubic:ms(3),Quart:ms(4),Quint:ms(5),Sine:e=>1-Hr(e*mc),Circ:e=>1-ot(1-e*e),Expo:e=>e?zt(2,10*e-10):0,Bounce:e=>{let t,s=4;for(;e<((t=zt(2,--s))-1)/11;);return 1/zt(4,3-s)-7.5625*zt((t*3-2)/22-e,2)},Back:(e=1.7)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const s=Z(+e,1,10),r=Z(+t,Re,2),i=r/Rn*rc(1/s),o=Rn/r;return n=>n===0||n===1?n:-s*zt(2,-10*(1-n))*$r((1-n-i)*o)}},wt=(()=>{const e={linear:it,none:it};for(let t in Qr)for(let s in In){const r=In[s],i=Qr[t];e[t+s]=s===""||s==="Back"||s==="Elastic"?(o,n)=>i(r(o,n)):i(r)}return e})(),Zs={linear:it,none:it},On=e=>{if(Zs[e])return Zs[e];if(e.indexOf("(")<=-1){const t=Qr[e]||e.includes("Back")||e.includes("Elastic")?wt[e]():wt[e];return t?Zs[e]=t:it}else{const t=e.slice(0,-1).split("("),s=wt[t[0]];return s?Zs[e]=s(...t[1].split(",")):it}},Nn=["steps(","irregular(","linear(","cubicBezier("],xt=e=>{if(Be(e)){for(let t=0,s=Nn.length;t<s;t++)if(Me(e,Nn[t]))return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``),it}return Ee(e)?e:Be(e)?On(e):it},ne=Ur(),de=Ur(),ss={},Qs={func:null},Js={func:null},Ks=[null],rs=[null,null],js={to:null},vc=0,Mn=0,Rt,St,yc=(e,t)=>{const s={};if(He(e)){const r=[].concat(...e.map(i=>Object.keys(i))).filter(Kt);for(let i=0,o=r.length;i<o;i++){const n=r[i];s[n]=e.map(a=>{const h={};for(let u in a){const p=a[u];Kt(u)?u===n&&(h.to=p):h[u]=p}return h})}}else{const r=U(t.duration,z.defaults.duration);Object.keys(e).map(i=>({o:parseFloat(i)/100,p:e[i]})).sort((i,o)=>i.o-o.o).forEach(i=>{const o=i.o,n=i.p;for(let a in n)if(Kt(a)){let h=s[a];h||(h=s[a]=[]);const u=o*r;let p=h.length,l=h[p-1];const f={to:n[a]};let c=0;for(let d=0;d<p;d++)c+=h[d].duration;p===1&&(f.from=l.to),n.ease&&(f.ease=n.ease),f.duration=u-(p?c:0),h.push(f)}return i});for(let i in s){const o=s[i];let n;for(let a=0,h=o.length;a<h;a++){const u=o[a],p=u.ease;u.ease=n||void 0,n=p}o[0].duration||o.shift()}}return s},Tt=class extends st{constructor(e,t,s,r,i=!1,o=0,n){super(t,s,r),this._head,this._tail,++Mn;const a=Lt(e),h=a.length,u=t.keyframes,p=u?lt(yc(u,t),t):t,{id:l,delay:f,duration:c,ease:d,playbackEase:g,modifier:v,composition:_,onRender:S}=p,y=s?s.defaults:z.defaults,m=U(d,y.ease),b=U(g,y.playbackEase),k=b?xt(b):null,w=!D(m.ease),A=w?m.ease:U(d,k?"linear":y.ease),O=w?m.settlingDuration:U(c,y.duration),P=U(f,y.delay),E=v||y.modifier,T=D(_)&&h>=1e3?$e.none:D(_)?y.composition:_,$=this._offset+(s?s._offset:0);w&&(m.parent=this);let H=NaN,V=NaN,x=0,M=0;for(let I=0;I<h;I++){const L=a[I],q=o||I,K=n||a;let G=NaN,W=NaN;for(let ee in p)if(Kt(ee)){const Y=zr(L,ee),re=gn(L,ee),me=Wr(ee,L,Y);let pe=p[ee];const le=He(pe);if(i&&!le&&(rs[0]=pe,rs[1]=pe,pe=rs),le){const ke=pe.length,ye=!De(pe[0]);ke===2&&ye?(js.to=pe,Ks[0]=js,Rt=Ks):ke>2&&ye?(Rt=[],pe.forEach((we,Te)=>{Te?Te===1?(rs[1]=we,Rt.push(rs)):Rt.push(we):rs[0]=we})):Rt=pe}else Ks[0]=pe,Rt=Ks;let J=null,ce=null,fe=NaN,ie=0,ae=0;for(let ke=Rt.length;ae<ke;ae++){const ye=Rt[ae];De(ye)?St=ye:(js.to=ye,St=js),Qs.func=null,Js.func=null;const we=Ne(U(St.composition,T),L,q,K,null,null),Te=Fe(we)?we:$e[we];!J&&Te!==$e.none&&(J=Xr(L,me));const xe=J?J._tail:null,ve=s&&xe&&xe.parent.parent===s?xe:ce,te=Ne(St.to,L,q,K,Qs,ve);let C;De(te)&&!D(te.to)?(St=te,C=te.to):C=te;const N=Ne(St.from,L,q,K,Js,ve),B=St.ease||A,R=Ne(B,L,q,K,null,ve),X=Ee(R)||Be(R)?R:B,j=!D(X)&&!D(X.ease),se=j?X.ease:X,be=j?X.settlingDuration:Ne(U(St.duration,ke>1?Ne(O,L,q,K,null,ve)/ke:O),L,q,K,null,ve),Ae=Ne(U(St.delay,ae?0:P),L,q,K,null,ve),Oe=St.modifier||E,Gt=!D(N),Ls=!D(C),Nt=He(C),pu=Nt||Gt&&Ls,fu=ce?ie:0,yi=ce?ie+Ae:Ae,bi=F($+yi,12),du=F($+fu,12);!M&&(Gt||Nt)&&(M=1);let ht=ce;if(Te!==$e.none){let _e=J._head;for(;_e&&_e._absoluteStartTime<=bi;)if(_e._isOverridden||(ht=_e),_e=_e._nextRep,_e&&_e._absoluteStartTime>=bi)for(;_e;)Ys(_e),_e=_e._nextRep}if(pu){Je(Nt?Ne(C[0],L,q,K,Js,ve):N,ne),Je(Nt?Ne(C[1],L,q,K,Qs,ve):C,de);const _e=Wt(L,me,Y,ss);ne.t===ge.NUMBER&&(ht?ht._valueType===ge.UNIT&&(ne.t=ge.UNIT,ne.u=ht._unit):(Je(_e,Ve),Ve.t===ge.UNIT&&(ne.t=ge.UNIT,ne.u=Ve.u)))}else Ls?Je(C,de):ce?yn(ce,de):Je(s&&ht&&ht.parent.parent===s?ht._value:Wt(L,me,Y,ss),de),Gt?Je(N,ne):ce?yn(ce,ne):Je(s&&ht&&ht.parent.parent===s?ht._value:Wt(L,me,Y,ss),ne);if(ne.o&&(ne.n=Xt(ht?ht._toNumber:Je(Wt(L,me,Y,ss),Ve).n,ne.n,ne.o)),de.o&&(de.n=Xt(ne.n,de.n,de.o)),ne.t!==de.t){if(ne.t===ge.COMPLEX||de.t===ge.COMPLEX){const _e=ne.t===ge.COMPLEX?ne:de,Ze=ne.t===ge.COMPLEX?de:ne;Ze.t=ge.COMPLEX,Ze.s=Ue(_e.s),Ze.d=_e.d.map(()=>Ze.n)}else if(ne.t===ge.UNIT||de.t===ge.UNIT){const _e=ne.t===ge.UNIT?ne:de,Ze=ne.t===ge.UNIT?de:ne;Ze.t=ge.UNIT,Ze.u=_e.u}else if(ne.t===ge.COLOR||de.t===ge.COLOR){const _e=ne.t===ge.COLOR?ne:de,Ze=ne.t===ge.COLOR?de:ne;Ze.t=ge.COLOR,Ze.d=_e.d.map(()=>0)}}if(ne.u!==de.u){let _e=de.u?ne:de;_e=Gs(L,_e,de.u?de.u:ne.u,!1)}if(de.d&&ne.d&&de.d.length!==ne.d.length){const _e=ne.d.length>de.d.length?ne:de,Ze=_e===ne?de:ne;Ze.d=_e.d.map((ku,Fo)=>D(Ze.d[Fo])?0:Ze.d[Fo]),Ze.s=Ue(_e.s)}const _i=F(+be||1e-11,12);let $o=ss[me];Ft($o)||(ss[me]=null);const gu=re?re.set:null;ie=F(yi+_i,12);const vr=ne.d,Ho=de.d,qo=de.s,nt={parent:this,id:vc++,property:me,target:L,_value:null,_toFunc:Qs.func,_fromFunc:Js.func,_ease:xt(se),_fromNumbers:vr?Ue(vr):$s,_toNumbers:Ho?Ue(Ho):$s,_strings:qo?Ue(qo):$s,_fromNumber:ne.n,_toNumber:de.n,_numbers:vr?Ue(vr):$s,_number:ne.n,_unit:de.u,_modifier:Oe,_currentTime:0,_startTime:yi,_delay:+Ae,_updateDuration:_i,_changeDuration:_i,_absoluteStartTime:bi,_absoluteUpdateStartTime:du,_absoluteEndTime:F($+ie,12),_hasFromValue:Gt||Nt?1:0,_tweenType:Y,_setter:gu,_valueType:de.t,_composition:Te,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:$o,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};Te!==$e.none&&Tn(nt,J);const Si=nt._valueType;if(Si===ge.COMPLEX)nt._value=bn(nt,1,-1);else if(Si===ge.UNIT)nt._value=`${Oe(nt._toNumber)}${nt._unit}`;else if(Si===ge.COLOR){const _e=de.d;nt._value=`rgba(${F(_e[0],0)},${F(_e[1],0)},${F(_e[2],0)},${_e[3]})`}else nt._value=Oe(nt._toNumber);isNaN(fe)&&(fe=nt._startTime),ce=nt,x++,vt(this,nt)}(isNaN(V)||fe<V)&&(V=fe),(isNaN(H)||ie>H)&&(H=ie),Y===Le.TRANSFORM&&(G=x-ae,W=x)}if(!isNaN(G)){let ee=0;Se(this,Y=>{ee>=G&&ee<W&&(Y._renderTransforms=1,Y._composition===$e.blend&&Se(ts.animation,re=>{re.id===Y.id&&(re._renderTransforms=1)})),ee++})}}h||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),V?(Se(this,I=>{I._startTime-I._delay||(I._delay-=V),I._startTime-=V}),H-=V):V=0,H||(H=Re,this.iterationCount=0),this.targets=a,this.id=D(l)?Mn:l,this.duration=H===1e-11?Re:zs((H+this._loopDelay)*this.iterationCount-this._loopDelay)||1e-11,this.onRender=S||y.onRender,this._ease=k,this._delay=V,this.iterationDuration=H,!this._autoplay&&M&&this.onRender(this)}stretch(e){const t=this.duration;if(t===es(e))return this;const s=e/t;return Se(this,r=>{r._updateDuration=es(r._updateDuration*s),r._changeDuration=es(r._changeDuration*s),r._currentTime*=s,r._delay*=s,r._startTime*=s,r._absoluteStartTime*=s,r._absoluteUpdateStartTime*=s,r._absoluteEndTime*=s}),super.stretch(e)}refresh(){return Se(this,e=>{const t=e._toFunc,s=e._fromFunc;(t||s)&&(s?(Je(s(),ne),ne.u!==e._unit&&e.target[Ht]&&Gs(e.target,ne,e._unit,!0),e._fromNumbers=Ue(ne.d),e._fromNumber=ne.n):t&&(Je(Wt(e.target,e.property,e._tweenType),Ve),e._fromNumbers=Ue(Ve.d),e._fromNumber=Ve.n),t&&(Je(t(),de),e._toNumbers=Ue(de.d),e._strings=Ue(de.s),e._toNumber=de.o?Xt(e._fromNumber,de.n,de.o):de.n))}),this.duration===1e-11&&this.restart(),this}revert(){return super.revert(),Ws(this)}then(e){return super.then(e)}},vs=(e,t)=>z.editor?z.editor.addAnimation(e,t):new Tt(e,t,null,0,!1).init(),bc=(e,t)=>{if(Me(t,"<")){const s=t[1]==="<",r=e._tail,i=r?r._offset+r._delay:0;return s?i:i+r.duration}},ys=(e,t)=>{let s=e.iterationDuration;if(s===1e-11&&(s=0),D(t))return s;if(Fe(+t))return+t;const r=t,i=e?e.labels:null,o=!Ft(i),n=bc(e,r),a=!D(n),h=ln.exec(r);if(h){const u=h[0],p=r.split(u),l=o&&p[0]?i[p[0]]:s,f=a?n:o?l:s,c=+p[1];return Xt(f,c,u[0])}else return a?n:o?D(i[r])?s:i[r]:s};function _c(e){return zs((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||1e-11}function Jr(e,t,s,r,i,o){const n=Fe(e.duration)&&e.duration<=1e-11?s-Re:s;t.composition&&Yt(t,n,1,1,tt.AUTO);const a=r?new Tt(r,e,t,n,!1,i,o):new st(e,t,n);return t.composition&&a.init(!0),vt(t,a),Se(t,h=>{const u=h._offset+h._delay+h.duration;u>t.iterationDuration&&(t.iterationDuration=u)}),t.duration=_c(t),t}var Dn=0,Bn=class extends st{constructor(e={}){super(e,null,0),++Dn,this.id=D(e.id)?Dn:e.id,this.duration=0,this.labels={};const t=e.defaults,s=z.defaults;this.defaults=t?lt(t,s):s,this.composition=U(e.composition,!0),this.onRender=e.onRender||s.onRender;const r=U(e.playbackEase,s.playbackEase);this._ease=r?xt(r):null,this.iterationDuration=0}add(e,t,s){const r=De(t),i=De(e);if(r||i){if(this._hasChildren=!0,r){const o=t,n=z.editor&&z.editor.addTimelineChild,a=s&&s.type==="Stagger"&&z.editor,h=Ee(s)?s:null;if(h||a){const u=rt(e),p=this.duration,l=this.iterationDuration,f=o.id;let c=0;const d=u.length,g=n?n(e,o,this.id,s,d):null,v=h||z.editor.resolveStagger(s.defaultValue);u.forEach(_=>{const S={...g||o};this.duration=p,this.iterationDuration=l,D(f)||(S.id=f+"-"+c);const y=ys(this,v(_,c,u,null,this));Jr(S,this,y,_,c,u),c++})}else{const u=n?n(e,o,this.id,s):o,p=s&&s.type?s.defaultValue:s;Jr(u,this,ys(this,p),e)}}else Jr(e,this,ys(this,t));return this.composition&&this.init(!0),this}}sync(e,t){if(D(e)||e&&D(e.pause))return this;e.pause();const s=+(e.effect?e.effect.getTiming().duration:e.duration);!D(e)&&!D(e.persist)&&(e.persist=!0);const r=z.editor,i=r&&r.addTimelineChild;r&&r.addTimelineSync&&(t=r.addTimelineSync(e,t,this.id),r.addTimelineChild=null);const o=this.add(e,{currentTime:[0,s],duration:s,delay:0,ease:"linear",playbackEase:"linear"},t);return r&&(r.addTimelineChild=i),o}set(e,t,s){return D(t)?this:(t.duration=Re,t.composition=$e.replace,this.add(e,t,s))}call(e,t){return D(e)||e&&!Ee(e)?this:(z.editor&&z.editor.addTimelineCall&&(t=z.editor.addTimelineCall(e,t,this.id)),this.add({duration:0,delay:0,onComplete:()=>e(this)},t))}label(e,t){return D(e)||e&&!Be(e)?this:(z.editor&&z.editor.addTimelineLabel&&(t=z.editor.addTimelineLabel(e,t,this.id)),this.labels[e]=ys(this,t),this)}remove(e,t){return kt(rt(e),this,t),this}stretch(e){const t=this.duration;if(t===es(e))return this;const s=e/t,r=this.labels;Se(this,i=>i.stretch(i.duration*s));for(let i in r)r[i]*=s;return super.stretch(e)}refresh(){return Se(this,e=>{e.refresh&&e.refresh()}),this}revert(){return super.revert(),Se(this,e=>e.revert,!0),Ws(this)}then(e){return super.then(e)}},$n=e=>z.editor?z.editor.addTimeline(e):new Bn(e).init(),Kr=class{constructor(e,t){Ie.current&&Ie.current.register(this);const s=()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},r=()=>{if(this.callbacks.completed)return;let a=!0;for(let h in this.animations)if(!this.animations[h].paused&&a){a=!1;break}a&&this.callbacks.complete()},i={onBegin:s,onComplete:r,onPause:r},o={v:1,autoplay:!1},n={};if(this.targets=[],this.animations={},this.callbacks=null,!(D(e)||D(t))){for(let a in t){const h=t[a];Kt(a)?n[a]=h:Me(a,"on")?o[a]=h:i[a]=h}this.callbacks=new Tt({v:0},o);for(let a in n){const h=n[a],u=De(h);let p={},l="+=0";if(u){const d=h.unit;Be(d)&&(l+=d)}else p.duration=h;p[a]=u?lt({to:l},h):l;const f=lt(i,p);f.composition=$e.replace,f.autoplay=!1;const c=this.animations[a]=new Tt(e,f,null,0,!1).init();this.targets.length||this.targets.push(...c.targets),this[a]=(d,g,v)=>{const _=c._head;if(D(d)&&_){const S=_._numbers;return S&&S.length?S:_._modifier(_._number)}else return Se(c,S=>{if(He(d))for(let y=0,m=d.length;y<m;y++)D(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;D(v)||(S._ease=xt(v)),S._currentTime=0}),D(g)||c.stretch(g),c.reset(!0).resume(),this}}}}revert(){for(let e in this.animations)this[e]=oe,this.animations[e].revert();return this.animations={},this.targets.length=0,this.callbacks&&this.callbacks.revert(),this}},Sc=(e,t)=>new Kr(e,t),kc=Zt({clamp:()=>Z,damp:()=>Ac,degToRad:()=>Pc,lerp:()=>At,mapRange:()=>bs,padEnd:()=>Tc,padStart:()=>xc,radToDeg:()=>Ec,round:()=>F,roundPad:()=>wc,snap:()=>Ut,wrap:()=>Cc}),wc=(e,t)=>(+e).toFixed(t),xc=(e,t,s)=>`${e}`.padStart(t,s),Tc=(e,t,s)=>`${e}`.padEnd(t,s),Cc=(e,t,s)=>((e-t)%(s-t)+(s-t))%(s-t)+t,bs=(e,t,s,r,i)=>r+(e-t)/(s-t)*(i-r),Pc=e=>e*Math.PI/180,Ec=e=>e*180/Math.PI,Ac=(e,t,s,r)=>r?r===1?t:At(e,t,1-Math.exp(-r*s*.1)):e,Ke=Ye*10,er=class{constructor(e={}){const t=!D(e.bounce)||!D(e.duration);this.timeStep=.02,this.restThreshold=5e-4,this.restDuration=200,this.maxDuration=6e4,this.maxRestSteps=this.restDuration/this.timeStep/Ye,this.maxIterations=this.maxDuration/this.timeStep/Ye,this.bn=Z(U(e.bounce,.5),-1,1),this.pd=Z(U(e.duration,628),10*z.timeScale,Ke*z.timeScale),this.m=Z(U(e.mass,1),1,Ke),this.s=Z(U(e.stiffness,100),Re,Ke),this.d=Z(U(e.damping,10),Re,Ke),this.v=Z(U(e.velocity,0),-Ke,Ke),this.w0=0,this.zeta=0,this.wd=0,this.b=0,this.completed=!1,this.solverDuration=0,this.settlingDuration=0,this.parent=null,this.onComplete=e.onComplete||oe,t&&this.calculateSDFromBD(),this.compute(),this.ease=s=>{const r=s*this.settlingDuration,i=this.completed,o=this.pd;return r>=o&&!i&&(this.completed=!0,this.onComplete(this.parent)),r<o&&i&&(this.completed=!1),s===0||s===1?s:this.solve(s*this.solverDuration)}}solve(e){const{zeta:t,w0:s,wd:r,b:i}=this;let o=e;return t<1?o=Fs(-o*t*s)*(1*Hr(r*o)+i*$r(r*o)):t===1?o=(1+i*o)*Fs(-o*s):o=((1+i)*Fs((-t*s+r)*o)+(1-i)*Fs((-t*s-r)*o))/2,1-o}calculateSDFromBD(){const e=z.timeScale===1?this.pd/Ye:this.pd;this.m=1,this.v=0,this.s=zt(2*_t/e,2),this.bn>=0?this.d=(1-this.bn)*4*_t/e:this.d=4*_t/(e*(1+this.bn)),this.s=F(Z(this.s,Re,Ke),3),this.d=F(Z(this.d,Re,300),3)}calculateBDFromSD(){const e=2*_t/ot(this.s);this.pd=e*(z.timeScale===1?Ye:1),this.d/(2*ot(this.s))<=1?this.bn=1-this.d*e/(4*_t):this.bn=4*_t/(this.d*e)-1,this.bn=F(Z(this.bn,-1,1),3),this.pd=F(Z(this.pd,10*z.timeScale,Ke*z.timeScale),3)}compute(){const{maxRestSteps:e,maxIterations:t,restThreshold:s,timeStep:r,m:i,d:o,s:n,v:a}=this,h=this.w0=Z(ot(n/i),Re,Ye),u=this.zeta=o/(2*ot(n*i));u<1?(this.wd=h*ot(1-u*u),this.b=(u*h+-a)/this.wd):u===1?(this.wd=0,this.b=-a+h):(this.wd=h*ot(u*u-1),this.b=(u*h+-a)/this.wd);let p=0,l=0,f=0;for(;l<=e&&f<=t;)at(1-this.solve(p))<s?l++:l=0,this.solverDuration=p,p+=r,f++;this.settlingDuration=F(this.solverDuration*Ye,0)*z.timeScale}get bounce(){return this.bn}set bounce(e){this.bn=Z(U(e,1),-1,1),this.calculateSDFromBD(),this.compute()}get duration(){return this.pd}set duration(e){this.pd=Z(U(e,1),10*z.timeScale,Ke*z.timeScale),this.calculateSDFromBD(),this.compute()}get stiffness(){return this.s}set stiffness(e){this.s=Z(U(e,100),Re,Ke),this.calculateBDFromSD(),this.compute()}get damping(){return this.d}set damping(e){this.d=Z(U(e,10),Re,Ke),this.calculateBDFromSD(),this.compute()}get mass(){return this.m}set mass(e){this.m=Z(U(e,1),1,Ke),this.compute()}get velocity(){return this.v}set velocity(e){this.v=Z(U(e,0),-Ke,Ke),this.compute()}},tr=e=>new er(e),Hn=e=>(console.warn("createSpring() is deprecated use spring() instead"),new er(e)),jr={_head:null,_tail:null},ei=(e,t,s)=>{let r=jr._head,i;for(;r;){const o=r._next,n=r.$el===e,a=!t||r.property===t,h=!s||r.parent===s;if(n&&a&&h){i=r.animation;try{i.commitStyles()}catch{}i.cancel(),mt(jr,r);const u=r.parent;u&&(u._completed++,u.animations.length===u._completed&&(u.completed=!0,u.paused=!0,u.muteCallbacks||(u.onComplete(u),u._resolve(u))))}r=o}return i},qn=(e,t,s,r,i)=>{const o=t.animate(r,i),n=i.delay+ +i.duration*i.iterations;o.playbackRate=e._speed,e.paused&&o.pause(),e.duration<n&&(e.duration=n,e.controlAnimation=o),e.animations.push(o),ei(t,s),vt(jr,{parent:e,animation:o,$el:t,property:s,_next:null,_prev:null});const a=()=>ei(t,s,e);return o.oncancel=a,o.onremove=a,e.persist||(o.onfinish=a),o};function It(e,t,s){const r=Lt(e);if(!r.length)return;const[i]=r,o=zr(i,t),n=Wr(t,i,o);let a=Wt(i,n);if(D(s))return a;if(Je(a,Ve),Ve.t===ge.NUMBER||Ve.t===ge.UNIT){if(s===!1)return Ve.n;{const h=Gs(i,Ve,s,!1);return`${F(h.n,z.precision)}${h.u}`}}}var Ct=(e,t)=>{if(!D(t))return z.editor&&z.editor.addSet?z.editor.addSet(e,t):(t.duration=Re,t.composition=U(t.composition,$e.none),new Tt(e,t,null,0,!0).resume())},Fn=(e,t,s)=>{const r=rt(e);for(let i=0,o=r.length;i<o;i++)ei(r[i],s,t&&t.controlAnimation&&t);return kt(r,t,s),r},Ot=e=>{e.cancelable&&e.preventDefault()},Lc=class{constructor(e){this.el=e,this.zIndex=0,this.parentElement=null,this.classList={add:oe,remove:oe}}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}}},Rc=class{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,s=0;for(;t&&t!==Q;)e(t,s),t=t.parentElement,s++}getMatrix(){const e=new DOMMatrix;return this.traverseUp(t=>{const s=getComputedStyle(t).transform;if(s){const r=new DOMMatrix(s);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 s=this.inlineTransforms[t];s===""?e.style.removeProperty("transform"):e.style.transform=s})}},Ge=(e,t)=>e&&Ee(e)?e(t):e,sr=0,Vn=class{constructor(e,t={}){if(!e)return;Ie.current&&Ie.current.register(this);const s=t.x,r=t.y,i=t.trigger,o=t.modifier,n=t.releaseEase,a=n&&xt(n),h=!D(n)&&!D(n.ease),u=De(s)&&!D(s.mapTo)?s.mapTo:"translateX",p=De(r)&&!D(r.mapTo)?r.mapTo:"translateY",l=Ge(t.container,this);this.containerArray=He(l)?l:null,this.$container=l&&!this.containerArray?rt(l)[0]:Q.body,this.useWin=this.$container===Q.body,this.$scrollContainer=this.useWin?Xe:this.$container,this.$target=De(e)?new Lc(e):rt(e)[0],this.$trigger=rt(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.dragThreshold=3,this.maxVelocity=0,this.minVelocity=0,this.velocityMultiplier=0,this.cursor=!1,this.releaseXSpring=h?n:tr({mass:U(t.releaseMass,1),stiffness:U(t.releaseStiffness,80),damping:U(t.releaseDamping,20)}),this.releaseYSpring=h?n:tr({mass:U(t.releaseMass,1),stiffness:U(t.releaseStiffness,80),damping:U(t.releaseDamping,20)}),this.releaseEase=a||wt.outQuint,this.hasReleaseSpring=h,this.onGrab=t.onGrab||oe,this.onDrag=t.onDrag||oe,this.onRelease=t.onRelease||oe,this.onUpdate=t.onUpdate||oe,this.onSettle=t.onSettle||oe,this.onSnap=t.onSnap||oe,this.onResize=t.onResize||oe,this.onAfterResize=t.onAfterResize||oe,this.disabled=[0,0];const f={};if(o&&(f.modifier=o),D(s)||s===!0)f[u]=0;else if(De(s)){const c=s,d={};c.modifier&&(d.modifier=c.modifier),c.composition&&(d.composition=c.composition),f[u]=d}else s===!1&&(f[u]=0,this.disabled[0]=1);if(D(r)||r===!0)f[p]=0;else if(De(r)){const c=r,d={};c.modifier&&(d.modifier=c.modifier),c.composition&&(d.composition=c.composition),f[p]=d}else r===!1&&(f[p]=0,this.disabled[1]=1);this.animate=new Kr(this.$target,f),this.xProp=u,this.yProp=p,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=[-gt,gt,gt,-gt],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=Et(),this.velocity=0,this.angle=0,this.cursorStyles=null,this.triggerStyles=null,this.bodyStyles=null,this.targetStyles=null,this.touchActionStyles=null,this.transforms=new Rc(this.$target),this.overshootCoords={x:0,y:0},this.overshootTicker=new st({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 st({autoplay:!1,onUpdate:()=>this.update()},null,0).init(),this.contained=!D(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]?u:p,this.animate.callbacks.onRender=()=>{const c=this.updated,d=!(this.grabbed&&c)&&this.released,g=this.x,v=this.y,_=g-this.coords[2],S=v-this.coords[3];this.deltaX=_,this.deltaY=S,this.coords[2]=g,this.coords[3]=v,c&&(_||S)&&this.onUpdate(this),d?(this.computeVelocity(_,S),this.angle=Vs(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 st({autoplay:!1,duration:150*z.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),De(e)||this.resizeObserver.observe(this.$target)}computeVelocity(e,t){const s=this.velocityTime,r=Et(),i=r-s;if(i<17)return this.velocity;this.velocityTime=r;const o=this.velocityStack,n=this.velocityMultiplier,a=this.minVelocity,h=this.maxVelocity,u=this.velocityStackIndex;o[u]=F(Z(ot(e*e+t*t)/i*n,a,h),5);const p=fn(o[0],o[1],o[2]);return this.velocity=p,this.velocityStackIndex=(u+1)%3,p}setX(e,t=!1){if(this.disabled[0])return;const s=F(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destX=s,this.snapped[0]=Ut(s,this.snapX),this.animate[this.xProp](s,0),this.manual=!1,this}setY(e,t=!1){if(this.disabled[1])return;const s=F(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destY=s,this.snapped[1]=Ut(s,this.snapY),this.animate[this.yProp](s,0),this.manual=!1,this}get x(){return F(this.animate[this.xProp](),z.precision)}set x(e){this.setX(e,!1)}get y(){return F(this.animate[this.yProp](),z.precision)}set y(e){this.setY(e,!1)}get progressX(){return bs(this.x,this.containerBounds[3],this.containerBounds[1],0,1)}set progressX(e){this.setX(bs(e,0,1,this.containerBounds[3],this.containerBounds[1]),!1)}get progressY(){return bs(this.y,this.containerBounds[0],this.containerBounds[2],0,1)}set progressY(e){this.setY(bs(e,0,1,this.containerBounds[0],this.containerBounds[2]),!1)}updateScrollCoords(){const e=F(this.useWin?Xe.scrollX:this.$container.scrollLeft,0),t=F(this.useWin?Xe.scrollY:this.$container.scrollTop,0),[s,r,i,o]=this.containerPadding,n=this.scrollThreshold;this.scroll.x=e,this.scroll.y=t,this.scrollBounds[0]=t-this.targetBounds[0]+s-n,this.scrollBounds[1]=e-this.targetBounds[1]-r+n,this.scrollBounds[2]=t-this.targetBounds[2]-i+n,this.scrollBounds[3]=e-this.targetBounds[3]+o-n}updateBoundingValues(){const e=this.$container;if(!e)return;const t=this.x,s=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 o=this.window[0]=Xe.innerWidth,n=this.window[1]=Xe.innerHeight,a=this.useWin,h=e.scrollWidth,u=e.scrollHeight,p=this.fixed,l=e.getBoundingClientRect(),[f,c,d,g]=this.containerPadding;this.dragArea[0]=a?0:l.left,this.dragArea[1]=a?0:l.top,this.scrollView[0]=a?Z(h,o,h):h,this.scrollView[1]=a?Z(u,n,u):u,this.updateScrollCoords();const{width:v,height:_,left:S,top:y,right:m,bottom:b}=e.getBoundingClientRect();this.dragArea[2]=F(a?Z(v,o,o):v,0),this.dragArea[3]=F(a?Z(_,n,n):_,0);const k=It(e,"overflow"),w=k==="visible",A=k==="hidden";if(this.canScroll=p?!1:this.contained&&(e===Q.body&&w||!A&&!w)&&(h>this.dragArea[2]+g-c||u>this.dragArea[3]+f-d)&&(!this.containerArray||this.containerArray&&!He(this.containerArray)),this.contained){const O=this.scroll.x,P=this.scroll.y,E=this.canScroll,T=this.$target.getBoundingClientRect(),$=E?a?0:e.scrollLeft:0,H=E?a?0:e.scrollTop:0,V=E?this.scrollView[0]-$-v:0,x=E?this.scrollView[1]-H-_:0;this.targetBounds[0]=F(T.top+P-(a?0:y),0),this.targetBounds[1]=F(T.right+O-(a?o:m),0),this.targetBounds[2]=F(T.bottom+P-(a?n:b),0),this.targetBounds[3]=F(T.left+O-(a?0:S),0),this.containerArray?(this.containerBounds[0]=this.containerArray[0]+f,this.containerBounds[1]=this.containerArray[1]-c,this.containerBounds[2]=this.containerArray[2]-d,this.containerBounds[3]=this.containerArray[3]+g):(this.containerBounds[0]=-F(T.top-(p?Z(y,0,n):y)+H-f,0),this.containerBounds[1]=-F(T.right-(p?Z(m,0,o):m)-V+c,0),this.containerBounds[2]=-F(T.bottom-(p?Z(b,0,n):b)-x+d,0),this.containerBounds[3]=-F(T.left-(p?Z(S,0,o):S)+$-g,0))}this.transforms.revert(),this.coords[2]=r,this.coords[3]=i,this.setX(t,!0),this.setY(s,!0)}isOutOfBounds(e,t,s){if(!this.contained)return 0;const[r,i,o,n]=e,[a,h]=this.disabled,u=!a&&t<n||!a&&t>i,p=!h&&s<r||!h&&s>o;return u&&!p?1:!u&&p?2:u&&p?3:0}refresh(){const e=this.parameters,t=e.x,s=e.y,r=Ge(e.container,this),i=Ge(e.containerPadding,this)||0,o=He(i)?i:[i,i,i,i],n=this.x,a=this.y,h=Ge(e.cursor,this),u={onHover:"grab",onGrab:"grabbing"};if(h){const{onHover:v,onGrab:_}=h;v&&(u.onHover=v),_&&(u.onGrab=_)}const p=Ge(e.dragThreshold,this),l={mouse:3,touch:7};if(Fe(p))l.mouse=p,l.touch=p;else if(p){const{mouse:v,touch:_}=p;D(v)||(l.mouse=v),D(_)||(l.touch=_)}this.containerArray=He(r)?r:null,this.$container=r&&!this.containerArray?rt(r)[0]:Q.body,this.useWin=this.$container===Q.body,this.$scrollContainer=this.useWin?Xe:this.$container,this.isFinePointer=matchMedia("(pointer:fine)").matches,this.containerPadding=U(o,[0,0,0,0]),this.containerFriction=Z(U(Ge(e.containerFriction,this),.8),0,1),this.releaseContainerFriction=Z(U(Ge(e.releaseContainerFriction,this),this.containerFriction),0,1),this.snapX=Ge(De(t)&&!D(t.snap)?t.snap:e.snap,this),this.snapY=Ge(De(s)&&!D(s.snap)?s.snap:e.snap,this),this.scrollSpeed=U(Ge(e.scrollSpeed,this),1.5),this.scrollThreshold=U(Ge(e.scrollThreshold,this),20),this.dragSpeed=U(Ge(e.dragSpeed,this),1),this.dragThreshold=this.isFinePointer?l.mouse:l.touch,this.minVelocity=U(Ge(e.minVelocity,this),0),this.maxVelocity=U(Ge(e.maxVelocity,this),50),this.velocityMultiplier=U(Ge(e.velocityMultiplier,this),1),this.cursor=h===!1?!1:u,this.updateBoundingValues();const[f,c,d,g]=this.containerBounds;this.setX(Z(n,g,c),!0),this.setY(Z(a,f,d),!0)}update(){if(this.updateScrollCoords(),this.canScroll){const[_,S,y,m]=this.containerPadding,[b,k]=this.scrollView,w=this.dragArea[2],A=this.dragArea[3],O=this.scroll.x,P=this.scroll.y,E=this.$container.scrollWidth,T=this.$container.scrollHeight,$=this.useWin?Z(E,this.window[0],E):E,H=this.useWin?Z(T,this.window[1],T):T,V=b-$,x=k-H;this.dragged&&V>0&&(this.coords[0]-=V,this.scrollView[0]=$),this.dragged&&x>0&&(this.coords[1]-=x,this.scrollView[1]=H);const M=this.scrollSpeed*10,I=this.scrollThreshold,[L,q]=this.coords,[K,G,W,ee]=this.scrollBounds,Y=F(Z((q-K+_)/I,-1,0)*M,0),re=F(Z((L-G-S)/I,0,1)*M,0),me=F(Z((q-W-y)/I,0,1)*M,0),pe=F(Z((L-ee+m)/I,-1,0)*M,0);if(Y||me||pe||re){const[le,J]=this.disabled;let ce=O,fe=P;le||(ce=F(Z(O+(pe||re),0,b-w),0),this.coords[0]-=O-ce),J||(fe=F(Z(P+(Y||me),0,k-A),0),this.coords[1]-=P-fe),this.useWin?this.$scrollContainer.scrollBy(-(O-ce),-(P-fe)):this.$scrollContainer.scrollTo(ce,fe)}}const[e,t,s,r]=this.containerBounds,[i,o,n,a,h,u]=this.pointer;this.coords[0]+=(i-h)*this.dragSpeed,this.coords[1]+=(o-u)*this.dragSpeed,this.pointer[4]=i,this.pointer[5]=o;const[p,l]=this.coords,[f,c]=this.snapped,d=(1-this.containerFriction)*this.dragSpeed;this.setX(p>t?t+(p-t)*d:p<r?r+(p-r)*d:p,!1),this.setY(l>s?s+(l-s)*d:l<e?e+(l-e)*d:l,!1),this.computeVelocity(i-h,o-u),this.angle=Vs(o-a,i-n);const[g,v]=this.snapped;(g!==f&&this.snapX||v!==c&&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 kt([this],null,"x"),kt([this],null,"y"),kt([this],null,"progressX"),kt([this],null,"progressY"),kt([this.scroll]),kt([this.overshootCoords]),this}scrollInView(e,t=0,s=wt.inOutQuad){this.updateScrollCoords();const r=this.destX,i=this.destY,o=this.scroll,n=this.scrollBounds,a=this.canScroll;if(!this.containerArray&&this.isOutOfBounds(n,r,i)){const[h,u,p,l]=n,f=F(Z(i-h,-gt,0),0),c=F(Z(r-u,0,gt),0),d=F(Z(i-p,0,gt),0),g=F(Z(r-l,-gt,0),0);new Tt(o,{x:F(o.x+(g?g-t:c?c+t:0),0),y:F(o.y+(f?f-t:d?d+t:0),0),duration:D(e)?350*z.timeScale:e,ease:s,onUpdate:()=>{this.canScroll=!1,this.$scrollContainer.scrollTo(o.x,o.y)}}).init().then(()=>{this.canScroll=a})}return this}handleHover(){this.isFinePointer&&this.cursor&&!this.cursorStyles&&(this.cursorStyles=Ct(this.$trigger,{cursor:this.cursor.onHover}))}animateInView(e,t=0,s=wt.inOutQuad){this.stop(),this.updateBoundingValues();const r=this.x,i=this.y,[o,n,a,h]=this.containerPadding,u=this.scroll.y-this.targetBounds[0]+o+t,p=this.scroll.x-this.targetBounds[1]-n-t,l=this.scroll.y-this.targetBounds[2]-a-t,f=this.scroll.x-this.targetBounds[3]+h+t,c=this.isOutOfBounds([u,p,l,f],r,i);if(c){const[d,g]=this.disabled,v=Z(Ut(r,this.snapX),f,p),_=Z(Ut(i,this.snapY),u,l),S=D(e)?350*z.timeScale:e;!d&&(c===1||c===3)&&this.animate[this.xProp](v,S,s),!g&&(c===2||c===3)&&this.animate[this.yProp](_,S,s)}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 s=e.changedTouches,r=s?s[0].clientX:e.clientX,i=s?s[0].clientY:e.clientY,{x:o,y:n}=this.transforms.normalizePoint(r,i),[a,h,u,p]=this.containerBounds,l=(1-this.containerFriction)*this.dragSpeed,f=this.x,c=this.y;this.coords[0]=this.coords[2]=l?f>h?h+(f-h)/l:f<p?p+(f-p)/l:f:f,this.coords[1]=this.coords[3]=l?c>u?u+(c-u)/l:c<a?a+(c-a)/l:c:c,this.pointer[0]=o,this.pointer[1]=n,this.pointer[2]=o,this.pointer[3]=n,this.pointer[4]=o,this.pointer[5]=n,this.pointer[6]=o,this.pointer[7]=n,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);sr=(d>sr?d:sr)+1,this.targetStyles=Ct(this.$target,{zIndex:sr}),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.isFinePointer&&this.cursor&&(this.bodyStyles=Ct(Q.body,{cursor:this.cursor.onGrab})),this.scrollInView(100,0,wt.out(3)),this.onGrab(this),Q.addEventListener("touchmove",this),Q.addEventListener("touchend",this),Q.addEventListener("touchcancel",this),Q.addEventListener("mousemove",this),Q.addEventListener("mouseup",this),Q.addEventListener("selectstart",this)}handleMove(e){if(!this.grabbed)return;const t=e.changedTouches,s=t?t[0].clientX:e.clientX,r=t?t[0].clientY:e.clientY,{x:i,y:o}=this.transforms.normalizePoint(s,r),n=i-this.pointer[6],a=o-this.pointer[7];let h=e.target,u=!1,p=!1,l=!1;for(;t&&h&&h!==this.$trigger;){const f=It(h,"overflow-y");if(f!=="hidden"&&f!=="visible"){const{scrollTop:c,scrollHeight:d,clientHeight:g}=h;if(d>g){l=!0,u=c<=3,p=c>=d-g-3;break}}h=h.parentElement}l&&(!u&&!p||u&&a<0||p&&a>0)?(this.pointer[0]=i,this.pointer[1]=o,this.pointer[2]=i,this.pointer[3]=o,this.pointer[4]=i,this.pointer[5]=o,this.pointer[6]=i,this.pointer[7]=o):(Ot(e),this.triggerStyles||(this.triggerStyles=Ct(this.$trigger,{pointerEvents:"none"})),this.$trigger.addEventListener("touchstart",Ot,{passive:!1}),this.$trigger.addEventListener("touchmove",Ot,{passive:!1}),this.$trigger.addEventListener("touchend",Ot),(this.dragged||!this.disabled[0]&&at(n)>this.dragThreshold||!this.disabled[1]&&at(a)>this.dragThreshold)&&(this.updateTicker.resume(),this.pointer[2]=this.pointer[0],this.pointer[3]=this.pointer[1],this.pointer[0]=i,this.pointer[1]=o,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,[s,r,i,o,n,a]=this.pointer,[h,u,p,l]=this.containerBounds,[f,c]=this.snapped,d=this.releaseXSpring,g=this.releaseYSpring,v=this.releaseEase,_=this.hasReleaseSpring,S=this.overshootCoords,y=this.x,m=this.y,b=this.computeVelocity(s-n,r-a),k=this.angle=Vs(r-o,s-i),w=b*150,A=(1-this.releaseContainerFriction)*this.dragSpeed,O=y+Hr(k)*w,P=m+$r(k)*w,E=O>u?u+(O-u)*A:O<l?l+(O-l)*A:O,T=P>p?p+(P-p)*A:P<h?h+(P-h)*A:P,$=this.destX=Z(F(Ut(E,this.snapX),5),l,u),H=this.destY=Z(F(Ut(T,this.snapY),5),h,p),V=this.isOutOfBounds(this.containerBounds,O,P);let x=0,M=0,I=v,L=v,q=0;if(S.x=y,S.y=m,!e){const G=$===u?y>u?-1:1:y<l?-1:1,W=F(y-$,0);d.velocity=t&&_?W?w*G/at(W):0:b;const{ease:ee,settlingDuration:Y,restDuration:re}=d;x=y===$?0:_?Y:Y-re*z.timeScale,_&&(I=ee),x>q&&(q=x)}if(!t){const G=H===p?m>p?-1:1:m<h?-1:1,W=F(m-H,0);g.velocity=e&&_?W?w*G/at(W):0:b;const{ease:ee,settlingDuration:Y,restDuration:re}=g;M=m===H?0:_?Y:Y-re*z.timeScale,_&&(L=ee),M>q&&(q=M)}if(!_&&V&&A&&(x||M)){const G=$e.blend;new Tt(S,{x:{to:E,duration:x*.65},y:{to:T,duration:M*.65},ease:v,composition:G}).init(),new Tt(S,{x:{to:$,duration:x},y:{to:H,duration:M},ease:v,composition:G}).init(),this.overshootTicker.stretch(fn(x,M)).restart()}else e||this.animate[this.xProp]($,x,I),t||this.animate[this.yProp](H,M,L);this.scrollInView(q,this.scrollThreshold,v);let K=!1;$!==f&&(this.snapped[0]=$,this.snapX&&(K=!0)),H!==c&&this.snapY&&(this.snapped[1]=H,this.snapY&&(K=!0)),K&&this.onSnap(this),this.grabbed=!1,this.dragged=!1,this.updated=!0,this.released=!0,this.onRelease(this),this.$trigger.removeEventListener("touchstart",Ot),this.$trigger.removeEventListener("touchmove",Ot),this.$trigger.removeEventListener("touchend",Ot),Q.removeEventListener("touchmove",this),Q.removeEventListener("touchend",this),Q.removeEventListener("touchcancel",this),Q.removeEventListener("mousemove",this),Q.removeEventListener("mouseup",this),Q.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=Ct(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),Q.removeEventListener("touchmove",this),Q.removeEventListener("touchend",this),Q.removeEventListener("touchcancel",this),Q.removeEventListener("mousemove",this),Q.removeEventListener("mouseup",this),Q.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":Ot(e)}}},Ic=(e,t)=>new Vn(e,t),ti=(e=oe)=>new st({duration:1*z.timeScale,onComplete:e},null,0).resume(),rr=e=>{let t;return((...s)=>{let r,i,o,n,a;t&&(r=t.currentIteration,i=t.iterationProgress,o=t.reversed,n=t._alternate,a=t._startTime,t.revert());const h=e(...s);return h&&!Ee(h)&&h.revert&&(t=h),D(i)||(t.currentIteration=r,t.iterationProgress=(n&&r%2?!o:o)?1-i:i,t._startTime=a),h||oe})},zn=class{constructor(e={}){Ie.current&&Ie.current.register(this);const t=e.root;let s=Q;t&&(s=t.current||t.nativeElement||rt(t)[0]||Q);const r=e.defaults,i=z.defaults,o=e.mediaQueries;if(this.defaults=r?lt(r,i):i,this.root=s,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={},o)for(let n in o){const a=Xe.matchMedia(o[n]);this.mediaQueryLists[n]=a,a.addEventListener("change",this)}}register(e){(this.once?this.revertiblesOnce:this.revertibles).push(e)}execute(e){let t=Ie.current,s=Ie.root,r=z.defaults;Ie.current=this,Ie.root=this.root,z.defaults=this.defaults;const i=this.mediaQueryLists;for(let n in i)this.matches[n]=i[n].matches;const o=e(this);return Ie.current=t,Ie.root=s,z.defaults=r,o}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(s=>{const r=s(this);Ee(r)&&this.revertConstructors.push(r)})}),this}add(e,t){if(this.once=!1,Ee(e)){const s=e;this.constructors.push(s),this.execute(()=>{const r=s(this);Ee(r)&&this.revertConstructors.push(r)})}else this.methods[e]=(...s)=>this.execute(()=>t(...s));return this}addOnce(e){if(this.once=!0,Ee(e)){const t=this.onceIndex++;if(this.constructorsOnce[t])return this;const s=e;this.constructorsOnce[t]=s,this.execute(()=>{const r=s(this);Ee(r)&&this.revertConstructorsOnce.push(r)})}return this}keepTime(e){this.once=!0;const t=this.onceIndex++,s=this.constructorsOnce[t];if(Ee(s))return s(this);const r=rr(e);this.constructorsOnce[t]=r;let i;return this.execute(()=>{i=r(this)}),i}handleEvent(e){e.type==="change"&&this.refresh()}revert(){const e=this.revertibles,t=this.revertConstructors,s=this.revertiblesOnce,r=this.revertConstructorsOnce,i=this.mediaQueryLists;let o=e.length,n=t.length,a=s.length,h=r.length;for(;o--;)e[o].revert();for(;n--;)t[n](this);for(;a--;)s[a].revert();for(;h--;)r[h](this);for(let u in i)i[u].removeEventListener("change",this);e.length=0,t.length=0,this.constructors.length=0,s.length=0,r.length=0,this.constructorsOnce.length=0,this.onceIndex=0,this.matches={},this.methods={},this.mediaQueryLists={},this.data={}}},Oc=e=>new zn(e),Nc=()=>{const e=Q.createElement("div");Q.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return Q.body.removeChild(e),t},ir=(e,t)=>e&&Ee(e)?e(t):e,nr=new Map,Mc=class{constructor(e){this.element=e,this.useWin=this.element===Q.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.scale=1,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 st({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const t=this.backwardX||this.backwardY;Se(this,s=>s.handleScroll(),t)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new st({autoplay:!1,frameRate:30,onUpdate:t=>{const s=t.deltaTime,r=this.prevScrollX,i=this.prevScrollY,o=this.scrollX,n=this.scrollY,a=r-o,h=i-n;this.prevScrollX=o,this.prevScrollY=n,a&&(this.backwardX=r>o),h&&(this.backwardY=i>n),this.velocity=F(s>0?Math.sqrt(a*a+h*h)/s:0,5)}}).init(),this.resizeTicker=new st({autoplay:!1,duration:250*z.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new st({autoplay:!1,duration:500*z.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?Xe:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=F(e?Xe.scrollX:t.scrollLeft,0),this.scrollY=F(e?Xe.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=Xe.innerWidth,this.winHeight=Nc()}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 s,r;if(this.useWin)s=this.winWidth,r=this.winHeight;else{const i=t.getBoundingClientRect();s=t.clientWidth,r=t.clientHeight,this.top=i.top,this.left=i.left,this.scale=i.width?s/i.width:i.height?r/i.height:1}this.width=s,this.height=r}refreshScrollObservers(){Se(this,e=>{e.ready&&e._debug&&e.removeDebug()}),this.updateBounds(),Se(this,e=>{e.ready&&(e.refresh(),e.onResize(e),e._debug&&e.debug())})}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){e.type==="scroll"&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.disconnect(),(this.useWin?Xe:this.element).removeEventListener("scroll",this),nr.delete(this.element)}},Dc=e=>{const t=e&&rt(e)[0]||Q.body;let s=nr.get(t);return s||(s=new Mc(t),nr.set(t,s)),s},_s=(e,t,s,r,i)=>{const o=t==="min",n=t==="max",{n:a,u:h}=Je(t==="top"||t==="left"||t==="start"||o?0:t==="bottom"||t==="right"||t==="end"||n?"100%":t==="center"?"50%":t,Ve);let u=a;return h==="%"?u=a/100*s:h&&(u=Gs(e,Ve,"px",!0).n),n&&r<0&&(u+=r),o&&i>0&&(u+=i),u},or=(e,t,s,r,i)=>{let o;if(Be(t)){const n=ln.exec(t);if(n){const a=n[0],h=a[0],u=t.split(a),p=u[0]==="min",l=u[0]==="max",f=_s(e,u[0],s,r,i),c=_s(e,u[1],s,r,i);if(p){const d=Xt(_s(e,"min",s),c,h);o=d<f?f:d}else if(l){const d=Xt(_s(e,"max",s),c,h);o=d>f?f:d}else o=Xt(f,c,h)}else o=_s(e,t,s,r,i)}else o=t;return F(o,0)},Un=e=>{let t;const s=e.targets;for(let r=0,i=s.length;r<i;r++){const o=s[r];if(o[Ht]){t=o;break}}return t},Bc=0,Wn=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"],Xn=class{constructor(e={}){Ie.current&&Ie.current.register(this);const t=U(e.sync,"play pause"),s=t?xt(t):null,r=t&&(t==="linear"||t===it),i=t&&!(s===it&&!r),o=t&&(Fe(t)||t===!0||r),n=t&&Be(t)&&!i&&!o,a=n?t.split(" ").map(u=>()=>{const p=this.linked;return p&&p[u]?p[u]():null}):null,h=n&&a.length>2;this.index=Bc++,this.id=D(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||o||!!a,this.syncEase=i?s:null,this.syncSmooth=o?t===!0||r?1:t:null,this.onSyncEnter=a&&!h&&a[0]?a[0]:oe,this.onSyncLeave=a&&!h&&a[1]?a[1]:oe,this.onSyncEnterForward=a&&h&&a[0]?a[0]:oe,this.onSyncLeaveForward=a&&h&&a[1]?a[1]:oe,this.onSyncEnterBackward=a&&h&&a[2]?a[2]:oe,this.onSyncLeaveBackward=a&&h&&a[3]?a[3]:oe,this.onEnter=e.onEnter||oe,this.onLeave=e.onLeave||oe,this.onEnterForward=e.onEnterForward||oe,this.onLeaveForward=e.onLeaveForward||oe,this.onEnterBackward=e.onEnterBackward||oe,this.onLeaveBackward=e.onLeaveBackward||oe,this.onUpdate=e.onUpdate||oe,this.onResize=e.onResize||oe,this.onSyncComplete=e.onSyncComplete||oe,this.reverted=!1,this.ready=!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=U(e.debug,!1),this._next=null,this._prev=null,vt(this.container,this),ti(()=>{if(!this.reverted){if(!this.target){const u=rt(e.target)[0];this.target=u||Q.body,this.refresh()}this._debug&&this.debug()}})}link(e){if(e&&(e.pause(),this.linked=e,!D(e)&&!D(e.persist)&&(e.persist=!0),!this._params.target)){let t;D(e.targets)?Se(e,s=>{s.targets&&!t&&(t=Un(s))}):t=Un(e),this.target=t||Q.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:F(Z(e,0,1),6)}refresh(){this.ready=!0,this.reverted=!1;const e=this._params;return this.repeat=U(ir(e.repeat,this),!0),this.horizontal=U(ir(e.axis,this),"y")==="x",this.enter=U(ir(e.enter,this),"end start"),this.leave=U(ir(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,s=e.element.querySelector(":scope > .animejs-onscroll-debug"),r=Q.createElement("div"),i=Q.createElement("div"),o=Q.createElement("div"),n=Wn[this.index%Wn.length],a=e.useWin,h=a?e.winWidth:e.width,u=a?e.winHeight:e.height,p=e.scrollWidth,l=e.scrollHeight,f=this.container.width>360?320:260,c=t?0:10,d=t?10:0,g=t?24:f/2,v=t?g:15,_=t?60:g,S=t?_:v,y=t?"repeat-x":"repeat-y",m=A=>t?"0px "+A+"px":A+"px 2px",b=A=>`linear-gradient(${t?90:0}deg, ${A} 2px, transparent 1px)`,k=(A,O,P,E,T)=>`position:${A};left:${O}px;top:${P}px;width:${E}px;height:${T}px;`;r.style.cssText=`${k("absolute",c,d,t?p:f,t?f:l)}
94
94
  pointer-events: none;
95
95
  z-index: ${this.container.zIndex++};
96
96
  display: flex;
@@ -99,18 +99,18 @@ Expecting `+C.join(", ")+", got '"+(this.terminals_[y]||y)+"'":H="Parse error on
99
99
  `,i.style.cssText=`${k("sticky",0,0,t?h:g,t?g:u)}`,s||(i.style.cssText+=`background:
100
100
  ${b("#FFFF")}${m(g-10)} / 100px 100px ${y},
101
101
  ${b("#FFF8")}${m(g-10)} / 10px 10px ${y};
102
- `),n.style.cssText=`${k("relative",0,0,t?f:g,t?g:l)}`,s||(n.style.cssText+=`background:
102
+ `),o.style.cssText=`${k("relative",0,0,t?p:g,t?g:l)}`,s||(o.style.cssText+=`background:
103
103
  ${b("#FFFF")}${m(0)} / ${t?"100px 10px":"10px 100px"} ${y},
104
104
  ${b("#FFF8")}${m(0)} / ${t?"10px 0px":"0px 10px"} ${y};
105
- `);const w=[" enter: "," leave: "];this.coords.forEach((E,O)=>{const P=O>1,A=(P?0:this.offset)+E,C=O%2,H=A<S,$=A>(P?t?h:u:t?f:l)-S,V=(P?C&&!H:!C&&!H)||$,x=Q.createElement("div"),M=Q.createElement("div"),I=t?V?"right":"left":V?"bottom":"top",L=V?(t?_:v)+(P?t?-1:$?0:-2:t?-1:-2):t?1:0;M.innerHTML=`${this.id}${w[C]}${this.thresholds[O]}`,x.style.cssText=`${k("absolute",0,0,_,v)}
105
+ `);const w=[" enter: "," leave: "];this.coords.forEach((A,O)=>{const P=O>1,E=(P?0:this.offset)+A,T=O%2,$=E<S,H=E>(P?t?h:u:t?p:l)-S,V=(P?T&&!$:!T&&!$)||H,x=Q.createElement("div"),M=Q.createElement("div"),I=t?V?"right":"left":V?"bottom":"top",L=V?(t?_:v)+(P?t?-1:H?0:-2:t?-1:-2):t?1:0;M.innerHTML=`${this.id}${w[T]}${this.thresholds[O]}`,x.style.cssText=`${k("absolute",0,0,_,v)}
106
106
  display: flex;
107
107
  flex-direction: ${t?"column":"row"};
108
108
  justify-content: flex-${P?"start":"end"};
109
109
  align-items: flex-${V?"end":"start"};
110
- border-${I}: 2px solid ${o};
110
+ border-${I}: 2px solid ${n};
111
111
  `,M.style.cssText=`
112
112
  overflow: hidden;
113
- max-width: ${d/2-10}px;
113
+ max-width: ${f/2-10}px;
114
114
  height: ${v};
115
115
  margin-${t?V?"right":"left":V?"bottom":"top"}: -2px;
116
116
  padding: 1px;
@@ -122,11 +122,11 @@ Expecting `+C.join(", ")+", got '"+(this.terminals_[y]||y)+"'":H="Parse error on
122
122
  text-align: ${t&&V||!t&&!P?"right":"left"};
123
123
  white-space: pre;
124
124
  text-overflow: ellipsis;
125
- color: ${C?o:"rgba(0,0,0,.75)"};
126
- background-color: ${C?"rgba(0,0,0,.65)":o};
127
- border: 2px solid ${C?o:"transparent"};
125
+ color: ${T?n:"rgba(0,0,0,.75)"};
126
+ background-color: ${T?"rgba(0,0,0,.65)":n};
127
+ border: 2px solid ${T?n:"transparent"};
128
128
  border-${t?V?"top-left":"top-right":V?"top-left":"bottom-left"}-radius: 5px;
129
129
  border-${t?V?"bottom-left":"bottom-right":V?"top-right":"bottom-right"}-radius: 5px;
130
- `,x.appendChild(M);let q=A-L+(t?1:0);x.style[t?"left":"top"]=`${q}px`,(P?i:n).appendChild(x)}),r.appendChild(i),r.appendChild(n),e.element.appendChild(r),s||r.classList.add("animejs-onscroll-debug"),this.$debug=r,It(e.element,"position")==="static"&&(this.debugStyles=Ct(e.element,{position:"relative "}))}updateBounds(){this._debug&&this.removeDebug();let e;const t=this.target,s=this.container,r=this.horizontal,i=this.linked;let n,o=t;for(i&&(n=i.currentTime,i.seek(0,!0));o&&o!==s.element&&o!==Q.body;){const C=It(o,"position")==="sticky"?Ct(o,{position:"static"}):!1;o=o.parentElement,C&&(e||(e=[]),e.push(C))}const a=t.getBoundingClientRect(),h=s.scale,u=(r?a.left+s.scrollX-s.left:a.top+s.scrollY-s.top)*h,f=(r?a.width:a.height)*h,l=r?s.width:s.height,d=(r?s.scrollWidth:s.scrollHeight)-l,c=this.enter,p=this.leave;let g="start",v="end",_="end",S="start";if(Be(c)){const C=c.split(" ");_=C[0],g=C.length>1?C[1]:g}else if(De(c)){const C=c;D(C.container)||(_=C.container),D(C.target)||(g=C.target)}else qe(c)&&(_=c);if(Be(p)){const C=p.split(" ");S=C[0],v=C.length>1?C[1]:v}else if(De(p)){const C=p;D(C.container)||(S=C.container),D(C.target)||(v=C.target)}else qe(p)&&(S=p);const y=ir(t,g,f),m=ir(t,v,f),b=y+u-l,k=m+u-d,w=ir(t,_,l,b,k),E=ir(t,S,l,b,k),O=y+u-w,P=m+u-E,A=P-O;this.offset=u,this.offsetStart=O,this.offsetEnd=P,this.distance=A<=0?0:A,this.thresholds=[g,v,_,S],this.coords=[y,m,w,E],e&&e.forEach(C=>C.revert()),i&&i.seek(n,!0),this._debug&&this.debug()}handleScroll(){if(!this.ready)return;const e=this.linked,t=this.sync,s=this.syncEase,r=this.syncSmooth,i=e&&(s||r),n=this.horizontal,o=this.container,a=this.scroll,h=a<=this.offsetStart,u=a>=this.offsetEnd,f=!h&&!u,l=a===this.offsetStart||a===this.offsetEnd,d=!this.hasEntered&&l,c=this._debug&&this.$debug;let p=!1,g=!1,v=this.progress;if(h&&this.began&&(this.began=!1),v>0&&!this.began&&(this.began=!0),i){const _=e.progress;if(r&&qe(r)){if(r<1){const S=_<v&&v===1?1e-4:_>v&&!v?-1e-4:0;v=F(At(_,v,At(.01,.2,r))+S,6)}}else s&&(v=s(v));p=v!==this.prevProgress,g=_===1,p&&!g&&r&&_&&o.wakeTicker.restart()}if(c){const _=n?o.scrollY:o.scrollX;c.style[n?"top":"left"]=_+10+"px"}(f&&!this.isInView||d&&!this.forceEnter&&!this.hasEntered)&&(f&&(this.isInView=!0),!this.forceEnter||!this.hasEntered?(c&&f&&(c.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,d&&(this.forceEnter=!0)):f&&(this.forceEnter=!1)),(f||!f&&this.isInView)&&(p=!0),p&&(i&&e.seek(e.duration*v),this.onUpdate(this)),!f&&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&&(g=!0)),v>=1&&this.began&&!this.completed&&(t&&g||!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 gt(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this.ready=!1,this}},xc=(e={})=>new qn(e),Fn=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,Tc=(e,t,s)=>{let r=0,i=1,n,o,a=0;do o=r+(i-r)/2,n=Fn(o,t,s)-e,n>0?i=o:r=o;while(ot(n)>1e-7&&++a<100);return o},Vn=(e=.5,t=0,s=.5,r=1)=>e===t&&s===r?rt:i=>i===0||i===1?i:Fn(Tc(i,e,s),t,r),zn=(e=10,t)=>{const s=t?Vl:Kt;return r=>s(Z(r,0,1)*e)*(1/e)},Kr=(...e)=>{const t=e.length;if(!t)return rt;const s=t-1,r=e[0],i=e[s],n=[0],o=[Ft(r)];for(let a=1;a<s;a++){const h=e[a],u=Be(h)?h.trim().split(" "):[h],f=u[0],l=u[1];n.push(D(l)?a/s:Ft(l)/100),o.push(Ft(f))}return o.push(Ft(i)),n.push(1),function(h){for(let u=1,f=n.length;u<f;u++){const l=n[u];if(h<=l){const d=n[u-1],c=o[u-1];return c+(o[u]-c)*(h-d)/(l-d)}}return o[o.length-1]}},Un=(e=10,t=1)=>{const s=[0],r=e-1;for(let i=1;i<r;i++){const n=s[i-1],o=i/r,a=o+((i+1)/r-o)*Math.random(),h=o*(1-t)+a*t;s.push(Z(h,n,1))}return s.push(1),Kr(...s)},Cc=Gt({Spring:()=>Ks,createSpring:()=>On,cubicBezier:()=>Vn,eases:()=>wt,irregular:()=>Un,linear:()=>Kr,spring:()=>js,steps:()=>zn}),nr=(e,t=100)=>{const s=[];for(let r=0;r<=t;r++)s.push(F(e(r/t),4));return`linear(${s.join(", ")})`},Wn={},Xn=e=>{let t=Wn[e];if(t)return t;if(t="linear",Be(e)){if(Me(e,"linear")||Me(e,"cubic-")||Me(e,"steps")||Me(e,"ease"))t=e;else if(Me(e,"cubicB"))t=Bs(e);else{const s=Pn(e);Ee(s)&&(t=s===rt?"linear":nr(s))}Wn[e]=t}else if(Ee(e)){const s=nr(e);s&&(t=s)}else e.ease&&(t=nr(e.ease));return t},Yn=["x","y","z"],Pc=["perspective","width","height","margin","padding","top","right","bottom","left","borderWidth","fontSize","borderRadius",...Yn],Ec=[...Yn,...$t.filter(e=>["X","Y","Z"].some(t=>e.endsWith(t)))],jr=null,bs=(e,t,s,r,i)=>{let n=Be(t)?t:Ne(t,s,r,i,null,null);return qe(n)?Pc.includes(e)||Me(e,"translate")?`${n}px`:Me(e,"rotate")||Me(e,"skew")?`${n}deg`:`${n}`:n},Gn=(e,t,s,r,i,n)=>{let o="0";const a=D(r)?getComputedStyle(e)[t]:bs(t,r,e,i,n);return D(s)?o=$e(r)?r.map(h=>bs(t,h,e,i,n)):a:o=[bs(t,s,e,i,n),a],o},Zn=class{constructor(e,t){Ie.current&&Ie.current.register(this),qt(jr)&&(yt&&(D(CSS)||!Object.hasOwnProperty.call(CSS,"registerProperty"))?jr=!1:($t.forEach(d=>{const c=Me(d,"skew"),p=Me(d,"scale"),g=Me(d,"rotate"),v=Me(d,"translate"),_=g||c,S=_?"<angle>":p?"<number>":v?"<length-percentage>":"*";try{CSS.registerProperty({name:"--"+d,syntax:S,inherits:!1,initialValue:v?"0px":_?"0deg":p?"1":"0"})}catch{}}),jr=!0));const s=Lt(e);s.length||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");const r=U(t.autoplay,z.defaults.autoplay),i=r&&r.link?r:!1,n=t.alternate&&t.alternate===!0,o=t.reversed&&t.reversed===!0,a=U(t.loop,z.defaults.loop),h=a===!0||a===1/0?1/0:qe(a)?a+1:1,u=n?o?"alternate-reverse":"alternate":o?"reverse":"normal",f="both",l=z.timeScale===1?1:Ye;this.targets=s,this.animations=[],this.controlAnimation=null,this.onComplete=t.onComplete||z.defaults.onComplete,this.duration=0,this.muteCallbacks=!1,this.completed=!1,this.paused=!r||i!==!1,this.reversed=o,this.persist=U(t.persist,z.defaults.persist),this.autoplay=r,this._speed=U(t.playbackRate,z.defaults.playbackRate),this._resolve=oe,this._completed=0,this._inlineStyles=[],s.forEach((d,c)=>{const p=d[ds],g=Ec.some(P=>t.hasOwnProperty(P)),v=d.style,_=this._inlineStyles[c]={},S=U(t.ease,z.defaults.ease),y=Ne(S,d,c,s,null,null),m=Ee(y)||Be(y)?y:S,b=S.ease&&S,k=Xn(m),w=(b?b.settlingDuration:Ne(U(t.duration,z.defaults.duration),d,c,s,null,null))*l,E=Ne(U(t.delay,z.defaults.delay),d,c,s,null,null)*l,O=U(t.composition,"replace");for(let P in t){if(!Jt(P))continue;const A={},C={iterations:h,direction:u,fill:f,easing:k,duration:w,delay:E,composite:O},H=t[P],$=g?$t.includes(P)?P:Or.get(P):!1,V=$?"transform":P;_[V]||(_[V]=v[V]);let x;if(De(H)){const M=H,I=U(M.ease,k),L=I.ease&&I,q=M.to,K=M.from;if(C.duration=(L?L.settlingDuration:Ne(U(M.duration,w),d,c,s,null,null))*l,C.delay=Ne(U(M.delay,E),d,c,s,null,null)*l,C.composite=U(M.composition,O),C.easing=Xn(I),x=Gn(d,P,K,q,c,s),$?(A[`--${$}`]=x,p[$]=x):A[P]=Gn(d,P,K,q,c,s),Nn(this,d,P,A,C),!D(K))if(!$)v[P]=A[P][0];else{const G=`--${$}`;v.setProperty(G,A[G][0])}}else x=$e(H)?H.map(M=>bs(P,M,d,c,s)):bs(P,H,d,c,s),$?(A[`--${$}`]=x,p[$]=x):A[P]=x,Nn(this,d,P,A,C)}if(g){let P="";for(let A in p)P+=`${Ki[A]}var(--${A})) `;v.transform=P}}),i&&this.autoplay.link(this)}forEach(e){try{const t=Be(e)?s=>s[e]():e;this.animations.forEach(t)}catch{}return 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=z.timeScale;return this.completed?this.duration:e?+e.currentTime*(t===1?1:t):0}set currentTime(e){const t=e*(z.timeScale===1?1:Ye);this.forEach(s=>{!this.persist&&t>=this.duration&&s.play(),s.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.muteCallbacks=!0,this.commitStyles().forEach("cancel"),this.animations.length=0,requestAnimationFrame(()=>{this.targets.forEach(e=>{e.style.transform==="none"&&e.style.removeProperty("transform")})}),this}revert(){return this.cancel().targets.forEach((e,t)=>{const s=e.style,r=this._inlineStyles[t];for(let i in r){const n=r[i];D(n)||n===""?s.removeProperty(Bs(i)):e.style[i]=n}e.getAttribute("style")===""&&e.removeAttribute("style")}),this}then(e=oe){const t=this.then,s=()=>{this.then=null,e(this),this.then=t,this._resolve=oe};return new Promise(r=>(this._resolve=()=>r(s()),this.completed&&this._resolve(),this))}},Qn={animate:(e,t)=>new Zn(e,t),convertEase:nr},Ac=0,Lc=0,or=(e,t)=>!e||!t?!1:e===t||e.contains(t),rs=e=>{if(!e)return null;const t=e.style,s=t.transition||"";return t.setProperty("transition","none","important"),s},ar=(e,t)=>{if(!e)return;const s=e.style;t?s.transition=t:s.removeProperty("transition")},Rc=e=>{const t=e.layout.transitionMuteStore,s=e.$el,r=e.$measure;s&&!t.has(s)&&t.set(s,rs(s)),r&&!t.has(r)&&t.set(r,rs(r))},lr=e=>{e.forEach((t,s)=>ar(s,t)),e.clear()},Ic={display:"none",visibility:"hidden",opacity:"0",transform:"none",position:"static"},Oc=e=>{if(!e)return;const t=e.parentNode;t&&(t._head===e&&(t._head=e._next),t._tail===e&&(t._tail=e._prev),e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e._prev=null,e._next=null,e.parentNode=null)},Jn=(e,t,s,r)=>{let i=e.dataset.layoutId;i||(i=e.dataset.layoutId=`node-${Lc++}`);const n=r||{};return n.$el=e,n.$measure=e,n.id=i,n.index=0,n.targets=null,n.delay=0,n.duration=0,n.ease=null,n.state=s,n.layout=s.layout,n.parentNode=t||null,n.isTarget=!1,n.isEntering=!1,n.isLeaving=!1,n.isInlined=!1,n.hasTransform=!1,n.inlineStyles=[],n.inlineTransforms=null,n.inlineTransition=null,n.branchAdded=!1,n.branchRemoved=!1,n.branchNotRendered=!1,n.sizeChanged=!1,n.hasVisibilitySwap=!1,n.hasDisplayNone=!1,n.hasVisibilityHidden=!1,n.measuredInlineTransform=null,n.measuredInlineTransition=null,n.measuredDisplay=null,n.measuredVisibility=null,n.measuredPosition=null,n.measuredHasDisplayNone=!1,n.measuredHasVisibilityHidden=!1,n.measuredIsVisible=!1,n.measuredIsRemoved=!1,n.measuredIsInsideRoot=!1,n.properties={transform:"none",x:0,y:0,left:0,top:0,clientLeft:0,clientTop:0,width:0,height:0},n.layout.properties.forEach(o=>n.properties[o]=0),n._head=null,n._tail=null,n._prev=null,n._next=null,n},Kn=(e,t,s,r)=>{const i=e.$el,n=e.layout.root,o=n===i,a=e.properties,h=e.state.rootNode,u=e.parentNode,f=s.transform,l=i.style.transform,d=u?u.measuredIsRemoved:!1,c=s.position;o&&(e.layout.absoluteCoords=c==="fixed"||c==="absolute"),e.$measure=t,e.inlineTransforms=l,e.hasTransform=f&&f!=="none",e.measuredIsInsideRoot=or(n,t),e.measuredInlineTransform=null,e.measuredDisplay=s.display,e.measuredVisibility=s.visibility,e.measuredPosition=c,e.measuredHasDisplayNone=s.display==="none",e.measuredHasVisibilityHidden=s.visibility==="hidden",e.measuredIsVisible=!(e.measuredHasDisplayNone||e.measuredHasVisibilityHidden),e.measuredIsRemoved=e.measuredHasDisplayNone||e.measuredHasVisibilityHidden||d;let p=!1,g=i.previousSibling;for(;g&&(g.nodeType===Node.COMMENT_NODE||g.nodeType===Node.TEXT_NODE&&!g.textContent.trim());)g=g.previousSibling;if(g&&g.nodeType===Node.TEXT_NODE)p=!0;else{for(g=i.nextSibling;g&&(g.nodeType===Node.COMMENT_NODE||g.nodeType===Node.TEXT_NODE&&!g.textContent.trim());)g=g.nextSibling;p=g!==null&&g.nodeType===Node.TEXT_NODE}if(e.isInlined=p,e.hasTransform&&!r){const k=e.layout.transitionMuteStore;k.get(i)||(e.inlineTransition=rs(i)),t===i?i.style.transform="none":(k.get(t)||(e.measuredInlineTransition=rs(t)),e.measuredInlineTransform=t.style.transform,t.style.transform="none")}let v=0,_=0,S=0,y=0;if(!r){const k=t.getBoundingClientRect();v=k.left,_=k.top,S=k.width,y=k.height}for(let k in a){const w=k==="transform"?f:s[k]||s.getPropertyValue&&s.getPropertyValue(k);D(w)||(a[k]=w)}a.left=v,a.top=_,a.clientLeft=r?0:t.clientLeft,a.clientTop=r?0:t.clientTop;let m,b;if(o)e.layout.absoluteCoords?(m=v,b=_):(m=0,b=0);else{const k=u||h,w=k.properties.left,E=k.properties.top,O=k.properties.clientLeft,P=k.properties.clientTop;if(e.layout.absoluteCoords)m=v-w-O,b=_-E-P;else if(k===h){const A=h.properties.left,C=h.properties.top,H=h.properties.clientLeft,$=h.properties.clientTop;m=v-A-H,b=_-C-$}else m=v-w-O,b=_-E-P}return a.x=m,a.y=b,a.width=S,a.height=y,e},jn=(e,t)=>{if(t)for(let s in t)e.properties[s]=t[s]},_s=(e,t)=>{const s=Ne(t.ease,e.$el,e.index,e.targets,null,null),r=Ee(s)?s:t.ease,i=!D(r)&&!D(r.ease);e.ease=i?r.ease:r,e.duration=i?r.settlingDuration:Ne(t.duration,e.$el,e.index,e.targets,null,null),e.delay=Ne(t.delay,e.$el,e.index,e.targets,null,null)},Nc=e=>{const t=e.$el.style,s=e.inlineStyles;s.length=0,e.layout.recordedProperties.forEach(r=>{s.push(r,t[r]||"")})},eo=e=>{const t=e.$el.style,s=e.inlineStyles;for(let r=0,i=s.length;r<i;r+=2){const n=s[r],o=s[r+1];o&&o!==""?t[n]=o:(t[n]="",t.removeProperty(n))}},Mc=e=>{const t=e.inlineTransforms,s=e.$el.style;!e.hasTransform||!t||e.hasTransform&&s.transform==="none"||t&&t==="none"?s.removeProperty("transform"):t&&(s.transform=t);const r=e.$measure;if(e.hasTransform&&r!==e.$el){const i=r.style,n=e.measuredInlineTransform;n&&n!==""?i.transform=n:i.removeProperty("transform")}e.measuredInlineTransform=null,e.inlineTransition!==null&&(ar(e.$el,e.inlineTransition),e.inlineTransition=null),r!==e.$el&&e.measuredInlineTransition!==null&&(ar(r,e.measuredInlineTransition),e.measuredInlineTransition=null)},to=e=>{(e.measuredIsRemoved||e.hasVisibilitySwap)&&(e.$el.style.removeProperty("display"),e.$el.style.removeProperty("visibility"),e.hasVisibilitySwap&&(e.$measure.style.removeProperty("display"),e.$measure.style.removeProperty("visibility"))),e.layout.pendingRemoval.delete(e.$el)},ei=(e,t,s)=>(t.properties={...e.properties},t.state=s,t.isTarget=e.isTarget,t.hasTransform=e.hasTransform,t.inlineTransforms=e.inlineTransforms,t.measuredIsVisible=e.measuredIsVisible,t.measuredDisplay=e.measuredDisplay,t.measuredIsRemoved=e.measuredIsRemoved,t.measuredHasDisplayNone=e.measuredHasDisplayNone,t.measuredHasVisibilityHidden=e.measuredHasVisibilityHidden,t.hasDisplayNone=e.hasDisplayNone,t.isInlined=e.isInlined,t.hasVisibilityHidden=e.hasVisibilityHidden,t),so=class{constructor(e){this.layout=e,this.rootNode=null,this.rootNodes=new Set,this.nodes=new Map,this.scrollX=0,this.scrollY=0}revert(){return this.forEachNode(e=>{this.layout.pendingRemoval.delete(e.$el),e.$el.removeAttribute("data-layout-id"),e.$measure.removeAttribute("data-layout-id")}),this.rootNode=null,this.rootNodes.clear(),this.nodes.clear(),this}getNode(e){if(!(!e||!e.dataset))return this.nodes.get(e.dataset.layoutId)}getComputedValue(e,t){const s=this.getNode(e);if(s)return s.properties[t]}forEach(e,t){let s=e,r=0;for(;s;)if(t(s,r++),s._head)s=s._head;else if(s._next)s=s._next;else{for(;s&&!s._next;)s=s.parentNode;s&&(s=s._next)}}forEachRootNode(e){this.forEach(this.rootNode,e)}forEachNode(e){for(const t of this.rootNodes)this.forEach(t,e)}registerElement(e,t){if(!e||e.nodeType!==1)return null;this.layout.transitionMuteStore.has(e)||this.layout.transitionMuteStore.set(e,rs(e));const s=[e,t],r=this.layout.root;let i=null;for(;s.length;){const n=s.pop(),o=s.pop();if(!o||o.nodeType!==1||Hs(o))continue;const a=n?n.measuredIsRemoved:!1,h=a?Ic:getComputedStyle(o),u=a?!0:h.display==="none",f=a?!0:h.visibility==="hidden",l=!u&&!f,d=o.dataset.layoutId,c=or(r,o);let p=d?this.nodes.get(d):null;if(p&&p.$el!==o){const v=or(r,p.$el),_=p.measuredIsVisible,S=!v&&(c||!c&&!_&&l),y=v&&!_&&l;if(S)Oc(p),p=Jn(o,n,this,p);else if(y){Kn(p,o,h,a);let m=o.lastElementChild;for(;m;)s.push(m,p),m=m.previousElementSibling;i||(i=p);continue}else{let m=o.lastElementChild;for(;m;)s.push(m,n),m=m.previousElementSibling;i||(i=p);continue}}else p=Jn(o,n,this,p);p.branchAdded=!1,p.branchRemoved=!1,p.branchNotRendered=!1,p.isTarget=!1,p.sizeChanged=!1,p.hasVisibilityHidden=f,p.hasDisplayNone=u,p.hasVisibilitySwap=f&&!p.measuredHasVisibilityHidden||u&&!p.measuredHasDisplayNone,this.nodes.set(p.id,p),p.parentNode=n||null,p._prev=null,p._next=null,n?(this.rootNodes.delete(p),n._head?(n._tail._next=p,p._prev=n._tail,n._tail=p):(n._head=p,n._tail=p)):this.rootNodes.add(p),Kn(p,p.$el,h,a);let g=o.lastElementChild;for(;g;)s.push(g,p),g=g.previousElementSibling;i||(i=p)}return i}ensureDetachedNode(e,t){if(!e||e===this.layout.root)return null;const s=e.dataset.layoutId,r=s?this.nodes.get(s):null;if(r&&r.$el===e)return r;let i=null,n=e.parentElement;for(;n&&n!==this.layout.root;){if(t.has(n)){i=this.ensureDetachedNode(n,t);break}n=n.parentElement}return this.registerElement(e,i)}record(){const e=this.layout,t=e.children,s=e.root,r=$e(t)?t:[t],i=[],n=t==="*"?s:Ie.root,o=[];let a=s.parentElement;for(;a&&a.nodeType===1;){const g=getComputedStyle(a);if(g.transform&&g.transform!=="none"){const v=a.style.transform||"",_=rs(a);o.push(a,v,_),a.style.transform="none"}a=a.parentElement}for(let g=0,v=r.length;g<v;g++){const _=r[g];i[g]=Be(_)?n.querySelectorAll(_):_}const h=Lt(i);this.nodes.clear(),this.rootNodes.clear();const u=this.registerElement(s,null);u.isTarget=!0,this.rootNode=u;const f=new Set;let l=0;const d=[];this.nodes.forEach(g=>{d.push(g.$el)}),this.nodes.forEach((g,v)=>{g.index=l++,g.targets=d,g&&g.measuredIsInsideRoot&&f.add(v)});const c=new Set,p=[];for(let g=0,v=h.length;g<v;g++){const _=h[g];if(!(!_||_.nodeType!==1||_===s)){if(!or(s,_)){const S=_.dataset.layoutId;if(!S||!f.has(S))continue}c.has(_)||(c.add(_),p.push(_))}}for(let g=0,v=p.length;g<v;g++)this.ensureDetachedNode(p[g],c);for(let g=0,v=h.length;g<v;g++){const _=h[g],S=this.getNode(_);if(S){let y=S;for(;y&&!y.isTarget;)y.isTarget=!0,y=y.parentNode}}this.scrollX=window.scrollX,this.scrollY=window.scrollY,this.forEachNode(Mc);for(let g=0,v=o.length;g<v;g+=3){const _=o[g],S=o[g+1],y=o[g+2];S&&S!==""?_.style.transform=S:_.style.removeProperty("transform"),ar(_,y)}return this}};function is(e){const t={},s={};for(let r in e){const i=e[r],n=r==="ease";r==="duration"||r==="delay"||n?s[r]=i:t[r]=i}return[t,s]}var ro=class{constructor(e,t={}){Ie.current&&Ie.current.register(this);const s=is(t.swapAt),r=is(t.enterFrom),i=is(t.leaveTo),n=t.properties;if(t.duration=U(t.duration,350),t.delay=U(t.delay,0),t.ease=U(t.ease,"inOut(3.5)"),this.params=t,this.root=Lt(e)[0],this.id=t.id||Ac++,this.children=t.children||"*",this.absoluteCoords=!1,this.swapAtParams=at(t.swapAt||{opacity:0},{ease:"inOut(1.75)"}),this.enterFromParams=t.enterFrom||{opacity:0},this.leaveToParams=t.leaveTo||{opacity:0},this.properties=new Set(["opacity","fontSize","color","backgroundColor","borderRadius","border","filter","clipPath"]),s[0])for(let o in s[0])this.properties.add(o);if(r[0])for(let o in r[0])this.properties.add(o);if(i[0])for(let o in i[0])this.properties.add(o);if(n)for(let o=0,a=n.length;o<a;o++)this.properties.add(n[o]);this.recordedProperties=new Set(["display","visibility","translate","position","left","top","marginLeft","marginTop","width","height","maxWidth","maxHeight","minWidth","minHeight"]),this.properties.forEach(o=>this.recordedProperties.add(o)),this.pendingRemoval=new WeakSet,this.transitionMuteStore=new Map,this.oldState=new so(this),this.newState=new so(this),this.timeline=null,this.transformAnimation=null,this.animating=[],this.swapping=[],this.leaving=[],this.entering=[],this.oldState.record(),lr(this.transitionMuteStore)}revert(){return this.root.classList.remove("is-animated"),this.timeline&&(this.timeline.complete(),this.timeline=null),this.transformAnimation&&(this.transformAnimation.complete(),this.transformAnimation=null),this.animating.length=this.swapping.length=this.leaving.length=this.entering.length=0,this.oldState.revert(),this.newState.revert(),requestAnimationFrame(()=>lr(this.transitionMuteStore)),this}record(){return this.transformAnimation&&(this.transformAnimation.cancel(),this.transformAnimation=null),this.oldState.record(),this.timeline&&(this.timeline.cancel(),this.timeline=null),this.newState.forEachRootNode(eo),this}animate(e={}){const t={ease:U(e.ease,this.params.ease),delay:U(e.delay,this.params.delay),duration:U(e.duration,this.params.duration)},s={id:this.id},r=U(e.onComplete,this.params.onComplete),i=U(e.onPause,this.params.onPause);for(let x in fs)x!=="ease"&&x!=="duration"&&x!=="delay"&&(D(e[x])?D(this.params[x])||(s[x]=this.params[x]):s[x]=e[x]);s.onComplete=()=>{const x=e.autoplay,M=z.editor;if(x&&x.linked||M&&M.showPanel){r&&r(this.timeline);return}this.transformAnimation&&this.transformAnimation.cancel(),g.forEachRootNode(I=>{to(I),eo(I)});for(let I=0,L=w.length;I<L;I++){const q=w[I];q.style.transform=g.getComputedValue(q,"transform")}this.root.classList.contains("is-animated")&&(this.root.classList.remove("is-animated"),r&&r(this.timeline)),requestAnimationFrame(()=>{this.root.classList.contains("is-animated")||lr(this.transitionMuteStore)})},s.onPause=()=>{const x=e.autoplay;if(x&&x.linked){r&&r(this.timeline),i&&i(this.timeline);return}this.root.classList.contains("is-animated")&&(this.transformAnimation&&this.transformAnimation.cancel(),g.forEachRootNode(to),this.root.classList.remove("is-animated"),r&&r(this.timeline),i&&i(this.timeline))},s.composition=!1;const n=at(at(e.swapAt||{},this.swapAtParams),t),o=at(at(e.enterFrom||{},this.enterFromParams),t),a=at(at(e.leaveTo||{},this.leaveToParams),t),[h,u]=is(n),[f,l]=is(o),[d,c]=is(a),p=this.oldState,g=this.newState,v=this.animating,_=this.swapping,S=this.entering,y=this.leaving,m=this.pendingRemoval;v.length=_.length=S.length=y.length=0,p.forEachRootNode(Rc),g.record(),g.forEachRootNode(Nc);const b=[],k=[],w=[],E=[],O=g.rootNode,P=O.$el;g.forEachRootNode(x=>{const M=x.$el,I=x.id,L=x.parentNode,q=L?L.branchAdded:!1,K=L?L.branchRemoved:!1,G=L?L.branchNotRendered:!1;let W=p.nodes.get(I);const ee=!W;ee?(W=ei(x,{},p),p.nodes.set(I,W),W.measuredIsRemoved=!0):W.measuredIsRemoved&&!x.measuredIsRemoved&&(ei(x,W,p),W.measuredIsRemoved=!0);const Y=W.parentNode,re=(Y?Y.id:null)!==(L?L.id:null),ge=W.$el!==x.$el,he=W.measuredIsRemoved,le=x.measuredIsRemoved;if(!W.measuredIsRemoved&&!le&&!ee&&(re||ge)){const we=W.properties.left,Te=W.properties.top,xe=L||g.rootNode,me=xe.id?p.nodes.get(xe.id):null,te=me?me.properties.left:xe.properties.left,T=me?me.properties.top:xe.properties.top,N=me?me.properties.clientLeft:xe.properties.clientLeft,B=me?me.properties.clientTop:xe.properties.clientTop;W.properties.x=we-te-N,W.properties.y=Te-T-B}x.hasVisibilitySwap&&(x.hasVisibilityHidden&&(x.$el.style.visibility="visible",x.$measure.style.visibility="hidden"),x.hasDisplayNone&&(x.$el.style.display=W.measuredDisplay||x.measuredDisplay||"",x.$measure.style.visibility="hidden"));const J=m.has(M),ce=W.measuredIsVisible,de=x.measuredIsVisible,ie=!ce&&de&&!G,ae=!le&&(he||J)&&!q,ke=le&&!he&&!K,ye=ke||le&&J&&!K;x.branchAdded=q||ae,x.branchRemoved=K||ye,x.branchNotRendered=G||le,le&&ce&&(x.$el.style.display=W.measuredDisplay,x.$el.style.visibility="visible",ei(W,x,g)),ke?(x.isTarget&&(y.push(M),x.isLeaving=!0),m.add(M)):!le&&J&&m.delete(M),ae&&!G||ie?(jn(W,f),x.isTarget&&(S.push(M),x.isEntering=!0)):ye&&!G&&jn(x,d),x!==O&&x.isTarget&&!x.isEntering&&!x.isLeaving&&v.push(M),b.push(M)});let A=0,C=0,H=0;g.forEachRootNode(x=>{const M=x.$el,I=x.parentNode,L=p.nodes.get(x.id),q=x.properties,K=L.properties;let G=I!==O&&I;for(;G&&!G.isTarget&&G!==O;)G=G.parentNode;x===O?(x.index=0,x.targets=v,_s(x,t)):x.isEntering?(x.index=G?G.index:A,x.targets=G?v:S,_s(x,l),A++):x.isLeaving?(x.index=G?G.index:C,x.targets=G?v:y,C++,_s(x,c)):x.isTarget?(x.index=H++,x.targets=v,_s(x,t)):(x.index=G?G.index:0,x.targets=v,_s(x,u)),L.index=x.index,L.targets=x.targets;for(let re in q)q[re]=Ne(q[re],M,x.index,x.targets,null,null),K[re]=Ne(K[re],M,L.index,L.targets,null,null);const W=1,ee=Math.abs(q.width-K.width)>W,Y=Math.abs(q.height-K.height)>W;if(x.sizeChanged=ee||Y,x.isTarget&&(!x.measuredIsRemoved&&L.measuredIsVisible||x.measuredIsRemoved&&x.measuredIsVisible)){(q.transform!=="none"||K.transform!=="none")&&(x.hasTransform=!0,w.push(M));for(let re in q)if(re!=="transform"&&q[re]!==K[re]){k.push(M);break}}x.isTarget||(_.push(M),x.sizeChanged&&I&&I.isTarget&&I.sizeChanged&&(h.transform&&(x.hasTransform=!0,w.push(M)),E.push(M)))});const $={delay:x=>g.getNode(x).delay,duration:x=>g.getNode(x).duration,ease:x=>g.getNode(x).ease};if(s.defaults=$,this.timeline=In(s),!k.length&&!w.length&&!_.length)return lr(this.transitionMuteStore),this.timeline.complete();if(b.length){this.root.classList.add("is-animated");for(let x=0,M=b.length;x<M;x++){const I=b[x],L=I.dataset.layoutId,q=p.nodes.get(L),K=g.nodes.get(L),G=q.properties;K.isInlined||((q.measuredDisplay==="grid"||K.measuredDisplay==="grid")&&I.style.setProperty("display","block","important"),(I!==P||this.absoluteCoords)&&(I.style.position=this.absoluteCoords?"fixed":"absolute",I.style.left="0px",I.style.top="0px",I.style.marginLeft="0px",I.style.marginTop="0px",I.style.translate=`${G.x}px ${G.y}px`),I===P&&K.measuredPosition==="static"&&(I.style.position="relative",I.style.left="0px",I.style.top="0px")),I.style.width=`${G.width}px`,I.style.height=`${G.height}px`,I.style.minWidth="auto",I.style.minHeight="auto",I.style.maxWidth="none",I.style.maxHeight="none"}(p.scrollX!==window.scrollX||p.scrollY!==window.scrollY)&&requestAnimationFrame(()=>window.scrollTo(p.scrollX,p.scrollY));for(let x=0,M=k.length;x<M;x++){const I=k[x],L=I.dataset.layoutId,q=p.nodes.get(L),K=g.nodes.get(L),G=q.properties,W=K.properties;let ee=!1;const Y={composition:"none"};G.width!==W.width&&(Y.width=[G.width,W.width],ee=!0),G.height!==W.height&&(Y.height=[G.height,W.height],ee=!0),!K.hasTransform&&!K.isInlined&&(Y.translate=[`${G.x}px ${G.y}px`,`${W.x}px ${W.y}px`],ee=!0),this.properties.forEach(re=>{const ge=G[re],he=W[re];re!=="transform"&&ge!==he&&(Y[re]=[ge,he],ee=!0)}),ee&&this.timeline.add(I,Y,0)}}if(_.length){for(let x=0,M=_.length;x<M;x++){const I=_[x],L=p.getNode(I),q=L.properties;I.style.width=`${q.width}px`,I.style.height=`${q.height}px`,I.style.minWidth="auto",I.style.minHeight="auto",I.style.maxWidth="none",I.style.maxHeight="none",L.isInlined||(I.style.translate=`${q.x}px ${q.y}px`),this.properties.forEach(K=>{K!=="transform"&&(I.style[K]=`${p.getComputedValue(I,K)}`)})}for(let x=0,M=_.length;x<M;x++){const I=_[x],L=g.getNode(I),q=L.properties;this.timeline.call(()=>{I.style.width=`${q.width}px`,I.style.height=`${q.height}px`,I.style.minWidth="auto",I.style.minHeight="auto",I.style.maxWidth="none",I.style.maxHeight="none",L.isInlined||(I.style.translate=`${q.x}px ${q.y}px`),this.properties.forEach(K=>{K!=="transform"&&(I.style[K]=`${g.getComputedValue(I,K)}`)})},L.delay+L.duration/2)}if(E.length){const x=xt(g.nodes.get(E[0].dataset.layoutId).ease),M=L=>1-x(1-L),I={};if(h)for(let L in h)L!=="transform"&&(I[L]=[{from:q=>p.getComputedValue(q,L),to:h[L]},{from:h[L],to:q=>g.getComputedValue(q,L),ease:M}]);this.timeline.add(E,I,0)}}const V=w.length;if(V){for(let x=0;x<V;x++){const M=w[x],I=g.getNode(M);I.isInlined||(M.style.translate=`${p.getComputedValue(M,"x")}px ${p.getComputedValue(M,"y")}px`),M.style.transform=p.getComputedValue(M,"transform"),E.includes(M)&&(I.ease=Ne(n.ease,M,I.index,I.targets,null,null),I.duration=Ne(n.duration,M,I.index,I.targets,null,null))}this.transformAnimation=Qn.animate(w,{translate:x=>g.getNode(x).isInlined?"0px 0px":`${g.getComputedValue(x,"x")}px ${g.getComputedValue(x,"y")}px`,transform:x=>{const M=g.getComputedValue(x,"transform");if(!E.includes(x))return M;const I=p.getComputedValue(x,"transform"),L=g.getNode(x);return[I,Ne(h.transform,x,L.index,L.targets,null,null),M]},autoplay:!1,...$}),this.timeline.sync(this.transformAnimation,0)}return this.timeline.init()}update(e,t={}){return this.record(),e(this),this.animate(t)}},Dc=(e,t)=>new ro(e,t),lt=lc,cr={},Bc=(e,t=0)=>(...s)=>t?r=>e(...s,r):r=>e(r,...s),io=e=>(...t)=>{const s=e(...t);return new Proxy(oe,{apply:(r,i,[n])=>s(n),get:(r,i)=>{if(cr[i])return io((...n)=>{const o=cr[i](...n);return a=>o(s(a))})}})},ct=(e,t,s=0)=>{const r=(...i)=>(i.length<t.length?io(Bc(t,s)):t)(...i);return cr[e]||(cr[e]=r),r},no=ct("roundPad",lt.roundPad),oo=ct("padStart",lt.padStart),ao=ct("padEnd",lt.padEnd),lo=ct("wrap",lt.wrap),co=ct("mapRange",lt.mapRange),uo=ct("degToRad",lt.degToRad),ho=ct("radToDeg",lt.radToDeg),fo=ct("snap",lt.snap),po=ct("clamp",lt.clamp),go=ct("round",lt.round),mo=ct("lerp",lt.lerp,1),vo=ct("damp",lt.damp,1),Ss=(e=0,t=1,s=0)=>{const r=10**s;return Math.floor((Math.random()*(t-e+1/r)+e)*r)/r},Hc=0,ks=(e,t=0,s=1,r=0)=>{let i=e===void 0?Hc++:e;return(n=t,o=s,a=r)=>{i+=1831565813,i=Math.imul(i^i>>>15,i|1),i^=i+Math.imul(i^i>>>7,i|61);const h=10**a;return Math.floor((((i^i>>>14)>>>0)/4294967296*(o-n+1/h)+n)*h)/h}},yo=e=>e[Ss(0,e.length-1)],ti=(e,t=Ss)=>{let s=e.length,r,i;for(;s;)i=t(0,--s),r=e[s],e[s]=e[i],e[i]=r;return e},ws=(e,t={})=>{let s=[],r=0,i,n=null;const o=t.from,a=t.reversed,h=t.ease,u=!D(h),f=u&&!D(h.ease)?h.ease:u?xt(h):null,l=t.grid,d=l===!0,c=t.axis,p=t.total,g=D(o)||o===0||o==="first",v=o==="center",_=o==="last",S=o==="random",y=$e(o),m=$e(e),b=t.use,k=Ft(m?e[0]:e),w=m?Ft(e[1]):0,E=en.exec((m?e[1]:e)+""),O=t.start||0+(m?k:0),P=t.seed,A=!D(P)&&P!==!1?ks(P===!0?0:P):Ss,C=t.jitter,H=!D(C),$=$e(C),V=$?C[0]:C||0,x=$?C[1]:C||0;let M=g?0:qe(o)?o:0;return(I,L,q,K,G)=>{const[W]=Lt(I),ee=D(p)?q.length:p,Y=D(b)?!1:Ee(b)?b(W,L,ee):Ut(W,b),re=qe(Y)||Be(Y)&&qe(+Y)?+Y:L,ge=re>=0&&re<ee?re:L;if(v&&(M=(ee-1)/2),_&&(M=ee-1),!s.length){if(d){let J=!0,ce=!1,de=1/0,ie=1/0,ae=1/0,ke=-1/0,ye=-1/0,we=-1/0;const Te=[],xe=[],me=[];for(let te=0;te<ee;te++){const T=q[te];let N=0,B=0,R=0,X=!1;if(T&&Ee(T.getBoundingClientRect)){const j=T.getBoundingClientRect();N=j.left+j.width/2,B=j.top+j.height/2,X=!0}else{const j=T;j&&qe(j.x)&&qe(j.y)&&(N=j.x,B=j.y,qe(j.z)&&(R=j.z,ce=!0),X=!0)}if(!X){J=!1;break}Te.push(N),xe.push(B),me.push(R),N<de&&(de=N),B<ie&&(ie=B),R<ae&&(ae=R),N>ke&&(ke=N),B>ye&&(ye=B),R>we&&(we=R)}if(J){let te=Te[0],T=xe[0],N=me[0];y?(te=de+o[0]*(ke-de),T=ie+o[1]*(ye-ie),N=ce?ae+(o.length>=3?o[2]:.5)*(we-ae):0):v?(te=(de+ke)/2,T=(ie+ye)/2,N=(ae+we)/2):_?(te=Te[ee-1],T=xe[ee-1],N=me[ee-1]):qe(o)&&(te=Te[o],T=xe[o],N=me[o]);for(let R=0;R<ee;R++){const X=te-Te[R],j=T-xe[R],se=N-me[R];let be=nt(X*X+j*j+(ce?se*se:0));c==="x"&&(be=-X),c==="y"&&(be=-j),c==="z"&&(be=-se),s.push(be)}let B=1/0;for(let R=0;R<ee;R++){const X=ot(s[R]);X>0&&X<B&&(B=X)}if(B>0&&B<1/0)for(let R=0;R<ee;R++)s[R]=s[R]/B}else for(let te=0;te<ee;te++)s.push(ot(M-te))}else for(let J=0;J<ee;J++)if(!l)s.push(ot(M-J));else{const ce=l.length,de=l[0]*l[1];let ie,ae,ke;y?(ie=o[0]*(l[0]-1),ae=o[1]*(l[1]-1),ke=ce===3?(o.length>=3?o[2]:.5)*(l[2]-1):0):v?(ie=(l[0]-1)/2,ae=(l[1]-1)/2,ke=ce===3?(l[2]-1)/2:0):(ie=M%l[0],ae=Kt(M/l[0])%l[1],ke=ce===3?Kt(M/de):0);const ye=J%l[0],we=Kt(J/l[0])%l[1],Te=ce===3?Kt(J/de):0,xe=ie-ye,me=ae-we,te=ke-Te;let T=nt(xe*xe+me*me+(ce===3?te*te:0));c==="x"&&(T=-xe),c==="y"&&(T=-me),c==="z"&&(T=-te),s.push(T)}r=s[0];for(let J=1;J<ee;J++)s[J]>r&&(r=s[J]);if(f||a)for(let J=0;J<ee;J++){let ce=s[J];f&&(ce=f(ce/r)*r),a&&(ce=c?-ce:ot(r-ce)),s[J]=ce}if(H){n=new Array(ee);for(let J=0;J<ee;J++)n[J]=A(-1,1,4)}S&&(s=ti(s,A))}const he=m?(w-k)/r:k;D(i)&&(i=G?ms(G,D(t.start)?G.iterationDuration:O):O);let le=i+(he*F(s[ge],2)||0);if(H){const J=r?s[ge]/r:0,ce=V+(x-V)*J;le=le+n[ge]*ce}return t.modifier&&(le=t.modifier(le)),E&&(le=`${le}${E[2]}`),le}},$c=Gt({$:()=>Lt,addChild:()=>mt,clamp:()=>po,cleanInlineStyles:()=>gn,createSeededRandom:()=>ks,damp:()=>vo,degToRad:()=>uo,forEachChildren:()=>Se,get:()=>It,keepTime:()=>tr,lerp:()=>mo,mapRange:()=>co,padEnd:()=>ao,padStart:()=>oo,radToDeg:()=>ho,random:()=>Ss,randomPick:()=>yo,remove:()=>Mn,removeChild:()=>gt,round:()=>go,roundPad:()=>no,set:()=>Ct,shuffle:()=>ti,snap:()=>fo,stagger:()=>ws,sync:()=>Jr,wrap:()=>lo}),bo=e=>{const t=st(e)[0];return!t||!Hs(t)?console.warn(`${e} is not a valid SVGGeometryElement`):t},si=(e,t,s,r,i)=>{const n=s+r,o=i?Math.max(0,Math.min(n,t)):(n%t+t)%t;return e.getPointAtLength(o)},ri=(e,t,s=0)=>r=>{const i=+e.getTotalLength(),n=r[Ir],o=e.getCTM(),a=s===0;return{from:0,to:i,modifier:h=>{const u=h+s*i;if(t==="a"){const f=si(e,i,u,-1,a),l=si(e,i,u,1,a);return qs(l.y-f.y,l.x-f.x)*180/bt}else{const f=si(e,i,u,0,a);return t==="x"?n||!o?f.x:f.x*o.a+f.y*o.c+o.e:n||!o?f.y:f.x*o.b+f.y*o.d+o.f}}}},_o=(e,t=0)=>{const s=bo(e);if(s)return{translateX:ri(s,"x",t),translateY:ri(s,"y",t),rotate:ri(s,"a",t)}},qc=e=>{let t=1;if(e&&e.getCTM){const s=e.getCTM();s&&(t=(nt(s.a*s.a+s.b*s.b)+nt(s.c*s.c+s.d*s.d))/2)}return t},Fc=(e,t,s)=>{const r=Ye,i=getComputedStyle(e),n=i.strokeLinecap,o=i.vectorEffect==="non-scaling-stroke"?e:null;let a=n;const h=new Proxy(e,{get(u,f){const l=u[f];return f===Ji?u:f==="setAttribute"?(...d)=>{if(d[0]==="draw"){const c=d[1].split(" "),p=+c[0],g=+c[1],v=qc(o),_=p*-r*v,S=g*r*v+_,y=r*v+(p===0&&g===1||p===1&&g===0?0:10*v)-S;if(n!=="butt"){const m=p===g?"butt":n;a!==m&&(u.style.strokeLinecap=`${m}`,a=m)}u.setAttribute("stroke-dashoffset",`${_}`),u.setAttribute("stroke-dasharray",`${S} ${y}`)}return Reflect.apply(l,u,d)}:Ee(l)?(...d)=>Reflect.apply(l,u,d):l}});return e.getAttribute("pathLength")!==`${r}`&&(e.setAttribute("pathLength",`${r}`),h.setAttribute("draw",`${t} ${s}`)),h},So=(e,t=0,s=0)=>st(e).map(r=>Fc(r,t,s)),ko=(e,t=.33)=>(s,r,i,n)=>{if(!(s.tagName||"").toLowerCase().match(/^(path|polygon|polyline)$/))throw new Error(`Can't morph a <${s.tagName}> SVG element. Use <path>, <polygon> or <polyline>.`);const o=bo(e);if(!o)throw new Error("Can't morph to an invalid target. 'path2' must resolve to an existing <path>, <polygon> or <polyline> SVG element.");if(!(o.tagName||"").toLowerCase().match(/^(path|polygon|polyline)$/))throw new Error(`Can't morph a <${o.tagName}> SVG element. Use <path>, <polygon> or <polyline>.`);const a=s.tagName==="path",h=a?" ":",",u=n?n._value:null;u&&s.setAttribute(a?"d":"points",u);let f="",l="";if(!t)f=s.getAttribute(a?"d":"points"),l=o.getAttribute(a?"d":"points");else{const d=s.getTotalLength(),c=o.getTotalLength(),p=Math.max(Math.ceil(d*t),Math.ceil(c*t));for(let g=0;g<p;g++){const v=g/(p-1),_=s.getPointAtLength(d*v),S=o.getPointAtLength(c*v),y=a?g===0?"M":"L":"";f+=y+F(_.x,3)+h+_.y+" ",l+=y+F(S.x,3)+h+S.y+" "}}return[f,l]},Vc=Gt({createDrawable:()=>So,createMotionPath:()=>_o,morphTo:()=>ko}),ur=typeof Intl<"u"&&Intl.Segmenter,zc=/\{value\}/g,Uc=/\{i\}/g,ii=/(\s+)/,ni=/^\s+$/,oi="line",xs="word",Ts="char",Cs="data-line",ai=null,li=null,hr=null,wo=e=>e.isWordLike||e.segment===" "||qe(+e.segment),ci=e=>e.setAttribute("aria-hidden","true"),dr=(e,t)=>[...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)],Wc={line:"#00D672",word:"#FF4B4B",char:"#5A87FF"},xo=e=>{if(!e.childElementCount&&!e.textContent.trim()){const t=e.parentElement;e.remove(),t&&xo(t)}},To=(e,t,s)=>{const r=e.getAttribute(Cs);if(r!==null&&+r!==t||e.tagName==="BR"){s.add(e);const n=e.previousSibling,o=e.nextSibling;n&&n.nodeType===3&&ni.test(n.textContent)&&s.add(n),o&&o.nodeType===3&&ni.test(o.textContent)&&s.add(o)}let i=e.childElementCount;for(;i--;)To(e.children[i],t,s);return s},ui=(e,t={})=>{let s="";t||(t={});const r=Be(t.class)?` class="${t.class}"`:"",i=U(t.clone,!1),n=U(t.wrap,!1),o=n?n===!0?"clip":n:i?"clip":!1;if(n&&(s+=`<span${o?` style="overflow:${o};"`:""}>`),s+=`<span${r}${i?' style="position:relative;"':""} data-${e}="{i}">`,i){const a=i==="left"?"-100%":i==="right"?"100%":"0",h=i==="top"?"-100%":i==="bottom"?"100%":"0";s+="<span>{value}</span>",s+=`<span inert style="position:absolute;top:${h};left:${a};white-space:nowrap;">{value}</span>`}else s+="{value}";return s+="</span>",n&&(s+="</span>"),s},hi=(e,t,s,r,i,n,o,a,h)=>{const u=i===oi,f=i===Ts,l=`_${i}_`,d=Ee(e)?e(s):e,c=u?"block":"inline-block";hr.innerHTML=d.replace(zc,`<i class="${l}"></i>`).replace(Uc,`${f?h:u?o:a}`);const p=hr.content,g=p.firstElementChild,v=p.querySelector(`[data-${i}]`)||g,_=p.querySelectorAll(`i.${l}`),S=_.length;if(S){g.style.display=c,v.style.display=c,v.setAttribute(Cs,`${o}`),u||(v.setAttribute("data-word",`${a}`),f&&v.setAttribute("data-char",`${h}`));let y=S;for(;y--;){const m=_[y],b=m.parentElement;b.style.display=c,u?b.innerHTML=s.innerHTML:b.replaceChild(s.cloneNode(!0),m)}t.push(v),r.appendChild(p)}else console.warn('The expression "{value}" is missing from the provided template.');return n&&(g.style.outline=`1px dotted ${Wc[i]}`),g},fr=class{constructor(e,t={}){ai||(ai=ur?new ur([],{granularity:xs}):{segment:c=>{const p=[],g=c.split(ii);for(let v=0,_=g.length;v<_;v++){const S=g[v];p.push({segment:S,isWordLike:!ni.test(S)})}return p}}),li||(li=ur?new ur([],{granularity:"grapheme"}):{segment:c=>[...c].map(p=>({segment:p}))}),!hr&&yt&&(hr=Q.createElement("template")),Ie.current&&Ie.current.register(this);const{words:s,chars:r,lines:i,accessible:n,includeSpaces:o,debug:a}=t,h=(e=$e(e)?e[0]:e)&&e.nodeType?e:(Ur(e)||[])[0],u=i===!0?{}:i,f=s===!0||D(s)?{}:s,l=r===!0?{}:r;this.debug=U(a,!1),this.includeSpaces=U(o,!1),this.accessible=U(n,!0),this.linesOnly=u&&!f&&!l,this.lineTemplate=De(u)?ui(oi,u):u,this.wordTemplate=De(f)||this.linesOnly?ui(xs,f):f,this.charTemplate=De(l)?ui(Ts,l):l,this.$target=h,this.html=h&&h.innerHTML,this.lines=[],this.words=[],this.chars=[],this.effects=[],this.effectsCleanups=[],this.cache=null,this.ready=!1,this.width=0,this.resizeTimeout=null;const d=()=>this.html&&(u||f||l)&&this.split();this.resizeObserver=new ResizeObserver(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{const c=h.offsetWidth;c!==this.width&&(this.width=c,d())},150)}),this.lineTemplate&&!this.ready?Q.fonts.ready.then(d):d(),h?this.resizeObserver.observe(h):console.warn("No Text Splitter target found.")}addEffect(e){if(!Ee(e))return console.warn("Effect must return a function."),this;const t=tr(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=>Ee(e)?e(this):e.revert&&e.revert()),this.$target.innerHTML=this.html,this}splitNode(e){const t=this.wordTemplate,s=this.charTemplate,r=this.includeSpaces,i=this.debug,n=e.nodeType;if(n===3){const o=e.nodeValue;if(o.trim()){const a=[],h=this.words,u=this.chars,f=ai.segment(o),l=Q.createDocumentFragment();let d=null;for(const c of f){const p=c.segment,g=wo(c);if(!d||g&&d&&wo(d))a.push(p);else{const v=a.length-1,_=a[v];!ii.test(_)&&!ii.test(p)?a[v]+=p:a.push(p)}d=c}for(let c=0,p=a.length;c<p;c++){const g=a[c];if(g.trim()){const v=a[c+1],_=r&&v&&!v.trim(),S=g,y=s?li.segment(S):null,m=s?Q.createDocumentFragment():Q.createTextNode(_?g+" ":g);if(s){const b=[...y];for(let k=0,w=b.length;k<w;k++){const E=b[k],O=k===w-1&&_?E.segment+" ":E.segment,P=Q.createTextNode(O);hi(s,u,P,m,Ts,i,-1,h.length,u.length)}}t?hi(t,h,m,l,xs,i,-1,h.length,u.length):s?l.appendChild(m):l.appendChild(Q.createTextNode(g)),_&&c++}else{if(c&&r)continue;l.appendChild(Q.createTextNode(g))}}e.parentNode.replaceChild(l,e)}}else if(n===1){const o=[...e.childNodes];for(let a=0,h=o.length;a<h;a++)this.splitNode(o[a])}}split(e=!1){const t=this.$target,s=!!this.cache&&!e,r=this.lineTemplate,i=this.wordTemplate,n=this.charTemplate,o=Q.fonts.status!=="loading",a=r&&o;this.ready=!r||o,(a||e)&&this.effectsCleanups.forEach(l=>Ee(l)&&l(this)),s||(e&&(t.innerHTML=this.html,this.words.length=this.chars.length=0),this.splitNode(t),this.cache=t.innerHTML),a&&(s&&(t.innerHTML=this.cache),this.lines.length=0,i&&(this.words=dr(t,xs))),n&&(a||i)&&(this.chars=dr(t,Ts));const h=this.words.length?this.words:this.chars;let u,f=0;for(let l=0,d=h.length;l<d;l++){const c=h[l],{top:p,height:g}=c.getBoundingClientRect();!D(u)&&p-u>g*.5&&f++,c.setAttribute(Cs,`${f}`);const v=c.querySelectorAll(`[${Cs}]`);let _=v.length;for(;_--;)v[_].setAttribute(Cs,`${f}`);u=p}if(a){const l=Q.createDocumentFragment(),d=new Set,c=[];for(let p=0;p<f+1;p++){const g=t.cloneNode(!0);To(g,p,new Set).forEach(v=>{const _=v.parentNode;_&&(v.nodeType===1&&d.add(_),_.removeChild(v))}),c.push(g)}d.forEach(xo);for(let p=0,g=c.length;p<g;p++)hi(r,this.lines,c[p],l,oi,this.debug,p);t.innerHTML="",t.appendChild(l),i&&(this.words=dr(t,xs)),n&&(this.chars=dr(t,Ts))}if(this.linesOnly){const l=this.words;let d=l.length;for(;d--;){const c=l[d];c.replaceWith(c.textContent)}l.length=0}if(this.accessible&&(a||!s)){const l=Q.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(ci),this.words.forEach(ci),this.chars.forEach(ci)}return this.width=t.offsetWidth,(a||e)&&this.effects.forEach((l,d)=>this.effectsCleanups[d]=l(this)),this}refresh(){this.split(!0)}},Co=(e,t)=>new fr(e,t),Ps=(e,t)=>(console.warn("text.split() is deprecated, import splitText() directly, or text.splitText()"),new fr(e,t)),Po=e=>{let t="";for(let s=0,r=e.length;s<r;s++)if(s+2<r&&e[s+1]==="-"&&e.charCodeAt(s)<e.charCodeAt(s+2)){const i=e.charCodeAt(s),n=e.charCodeAt(s+2);for(let o=i;o<=n;o++)t+=String.fromCharCode(o);s+=2}else t+=e[s];return t},Eo={lowercase:"a-z",uppercase:"A-Z",numbers:"0-9",symbols:"!%#_|*+=",braille:"⠀-⣿",blocks:"▀-▟",shades:"░-▓"},di=new WeakMap,Ao=(e={})=>{e||(e={});const t=e.chars,s=xt(e.ease||"linear"),r=e.text,i=e.from,n=e.reversed||!1,o=e.perturbation||0,a=e.cursor,h=a===!0?"_":typeof a=="number"?String.fromCharCode(a):typeof a=="string"?a:"",u=h.length,f=e.seed||0,l=e.override!==void 0?e.override:!0,d=e.revealRate||60,c=1e3*z.timeScale/d,p=e.settleDuration||300*z.timeScale,g=e.settleRate||30,v=e.duration,_=e.revealDelay,S=e.delay,y=e.onChange||oe;return(m,b,k,w)=>{const E=typeof t=="function"?t(m,b,k):t||"a-zA-Z0-9!%#_",O=Po(Eo[E]||E),P=O.length-1,A=typeof v=="function"?v(m,b,k):v,C=typeof _=="function"?_(m,b,k):_||0,H=typeof S=="function"?S(m,b,k):S||0,$=f?ks(f):ks();di.has(m)||di.set(m,m.textContent);const V=w?w._value:m.textContent,x=r!==void 0?typeof r=="function"?r(m,b,k):r:w?w._value:di.get(m),M=x===" "||x==="&nbsp;"?" ":x,I=V===" "?0:V.length,L=M.length,q=l===!0?O:typeof l=="string"&&l.length>0?Po(Eo[l]||l):null,K=q?q.length-1:0,G=l===" "?" ":null,W=l===""?L:Math.max(I,L),ee=A>0?A:(W-1)*c+p,Y=F((ee+C)/z.timeScale,0)*z.timeScale,re=C>0?F(C/Y,12):0,ge=i===void 0||i==="auto"?L<I?"right":"left":i,he=new Int32Array(W);if(ge==="random"){for(let R=0;R<W;R++)he[R]=R;for(let R=W-1;R>0;R--){const X=$(0,R),j=he[R];he[R]=he[X],he[X]=j}}else{const R=ge==="right"?(l===""||!I?W:I)-1:ge==="center"?((l===""||!I?W:I)-1)/2:typeof ge=="number"?ge:0,X=Math.abs,j=new Array(W);for(let se=0;se<W;se++)j[se]=se;j.sort((se,be)=>X(se-R)-X(be-R));for(let se=0;se<W;se++)he[j[se]]=se}if(n){const R=W-1;for(let X=0;X<W;X++)he[X]=R-he[X]}const le=F(p/ee,12),J=F((1-le)/W,12),ce=u*J,de=F(1e3*z.timeScale/(g*Y),12),ie=new Float32Array(W),ae=new Float32Array(W),ke=o>0?o*le:0;for(let R=0;R<W;R++){const X=ke>0?($(0,2e3)-1e3)/1e3*ke:0,j=ke>0?($(0,2e3)-1e3)/1e3*ke:0;ie[R]=he[R]*J+X,ae[R]=Math.ceil((ie[R]+le+j)/de)*de}if(L<W&&ge!=="left"&&ge!=="right"&&ge!=="random"){let R=0;for(let se=L;se<W;se++)ae[se]>R&&(R=ae[se]);const X=new Array(L);for(let se=0;se<L;se++)X[se]=se;X.sort((se,be)=>he[se]-he[be]);const j=(1-R)/L;for(let se=0;se<L;se++){const be=R+se*j;be>ae[X[se]]&&(ae[X[se]]=be)}}const ye=new Array(W);for(let R=0;R<W;R++)ye[R]=O[$(0,P)];const we=q?q===O?ye:new Array(W):null;if(we&&we!==ye)for(let R=0;R<W;R++)we[R]=G||q[$(0,q.length-1)];let Te=V;if(!w){if(l==="")Te="";else if(q){Te="";for(let R=0;R<I;R++)Te+=V[R]===" "?" ":we[R]}}let xe=-1,me=-1,te="";const T=l!=="",N=!!q,B=u>0;return{from:0,to:1,duration:Y,delay:H,ease:"linear",modifier:R=>{if(R===xe)return te;if(xe=R,H>0&&R<=0)return te=V,V;if(R<=0)return te=Te,Te;if(R>=1)return te=M,M;te="";const X=R/de|0,j=X!==me;j&&(me=X);const se=re>0?(R-re)/(1-re):R,be=se>0?s(se):0;for(let Ae=0;Ae<W;Ae++){const Oe=ie[Ae];if(be>=ae[Ae]){Ae<L&&(te+=M[Ae]);continue}if(be<=0||be<Oe){T&&Ae<I&&(N?V[Ae]===" "?te+=" ":(j&&(we[Ae]=G||q[$(0,K)]),te+=we[Ae]):te+=V[Ae]);continue}Ae<L&&M[Ae]===" "||Ae<I&&V[Ae]===" "?te+=" ":B&&be-Oe<ce?te+=h[u-1-((be-Oe)/J|0)]:(j&&(ye[Ae]=O[$(0,P)]),te+=ye[Ae])}return j&&y(te,be),te}}}},Xc=Gt({TextSplitter:()=>fr,scrambleText:()=>Ao,split:()=>Ps,splitText:()=>Co}),Yc=Gt({$:()=>Lt,Animatable:()=>Gr,AutoLayout:()=>ro,Draggable:()=>Dn,JSAnimation:()=>Tt,Scope:()=>Bn,ScrollObserver:()=>qn,Spring:()=>Ks,TextSplitter:()=>fr,Timeline:()=>Rn,Timer:()=>tt,WAAPIAnimation:()=>Zn,addChild:()=>mt,animate:()=>gs,clamp:()=>po,cleanInlineStyles:()=>gn,createAnimatable:()=>ac,createDraggable:()=>yc,createDrawable:()=>So,createLayout:()=>Dc,createMotionPath:()=>_o,createScope:()=>bc,createSeededRandom:()=>ks,createSpring:()=>On,createTimeline:()=>In,createTimer:()=>tc,cubicBezier:()=>Vn,damp:()=>vo,degToRad:()=>uo,eases:()=>wt,easings:()=>Cc,engine:()=>Ve,forEachChildren:()=>Se,get:()=>It,globals:()=>z,irregular:()=>Un,keepTime:()=>tr,lerp:()=>mo,linear:()=>Kr,mapRange:()=>co,morphTo:()=>ko,onScroll:()=>xc,padEnd:()=>ao,padStart:()=>oo,radToDeg:()=>ho,random:()=>Ss,randomPick:()=>yo,remove:()=>Mn,removeChild:()=>gt,round:()=>go,roundPad:()=>no,scrambleText:()=>Ao,scrollContainers:()=>rr,set:()=>Ct,shuffle:()=>ti,snap:()=>fo,split:()=>Ps,splitText:()=>Co,spring:()=>js,stagger:()=>ws,steps:()=>zn,svg:()=>Vc,sync:()=>Jr,text:()=>Xc,utils:()=>$c,waapi:()=>Qn,wrap:()=>lo}),Gc=class{registerAnimation(e,t,s={}){this.animations[e]={handler:t,options:s}}isInitiallyHidden(e){return this.animations[e]?.options.initiallyHidden??!1}runAnimation(e,t,s,r,i){const n=this.animations[e];n?n.handler(t,s,r,i):(console.warn(`No animation registered with name: ${e}`),r())}addLinkAnimation(e,t){this.linkAnimations.set(e,t)}removeLinkAnimation(e){this.linkAnimations.delete(e)}runLinkAnimation(e){const t=this.linkAnimations.get(e);t&&t()}constructor(){this.animations={},this.linkAnimations=new Map,this.registerAnimation("typewriter",function(e,t,s,r){const{chars:i}=Ps(e,{words:!1,chars:!0}),n=t.fadeDuration||100,o=t.interval||100;gs(i,{opacity:[0,1],easing:"linear",duration:n,delay:ws(o,{start:t.start||0}),loop:r,onComplete:s})},{initiallyHidden:!0}),this.registerAnimation("toast",function(e,t,s,r){const{words:i}=Ps(e,{words:!0,chars:!1}),n=t.fadeDuration||100,o=t.interval||200;gs(i,{opacity:[0,1],y:[{to:["100%","0%"]}],easing:"linear",duration:n,delay:ws(o,{start:t.start||0}),loop:r,onComplete:s})},{initiallyHidden:!0}),this.registerAnimation("fadeIn",function(e,t,s,r){const i=t.duration||500;gs(e,{opacity:[0,1],easing:t.easing||"easeOutQuad",duration:i,delay:t.start||0,loop:r,onComplete:s})},{initiallyHidden:!0}),this.registerAnimation("continue",function(e,t,s){e.classList.add("squiffy-continue");const r=t.style||"pulse";let i=null,n=null;r==="wave"?(e.classList.add("squiffy-continue-wave"),n=Ps(e,{words:!1,chars:!0}).chars,i=gs(n,{opacity:[1,.3,1],easing:"easeInOutSine",duration:1200,delay:ws(80),loop:!0})):e.classList.add(`squiffy-continue-${r}`);const o=()=>{if(e.classList.remove("squiffy-continue","squiffy-continue-wave",`squiffy-continue-${r}`),e.removeEventListener("click",o),i&&(i.pause(),n))for(const a of n)a.style.opacity="1";s()};e.addEventListener("click",o)})}},Zc={animejs:Yc},Lo="input:not([disabled]), textarea:not([disabled]), select:not([disabled])",Qc="a.squiffy-link[data-section], a.squiffy-link[data-passage]";function Ro(e){if(!e)return!0;const t=e.querySelectorAll(Lo);for(const s of t)if(!s.checkValidity())return!1;return!0}function fi(e){if(!e)return;const t=Ro(e),s=e.querySelectorAll(Qc);for(const r of s)t?(r.classList.remove("validation-disabled"),r.removeAttribute("aria-disabled")):(r.classList.add("validation-disabled"),r.setAttribute("aria-disabled","true"))}function pr(e){if(!e)return;const t=e.querySelectorAll(Lo);for(const s of t)s.addEventListener("input",()=>fi(e)),s.addEventListener("change",()=>fi(e)),s.addEventListener("invalid",r=>{r.preventDefault(),s.classList.add("squiffy-invalid")}),s.addEventListener("input",()=>{s.checkValidity()&&s.classList.remove("squiffy-invalid")});fi(e)}var Jc=async e=>{let t,s,r,i,n,o=0;const a=new _l,h=[];let u=!1;async function f(T){if(u||T.closest(".squiffy-output-section")!==r||T.classList.contains("disabled")||!Ro(r))return!1;const N=T.getAttribute("data-passage"),B=T.getAttribute("data-section");if(N!==null)return d(T),ae("_turncount",ie("_turncount")+1),await g(T),N&&(n=null,await b(N)),a.emit("linkClick",{linkType:"passage"}),!0;if(B!==null)return await g(T),B&&await _(B),a.emit("linkClick",{linkType:"section"}),!0;const[R,X,j]=ye.handleLink(T);return R?(j?.disableLink&&d(T),E(),a.emit("linkClick",{linkType:X}),!0):!1}async function l(T){const N=T.target;N.classList.contains("squiffy-link")&&await f(N)}function d(T){T.classList.add("disabled"),T.setAttribute("tabindex","-1")}function c(T){T.classList.remove("disabled"),T.removeAttribute("tabindex")}async function p(){O()||await _(t.start)}async function g(T){me.runLinkAnimation(T),await m();const N=T.getAttribute("data-set");if(N){const B=JSON.parse(N);for(const R of B)v(R)}}function v(T){T=T.replace(/^(\w*\s*):=(.*)$/,(B,R,X)=>R+"="+x.processText(X,!0));const N=/^([\w]*)\s*=\s*(.*)$/.exec(T);if(N){const B=N[1];let R=N[2];R==="true"?ae(B,!0):R==="false"?ae(B,!1):isNaN(R)?(R.startsWith("@")&&(R=ie(R.substring(1))),ae(B,R)):ae(B,parseFloat(R))}else{const B=/^([\w]*)\s*([+\-*/])=\s*(.*)$/.exec(T);if(B){const R=B[1],X=B[2];let j=B[3];j.startsWith("@")&&(j=ie(j.substring(1)));const se=parseFloat(j);let be=ie(R);be===null&&(be=0),X=="+"&&(be+=se),X=="-"&&(be-=se),X=="*"&&(be*=se),X=="/"&&(be/=se),ae(R,be)}else{let R=!0;T.startsWith("not ")&&(T=T.substring(4),R=!1),ae(T,R)}}}async function _(T){const N=G();if(s=t.sections[T],!s)return;ae("_section",T),de.setSeen(T);const B=t.sections[""];(B?.clear||s.clear)&&$(),A(T);const R=r;if(B&&(await y(B,"[[]]"),ie("_section")!==T)){R.remove();return}if(await y(s,`[[${T}]]`),ie("_section")!==T){R.remove();return}pr(r),ae("_turncount",0),J(),E();const X=G();X!=N&&a.emit("canGoBackChanged",{canGoBack:X})}function S(T,N=null){const B={get:ie,set:ae,ui:{transition:xe,write:x.write,scrollToEnd:x.scrollToEnd},story:{go:_,seen:R=>de.getSeen(R)},element:ee,import:Zc,...N};t.js[T](B,ie,ae)}async function y(T,N){if(T.attributes&&await k(T.attributes),T.jsIndex!==void 0){const B=ie("_section");if(S(T.jsIndex),ie("_section")!==B)return}x.write(T.text||"",N),await m()}async function m(){u=!0,r.classList.add("links-disabled");for(const T of h)await T();h.length=0,u=!1,r.classList.remove("links-disabled")}async function b(T){const N=G();let B=s.passages&&s.passages[T];const R=t.sections[""];if(!B&&R&&R.passages&&(B=R.passages[T]),!B)throw`No passage named ${T} in the current section or master section`;de.setSeen(T);const X=[],j=[];if(R&&R.passages){const Oe=R.passages[""];Oe&&(X.push(Oe),j.push(()=>y(Oe,"[[]][]")))}const se=s.passages&&s.passages[""];se&&(X.push(se),j.push(()=>y(se,`[[${ie("_section")}]][]`))),X.push(B),j.push(()=>y(B,`[[${ie("_section")}]][${T}]`));const be="@"+ie("_turncount");if(s.passages){if(be in s.passages){const Oe=s.passages[be];X.push(Oe),j.push(()=>y(Oe,`[[${ie("_section")}]][${be}]`))}if("@last"in s.passages&&ie("_turncount")>=(s.passageCount||0)){const Oe=s.passages["@last"];X.push(Oe),j.push(()=>y(Oe,`[[${ie("_section")}]][${be}]`))}}X.some(Oe=>Oe.clear)&&($(),C()),i=document.createElement("div"),i.classList.add("squiffy-output-passage"),i.setAttribute("data-passage",`${T}`),r.appendChild(i);for(const Oe of j)await Oe();pr(r),J(),E();const Ae=G();Ae!=N&&a.emit("canGoBackChanged",{canGoBack:Ae})}async function k(T){for(const N of T)v(N)}function w(){de.reset(),re.scroll==="element"||re.scroll==="none"?(Y.innerHTML="",p()):location.reload()}function E(){ae("_output",Y.innerHTML)}function O(){const T=()=>{t.uiJsIndex!==void 0&&S(t.uiJsIndex,{registerAnimation:me.registerAnimation.bind(me),registerHelper:ke.handlebars.registerHelper.bind(ke.handlebars),SafeString:ke.handlebars.SafeString})};de.load();const N=ie("_output");return N?(Y.innerHTML=N,I(),L(),n=Y.querySelector(".squiffy-output-block:last-child"),s=t.sections[ie("_section")],T(),te.onLoad(),pr(r),!0):(T(),!1)}function P(){n=document.createElement("div"),n.classList.add("squiffy-output-block"),(i||r)?.appendChild(n)}function A(T){r&&(r.querySelectorAll("input, textarea, select").forEach(N=>{const B=N,R=B.getAttribute("data-attribute")||B.id;R&&ae(R,B.value),B.disabled||(B.disabled=!0,B.setAttribute("data-squiffy-disabled",""))}),r.querySelectorAll("[contenteditable]").forEach(N=>{const B=N.getAttribute("data-attribute")||N.id;B&&ae(B,N.innerHTML),N.getAttribute("contenteditable")!=="false"&&(N.setAttribute("contenteditable","false"),N.setAttribute("data-squiffy-disabled",""))})),i=null,C(T),P()}function C(T){r=document.createElement("div"),r.classList.add("squiffy-output-section"),r.setAttribute("data-section",T??ie("_section")),T||r.setAttribute("data-clear","true"),Y.appendChild(r)}function H(){return Y.querySelector(".squiffy-clear-stack")}function $(){let T=H();T||(T=document.createElement("div"),T.classList.add("squiffy-clear-stack"),T.style.display="none",Y.prepend(T));const N=document.createElement("div");T.appendChild(N);for(const B of[...Y.children])B!==T&&N.appendChild(B)}function V(){const T=H();if(!T)return;for(const B of[...Y.children])B!==T&&B.remove();const N=T.children[T.children.length-1];for(const B of[...N.children])Y.appendChild(B);N.remove()}const x={write:(T,N)=>{o=Y.scrollHeight;const B=x.processText(T,!1).trim();n||P();const R=document.createElement("div");N&&R.setAttribute("data-source",N),R.innerHTML=B,te.onWrite(R),n.appendChild(R),pr(r),x.scrollToEnd()},clearScreen:()=>{$(),C()},scrollToEnd:()=>{if(re.scroll!=="none")if(re.scroll==="element")Y.lastElementChild?.scrollIntoView({block:"end",inline:"nearest",behavior:"smooth"});else{let T=o;const N=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(T>N){const B=document.documentElement.scrollHeight-window.innerHeight;T>B&&(T=B),window.scrollTo({top:T,behavior:"smooth"})}}},processText:(T,N)=>ke.process(T,N)};function M(T){if(T.start!=t.start){t=T,de.reset(),Y.innerHTML="",_(t.start);return}const N=t;t=T,kl(N,T,Y,(R,X)=>{const j=s;s=X;try{return x.processText(R,!1)}finally{s=j}},d,R=>k(R)),I(),L()}function I(){const T=Y.querySelectorAll(".squiffy-output-section:last-child");r=T[T.length-1];const N=r.getAttribute("data-section");s=t.sections[N]}function L(){i=r.querySelector(".squiffy-output-passage:last-child")}function q(){const T=H(),N=Y.querySelectorAll(".squiffy-output-section").length+Y.querySelectorAll(".squiffy-output-passage").length;return T?N+T.children.length:N}function K(T){T.querySelectorAll("[data-squiffy-disabled]").forEach(N=>{N.hasAttribute("contenteditable")?N.setAttribute("contenteditable","true"):N.disabled=!1,N.removeAttribute("data-squiffy-disabled")})}function G(){return q()>1}function W(){if(u||!G())return;const T=H();if(i){const N=i.getAttribute("data-passage");ce(i.getAttribute("data-undo")),i.remove();let B=!1,R=!1;for(const X of Y.children)if(X!==T){if(X.getAttribute("data-clear")=="true"&&X.children.length==0){B=!0;continue}R=!0;break}B&&!R&&(V(),I());for(const X of r.querySelectorAll("a.squiffy-link[data-passage]"))X.getAttribute("data-passage")==N&&c(X);L()}else{ce(r.getAttribute("data-undo")),r.remove();let N=!1;for(const B of[...Y.children])if(B!==T){N=!0;break}N||V(),I(),L(),K(r)}G()||a.emit("canGoBackChanged",{canGoBack:!1})}const ee=e.element,Y=document.createElement("div");ee.appendChild(Y),t=e.story;const re={scroll:e.scroll||"body",persist:e.persist===void 0?!0:e.persist,onSet:e.onSet||(()=>{})};let ge="";re.persist&&(e.storyId!==void 0?ge=e.storyId:window.location.protocol==="file:"?ge=t.id||"":ge=window.location.pathname,ge||(console.warn("Persist is set to true in Squiffy runtime options, but no storage key could be determined. Persist will be disabled."),re.persist=!1)),re.scroll==="element"&&(Y.style.overflowY="auto"),Y.addEventListener("click",l),Y.addEventListener("keypress",async function(T){T.key==="Enter"&&await l(T)});let he={};const le=function(T,N){T!="_output"&&(T in he||(he[T]=N))},J=function(){(i??r).setAttribute("data-undo",JSON.stringify(he)),he={}},ce=function(T){if(!T)return;const N=JSON.parse(T);if(N)for(const B of Object.keys(N))de.setInternal(B,N[B],!1)},de=new Sl(re.persist,ge,re.onSet,a,le),ie=de.get.bind(de),ae=de.set.bind(de),ke=new bl(()=>t,de,()=>s),ye=new Al,we=T=>T in t.sections&&t.sections[T].text||null,Te=T=>s.passages&&T in s.passages?s.passages[T].text||null:"passages"in t.sections[""]&&t.sections[""].passages&&T in t.sections[""].passages&&t.sections[""].passages[T].text||null,xe=T=>{h.push(T)},me=new Gc,te=new wl(Y,ke,de,ye,we,Te,x.processText,xe,me,a);return te.add(hs.ReplaceLabel()),te.add(hs.RotateSequencePlugin()),te.add(hs.RandomPlugin()),te.add(hs.LivePlugin()),te.add(hs.AnimatePlugin()),{begin:p,restart:w,get:ie,set:ae,clickLink:f,update:M,goBack:W,on:(T,N)=>a.on(T,N),off:(T,N)=>a.off(T,N),once:(T,N)=>a.once(T,N)}};return mr.init=Jc,mr})({});
130
+ `,x.appendChild(M);let q=E-L+(t?1:0);x.style[t?"left":"top"]=`${q}px`,(P?i:o).appendChild(x)}),r.appendChild(i),r.appendChild(o),e.element.appendChild(r),s||r.classList.add("animejs-onscroll-debug"),this.$debug=r,It(e.element,"position")==="static"&&(this.debugStyles=Ct(e.element,{position:"relative "}))}updateBounds(){this._debug&&this.removeDebug();let e;const t=this.target,s=this.container,r=this.horizontal,i=this.linked;let o,n=t;for(i&&(o=i.currentTime,i.seek(0,!0));n&&n!==s.element&&n!==Q.body;){const T=It(n,"position")==="sticky"?Ct(n,{position:"static"}):!1;n=n.parentElement,T&&(e||(e=[]),e.push(T))}const a=t.getBoundingClientRect(),h=s.scale,u=(r?a.left+s.scrollX-s.left:a.top+s.scrollY-s.top)*h,p=(r?a.width:a.height)*h,l=r?s.width:s.height,f=(r?s.scrollWidth:s.scrollHeight)-l,c=this.enter,d=this.leave;let g="start",v="end",_="end",S="start";if(Be(c)){const T=c.split(" ");_=T[0],g=T.length>1?T[1]:g}else if(De(c)){const T=c;D(T.container)||(_=T.container),D(T.target)||(g=T.target)}else Fe(c)&&(_=c);if(Be(d)){const T=d.split(" ");S=T[0],v=T.length>1?T[1]:v}else if(De(d)){const T=d;D(T.container)||(S=T.container),D(T.target)||(v=T.target)}else Fe(d)&&(S=d);const y=or(t,g,p),m=or(t,v,p),b=y+u-l,k=m+u-f,w=or(t,_,l,b,k),A=or(t,S,l,b,k),O=y+u-w,P=m+u-A,E=P-O;this.offset=u,this.offsetStart=O,this.offsetEnd=P,this.distance=E<=0?0:E,this.thresholds=[g,v,_,S],this.coords=[y,m,w,A],e&&e.forEach(T=>T.revert()),i&&i.seek(o,!0),this._debug&&this.debug()}handleScroll(){if(!this.ready)return;const e=this.linked,t=this.sync,s=this.syncEase,r=this.syncSmooth,i=e&&(s||r),o=this.horizontal,n=this.container,a=this.scroll,h=a<=this.offsetStart,u=a>=this.offsetEnd,p=!h&&!u,l=a===this.offsetStart||a===this.offsetEnd,f=!this.hasEntered&&l,c=this._debug&&this.$debug;let d=!1,g=!1,v=this.progress;if(h&&this.began&&(this.began=!1),v>0&&!this.began&&(this.began=!0),i){const _=e.progress;if(r&&Fe(r)){if(r<1){const S=_<v&&v===1?1e-4:_>v&&!v?-1e-4:0;v=F(At(_,v,At(.01,.2,r))+S,6)}}else s&&(v=s(v));d=v!==this.prevProgress,g=_===1,d&&!g&&r&&_&&n.wakeTicker.restart()}if(c){const _=o?n.scrollY:n.scrollX;c.style[o?"top":"left"]=_+10+"px"}(p&&!this.isInView||f&&!this.forceEnter&&!this.hasEntered)&&(p&&(this.isInView=!0),!this.forceEnter||!this.hasEntered?(c&&p&&(c.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,f&&(this.forceEnter=!0)):p&&(this.forceEnter=!1)),(p||!p&&this.isInView)&&(d=!0),d&&(i&&e.seek(e.duration*v),this.onUpdate(this)),!p&&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&&(g=!0)),v>=1&&this.began&&!this.completed&&(t&&g||!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.ready=!1,this}},$c=(e={})=>new Xn(e),Yn=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,Hc=(e,t,s)=>{let r=0,i=1,o,n,a=0;do n=r+(i-r)/2,o=Yn(n,t,s)-e,o>0?i=n:r=n;while(at(o)>1e-7&&++a<100);return n},Gn=(e=.5,t=0,s=.5,r=1)=>e===t&&s===r?it:i=>i===0||i===1?i:Yn(Hc(i,e,s),t,r),Zn=(e=10,t)=>{const s=t?sc:jt;return r=>s(Z(r,0,1)*e)*(1/e)},si=(...e)=>{const t=e.length;if(!t)return it;const s=t-1,r=e[0],i=e[s],o=[0],n=[Vt(r)];for(let a=1;a<s;a++){const h=e[a],u=Be(h)?h.trim().split(" "):[h],p=u[0],l=u[1];o.push(D(l)?a/s:Vt(l)/100),n.push(Vt(p))}return n.push(Vt(i)),o.push(1),function(h){for(let u=1,p=o.length;u<p;u++){const l=o[u];if(h<=l){const f=o[u-1],c=n[u-1];return c+(n[u]-c)*(h-f)/(l-f)}}return n[n.length-1]}},Qn=(e=10,t=1)=>{const s=[0],r=e-1;for(let i=1;i<r;i++){const o=s[i-1],n=i/r,a=n+((i+1)/r-n)*Math.random(),h=n*(1-t)+a*t;s.push(Z(h,o,1))}return s.push(1),si(...s)},qc=Zt({Spring:()=>er,createSpring:()=>Hn,cubicBezier:()=>Gn,eases:()=>wt,irregular:()=>Qn,linear:()=>si,spring:()=>tr,steps:()=>Zn}),ar=(e,t=100)=>{const s=[];for(let r=0;r<=t;r++)s.push(F(e(r/t),4));return`linear(${s.join(", ")})`},Jn={},Kn=e=>{let t=Jn[e];if(t)return t;if(t="linear",Be(e)){if(Me(e,"linear")||Me(e,"cubic-")||Me(e,"steps")||Me(e,"ease"))t=e;else if(Me(e,"cubicB"))t=Hs(e);else{const s=On(e);Ee(s)&&(t=s===it?"linear":ar(s))}Jn[e]=t}else if(Ee(e)){const s=ar(e);s&&(t=s)}else e.ease&&(t=ar(e.ease));return t},jn=["x","y","z"],Fc=["perspective","width","height","margin","padding","top","right","bottom","left","borderWidth","fontSize","borderRadius",...jn],Vc=[...jn,...qt.filter(e=>["X","Y","Z"].some(t=>e.endsWith(t)))],ri=null,Ss=(e,t,s,r,i)=>{let o=Be(t)?t:Ne(t,s,r,i,null,null);return Fe(o)?Fc.includes(e)||Me(e,"translate")?`${o}px`:Me(e,"rotate")||Me(e,"skew")?`${o}deg`:`${o}`:o},eo=(e,t,s,r,i,o)=>{let n="0";const a=D(r)?getComputedStyle(e)[t]:Ss(t,r,e,i,o);return D(s)?n=He(r)?r.map(h=>Ss(t,h,e,i,o)):a:n=[Ss(t,s,e,i,o),a],n},to=class{constructor(e,t){Ie.current&&Ie.current.register(this),Ft(ri)&&(bt&&(D(CSS)||!Object.hasOwnProperty.call(CSS,"registerProperty"))?ri=!1:(qt.forEach(f=>{const c=Me(f,"skew"),d=Me(f,"scale"),g=Me(f,"rotate"),v=Me(f,"translate"),_=g||c,S=_?"<angle>":d?"<number>":v?"<length-percentage>":"*";try{CSS.registerProperty({name:"--"+f,syntax:S,inherits:!1,initialValue:v?"0px":_?"0deg":d?"1":"0"})}catch{}}),ri=!0));const s=Lt(e);s.length||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");const r=U(t.autoplay,z.defaults.autoplay),i=r&&r.link?r:!1,o=t.alternate&&t.alternate===!0,n=t.reversed&&t.reversed===!0,a=U(t.loop,z.defaults.loop),h=a===!0||a===1/0?1/0:Fe(a)?a+1:1,u=o?n?"alternate-reverse":"alternate":n?"reverse":"normal",p="both",l=z.timeScale===1?1:Ye;this.targets=s,this.animations=[],this.controlAnimation=null,this.onComplete=t.onComplete||z.defaults.onComplete,this.duration=0,this.muteCallbacks=!1,this.completed=!1,this.paused=!r||i!==!1,this.reversed=n,this.persist=U(t.persist,z.defaults.persist),this.autoplay=r,this._speed=U(t.playbackRate,z.defaults.playbackRate),this._resolve=oe,this._completed=0,this._inlineStyles=[],s.forEach((f,c)=>{const d=f[ds],g=Vc.some(P=>t.hasOwnProperty(P)),v=f.style,_=this._inlineStyles[c]={},S=U(t.ease,z.defaults.ease),y=Ne(S,f,c,s,null,null),m=Ee(y)||Be(y)?y:S,b=S.ease&&S,k=Kn(m),w=(b?b.settlingDuration:Ne(U(t.duration,z.defaults.duration),f,c,s,null,null))*l,A=Ne(U(t.delay,z.defaults.delay),f,c,s,null,null)*l,O=U(t.composition,"replace");for(let P in t){if(!Kt(P))continue;const E={},T={iterations:h,direction:u,fill:p,easing:k,duration:w,delay:A,composite:O},$=t[P],H=g?qt.includes(P)?P:Br.get(P):!1,V=H?"transform":P;_[V]||(_[V]=v[V]);let x;if(De($)){const M=$,I=U(M.ease,k),L=I.ease&&I,q=M.to,K=M.from;if(T.duration=(L?L.settlingDuration:Ne(U(M.duration,w),f,c,s,null,null))*l,T.delay=Ne(U(M.delay,A),f,c,s,null,null)*l,T.composite=U(M.composition,O),T.easing=Kn(I),x=eo(f,P,K,q,c,s),H?(E[`--${H}`]=x,d[H]=x):E[P]=eo(f,P,K,q,c,s),qn(this,f,P,E,T),!D(K))if(!H)v[P]=E[P][0];else{const G=`--${H}`;v.setProperty(G,E[G][0])}}else x=He($)?$.map(M=>Ss(P,M,f,c,s)):Ss(P,$,f,c,s),H?(E[`--${H}`]=x,d[H]=x):E[P]=x,qn(this,f,P,E,T)}if(g){let P="";for(let E in d)P+=`${nn[E]}var(--${E})) `;v.transform=P}}),i&&this.autoplay.link(this)}forEach(e){try{const t=Be(e)?s=>s[e]():e;this.animations.forEach(t)}catch{}return 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=z.timeScale;return this.completed?this.duration:e?+e.currentTime*(t===1?1:t):0}set currentTime(e){const t=e*(z.timeScale===1?1:Ye);this.forEach(s=>{!this.persist&&t>=this.duration&&s.play(),s.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.muteCallbacks=!0,this.commitStyles().forEach("cancel"),this.animations.length=0,requestAnimationFrame(()=>{this.targets.forEach(e=>{e.style.transform==="none"&&e.style.removeProperty("transform")})}),this}revert(){return this.cancel().targets.forEach((e,t)=>{const s=e.style,r=this._inlineStyles[t];for(let i in r){const o=r[i];D(o)||o===""?s.removeProperty(Hs(i)):e.style[i]=o}e.getAttribute("style")===""&&e.removeAttribute("style")}),this}then(e=oe){const t=this.then,s=()=>{this.then=null,e(this),this.then=t,this._resolve=oe};return new Promise(r=>(this._resolve=()=>r(s()),this.completed&&this._resolve(),this))}},so={animate:(e,t)=>new to(e,t),convertEase:ar},zc=0,Uc=0,lr=(e,t)=>!e||!t?!1:e===t||e.contains(t),is=e=>{if(!e)return null;const t=e.style,s=t.transition||"";return t.setProperty("transition","none","important"),s},cr=(e,t)=>{if(!e)return;const s=e.style;t?s.transition=t:s.removeProperty("transition")},Wc=e=>{const t=e.layout.transitionMuteStore,s=e.$el,r=e.$measure;s&&!t.has(s)&&t.set(s,is(s)),r&&!t.has(r)&&t.set(r,is(r))},ur=e=>{e.forEach((t,s)=>cr(s,t)),e.clear()},Xc={display:"none",visibility:"hidden",opacity:"0",transform:"none",position:"static"},Yc=e=>{if(!e)return;const t=e.parentNode;t&&(t._head===e&&(t._head=e._next),t._tail===e&&(t._tail=e._prev),e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e._prev=null,e._next=null,e.parentNode=null)},ro=(e,t,s,r)=>{let i=e.dataset.layoutId;i||(i=e.dataset.layoutId=`node-${Uc++}`);const o=r||{};return o.$el=e,o.$measure=e,o.id=i,o.index=0,o.targets=null,o.delay=0,o.duration=0,o.ease=null,o.state=s,o.layout=s.layout,o.parentNode=t||null,o.isTarget=!1,o.isEntering=!1,o.isLeaving=!1,o.isInlined=!1,o.hasTransform=!1,o.inlineStyles=[],o.inlineTransforms=null,o.inlineTransition=null,o.branchAdded=!1,o.branchRemoved=!1,o.branchNotRendered=!1,o.sizeChanged=!1,o.hasVisibilitySwap=!1,o.hasDisplayNone=!1,o.hasVisibilityHidden=!1,o.measuredInlineTransform=null,o.measuredInlineTransition=null,o.measuredDisplay=null,o.measuredVisibility=null,o.measuredPosition=null,o.measuredHasDisplayNone=!1,o.measuredHasVisibilityHidden=!1,o.measuredIsVisible=!1,o.measuredIsRemoved=!1,o.measuredIsInsideRoot=!1,o.properties={transform:"none",x:0,y:0,left:0,top:0,clientLeft:0,clientTop:0,width:0,height:0},o.layout.properties.forEach(n=>o.properties[n]=0),o._head=null,o._tail=null,o._prev=null,o._next=null,o},io=(e,t,s,r)=>{const i=e.$el,o=e.layout.root,n=o===i,a=e.properties,h=e.state.rootNode,u=e.parentNode,p=s.transform,l=i.style.transform,f=u?u.measuredIsRemoved:!1,c=s.position;n&&(e.layout.absoluteCoords=c==="fixed"||c==="absolute"),e.$measure=t,e.inlineTransforms=l,e.hasTransform=p&&p!=="none",e.measuredIsInsideRoot=lr(o,t),e.measuredInlineTransform=null,e.measuredDisplay=s.display,e.measuredVisibility=s.visibility,e.measuredPosition=c,e.measuredHasDisplayNone=s.display==="none",e.measuredHasVisibilityHidden=s.visibility==="hidden",e.measuredIsVisible=!(e.measuredHasDisplayNone||e.measuredHasVisibilityHidden),e.measuredIsRemoved=e.measuredHasDisplayNone||e.measuredHasVisibilityHidden||f;let d=!1,g=i.previousSibling;for(;g&&(g.nodeType===Node.COMMENT_NODE||g.nodeType===Node.TEXT_NODE&&!g.textContent.trim());)g=g.previousSibling;if(g&&g.nodeType===Node.TEXT_NODE)d=!0;else{for(g=i.nextSibling;g&&(g.nodeType===Node.COMMENT_NODE||g.nodeType===Node.TEXT_NODE&&!g.textContent.trim());)g=g.nextSibling;d=g!==null&&g.nodeType===Node.TEXT_NODE}if(e.isInlined=d,e.hasTransform&&!r){const k=e.layout.transitionMuteStore;k.get(i)||(e.inlineTransition=is(i)),t===i?i.style.transform="none":(k.get(t)||(e.measuredInlineTransition=is(t)),e.measuredInlineTransform=t.style.transform,t.style.transform="none")}let v=0,_=0,S=0,y=0;if(!r){const k=t.getBoundingClientRect();v=k.left,_=k.top,S=k.width,y=k.height}for(let k in a){const w=k==="transform"?p:s[k]||s.getPropertyValue&&s.getPropertyValue(k);D(w)||(a[k]=w)}a.left=v,a.top=_,a.clientLeft=r?0:t.clientLeft,a.clientTop=r?0:t.clientTop;let m,b;if(n)e.layout.absoluteCoords?(m=v,b=_):(m=0,b=0);else{const k=u||h,w=k.properties.left,A=k.properties.top,O=k.properties.clientLeft,P=k.properties.clientTop;if(e.layout.absoluteCoords)m=v-w-O,b=_-A-P;else if(k===h){const E=h.properties.left,T=h.properties.top,$=h.properties.clientLeft,H=h.properties.clientTop;m=v-E-$,b=_-T-H}else m=v-w-O,b=_-A-P}return a.x=m,a.y=b,a.width=S,a.height=y,e},no=(e,t)=>{if(t)for(let s in t)e.properties[s]=t[s]},ks=(e,t)=>{const s=Ne(t.ease,e.$el,e.index,e.targets,null,null),r=Ee(s)?s:t.ease,i=!D(r)&&!D(r.ease);e.ease=i?r.ease:r,e.duration=i?r.settlingDuration:Ne(t.duration,e.$el,e.index,e.targets,null,null),e.delay=Ne(t.delay,e.$el,e.index,e.targets,null,null)},Gc=e=>{const t=e.$el.style,s=e.inlineStyles;s.length=0,e.layout.recordedProperties.forEach(r=>{s.push(r,t[r]||"")})},oo=e=>{const t=e.$el.style,s=e.inlineStyles;for(let r=0,i=s.length;r<i;r+=2){const o=s[r],n=s[r+1];n&&n!==""?t[o]=n:(t[o]="",t.removeProperty(o))}},Zc=e=>{const t=e.inlineTransforms,s=e.$el.style;!e.hasTransform||!t||e.hasTransform&&s.transform==="none"||t&&t==="none"?s.removeProperty("transform"):t&&(s.transform=t);const r=e.$measure;if(e.hasTransform&&r!==e.$el){const i=r.style,o=e.measuredInlineTransform;o&&o!==""?i.transform=o:i.removeProperty("transform")}e.measuredInlineTransform=null,e.inlineTransition!==null&&(cr(e.$el,e.inlineTransition),e.inlineTransition=null),r!==e.$el&&e.measuredInlineTransition!==null&&(cr(r,e.measuredInlineTransition),e.measuredInlineTransition=null)},ao=e=>{(e.measuredIsRemoved||e.hasVisibilitySwap)&&(e.$el.style.removeProperty("display"),e.$el.style.removeProperty("visibility"),e.hasVisibilitySwap&&(e.$measure.style.removeProperty("display"),e.$measure.style.removeProperty("visibility"))),e.layout.pendingRemoval.delete(e.$el)},ii=(e,t,s)=>(t.properties={...e.properties},t.state=s,t.isTarget=e.isTarget,t.hasTransform=e.hasTransform,t.inlineTransforms=e.inlineTransforms,t.measuredIsVisible=e.measuredIsVisible,t.measuredDisplay=e.measuredDisplay,t.measuredIsRemoved=e.measuredIsRemoved,t.measuredHasDisplayNone=e.measuredHasDisplayNone,t.measuredHasVisibilityHidden=e.measuredHasVisibilityHidden,t.hasDisplayNone=e.hasDisplayNone,t.isInlined=e.isInlined,t.hasVisibilityHidden=e.hasVisibilityHidden,t),lo=class{constructor(e){this.layout=e,this.rootNode=null,this.rootNodes=new Set,this.nodes=new Map,this.scrollX=0,this.scrollY=0}revert(){return this.forEachNode(e=>{this.layout.pendingRemoval.delete(e.$el),e.$el.removeAttribute("data-layout-id"),e.$measure.removeAttribute("data-layout-id")}),this.rootNode=null,this.rootNodes.clear(),this.nodes.clear(),this}getNode(e){if(!(!e||!e.dataset))return this.nodes.get(e.dataset.layoutId)}getComputedValue(e,t){const s=this.getNode(e);if(s)return s.properties[t]}forEach(e,t){let s=e,r=0;for(;s;)if(t(s,r++),s._head)s=s._head;else if(s._next)s=s._next;else{for(;s&&!s._next;)s=s.parentNode;s&&(s=s._next)}}forEachRootNode(e){this.forEach(this.rootNode,e)}forEachNode(e){for(const t of this.rootNodes)this.forEach(t,e)}registerElement(e,t){if(!e||e.nodeType!==1)return null;this.layout.transitionMuteStore.has(e)||this.layout.transitionMuteStore.set(e,is(e));const s=[e,t],r=this.layout.root;let i=null;for(;s.length;){const o=s.pop(),n=s.pop();if(!n||n.nodeType!==1||qs(n))continue;const a=o?o.measuredIsRemoved:!1,h=a?Xc:getComputedStyle(n),u=a?!0:h.display==="none",p=a?!0:h.visibility==="hidden",l=!u&&!p,f=n.dataset.layoutId,c=lr(r,n);let d=f?this.nodes.get(f):null;if(d&&d.$el!==n){const v=lr(r,d.$el),_=d.measuredIsVisible,S=!v&&(c||!c&&!_&&l),y=v&&!_&&l;if(S)Yc(d),d=ro(n,o,this,d);else if(y){io(d,n,h,a);let m=n.lastElementChild;for(;m;)s.push(m,d),m=m.previousElementSibling;i||(i=d);continue}else{let m=n.lastElementChild;for(;m;)s.push(m,o),m=m.previousElementSibling;i||(i=d);continue}}else d=ro(n,o,this,d);d.branchAdded=!1,d.branchRemoved=!1,d.branchNotRendered=!1,d.isTarget=!1,d.sizeChanged=!1,d.hasVisibilityHidden=p,d.hasDisplayNone=u,d.hasVisibilitySwap=p&&!d.measuredHasVisibilityHidden||u&&!d.measuredHasDisplayNone,this.nodes.set(d.id,d),d.parentNode=o||null,d._prev=null,d._next=null,o?(this.rootNodes.delete(d),o._head?(o._tail._next=d,d._prev=o._tail,o._tail=d):(o._head=d,o._tail=d)):this.rootNodes.add(d),io(d,d.$el,h,a);let g=n.lastElementChild;for(;g;)s.push(g,d),g=g.previousElementSibling;i||(i=d)}return i}ensureDetachedNode(e,t){if(!e||e===this.layout.root)return null;const s=e.dataset.layoutId,r=s?this.nodes.get(s):null;if(r&&r.$el===e)return r;let i=null,o=e.parentElement;for(;o&&o!==this.layout.root;){if(t.has(o)){i=this.ensureDetachedNode(o,t);break}o=o.parentElement}return this.registerElement(e,i)}record(){const e=this.layout,t=e.children,s=e.root,r=He(t)?t:[t],i=[],o=t==="*"?s:Ie.root,n=[];let a=s.parentElement;for(;a&&a.nodeType===1;){const g=getComputedStyle(a);if(g.transform&&g.transform!=="none"){const v=a.style.transform||"",_=is(a);n.push(a,v,_),a.style.transform="none"}a=a.parentElement}for(let g=0,v=r.length;g<v;g++){const _=r[g];i[g]=Be(_)?o.querySelectorAll(_):_}const h=Lt(i);this.nodes.clear(),this.rootNodes.clear();const u=this.registerElement(s,null);u.isTarget=!0,this.rootNode=u;const p=new Set;let l=0;const f=[];this.nodes.forEach(g=>{f.push(g.$el)}),this.nodes.forEach((g,v)=>{g.index=l++,g.targets=f,g&&g.measuredIsInsideRoot&&p.add(v)});const c=new Set,d=[];for(let g=0,v=h.length;g<v;g++){const _=h[g];if(!(!_||_.nodeType!==1||_===s)){if(!lr(s,_)){const S=_.dataset.layoutId;if(!S||!p.has(S))continue}c.has(_)||(c.add(_),d.push(_))}}for(let g=0,v=d.length;g<v;g++)this.ensureDetachedNode(d[g],c);for(let g=0,v=h.length;g<v;g++){const _=h[g],S=this.getNode(_);if(S){let y=S;for(;y&&!y.isTarget;)y.isTarget=!0,y=y.parentNode}}this.scrollX=window.scrollX,this.scrollY=window.scrollY,this.forEachNode(Zc);for(let g=0,v=n.length;g<v;g+=3){const _=n[g],S=n[g+1],y=n[g+2];S&&S!==""?_.style.transform=S:_.style.removeProperty("transform"),cr(_,y)}return this}};function ns(e){const t={},s={};for(let r in e){const i=e[r],o=r==="ease";r==="duration"||r==="delay"||o?s[r]=i:t[r]=i}return[t,s]}var co=class{constructor(e,t={}){Ie.current&&Ie.current.register(this);const s=ns(t.swapAt),r=ns(t.enterFrom),i=ns(t.leaveTo),o=t.properties;if(t.duration=U(t.duration,350),t.delay=U(t.delay,0),t.ease=U(t.ease,"inOut(3.5)"),this.params=t,this.root=Lt(e)[0],this.id=t.id||zc++,this.children=t.children||"*",this.absoluteCoords=!1,this.swapAtParams=lt(t.swapAt||{opacity:0},{ease:"inOut(1.75)"}),this.enterFromParams=t.enterFrom||{opacity:0},this.leaveToParams=t.leaveTo||{opacity:0},this.properties=new Set(["opacity","fontSize","color","backgroundColor","borderRadius","border","filter","clipPath"]),s[0])for(let n in s[0])this.properties.add(n);if(r[0])for(let n in r[0])this.properties.add(n);if(i[0])for(let n in i[0])this.properties.add(n);if(o)for(let n=0,a=o.length;n<a;n++)this.properties.add(o[n]);this.recordedProperties=new Set(["display","visibility","translate","position","left","top","marginLeft","marginTop","width","height","maxWidth","maxHeight","minWidth","minHeight"]),this.properties.forEach(n=>this.recordedProperties.add(n)),this.pendingRemoval=new WeakSet,this.transitionMuteStore=new Map,this.oldState=new lo(this),this.newState=new lo(this),this.timeline=null,this.transformAnimation=null,this.animating=[],this.swapping=[],this.leaving=[],this.entering=[],this.oldState.record(),ur(this.transitionMuteStore)}revert(){return this.root.classList.remove("is-animated"),this.timeline&&(this.timeline.complete(),this.timeline=null),this.transformAnimation&&(this.transformAnimation.complete(),this.transformAnimation=null),this.animating.length=this.swapping.length=this.leaving.length=this.entering.length=0,this.oldState.revert(),this.newState.revert(),requestAnimationFrame(()=>ur(this.transitionMuteStore)),this}record(){return this.transformAnimation&&(this.transformAnimation.cancel(),this.transformAnimation=null),this.oldState.record(),this.timeline&&(this.timeline.cancel(),this.timeline=null),this.newState.forEachRootNode(oo),this}animate(e={}){const t={ease:U(e.ease,this.params.ease),delay:U(e.delay,this.params.delay),duration:U(e.duration,this.params.duration)},s={id:this.id},r=U(e.onComplete,this.params.onComplete),i=U(e.onPause,this.params.onPause);for(let x in gs)x!=="ease"&&x!=="duration"&&x!=="delay"&&(D(e[x])?D(this.params[x])||(s[x]=this.params[x]):s[x]=e[x]);s.onComplete=()=>{const x=e.autoplay,M=z.editor;if(x&&x.linked||M&&M.showPanel){r&&r(this.timeline);return}this.transformAnimation&&this.transformAnimation.cancel(),g.forEachRootNode(I=>{ao(I),oo(I)});for(let I=0,L=w.length;I<L;I++){const q=w[I];q.style.transform=g.getComputedValue(q,"transform")}this.root.classList.contains("is-animated")&&(this.root.classList.remove("is-animated"),r&&r(this.timeline)),requestAnimationFrame(()=>{this.root.classList.contains("is-animated")||ur(this.transitionMuteStore)})},s.onPause=()=>{const x=e.autoplay;if(x&&x.linked){r&&r(this.timeline),i&&i(this.timeline);return}this.root.classList.contains("is-animated")&&(this.transformAnimation&&this.transformAnimation.cancel(),g.forEachRootNode(ao),this.root.classList.remove("is-animated"),r&&r(this.timeline),i&&i(this.timeline))},s.composition=!1;const o=lt(lt(e.swapAt||{},this.swapAtParams),t),n=lt(lt(e.enterFrom||{},this.enterFromParams),t),a=lt(lt(e.leaveTo||{},this.leaveToParams),t),[h,u]=ns(o),[p,l]=ns(n),[f,c]=ns(a),d=this.oldState,g=this.newState,v=this.animating,_=this.swapping,S=this.entering,y=this.leaving,m=this.pendingRemoval;v.length=_.length=S.length=y.length=0,d.forEachRootNode(Wc),g.record(),g.forEachRootNode(Gc);const b=[],k=[],w=[],A=[],O=g.rootNode,P=O.$el;g.forEachRootNode(x=>{const M=x.$el,I=x.id,L=x.parentNode,q=L?L.branchAdded:!1,K=L?L.branchRemoved:!1,G=L?L.branchNotRendered:!1;let W=d.nodes.get(I);const ee=!W;ee?(W=ii(x,{},d),d.nodes.set(I,W),W.measuredIsRemoved=!0):W.measuredIsRemoved&&!x.measuredIsRemoved&&(ii(x,W,d),W.measuredIsRemoved=!0);const Y=W.parentNode,re=(Y?Y.id:null)!==(L?L.id:null),me=W.$el!==x.$el,pe=W.measuredIsRemoved,le=x.measuredIsRemoved;if(!W.measuredIsRemoved&&!le&&!ee&&(re||me)){const we=W.properties.left,Te=W.properties.top,xe=L||g.rootNode,ve=xe.id?d.nodes.get(xe.id):null,te=ve?ve.properties.left:xe.properties.left,C=ve?ve.properties.top:xe.properties.top,N=ve?ve.properties.clientLeft:xe.properties.clientLeft,B=ve?ve.properties.clientTop:xe.properties.clientTop;W.properties.x=we-te-N,W.properties.y=Te-C-B}x.hasVisibilitySwap&&(x.hasVisibilityHidden&&(x.$el.style.visibility="visible",x.$measure.style.visibility="hidden"),x.hasDisplayNone&&(x.$el.style.display=W.measuredDisplay||x.measuredDisplay||"",x.$measure.style.visibility="hidden"));const J=m.has(M),ce=W.measuredIsVisible,fe=x.measuredIsVisible,ie=!ce&&fe&&!G,ae=!le&&(pe||J)&&!q,ke=le&&!pe&&!K,ye=ke||le&&J&&!K;x.branchAdded=q||ae,x.branchRemoved=K||ye,x.branchNotRendered=G||le,le&&ce&&(x.$el.style.display=W.measuredDisplay,x.$el.style.visibility="visible",ii(W,x,g)),ke?(x.isTarget&&(y.push(M),x.isLeaving=!0),m.add(M)):!le&&J&&m.delete(M),ae&&!G||ie?(no(W,p),x.isTarget&&(S.push(M),x.isEntering=!0)):ye&&!G&&no(x,f),x!==O&&x.isTarget&&!x.isEntering&&!x.isLeaving&&v.push(M),b.push(M)});let E=0,T=0,$=0;g.forEachRootNode(x=>{const M=x.$el,I=x.parentNode,L=d.nodes.get(x.id),q=x.properties,K=L.properties;let G=I!==O&&I;for(;G&&!G.isTarget&&G!==O;)G=G.parentNode;x===O?(x.index=0,x.targets=v,ks(x,t)):x.isEntering?(x.index=G?G.index:E,x.targets=G?v:S,ks(x,l),E++):x.isLeaving?(x.index=G?G.index:T,x.targets=G?v:y,T++,ks(x,c)):x.isTarget?(x.index=$++,x.targets=v,ks(x,t)):(x.index=G?G.index:0,x.targets=v,ks(x,u)),L.index=x.index,L.targets=x.targets;for(let re in q)q[re]=Ne(q[re],M,x.index,x.targets,null,null),K[re]=Ne(K[re],M,L.index,L.targets,null,null);const W=1,ee=Math.abs(q.width-K.width)>W,Y=Math.abs(q.height-K.height)>W;if(x.sizeChanged=ee||Y,x.isTarget&&(!x.measuredIsRemoved&&L.measuredIsVisible||x.measuredIsRemoved&&x.measuredIsVisible)){(q.transform!=="none"||K.transform!=="none")&&(x.hasTransform=!0,w.push(M));for(let re in q)if(re!=="transform"&&q[re]!==K[re]){k.push(M);break}}x.isTarget||(_.push(M),x.sizeChanged&&I&&I.isTarget&&I.sizeChanged&&(h.transform&&(x.hasTransform=!0,w.push(M)),A.push(M)))});const H={delay:x=>g.getNode(x).delay,duration:x=>g.getNode(x).duration,ease:x=>g.getNode(x).ease};if(s.defaults=H,this.timeline=$n(s),!k.length&&!w.length&&!_.length)return ur(this.transitionMuteStore),this.timeline.complete();if(b.length){this.root.classList.add("is-animated");for(let x=0,M=b.length;x<M;x++){const I=b[x],L=I.dataset.layoutId,q=d.nodes.get(L),K=g.nodes.get(L),G=q.properties;K.isInlined||((q.measuredDisplay==="grid"||K.measuredDisplay==="grid")&&I.style.setProperty("display","block","important"),(I!==P||this.absoluteCoords)&&(I.style.position=this.absoluteCoords?"fixed":"absolute",I.style.left="0px",I.style.top="0px",I.style.marginLeft="0px",I.style.marginTop="0px",I.style.translate=`${G.x}px ${G.y}px`),I===P&&K.measuredPosition==="static"&&(I.style.position="relative",I.style.left="0px",I.style.top="0px")),I.style.width=`${G.width}px`,I.style.height=`${G.height}px`,I.style.minWidth="auto",I.style.minHeight="auto",I.style.maxWidth="none",I.style.maxHeight="none"}(d.scrollX!==window.scrollX||d.scrollY!==window.scrollY)&&requestAnimationFrame(()=>window.scrollTo(d.scrollX,d.scrollY));for(let x=0,M=k.length;x<M;x++){const I=k[x],L=I.dataset.layoutId,q=d.nodes.get(L),K=g.nodes.get(L),G=q.properties,W=K.properties;let ee=!1;const Y={composition:"none"};G.width!==W.width&&(Y.width=[G.width,W.width],ee=!0),G.height!==W.height&&(Y.height=[G.height,W.height],ee=!0),!K.hasTransform&&!K.isInlined&&(Y.translate=[`${G.x}px ${G.y}px`,`${W.x}px ${W.y}px`],ee=!0),this.properties.forEach(re=>{const me=G[re],pe=W[re];re!=="transform"&&me!==pe&&(Y[re]=[me,pe],ee=!0)}),ee&&this.timeline.add(I,Y,0)}}if(_.length){for(let x=0,M=_.length;x<M;x++){const I=_[x],L=d.getNode(I),q=L.properties;I.style.width=`${q.width}px`,I.style.height=`${q.height}px`,I.style.minWidth="auto",I.style.minHeight="auto",I.style.maxWidth="none",I.style.maxHeight="none",L.isInlined||(I.style.translate=`${q.x}px ${q.y}px`),this.properties.forEach(K=>{K!=="transform"&&(I.style[K]=`${d.getComputedValue(I,K)}`)})}for(let x=0,M=_.length;x<M;x++){const I=_[x],L=g.getNode(I),q=L.properties;this.timeline.call(()=>{I.style.width=`${q.width}px`,I.style.height=`${q.height}px`,I.style.minWidth="auto",I.style.minHeight="auto",I.style.maxWidth="none",I.style.maxHeight="none",L.isInlined||(I.style.translate=`${q.x}px ${q.y}px`),this.properties.forEach(K=>{K!=="transform"&&(I.style[K]=`${g.getComputedValue(I,K)}`)})},L.delay+L.duration/2)}if(A.length){const x=xt(g.nodes.get(A[0].dataset.layoutId).ease),M=L=>1-x(1-L),I={};if(h)for(let L in h)L!=="transform"&&(I[L]=[{from:q=>d.getComputedValue(q,L),to:h[L]},{from:h[L],to:q=>g.getComputedValue(q,L),ease:M}]);this.timeline.add(A,I,0)}}const V=w.length;if(V){for(let x=0;x<V;x++){const M=w[x],I=g.getNode(M);I.isInlined||(M.style.translate=`${d.getComputedValue(M,"x")}px ${d.getComputedValue(M,"y")}px`),M.style.transform=d.getComputedValue(M,"transform"),A.includes(M)&&(I.ease=Ne(o.ease,M,I.index,I.targets,null,null),I.duration=Ne(o.duration,M,I.index,I.targets,null,null))}this.transformAnimation=so.animate(w,{translate:x=>g.getNode(x).isInlined?"0px 0px":`${g.getComputedValue(x,"x")}px ${g.getComputedValue(x,"y")}px`,transform:x=>{const M=g.getComputedValue(x,"transform");if(!A.includes(x))return M;const I=d.getComputedValue(x,"transform"),L=g.getNode(x);return[I,Ne(h.transform,x,L.index,L.targets,null,null),M]},autoplay:!1,...H}),this.timeline.sync(this.transformAnimation,0)}return this.timeline.init()}update(e,t={}){return this.record(),e(this),this.animate(t)}},Qc=(e,t)=>new co(e,t),ct=kc,hr={},Jc=(e,t=0)=>(...s)=>t?r=>e(...s,r):r=>e(r,...s),uo=e=>(...t)=>{const s=e(...t);return new Proxy(oe,{apply:(r,i,[o])=>s(o),get:(r,i)=>{if(hr[i])return uo((...o)=>{const n=hr[i](...o);return a=>n(s(a))})}})},ut=(e,t,s=0)=>{const r=(...i)=>(i.length<t.length?uo(Jc(t,s)):t)(...i);return hr[e]||(hr[e]=r),r},ho=ut("roundPad",ct.roundPad),po=ut("padStart",ct.padStart),fo=ut("padEnd",ct.padEnd),go=ut("wrap",ct.wrap),mo=ut("mapRange",ct.mapRange),vo=ut("degToRad",ct.degToRad),yo=ut("radToDeg",ct.radToDeg),bo=ut("snap",ct.snap),_o=ut("clamp",ct.clamp),So=ut("round",ct.round),ko=ut("lerp",ct.lerp,1),wo=ut("damp",ct.damp,1),ws=(e=0,t=1,s=0)=>{const r=10**s;return Math.floor((Math.random()*(t-e+1/r)+e)*r)/r},Kc=0,xs=(e,t=0,s=1,r=0)=>{let i=e===void 0?Kc++:e;return(o=t,n=s,a=r)=>{i+=1831565813,i=Math.imul(i^i>>>15,i|1),i^=i+Math.imul(i^i>>>7,i|61);const h=10**a;return Math.floor((((i^i>>>14)>>>0)/4294967296*(n-o+1/h)+o)*h)/h}},xo=e=>e[ws(0,e.length-1)],ni=(e,t=ws)=>{let s=e.length,r,i;for(;s;)i=t(0,--s),r=e[s],e[s]=e[i],e[i]=r;return e},Ts=(e,t={})=>{let s=[],r=0,i,o=null;const n=t.from,a=t.reversed,h=t.ease,u=!D(h),p=u&&!D(h.ease)?h.ease:u?xt(h):null,l=t.grid,f=l===!0,c=t.axis,d=t.total,g=D(n)||n===0||n==="first",v=n==="center",_=n==="last",S=n==="random",y=He(n),m=He(e),b=t.use,k=Vt(m?e[0]:e),w=m?Vt(e[1]):0,A=an.exec((m?e[1]:e)+""),O=t.start||0+(m?k:0),P=t.seed,E=!D(P)&&P!==!1?xs(P===!0?0:P):ws,T=t.jitter,$=!D(T),H=He(T),V=H?T[0]:T||0,x=H?T[1]:T||0;let M=g?0:Fe(n)?n:0;return(I,L,q,K,G)=>{const[W]=Lt(I),ee=D(d)?q.length:d,Y=D(b)?!1:Ee(b)?b(W,L,ee):Wt(W,b),re=Fe(Y)||Be(Y)&&Fe(+Y)?+Y:L,me=re>=0&&re<ee?re:L;if(v&&(M=(ee-1)/2),_&&(M=ee-1),!s.length){if(f){let J=!0,ce=!1,fe=1/0,ie=1/0,ae=1/0,ke=-1/0,ye=-1/0,we=-1/0;const Te=[],xe=[],ve=[];for(let te=0;te<ee;te++){const C=q[te];let N=0,B=0,R=0,X=!1;if(C&&Ee(C.getBoundingClientRect)){const j=C.getBoundingClientRect();N=j.left+j.width/2,B=j.top+j.height/2,X=!0}else{const j=C;j&&Fe(j.x)&&Fe(j.y)&&(N=j.x,B=j.y,Fe(j.z)&&(R=j.z,ce=!0),X=!0)}if(!X){J=!1;break}Te.push(N),xe.push(B),ve.push(R),N<fe&&(fe=N),B<ie&&(ie=B),R<ae&&(ae=R),N>ke&&(ke=N),B>ye&&(ye=B),R>we&&(we=R)}if(J){let te=Te[0],C=xe[0],N=ve[0];y?(te=fe+n[0]*(ke-fe),C=ie+n[1]*(ye-ie),N=ce?ae+(n.length>=3?n[2]:.5)*(we-ae):0):v?(te=(fe+ke)/2,C=(ie+ye)/2,N=(ae+we)/2):_?(te=Te[ee-1],C=xe[ee-1],N=ve[ee-1]):Fe(n)&&(te=Te[n],C=xe[n],N=ve[n]);for(let R=0;R<ee;R++){const X=te-Te[R],j=C-xe[R],se=N-ve[R];let be=ot(X*X+j*j+(ce?se*se:0));c==="x"&&(be=-X),c==="y"&&(be=-j),c==="z"&&(be=-se),s.push(be)}let B=1/0;for(let R=0;R<ee;R++){const X=at(s[R]);X>0&&X<B&&(B=X)}if(B>0&&B<1/0)for(let R=0;R<ee;R++)s[R]=s[R]/B}else for(let te=0;te<ee;te++)s.push(at(M-te))}else for(let J=0;J<ee;J++)if(!l)s.push(at(M-J));else{const ce=l.length,fe=l[0]*l[1];let ie,ae,ke;y?(ie=n[0]*(l[0]-1),ae=n[1]*(l[1]-1),ke=ce===3?(n.length>=3?n[2]:.5)*(l[2]-1):0):v?(ie=(l[0]-1)/2,ae=(l[1]-1)/2,ke=ce===3?(l[2]-1)/2:0):(ie=M%l[0],ae=jt(M/l[0])%l[1],ke=ce===3?jt(M/fe):0);const ye=J%l[0],we=jt(J/l[0])%l[1],Te=ce===3?jt(J/fe):0,xe=ie-ye,ve=ae-we,te=ke-Te;let C=ot(xe*xe+ve*ve+(ce===3?te*te:0));c==="x"&&(C=-xe),c==="y"&&(C=-ve),c==="z"&&(C=-te),s.push(C)}r=s[0];for(let J=1;J<ee;J++)s[J]>r&&(r=s[J]);if(p||a)for(let J=0;J<ee;J++){let ce=s[J];p&&(ce=p(ce/r)*r),a&&(ce=c?-ce:at(r-ce)),s[J]=ce}if($){o=new Array(ee);for(let J=0;J<ee;J++)o[J]=E(-1,1,4)}S&&(s=ni(s,E))}const pe=m?(w-k)/r:k;D(i)&&(i=G?ys(G,D(t.start)?G.iterationDuration:O):O);let le=i+(pe*F(s[me],2)||0);if($){const J=r?s[me]/r:0,ce=V+(x-V)*J;le=le+o[me]*ce}return t.modifier&&(le=t.modifier(le)),A&&(le=`${le}${A[2]}`),le}},jc=Zt({$:()=>Lt,addChild:()=>vt,clamp:()=>_o,cleanInlineStyles:()=>Sn,createSeededRandom:()=>xs,damp:()=>wo,degToRad:()=>vo,forEachChildren:()=>Se,get:()=>It,keepTime:()=>rr,lerp:()=>ko,mapRange:()=>mo,padEnd:()=>fo,padStart:()=>po,radToDeg:()=>yo,random:()=>ws,randomPick:()=>xo,remove:()=>Fn,removeChild:()=>mt,round:()=>So,roundPad:()=>ho,set:()=>Ct,shuffle:()=>ni,snap:()=>bo,stagger:()=>Ts,sync:()=>ti,wrap:()=>go}),To=e=>{const t=rt(e)[0];return!t||!qs(t)?console.warn(`${e} is not a valid SVGGeometryElement`):t},oi=(e,t,s,r,i)=>{const o=s+r,n=i?Math.max(0,Math.min(o,t)):(o%t+t)%t;return e.getPointAtLength(n)},ai=(e,t,s=0)=>r=>{const i=+e.getTotalLength(),o=r[Dr],n=e.getCTM(),a=s===0;return{from:0,to:i,modifier:h=>{const u=h+s*i;if(t==="a"){const p=oi(e,i,u,-1,a),l=oi(e,i,u,1,a);return Vs(l.y-p.y,l.x-p.x)*180/_t}else{const p=oi(e,i,u,0,a);return t==="x"?o||!n?p.x:p.x*n.a+p.y*n.c+n.e:o||!n?p.y:p.x*n.b+p.y*n.d+n.f}}}},Co=(e,t=0)=>{const s=To(e);if(s)return{translateX:ai(s,"x",t),translateY:ai(s,"y",t),rotate:ai(s,"a",t)}},eu=e=>{let t=1;if(e&&e.getCTM){const s=e.getCTM();s&&(t=(ot(s.a*s.a+s.b*s.b)+ot(s.c*s.c+s.d*s.d))/2)}return t},tu=(e,t,s)=>{const r=Ye,i=getComputedStyle(e),o=i.strokeLinecap,n=i.vectorEffect==="non-scaling-stroke"?e:null;let a=o;const h=new Proxy(e,{get(u,p){const l=u[p];return p===rn?u:p==="setAttribute"?(...f)=>{if(f[0]==="draw"){const c=f[1].split(" "),d=+c[0],g=+c[1],v=eu(n),_=d*-r*v,S=g*r*v+_,y=r*v+(d===0&&g===1||d===1&&g===0?0:10*v)-S;if(o!=="butt"){const m=d===g?"butt":o;a!==m&&(u.style.strokeLinecap=`${m}`,a=m)}u.setAttribute("stroke-dashoffset",`${_}`),u.setAttribute("stroke-dasharray",`${S} ${y}`)}return Reflect.apply(l,u,f)}:Ee(l)?(...f)=>Reflect.apply(l,u,f):l}});return e.getAttribute("pathLength")!==`${r}`&&(e.setAttribute("pathLength",`${r}`),h.setAttribute("draw",`${t} ${s}`)),h},Po=(e,t=0,s=0)=>rt(e).map(r=>tu(r,t,s)),Eo=(e,t=.33)=>(s,r,i,o)=>{if(!(s.tagName||"").toLowerCase().match(/^(path|polygon|polyline)$/))throw new Error(`Can't morph a <${s.tagName}> SVG element. Use <path>, <polygon> or <polyline>.`);const n=To(e);if(!n)throw new Error("Can't morph to an invalid target. 'path2' must resolve to an existing <path>, <polygon> or <polyline> SVG element.");if(!(n.tagName||"").toLowerCase().match(/^(path|polygon|polyline)$/))throw new Error(`Can't morph a <${n.tagName}> SVG element. Use <path>, <polygon> or <polyline>.`);const a=s.tagName==="path",h=a?" ":",",u=o?o._value:null;u&&s.setAttribute(a?"d":"points",u);let p="",l="";if(!t)p=s.getAttribute(a?"d":"points"),l=n.getAttribute(a?"d":"points");else{const f=s.getTotalLength(),c=n.getTotalLength(),d=Math.max(Math.ceil(f*t),Math.ceil(c*t));for(let g=0;g<d;g++){const v=g/(d-1),_=s.getPointAtLength(f*v),S=n.getPointAtLength(c*v),y=a?g===0?"M":"L":"";p+=y+F(_.x,3)+h+_.y+" ",l+=y+F(S.x,3)+h+S.y+" "}}return[p,l]},su=Zt({createDrawable:()=>Po,createMotionPath:()=>Co,morphTo:()=>Eo}),pr=typeof Intl<"u"&&Intl.Segmenter,ru=/\{value\}/g,iu=/\{i\}/g,li=/(\s+)/,ci=/^\s+$/,ui="line",Cs="word",Ps="char",Es="data-line",hi=null,pi=null,fr=null,Ao=e=>e.isWordLike||e.segment===" "||Fe(+e.segment),fi=e=>e.setAttribute("aria-hidden","true"),dr=(e,t)=>[...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)],nu={line:"#00D672",word:"#FF4B4B",char:"#5A87FF"},Lo=e=>{if(!e.childElementCount&&!e.textContent.trim()){const t=e.parentElement;e.remove(),t&&Lo(t)}},Ro=(e,t,s)=>{const r=e.getAttribute(Es);if(r!==null&&+r!==t||e.tagName==="BR"){s.add(e);const o=e.previousSibling,n=e.nextSibling;o&&o.nodeType===3&&ci.test(o.textContent)&&s.add(o),n&&n.nodeType===3&&ci.test(n.textContent)&&s.add(n)}let i=e.childElementCount;for(;i--;)Ro(e.children[i],t,s);return s},di=(e,t={})=>{let s="";t||(t={});const r=Be(t.class)?` class="${t.class}"`:"",i=U(t.clone,!1),o=U(t.wrap,!1),n=o?o===!0?"clip":o:i?"clip":!1;if(o&&(s+=`<span${n?` style="overflow:${n};"`:""}>`),s+=`<span${r}${i?' style="position:relative;"':""} data-${e}="{i}">`,i){const a=i==="left"?"-100%":i==="right"?"100%":"0",h=i==="top"?"-100%":i==="bottom"?"100%":"0";s+="<span>{value}</span>",s+=`<span inert style="position:absolute;top:${h};left:${a};white-space:nowrap;">{value}</span>`}else s+="{value}";return s+="</span>",o&&(s+="</span>"),s},gi=(e,t,s,r,i,o,n,a,h)=>{const u=i===ui,p=i===Ps,l=`_${i}_`,f=Ee(e)?e(s):e,c=u?"block":"inline-block";fr.innerHTML=f.replace(ru,`<i class="${l}"></i>`).replace(iu,`${p?h:u?n:a}`);const d=fr.content,g=d.firstElementChild,v=d.querySelector(`[data-${i}]`)||g,_=d.querySelectorAll(`i.${l}`),S=_.length;if(S){g.style.display=c,v.style.display=c,v.setAttribute(Es,`${n}`),u||(v.setAttribute("data-word",`${a}`),p&&v.setAttribute("data-char",`${h}`));let y=S;for(;y--;){const m=_[y],b=m.parentElement;b.style.display=c,u?b.innerHTML=s.innerHTML:b.replaceChild(s.cloneNode(!0),m)}t.push(v),r.appendChild(d)}else console.warn('The expression "{value}" is missing from the provided template.');return o&&(g.style.outline=`1px dotted ${nu[i]}`),g},gr=class{constructor(e,t={}){hi||(hi=pr?new pr([],{granularity:Cs}):{segment:c=>{const d=[],g=c.split(li);for(let v=0,_=g.length;v<_;v++){const S=g[v];d.push({segment:S,isWordLike:!ci.test(S)})}return d}}),pi||(pi=pr?new pr([],{granularity:"grapheme"}):{segment:c=>[...c].map(d=>({segment:d}))}),!fr&&bt&&(fr=Q.createElement("template")),Ie.current&&Ie.current.register(this);const{words:s,chars:r,lines:i,accessible:o,includeSpaces:n,debug:a}=t,h=(e=He(e)?e[0]:e)&&e.nodeType?e:(Gr(e)||[])[0],u=i===!0?{}:i,p=s===!0||D(s)?{}:s,l=r===!0?{}:r;this.debug=U(a,!1),this.includeSpaces=U(n,!1),this.accessible=U(o,!0),this.linesOnly=u&&!p&&!l,this.lineTemplate=De(u)?di(ui,u):u,this.wordTemplate=De(p)||this.linesOnly?di(Cs,p):p,this.charTemplate=De(l)?di(Ps,l):l,this.$target=h,this.html=h&&h.innerHTML,this.lines=[],this.words=[],this.chars=[],this.effects=[],this.effectsCleanups=[],this.cache=null,this.ready=!1,this.width=0,this.resizeTimeout=null;const f=()=>this.html&&(u||p||l)&&this.split();this.resizeObserver=new ResizeObserver(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{const c=h.offsetWidth;c!==this.width&&(this.width=c,f())},150)}),this.lineTemplate&&!this.ready?Q.fonts.ready.then(f):f(),h?this.resizeObserver.observe(h):console.warn("No Text Splitter target found.")}addEffect(e){if(!Ee(e))return console.warn("Effect must return a function."),this;const t=rr(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=>Ee(e)?e(this):e.revert&&e.revert()),this.$target.innerHTML=this.html,this}splitNode(e){const t=this.wordTemplate,s=this.charTemplate,r=this.includeSpaces,i=this.debug,o=e.nodeType;if(o===3){const n=e.nodeValue;if(n.trim()){const a=[],h=this.words,u=this.chars,p=hi.segment(n),l=Q.createDocumentFragment();let f=null;for(const c of p){const d=c.segment,g=Ao(c);if(!f||g&&f&&Ao(f))a.push(d);else{const v=a.length-1,_=a[v];!li.test(_)&&!li.test(d)?a[v]+=d:a.push(d)}f=c}for(let c=0,d=a.length;c<d;c++){const g=a[c];if(g.trim()){const v=a[c+1],_=r&&v&&!v.trim(),S=g,y=s?pi.segment(S):null,m=s?Q.createDocumentFragment():Q.createTextNode(_?g+" ":g);if(s){const b=[...y];for(let k=0,w=b.length;k<w;k++){const A=b[k],O=k===w-1&&_?A.segment+" ":A.segment,P=Q.createTextNode(O);gi(s,u,P,m,Ps,i,-1,h.length,u.length)}}t?gi(t,h,m,l,Cs,i,-1,h.length,u.length):s?l.appendChild(m):l.appendChild(Q.createTextNode(g)),_&&c++}else{if(c&&r)continue;l.appendChild(Q.createTextNode(g))}}e.parentNode.replaceChild(l,e)}}else if(o===1){const n=[...e.childNodes];for(let a=0,h=n.length;a<h;a++)this.splitNode(n[a])}}split(e=!1){const t=this.$target,s=!!this.cache&&!e,r=this.lineTemplate,i=this.wordTemplate,o=this.charTemplate,n=Q.fonts.status!=="loading",a=r&&n;this.ready=!r||n,(a||e)&&this.effectsCleanups.forEach(l=>Ee(l)&&l(this)),s||(e&&(t.innerHTML=this.html,this.words.length=this.chars.length=0),this.splitNode(t),this.cache=t.innerHTML),a&&(s&&(t.innerHTML=this.cache),this.lines.length=0,i&&(this.words=dr(t,Cs))),o&&(a||i)&&(this.chars=dr(t,Ps));const h=this.words.length?this.words:this.chars;let u,p=0;for(let l=0,f=h.length;l<f;l++){const c=h[l],{top:d,height:g}=c.getBoundingClientRect();!D(u)&&d-u>g*.5&&p++,c.setAttribute(Es,`${p}`);const v=c.querySelectorAll(`[${Es}]`);let _=v.length;for(;_--;)v[_].setAttribute(Es,`${p}`);u=d}if(a){const l=Q.createDocumentFragment(),f=new Set,c=[];for(let d=0;d<p+1;d++){const g=t.cloneNode(!0);Ro(g,d,new Set).forEach(v=>{const _=v.parentNode;_&&(v.nodeType===1&&f.add(_),_.removeChild(v))}),c.push(g)}f.forEach(Lo);for(let d=0,g=c.length;d<g;d++)gi(r,this.lines,c[d],l,ui,this.debug,d);t.innerHTML="",t.appendChild(l),i&&(this.words=dr(t,Cs)),o&&(this.chars=dr(t,Ps))}if(this.linesOnly){const l=this.words;let f=l.length;for(;f--;){const c=l[f];c.replaceWith(c.textContent)}l.length=0}if(this.accessible&&(a||!s)){const l=Q.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(fi),this.words.forEach(fi),this.chars.forEach(fi)}return this.width=t.offsetWidth,(a||e)&&this.effects.forEach((l,f)=>this.effectsCleanups[f]=l(this)),this}refresh(){this.split(!0)}},Io=(e,t)=>new gr(e,t),As=(e,t)=>(console.warn("text.split() is deprecated, import splitText() directly, or text.splitText()"),new gr(e,t)),Oo=e=>{let t="";for(let s=0,r=e.length;s<r;s++)if(s+2<r&&e[s+1]==="-"&&e.charCodeAt(s)<e.charCodeAt(s+2)){const i=e.charCodeAt(s),o=e.charCodeAt(s+2);for(let n=i;n<=o;n++)t+=String.fromCharCode(n);s+=2}else t+=e[s];return t},No={lowercase:"a-z",uppercase:"A-Z",numbers:"0-9",symbols:"!%#_|*+=",braille:"⠀-⣿",blocks:"▀-▟",shades:"░-▓"},mi=new WeakMap,Mo=(e={})=>{e||(e={});const t=e.chars,s=xt(e.ease||"linear"),r=e.text,i=e.from,o=e.reversed||!1,n=e.perturbation||0,a=e.cursor,h=a===!0?"_":typeof a=="number"?String.fromCharCode(a):typeof a=="string"?a:"",u=h.length,p=e.seed||0,l=e.override!==void 0?e.override:!0,f=e.revealRate||60,c=1e3*z.timeScale/f,d=e.settleDuration||300*z.timeScale,g=e.settleRate||30,v=e.duration,_=e.revealDelay,S=e.delay,y=e.onChange||oe;return(m,b,k,w)=>{const A=typeof t=="function"?t(m,b,k):t||"a-zA-Z0-9!%#_",O=Oo(No[A]||A),P=O.length-1,E=typeof v=="function"?v(m,b,k):v,T=typeof _=="function"?_(m,b,k):_||0,$=typeof S=="function"?S(m,b,k):S||0,H=p?xs(p):xs();mi.has(m)||mi.set(m,m.textContent);const V=w?w._value:m.textContent,x=r!==void 0?typeof r=="function"?r(m,b,k):r:w?w._value:mi.get(m),M=x===" "||x==="&nbsp;"?" ":x,I=V===" "?0:V.length,L=M.length,q=l===!0?O:typeof l=="string"&&l.length>0?Oo(No[l]||l):null,K=q?q.length-1:0,G=l===" "?" ":null,W=l===""?L:Math.max(I,L),ee=E>0?E:(W-1)*c+d,Y=F((ee+T)/z.timeScale,0)*z.timeScale,re=T>0?F(T/Y,12):0,me=i===void 0||i==="auto"?L<I?"right":"left":i,pe=new Int32Array(W);if(me==="random"){for(let R=0;R<W;R++)pe[R]=R;for(let R=W-1;R>0;R--){const X=H(0,R),j=pe[R];pe[R]=pe[X],pe[X]=j}}else{const R=me==="right"?(l===""||!I?W:I)-1:me==="center"?((l===""||!I?W:I)-1)/2:typeof me=="number"?me:0,X=Math.abs,j=new Array(W);for(let se=0;se<W;se++)j[se]=se;j.sort((se,be)=>X(se-R)-X(be-R));for(let se=0;se<W;se++)pe[j[se]]=se}if(o){const R=W-1;for(let X=0;X<W;X++)pe[X]=R-pe[X]}const le=F(d/ee,12),J=F((1-le)/W,12),ce=u*J,fe=F(1e3*z.timeScale/(g*Y),12),ie=new Float32Array(W),ae=new Float32Array(W),ke=n>0?n*le:0;for(let R=0;R<W;R++){const X=ke>0?(H(0,2e3)-1e3)/1e3*ke:0,j=ke>0?(H(0,2e3)-1e3)/1e3*ke:0;ie[R]=pe[R]*J+X,ae[R]=Math.ceil((ie[R]+le+j)/fe)*fe}if(L<W&&me!=="left"&&me!=="right"&&me!=="random"){let R=0;for(let se=L;se<W;se++)ae[se]>R&&(R=ae[se]);const X=new Array(L);for(let se=0;se<L;se++)X[se]=se;X.sort((se,be)=>pe[se]-pe[be]);const j=(1-R)/L;for(let se=0;se<L;se++){const be=R+se*j;be>ae[X[se]]&&(ae[X[se]]=be)}}const ye=new Array(W);for(let R=0;R<W;R++)ye[R]=O[H(0,P)];const we=q?q===O?ye:new Array(W):null;if(we&&we!==ye)for(let R=0;R<W;R++)we[R]=G||q[H(0,q.length-1)];let Te=V;if(!w){if(l==="")Te="";else if(q){Te="";for(let R=0;R<I;R++)Te+=V[R]===" "?" ":we[R]}}let xe=-1,ve=-1,te="";const C=l!=="",N=!!q,B=u>0;return{from:0,to:1,duration:Y,delay:$,ease:"linear",modifier:R=>{if(R===xe)return te;if(xe=R,$>0&&R<=0)return te=V,V;if(R<=0)return te=Te,Te;if(R>=1)return te=M,M;te="";const X=R/fe|0,j=X!==ve;j&&(ve=X);const se=re>0?(R-re)/(1-re):R,be=se>0?s(se):0;for(let Ae=0;Ae<W;Ae++){const Oe=ie[Ae];if(be>=ae[Ae]){Ae<L&&(te+=M[Ae]);continue}if(be<=0||be<Oe){C&&Ae<I&&(N?V[Ae]===" "?te+=" ":(j&&(we[Ae]=G||q[H(0,K)]),te+=we[Ae]):te+=V[Ae]);continue}Ae<L&&M[Ae]===" "||Ae<I&&V[Ae]===" "?te+=" ":B&&be-Oe<ce?te+=h[u-1-((be-Oe)/J|0)]:(j&&(ye[Ae]=O[H(0,P)]),te+=ye[Ae])}return j&&y(te,be),te}}}},ou=Zt({TextSplitter:()=>gr,scrambleText:()=>Mo,split:()=>As,splitText:()=>Io}),au=Zt({$:()=>Lt,Animatable:()=>Kr,AutoLayout:()=>co,Draggable:()=>Vn,JSAnimation:()=>Tt,Scope:()=>zn,ScrollObserver:()=>Xn,Spring:()=>er,TextSplitter:()=>gr,Timeline:()=>Bn,Timer:()=>st,WAAPIAnimation:()=>to,addChild:()=>vt,animate:()=>vs,clamp:()=>_o,cleanInlineStyles:()=>Sn,createAnimatable:()=>Sc,createDraggable:()=>Ic,createDrawable:()=>Po,createLayout:()=>Qc,createMotionPath:()=>Co,createScope:()=>Oc,createSeededRandom:()=>xs,createSpring:()=>Hn,createTimeline:()=>$n,createTimer:()=>gc,cubicBezier:()=>Gn,damp:()=>wo,degToRad:()=>vo,eases:()=>wt,easings:()=>qc,engine:()=>ze,forEachChildren:()=>Se,get:()=>It,globals:()=>z,irregular:()=>Qn,keepTime:()=>rr,lerp:()=>ko,linear:()=>si,mapRange:()=>mo,morphTo:()=>Eo,onScroll:()=>$c,padEnd:()=>fo,padStart:()=>po,radToDeg:()=>yo,random:()=>ws,randomPick:()=>xo,remove:()=>Fn,removeChild:()=>mt,round:()=>So,roundPad:()=>ho,scrambleText:()=>Mo,scrollContainers:()=>nr,set:()=>Ct,shuffle:()=>ni,snap:()=>bo,split:()=>As,splitText:()=>Io,spring:()=>tr,stagger:()=>Ts,steps:()=>Zn,svg:()=>su,sync:()=>ti,text:()=>ou,utils:()=>jc,waapi:()=>so,wrap:()=>go}),lu=class{registerAnimation(e,t,s={}){this.animations[e]={handler:t,options:s}}isInitiallyHidden(e){return this.animations[e]?.options.initiallyHidden??!1}runAnimation(e,t,s,r,i){const o=this.animations[e];o?o.handler(t,s,r,i):(console.warn(`No animation registered with name: ${e}`),r())}addLinkAnimation(e,t){this.linkAnimations.set(e,t)}removeLinkAnimation(e){this.linkAnimations.delete(e)}runLinkAnimation(e){const t=this.linkAnimations.get(e);t&&t()}constructor(){this.animations={},this.linkAnimations=new Map,this.registerAnimation("typewriter",function(e,t,s,r){const{chars:i}=As(e,{words:!1,chars:!0}),o=t.fadeDuration||100,n=t.interval||100;vs(i,{opacity:[0,1],easing:"linear",duration:o,delay:Ts(n,{start:t.start||0}),loop:r,onComplete:s})},{initiallyHidden:!0}),this.registerAnimation("toast",function(e,t,s,r){const{words:i}=As(e,{words:!0,chars:!1}),o=t.fadeDuration||100,n=t.interval||200;vs(i,{opacity:[0,1],y:[{to:["100%","0%"]}],easing:"linear",duration:o,delay:Ts(n,{start:t.start||0}),loop:r,onComplete:s})},{initiallyHidden:!0}),this.registerAnimation("fadeIn",function(e,t,s,r){const i=t.duration||500;vs(e,{opacity:[0,1],easing:t.easing||"easeOutQuad",duration:i,delay:t.start||0,loop:r,onComplete:s})},{initiallyHidden:!0}),this.registerAnimation("continue",function(e,t,s){e.classList.add("squiffy-continue");const r=t.style||"pulse";let i=null,o=null;r==="wave"?(e.classList.add("squiffy-continue-wave"),o=As(e,{words:!1,chars:!0}).chars,i=vs(o,{opacity:[1,.3,1],easing:"easeInOutSine",duration:1200,delay:Ts(80),loop:!0})):e.classList.add(`squiffy-continue-${r}`);const n=()=>{if(e.classList.remove("squiffy-continue","squiffy-continue-wave",`squiffy-continue-${r}`),e.removeEventListener("click",n),i&&(i.pause(),o))for(const a of o)a.style.opacity="1";s()};e.addEventListener("click",n)})}},cu={animejs:au},Do="input:not([disabled]), textarea:not([disabled]), select:not([disabled])",uu="a.squiffy-link[data-section], a.squiffy-link[data-passage]";function Bo(e){if(!e)return!0;const t=e.querySelectorAll(Do);for(const s of t)if(!s.checkValidity())return!1;return!0}function vi(e){if(!e)return;const t=Bo(e),s=e.querySelectorAll(uu);for(const r of s)t?(r.classList.remove("validation-disabled"),r.removeAttribute("aria-disabled")):(r.classList.add("validation-disabled"),r.setAttribute("aria-disabled","true"))}function mr(e){if(!e)return;const t=e.querySelectorAll(Do);for(const s of t)s.addEventListener("input",()=>vi(e)),s.addEventListener("change",()=>vi(e)),s.addEventListener("invalid",r=>{r.preventDefault(),s.classList.add("squiffy-invalid")}),s.addEventListener("input",()=>{s.checkValidity()&&s.classList.remove("squiffy-invalid")});vi(e)}var hu=async e=>{let t,s,r,i,o,n=0;const a=new Nl,h=[];let u=!1;async function p(C){if(u||C.closest(".squiffy-output-section")!==r||C.classList.contains("disabled")||!Bo(r))return!1;const N=C.getAttribute("data-passage"),B=C.getAttribute("data-section");if(N!==null)return f(C),ae("_turncount",ie("_turncount")+1),await g(C),N&&(o=null,await b(N)),a.emit("linkClick",{linkType:"passage"}),!0;if(B!==null)return await g(C),B&&await _(B),a.emit("linkClick",{linkType:"section"}),!0;const[R,X,j]=ye.handleLink(C);return R?(j?.disableLink&&f(C),A(),a.emit("linkClick",{linkType:X}),!0):!1}async function l(C){const N=C.target;N.classList.contains("squiffy-link")&&await p(N)}function f(C){C.classList.add("disabled"),C.setAttribute("tabindex","-1")}function c(C){C.classList.remove("disabled"),C.removeAttribute("tabindex")}async function d(){O()||await _(t.start)}async function g(C){ve.runLinkAnimation(C),await m();const N=C.getAttribute("data-set");if(N){const B=JSON.parse(N);for(const R of B)v(R)}}function v(C){C=C.replace(/^(\w*\s*):=(.*)$/,(B,R,X)=>R+"="+x.processText(X,!0));const N=/^([\w]*)\s*=\s*(.*)$/.exec(C);if(N){const B=N[1];let R=N[2];R==="true"?ae(B,!0):R==="false"?ae(B,!1):isNaN(R)?(R.startsWith("@")&&(R=ie(R.substring(1))),ae(B,R)):ae(B,parseFloat(R))}else{const B=/^([\w]*)\s*([+\-*/])=\s*(.*)$/.exec(C);if(B){const R=B[1],X=B[2];let j=B[3];j.startsWith("@")&&(j=ie(j.substring(1)));const se=parseFloat(j);let be=ie(R);be===null&&(be=0),X=="+"&&(be+=se),X=="-"&&(be-=se),X=="*"&&(be*=se),X=="/"&&(be/=se),ae(R,be)}else{let R=!0;C.startsWith("not ")&&(C=C.substring(4),R=!1),ae(C,R)}}}async function _(C){const N=G();if(s=t.sections[C],!s)return;ae("_section",C),fe.setSeen(C);const B=t.sections[""];(B?.clear||s.clear)&&H(),E(C);const R=r;if(B&&(await y(B,"[[]]"),ie("_section")!==C)){R.remove();return}if(await y(s,`[[${C}]]`),ie("_section")!==C){R.remove();return}mr(r),ae("_turncount",0),J(),A();const X=G();X!=N&&a.emit("canGoBackChanged",{canGoBack:X})}function S(C,N=null){const B={get:ie,set:ae,ui:{transition:xe,write:x.write,scrollToEnd:x.scrollToEnd},story:{go:_,seen:R=>fe.getSeen(R)},element:ee,import:cu,...N};t.js[C](B,ie,ae)}async function y(C,N){if(C.attributes&&await k(C.attributes),C.jsIndex!==void 0){const B=ie("_section");if(S(C.jsIndex),ie("_section")!==B)return}x.write(C.text||"",N),await m()}async function m(){u=!0,r.classList.add("links-disabled");for(const C of h)await C();h.length=0,u=!1,r.classList.remove("links-disabled")}async function b(C){const N=G();let B=s.passages&&s.passages[C];const R=t.sections[""];if(!B&&R&&R.passages&&(B=R.passages[C]),!B)throw`No passage named ${C} in the current section or master section`;fe.setSeen(C);const X=[],j=[];if(R&&R.passages){const Oe=R.passages[""];Oe&&(X.push(Oe),j.push(()=>y(Oe,"[[]][]")))}const se=s.passages&&s.passages[""];se&&(X.push(se),j.push(()=>y(se,`[[${ie("_section")}]][]`))),X.push(B),j.push(()=>y(B,`[[${ie("_section")}]][${C}]`));const be="@"+ie("_turncount");if(s.passages){if(be in s.passages){const Oe=s.passages[be];X.push(Oe),j.push(()=>y(Oe,`[[${ie("_section")}]][${be}]`))}if("@last"in s.passages&&ie("_turncount")>=(s.passageCount||0)){const Oe=s.passages["@last"];X.push(Oe),j.push(()=>y(Oe,`[[${ie("_section")}]][${be}]`))}}X.some(Oe=>Oe.clear)&&(H(),T()),i=document.createElement("div"),i.classList.add("squiffy-output-passage"),i.setAttribute("data-passage",`${C}`),r.appendChild(i);for(const Oe of j)await Oe();mr(r),J(),A();const Ae=G();Ae!=N&&a.emit("canGoBackChanged",{canGoBack:Ae})}async function k(C){for(const N of C)v(N)}function w(){fe.reset(),re.scroll==="element"||re.scroll==="none"?(Y.innerHTML="",d()):location.reload()}function A(){ae("_output",Y.innerHTML)}function O(){const C=()=>{t.uiJsIndex!==void 0&&S(t.uiJsIndex,{registerAnimation:ve.registerAnimation.bind(ve),registerHelper:ke.handlebars.registerHelper.bind(ke.handlebars),SafeString:ke.handlebars.SafeString})};fe.load();const N=ie("_output");return N?(Y.innerHTML=N,I(),L(),o=Y.querySelector(".squiffy-output-block:last-child"),s=t.sections[ie("_section")],C(),te.onLoad(),mr(r),!0):(C(),!1)}function P(){o=document.createElement("div"),o.classList.add("squiffy-output-block"),(i||r)?.appendChild(o)}function E(C){r&&(r.querySelectorAll("input, textarea, select").forEach(N=>{const B=N,R=B.getAttribute("data-attribute")||B.id;R&&ae(R,B.value),B.disabled||(B.disabled=!0,B.setAttribute("data-squiffy-disabled",""))}),r.querySelectorAll("[contenteditable]").forEach(N=>{const B=N.getAttribute("data-attribute")||N.id;B&&ae(B,N.innerHTML),N.getAttribute("contenteditable")!=="false"&&(N.setAttribute("contenteditable","false"),N.setAttribute("data-squiffy-disabled",""))})),i=null,T(C),P()}function T(C){r=document.createElement("div"),r.classList.add("squiffy-output-section"),r.setAttribute("data-section",C??ie("_section")),C||r.setAttribute("data-clear","true"),Y.appendChild(r)}function $(){return Y.querySelector(".squiffy-clear-stack")}function H(){let C=$();C||(C=document.createElement("div"),C.classList.add("squiffy-clear-stack"),C.style.display="none",Y.prepend(C));const N=document.createElement("div");C.appendChild(N);for(const B of[...Y.children])B!==C&&N.appendChild(B)}function V(){const C=$();if(!C)return;for(const B of[...Y.children])B!==C&&B.remove();const N=C.children[C.children.length-1];for(const B of[...N.children])Y.appendChild(B);N.remove()}const x={write:(C,N)=>{n=Y.scrollHeight;const B=x.processText(C,!1).trim();o||P();const R=document.createElement("div");N&&R.setAttribute("data-source",N),R.innerHTML=B,te.onWrite(R),o.appendChild(R),mr(r),x.scrollToEnd()},clearScreen:()=>{H(),T()},scrollToEnd:()=>{if(re.scroll!=="none")if(re.scroll==="element")Y.lastElementChild?.scrollIntoView({block:"end",inline:"nearest",behavior:"smooth"});else{let C=n;const N=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(C>N){const B=document.documentElement.scrollHeight-window.innerHeight;C>B&&(C=B),window.scrollTo({top:C,behavior:"smooth"})}}},processText:(C,N)=>ke.process(C,N)};function M(C){if(C.start!=t.start){t=C,fe.reset(),Y.innerHTML="",_(t.start);return}const N=t;t=C,Dl(N,C,Y,(R,X)=>{const j=s;s=X;try{return x.processText(R,!1)}finally{s=j}},f,R=>k(R)),I(),L()}function I(){const C=Y.querySelectorAll(".squiffy-output-section:last-child");r=C[C.length-1];const N=r.getAttribute("data-section");s=t.sections[N]}function L(){i=r.querySelector(".squiffy-output-passage:last-child")}function q(){const C=$(),N=Y.querySelectorAll(".squiffy-output-section").length+Y.querySelectorAll(".squiffy-output-passage").length;return C?N+C.children.length:N}function K(C){C.querySelectorAll("[data-squiffy-disabled]").forEach(N=>{N.hasAttribute("contenteditable")?N.setAttribute("contenteditable","true"):N.disabled=!1,N.removeAttribute("data-squiffy-disabled")})}function G(){return q()>1}function W(){if(u||!G())return;const C=$();if(i){const N=i.getAttribute("data-passage");ce(i.getAttribute("data-undo")),i.remove();let B=!1,R=!1;for(const X of Y.children)if(X!==C){if(X.getAttribute("data-clear")=="true"&&X.children.length==0){B=!0;continue}R=!0;break}B&&!R&&(V(),I());for(const X of r.querySelectorAll("a.squiffy-link[data-passage]"))X.getAttribute("data-passage")==N&&c(X);L()}else{ce(r.getAttribute("data-undo")),r.remove();let N=!1;for(const B of[...Y.children])if(B!==C){N=!0;break}N||V(),I(),L(),K(r)}G()||a.emit("canGoBackChanged",{canGoBack:!1})}const ee=e.element,Y=document.createElement("div");ee.appendChild(Y),t=e.story;const re={scroll:e.scroll||"body",persist:e.persist===void 0?!0:e.persist,onSet:e.onSet||(()=>{})};let me="";re.persist&&(e.storyId!==void 0?me=e.storyId:window.location.protocol==="file:"?me=t.id||"":me=window.location.pathname,me||(console.warn("Persist is set to true in Squiffy runtime options, but no storage key could be determined. Persist will be disabled."),re.persist=!1)),re.scroll==="element"&&(Y.style.overflowY="auto"),Y.addEventListener("click",l),Y.addEventListener("keypress",async function(C){C.key==="Enter"&&await l(C)});let pe={};const le=function(C,N){C!="_output"&&(C in pe||(pe[C]=N))},J=function(){(i??r).setAttribute("data-undo",JSON.stringify(pe)),pe={}},ce=function(C){if(!C)return;const N=JSON.parse(C);if(N)for(const B of Object.keys(N))fe.setInternal(B,N[B],!1)},fe=new Ml(re.persist,me,re.onSet,a,le),ie=fe.get.bind(fe),ae=fe.set.bind(fe),ke=new Ol(()=>t,fe,()=>s),ye=new zl,we=C=>C in t.sections&&t.sections[C].text||null,Te=C=>s.passages&&C in s.passages?s.passages[C].text||null:"passages"in t.sections[""]&&t.sections[""].passages&&C in t.sections[""].passages&&t.sections[""].passages[C].text||null,xe=C=>{h.push(C)},ve=new lu,te=new Bl(Y,ke,fe,ye,we,Te,x.processText,xe,ve,a);return te.add(fs.ReplaceLabel()),te.add(fs.RotateSequencePlugin()),te.add(fs.RandomPlugin()),te.add(fs.LivePlugin()),te.add(fs.AnimatePlugin()),{begin:d,restart:w,get:ie,set:ae,clickLink:p,update:M,goBack:W,on:(C,N)=>a.on(C,N),off:(C,N)=>a.off(C,N),once:(C,N)=>a.once(C,N)}};return yr.init=hu,yr})({});
131
131
 
132
132
  //# sourceMappingURL=squiffy.runtime.global.js.map