Dies ist eine alte Version des Dokuments!
Twine
file:/C:/Users/pc/Downloads/Forschungskreislauf(1).html <!DOCTYPE html> <html> <head> <meta charset=„utf-8“> <meta content=„width=device-width, initial-scale=1“ name=„viewport“> <title>Forschungskreislauf 1</title> <style title=„Twine CSS“>@keyframes appear{0%{opacity:0}to{opacity:1}}@keyframes fade-in-out{0%,to{opacity:0}50%{opacity:1}}@keyframes rumble{25%{top:-0.1em}75%{top:.1em}0%,to{top:0px}}@keyframes shudder{25%{left:.1em}75%{left:-0.1em}0%,to{left:0px}}@keyframes buoy{25%{top:.25em}75%{top:-0.25em}0%,to{top:0px}}@keyframes sway{25%{left:.25em}75%{left:-0.25em}0%,to{left:0px}}@keyframes pulse{0%{transform:scale(0, 0)}20%{transform:scale(1.2, 1.2)}40%{transform:scale(0.9, 0.9)}60%{transform:scale(1.05, 1.05)}80%{transform:scale(0.925, 0.925)}to{transform:scale(1, 1)}}@keyframes zoom-in{0%{transform:scale(0, 0)}to{transform:scale(1, 1)}}@keyframes shudder-in{0%,to{transform:translateX(0em)}5%,25%,45%{transform:translateX(-1em)}15%,35%,55%{transform:translateX(1em)}65%{transform:translateX(-0.6em)}75%{transform:translateX(0.6em)}85%{transform:translateX(-0.2em)}95%{transform:translateX(0.2em)}}@keyframes rumble-in{0%,to{transform:translateY(0em)}5%,25%,45%{transform:translateY(-1em)}15%,35%,55%{transform:translateY(1em)}65%{transform:translateY(-0.6em)}75%{transform:translateY(0.6em)}85%{transform:translateY(-0.2em)}95%{transform:translateY(0.2em)}}@keyframes fidget{0%,8.1%,82.1%,31.1%,38.1%,44.1%,40.1%,47.1%,74.1%,16.1%,27.1%,72.1%,24.1%,95.1%,6.1%,36.1%,20.1%,4.1%,91.1%,14.1%,87.1%,to{left:0px;top:0px}8%,82%,31%,38%,44%{left:-1px}40%,47%,74%,16%,27%{left:1px}72%,24%,95%,6%,36%{top:-1px}20%,4%,91%,14%,87%{top:1px}}@keyframes slide-right{0%{transform:translateX(-100vw)}}@keyframes slide-left{0%{transform:translateX(100vw)}}@keyframes slide-up{0%{transform:translateY(100vh)}}@keyframes slide-down{0%{transform:translateY(-100vh)}}@keyframes fade-right{0%{opacity:0;transform:translateX(-1em)}to{opacity:1}}@keyframes fade-left{0%{opacity:0;transform:translateX(1em)}to{opacity:1}}@keyframes fade-up{0%{opacity:0;transform:translateY(1em)}to{opacity:1}}@keyframes fade-down{0%{opacity:0;transform:translateY(-1em)}to{opacity:1}}@keyframes flicker{0%,29%,31%,63%,65%,77%,79%,86%,88%,91%,93%{opacity:0}30%{opacity:.2}64%{opacity:.4}78%{opacity:.6}87%{opacity:.8}92%,to{opacity:1}}@keyframes blur{0%{filter:blur(2rem);opacity:0}25%{opacity:1}to{filter:blur(0rem);opacity:1}}.dom-debug-mode tw-story,.dom-debug-mode tw-passage,.dom-debug-mode tw-sidebar,.dom-debug-mode tw-include,.dom-debug-mode tw-hook,.dom-debug-mode tw-expression,.dom-debug-mode tw-link,.dom-debug-mode tw-dialog,.dom-debug-mode tw-columns,.dom-debug-mode tw-column,.dom-debug-mode tw-align{outline:1px solid #f5a3da;min-height:32px;display:block !important}.dom-debug-mode tw-story::before,.dom-debug-mode tw-passage::before,.dom-debug-mode tw-sidebar::before,.dom-debug-mode tw-include::before,.dom-debug-mode tw-hook::before,.dom-debug-mode tw-expression::before,.dom-debug-mode tw-link::before,.dom-debug-mode tw-dialog::before,.dom-debug-mode tw-columns::before,.dom-debug-mode tw-column::before,.dom-debug-mode tw-align::before{position:absolute;top:0;left:0;height:16px;background-color:#f5a3da;color:#000;font-size:16px;font-weight:normal;font-style:normal;font-family:monospace;display:inline-block;line-height:100%;white-space:pre;z-index:999997}.dom-debug-mode tw-story:hover,.dom-debug-mode tw-passage:hover,.dom-debug-mode tw-sidebar:hover,.dom-debug-mode tw-include:hover,.dom-debug-mode tw-hook:hover,.dom-debug-mode tw-expression:hover,.dom-debug-mode tw-link:hover,.dom-debug-mode tw-dialog:hover,.dom-debug-mode tw-columns:hover,.dom-debug-mode tw-column:hover,.dom-debug-mode tw-align:hover{outline:1px solid #fc9}.dom-debug-mode tw-story:hover::before,.dom-debug-mode tw-passage:hover::before,.dom-debug-mode tw-sidebar:hover::before,.dom-debug-mode tw-include:hover::before,.dom-debug-mode tw-hook:hover::before,.dom-debug-mode tw-expression:hover::before,.dom-debug-mode tw-link:hover::before,.dom-debug-mode tw-dialog:hover::before,.dom-debug-mode tw-columns:hover::before,.dom-debug-mode tw-column:hover::before,.dom-debug-mode tw-align:hover::before{background-color:#fc9;transition:background-color 1s}.dom-debug-mode tw-passage,.dom-debug-mode tw-include,.dom-debug-mode tw-hook,.dom-debug-mode tw-expression,.dom-debug-mode tw-link,.dom-debug-mode tw-dialog,.dom-debug-mode tw-columns,.dom-debug-mode tw-column,.dom-debug-mode tw-align{padding:1em;margin:0}.dom-debug-mode tw-story::before{content:'<tw-story tags=„' attr(tags) '“>'}.dom-debug-mode tw-passage::before{top:-16px;content:'<tw-passage tags=„' attr(tags) '“>'}.dom-debug-mode tw-sidebar::before{top:-16px;content:„<tw-sidebar>“}.dom-debug-mode tw-hook::before{content:'<tw-hook name=„' attr(name) '“>'}.dom-debug-mode tw-expression::before{content:'<tw-expression name=„' attr(name) '“>'}.dom-debug-mode tw-link::before{content:'<tw-link name=„' attr(name) '“>'}.dom-debug-mode tw-dialog::before{content:„<tw-dialog>“}.dom-debug-mode tw-columns::before{content:„<tw-columns>“}.dom-debug-mode tw-column::before{content:„<tw-column>“}.dom-debug-mode tw-align::before{content:„<tw-align>“}.dom-debug-mode tw-include::before{content:'<tw-include type=„' attr(type) '“ name=„' attr(name) '“>'}.debug-mode tw-open-button[replay]{display:inline}.debug-mode tw-expression{display:inline-block !important}.debug-mode tw-expression[type=variable]::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„$“ attr(name)}.debug-mode tw-expression[type=tempVariable]::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„_“ attr(name)}.debug-mode tw-expression[return=boolean]{background-color:rgba(179,179,179,.2)}.debug-mode tw-expression[return=array]{background-color:rgba(255,102,102,.2)}.debug-mode tw-expression[return=dataset]{background-color:rgba(255,128,0,.2)}.debug-mode tw-expression[return=number]{background-color:rgba(255,179,102,.2)}.debug-mode tw-expression[return=datamap]{background-color:rgba(255,255,102,.2)}.debug-mode tw-expression[return=changer]{background-color:rgba(179,255,102,.2)}.debug-mode tw-expression[return=lambda]{background-color:rgba(102,255,102,.2)}.debug-mode tw-expression[return=hookname]{background-color:rgba(102,255,204,.2)}.debug-mode tw-expression[return=string]{background-color:rgba(102,255,255,.2)}.debug-mode tw-expression[return=datatype]{background-color:rgba(102,153,255,.2)}.debug-mode tw-expression[return=gradient],.debug-mode tw-expression[return=colour]{background-color:rgba(204,102,255,.2)}.debug-mode tw-expression[return=instant],.debug-mode tw-expression[return=macro]{background-color:rgba(240,117,199,.2)}.debug-mode tw-expression[return=command]{background-color:rgba(153,153,255,.2)}.debug-mode tw-expression.false{background-color:rgba(255,0,0,.2) !important}.debug-mode tw-expression[type=macro]::before{content:„(“ attr(name) „:)“;padding:0 .5rem;font-size:1rem;vertical-align:middle;line-height:normal;background-color:inherit;border:1px solid rgba(255,255,255,.5)}.debug-mode tw-expression[title]:not([title=„“]){cursor:help}.debug-mode tw-hook{background-color:rgba(0,85,255,.1) !important}.debug-mode tw-hook::before{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„[“}.debug-mode tw-hook::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„]“}.debug-mode tw-hook[name]::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„]<“ attr(name) „|“}.debug-mode tw-pseudo-hook{background-color:rgba(255,170,0,.1) !important}.debug-mode tw-collapsed::before{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„{“}.debug-mode tw-collapsed::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„}“}.debug-mode tw-verbatim::before,.debug-mode tw-verbatim::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:„`“}.debug-mode tw-align[style*=„text-align: center“]{background:linear-gradient(to right, hsla(14deg, 100%, 87%, 0) 0%, hsla(14deg, 100%, 87%, 0.25) 50%, hsla(14deg, 100%, 87%, 0) 100%)}.debug-mode tw-align[style*=„text-align: left“]{background:linear-gradient(to right, hsla(14deg, 100%, 87%, 0.25) 0%, hsla(14deg, 100%, 87%, 0) 100%)}.debug-mode tw-align[style*=„text-align: right“]{background:linear-gradient(to right, hsla(14deg, 100%, 87%, 0) 0%, hsla(14deg, 100%, 87%, 0.25) 100%)}.debug-mode tw-column{background-color:rgba(189,228,255,.2)}.debug-mode tw-enchantment{animation:enchantment .5s infinite;border:1px solid}.debug-mode tw-link::after,.debug-mode tw-broken-link::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:attr(passage-name)}.debug-mode tw-include{background-color:rgba(204,128,51,.1)}.debug-mode tw-include::before{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:attr(type) ' „' attr(name) '“'}tw-eval-replay tw-eval-code,tw-eval-replay tw-eval-explanation{max-height:20vh;overflow:auto;margin:10px auto}tw-eval-replay tw-eval-code{display:block;font-family:monospace;padding-bottom:1ex;border-bottom:2px solid gray}tw-eval-replay tw-eval-explanation{display:block;text-align:center}tw-eval-replay tw-eval-explanation>code{white-space:pre-wrap}tw-eval-replay tw-eval-explanation>code.from-block{width:40%;display:inline-block;text-align:left;max-height:4em;overflow-wrap:anywhere;overflow-y:scroll}tw-eval-replay tw-eval-explanation>code.from-block~.to-desc{width:calc(40% - 2em);margin-left:2em;display:inline-block}tw-eval-replay tw-eval-explanation>code.from-block+span::after{content:„…“}tw-eval-replay tw-eval-explanation>code.from-inline{text-align:right}tw-eval-replay tw-eval-explanation>:nth-child(2){white-space:pre}tw-eval-replay tw-eval-explanation>.to-desc{text-align:left}tw-eval-replay tw-eval-explanation>table{width:100%;margin-top:1em}tw-eval-replay tw-eval-explanation>table td{white-space:pre-wrap !important;word-wrap:anywhere}tw-eval-replay tw-eval-reason{text-align:center;font-size:80%;font-style:italic;display:block}tw-eval-replay tw-eval-it{text-align:center;font-size:80%;display:block}tw-eval-replay tw-dialog-links{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}@keyframes enchantment{0%,to{border-color:#ffb366}50%{border-color:#6fc}}tw-debugger{position:fixed;box-sizing:border-box;bottom:0;right:0;z-index:999999;min-width:10em;min-height:1em;padding:0em .5em .5em 1em;font-size:1.25em;font-family:sans-serif;color:#262626;background-color:#fff;border-left:solid #262626 2px;border-top:solid #262626 2px;border-top-left-radius:.5em;opacity:1}tw-debugger.fade-panel:not(:hover){opacity:.33}tw-debugger.theme-dark{color:#d9d9d9;background-color:#000}tw-debugger.theme-dark{border-color:#d9d9d9 rgba(0,0,0,0) rgba(0,0,0,0) #d9d9d9}tw-debugger select{margin-right:1em;width:12em}tw-debugger button,tw-debugger tw-link{border-radius:3px;border:solid #999 1px;margin:auto 4px;color:#262626;background-color:#fff;cursor:pointer}tw-debugger button.enabled,tw-debugger tw-link.enabled{color:#000;background-color:#d9d9d9;box-shadow:inset #999 3px 5px .5em}tw-debugger.theme-dark button,tw-debugger.theme-dark tw-link{color:#d9d9d9;background-color:#000;border-color:#666}tw-debugger.theme-dark button.enabled,tw-debugger.theme-dark tw-link.enabled{color:#e6e6e6;background-color:#424242;box-shadow:inset #666 3px 5px .5em}tw-debugger button{font-size:1em;overflow-x:hidden;text-overflow:ellipsis;white-space:pre}tw-debugger tw-link{font-size:1.25em;border-radius:16px;border-style:solid;border-width:2px;text-align:center;padding:0px 8px;display:block}tw-debugger tw-link:hover{border-color:#262626;color:#262626}tw-debugger.theme-dark tw-link:hover{border-color:#d9d9d9;color:#d9d9d9}tw-debugger tw-dialog{background-color:#fff;color:#000;font-size:1.25em}tw-debugger.theme-dark tw-dialog{background-color:#000;color:#e6e6e6}tw-debugger .panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;bottom:100%;left:-2px;right:0;padding:1em;overflow-y:scroll;overflow-x:hidden;border:inherit;box-sizing:content-box;background-color:#fff;border-bottom:solid #999 2px;border-top-left-radius:.5em;border-bottom-left-radius:.5em;font-size:.8em}tw-debugger .panel:empty,tw-debugger .panel[hidden]{display:none}tw-debugger.theme-dark .panel{background-color:#000;border-bottom-color:#666}tw-debugger .panel-source .panel-row-buttons{width:2rem}tw-debugger .panel-source .source-tags{width:20%;font-style:italic}tw-debugger .panel-row-source td{font-family:monospace;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:8rem;padding:1rem}tw-debugger .panel-rows{width:100%;overflow-x:scroll}tw-debugger .panel-rows>*{display:table-row}tw-debugger .panel-rows>div:nth-of-type(2n){background-color:#e6e6e6}tw-debugger.theme-dark .panel-rows>div:nth-of-type(2n){background-color:#212121}tw-debugger .panel-row-buttons{text-align:right}tw-debugger .panel-variables .panel-rows:empty::before{content:„~ No variables ~“;font-style:italic;color:#575757;text-align:center}tw-debugger .panel-enchantments .panel-rows:empty::before{content:„~ No enchantments ~“;font-style:italic;color:#575757;text-align:center}tw-debugger .panel-errors .panel-rows:empty::before{content:„~ No errors… for now. ~“;font-style:italic;color:#575757;text-align:center}tw-debugger .panel-errors .panel-rows:empty+.panel-errors-bottom{display:none}tw-debugger.theme-dark .panel-variables .panel-rows:empty::before,tw-debugger.theme-dark .panel-enchantments .panel-rows:empty::before,tw-debugger.theme-dark .panel-errors .panel-rows:empty::before{color:#a8a8a8}tw-debugger .panel-rows:empty+.panel-variables-bottom{display:none}tw-debugger th[data-col]{text-decoration:underline;cursor:pointer}tw-debugger th[data-col][data-order=asc]::after{content:„↓“}tw-debugger th[data-col][data-order=desc]::after{content:„↑“}tw-debugger .panel-storylets:not(.panel-exclusive) .storylet-exclusive,tw-debugger .panel-storylets:not(.panel-urgent) .storylet-urgent{display:none}tw-debugger .storylet-exclusive,tw-debugger .storylet-urgent,tw-debugger .storylet-open{text-align:center}tw-debugger .panel-variables-bottom{padding-top:5px}tw-debugger .enchantment-row{min-height:1.5em}tw-debugger .variable-path{opacity:.4}tw-debugger .temporary-variable-scope,tw-debugger .enchantment-local{font-family:sans-serif;font-weight:normal;opacity:.8;font-size:.75em}tw-debugger .temporary-variable-scope:not(:empty)::before,tw-debugger .enchantment-local:not(:empty)::before{content:„ in “}tw-debugger .variable-name,tw-debugger .enchantment-name{font-family:monospace;font-weight:bold}tw-debugger .variable-type{color:#575757;font-weight:normal;text-overflow:ellipsis;overflow:hidden;max-width:10em}tw-debugger.theme-dark .variable-type{color:#a8a8a8}tw-debugger .error-row{display:table-row;background-color:rgba(230,101,204,.3)}tw-debugger .error-row:nth-of-type(2n){background-color:rgba(237,145,219,.3)}tw-debugger .error-row>*{display:table-cell;padding:.25em .5em}tw-debugger .error-row .error-message[title]:not([title=„“]){cursor:help}tw-debugger .error-row .error-passage{color:#575757}tw-debugger.theme-dark .error-row .error-passage{color:#a8a8a8}tw-debugger .storylet-row{background-color:rgba(193,240,225,.3)}tw-debugger .storylet-row:nth-child(2n){background-color:rgba(152,231,204,.3)}tw-debugger .storylet-row.storylet-closed{font-style:italic;background-color:#fff}tw-debugger .storylet-row.storylet-closed:nth-child(2n){background-color:#e6e6e6}tw-debugger .storylet-row.storylet-closed>:not(.storylet-lambda){opacity:.6}.storylet-error tw-debugger .storylet-row{background-color:rgba(230,101,204,.3)}.storylet-error tw-debugger .storylet-row:nth-child(2n){background-color:rgba(237,145,219,.3)}tw-debugger .storylet-row .storylet-name,tw-debugger .storylet-row .storylet-value{display:inline-block;width:50%}tw-debugger .storylet-row .storylet-lambda{font-family:monospace;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere}tw-debugger.theme-dark .storylet-row.storylet-closed{background-color:#000}tw-debugger.theme-dark .storylet-row.storylet-closed:nth-child(2n){background-color:#212121}tw-debugger .tabs{padding-bottom:.5em}tw-debugger .tab{border-radius:0px 0px .5em .5em;border-top:none}tw-debugger .resizer-h{position:absolute;height:14em;border-left:2px solid #999;border-right:2px solid #999;top:10px;left:4px;width:8px;cursor:ew-resize}tw-debugger.theme-dark .resizer-h{border-color:rgba(0,0,0,0) #666}tw-debugger .resizer-v{position:absolute;height:8px;border-top:2px solid #999;border-bottom:2px solid #999;margin-bottom:4px;top:4px;left:10px;width:95%;cursor:ns-resize;box-sizing:border-box}tw-debugger.theme-dark .resizer-v{border-color:#666 rgba(0,0,0,0)}tw-debugger mark{color:inherit;background-color:rgba(101,230,230,.3) !important}tw-dialog{z-index:999997;border:#fff solid 2px;padding:2em;color:#fff;background-color:#000;display:block}@media(min-width: 576px){tw-dialog{max-width:50vw}}tw-dialog input[type=text]{font-size:inherit;width:100%;border:solid #fff !important}tw-dialog-links{text-align:right;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}tw-backdrop{z-index:999996;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.8);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}tw-backdrop~tw-backdrop{display:none}tw-link,.enchantment-link{cursor:pointer;color:#4169e1;font-weight:bold;text-decoration:none;transition:color .2s ease-in-out}tw-passage [style^=color] tw-link:not(:hover),tw-passage [style*=„ color“] tw-link:not(:hover),tw-passage [style^=color][hover=true] tw-link:hover,tw-passage [style*=„ color“][hover=true] tw-link:hover,tw-passage [style^=color] .enchantment-link:not(:hover),tw-passage [style*=„ color“] .enchantment-link:not(:hover),tw-passage [style^=color][hover=true] .enchantment-link:hover,tw-passage [style*=„ color“][hover=true] .enchantment-link:hover{color:inherit}tw-link:hover,.enchantment-link:hover{color:#00bfff}tw-link:active,.enchantment-link:active{color:#dd4b39}.visited{color:#6941e1}tw-passage [style^=color] .visited:not(:hover),tw-passage [style*=„ color“] .visited:not(:hover),tw-passage [style^=color][hover=true] .visited:hover,tw-passage [style*=„ color“][hover=true] .visited:hover{color:inherit}.visited:hover{color:#e3e}tw-broken-link{color:#933;border-bottom:2px solid #933;cursor:not-allowed}tw-passage [style^=color] tw-broken-link:not(:hover),tw-passage [style*=„ color“] tw-broken-link:not(:hover),tw-passage [style^=color][hover=true] tw-broken-link:hover,tw-passage [style*=„ color“][hover=true] tw-broken-link:hover{color:inherit}tw-link.enchantment-mouseover,.link.enchantment-mouseover,tw-expression.enchantment-mouseover>tw-link{color:inherit;font-weight:inherit;transition:none;cursor:inherit;border-bottom:2px dashed #999}tw-link.enchantment-mouseover:hover,tw-link.enchantment-mouseover:active,.link.enchantment-mouseover:hover,.link.enchantment-mouseover:active,tw-expression.enchantment-mouseover>tw-link:hover,tw-expression.enchantment-mouseover>tw-link:active{color:inherit}tw-link.enchantment-mouseover.enchantment-button,.link.enchantment-mouseover.enchantment-button,tw-expression.enchantment-mouseover>tw-link.enchantment-button{border-style:dashed}tw-link.enchantment-mouseout,.link.enchantment-mouseout,tw-expression.enchantment-mouseout>tw-link{color:inherit;font-weight:inherit;transition:none;cursor:inherit;border:rgba(64,149,191,.6) 1px solid;border-radius:.2em}tw-link.enchantment-mouseout:hover,tw-link.enchantment-mouseout:active,.link.enchantment-mouseout:hover,.link.enchantment-mouseout:active,tw-expression.enchantment-mouseout>tw-link:hover,tw-expression.enchantment-mouseout>tw-link:active{color:inherit}tw-link.enchantment-mouseout:hover,.link.enchantment-mouseout:hover,tw-expression.enchantment-mouseout>tw-link:hover{background-color:rgba(175,197,207,.75);border:rgba(0,0,0,0) 1px solid}tw-link.enchantment-dblclick,.link.enchantment-dblclick,tw-expression.enchantment-dblclick>tw-link{color:inherit;font-weight:inherit;transition:none;cursor:inherit;cursor:pointer;border:2px solid #999;border-radius:0}tw-link.enchantment-dblclick:hover,tw-link.enchantment-dblclick:active,.link.enchantment-dblclick:hover,.link.enchantment-dblclick:active,tw-expression.enchantment-dblclick>tw-link:hover,tw-expression.enchantment-dblclick>tw-link:active{color:inherit}tw-link.enchantment-dblclick:active,.link.enchantment-dblclick:active,tw-expression.enchantment-dblclick>tw-link:active{background-color:#999}tw-link.enchantment-button,.link.enchantment-button,.enchantment-button:not(.link) tw-link,.enchantment-button:not(.link) .link{border-radius:16px;border-style:solid;border-width:2px;text-align:center;padding:0px 8px;display:block}.enchantment-button{display:block}.enchantment-clickblock{cursor:pointer;width:100%;height:100%;display:block}.enchantment-clickblock>:not(tw-enchantment)::after{content:„“;width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;color:rgba(65,105,225,.5);transition:color .2s ease-in-out}.enchantment-clickblock>:not(tw-enchantment):hover::after{color:rgba(0,191,255,.5)}.enchantment-clickblock>:not(tw-enchantment):active::after{color:rgba(222,78,59,.5)}.enchantment-clickblock>:not(tw-enchantment)::after{box-shadow:inset 0 0 0 .5vmax}.enchantment-clickblock>tw-passage::after,.enchantment-clickblock>tw-sidebar::after{box-shadow:0 0 0 .5vmax}.enchantment-mouseoverblock>:not(tw-enchantment)::after{content:„“;width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;border:2px dashed #999}.enchantment-mouseoutblock>:not(tw-enchantment)::after{content:„“;width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;border:rgba(64,149,191,.6) 2px solid}.enchantment-mouseoutblock:hover>:not(tw-enchantment)::after{content:„“;width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;background-color:rgba(175,197,207,.75);border:rgba(0,0,0,0) 2px solid;border-radius:.2em}.enchantment-dblclickblock>:not(tw-enchantment)::after{content:„“;width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;cursor:pointer;border:2px solid #999}tw-dialog-links{padding-top:1.5em}tw-dialog-links tw-link{border-radius:16px;border-style:solid;border-width:2px;text-align:center;padding:0px 8px;display:block;display:inline-block}html{margin:0;height:100%;overflow-x:hidden}*,:before,:after{position:relative;box-sizing:inherit}body{margin:0;height:100%}tw-storydata{display:none}tw-story{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font:100% Georgia,serif;box-sizing:border-box;width:100%;min-height:100%;font-size:1.5em;line-height:1.5em;padding:5% 5%;overflow:hidden;background-color:#000;color:#fff}tw-story [style*=content-box] *{box-sizing:border-box}@media(min-width: 576px){tw-story{padding:5% 20%}}tw-story tw-consecutive-br{display:block;height:1.6ex;visibility:hidden}tw-story select{background-color:rgba(0,0,0,0);font:inherit;border-style:solid;padding:2px}tw-story select:not([disabled]){color:inherit}tw-story textarea{resize:none;background-color:rgba(0,0,0,0);font:inherit;color:inherit;border-style:none;padding:2px}tw-story input[type=text]{background-color:rgba(0,0,0,0);font:inherit;color:inherit;border-style:none}tw-story input[type=checkbox]{transform:scale(1.5);margin:0 .5em .5em .5em;vertical-align:middle}tw-story tw-noscript{animation:appear .8s}tw-passage{display:block}tw-sidebar{text-align:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@media(min-width: 576px){tw-sidebar{left:-5em;width:3em;position:absolute;-ms-flex-direction:column;flex-direction:column}tw-enchantment[style*=width]>tw-sidebar{width:inherit}}tw-icon{display:inline-block;margin:.5em 0;font-size:66px;font-family:„Verdana“,sans-serif}tw-icon[alt]{opacity:.2;cursor:pointer}tw-icon[alt]:hover{opacity:.4}tw-icon[data-label]::after{font-weight:bold;content:attr(data-label);font-size:20px;bottom:-20px;left:-50%;white-space:nowrap}tw-meter{display:block}tw-hook:empty,tw-expression:empty{display:none}tw-error{display:inline-block;border-radius:.2em;padding:.2em;font-size:1rem;cursor:help;white-space:pre-wrap}tw-error.error{background-color:rgba(223,58,190,.6);color:#fff}tw-error.warning{background-color:rgba(223,140,58,.6);color:#fff;display:none}.debug-mode tw-error.warning{display:inline}tw-error-explanation{display:block;font-size:.8rem;line-height:1rem}tw-open-button,tw-folddown{cursor:pointer;line-height:0em;border-radius:4px;border:1px solid rgba(255,255,255,.5);font-size:.8rem;margin:0 .4rem;padding:3px;white-space:pre}tw-folddown::after{content:„▶“}tw-folddown.open::after{content:„▼“}tw-open-button[replay]{display:none}tw-error tw-open-button,tw-eval-replay tw-open-button{display:inline !important}tw-open-button::after{content:attr(label)}tw-notifier{border-radius:.2em;padding:.2em;font-size:1rem;background-color:rgba(223,182,58,.4);display:none}.debug-mode tw-notifier{display:inline}tw-notifier::before{content:attr(message)}tw-colour{border:1px solid #000;display:inline-block;width:1em;height:1em}tw-enchantment:empty{display:none}h1{font-size:3em}h2{font-size:2.25em}h3{font-size:1.75em}h1,h2,h3,h4,h5,h6{line-height:1em;margin:.3em 0 .6em 0}pre{font-size:1rem;line-height:initial}small{font-size:70%}big{font-size:120%}mark{color:rgba(0,0,0,.6);background-color:#ff9}ins{color:rgba(0,0,0,.6);background-color:rgba(255,242,204,.5);border-radius:.5em;box-shadow:0em 0em .2em #ffe699;text-decoration:none}center{text-align:center;margin:0 auto;width:60%}blink{text-decoration:none;animation:fade-in-out 1s steps(1, end) infinite alternate}tw-align{display:block}tw-columns{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}.transition-in{animation:appear 0ms step-start}.transition-out{animation:appear 0ms step-end}[data-t8n^=dissolve].transition-in,[data-t8n=fade].transition-in{animation:appear .8s}[data-t8n^=dissolve].transition-out,[data-t8n=fade].transition-out{animation:appear .8s reverse}[data-t8n^=shudder].transition-in{display:inline-block !important;animation:shudder-in .8s}[data-t8n^=shudder].transition-out{display:inline-block !important;animation:shudder-in .8s reverse}[data-t8n^=rumble].transition-in{display:inline-block !important;animation:rumble-in .8s}[data-t8n^=rumble].transition-out{display:inline-block !important;animation:rumble-in .8s reverse}[data-t8n^=pulse].transition-in{animation:pulse .8s;display:inline-block !important}[data-t8n^=pulse].transition-out{animation:pulse .8s reverse;display:inline-block !important}[data-t8n^=zoom].transition-in{animation:zoom-in .8s;display:inline-block !important}[data-t8n^=zoom].transition-out{animation:zoom-in .8s reverse;display:inline-block !important}[data-t8n^=blur].transition-in{animation:blur .8s;display:inline-block !important}[data-t8n^=blur].transition-out{animation:blur .8s reverse;display:inline-block !important}[data-t8n^=slideleft].transition-in{animation:slide-left .8s;display:inline-block !important}[data-t8n^=slideleft].transition-out{animation:slide-right .8s reverse;display:inline-block !important}[data-t8n^=slideright].transition-in{animation:slide-right .8s;display:inline-block !important}[data-t8n^=slideright].transition-out{animation:slide-left .8s reverse;display:inline-block !important}[data-t8n^=slideup].transition-in{animation:slide-up .8s;display:inline-block !important}[data-t8n^=slideup].transition-out{animation:slide-down .8s reverse;display:inline-block !important}[data-t8n^=slidedown].transition-in{animation:slide-down .8s;display:inline-block !important}[data-t8n^=slidedown].transition-out{animation:slide-up .8s reverse;display:inline-block !important}[data-t8n^=fadeleft].transition-in{animation:fade-left .8s;display:inline-block !important}[data-t8n^=fadeleft].transition-out{animation:fade-right .8s reverse;display:inline-block !important}[data-t8n^=faderight].transition-in{animation:fade-right .8s;display:inline-block !important}[data-t8n^=faderight].transition-out{animation:fade-left .8s reverse;display:inline-block !important}[data-t8n^=fadeup].transition-in{animation:fade-up .8s;display:inline-block !important}[data-t8n^=fadeup].transition-out{animation:fade-down .8s reverse;display:inline-block !important}[data-t8n^=fadedown].transition-in{animation:fade-down .8s;display:inline-block !important}[data-t8n^=fadedown].transition-out{animation:fade-up .8s reverse;display:inline-block !important}[data-t8n^=flicker].transition-in{animation:flicker .8s}[data-t8n^=flicker].transition-out{animation:flicker .8s reverse} </style> </head> <body> <tw-story><noscript><tw-noscript>JavaScript needs to be enabled to play Forschungskreislauf 1.</tw-noscript></noscript></tw-story> <tw-storydata name=„Forschungskreislauf 1“ startnode=„3“ creator=„Twine“ creator-version=„2.5.1“ format=„Harlowe“ format-version=„3.3.3“ ifid=„1bc4d53c-5287-4549-b7ad-2d5347deb5b8“ options=„“ tags=„“ zoom=„1“ hidden><style role=„stylesheet“ id=„twine-user-stylesheet“ type=„text/twine-css“></style><script role=„script“ id=„twine-user-script“ type=„text/twine-javascript“></script><tw-passagedata pid=„1“ name=„Untitled Passage“ tags=„“ position=„425,400“ size=„100,100“>(text-colour:black)[(bg:white)[(align:"=><=")+(box:"=XXXXXXXXXXXXXXXXXX=")[Herzlich Willkommen in unserem Forschungslabor! Hast du dich schon einmal gefragt, wie Wissenschaftler und Wissenschaftlerinnen arbeiten? Wolltest du schon einmal selbst Experimente durchführen? Dann bist du hier an der richtigen Stelle. In einem Labor und beim Experimentieren gibt es viel zu beachten. Bist du bereit für eine Entdeckungsreise rund um das Experimentieren? Hast du das Zeug zu einem Wissenschaftler oder einer Wissenschaftlerin? Teste es hier! Die Entdeckungsreise beginnt]]] </tw-passagedata><tw-passagedata pid=„2“ name=„Die Entdeckungsreise beginnt“ tags=„“ position=„425,525“ size=„100,100“><img src="https://pixabay.com/get/g11f1a79092a5f747899472620ceb706bcb6ebb637e4fc850a5ecd22566908f6997368d63bf1dbcb4bb30253286ec92618581209d46fadd8837d6ea21940bce480cd17ea3e2a102b4d09891f9e66fe850_1920.jpg" width="500" height="300"> Du stehst vor der Labortür. Was machst du? Sicherheit Ich betrete das Labor </tw-passagedata><tw-passagedata pid=„3“ name=„Start“ tags=„“ position=„425,400“ size=„100,100“>(set: $name to (prompt: "Wie lautet dein Name?", "")) (align:"=><=")+(box:"=XXXXXXXX=")[''Herzlich Willkommen $name in unserem Forschungslabor!''] (align:"=><=")+(box:"=XXXXXXXX=")[<img src="https://pixabay.com/get/gfba3bbbe79ee02c4338780310d9272ffcda7ce5ba963c844b725993e24066c3a12a2be7040f05772a9994531b6f92b67db33f530a8f89fc4a95218330df0c865be7e15f07a12ccf9a084e25ec5a50c36_1280.png" width="400" height="200">] (align:"<==>")+(box:"=XXXXXXXX=")[Hast du dich schon einmal gefragt, wie Wissenschaftler und Wissenschaftlerinnen arbeiten? Wolltest du schon einmal selbst Experimente durchführen? Dann bist du hier an der richtigen Stelle. In einem Labor und beim Experimentieren gibt es viel zu beachten. ] (align:"<==>")+(box:"=XXXXXXXX=")[Bist du bereit für eine Entdeckungsreise rund um das Experimentieren? Hast du das Zeug zu einem Wissenschaftler oder einer Wissenschaftlerin? Teste es hier! ] (align:"=><=")+(box:"=XXXXXXXX=")[Die Entdeckungsreise beginnt ] </tw-passagedata><tw-passagedata pid=„4“ name=„Die Entdeckungsreise beginnt“ tags=„“ position=„425,525“ size=„100,100“>(align:"<==>")+(box:"X")[Du sollst heute ein ungefährliches Experiment durchführen, was du von deiner Lehrerin bekommen hast. Dazu dürft ihr in ein richtiges Labor. Du stehst vor der Labortür. Was machst du? ] (align:"=><=")+(box:"X")[<img src="https://cdn.pixabay.com/photo/2015/02/06/10/35/door-handle-625942_1280.jpg"width="600" height="400"> ] (align:"<==>")+(box:"X")Ich ziehe meinen Laborkittel an, nehme eine Schutzbrille mit und achte darauf, dass ich geschlossene Schuhe trage. ->Sicherheit (align:"<==>")+(box:"X")Ich betrete das Labor. Einen Schutzkittel brauche ich nur bei gefährlichen Experimenten.->Gefahr </tw-passagedata><tw-passagedata pid=„5“ name=„Sicherheit“ tags=„“ position=„200,700“ size=„100,100“>(align:"<==>")+(box:"X")[Als du das Labor betrittst, schaust du auf die Uhr. ] (align:"=><=")+(box:"X")gd7e7893a0218560fa5502fc11e8705b5402ce2aeed6cf66e17a7f07346295d82625b2de35ac94ec8a28f103259528e24eba04f9691930be9b8aa096925c1080bec66390f1b62ec6c53e143b2b8be074e_1280.png" width="300" height="300"> (align:"<==>")+(box:"X")[Eure Klasse ist spät dran und du weißt, dass nach eurer Klasse noch eine andere Klasse das Labor benutzen darf. ] (align:"<==>")+(box:"X")[Um Zeit aufzuholen, rennst du so schnell wie möglich zu deinem Arbeitsplatz. -> schnell] (align:"<==>")+(box:"X")[Du läufts langsam zu deinem Arbeitsplatz. -> langsam]</tw-passagedata><tw-passagedata pid=„6“ name=„Gefahr“ tags=„“ position=„650,675“ size=„100,100“>(align:"<==>")+(box:"X")[''Wie du vielleicht weißt, gibt es in einem Labor sehr viele schädliche Stoffe.'' ] (align:"<==>")+(box:"X")[Ich passe auf und betrete das Labor trotzdem. Mein Experiment ist ungefährlich. -> Zwischenraum] (align:"<==>")+(box:"X")Ich ziehe meinen Laborkittel an, nehme eine Schutzbrille mit und achte darauf, dass ich geschlossene Schuhe trage. ->Sicherheit </tw-passagedata><tw-passagedata pid=„7“ name=„ Zwischenraum“ tags=„“ position=„775,875“ size=„100,100“>(align:"<==>")+(box:"X")[In einem Labor gibt es sehr viele gefährliche Stoffe. Sie können z.B. explosiv, ätzend und gesundheitsgefährdend sein. Dies erkennt man an den Gefahrensymbolen:.] =|= [<img src="https://pixabay.com/get/g5804ee312085d4a806e856f89ddbea3439db1f5380ad39b5d154c283c30bc59e74253412d4f8f3006643ac764863fe19e8d877c40e8c1ca79ebd9eec5181f1bf1b50e928e0324c2ce3a68c56d8945259_1280.png" width="200" height="200">] =|= [<img src="https://pixabay.com/get/gaecbee7cb7219f3e88a869a4705d1e5718df062f2502c5ec397c7da718a7c9d78933a11676edbf5413a70c7781afa2382ce4528f90a2b392e47156e83757308ef3f59f5cf6e98e05693353a32533444e_1280.png" width="200" height="200">] =|= [<img src="https://pixabay.com/get/g6bbc0672f2d91f88e41f91e30beb3bf6fcc4df09c6c6ca9c437ceca1669f86ef31b841cbc2cbbd387c9b47a97bb12bfdb23ee5a1cdcce2815d7a644141530f3bc58df700e4000cbe3b5e7a2ef791be89_1280.png" width="200" height="200">] |==| (align:"<==>")+(box:"X")[Auch wenn du aufpasst und einen scheinbar ungefährlichen Versuch durchführst, trägt man in einem richtigen Labor dennoch festes Schuhwerk, einen Laborkittel und eine Schutzbrille. Es besteht immer die Gefahr mit den gefährlichen Stoffen in Kontakt zu kommen.] (align:"<==>")+(box:"X")Ich ziehe meinen Laborkittel an, nehme eine Schutzbrille mit und achte darauf, dass ich geschlossene Schuhe trage. ->Sicherheit </tw-passagedata><tw-passagedata pid=„8“ name=„ schnell“ tags=„“ position=„200,825“ size=„100,100“>(align:"<==>")+(box:"X")[In einem Labor befinden sich nicht nur schädliche Stoffe, sondern auch zerbrechliche Materialien.] (align:"=><=")+(box:"=XXXXXXXX=")[<img src="https://pixabay.com/get/gfba3bbbe79ee02c4338780310d9272ffcda7ce5ba963c844b725993e24066c3a12a2be7040f05772a9994531b6f92b67db33f530a8f89fc4a95218330df0c865be7e15f07a12ccf9a084e25ec5a50c36_1280.png" width="400" height="200">] (align:"<==>")+(box:"X")[Du passt gut auf und rennst trotzdem. ->Rennen] (align:"<==>")+(box:"X")[Du läufst lieber langsam. -> langsam ]</tw-passagedata><tw-passagedata pid=„9“ name=„ langsam“ tags=„“ position=„425,850“ size=„100,100“></tw-passagedata><tw-passagedata pid=„10“ name=„Rennen“ tags=„“ position=„200,950“ size=„100,100“>(align:"<==>")+(box:"X")[Auch wenn du aufpasst, kann immer etwas passieren. So können nicht nur zebrechliche Materialien zu Bruch gehen, sondern du und die anderen können auch in Kontakt mit schädliche Stoffen kommen. Deshalb ist das Rennen in einem Labor nicht erlaubt. ] (align:"<==>")+(box:"X")[Rennen ist nicht erlaubt. Du läufst langsam. -> langsam ]</tw-passagedata></tw-storydata> <script title=„Twine engine code“ data-main=„harlowe“>(function(){„use strict“; var require,define;!function(){var e={},r={};require=function(i){var n=e[i];return n&&(r[i]=n[1].apply(void 0,n[0].map(require)),e[i]=void 0),r[i]},(define=function(r,i,n){if(„function“==typeof r)return r();e[r]=[i,n]}).amd=!0}();/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.35.4 * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ (function(e,t){if(typeof define===„function“&&define.amd){define(t)}else if(typeof exports===„object“){module.exports=t()}else{e.returnExports=t()}})(this,function(){„use strict“;var e=Function.call.bind(Function.apply);var t=Function.call.bind(Function.call);var r=Array.isArray;var n=Object.keys;var o=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var i=function(e){try{e();return false}catch(t){return true}};var a=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var u=o(i);var f=function(){return!i(function(){return Object.defineProperty({},„x“,{get:function(){}})})};var s=!!Object.defineProperty&&f();var c=function foo(){}.name===„foo“;var l=Function.call.bind(Array.prototype.forEach);var p=Function.call.bind(Array.prototype.reduce);var v=Function.call.bind(Array.prototype.filter);var y=Function.call.bind(Array.prototype.some);var h=function(e,t,r,n){if(!n&&t in e){return}if(s){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var b=function(e,t,r){l(n(t),function(n){var o=t[n];h(e,n,o,!!r)})};var g=Function.call.bind(Object.prototype.toString);var d=typeof/abc/===„function“?function IsCallableSlow(e){return typeof e===„function“&&g(e)===„[object Function]“}:function IsCallableFast(e){return typeof e===„function“};var m={getter:function(e,t,r){if(!s){throw new TypeError(„getters require true ES5 support“)}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!s){throw new TypeError(„getters require true ES5 support“)}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function getKey(){return e[t]},set:function setKey®{e[t]=r}})},redefine:function(e,t,r){if(s){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}},defineByDescriptor:function(e,t,r){if(s){Object.defineProperty(e,t,r)}else if(„value“in r){e[t]=r.value}},preserveToString:function(e,t){if(t&&d(t.toString)){h(e,„toString“,t.toString.bind(t),true)}}};var O=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var o=new r;if(typeof t!==„undefined“){n(t).forEach(function(e){m.defineByDescriptor(o,e,t[e])})}return o};var w=function(e,t){if(!Object.setPrototypeOf){return false}return a(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=O(e.prototype,{constructor:{value:r}});return t®})};var j=function(){if(typeof self!==„undefined“){return self}if(typeof window!==„undefined“){return window}if(typeof global!==„undefined“){return global}throw new Error(„unable to locate global object“)};var S=j();var T=S.isFinite;var I=Function.call.bind(String.prototype.indexOf);var E=Function.apply.bind(Array.prototype.indexOf);var P=Function.call.bind(Array.prototype.concat);var C=Function.call.bind(String.prototype.slice);var M=Function.call.bind(Array.prototype.push);var x=Function.apply.bind(Array.prototype.push);var N=Function.call.bind(Array.prototype.join);var A=Function.call.bind(Array.prototype.shift);var R=Math.max;var _=Math.min;var k=Math.floor;var L=Math.abs;var F=Math.exp;var D=Math.log;var z=Math.sqrt;var q=Function.call.bind(Object.prototype.hasOwnProperty);var W;var G=function(){};var H=S.Map;var V=H&&H.prototype[„delete“];var B=H&&H.prototype.get;var U=H&&H.prototype.has;var $=H&&H.prototype.set;var J=S.Symbol||{};var X=J.species||„@@species“;var K=Number.isNaN||function isNaN(e){return e!==e};var Z=Number.isFinite||function isFinite(e){return typeof e===„number“&&T(e)};var Y=d(Math.sign)?Math.sign:function sign(e){var t=Number(e);if(t===0){return t}if(K(t)){return t}return t<0?-1:1};var Q=function log1p(e){var t=Number(e);if(t←1||K(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(D(1+t)/(1+t-1))};var ee=function isArguments(e){return g(e)===„[object Arguments]“};var te=function isArguments(e){return e!==null&&typeof e===„object“&&typeof e.length===„number“&&e.length>=0&&g(e)!==„[object Array]“&&g(e.callee)===„[object Function]“};var re=ee(arguments)?ee:te;var ne={primitive:function(e){return e===null||typeof e!==„function“&&typeof e!==„object“},string:function(e){return g(e)===„[object String]“},regex:function(e){return g(e)===„[object RegExp]“},symbol:function(e){return typeof S.Symbol===„function“&&typeof e===„symbol“}};var oe=function overrideNative(e,t,r){var n=e[t];h(e,t,r,true);m.preserveToString(e[t],n)};var ie=typeof J===„function“&&typeof J[„for“]===„function“&&ne.symbol(J());var ae=ne.symbol(J.iterator)?J.iterator:„_es6-shim iterator_“;if(S.Set&&typeof(new S.Set)[„@@iterator“]===„function“){ae=„@@iterator“}if(!S.Reflect){h(S,„Reflect“,{},true)}var ue=S.Reflect;var fe=String;var se=typeof document===„undefined“||!document?null:document.all;var ce=se==null?function isNullOrUndefined(e){return e==null}:function isNullOrUndefinedAndNotDocumentAll(e){return e==null&&e!==se};var le={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!le.IsCallable(t)){throw new TypeError(t+„ is not a function“)}return e(t,r,n)},RequireObjectCoercible:function(e,t){if(ce(e)){throw new TypeError(t||„Cannot call method on “+e)}return e},TypeIsObject:function(e){if(e===void 0||e===null||e===true||e===false){return false}return typeof e===„function“||typeof e===„object“||e===se},ToObject:function(e,t){return Object(le.RequireObjectCoercible(e,t))},IsCallable:d,IsConstructor:function(e){return le.IsCallable(e)},ToInt32:function(e){return le.ToNumber(e)»0},ToUint32:function(e){return le.ToNumber(e)»>0},ToNumber:function(e){if(ie&&g(e)===„[object Symbol]“){throw new TypeError(„Cannot convert a Symbol value to a number“)}return+e},ToInteger:function(e){var t=le.ToNumber(e);if(K(t)){return 0}if(t===0||!Z(t)){return t}return(t>0?1:-1)*k(L(t))},ToLength:function(e){var t=le.ToInteger(e);if(t⇐0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return K(e)&&K(t)},SameValueZero:function(e,t){return e===t||K(e)&&K(t)},IsIterable:function(e){return le.TypeIsObject(e)&&(typeof e[ae]!==„undefined“||re(e))},GetIterator:function(e){if(re(e)){return new W(e,„value“)}var t=le.GetMethod(e,ae);if(!le.IsCallable(t)){throw new TypeError(„value is not an iterable“)}var r=le.Call(t,e);if(!le.TypeIsObject®){throw new TypeError(„bad iterator“)}return r},GetMethod:function(e,t){var r=le.ToObject(e)[t];if(ce®){return void 0}if(!le.IsCallable®){throw new TypeError(„Method not callable: “+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var r=le.GetMethod(e,„return“);if(r===void 0){return}var n,o;try{n=le.Call(r,e)}catch(i){o=i}if(t){return}if(o){throw o}if(!le.TypeIsObject(n)){throw new TypeError(„Iterator's return method returned a non-object.“)}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!le.TypeIsObject(t)){throw new TypeError(„bad iterator“)}return t},IteratorStep:function(e){var t=le.IteratorNext(e);var r=le.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){var o=typeof r===„undefined“?e:r;if(!n&&ue.construct){return ue.construct(e,t,o)}var i=o.prototype;if(!le.TypeIsObject(i)){i=Object.prototype}var a=O(i);var u=le.Call(e,a,t);return le.TypeIsObject(u)?u:a},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!le.TypeIsObject®){throw new TypeError(„Bad constructor“)}var n=r[X];if(ce(n)){return t}if(!le.IsConstructor(n)){throw new TypeError(„Bad @@species“)}return n},CreateHTML:function(e,t,r,n){var o=le.ToString(e);var i=„<“+t;if(r!==„“){var a=le.ToString(n);var u=a.replace(/„/g,“"„);i+=“ „+r+'=“'+u+'„'}var f=i+“>„;var s=f+o;return s+“</„+t+“>„},IsRegExp:function IsRegExp(e){if(!le.TypeIsObject(e)){return false}var t=e[J.match];if(typeof t!==„undefined“){return!!t}return ne.regex(e)},ToString:function ToString(e){if(ie&&g(e)===“[object Symbol]„){throw new TypeError(„Cannot convert a Symbol value to a number“)}return fe(e)}};if(s&&ie){var pe=function defineWellKnownSymbol(e){if(ne.symbol(J[e])){return J[e]}var t=J[„for“](„Symbol.“+e);Object.defineProperty(J,e,{configurable:false,enumerable:false,writable:false,value:t});return t};if(!ne.symbol(J.search)){var ve=pe(„search“);var ye=String.prototype.search;h(RegExp.prototype,ve,function search(e){return le.Call(ye,e,[this])});var he=function search(e){var t=le.RequireObjectCoercible(this);if(!ce(e)){var r=le.GetMethod(e,ve);if(typeof r!==„undefined“){return le.Call(r,e,[t])}}return le.Call(ye,t,[le.ToString(e)])};oe(String.prototype,“search„,he)}if(!ne.symbol(J.replace)){var be=pe(„replace“);var ge=String.prototype.replace;h(RegExp.prototype,be,function replace(e,t){return le.Call(ge,e,[this,t])});var de=function replace(e,t){var r=le.RequireObjectCoercible(this);if(!ce(e)){var n=le.GetMethod(e,be);if(typeof n!==„undefined“){return le.Call(n,e,[r,t])}}return le.Call(ge,r,[le.ToString(e),t])};oe(String.prototype,“replace„,de)}if(!ne.symbol(J.split)){var me=pe(„split“);var Oe=String.prototype.split;h(RegExp.prototype,me,function split(e,t){return le.Call(Oe,e,[this,t])});var we=function split(e,t){var r=le.RequireObjectCoercible(this);if(!ce(e)){var n=le.GetMethod(e,me);if(typeof n!==„undefined“){return le.Call(n,e,[r,t])}}return le.Call(Oe,r,[le.ToString(e),t])};oe(String.prototype,“split„,we)}var je=ne.symbol(J.match);var Se=je&&function(){var e={};e[J.match]=function(){return 42};return“a„.match(e)!==42}();if(!je||Se){var Te=pe(„match“);var Ie=String.prototype.match;h(RegExp.prototype,Te,function match(e){return le.Call(Ie,e,[this])});var Ee=function match(e){var t=le.RequireObjectCoercible(this);if(!ce(e)){var r=le.GetMethod(e,Te);if(typeof r!==„undefined“){return le.Call(r,e,[t])}}return le.Call(Ie,t,[le.ToString(e)])};oe(String.prototype,“match„,Ee)}}var Pe=function wrapConstructor(e,t,r){m.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(s){l(Object.getOwnPropertyNames(e),function(n){if(n in G||r[n]){return}m.proxy(e,n,t)})}else{l(Object.keys(e),function(n){if(n in G||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;m.redefine(e.prototype,“constructor„,t)};var Ce=function(){return this};var Me=function(e){if(s&&!q(e,X)){m.getter(e,X,Ce)}};var xe=function(e,t){var r=t||function iterator(){return this};h(e,ae,r);if(!e[ae]&&ne.symbol(ae)){e[ae]=r}};var Ne=function createDataProperty(e,t,r){if(s){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var Ae=function createDataPropertyOrThrow(e,t,r){Ne(e,t,r);if(!le.SameValue(e[t],r)){throw new TypeError(„property is nonconfigurable“)}};var Re=function(e,t,r,n){if(!le.TypeIsObject(e)){throw new TypeError(„Constructor requires `new`: “+t.name)}var o=t.prototype;if(!le.TypeIsObject(o)){o=r}var i=O(o);for(var a in n){if(q(n,a)){var u=n[a];h(i,a,u,true)}}return i};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var _e=String.fromCodePoint;oe(String,“fromCodePoint„,function fromCodePoint(e){return le.Call(_e,this,arguments)})}var ke={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n){r=Number(arguments[n]);if(!le.SameValue(r,le.ToInteger(r)) s){h=y[s];if(o){h=typeof i===„undefined“?n(h,s):t(n,i,h,s)}Ae(f,s,h)}}f.length=u;return f},of:function of(){var e=arguments.length;var t=this;var n=r(t)||!le.IsCallable(t)?new Array(e):le.Construct(t,[e]);for(var o=0;o<e;o){Ae(n,o,arguments[o])}n.length=e;return n}};b(Array,Qe);Me(Array);W=function(e,t){this.i=0;this.array=e;this.kind=t};b(W.prototype,{next:function(){var e=this.i;var t=this.array;if(!(this instanceof W)){throw new TypeError("Not an ArrayIterator")}if(typeof t!=="undefined"){var r=le.ToLength(t.length);if(e<r){var n=this.kind;var o;if(n==="key"){o=e}else if(n==="value"){o=t[e]}else if(n==="entry"){o=[e,t[e]]}this.i=e+1;return Ze(o)}}this.array=void 0;return Ze()}});xe(W.prototype);var et=Array.of===Qe.of u){n[u]=e}return n},find:function find(e){var r=le.ToObject(this);var n=le.ToLength(r.length);if(!le.IsCallable(e)){throw new TypeError(„Array#find: predicate must be a function“)}var o=arguments.length>1?arguments[1]:null;for(var i=0,a;i<n;i){a=r[i];if(o){if(t(e,o,a,i,r)){return a}}else if(e(a,i,r)){return a}}},findIndex:function findIndex(e){var r=le.ToObject(this);var n=le.ToLength(r.length);if(!le.IsCallable(e)){throw new TypeError("Array#findIndex: predicate must be a function")}var o=arguments.length>1?arguments[1]:null;for(var i=0;i<n;i++){if(o){if(t(e,o,r[i],i,r)){return i}}else if(e(r[i],i,r)){return i}}return-1},keys:function keys(){return new W(this,"key")},values:function values(){return new W(this,"value")},entries:function entries(){return new W(this,"entry")}};if(Array.prototype.keys&&!le.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!le.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[ae]){b(Array.prototype,{values:Array.prototype[ae]});if(ne.symbol(J.unscopables)){Array.prototype[J.unscopables].values=true}}if(c&&Array.prototype.values&&Array.prototype.values.name!=="values"){var rt=Array.prototype.values;oe(Array.prototype,"values",function values(){return le.Call(rt,this,arguments)});h(Array.prototype,ae,Array.prototype.values,true)}b(Array.prototype,tt);if(1/[true].indexOf(true,-0)<0){h(Array.prototype,"indexOf",function indexOf(e){var t=E(this,arguments);if(t===0&&1/t<0){return 0}return t},true)}xe(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){xe(Object.getPrototypeOf([].values()))}var nt=function(){return a(function(){return Array.from({length:-1}).length===0})}();var ot=function(){var e=Array.from([0].entries());return e.length===1&&r(e[0])&&e[0][0]===0&&e[0][1]===0}();if(!nt o){n[o-e]=arguments[o]}return n};var At=function assignTo(e){return function assignToSource(t,r){t[r]=e[r];return t}};var Rt=function(e,t){var r=n(Object(t));var o;if(le.IsCallable(Object.getOwnPropertySymbols)){o=v(Object.getOwnPropertySymbols(Object(t)),Mt(t))}return p(P(r,o||[]),At(t),e)};var _t={assign:function(e,t){var r=le.ToObject(e,“Cannot convert undefined or null to object„);return p(le.Call(Nt,1,arguments),Rt,r)},is:function is(e,t){return le.SameValue(e,t)}};var kt=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,“xy„)}catch(t){return e[1]===„y“}}();if(kt){oe(Object,“assign„,_t.assign)}b(Object,_t);if(s){var Lt={setPrototypeOf:function(e,r){var n;var o=function(e,t){if(!le.TypeIsObject(e)){throw new TypeError(„cannot set prototype on a non-object“)}if(!(t===null||le.TypeIsObject(t))){throw new TypeError(„can only set prototype to an object or null“+t)}};var i=function(e,r){o(e,r);t(n,e,r);return e};try{n=e.getOwnPropertyDescriptor(e.prototype,r).set;t(n,{},null)}catch(a){if(e.prototype!=={}[r]){return}n=function(e){this[r]=e};i.polyfill=i(i({},null),e.prototype)instanceof e}return i}(Object,“proto„)};b(Object,Lt)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null){(function(){var e=Object.create(null);var t=Object.getPrototypeOf;var r=Object.setPrototypeOf;Object.getPrototypeOf=function®{var n=t®;return n===e?null:n};Object.setPrototypeOf=function(t,n){var o=n===null?e:n;return r(t,o)};Object.setPrototypeOf.polyfill=false})()}var Ft=!i(function(){return Object.keys(„foo“)});if(!Ft){var Dt=Object.keys;oe(Object,“keys„,function keys(e){return Dt(le.ToObject(e))});n=Object.keys}var zt=i(function(){return Object.keys(/a/g)});if(zt){var qt=Object.keys;oe(Object,“keys„,function keys(e){if(ne.regex(e)){var t=[];for(var r in e){if(q(e,r)){M(t,r)}}return t}return qt(e)});n=Object.keys}if(Object.getOwnPropertyNames){var Wt=!i(function(){return Object.getOwnPropertyNames(„foo“)});if(!Wt){var Gt=typeof window===„object“?Object.getOwnPropertyNames(window):[];var Ht=Object.getOwnPropertyNames;oe(Object,“getOwnPropertyNames„,function getOwnPropertyNames(e){var t=le.ToObject(e);if(g(t)===“[object Window]„){try{return Ht(t)}catch®{return P([],Gt)}}return Ht(t)})}}if(Object.getOwnPropertyDescriptor){var Vt=!i(function(){return Object.getOwnPropertyDescriptor(„foo“,“bar„)});if(!Vt){var Bt=Object.getOwnPropertyDescriptor;oe(Object,“getOwnPropertyDescriptor„,function getOwnPropertyDescriptor(e,t){return Bt(le.ToObject(e),t)})}}if(Object.seal){var Ut=!i(function(){return Object.seal(„foo“)});if(!Ut){var $t=Object.seal;oe(Object,“seal„,function seal(e){if(!le.TypeIsObject(e)){return e}return $t(e)})}}if(Object.isSealed){var Jt=!i(function(){return Object.isSealed(„foo“)});if(!Jt){var Xt=Object.isSealed;oe(Object,“isSealed„,function isSealed(e){if(!le.TypeIsObject(e)){return true}return Xt(e)})}}if(Object.freeze){var Kt=!i(function(){return Object.freeze(„foo“)});if(!Kt){var Zt=Object.freeze;oe(Object,“freeze„,function freeze(e){if(!le.TypeIsObject(e)){return e}return Zt(e)})}}if(Object.isFrozen){var Yt=!i(function(){return Object.isFrozen(„foo“)});if(!Yt){var Qt=Object.isFrozen;oe(Object,“isFrozen„,function isFrozen(e){if(!le.TypeIsObject(e)){return true}return Qt(e)})}}if(Object.preventExtensions){var er=!i(function(){return Object.preventExtensions(„foo“)});if(!er){var tr=Object.preventExtensions;oe(Object,“preventExtensions„,function preventExtensions(e){if(!le.TypeIsObject(e)){return e}return tr(e)})}}if(Object.isExtensible){var rr=!i(function(){return Object.isExtensible(„foo“)});if(!rr){var nr=Object.isExtensible;oe(Object,“isExtensible„,function isExtensible(e){if(!le.TypeIsObject(e)){return false}return nr(e)})}}if(Object.getPrototypeOf){var or=!i(function(){return Object.getPrototypeOf(„foo“)});if(!or){var ir=Object.getPrototypeOf;oe(Object,“getPrototypeOf„,function getPrototypeOf(e){return ir(le.ToObject(e))})}}var ar=s&&function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,“flags„);return e&&le.IsCallable(e.get)}();if(s&&!ar){var ur=function flags(){if(!le.TypeIsObject(this)){throw new TypeError(„Method called on incompatible type: must be an object.“)}var e=“„;if(this.global){e+=„g“}if(this.ignoreCase){e+=„i“}if(this.multiline){e+=„m“}if(this.unicode){e+=„u“}if(this.sticky){e+=„y“}return e};m.getter(RegExp.prototype,“flags„,ur)}var fr=s&&a(function(){return String(new RegExp(/a/g,“i„))===“/a/i„});var sr=ie&&s&&function(){var e=/./;e[J.match]=false;return RegExp(e)===e}();var cr=a(function(){return RegExp.prototype.toString.call({source:„abc“})===“/abc/„});var lr=cr&&a(function(){return RegExp.prototype.toString.call({source:„a“,flags:„b“})===“/a/b„});if(!cr||!lr){var pr=RegExp.prototype.toString;h(RegExp.prototype,“toString„,function toString(){var e=le.RequireObjectCoercible(this);if(ne.regex(e)){return t(pr,e)}var r=fe(e.source);var n=fe(e.flags);return“/„+r+“/„+n},true);m.preserveToString(RegExp.prototype.toString,pr)}if(s&&(!fr||sr)){var vr=Object.getOwnPropertyDescriptor(RegExp.prototype,“flags„).get;var yr=Object.getOwnPropertyDescriptor(RegExp.prototype,“source„)||{};var hr=function(){return this.source};var br=le.IsCallable(yr.get)?yr.get:hr;var gr=RegExp;var dr=function(){return function RegExp(e,t){var r=le.IsRegExp(e);var n=this instanceof RegExp;if(!n&&r&&typeof t===„undefined“&&e.constructor===RegExp){return e}var o=e;var i=t;if(ne.regex(e)){o=le.Call(br,e);i=typeof t===„undefined“?le.Call(vr,e):t;return new RegExp(o,i)}else if®{o=e.source;i=typeof t===„undefined“?e.flags:t}return new gr(e,t)}}();Pe(gr,dr,{$input:true});RegExp=dr;m.redefine(S,“RegExp„,dr)}if(s){var mr={input:„$_“,lastMatch:„$&“,lastParen:„$+“,leftContext:„$`“,rightContext:„$'“};l(n(mr),function(e){if(e in RegExp&&!(mr[e]in RegExp)){m.getter(RegExp,mr[e],function get(){return RegExp[e]})}})}Me(RegExp);var Or=1/Number.EPSILON;var wr=function roundTiesToEven(e){return e+Or-Or};var jr=Math.pow(2,-23);var Sr=Math.pow(2,127)*(2-jr);var Tr=Math.pow(2,-126);var Ir=Math.E;var Er=Math.LOG2E;var Pr=Math.LOG10E;var Cr=Number.prototype.clz;delete Number.prototype.clz;var Mr={acosh:function acosh(e){var t=Number(e);if(K(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}var r=1/(t*t);if(t<2){return Q(t-1+z(1-r)*t)}var n=t/2;return Q(n+z(1-r)*n-1)+1/Er},asinh:function asinh(e){var t=Number(e);if(t===0||!T(t)){return t}var r=L(t);var n=r*r;var o=Y(t);if(r<1){return o*Q(r+n/(z(n+1)+1))}return o*(Q(r/2+z(1+1/n)*r/2-1)+1/Er)},atanh:function atanh(e){var t=Number(e);if(t===0){return t}if(t===-1){return-Infinity}if(t===1){return Infinity}if(K(t)||t←1||t>1){return NaN}var r=L(t);return Y(t)*Q(2*r/(1-r))/2},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0;var n;if®{t=-t}if(t===Infinity){n=Infinity}else{n=F(D(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var t=Number(e);var r=le.ToUint32(t);if(r===0){return 32}return Cr?le.Call(Cr,r):31-k(D(r+.5)*Er)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(K(t)){return NaN}if(!T(t)){return Infinity}var r=F(L(t)-1);return(r+1/(r*Ir*Ir))*(Ir/2)},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!T(t)||t===0){return t}if(L(t)>.5){return F(t)-1}var r=t;var n=0;var o=1;while(n+r!==n){n+=r;o+=1;r*=t/o}return n},hypot:function hypot(e,t){var r=0;var n=0;for(var o=0;o<arguments.length;o){var i=L(Number(arguments[o]));if(n<i){r*=n/i*(n/i);r+=1;n=i}else{r+=i>0?i/n*(i/n):i}}return n===Infinity?Infinity:n*z(r)},log2:function log2(e){return D(e)*Er},log10:function log10(e){return D(e)*Pr},log1p:Q,sign:Y,sinh:function sinh(e){var t=Number(e);if(!T(t) ,i+=3){h(r[i+l],r[i+v],t);e[i+l]=void 0;e[i+p]=void 0;e[i+v]=void 0}}}r.result=t;r.state=s;r.reactionLength=0};var m=function(e,t){var r=e._promise;var n=r.reactionLength;if(n>0){h(r.rejectReactionHandler0,r.reactionCapability0,t);r.fulfillReactionHandler0=void 0;r.rejectReactions0=void 0;r.reactionCapability0=void 0;if(n>1){for(var o=1,i=0;o<n;o,i+=3){h(r[i+p],r[i+v],t);e[i+l]=void 0;e[i+p]=void 0;e[i+v]=void 0}}}r.result=t;r.state=c;r.reactionLength=0};var O=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return m(e,new TypeError("Self resolution"))}if(!le.TypeIsObject(r)){return d(e,r)}try{n=r.then}catch(o){return m(e,o)}if(!le.IsCallable(n)){return d(e,r)}i(function(){j(e,r,n)})};var n=function(r){if(t){return}t=true;return m(e,r)};return{resolve:r,reject:n}};var w=function(e,r,n,o){if(e===I){t(e,r,n,o,y)}else{t(e,r,n,o)}};var j=function(e,t,r){var n=O(e);var o=n.resolve;var i=n.reject;try{w(r,t,o,i)}catch(a){i(a)}};var T,I;var E=function(){var e=function Promise(t){if(!(this instanceof e)){throw new TypeError('Constructor Promise requires "new"')}if(this&&this._promise){throw new TypeError("Bad construction")}if(!le.IsCallable(t)){throw new TypeError("not a valid resolver")}var r=Re(this,e,T,{_promise:{result:void 0,state:f,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}});var n=O(r);var o=n.reject;try{t(n.resolve,o)}catch(i){o(i)}return r};return e}();T=E.prototype;var P=function(e,t,r,n){var o=false;return function(i){if(o){return}o=true;t[e]=i;if(--n.count===0){var a=r.resolve;a(t)}}};var C=function(e,t,r){var n=e.iterator;var o=[];var i={count:1};var a,u;var f=0;while(true){try{a=le.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(s){e.done=true;throw s}o[f]=void 0;var c=t.resolve(u);var l=P(f,o,r,i);i.count+=1;w(c.then,c,l,r.reject);f+=1}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var x=function(e,t,r){var n=e.iterator;var o,i,a;while(true){try{o=le.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);w(a.then,a,r.resolve,r.reject)}return r.promise};b(E,{all:function all(e){var t=this;if(!le.TypeIsObject(t)){throw new TypeError("Promise is not object")}var n=new r(t);var o,i;try{o=le.GetIterator(e);i={iterator:o,done:false};return C(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{le.IteratorClose(o,true)}catch(f){u=f}}var s=n.reject;s(u);return n.promise}},race:function race(e){var t=this;if(!le.TypeIsObject(t)){throw new TypeError("Promise is not object")}var n=new r(t);var o,i;try{o=le.GetIterator(e);i={iterator:o,done:false};return x(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{le.IteratorClose(o,true)}catch(f){u=f}}var s=n.reject;s(u);return n.promise}},reject:function reject(e){var t=this;if(!le.TypeIsObject(t)){throw new TypeError("Bad promise constructor")}var n=new r(t);var o=n.reject;o(e);return n.promise},resolve:function resolve(e){var t=this;if(!le.TypeIsObject(t)){throw new TypeError("Bad promise constructor")}if(le.IsPromise(e)){var n=e.constructor;if(n===t){return e}}var o=new r(t);var i=o.resolve;i(e);return o.promise}});b(T,{"catch":function(e){return this.then(null,e)},then:function then(e,t){var n=this;if(!le.IsPromise(n)){throw new TypeError("not a promise")}var o=le.SpeciesConstructor(n,E);var i;var b=arguments.length>2&&arguments[2]===y;if(b&&o===E){i=y}else{i=new r(o)}var g=le.IsCallable(e)?e:a;var d=le.IsCallable(t)?t:u;var m=n._promise;var O;if(m.state===f){if(m.reactionLength===0){m.fulfillReactionHandler0=g;m.rejectReactionHandler0=d;m.reactionCapability0=i}else{var w=3*(m.reactionLength-1);m[w+l]=g;m[w+p]=d;m[w+v]=i}m.reactionLength+=1}else if(m.state===s){O=m.result;h(g,i,O)}else if(m.state===c){O=m.result;h(d,i,O)}else{throw new TypeError("unexpected Promise state")}return i.promise}});y=new r(E);I=T.then;return E}();if(S.Promise){delete S.Promise.accept;delete S.Promise.defer;delete S.Promise.prototype.chain}if(typeof Dr==="function"){b(S,{Promise:Dr});var zr=w(S.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var qr=!i(function(){return S.Promise.reject(42).then(null,5).then(null,G)});var Wr=i(function(){return S.Promise.call(3,G)});var Gr=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);try{r.then(null,G).then(null,G)}catch(n){return true}return t===r}(S.Promise);var Hr=s&&function(){var e=0;var t=Object.defineProperty({},"then",{get:function(){e+=1}});Promise.resolve(t);return e===1}();var Vr=function BadResolverPromise(e){var t=new Promise(e);e(3,function(){});this.then=t.then;this.constructor=BadResolverPromise};Vr.prototype=Promise.prototype;Vr.all=Promise.all;var Br=a(function(){return!!Vr.all([1,2])});if(!zr )(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r)se(e,t[r],n);return n}(h )if(t=b.relative[e[s].type])c=[be(we©,t)];else{if20)[S]){for(n=s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a)) ){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a])if(s(o,t ])s(c,f,t,n);if(e){if(0<u)while(l–)c[l]||f[l]||(f[l]=q.call®);f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort®}return i&&(k=h,w=p),c},m?le®:r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l=„function“==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&„ID“===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i–){if(a=o[i],b.relative[s=a.type])break;if22)){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split(“„).sort(j).join(“„)===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement(„fieldset“))}),ce(function(e){return e.innerHTML=“<a href='#'></a>„,“#„===e.firstChild.getAttribute(„href“)})||fe(„type|href|height|width“,function(e,t,n){if(!n)return e.getAttribute(t,“type„===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML=“<input/>„,e.firstChild.setAttribute(„value“,“„),“„===e.firstChild.getAttribute(„value“)})||fe(„value“,function(e,t,n){if(!n&&„input“===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute(„disabled“)})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[“:„]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while23)break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):„string“!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=“:not(„+e+“)„),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(„string“!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e ,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u⇐i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m®?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+„With“](this===s?void 0:this,arguments),this},s[t[0]+„With“]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,–n||o.resolveWith(r,i)}};if(n⇐1&&(I(e,o.done(a(t)).resolve,o.reject,!n),“pending„===o.state()||m(i[t]&&i[t].then)))return o.then();while(t–)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn(„jQuery.Deferred exception: “+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener(„DOMContentLoaded“,B),C.removeEventListener(„load“,B),S.ready()}S.fn.ready=function(e){return F.then(e)[„catch“](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?–S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0←-S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,“complete„===E.readyState||“loading„!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener(„DOMContentLoaded“,B),C.addEventListener(„load“,B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if(„object“===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m®||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType }G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(„string“==typeof t)i[X(t)]=n;else for(r in t)i[X®]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&„string“==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n–)delete r[t[n]]}(void 0===t||S.isEmptyObject®)&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\|"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),26)&&„auto“!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:„swing“},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i[„margin“+(n=ne[r])]=i[„padding“+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners[„*“]),o=0,a=i.length;o<a;o)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze )l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e )if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{„*“:[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=[„*“]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r)n=e[r],lt.tweeners[n]=lt.tweeners[n] ,p.always(function(){p.always(function(){a.unqueued–,S.queue(e,“fx„).length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||“toggle„===i,i===(g?“hide„:„show“)){if(„show“!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if27)||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,“display„)),“none„===(c=S.css(e,“display„))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,“display„),le([e]))),(„inline“===c||“inline-block„===c&&null!=l)&&„none“===S.css(e,“float„)&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l=„none“===c?“„:c)),h.display=„inline-block“)),n.overflow&&(h.overflow=„hidden“,p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?“hidden„in v&&(g=v.hidden):v=Y.access(e,“fxshow„,{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,“fxshow„),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&„object“==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:„number“!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue=„fx“),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css(„opacity“,0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,“finish„))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return“string„!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||“fx„,[]),this.each(function(){var e=!0,t=null!=i&&i+„queueHooks“,n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t–;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||“fx„),this.each(function(){var e,t=Y.get(this),n=t[a+„queue“],r=t[a+„queueHooks“],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e–;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e )(e=n[t])()||n[t]!==e||n.splice(t–,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||“fx„,this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement(„input“),nt=E.createElement(„select“).appendChild(E.createElement(„option“)),tt.type=„checkbox“,y.checkOn=“„!==tt.value,y.optSelected=nt.selected,(tt=E.createElement(„input“)).value=„t“,tt.type=„radio“,y.radioValue=„t“===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return“undefined„==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&„set“in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+“„),n):i&&„get“in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&„radio“===t&&A(e,“input„)){var n=e.value;return e.setAttribute(„type“,t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t] ])if(i=gt(n),r=1===n.nodeType&&“ „+ht(i)+“ „){a=0;while(o=e[a])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o ])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&„boolean“!==o||29)&&Y.set(this,“className„,e),this.setAttribute&&this.setAttribute(„class“,e||!1===i?“„:Y.get(this,“className„)||“„))})},hasClass:function(e){var t,n,r=0;t=“ „+e+“ „;while(n=this[r])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type] )if30)){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a–)31)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each([„radio“,“checkbox„],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute(„value“)?“on„:e.value})}),y.focusin=„onfocusin“in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,“type„)?e.type:e,h=v.call(e,“namespace„)?e.namespace.split(“.„):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(“.„)&&(d=(h=d.split(“.„)).shift(),h.sort()),u=d.indexOf(“:„)<0&&„on“+d,(e=e[S.expando]?e:new S.Event(d,“object„==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join(“.„),e.rnamespace=e.namespace?new RegExp(“(^|\\.)„+h.join(„\\.(?:.*\\.|)“)+“(\\.|$)„):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while32),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:„focusin“,blur:„focusout“},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||“string„!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,“text/xml„)}catch(e){}return n=t&&t.getElementsByTagName(„parsererror“)[0],t&&!n||S.error(„Invalid XML: “+(n?S.map(n.childNodes,function(e){return e.textContent}).join(„\n“):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+“[„+(„object“==typeof t&&null!=t?e:“„)+“]„,t,r,i)});else if(r||“object„!==w(e))i(n,e);else for(t in e)At(n+“[„+t+“]„,e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+“=„+encodeURIComponent(null==n?“„:n)};if(null==e)return“„;if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join(“&„)},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,“elements„);return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(“:disabled„)&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,“\r\n„)}}):{name:t.name,value:n.replace(Et,“\r\n„)}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\,Ot={},Pt={},Rt=„*/“.concat(„*“),Mt=E.createElement(„a“);function It(o){return function(e,t){„string“!=typeof e&&(t=e,e=„*“);var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r])"+"===n[0]?(n=n.slice(1)
„).append(S.parseHTML(e)).find®:e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,“position„),c=S(e),f={};“static„===l&&(e.style.position=„relative“),s=c.offset(),o=S.css(e,“top„),u=S.css(e,“left„),(„absolute“===l||“fixed„===l)&&-1<(o+u).indexOf(„auto“)?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),“using„in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(„fixed“===S.css(r,“position„))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&„static“===S.css(e,“position„))e=e.parentNode;e&&e!==r&&1===e.nodeType&&37).top+=S.css(e,“borderTopWidth„,!0),i.left+=S.css(e,“borderLeftWidth„,!0))}return{top:t.top-i.top-S.css(r,“marginTop„,!0),left:t.left-i.left-S.css(r,“marginLeft„,!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&„static“===S.css(e,“position„))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:„pageXOffset“,scrollTop:„pageYOffset“},function(t,i){var o=„pageYOffset“===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each([„top“,“left„],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+„px“:t})}),S.each({Height:„height“,Width:„width“},function(a,s){S.each({padding:„inner“+a,content:s,“„:„outer“+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||“boolean„!=typeof e),i=r||(!0===e||!0===t?“margin„:„border“);return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf(„outer“)?e[„inner“+a]:e.document.documentElement[„client“+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body[„scroll“+a],r[„scroll“+a],e.body[„offset“+a],r[„offset“+a],r[„client“+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each([„ajaxStart“,“ajaxStop„,“ajaxComplete„,“ajaxError„,“ajaxSuccess„,“ajaxSend„],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,“„):this.off(t,e||“„,n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each(„blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu“.split(“ „),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if(„string“==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t ]}},e:function(e){throw e},f:t};throw new TypeError(„Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.“)}var a,o=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(i)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if(„string“==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return“Map„===(n=„Object“===n&&e.constructor?e.constructor.name:n)||“Set„===n?Array.from(e):„Arguments“===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n)r[n]=e[n];return r}define("engine",["jquery","utils","state","section","passages"],function(C,N,P,j,R){var t,I=N.impossible,V=N.passageSelector,D=N.transitionOut,M=N.options;function F(e,t,n){var r,a,o;if(n?(n=n.get("name"),(a=R.getTree(n)).children.length&&(r={type:"include",tag:t,name:n,children:a.children,text:a.text})):r=R.getTree(t),r){for(;(o=e[e.length-1])&&("root"===o.type
```„+n+„```
“}!function(o){window.onerror=function(e,t,n,r,a){window.onerror=o,Utils.storyElement.parent().append(dialog({message:„Sorry to interrupt, but this page's code has got itself in a mess.\n\n“+printJSError(a)+„\n(This is probably due to a bug in the Harlowe game engine.)“})),“function„==typeof o&&o.apply(void 0,arguments)}}(window.onerror),Utils.onStartup(function(){var n,e,t,r,a=$(„tw-storydata“);0!==a.length&&(Utils.options.ifid=a.attr(„ifid“),(a.attr(„options“)||“„).split(/\s/).forEach(function(e){e&&(Utils.options[e]=!0),“debug„===e&&DebugMode()}),a=(a=a.attr(„startnode“))||[].reduce.call($(„tw-passagedata“),function(e,t){t=t.getAttribute(„pid“);return t<e?t:e},1/0),a=$(„tw-passagedata[pid='“+a+“']„).attr(„name“),$(document.documentElement).on(„keydown“,function(e){13===e.which&&„0“===e.target.getAttribute(„tabindex“)&&$(e.target).trigger(„click“)}),n=!1,$(“[role=script]„).each(function(t){try{HarloweEval($(this).html())}catch(e){n||(n=!0,dialog({parent:Utils.storyElement.parent(),message:„There is a problem with this story's “+Utils.nth(t+1)+“ script:\n\n„+printJSError(e)}))}}),$(“[role=stylesheet]„).each(function(e,t){$(document.head).append(“<style data-title=\„Story stylesheet '“.concat(e+1,„'\“>„).concat($(t).html()))}),(e=Section.create()).stack=[{tempVariables:Object.create(VarScope)}],(r=Passages.loadMetadata(e)).length&&(t=dialog({parent:Utils.storyElement.parent(),message:„These errors occurred when running the `(metadata:)` macro calls in this story's passages:<p></p>“}),r.forEach(function(e){return t.find(„p“).append(e.render())})),(r=!Utils.options.debug&&State.hasSessionStorage&&sessionStorage.getItem(„Saved Session“))&&!0===State.deserialise(e,r)?Engine.showPassage(State.passage):Engine.goToPassage(a))})}),define(„macros“,[„utils/naturalsort“,“utils„,“utils/operationutils„,“datatypes/changercommand„,“datatypes/custommacro„,“datatypes/lambda„,“datatypes/codehook„,“internaltypes/changedescriptor„,“internaltypes/twineerror„],function(y,e,t,o,r,g,v,p,b){var w=e.insensitiveName,k=e.nth,T=e.andList,S=t.objectName,x=t.typeName,d=t.toSource,_=Array.isArray,i={};function O(e){return e===s.TypeSignature.Any||(_(e.innerType)?e.innerType.some(O):!!e.innerType&&O(e.innerType))}function a(e,t,n,r){var a,o,i,s,c,l,u,p,d=t.fn,f=t.typeSignature,h=t.returnType,m=(r=function(e){for(var t,n,r,a=[],o=0;o<e.length;o+=1)o in e&&(!0===(null==(t=e[o])?void 0:t.spreader)?(n=t.value,(r=b.containsError(n))?a.push®:_(n)||“string„==typeof n?a.push.apply(a,_toConsumableArray(n)):n instanceof Set?a.push.apply(a,_toConsumableArray(Array.from(n).sort(y(„en“)))):a.push(b.create(„operation“,“I can't spread out „+S(n)+“, because it is not a string, dataset, or array.„))):a.push(t));return a}®,“string„!=typeof e&&(a=e,e=“„),a?“„:“(„+(_(e)&&1<e.length?e[0]:e)+“:)„);for(e=a?a.TwineScript_KnownName?“the custom macro, „.concat(a.TwineScript_KnownName):„an unnamed custom macro“:„the “.concat(m,“ macro„),o=0<f.length?1===f.length&&O(f[0])?1===r.length?“That value can't be given to macros as-is.„:„Give only a single value to this macro.“:e+“ must only be given „+T(f.map(x))+(1<f.length?“, in that order„:“.„):e+“ must not be given any data.„+(a?“„:“ Just write „+m),s=0,c=Math.max(r.length,f.length);s<c;s+=1){if(p=f[s],l=r[s],b.containsError(l))return l;if(s>=f.length&&!i)return b.create(„datatype“,r.length-f.length+“ too many values were given to „+e+“.„,o);if(!(p=p||i).innerType||“rest„!==p.pattern&&„zero or more“!==p.pattern||(i=p.innerType,“rest„===p.pattern&&(p=p.innerType)),!function e(t,n){if(null===n)return void 0===t;var r=_typeof(t);if(„function“!=typeof n&&n.pattern){if(„optional“===n.pattern||“zero or more„===n.pattern)return void 0===t||e(t,n.innerType);if(„either“===n.pattern){for(var a=0;a<n.innerType.length;a+=1)if(e(t,n.innerType[a]))return!0;return!1}if(„lambda“===n.pattern&&e(t,n.innerType))return n.clauses.includes(„where“)===(„where“in t||“each„in t)&&n.clauses.includes(„making“)===„making“in t&&n.clauses.includes(„via“)===„via“in t&&n.clauses.includes(„with“)===„with“in t;if(„insensitive set“===n.pattern)return n.innerType.includes(w(t));if(„range“===n.pattern)return n.range(t);if(„wrapped“===n.pattern)return e(t,n.innerType)}return(void 0===n||void 0!==t)&&(„anything“===n.TwineScript_TypeName&&void 0!==t&&!t.TwineScript_Unstorable||“everything„===n.TwineScript_TypeName&&void 0!==t||(n===String?“string„===r:n===Boolean?“boolean„===r:n===parseInt?“number„===r&&!Number.isNaN(t)&&!(t+“„).includes(“.„):n===Number?“number„===r&&!Number.isNaN(t):n===Array?_(t):n===Map||n===Set?t instanceof n:Object.isPrototypeOf.call(n,t)))}(l,p))return void 0===l?(u=f.filter(function(e){return!(„optional“===e.pattern||“zero or more„===e.pattern)}).length,b.create(„datatype“,“„.concat(e,“ was given „).concat(r.length?T(r.map(S)):„nothing“,“, but needs „).concat(u-s,“ more value„).concat(1<u-s?“s„:“„,“.„),o)):null!=(u=l)&&u.TwineScript_Unstorable&&O(p)?b.create(„datatype“,e+“'s „+k(s+1)+“ value, „+S(l)+“, is not valid data for this macro.„,o):v.isPrototypeOf(l)&&„Changer“===h?b.create(„syntax“,“Please put this hook outside the parentheses of „+e+“, not inside it.„,“Hooks should appear after a macro„+(a?“.„:“: „+m+“[Some text]„)):l&&g.isPrototypeOf(l)&&„lambda“===p.pattern?b.create(„datatype“,e+“'s „+k(s+1)+“ value (a lambda) should have „+T([„where“,“when„,“making„,“via„,“with„].filter(function(e){return p.clauses.includes(e)}).map(function(e){return“a '„+e+“' clause„}))+“, not „+T([„where“,“when„,“making„,“via„,“with„].filter(function(e){return e in l}).map(function(e){return“a '„+e+“' clause„}))+“.„):„insensitive set“===p.pattern?b.create(„datatype“,S(l)+“ is not a valid name string for „+e+“.„,“Only the following names are recognised (capitalisation and hyphens ignored): „+T(p.innerType)+“.„):b.create(„datatype“,“„.concat(e,“'s „).concat(k(s+1),“ value is „).concat(S(l),“, but should be „).concat(x(p),“.„),p.message||o)}return d.apply(null,[n].concat®)}function f(e,t,n,r){var a={fn:n,typeSignature:r=[].concat(r||[]),returnType:t};Object.freeze(a),[].concat(e).forEach(function(e){return Object.defineProperty(i,w(e),{value:a})})}var s={has:function(e){return e=w(e),hasOwnProperty.call(i,e)},get:function(e){return e=w(e),hasOwnProperty.call(i,e)&&i[e]},add:function e(t,n,r,a){return f(t,n,r,a),e},addChanger:function e(t,n,r,a){return f(t,“Changer„,n,a),o.register(_(t)?t[0]:t,r),e},addCommand:function e(t,n,r,a){var s,c,l,u,o=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],i=[].concat(t)[0];return f(t,“Command„,(s=i,c=n,l=r,u=o,function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];var a=c.apply(void 0,n);if(a)return a;var o=p.create(),i=Object.assign({TwineScript_TypeID:"command",TwineScript_ObjectName:"a ("+s+":) command",TwineScript_TypeName:"a ("+s+":) command",TwineScript_Print:function(){return"`[A ("+s+":) command]`"},TwineScript_ToSource:function(){return"("+s+":"+n.map(d)+")"},TwineScript_is:function(e){return d(this)===d(e)}},u?{TwineScript_Attach:function(e,t){return o.section=e,t.run(o),i},TwineScript_Run:function(e){e=l.apply(void 0,[o,e].concat(n));return o=p.create(),e}}:{TwineScript_Run:function(e){return l.apply(void 0,[e].concat(n))}});return i}),a),e},TypeSignature:{optional:function(e){return{pattern:"optional",innerType:e}},zeroOrMore:function(e){return{pattern:"zero or more",innerType:e}},either:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{pattern:"either",innerType:t}},rest:function(e){return{pattern:"rest",innerType:e}},insensitiveSet:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{pattern:"insensitive set",innerType:t}},numberRange:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1/0;return{pattern:"range",min:t,max:n,range:function(e){return"number"==typeof e&&!Number.isNaN(e)&&t<=e&&e<=n}}},nonNegativeInteger:{pattern:"range",integer:!0,min:0,max:1/0,range:function(e){return"number"==typeof e&&!Number.isNaN(e)&&0<=e&&!(e+"").includes(".")}},positiveInteger:{pattern:"range",integer:!0,min:1,max:1/0,range:function(e){return"number"==typeof e&&!Number.isNaN(e)&&1<=e&&!(e+"").includes(".")}},wrapped:function(e,t){return{pattern:"wrapped",innerType:e,message:t}},Any:{TwineScript_TypeName:"anything"},Everything:{TwineScript_TypeName:"everything"}},run:function(e,t,n){return s.has(e)?a(e,s.get(e),t,n):b.create("macrocall","I can't run the macro '"+e+"' because it doesn't exist.","Did you mean to run a macro? If you have a word written like (this:), it is regarded as a macro name.")},runCustom:function(e,t,n){return r.isPrototypeOf(e)?a(e,e,t,n):b.containsError(e)?e:b.create("macrocall","I can't call ".concat(S(e)," because it isn't a custom macro."))}};return Object.assign(s.TypeSignature,{positiveNumber:s.TypeSignature.numberRange(Math.pow(2,-52),1/0),nonNegativeNumber:s.TypeSignature.numberRange(0,1/0),percent:s.TypeSignature.numberRange(0,1)}),Object.freeze(s)}),define("passages",["jquery","utils/naturalsort","utils","markup","internaltypes/twineerror"],function(t,s,e,i,c){var l=e.insensitiveName,a=e.unescape,n=e.onStartup,o=e.impossible,u=Object.assign,p=RegExp(i.Patterns.macroFront+i.Patterns.macroName,"ig");function r(e){var t=e.attr("name"),n=a(e.html()),r=function(e,t){var r=["metadata","storylet","exclusivity","urgency"];if(!(e.match(p) r<w&&m[r];){if(„br“===m[r].type){v+=“</h„+n.depth+“>„;break}v+=C([m[r]],y)}break;case“br„:if(!b.length||/td|th/.test(b[0])){v+=“<br>„;for(var p=m[r+1];p&&(„br“===p.type||“tag„===p.type&&/^<br\b/i.test(p.text));)v+=“<tw-consecutive-br„+(„tag“===p.type?“ data-raw„:“„)+“></tw-consecutive-br>„,p=m[(r+=1)+1]}break;case“hr„:v+=“<hr>„;break;case“escapedLine„:case“comment„:break;case“inlineUrl„:v+='<a class=„link“ href=“'+x(n.text)+'„>'+n.text+“</a>„;break;case“scriptStyleTag„:case“tag„:var d=n.text.toLowerCase();/^<\/?(?:table|thead|tbody|tr|tfoot|td|th|svg)\b/.test(d)&&!n.text.endsWith(“/>„)&&b[n.text.startsWith(“</„)?“shift„:„unshift“](d),v+=n.text.startsWith(“</„)?n.text:n.text.replace(/(\/)?>$/,function(e,t){return“ data-raw„.concat(t?“></„.concat(n.text.match(/[\w-]+/)):“„,“>„)});break;case“sub„:case“sup„:case“strong„:case“em„:v+=g(n,n.type);break;case“strike„:v+=g(n,“s„);break;case“bold„:v+=g(n,“b„);break;case“italic„:v+=g(n,“i„);break;case“twineLink„:d=_slicedToArray(T.lex(“(link-goto:„+JSON.stringify(n.innerText)+“,„+JSON.stringify(n.passage)+“)„).children,1)[0];v+='<tw-expression type=„macro“ name=„link-goto“'+(O.debug?' title=“'+x(n.text)+'„':“„)+' code=“'+y.code.length+'„></tw-expression>',y.code.push(d);break;case“hook„:v+=“<tw-hook „+(n.hidden?“hidden „:“„)+(n.name?'name=“'+_(n.name)+'„':“„)+(O.debug&&n.name?' title=„Hook: ?'+n.name+'“':“„)+' source=“'+y.source.length+'„></tw-hook>',y.source.push(n.children);break;case“unclosedHook„:return v+=“<tw-hook „+(n.hidden?“hidden „:“„)+(n.name?'name=“'+_(n.name)+'„':“„)+'source=“'+y.source.length+'„></tw-hook>',y.source.push(m.slice(r+1,w)),k=r,{v:v};case“verbatim„:v+=A(x(n.innerText).replace(/\n/g,“<br>„),“tw-verbatim„);break;case“collapsed„:v+=g(n,“tw-collapsed„);break;case“unclosedCollapsed„:return v+=“<tw-collapsed>„+C(m.slice(r+1,w),y)+“</tw-collapsed>„,k=r,{v:v};case“variable„:case“tempVariable„:case“macro„:var f=[],h=[];if(„macro“===n.type&&!function e(t){„string“!==t.type&&„hook“!==t.type&&t.children.every(e);var n=_(t.name);if(„macro“!==t.type||“prompt„!==n&&„confirm“!==n){if(„hook“===t.type&&!t.everyLeaf(function(e){return“error„===e.type?(h.push(e),k=r,!1):(k=r,!0)}))return k=r,!1}else f.push(t);return k=r,!0}(n),h.length)return k=r,{v:S.create(„syntax“,“This code hook's markup contained „+h.length+“ error„+(h.length?“s„:“„)+“:<br>\u2014„+h.map(function(e){return e.message}).join(“<br>\u2014„)).render(x(n.text))[0].outerHTML};d=f.map(function(e){return e.blockerTree=y.blockers.length,y.blockers.push(e),k=r,e.blockerTree});v+='<tw-expression type=“'+n.type+'„ name=“'+x(n.name||n.text)+'„'+(O.debug?' title=“'+x(n.text)+'„':“„)+(d.length?' blockers=“'+d+'„':“„)+' code=“'+y.code.length+'„></tw-expression>',y.code.push(n);break;default:v+=n.children&&n.children.length?C(n.children,y):n.text}k=r}(k);if(„object“===_typeof(e))return e.v}return v}return Object.freeze({exec:function(e){var r={code:[],blockers:[],source:[]},e=C(„string“==typeof e?T.lex(e).children:e,r),e=a(a.parseHTML(e,document,!0));return e.findAndFilter(„script:not([src])“).each(function(e,t){var n=t.getAttribute(„type“);n&&„text/javascript“!==n.toLowerCase()||t.setAttribute(„type“,“application/x-harlowe„)}),r.blockers=r.blockers.map(function(e){e.blockedValue=!0;e=Object.create(e);return e.blockedValue=!1,e}),e.findAndFilter(„tw-expression[code]:not([data-raw]), tw-expression[blockers]:not([data-raw]), tw-hook[source]:not([data-raw])“).each(function(e,t){var n;(t=a(t)).attr(„blockers“)&&(n=t.popAttr(„blockers“).split(“,„).map(function(e){return r.blockers[e]}),t.data(„blockers“,n)),t.attr(„source“)&&t.data(„source“,r.source[t.popAttr(„source“)]),t.attr(„code“)&&t.data(„code“,r.code[t.popAttr(„code“)])}),e}})}),define(„repl“,[„utils“,“engine„,“markup„,“section„],function(e,t,n){e.onStartup(function(){return setTimeout(function(){e.options.debug&&(window.REPL=function(e){e=n.create().eval(t.lex(“(print:„+e+“)„));return e.TwineScript_Run?e.TwineScript_Run().source:e},window.LEX=function(e){e=t.lex(e);return 1===e.length?e[0]:e})})})}),define(„section“,[„jquery“,“utils„,“twinescript/runner„,“twinescript/operations„,“state„,“utils/operationutils„,“utils/renderutils„,“utils/scripttag„,“datatypes/changercommand„,“datatypes/colour„,“datatypes/lambda„,“datatypes/codehook„,“internaltypes/changedescriptor„,“internaltypes/varscope„,“internaltypes/twineerror„,“internaltypes/twinenotifier„],function(p,u,a,d,r,e,t,i,f,h,o,m,y,g,v,b){var w=e.printBuiltinValue,k=e.objectName,T=e.typeID,S=e.isObject,s=t.collapse,x=Object.assign,_=Object.create,O=Object.keys;function A(e,t,n){if(t&&„object“===_typeof(t)&&f.isPrototypeOf(t)){var r=n.popData(„source“)||(null==(r=n[0].cachedData)?void 0:r.source),a=(null!=(a=n[0])&&a.cachedData&&(n[0].cachedData.source=void 0),n.data(„originalSource“,r),y.create({target:n,source:r,section:this,append:„append“})),o=t.run(a);if(v.containsError(o)&&e.replaceWith(o.render(e.attr(„title“))),!this.renderInto(r,null,a))return o=u.insensitiveName(e.attr(„name“)),[„if“,“elseif„,“unless„,“else„,“testfalse„].includes(o)&&(e.addClass(„false“),“elseif„!==o&&(this.stackTop.lastHookShown=!1)),n.data(„live“)&&function(t,n,r){function a(e){p&&(d-=e-p),p=e,0<d?requestAnimationFrame(a):(d=s,o())}var o,i=this,e=r.data(„live“),s=e.delay,c=e.event,l=38).data=x({},n.data,{live:void 0}),r.data(„originalSource“)||“„),u=this.stackTop.tempVariables,p=null,d=s;o=this.whenUnblocked.bind(this,function(){var e;i.inDOM()&&(e=null==c?void 0:c.filter(i,[!0],u),v.containsError(e)?e.render(i,t.attr(„title“)).replaceAll(t):c&&!e[0]?requestAnimationFrame(a):(i.renderInto(l,r,n,u),e||r.find(„tw-expression[name='stop']“).length||i.inDOM()&&requestAnimationFrame(a)))}),requestAnimationFrame(a)}.call(this,e,a,n),!0}else{if(!1===t)return o=n.popData(„source“)||(null==(r=n[0].cachedData)?void 0:r.source),null!=(a=n[0])&&a.cachedData&&(n[0].cachedData.source=void 0),o&&(n.cachedData&&(n.cachedData.source=void 0),n.data(„originalSource“,o),n.data(„hidden“,!0)),e.addClass(„false“),!(this.stackTop.lastHookShown=!1);if(!0!==t)return!1}return this.stackTop.lastHookShown=!0}function E(e){var t,n,e=(e instanceof p?e[0]:e).nextSibling;return e&&(e instanceof Text&&!e.textContent.trim()||[„br“,“tw-consecutive-br„].includes39))?(t=(n=E(e)).whitespace,n=n.nextElem,{whitespace:p(e).add(t),nextElem:n}):{whitespace:p(),nextElem:p(e)}}function C(e){if(null!=e&&e.length)return p(“<tw-open-button replay label='\ud83d\udd0d'>„).data(„evalReplay“,e)}var c={add:[],remove:[]};return Object.preventExtensions({create:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:u.storyElement,n=x(_(this),{timestamp:Date.now(),dom:e,stack:[],enchantments:[],unblockCallbacks:[],freeVariables:null,evalReplay:null,loadedGame:!1,Identifiers:{TwineScript_Identifiers:!0,it:0,get time(){var e;return null!=(e=n.stackTop)&&e.evaluateOnly?v.create(„operation“,“'time' can't be used in „.concat(n.stackTop.evaluateOnly,“.„)):Date.now()-n.timestamp},get turns(){return r.turns},get turn(){return r.turns},get visits(){var t=n.stackTop.speculativePassage;return r.history().filter(function(e){return e===(t||r.passage)}).length+(!t||t===r.passage)},get visit(){return n.Identifiers.visits},get exits(){var e;return null!=(e=n.stackTop)&&e.evaluateOnly?v.create(„operation“,“'exit' and 'exits' can't be used in „.concat(n.stackTop.evaluateOnly,“.„)):n.dom.find(„tw-enchantment, tw-link“).filter(function(e,t){return(t=p(t)).data(„enchantmentEvent“)||t.parent().data(„linkPassageName“)||t.parent().data(„clickEvent“)}).length},get exit(){return n.Identifiers.exits},get pos(){return n.stackTop&&!n.stackTop.evaluateOnly&&n.stackTop.lambdaPos?+n.stackTop.lambdaPos||1:v.create(„operation“,“'pos' can only be used in lambdas that aren't 'when' lambdas.„)}}});return n},eval:function(t){var e,n;u.options.debug&&u.options.evalReplay&&(n=Array.isArray(t)?t.reduce(function(e,t){return e+t.text},“„):t.text||“„,this.evalReplay=[{code:n,fromCode:n,basis:(Array.isArray(t)?t[0]:t).start,start:0,end:n.length,diff:0}]);try{e=a(this,t)}catch(e){return null!=(n=window.console)&&n.error(e),this.evalReplay=null,v.create(“„,“An internal error occurred while trying to run „.concat([].concat(t).map(function(e){return e.text}).join(“„),“.„),'The error was “'.concat(e.message,'„.\nIf this is the latest version of Harlowe, please consider reporting a bug (see the documentation).'))}return this.evalReplay&&2===this.evalReplay.length&&this.evalReplay.shift(),e},get stackTop(){return this.stack[0]},inDOM:function(){return 0<u.storyElement.find(this.dom).length},evaluateTwineMarkup:function(e,t){var n=p(“<p>„);return this.stack.unshift({desc:y.create({target:n,source:e,section:this,append:„append“}),tempVariables:this.stackTop.tempVariables,evaluateOnly:t,finalIter:!0}),this.execute(),0<(e=n.find(„tw-error“)).length?e:n},speculate:function(e,t,n){this.stack.unshift({evaluateOnly:n,finalIter:!0,tempVariables:x(_(g),{TwineScript_VariableStore:{type:„temp“,name:n}}),speculativePassage:t});var r,n=this.evalReplay;return this.evalReplay=null,o.isPrototypeOf(e)?r=e.apply(this,{fail:!1,pass:!0}):e&&(r=a(this,e)),this.stack.shift(),this.evalReplay=n,r},renderInto:function(e,a,t){var o=this,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,i=y.create({target:a,source:e,section:this,append:„append“});if(t)if(f.isPrototypeOf(t)){var e=t.run(i);if(v.containsError(e))return e.render(a.attr(„title“)).replaceAll(a),!1}else x(i,t);if40)return v.create(„infinite“,“Printing this expression may have trapped me in an infinite loop.„).render(a.attr(„title“)).replaceAll(a),!1;function s(e,t,n){var r=a instanceof p&&a.is(„tw-hook“)&&0<a.parents(„tw-collapsed,[collapsing=true]“).length;o.stack.unshift({desc:e,finalIter:n,tempVariables:t,collapses:r,evaluateOnly:o.stackTop&&o.stackTop.evaluateOnly})}r=r||_(this.stack.length?this.stackTop.tempVariables:g),hasOwnProperty.call(r,“TwineScript_VariableStore„)||(t=null==(e=a)?void 0:e.tag(),r.TwineScript_VariableStore={type:„temp“,name:„tw-hook“===t?a.attr(„name“)?“?„+a.attr(„name“):„an unnamed hook“:„tw-expression“===t?“a „+a.attr(„type“)+“ expression„:„tw-passage“===t?“this passage„:„an unknown scope“}),t=null==(e=this.stackTop)?void 0:e.blocked;if(O(i.loopVars).length){var c=x({},i.loopVars),l=Math.min.apply(Math,_toConsumableArray(O©.map(function(e){return c[e].length})));if(b.create(l+“ loop„+(1!==l?“s„:“„)).render().prependTo(a),l){for(var n=l-1;0⇐n;–n)!function(n){s(i,O©.reduce(function(e,t){return e[t]=c[t][n],e},_®,n===l-1))}(n);for(var u=l-1;0⇐u&&!o.stackTop.blocked;–u)o.execute()}}else s(i,r,!0),this.execute();return(0===this.stack.length||!t&&null!=(e=this.stackTop)&&e.blocked)&&this.updateEnchantments(),i.enabled},execute:function(){var a=this,e=this.stackTop,t=e.desc,n=e.dom,r=e.collapses,o=e.evaluateOnly;t&&!n&&(n=t.render(),this.stackTop.dom=n,this.stackTop.desc=void 0),n.findAndFilter('tw-hook,tw-expression,script[type=„application/x-harlowe“]').each(function(e,t){var n=p(t).data();t.cachedData={blockers:n.blockers,code:n.code,source:n.source}}).each(function(e,t){if(a.stackTop.blocked)return!1;var n=t.cachedData;switch(n&&(t.cachedData=void 0),(t=p(t)).tag()){case“tw-hook„:var r=t.popData(„source“)||(null==n?void 0:n.source);if(r&&t.data(„originalSource“,r),t.data(„tempVariables“,a.stackTop.tempVariables),t.popAttr(„hidden“)){t.data(„hidden“,!0);break}r&&a.renderInto(r,t);break;case“tw-expression„:var r=t.data(„blockers“)||(null==n?void 0:n.blockers);if®{if(o)return void t.removeData(„blockers“).removeData(„code“).replaceWith(v.create(„syntax“,“I can't use a macro like (prompt:) or (confirm:) in „.concat(o,“.„),“Please rewrite this without putting such macros here.„).render(t.attr(„title“),t));if(r.length)return a.stackTop.blocked=!0,r=a.eval(r.shift()),v.containsError®&&(a.stackTop.blocked=!1,t.removeData(„blockers“).replaceWith(r.render(t.attr(„title“),t))),!1;t.removeData(„blockers“)}r=t.popData(„code“)||(null==n?void 0:n.code);r&&!function(e,t){var n=this.eval(t),r=(e.append(C(this.evalReplay)),this.stackTop.evaluateOnly&&n&&(f.isPrototypeOf(n)||“function„==typeof n.TwineScript_Run)&&(n=v.create(„syntax“,“I can't work out what „.concat(this.stackTop.evaluateOnly,“ should evaluate to, because it contains a „).concat(f.isPrototypeOf(n)?“changer.„:„command.“),“Please rewrite this without putting changers or commands here.„)),p());for(i=e;f.isPrototypeOf(n);){var a=E(i),o=a.whitespace;if41){var i,a=i,s=E(a),c=s.whitespace;if42){var s=i.popData(„code“)||(null==(s=i[0])||null==(s=s.cachedData)?void 0:s.code),l=(null!=(l=i[0])&&l.cachedData&&(i[0].cachedData.code=void 0),this.eval(s));if(v.containsError(l)){n=l;break}s=d[“+„](n,l);p(o).add(a).add©.remove(),n=v.containsError(s)?v.create(„operation“,“I can't combine „+k(n)+“ with „+k(l)+“.„,“function„==typeof l.TwineScript_Run?“If you want to attach this changer to „.concat(k(l),“, remove the + between them.„):„Changers can only be added to other changers.“):s;continue}}if(i.is(„tw-expression“)){l=i.popData(„code“)||(null==(a=i[0])||null==(c=a.cachedData)?void 0:c.code),a=(null!=(s=i[0])&&s.cachedData&&(i[0].cachedData.code=void 0),this.eval(l));if(i.append(C(this.evalReplay)),v.containsError(a)){n=a;break}if(a&&„object“===_typeof(a)&&„function“==typeof a.TwineScript_Attach){n=a.TwineScript_Attach(this,n);break}return f.isPrototypeOf(a)?void e.replaceWith(v.create(„operation“,“Changers like („.concat(n.macroName,“:) need to be combined using + between them.„),“Place the + between the changer macros, or the variables holding them. The + is absent only between a changer and its attached hook or command.„).render(e.attr(„title“))):void e.replaceWith(v.create(„operation“,“„.concat(k(a),“ can't have changers like („).concat(n.macroName,“:) attached.„),“Changers placed just before hooks, links and commands will attempt to attach, but in this case it didn't work.„).render(e.attr(„title“)))}if(i.is(„tw-hook“)){o.remove(),r=i;break}n.macroName||u.impossible(„Section.runExpression“,“changer has no macroName„);a=e.attr(„title“)||“(„+n.macroName+“: …)„;return void e.replaceWith(v.create(„syntax“,“The („.concat(n.macroName,“:) changer should be stored in a variable or attached to a hook.„),“Macros like this should appear before a hook: „.concat(a,“[Some text]„)).render(e.attr(„title“)))}e.attr(„return“,T(n)),r=r.length?r:E(e).nextElem.filter(„tw-hook“),(t=v.containsError(n))?e.replaceWith(t.render(e.attr(„title“)).append(C(this.evalReplay))):b.isPrototypeOf(n)?e.append(n.render()):n&&„function“==typeof n.TwineScript_Run?(n=n.TwineScript_Run(this),v.containsError(n)?e.replaceWith(n.render(e.attr(„title“))):y.isPrototypeOf(n)?null!=(t=n.data)&&t.live?e.replaceWith(v.create(„unimplemented“,“I currently can't attach (live:) or (event:) macros to commands - only hooks.„).render(e.attr(„title“))):(n.section=this,n.target=i,this.renderInto(“„,i,n)):S(n)&&n.blocked?(this.stackTop.blocked=n.blocked,e.data(„code“,{type:„macro“,blockedValue:!0,text:e.attr(„title“)||“„,start:0,end:(e.attr(„title“)||“„).length})):n&&u.impossible(„Section.runExpression“,“TwineScript_Run() returned a non-ChangeDescriptor „.concat(_typeof(n),': “').concat(n,'„'))):r.length&&A.call(this,e,n,r)||(„string“==typeof n||“number„==typeof n||n instanceof Map||n instanceof Set||Array.isArray(n)||h.isPrototypeOf(n)||m.isPrototypeOf(n)||n&&„function“==typeof n.TwineScript_Print&&!f.isPrototypeOf(n)?(n=w(n),v.containsError(n)?e.replaceWith(n.render(e.attr(„title“))):„string“==typeof n||Array.isArray(n)?this.renderInto(n,e):u.impossible(„printBuiltinValue() produced a non-string non-array “.concat(_typeof(n)))):f.isPrototypeOf(n)||“boolean„==typeof n||u.impossible(„Section.runExpression“,“The expression evaluated to an unknown value: „.concat(n)))}.call(a,t,r);break;case“script„:if(u.reattachStoryElement(),!t.text())break;try{i(t.text(),a.stackTop.tempVariables)}catch(e){v.isPrototypeOf(e)?t.replaceWith(e.render(t.text(),t)):(null!=(r=window.console)&&r.error(e),t.replaceWith(v.create(“„,“A Javascript error occurred while running this <script> element.„,'The error was “'.concat(e,'„. Check the browser console for more details.')).render(t.text(),t)))}}}),this.stackTop.blocked||(n.length&&r&&s(n),n.findAndFilter(„tw-collapsed,[collapsing=true]“).each(function(){s(p(this))}),setTimeout(function(){return n.find(„input, textarea“).first().focus()},100),this.stack.shift())},updateEnchantments:function(){this.enchantments.forEach(function(e){e.disenchant(),e.enchantScope()})},on:function(e,t){return c[e].push(t),this},addEnchantment:function(t){var n=this;this.enchantments.push(t),c.add.forEach(function(e){return e(n,t)})},removeEnchantment:function(t){var n=this,e=this.enchantments.indexOf(t);this.enchantments.splice(e,1),t.disenchant(),c.remove.forEach(function(e){return e(n,t)})},unblock:function(e){for(this.stack.length||u.impossible(„Section.unblock“,“stack is empty„),this.stackTop.blocked=!1,void 0!==e&&(this.stackTop.blockedValues=(this.stackTop.blockedValues||[]).concat(e));this.stack.length&&!this.stackTop.blocked;)this.execute();if(!this.stack.length)for(;0<this.unblockCallbacks.length;){var t;if(this.unblockCallbacks.shift()(),null!=(t=this.stackTop)&&t.blocked)return}},whenUnblocked:function(e,t){this.stack.length&&this.stackTop.blocked?this.unblockCallbacks=this.unblockCallbacks.concat(e):(t||e)()},blockedValue:function(){var e=this.stackTop;return e?e.blockedValues&&e.blockedValues.length?e.blockedValues.shift():(u.impossible(„Section.blockedValue“,“blockedValues is missing or empty„),0):(u.impossible(„Section.blockedValue“,“stack is empty„),0)}})}),define(„state“,[„jquery“,“utils„,“passages„,“datatypes/customcommand„,“utils/operationutils„,“markup„],function(n,d,f,h,e,t){var i,m,E=e.toSource,C=e.is,y=t.lex,o=Object.assign,g=Object.create,e=Object.defineProperty,N=Array.isArray,s=Math.imul,t=(e(Map.prototype,“toJSON„,{value:void 0}),e(Set.prototype,“toJSON„,{value:void 0}),[„localStorage“,“sessionStorage„].map(function(e){try{return!!window[e]&&(window[e].setItem(„test“,“1„),window[e].removeItem(„test“),!0)}catch(e){return!1}}));function v(e,t){var n=0<arguments.length&&void 0!==e?e:String.fromCodePoint(Date.now()%1114112),e=1<arguments.length&&void 0!==t?t:0;i.seedIter=e,i.seed=n;for(var r,a=0,o=2166136261;a<n.length;a+=1)r=s(n.charCodeAt(a),3432918353),o^=s(r«15|r»>17,461845907),o=s(o=o«13|o»>19,5)+3864292196|0;return o^=n.length,o=s(o^=o»>16,2246822507),o=s(o^=o»>13,3266489909),o=43)^e»>14)»>0)/4294967296}}function r(e,t){for(var n,r=t.variables,a=g(null),o=e.length-1;0⇐o;–o){for(var i,s,c=e[o],l=0,u=[„mockVisits“,“mockTurns„,“seed„,“seedIter„];l<u.length;l){var p=u[l];hasOwnProperty.call(c,p)&&!hasOwnProperty.call(t,p)&&(t[p]=c[p])}for(i in c.forgetVisits&&(t.forgetVisits=Math.max(t.forgetVisits )t+=+(e===i.history[n]);return t},get timeline(){return u},play:function(t){var e;b||d.impossible(„State.play“,“present is undefined!„),l.beforeForward.forEach(function(e){return e()}),b.passage&&44),b.passage=t,u=u.slice(0,p+1).concat(b),p+=1,S(t),l.forward.forEach(function(e){return e(t)})},redirect:function(e){var t;b||d.impossible(„State.redirect“,“present is undefined!„),b.passage&&(null!=(t=b.visits)&&t.length&&Array.isArray(i.pastVisits[i.pastVisits.length-1])?i.pastVisits[i.pastVisits.length-1].push(b.passage):i.pastVisits.push([b.passage]),i.history.push(b.passage)),b.visits=(b.visits||[]).concat(e),b.passage=e},rewind:function(e){for(var t=void 0!==e?e:1,n=!1;0<t&&0<p;t–)n=!0,–p;return n&&(l.beforeBack.forEach(function(e){return e()}),w=“„,S(u[p].passage),T(),l.back.forEach(function(e){return e()})),n},fastForward:function(e){var t=1,n=!1;for(„number“==typeof e&&(t=e);0<t&&0<u.length;t–)n=!0,p+=1;return n&&(l.beforeForward.forEach(function(e){return e()}),S(u[p].passage),T(),l.forward.forEach(function(e){return e(u[p].passage,“fastForward„)})),n},on:function(e,t){if(e in l)return“function„!=typeof t||l[e].includes(t)||l[e].push(t),a;d.impossible(„State.on“,“invalid event name„)},reset:function(){l.beforeLoad.forEach(function(e){return e()}),u=[],p=-1,T(),(b=c.create()).seed=i.seed,b.seedIter=0,w=“„,m=v(),l.load.forEach(function(e){return e(u)})},hasStorage:t[0],hasSessionStorage:t[1],setSeed:function(e){m=v(e),b.seed=i.seed,b.seedIter=0},get seed(){return i.seed},get seedIter(){return i.seedIter},random:function(){var e=);return b.seedIter=i.seedIter,e},shuffled:function(){for(var a=this,e=arguments.length,t=new Array(e),n=0;n<e;n)t[n]=arguments[n];var r=t.reduce(function(e,t,n){var r=a.random()*(n+1) )t[n]=arguments[n];for(var r,a,o=t.length,i=|t+"s":t)},andList:function(e){return e.length<=1?e[0]:e.slice(0,-1).join(", ")+" and "+e[e.length-1]},realWhitespace:"[ \\n\\r\\f\\t\\v\\u00a0\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]",anyRealLetter:"[\\dA-Za-z\\u00c0-\\u00de\\u00df-\\u00ff\\u0150\\u0170\\u0151\\u0171\\uD800-\\uDFFF]",anyUppercase:t,anyLowercase:o,anyCasedLetter:e,anyNewline:"(?:\\n|\\r|\\r\\n)",unescape:function(e){return e.replace(/&(?:amp|lt|gt|quot|nbsp|zwnj|#39|#96);/g,function(e){return{"&":"&",">":">","<":"<",""":'"',"'":"'"," ":String.fromCharCode(160),"‌":String.fromCharCode(8204)}[e]})},escape:function(e){return e.replace(/[&><"']/g,function(e){return{"&":"&",">":">","<":"<",'"':""","'":"'"}[e]})},insensitiveName:function(e){return(e+"").toLowerCase().replace(v,"")},allKeysDown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){return u[e]})},someKeysDown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some(function(e){return u[e]})},buttonsDown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){return h[e]})},anyInputDown:function(){return 0<p+m},mouseCoords:y,parentColours:function(e){for(var t,n={colour:null,backgroundColour:null},r=/^\w+a\(.+?,\s*0\s*\)$|^transparent$/;e.length&&e[0]!==document;e=e.parent())if(n.backgroundColour||((t=e.css("background-color")).match(r)||(n.backgroundColour=t)),n.colour||((t=e.css("color")).match(r)||(n.colour=t)),n.colour&&n.backgroundColour)return n;return{colour:"#fff",backgroundColour:"#000"}},childrenProbablyInline:function(e){var t=[];return[].every.call(e.findAndFilter("*"),function(e){if(!(e.hidden||/none|inline/.test(e.style.display)||/display: (none|inline)/.test(e.getAttribute("style")))){if(n.includes(e.tagName.toLowerCase())||/display: (?!none|inline|inherit|unset)/.test(e.getAttribute("style")))return!1;a.includes(e.tagName.toLowerCase())||t.push(e)}return!0})&&t.every(function(e){return window.getComputedStyle(e).display.includes("inline")})},transitionOut:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,i=6<arguments.length&&void 0!==arguments[6]?arguments[6]:void 0;0!==e.length&&(n=n||s(t),!(1<e.length)&&b.childrenProbablyInline(e)&&["tw-hook","tw-passage","tw-sidebar","tw-expression"].includes(e.tag())||(e=e.wrapAll("<tw-transition-container>").parent()),i&&e.css("transform-origin",i),e.attr("data-t8n",t).addClass("transition-out").css({"animation-duration":"".concat(n,"ms"),"animation-delay":"".concat(-o,"ms"),"animation-play-state":"paused"}),requestAnimationFrame(function(){b.childrenProbablyInline(e)?e.css("display","inline"):e.parent().is("tw-backdrop,tw-story")||e[0].setAttribute("style",e[0].getAttribute("style")+"display:block !important;width:100%")}),g(e,n,r-o,a,function(){e.remove()}))},transitionIn:function(u,e,t){var p,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,o=6<arguments.length&&void 0!==arguments[6]?arguments[6]:void 0;0!==u.length&&(t=t||s(e),(p=1<u.length||!b.childrenProbablyInline(u)||!["tw-hook","tw-passage","tw-sidebar","tw-expression"].includes(u.tag()))&&(u=u.wrapAll("<tw-transition-container>").parent()),o&&u.css("transform-origin",o),u.attr("data-t8n",e).addClass("transition-in").css(Object.assign({"animation-duration":"".concat(t,"ms"),"animation-delay":"".concat(-a,"ms")},n-a?{visibility:"hidden","animation-play-state":"paused"}:{})),requestAnimationFrame(function(){b.childrenProbablyInline(u)?u.css("display","inline"):u.parent().is("tw-backdrop,tw-story")||u[0].setAttribute("style",u[0].getAttribute("style")+"display:block !important;width:100%")}),g(u,t,n-a,r,function(){var e=0===u.filter(f.join(",")).length;if(p&&e){u.find("tw-transition-container, .transition-in, .transition-out").each(function(e,t){((t=d(t)).data("expediteAnim")||Object)()});for(var t=[],n=u.find("*"),r=0;r<n.length;r+=1){var a=n[r];0===a.scrollTop&&0===a.scrollLeft||t.push([a,a.scrollLeft,a.scrollTop])}e=u.find(document.activeElement);u.contents().unwrap();for(var o=0,i=t;o<i.length;o++){var s=_slicedToArray(i[o],3),c=s[0],l=s[1],s=s[2];c.scrollLeft=l,c.scrollTop=s}e.length&&e[0].focus()}else u.removeClass("transition-in").removeAttr("data-t8n")}))},debounce:function(e){function t(){300<Date.now()-c?(n=0,l=!i,o?(e(s),s=[]):e.apply(void 0,_toConsumableArray(s)),l=!1):n=requestAnimationFrame(t)}var n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=r.batch,o=void 0!==a&&a,a=r.recur,i=void 0!==a&&a,s=[],c=0,l=!1;return function(){l||(c=Date.now(),o?s.push(arguments):s=arguments,n&&cancelAnimationFrame(n),n=requestAnimationFrame(t))}},impossible:function(e,t){window.console&&console.error(e+"(): "+t)},onStartup:function(e){l?l.push(e):e()},get storyElement(){return i},detachStoryElement:function(){document.documentElement.contains(i[0])&&(c=i.parent(),i.detach())},reattachStoryElement:function(){document.documentElement.contains(i[0])||(c||d(document.body)).append(i.parents().length?i.parents().last():i)},options:{}};return d(function(){i=d("tw-story"),l.forEach(function(e){return e()}),l=null}),Object.freeze(b)}),define("datatypes/assignmentrequest",["utils/operationutils","datatypes/typedvar","datatypes/datatype","internaltypes/varref","internaltypes/twineerror"],function(e,g,v,b,w){var k=e.objectName,T=e.matches,t=e.toSource;return Object.freeze({assignmentRequest:!0,TwineScript_TypeName:"a VariableToValue (a 'to' or 'into' expression)",TwineScript_ObjectName:"a VariableToValue (a 'to' or 'into' expression)",TwineScript_ToSource:function(){return"into"===this.operator?"".concat(t(this.src)," ").concat(this.operator," ").concat(t(this.dest)):"".concat(t(this.dest)," ").concat(this.operator," ").concat(t(this.src))},TwineScript_Unstorable:!0,set:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=[],r=function e(t,n,r){var a=!(2<arguments.length&&void 0!==r)||r,o=[],i=n&&b.isPrototypeOf(n)?n.get():n;if(w.containsError(i))return i;if(Array.isArray(i)&&Array.isArray(t)){for(var s=0,c=0;s<t.length&&c<i.length;){var l=t[s],u=i[c];if(g.isPrototypeOf(l)&&l.datatype.rest||v.isPrototypeOf(l)&&l.rest){for(var p=c;c<i.length&&T(l,u);)u=i[c+=1];g.isPrototypeOf(l)?l.datatype=[l.datatype]:v.isPrototypeOf(l)&&(l=v.create("array")),o=o.concat(e(l,b.isPrototypeOf(n)?b.create(n,{first:p+1,last:c+1}):i.slice(p,c)))}else o=o.concat(e(l,b.isPrototypeOf(n)?b.create(n,c+1):u)),c+=1;s+=1}return s<t.length?a&&w.create("operation","I can't unpack this array because it needs ".concat(t.length-s," more value").concat(0<t.length-s?"s":"",".")):o}if(t instanceof Map&&i instanceof Map){var d,f=_createForOfIteratorHelper(t.entries());try{for(f.s();!(d=f.n()).done;){var h=_slicedToArray(d.value,2),m=h[0],y=h[1];if(!i.has(m))return a&&w.create("operation","I can't unpack this datamap because it needs a '"+m+"' data name.");o=o.concat(e(y,b.isPrototypeOf(n)?b.create(n,m):i.get(m)))}}catch(e){f.e(e)}finally{f.f()}return o}if(g.isPrototypeOf(t)){if("function"==typeof t.datatype.destructure)return[{dest:t,value:i,src:n}].concat(t.datatype.destructure(i));if(!T(i,t.datatype))return a&&w.create("operation","I can't put ".concat(k(i)," into ").concat(t.varRef.TwineScript_ToSource()," because it doesn't match ").concat(t.varRef.TwineScript_ToSource(),"'s datatype, ").concat(k(t.datatype),"."));o=o.concat(e(t.datatype,i))}return b.isPrototypeOf(t)||g.isPrototypeOf(t)?o.concat({dest:t,value:i,src:n}):"function"==typeof t.destructure?o.concat(t.destructure(i)):T(i,t)?o:a&&w.create("operation","I tried to unpack, but "+k(t)+" in the pattern didn't match "+k(i)+".")}(this.dest,this.src);if(e=w.containsError(r))return e;if(!r.length)return w.create("operation","I can't store a new value inside "+k(this.dest)+" that isn't in a variable.","You need a variable, or a data structure containing variables at certain positions, to store the value.");var a,o=_createForOfIteratorHelper(r.reverse());try{for(o.s();!(a=o.n()).done;){var i=a.value,s=i.dest,c=i.value,l=i.src;if(g.isPrototypeOf(s)){if(e=w.containsError(s.defineType()))return e;s=s.varRef}if(e=s.set(c,this.srcRef),w.isPrototypeOf(e))return e;t&&l&&l.delete(),n.shift(k(s)+" is now "+k(c))}}catch(e){o.e(e)}finally{o.f()}return n.join("; ")},create:function(e,t,n,r){return w.containsError(e)?e:w.containsError(t)?t:Object.assign(Object.create(this),{dest:e,src:t,operator:n,srcRef:r})}})}),define("datatypes/changercommand",["utils","utils/operationutils","internaltypes/changedescriptor","internaltypes/twineerror"],function(e,t,n,r){var i=e.plural,a=e.impossible,o=t.is,s=t.toSource,c={},l={TwineScript_TypeID:"changer",TwineScript_TypeName:"a changer",TwineScript_Print:function(){return"`[A ("+this.macroName+":) changer]`"},TwineScript_ToSource:function(){return"("+this.macroName+":"+("else"===this.name?"":this.params.map(s))+")"+(this.next?"+"+this.next.TwineScript_ToSource():"")},get TwineScript_ObjectName(){1===this.params.length&&36<(e=s(this.params[0])).length&&(e=void 0);for(var e,t="a (".concat(this.macroName,":").concat(e||"",") changer"),n=this.next,r=(n&&(t+=" combined with "),0);n&&t.length<48;){var a="(".concat(n.macroName,":)");t+=(0<r&&!n.next?" and ":"")+a+(n.next?", ":""),n=n.next,r+=1}for(var o=0;n&&o<99;)n=n.next,o+=1;return 0<o&&(t+="".concat(0<r?" and ":"").concat(i(o,"other changer"))),t},summary:function(){var e=n.create();return this.run(e),e.summary()},create:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];return Array.isArray(t)||a("ChangerCommand.create","params was not an array but "+t),Object.assign(Object.create(this),{macroName:e,params:t,next:n,canEnchant:r})},"TwineScript_+":function(e){for(var t=this.TwineScript_Clone(),n=t;n.next;)n=n.next;return n.next=e,t.canEnchant=this.canEnchant&&e.canEnchant,t},TwineScript_is:function(e){if(l.isPrototypeOf(e))return this.macroName===e.macroName&&o(this.params,e.params)&&o(this.next,e.next)},TwineScript_Clone:function(){for(var e=l.create(this.macroName,this.params,this.next),t=e;t.next;)t=t.next=t.next.TwineScript_Clone();return e.canEnchant=this.canEnchant,e},run:function(e,t){var n="output"===this.macroName?[t||this]:this.params,n=c[this.macroName].apply(c,[e].concat(_toConsumableArray(n)));if(r.containsError(n))return n;this.next&&this.next.run(e,t||this)},register:function(e,t){c[e]=t}};return Object.freeze(l)}),define("datatypes/codehook",[],function(){var t=Object.freeze({TwineScript_TypeName:"a code hook",TwineScript_ObjectName:"a code hook",TwineScript_ToSource:function(){return this.source},TwineScript_Print:function(){return this.code},TwineScript_toString:function(){return this.source},TwineScript_is:function(e){return t.isPrototypeOf(e)&&this.source===e.source},TwineScript_Clone:function(){return t.create(this.code,this.source)},create:function(e,t){return Object.assign(Object.create(this),{code:e,source:t})}});return t}),define("datatypes/colour",["jquery"],function(n){var l=Math.max,u=Math.min,a=Math.sin,o=Math.cos,i=Math.pow,p=Math.round,c=Math.floor,s=Math.atan2,d=Math.cbrt,f=Math.sqrt,h=Math.PI,m=Object.assign,t=Object.create,r=/^([\da-fA-F])([\da-fA-F])([\da-fA-F])$/,y=/^([\da-fA-F])([\da-fA-F])([\da-fA-F])([\da-fA-F])([\da-fA-F])([\da-fA-F])$/,g=t(null);function v(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if(0<r.length)return v.apply(void 0,[v(e,t)].concat(r));if(!t)return e;for(var o=[],i=0;i<e.length;i++){o[i]=[];for(var s=0;s<t[0].length;s++){for(var c=0,l=0;l<e[0].length;l++)c+=e[i][l]*t[l][s];o[i][s]=c}}return o}function b(e){var t,n=e.r,r=e.g,a=e.b,e=e.a,o=l(n/=255,r/=255,a/=255),i=u(n,r,a),s=(o+i)/2,c=o-i;if(o===i)return{h:0,s:0,l:s};switch(o){case n:t=(r-a)/c+(r<a?6:0);break;case r:t=(a-n)/c+2;break;case a:t=(n-r)/c+4}return{h:t=p(60*t),s:.5<s?c/(2-o-i):c/(o+i),l:s,a:e}}var w=[.9642956764295677,1,.8251046025104602],k=24389/27,T=216/24389,S=function(e){return e.map(function(e){return[e]})},x=function(e){return e.map(function(e){return e[0]})};function _(e){var t=e.l,n=e.c,r=e.h,e=e.a,n=[t*=100,n*o(r*h/180),n*a(r*h/180)],r=[];r[1]=(n[0]+16)/116,r[0]=n[1]/500+r[1],r[2]=r[1]-n[2]/200;n=[i(r[0],3)>T?i(r[0],3):(116*r[0]-16)/k,k*T<t?i((16+t)/116,3):t/k,i(r[2],3)>T?i(r[2],3):(116*r[2]-16)/k].map(function(e,t){return e*w[t]}),t=_slicedToArray(x(v([[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786,v(.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753,S(n)))).map(function(e){return u(255,l(0,255*(.0031308<(e=e)?1.055*i(e,1/2.4)-.055:12.92*e)))}),3);return{r:t[0],g:t[1],b:t[2],a:e}}function e(e){function t(e){return 1e-5⇐n[e]&&n[e]⇐255-1e-5}var n=_(e);if(Object.keys(n).every(t))return n;var r=(e=
{},e)).c,a=0;for(e.c/=2;1e-5<r-a;)n=_(e),Object.keys(n).every(t)?a=e.c:r=e.c,e.c=(r+a)/2;return _(e)}var O=Object.freeze({TwineScript_TypeID:„colour“,TwineScript_TypeName:„a colour“,TwineScript_ObjectName:„a colour“,TwineScript_DebugName:function(){return“a colour „+this.TwineScript_Print()},“TwineScript_+„:function(e){var t=this.toRGBA(),e=e.toRGBA();return O.create({r:u(p(.6*(t.r+e.r)),255),g:u(p(.6*(t.g+e.g)),255),b:u(p(.6*(t.b+e.b)),255),a:(t.a+e.a)/2})},TwineScript_Print:function(){var e=this.toRGBA();return“<tw-colour style='background-color:rgba(„+[e.r,e.g,e.b,e.a]+“);'></tw-colour>„},TwineScript_is:function(e){if(!O.isPrototypeOf(e))return!1;if(e.lcha&&this.lcha)return e.lcha.l===this.lcha.l&&e.lcha.c===this.lcha.c&&e.lcha.h===this.lcha.h&&e.a===this.a;var t=this.toRGBA();return(e=e.toRGBA()).r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},TwineScript_Clone:function(){return O.create(this)},toRGBAString:function(){var e=this.toRGBA(),t=e.r,n=e.g,r=e.b,e=e.a;return“rgba(„.concat(t,“, „).concat(n,“, „).concat(r,“, „).concat(e,“)„)},toHSLA:function(){return b(this.toRGBA())},toRGBA:function(){return this.lch?e(
{a:this.a},this.lch)):this},toLCHA:function(){return this.lch?
{a:this.a},this.lch):(t=(e=this).r,n=e.g,r=e.b,e=e.a,n=[116*(t=x(v(1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008,v(.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607,S([t/255,n/255,r/255].map(function(e){return e<.04045?e/12.92:i46)))).map(function(e,t){return e/w[t]}).map(function(e){return T<e?d(e):(k*e+16)/116}))[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])],r=180*s(n[2],n[1])/h,{l:n[0]/100,c:f(i(n[1],2)+i(n[2],2)),h:0⇐r?r:360+r,a:e});var e,t,n,r},LCHRotate:function(e){e<0&&(e=360+e);var t=this.toLCHA();return t.h=(t.h+e)%360,O.create(t)},TwineScript_GetProperty:function(e){if(„lch“===e)return t=this.toLCHA(),new Map("l",t.l],["c",t.c],["h",t.h);var t=this.toRGBA();return“h„===e||“s„===e||“l„===e?b(t)[e]:„r“===e||“g„===e||“b„===e||“a„===e?t[e]:void 0},TwineScript_Properties:[„h“,“s„,“l„,“r„,“g„,“b„,“a„,“lch„],TwineScript_ToSource:function(){if(0===this.a)return“transparent„;var e=!this.lch&&b(this);if(1===e.l&&!e.h&&!e.s)return“white„;if(0===e.l&&!e.h&&!e.s)return“black„;if(.5⇐e.l&&e.l<.5334&&0===e.s)return“gray„;if(.5===e.l&&.8⇐e.s&&e.s<.804){var t={0:„red“,30:„orange“,60:„yellow“,90:„lime“,120:„green“,180:„cyan“,210:„blue“,240:„navy“,270:„purple“,300:„magenta“}[e.h];if(t)return t}return“(„.concat(this.lch?“lch„:„hsl“,“:„).concat(this.lch?[this.lch.l,this.lch.c,this.lch.h]:[e.h,e.s,e.l]).concat(1!==this.a?“,„+this.a:“„,“)„)},create:function(e){return“string„==typeof e?this.create47).replace(r,“$1$1$2$2$3$3„),{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)})}:function(e){if(e in g)return g[e];var t=„transparent“===(t=n(“<p>„).css(„background-color“,e).css(„background-color“))?{r:0,g:0,b:0,a:0}:t.startsWith(„rgb“)?t.match(/\d+/g).reduce(function(e,t,n){return e[„rgb“[n]]=+t,e},{}):{r:192,g:192,b:192};return g[e]=t})(e)):!(„h“in e&&„s“in e&&„l“in e)||“r„in e||“g„in e||“b„in e?(„a“in e&&„number“==typeof e.a||(e.a=1),“h„in e&&„c“in e&&!(„s“in e)&&„l“in e?m(t(this),{a:e.a,lch:{l:e.l,c:e.c,h:e.h}}):m(t(this),e)):this.create(function(e){var t,n=e.h,r=e.s,a=e.l,e=e.a;if(0===r)return{r:t=c(255*a),g:t,b:t};var o=a<.5?a*(1+r):a+r-a*r,i=2*a-o;function s(e){return e<0&&(e+=1),1<e&&–e,e<1/6?i+6*(o-i)*e:e<.5?o:e<2/3?i+(o-i)*(2/3-e)*6:i}return{r:c(255*s48),g:c(255*s(n)),b:c(255*s(n-1/3)),a:e}}(e))},isHexString:function(e){return“string„==typeof e&&“#„===e[0]&&(e.slice(1).match®||e.slice(1).match(y))},isCSS3Function:function(e){return“string„==typeof e&&/^(?:rgb|hsl)a?\(\s*\d+(?:\.\d+)?\s*,\s*\d+(?:\.\d+)?%?\s*,\s*\d+(?:\.\d+)?%?(?:,\s*\d+(?:\.\d+)?\s*)?\)$/.test(e)}});return O}),define(„datatypes/customcommand“,[„internaltypes/changedescriptor“,“internaltypes/twineerror„],function(l,u){var p=Object.assign,d=Object.create;return Object.seal({TwineScript_TypeID:„command“,TwineScript_ObjectName:„a custom command“,TwineScript_TypeName:„a custom command“,TwineScript_Print:function(){return“`[a custom command]`„},create:function(e){var t,n=e.toSource,r=e.changer,a=e.hook,o=e.variables,i={};for(t in o)i[t]=[o[t]];var s=l.create({source:a,loopVars:i},r);if(u.containsError(s))return s;var c=p(d(this),{TwineScript_Attach:function(e,t){s.section=e;e=t.run(s);return u.containsError(e)?e:c},TwineScript_Run:function(e){s.section=e;e=s;return s=l.create({source:a,loopVars:i},r),e},TwineScript_ToSource:function(){return n},TwineScript_CustomCommand:function(){return e}});return c}})}),define(„datatypes/custommacro“,[„jquery“,“utils„,“renderer„,“utils/operationutils„,“datatypes/customcommand„,“internaltypes/varref„,“internaltypes/varscope„,“internaltypes/twineerror„,“internaltypes/twinenotifier„],function(b,e,w,t,k,T,S,x,_){function n(v){return function(e){v.called+=1;for(var t=v.varNames,n=v.params,r=v.body,a=E(C(S),{TwineScript_VariableStore:{type:„temp“,name:v.TwineScript_ObjectName+“ call #„+v.called},TwineScript_TypeDefs:C(null)}),o=[],i=0,s=arguments.length,c=new Array(1<s?s-1:0),l=1;l<s;l)c[l-1]=arguments[l];for(var u=0;u<c.length;u+=1){var p=c[u],d=t[i],f=(a.TwineScript_TypeDefs[d]=n[i].datatype.rest?n[i].datatype.create("array"):n[i].datatype,T.create(a,d));if(x.containsError(f))return f;if(n[i].datatype.rest){var h=(a[d] )t[n]=arguments[n];return{pattern:„lambda“,innerType:c,clauses:t,typeName:'a „'+t.concat(“„).join(“ …„)+'“ lambda'}},TwineScript_Clone:function(){return Object.assign(Object.create©,this)},create:function(e,t,n,r){var a,o=„temp variable, or typed temp variable“;function i(e){e=e&&e.varRef?e.varRef:e;return void 0===e||e&&s.isPrototypeOf(e)&&m.isPrototypeOf(e.object)&&1===e.propertyChain.length}if(y.containsError(n))return n;if(„making“===t&&!i(n))return y.create(„syntax“,„I need a “+o+„, to the right of '“+t+„', not “+g(n)+„.“);if(y.containsError(e))return e;if(c.isPrototypeOf(e)){if(„when“===t||„when“in e)return y.create(„syntax“,„A 'when' lambda cannot have any other clauses, such as '“+t+„'.“);if(t in e)return y.create(„syntax“,„This lambda has two '“+t+„' clauses.“);a=e}else{if(„when“===t&&void 0!==e)return y.create(„syntax“,„A 'when' lambda shouldn't begin with a temp variable (just use 'when' followed by the condition).“);if(!i(e))return y.create(„syntax“,„This lambda needs to start with a single “+o+„, not “+g(e)+„.“);(a=Object.create(this)).loop=e||„“}return a.source=r.trim(),a[t]=n,a.making&&a.making.getName()===(a.loop&&a.loop.getName())?y.create(„syntax“,„This lambda has two variables named '“+a.loop.getName()+„'.“,„Lambdas should have all-unique parameter names.“):a},apply:function(e,t){var n=t.loop,r=t.pos,a=t.making,o=t.ignoreVia;function i(e,t){if(e){if(„datatype“in e&&„varRef“in e){var n=e.varRef.create(s,e.varRef.propertyChain);if(y.containsError(n))return n;var r=n.defineType(e.datatype);return y.containsError®?r:(r=n.set(t),y.containsError®?r:void 0)}s[e.getName()]=t}}var s=(s=t.tempVariables)||Object.create(e.stack.length?e.stackTop.tempVariables:m),t=i(this.loop,n)||i(this.making,a);if(y.containsError(t))return t;e.stack.unshift(Object.assign(Object.create(e.stackTop||null),{tempVariables:s,lambdaPos:this.when?void 0:r})),!n||this.making||this.when?e.Identifiers.it=y.create(„operation“,„I can't use 'it', or an implied 'it', in “+this.TwineScript_ObjectName):e.Identifiers.it=n;var c,l,u,p,d,f,t=!o&&this.via,o=„where“in this||„when“in this,h=e.evalReplay;return e.evalReplay=h?[]:null,o?(c=e.eval(this.where||this.when),l=e.evalReplay,e.evalReplay=l&&t?[]:null,!n||this.making||this.when||(e.Identifiers.it=n),u=c,f=!t||e.eval(t),p=null,d=(d=y.containsError(u))?d:„boolean“!=typeof u?y.create(„operation“,„This lambda's 'where' clause must evaluate to true or false, not “+g(u)+„.“):u?f:p):c=d=!t||e.eval(t),u=t?e.evalReplay:null,e.stack.shift(),(e.evalReplay=h)&&(o||t)&&50),f.lambda.loops.push(Object.assign({it:n,pos:r},void 0!==a&&{making:a},t&&{viaReplay:u,viaResult:d},o&&{whereReplay:l,whereResult:null!==c&&c}))),d},filter:function(r,e){var a,o=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=e.reduce(function(e,t,n){if(a=y.containsError(e))return a;n=o.apply(r,{loop:t,pos:n+1,ignoreVia:!0,tempVariables:i});return(a=y.containsError(n))?a:e.concat(n?[t]:[])},[]);return(a=y.containsError(e))?a:e}});return c}),define(„datatypes/typedvar“,[„utils/operationutils“,„internaltypes/varref“,„internaltypes/twineerror“],function(e,a,o){var i=e.typeName,t=e.matches,n=e.toSource,s=e.unstorableValue,e=Object.freeze,c=Object.assign,l=Object.create,u=e({TwineScript_TypeName:„a TypedVar (typed variable name)“,get TwineScript_ObjectName(){var e=n(this.datatype);return„the “.concat(e.length<24?e+„-“:„“,„typed variable name, “).concat(this.varRef.TwineScript_ToSource())},TwineScript_Print:function(){return„`[A typed variable name]`“},TwineScript_Unstorable:!0,TwineScript_Clone:function(){return c(l(u),{datatype:this.datatype.TwineScript_Clone(),varRef:this.varRef})},TwineScript_ToSource:function(){return n(this.datatype)+„-type “+this.varRef.TwineScript_ToSource()},TwineScript_GetProperty:function(e){return„name“===e?this.getName():this[e]},TwineScript_Properties:[„datatype“,„name“],TwineScript_IsTypeOf:function(e){return t(this.datatype,e)},get:function(){var e;return(e=this.varRef).get.apply(e,arguments)},getName:function(){return this.varRef.getName()},defineType:function(){if(„any“!==this.datatype.name)return this.varRef.defineType(this.datatype)},create:function(e,t){if(n=o.containsError(t)||o.containsError(e)||t.error)return n;if(!a.isPrototypeOf(t))return o.create(„syntax“,„The -type syntax must have a variable to its right.“);var n=t.object,r=t.compiledPropertyChain;if(!n||!n.TwineScript_VariableStore||1!==r.length||!n.TwineScript_TypeDefs)return o.create(„unimplemented“,„I can only restrict the datatypes of variables, not data names or anything else.“);r=s(e);return r&&!u.isPrototypeOf®?o.create(„syntax“,„The -type syntax can't have “+i®+„ to its left.“):c(l(this),{datatype:e,varRef:t})}});return u}),define(„datatypes/varbind“,[„jquery“,„utils“,„utils/operationutils“,„internaltypes/varref“,„internaltypes/twineerror“],function(o,e,t,n,r){var a=t.objectName;return n.on(„set“,function(r,a){r.TwineScript_VariableStore&&e.storyElement.find(„[data-2bind]“).each(function(e,t){var n=(t=o(t)).data(„twoWayBindEvent“);„function“==typeof n&&n(t,r,a)})}),Object.freeze({TwineScript_TypeName:„a VarBind (bound variable name)“,get TwineScript_ObjectName(){return„a “.concat(this.bind,„ bind to “).concat(this.varRef.TwineScript_ToSource())},TwineScript_Print:function(){return„`[A bound variable name]`“},TwineScript_Unstorable:!0,TwineScript_ToSource:function(){return(„two way“===this.bind?„2“:„“)+„bind “+this.varRef.TwineScript_ToSource()},set:function(e){var e=this.varRef.set(e);if(e=r.containsError(e))return e},create:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:„one way“;return r.containsError(e)?e:n.isPrototypeOf(e)?e.error||Object.assign(Object.create(this),{varRef:e,bind:t}):r.create(„operation“,„I can only 'bind' a variable, not “+a(e)+„.“)}})}),define(„debugmode/highlight“,[„jquery“,„utils“,„utils/typecolours“,„macros“,„lexer“],function(u,e,t,p,n){var d=e.insensitiveName,f=t.versionClass,h=n.lex;return function(e,t,n,r){for(var a=h(e,„“,t||„macro“),o=[],i=„“,s=a,c=a.start;c<a.end;c+=1){var l=a.pathAt©;l[0]!==s[0]&&(o.length&&(o[o.length-1].textContent=i),i=„“,s=l,o.push(u(„<“.concat(r&&n⇐c&&c<r?„mark“:„span“,' class=„').concat(function(e){for(var t={},n=“„,r=0;r<e.length;r+=1){var a=e[r],o=a.type,i=a.text,s=(„verbatim“!==o&&„comment“!==o||(n=“„),f+o);switch(t[s]=(t[s]||0)+1,1<t[s]&&(s+=“-„+t[s]),o){case“text„:i.trim()&&e.slice(r+1).reduce(function(e,t){return void 0===e?“macro„===t.type||“hook„!==t.type&&e:e},void 0)&&(s+=“ „.concat(f,“error„));break;case“macroName„:var c=e[r].text[0];if(„_“===c||“$„===c){s+=“ „.concat(f,“customMacro „).concat(f+(„_“===c?“tempV„:„v“),“ariable„);break}c=d(e[r].text.slice(0,-1));p.has©?s+=“-„+p.get©.returnType.toLowerCase():s+=“ „.concat(f,“error„)}n+=s+“ „}return n}(s),'“>'))[0])),i+=a.text[c-a.start]}return o.length&&(o[o.length-1].textContent=i),o}}),define(„debugmode/mode“,[„jquery“,„utils“,„utils/naturalsort“,„state“,„engine“,„internaltypes/varref“,„internaltypes/twineerror“,„utils/operationutils“,„utils/renderutils“,„passages“,„section“,„debugmode/panel“,„debugmode/highlight“,„utils/typecolours“],function(R,I,V,D,M,F,L,e,t,z,H,q,W,n){var B=e.objectName,$=e.isObject,U=e.toSource,G=e.typeID,Y=t.dialog,J=n.CSS,X=function(e,t){var f=I.escape,i=I.nth,n=I.debounce,r=R(document.documentElement),a=V(),o={darkMode:!0,fadePanel:!0,evalReplay:!0,width:null,maxHeight:400};if(D.hasStorage)try{var s=localStorage.getItem(„(Debug Options “+I.options.ifid+„)“);s&&(o=JSON.parse(s))}catch(e){}function c(){if(D.hasStorage)try{localStorage.setItem(„(Debug Options “+I.options.ifid+„)“,JSON.stringify(o))}catch(e){}}q.defaultMaxHeight=o.maxHeight;function l(e){return n(function(){if(I.options.debug)return e.apply(this,arguments)})}var h=R('<tw-debugger class=„'.concat([o.darkMode?“theme-dark„:“„,o.fadePanel?“fade-panel„:“„].join(“ „),'“ style=„').concat(o.width?“width:„+o.width+„px“:“„,“\„>\n
<table></table>
\n
\n<label style='user-select:none'>Turns: </label><select class='turns' disabled></select>\n<button class='show-invisibles'>\ud83d\udd0d Debug View</button>\n<button class='show-dom'><> DOM View</button>\n<button class='close'>\u2716</button>\n
\n</tw-debugger>“)),s=h.find(„.tabs“),u=h.find(„.show-dom“),p=h.find(„.show-invisibles“),d=h.find(„.close“),m=h.find(„.turns“);R(document.documentElement).on(„click“,„tw-expression, tw-error, tw-eval-explanation“,n(function(e){var r,a,o,i,l,u,p,d,t=R(e.target).data(„evalReplay“);function n(){var e,s,c=r[a],t=o.find(„tw-eval-explanation“).empty(),n=o.find(„tw-eval-code“);c.toCode||c.toDesc||c.error||c.lambda?(o.find(„tw-eval-code“).empty().append(W(c.code,„macro“,0<a&&c.start,0<a&&c.end+c.diff)),t.append(c.lambda?„“:„
“),c.error?„ caused an error: “:c.lambda?„The lambda <code class='to-lambda'></code> was run, producing these results.“:„ became“.concat(c.ToDesc?„\u2026“:„“,„ “).concat(c.toDesc?„“.concat(f(c.toDesc),„.“):„
“)),c.error?t.append(c.error):c.lambda?(s=function(e,t){return R(„<“.concat(e,„>
</").concat(e,">")).find("code").append(W(t,"macro")).end()},t.find(".to-lambda").append(W(c.lambda.obj.source,"macro")).end().append((e=R("<table>")).append.apply(e,[R("<tr>").append(s("th","pos"),c.lambda.obj.loop?s("th","_"+c.lambda.obj.loop.getName()).append(" / ",R("<code>").append(W("it","macro"))):s("th","it"),c.lambda.obj.making&&s("th","_"+c.lambda.obj.making.getName()),c.lambda.obj.where&&s("th","where").append(" result"),c.lambda.obj.via&&s("th","via").append(" result"))].concat(_toConsumableArray(c.lambda.loops.map(function(e){var t=e.it,n=e.pos,r=e.making,a=e.whereResult,o=e.whereReplay,i=e.viaResult,e=e.viaReplay;return R("<tr>").append(s("td",U(n)),s("td",U(t)),void 0!==r&&s("td",U(r)),null!=a&&(L.containsError(a)?R("<td>").append(a.render(c.lambda.obj.source,!0)):s("td",U(a))).append(o&&R("<tw-open-button replay label='\ud83d\udd0d'>").data("evalReplay",o)),null!=i&&(L.containsError(i)?R("<td>").append(i.render(c.lambda.obj.source,!0)):s("td",U(i))).append(e&&R("<tw-open-button replay label='\ud83d\udd0d'>").data("evalReplay",e)))})))))):c.toDesc||t.find(".to-code").append(W(c.toCode,"macro")),t.next().html(c.itIdentifier?'(The <code class="cm-harlowe-3-identifier">it
identifier now refers to '.concat(f(c.itIdentifier),“.)„):“„).next().text(c.reason||“„)):(n.html(W(c.code,“macro„)),t.html(“<center>First, there was
.</center>„).next().empty().next().empty()),c.lambda||t.find(„code“).first().append(W(c.fromCode,“macro„)),o.find(„mark“).each(function(e,t){t.scrollIntoView()}),i.css(„visibility“,a⇐9?“hidden„:„visible“),l.css(„visibility“,a⇐0?“hidden„:„visible“),p.css(„visibility“,a>=r.length-1?“hidden„:„visible“),d.css(„visibility“,a>=r.length-10?“hidden„:„visible“),u.html(“( „.concat(a+1,“/„).concat(r.length,“ )„))}t&&(r=t,t=Y({buttons:[{name:„Understood“,confirm:!(a=0),callback:function(){return!h.find(„tw-backdrop“).length&&h.removeClass(„show-dialog“)}}]}),o=R(“<tw-eval-replay>„.concat(1===r.length?“„:“<tw-eval-code></tw-eval-code>„,“<tw-eval-explanation></tw-eval-explanation><tw-eval-it></tw-eval-it><tw-eval-reason></tw-eval-reason>„).concat(1===r.length?“„:“<tw-dialog-links><tw-link style='visibility:hidden'>\u2190 10</tw-link><tw-link style='visibility:hidden'>\u2190 \u2190</tw-link><b></b><tw-link>\u2192 \u2192</tw-link><tw-link>10 \u2192</tw-link></tw-dialog-links>„,“</tw-eval-replay>„)),t.find(„tw-dialog“).css({width:„75vw“,“max-width„:„75vw“}).prepend(o),i=o.find(„tw-link:first-of-type“),l=i.next(),u=l.next(),p=u.next(),d=p.next(),n(),i.on(„click“,function(){a=Math.max(0,a-10),n()}),l.on(„click“,function(){a=Math.max(0,a-1),n()}),p.on(„click“,function(){a=Math.min(r.length-1,a+1),n()}),d.on(„click“,function(){a=Math.min(r.length-1,a+10),n()}),h.find(„tw-backdrop“).length?h.find(„tw-backdrop“).before(t):h.addClass(„show-dialog“).append(t)),e.stopPropagation()})),h.find(“.resizer-h„).mousedown(function(e){if(1!==e.which)return!0;e.stopPropagation();var t=e.pageX,n=h.width();r.on(„mousemove.debugger-resizer-h“,function(e){e=e.pageX;h.width(“„.concat(n+t-e|0,“px„))}).on(„mouseup.debugger-resizer-h“,function(){r.off(“.debugger-resizer-h„),o.width=h.width(),c()})}),h.on(„mousedown“,“.resizer-v„,function(e){if(1!==e.which)return!0;e.stopPropagation();var t=e.pageY,n=R(e.target.parentNode).height();r.on(„mousemove.debugger-resizer-v“,function(e){e=e.pageY;h.find(“.panel„).css(„maxHeight“,“„.concat(n+t-(0|e),“px„))}).on(„mouseup.debugger-resizer-v“,function(){r.off(“.debugger-resizer-v„),o.maxHeight=h.find(“.panel„).css(„maxHeight“),c()})}),p.click(function(){r.toggleClass(„debug-mode“).removeClass(„dom-debug-mode“),p.toggleClass(„enabled“),u.removeClass(„enabled“)}),u.click(function(){r.toggleClass(„dom-debug-mode“).removeClass(„debug-mode“),u.toggleClass(„enabled“),p.removeClass(„enabled“)}),d.click(function(){r.removeClass(„debug-mode dom-debug-mode“),h.detach(),I.options.debug=!1});function y(e){(e=e.parents(“.variable-row, .enchantment-row, .source-row„)).next(“.panel-row-source„).find(„td“).empty().append(W(e.data(„value“)||U(e.data(„enchantment“).changer),e.is(„source-row“)?“markup„:„macro“))}function g(){return k=new Set}function v(){R(document.body).append(h),I.options.debug=!0,I.options.evalReplay=o.evalReplay,j()}var b,w=l(function(){var r=m.children().get(),e=D.timeline,a=0;e.forEach(function(e,t){var n=e.turns,e=e.passage,n=(a+=1+(void 0===n?0:n))+“: „+e;r[t]?r[t].textContent=n:m.append(“<option value='„+t+“'>„+n+“</option>„)}),e.length<r.length&&R(r.slice(e.length)).remove(),m[1⇐e.length?“removeAttr„:„attr“](„disabled“),m.val(D.pastLength)}),k=(m.change(function(e){e=e.target.value-D.pastLength;0!=e&&(D[e<0?“rewind„:„fastForward“](Math.abs(e)),M.showPassage(D.passage))}),w(),D.on(„forward“,w).on(„load“,w).on(„forgetUndos“,function(){return w}).on(„back“,function(){D.pastLength⇐1&&m.attr(„disabled“),m.find(“[selected]„).removeAttr(„selected“),m.val(D.pastLength)}),new Set),T=q.create({className:„variables“,tabName:„Variable“,rowWrite:function(e,t){var n=e.name,r=e.dataset,a=e.path,o=e.value,i=e.tempScope,e=e.type,s=o&&48<o.length&&!o.TwineScript_DebugName,c=$(o)&&o.TwineScript_DebugName?o.TwineScript_DebugName():f(B(o)),l=“„,r=(a.length&&(l=a.reduce(function(e,t){return e+t+“'s „},“„)),r&&(n=“???„),e?U(e):“„),e=„object“===_typeof(o)||s;return t?(t.find(“.variable-type„).html(r||“„),l&&t.find(“.variable-path„).html51),t.find(“.variable-name„).contents().last().replaceWith(R.parseHTML52)),t.find(“.temporary-variable-scope„).html(i||“„),t.find(“.variable-value„).html©,t.find(„tw-folddown“)[e?“show„:„hide“](),(s=t.next(“.panel-row-source„)).is(“:visible„)&&s.find(„td“).empty().append(W(U(o))),t.data(„value“,U(o)),t.add(s)):R('
').attr(„data-name“,n).attr(„data-path“,a+“„).attr(„data-scope“,i||“„).css(„padding-left“,Math.min(5,a.length)+„em“).append(“<td class='variable-type'>„+(r||“„)+“</td>„,“<td class='variable-name cm-harlowe-3-„+(i?“tempV„:„v“)+„ariable'>“+(l?(i?“_„:„$“)+f(l):“„)+“ „+(l?“„:i?“_„:„$“)+f(n+“„)+“</td>„,“<td class='temporary-variable-scope'>„+(i||“„)+“</td>„,“<td class='variable-value cm-harlowe-3-macroName-„+G(o)+“'>„+c+“</td><td class='panel-row-buttons'><tw-folddown tabindex=0 style='display:„+(e?“visible„:„none“)+“'>(source:) </tw-folddown></td>„).data(„value“,U(o)).find(„tw-folddown“).data(„folddown“,y).end().add(“<tr class='variable-row panel-row-source' style='display:none'><td colspan='5'></td></tr>„)},rowCheck:function(e,t){var n=e.name,r=e.path,e=e.tempScope;return t.attr(„data-name“)===n&&t.attr(„data-path“)===r+“„&&t.attr(„data-scope“)===e},columnHead:function(){return'<tr class=„panel-head“><th data-col=„variable-type“>Type</th><th data-col=„variable-name“>Name</th><th data-col=„temporary-variable-scope“>Scope</th><th data-col=„variable-value“>Value</th></tr>'},rowSort:function(e,t,n){if(„variable-value“===e)return a(t.attr(„class“),n.attr(„class“))||a(t.parent().data(„value“),n.parent().data(„value“))}}),S=l(function(){var e,t,o=[],n=D.variables,r=o.length;for(e in n)e.startsWith(„TwineScript“)||(r+=1,function n(e){var r,t,a;500<o.length||(o.push(e),r=e.path.concat(e.name),t=e.value,a=e.tempScope,r.length⇐4&&(Array.isArray(t)?t.forEach(function(e,t){return n({name:i(t+1),path:r,value:e,tempScope:a})}):t instanceof Map?_toConsumableArray(t).forEach(function(e){var t=(e=_slicedToArray(e,2))[0],e=e[1];return n({name:t,path:r,value:e,tempScope:a})}):t instanceof Set&&_toConsumableArray(t).forEach(function(e,t){return n({name:t,dataset:!0,path:r,value:e,tempScope:a})})))}({name:e,path:[],value:n[e],tempScope:“„,type:null==(t=n.TwineScript_TypeDefs)?void 0:t[e]}));o.push.apply(o,_toConsumableArray(k)),r+=k.size,T.update(o,r),T.panel[(r?“remove„:„add“)+„Class“](„panel-variables-empty“)}),x=(F.on(„set“,function(e,t,n){var r,a;e===D.variables||“temp„!==(null==(a=e.TwineScript_VariableStore)?void 0:a.type)||null!=(a=e.TwineScript_VariableStore)&&a.name.match(/#\d+$/)||(r=null==(a=e.TwineScript_VariableStore)?void 0:a.name,e=null==(a=e.TwineScript_TypeDefs)?void 0:a[t],(a=_toConsumableArray(k).find(function(e){return e.name===t&&e.tempScope===r}))?a.value=n:k.add({name:t,path:[],value:n,tempScope:r,type:e})),S(),b()}).on(„delete“,function(){S(),b()}),T.panel.append(“
\n\t\t\t<button class='panel-variables-copy'>Copy $ variables as (set:) call</button>\n\t\t\t<input class='clipboard' type=\„text\“ style='opacity:0;pointer-events:none;position:absolute;'></input>\n\t\t
„).removeAttr(„hidden“),T.tab.addClass(„enabled“),T.panel.find(“.clipboard„)),_=(r.on(„click“,“.panel-variables-copy„,function(){var e,t=[];for(e in D.variables)e.startsWith(„TwineScript“)||t.push(„$“+e+“ to „+U(D.variables[e]));x.val(“(set:„+t+“)„)[0].select(),document.execCommand(„copy“)}),q.create({className:„enchantments“,tabName:„Enchantment“,rowWrite:function(e,t){var n=e.scope,r=e.changer,a=e.lambda,o=e.name,i=e.localHook,a=r?f(B®):a?f(U(a)):“<em>enchanted with („+o+“:)</em>„;return t||R('
').data(„enchantment“,e).append(“<td>„+U(n)+(i?“„+(„function“==typeof i.TwineScript_ToSource?i.TwineScript_ToSource():i.attr(„name“)?“?„+i.attr(„name“):„an unnamed hook“):“„)+“</td><td class='enchantment-value cm-harlowe-3-macroName-„+(r?“changer„:„command“)+“ '>„+a+“</td>„+(r?“<td class='panel-row-buttons'><tw-folddown tabindex=0>(source:)</tw-folddown></td>„:“„)).find(„tw-folddown“).data(„folddown“,y).end().add(r?R(“<tr class='panel-row-source' style='display:none'><td colspan='3'></td></tr>„):“„)},rowCheck:function(e,t){return t.data(„enchantment“)===e},columnHead:function(){return'<tr class=„panel-head“><th data-col=„enchantment-name“>Scope</th><th data-col=„enchantment-value“>Value</th>
'}})),d=l(function(e){_.update(e.enchantments,e.enchantments.length)}),O=(H.on(„add“,d).on(„remove“,d),H.create()),A=q.create({className:„storylets“,tabName:„Storylet“,rowWrite:function(e,t){var n=e.name,r=e.active,a=e.storyletSource,o=e.exclusive,e=e.urgent;if(t)return t[(r?“remove„:„add“)+„Class“](„storylet-closed“),t.find(“.storylet-open„).text(r?“\u2713„:“„),t;t=R('<tr class=„storylet-row '.concat(r?““:„storylet-closed“,'„>')).attr(„data-name“,n).append(“<td class='storylet-open'>„+(r?“\u2713„:“„)+“</td><td class='storylet-name'>„+n+“</td><td class='storylet-lambda'></td><td class='storylet-exclusive'>„+o+“</td><td class='storylet-urgent'>„+e+“</td>„);return t.find(“.storylet-lambda„).append(W(a.replace(/^when\s+/i,“„))),t},rowCheck:function(e,t){e=e.name;return t.attr(„data-name“)===f(e+“„)},columnHead:function(){return'<tr class=„panel-head“><th data-col=„storylet-open“ data-order=„desc“>Open</th><th data-col=„storylet-name“>Name</th><th data-col=„storylet-lambda“>Condition</th><th data-col=„storylet-exclusive“ class=\'storylet-exclusive\'>Exclusivity</th><th data-col=„storylet-urgent“ class=\'storylet-urgent\'>Urgency</th></tr>'}}),E=(A.tab.hide(),b=l(function(){var r,a,o=z.getStorylets(O),i=L.containsError(o),e=z.allStorylets();A.update(e.map(function(t){var e=„number“==typeof t.get(„exclusivity“)?t.get(„exclusivity“):0,n=„number“==typeof t.get(„urgency“)?t.get(„urgency“):0;return r=r||e,a=a||e,{name:t.get(„name“),storyletSource:t.get(„storylet“).TwineScript_ToSource(),active:!i&&o.some(function(e){return e.get(„name“)===t.get(„name“)}),exclusive:e,urgent:n}}),i?0:o.length),A.panel[(i?“add„:„remove“)+„Class“](„storylet-error“),A.panel[(r?“add„:„remove“)+„Class“](„panel-exclusive“),A.panel[(a?“add„:„remove“)+„Class“](„panel-urgent“),e.length&&A.tab.show()}),q.create({className:„source“,tabName:„Source“,tabNameCounter:!1,rowWrite:function(e,t){var n=e.name,e=e.tag;if(t)return t.add(t.next(“.panel-row-source„));t=z.get(n).get(„source“);return R('
')).data(„value“,t).append('<td class=„source-name“>'.concat(n,'</td><td class=„source-tags“>').concat(e,“</td><td class='panel-row-buttons'><tw-folddown class='„).concat(e?“„:„open“,“' tabindex=0></tw-folddown></td>„)).find(„tw-folddown“).data(„folddown“,y).end().add(R(“<tr class='panel-row-source' style='„.concat(e?“display:none„:“„,“'><td colspan='3'></td></tr>„)).find(„td“).append(!e&&W(t,“markup„)).end())},rowCheck:function(e,t){e=e.name;return t.find(“.source-name„).text()===f(e+“„)},tabUpdate:R.noop,columnHead:R.noop})),C=[„debug-startup“,“startup„,“header„,“debug-header„,“footer„,“debug-footer„].reduce(function(e,t){return e.concat(z.getTagged(t).map(function(e){return{name:e.get(„name“),tag:t}}))},[]),N=q.create({className:„errors“,tabName:„Error“,rowWrite:R.noop,rowCheck:R.noop,columnHead:R.noop,tabUpdate:function(e){return N.tab.css({background:e?“rgba(230,101,204,0.3)„:“„}).text(“„.concat(e,“ Error„).concat(1!==e?“s„:“„))}}),d=n(function(e){var t;I.options.debug&&(N.panelRows.append(e.reduce(function(e,t){var t=_slicedToArray(t,2),n=t[0],t=t[1];return“propagated„===n.type?e:e+'<tr class=„error-row“><td class=„error-passage“>'+D.passage+'</td><td class=„error-message“ title=“'+f(t)+'„>'+n.message+“</td></tr>„},“„)),500<(t=(e=N.panelRows.children()).length)&&R(Array.prototype.slice.call(N.panelRows[0].childNodes,0,t-500)).remove(),N.tabUpdate(Math.min(500,e.length)))},{batch:!0}),P=(L.on(d),N.panel.append(“
\n\t\t\t<button class='panel-errors-clean'>\ud83e\uddf9 Clear this panel</button>\n\t\t
„),r.on(„click“,“.panel-errors-clean„,function(){N.panelRows.empty(),N.tabUpdate(0)}),q.create({className:„options“,tabName:„\u2699\ufe0f“,tabNameCounter:!1,rowWrite:function(e,t){var n=e.name,e=e.label,r={darkMode:o.darkMode,fadePanel:o.fadePanel,evalReplay:o.evalReplay}[n];return t?t.find(„input“).prop(„checked“,r):R('<input id=„debug-'.concat(n,'“ type=„checkbox“ ').concat(r?“checked„:“„,'></input><label for=„debug-').concat(n,'“>').concat(e,“</label>„))},rowCheck:R.noop,tabUpdate:R.noop,columnHead:R.noop})),j=(r.on(„click“,'.panel-options [type=„checkbox“]',function(e){var e=e.target,t=(e=R(e)).attr(„id“),e=e.is(“:checked„);“debug-darkMode„===t&&(o.darkMode=e,h[(e?“add„:„remove“)+„Class“](„theme-dark“)),“debug-fadePanel„===t&&(o.fadePanel=e,h[(e?“add„:„remove“)+„Class“](„fade-panel“)),“debug-evalReplay„===t&&(I.options.evalReplay=o.evalReplay=e),c()}),P.update([{name:„darkMode“,label:„Debug panel is dark“},{name:„fadePanel“,label:„Debug panel is transparent unless the cursor is over it“},{name:„evalReplay“,label:„Record expression replays (viewable via \ud83d\udd0d buttons in Debug View; slower)“}]),h.prepend(T.panel,_.panel,N.panel,A.panel,E.panel,P.panel),s.prepend(T.tab,_.tab,N.tab,A.tab,E.tab,P.tab),D.on(„beforeForward“,g).on(„beforeBack“,g).on(„beforeLoad“,g),l(function(){S(),b(),_.panelRows.empty(),_.tabUpdate(0),D.passage&&z.get(D.passage)&&(E.update(C.concat({name:D.passage,tag:“„})),E.panel.find('[data-tag=“„], [data-tag=“„] + .panel-row-source').insertBefore(E.panel.find('[data-tag=„footer“]').first()))}));D.on(„forward“,j).on(„back“,j).on(„load“,j);X=v,R(document.head).append(R(“<style>„).html(J)),v(),e&&d(e,t)};return M.registerDebugMode(function(e,t){return!I.options.debug&&X(e,t)}),X}),define(„debugmode/panel“,[„jquery“,“utils/naturalsort„],function(d,e){var i=e();return Object.seal({create:function(e){var n,t=e.className,r=e.rowWrite,a=e.rowCheck,o=e.rowSort,i=e.columnHead,s=e.tabName,c=e.tabNameCounter,l=void 0===c||c,c=e.tabUpdate,u=d(“
<table class='panel-rows'></table>
„)),p=d(“<button class='tab tab-„.concat(t,“'>„).concat(l?“0 „.concat(s,“s„):s,“</button>„));return p.click(function(){p.toggleClass(„enabled“),p.parent().siblings(“.panel„).attr(„hidden“,“„),p.is(“.enabled„)&&(p.siblings(“.tab:not(.tab-„+t+“)„).removeClass(„enabled“),u.removeAttr(„hidden“))}),u.on(„click“,“th„,function(e){var e=e.target,t=„desc“===(e=d(e)).attr(„data-order“)?“asc„:„desc“;n.sort(e.attr(„data-col“),t),u.find(„th[data-order]“).removeAttr(„data-order“),e.attr(„data-order“,t)}),c=c||function(e){return p.text(l?“„.concat(e,“ „).concat(s).concat(1!==e?“s„:“„):s)},n=Object.assign(Object.create(this),{tabName:s,tab:p,panel:u,panelRows:u.find(“.panel-rows„),rowWrite:r,rowSort:o,rowCheck:a,columnHead:i,tabUpdate:c})},sort:function(r,a){var o=this;this.panelRows.children(“:not(.panel-head, .panel-row-source)„).get().sort(function(e,t){var n;return“desc„===a&&(e=(n=[t,e])[0],t=n[1]),e=e.querySelector(“.„+r),t=t.querySelector(“.„+r),o.rowSort&&o.rowSort(r,d(e),d(t))||i(e.textContent,t.textContent)}).forEach(function(e){var t=d(e).next(“.panel-row-source„).get();o.panelRows.append(e,t)})},update:function(e,t){var r=this.rowCheck,a=this.rowWrite,o=this.panelRows,n=this.columnHead,i=this.panel,s=[],c=o.children(),e=(e.forEach(function(n){var e=c.filter(function(e,t){return r(n,d(t))}),t=a(n,e.length&&e);e.length||o.append(t),s.push.apply(s,_toConsumableArray(t.get()))}),c.filter(function(e,t){return!s.includes(t)&&!t.className.includes(„panel-head“)}).remove(),this.tabUpdate(t),0<t&&!o.find(“.panel-head„).length?o.prepend(n()):0===t&&o.find(“.panel-head„).remove(),i.find(„th[data-order]“));e.length&&this.sort(e.attr(„data-col“),e.attr(„data-order“))},defaultMaxHeight:300})}),define(„internaltypes/changedescriptor“,[„jquery“,“utils„,“renderer„,“datatypes/hookset„,“internaltypes/twineerror„],function(v,e,t,b,n){function w(e){return(„string“==typeof e?e:e.map(function(e){return e.text}).join(“„)).split(/\n/g).reduce(function(e,t,n,r){r=r.length;return e.concat(document.createTextNode(t),n!==r-1&&document.createElement(t.length?“br„:„tw-consecutive-br“))},[])}var k=e.impossible,T=e.transitionIn,S=t.exec,x=Object.assign,p=Object.keys,r=Object.create,e=Object.seal,_=Array.isArray,O={source:“„,appendSource:null,enabled:!0,enablers:null,verbatim:!1,target:null,append:“„,newTargets:null,transition:“„,transitionTime:null,transitionDeferred:!1,transitionDelay:0,transitionSkip:0,transitionOrigin:null,loopVars:null,styles:null,attr:null,data:null,innerEnchantments:null,section:null,timestamp:0,output:!1,summary:function(){var t=this;return[„source“,“appendSource„,“enabled„,“verbatim„,“target„,“append„,“newTargets„,“transition„,“transitionTime„,“transitionDeferred„,“transitionDelay„,“transitionSkip„,“transitionOrigin„,“innerEnchantments„,“enablers„,“output„].filter(function(e){return hasOwnProperty.call(t,e)}).concat([this.attr.length&&„attr“,this.styles.length&&„styles“,p(this.loopVars).length&&„loopVars“,p(this.data).length&&„data“].filter(Boolean))},create:function(e,t){e=x(r(this),{attr:this.attr?this.attr.slice():[],styles:this.styles?this.styles.slice():[],loopVars:this.loopVars||{},data:this.data||{}},e);if(t){t=t.run(e);if(n.containsError(t))return t}return e},update:function(){function e(t){var e,n,r;_(a.styles)&&0<a.styles.length&&(n=(e=_slicedToArray(a.styles.reduce(function(n,r){return p®.forEach(function(e){var t=r[e];n[+(„function“==typeof t)].push(_defineProperty({},e,t))}),n},],[),2))[0],r=e[1],n.forEach(function(e){return t.css(e)}),setTimeout(function(){r.forEach(function(e){return t.css(e)})})),a.attr&&a.attr.forEach(function(e){return t.attr(e)}),a.data&&t.data(a.data)}var a=this,t=this.section,n=this.newTargets,r=this.transition,o=this.transitionDeferred,i=this.append,s=this.target;“function„==typeof s&&(s=s());if(_(n)&&n.length&&(s=n.map(function(e){return e.target})),_(s))for(var c=0;c<s.length;c+=1)b.isPrototypeOf(s[c])?s[c].forEach(t,e):e(s[c]);else b.isPrototypeOf(s)?s.forEach(t,e):e(s);if(r&&!o&&!i){for(var l,u=s;(l=u.data(„timestamp“))||(u=u.parent()),!l&&u.length;);T(s,r,this.transitionTime,this.transitionDelay,this.transitionSkip,l?Date.now()-l:0,this.transitionOrigin)}},render:function(){var e,r=this,t=this.source,n=this.transition,a=this.transitionTime,o=this.transitionDeferred,i=this.enabled,s=this.enablers,c=this.data,l=this.section,u=this.newTargets,p=this.innerEnchantments,d=this.appendSource,f=this.output,h=this.target,m=this.target,y=this.append;if(„function“==typeof h&&(h=h()),!y)return k(„ChangeDescriptor.render“,“This doesn't have an 'append' method chosen.„),v();if(f)return v();if(null!=s&&s.length)return s=(f=s[0]).descriptor,f=f.changer,s=s.render(),f&&(e=O.create({section:l,target:s}),f.run(e),e.update()),s;if(!i||void 0!==h.attr(„hidden“))return O.create({target:h,attr:this.attr.filter(function(e){return!(„style“in e)}),data:x({},c,{originalSource:t,hidden:!0})}).update(),v();if(!(h=_(u)&&u.length?u:h))return k(„ChangeDescriptor.render“,“ChangeDescriptor has source but not a target!„),v();var g=v();if([].concat(h).filter(function(e){return!e.jquery}).map(function(e){var t,n,r=y;return e.target&&e.append&&(r=(t=e).append,n=t.before,e=e.target),{elements:e.hooks(l,m).filter(function(){return!(n&&1&this.compareDocumentPosition(document)&&2&this.compareDocumentPosition(m[0]))}),append:r}},[]).forEach(function(e){var t=e.elements,n=e.append;t.each(function(e,t){t=v(t),g=g.add(r.create({target:t,append:n,newTargets:null}).render()),t.filter(„tw-pseudo-hook“).contents().unwrap()})}),!(g.length||_(h)||b.isPrototypeOf(h))){f=y;if(!(f in h)){if(„replace“!==f)return k(„ChangeDescriptor.render“,“The target doesn't have a '„+f+“' method.„),v();f=h[0]instanceof Text?“replaceWith„:(h.empty(),“append„)}h[0]instanceof Text&&„prepend“===(f=„append“===f?“after„:f)&&(f=„before“),g=v(t&&(this.verbatim?w:S)(t)),_(d)&&d.forEach(function(e){var t=e.source,e=e.append,t=v53);g=„append“===e?g.add(t):„prepend“===e?t.add(g):t}),h[f](g.length?g:void 0),h.data(„timestamp“,Date.now()),this.update(),n&&!o&&T(„replace“===y?h:g,n,a,this.transitionDelay,this.transitionSkip,this.expedite,this.transitionOrigin),p&&p.map(function(e){return e(h)}).forEach(function(e){return l.addEnchantment(e)})}return g}};return e(O)}),define(„internaltypes/enchantment“,[„jquery“,“utils„,“internaltypes/changedescriptor„,“datatypes/changercommand„,“utils/operationutils„,“internaltypes/twineerror„,“utils/renderutils„],function(y,g,v,b,e,w,t){var k=e.objectName,T=e.toSource,S=t.collapse;return Object.freeze({create:function(e){return Object.assign(Object.create(this),{enchantments:y()},e)},enchantScope:function(){var i=this,s=this.attr,c=this.data,l=this.functions,u=this.section,p=this.scope,d=this.localHook,f=this.lambda,h=[],m=0;p.forEach(u,function(e,t){if(d){d=d.jquery?d:d.hooks(u);var n=e.find(d);if(n.length)e=n;else if(!d.has(e[0]).length)return}var r,a,o;(!e.is(“:empty„)||e.data(„source“)&&e.data(„source“).length)&&(m+=1,f?(o=f.apply(u,{loop:p.TwineScript_GetProperty(t),pos:m}),w.containsError(o)?(e.replaceWith(o.render()),f=o=null):b.isPrototypeOf(o)?o.canEnchant||(e.replaceWith(w.create(„macrocall“,'The lambda “'.concat(T(f),„\“ can't be or include a revision, enchantment, or interaction changer like (replace:), (click:), or (link:).„)).render()),f=o=null):(e.replaceWith(w.create(„macrocall“,'The lambda “'.concat(T(f),'„ must return a changer, not ').concat(k(o),“.„)).render()),f=o=null)):o=i.changer,n=!s&&!c&&(!o||o.summary().every(function(e){return e.startsWith(„transition“)})),r=n?e:e.wrap(“<tw-enchantment>„).parent(),s&&r.attr(s),c&&r.data©,l&&l.forEach(function(e){return e®}),o&&(t=v.create({section:u,target:r}),o.run(t),t.update(),e.is(g.storyElement)?(a=Object.keys(Object.assign.apply(Object,[{}].concat(_toConsumableArray(t.styles)))),e.css(a.reduce(function(e,t){return“background-color„===t||“background-image„===t?(e[„background-color“]=„transparent“,e[„background-image“]=„none“,a.push(„background-“.concat(„background-color“===t?“image„:„color“))):e[t]=„inherit“,e},{})),r.data({enchantedProperties:a})):e.is(„tw-passage“)&&t.styles.some(function(e){return“margin-left„in e||“margin„in e||“margin-right„in e})&&(o=„padding-right“,g.storyElement.css(t=„padding-left“,“0px„).css(o,“0px„),r.data({enchantedProperties:[t,o]}))),e.is(g.storyElement)&&r.css({„min-width“:„100%“,“min-height„:„100%“}),“true„===r.attr(„collapsing“)&&(r.find(“[collapsing=false]„).each(function(){y(this).removeAttr(„collapsing“)}),S®),n||h.push®)}),this.enchantments=y(h)},disenchant:function(){this.enchantments.each(function(e,t){(t=y(t)).contents().unwrap();t=t.data(„enchantedProperties“);t&&g.storyElement.css(t.reduce(function(e,t){return e[t]=“„,e},{}))})}})}),define(„internaltypes/twineerror“,[„jquery“,“utils„],function(i,s){var a=s.impossible,c=s.escape,l=(i(document.documentElement).on(„click“,“tw-folddown„,function(e){var t=e.target,e=54).toggleClass(„open“),t.popData(„folddown“));for(„function“==typeof e&&e(t);t&&!t.next().length;)t=t.parent();null!=(e=t)&&e.next().toggle()}),{syntax:„The markup seems to contain a mistake.“,saving:„I tried to save or load the game, but I couldn't do it.“,operation:„I tried to perform an operation on some data, but the data's type was incorrect.“,macrocall:„I tried to use a macro, but its call wasn't written correctly.“,datatype:„I tried to use a macro, but was given the wrong type of data to it.“,custommacro:„I tried to use a custom macro, but its code hook had a mistake in it.“,infinite:„I almost ended up doing the same thing over and over, forever.“,property:„I tried to access a value in a string/array/datamap, but I couldn't find it.“,unimplemented:„I currently don't have this particular feature. I'm sorry.“,propagated:„Click the 'Open' button to see the code hook as it was executed.“,user:„This is a custom error created by (error:). It usually means you used a custom macro incorrectly.“,assertion:„This command exists to provide a helpful error if a certain important condition wasn't true.“,debugonly:„This macro is not meant to be used outside of debugging your story.“}),u=[],n={TwineError:!0,create:function(e,t,n,r){return t&&„string“==typeof t||a(„TwineError.create“,“has a bad message string„),n||e in l||a(„TwineError.create“,“no error explanation given„),“user„!==e&&(t=t[0].toUpperCase()+t.slice(1)),Object.assign(Object.create(this),{type:e,message:t,explanation:n,source:void 0,innerDOM:r,appendTitleText:!1})},containsError:function(){for(var e=0;e<arguments.length;e+=1){var t=arguments[e];if(n.isPrototypeOf(t))return t;if(Array.isArray(t)){t=n.containsError.apply(n,t);if(t)return t}}return!1},createWarning:function(e,t){return Object.assign(this.create(e,t),{warning:!0})},render:function(t){var n=this,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=(t=„string“==typeof t?t:this.source||“„,i(“<tw-error class='„+(this.warning?“warning„:„error“)+“' title='„+c(t)+“'>„+c(this.message+(this.appendTitleText?“ „+t:“„))+“</tw-error>„)),a=i(“<tw-error-explanation>„).text(this.explanation||l[this.type]).hide(),o=i(“<tw-folddown tabindex=0>„);return this.innerDOM&&i(“<tw-open-button label='Open'>„).on(„click“,function(){var e=i(“<tw-backdrop><tw-dialog></tw-backdrop>„);e.find(„tw-dialog“).prepend(n.innerDOM,i(“<tw-link tabindex=0>OK</tw-link>„).on(„click“,function(){n.innerDOM.detach(),e.remove()}).wrap(“<tw-dialog-links>„).parent()),s.storyElement.prepend(e)}).appendTo®,r.append(o).append(a),r.data(„TwineError“,this),e||u.forEach(function(e){return e(n,t)}),r},on:function(e){return“function„!=typeof e||u.includes(e)||u.push(e),n}};return Object.preventExtensions(n)}),define(„internaltypes/twinenotifier“,[„jquery“,“utils„],function(e,t){var n=t.impossible,r={create:function(e){return e||n(„TwineNotifier.create“,“called with only 1 string.„),Object.assign(Object.create®,{message:e})},render:function(){return e(“<tw-notifier>„).attr(„message“,this.message)}};return Object.preventExtensions®}),define(„internaltypes/varref“,[„state“,“internaltypes/twineerror„,“utils„,“utils/operationutils„,“datatypes/hookset„],function(u,p,e,t,i){var c,n=e.impossible,s=e.andList,r=e.nth,o=t.is,d=t.isObject,f=t.toSource,h=t.isSequential,m=t.objectName,l=t.typeName,y=t.clone,g=t.isValidDatamapName,v=t.subset,b=t.collectionType,w=t.unstorableValue,a=t.matches,k=Array.isArray,T={set:[],delete:[]},S=„You can only access position strings/numbers ('4th', 'last', '2ndlast', (2), etc.), slices ('1stTo2ndlast', '3rdTo5th'), “,x=„You can't access the '0th' or '0thlast' position of “;function _(e,t){if(p.containsError(t))return n;if(e instanceof Map&&(n=p.containsError(g(e,t))))return n;if(h(e))if(„number“==typeof t){if(0===t)return p.create(„property“,“You can't access elements at position 0 of „.concat(m(e),“.„),“Only positive and negative position values exist.„);0<t&&–t}else if(„string“==typeof t&&(r=/^(\d+)(?:st|[nr]d|th)last$/i.exec(t))){if(„0“===r[1])return p.create(„property“,x+m(e)+“.„);t=-r[1]}else if(„string“==typeof t&&(r=/^(\d+)(?:st|[nr]d|th)$/i.exec(t))){if(„0“===r[1])return p.create(„property“,x+m(e)+“.„);t=r[1]-1}else if(„string“==typeof t&&(r=/^(?:(\d+)(?:st|[nr]d|th)(last)?|last)to(?:(\d+)(?:st|[nr]d|th)(last)?|last)$/i.exec(t))){var n=_slicedToArray(r,5),r=n[1],r=void 0===r?0:r,a=n[2],o=n[3],o=void 0===o?0:o;t={last:o=n[4]?-o:o-1,first:r=a?-r:r-1}}else if(„last“===t)t=-1;else if(„random“===t){if(!e.length)return p.create(„property“,“I can't get a random value from „.concat(m(e),“, because it's empty.„));t=u.random()*Array.from(e).length|0}else{if(i.isPrototypeOf(e)&&!i.TwineScript_Properties.includes(t))return p.create(„property“,“„.concat(S+s(i.TwineScript_Properties.map(function(e){return“'„+e+“'„})),“ of „).concat(m(e),“, not „).concat55);if(![„length“,“some„,“any„,“all„,“start„,“end„,“random„].includes(t)&&!i.isPrototypeOf(e))return p.create(„property“,“„.concat(S,“'length', 'some', 'any', 'all', 'start', 'end', and 'random' of „).concat(m(e),“, not „).concat56)}else if(e instanceof Set){if(![„length“,“some„,“any„,“all„].includes(t))return p.create(„property“,“„.concat(S,“'length', 'some', 'any', and 'all' of „).concat(m(e),“.„),“You can't access specific individual data values from datasets.„);“length„===t&&(t=„size“)}else{if(k(e.TwineScript_Properties)&&!e.TwineScript_Properties.includes(t))return p.create(„property“,“You can only get the „.concat(s(e.TwineScript_Properties.map(function(e){return“'„+e+“'„})),“ of „).concat(m(e),“, not „).concat57);if(„number“==typeof e||“boolean„==typeof e)return p.create(„property“,“You can't get any data values, let alone „.concat(m(t),“, from „).concat(m(e)))}return t}function O(e,t){return+t<0&&Math.abs(t)⇐e.length?e.length+ +t:t}var A=/[^\x0000-\xFFFF]/,E=new Map;function C(e,t){if(void 0===e)return e;if(e instanceof Map)return e.get(t);if58)},TwineScript_TypeName:a+„a data structure“,TwineScript_Unstorable:!0,TwineScript_Print:function(){return“`[„+this.TwineScript_TypeName+“]`„}};var n,r,a;if(„string“==typeof e&&(E.has(e)?e=E.get(e):A.test(e)?(a=_toConsumableArray(e),E.set(e,a),e=a):E.set(e,e)),h(e)&&Number.isFinite(t)&&(t=O(e,t)),e.TwineScript_GetProperty)return e.TwineScript_GetProperty(t);e=e[t];return“function„!=typeof e?e:void 0}function N(e){var t;return e.computed?(t=e.value,“string„==typeof(t=c.isPrototypeOf(t)?t.get():t)?“('„+t+“')„:“(„+t+“)„):„number“==typeof e?r(e):“'„+e+“'„}function P(t,e,n){if(t.TwineScript_VariableStore){if(t.TwineScript_TypeDefs&&e in t.TwineScript_TypeDefs){var r=t.TwineScript_TypeDefs[e];if(„const“===r.name){if(void 0!==t[e])return p.create(„operation“,“I can't alter „.concat(t===u.variables?“$„:„_“).concat(e,“ because it's been restricted to a constant value.„),“This variable can't be changed for the rest of the story.„)}else if(!a(r,n))return p.create(„operation“,“I can't set „.concat(t===u.variables?“$„:„_“).concat(e,“ to „).concat(l(n),“ because it's been restricted to „).concat(f®,“-type data.„),“You can restrict a variable or data name by giving a typed variable to (set:) or (put:).„)}return!0}return k(e)?e.map(function(e){return P(t,e)}):t instanceof Map?“string„==typeof e||p.create(„operation“,“„.concat(m(t),“ can only have string data names, not „).concat(m(e),“.„)):h(t)?[„length“,“random„,“some„,“any„,“all„,“start„,“end„].includes(e)?p.create(„operation“,“I can't forcibly alter the '„+e+“' of „+m(t)+“.„,“start„===e||“end„===e?“Alter the values at actual positions, like 1st or 2ndlast, rather than just the '„+e+“'.„:void 0):+e==(0|e)||p.create(„property“,m(t)+“ can only have position keys ('3rd', '1st', (5), etc.), not „+N(e)+“.„):t.TwineScript_Identifiers&&e in t?p.create(„keyword“,“I can't alter the value of the '„+e+“' identifier.„,“You can only alter data in variables, not fixed identifiers.„):p.create(„operation“,“I can't modify „+m(t),t instanceof Set?“You should use an (array:) if you need to modify the data inside this dataset.„:i.isPrototypeOf(t)?“You should alter hooks indirectly using macros like (replace:) or (enchant:).„:void 0)}function j(t,e,n,r){var a=e;t instanceof Map?t.set(e,n):(h(t)&&(e=O(t,e)),t.TwineScript_Set?t.TwineScript_Set(e,n,r):t[e]=n),T.set.forEach(function(e){return e(t,a,n)})}function R(t,e){var n=e;h(t)&&(e=O(t,e)),k(t)&&/^(?:[1-9]\d*|0)$/.exec(e)?t.splice(e,1):t instanceof Map||t instanceof Set?t.delete(e):t.TwineScript_Delete?t.TwineScript_Delete(e):delete t[e],T.delete.forEach(function(e){return e(t,n)})}function I(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e,r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(e&&„object“===_typeof(e)&&„last“in e&&„first“in e){if(i.isPrototypeOf(t))return t.TwineScript_GetProperty(e);var a=e.first,o=e.last;return v(t,a+(0⇐a),o+(0⇐o))}if(k(e))return i.isPrototypeOf(t)?t.TwineScript_GetProperty(e):e.map(function(e){return I(t,e,e)})[„string“==typeof t?“join„:„valueOf“](“„);a=C(t,e);if(void 0!==a||r)return a;if(t===u.variables)return 0;if(„temp“===(null==(o=t.TwineScript_VariableStore)?void 0:o.type))return p.create(„property“,“There isn't a temp variable named _„.concat(n,“ in this place.„),“Temp variables only exist inside the same passage, hook, or lambda in which they're created.„);if(k(t)&&„number“==typeof e)return p.create(„property“,“This array of „.concat(t.length,“ elements doesn't have a „).concat(N(n+(„number“==typeof n?1:“„)),“ element.„),t.length?“It contains: „.concat(s(t.map(m)),“.„):„The array is empty.“);r=Array.from(„function“==typeof t.keys&&t.keys());return p.create(„property“,“I can't find a „.concat(N(n),“ data name in „).concat(m(t)),t instanceof Map&&r.length?“Its names include: „.concat(s®,“.„):void 0)}function V(e,t){var r=this,e=this.compiledPropertyChain.reduce(function(e,t){var n=0===e.length?r.object:I.apply(void 0,_toConsumableArray(e[e.length-1]));return e.push([n,t])&&e},[]).reduceRight(e,t);return p.containsError(e)?e:void 0}return c=Object.freeze({get:function(){for(var e=this.object,t=0;t<this.compiledPropertyChain.length-1;t+=1)if(e=I(e,this.compiledPropertyChain[t]),p.containsError(e))return e;return I(e,this.compiledPropertyChain.slice(-1)[0],this.propertyChain.slice(-1)[0])},has:function(){for(var e=this.object,t=0;t<this.compiledPropertyChain.length-1;t+=1)if(void 0===(e=I(e,this.compiledPropertyChain[t],void 0,!0))||p.containsError(e))return!1;return void 0!==I(e,this.compiledPropertyChain.slice(-1)[0],void 0,!0)},set:function(e,c){var l=this;return!this.object||this.object.TwineScript_VariableStore||this.object.TwineScript_Identifiers?V.call(this,function(n,e,t){var e=_slicedToArray(e,2),r=e[0],a=e[1];if(e=p.containsError(n,r,a)||p.containsError(P(r,a,n)))return e;if(e=w(n))return p.create(„operation“,“„.concat(m(n),“ can't be stored„).concat(!n.TwineScript_Unstorable&&b(n)?“ because it holds „.concat(m(e)):“„,“.„));if(0<t)r=y®;else if(„temp“===(null==(e=r.TwineScript_VariableStore)?void 0:e.type)&&r!==u.variables){for(var o=r;“temp„===(null==(i=o.TwineScript_VariableStore)?void 0:i.type)&&!hasOwnProperty.call(o,a);)var i,o=Object.getPrototypeOf(o);“temp„===(null==(t=o.TwineScript_VariableStore)?void 0:t.type)&&(r=o)}if(„string“==typeof r){if(„string“!=typeof n)return p.create(„datatype“,“I can't put this non-string value, „.concat(m(n),“, in a string.„));if(n.length!==(k(a)?a.length:1))return p.create(„datatype“,“„.concat(m(n),“is not the right length to fit into this string location.„));var r=_toConsumableArray®,s=_toConsumableArray(n);[].concat(a).forEach(function(e){0+e<0&&(e=r.length+(0+e)),r=[].concat(_toConsumableArray(r.slice(0,e)),[s.shift()],_toConsumableArray(r.slice(e+1)))}),r=r.join(“„)}else d®&&(void 0!==n.TwineScript_KnownName&&59),k(a)&&h(n)?(„string“==typeof n&&(n=_toConsumableArray(n)),a.map(function(e,t){return[e,n[t]]}).forEach(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];return j(r,t,e,c)})):j(r,a,n,c));return r},e):p.create(„macrocall“,“I can't (set:) „.concat(m(this),“, if the „).concat60))?r:(0<n&&(a=y(a)),null===e?61),k(t)?(h(a)&&(t=_toConsumableArray(new Set(t))).sort(function(e,t){return O(a,t)-O(a,e)}),t.forEach(function(e){return R(a,e)})):R(a,t),r&&(a=a.join(“„))):j(a,t,e,!1),a)},null)},defineType:function(e){var t=this.object,n=this.compiledPropertyChain[0],r=(hasOwnProperty.call(t,“TwineScript_TypeDefs„)||(t.TwineScript_TypeDefs=Object.create(t.TwineScript_TypeDefs||null)),t.TwineScript_TypeDefs),a=r[n];if(a&&!o(a,e))return p.create(„operation“,“I can't redefine the type of „+m(this)+“ to „+(e.TwineScript_ObjectName||l(e))+“, as it is already „+(a.TwineScript_ObjectName||l(a))+“.„);t.TwineScript_DefineType?t.TwineScript_DefineType(n,e):r[n]=e,“const„===e.name&&(t[n]=void 0)},matches:function(e,t){return this.object===e&&this.compiledPropertyChain[0]===t},getName:function(){return this.compiledPropertyChain[0]},create:function(e,t){var n;if(n=p.containsError(e))return n;Array.isArray(t)||(t=[].concat(t)),c.isPrototypeOf(e)&&(t=e.propertyChain.concat(t),e=e.object);var r=function(e,t){for(var n,r=[],a=0;a<t.length;a+=1){var o=t[a];if(o.computed&&(o=o.value),c.isPrototypeOf(o)&&(o=o.get()),k(o)){for(var i=[],s=0;s<o.length;s+=1)i[s]=_(e,o[s]);o=i}else o=_(e,o);if(n=p.containsError(o))return n;a<t.length-1&&(e=I(e,o)),r.push(o)}return r}(e,t);return(n=p.containsError®)?n:Object.assign(Object.create©,{object:e,propertyChain:t,compiledPropertyChain:r})},TwineScript_ToSource:function(){function r(e,t){return!t&&n.object.TwineScript_VariableStore?e:N(e)}var e,n=this;return(this.object===u.variables?“$„:„temp“===(null==(e=this.object.TwineScript_VariableStore)?void 0:e.type)?“_„:f(this.object)+“'s „)+(1===this.propertyChain.length?r(this.propertyChain[0]):this.propertyChain.reduce(function(e,t,n){return e+“'s „+r(t,n)}))},get TwineScript_ObjectName(){var e;return this.object.TwineScript_VariableStore?“the „.concat(„temp“===(null==(e=this.object.TwineScript_VariableStore)?void 0:e.type)?“temp „:“„,“variable „).concat(this.TwineScript_ToSource()):m(this.object)+“'s „+(1===this.propertyChain.length?N(this.propertyChain[0]):this.propertyChain.reduce(function(e,t,n){return e+“'s „+N(t)}))},on:function(e,t){if(e in T)return“function„!=typeof t||T[e].includes(t)||T[e].push(t),c;n(„VarRef.on“,“invalid event name„)}})}),define(„internaltypes/varscope“,[],function(){return Object.seal({TwineScript_ObjectName:„the temporary variables“,TwineScript_VariableStore:{type:„temp“,name:„an unknown scope“},TwineScript_TypeDefs:Object.create(null)})}),define(„macrolib/commands“,[„jquery“,“macros„,“utils„,“state„,“passages„,“engine„,“internaltypes/twineerror„,“internaltypes/twinenotifier„,“datatypes/assignmentrequest„,“datatypes/hookset„,“datatypes/codehook„,“datatypes/colour„,“datatypes/gradient„,“internaltypes/varref„,“datatypes/typedvar„,“datatypes/varbind„,“utils/operationutils„,“utils/renderutils„],function(u,n,g,c,l,a,v,D,e,o,t,p,d,i,s,b,r,f){var h=r.printBuiltinValue,m=r.objectName,y=r.clone,w=r.toSource,k=f.dialog,T=f.geomParse,M=f.geomStringRegExp,r=n.TypeSignature,f=r.Any,F=r.Everything,S=r.rest,x=r.either,_=r.optional,O=r.zeroOrMore,L=r.percent,z=r.nonNegativeInteger,A=r.positiveInteger,r=r.positiveNumber,E=Object.assign,C=Math.floor,N=Math.ceil,P=Math.abs,H=Math.max,q=Math.min,j=u.noop;function R(e){return“(„+e+“ „+g.options.ifid+“) „}[„set“,“put„,“unpack„].forEach(function®{return n.add(r,“Instant„,function(e){for(var t=0;t<(arguments.length⇐1?0:arguments.length-1);t+=1){var n=t+1<1||arguments.length⇐t+1?void 0:arguments[t+1];if(„into“===n.operator&&„set“===r)return v.create(„macrocall“,“Please say 'to' when using the (set:) macro.„);if(„to“===n.operator&&„set“!==r)return v.create(„macrocall“,“Please say 'into' when using the (put:) or (unpack:) macro.„);if62)===(„unpack“===r))return v.create(„macrocall“,“unpack„===r?“Please use the (unpack:) macro with arrays, datamaps or (p:) patterns containing variables to the right of 'into'.„:„Please use the (“+r+“:) macro with just single variables and typed variables to the „+(„set“===r?“left of 'to'.„:„right of 'into'.“),“You may wish to change this to the („.concat(„unpack“!==r?“unpack„:„to“===n.operator?“set„:„put“,“:) macro.„));n=n.set();if(v.containsError(n))return n}return{TwineScript_TypeID:„instant“,TwineScript_TypeName:„a (“+r+“:) operation„,TwineScript_ObjectName:„a (“+r+“:) operation„,TwineScript_Unstorable:!0,TwineScript_Print:function(){return g.options.debug,“„}}},[S(e)])}),n.add(„move“,“Instant„,function(e){for(var t=0;t<(arguments.length⇐1?0:arguments.length-1);t+=1){var n=t+1<1||arguments.length⇐t+1?void 0:arguments[t+1];if(„into“!==n.operator)return v.create(„macrocall“,“Please say 'into' when using the (move:) macro.„);n=n.set(!0);if(v.containsError(n))return n}return{TwineScript_TypeID:„instant“,TwineScript_TypeName:„a (move:) operation“,TwineScript_ObjectName:„a (move:) operation“,TwineScript_Unstorable:!0,TwineScript_Print:function(){return g.options.debug,“„}}},[S(e)]),n.addCommand(„display“,function(e){if(!l.hasValid(e))return v.create(„macrocall“,“I can't (display:) the passage '„+e+“' because it doesn't exist.„)},function(e,t,n){return e.source=l.getTree(n),e},[String])(„print“,j,function(e,t,n){return E(e,{source:h(n)})},[f])([„verbatim-print“,“v6m-print„],j,function(e,t,n){return E(e,{verbatim:!0,source:h(n)})},[f])([„verbatim-source“,“v6m-source„],function(e){if(„command“===(null==e?void 0:e.TwineScript_TypeID)&&!e.TwineScript_ToSource)return v.create(„datatype“,“I can't construct the source code of a command created by a custom macro.„)},function(e,t,n){return E(e,{verbatim:!0,source:h(w(n))})},[f])(„go-to“,function(e){if(!l.hasValid(e))return v.create(„macrocall“,“I can't (go-to:) to the passage '„.concat(e,“' because it doesn't exist.„),“Check that you didn't mistype the passage name, or rename the passage to something else.„)},function(e,t,n){return requestAnimationFrame(function(){return a.goToPassage(n,{transition:e.data.passageT8n})}),{blocked:!0}},[String])(„redirect“,function(e){if(!l.hasValid(e))return v.create(„macrocall“,“I can't (redirect:) to the passage '„.concat(e,“' because it doesn't exist.„),“Check that you didn't mistype the passage name, or rename the passage to something else.„)},function(e,t,n){return requestAnimationFrame(function(){return a.redirect(n,{transition:e.data.passageT8n})}),{blocked:!0}},[String])(„undo“,j,function(e,t,n){return c.pastLength<1?E(e,{source:n}):(requestAnimationFrame(function(){return a.goBack({transition:e.data.passageT8n})}),{blocked:!0})},[_(String)])(„debug“,j,a.enableDebugMode,[],!1),g.onStartup(function(){return g.storyElement.on(„click.icon“,“tw-icon„,function(e){var t=u(this),n=t.data(„clickEvent“),r=t.attr(„alt“);n&&n(t),“Undo„===r&&(e.stopPropagation(),a.goBack()),“Redo„===r&&(e.stopPropagation(),a.goForward()),“Fullscreen„===r&&(e.stopPropagation(),a.toggleFullscreen()),“Restart„===r&&(c.hasSessionStorage&&sessionStorage.removeItem(„Saved Session“),window.location.reload())})}),|document.msFullscreenEnabled}],["Restart","⟲",Object.forEach(function(e){var e=_slicedToArray(e,3),o=e[0],i=e[1],s=e[2];n.addCommand(„icon-“.concat(o.toLowerCase()),function(e,t){if(„string“==typeof e&&„string“==typeof t)return e=_toConsumableArray(e).length,t=_toConsumableArray(t).length,1<e&&1<t?v.create(„datatype“,“One of the two strings given to (icon-„.concat(o.toLowerCase(),“:) should be 1 character long, for its icon.„)):1===e&&1===t?v.create(„datatype“,“One of the two strings given to (icon-„.concat(o.toLowerCase(),“:) should be 2 or more characters long, for its label.„)):void 0},function(t,e,n,r){var a;return(„string“==typeof r&&1===_toConsumableArray®.length||“string„==typeof n&&1<_toConsumableArray(n).length)&&(n=(a=[r,n])[0],r=a[1]),“Undo„===o&&(t.data.forgetUndosEvent=function(e){t.section.whenUnblocked(function(){return u(e).css(„visibility“,“hidden„)})}),E(t,{source:'<tw-icon tabindex=0 alt=“'.concat(o,'„ ').concat(r?'data-label=“'.concat(r.replace('„',“"„),'“'):„“,' title=„').concat(o,'“ ').concat(s()?„“:'style=„visibility:hidden“',„>“).concat(n||i,„</tw-icon>“)})},[_(String),_(String)])}),n.addCommand(„icon-counter“,function(e,t,n){var r=„ label string given to (icon-counter:) can't be empty or only whitespace.“;return t&&t.trim()?„string“!=typeof n||n.trim()?void 0:v.create(„datatype“,„The 2nd “+r):v.create(„datatype“,„The 1st “+r)},function(r,e,a,o,i){r.attr.push({„data-2bind“:!0}),r.data.twoWayBindEvent=function(e,t,n){a.varRef.matches(t,n)&&„number“==typeof(t=a.varRef.get())&&r.target.children(„tw-icon“).text63).attr(„data-label“,1!==P(t)&&void 0!==i?i:o)};var t=a.varRef.get();return„number“!=typeof t?v.create(„datatype“,„(icon-counter:) can only be bound to a variable holding a number, not “.concat(m(t),„.“)):E(r,{source:'<tw-icon data-label=„'.concat(g.escape(1!==P(t)&&void 0!==i?i:o),'“>').concat64);function s(e){var t=H(0,q(1,e/n)),e=i.repeating?i:i.multiply(n/e);return„height:100%;background-repeat:no-repeat;background-image:“.concat65)&&66).attr(„style“,s(t)),o&&r.section.renderInto(„“,null,{source:o,target:n,append:„replace“,transitionDeferred:!1},u))},a.varRef.get());return„number“!=typeof t?v.create(„datatype“,„(meter:) can only be bound to a variable holding a number, not “.concat(m(t),„.“)):E(r,{source:'<tw-meter style=„'.concat(s(t),'“>').concat(o||„“,„</tw-meter>“)})},[b,r,String,_(x(String,p,d)),_(x(p,d))]),"cycling-link"],["seq-link","sequence-link".forEach(function(t,u){return n.addCommand(t,function(){return„“===(arguments.length⇐0?void 0:arguments[0])?v.create(„datatype“,„The first string in a (“+t[0]+„:) can't be empty.“):arguments.length⇐(b.isPrototypeOf(arguments.length⇐0?void 0:arguments[0])?2:1)?v.create(„datatype“,„I need two or more strings to “+(u?„sequence“:„cycle“)+„ through, not just '“+67)&&(a=i),e.data.twoWayBindEvent=function(e,t,n){r.varRef.matches(t,n)&&„boolean“==typeof(t=r.varRef.get())&&e.children(„input[type=checkbox]“).prop(„checked“,t)}),e.data.checkboxEvent=function(e){var t=e.is(„:checked“),t=r.set(t);v.containsError(t)&&e.replaceWith(t.render(„“))},r.set(a));return v.containsError(i)?i:E(e,{source:'<input id=„'.concat(o,'“ type=„checkbox“ ').concat(a?„checked“:„“,'><label for=„').concat(o,'“>').concat(n,„</label>“),append:„replace“})},[b,String]),g.onStartup(function(){return u(document).on(„fullscreenchange“,function(){u(„input[type=checkbox][id^=fullscreen]“,g.storyElement).each(function(e,t){(u(t).closest(„tw-expression“).data(„fullscreenEvent“)||Object)(t)})})}),n.addCommand(„checkbox-fullscreen“,function(){},function(e,t,n){var r=„fullscreenCheckbox-“+ V;return e.data.fullscreenEvent=function(e){return u(e).prop(„checked“,!(!document.fullscreenElement&&!document.msFullscreenElement))},e.data.checkboxEvent=function(){return a.toggleFullscreen()},E(e,{source:'<input id=„'.concat(r,'“ type=„checkbox“ ').concat(document.fullscreenEnabled||document.msFullscreenEnabled?„ “:„disabled “).concat(document.fullscreenElement||document.msFullscreenElement?„checked“:„“,'><label for=„').concat(r,'“>').concat(n,„</label>“),append:„replace“})},[String]),g.onStartup(function(){return g.storyElement.on(„input.input-box-macro“,„textarea, input[type=text]“,function(){var e=u(this),t=e.closest(„tw-expression“).data(„inputBoxEvent“);t&&t(e)})}),[„input“,„force-input“,„input-box“,„force-input-box“].forEach(function(y){return n.addCommand(y,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n)t[n]=arguments[n];var r=y.endsWith("box"),a=b.isPrototypeOf(t[0]),o="string"==typeof t[+a],r=r&&"number"==typeof t[o+a],i=o?t[+a]:t[a+r],s=0<T(i).size,o=s?t[a+r+o]:i;return y.startsWith("force")&&"string"!=typeof o?v.create("datatype","The (".concat(y,":) macro requires a string of text to forcibly input.")):t.length>a+r+s+("string"==typeof o)?v.create("datatype","An incorrect combination of values was given to this (".concat(y,":) macro.")):void 0},function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=y.startsWith("force"),i=y.endsWith("box"),s=b.isPrototypeOf(r[0]),c="string"==typeof r[+s],l=i&&"number"==typeof r[c+s],u=s&&r[0],p=l?r[1+s]:3,d=c?T(r[+s]):{},f=d.marginLeft,d=d.size,h=(d?r[s+l+c]:c&&r[+s]) )t[n]=arguments[n];return t.some(function e(t){var n=t.selector,t=t.next;return„name“===n.type&&„page“===n.data?(r=v.create(„macrocall“,„You can't (hide:) the ?page. Sorry.“),!0):!!(„base“===n.type&&e(n.data)||t&&e(t))||void 0}),r},function(o,i){for(var e=arguments.length,t=new Array(2<e?e-2:0),n=2;n<e;n)t[n-2]=arguments[n];return t.forEach(function(e){return e.forEach(i,function(e){var t,n,r,a=e.data("hidden");void 0!==a!=("rerun"===s)&&(e.removeData("hidden"),a instanceof u?e.empty().append(a):(a=e.data("tempVariables"),n=(t="tw-passage"===e.tag())?l.getTree(c.passage):e.data("originalSource") )t[n]=arguments[n];return t.some(function e(t){var n=t.selector,t=t.next;return„name“===n.type&&„page“===n.data?(r=v.create(„macrocall“,„You can't (hide:) the ?page. Sorry.“),!0):!!(„base“===n.type&&e(n.data)||t&&e(t))||void 0}),r},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];for(var a=0,o=n;a<o.length;a++)o[a].forEach(e,function(e){Boolean(e.data("hidden")) ){var u=_slicedToArray(l[c],3),p=u[0],d=u[1],f=u[2];p.scrollLeft=d,p.scrollTop=f}break}}}catch(e){a.e(e)}finally{a.f()}}})})},[o,x(L,o)],!1)(„stop“,j,j,[],!1)(„load-game“,j,function(e,t){if(e.loadedGame)return v.create(„infinite“,„I can't use (load-game:) immediately after loading a game.“);var n,r=localStorage.getItem(R(„Saved Game“)+t);return r?(r=c.deserialise(e,r))instanceof Error?{blocked:n=k({message:„Sorry to interrupt… The story tried to load saved data, but there was a problem.\n“+r.message+„\n\nThat data might have been saved from a different version of this story. Should I delete it?\n(Type 'delete' and choose Yes to delete it.)\n\nEither way, the story will now continue without loading the data.“,defaultValue:„“,buttons:[{name:„Yes“,confirm:!0,callback:function(){„delete“===n.find(„input“).last().val()&&localStorage.removeItem(R(„Saved Game“)+t),e.unblock(„“)}},{name:„No“,cancel:!0,callback:function(){return e.unblock()}}]})}:void requestAnimationFrame(a.showPassage.bind(a,c.passage,{loadedGame:!0})):v.create(„saving“,„I can't find a save slot named '“+t+„'!“)},[String],!1)(„forget-undos“,j,function(e,t){c.futureLength||c.forgetUndos(t)},[parseInt],!1)(„forget-visits“,j,function(e,t){c.forgetVisits(t)},[parseInt],!1)(„mock-visits“,function(){if(!g.options.debug)return v.create(„debugonly“,„(mock-visits:) cannot be used outside of debug mode.“);for(var e=arguments.length,t=new Array(e),n=0;n<e;n)t[n]=arguments[n];var r=t.find(function(e){return!l.hasValid(e)});return r?v.create("datatype","I can't mock-visit '"+r+"' because no passage with that name exists."):void 0},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];c.mockVisits=y(n)},[S(String)],!1)("mock-turns",function(){if(!g.options.debug)return v.create("debugonly","(mock-turns:) cannot be used outside of debug mode.")},function(e,t){c.mockTurns=t},[z],!1)("seed",j,function(e,t){c.setSeed(t)},[String],!1)(["dialog","alert"],function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if(b.isPrototypeOf(e)){if("two way"===e.bind)return v.create("datatype","(dialog:) shouldn't be given two-way bound variables.",'Change the "2bind" keyword to just "bind".');if(void 0===t)return v.create("datatype","(dialog:) needs a message string or codehook to display.")}else void 0!==t&&r.unshift(t);e=r.findIndex(function(e){return""===e});if(-1<e)return v.create("datatype","(dialog:)'s ".concat(g.nth(e+1)," link text shouldn't be an empty string."))},function(e,n,r,t){for(var a=arguments.length,o=new Array(4<a?a-4:0),i=4;i<a;i++)o[i-4]=arguments[i];return b.isPrototypeOf(r) r}),r?e:v.create(„assertion“,„I didn't see any “.concat(„string“==typeof n?„text occurrences of“:„hooks matching“,„ “).concat(w(n),„ in this passage.“))},[x(o,String)]),n.add(„assert“,„Instant“,function(e,t){return t?{TwineScript_TypeID:„instant“,TwineScript_TypeName:„an (assert:) operation“,TwineScript_ObjectName:„an (assert:) operation“,TwineScript_Unstorable:!0,TwineScript_Print:function(){return„“}}:E(v.create(„assertion“,„An assertion failed: “),{appendTitleText:!0})},[Boolean])(„save-game“,„Boolean“,function(e,t,n){if(n=n||„“,!c.hasStorage)return!1;var r=c.serialise(!1).pastAndPresent;if(v.containsError®)return r;if(!1===r)return!1;try{return localStorage.setItem(R(„Saved Game“)+t,r),localStorage.setItem(R(„Saved Game Filename“)+t,n),!0}catch(e){return!1}},[String,_(String)])(„prompt“,„String“,function(e,t,n,r,a){var o;if(null!=(o=e.stackTop)&&o.evaluateOnly)return v.create.apply(v,[„macrocall“].concat(_toConsumableArray(I(e.stackTop.evaluateOnly))));if(„“===a)return v.create(„datatype“,„The text for (prompt:)'s confirm link can't be blank.“);var i=k({section:e,message:t,defaultValue:n,buttons:[{name:a||„OK“,confirm:!0,callback:function(){return e.unblock(i.find(„input“).last().val())}}].concat(„“===r?[]:{name:r||„Cancel“,cancel:!0,callback:function(){return e.unblock(n)}})});return e.stackTop.blocked=i,0},[x(String,t),String,_(String),_(String)])(„confirm“,„Boolean“,function(e,t,n,r){if(null!=(a=e.stackTop)&&a.evaluateOnly)return v.create.apply(v,[„macrocall“].concat(_toConsumableArray(I(e.stackTop.evaluateOnly))));if(„“===r)return v.create(„datatype“,„The text for (confirm:)'s confirm link can't be blank.“);var a=k({section:e,message:t,defaultValue:!1,buttons:[{name:r||„OK“,confirm:!0,callback:function(){return e.unblock(!0)}}].concat(„“===n?[]:{name:n||„Cancel“,cancel:!0,callback:function(){return e.unblock(!1)}})});return e.stackTop.blocked=a,0},[x(String,t),_(String),_(String)])(„page-url“,„String“,function(){return window.location.href},[])}),define(„macrolib/custommacros“,[„utils“,„macros“,„state“,„utils/operationutils“,„datatypes/changercommand“,„datatypes/custommacro“,„datatypes/codehook“,„datatypes/typedvar“,„internaltypes/twineerror“],function(c,l,u,e,t,p,n,d,f){function s(e,t,n){if(!t.some(function(e){if(„function“==typeof e.output)return e.output(n),!0}))return f.create(„macrocall“,„(“+e+„:) should only be used inside a code hook passed to (macro:).“)}var h=e.objectName,m=e.toSource,e=l.add,r=l.addChanger,a=l.addCommand,o=l.TypeSignature,i=o.rest,y=o.either,g=o.Any,v=o.Everything,o=o.zeroOrMore;e(„macro“,„CustomMacro“,function(e){for(var t,n=[],r=arguments.length,a=new Array(1<r?r-1:0),o=1;o<r;o)a[o-1]=arguments[o];for(t=0;t<a.length;t+=1){var i=t===a.length-1;if(d.isPrototypeOf(a[t])===i)return f.create("datatype","The "+(i?"":c.nth(a.length-t+1)+"-")+"last value given to (macro:) should be a "+(i?"code hook":"datatyped variable")+", not "+h(a[t]));if(!i){i="A custom macro";if(a[t].varRef.object===u.variables)return f.create("datatype",i+"'s typed variables must be temp variables (with a '_'), not global variables (with a '$').","Write them with a _ symbol at the start instead of a $ symbol.");if(1<a[t].varRef.propertyChain.length)return f.create("datatype",i+"'s typed variables can't be properties inside a data structure.");if(a[t].datatype.rest&&t!==a.length-2)return f.create("datatype",i+" can only have one spread variable, and it must be its last variable.");var s=a[t].varRef.propertyChain[0];if(n.includes(s))return f.create("datatype",i+"'s typed variables can't both be named '"+s+"'.");n.push(s)}}return p.create(a.slice(0,-1),a[a.length-1])},[i(y(d,n))]);a(["output-data","out-data"],function(){},function(e,t){e=e.stack;return s("output-data",e,t) )o[n-2]=arguments[n];var r=„string“!=typeof a&&a,i=!r&&a;if(!r){if(!l.has(i))return f.create(„macrocall“,'The macro name given to (partial:), „'.concat(a,“\„, isn't the name of a built-in macro.“));if(„Metadata“===l.get(i).returnType)return f.create(„macrocall“,„(partial:) can't be used with metadata macros such as (“.concat(a,„:)“))}var s=„(partial:“.concat(m(a),„,“).concat(o.map(function(e){return m(e)}),„)“),c=p.createFromFn(function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];e=l["string"==typeof a?"run":"runCustom"](a,e,o.concat(n));return f.containsError(e)&&(e.message="An error occurred while running the (partial:)-created macro, ".concat(c.TwineScript_ObjectName,":\n")+e.message),e},"a (partial:) custom macro of ".concat(i )n[r-1]=arguments[r];return n},T(k(o,S)))(„range“,„Array“,function(e,t,n){return b(t,n)},[parseInt,parseInt])(„subarray“,„Array“,function(e,t,n,r){return f(t,n,r)},[Array,parseInt,parseInt])(„reversed“,„Array“,function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return n.reverse().map(v)},T(S))("shuffled","Array",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return s.shuffled.apply(s,n).map(v)},[T(S)])("sorted","Array",function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(!c.isPrototypeOf(r[0]))return(t=r.filter(function(e){return"string"!=typeof e&&"number"!=typeof e}))&&t.length?1===t.length&&Array.isArray(t[0])?l.create("macrocall","Please give multiple numbers or strings to (sorted:), not a single array.","You can use the spread ... syntax to spread out the array's values into (sorted:)."):l.create("datatype","If (sorted:) isn't given a 'via' lambda, it must be given only numbers and strings, not ".concat(d(t[0]),".")):r.sort(x);var o=r.shift();if("making"in o )r[a-2]=arguments[a];t=-1*(t=Math.abs(t)%r.length*Math.sign(t));return r.slice(t).concat(r.slice(0,t)).map(v)},[parseInt,T(S)])(„rotated-to“,„Array“,function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a)r[a-2]=arguments[a];t=t.filter(e,r);if(l.containsError(t))return t;if(!t.length)return l.create("macrocall","None of these "+r.length+" values matched the lambda, so I can't rotate them.");e=r.indexOf(t[0]);return r.slice(e).concat(r.slice(0,e)).map(v)},[c.TypeSignature("where"),w(S)])("repeated","Array",function(e,t){for(var n=[],r=arguments.length,a=new Array(2<r?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];if(!a.length)return n;for(;0<t--;)n.push.apply(n,a);return n.map(v)},[e,w(S)])("interlaced","Array",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=Math.min.apply(Math,_toConsumableArray(n.map(function(e){return e.length}))),o=[],i=0;i<a;i+=1)for(var s=0;s<n.length;s+=1)o.push(v(n[s][i]));return o},[Array,w(Array)])("permutations","Array",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.length?u.apply(void 0,n):[]},[T(S)])("unique","Array",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.filter(g)},[T(S)])("altered","Array",function(n,r){for(var e=arguments.length,t=new Array(2<e?e-2:0),a=2;a<e;a++)t[a-2]=arguments[a];return t.map(function(e,t){t=r.apply(n,{loop:e,pos:t+1});return null===t?e:t})},[k(c.TypeSignature("via"),c.TypeSignature("where","via")),T(S)])("find","Array",function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return t.filter(e,r)},[c.TypeSignature("where"),T(S)])(["all-pass","pass"],"Boolean",function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];t=t.filter(e,r);return l.containsError(t) )r[a-2]=arguments[a];t=t.filter(e,r);return l.containsError(t)||0<t.length},[c.TypeSignature(„where“),T(S)])(„none-pass“,„Boolean“,function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a)r[a-2]=arguments[a];t=t.filter(e,r);return l.containsError(t) )t[n-2]=arguments[n];return„where“in a&&(t=a.filter(r,t)),l.containsError(t)||t.reduce(function(e,t,n){return a.apply(r,{making:e,loop:t,pos:n+1})})},[k(c.TypeSignature(„where“,„via“,„making“),c.TypeSignature(„via“,„making“)),w(S)])([„dm-names“,„datamap-names“,„datanames“],„Array“,function(e,t){return Array.from(t.keys()).sort(i(„en“))},[Map])([„dm-values“,„datamap-values“,„datavalues“],„Array“,function(e,t){return Array.from(t.entries()).sort(i(„en“,function(e){return String(e[0])})).map(function(e){return v(e[1])})},[Map])([„dm-entries“,„datamap-entries“,„dataentries“],„Array“,function(e,t){return Array.from(t.entries()).sort(function(e,t){return[e[0],t[0]].sort(i(„en“))[0]===e[0]?-1:1}).map(function(e){return new Map("name",e[0,[„value“,v(e[1])]])})},[Map])([„dm-altered“,„datamap-altered“],„Datamap“,function(a,o,e){return Array.from(e.entries()).sort(function(e,t){return[e[0],t[0]].sort(i(„en“))[0]===e[0]?-1:1}).reduce(function(e,t,n){if(!l.containsError(e)){var r=new Map("name",t[0,[„value“,v(t[1])]]),r=o.apply(a,{loop:r,pos:n+1});if(l.containsError®)return r;e.set(t[0],null===r?t[1]:r)}return e},new Map)},[k(c.TypeSignature(„via“),c.TypeSignature(„where“,„via“)),Map])(„history“,„Array“,function(e,t){var n=s.history();if(!t)return n;t=t.filter(e,n.map(function(e){return a.get(e)}));return l.containsError(t)?t:t.map(function(e){return e.get(„name“)})},[n(c.TypeSignature(„where“))])(„visited“,„Boolean“,function(e,t){if(„string“==typeof t)return a.has(t)?0<s.passageNameVisited(t)||s.passage===t:l.create(„macrocall“,„There's no passage named '“+t+„' in this story.“);var n=s.history(),n=t.filter(e,n.concat(s.passage).map(function(e){return a.get(e)}));return l.containsError(n)?n:0<n.length},[k(String,c.TypeSignature(„where“))])(„passage“,„Datamap“,function(e,t){return v(a.get(t||s.passage))||l.create(„macrocall“,„There's no passage named '“+t+„' in this story.“)},[n(String)])(„passages“,„Array“,function(e,t){var n=i(„en“),r=_toConsumableArray(a.values()).map(function(e){return v(e)}),t=t?t.filter(e,r):r,e=l.containsError(t);return e||t.sort(function(e,t){return n(e.get(„name“),t.get(„name“))})},[n(c.TypeSignature(„where“))])(„open-storylets“,„Array“,function(e,t){if(e.stackTop.evaluateOnly)return l.create(„macrocall“,„(open-storylets:) can't be used in “+e.stackTop.evaluateOnly+„.“);e=a.getStorylets(e,t),t=l.containsError(e);return t||e.map(v)},[n(c.TypeSignature(„where“))])(„savedgames“,„Datamap“,function(){function e(e){return„(“+e+„ “+p.ifid+„) “}var t,n,r=0,a=new Map;do{if(!s.hasStorage)break;t=localStorage.key®,r+=1;var o=e(„Saved Game“)}while(null!=(n=t)&&n.startsWith(o)&&(t=t.slice(o.length),a.set(t,localStorage.getItem(e(„Saved Game Filename“)+t))),t);return a},[])([„datamap“,„dm“],„Datamap“,function(e){for(var r,a=new Map,t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o)n[o-1]=arguments[o];var i=n.reduce(function(e,t){var n;if(!l.containsError(e))if(void 0===r)r=t;else{if(n=l.containsError(m(a,r)))return n;if(a.has(r))return l.create("macrocall","You used the same data name ("+d(r)+") twice in the same (datamap:) call.");a.set(r,v(t)),r=void 0}return e},!0);return l.containsError(i)?i:void 0!==r?l.create("macrocall","This datamap has a data name without a value."):a},T(k(o,S)))(["dataset","ds"],"Dataset",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Set(n.filter(g).map(v))},T(S))("count","Number",function t(n,r){for(var e,a,o=arguments.length,i=new Array(2<o?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(1<i.length)return a=i.map(function(e){return t(n,r,e)}),(e=l.containsError(a))?e:a.reduce(function(e,t){return e+t},0);var c=i[0];switch(h(r)){case"dataset":case"datamap":return l.create("macrocall","(count:) shouldn't be given a datamap or dataset.","You should use the 'contains' operator instead. For instance, write: $variable contains 'value'.");case"string":return"string"!=typeof c?l.create("macrocall",d(r)+" can't contain "+d(c)+" because it isn't also a string."):c?r.split(c).length-1:0;case"array":return r.reduce(function(e,t){return e+y(t,c)},0);default:return l.create("macrocall",d(r)+" can't contain values, let alone "+d(c)+".")}},[S,w(S)])}),define("macrolib/enchantments",["jquery","utils","utils/operationutils","engine","state","passages","macros","datatypes/hookset","datatypes/codehook","datatypes/changercommand","datatypes/lambda","internaltypes/changedescriptor","internaltypes/enchantment","internaltypes/twineerror"],function(c,r,e,l,s,n,u,p,a,d,t,i,f,h){var m=e.is,e=u.TypeSignature,y=e.either,g=e.rest,o=e.optional,v=Object.assign;function b(e,t){if(d.isPrototypeOf(t)&&!t.canEnchant)return h.create("datatype","The changer given to (".concat(e,":) can't include a revision, enchantment, or interaction changer like (replace:), (click:), or (link:)."))}["enchant","change"].forEach(function(o){u.addCommand(o,function(e,t){t=b(o,t);if(t)return t},function(t,n,e){n=p.from(n);var r,a=[];return d.isPrototypeOf(e)&&(r=i.create({section:t}),e.run(r),0<(r.innerEnchantments )n[r-1]=arguments[r];return n.every(Boolean)?d.create(o,n.map(p.from),null,!1):h.create(„datatype“,„A string given to this (“.concat(o,„:) macro was empty.“))},function(e){var t;0<c(e.target).parents().filter(„tw-collapsed,[collapsing=true]“).length||e.attr.some(function(e){return e.collapsing})||(e.attr=[].concat(_toConsumableArray(e.attr),[{collapsing:!1}])),e.newTargets=e.newTargets||[];for(var n=arguments.length,r=new Array(1<n?n-1:0),a=1;a<n;a)r[a-1]=arguments[a];return(t=e.newTargets).push.apply(t,_toConsumableArray(r.filter(function(n){return!e.newTargets.some(function(e){var t=e.target,e=e.append;return m(n,t)&&o===e})}).map(function(e){return{target:e,append:o,before:!0}}))),e},g(y(p,String)))(o+"-with",function(e,t){return d.create(o+"-with",[t],null,!1)},function(e,t){return a.isPrototypeOf(t)&&(t=t.code),e.appendSource=(e.appendSource )n[o-3]=arguments[o];return r.data.section=a,r.data.clickEvent=function(e){e.contents().unwrap(),n.forEach(function(e){return e.forEach(a,function(e){var t=e.data(„originalSource“)||„“,n=e.data(„hidden“);n&&(e.removeData(„hidden“),n instanceof i?e.empty().append(n):(n=e.data(„tempVariables“),a.renderInto(„“,null,y({},r,{source:t,target:e,transitionDeferred:!1}),n&&Object.create(n))))})})},y(r,{source:„<tw-link tabindex=0>“+e+„</tw-link>“,transitionDeferred:!0})},[String,o(t)])(„link-fullscreen“,function(e,t){if(!e||!t)return h.create(„datatype“,m[0])},function(t,e,n,r){function a(){return document.fullscreenEnabled||document.msFullscreenEnabled?„<tw-link tabindex=0 fullscreen>“+(document.fullscreenElement||document.msFullscreenElement?r:n)+„</tw-link>“:r?„<tw-broken-link>“+r+„</tw-broken-link>“:„“}var o=e.stackTop.tempVariables;return t.data.section=e,t.data.fullscreenEvent=function(){(document.fullscreenEnabled||document.msFullscreenEnabled)&&t.data.section.whenUnblocked(function(){var e=y({},t,{append:„replace“,source:a(),transitionDeferred:!1});t.section.renderInto(„“,null,e,o)})},y(t,{source:a(),transitionDeferred:!0})},[String,String,r(String)]),e.addChanger([„link-reveal-goto“],function(e,t,n,r){if(!t)return h.create.apply(h,[„datatype“].concat(m));if(a.isPrototypeOf(n)){if(a.isPrototypeOf®)return h.create(„datatype“,„You mustn't give two changers to (link-reveal-goto:)“);r=n,n=void 0}if(r&&!r.canEnchant)return h.create(„datatype“,„The changer given to (link-reveal-goto:) can't include a revision, enchantment, or interaction changer like (replace:), (click:), or (link:).“);var e=s(e,t,n);return t=e.text,n=e.passage,(e=e.error)?e:a.create(„link-reveal-goto“,[t,n,r].filter(function(e){return void 0!==e}),null,!1)},function(t,e,n,r){var a,o,i,s;{if(u.hasValid(n))return o=l.passageNameVisited(n),i=null!=(a=t.section)&&a.stackTop?t.section.stackTop.tempVariables:Object.create(null),s=d.create({source:„<tw-link tabindex=0 “+(0<o?'class=„visited“ ':„“)+„>“+e+„</tw-link>“,target:t.target,append:„replace“,data:{section:t.section,append:„replace“,clickEvent:function(e){t.enablers=t.enablers.filter(function(e){return e.descriptor!==s}),e.contents().unwrap(),t.section.renderInto(„“,null,t,i),t.section.whenUnblocked(function(){return p.goToPassage(n,{transition:t.data.passageT8n})})}}}),t.enablers=(t.enablers||[]).concat({descriptor:s,changer:r}),t;t.source='<tw-broken-link passage-name=„'+c.escape(n)+'“>'+e+„</tw-broken-link>“}},[String,r(n(a,String)),r(a)])}),define(„macrolib/metadata“,[„macros“,„utils/operationutils“,„datatypes/lambda“,„internaltypes/twineerror“],function(t,e,n,s){function c(e){return{TwineScript_TypeName:„a (“+e+„:) macro“,TwineScript_ObjectName:„a (“+e+„:) macro“,TwineScript_Unstorable:!0,TwineScript_Print:function(){return„“}}}var l=e.clone,u=e.objectName,p=e.isValidDatamapName,e=t.TypeSignature,r=e.zeroOrMore,e=e.Any;"storylet",n.TypeSignature("when")],["urgency",Number],["exclusivity",Number.forEach(function(e){var e=_slicedToArray(e,2),n=e[0],e=e[1];t.add(n,„Metadata“,function(e,t){return e.stackTop.speculativePassage?t:c(n)},e)}),t.add(„metadata“,„Metadata“,function(e){for(var r,a=new Map,t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o)n[o-1]=arguments[o];var i=n.reduce(function(e,t){var n;if(!s.containsError(e))if(void 0===r)r=t;else{if(n=s.containsError(p(a,r)))return n;if(a.has(r))return s.create("macrocall","You used the same data name ("+u(r)+") twice in the same (metadata:) call.");a.set(r,l(t)),r=void 0}return e},!0);return s.containsError(i)?i:void 0!==r?s.create("macrocall","This (metadata:) macro has a data name without a value."):e.stackTop.speculativePassage?a:c("metadata")},r(e))}),define("macrolib/patterns",["macros","utils","utils/operationutils","datatypes/lambda","datatypes/datatype","datatypes/typedvar","internaltypes/twineerror","internaltypes/varscope"],function(e,t,n,g,v,h,b,w){function k(e){var a=e.name,t=e.fullArgs,n=e.args,r=e.makeRegExpString,o=void 0===r?function(e){return e.join("")}:r,i=void 0!==(r=e.insensitive)&&r,s=void 0===(r=e.canContainTypedVars) )n[r-1]=arguments[r];return k({name:„p“,fullArgs:n})},o)([„p-either“,„pattern-either“],„Datatype“,function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return k({name:"p-either",fullArgs:n,canContainTypedVars:!1,makeRegExpString:function(e){return"(?:"+e.join(" )n[r-1]=arguments[r];return k({name:„p-opt“,fullArgs:n,canContainTypedVars:!1,makeRegExpString:function(e){return“(?:„+e.join(“„)+“)?„}})},o)([„p-not“,“pattern-not„],“Datatype„,function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return n.find(function(e){return"string"==typeof e?1!==_toConsumableArray(e).length:e.rest )n[r-1]=arguments[r];return k({name:„p-not-before“,fullArgs:n,canContainTypedVars:!1,makeRegExpString:function(e){return“(?!„+e.join(“„)+“)„}})},o)([„p-before“,“pattern-before„],“Datatype„,function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return k({name:"p-before",fullArgs:n,canContainTypedVars:!1,makeRegExpString:function(e){return"(?="+e.join("")+")"}})},o)(["p-start","pattern-start"],"Datatype",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return k({name:"p-start",fullArgs:n,makeRegExpString:function(e){return"^(?:"+e.join("")+")"}})},o)(["p-end","pattern-end"],"Datatype",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return k({name:"p-end",fullArgs:n,makeRegExpString:function(e){return"(?:"+e.join("")+")$"}})},o)(["p-many","pattern-many"],"Datatype",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a,o,i=n.slice();if("number"==typeof n[0]&&(a=n.shift(),o="number"==typeof n[0]?n.shift():1/0),void 0!==o&&o<a)return b.create("datatype","The (p-many:) macro needs to be given string patterns, not just min and max numbers.");if(!n.length)return b.create("datatype","The (p-many:) macro needs to be given string patterns, not just min and max numbers.");var s=n.find(function(e){return"string"!=typeof e&&!v.isPrototypeOf(e)&&!h.isPrototypeOf(e)});return s?b.create("datatype","This (p-many:) macro can only be given a min and max number followed by datatypes or strings, but was also given "+O(s)+"."):k({name:"p-many",args:n,fullArgs:i,canContainTypedVars:0<a,makeRegExpString:function(e){return"(?:"+e.join("")+")"+(void 0!==a?"{"+a+(o===1/0?",":o!==a?","+o:"")+"}":"+")}})},[n(r(t,String,v,h))])(["p-ins","pattern-ins","p-insensitive","pattern-insensitive"],"Datatype",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return k({name:"p-ins",fullArgs:n,insensitive:!0})},o)(["split","splitted"],"Array",function(e,t,n){if(t=k({name:"split",fullArgs:[t],canContainTypedVars:!1}),b.containsError(t))return t;if(!n)return[""];if(!t.regExp)return _toConsumableArray(n);for(var r,a=RegExp(t.regExp),o=[];n&&(r=a.exec(n));){if(r.index+r[0].length===0)return o;o.push(n.slice(0,r.index)),n=n.slice(r.index+r[0].length)}return o.concat(n )r[a-2]=arguments[a];return o.create(„for“,[t].concat®)},function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a)r[a-2]=arguments[a];var o,i=t.filter(e.section,r);if(o=u.containsError(i))return o;e.loopVars[t.loop.getName()]=i )n[r-1]=arguments[r];return o.create(„border“,n.map(c.insensitiveName))},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return e.styles.push({display:function(){var e=s(this).css("display");return n.every(function(e){return"none"===e}) )n[r-1]=arguments[r];return o.create(„border-size“,n)},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return e.styles.push({"border-width":n.map(function(e){return e+"px"}).join(" ")}),e},[O].concat(_toConsumableArray(Array(3).fill(v(O)))))("corner-radius",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.create("corner-radius",n)},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.styles.push({"border-radius":n.map(function(e){return e+"px"}).join(" "),padding:function(){return this.style.padding )n[r-1]=arguments[r];return o.create(„border-colour“,n.map(function(e){return a.isPrototypeOf(e)?e.toRGBAString(e):e}))},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];return e.styles.push({"border-color":n.join(" ")}),e},[y(String,a)].concat(_toConsumableArray(Array(3).fill(v(y(String,a))))))("opacity",function(e,t){return o.create("opacity",[t])},function(e,t){return e.styles.push({opacity:t})},[t])("font",function(e,t){return o.create("font",[t])},function(e,t){return e.styles.push({"font-family":t}),e},[String])("align",function(e,t){var n=t.indexOf("><");return/^(==+> )n[r-1]=arguments[r];return o.create(„text-style“,n.map(c.insensitiveName))},function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r)n[r-1]=arguments[r];for(var a=0;a<n.length;a+=1)"none"===n[a]?e.styles=[]:e.styles=e.styles.concat(p[n[a]]);return e},[T(S.apply(void 0,_toConsumableArray(Object.keys(p))))]])))("collapse",function(){return o.create("collapse")},function(e){return e.attr.push({collapsing:!0}),e},[])("hover-style",function(e,t){var n=l.create(),r=(t.run(n),n.summary());return r+""=="styles" )n[r-1]=arguments[r];return n.map(function(e){return i.isPrototypeOf(e)?e.source:e}).join(“„)},[v(t.TypeSignature.either(String,Number,Boolean,Array,i))])(„source“,“String„,function(e,t){return“command„!==(null==t?void 0:t.TwineScript_TypeID)||t.TwineScript_ToSource?g(t):f.create(„datatype“,“I can't construct the source code of a command created by a custom macro.„)},[e])(„substring“,“String„,function(e,t,n,r){return h(t,n,r)},[String,parseInt,parseInt])(„lowercase“,“String„,function(e,t){return t.toLowerCase()},[String])(„uppercase“,“String„,function(e,t){return t.toUpperCase()},[String])(„lowerfirst“,“String„,function(e,t){return t.replace(RegExp(p+“+„),function(e){return(e=Array.from(e))[0].toLowerCase()+e.slice(1).join(“„).toLowerCase()})},[String])(„upperfirst“,“String„,function(e,t){return t.replace(RegExp(p+“+„),function(e){return(e=Array.from(e))[0].toUpperCase()+e.slice(1).join(“„).toLowerCase()})},[String])(„words“,“Array„,function(e,t){return t.split(RegExp(s+“+„)).filter(Boolean)},[String])([„str-repeated“,“string-repeated„],“String„,function(e,t,n){return 0===n.length?f.create(„macrocall“,“I can't repeat an empty string.„):n.repeat(t)},[x,String])([„str-reversed“,“string-reversed„],“String„,function(e,t){return _toConsumableArray(t).reverse().join(“„)},[String])(„joined“,“String„,function(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),a=2;a<n;a)r[a-2]=arguments[a];return r.join(t)},[n(String)])("plural","String",function(e,t,n,r){return n&&""!==r?d(t,n,r):f.create("macrocall","The (plural:) macro can't be given empty strings.")},[parseInt,String,w(String)])(["str-nth","string-nth"],"String",function(e,t){return u(t)},[parseInt])("digit-format","String",function(e,t,n){if(1e21<=Math.abs(n))return f.create("macrocall","The number given to (digit-format:) is too big.");for(var r=/([^#0])(?=[#0]*$)/g,a=(r.exec(t) )a[o-2]=arguments[o];if(a.length<4)return f.create(„datatype“,“(gradient:) must be given at least 2 colour-stop pairs of numbers and colours.„);var i=[],s=a.reduce(function(e,t){if(!f.containsError(e))if(void 0===n)n=t;else{if(„number“!=typeof n||!l.isPrototypeOf(t))return f.create(„datatype“,“(gradient:) colour-stops should be pairs of numbers and colours, not colours and numbers.„);i.push({stop:n,colour:y(t)}),n=void 0}return e},!0);return f.containsError(s)?s:void 0!==n?f.create(„macrocall“,“This gradient has a colour-stop percent without a colour.„):c.create(t,i)},[Number,n(b(S,l))])(„stripes“,“Gradient„,function(e,t,n){(t=E(t)%360)<0&&(t+=360);for(var r=0,a=[],o=arguments.length,i=new Array(3<o?o-3:0),s=3;s<o;s)i[s-3]=arguments[s];return i.forEach(function(e){a.push({stop:r,colour:y(e)}),r+=n,a.push({stop:r,colour:y(e)})}),c.create(t,a,!0)},[Number,_,l,n(l)])("hooks-named","HookName",function(e,t){return t?o.create({type:"name",data:t}):f.create("datatype","(hooks-named:) can't be given an empty string.")},[String])("cond","Any",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0;a<n.length;a+=2){var o=n[a];if(a===n.length-1 )n[r-1]=arguments[r];return a.apply(void 0,n)}}(this[e][0]),this[e][1])}})[“„](),t.add(„either“,“Any„,function(e){var t=1+~~(r.random()*(arguments.length⇐1?0:arguments.length-1));return t<1||arguments.length⇐t?void 0:arguments[t]},n(e))(„nth“,“Any„,function(e,t){return t⇐0?f.create(„datatype“,“(nth:)'s first value should be a positive whole number, not „+t):(t=(t-1)%(arguments.length⇐2?0:arguments.length-2)+2)<2||arguments.length⇐t?void 0:arguments[t]},[parseInt,n(e)])}),!function(){var a,k={};function o(e){for(var t in e)this[t]=e[t]}function i(e,t){for(var n,r,a=e.innerText,o=null,i=0,s=i,c=a.length,l=null;i<c;){for(var u=a.slice(i),p=(o&&o.length?o[0]:e).innerMode,d=0,f=p.length;d<f;d+=1){var h=k[p[d]];if(!(h.constraint&&!h.constraint(l)||h.cannotFollowText&&(„text“===(null==(w=l)?void 0:w.type)||s<i))&&(h.plainCompare?u.startsWith(h.pattern):h.pattern.test(u))){var m=h.fn(h.plainCompare?h.pattern:h.pattern.exec(u)),y=!1,g=0;if(m.matches){for(;o&&g<o.length;g+=1){var v=o[g],b=v.type,v=v.aka;if(b in m.matches){y=!0;break}v&&(b=v),-1<(null==(v=m.cannotCross)?void 0:v.indexOf(b))&&(g=o.length-1)}if81).text.length,w=!1;y&&(t&&T(e,l,o[g]),o=o.slice(g+1),w=!0),!w&&l.isFront&&(o?o.unshift(l):o=[l]);break}}d===f&&(i+=1,null===l&&(l={type:„text“}))}for(s<i&&e.addChild({type:„text“,text:a.slice(s,i),innerMode:(null!=(n=o)&&n.length?o[0]:e).innerMode});0<(null==(r=o)?void 0:r.length);)o.shift().demote();return e}function T(e,t,n){var r=e.children.indexOf(t),a=e.children.indexOf(n);t.children=e.children.splice(a+1,r-(a+1)),t.type=t.matches[n.type],t.innerText=“„;for(var o,i=0,s=t.children.length;i<s;i)t.innerText+=t.children[i].text;for(o in t.start=n.start,t.text=n.text+t.innerText+t.text,n)hasOwnProperty.call(n,o)&&!hasOwnProperty.call(t,o)&&(t[o]=n[o]);t.isFront&&(t.isFront=!1),e.children.splice(a,1)}o.prototype={constructor:o,addChild:function(e){var t=this.lastChildEnd(),n=new o(e);return n.start=t,n.end=e.text&&t+e.text.length,n.place=this.place,n.children=[],n.innerText&&i(n),this.children.push(n),n},lastChildEnd:function(){var e=this.children&&this.children[this.children.length-1] ){var n,r=arguments[t];for(n in r)hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};var m,y=Object.keys,g=Object.assign;function t(e){function t(n){return n=n||“innerText„,function(e){var e=e.reduceRight(function(e,t,n){return e||(n?t:“„)},“„),t={};return t[n]=e,t}}function n(e,t){var n={};return n[e]=t,function(){return{isFront:!0,matches:n,cannotCross:[„verbatimOpener“]}}}var r=Object.bind(0,null);function a(a,e){return Object.keys(e).forEach(function(n){var r=e[n].fn;e[n].fn=function(e){var t=r(e);return t.text||(t.text=„string“==typeof e?e:e[0]),t.type||(t.type=n),t.innerMode||(t.innerMode=a),t}}),e}function o(e){switch(e&&e.type){case null:case“br„:case“hr„:case“bulleted„:case“numbered„:case“heading„:case“align„:case“column„:case“escapedLine„:return!0}return!1}var i=[],s=[],c=[],l=a(i,{hr:{fn:r},bulleted:{fn:function(e){return{depth:e[1].length}}},numbered:{fn:function(e){return{depth:e[1].length/2}}},heading:{fn:function(e){return{depth:e[1].length}}},align:{fn:function(e){var t,e=e[1],n=e.indexOf(“><„);return~n?25===(t=Math.round(n/(e.length-2)*50))&&(t=„center“):“<„===e[0]&&“>„===e.slice(-1)?t=„justify“:-1<e.indexOf(“>„)?t=„right“:-1<e.indexOf(“<„)&&(t=„left“),{align:t}}},column:{fn:function(e){var t,e=e[1],n=e.indexOf(„|“);return n&&n<e.length-1?t=„center“:„|“===e[0]&&„|“===e.slice(-1)?t=„none“:n===e.length-1?t=„right“:n||(t=„left“),{column:t,width:/\|+/.exec(e)[0].length,marginLeft:/^=*/.exec(e)[0].length,marginRight:/=*$/.exec(e)[0].length}}}}),u=(y(l).forEach(function(e){l[e].constraint=o,l[e].cannotFollowText=!0}),a(i,{twine1Macro:{fn:function(){return{type:„error“,message:„Harlowe macros use a different syntax to Twine 1, SugarCube, and Yarn macros.“}}},emBack:{fn:function(){return{matches:{emFront:„em“},cannotCross:[„verbatimOpener“]}}},strongBack:{fn:function(){return{matches:{strongFront:„strong“},cannotCross:[„verbatimOpener“]}}},strongFront:{fn:function(){return{isFront:!0}}},emFront:{fn:function(){return{isFront:!0}}},boldOpener:{fn:n(„boldOpener“,“bold„)},italicOpener:{fn:n(„italicOpener“,“italic„)},strikeOpener:{fn:n(„strikeOpener“,“strike„)},supOpener:{fn:n(„supOpener“,“sup„)},commentFront:{fn:function(){return{isFront:!0}}},commentBack:{fn:function(){return{matches:{commentFront:„comment“}}}},scriptStyleTag:{fn:r},tag:{fn:r},url:{fn:r},hookPrependedFront:{fn:function(e){return{name:e[1],hidden:“)„===e[2],isFront:!0,tagPosition:„prepended“}}},hookFront:{fn:function(){return{isFront:!0}}},hookBack:{fn:function(){return{matches:{hookPrependedFront:„hook“,hookFront:„hook“},cannotCross:[„verbatimOpener“]}}},hookAppendedBack:{fn:function(e){return{name:e[2],hidden:“(„===e[1],tagPosition:„appended“,matches:{hookFront:„hook“},cannotCross:[„verbatimOpener“]}}},unclosedHook:{fn:r},unclosedHookPrepended:{fn:function(e){return{type:„unclosedHook“,name:e[1],hidden:“)„===e[2]}}},verbatimOpener:{fn:function(e){var e=e[0].length,t={};return{type:(t[„verbatim“+e]=„verbatim“)+e,isFront:!0,matches:t,aka:„verbatimOpener“}}},unclosedCollapsed:{fn:r},collapsedFront:{fn:function(){return{isFront:!0}}},collapsedBack:{fn:function(){return{matches:{collapsedFront:„collapsed“},cannotCross:[„verbatimOpener“]}}},escapedLine:{fn:r},legacyLink:{fn:function(e){return{type:„twineLink“,innerText:e[1],passage:e[2],innerMode:i}}},br:{fn:r}})),p=g(a(s,{macroFront:{fn:function(e){return{isFront:!0,name:e[1]}}},groupingBack:{fn:function(){return{matches:{groupingFront:„grouping“,macroFront:„macro“},cannotCross:[„singleStringOpener“,“doubleStringOpener„]}}},passageLink:{fn:function(e){var t=e[1]||“„,n=e[2]||“„,e=e[3]||“„;return{type:„twineLink“,innerText:n?e:t,passage:t?e:n,innerMode:i}}},simpleLink:{fn:function(e){return{type:„twineLink“,innerText:e[1]||“„,passage:e[1]||“„,innerMode:i}}},variable:{constraint:function(e){return!e||“macroFront„!==e.type},fn:t(„name“)},tempVariable:{constraint:function(e){return!e||“macroFront„!==e.type},fn:t(„name“)}}),{hookFront:u.hookFront,hookBack:u.hookBack}),d=a(s,g({macroName:{constraint:function(e){return e&&„macroFront“===e.type},fn:t(„name“)},groupingFront:{fn:function(){return{isFront:!0}}},property:{fn:t(„name“),constraint:function(e){if(e)switch(e.type){case“variable„:case“hookName„:case“property„:case“tempVariable„:case“colour„:case“itsProperty„:case“belongingItProperty„:case“macro„:case“grouping„:case“string„:case“datatype„:case“hook„:case“boolean„:case“number„:return!0}}},possessiveOperator:{fn:r},itsProperty:{cannotFollowText:!0,fn:t(„name“)},itsOperator:{cannotFollowText:!0,fn:r},belongingItProperty:{cannotFollowText:!0,fn:t(„name“)},belongingItOperator:{cannotFollowText:!0,fn:r},belongingProperty:{cannotFollowText:!0,fn:t(„name“)},belongingOperator:{cannotFollowText:!0,fn:r},escapedStringChar:{fn:function(){return{type:„text“}}},singleStringOpener:{fn:function(){return{isFront:!0,matches:{singleStringOpener:„string“},innerMode:c}}},doubleStringOpener:{fn:function(){return{isFront:!0,matches:{doubleStringOpener:„string“},innerMode:c}}},hookName:{fn:t(„name“)},cssTime:{fn:function(e){return{value:+e[1]*(„s“===e[2].toLowerCase()?1e3:1)}}},datatype:{cannotFollowText:!0,fn:function(e){return{name:e[0].toLowerCase()}}},colour:{cannotFollowText:!0,fn:function(e){var e=e[0].toLowerCase(),t={red:„e61919“,orange:„e68019“,yellow:„e5e619“,lime:„80e619“,green:„19e619“,cyan:„19e5e6“,aqua:„19e5e6“,blue:„197fe6“,navy:„1919e6“,purple:„7f19e6“,fuchsia:„e619e5“,magenta:„e619e5“,white:„fff“,black:„000“,gray:„888“,grey:„888“},t=hasOwnProperty.call(t,e)?“#„+t[e]:e;return{colour:t}}},number:{fn:function(e){return{value:parseFloat(e[0])}}},inequality:{fn:function(e){return{operator:e[2],negate:-1<e[1].indexOf(„not“)}}},augmentedAssign:{fn:function(e){return{operator:e[0][0]}}},identifier:{fn:t(„name“),cannotFollowText:!0},whitespace:{fn:r,cannotFollowText:!0},incorrectOperator:{fn:function(e){var t={“⇒„:“>=„,“=<„:“⇐„,gte:“>=„,lte:“⇐„,gt:“>„,lt:“<„,eq:„is“,isnot:„is not“,neq:„is not“,isa:„is a“,are:„is“,x:„*“,“or a„:„or“}[e[0].toLowerCase().replace(/\s+/g,“ „)];return{type:„error“,message:„Please say “+(t?“'„+t+“'„:„something else“)+“ instead of '„+e[0]+“'.„,explanation:„In the interests of readability, I want certain operators to be in a specific form.“}},cannotFollowText:!0}},[„boolean“,“is„,“to„,“into„,“where„,“when„,“via„,“making„,“each„,“and„,“or„,“not„,“isNot„,“contains„,“doesNotContain„,“isIn„,“isA„,“isNotA„,“isNotIn„,“matches„,“doesNotMatch„,“bind„].reduce(function(e,t){return e[t]={fn:r,cannotFollowText:!0},e},{}),[„comma“,“spread„,“typeSignature„,“addition„,“subtraction„,“multiplication„,“division„].reduce(function(e,t){return e[t]={fn:r},e},{}))),f=a(c,{singleStringCloser:d.singleStringOpener,doubleStringCloser:d.doubleStringOpener,escapedStringChar:d.escapedStringChar}),h=(i.push.apply(i,_toConsumableArray(y(l)).concat(_toConsumableArray(y(p)),_toConsumableArray(y(u)))),s.push.apply(s,_toConsumableArray(y(p)).concat(_toConsumableArray(y(d)))),c.push.apply(c,_toConsumableArray(y(f))),g({},l,u,p,d,f)),u=(y(h).forEach(function(e){m.PlainCompare[e]?(h[e].pattern=m.PlainCompare[e],h[e].plainCompare=!0):h[e].pattern=RegExp(„^(?:“+m[e]+“)„,“i„)}),g(e.rules,h),e.modes);return u.start=u.markup=i,u.macro=s,u.string=c,e}function n(e){return Object.freeze({lex:t(e).lex,Patterns:m})}„object“===(„undefined“==typeof module?“undefined„:_typeof(module))?(m=require(“./patterns„),module.exports=n(require(“./lexer„))):„function“==typeof define&&define.amd?define(„markup“,[„lexer“,“patterns„],function(e,t){return m=t,n(e)}):this&&this.loaded&&this.modules?(m=this.modules.Patterns,this.modules.Markup=n(this.modules.Lexer)):(m=this.Patterns,this.Markup=n(this.Lexer))}.call(eval(„this“)||(„undefined“!=typeof global?global:window)),!function(){var e;function n(t){return t&&„object“===_typeof(t)?(Object.keys(t).forEach(function(e){t[e]=n(t[e])}),t):(t+“„).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,“\\$&„)}function t(e){return function(){return“(„+e+Array.apply(0,arguments).join(„|“)+“)„}}var r=t(“?:„),a=t(“?!„),o=t(“?=„),i=“[ \\f\\t\\v\\u00a0\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]*„,s=i.replace(„*“,“+„),c=„\\b“,l=“[\\w\\-\\u00c0-\\u00de\\u00df-\\u00ff\\u0150\\u0170\\u0151\\u0171\\uD800-\\uDFFF]„,u=l.replace(„\\-“,“„),p=r(„\\n“,“$„),d=i+“(\\*+)„+s,f=i+“82)+“+)„},g=u+„*“+u.replace(„\\w“,“a-zA-Z„)+u+„*“,v=„\\$(“+g+“)„,b=„_(“+g+“)„,w=“'s„+s+“(„+g+“)„,k=“(„+g+“)„+s+„of“+c+a(„it\\b“),T=“'s„+s,S=r(„it“,“time„,“turns?„,“visits?„,“exits?„,“pos„)+c,x=„its“+s+“(„+g+“)„,_=“(„+g+“)„+s+„of“+s+„it“+c,O=„of“+s+„it“+c,A={opener:„\\(“,name:“(„+r(„\\$“,“_„)+“?„+l+“+):„+a(„\\/“),closer:„\\)“},E=r(“=<„,“⇒„,“[gl]te?\\b„,“n?eq\\b„,“isnot\\b„,“are\\b„,“x\\b„,“isa\\b„,“or„+s+„a“+c),C=“[a-zA-Z][\\w\\-]*„,N=“(?:\„[^\“]*\„|'[^']*'|[^'\“>])*?„,P=„\\|(“+l+“+)(>|\\))„,j=“(<|\\()(„+l+“+)\\|„,R=“83)*»„,validPropertyName:g,property:w,belongingProperty:k,possessiveOperator:T,belongingOperator:„of\\b“,itsOperator:„its\\b“,belongingItOperator:O,variable:v,tempVariable:b,hookName:„\\?(“+l+“+)\\b„,cssTime:“(\\d+\\.?\\d*|\\d*\\.?\\d+)(m?s)\\b„,colour:r(r(„Red“,“Orange„,“Yellow„,“Lime„,“Green„,“Cyan„,“Aqua„,“Blue„,“Navy„,“Purple„,“Fuchsia„,“Magenta„,“White„,“Gray„,“Grey„,“Black„,“Transparent„),“#[\\dA-Fa-f]{3}(?:[\\dA-Fa-f]{3})?„),datatype:r(„alnum“,“alphanumeric„,“any(?:case)?„,“array„,“bool(?:ean)?„,“changer„,“codehook„,“colou?r„,“const„,“command„,“dm„,“data„+r(„map“,“type„,“set„),“ds„,“digit„,“gradient„,“empty„,“even„,“int„+a(„o“)+“(?:eger)?„,“lambda„,“lowercase„,“macro„,“linebreak„,“newline„,“num(?:ber)?„,“odd„,“str(?:ing)?„,“uppercase„,“whitespace„)+c,number:R,boolean:r(„true“,“false„)+c,identifier:S,itsProperty:x,belongingItProperty:_,escapedStringChar:„\\\\[^\\n]“,singleStringOpener:“'„,doubleStringOpener:'“',singleStringCloser:„'“,doubleStringCloser:'„',is:„is“+a(s+„not“+c,s+„an?“+c,s+„in“+c,s+“<„,s+“>„)+c,isNot:„is“+s+„not“+a(s+r(„an?“,“in„)+c)+c,isA:„is“+s+„an?“+c,isNotA:„is“+s+„not“+s+„an?“+c,matches:„matches\\b“,doesNotMatch:„does“+s+„not“+s+„match“+c,and:„and\\b“,or:„or\\b“,not:„not\\b“,inequality:“84);else if(„bind“===type)ret=VarBind.create(run(section,after,VARREF),token.text.startsWith(„2“)?“two way„:“„),evalReplaySkip=!0;else if(„to“===type||“into„===type){var dest=„to“===type?setIt(section,run(section,before,VARREF,TYPEDVAR)):run(section,after,VARREF,TYPEDVAR);if(TwineError.containsError(dest))ret=dest;else{(VarRef.isPrototypeOf(dest)&&dest.propertyChain.length⇐1||TypedVar.isPrototypeOf(dest)&&dest.varRef.propertyChain.length⇐1)&&(section.freeVariables=Object.create(null));var src=„to“===type?run(section,after,VARREF):setIt(section,run(section,before,VARREF));if(TwineError.containsError(src))return src;var freeVariables=section.freeVariables,srcRef;section.freeVariables=null,token.place&&freeVariables&&„object“===_typeof(freeVariables)&&„boolean“!=typeof src&&„number“!=typeof src&&(srcRef=freeVariables,srcRef.at=token.place,srcRef.from=after[0].start,srcRef.to=after[after.length-1].end,JSON.stringify(srcRef).length>=toSource(src).length&&(srcRef=void 0)),ret=AssignmentRequest.create(dest,src,type,srcRef),evalReplaySkip=!0,evalReplayIt=section.Identifiers.it}}else if(„typeSignature“===type){var datatype=run(section,before),free=section.freeVariables,variable=(section.freeVariables=null,run(section,after,VARREF));section.freeVariables=free,ret=TypedVar.create(datatype,variable),evalReplaySkip=!0}else if(„where“===type||“when„===type||“via„===type){after?(source=tokens.map(function(e){return e.text}).join(“„),ret=Lambda.create(before?run(section,before,VARREF):void 0,token.type,after,source),evalReplaySkip=!0):ret=missingSideError(!1,!0,token)}else if(„making“===type||“each„===type){after?(_source4=[].concat(tokens).map(function(e){return e.text}).join(“„),ret=„each“===type?Lambda.create(run(section,after,VARREF),“each„,null,_source4):Lambda.create(before?run(section,before,VARREF):void 0,token.type,run(section,after,VARREF),_source4),evalReplaySkip=!0):ret=missingSideError(!1,!0,token)}else if(„augmentedAssign“===type)ret=ops.makeAssignmentRequest(run(section,before,VARREF),ops[token.operator](run(section,before),run(section,after)),token.operator),evalReplaySkip=!0;else if(„and“===type||“or„===type){var isComparisonOp=function e(t){var n=_slicedToArray(precedentToken(t,“least„),2),r=n[0],n=n[1];if(r&&„whitespace“!==r.type)return comparisonOpTypes.includes(r.type)?r:r.type===type?e(t.slice(0,n))||e(t.slice(n+1)):void 0},leftIsComparison=isComparisonOp(before),rightIsComparison=isComparisonOp(after),ambiguityError=TwineError.create(„operation“,'This use of „is not“ and “'.concat(type,'„ is grammatically ambiguous.'),'Maybe try rewriting this as „ is not '.concat(type,' is not “')),operator,getElisionOperands=function e(t){var n=_slicedToArray(precedentToken(t,“least„),2),r=n[0],n=n[1];if(!r||“whitespace„===r.type)return[];if(r.type===type)return[].concat(_toConsumableArray(e(t.slice(0,n))),_toConsumableArray(e(t.slice(n+1))));var a,r=run(section,t);return hasEvalReplay&&„boolean“!=typeof r&&(a=operator.replace(/[A-Z]/g,function(e){return“ „+e.toLowerCase()}),makeEvalReplayFrame(evalReplay,{toCode:“ it „.concat(a,“ „).concat(toSource®,“ „),reason:„A missing 'it “.concat(a,“' was inferred to correct the '„).concat(type,“' operation.„),tokens:t,i:n}),makeEvalReplayFrame(evalReplay,{toCode:“ „.concat(toSource(section.Identifiers.it),“ „).concat(a,“ „).concat(toSource®,“ „),tokens:t,i:n})),[{val:r,tokens:t,i:n}]},elidedComparisonOperator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n)t[n]=arguments[n];return t.reduce(function(e,t){var n=t.val,r=t.tokens,t=t.i;if("boolean"==typeof n)return n;e=Operations[token.type](e,Operations[operator](section.Identifiers.it,n));return hasEvalReplay&&makeEvalReplayFrame(evalReplay,{val:e,tokens:r,i:t}),e},"and"===token.type)},leftSide,evalBefore,operator,rightSide,rightIndex,swappedSides,evalAfter;ret=leftIsComparison&&!rightIsComparison?(leftSide=leftIsComparison,operator=compileComparisonOperator(leftSide),"isNot"===leftSide.type ){if(n=!(u[d]||“„).match(l)&&parseFloat(u[d])||u[d]||0,r=!(p[d]||“„).match(l)&&parseFloat(p[d])||p[d]||0,isNaN(n)!==isNaN®)return isNaN(n)?1:-1;if(_typeof(n)!==_typeof®)n+=“„,r+=“„;else if(„string“==typeof n&&a&&0!==(o=a.compare(n,r)))return o;if(n<r)return-1;if(r<n)return 1}return 0}}}),define(„utils/operationutils“,[„utils/naturalsort“,“utils„,“internaltypes/twineerror„,“patterns„],function(f,e,h,t){var m=e.impossible,y=e.nth,u=e.permutations,s=e.plural,g=t.validPropertyName,r=„object“,n=„boolean“,v=„string“,b=„number“,w=„function“;function a(e){return!!e&&(_typeof(e)===r||_typeof(e)===w)}var k=Array.isArray;function T(e){return e&&Object.getPrototypeOf(e)===Object.prototype}function o(e){return k(e)?“array„:e instanceof Map?“datamap„:e instanceof Set?“dataset„:_typeof(e)===v?v:e&&_typeof(e)===r?r:“„}function i(e){if(a(e)){if(_typeof(e.TwineScript_Clone)===w)return e.TwineScript_Clone();if(k(e))return _toConsumableArray(e);if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(_typeof(e)===w)return Object.assign(e.bind(),e);switch(Object.getPrototypeOf(e)){case Object.prototype:return Object.assign({},e);case null:return Object.assign(Object.create(null),e)}„OperationUtils.clone“,“The value „+e+“ cannot be cloned!„)}return e}function c(e,t,n,r){for(var a=“„,o=0;a.length⇐t&&o<e.length;){var i=r(e[o]);if(!(i.length+a.length⇐t)){a+=(0<o?“ and „:“„)+s(e.length-o,(0<o?“other „:“„)+n);break}a+=(0<o&&o===e.length-1?“ and „:“„)+i+(o<e.length-1?“, „:“„),o+=1}return a}function l(e){if(a(e)&&„TwineScript_ObjectName“in e)return e.TwineScript_ObjectName;if(k(e))return 0===e.length?“an empty array„:„an array (with “+c(e,48,“item„,l)+“)„;if(e instanceof Map)return 0===e.size?“an empty datamap„:„a datamap (with “+c(_toConsumableArray(e.keys()),48,“dataname„,x)+“)„;if(e instanceof Set)return 0===e.size?“an empty dataset„:„a dataset (with “+c(_toConsumableArray(e.values()),48,“item„,l)+“)„;if(_typeof(e)!==v)return _typeof(e)===n?“the boolean value '„+e+“'„:_typeof(e)===b?“the number „+JSON.stringify(e):void 0===e?“an empty variable„:“…whatever this is„;if(0===e.length)return“an empty string„;var t=_toConsumableArray(e);return 48<t.length?“a „.concat(t.length,“-character string starting with „).concat(JSON.stringify(t.slice(0,48).join(“„))):„the string “.concat(JSON.stringify(e))}function S(e,t){return[e[0],t[0]].sort(f(„en“))[0]===e[0]?-1:1}function x(e,t){var n=h.containsError(e);if(n&&
„toSource“,“received a TwineError: „+n.message),_typeof(e.TwineScript_ToSource)===w)return e.TwineScript_ToSource();if(T(e)&&„first“in e&&„last“in e)return(e.first<0?(-1!==e.first?y(-e.first):“„)+„last“:y(e.first+1))+„to“+(e.last<0?(-1!==e.last?y(-e.last):“„)+„last“:y(e.last+1));if(k(e)){var r,a=“„,o=_createForOfIteratorHelper(e);try{for(o.s();!(r=o.n()).done;)var i=r.value,a=(a+=a?“,„:“(a:„)+(„property“===t?i+(0<i):x(i))}catch(e){o.e(e)}finally{o.f()}return a+(a?“)„:“(a:)„)}if(e instanceof Map){var s,c=“„,l=_createForOfIteratorHelper(Array.from(e.entries()).sort(S));try{for(l.s();!(s=l.n()).done;){var u=_slicedToArray(s.value,2),p=u[0],d=u[1];c+=(c?“,„:“(dm:„)+x(p)+“,„+x(d)}}catch(e){l.e(e)}finally{l.f()}return c+(c?“)„:“(dm:)„)}return e instanceof Set?“(ds:„+Array.from(e).sort(f(„en“)).map(x)+“)„:_typeof(e)===b&&„property“===t?e<0?-1===e?“last„:y(-e)+„last“:y(e+1):_typeof(e)===v&&„property“===t?RegExp(g).test(e)?e:“(„+JSON.stringify(e)+“)„:JSON.stringify(e)}function p(t,n){return _typeof(t)!==r&&_typeof(n)!==r?t===n:k(t)&&k(n)?t.length===n.length&&t.every(function(e,t){return p(n[t],e)}):t instanceof Map&&n instanceof Map?p(Array.from(t.entries()).sort(),Array.from(n.entries()).sort()):t instanceof Set&&n instanceof Set?p(_toConsumableArray(t),_toConsumableArray(n)):t&&_typeof(t.TwineScript_is)===w?t.TwineScript_is(n):t&&_typeof(t)===r&&n&&_typeof(n)===r&&T(t)&&T(n)?p(Object.getOwnPropertyNames(t).map(function(e){return[e,t[e]]}),Object.getOwnPropertyNames(n).map(function(e){return[e,n[e]]})):Object.is(t,n)}return Object.freeze({isObject:a,isValidDatamapName:function(e,t){if(e instanceof Map||
„isValidDatamapName“,“called with non-Map„),h.containsError(t))return t;if(_typeof(t)!==v&&_typeof(t)!==b)return h.create(„property“,“Only strings and numbers can be used as data names for „+l(e)+“, not „+l(t)+“.„);var n=_typeof(t)===v?+t:“„+t;return!(!Number.isNaN(n)&&e.has(n))||h.create(„property“,“You mustn't use both „+l(t)+“ and „+l(n)+“ as data names in the same datamap.„)},collectionType:o,isSequential:function(e){return _typeof(e)===v||k(e)||_typeof(e.hooks)===w},unstorableValue:function e(t){return(null==t?void 0:t.TwineScript_Unstorable)&&t||k(t)&&t.find(e)||t instanceof Map&&_toConsumableArray(t.values()).find(e)||t instanceof Set&&_toConsumableArray(t).find(e)},isHarloweJSValue:function e(t){return _typeof(t)===v||_typeof(t)===n||_typeof(t)===b&&!Number.isNaN(t)&&Math.abs(t)!==1/0||Array.isArray(t)&&t.every(e)||t instanceof Set&&_toConsumableArray(t).every(e)||t instanceof Map&&_toConsumableArray(t.values()).every(e)&&_toConsumableArray(t.keys()).every(function(e){return _typeof(e)===v})},clone:i,objectName:l,typeName:function e(t){var n=T(t);if(n&&t.innerType)return t.typeName||(„insensitive set“===t.pattern?“a case-insensitive string name„:„either“===t.pattern?(k(t.innerType)||
„typeName“,'„either“ pattern had non-array inner type'),t.innerType.map(e).join(“ or „)):„optional“===t.pattern?“(optional) „+e(t.innerType):e(t.innerType));if(n&&„range“===t.pattern){if(t.name)return t.name;var n=t.min,r=t.max;return“a„+(0<n?“ positive„:“„)+(t.integer?“ whole„:“„)+“ number„+(0===n?“ between 0 and „+r:r<1/0?“ up to „+r:“„)}return t===String||t===Number||t===Boolean?“a „+_typeof(t()):t===parseInt?“a whole number„:t===Map?“a datamap„:t===Set?“a dataset„:t===Array?“an array„:a(t)&&„TwineScript_TypeName“in t?t.TwineScript_TypeName:l(t)},typeID:function(e){var t=_typeof(e);return[n,v,b].includes(t)?t:k(e)?“array„:e instanceof Map?“datamap„:e instanceof Set?“dataset„:e.TwineScript_TypeID||“„},toSource:x,is:p,contains:function(e,t){if(e||“„===e){if(_typeof(e)===v)return _typeof(t)!==v?h.create(„operation“,l(e)+“ can only contain strings, not „+l(t)+“.„):e.includes(t);if(k(e))return e.some(function(e){return p(e,t)});if(e instanceof Set||e instanceof Map)return Array.from(e.keys()).some(function(e){return p(e,t)})}return h.create(„operation“,l(e)+“ cannot contain any values, let alone „+l(t))},isA:function(e,t){return _typeof(t.TwineScript_IsTypeOf)===w?t.TwineScript_IsTypeOf(e):h.create(„operation“,'„is a“ should only be used to compare type names, not '+l(t)+“.„)},matches:function t(n,e){var r=!1;if(n&&_typeof(n.TwineScript_IsTypeOf)===w){var a=n.TwineScript_IsTypeOf(e);if(h.containsError(a))return a;r|=a}if(e&&_typeof(e.TwineScript_IsTypeOf)===w){if(a=e.TwineScript_IsTypeOf(n),h.containsError(a))return a;r|=a}if®return!0;if(k(n)&&k(e)){for(var o=0,i=0,s=!0;s&&o<n.length&&i<e.length;){var c=n[o],l=e[i];if(c.rest){for(;i<e.length&&t(c,l);)l=e[i+=1];o+=1}else if(l.rest){for(;o<n.length&&t(c,l);)c=n[o+=1];i+=1}else t(c,l)?(o+=1,i+=1):s=!1}return s&&o>=n.length&&i>=e.length}return n instanceof Map&&e instanceof Map?t(Array.from(n.entries()).sort(),Array.from(e.entries()).sort()):n instanceof Set&&e instanceof Set?(n=_toConsumableArray(n),u.apply(void 0,_toConsumableArray(e)).some(function(e){return t(n,e)})):p(n,e)},subset:function e(t,n,r){if(!n||!r)return h.create(„macrocall“,“The sub„+o(t)+“ index value must not be „+(n&&r)+“.„);var a=_typeof(t)===v;if(a&&(t=Array.from(t)),n<0&&(n=Math.max(0,t.length+n+1)),(r=r<0?Math.max(0,t.length+r+1):r)<n)return e(arguments[0],r,n);t=t.slice(0<n?n-1:n,r).map(i);return a?t.join(“„):t},range:function e(t,n){if(n<t)return e(n,t);var r=[t];for(n-=t;0<n–;)r.push(++t);return r},printBuiltinValue:function r(e){return h.containsError(e)?e:e&&_typeof(e.TwineScript_Print)===w?e.TwineScript_Print():e instanceof Map?(e=Array.from(e.entries()),h.containsError(e)?e:e.reduce(function(e,t){var n=(t=_slicedToArray(t,2))[0],t=t[1];return e+“<tr><td>`„+r(n)+„`</td><td>`“+r(t)+„`</td></tr>“},“<table class=datamap>„)+“</table>„):e instanceof Set?Array.from(e.values()).map®+“„:k(e)?e.map®+“„:e&&_typeof(e.jquery)===v?e:a(e)?h.create(„unimplemented“,“I don't know how to print this value yet.„):e+“„},unique:function(t,e,n){return n.findIndex(function(e){return p(t,e)})===e}})}),define(„utils/polyfills“,[],function(){var o=Array.prototype;“function„!=typeof o.includes&&(o.includes=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(!Number.isNaN(e)&&Number.isFinite(t)&&void 0!==e)return-1<o.indexOf.call(this,e,t);var n=Object(this),r=parseInt(n.length);if(!(r⇐0))for(var a=0⇐t?t:Math.max(0,r+t);a<r;){if(Object.is(e,n[a]))return!0;a+=1}return!1}),window.Symbol||(window.Symbol={iterator:„_es6-shim iterator_“})}),define(„utils/renderutils“,[„jquery“,“utils„,“renderer„],function(l,u,p){var n=RegExp(u.realWhitespace+“+„),s=RegExp(u.realWhitespace+“+„,“g„);function d(e,t,n){var r,a=e.textContent.length;if(!(a⇐t))return r=[e=0===t?e:e.splitText(t)],n&&(n=n⇐0?a-n:n)<a&&r.push(e.splitText(n-t)),r}var t,c=function(){if(void 0!==t)return t;var e=l(“<p>„);return t=!!e[0].normalize&&(e.append(document.createTextNode(„0-“),document.createTextNode(„2“),document.createTextNode(“„))[0].normalize(),1===e.contents().length)};var f=„tw-collapsed,[collapsing=true]“;var o=/^(=*)([^=]+)=*$/;return Object.freeze({dialog:function(){var e,t=(c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).section,n=void 0===(n=c.parent)?u.storyElement:n,r=c.cd,a=void 0===(a=c.message)?“„:a,o=c.defaultValue,i=void 0===(c=c.buttons)?[{name:„OK“,confirm:!0,callback:Object}]:c,s=(„a code hook“===a.TwineScript_TypeName&&(a=a.code),l(“<tw-backdrop><tw-dialog>„+(o||“„===o?“<input type=text style='display:block;margin:0 auto'></input>\n„:“„)+“<tw-dialog-links>„+(i.length?i.reduce(function(e,t,n){t=t.name;return e+“<tw-link style='margin:0 „+(n===i.length-1?“0 0 0.5em„:0===n?“0.5em 0 0„:„0.5em“)+“' tabindex=0>„+t+“</tw-link>„},“„):“<tw-link tabindex=0>„+i[0].name+“</tw-link>„)+“</tw-dialog-links></tw-dialog></tw-backdrop>„)),c=s.find(„tw-dialog“);return n.append(s),t?(t.renderInto(a,c,Object.assign({},r,{append:„prepend“})),null!=(n=(null==r?void 0:r.transition)&&s.find(„tw-dialog > tw-transition-container“))&&n.length&&n.appendTo(s).append(c.prepend(n.contents().detach()))):c.prepend(p.exec(a)),o&&85).val(o).on(„keypress“,function(e){13===e.which&&(s.remove(),i.filter(function(e){return e.confirm}).forEach(function(e){return e.callback()}))}),setTimeout(function(){return e.focus()},100)),i.reverse().forEach(function(e,t){l(s.find(„tw-link“).get(-t-1)).on(„click“,function(){s.remove(),e.callback()})}),s},realWhitespace:n,textNodeToChars:function®{var e=_toConsumableArray(r.textContent);return 1===e.length?[r]:e.reduce(function(e,t){return t.match(n)&&e.length&&e[e.length-1].match(n)?e[e.length-1]+=t:e.push(t),e},[]).reduce(function(e,t){var n=r;return t.length<r.textContent.length&&(r=r.splitText(t.length)),e.concat(n)},[])},findTextInNodes:function e(t,n){var r=[],a=“„,o=[];if(!t.length||!n)return o;for(;0<t.length;){r.push(t[0]),a+=t[0].textContent,t.shift();var i=a.indexOf(n);if(-1<i){for(var s=a.length-(i+n.length);i>=r[0].textContent.length;)i-=r[0].textContent.length,r.shift();if(1===r.length){var c=d(r[0],i,i+n.length);o.push(c[0]),c[1]&&t.unshift(c[1]);break}o.push(d(r[0],i,r[0].length)[0]),o.push.apply(o,_toConsumableArray(r.slice(1,-1))),c=d(r[r.length-1],0,r[r.length-1].textContent.length-s),o.push(c[0]),c[1]&&t.unshift(c[1]),o=o.filter(Boolean);break}}return[o].concat(_toConsumableArray(e(t,n)))},collapse:function(e){function n(e){return 0===l(this||e).parentsUntil(f).filter(„tw-verbatim, tw-expression, [collapsing=false]“).length}var t=function e(t){var n=t[0],r=t.parent();if(!r.length||t.findAndFilter(„tw-story“).length)return null;t=r.textNodes().filter(function(e){return 4&(e=e.compareDocumentPosition(n))&&!(8&e)});return t[t.length-1]||e®}(e),r=(l(t).parents(f).length||(t=null),function e(t){var n=t[0],r=t.parent();if(!r.length||t.findAndFilter(„tw-story“).length)return null;t=r.textNodes().filter(function(e){return 2&(e=e.compareDocumentPosition(n))&&!(8&e)})[0];return t||e®}(e)),a=(l®.parents(f).length||(r=null),“br:not([data-raw]),tw-consecutive-br:not([data-raw])„),o=(e.find(a).filter(n).replaceWith(document.createTextNode(“ „)),(e=l(e.get().map(function(e){return l(e).filter(n).is(a)?l(document.createTextNode(“ „)).replaceAll(e)[0]:e}))).textNodes()),i=0;o.reduce(function(e,t){return n(t)?(t.textContent=t.textContent.replace(s,“ „),“ „!==t.textContent[0]||e&&e.textContent&&!(-1<e.textContent.search(/\s$/))||(t.textContent=t.textContent.slice(1)),t):document.createTextNode(„A“)},t),_toConsumableArray(o).reverse().every(function(e){return!!n(e)&&(e.textContent.match(/^\s*$/)?(i+=e.textContent.length,!(e.textContent=“„)):(e.textContent=e.textContent.replace(/\s+$/,function(e){return i+=e.length,“„}),!1))}),0<i&&r&&(o[o.length-1].textContent+=“ „),e[0]&&c()&&e[0].normalize()},geomStringRegExp:o,geomParse:function(e){if(!e)return{marginLeft:0,size:0};var t=e.length,n=(a=_slicedToArray(o.exec(e)||[],3))[0],r=a[1],a=a[2];return!n||a===e&&1<a.length?{marginLeft:0,size:0}:{marginLeft:r.length/t*100,size:a.length/t*100}}})}),define(„utils/scripttag“,[„state“,“utils/operationutils„,“internaltypes/varref„,“internaltypes/twineerror„],function(a,o,i,s){return function(e,r){Function(„script“,“scope„,“with(scope){var scope=void 0,arguments=void 0;eval([script,script=void 0][0]);}„)(e,Object.create(null,Object.keys(a.variables).map(function(e){return!e.startsWith(„TwineScript_“)&&„$“+e}).concat(Object.keys®.map(function(e){return!e.startsWith(„TwineScript_“)&&„_“+e})).reduce(function(e,n){return n&&(e[n]={get:function(){var e=(„$“===n[0]?a.variables:r)[n.slice(1)];if(o.isHarloweJSValue(e))return o.clone(e);throw s.create(“„,“The contents of the variable „.concat(n,“, „).concat(o.objectName(e),“, couldn't be converted to a Javascript value.„),“Only booleans, strings, numbers, datamaps, datasets and arrays can be converted to Javascript values.„)},set:function(e){var t=„$“===n[0]?a.variables:r;if(!o.isHarloweJSValue(e))throw s.create(“„,“The Javascript value, „.concat(e,“, couldn't be converted to a Harlowe value and assigned to the variable „).concat(n,“.„),“Only booleans, strings, numbers (except NaN and Infinity), Maps, Sets and Arrays can be converted to Harlowe values.„);e=o.clone(e);t=i.create(t,n.slice(1)).set(e);if(s.containsError(t))throw t}}),e},{})))}}),!function(){function e(t,n,r){return function(e){return“background-color: hsla(„.concat(t,“,„).concat(n,“%,„).concat(r,“%,„).concat(e,“);„)}}var t={boolean:„color:hsla(0,0%,30%,1.0)“,array:„color:hsla(0,100%,30%,1.0)“,dataset:„color:hsla(30,100%,40%,1.0)“,number:„color:hsla(30,100%,30%,1.0)“,datamap:„color:hsla(60,100%,30%,1.0)“,changer:„color:hsla(90,100%,30%,1.0)“,lambda:„color:hsla(120,100%,40%,1.0)“,hookName:„color:hsla(160,100%,30%,1.0)“,string:„color:hsla(180,100%,30%,1.0)“,identifier:„color:hsla(200,80%,40%,1.0)“,variable:„color:hsla(200,100%,30%,1.0)“,tempVariable:„color:hsla(200,70%,20%,1.0)“,datatype:„color:hsla(220,100%,30%,1.0)“,colour:„color:hsla(280,100%,30%,1.0)“,macro:„color:hsla(320,80%,30%,1.0)“,twineLink:„color:hsla(240,100%,20%,1.0)“},o=(t.gradient=t.colour,t.command=t.twineLink,t.instant=t.metadata=t.any=t.customMacro=t.macro,Math.min),n=e(40,100,50),r=e(220,100,50),i=/hsla\86),_defineProperty(n,“collapsed.hook„,r(.05)),_defineProperty(n,“collapsed.hook-2„,r(.1)),_defineProperty(n,“collapsed.hook-3„,r(.15)),_defineProperty(n,“collapsed.hook-4„,r(.2)),_defineProperty(n,“collapsed.hook-5„,r(.25)),_defineProperty(n,“collapsed.hook-6„,r(.3)),_defineProperty(n,“collapsed.hook-7„,r(.35)),_defineProperty(n,“collapsed.hook-8„,r(.4)),_defineProperty(n,“twineLink:not(.text)„,t.twineLink),_defineProperty(n,“tag, scriptStyleTag, comment„,“color: hsla(240,34%,25%,1.0);„),_defineProperty(n,“boolean„,t.boolean),_defineProperty(n,“string„,t.string),_defineProperty(n,“number„,t.number),_defineProperty(n,“variable„,t.variable),_defineProperty(n,“tempVariable„,t.tempVariable),_defineProperty(n,“hookName„,t.hookName),_defineProperty(n,“datatype„,t.datatype),_defineProperty(n,“colour„,t.colour),_defineProperty(n,“cssTime„,t.number),_defineProperty(n,“passageString„,t.variable+“;text-decoration:underline 1px;„),_defineProperty(n,“tagString„,t.variable+“;text-decoration:underline 1px dotted;„),_defineProperty(n,“variableOccurrence, hookOccurrence„,“background: hsla(159,50%,75%,1.0) !important;„),_defineProperty(n,“^=where, ^=via, ^=with, ^=making, ^=each, ^=when„,t.lambda+“; font-style:italic;„),_defineProperty(n,“heading„,“font-weight:bold;„),_defineProperty(n,“hr„,“background-image: linear-gradient(0deg, transparent, transparent 45%, hsla(0,0%,75%,1.0) 45%, transparent 55%, transparent);„),_defineProperty(n,“align„,“color: hsla(14,99%,37%,1.0); background-color: hsla(14,99%,87%,0.1);„),_defineProperty(n,“column„,“color: hsla(204,99%,37%,1.0); background-color: hsla(204,99%,87%,0.1);„),_defineProperty(n,“escapedLine„,“font-weight:bold; color: hsla(51,100%,30%,1.0);„),_defineProperty(n,“identifier, property, belongingProperty, itsProperty, belongingItProperty, belongingItOperator, possessiveOperator, belongingOperator„,t.identifier),_defineProperty(n,“toString„,function(){var a=this;return Object.keys(this).reduce(function(e,n){var r;return“toString„!==n&&(r=n.split(“, „).map(function e(t){return-1<t.indexOf(“.„)?t.split(/\./g).map(e).join(“„):0===t.indexOf(„^=“)?“[class^='„+s+t.slice(2)+“']„:“.„+s+t}),e+=r.join(“, „)+“{„+a[n]+“}„,a[n].match(i)&&[“.theme-dark„,“[data-app-theme=dark]„].forEach(function(t){e+=r.map(function(e){return t+“ „+e}).join(“, „)+“{„+a[n].replace(i,function(e,t,n,r,a){return“hsla(„+t+“,„+o(100,1.5*+n)+“%,„+(100-r)+“%,„+a+“)„})+“}„})),e},“„)}),n+“„);“object„===(„undefined“==typeof module?“undefined„:_typeof(module))?module.exports={Colours:t,CSS:a,versionClass:s}:„function“==typeof define&&define.amd&&define(„utils/typecolours“,[],function(){return{Colours:t,CSS:a,versionClass:s}})}.call(void 0);
;require(„harlowe“)}());
</script>
</body>
</html>