-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformat.js
1 lines (1 loc) · 355 KB
/
format.js
1
window.storyFormat({"name":"SugarCube 2 (local/offline)","version":"2.3.1","description":"A Twine 2 port of the Twine 1 story format by the same name. See its <a href=\"http://www.motoslave.net/sugarcube/2/#documentation\" target=\"_blank\">documentation</a>.","author":"Thomas Michael Edwards","image":"icon.svg","url":"http://www.motoslave.net/sugarcube/","license":"Simplified BSD License","proofing":false,"source":"<!DOCTYPE html>\n<html class=\"init-no-js\">\n<head>\n<meta charset=\"UTF-8\" />\n<title>{{STORY_NAME}}</title>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />\n<!--\n\nSugarCube (v2.3.1): A free (gratis and libre) story format, based on TiddlyWiki.\n\nCopyright © 2013–2016 Thomas Michael Edwards <[email protected]>.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met: \n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer. \n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution. \n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n-->\n<script id=\"script-init\" type=\"text/javascript\">\nif(!document.head||!document.querySelector||!document.addEventListener||!JSON||!Object.getPrototypeOf||!Object.freeze){document.documentElement.className=\"init-lacking\";}else{document.documentElement.className=\"init-loading\";\n/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */\nif(\"document\" in self){if(!(\"classList\" in document.createElement(\"_\"))){(function(j){\"use strict\";if(!(\"Element\" in j)){return}var a=\"classList\",f=\"prototype\",m=j.Element[f],b=Object,k=String[f].trim||function(){return this.replace(/^\\s+|\\s+$/g,\"\")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p<o;p++){if(p in this&&this[p]===q){return p}}return -1},n=function(o,p){this.name=o;this.code=DOMException[o];this.message=p},g=function(p,o){if(o===\"\"){throw new n(\"SYNTAX_ERR\",\"An invalid or illegal string was specified\")}if(/\\s/.test(o)){throw new n(\"INVALID_CHARACTER_ERR\",\"String contains an invalid character\")}return c.call(p,o)},d=function(s){var r=k.call(s.getAttribute(\"class\")||\"\"),q=r?r.split(/\\s+/):[],p=0,o=q.length;for(;p<o;p++){this.push(q[p])}this._updateClassName=function(){s.setAttribute(\"class\",this.toString())}},e=d[f]=[],i=function(){return new d(this)};n[f]=Error[f];e.item=function(o){return this[o]||null};e.contains=function(o){o+=\"\";return g(this,o)!==-1};e.add=function(){var s=arguments,r=0,p=s.length,q,o=false;do{q=s[r]+\"\";if(g(this,q)===-1){this.push(q);o=true}}while(++r<p);if(o){this._updateClassName()}};e.remove=function(){var t=arguments,s=0,p=t.length,r,o=false,q;do{r=t[s]+\"\";q=g(this,r);while(q!==-1){this.splice(q,1);o=true;q=g(this,r)}}while(++s<p);if(o){this._updateClassName()}};e.toggle=function(p,q){p+=\"\";var o=this.contains(p),r=o?q!==true&&\"remove\":q!==false&&\"add\";if(r){this[r](p)}if(q===true||q===false){return q}else{return !o}};e.toString=function(){return this.join(\" \")};if(b.defineProperty){var l={get:i,enumerable:true,configurable:true};try{b.defineProperty(m,a,l)}catch(h){if(h.number===-2146823252){l.enumerable=false;b.defineProperty(m,a,l)}}}else{if(b[f].__defineGetter__){m.__defineGetter__(a,i)}}}(self))}else{(function(){var b=document.createElement(\"_\");b.classList.add(\"c1\",\"c2\");if(!b.classList.contains(\"c2\")){var c=function(e){var d=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(h){var g,f=arguments.length;for(g=0;g<f;g++){h=arguments[g];d.call(this,h)}}};c(\"add\");c(\"remove\")}b.classList.toggle(\"c3\",false);if(b.classList.contains(\"c3\")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(d,e){if(1 in arguments&&!this.contains(d)===!e){return e}else{return a.call(this,d)}}}b=null}())}};\n/*! es5-shim: v4.4.1 (https://github.com/es-shims/es5-shim) | @license es5-shim Copyright 2009-2015 by contributors, MIT License | see https://github.com/es-shims/es5-shim/blob/v4.4.1/LICENSE */\n(function(r,t){\"use strict\";if(typeof define===\"function\"&&define.amd){define(t)}else if(typeof exports===\"object\"){module.exports=t()}else{r.returnExports=t()}})(this,function(){var r=Array;var t=r.prototype;var e=Object;var n=e.prototype;var i=Function.prototype;var a=String;var o=a.prototype;var u=Number;var f=u.prototype;var l=t.slice;var s=t.splice;var c=t.push;var v=t.unshift;var p=t.concat;var h=i.call;var g=i.apply;var y=Math.max;var d=Math.min;var m=n.toString;var w=typeof Symbol===\"function\"&&typeof Symbol.toStringTag===\"symbol\";var b;var T=Function.prototype.toString,x=function tryFunctionObject(r){try{T.call(r);return true}catch(t){return false}},O=\"[object Function]\",S=\"[object GeneratorFunction]\";b=function isCallable(r){if(typeof r!==\"function\"){return false}if(w){return x(r)}var t=m.call(r);return t===O||t===S};var E;var j=RegExp.prototype.exec,I=function tryRegexExec(r){try{j.call(r);return true}catch(t){return false}},D=\"[object RegExp]\";E=function isRegex(r){if(typeof r!==\"object\"){return false}return w?I(r):m.call(r)===D};var N;var k=String.prototype.valueOf,M=function tryStringObject(r){try{k.call(r);return true}catch(t){return false}},U=\"[object String]\";N=function isString(r){if(typeof r===\"string\"){return true}if(typeof r!==\"object\"){return false}return w?M(r):m.call(r)===U};var R=e.defineProperty&&function(){try{var r={};e.defineProperty(r,\"x\",{enumerable:false,value:r});for(var t in r){return false}return r.x===r}catch(n){return false}}();var F=function(r){var t;if(R){t=function(r,t,n,i){if(!i&&t in r){return}e.defineProperty(r,t,{configurable:true,enumerable:false,writable:true,value:n})}}else{t=function(r,t,e,n){if(!n&&t in r){return}r[t]=e}}return function defineProperties(e,n,i){for(var a in n){if(r.call(n,a)){t(e,a,n[a],i)}}}}(n.hasOwnProperty);var A=function isPrimitive(r){var t=typeof r;return r===null||t!==\"object\"&&t!==\"function\"};var P=u.isNaN||function(r){return r!==r};var $={ToInteger:function ToInteger(r){var t=+r;if(P(t)){t=0}else if(t!==0&&t!==1/0&&t!==-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}return t},ToPrimitive:function ToPrimitive(r){var t,e,n;if(A(r)){return r}e=r.valueOf;if(b(e)){t=e.call(r);if(A(t)){return t}}n=r.toString;if(b(n)){t=n.call(r);if(A(t)){return t}}throw new TypeError},ToObject:function(r){if(r==null){throw new TypeError(\"can't convert \"+r+\" to object\")}return e(r)},ToUint32:function ToUint32(r){return r>>>0}};var C=function Empty(){};F(i,{bind:function bind(r){var t=this;if(!b(t)){throw new TypeError(\"Function.prototype.bind called on incompatible \"+t)}var n=l.call(arguments,1);var i;var a=function(){if(this instanceof i){var a=t.apply(this,p.call(n,l.call(arguments)));if(e(a)===a){return a}return this}else{return t.apply(r,p.call(n,l.call(arguments)))}};var o=y(0,t.length-n.length);var u=[];for(var f=0;f<o;f++){c.call(u,\"$\"+f)}i=Function(\"binder\",\"return function (\"+u.join(\",\")+\"){ return binder.apply(this, arguments); }\")(a);if(t.prototype){C.prototype=t.prototype;i.prototype=new C;C.prototype=null}return i}});var Z=h.bind(n.hasOwnProperty);var J=h.bind(n.toString);var z=h.bind(l);var B=g.bind(l);var G=h.bind(o.slice);var H=h.bind(o.split);var L=h.bind(o.indexOf);var X=h.bind(c);var Y=h.bind(n.propertyIsEnumerable);var q=h.bind(t.sort);var K=r.isArray||function isArray(r){return J(r)===\"[object Array]\"};var Q=[].unshift(0)!==1;F(t,{unshift:function(){v.apply(this,arguments);return this.length}},Q);F(r,{isArray:K});var V=e(\"a\");var W=V[0]!==\"a\"||!(0 in V);var _=function properlyBoxed(r){var t=true;var e=true;if(r){r.call(\"foo\",function(r,e,n){if(typeof n!==\"object\"){t=false}});r.call([1],function(){\"use strict\";e=typeof this===\"string\"},\"x\")}return!!r&&t&&e};F(t,{forEach:function forEach(r){var t=$.ToObject(this);var e=W&&N(this)?H(this,\"\"):t;var n=-1;var i=$.ToUint32(e.length);var a;if(arguments.length>1){a=arguments[1]}if(!b(r)){throw new TypeError(\"Array.prototype.forEach callback must be a function\")}while(++n<i){if(n in e){if(typeof a===\"undefined\"){r(e[n],n,t)}else{r.call(a,e[n],n,t)}}}}},!_(t.forEach));F(t,{map:function map(t){var e=$.ToObject(this);var n=W&&N(this)?H(this,\"\"):e;var i=$.ToUint32(n.length);var a=r(i);var o;if(arguments.length>1){o=arguments[1]}if(!b(t)){throw new TypeError(\"Array.prototype.map callback must be a function\")}for(var u=0;u<i;u++){if(u in n){if(typeof o===\"undefined\"){a[u]=t(n[u],u,e)}else{a[u]=t.call(o,n[u],u,e)}}}return a}},!_(t.map));F(t,{filter:function filter(r){var t=$.ToObject(this);var e=W&&N(this)?H(this,\"\"):t;var n=$.ToUint32(e.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!b(r)){throw new TypeError(\"Array.prototype.filter callback must be a function\")}for(var u=0;u<n;u++){if(u in e){a=e[u];if(typeof o===\"undefined\"?r(a,u,t):r.call(o,a,u,t)){X(i,a)}}}return i}},!_(t.filter));F(t,{every:function every(r){var t=$.ToObject(this);var e=W&&N(this)?H(this,\"\"):t;var n=$.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!b(r)){throw new TypeError(\"Array.prototype.every callback must be a function\")}for(var a=0;a<n;a++){if(a in e&&!(typeof i===\"undefined\"?r(e[a],a,t):r.call(i,e[a],a,t))){return false}}return true}},!_(t.every));F(t,{some:function some(r){var t=$.ToObject(this);var e=W&&N(this)?H(this,\"\"):t;var n=$.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!b(r)){throw new TypeError(\"Array.prototype.some callback must be a function\")}for(var a=0;a<n;a++){if(a in e&&(typeof i===\"undefined\"?r(e[a],a,t):r.call(i,e[a],a,t))){return true}}return false}},!_(t.some));var rr=false;if(t.reduce){rr=typeof t.reduce.call(\"es5\",function(r,t,e,n){return n})===\"object\"}F(t,{reduce:function reduce(r){var t=$.ToObject(this);var e=W&&N(this)?H(this,\"\"):t;var n=$.ToUint32(e.length);if(!b(r)){throw new TypeError(\"Array.prototype.reduce callback must be a function\")}if(n===0&&arguments.length===1){throw new TypeError(\"reduce of empty array with no initial value\")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError(\"reduce of empty array with no initial value\")}}while(true)}for(;i<n;i++){if(i in e){a=r(a,e[i],i,t)}}return a}},!rr);var tr=false;if(t.reduceRight){tr=typeof t.reduceRight.call(\"es5\",function(r,t,e,n){return n})===\"object\"}F(t,{reduceRight:function reduceRight(r){var t=$.ToObject(this);var e=W&&N(this)?H(this,\"\"):t;var n=$.ToUint32(e.length);if(!b(r)){throw new TypeError(\"Array.prototype.reduceRight callback must be a function\")}if(n===0&&arguments.length===1){throw new TypeError(\"reduceRight of empty array with no initial value\")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in e){i=e[a--];break}if(--a<0){throw new TypeError(\"reduceRight of empty array with no initial value\")}}while(true)}if(a<0){return i}do{if(a in e){i=r(i,e[a],a,t)}}while(a--);return i}},!tr);var er=t.indexOf&&[0,1].indexOf(1,2)!==-1;F(t,{indexOf:function indexOf(r){var t=W&&N(this)?H(this,\"\"):$.ToObject(this);var e=$.ToUint32(t.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=$.ToInteger(arguments[1])}n=n>=0?n:y(0,e+n);for(;n<e;n++){if(n in t&&t[n]===r){return n}}return-1}},er);var nr=t.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;F(t,{lastIndexOf:function lastIndexOf(r){var t=W&&N(this)?H(this,\"\"):$.ToObject(this);var e=$.ToUint32(t.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=d(n,$.ToInteger(arguments[1]))}n=n>=0?n:e-Math.abs(n);for(;n>=0;n--){if(n in t&&r===t[n]){return n}}return-1}},nr);var ir=function(){var r=[1,2];var t=r.splice();return r.length===2&&K(t)&&t.length===0}();F(t,{splice:function splice(r,t){if(arguments.length===0){return[]}else{return s.apply(this,arguments)}}},!ir);var ar=function(){var r={};t.splice.call(r,0,0,1);return r.length===1}();F(t,{splice:function splice(r,t){if(arguments.length===0){return[]}var e=arguments;this.length=y($.ToInteger(this.length),0);if(arguments.length>0&&typeof t!==\"number\"){e=z(arguments);if(e.length<2){X(e,this.length-r)}else{e[1]=$.ToInteger(t)}}return s.apply(this,e)}},!ar);var or=function(){var t=new r(1e5);t[8]=\"x\";t.splice(1,1);return t.indexOf(\"x\")===7}();var ur=function(){var r=256;var t=[];t[r]=\"a\";t.splice(r+1,0,\"b\");return t[r]===\"a\"}();F(t,{splice:function splice(r,t){var e=$.ToObject(this);var n=[];var i=$.ToUint32(e.length);var o=$.ToInteger(r);var u=o<0?y(i+o,0):d(o,i);var f=d(y($.ToInteger(t),0),i-u);var l=0;var s;while(l<f){s=a(u+l);if(Z(e,s)){n[l]=e[s]}l+=1}var c=z(arguments,2);var v=c.length;var p;if(v<f){l=u;while(l<i-f){s=a(l+f);p=a(l+v);if(Z(e,s)){e[p]=e[s]}else{delete e[p]}l+=1}l=i;while(l>i-f+v){delete e[l-1];l-=1}}else if(v>f){l=i-f;while(l>u){s=a(l+f-1);p=a(l+v-1);if(Z(e,s)){e[p]=e[s]}else{delete e[p]}l-=1}}l=u;for(var h=0;h<c.length;++h){e[l]=c[h];l+=1}e.length=i-f+v;return n}},!or||!ur);var fr=t.join;var lr;try{lr=Array.prototype.join.call(\"123\",\",\")!==\"1,2,3\"}catch(sr){lr=true}if(lr){F(t,{join:function join(r){var t=typeof r===\"undefined\"?\",\":r;return fr.call(N(this)?H(this,\"\"):this,t)}},lr)}var cr=[1,2].join(undefined)!==\"1,2\";if(cr){F(t,{join:function join(r){var t=typeof r===\"undefined\"?\",\":r;return fr.call(this,t)}},cr)}var vr=function push(r){var t=$.ToObject(this);var e=$.ToUint32(t.length);var n=0;while(n<arguments.length){t[e+n]=arguments[n];n+=1}t.length=e+n;return e+n};var pr=function(){var r={};var t=Array.prototype.push.call(r,undefined);return t!==1||r.length!==1||typeof r[0]!==\"undefined\"||!Z(r,0)}();F(t,{push:function push(r){if(K(this)){return c.apply(this,arguments)}return vr.apply(this,arguments)}},pr);var hr=function(){var r=[];var t=r.push(undefined);return t!==1||r.length!==1||typeof r[0]!==\"undefined\"||!Z(r,0)}();F(t,{push:vr},hr);F(t,{slice:function(r,t){var e=N(this)?H(this,\"\"):this;return B(e,arguments)}},W);var gr=function(){try{[1,2].sort(null);[1,2].sort({});return true}catch(r){}return false}();var yr=function(){try{[1,2].sort(/a/);return false}catch(r){}return true}();var dr=function(){try{[1,2].sort(undefined);return true}catch(r){}return false}();F(t,{sort:function sort(r){if(typeof r===\"undefined\"){return q(this)}if(!b(r)){throw new TypeError(\"Array.prototype.sort callback must be a function\")}return q(this,r)}},gr||!dr||!yr);var mr=!{toString:null}.propertyIsEnumerable(\"toString\");var wr=function(){}.propertyIsEnumerable(\"prototype\");var br=!Z(\"x\",\"0\");var Tr=function(r){var t=r.constructor;return t&&t.prototype===r};var xr={$window:true,$console:true,$parent:true,$self:true,$frame:true,$frames:true,$frameElement:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$external:true};var Or=function(){if(typeof window===\"undefined\"){return false}for(var r in window){try{if(!xr[\"$\"+r]&&Z(window,r)&&window[r]!==null&&typeof window[r]===\"object\"){Tr(window[r])}}catch(t){return true}}return false}();var Sr=function(r){if(typeof window===\"undefined\"||!Or){return Tr(r)}try{return Tr(r)}catch(t){return false}};var Er=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"];var jr=Er.length;var Ir=function isArguments(r){return J(r)===\"[object Arguments]\"};var Dr=function isArguments(r){return r!==null&&typeof r===\"object\"&&typeof r.length===\"number\"&&r.length>=0&&!K(r)&&b(r.callee)};var Nr=Ir(arguments)?Ir:Dr;F(e,{keys:function keys(r){var t=b(r);var e=Nr(r);var n=r!==null&&typeof r===\"object\";var i=n&&N(r);if(!n&&!t&&!e){throw new TypeError(\"Object.keys called on a non-object\")}var o=[];var u=wr&&t;if(i&&br||e){for(var f=0;f<r.length;++f){X(o,a(f))}}if(!e){for(var l in r){if(!(u&&l===\"prototype\")&&Z(r,l)){X(o,a(l))}}}if(mr){var s=Sr(r);for(var c=0;c<jr;c++){var v=Er[c];if(!(s&&v===\"constructor\")&&Z(r,v)){X(o,v)}}}return o}});var kr=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var Mr=e.keys&&function(){var r=e.keys(arguments);return arguments.length!==1||r.length!==1||r[0]!==1}(1);var Ur=e.keys;F(e,{keys:function keys(r){if(Nr(r)){return Ur(z(r))}else{return Ur(r)}}},!kr||Mr);var Rr=-621987552e5;var Fr=\"-000001\";var Ar=Date.prototype.toISOString&&new Date(Rr).toISOString().indexOf(Fr)===-1;var Pr=Date.prototype.toISOString&&new Date(-1).toISOString()!==\"1969-12-31T23:59:59.999Z\";F(Date.prototype,{toISOString:function toISOString(){var r,t,e,n,i;if(!isFinite(this)){throw new RangeError(\"Date.prototype.toISOString called on non-finite value.\")}n=this.getUTCFullYear();i=this.getUTCMonth();n+=Math.floor(i/12);i=(i%12+12)%12;r=[i+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];n=(n<0?\"-\":n>9999?\"+\":\"\")+G(\"00000\"+Math.abs(n),0<=n&&n<=9999?-4:-6);t=r.length;while(t--){e=r[t];if(e<10){r[t]=\"0\"+e}}return n+\"-\"+z(r,0,2).join(\"-\")+\"T\"+z(r,2).join(\":\")+\".\"+G(\"000\"+this.getUTCMilliseconds(),-3)+\"Z\"}},Ar||Pr);var $r=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(Rr).toJSON().indexOf(Fr)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(r){return false}}();if(!$r){Date.prototype.toJSON=function toJSON(r){var t=e(this);var n=$.ToPrimitive(t);if(typeof n===\"number\"&&!isFinite(n)){return null}var i=t.toISOString;if(!b(i)){throw new TypeError(\"toISOString property is not callable\")}return i.call(t)}}var Cr=Date.parse(\"+033658-09-27T01:46:40.000Z\")===1e15;var Zr=!isNaN(Date.parse(\"2012-04-04T24:00:00.500Z\"))||!isNaN(Date.parse(\"2012-11-31T23:59:59.000Z\"))||!isNaN(Date.parse(\"2012-12-31T23:59:60.000Z\"));var Jr=isNaN(Date.parse(\"2000-01-01T00:00:00.000Z\"));if(Jr||Zr||!Cr){var zr=Math.pow(2,31)-1;var Br=P(new Date(1970,0,1,0,0,0,zr+1).getTime());Date=function(r){var t=function Date(e,n,i,o,u,f,l){var s=arguments.length;var c;if(this instanceof r){var v=f;var p=l;if(Br&&s>=7&&l>zr){var h=Math.floor(l/zr)*zr;var g=Math.floor(h/1e3);v+=g;p-=g*1e3}c=s===1&&a(e)===e?new r(t.parse(e)):s>=7?new r(e,n,i,o,u,v,p):s>=6?new r(e,n,i,o,u,v):s>=5?new r(e,n,i,o,u):s>=4?new r(e,n,i,o):s>=3?new r(e,n,i):s>=2?new r(e,n):s>=1?new r(e):new r}else{c=r.apply(this,arguments)}if(!A(c)){F(c,{constructor:t},true)}return c};var e=new RegExp(\"^\"+\"(\\\\d{4}|[+-]\\\\d{6})\"+\"(?:-(\\\\d{2})\"+\"(?:-(\\\\d{2})\"+\"(?:\"+\"T(\\\\d{2})\"+\":(\\\\d{2})\"+\"(?:\"+\":(\\\\d{2})\"+\"(?:(\\\\.\\\\d{1,}))?\"+\")?\"+\"(\"+\"Z|\"+\"(?:\"+\"([-+])\"+\"(\\\\d{2})\"+\":(\\\\d{2})\"+\")\"+\")?)?)?)?\"+\"$\");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(r,t){var e=t>1?1:0;return n[t]+Math.floor((r-1969+e)/4)-Math.floor((r-1901+e)/100)+Math.floor((r-1601+e)/400)+365*(r-1970)};var o=function toUTC(t){var e=0;var n=t;if(Br&&n>zr){var i=Math.floor(n/zr)*zr;var a=Math.floor(i/1e3);e+=a;n-=a*1e3}return u(new r(1970,0,1,0,0,e,n))};for(var f in r){if(Z(r,f)){t[f]=r[f]}}F(t,{now:r.now,UTC:r.UTC},true);t.prototype=r.prototype;F(t.prototype,{constructor:t},true);var l=function parse(t){var n=e.exec(t);if(n){var a=u(n[1]),f=u(n[2]||1)-1,l=u(n[3]||1)-1,s=u(n[4]||0),c=u(n[5]||0),v=u(n[6]||0),p=Math.floor(u(n[7]||0)*1e3),h=Boolean(n[4]&&!n[8]),g=n[9]===\"-\"?1:-1,y=u(n[10]||0),d=u(n[11]||0),m;var w=c>0||v>0||p>0;if(s<(w?24:25)&&c<60&&v<60&&p<1e3&&f>-1&&f<12&&y<24&&d<60&&l>-1&&l<i(a,f+1)-i(a,f)){m=((i(a,f)+l)*24+s+y*g)*60;m=((m+c+d*g)*60+v)*1e3+p;if(h){m=o(m)}if(-864e13<=m&&m<=864e13){return m}}return NaN}return r.parse.apply(this,arguments)};F(t,{parse:l});return t}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var Gr=f.toFixed&&(8e-5.toFixed(3)!==\"0.000\"||.9.toFixed(0)!==\"1\"||1.255.toFixed(2)!==\"1.25\"||0xde0b6b3a7640080.toFixed(0)!==\"1000000000000000128\");var Hr={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(r,t){var e=-1;var n=t;while(++e<Hr.size){n+=r*Hr.data[e];Hr.data[e]=n%Hr.base;n=Math.floor(n/Hr.base)}},divide:function divide(r){var t=Hr.size,e=0;while(--t>=0){e+=Hr.data[t];Hr.data[t]=Math.floor(e/r);e=e%r*Hr.base}},numToString:function numToString(){var r=Hr.size;var t=\"\";while(--r>=0){if(t!==\"\"||r===0||Hr.data[r]!==0){var e=a(Hr.data[r]);if(t===\"\"){t=e}else{t+=G(\"0000000\",0,7-e.length)+e}}}return t},pow:function pow(r,t,e){return t===0?e:t%2===1?pow(r,t-1,e*r):pow(r*r,t/2,e)},log:function log(r){var t=0;var e=r;while(e>=4096){t+=12;e/=4096}while(e>=2){t+=1;e/=2}return t}};var Lr=function toFixed(r){var t,e,n,i,o,f,l,s;t=u(r);t=P(t)?0:Math.floor(t);if(t<0||t>20){throw new RangeError(\"Number.toFixed called with invalid number of decimals\")}e=u(this);if(P(e)){return\"NaN\"}if(e<=-1e21||e>=1e21){return a(e)}n=\"\";if(e<0){n=\"-\";e=-e}i=\"0\";if(e>1e-21){o=Hr.log(e*Hr.pow(2,69,1))-69;f=o<0?e*Hr.pow(2,-o,1):e/Hr.pow(2,o,1);f*=4503599627370496;o=52-o;if(o>0){Hr.multiply(0,f);l=t;while(l>=7){Hr.multiply(1e7,0);l-=7}Hr.multiply(Hr.pow(10,l,1),0);l=o-1;while(l>=23){Hr.divide(1<<23);l-=23}Hr.divide(1<<l);Hr.multiply(1,1);Hr.divide(2);i=Hr.numToString()}else{Hr.multiply(0,f);Hr.multiply(1<<-o,0);i=Hr.numToString()+G(\"0.00000000000000000000\",2,2+t)}}if(t>0){s=i.length;if(s<=t){i=n+G(\"0.0000000000000000000\",0,t-s+2)+i}else{i=n+G(i,0,s-t)+\".\"+G(i,s-t)}}else{i=n+i}return i};F(f,{toFixed:Lr},Gr);var Xr=function(){try{return 1..toPrecision(undefined)===\"1\"}catch(r){return true}}();var Yr=f.toPrecision;F(f,{toPrecision:function toPrecision(r){return typeof r===\"undefined\"?Yr.call(this):Yr.call(this,r)}},Xr);if(\"ab\".split(/(?:ab)*/).length!==2||\".\".split(/(.?)(.?)/).length!==4||\"tesst\".split(/(s)*/)[1]===\"t\"||\"test\".split(/(?:)/,-1).length!==4||\"\".split(/.?/).length||\".\".split(/()()/).length>1){(function(){var r=typeof/()??/.exec(\"\")[1]===\"undefined\";var t=Math.pow(2,32)-1;o.split=function(e,n){var i=String(this);if(typeof e===\"undefined\"&&n===0){return[]}if(!E(e)){return H(this,e,n)}var a=[];var o=(e.ignoreCase?\"i\":\"\")+(e.multiline?\"m\":\"\")+(e.unicode?\"u\":\"\")+(e.sticky?\"y\":\"\"),u=0,f,l,s,v;var p=new RegExp(e.source,o+\"g\");if(!r){f=new RegExp(\"^\"+p.source+\"$(?!\\\\s)\",o)}var h=typeof n===\"undefined\"?t:$.ToUint32(n);l=p.exec(i);while(l){s=l.index+l[0].length;if(s>u){X(a,G(i,u,l.index));if(!r&&l.length>1){l[0].replace(f,function(){for(var r=1;r<arguments.length-2;r++){if(typeof arguments[r]===\"undefined\"){l[r]=void 0}}})}if(l.length>1&&l.index<i.length){c.apply(a,z(l,1))}v=l[0].length;u=s;if(a.length>=h){break}}if(p.lastIndex===l.index){p.lastIndex++}l=p.exec(i)}if(u===i.length){if(v||!p.test(\"\")){X(a,\"\")}}else{X(a,G(i,u))}return a.length>h?G(a,0,h):a}})()}else if(\"0\".split(void 0,0).length){o.split=function split(r,t){if(typeof r===\"undefined\"&&t===0){return[]}return H(this,r,t)}}var qr=o.replace;var Kr=function(){var r=[];\"x\".replace(/x(.)?/g,function(t,e){X(r,e)});return r.length===1&&typeof r[0]===\"undefined\"}();if(!Kr){o.replace=function replace(r,t){var e=b(t);var n=E(r)&&/\\)[*?]/.test(r.source);if(!e||!n){return qr.call(this,r,t)}else{var i=function(e){var n=arguments.length;var i=r.lastIndex;r.lastIndex=0;var a=r.exec(e)||[];r.lastIndex=i;X(a,arguments[n-2],arguments[n-1]);return t.apply(this,a)};return qr.call(this,r,i)}}}var Qr=o.substr;var Vr=\"\".substr&&\"0b\".substr(-1)!==\"b\";F(o,{substr:function substr(r,t){var e=r;if(r<0){e=y(this.length+r,0)}return Qr.call(this,e,t)}},Vr);var Wr=\"\t\\n\\x0B\\f\\r \\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\"+\"\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\"+\"\\u2029\\ufeff\";var _r=\"\\u200b\";var rt=\"[\"+Wr+\"]\";var tt=new RegExp(\"^\"+rt+rt+\"*\");var et=new RegExp(rt+rt+\"*$\");var nt=o.trim&&(Wr.trim()||!_r.trim());F(o,{trim:function trim(){if(typeof this===\"undefined\"||this===null){throw new TypeError(\"can't convert \"+this+\" to object\")}return a(this).replace(tt,\"\").replace(et,\"\")}},nt);var it=o.lastIndexOf&&\"abc\\u3042\\u3044\".lastIndexOf(\"\\u3042\\u3044\",2)!==-1;F(o,{lastIndexOf:function lastIndexOf(r){if(typeof this===\"undefined\"||this===null){throw new TypeError(\"can't convert \"+this+\" to object\")}var t=a(this);var e=a(r);var n=arguments.length>1?u(arguments[1]):NaN;var i=P(n)?Infinity:$.ToInteger(n);var o=d(y(i,0),t.length);var f=e.length;var l=o+f;while(l>0){l=y(0,l-f);var s=L(G(t,l,o+f),e);if(s!==-1){return l+s}}return-1}},it);var at=o.lastIndexOf;F(o,{lastIndexOf:function lastIndexOf(r){return at.apply(this,arguments)}},o.lastIndexOf.length!==1);if(parseInt(Wr+\"08\")!==8||parseInt(Wr+\"0x16\")!==22){parseInt=function(r){var t=/^[\\-+]?0[xX]/;return function parseInt(e,n){var i=a(e).trim();var o=u(n)||(t.test(i)?16:10);return r(i,o)}}(parseInt)}if(String(new RangeError(\"test\"))!==\"RangeError: test\"){var ot=function toString(){if(typeof this===\"undefined\"||this===null){throw new TypeError(\"can't convert \"+this+\" to object\")}var r=this.name;if(typeof r===\"undefined\"){r=\"Error\"}else if(typeof r!==\"string\"){r=a(r)}var t=this.message;if(typeof t===\"undefined\"){t=\"\"}else if(typeof t!==\"string\"){t=a(t)}if(!r){return t}if(!t){return r}return r+\": \"+t};Error.prototype.toString=ot}if(R){var ut=function(r,t){if(Y(r,t)){var e=Object.getOwnPropertyDescriptor(r,t);e.enumerable=false;Object.defineProperty(r,t,e)}};ut(Error.prototype,\"message\");if(Error.prototype.message!==\"\"){Error.prototype.message=\"\"}ut(Error.prototype,\"name\")}if(String(/a/gim)!==\"/a/gim\"){var ft=function toString(){var r=\"/\"+this.source+\"/\";if(this.global){r+=\"g\"}if(this.ignoreCase){r+=\"i\"}if(this.multiline){r+=\"m\"}return r};RegExp.prototype.toString=ft}});\n/*! es6-shim: v0.34.0 (https://github.com/paulmillr/es6-shim) | @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) and contributors, MIT License | see https://github.com/paulmillr/es6-shim/blob/0.34.0/LICENSE | Details and documentation: https://github.com/paulmillr/es6-shim/ */\n(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=function notThunker(t){return function notThunk(){return!e(t,this,arguments)}};var o=function(e){try{e();return false}catch(t){return true}};var i=function valueOrFalseIfThrows(e){try{return e()}catch(t){return false}};var a=n(o);var u=function(){return!o(function(){Object.defineProperty({},\"x\",{get:function(){}})})};var s=!!Object.defineProperty&&u();var f=function foo(){}.name===\"foo\";var c=Function.call.bind(Array.prototype.forEach);var l=Function.call.bind(Array.prototype.reduce);var p=Function.call.bind(Array.prototype.filter);var v=Function.call.bind(Array.prototype.some);var y=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 h=function(e,t,r){c(Object.keys(t),function(n){var o=t[n];y(e,n,o,!!r)})};var g=Function.call.bind(Object.prototype.toString);var b=function isCallable(e){return typeof e===\"function\"&&g(e)===\"[object Function]\"};var d={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(r){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&&b(t.toString)){y(e,\"toString\",t.toString.bind(t),true)}}};var m=Object.create||function(e,t){var r=function Prototype(){};r.prototype=e;var n=new r;if(typeof t!==\"undefined\"){Object.keys(t).forEach(function(e){d.defineByDescriptor(n,e,t[e])})}return n};var O=function(e,t){if(!Object.setPrototypeOf){return false}return i(function(){var r=function Subclass(t){var r=new e(t);Object.setPrototypeOf(r,Subclass.prototype);return r};Object.setPrototypeOf(r,e);r.prototype=m(e.prototype,{constructor:{value:r}});return t(r)})};var w=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 j=w();var S=j.isFinite;var T=Function.call.bind(String.prototype.indexOf);var I=Function.call.bind(Array.prototype.concat);var E=Function.call.bind(Array.prototype.sort);var M=Function.call.bind(String.prototype.slice);var P=Function.call.bind(Array.prototype.push);var C=Function.apply.bind(Array.prototype.push);var x=Function.call.bind(Array.prototype.shift);var N=Math.max;var A=Math.min;var R=Math.floor;var k=Math.abs;var _=Math.log;var F=Math.sqrt;var D=Function.call.bind(Object.prototype.hasOwnProperty);var z;var L=function(){};var q=j.Symbol||{};var W=q.species||\"@@species\";var G=Number.isNaN||function isNaN(e){return e!==e};var B=Number.isFinite||function isFinite(e){return typeof e===\"number\"&&S(e)};var H=function isArguments(e){return g(e)===\"[object Arguments]\"};var $=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 V=H(arguments)?H:$;var J={primitive:function(e){return e===null||typeof e!==\"function\"&&typeof e!==\"object\"},object:function(e){return e!==null&&typeof e===\"object\"},string:function(e){return g(e)===\"[object String]\"},regex:function(e){return g(e)===\"[object RegExp]\"},symbol:function(e){return typeof j.Symbol===\"function\"&&typeof e===\"symbol\"}};var K=function overrideNative(e,t,r){var n=e[t];y(e,t,r,true);d.preserveToString(e[t],n)};var U=typeof q===\"function\"&&typeof q[\"for\"]===\"function\"&&J.symbol(q());var X=J.symbol(q.iterator)?q.iterator:\"_es6-shim iterator_\";if(j.Set&&typeof(new j.Set)[\"@@iterator\"]===\"function\"){X=\"@@iterator\"}if(!j.Reflect){y(j,\"Reflect\",{})}var Z=j.Reflect;var Q=String;var Y={Call:function Call(t,r){var n=arguments.length>2?arguments[2]:[];if(!Y.IsCallable(t)){throw new TypeError(t+\" is not a function\")}return e(t,r,n)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||\"Cannot call method on \"+e)}return e},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){return Object(Y.RequireObjectCoercible(e,t))},IsCallable:b,IsConstructor:function(e){return Y.IsCallable(e)},ToInt32:function(e){return Y.ToNumber(e)>>0},ToUint32:function(e){return Y.ToNumber(e)>>>0},ToNumber:function(e){if(g(e)===\"[object Symbol]\"){throw new TypeError(\"Cannot convert a Symbol value to a number\")}return+e},ToInteger:function(e){var t=Y.ToNumber(e);if(G(t)){return 0}if(t===0||!B(t)){return t}return(t>0?1:-1)*R(k(t))},ToLength:function(e){var t=Y.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 G(e)&&G(t)},SameValueZero:function(e,t){return e===t||G(e)&&G(t)},IsIterable:function(e){return Y.TypeIsObject(e)&&(typeof e[X]!==\"undefined\"||V(e))},GetIterator:function(e){if(V(e)){return new z(e,\"value\")}var t=Y.GetMethod(e,X);if(!Y.IsCallable(t)){throw new TypeError(\"value is not an iterable\")}var r=Y.Call(t,e);if(!Y.TypeIsObject(r)){throw new TypeError(\"bad iterator\")}return r},GetMethod:function(e,t){var r=Y.ToObject(e)[t];if(r===void 0||r===null){return void 0}if(!Y.IsCallable(r)){throw new TypeError(\"Method not callable: \"+t)}return r},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var r=Y.GetMethod(e,\"return\");if(r===void 0){return}var n,o;try{n=Y.Call(r,e)}catch(i){o=i}if(t){return}if(o){throw o}if(!Y.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(!Y.TypeIsObject(t)){throw new TypeError(\"bad iterator\")}return t},IteratorStep:function(e){var t=Y.IteratorNext(e);var r=Y.IteratorComplete(t);return r?false:t},Construct:function(e,t,r,n){var o=typeof r===\"undefined\"?e:r;if(!n&&Z.construct){return Z.construct(e,t,o)}var i=o.prototype;if(!Y.TypeIsObject(i)){i=Object.prototype}var a=m(i);var u=Y.Call(e,a,t);return Y.TypeIsObject(u)?u:a},SpeciesConstructor:function(e,t){var r=e.constructor;if(r===void 0){return t}if(!Y.TypeIsObject(r)){throw new TypeError(\"Bad constructor\")}var n=r[W];if(n===void 0||n===null){return t}if(!Y.IsConstructor(n)){throw new TypeError(\"Bad @@species\")}return n},CreateHTML:function(e,t,r,n){var o=Y.ToString(e);var i=\"<\"+t;if(r!==\"\"){var a=Y.ToString(n);var u=a.replace(/\"/g,\""\");i+=\" \"+r+'=\"'+u+'\"'}var s=i+\">\";var f=s+o;return f+\"</\"+t+\">\"},IsRegExp:function IsRegExp(e){if(!Y.TypeIsObject(e)){return false}var t=e[q.match];if(typeof t!==\"undefined\"){return!!t}return J.regex(e)},ToString:function ToString(e){return Q(e)}};if(s&&U){var ee=function defineWellKnownSymbol(e){if(J.symbol(q[e])){return q[e]}var t=q[\"for\"](\"Symbol.\"+e);Object.defineProperty(q,e,{configurable:false,enumerable:false,writable:false,value:t});return t};if(!J.symbol(q.search)){var te=ee(\"search\");var re=String.prototype.search;y(RegExp.prototype,te,function search(e){return Y.Call(re,e,[Y.ToString(this)])});var ne=function search(e){var t=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!==\"undefined\"){var r=Y.GetMethod(e,te);if(typeof r!==\"undefined\"){return Y.Call(r,e,[t])}}return Y.Call(re,t,[Y.ToString(e)])};K(String.prototype,\"search\",ne)}if(!J.symbol(q.replace)){var oe=ee(\"replace\");var ie=String.prototype.replace;y(RegExp.prototype,oe,function replace(e,t){return Y.Call(ie,e,[this,t])});var ae=function replace(e,t){var r=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!==\"undefined\"){var n=Y.GetMethod(e,oe);if(typeof n!==\"undefined\"){return Y.Call(n,e,[r,t])}}return Y.Call(ie,r,[Y.ToString(e),t])};K(String.prototype,\"replace\",ae)}if(!J.symbol(q.split)){var ue=ee(\"split\");var se=String.prototype.split;y(RegExp.prototype,ue,function split(e,t){return Y.Call(se,e,[this,t])});var fe=function split(e,t){var r=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!==\"undefined\"){var n=Y.GetMethod(e,ue);if(typeof n!==\"undefined\"){return Y.Call(n,e,[r,t])}}return Y.Call(se,r,[Y.ToString(e),t])};K(String.prototype,\"split\",fe)}var ce=J.symbol(q.match);var le=ce&&function(){var e={};e[q.match]=function(){return 42};return\"a\".match(e)!==42}();if(!ce||le){var pe=ee(\"match\");var ve=String.prototype.match;y(RegExp.prototype,pe,function match(e){return Y.Call(ve,e,[this])});var ye=function match(e){var t=Y.RequireObjectCoercible(this);if(e!==null&&typeof e!==\"undefined\"){var r=Y.GetMethod(e,pe);if(typeof r!==\"undefined\"){return Y.Call(r,e,[t])}}return Y.Call(ve,t,[Y.ToString(e)])};K(String.prototype,\"match\",ye)}}var he=function wrapConstructor(e,t,r){d.preserveToString(t,e);if(Object.setPrototypeOf){Object.setPrototypeOf(e,t)}if(s){c(Object.getOwnPropertyNames(e),function(n){if(n in L||r[n]){return}d.proxy(e,n,t)})}else{c(Object.keys(e),function(n){if(n in L||r[n]){return}t[n]=e[n]})}t.prototype=e.prototype;d.redefine(e.prototype,\"constructor\",t)};var ge=function(){return this};var be=function(e){if(s&&!D(e,W)){d.getter(e,W,ge)}};var de=function(e,t){var r=t||function iterator(){return this};y(e,X,r);if(!e[X]&&J.symbol(X)){e[X]=r}};var me=function createDataProperty(e,t,r){if(s){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:r})}else{e[t]=r}};var Oe=function createDataPropertyOrThrow(e,t,r){me(e,t,r);if(!Y.SameValue(e[t],r)){throw new TypeError(\"property is nonconfigurable\")}};var we=function(e,t,r,n){if(!Y.TypeIsObject(e)){throw new TypeError(\"Constructor requires `new`: \"+t.name)}var o=t.prototype;if(!Y.TypeIsObject(o)){o=r}var i=m(o);for(var a in n){if(D(n,a)){var u=n[a];y(i,a,u,true)}}return i};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var je=String.fromCodePoint;K(String,\"fromCodePoint\",function fromCodePoint(e){return Y.Call(je,this,arguments)})}var Se={fromCodePoint:function fromCodePoint(e){var t=[];var r;for(var n=0,o=arguments.length;n<o;n++){r=Number(arguments[n]);if(!Y.SameValue(r,Y.ToInteger(r))||r<0||r>1114111){throw new RangeError(\"Invalid code point \"+r)}if(r<65536){P(t,String.fromCharCode(r))}else{r-=65536;P(t,String.fromCharCode((r>>10)+55296));P(t,String.fromCharCode(r%1024+56320))}}return t.join(\"\")},raw:function raw(e){var t=Y.ToObject(e,\"bad callSite\");var r=Y.ToObject(t.raw,\"bad raw value\");var n=r.length;var o=Y.ToLength(n);if(o<=0){return\"\"}var i=[];var a=0;var u,s,f,c;while(a<o){u=Y.ToString(a);f=Y.ToString(r[u]);P(i,f);if(a+1>=o){break}s=a+1<arguments.length?arguments[a+1]:\"\";c=Y.ToString(s);P(i,c);a+=1}return i.join(\"\")}};if(String.raw&&String.raw({raw:{0:\"x\",1:\"y\",length:2}})!==\"xy\"){K(String,\"raw\",Se.raw)}h(String,Se);var Te=function repeat(e,t){if(t<1){return\"\"}if(t%2){return repeat(e,t-1)+e}var r=repeat(e,t/2);return r+r};var Ie=Infinity;var Ee={repeat:function repeat(e){var t=Y.ToString(Y.RequireObjectCoercible(this));var r=Y.ToInteger(e);if(r<0||r>=Ie){throw new RangeError(\"repeat count must be less than infinity and not overflow maximum string size\")}return Te(t,r)},startsWith:function startsWith(e){var t=Y.ToString(Y.RequireObjectCoercible(this));if(Y.IsRegExp(e)){throw new TypeError('Cannot call method \"startsWith\" with a regex')}var r=Y.ToString(e);var n=arguments.length>1?arguments[1]:void 0;var o=N(Y.ToInteger(n),0);return M(t,o,o+r.length)===r},endsWith:function endsWith(e){var t=Y.ToString(Y.RequireObjectCoercible(this));if(Y.IsRegExp(e)){throw new TypeError('Cannot call method \"endsWith\" with a regex')}var r=Y.ToString(e);var n=t.length;var o=arguments.length>1?arguments[1]:void 0;var i=typeof o===\"undefined\"?n:Y.ToInteger(o);var a=A(N(i,0),n);return M(t,a-r.length,a)===r},includes:function includes(e){if(Y.IsRegExp(e)){throw new TypeError('\"includes\" does not accept a RegExp')}var t=Y.ToString(e);var r;if(arguments.length>1){r=arguments[1]}return T(this,t,r)!==-1},codePointAt:function codePointAt(e){var t=Y.ToString(Y.RequireObjectCoercible(this));var r=Y.ToInteger(e);var n=t.length;if(r>=0&&r<n){var o=t.charCodeAt(r);var i=r+1===n;if(o<55296||o>56319||i){return o}var a=t.charCodeAt(r+1);if(a<56320||a>57343){return o}return(o-55296)*1024+(a-56320)+65536}}};if(String.prototype.includes&&\"a\".includes(\"a\",Infinity)!==false){K(String.prototype,\"includes\",Ee.includes)}if(String.prototype.startsWith&&String.prototype.endsWith){var Me=o(function(){\"/a/\".startsWith(/a/)});var Pe=\"abc\".startsWith(\"a\",Infinity)===false;if(!Me||!Pe){K(String.prototype,\"startsWith\",Ee.startsWith);K(String.prototype,\"endsWith\",Ee.endsWith)}}if(U){var Ce=i(function(){var e=/a/;e[q.match]=false;return\"/a/\".startsWith(e)});if(!Ce){K(String.prototype,\"startsWith\",Ee.startsWith)}var xe=i(function(){var e=/a/;e[q.match]=false;return\"/a/\".endsWith(e)});if(!xe){K(String.prototype,\"endsWith\",Ee.endsWith)}var Ne=i(function(){var e=/a/;e[q.match]=false;return\"/a/\".includes(e)});if(!Ne){K(String.prototype,\"includes\",Ee.includes)}}h(String.prototype,Ee);var Ae=[\"\t\\n\\x0B\\f\\r \\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\",\"\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\",\"\\u2029\\ufeff\"].join(\"\");var Re=new RegExp(\"(^[\"+Ae+\"]+)|([\"+Ae+\"]+$)\",\"g\");var ke=function trim(){return Y.ToString(Y.RequireObjectCoercible(this)).replace(Re,\"\")};var _e=[\"\\x85\",\"\\u200b\",\"\\ufffe\"].join(\"\");var Fe=new RegExp(\"[\"+_e+\"]\",\"g\");var De=/^[\\-+]0x[0-9a-f]+$/i;var ze=_e.trim().length!==_e.length;y(String.prototype,\"trim\",ke,ze);var Le=function(e){Y.RequireObjectCoercible(e);this._s=Y.ToString(e);this._i=0};Le.prototype.next=function(){var e=this._s,t=this._i;if(typeof e===\"undefined\"||t>=e.length){this._s=void 0;return{value:void 0,done:true}}var r=e.charCodeAt(t),n,o;if(r<55296||r>56319||t+1===e.length){o=1}else{n=e.charCodeAt(t+1);o=n<56320||n>57343?1:2}this._i=t+o;return{value:e.substr(t,o),done:false}};de(Le.prototype);de(String.prototype,function(){return new Le(this)});var qe={from:function from(e){var r=this;var n=arguments.length>1?arguments[1]:void 0;var o,i;if(n===void 0){o=false}else{if(!Y.IsCallable(n)){throw new TypeError(\"Array.from: when provided, the second argument must be a function\")}i=arguments.length>2?arguments[2]:void 0;o=true}var a=typeof(V(e)||Y.GetMethod(e,X))!==\"undefined\";var u,s,f;if(a){s=Y.IsConstructor(r)?Object(new r):[];var c=Y.GetIterator(e);var l,p;f=0;while(true){l=Y.IteratorStep(c);if(l===false){break}p=l.value;try{if(o){p=i===undefined?n(p,f):t(n,i,p,f)}s[f]=p}catch(v){Y.IteratorClose(c,true);throw v}f+=1}u=f}else{var y=Y.ToObject(e);u=Y.ToLength(y.length);s=Y.IsConstructor(r)?Object(new r(u)):new Array(u);var h;for(f=0;f<u;++f){h=y[f];if(o){h=i!==undefined?t(n,i,h,f):n(h,f)}s[f]=h}}s.length=u;return s},of:function of(){var e=arguments.length;var t=this;var n=r(t)||!Y.IsCallable(t)?new Array(e):Y.Construct(t,[e]);for(var o=0;o<e;++o){Oe(n,o,arguments[o])}n.length=e;return n}};h(Array,qe);be(Array);var We=function(e){return{value:e,done:arguments.length===0}};z=function(e,t){this.i=0;this.array=e;this.kind=t};h(z.prototype,{next:function(){var e=this.i,t=this.array;if(!(this instanceof z)){throw new TypeError(\"Not an ArrayIterator\")}if(typeof t!==\"undefined\"){var r=Y.ToLength(t.length);for(;e<r;e++){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{value:o,done:false}}}this.array=void 0;return{value:void 0,done:true}}});de(z.prototype);var Ge=function orderKeys(e,t){var r=String(Y.ToInteger(e))===e;var n=String(Y.ToInteger(t))===t;if(r&&n){return t-e}else if(r&&!n){return-1}else if(!r&&n){return 1}else{return e.localeCompare(t)}};var Be=function getAllKeys(e){var t=[];var r=[];for(var n in e){P(D(e,n)?t:r,n)}E(t,Ge);E(r,Ge);return I(t,r)};var He=function(e,t){h(this,{object:e,array:Be(e),kind:t})};h(He.prototype,{next:function next(){var e;var t=this.array;if(!(this instanceof He)){throw new TypeError(\"Not an ObjectIterator\")}while(t.length>0){e=x(t);if(!(e in this.object)){continue}if(this.kind===\"key\"){return We(e)}else if(this.kind===\"value\"){return We(this.object[e])}else{return We([e,this.object[e]])}}return We()}});de(He.prototype);var $e=Array.of===qe.of||function(){var e=function Foo(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&t.length===2}();if(!$e){K(Array,\"of\",qe.of)}var Ve={copyWithin:function copyWithin(e,t){var r=arguments[2];var n=Y.ToObject(this);var o=Y.ToLength(n.length);var i=Y.ToInteger(e);var a=Y.ToInteger(t);var u=i<0?N(o+i,0):A(i,o);var s=a<0?N(o+a,0):A(a,o);r=typeof r===\"undefined\"?o:Y.ToInteger(r);var f=r<0?N(o+r,0):A(r,o);var c=A(f-s,o-u);var l=1;if(s<u&&u<s+c){l=-1;s+=c-1;u+=c-1}while(c>0){if(D(n,s)){n[u]=n[s]}else{delete n[s]}s+=l;u+=l;c-=1}return n},fill:function fill(e){var t=arguments.length>1?arguments[1]:void 0;var r=arguments.length>2?arguments[2]:void 0;var n=Y.ToObject(this);var o=Y.ToLength(n.length);t=Y.ToInteger(typeof t===\"undefined\"?0:t);r=Y.ToInteger(typeof r===\"undefined\"?o:r);var i=t<0?N(o+t,0):A(t,o);var a=r<0?o+r:r;for(var u=i;u<o&&u<a;++u){n[u]=e}return n},find:function find(e){var r=Y.ToObject(this);var n=Y.ToLength(r.length);if(!Y.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=Y.ToObject(this);var n=Y.ToLength(r.length);if(!Y.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 z(this,\"key\")},values:function values(){return new z(this,\"value\")},entries:function entries(){return new z(this,\"entry\")}};if(Array.prototype.keys&&!Y.IsCallable([1].keys().next)){delete Array.prototype.keys}if(Array.prototype.entries&&!Y.IsCallable([1].entries().next)){delete Array.prototype.entries}if(Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[X]){h(Array.prototype,{values:Array.prototype[X]});if(J.symbol(q.unscopables)){Array.prototype[q.unscopables].values=true}}if(f&&Array.prototype.values&&Array.prototype.values.name!==\"values\"){var Je=Array.prototype.values;K(Array.prototype,\"values\",function values(){return Y.Call(Je,this,arguments)});y(Array.prototype,X,Array.prototype.values,true)}h(Array.prototype,Ve);de(Array.prototype,function(){return this.values()});if(Object.getPrototypeOf){de(Object.getPrototypeOf([].values()))}var Ke=function(){return i(function(){return Array.from({length:-1}).length===0})}();var Ue=function(){var e=Array.from([0].entries());return e.length===1&&r(e[0])&&e[0][0]===0&&e[0][1]===0}();if(!Ke||!Ue){K(Array,\"from\",qe.from)}var Xe=function(){return i(function(){return Array.from([0],undefined)})}();if(!Xe){var Ze=Array.from;K(Array,\"from\",function from(e){if(arguments.length>0&&typeof arguments[1]!==\"undefined\"){return Y.Call(Ze,this,arguments)}else{return t(Ze,this,e)}})}var Qe=-(Math.pow(2,32)-1);var Ye=function(e,r){var n={length:Qe};n[r?(n.length>>>0)-1:0]=true;return i(function(){t(e,n,function(){throw new RangeError(\"should not reach here\")},[]);return true})};if(!Ye(Array.prototype.forEach)){var et=Array.prototype.forEach;K(Array.prototype,\"forEach\",function forEach(e){return Y.Call(et,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.map)){var tt=Array.prototype.map;K(Array.prototype,\"map\",function map(e){return Y.Call(tt,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.filter)){var rt=Array.prototype.filter;K(Array.prototype,\"filter\",function filter(e){return Y.Call(rt,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.some)){var nt=Array.prototype.some;K(Array.prototype,\"some\",function some(e){return Y.Call(nt,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.every)){var ot=Array.prototype.every;K(Array.prototype,\"every\",function every(e){return Y.Call(ot,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.reduce)){var it=Array.prototype.reduce;K(Array.prototype,\"reduce\",function reduce(e){return Y.Call(it,this.length>=0?this:[],arguments)},true)}if(!Ye(Array.prototype.reduceRight,true)){var at=Array.prototype.reduceRight;K(Array.prototype,\"reduceRight\",function reduceRight(e){return Y.Call(at,this.length>=0?this:[],arguments)},true)}var ut=Number(\"0o10\")!==8;var st=Number(\"0b10\")!==2;var ft=v(_e,function(e){return Number(e+0+e)===0});if(ut||st||ft){var ct=Number;var lt=/^0b[01]+$/i;var pt=/^0o[0-7]+$/i;var vt=lt.test.bind(lt);var yt=pt.test.bind(pt);var ht=function(e){var t;if(typeof e.valueOf===\"function\"){t=e.valueOf();if(J.primitive(t)){return t}}if(typeof e.toString===\"function\"){t=e.toString();if(J.primitive(t)){return t}}throw new TypeError(\"No default value\")};var gt=Fe.test.bind(Fe);var bt=De.test.bind(De);var dt=function(){var e=function Number(t){var r;if(arguments.length>0){r=J.primitive(t)?t:ht(t,\"number\")}else{r=0}if(typeof r===\"string\"){r=Y.Call(ke,r);if(vt(r)){r=parseInt(M(r,2),2)}else if(yt(r)){r=parseInt(M(r,2),8)}else if(gt(r)||bt(r)){r=NaN}}var n=this;var o=i(function(){ct.prototype.valueOf.call(n);return true});if(n instanceof e&&!o){return new ct(r)}return ct(r)};return e}();he(ct,dt,{});Number=dt;d.redefine(j,\"Number\",dt)}var mt=Math.pow(2,53)-1;h(Number,{MAX_SAFE_INTEGER:mt,MIN_SAFE_INTEGER:-mt,EPSILON:2.220446049250313e-16,parseInt:j.parseInt,parseFloat:j.parseFloat,isFinite:B,isInteger:function isInteger(e){return B(e)&&Y.ToInteger(e)===e},isSafeInteger:function isSafeInteger(e){return Number.isInteger(e)&&k(e)<=Number.MAX_SAFE_INTEGER},isNaN:G});y(Number,\"parseInt\",j.parseInt,Number.parseInt!==j.parseInt);if(![,1].find(function(e,t){return t===0})){K(Array.prototype,\"find\",Ve.find)}if([,1].findIndex(function(e,t){return t===0})!==0){K(Array.prototype,\"findIndex\",Ve.findIndex)}var Ot=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable);var wt=function ensureEnumerable(e,t){if(s&&Ot(e,t)){Object.defineProperty(e,t,{enumerable:false})}};var jt=function sliceArgs(){var e=Number(this);var t=arguments.length;var r=t-e;var n=new Array(r<0?0:r);for(var o=e;o<t;++o){n[o-e]=arguments[o]}return n};var St=function assignTo(e){return function assignToSource(t,r){t[r]=e[r];return t}};var Tt=function(e,t){var r=Object.keys(Object(t));var n;if(Y.IsCallable(Object.getOwnPropertySymbols)){n=p(Object.getOwnPropertySymbols(Object(t)),Ot(t))}return l(I(r,n||[]),St(t),e)};var It={assign:function(e,t){var r=Y.ToObject(e,\"Cannot convert undefined or null to object\");return l(Y.Call(jt,1,arguments),Tt,r)},is:function is(e,t){return Y.SameValue(e,t)}};var Et=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,\"xy\")}catch(t){return e[1]===\"y\"}}();if(Et){K(Object,\"assign\",It.assign)}h(Object,It);if(s){var Mt={setPrototypeOf:function(e,r){var n;var o=function(e,t){if(!Y.TypeIsObject(e)){throw new TypeError(\"cannot set prototype on a non-object\")}if(!(t===null||Y.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__\")};h(Object,Mt)}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,r=Object.setPrototypeOf;Object.getPrototypeOf=function(r){var n=t(r);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 Pt=!o(function(){Object.keys(\"foo\")});if(!Pt){var Ct=Object.keys;K(Object,\"keys\",function keys(e){return Ct(Y.ToObject(e))})}if(Object.getOwnPropertyNames){var xt=!o(function(){Object.getOwnPropertyNames(\"foo\")});if(!xt){var Nt=typeof window===\"object\"?Object.getOwnPropertyNames(window):[];var At=Object.getOwnPropertyNames;K(Object,\"getOwnPropertyNames\",function getOwnPropertyNames(e){var t=Y.ToObject(e);if(g(t)===\"[object Window]\"){try{return At(t)}catch(r){return I([],Nt)}}return At(t)})}}if(Object.getOwnPropertyDescriptor){var Rt=!o(function(){Object.getOwnPropertyDescriptor(\"foo\",\"bar\")});if(!Rt){var kt=Object.getOwnPropertyDescriptor;K(Object,\"getOwnPropertyDescriptor\",function getOwnPropertyDescriptor(e,t){return kt(Y.ToObject(e),t)})}}if(Object.seal){var _t=!o(function(){Object.seal(\"foo\")});if(!_t){var Ft=Object.seal;K(Object,\"seal\",function seal(e){if(!J.object(e)){return e}return Ft(e)})}}if(Object.isSealed){var Dt=!o(function(){Object.isSealed(\"foo\")});if(!Dt){var zt=Object.isSealed;K(Object,\"isSealed\",function isSealed(e){if(!J.object(e)){return true}return zt(e)})}}if(Object.freeze){var Lt=!o(function(){Object.freeze(\"foo\")});if(!Lt){var qt=Object.freeze;K(Object,\"freeze\",function freeze(e){if(!J.object(e)){return e}return qt(e)})}}if(Object.isFrozen){var Wt=!o(function(){Object.isFrozen(\"foo\")});if(!Wt){var Gt=Object.isFrozen;K(Object,\"isFrozen\",function isFrozen(e){if(!J.object(e)){return true}return Gt(e)})}}if(Object.preventExtensions){var Bt=!o(function(){Object.preventExtensions(\"foo\")});if(!Bt){var Ht=Object.preventExtensions;K(Object,\"preventExtensions\",function preventExtensions(e){if(!J.object(e)){return e}return Ht(e)})}}if(Object.isExtensible){var $t=!o(function(){Object.isExtensible(\"foo\")});if(!$t){var Vt=Object.isExtensible;K(Object,\"isExtensible\",function isExtensible(e){if(!J.object(e)){return false}return Vt(e)})}}if(Object.getPrototypeOf){var Jt=!o(function(){Object.getPrototypeOf(\"foo\")});if(!Jt){var Kt=Object.getPrototypeOf;K(Object,\"getPrototypeOf\",function getPrototypeOf(e){return Kt(Y.ToObject(e))})}}var Ut=s&&function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,\"flags\");return e&&Y.IsCallable(e.get)}();if(s&&!Ut){var Xt=function flags(){if(!Y.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};d.getter(RegExp.prototype,\"flags\",Xt)}var Zt=s&&i(function(){return String(new RegExp(/a/g,\"i\"))===\"/a/i\"});var Qt=U&&s&&function(){var e=/./;e[q.match]=false;return RegExp(e)===e}();if(s&&(!Zt||Qt)){var Yt=Object.getOwnPropertyDescriptor(RegExp.prototype,\"flags\").get;var er=Object.getOwnPropertyDescriptor(RegExp.prototype,\"source\")||{};var tr=function(){return this.source};var rr=Y.IsCallable(er.get)?er.get:tr;var nr=RegExp;var or=function(){return function RegExp(e,t){var r=Y.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(J.regex(e)){o=Y.Call(rr,e);i=typeof t===\"undefined\"?Y.Call(Yt,e):t;return new RegExp(o,i)}else if(r){o=e.source;i=typeof t===\"undefined\"?e.flags:t}return new nr(e,t)}}();he(nr,or,{$input:true});RegExp=or;d.redefine(j,\"RegExp\",or)}if(s){var ir={input:\"$_\",lastMatch:\"$&\",lastParen:\"$+\",leftContext:\"$`\",rightContext:\"$'\"};c(Object.keys(ir),function(e){if(e in RegExp&&!(ir[e]in RegExp)){d.getter(RegExp,ir[e],function get(){return RegExp[e]})}})}be(RegExp);var ar=1/Number.EPSILON;var ur=function roundTiesToEven(e){return e+ar-ar};var sr=Math.pow(2,-23);var fr=Math.pow(2,127)*(2-sr);var cr=Math.pow(2,-126);var lr=Number.prototype.clz;delete Number.prototype.clz;var pr={acosh:function acosh(e){var t=Number(e);if(Number.isNaN(t)||e<1){return NaN}if(t===1){return 0}if(t===Infinity){return t}return _(t/Math.E+F(t+1)*F(t-1)/Math.E)+1},asinh:function asinh(e){var t=Number(e);if(t===0||!S(t)){return t}return t<0?-Math.asinh(-t):_(t+F(t*t+1))},atanh:function atanh(e){var t=Number(e);if(Number.isNaN(t)||t<-1||t>1){return NaN}if(t===-1){return-Infinity}if(t===1){return Infinity}if(t===0){return t}return.5*_((1+t)/(1-t))},cbrt:function cbrt(e){var t=Number(e);if(t===0){return t}var r=t<0,n;if(r){t=-t}if(t===Infinity){n=Infinity}else{n=Math.exp(_(t)/3);n=(t/(n*n)+2*n)/3}return r?-n:n},clz32:function clz32(e){var t=Number(e);var r=Y.ToUint32(t);if(r===0){return 32}return lr?Y.Call(lr,r):31-R(_(r+.5)*Math.LOG2E)},cosh:function cosh(e){var t=Number(e);if(t===0){return 1}if(Number.isNaN(t)){return NaN}if(!S(t)){return Infinity}if(t<0){t=-t}if(t>21){return Math.exp(t)/2}return(Math.exp(t)+Math.exp(-t))/2},expm1:function expm1(e){var t=Number(e);if(t===-Infinity){return-1}if(!S(t)||t===0){return t}if(k(t)>.5){return Math.exp(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=k(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*F(r)},log2:function log2(e){return _(e)*Math.LOG2E},log10:function log10(e){return _(e)*Math.LOG10E},log1p:function log1p(e){var t=Number(e);if(t<-1||Number.isNaN(t)){return NaN}if(t===0||t===Infinity){return t}if(t===-1){return-Infinity}return 1+t-1===0?t:t*(_(1+t)/(1+t-1))},sign:function sign(e){var t=Number(e);if(t===0){return t}if(Number.isNaN(t)){return t}return t<0?-1:1},sinh:function sinh(e){var t=Number(e);if(!S(t)||t===0){return t}if(k(t)<1){return(Math.expm1(t)-Math.expm1(-t))/2}return(Math.exp(t-1)-Math.exp(-t-1))*Math.E/2},tanh:function tanh(e){var t=Number(e);if(Number.isNaN(t)||t===0){return t}if(t===Infinity){return 1}if(t===-Infinity){return-1}var r=Math.expm1(t);var n=Math.expm1(-t);if(r===Infinity){return 1}if(n===Infinity){return-1}return(r-n)/(Math.exp(t)+Math.exp(-t))},trunc:function trunc(e){var t=Number(e);return t<0?-R(-t):R(t)},imul:function imul(e,t){var r=Y.ToUint32(e);var n=Y.ToUint32(t);var o=r>>>16&65535;var i=r&65535;var a=n>>>16&65535;var u=n&65535;return i*u+(o*u+i*a<<16>>>0)|0},fround:function fround(e){var t=Number(e);if(t===0||t===Infinity||t===-Infinity||G(t)){return t}var r=Math.sign(t);var n=k(t);if(n<cr){return r*ur(n/cr/sr)*cr*sr}var o=(1+sr/Number.EPSILON)*n;var i=o-(o-n);if(i>fr||G(i)){return r*Infinity}return r*i}};h(Math,pr);y(Math,\"log1p\",pr.log1p,Math.log1p(-1e-17)!==-1e-17);y(Math,\"asinh\",pr.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7));y(Math,\"tanh\",pr.tanh,Math.tanh(-2e-17)!==-2e-17);y(Math,\"acosh\",pr.acosh,Math.acosh(Number.MAX_VALUE)===Infinity);y(Math,\"cbrt\",pr.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8);y(Math,\"sinh\",pr.sinh,Math.sinh(-2e-17)!==-2e-17);var vr=Math.expm1(10);y(Math,\"expm1\",pr.expm1,vr>22025.465794806718||vr<22025.465794806718);var yr=Math.round;var hr=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1;var gr=ar+1;var br=2*ar-1;var dr=[gr,br].every(function(e){return Math.round(e)===e});y(Math,\"round\",function round(e){var t=R(e);var r=t===-1?-0:t+1;return e-t<.5?t:r},!hr||!dr);d.preserveToString(Math.round,yr);var mr=Math.imul;if(Math.imul(4294967295,5)!==-5){Math.imul=pr.imul;d.preserveToString(Math.imul,mr)}if(Math.imul.length!==2){K(Math,\"imul\",function imul(e,t){return Y.Call(mr,Math,arguments)})}var Or=function(){var e=j.setTimeout;if(typeof e!==\"function\"&&typeof e!==\"object\"){return}Y.IsPromise=function(e){if(!Y.TypeIsObject(e)){return false}if(typeof e._promise===\"undefined\"){return false}return true};var r=function(e){if(!Y.IsConstructor(e)){throw new TypeError(\"Bad promise constructor\")}var t=this;var r=function(e,r){if(t.resolve!==void 0||t.reject!==void 0){\nthrow new TypeError(\"Bad Promise implementation!\")}t.resolve=e;t.reject=r};t.promise=new e(r);if(!(Y.IsCallable(t.resolve)&&Y.IsCallable(t.reject))){throw new TypeError(\"Bad promise constructor\")}};var n;if(typeof window!==\"undefined\"&&Y.IsCallable(window.postMessage)){n=function(){var e=[];var t=\"zero-timeout-message\";var r=function(r){P(e,r);window.postMessage(t,\"*\")};var n=function(r){if(r.source===window&&r.data===t){r.stopPropagation();if(e.length===0){return}var n=x(e);n()}};window.addEventListener(\"message\",n,true);return r}}var o=function(){var e=j.Promise;return e&&e.resolve&&function(t){return e.resolve().then(t)}};var i=Y.IsCallable(j.setImmediate)?j.setImmediate.bind(j):typeof process===\"object\"&&process.nextTick?process.nextTick:o()||(Y.IsCallable(n)?n():function(t){e(t,0)});var a=1;var u=2;var s=3;var f=4;var l=5;var p=function(e,t){var r=e.capabilities;var n=e.handler;var o,i=false,s;if(n===a){o=t}else if(n===u){o=t;i=true}else{try{o=n(t)}catch(f){o=f;i=true}}s=i?r.reject:r.resolve;s(o)};var v=function(e,t){c(e,function(e){i(function(){p(e,t)})})};var y=function(e,t){var r=e._promise;var n=r.fulfillReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=f;v(n,t)};var g=function(e,t){var r=e._promise;var n=r.rejectReactions;r.result=t;r.fulfillReactions=void 0;r.rejectReactions=void 0;r.state=l;v(n,t)};var b=function(e){var t=false;var r=function(r){var n;if(t){return}t=true;if(r===e){return g(e,new TypeError(\"Self resolution\"))}if(!Y.TypeIsObject(r)){return y(e,r)}try{n=r.then}catch(o){return g(e,o)}if(!Y.IsCallable(n)){return y(e,r)}i(function(){d(e,r,n)})};var n=function(r){if(t){return}t=true;return g(e,r)};return{resolve:r,reject:n}};var d=function(e,r,n){var o=b(e);var i=o.resolve;var a=o.reject;try{t(n,r,i,a)}catch(u){a(u)}};var m;var O=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(!Y.IsCallable(t)){throw new TypeError(\"not a valid resolver\")}var r=we(this,e,m,{_promise:{result:void 0,state:s,fulfillReactions:[],rejectReactions:[]}});var n=b(r);var o=n.reject;try{t(n.resolve,o)}catch(i){o(i)}return r};return e}();m=O.prototype;var w=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 S=function(e,t,r){var n=e.iterator;var o=[],i={count:1},a,u;var s=0;while(true){try{a=Y.IteratorStep(n);if(a===false){e.done=true;break}u=a.value}catch(f){e.done=true;throw f}o[s]=void 0;var c=t.resolve(u);var l=w(s,o,r,i);i.count+=1;c.then(l,r.reject);s+=1}if(--i.count===0){var p=r.resolve;p(o)}return r.promise};var T=function(e,t,r){var n=e.iterator,o,i,a;while(true){try{o=Y.IteratorStep(n);if(o===false){e.done=true;break}i=o.value}catch(u){e.done=true;throw u}a=t.resolve(i);a.then(r.resolve,r.reject)}return r.promise};h(O,{all:function all(e){var t=this;if(!Y.TypeIsObject(t)){throw new TypeError(\"Promise is not object\")}var n=new r(t);var o,i;try{o=Y.GetIterator(e);i={iterator:o,done:false};return S(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{Y.IteratorClose(o,true)}catch(s){u=s}}var f=n.reject;f(u);return n.promise}},race:function race(e){var t=this;if(!Y.TypeIsObject(t)){throw new TypeError(\"Promise is not object\")}var n=new r(t);var o,i;try{o=Y.GetIterator(e);i={iterator:o,done:false};return T(i,t,n)}catch(a){var u=a;if(i&&!i.done){try{Y.IteratorClose(o,true)}catch(s){u=s}}var f=n.reject;f(u);return n.promise}},reject:function reject(e){var t=this;if(!Y.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(!Y.TypeIsObject(t)){throw new TypeError(\"Bad promise constructor\")}if(Y.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}});h(m,{\"catch\":function(e){return this.then(void 0,e)},then:function then(e,t){var n=this;if(!Y.IsPromise(n)){throw new TypeError(\"not a promise\")}var o=Y.SpeciesConstructor(n,O);var c=new r(o);var v={capabilities:c,handler:Y.IsCallable(e)?e:a};var y={capabilities:c,handler:Y.IsCallable(t)?t:u};var h=n._promise;var g;if(h.state===s){P(h.fulfillReactions,v);P(h.rejectReactions,y)}else if(h.state===f){g=h.result;i(function(){p(v,g)})}else if(h.state===l){g=h.result;i(function(){p(y,g)})}else{throw new TypeError(\"unexpected Promise state\")}return c.promise}});return O}();if(j.Promise){delete j.Promise.accept;delete j.Promise.defer;delete j.Promise.prototype.chain}if(typeof Or===\"function\"){h(j,{Promise:Or});var wr=O(j.Promise,function(e){return e.resolve(42).then(function(){})instanceof e});var jr=!o(function(){j.Promise.reject(42).then(null,5).then(null,L)});var Sr=o(function(){j.Promise.call(3,L)});var Tr=function(e){var t=e.resolve(5);t.constructor={};var r=e.resolve(t);return t===r}(j.Promise);var Ir=s&&function(){var e=0;var t=Object.defineProperty({},\"then\",{get:function(){e+=1}});Promise.resolve(t);return e===1}();var Er=function BadResolverPromise(e){var t=new Promise(e);e(3,function(){});this.then=t.then;this.constructor=BadResolverPromise};Er.prototype=Promise.prototype;Er.all=Promise.all;var Mr=i(function(){return!!Er.all([1,2])});if(!wr||!jr||!Sr||Tr||!Ir||Mr){Promise=Or;K(j,\"Promise\",Or)}wt(Promise,\"all\");wt(Promise,\"race\");wt(Promise,\"resolve\");wt(Promise,\"reject\");be(Promise)}var Pr=function(e){var t=Object.keys(l(e,function(e,t){e[t]=true;return e},{}));return e.join(\":\")===t.join(\":\")};var Cr=Pr([\"z\",\"a\",\"bb\"]);var xr=Pr([\"z\",1,\"a\",\"3\",2]);if(s){var Nr=function fastkey(e){if(!Cr){return null}var t=typeof e;if(t===\"undefined\"||e===null){return\"^\"+Y.ToString(e)}else if(t===\"string\"){return\"$\"+e}else if(t===\"number\"){if(!xr){return\"n\"+e}return e}else if(t===\"boolean\"){return\"b\"+e}return null};var Ar=function emptyObject(){return Object.create?Object.create(null):{}};var Rr=function addIterableToMap(e,n,o){if(r(o)||J.string(o)){c(o,function(e){if(!Y.TypeIsObject(e)){throw new TypeError(\"Iterator value \"+e+\" is not an entry object\")}n.set(e[0],e[1])})}else if(o instanceof e){t(e.prototype.forEach,o,function(e,t){n.set(t,e)})}else{var i,a;if(o!==null&&typeof o!==\"undefined\"){a=n.set;if(!Y.IsCallable(a)){throw new TypeError(\"bad map\")}i=Y.GetIterator(o)}if(typeof i!==\"undefined\"){while(true){var u=Y.IteratorStep(i);if(u===false){break}var s=u.value;try{if(!Y.TypeIsObject(s)){throw new TypeError(\"Iterator value \"+s+\" is not an entry object\")}t(a,n,s[0],s[1])}catch(f){Y.IteratorClose(i,true);throw f}}}}};var kr=function addIterableToSet(e,n,o){if(r(o)||J.string(o)){c(o,function(e){n.add(e)})}else if(o instanceof e){t(e.prototype.forEach,o,function(e){n.add(e)})}else{var i,a;if(o!==null&&typeof o!==\"undefined\"){a=n.add;if(!Y.IsCallable(a)){throw new TypeError(\"bad set\")}i=Y.GetIterator(o)}if(typeof i!==\"undefined\"){while(true){var u=Y.IteratorStep(i);if(u===false){break}var s=u.value;try{t(a,n,s)}catch(f){Y.IteratorClose(i,true);throw f}}}}};var _r={Map:function(){var e={};var r=function MapEntry(e,t){this.key=e;this.value=t;this.next=null;this.prev=null};r.prototype.isRemoved=function isRemoved(){return this.key===e};var n=function isMap(e){return!!e._es6map};var o=function requireMapSlot(e,t){if(!Y.TypeIsObject(e)||!n(e)){throw new TypeError(\"Method Map.prototype.\"+t+\" called on incompatible receiver \"+Y.ToString(e))}};var i=function MapIterator(e,t){o(e,\"[[MapIterator]]\");this.head=e._head;this.i=this.head;this.kind=t};i.prototype={next:function next(){var e=this.i,t=this.kind,r=this.head,n;if(typeof this.i===\"undefined\"){return{value:void 0,done:true}}while(e.isRemoved()&&e!==r){e=e.prev}while(e.next!==r){e=e.next;if(!e.isRemoved()){if(t===\"key\"){n=e.key}else if(t===\"value\"){n=e.value}else{n=[e.key,e.value]}this.i=e;return{value:n,done:false}}}this.i=void 0;return{value:void 0,done:true}}};de(i.prototype);var a;var u=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires \"new\"')}if(this&&this._es6map){throw new TypeError(\"Bad construction\")}var e=we(this,Map,a,{_es6map:true,_head:null,_storage:Ar(),_size:0});var t=new r(null,null);t.next=t.prev=t;e._head=t;if(arguments.length>0){Rr(Map,e,arguments[0])}return e};a=u.prototype;d.getter(a,\"size\",function(){if(typeof this._size===\"undefined\"){throw new TypeError(\"size method called on incompatible Map\")}return this._size});h(a,{get:function get(e){o(this,\"get\");var t=Nr(e);if(t!==null){var r=this._storage[t];if(r){return r.value}else{return}}var n=this._head,i=n;while((i=i.next)!==n){if(Y.SameValueZero(i.key,e)){return i.value}}},has:function has(e){o(this,\"has\");var t=Nr(e);if(t!==null){return typeof this._storage[t]!==\"undefined\"}var r=this._head,n=r;while((n=n.next)!==r){if(Y.SameValueZero(n.key,e)){return true}}return false},set:function set(e,t){o(this,\"set\");var n=this._head,i=n,a;var u=Nr(e);if(u!==null){if(typeof this._storage[u]!==\"undefined\"){this._storage[u].value=t;return this}else{a=this._storage[u]=new r(e,t);i=n.prev}}while((i=i.next)!==n){if(Y.SameValueZero(i.key,e)){i.value=t;return this}}a=a||new r(e,t);if(Y.SameValue(-0,e)){a.key=+0}a.next=this._head;a.prev=this._head.prev;a.prev.next=a;a.next.prev=a;this._size+=1;return this},\"delete\":function(t){o(this,\"delete\");var r=this._head,n=r;var i=Nr(t);if(i!==null){if(typeof this._storage[i]===\"undefined\"){return false}n=this._storage[i].prev;delete this._storage[i]}while((n=n.next)!==r){if(Y.SameValueZero(n.key,t)){n.key=n.value=e;n.prev.next=n.next;n.next.prev=n.prev;this._size-=1;return true}}return false},clear:function clear(){o(this,\"clear\");this._size=0;this._storage=Ar();var t=this._head,r=t,n=r.next;while((r=n)!==t){r.key=r.value=e;n=r.next;r.next=r.prev=t}t.next=t.prev=t},keys:function keys(){o(this,\"keys\");return new i(this,\"key\")},values:function values(){o(this,\"values\");return new i(this,\"value\")},entries:function entries(){o(this,\"entries\");return new i(this,\"key+value\")},forEach:function forEach(e){o(this,\"forEach\");var r=arguments.length>1?arguments[1]:null;var n=this.entries();for(var i=n.next();!i.done;i=n.next()){if(r){t(e,r,i.value[1],i.value[0],this)}else{e(i.value[1],i.value[0],this)}}}});de(a,a.entries);return u}(),Set:function(){var e=function isSet(e){return e._es6set&&typeof e._storage!==\"undefined\"};var r=function requireSetSlot(t,r){if(!Y.TypeIsObject(t)||!e(t)){throw new TypeError(\"Set.prototype.\"+r+\" called on incompatible receiver \"+Y.ToString(t))}};var n;var o=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires \"new\"')}if(this&&this._es6set){throw new TypeError(\"Bad construction\")}var e=we(this,Set,n,{_es6set:true,\"[[SetData]]\":null,_storage:Ar()});if(!e._es6set){throw new TypeError(\"bad set\")}if(arguments.length>0){kr(Set,e,arguments[0])}return e};n=o.prototype;var i=function ensureMap(e){if(!e[\"[[SetData]]\"]){var t=e[\"[[SetData]]\"]=new _r.Map;c(Object.keys(e._storage),function(e){var r=e;if(r===\"^null\"){r=null}else if(r===\"^undefined\"){r=void 0}else{var n=r.charAt(0);if(n===\"$\"){r=M(r,1)}else if(n===\"n\"){r=+M(r,1)}else if(n===\"b\"){r=r===\"btrue\"}else{r=+r}}t.set(r,r)});e._storage=null}};d.getter(o.prototype,\"size\",function(){r(this,\"size\");i(this);return this[\"[[SetData]]\"].size});h(o.prototype,{has:function has(e){r(this,\"has\");var t;if(this._storage&&(t=Nr(e))!==null){return!!this._storage[t]}i(this);return this[\"[[SetData]]\"].has(e)},add:function add(e){r(this,\"add\");var t;if(this._storage&&(t=Nr(e))!==null){this._storage[t]=true;return this}i(this);this[\"[[SetData]]\"].set(e,e);return this},\"delete\":function(e){r(this,\"delete\");var t;if(this._storage&&(t=Nr(e))!==null){var n=D(this._storage,t);return delete this._storage[t]&&n}i(this);return this[\"[[SetData]]\"][\"delete\"](e)},clear:function clear(){r(this,\"clear\");if(this._storage){this._storage=Ar()}else{this[\"[[SetData]]\"].clear()}},values:function values(){r(this,\"values\");i(this);return this[\"[[SetData]]\"].values()},entries:function entries(){r(this,\"entries\");i(this);return this[\"[[SetData]]\"].entries()},forEach:function forEach(e){r(this,\"forEach\");var n=arguments.length>1?arguments[1]:null;var o=this;i(o);this[\"[[SetData]]\"].forEach(function(r,i){if(n){t(e,n,i,i,o)}else{e(i,i,o)}})}});y(o.prototype,\"keys\",o.prototype.values,true);de(o.prototype,o.prototype.values);return o}()};if(j.Map||j.Set){var Fr=i(function(){return new Map([[1,2]]).get(1)===2});if(!Fr){var Dr=j.Map;j.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires \"new\"')}var e=new Dr;if(arguments.length>0){Rr(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,j.Map.prototype);return e};j.Map.prototype=m(Dr.prototype);y(j.Map.prototype,\"constructor\",j.Map,true);d.preserveToString(j.Map,Dr)}var zr=new Map;var Lr=function(){var e=new Map([[1,0],[2,0],[3,0],[4,0]]);e.set(-0,e);return e.get(0)===e&&e.get(-0)===e&&e.has(0)&&e.has(-0)}();var qr=zr.set(1,2)===zr;if(!Lr||!qr){var Wr=Map.prototype.set;K(Map.prototype,\"set\",function set(e,r){t(Wr,this,e===0?0:e,r);return this})}if(!Lr){var Gr=Map.prototype.get;var Br=Map.prototype.has;h(Map.prototype,{get:function get(e){return t(Gr,this,e===0?0:e)},has:function has(e){return t(Br,this,e===0?0:e)}},true);d.preserveToString(Map.prototype.get,Gr);d.preserveToString(Map.prototype.has,Br)}var Hr=new Set;var $r=function(e){e[\"delete\"](0);e.add(-0);return!e.has(0)}(Hr);var Vr=Hr.add(1)===Hr;if(!$r||!Vr){var Jr=Set.prototype.add;Set.prototype.add=function add(e){t(Jr,this,e===0?0:e);return this};d.preserveToString(Set.prototype.add,Jr)}if(!$r){var Kr=Set.prototype.has;Set.prototype.has=function has(e){return t(Kr,this,e===0?0:e)};d.preserveToString(Set.prototype.has,Kr);var Ur=Set.prototype[\"delete\"];Set.prototype[\"delete\"]=function SetDelete(e){return t(Ur,this,e===0?0:e)};d.preserveToString(Set.prototype[\"delete\"],Ur)}var Xr=O(j.Map,function(e){var t=new e([]);t.set(42,42);return t instanceof e});var Zr=Object.setPrototypeOf&&!Xr;var Qr=function(){try{return!(j.Map()instanceof j.Map)}catch(e){return e instanceof TypeError}}();if(j.Map.length!==0||Zr||!Qr){var Yr=j.Map;j.Map=function Map(){if(!(this instanceof Map)){throw new TypeError('Constructor Map requires \"new\"')}var e=new Yr;if(arguments.length>0){Rr(Map,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Map.prototype);return e};j.Map.prototype=Yr.prototype;y(j.Map.prototype,\"constructor\",j.Map,true);d.preserveToString(j.Map,Yr)}var en=O(j.Set,function(e){var t=new e([]);t.add(42,42);return t instanceof e});var tn=Object.setPrototypeOf&&!en;var rn=function(){try{return!(j.Set()instanceof j.Set)}catch(e){return e instanceof TypeError}}();if(j.Set.length!==0||tn||!rn){var nn=j.Set;j.Set=function Set(){if(!(this instanceof Set)){throw new TypeError('Constructor Set requires \"new\"')}var e=new nn;if(arguments.length>0){kr(Set,e,arguments[0])}delete e.constructor;Object.setPrototypeOf(e,Set.prototype);return e};j.Set.prototype=nn.prototype;y(j.Set.prototype,\"constructor\",j.Set,true);d.preserveToString(j.Set,nn)}var on=!i(function(){return(new Map).keys().next().done});if(typeof j.Map.prototype.clear!==\"function\"||(new j.Set).size!==0||(new j.Map).size!==0||typeof j.Map.prototype.keys!==\"function\"||typeof j.Set.prototype.keys!==\"function\"||typeof j.Map.prototype.forEach!==\"function\"||typeof j.Set.prototype.forEach!==\"function\"||a(j.Map)||a(j.Set)||typeof(new j.Map).keys().next!==\"function\"||on||!Xr){h(j,{Map:_r.Map,Set:_r.Set},true)}if(j.Set.prototype.keys!==j.Set.prototype.values){y(j.Set.prototype,\"keys\",j.Set.prototype.values,true)}de(Object.getPrototypeOf((new j.Map).keys()));de(Object.getPrototypeOf((new j.Set).keys()));if(f&&j.Set.prototype.has.name!==\"has\"){var an=j.Set.prototype.has;K(j.Set.prototype,\"has\",function has(e){return t(an,this,e)})}}h(j,_r);be(j.Map);be(j.Set)}var un=function throwUnlessTargetIsObject(e){if(!Y.TypeIsObject(e)){throw new TypeError(\"target must be an object\")}};var sn={apply:function apply(){return Y.Call(Y.Call,null,arguments)},construct:function construct(e,t){if(!Y.IsConstructor(e)){throw new TypeError(\"First argument must be a constructor.\")}var r=arguments.length<3?e:arguments[2];if(!Y.IsConstructor(r)){throw new TypeError(\"new.target must be a constructor.\")}return Y.Construct(e,t,r,\"internal\")},deleteProperty:function deleteProperty(e,t){un(e);if(s){var r=Object.getOwnPropertyDescriptor(e,t);if(r&&!r.configurable){return false}}return delete e[t]},enumerate:function enumerate(e){un(e);return new He(e,\"key\")},has:function has(e,t){un(e);return t in e}};if(Object.getOwnPropertyNames){Object.assign(sn,{ownKeys:function ownKeys(e){un(e);var t=Object.getOwnPropertyNames(e);if(Y.IsCallable(Object.getOwnPropertySymbols)){C(t,Object.getOwnPropertySymbols(e))}return t}})}var fn=function ConvertExceptionToBoolean(e){return!o(e)};if(Object.preventExtensions){Object.assign(sn,{isExtensible:function isExtensible(e){un(e);return Object.isExtensible(e)},preventExtensions:function preventExtensions(e){un(e);return fn(function(){Object.preventExtensions(e)})}})}if(s){var cn=function get(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var o=Object.getPrototypeOf(e);if(o===null){return undefined}return cn(o,t,r)}if(\"value\"in n){return n.value}if(n.get){return Y.Call(n.get,r)}return undefined};var ln=function set(e,r,n,o){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var a=Object.getPrototypeOf(e);if(a!==null){return ln(a,r,n,o)}i={value:void 0,writable:true,enumerable:true,configurable:true}}if(\"value\"in i){if(!i.writable){return false}if(!Y.TypeIsObject(o)){return false}var u=Object.getOwnPropertyDescriptor(o,r);if(u){return Z.defineProperty(o,r,{value:n})}else{return Z.defineProperty(o,r,{value:n,writable:true,enumerable:true,configurable:true})}}if(i.set){t(i.set,o,n);return true}return false};Object.assign(sn,{defineProperty:function defineProperty(e,t,r){un(e);return fn(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){un(e);return Object.getOwnPropertyDescriptor(e,t)},get:function get(e,t){un(e);var r=arguments.length>2?arguments[2]:e;return cn(e,t,r)},set:function set(e,t,r){un(e);var n=arguments.length>3?arguments[3]:e;return ln(e,t,r,n)}})}if(Object.getPrototypeOf){var pn=Object.getPrototypeOf;sn.getPrototypeOf=function getPrototypeOf(e){un(e);return pn(e)}}if(Object.setPrototypeOf&&sn.getPrototypeOf){var vn=function(e,t){var r=t;while(r){if(e===r){return true}r=sn.getPrototypeOf(r)}return false};Object.assign(sn,{setPrototypeOf:function setPrototypeOf(e,t){un(e);if(t!==null&&!Y.TypeIsObject(t)){throw new TypeError(\"proto must be an object or null\")}if(t===Z.getPrototypeOf(e)){return true}if(Z.isExtensible&&!Z.isExtensible(e)){return false}if(vn(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}var yn=function(e,t){if(!Y.IsCallable(j.Reflect[e])){y(j.Reflect,e,t)}else{var r=i(function(){j.Reflect[e](1);j.Reflect[e](NaN);j.Reflect[e](true);return true});if(r){K(j.Reflect,e,t)}}};Object.keys(sn).forEach(function(e){yn(e,sn[e])});if(f&&j.Reflect.getPrototypeOf.name!==\"getPrototypeOf\"){var hn=j.Reflect.getPrototypeOf;K(j.Reflect,\"getPrototypeOf\",function getPrototypeOf(e){return t(hn,j.Reflect,e)})}if(j.Reflect.setPrototypeOf){if(i(function(){j.Reflect.setPrototypeOf(1,{});return true})){K(j.Reflect,\"setPrototypeOf\",sn.setPrototypeOf)}}if(j.Reflect.defineProperty){if(!i(function(){var e=!j.Reflect.defineProperty(1,\"test\",{value:1});var t=typeof Object.preventExtensions!==\"function\"||!j.Reflect.defineProperty(Object.preventExtensions({}),\"test\",{});return e&&t})){K(j.Reflect,\"defineProperty\",sn.defineProperty)}}if(j.Reflect.construct){if(!i(function(){var e=function F(){};return j.Reflect.construct(function(){},[],e)instanceof e})){K(j.Reflect,\"construct\",sn.construct)}}if(String(new Date(NaN))!==\"Invalid Date\"){var gn=Date.prototype.toString;var bn=function toString(){var e=+this;if(e!==e){return\"Invalid Date\"}return Y.Call(gn,this)};K(Date.prototype,\"toString\",bn)}var dn={anchor:function anchor(e){return Y.CreateHTML(this,\"a\",\"name\",e)},big:function big(){return Y.CreateHTML(this,\"big\",\"\",\"\")},blink:function blink(){return Y.CreateHTML(this,\"blink\",\"\",\"\")},bold:function bold(){return Y.CreateHTML(this,\"b\",\"\",\"\")},fixed:function fixed(){return Y.CreateHTML(this,\"tt\",\"\",\"\")},fontcolor:function fontcolor(e){return Y.CreateHTML(this,\"font\",\"color\",e)},fontsize:function fontsize(e){return Y.CreateHTML(this,\"font\",\"size\",e)},italics:function italics(){return Y.CreateHTML(this,\"i\",\"\",\"\")},link:function link(e){return Y.CreateHTML(this,\"a\",\"href\",e)},small:function small(){return Y.CreateHTML(this,\"small\",\"\",\"\")},strike:function strike(){return Y.CreateHTML(this,\"strike\",\"\",\"\")},sub:function sub(){return Y.CreateHTML(this,\"sub\",\"\",\"\")},sup:function sub(){return Y.CreateHTML(this,\"sup\",\"\",\"\")}};c(Object.keys(dn),function(e){var r=String.prototype[e];var n=false;if(Y.IsCallable(r)){var o=t(r,\"\",' \" ');var i=I([],o.match(/\"/g)).length;n=o!==o.toLowerCase()||i>2}else{n=true}if(n){K(String.prototype,e,dn[e])}});var mn=function(){if(!U){return false}var e=typeof JSON===\"object\"&&typeof JSON.stringify===\"function\"?JSON.stringify:null;if(!e){return false}if(typeof e(q())!==\"undefined\"){return true}if(e([q()])!==\"[null]\"){return true}var t={a:q()};t[q()]=true;if(e(t)!==\"{}\"){return true}return false}();var On=i(function(){if(!U){return true}return JSON.stringify(Object(q()))===\"{}\"&&JSON.stringify([Object(q())])===\"[{}]\"});if(mn||!On){var wn=JSON.stringify;K(JSON,\"stringify\",function stringify(e){if(typeof e===\"symbol\"){return}var n;if(arguments.length>1){n=arguments[1]}var o=[e];if(!r(n)){var i=Y.IsCallable(n)?n:null;var a=function(e,r){var o=n?t(n,this,e,r):r;if(typeof o!==\"symbol\"){if(J.symbol(o)){return St({})(o)}else{return o}}};o.push(a)}else{o.push(n)}if(arguments.length>2){o.push(arguments[2])}return wn.apply(this,o)})}return j});\n/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */\n!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error(\"jQuery requires a window with a document\");return b(a)}:b(a)}(\"undefined\"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m=\"2.1.4\",n=function(a,b){return new n.fn.init(a,b)},o=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,p=/^-ms-/,q=/-([\\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:\"\",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for(\"boolean\"==typeof g&&(j=g,g=arguments[h]||{},h++),\"object\"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:\"jQuery\"+(m+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return\"function\"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return\"object\"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,\"isPrototypeOf\")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+\"\":\"object\"==typeof a||\"function\"==typeof a?h[i.call(a)]||\"object\":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf(\"use strict\")?(b=l.createElement(\"script\"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,\"ms-\").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?\"\":(a+\"\").replace(o,\"\")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,\"string\"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return\"string\"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(a,b){h[\"[object \"+b+\"]\"]=b.toLowerCase()});function s(a){var b=\"length\"in a&&a.length,c=n.type(a);return\"function\"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:\"array\"===c||0===b||\"number\"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=\"sizzle\"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",L=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",M=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",N=M.replace(\"w\",\"w#\"),O=\"\\\\[\"+L+\"*(\"+M+\")(?:\"+L+\"*([*^$|!~]?=)\"+L+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+N+\"))|)\"+L+\"*\\\\]\",P=\":(\"+M+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+O+\")*)|.*)\\\\)|)\",Q=new RegExp(L+\"+\",\"g\"),R=new RegExp(\"^\"+L+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+L+\"+$\",\"g\"),S=new RegExp(\"^\"+L+\"*,\"+L+\"*\"),T=new RegExp(\"^\"+L+\"*([>+~]|\"+L+\")\"+L+\"*\"),U=new RegExp(\"=\"+L+\"*([^\\\\]'\\\"]*?)\"+L+\"*\\\\]\",\"g\"),V=new RegExp(P),W=new RegExp(\"^\"+N+\"$\"),X={ID:new RegExp(\"^#(\"+M+\")\"),CLASS:new RegExp(\"^\\\\.(\"+M+\")\"),TAG:new RegExp(\"^(\"+M.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+O),PSEUDO:new RegExp(\"^\"+P),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+L+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+L+\"*(?:([+-]|)\"+L+\"*(\\\\d+)|))\"+L+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+K+\")$\",\"i\"),needsContext:new RegExp(\"^\"+L+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+L+\"*((?:-\\\\d)?\\\\d*)\"+L+\"*\\\\)|)(?=[^-]|$)\",\"i\")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\\d$/i,$=/^[^{]+\\{\\s*\\[native \\w/,_=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,aa=/[+~]/,ba=/'|\\\\/g,ca=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+L+\"?|(\"+L+\")|.)\",\"ig\"),da=function(a,b,c){var d=\"0x\"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,\"string\"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&\"object\"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute(\"id\"))?s=r.replace(ba,\"\\\\$&\"):b.setAttribute(\"id\",s),s=\"[id='\"+s+\"'] \",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(\",\")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute(\"id\")}}}return i(a.replace(R,\"$1\"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+\" \")>d.cacheLength&&delete b[a.shift()],b[c+\" \"]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement(\"div\");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split(\"|\"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return\"input\"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return(\"input\"===c||\"button\"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&\"undefined\"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?\"HTML\"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener(\"unload\",ea,!1):e.attachEvent&&e.attachEvent(\"onunload\",ea)),p=!f(g),c.attributes=ja(function(a){return a.className=\"i\",!a.getAttribute(\"className\")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment(\"\")),!a.getElementsByTagName(\"*\").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(\"undefined\"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute(\"id\")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c=\"undefined\"!=typeof a.getAttributeNode&&a.getAttributeNode(\"id\");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return\"undefined\"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(\"*\"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML=\"<a id='\"+u+\"'></a><select id='\"+u+\"-\\f]' msallowcapture=''><option selected=''></option></select>\",a.querySelectorAll(\"[msallowcapture^='']\").length&&q.push(\"[*^$]=\"+L+\"*(?:''|\\\"\\\")\"),a.querySelectorAll(\"[selected]\").length||q.push(\"\\\\[\"+L+\"*(?:value|\"+K+\")\"),a.querySelectorAll(\"[id~=\"+u+\"-]\").length||q.push(\"~=\"),a.querySelectorAll(\":checked\").length||q.push(\":checked\"),a.querySelectorAll(\"a#\"+u+\"+*\").length||q.push(\".#.+[+~]\")}),ja(function(a){var b=g.createElement(\"input\");b.setAttribute(\"type\",\"hidden\"),a.appendChild(b).setAttribute(\"name\",\"D\"),a.querySelectorAll(\"[name=d]\").length&&q.push(\"name\"+L+\"*[*^$|!~]?=\"),a.querySelectorAll(\":enabled\").length||q.push(\":enabled\",\":disabled\"),a.querySelectorAll(\"*,:x\"),q.push(\",.*:\")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,\"div\"),s.call(a,\"[s!='']:x\"),r.push(\"!=\",P)}),q=q.length&&new RegExp(q.join(\"|\")),r=r.length&&new RegExp(r.join(\"|\")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,\"='$1']\"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error(\"Syntax error, unrecognized expression: \"+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c=\"\",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if(\"string\"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||\"\").replace(ca,da),\"~=\"===a[2]&&(a[3]=\" \"+a[3]+\" \"),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),\"nth\"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(\"even\"===a[3]||\"odd\"===a[3])),a[5]=+(a[7]+a[8]||\"odd\"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||\"\":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(\")\",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return\"*\"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+\" \"];return b||(b=new RegExp(\"(^|\"+L+\")\"+a+\"(\"+L+\"|$)\"))&&y(a,function(a){return b.test(\"string\"==typeof a.className&&a.className||\"undefined\"!=typeof a.getAttribute&&a.getAttribute(\"class\")||\"\")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?\"!=\"===b:b?(e+=\"\",\"=\"===b?e===c:\"!=\"===b?e!==c:\"^=\"===b?c&&0===e.indexOf(c):\"*=\"===b?c&&e.indexOf(c)>-1:\"$=\"===b?c&&e.slice(-c.length)===c:\"~=\"===b?(\" \"+e.replace(Q,\" \")+\" \").indexOf(c)>-1:\"|=\"===b?e===c||e.slice(0,c.length+1)===c+\"-\":!1):!0}},CHILD:function(a,b,c,d,e){var f=\"nth\"!==a.slice(0,3),g=\"last\"!==a.slice(-4),h=\"of-type\"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?\"nextSibling\":\"previousSibling\",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p=\"only\"===a&&!o&&\"nextSibling\"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error(\"unsupported pseudo: \"+a);return e[u]?e(b):e.length>1?(c=[a,a,\"\",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,\"$1\"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||\"\")||ga.error(\"unsupported lang: \"+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute(\"xml:lang\")||b.getAttribute(\"lang\"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+\"-\");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&!!a.checked||\"option\"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&\"button\"===a.type||\"button\"===b},text:function(a){var b;return\"input\"===a.nodeName.toLowerCase()&&\"text\"===a.type&&(null==(b=a.getAttribute(\"type\"))||\"text\"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+\" \"];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R,\" \")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d=\"\";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&\"parentNode\"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||\"*\",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[\" \"],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:\" \"===a[i-2].type?\"*\":\"\"})).replace(R,\"$1\"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q=\"0\",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG(\"*\",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+\" \"];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n=\"function\"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&\"ID\"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split(\"\").sort(B).join(\"\")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement(\"div\"))}),ja(function(a){return a.innerHTML=\"<a href='#'></a>\",\"#\"===a.firstChild.getAttribute(\"href\")})||ka(\"type|href|height|width\",function(a,b,c){return c?void 0:a.getAttribute(b,\"type\"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML=\"<input/>\",a.firstChild.setAttribute(\"value\",\"\"),\"\"===a.firstChild.getAttribute(\"value\")})||ka(\"value\",function(a,b,c){return c||\"input\"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute(\"disabled\")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);n.find=t,n.expr=t.selectors,n.expr[\":\"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,w=/^.[^:#\\[\\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if(\"string\"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=\":not(\"+a+\")\"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if(\"string\"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+\" \"+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,\"string\"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if(\"string\"==typeof a){if(c=\"<\"===a[0]&&\">\"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?\"undefined\"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||\"string\"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?\"string\"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,\"parentNode\")},parentsUntil:function(a,b,c){return n.dir(a,\"parentNode\",c)},next:function(a){return D(a,\"nextSibling\")},prev:function(a){return D(a,\"previousSibling\")},nextAll:function(a){return n.dir(a,\"nextSibling\")},prevAll:function(a){return n.dir(a,\"previousSibling\")},nextUntil:function(a,b,c){return n.dir(a,\"nextSibling\",c)},prevUntil:function(a,b,c){return n.dir(a,\"previousSibling\",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return\"Until\"!==a.slice(-5)&&(d=c),d&&\"string\"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a=\"string\"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);\"function\"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&\"string\"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[[\"resolve\",\"done\",n.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",n.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",n.Callbacks(\"memory\")]],c=\"pending\",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+\"With\"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+\"With\"](this===e?d:this,arguments),this},e[f[0]+\"With\"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler(\"ready\"),n(l).off(\"ready\"))))}});function I(){l.removeEventListener(\"DOMContentLoaded\",I,!1),a.removeEventListener(\"load\",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),\"complete\"===l.readyState?setTimeout(n.ready):(l.addEventListener(\"DOMContentLoaded\",I,!1),a.addEventListener(\"load\",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if(\"object\"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+K.uid++}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if(\"string\"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&\"string\"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d=\"data-\"+b.replace(O,\"-$1\").toLowerCase(),c=a.getAttribute(d),\"string\"==typeof c){try{c=\"true\"===c?!0:\"false\"===c?!1:\"null\"===c?null:+c+\"\"===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){\nreturn M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,\"hasDataAttrs\"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf(\"data-\")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,\"hasDataAttrs\",!0)}return e}return\"object\"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf(\"-\")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||\"fx\")+\"queue\",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||\"fx\";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};\"inprogress\"===e&&(e=c.shift(),d--),e&&(\"fx\"===b&&c.unshift(\"inprogress\"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+\"queueHooks\";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks(\"once memory\").add(function(){L.remove(a,[b+\"queue\",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return\"string\"!=typeof a&&(b=a,a=\"fx\",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),\"fx\"===a&&\"inprogress\"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||\"fx\",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};\"string\"!=typeof a&&(b=a,a=void 0),a=a||\"fx\";while(g--)c=L.get(f[g],a+\"queueHooks\"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,R=[\"Top\",\"Right\",\"Bottom\",\"Left\"],S=function(a,b){return a=b||a,\"none\"===n.css(a,\"display\")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement(\"div\")),c=l.createElement(\"input\");c.setAttribute(\"type\",\"radio\"),c.setAttribute(\"checked\",\"checked\"),c.setAttribute(\"name\",\"t\"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML=\"<textarea>x</textarea>\",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U=\"undefined\";k.focusinBubbles=\"onfocusin\"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||\"\").match(E)||[\"\"],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||\"\").split(\".\").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(\".\")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||\"\").match(E)||[\"\"],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||\"\").split(\".\").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&(\"**\"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,\"events\"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,\"type\")?b.type:b,r=j.call(b,\"namespace\")?b.namespace.split(\".\"):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(\".\")>=0&&(r=q.split(\".\"),q=r.shift(),r.sort()),k=q.indexOf(\":\")<0&&\"on\"+q,b=b[n.expando]?b:new n.Event(q,\"object\"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join(\".\"),b.namespace_re=b.namespace?new RegExp(\"(^|\\\\.)\"+r.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,\"events\")||{})[b.type]&&L.get(g,\"handle\"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,\"events\")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||\"click\"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||\"click\"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+\" \",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:\"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:\"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:\"focusin\"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return\"checkbox\"===this.type&&this.click&&n.nodeName(this,\"input\")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,\"a\")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:\"focusin\",blur:\"focusout\"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if(\"object\"==typeof a){\"string\"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&(\"string\"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+\".\"+d.namespace:d.origType,d.selector,d.handler),this;if(\"object\"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||\"function\"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,ba=/<([\\w:]+)/,ca=/<|&#?\\w+;/,da=/<(?:script|style|link)/i,ea=/checked\\s*(?:[^=]|=\\s*.checked.)/i,fa=/^$|\\/(?:java|ecma)script/i,ga=/^true\\/(.*)/,ha=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,ia={option:[1,\"<select multiple='multiple'>\",\"</select>\"],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,\"\",\"\"]};ia.optgroup=ia.option,ia.tbody=ia.tfoot=ia.colgroup=ia.caption=ia.thead,ia.th=ia.td;function ja(a,b){return n.nodeName(a,\"table\")&&n.nodeName(11!==b.nodeType?b:b.firstChild,\"tr\")?a.getElementsByTagName(\"tbody\")[0]||a.appendChild(a.ownerDocument.createElement(\"tbody\")):a}function ka(a){return a.type=(null!==a.getAttribute(\"type\"))+\"/\"+a.type,a}function la(a){var b=ga.exec(a.type);return b?a.type=b[1]:a.removeAttribute(\"type\"),a}function ma(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],\"globalEval\",!b||L.get(b[c],\"globalEval\"))}function na(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function oa(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||\"*\"):a.querySelectorAll?a.querySelectorAll(b||\"*\"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pa(a,b){var c=b.nodeName.toLowerCase();\"input\"===c&&T.test(a.type)?b.checked=a.checked:(\"input\"===c||\"textarea\"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=oa(h),f=oa(a),d=0,e=f.length;e>d;d++)pa(f[d],g[d]);if(b)if(c)for(f=f||oa(a),g=g||oa(h),d=0,e=f.length;e>d;d++)na(f[d],g[d]);else na(a,h);return g=oa(h,\"script\"),g.length>0&&ma(g,!i&&oa(a,\"script\")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if(\"object\"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(ca.test(e)){f=f||k.appendChild(b.createElement(\"div\")),g=(ba.exec(e)||[\"\",\"\"])[1].toLowerCase(),h=ia[g]||ia._default,f.innerHTML=h[1]+e.replace(aa,\"<$1></$2>\")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=\"\"}else l.push(b.createTextNode(e));k.textContent=\"\",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=oa(k.appendChild(e),\"script\"),i&&ma(f),c)){j=0;while(e=f[j++])fa.test(e.type||\"\")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(oa(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&ma(oa(c,\"script\")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(oa(a,!1)),a.textContent=\"\");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if(\"string\"==typeof a&&!da.test(a)&&!ia[(ba.exec(a)||[\"\",\"\"])[1].toLowerCase()]){a=a.replace(aa,\"<$1></$2>\");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(oa(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(oa(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&\"string\"==typeof p&&!k.checkClone&&ea.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(oa(c,\"script\"),ka),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,oa(h,\"script\"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,la),j=0;g>j;j++)h=f[j],fa.test(h.type||\"\")&&!L.access(h,\"globalEval\")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(ha,\"\")))}return this}}),n.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qa,ra={};function sa(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],\"display\");return e.detach(),f}function ta(a){var b=l,c=ra[a];return c||(c=sa(a,b),\"none\"!==c&&c||(qa=(qa||n(\"<iframe frameborder='0' width='0' height='0'/>\")).appendTo(b.documentElement),b=qa[0].contentDocument,b.write(),b.close(),c=sa(a,b),qa.detach()),ra[a]=c),c}var ua=/^margin/,va=new RegExp(\"^(\"+Q+\")(?!px)[a-z%]+$\",\"i\"),wa=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};function xa(a,b,c){var d,e,f,g,h=a.style;return c=c||wa(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(\"\"!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),va.test(g)&&ua.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+\"\":g}function ya(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement(\"div\"),f=l.createElement(\"div\");if(f.style){f.style.backgroundClip=\"content-box\",f.cloneNode(!0).style.backgroundClip=\"\",k.clearCloneStyle=\"content-box\"===f.style.backgroundClip,e.style.cssText=\"border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute\",e.appendChild(f);function g(){f.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute\",f.innerHTML=\"\",d.appendChild(e);var g=a.getComputedStyle(f,null);b=\"1%\"!==g.top,c=\"4px\"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement(\"div\"));return c.style.cssText=f.style.cssText=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0\",c.style.marginRight=c.style.width=\"0\",f.style.width=\"1px\",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),f.removeChild(c),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var za=/^(none|table(?!-c[ea]).+)/,Aa=new RegExp(\"^(\"+Q+\")(.*)$\",\"i\"),Ba=new RegExp(\"^([+-])=(\"+Q+\")\",\"i\"),Ca={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Da={letterSpacing:\"0\",fontWeight:\"400\"},Ea=[\"Webkit\",\"O\",\"Moz\",\"ms\"];function Fa(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Ea.length;while(e--)if(b=Ea[e]+c,b in a)return b;return d}function Ga(a,b,c){var d=Aa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||\"px\"):b}function Ha(a,b,c,d,e){for(var f=c===(d?\"border\":\"content\")?4:\"width\"===b?1:0,g=0;4>f;f+=2)\"margin\"===c&&(g+=n.css(a,c+R[f],!0,e)),d?(\"content\"===c&&(g-=n.css(a,\"padding\"+R[f],!0,e)),\"margin\"!==c&&(g-=n.css(a,\"border\"+R[f]+\"Width\",!0,e))):(g+=n.css(a,\"padding\"+R[f],!0,e),\"padding\"!==c&&(g+=n.css(a,\"border\"+R[f]+\"Width\",!0,e)));return g}function Ia(a,b,c){var d=!0,e=\"width\"===b?a.offsetWidth:a.offsetHeight,f=wa(a),g=\"border-box\"===n.css(a,\"boxSizing\",!1,f);if(0>=e||null==e){if(e=xa(a,b,f),(0>e||null==e)&&(e=a.style[b]),va.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Ha(a,b,c||(g?\"border\":\"content\"),d,f)+\"px\"}function Ja(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,\"olddisplay\"),c=d.style.display,b?(f[g]||\"none\"!==c||(d.style.display=\"\"),\"\"===d.style.display&&S(d)&&(f[g]=L.access(d,\"olddisplay\",ta(d.nodeName)))):(e=S(d),\"none\"===c&&e||L.set(d,\"olddisplay\",e?c:n.css(d,\"display\"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&\"none\"!==d.style.display&&\"\"!==d.style.display||(d.style.display=b?f[g]||\"\":\"none\"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(a,\"opacity\");return\"\"===c?\"1\":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":\"cssFloat\"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fa(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&\"get\"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,\"string\"===f&&(e=Ba.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f=\"number\"),null!=c&&c===c&&(\"number\"!==f||n.cssNumber[h]||(c+=\"px\"),k.clearCloneStyle||\"\"!==c||0!==b.indexOf(\"background\")||(i[b]=\"inherit\"),g&&\"set\"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fa(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&\"get\"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xa(a,b,d)),\"normal\"===e&&b in Da&&(e=Da[b]),\"\"===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each([\"height\",\"width\"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?za.test(n.css(a,\"display\"))&&0===a.offsetWidth?n.swap(a,Ca,function(){return Ia(a,b,d)}):Ia(a,b,d):void 0},set:function(a,c,d){var e=d&&wa(a);return Ga(a,c,d?Ha(a,b,d,\"border-box\"===n.css(a,\"boxSizing\",!1,e),e):0)}}}),n.cssHooks.marginRight=ya(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:\"inline-block\"},xa,[a,\"marginRight\"]):void 0}),n.each({margin:\"\",padding:\"\",border:\"Width\"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f=\"string\"==typeof c?c.split(\" \"):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ua.test(a)||(n.cssHooks[a+b].set=Ga)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wa(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Ja(this,!0)},hide:function(){return Ja(this)},toggle:function(a){return\"boolean\"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Ka(a,b,c,d,e){return new Ka.prototype.init(a,b,c,d,e)}n.Tween=Ka,Ka.prototype={constructor:Ka,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||\"swing\",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?\"\":\"px\")},cur:function(){var a=Ka.propHooks[this.prop];return a&&a.get?a.get(this):Ka.propHooks._default.get(this)},run:function(a){var b,c=Ka.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ka.propHooks._default.set(this),this}},Ka.prototype.init.prototype=Ka.prototype,Ka.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,\"\"),b&&\"auto\"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Ka.propHooks.scrollTop=Ka.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Ka.prototype.init,n.fx.step={};var La,Ma,Na=/^(?:toggle|show|hide)$/,Oa=new RegExp(\"^(?:([+-])=|)(\"+Q+\")([a-z%]*)$\",\"i\"),Pa=/queueHooks$/,Qa=[Va],Ra={\"*\":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Oa.exec(b),f=e&&e[3]||(n.cssNumber[a]?\"\":\"px\"),g=(n.cssNumber[a]||\"px\"!==f&&+d)&&Oa.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||\".5\",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sa(){return setTimeout(function(){La=void 0}),La=n.now()}function Ta(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e[\"margin\"+c]=e[\"padding\"+c]=a;return b&&(e.opacity=e.width=a),e}function Ua(a,b,c){for(var d,e=(Ra[b]||[]).concat(Ra[\"*\"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Va(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,\"fxshow\");c.queue||(h=n._queueHooks(a,\"fx\"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,\"fx\").length||h.empty.fire()})})),1===a.nodeType&&(\"height\"in b||\"width\"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,\"display\"),k=\"none\"===j?L.get(a,\"olddisplay\")||ta(a.nodeName):j,\"inline\"===k&&\"none\"===n.css(a,\"float\")&&(o.display=\"inline-block\")),c.overflow&&(o.overflow=\"hidden\",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Na.exec(e)){if(delete b[d],f=f||\"toggle\"===e,e===(p?\"hide\":\"show\")){if(\"show\"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))\"inline\"===(\"none\"===j?ta(a.nodeName):j)&&(o.display=j);else{q?\"hidden\"in q&&(p=q.hidden):q=L.access(a,\"fxshow\",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,\"fxshow\");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ua(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start=\"width\"===d||\"height\"===d?1:0))}}function Wa(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&\"expand\"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xa(a,b,c){var d,e,f=0,g=Qa.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=La||Sa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:La||Sa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wa(k,j.opts.specialEasing);g>f;f++)if(d=Qa[f].call(j,a,k,j.opts))return d;return n.map(k,Ua,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xa,{tweener:function(a,b){n.isFunction(a)?(b=a,a=[\"*\"]):a=a.split(\" \");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Ra[c]=Ra[c]||[],Ra[c].unshift(b)},prefilter:function(a,b){b?Qa.unshift(a):Qa.push(a)}}),n.speed=function(a,b,c){var d=a&&\"object\"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:\"number\"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue=\"fx\"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css(\"opacity\",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xa(this,n.extend({},a),f);(e||L.get(this,\"finish\"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return\"string\"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||\"fx\",[]),this.each(function(){var b=!0,e=null!=a&&a+\"queueHooks\",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pa.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||\"fx\"),this.each(function(){var b,c=L.get(this),d=c[a+\"queue\"],e=c[a+\"queueHooks\"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each([\"toggle\",\"show\",\"hide\"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||\"boolean\"==typeof a?c.apply(this,arguments):this.animate(Ta(b,!0),a,d,e)}}),n.each({slideDown:Ta(\"show\"),slideUp:Ta(\"hide\"),slideToggle:Ta(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(La=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),La=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ma||(Ma=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Ma),Ma=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||\"fx\",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement(\"input\"),b=l.createElement(\"select\"),c=b.appendChild(l.createElement(\"option\"));a.type=\"checkbox\",k.checkOn=\"\"!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement(\"input\"),a.value=\"t\",a.type=\"radio\",k.radioValue=\"t\"===a.value}();var Ya,Za,$a=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Za:Ya)),\nvoid 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&\"set\"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+\"\"),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&\"radio\"===b&&n.nodeName(a,\"input\")){var c=a.value;return a.setAttribute(\"type\",b),c&&(a.value=c),b}}}}}),Za={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\\w+/g),function(a,b){var c=$a[b]||n.find.attr;$a[b]=function(a,b,d){var e,f;return d||(f=$a[b],$a[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$a[b]=f),e}});var _a=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&\"set\"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&\"get\"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute(\"tabindex\")||_a.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){n.propFix[this.toLowerCase()]=this});var ab=/[\\t\\r\\n\\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=\"string\"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||\"\").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(\" \"+c.className+\" \").replace(ab,\" \"):\" \")){f=0;while(e=b[f++])d.indexOf(\" \"+e+\" \")<0&&(d+=e+\" \");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||\"string\"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||\"\").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(\" \"+c.className+\" \").replace(ab,\" \"):\"\")){f=0;while(e=b[f++])while(d.indexOf(\" \"+e+\" \")>=0)d=d.replace(\" \"+e+\" \",\" \");g=a?n.trim(d):\"\",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return\"boolean\"==typeof b&&\"string\"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if(\"string\"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||\"boolean\"===c)&&(this.className&&L.set(this,\"__className__\",this.className),this.className=this.className||a===!1?\"\":L.get(this,\"__className__\")||\"\")})},hasClass:function(a){for(var b=\" \"+a+\" \",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(\" \"+this[c].className+\" \").replace(ab,\" \").indexOf(b)>=0)return!0;return!1}});var bb=/\\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e=\"\":\"number\"==typeof e?e+=\"\":n.isArray(e)&&(e=n.map(e,function(a){return null==a?\"\":a+\"\"})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&\"set\"in b&&void 0!==b.set(this,e,\"value\")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&\"get\"in b&&void 0!==(c=b.get(e,\"value\"))?c:(c=e.value,\"string\"==typeof c?c.replace(bb,\"\"):null==c?\"\":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,\"value\");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f=\"select-one\"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute(\"disabled\"))||c.parentNode.disabled&&n.nodeName(c.parentNode,\"optgroup\"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each([\"radio\",\"checkbox\"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute(\"value\")?\"on\":a.value})}),n.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,\"**\"):this.off(b,a||\"**\",c)}});var cb=n.now(),db=/\\?/;n.parseJSON=function(a){return JSON.parse(a+\"\")},n.parseXML=function(a){var b,c;if(!a||\"string\"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,\"text/xml\")}catch(d){b=void 0}return(!b||b.getElementsByTagName(\"parsererror\").length)&&n.error(\"Invalid XML: \"+a),b};var eb=/#.*$/,fb=/([?&])_=[^&]*/,gb=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,hb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ib=/^(?:GET|HEAD)$/,jb=/^\\/\\//,kb=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,lb={},mb={},nb=\"*/\".concat(\"*\"),ob=a.location.href,pb=kb.exec(ob.toLowerCase())||[];function qb(a){return function(b,c){\"string\"!=typeof b&&(c=b,b=\"*\");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])\"+\"===d[0]?(d=d.slice(1)||\"*\",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function rb(a,b,c,d){var e={},f=a===mb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return\"string\"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e[\"*\"]&&g(\"*\")}function sb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function tb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while(\"*\"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader(\"Content-Type\"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+\" \"+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function ub(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if(\"*\"===f)f=i;else if(\"*\"!==i&&i!==f){if(g=j[i+\" \"+f]||j[\"* \"+f],!g)for(e in j)if(h=e.split(\" \"),h[1]===f&&(g=j[i+\" \"+h[0]]||j[\"* \"+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a[\"throws\"])b=g(b);else try{b=g(b)}catch(l){return{state:\"parsererror\",error:g?l:\"No conversion from \"+i+\" to \"+f}}}return{state:\"success\",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ob,type:\"GET\",isLocal:hb.test(pb[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":nb,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":n.parseJSON,\"text xml\":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?sb(sb(a,n.ajaxSettings),b):sb(n.ajaxSettings,a)},ajaxPrefilter:qb(lb),ajaxTransport:qb(mb),ajax:function(a,b){\"object\"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks(\"once memory\"),q=k.statusCode||{},r={},s={},t=0,u=\"canceled\",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=gb.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||ob)+\"\").replace(eb,\"\").replace(jb,pb[1]+\"//\"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||\"*\").toLowerCase().match(E)||[\"\"],null==k.crossDomain&&(h=kb.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===pb[1]&&h[2]===pb[2]&&(h[3]||(\"http:\"===h[1]?\"80\":\"443\"))===(pb[3]||(\"http:\"===pb[1]?\"80\":\"443\")))),k.data&&k.processData&&\"string\"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),rb(lb,k,b,v),2===t)return v;i=n.event&&k.global,i&&0===n.active++&&n.event.trigger(\"ajaxStart\"),k.type=k.type.toUpperCase(),k.hasContent=!ib.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(db.test(d)?\"&\":\"?\")+k.data,delete k.data),k.cache===!1&&(k.url=fb.test(d)?d.replace(fb,\"$1_=\"+cb++):d+(db.test(d)?\"&\":\"?\")+\"_=\"+cb++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader(\"If-Modified-Since\",n.lastModified[d]),n.etag[d]&&v.setRequestHeader(\"If-None-Match\",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader(\"Content-Type\",k.contentType),v.setRequestHeader(\"Accept\",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+(\"*\"!==k.dataTypes[0]?\", \"+nb+\"; q=0.01\":\"\"):k.accepts[\"*\"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u=\"abort\";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=rb(mb,k,b,v)){v.readyState=1,i&&m.trigger(\"ajaxSend\",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort(\"timeout\")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,\"No Transport\");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||\"\",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=tb(k,v,f)),u=ub(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader(\"Last-Modified\"),w&&(n.lastModified[d]=w),w=v.getResponseHeader(\"etag\"),w&&(n.etag[d]=w)),204===a||\"HEAD\"===k.type?x=\"nocontent\":304===a?x=\"notmodified\":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x=\"error\",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+\"\",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?\"ajaxSuccess\":\"ajaxError\",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger(\"ajaxComplete\",[v,k]),--n.active||n.event.trigger(\"ajaxStop\")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,\"json\")},getScript:function(a,b){return n.get(a,void 0,b,\"script\")}}),n.each([\"get\",\"post\"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n._evalUrl=function(a){return n.ajax({url:a,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,\"body\")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var vb=/%20/g,wb=/\\[\\]$/,xb=/\\r?\\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+\"[\"+(\"object\"==typeof e?b:\"\")+\"]\",e,c,d)});else if(c||\"object\"!==n.type(b))d(a,b);else for(e in b)Ab(a+\"[\"+e+\"]\",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?\"\":b,d[d.length]=encodeURIComponent(a)+\"=\"+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join(\"&\").replace(vb,\"+\")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,\"elements\");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(\":disabled\")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(xb,\"\\r\\n\")}}):{name:b.name,value:c.replace(xb,\"\\r\\n\")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Bb=0,Cb={},Db={0:200,1223:204},Eb=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent(\"onunload\",function(){for(var a in Cb)Cb[a]()}),k.cors=!!Eb&&\"withCredentials\"in Eb,k.ajax=Eb=!!Eb,n.ajaxTransport(function(a){var b;return k.cors||Eb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Bb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c[\"X-Requested-With\"]||(c[\"X-Requested-With\"]=\"XMLHttpRequest\");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Cb[g],b=f.onload=f.onerror=null,\"abort\"===a?f.abort():\"error\"===a?d(f.status,f.statusText):d(Db[f.status]||f.status,f.statusText,\"string\"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b(\"error\"),b=Cb[g]=b(\"abort\");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter(\"script\",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type=\"GET\")}),n.ajaxTransport(\"script\",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n(\"<script>\").prop({async:!0,charset:a.scriptCharset,src:a.url}).on(\"load error\",c=function(a){b.remove(),c=null,a&&e(\"error\"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Fb=[],Gb=/(=)\\?(?=&|$)|\\?\\?/;n.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var a=Fb.pop()||n.expando+\"_\"+cb++;return this[a]=!0,a}}),n.ajaxPrefilter(\"json jsonp\",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Gb.test(b.url)?\"url\":\"string\"==typeof b.data&&!(b.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Gb.test(b.data)&&\"data\");return h||\"jsonp\"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Gb,\"$1\"+e):b.jsonp!==!1&&(b.url+=(db.test(b.url)?\"&\":\"?\")+b.jsonp+\"=\"+e),b.converters[\"script json\"]=function(){return g||n.error(e+\" was not called\"),g[0]},b.dataTypes[0]=\"json\",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Fb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),\"script\"):void 0}),n.parseHTML=function(a,b,c){if(!a||\"string\"!=typeof a)return null;\"boolean\"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Hb=n.fn.load;n.fn.load=function(a,b,c){if(\"string\"!=typeof a&&Hb)return Hb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(\" \");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&\"object\"==typeof b&&(e=\"POST\"),g.length>0&&n.ajax({url:a,type:e,dataType:\"html\",data:b}).done(function(a){f=arguments,g.html(d?n(\"<div>\").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Ib=a.document.documentElement;function Jb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,\"position\"),l=n(a),m={};\"static\"===k&&(a.style.position=\"relative\"),h=l.offset(),f=n.css(a,\"top\"),i=n.css(a,\"left\"),j=(\"absolute\"===k||\"fixed\"===k)&&(f+i).indexOf(\"auto\")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),\"using\"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Jb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return\"fixed\"===n.css(c,\"position\")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],\"html\")||(d=a.offset()),d.top+=n.css(a[0],\"borderTopWidth\",!0),d.left+=n.css(a[0],\"borderLeftWidth\",!0)),{top:b.top-d.top-n.css(c,\"marginTop\",!0),left:b.left-d.left-n.css(c,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Ib;while(a&&!n.nodeName(a,\"html\")&&\"static\"===n.css(a,\"position\"))a=a.offsetParent;return a||Ib})}}),n.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(b,c){var d=\"pageYOffset\"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Jb(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each([\"top\",\"left\"],function(a,b){n.cssHooks[b]=ya(k.pixelPosition,function(a,c){return c?(c=xa(a,b),va.test(c)?n(a).position()[b]+\"px\":c):void 0})}),n.each({Height:\"height\",Width:\"width\"},function(a,b){n.each({padding:\"inner\"+a,content:b,\"\":\"outer\"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||\"boolean\"!=typeof d),g=c||(d===!0||e===!0?\"margin\":\"border\");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement[\"client\"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body[\"scroll\"+a],e[\"scroll\"+a],b.body[\"offset\"+a],e[\"offset\"+a],e[\"client\"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return n});var Kb=a.jQuery,Lb=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Lb),b&&a.jQuery===n&&(a.jQuery=Kb),n},typeof b===U&&(a.jQuery=a.$=n),n});\n/*! jQuery throttle / debounce - v1.1 - 3/7/2010 [http://benalman.com/projects/jquery-throttle-debounce-plugin/] | (c) 2010 \"Cowboy\" Ben Alman | Dual licensed under the MIT and GPL licenses. [http://benalman.com/about/license/] */\n(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!==\"boolean\"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);\n/*! imagesLoaded PACKAGED v3.1.8 | MIT License */\n(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if(\"object\"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o=\"object\"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n(\"addListener\"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n(\"addOnceListener\"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n(\"removeListener\"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if(\"object\"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&(\"function\"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if(\"string\"===n)delete i[e];else if(\"object\"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n(\"removeEvent\"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n(\"emitEvent\"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty(\"_onceReturnValue\")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},\"function\"==typeof define&&define.amd?define(\"eventEmitter/EventEmitter\",[],function(){return e}):\"object\"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent(\"on\"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent(\"on\"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};\"function\"==typeof define&&define.amd?define(\"eventie/eventie\",o):e.eventie=o}(this),function(e,t){\"function\"==typeof define&&define.amd?define([\"eventEmitter/EventEmitter\",\"eventie/eventie\"],function(n,i){return t(e,n,i)}):\"object\"==typeof exports?module.exports=t(e,require(\"wolfy87-eventemitter\"),require(\"eventie\")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return\"[object Array]\"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if(\"number\"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);\"string\"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),\"function\"==typeof t?n=t:i(this.options,t),n&&this.on(\"always\",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];\"IMG\"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll(\"img\"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log(\"confirm\",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on(\"confirm\",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit(\"progress\",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?\"fail\":\"done\";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit(\"always\",t),t.jqDeferred){var n=t.hasAnyBroken?\"reject\":\"resolve\";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,\"cached was confirmed\"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,\"naturalWidth\"),void 0;var t=this;e.on(\"confirm\",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit(\"confirm\",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,\"load\",this),n.bind(e,\"error\",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t=\"on\"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,\"onload\"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,\"onerror\"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit(\"confirm\",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,\"load\",this),n.unbind(e.target,\"error\",this)},s});\n/*! lz-string-1.3.3-min.js | (c) 2013 Pieroxy | Licensed under a WTFPL license */\nvar LZString={_keyStr:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return\"\";var t=\"\";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return\"\";var t=\"\",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return\"\";var t=\"\",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return\"\";var t=\"\",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return\"\";var t,n,r={},i={},s=\"\",o=\"\",u=\"\",a=2,f=3,l=2,c=\"\",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==\"\"){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return\"\";if(e==\"\")return null;var t=[],n,r=4,i=4,s=3,o=\"\",u=\"\",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return\"\"}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return\"\"}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!==\"undefined\"&&module!=null){module.exports=LZString}\n/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\nvar saveAs=saveAs||navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator)||function(e){\"use strict\";var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=e.URL||e.webkitURL||e,i=t.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),s=\"download\"in i,o=function(n){var r=t.createEvent(\"MouseEvents\");r.initMouseEvent(\"click\",true,false,e,0,0,0,0,0,false,false,false,false,0,null);n.dispatchEvent(r)},u=e.webkitRequestFileSystem,a=e.requestFileSystem||u||e.mozRequestFileSystem,f=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},l=\"application/octet-stream\",c=0,h=[],p=function(){var e=h.length;while(e--){var t=h[e];if(typeof t===\"string\"){r.revokeObjectURL(t)}else{t.remove()}}h.length=0},d=function(e,t,n){t=[].concat(t);var r=t.length;while(r--){var i=e[\"on\"+t[r]];if(typeof i===\"function\"){try{i.call(e,n||e)}catch(s){f(s)}}}},v=function(t,r){var f=this,p=t.type,v=false,m,g,y=function(){var e=n().createObjectURL(t);h.push(e);return e},b=function(){d(f,\"writestart progress write writeend\".split(\" \"))},w=function(){if(v||!m){m=y(t)}if(g){g.location.href=m}else{window.open(m,\"_blank\")}f.readyState=f.DONE;b()},E=function(e){return function(){if(f.readyState!==f.DONE){return e.apply(this,arguments)}}},S={create:true,exclusive:false},x;f.readyState=f.INIT;if(!r){r=\"download\"}if(s){m=y(t);i.href=m;i.download=r;o(i);f.readyState=f.DONE;b();return}if(e.chrome&&p&&p!==l){x=t.slice||t.webkitSlice;t=x.call(t,0,t.size,l);v=true}if(u&&r!==\"download\"){r+=\".download\"}if(p===l||u){g=e}if(!a){w();return}c+=t.size;a(e.TEMPORARY,c,E(function(e){e.root.getDirectory(\"saved\",S,E(function(e){var n=function(){e.getFile(r,S,E(function(e){e.createWriter(E(function(n){n.onwriteend=function(t){g.location.href=e.toURL();h.push(e);f.readyState=f.DONE;d(f,\"writeend\",t)};n.onerror=function(){var e=n.error;if(e.code!==e.ABORT_ERR){w()}};\"writestart progress write abort\".split(\" \").forEach(function(e){n[\"on\"+e]=f[\"on\"+e]});n.write(t);f.abort=function(){n.abort();f.readyState=f.DONE};f.readyState=f.WRITING}),w)}),w)};e.getFile(r,{create:false},E(function(e){e.remove();n()}),E(function(e){if(e.code===e.NOT_FOUND_ERR){n()}else{w()}}))}),w)}),w)},m=v.prototype,g=function(e,t){return new v(e,t)};m.abort=function(){var e=this;e.readyState=e.DONE;d(e,\"abort\")};m.readyState=m.INIT=0;m.WRITING=1;m.DONE=2;m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null;e.addEventListener(\"unload\",p,false);return g}(self);\n/*! seedrandom.js v2.3.3 | (c) 2013 David Bau | Licensed under a BSD-style license */\n!function(a,b,c,d,e,f,g,h,i){function j(a){var b,c=a.length,e=this,f=0,g=e.i=e.j=0,h=e.S=[];for(c||(a=[c++]);d>f;)h[f]=f++;for(f=0;d>f;f++)h[f]=h[g=r&g+a[f%c]+(b=h[f])],h[g]=b;(e.g=function(a){for(var b,c=0,f=e.i,g=e.j,h=e.S;a--;)b=h[f=r&f+1],c=c*d+h[r&(h[f]=h[g=r&g+b])+(h[g]=b)];return e.i=f,e.j=g,c})(d)}function k(a,b){var c,d=[],e=typeof a;if(b&&\"object\"==e)for(c in a)try{d.push(k(a[c],b-1))}catch(f){}return d.length?d:\"string\"==e?a:a+\"\\0\"}function l(a,b){for(var c,d=a+\"\",e=0;e<d.length;)b[r&e]=r&(c^=19*b[r&e])+d.charCodeAt(e++);return n(b)}function m(c){try{return a.crypto.getRandomValues(c=new Uint8Array(d)),n(c)}catch(e){return[+new Date,a,(c=a.navigator)&&c.plugins,a.screen,n(b)]}}function n(a){return String.fromCharCode.apply(0,a)}var o=c.pow(d,e),p=c.pow(2,f),q=2*p,r=d-1,s=c[\"seed\"+i]=function(a,f,g){var h=[],r=l(k(f?[a,n(b)]:null==a?m():a,3),h),s=new j(h);return l(n(s.S),b),(g||function(a,b,d){return d?(c[i]=a,b):a})(function(){for(var a=s.g(e),b=o,c=0;p>a;)a=(a+c)*d,b*=d,c=s.g(1);for(;a>=q;)a/=2,b/=2,c>>>=1;return(a+c)/b},r,this==c)};l(c[i](),b),g&&g.exports?g.exports=s:h&&h.amd&&h(function(){return s})}(this,[],Math,256,6,52,\"object\"==typeof module&&module,\"function\"==typeof define&&define,\"random\");\n/*! console_hack.js */\n!function(){for(var methods=[\"assert\",\"clear\",\"count\",\"debug\",\"dir\",\"dirxml\",\"error\",\"exception\",\"group\",\"groupCollapsed\",\"groupEnd\",\"info\",\"log\",\"markTimeline\",\"profile\",\"profileEnd\",\"table\",\"time\",\"timeEnd\",\"timeline\",\"timelineEnd\",\"timeStamp\",\"trace\",\"warn\"],length=methods.length,noop=function(){},console=window.console=window.console||{};length--;){var method=methods[length];console[method]||(console[method]=noop)}}();\n}\n</script>\n<style id=\"style-normalize\" type=\"text/css\">/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}</style>\n<style id=\"style-init-screen\" type=\"text/css\">#init-screen{display:none;z-index:100000;position:fixed;top:0;left:0;height:100%;width:100%;font-size:28px;text-align:center}#init-screen p{display:none;width:75%;margin:2em auto;font-weight:700;font-style:italic}#init-loading progress{height:20px}html.init-lacking #init-screen,html.init-loading #init-screen,html.init-no-js #init-screen{display:block}html.init-no-js #init-no-js{display:block}html.init-lacking #init-lacking{display:block}html.init-loading #init-loading{display:block}html.init-loading #passages,html.init-loading #ui-bar{display:none}html.init-no-js #init-no-js,noscript{color:red;font-weight:700}</style>\n<style id=\"style-fonts\" type=\"text/css\">@font-face{font-family:tme-fa-icons;src:url(data:application/octet-stream;base64,d09GRgABAAAAACWoAA4AAAAAQhQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRAAAAEQAAABWPihI/2NtYXAAAAGIAAAAOgAAAUrQXRm3Y3Z0IAAAAcQAAAAKAAAACgAAAABmcGdtAAAB0AAABZQAAAtwiJCQWWdhc3AAAAdkAAAACAAAAAgAAAAQZ2x5ZgAAB2wAABjCAAAq+uJ4WNtoZWFkAAAgMAAAADQAAAA2BZlJs2hoZWEAACBkAAAAIAAAACQIJwQZaG10eAAAIIQAAABuAAABOPTeAABsb2NhAAAg9AAAAJ4AAACeojKW6m1heHAAACGUAAAAIAAAACAA6gvwbmFtZQAAIbQAAAGPAAAC/eLsyKlwb3N0AAAjRAAAAfwAAAM0412SIHByZXAAACVAAAAAZQAAAHvdawOFeJxjYGRWYZzAwMrAwVTFtIeBgaEHQjM+YDBkZGJgYGJgZWbACgLSXFMYHF4wvPBhDvqfxRDFHMQwDSjMCJIDANLeC6V4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGF74/P8PUvCCAURLMELVAwEjG8OIBwC4Ywb6AAAAAAAAAAAAAAAAAAB4nK1WaXMTRxCd1WHLNj6CDxI2gVnGcox2VpjLCBDG7EoW4BzylexCjl1Ldu6LT/wG/ZpekVSRb/y0vB4d2GAnVVQoSv2m9+1M9+ueXpPQksReWI+k3HwpprY2aWTnSUg3bFqO4kPZ2QspU0z+LoiCaLXUvu04JCISgap1hSWC2PfI0iTjQ48yWrYlvWpSbulJd9kaD+qt+vbT0FGO3QklNZuhQ+uRLanCqBJFMu2RkjYtw9VfSVrh5yvMfNUMJYLoJJLGm2EMj+Rn44xWGa3GdhxFkU2WG0WKRDM8iCKPslpin1wxQUD5oBlSXvk0onyEH5EVe5TTCnHJdprf9yU/6R3OvyTieouyJQf+QHZkB3unK/ki0toK46adbEehivB0fSfEI5uT6p/sUV7TaOB2RaYnzQiWyleQWPkJZfYPyWrhfMqXPBrVkoOcCFovc2Jf8g60HkdMiWsmyILujk6IoO6XnKHYY/q4+OO9XSwXIQTIOJb1jkq4EEYpYbOaJG0EOYiSskWV1HpHTJzyOi3iLWG/Tu3oS2e0Sag7MZ6th46tnKjkeDSp00ymTu2k5tGUBlFKOhM85tcBlB/RJK+2sZrEyqNpbDNjJJFQoIVzaSqIZSeWNAXRPJrRm7thmmvXokWaPFDPPXpPb26Fmzs9p+3AP2v8Z3UqpoO9MJ2eDshKfJp2uUnRun56hn8m8UPWAiqRLTbDlMVDtn4H5eVjS47CawNs957zK+h99kTIpIH4G/AeL9UpBUyFmFVQC9201rUsy9RqVotUZOq7IU0rX9ZpAk05Dn1jX8Y4/q+ZGUtMCd/vxOnZEZeeufYlyDSH3GZdj+Z1arFdgM5sz+k0y/Z9nebYfqDTPNvzOh1ha+t0lO2HOi2w/UinY2wvaEGT7jsEchGBXMAGEoGwdRAI20sIhK1CIGwXEQjbIgJhu4RA2H6MQNguIxC2l7Wsmn4qaRw7E8sARYgDoznuyGVuKldTyaUSrotGpzbkKXKrpKJ4Vv0rA/3ikTesgbVAukTW/IpJrnxUleOPrmh508S5Ao5Vf3tzXJ8TD2W/WPhT8L/amqqkV6x5ZHIVeSPQk+NE1yYVj67p8rmqR9f/i4oOa4F+A6UQC0VZlg2+mZDwUafTUA1c5RAzGzMP1/W6Zc3P4fybGCEL6H78NxQaC9yDTllJWe1gr9XXj2W5twflsCdYkmK+zOtb4YuMzEr7RWYpez7yecAVMCqVYasNXK3gzXsS85DpTfJMELcVZYOkjceZILGBYx4wb76TICRMXbWB2imcsIG8YMwp2O+EQ1RvlOVwe6F9Ho2Uf2tX7MgZFU0Q+G32Rtjrs1DyW6yBhCe/1NdAVSFNxbipgEsj5YZq8GFcrdtGMk6gr6jYDcuyig8fR9x3So5lIPlIEatHRz+tvUKd1Ln9yihu3zv9CIJBaWL+9r6Z4qCUd7WSZVZtA1O3GpVT15rDxasO3c2j7nvH2Sdy1jTddE/c9L6mVbeDg7lZEO3bHJSlTC6o68MOG6jLzaXQ6mVckt52DzAsMKDfoRUb/1f3cfg8V6oKo+NIvZ2oH6PPYgzyDzh/R/UF6OcxTLmGlOd7lxOfbtzD2TJdxV2sn+LfwKy15mbpGnBD0w2Yh6xaHbrKDXynBjo90tyO9BDwse4K8QBgE8Bi8InuWsbzKYDxfMYcH+Bz5jBoMofBFnMYbDNnDWCHOQx2mcNgjzkMvmDOOsCXzGEQModBxBwGT5gTADxlDoOvmMPga+Yw+IY59wG+ZQ6DmDkMEuYw2Nd0ayhzixd0F6htUBXowPQTFvewONRUGbK/44Vhf28Qs38wiKk/aro9pP7EC0P92SCm/mIQU3/VdGdI/Y0Xhvq7QUz9wyCmPtMvxnKZwV9GvkuFA8ouNp/z98T7B8IaQLYAAQAB//8AD3icrToNcBzVefe9/b3dvd29u909/dyd7ke6k86yLEunOyHJsrCxJWyJGmEcLMDYxBhHNsZQBzOAkjQmFDrGIq5gHEIcCILOAGZq3IQO04RkIGkgaUMKMbQznSlJW0wgJtOQHxRr1e+93TvJwq7JTD3y2/f//bzvfX/vAhAIzL3KPcYNBFIB8UR9EJYuAcuAqGNbOiwDSczkuorlaJ6WTeVSRwMIDveY8aN20GztjzMhW4P2H+kNUPM5NaVNQE0K3tWM77vv8rJqgnT33VJE4WWIfd/QbKHZjcXcZiFAqjCDgUJA/mZTWOIIwi0vAwNiUjkW9THIZs6DAbnj6ffGP/P+0y2vv+5SXGLKuXHJPJH92c+yT7x3883wnI9W/DxI4T9+bm7uOL+MUwNywAg0BJYFQgNKa2NDzFBEjqeM0SFXLHU4YKe7yjFoSmdEKWw5nemOUj5czMXCliilM7lyuFgqp3HaDf1j/fhH+s6cfm4MEpA8c0BSQBO5CUkD5fJi05kDjSUoNnETTUUSXtpPVm0aGHDdmV0nNkPiMUWeHZMVRSZPSlp0dqypCKVG8iT9IK5AEeamyZGAjecW5tm5SSBm8ojiSqBsYoXDTRtuymw13V8axjB+p2EPlsMGcRzTTRkGOLRpmk/AzSZ+A97ecx+QN8g9gUbc26F7N+GJiN5pLGMA8hUo7EQcHI455A0PwrS3I37N+bZhTE8bex1aeeIJ4+MTjTY6gcH+iIvgGWQRdh2TR9sS81kspCzytguLfBcyuBOLXuhwYnZnh8NFUs6plLPLScGpWBKwkYztwsop7Hie9r7rYK/9brWXTg9U+RiBX+GJiyc0rgIv7UNJe3vPjrFdyZOV/byNUkyW/0AuIi/h+h6U5a64SmW5ieGcya2AYimG+EUtnZN08ImgveV+KOYykiiJVMrbkI+dHUkC9+nyPUFdD94j639r1uTq7FiSNrR1hXS8uLbGapYUSbpaJvzmp5aODbU9iJNBU1gJa5LFTCqihNpDigmWWtc2GjUy7Y2m3hHk14qmPJXp2cTInZudO85dhzw2AuXAJQHl+Yt7l0RVjkO8u4q5JZARE2A5yNxStNgGWcQSj7izA1HucCgJOsRsb7xYWgn9XAwvRqaN4HAS4ENF3kXFFovJ/muW3zsYDK3jxaCQbOouOPXZPmBDNZG4krS0N2/9wakf7hHv+IcPX/jcaGWZAp9fvrFtv66UeSlXn4zYdZo5kLNwIJJRTbEu3jz62Zf37Xv5l7RAeugZfAQ7kJ5koA3PoJB1eP8MpHRVWqpygyITpiKz4DCoHMENlun+wrDA0bNZ9jmJZdZwhhx9UnewMKztg2yAlie9j6O7Lzrks7tYdRdOO4u/FJ9e5G93RyFTJ1f5G17IZDs7z25uEfuFBYwlvYpUUuTnKJO6umg5IymD88yGGxbycjN2JOkIVk6wUoEzm/0O5T/Owb92Jg8NyL/6qFrl30IZ5nSgMp3nch7DkvOMCaMeoQ1U4JZxQncenmAMmcAei/S7V9CvAccW8mczwtMCceSQ8nwhXWuKAeQPJbRCc9RnhoSyhvBL+WgxTzsk0Y567IFj+35wa4Xq7ykS5YIm7UIdq4iCfKcsiIoSvFFWONUnFovZoXHKhXE69R9hTOIEgZPcJ0VZRrx+i3j9hhtFPqQDnYjX8uaEpS2+F4twiVkOylSJAwfvBZO3XBnoTaEHtltSWAGKIEl3SJIQ1CRESIRnLFtJRc88GckEbQuOBTO5zBXziL0JIPKiyMtzggwiMc+czmbDEbDMbJaLhC3LPzPuFOKaD6zEM+tt15gNxTPLIg5dvglCfGmbmakYmqmKsEfRVOWWAXjqvEzVeamT6botq9321Vu2rIb7KOrufmZ24LWmoiI3yspJJ65e704JprBSFGH3pxXLhAQe9fBzbM1rq7YAm1dsctvZSiqu8G94rxwS/LQ7JYorRR0XXq/GmSh4dJADKAsSk70ajQ8gHdE0MhzVjOCbVDSvKINd1PhKVN+fgMTG2zYCvIaq+V2mmsNTP36IRLD6xO7ejWTDisfc7zCVD6tQW+/eMTW1Y3fSt20foe+hBZpQ3zfGfH3vyzmCZNvHFoJFVPrRjj7m6I26M3r7KHQxgD5c2H/4tQdIeJLJ+yQDvTsZOwv4jYfJQxVaxxmtKtNTTVaQnRmS6kkWvfBoNvCeIT55jt41PJZwpg3YYeJYGK+dppgK/sF+R/8ggZIOBlnyNoK/qpwokLZ6uCFRKCTKV8HeGaYksPg2Xj/3fyQZb6dhGWv2QLLQU4DW7lZwf77Hw+vb3AjzexKIVywkEXoGlB1JUqr4FW3A7BZlDzgzhZ5W0tyfI1da7mmn13JvsZOFxLuJIRsmLXJVskByA41iu/uvSds9bWOnPZQ4lSgANm+xqQ6gMPlGH2YR79rSDIXLXQBujHZSxkCpSIeynwCdNxEFJ2HVmSDaFPxQYoIN2BfCM8E6zTCu66VDSQ97KkPfIa8i7nGUITNAZagDhYFJjeg5rXh+bcBuYamT/JWmRVE8Iopeb/3ud1ZdSIs4TkQLcaogJ63Z5dGUxEfefz8qSKko+Qm2PB/ZgyEEMngmjkjovYB0GBog+n9COzD7MiQ73pfOA5S8NLseIst+QWbPC9y/J8dRv7QFliCNWcnzAYlI3fE8hdNVbBPY1WEeZxm8m5mKOdypQRG1qhiRgQBnZbr7N20qT1ipoPsLVYWEGq8hE3BoLPn2tV8PhWVe0WTB4nIN3WMD7cmIiDZEhaSSROulWMbk2+sX4LIs0Iq4NNdUfV3mDeqCbaEOligmbYSFCaU0VRVULrhTKoKlIMubNvV3ZyyOByWMilXkBpNjcIjihTjBrwzF/bmKF1iMJNsHxrobcnxElDVF0C3u69fevP5txIsEcUrVZyR96DPqiI/C+zGTp0uZGkXVP6PG1RncET7Ey/eKjnX885QeWw83krsCIVyvMp8TD9P3rEvMFUkFZxS6Rw25ytWQJ/52/tqLyQSDrc7Dpiq/H2XDgYsVBgjnK7BF95EwLKLNKLh0bg5x74VXPNwJO1fq7raB588j7pbhat78pDKjPE1td1Jl6Hhn8Q73LdISsCrrgwuijljQ28Tinnavx+Xu9ap6jYqn2QzNaly7RoVJ99MoBl/DvmtU1X0Lu3FCnO37XXKEW832Nai8BYnDKKvIF92W3F9dotK94ahCNyJPuW+5b2L1WrQ2X6fSc1TBejLg77uvsm8FX2b1ghWk6cbjuB1FUIVm9y0f6aMKfMbdhjshNGihFKgIgE7044ZvkbXz+zbh3chXN/f35Z6mOyF2b/m7H6V7HVV3XYOYtiDOig/J25bh+xPuAPMdxRPRc8V1YU8Z2mEv9OIO2O6DTg8Wtt2C3+lCcjBRmEaNVbDhi0nLnUK1ttvqdVpsexruQ93WGnf3T9s47N+te7nN5FeohRGeChUfIvZx5htAPYTNjQl/ea/tTlkW7LZ7nIK3dyNsGUwWpq0+a4k/ALvozB5nurkCqwthUdrq5mnzBD/tu5rpfPVYuC6L0VZwnMfd/YnGxgTc97jjFNjGFvRQ6iyrYPfZjyPVyQJM233YRF5YVb1xgLzjwVMX3NOwZ/K7wtJZx4W8pGRNNzf4ZOBeCKgPCxuKcUYmxQNycbjP5wGlEJGk8OZc369tR3gtaZ+X6CbmVkIONRVJcugpluk1TQL1Fqmfy1ELVi4hYy1zJhYNj4zu7RkfbuebN17fv+q2Fj4sDgtE7Hv2uk89uneIH7j9yNWjR1YMmUvJSzO6s9QcGWkbHt83PtzW0yWCMMLr4roNcMm+o88e3XdJ/0VDkWiFDxSv5YhXq8d3nVAryjjtoDXp7Ojn2gg6ijGHIUxDpQZ0Y2lQym2+5NZHN219to8XhsUw33Lb6p6dG9DVGN598/bmkXA0NoPeR2t4qO/h0U8d3bcKtmB5yeilos6PCCB29fgINjeNmEsdfaYmGhm6qB9RrPhEx7mrEbfGwCDauZXNJo09wLJ1oAhSe1NxWkUDKKJofMqeE+szt8S4K9JYmjbLXRRtylOU1vWN//mVy4/0DVGNqM9QJT7SvL287ot5MSZoGC/oyHTWO7p3vdd5s6RB439/5fKH6aIaEDh46AVkpMqWo1YdaWpe1690hzT4e79jxGuLvD+R0iUwuiJ+TLUM4+yrA8aAdsVAsX1JFgMsTkCF4ceBdtgLZ8oXaENnPpfPipLA6A57nn4+XI1hUbCoYmig1KP5pH44Kybnq4cUyatKivvTmXpeOC7y8J4il3yHncWVz+SDrc5zTqucPyYro3Af7XP30/I8ddJxsQAgXIFbz37QdsmqNhJl0K6145C0rkWzExAX8aM3sDpwYyA8oF83PNBXWu7xRPQMIT1E6syw7M4F2tFwOmyhVKQ7+uH/lz9DribLBF4jsuze94lYBc+7LzLOXMw4c+66u52EZz/QLEWxyA0XZFuA9+OVUfSTwyzWCw0o3a0Jx9BYTrKp2AZiEi9qGSs6OFhZkPboRDXesZKpbcd3UOjV8dMgNNQhr1pJh0Qy5petVIQ48Zq1KefMj7zIhluf3pQeBs5JfUuJMGcgHFRik16gP1mzHX2EmroaYhmVysETLOo54aSGU/gHzbEwdRvCMXuGhUczHj3HkZ42Rk9LYIDS07c8YRuqSBg91Pmnwo8VghFR2Y9oKTmxziSwi0HTN2I1cMvT3E7Fezk/Pae1UnYyUwqdRnqCNZPoXSJSk6hxGWmRBKqBSMqyTP97/wmaJcQCGpqbG5Iw6vhEtHpEVWihepULpFG3rqG0rOha2qTxJIC0YOSYFjrxEtP8nlSlIxvu7PLcRKmS76mk04Sq0HoTqJ04CcfcK+DDIU34mhCX/dByaAiDy58ibicVeRdNJrNyezI2G/ESlUKsZDxiOtLJk/ChXCc9Imp+1nO2xL6QZIkkWiizM7SHIF9q9K8ZpQDx8zOjgWaMzORvdrSGPJ2sEzRYZer9O2gmWD4zSTr6sSuH8Uc/IGjmyLIMOHUV0G48840967ixy2v6zIhcU+pr3bDj9u0bc1xfqUbO9sUuH3O/iqEbFPqaPbOBZuFTO57rx7mxvnDL7avRFLah/ei55LZCpKddjqz4OxhyH6YRLuzA0rcfY5yC8rQTcb08JdLYleZW8TZ0lGgSCyVfQoQtRDiPV6BqKLryzL7kqRmkuoGdE5UzlKWy39mJQlU1OChf1KrEHOYcsdMhvaO3j5JN+zZBXJZ2Kmq0WRSMDSFJGqmtC0q8eZesmfWxPxNNca3DC3KzYsg7MBBXhJ2yHmvy5sojNXVBmQvfhUdoxJ0NgiENWTzfqwd3SOjC927ceNvGjbfTUTNp13eIumhvAKEvJA/HTUW6Maj1CeJAUtBFrcOI1xugSWxubV1qqaRJ1gZvqiHLbKqwOo5TR9hELw7/iBsjL/t6WXl+SWN9VOO5RfnTtJcwreTFY35bWthGB+bMB+yOcGEDg4bztxbkUR0wh1h2kJWgV0awMR+Hjvn5mlrmu9BMCMpYsZynmQC8KR2xco4maZIg5jN5CU86ViJ/s27nzqlxgFc6167fuXP92s5XYOdDO8j4pYNYw16IjR8eH79U0ra3Y6V9uyat20l2P7AbsKpjJ81Tzs39nt9PXgqYeL9LNB+Yi9uMN1BEZ0knnvijDiZLEDg6dJ30NuA9oQEVh9U0uk/kgO8A+R94pvWy8YveWn0ZWbfmLepJXdqz5Z5B94qhu7d2k75r7l0Lx2gVtvTMr6FXgDY7p56d6qSNS+/e0ke6r//CQ1/YXiTdW++u+FK/529HfC3klvzNhK3Te4txIUFlkuQ8tIjguXrUG6WAPWgMsIcDF664d3v3DHXwhQ07YMul2I9QDvtQXz+bokoej3uUo5mt1Qi7f/m58pGoIAyavsnnFiUl8cbhKTpRmI+CKw9Y1oKc5GvZZJCT6kWJcCHNzzDS3KTQKEocr/6Fe1GoUf+1rq/QG/W/hs9goz8E649Xc5M6HxXjAnDV9OT9spBFuwOC26Prv2bzQ3RhCHfwaYpW8+LxqOzlYOZR7/Kf/RbmXMktCzAr3jWP/Kqt5KUqZDq4uTqyBbYGfL17HcuL19KcjykyePSoAP2bNgILH1qOXXFwA9l471P3bOIvOwRXL8j+k0OjB6cPjrLCfe2sXP/824QcsAMZlOmGWiMo0rwb4K1qo+mH/LkBVlXdA+cFXFFWvz0//AXvbZ6+ac3GoyzHHvXfzCqvNILfLi9qV7KBJ/03OPbql/A+XlcDa3g9C1/rnPPU/XzkR4E3q/4p6kHES6V3vVx1M7x3EG4RnpwfhuT9B8mTF4BG6w/vZp7SbtoL4oJBkCuYe2+LL3GT6CtdzGKjNas6FGaHETyqOIeljCSdy4azYTwkLxFIL08OHSKaM+7sonl9vERpGguhHaS5bUgz24xu3ETTPsVKqntkIZfpqR1MdBfQKd6hmiFHviU1QZ260MQ2FSOcbfDmVoyFeHkb9rq/db9KFWsP6uutqz6LgZW6R+JrIjp86Gp6jSXL+7RoUv38yjEracH0NiVpKdu2ISBl27QDRdTKAT9WHoc/IL/p7w4sptcdmtpFR6IcZRnNXDnaT909x7Ykjj6PwmlFdP9FMuWgQvb8nAiKpHB7iS4/r+pk678LRCWOGpq9QwfOlOGlbpDkEPwThngKL7puibAY5LvMl+ZQQ8Yx4mxF/wZjkGJ7a3NjKl5jyjiJ/hAhLzVVExN+9qMpZsAyWImhu/eF2NlfcmS6bxq6lNlO9CZvxpjon/G7R5k1SqVwuFwOv3HTTZn0TTelSQs2wtjpPkNH8D/RH++b3mkosx0KLkzSlfi92qSrzPKX2arMTe692ChjJ7T5I75t3I487EIe5jXKQ6pg6Q83qs/lEn3noSFynmb4aOrBF9sEoBuHhKFYcL11up41emofLCQGE60wVdeDClSvn5qqM41Go7t+iuWUHqzrNrOGWTsFst5TtwLXXPk0Syc9fSX2rsBFmzadY6C/Fge8d+e5uXHkfyiQRc6vwTu2Ylkhz95Fq2/8+YVv/CxSqb7xxyqhDjDBRxFBxcQnSYzeBfrYNqGJjej4TLDfWEywII42hqZ+/BB/6I2DkCn0WS9uv3PD4Z0DpG/3oemDe7u5NS/aMOWtol60t2qCusYTSi19uHn1iHiQOpz2i2v6xx/4xqE9PfyqHQ+N3Ln9RftsmoxADcYAyvMt9Y73lr7wdwTUmb8g/u53GOaw6pPizJC9MJrEj7noG9sG1CNhmWN2BcF2dpRzGBfz5XrojEWZRxuj6aCYY0tiLJOTMmK2uJJQjxj/8hjKEB1iGHCj4JTpxczQzEtehAevG+5pUO12twtCjfG4I979yJB4a7RlZbDdVGV1OMgDQPZQY+ERm1wqiVyYJwJHMrGaP+o9YKbUlE2ApL6YEiyylNT9ESff74qtvCgqNSZcBVOa+2Hr9q9E70rVikGTcxRJ4BSQa6ImzpQIEXk+OFbqhvQRQ4souDWotqAiL2Xqm+AZ/Yz0kXcCOnvfqg1779vzOXtqtvPMii9Ig5+dwj87Kf4bQ6EJfdRt4PyQZYFY0/NXERbE5vPzi+As2njhToFqfp7h6ufXYTFiZ6MCryyG/xQX5qIBFddLfr6b+SYsHc3P1ocikRD5rxCMuNslxeBKuiZjzQpUY6kFvwNgPtyioHRxkEr9fv+HE5AwHFc9q0neOXOa/kiAi9ByQX3et1fZb2+q7yCL914QN5y1GVt/DOVaR29JPCECXV9iGaI84A7sQ9W3Y4dLZe4vVR1Mxd3Hc7rq7lNVOKjqHM9xqmiceVWXNTgoiO6fswpN0R/EfnefyHtnMvcsdw1nzMOJiSzGpQ+SPmclxmVRqlVM0HG5wNFSQYAIRhjE3ZDTsobwJbifVegTxj7sx7mCRwvp5XSWh6/QYs/TwjyMahKsVCYZVaeECMTR56MplPyzCfrSPO/dL0m8RwvpQ1oS56aF7i/58Mpn0eOHaKxcTNGd84cLd4oCvXPu3B+4a8kPUA7rmSzJ7E3Zy7OzuJEm/Mt+7Eh/pyDPMx7xF7luuh/CY9hDe4WZYLqvW+YhFlJiWX1PO0aOB6L0t3AVOUK7V/XSqP8Dx/CavHCY8erwC3jhyKHZR2nu9wXvpz4vKN4dwOIA22sZ/S1RTbhyBxbvF/XeXzEQpfEUTa0hLTTE+RigN9vzQhBp0RzT5OUaKazwlhEU8u0fx8D9XmGdwVmmZmpavDGuichhJJUz1nn5pp9yj5H3GG7DgZtovmnn5YNFiiT/JyIZqw6Uvd+i0TRIFwumFw7SVEg/TYvQDM/8hE9O4uTWEVlECuyU2tLW1oKK3jIk+bItDxy6TZKw36mttdZgKDxo1fIRzrFMSbrt0J/Cl8KVh1OcozuqGUyO7RxLBk3UrA6XfmDTF97qwAErpOl655GnjnTqOidyIQsHO08G/hcLt/j/AAB4nGNgZGBgAOLaW41M8fw2Xxm4mV8ARRguss1QhNC5H/9//Z/FUsEcBORyMDCBRAFTFwxveJxjYGRgYA76n8UQxVLGwPD/FUsFA1AEBfgBAHyYBUh4nGN+wcDAvACCWfSBNIgviMBM1kA6koGBMRWVBqsDYqYmiF4wHQkxg+kUBMPVWEP0gTDYvBdoahZAzYxEY0ciuWUBFjkoZimDYLC8IKpehmsQccYvSGYgYZB7YBhFL5o8cxTQjDUI/wIArpclrwAAAAAAAAA6AIYA3AEKAUgBgAGgAfoCYgKqAwIDOgOGA9wEQAR4BLYFAgU8BZoFzAYMBlIGmga6BtgG+AcYB0QHcAecB8gIAAg2CG4IpgjyCUAJrAo0CtALOAueDAoMYA0ADVANjg3mDiQOjg7GDvgPOA+ED84QPBB2EN4RNhGgEfISchKoEsgS6BMGEz4TXhOSE8QT+BQsFGIUiBTWFX0AAAABAAAATgBuAAYAAAAAAAIAAAAQAHMAAAAiC3AAAAAAeJx1kctOGzEUhn9DoIKgLloJdcdZIRDK5CKhSqyoogJrhLJDwgyeSzpjRx4HlGfgLcoz8Dp9j+76Z2KhqFJmZM93Ph/bxx4AX/AHCqvnnG3FCgeMVryFT/gReZv+JnKHfBd5B108RN6l/xV5H2d4idzFV/zmCqqzx2iK98gK39RR5C18Vt8jb9P/jNwh30fewaGaR96lf428j4l6i9zFsfo7drOFL/MiyMn4VEaD4bk8LsRRlVZXouehcL6RS8mcDaaqXJK6OtSml+lemTrb3Jp8Xmm/rtZ5YnxTOivDZLCur401XgfztNytec5HIWSSeVfLVdxHZt5NTRqSIoTZRb+/vj/GcJhhAY8SOQoECE5oT/kdYYAhf4zgkRnCzFVWCQuNikZjzhlFO9IwvmTLGFlaw4yKnCBlX9PUdD2Oa/Zlay1n3dLmXKei9xuzNvkJ7XLvso2F9SaselP2Na1tZ+i2wqePszV4ZhUj2sBZy1P4tmrB1X/nEd7XcmxKk9In7a0F2gv0+W44/z/KQo7lAHicbZLnlpswEIW5Bgy4bLLpvfeE9N57z76DLARWEJKOEEucpw8CO/kTncOdT6PhnlHxRt4wJt7/x47nYQQfAUKMESFGggmmmGGOLezBXmxjH/bjAA7iEA7jCI7iGI7jBE7iFE7jDM7iHM7jAi7iEi7jCq7iGq7jBlLcxC3cxh3cxT3cxwM8xCM8xhM8xTM8xwu8xCu8xhu8xTu8xwd8xCd8xhd8xTd8xw/sBLUlZuIkZZW2q0hzahvDRqocUyIpE4EWTR1WXDZ1sGRCz5yklBsqWBZwmauZk01mTqxl0nIlUyLs9r/Zej35m4kFl2XKftlAKFomTlKlmfQ1l74lRdB9dbxQqqyIKbc2MPQZGqbFKsqVaYnJ4ky1Ms24iQXLrYPE8GLZ07jRfaIvcf5JX+NoMhQ5jLoqFwenBS8Gpw7WTh05py6MaOtT2ibEGNXWKW1Da0i9nPY6dNe7CEWy7pc+5EJpvfJVnvtUFUHFZBPWS2LYxKqiECztVpINypAuGS2nvQ6Gs+H0hsk0U3ZznDETguua1/MNpLvMWH/RFGEuuobCihScxqS2zPC6jH4rVaVcxn1UjQ1yJW1QK2MTJ6nrPOqp0d3Vk1WoSVOz7p0oHeWdTbpoh5i3sVWpezp23AGTWch+Mmonu0o0Vb+l6RqdabLmRnveH9ru7j54nGPw3sFwIihiIyNjX+QGxp0cDBwMyQUbGVidNjIwaEFoDhR6JwMDAycyi5nBZaMKY0dgxAaHjoiNzCkuG9VAvF0cDQyMLA4dySERICWRQLCRgUdrB+P/1g0svRuZGFwAB9MiuAAAAA==) format('woff')}</style>\n<style id=\"style-core\" type=\"text/css\">body{font:16px/1 Helmet,Freesans,sans-serif}#store-area,tw-storydata{display:none!important;z-index:0}#story{z-index:10;margin:2.5em;-webkit-transition:margin-left .2s ease-in;-moz-transition:margin-left .2s ease-in;transition:margin-left .2s ease-in}@media screen and (max-width:1136px){#story{margin-right:1.5em}}#passages{max-width:54em;margin:0 auto}.no-transition{-webkit-transition:none!important;-moz-transition:none!important;transition:none!important}body{color:#eee;background-color:#111}:focus{outline:thin dotted}a{cursor:pointer;color:#68d;text-decoration:none;-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s}a:hover{color:#8af;text-decoration:underline}a.link-broken{color:#c22}a.link-broken:hover{color:#e44}span.link-disabled{color:#aaa}area{cursor:pointer}button{cursor:pointer;color:#eee;background-color:#35a;border:1px solid #57c;line-height:normal;padding:.4em;-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}button:hover{background-color:#57c;border-color:#79e}button:disabled{cursor:not-allowed;background-color:#444;border:1px solid #666}input,select,textarea{color:#eee;background-color:transparent;border:1px solid #444;padding:.4em}select{padding:.34em .4em}input[type=text]{min-width:18em}textarea{min-width:30em}input[type=checkbox],input[type=file],input[type=radio],select{cursor:pointer}input:focus,input:hover,select:focus,select:hover,textarea:focus,textarea:hover{background-color:#333;border-color:#eee}hr{display:block;height:1px;border:none;border-top:1px solid #eee;margin:1em 0;padding:0}textarea{resize:vertical}audio,canvas,progress,video{max-width:100%}.error{padding:.25em;background-color:#511;border-left:.5em solid #c22}.error[title]{cursor:help}.highlight,.marked{color:#ff0;font-weight:700;font-style:italic}.nobr{white-space:nowrap}#story a.link-external:after,.error:before,[data-icon-after]:after,[data-icon-before]:before,[data-icon]:before{font-family:tme-fa-icons;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;speak:none}[data-icon]:before{content:attr(data-icon)}[data-icon-before]:before{content:attr(data-icon-before) \"\\00a0\"}[data-icon-after]:after{content:\"\\00a0\" attr(data-icon-after)}.error:before{content:\"\\00a0\\e80d\\00a0\\00a0\"}#story a.link-external:after{content:\"\\00a0\\e80e\"}.passage{line-height:1.75;text-align:left;-webkit-transition:opacity .4s ease-in;-moz-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.passage-in{opacity:0}.passage ol,.passage ul{margin-left:.5em;padding-left:1.5em}.passage table{margin:1em 0;border-collapse:collapse;font-size:100%}.passage caption,.passage td,.passage th,.passage tr{padding:3px}.passage .error{white-space:nowrap}.macro-repeat-insert,.macro-timed-insert{-webkit-transition:opacity .4s ease-in;-moz-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.macro-repeat-in,.macro-timed-in{opacity:0}</style>\n<style id=\"style-ui-bar\" type=\"text/css\">#story{margin-left:20em}#ui-bar.stowed~#story{margin-left:4.5em}@media screen and (max-width:1136px){#story{margin-left:19em}#ui-bar.stowed~#story{margin-left:3.5em}}@media screen and (max-width:768px){#story{margin-left:3.5em}}#ui-bar{position:fixed;z-index:50;top:0;left:0;width:17.5em;height:100%;margin:0;padding:0;-webkit-transition:left .2s ease-in;-moz-transition:left .2s ease-in;transition:left .2s ease-in}#ui-bar.stowed{left:-15.5em}#ui-bar-body{height:90%;height:calc(100% - 2.5em);margin:2.5em 0;padding:0 1.5em}#ui-bar.stowed #ui-bar-body,#ui-bar.stowed #ui-bar-history{visibility:hidden;-webkit-transition:visibility .2s step-end;-moz-transition:visibility .2s step-end;transition:visibility .2s step-end}#ui-bar{background-color:#222;border-right:1px solid #444;text-align:center}#ui-bar-tray{position:absolute;top:.2em;left:0;right:0}#ui-bar a{text-decoration:none}#ui-bar hr{border-color:#444}#ui-bar-history [id|=history],#ui-bar-toggle{font-size:1.2em;line-height:inherit;color:#eee;background-color:transparent;border:1px solid #444}#ui-bar-toggle{display:block;position:absolute;top:0;right:0;border-right:none;padding:.3em .45em .25em}#ui-bar.stowed #ui-bar-toggle{padding:.3em .35em .25em .55em}#ui-bar-toggle:hover{background-color:#444;border-color:#eee}#ui-bar-history{margin:0 auto}#ui-bar-history [id|=history]{padding:.2em .45em .35em}#ui-bar-history #history-jumpto{padding:.2em .665em .35em}#ui-bar-history [id|=history]:not(:first-child){margin-left:1.2em}#ui-bar-history [id|=history]:hover{background-color:#444;border-color:#eee}#ui-bar-history [id|=history]:disabled{color:#444;background-color:transparent;border-color:#444}#ui-bar-body{line-height:1.5;overflow:auto}#ui-bar-body>:not(:first-child){margin-top:2em}#story-title{margin:0;font-size:162.5%}#story-author{margin-top:2em;font-weight:700}#menu ul{margin:1em 0 0;padding:0;list-style:none;border:1px solid #444}#menu ul:empty{display:none}#menu li{margin:0}#menu li:not(:first-child){border-top:1px solid #444}#menu li a{display:block;padding:.25em .75em;border:1px solid transparent;color:#eee;text-transform:uppercase}#menu li a:hover{background-color:#444;border-color:#eee}#menu a,#ui-bar-history [id|=history],#ui-bar-toggle{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}#menu-item-restart a:before,#menu-item-saves a:before,#menu-item-settings a:before,#menu-item-share a:before,#ui-bar-history [id|=history],#ui-bar-toggle:before{font-family:tme-fa-icons;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;speak:none}#ui-bar-toggle:before{content:\"\\e81d\"}#ui-bar.stowed #ui-bar-toggle:before{content:\"\\e81e\"}#menu-item-saves a:before{content:\"\\e82b\\00a0\"}#menu-item-settings a:before{content:\"\\e82d\\00a0\"}#menu-item-restart a:before{content:\"\\e82c\\00a0\"}#menu-item-share a:before{content:\"\\e82f\\00a0\"}</style>\n<style id=\"style-ui-dialog\" type=\"text/css\">html.ui-dialog-open body{overflow:hidden}#ui-overlay.open{visibility:visible;-webkit-transition:opacity .2s ease-in;-moz-transition:opacity .2s ease-in;transition:opacity .2s ease-in}#ui-overlay:not(.open){-webkit-transition:visibility .2s step-end,opacity .2s ease-in;-moz-transition:visibility .2s step-end,opacity .2s ease-in;transition:visibility .2s step-end,opacity .2s ease-in}#ui-overlay{visibility:hidden;opacity:0;z-index:1000;position:fixed;top:0;left:0;height:100%;width:100%}#ui-dialog.open{display:block;-webkit-transition:opacity .2s ease-in;-moz-transition:opacity .2s ease-in;transition:opacity .2s ease-in}#ui-dialog{display:none;opacity:0;z-index:1100;position:fixed;top:50px;margin:0;padding:0}#ui-dialog-titlebar{position:relative}#ui-dialog-close{display:block;position:absolute;right:0;top:0;white-space:nowrap}#ui-dialog-body{overflow:auto;min-width:280px;height:90%;height:calc(100% - 2.1em - 34px)}#ui-dialog-body.settings [id|=setting-body]{display:table;width:100%}#ui-dialog-body.settings [id|=setting-label]{display:table-cell;padding:.4em 2em .4em 0}#ui-dialog-body.settings [id|=setting-label]+div{display:table-cell;min-width:8em;text-align:right;vertical-align:middle;white-space:nowrap}#ui-overlay{background-color:#000}#ui-overlay.open{opacity:.8}#ui-dialog{max-width:66em}#ui-dialog.open{opacity:1}#ui-dialog-titlebar{background-color:#444;min-height:24px}#ui-dialog-title{margin:0;padding:.2em 3.5em .2em .5em;font-size:1.5em;text-align:center;text-transform:uppercase}#ui-dialog-close{cursor:pointer;font-size:120%;margin:0;padding:0;width:3.6em;height:92%;background-color:transparent;border:1px solid transparent;-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s}#ui-dialog-close:hover{background-color:#b44;border-color:#d66}#ui-dialog-body{background-color:#111;border:1px solid #444;text-align:left;line-height:1.5;padding:1em}#ui-dialog-body>:first-child{margin-top:0}#ui-dialog-body hr{background-color:#444}#ui-dialog-body ul.buttons{margin:0;padding:0;list-style:none}#ui-dialog-body ul.buttons li{display:inline-block;margin:0;padding:.4em .4em 0 0}#ui-dialog-body ul.buttons>li+li>button{margin-left:1em}#ui-dialog-body.list{padding:0;min-width:140px}#ui-dialog-body.list ul{margin:0;padding:0;list-style:none;border:1px solid transparent}#ui-dialog-body.list li{margin:0}#ui-dialog-body.list li:not(:first-child){border-top:1px solid #444}#ui-dialog-body.list li a{display:block;padding:.25em .75em;border:1px solid transparent;color:#eee;text-decoration:none}#ui-dialog-body.list li a:hover{background-color:#333;border-color:#eee}#ui-dialog-body.saves{padding:0 0 1px}#ui-dialog-body.saves>:not(:first-child){border-top:1px solid #444}#ui-dialog-body.saves table{border-spacing:0;min-width:340px;width:100%}#ui-dialog-body.saves tr:not(:first-child){border-top:1px solid #444}#ui-dialog-body.saves td{padding:.33em .33em}#ui-dialog-body.saves td:first-child{min-width:1.5em;text-align:center}#ui-dialog-body.saves td:nth-child(3){line-height:1.2}#ui-dialog-body.saves td:last-child{text-align:right}#ui-dialog-body.saves .empty{color:#999}#ui-dialog-body.saves .datestamp{font-size:75%}#ui-dialog-body.saves ul.buttons li{padding:.4em}#ui-dialog-body.saves ul.buttons li:last-child{float:right}#ui-dialog-body.settings div[id|=setting-body]+div[id|=setting-body]{margin:.5em 0}#ui-dialog-body.settings [id|=setting-control]{white-space:nowrap}#ui-dialog-body.settings button[id|=setting-control]{color:#eee;background-color:transparent;border:1px solid #444;padding:.4em}#ui-dialog-body.settings button[id|=setting-control]:hover{background-color:#333;border-color:#eee}#ui-dialog-body.settings button[id|=setting-control].enabled{background-color:#282;border-color:#4a4}#ui-dialog-body.settings button[id|=setting-control].enabled:hover{background-color:#4a4;border-color:#6c6}#ui-dialog-body.share{min-width:140px}#ui-dialog-body.list a,#ui-dialog-body.settings span[id|=setting-input],#ui-dialog-close{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}#ui-dialog-body.saves button[id=saves-export]:before,#ui-dialog-body.saves button[id=saves-import]:before,#ui-dialog-body.saves button[id=saves-clear]:before,#ui-dialog-body.settings button[id|=setting-control].enabled:after,#ui-dialog-body.settings button[id|=setting-control]:after,#ui-dialog-close{font-family:tme-fa-icons;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;speak:none}#ui-dialog-body.saves button[id=saves-export]:before{content:\"\\e829\\00a0\"}#ui-dialog-body.saves button[id=saves-import]:before{content:\"\\e82a\\00a0\"}#ui-dialog-body.saves button[id=saves-clear]:before{content:\"\\e827\\00a0\"}#ui-dialog-body.settings button[id|=setting-control]:after{content:\"\\00a0\\00a0\\e830\"}#ui-dialog-body.settings button[id|=setting-control].enabled:after{content:\"\\00a0\\00a0\\e831\"}</style>\n<style id=\"style-debugview\" type=\"text/css\">#ui-bar-body>#debug-view-toggle:first-child{margin-top:1em}#ui-bar-body>#debug-view-toggle:first-child+*{margin-top:1em}#debug-view-toggle{text-transform:uppercase}#debug-view-toggle:after,#debug-view-toggle:before{font-family:tme-fa-icons;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;speak:none}#debug-view-toggle:before{content:\"\\e838\\00a0\"}html:not(.debug-view) #debug-view-toggle{color:#eee;background-color:transparent;border:1px solid #444;padding:.4em}html:not(.debug-view) #debug-view-toggle:hover{background-color:#333;border-color:#eee}html:not(.debug-view) #debug-view-toggle:after{content:\"\\00a0\\00a0\\e830\"}html.debug-view #debug-view-toggle{background-color:#282;border-color:#4a4}html.debug-view #debug-view-toggle:hover{background-color:#4a4;border-color:#6c6}html.debug-view #debug-view-toggle:after{content:\"\\00a0\\00a0\\e831\"}html.debug-view .debug{padding:.25em;background-color:#234}html.debug-view .debug[title]{cursor:help}html.debug-view .debug.block{display:inline-block;vertical-align:middle}html.debug-view .debug.invalid{text-decoration:line-through}html.debug-view .debug.hidden,html.debug-view .debug.hidden .debug{background-color:#555}html:not(.debug-view) .debug.hidden{display:none}html.debug-view .debug[data-name][data-type].nonvoid:after,html.debug-view .debug[data-name][data-type]:before{background-color:rgba(0,0,0,.25);font-family:monospace,monospace;white-space:pre}html.debug-view .debug[data-name][data-type]:before{content:attr(data-name)}html.debug-view .debug[data-name][data-type|=macro]:before{content:\"<<\" attr(data-name) \">>\"}html.debug-view .debug[data-name][data-type|=macro].nonvoid:after{content:\"<</\" attr(data-name) \">>\"}html.debug-view .debug[data-name][data-type|=html]:before{content:\"<\" attr(data-name) \">\"}html.debug-view .debug[data-name][data-type|=html].nonvoid:after{content:\"</\" attr(data-name) \">\"}html.debug-view .debug[data-name][data-type]:not(:empty):before{margin-right:.25em}html.debug-view .debug[data-name][data-type].nonvoid:not(:empty):after{margin-left:.25em}html.debug-view .debug[data-name][data-type|=special],html.debug-view .debug[data-name][data-type|=special]:before{display:block}</style>\n</head>\n<body>\n\t<div id=\"init-screen\">\n\t\t<p id=\"init-no-js\"><noscript>Apologies! JavaScript is required. Please enable it to continue.</noscript></p>\n\t\t<p id=\"init-lacking\">Apologies! You are using an <strong>outdated</strong> browser which lacks required capabilities. Please <a href=\"http://browsehappy.com/\">upgrade your browser</a> to improve your experience.</p>\n\t\t<p id=\"init-loading\">Initializing. Please wait…<br /><progress></progress></p>\n\t</div>\n\t<div id=\"store-area\" hidden>{{STORY_DATA}}</div>\n\t<script id=\"script-sugarcube\" type=\"text/javascript\">\n\t/*! SugarCube JS\n\n\tSugarCube includes code from TiddlyWiki 1.2.39, which has the following license:\n\t--------------------------------------------------------------------------------\n\n\tTiddlyWiki 1.2.39 by Jeremy Ruston, (jeremy [at] osmosoft [dot] com)\n\n\tPublished under a BSD open source license\n\n\tCopyright (c) Osmosoft Limited 2005\n\n\tRedistribution and use in source and binary forms, with or without modification,\n\tare permitted provided that the following conditions are met:\n\n\tRedistributions of source code must retain the above copyright notice, this list\n\tof conditions and the following disclaimer.\n\n\tRedistributions in binary form must reproduce the above copyright notice, this\n\tlist of conditions and the following disclaimer in the documentation and/or\n\tother materials provided with the distribution.\n\n\tNeither the name of the Osmosoft Limited nor the names of its contributors may\n\tbe used to endorse or promote products derived from this software without\n\tspecific prior written permission.\n\n\tTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n\tANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n\tWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n\tDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\n\tANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n\t(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\tLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n\tANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\t(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n\tSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\t*/\n\tif(document.documentElement.classList.contains(\"init-loading\")){!function(window,document,jQuery,undefined){\"use strict\";function alertUser(e,t,r,n){var a=\"Apologies! A \"+e+\" problem has occurred.\";switch(e){case\"fatal\":a+=\" Aborting.\";break;case\"technical\":a+=\" You may be able to continue, but some parts may not work properly.\"}(null!=t||null!=r)&&(a+=\"\\n\\nError\",null!=t&&(a+=\" [\"+t+\"]\"),a+=\": \"+(null!=r?r.replace(/^(?:(?:Uncaught\\s+)?Error:\\s+)+/,\"\"):\"unknown error\")+\".\"),n&&n.stack&&(a+=\"\\n\\nStack Trace:\\n\"+n.stack),window.alert(a)}function fatalAlert(e,t,r){alertUser(\"fatal\",e,t,r)}function technicalAlert(e,t,r){alertUser(\"technical\",e,t,r)}function clone(e){if(\"object\"!=typeof e||null==e)return e;if(\"function\"==typeof e.clone)return e.clone(!0);if(e.nodeType&&\"function\"==typeof e.cloneNode)return e.cloneNode(!0);var t;return Array.isArray(e)?t=[]:e instanceof Date?t=new Date(e.getTime()):e instanceof Map?(t=new Map,e.forEach(function(e,r){t.set(r,clone(e))})):e instanceof RegExp?t=new RegExp(e):e instanceof Set?(t=new Set,e.forEach(function(e){t.add(clone(e))})):t=Object.create(Object.getPrototypeOf(e)),Object.keys(e).forEach(function(r){t[r]=clone(e[r])}),t}function evalJavaScript(code,output){return function(code,output){return eval(code)}.call(output?{output:output}:null,String(code),output)}function evalTwineScript(code,output){return function(code,output){return eval(code)}.call(output?{output:output}:null,Wikifier.parse(String(code)),output)}function printableStringOrDefault(e,t){switch(typeof e){case\"number\":if(isNaN(e))return t;break;case\"object\":return null===e?t:Array.isArray(e)||e instanceof Set?Array.from(e).map(function(e){return printableStringOrDefault(e,t)}).join(\", \"):e instanceof Map?\"( \"+Array.from(e).map(function(e){return printableStringOrDefault(e[0],t)+\" ⇒ \"+printableStringOrDefault(e[1],t)}).join(\"; \")+\" )\":e instanceof Date?e.toLocaleString():\"function\"==typeof e.toString&&e.toString!==Object.prototype.toString?e.toString():\"[object]\";case\"function\":case\"undefined\":return t}return String(e)}function addStyle(e){var t=document.getElementById(\"style-story\");null===t&&(t=document.createElement(\"style\"),t.id=\"style-story\",t.type=\"text/css\",document.head.appendChild(t)),t=new StyleWrapper(t);var r=/\\[[<>]?[Ii][Mm][Gg]\\[(?:\\s|\\S)*?\\]\\]+/g;r.test(e)&&(e=e.replace(r,function(e){var t=Wikifier.helpers.parseSquareBracketedMarkup({source:e,matchStart:0});if(t.hasOwnProperty(\"error\")||t.pos<e.length)return e;var r=t.source;if(\"data:\"!==r.slice(0,5)&&Story.has(r)){var n=Story.get(r);n.tags.contains(\"Twine.image\")&&(r=n.text)}return'url(\"'+r.replace(/\"/g,\"%22\")+'\")'})),t.add(e)}function convertBreaksToParagraphs(e){for(var t,r=document.createDocumentFragment(),n=document.createElement(\"p\");null!==(t=e.firstChild);){if(t.nodeType===Node.ELEMENT_NODE){var a=t.nodeName.toUpperCase();switch(a){case\"BR\":if(null!==t.nextSibling&&t.nextSibling.nodeType===Node.ELEMENT_NODE&&\"BR\"===t.nextSibling.nodeName.toUpperCase()){e.removeChild(t.nextSibling),e.removeChild(t),r.appendChild(n),n=document.createElement(\"p\");continue}if(!n.hasChildNodes()){e.removeChild(t);continue}break;case\"ADDRESS\":case\"ARTICLE\":case\"ASIDE\":case\"BLOCKQUOTE\":case\"CENTER\":case\"DIV\":case\"DL\":case\"FIGURE\":case\"FOOTER\":case\"FORM\":case\"H1\":case\"H2\":case\"H3\":case\"H4\":case\"H5\":case\"H6\":case\"HEADER\":case\"HR\":case\"MAIN\":case\"NAV\":case\"OL\":case\"P\":case\"PRE\":case\"SECTION\":case\"TABLE\":case\"UL\":n.hasChildNodes()&&(r.appendChild(n),n=document.createElement(\"p\")),r.appendChild(t);continue}}n.appendChild(t)}n.hasChildNodes()&&r.appendChild(n),e.appendChild(r)}function insertElement(e,t,r,n,a,i){var s=document.createElement(t);return r&&(s.id=r),n&&(s.className=n),i&&(s.title=i),a&&insertText(s,a),e&&e.appendChild(s),s}function insertText(e,t){return e.appendChild(document.createTextNode(t))}function removeChildren(e){if(e)for(;e.hasChildNodes();)e.removeChild(e.firstChild)}function removeElement(e){\"function\"==typeof e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function safeActiveElement(){try{return document.activeElement||null}catch(e){return null}}function setPageElement(e,t,r){var n=\"object\"==typeof e?e:document.getElementById(e);if(null==n)return null;removeChildren(n),Array.isArray(t)||(t=[t]);for(var a=0,i=t.length;i>a;++a)if(Story.has(t[a]))return new Wikifier(n,Story.get(t[a]).processText().trim()),n;return null!=r&&(r=r.trim(),\"\"!==r&&new Wikifier(n,r)),n}function throwError(e,t,r){return insertElement(e,\"span\",null,\"error\",strings.errors.title+\": \"+t,r),!1}function addAccessibleClickHandler(e,t,r,n,a){if(arguments.length<2)throw new Error(\"addAccessibleClickHandler insufficient number of parameters\");if(\"function\"==typeof t&&(a=n,n=r,r=t,t=undefined),\"function\"!=typeof r)throw new TypeError(\"addAccessibleClickHandler handler parameter must be a function\");return jQuery(e).ariaClick({namespace:a,one:!!n,selector:t},r)}function fade(e,t){function r(){a+=.05*o,n(s,Math.easeInOut(a)),(1===o&&a>=1||-1===o&&0>=a)&&(e.style.visibility=\"in\"===t.fade?\"visible\":\"hidden\",s.parentNode.replaceChild(e,s),s=null,window.clearInterval(i),t.onComplete&&t.onComplete())}function n(e,t){var r=Math.floor(100*t);e.style.zoom=1,e.style.filter=\"alpha(opacity=\"+r+\")\",e.style.opacity=t}var a,i,s=e.cloneNode(!0),o=\"in\"===t.fade?1:-1;e.parentNode.replaceChild(s,e),\"in\"===t.fade?(a=0,s.style.visibility=\"visible\"):a=1,n(s,a),i=window.setInterval(r,25)}function scrollWindowTo(e,t){function r(){l+=t,window.scroll(0,i+u*(o*Math.easeInOut(l))),l>=1&&window.clearInterval(c)}function n(e){for(var t=0;e.offsetParent;)t+=e.offsetTop,e=e.offsetParent;return t}function a(e){var t=n(e),r=t+e.offsetHeight,a=window.scrollY?window.scrollY:document.body.scrollTop,i=window.innerHeight?window.innerHeight:document.body.clientHeight,s=a+i;return a>t?t:r>s&&e.offsetHeight<i?t-(i-e.offsetHeight)+20:t}null==t?t=.1:(\"number\"!=typeof t&&(t=Number(t)),isNaN(t)||0>t?t=.1:t>1&&(t=1));var i=window.scrollY?window.scrollY:document.body.scrollTop,s=a(e),o=Math.abs(i-s),l=0,u=i>s?-1:1,c=window.setInterval(r,25)}function AudioWrapper(e){Object.defineProperties(this,{audio:{value:e},_faderId:{writable:!0,value:null}}),\"metadata\"!==this.audio.preload&&\"auto\"!==this.audio.preload&&(this.audio.preload=\"metadata\")}function PRNGWrapper(e,t){Object.defineProperties(this,new Math.seedrandom(e,t,function(e,t){return{_prng:{value:e},seed:{writable:!0,value:t},pull:{writable:!0,value:0},random:{value:function(){return++this.pull,this._prng()}}}}))}function StyleWrapper(e){if(null==e)throw new TypeError(\"StyleWrapper style parameter must be an HTMLStyleElement object\");Object.defineProperties(this,{style:{value:e}})}function DebugView(e,t,r,n){Object.defineProperties(this,{parent:{value:e},view:{value:document.createElement(\"span\")},break:{value:document.createElement(\"wbr\")}}),this.view.setAttribute(\"data-type\",null!=t?t:\"\"),this.view.setAttribute(\"data-name\",null!=r?r:\"\"),this.view.className=\"debug\",this.view.title=n,this.parent.appendChild(this.view),this.parent.appendChild(this.break)}function either(){return 0!==arguments.length?Array.prototype.concat.apply([],arguments).random():void 0}function lastVisited(){if(State.isEmpty()||0===arguments.length)return-1;var e,t=Array.prototype.concat.apply([],arguments);if(t.length>1){e=State.length;for(var r=0,n=t.length;n>r;++r)e=Math.min(e,lastVisited(t[r]))}else{var a=State.history,i=t[0];for(e=State.length-1;e>=0&&a[e].title!==i;--e);-1!==e&&(e=State.length-1-e)}return e}function passage(){return State.passage}function previous(e){if(0!==arguments.length){if(1>e)throw new RangeError(\"previous offset parameter must be a positive integer greater than zero\");return State.length>e?State.peek(e).title:\"\"}for(var t=State.length-2;t>=0;--t)if(State.history[t].title!==State.passage)return State.history[t].title;return State.expiredUnique}function random(e,t){if(0===arguments.length)throw new Error(\"random called with insufficient arguments\");if(1===arguments.length&&(t=e,e=0),e>t){var r=t;t=e,e=r}return Math.floor(State.random()*(t-e+1))+e}function randomFloat(e,t){if(0===arguments.length)throw new Error(\"randomFloat called with insufficient arguments\");if(1===arguments.length&&(t=e,e=0),e>t){var r=t;t=e,e=r}return State.random()*(t-e)+e}function tags(){if(0===arguments.length)return Story.get(State.passage).tags.slice(0);for(var e=Array.prototype.concat.apply([],arguments),t=[],r=0,n=e.length;n>r;++r)t=t.concat(Story.get(e[r]).tags);return t}function time(){return null===State.lastPlay?0:Date.now()-State.lastPlay}function turns(){return State.expired+State.length}function variables(){return State.variables}function visited(){if(State.isEmpty())return 0;var e,t=Array.prototype.concat.apply([],0===arguments.length?[State.passage]:arguments);if(t.length>1){e=State.length;for(var r=0,n=t.length;n>r;++r)e=Math.min(e,visited(t[r]))}else{var a=State.history,i=t[0];e=0;for(var r=0,n=State.length;n>r;++r)a[r].title===i&&++e}return e}function visitedTags(){if(0===arguments.length)return 0;for(var e=Array.prototype.concat.apply([],arguments),t=e.length,r=0,n=0,a=State.length;a>n;++n){var i=Story.get(State.history[n].title).tags;if(0!==i.length){for(var s=0,o=0;t>o;++o)i.contains(e[o])&&++s;s===t&&++r}}return r}window.onerror=function(e,t,r,n,a){technicalAlert(null,e,a)};var strings={identity:\"game\",aborting:\"Aborting\",cancel:\"Cancel\",close:\"Close\",ok:\"OK\",errors:{title:\"Error\",nonexistentPassage:'the passage \"%passage%\" does not exist',saveMissingData:\"save is missing required data. Either you've loaded a file which is not a save or the save has become corrupted\",saveIdMismatch:\"save is from the wrong %identity%\"},warnings:{degraded:\"Apologies! Your browser either lacks some of the capabilities required by this %identity% or has disabled them, so this %identity% is running in a degraded mode. You may be able to continue, but some parts may not work properly.\\n\\nThe former may, probably, be solved by upgrading your browser. The latter may be solved by loosening its security restrictions\"+(\"file:\"===window.location.protocol?\" or, perhaps, by viewing this %identity% via the HTTP protocol.\":\".\")},debugView:{title:\"Debug View\",toggle:\"Toggle the debug view\"},uiBar:{toggle:\"Toggle the UI bar\",backward:\"Go backward within the %identity% history\",forward:\"Go forward within the %identity% history\",jumpto:\"Jump to a specific point within the %identity% history\"},jumpto:{title:\"Jump To\",turn:\"Turn\",unavailable:\"No jump points currently available…\"},saves:{title:\"Saves\",disallowed:\"Saving has been disallowed on this passage.\",emptySlot:\"— slot empty —\",incapable:'Apologies! Your browser either lacks the capabilities required to support saves or has disabled them, so saves have been disabled for this session.<br><br>The former may, probably, be solved by <a href=\"http://browsehappy.com/\" target=\"_blank\">upgrading your browser</a>. The latter may be solved by loosening its security restrictions'+(\"file:\"===window.location.protocol?\" or, perhaps, by viewing this %identity% via the HTTP protocol.\":\".\"),labelAuto:\"Autosave\",labelDelete:\"Delete\",labelExport:\"Save to Disk…\",labelImport:\"Load from Disk…\",labelLoad:\"Load\",labelClear:\"Delete All\",labelSave:\"Save\",labelSlot:\"Slot\",savedOn:\"Saved on\",unavailable:\"No save slots found…\",unknownDate:\"unknown\"},settings:{title:\"Settings\",off:\"Off\",on:\"On\",reset:\"Reset to Defaults\"},restart:{title:\"Restart\",prompt:\"Are you sure that you want to restart? Unsaved progress will be lost.\"},share:{title:\"Share\"},alert:{},autoload:{title:\"Autoload\",cancel:\"Go to start\",ok:\"Load autosave\",prompt:\"An autosave exists. Load it now or go to the start?\"},macros:{back:{text:\"Back\"},return:{text:\"Return\"}}};Array.prototype.includes||Object.defineProperty(Array.prototype,\"includes\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.includes called on null or undefined\");return-1!==Array.prototype.indexOf.apply(this,arguments)}}),Object.create&&\"function\"==typeof Object.create||Object.defineProperty(Object,\"create\",{configurable:!0,writable:!0,value:function(){function e(){}return function(t){if(0===arguments.length)throw new Error(\"polyfill Object.create implementation requires a parameter\");if(1!==arguments.length)throw new Error(\"polyfill Object.create implementation only accepts one parameter\");var r;if(null===t)r={__proto__:null};else{if(\"object\"!=typeof t&&\"function\"!=typeof t)throw new TypeError(\"polyfill Object.create proto parameter must be an object or null\");e.prototype=t,r=new e,r.__proto__=t}return r}}()}),Object.defineProperty(Array,\"random\",{configurable:!0,writable:!0,value:function(e,t,r){return 2===arguments.length&&(r=t,t=0),Array.isArray(e)?e.random(t,r):e.hasOwnProperty(\"length\")?Array.from(e).random(t,r):undefined}}),Object.defineProperty(Array.prototype,\"contains\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.contains called on null or undefined\");return-1!==Array.prototype.indexOf.apply(this,arguments)}}),Object.defineProperty(Array.prototype,\"containsAll\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.containsAll called on null or undefined\");if(1===arguments.length)return Array.isArray(arguments[0])?Array.prototype.containsAll.apply(this,arguments[0]):-1!==Array.prototype.indexOf.apply(this,arguments);for(var e=0,t=arguments.length;t>e;++e)if(!Array.prototype.some.call(this,function(e){return e===this.val},{val:arguments[e]}))return!1;return!0}}),Object.defineProperty(Array.prototype,\"containsAny\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.containsAny called on null or undefined\");if(1===arguments.length)return Array.isArray(arguments[0])?Array.prototype.containsAny.apply(this,arguments[0]):-1!==Array.prototype.indexOf.apply(this,arguments);for(var e=0,t=arguments.length;t>e;++e)if(Array.prototype.some.call(this,function(e){return e===this.val},{val:arguments[e]}))return!0;return!1}}),Object.defineProperty(Array.prototype,\"count\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.count called on null or undefined\");for(var e=Array.prototype.indexOf,t=arguments[0],r=Number(arguments[1]||0),n=0;-1!==(r=e.call(this,t,r));)++n,++r;return n}}),Object.defineProperty(Array.prototype,\"flatten\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.flatten called on null or undefined\");return this.reduce(function(e,t){return e.concat(Array.isArray(t)?t.flatten():t)},[])}}),Object.defineProperty(Array.prototype,\"pluck\",{configurable:!0,writable:!0,value:function(e,t){if(null==this)throw new TypeError(\"Array.prototype.pluck called on null or undefined\");if(0!==this.length)return 1===arguments.length&&(t=e,e=0),null==e?e=0:0>e?e=0:e>=this.length&&(e=this.length-1),null==t?t=this.length-1:0>t?t=0:t>=this.length&&(t=this.length-1),Array.prototype.splice.call(this,random(e,t),1)[0]}}),Object.defineProperty(Array.prototype,\"random\",{configurable:!0,writable:!0,value:function(e,t){if(null==this)throw new TypeError(\"Array.prototype.random called on null or undefined\");if(0!==this.length)return 1===arguments.length&&(t=e,e=0),null==e?e=0:0>e?e=0:e>=this.length&&(e=this.length-1),null==t?t=this.length-1:0>t?t=0:t>=this.length&&(t=this.length-1),this[random(e,t)]}}),Object.defineProperty(Array.prototype,\"shuffle\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Array.prototype.shuffle called on null or undefined\");if(0!==this.length){for(var e=this.length-1;e>0;--e){var t=Math.floor(Math.random()*(e+1)),r=this[e];this[e]=this[t],this[t]=r}return this}}}),Object.defineProperty(Function.prototype,\"partial\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"Function.prototype.partial called on null or undefined\");var e=Array.prototype.slice,t=this,r=e.call(arguments,0);return function(){for(var n=[],a=0,i=0;i<r.length;++i)n.push(r[i]===undefined?arguments[a++]:r[i]);return t.apply(this,n.concat(e.call(arguments,a)))}}}),Object.defineProperty(Math,\"clamp\",{configurable:!0,writable:!0,value:function(e,t,r){return e=Number(e),isNaN(e)?NaN:e.clamp(t,r)}}),Object.defineProperty(Math,\"easeInOut\",{configurable:!0,writable:!0,value:function(e){return e=Number(e),1-(Math.cos(e*Math.PI)+1)/2}}),Object.defineProperty(Number.prototype,\"clamp\",{configurable:!0,writable:!0,value:function(e,t){var r=Number(this);return e>r&&(r=e),r>t&&(r=t),r}}),Object.defineProperty(RegExp,\"escape\",{configurable:!0,writable:!0,value:function(e){return String(e).replace(/[-.*+?^${}()|\\[\\]\\/\\\\]/g,\"\\\\$&\")}}),Object.defineProperty(String,\"format\",{configurable:!0,writable:!0,value:function(e){function t(e,t,r){if(!t)return e;var n=Math.abs(t)-e.length;if(1>n)return e;var a=Array(n+1).join(r);return 0>t?e+a:a+e}if(arguments.length<2)return 0===arguments.length?\"\":e;var r=2===arguments.length&&Array.isArray(arguments[1])?arguments[1].slice(0):Array.prototype.slice.call(arguments,1);return 0===r.length?e:e.replace(/{(\\d+)(?:,([+-]?\\d+))?}/g,function(e,n,a){var i=r[n];if(null==i)return\"\";for(;\"function\"==typeof i;)i=i();switch(typeof i){case\"string\":break;case\"object\":i=JSON.stringify(i);break;default:i=String(i)}return t(i,a?parseInt(a,10):0,\" \")})}}),Object.defineProperty(String.prototype,\"contains\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"String.prototype.contains called on null or undefined\");return-1!==String.prototype.indexOf.apply(this,arguments)}}),Object.defineProperty(String.prototype,\"count\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"String.prototype.count called on null or undefined\");var e=String(arguments[0]||\"\");if(\"\"===e)return 0;for(var t=String.prototype.indexOf,r=e.length,n=Number(arguments[1]||0),a=0;-1!==(n=t.call(this,e,n));)++a,n+=r;return a}}),Object.defineProperty(String.prototype,\"splice\",{configurable:!0,writable:!0,value:function(e,t,r){if(null==this)throw new TypeError(\"String.prototype.splice called on null or undefined\");var n=this.length>>>0;if(0===n)return\"\";e=+e||0,isFinite(e)?0>e&&(e+=n,0>e&&(e=0)):e=0,e>n&&(e=n),t=+t||0,(!isFinite(t)||0>t)&&(t=0);var a=this.slice(0,e);return\"undefined\"!=typeof r&&(a+=r),n>e+t&&(a+=this.slice(e+t)),a}}),Object.defineProperty(String.prototype,\"splitOrEmpty\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"String.prototype.splitOrEmpty called on null or undefined\");return\"\"===String(this)?[]:String.prototype.split.apply(this,arguments)}}),String.prototype.trimLeft||Object.defineProperty(String.prototype,\"trimLeft\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"String.prototype.trimLeft called on null or undefined\");return this.replace(/^[\\s\\uFEFF\\xA0]+/,\"\")}}),String.prototype.trimRight||Object.defineProperty(String.prototype,\"trimRight\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"String.prototype.trimRight called on null or undefined\");return this.replace(/[\\s\\uFEFF\\xA0]+$/,\"\")}}),Object.defineProperty(String.prototype,\"ltrim\",{configurable:!0,writable:!0,value:String.prototype.trimLeft}),Object.defineProperty(String.prototype,\"rtrim\",{configurable:!0,writable:!0,value:String.prototype.trimRight}),Object.defineProperty(String.prototype,\"readBracketedList\",{configurable:!0,writable:!0,value:function(){if(null==this)throw new TypeError(\"String.prototype.readBracketedList called on null or undefined\");for(var e,t=new RegExp(\"(?:\\\\[\\\\[((?:\\\\s|\\\\S)*?)\\\\]\\\\])|([^\\\"'\\\\s]\\\\S*)\",\"gm\"),r=[];null!==(e=t.exec(this));)e[1]?r.push(e[1]):e[2]&&r.push(e[2]);return r}}),Object.defineProperty(Date.prototype,\"toJSON\",{configurable:!0,writable:!0,value:function(){return[\"(revive:date)\",this.toISOString()]}}),Object.defineProperty(Function.prototype,\"toJSON\",{configurable:!0,writable:!0,value:function(){return[\"(revive:eval)\",\"(\"+this.toString()+\")\"]}}),Object.defineProperty(Map.prototype,\"toJSON\",{configurable:!0,writable:!0,value:function(){return[\"(revive:map)\",Array.from(this)]}}),Object.defineProperty(RegExp.prototype,\"toJSON\",{configurable:!0,writable:!0,value:function(){return[\"(revive:eval)\",this.toString()]}}),Object.defineProperty(Set.prototype,\"toJSON\",{configurable:!0,writable:!0,value:function(){return[\"(revive:set)\",Array.from(this)]}}),Object.defineProperty(JSON,\"reviveWrapper\",{configurable:!0,writable:!0,value:function(e){if(\"string\"!=typeof e)throw new TypeError(\"JSON.reviveWrapper code parameter must be a string\");return[\"(revive:eval)\",e]}}),Object.defineProperties(JSON,{_real_parse:{value:JSON.parse},parse:{configurable:!0,writable:!0,value:function(text,reviver){return JSON._real_parse(text,function(key,value){if(Array.isArray(value)&&2===value.length)switch(value[0]){case\"(revive:set)\":value=new Set(value[1]);break;case\"(revive:map)\":value=new Map(value[1]);break;case\"(revive:date)\":value=new Date(value[1]);break;case\"(revive:eval)\":try{value=eval(value[1])}catch(e){}}else if(\"string\"==typeof value&&\"@@revive@@\"===value.slice(0,10))try{value=eval(value.slice(10))}catch(e){}if(\"function\"==typeof reviver)try{value=reviver(key,value)}catch(e){}return value})}}}),function(){var e=function(e){(13===e.which||32===e.which)&&(e.preventDefault(),jQuery(safeActiveElement()||this).trigger(\"click\"))},t=function(e){return function(){var t=jQuery(this);t.is(\"[aria-pressed]\")&&t.attr(\"aria-pressed\",\"true\"===t.attr(\"aria-pressed\")?\"false\":\"true\"),e.apply(this,arguments)}},r=function(e){return t(function(){jQuery(this).off(\".aria-clickable\").removeAttr(\"tabindex aria-controls aria-pressed\").not(\"a,button\").removeAttr(\"role\").end().filter(\"button\").prop(\"disabled\",!0),e.apply(this,arguments)})};jQuery.fn.extend({ariaClick:function(n,a){return 0===arguments.length?this:(null==a&&(a=n,n=undefined),n=jQuery.extend({namespace:undefined,one:!1,selector:undefined,data:undefined,controls:undefined,pressed:undefined,label:undefined},n),\"string\"!=typeof n.namespace?n.namespace=\"\":\".\"!==n.namespace[0]&&(n.namespace=\".\"+n.namespace),\"boolean\"==typeof n.pressed&&(n.pressed=n.pressed?\"true\":\"false\"),this.filter(\"button\").prop(\"type\",\"button\"),this.not(\"a,button\").attr(\"role\",\"button\"),this.attr(\"tabindex\",0),null!=n.controls&&this.attr(\"aria-controls\",n.controls),null!=n.pressed&&this.attr(\"aria-pressed\",n.pressed),null!=n.label&&this.attr({\"aria-label\":n.label,title:n.label}),this.not(\"button\").on(\"keypress.aria-clickable\"+n.namespace,n.selector,e),this.on(\"click.aria-clickable\"+n.namespace,n.selector,n.data,n.one?r(a):t(a)),this)}})}();var Browser=Object.freeze(function(){var e={userAgent:navigator.userAgent.toLowerCase()};return e.isGecko=navigator&&\"Gecko\"===navigator.product&&!/webkit|trident/.test(e.userAgent),e.isIE=/msie|trident/.test(e.userAgent)&&!e.userAgent.contains(\"opera\"),e.ieVersion=function(){var t=/(?:msie\\s+|rv:)(\\d{1,2}\\.\\d)/.exec(e.userAgent);return t?+t[1]:0}(),e.isOpera=e.userAgent.contains(\"opera\")||e.userAgent.contains(\" opr/\"),e.operaVersion=function(){var t=new RegExp((/applewebkit|chrome/.test(e.userAgent)?\"opr\":\"version\")+\"\\\\/(\\\\d{1,2}\\\\.\\\\d+)\"),r=t.exec(e.userAgent);return r?+r[1]:0}(),e.isMobile=Object.freeze({any:function(){var t=e.isMobile;return t.Android||t.BlackBerry||t.iOS||t.Windows},Android:/android/.test(e.userAgent),BlackBerry:/blackberry/.test(e.userAgent),iOS:/ip(?:hone|ad|od)/.test(e.userAgent),Windows:/iemobile/.test(e.userAgent)}),e}()),Has=Object.freeze(function(){function e(e){try{if(null!=e&&e.length>=0){var t=\"SugarCube.WebStorage.test\",r=\"1701 Guilty Scott\";if(e.setItem(t,r),e.getItem(t)===r)return e.removeItem(t),!0}}catch(e){}return!1}return{localStorage:\"localStorage\"in window&&e(window.localStorage),sessionStorage:\"sessionStorage\"in window&&e(window.sessionStorage),fileAPI:\"File\"in window&&\"FileList\"in window&&\"FileReader\"in window&&!Browser.isMobile.any()&&(!Browser.isOpera||Browser.operaVersion>=15),audio:\"function\"==typeof document.createElement(\"audio\").canPlayType}}()),browser=Browser,has=Has,KeyValueStore=function(){function e(e,n,a){var i=null;switch(e){case\"cookie\":i=new r(n,a);break;case\"webStorage\":i=new t(n,a),i._ok||(i=new r(n,a));break;default:throw new Error(\"unknown driver type\")}if(!i._ok)throw new Error(\"unknown driver error\");Object.defineProperties(this,{_driver:{value:i},name:{value:i.name},type:{value:e},id:{value:a},persist:{value:n}})}function t(e,t){var r=null,n=null;e?Has.localStorage&&(r=window.localStorage,n=\"localStorage\"):Has.sessionStorage&&(r=window.sessionStorage,n=\"sessionStorage\"),Object.defineProperties(this,{_ok:{value:null!==r},_engine:{value:r},_prefix:{value:t+\".\"},_prefixRe:{value:new RegExp(\"^\"+RegExp.escape(t+\".\"))},name:{value:n},id:{value:t},persist:{value:e}})}function r(e,t){Object.defineProperties(this,{_ok:{value:\"cookie\"in document},_prefix:{value:t+\".\"},_prefixRe:{value:new RegExp(\"^\"+RegExp.escape(t+\".\"))},name:{value:\"cookie\"},id:{value:t},persist:{value:e}})}return Object.defineProperties(e.prototype,{length:{get:function(){return null===this._driver?0:this._driver.length}},keys:{value:function(){return null===this._driver?[]:this._driver.keys()}},clear:{value:function(){if(null===this._driver)return!1;for(var e=this.keys(),t=0;t<e.length;++t)this.delete(e[t]);return!0}},has:{value:function(e){return null!==this._driver&&e?this._driver.has(e):!1}},get:{value:function(e){if(null===this._driver||!e)return null;var t=this._driver.get(e);if(null==t)return null;var r=!1;if(\"#~\"===t.slice(0,2))t=this._driver.deserialize(t.slice(2)),r=!0;else try{t=this._driver.deserialize(t)}catch(e){t=JSON.parse(t),r=!0}if(r&&!this.set(e,t,!0))throw new Error('unable to upgrade legacy value for key \"'+e+'\" to new format');return t}},set:{value:function(e,t,r){return null!==this._driver&&e?this._driver.set(e,this._driver.serialize(t),r):!1}},delete:{value:function(e,t){return null!==this._driver&&e?this._driver.delete(e,t):!1}},deleteMatching:{value:function(e,t){if(null===this._driver||!e)return!1;for(var r=this.keys(),n=new RegExp(\"^\"+RegExp.escape(e)),a=0;a<r.length;++a)n.test(r[a])&&this.delete(r[a],t);return!0}}}),Object.defineProperties(t.prototype,{serialize:{value:function(e){return LZString.compressToUTF16(JSON.stringify(e))}},deserialize:{value:function(e){return JSON.parse(LZString.decompressFromUTF16(e))}},length:{get:function(){return this.keys().length}},keys:{value:function(){if(null===this._engine)return[];for(var e=[],t=0;t<this._engine.length;++t){var r=this._engine.key(t);this._prefixRe.test(r)&&e.push(r.replace(this._prefixRe,\"\"))}return e}},has:{value:function(e){return null!==this._engine&&e?null!=this._engine.getItem(this._prefix+e):!1}},get:{value:function(e){return null!==this._engine&&e?this._engine.getItem(this._prefix+e):null}},set:{value:function(e,t,r){if(null===this._engine||!e)return!1;try{this._engine.setItem(this._prefix+e,t)}catch(t){return r||technicalAlert(null,'unable to set key \"'+e+'\"; '+(/quota_?(?:exceeded|reached)/i.test(t.name)?this.name+\" quota exceeded\":\"unknown error\"),t),!1}return!0}},delete:{value:function(e){return null!==this._engine&&e?(this._engine.removeItem(this._prefix+e),!0):!1}}}),Object.defineProperties(r.prototype,{_setCookie:{value:function(e,t,r){if(\"cookie\"in document){var n=encodeURIComponent(this._prefix+e)+\"=\";null!=t&&(n+=encodeURIComponent(t)),null!=r&&(n+=\"; \"+r),n+=\"; path=/\",document.cookie=n}}},_getCookies:{value:function(){var e={};if(\"cookie\"in document&&\"\"!==document.cookie)for(var t=document.cookie.split(/;\\s*/),r=0;r<t.length;++r){var n=t[r].split(\"=\"),a=decodeURIComponent(n[0]);this._prefixRe.test(a)&&(e[a]=decodeURIComponent(n[1]))}return e}},serialize:{value:function(e){return LZString.compressToBase64(JSON.stringify(e))}},deserialize:{value:function(e){return JSON.parse(LZString.decompressFromBase64(e))}},length:{get:function(){return this.keys().length}},keys:{value:function(){return Object.keys(this._getCookies())}},has:{value:function(e){return e?this._getCookies().hasOwnProperty(this._prefix+e):!1}},get:{value:function(e){if(!e)return null;var t=this._getCookies(),r=this._prefix+e;return t.hasOwnProperty(r)?t[r]:null}},set:{value:function(e,t,r){if(!e)return!1;try{this._setCookie(e,t,this.persist?\"Tue, 19 Jan 2038 03:14:07 GMT\":undefined)}catch(t){return r||technicalAlert(null,'unable to set key \"'+e+'\"; cookie error: '+t.message,t),!1}return this.has(e)?!0:(r||technicalAlert(null,'unable to set key \"'+e+'\"; unknown cookie error'),!1)}},delete:{value:function(e,t){if(!e)return!1;try{this._setCookie(e,undefined,\"Thu, 01 Jan 1970 00:00:00 GMT\")}catch(r){return t||technicalAlert(null,'unable to delete key \"'+e+'\"; cookie error: '+r.message,r),!1}var r=this.get(e);return null!==r&&\"\"!==r?(t||technicalAlert(null,'unable to delete key \"'+e+'\"; unknown cookie error'),!1):!0}}}),e}();Object.defineProperties(AudioWrapper.prototype,{duration:{get:function(){return this.audio.duration}},time:{get:function(){return this.audio.currentTime},set:function(e){this.hasMetadata()?this.audio.currentTime=e:jQuery(this.audio).off(\"loadedmetadata.AudioWrapper:time\").one(\"loadedmetadata.AudioWrapper:time\",function(){this.currentTime=e})}},volume:{get:function(){return this.audio.volume},set:function(e){this.audio.volume=Math.clamp(e,0,1)}},controls:{get:function(){return this.audio.controls},set:function(e){this.audio.controls=!!e}},hasMetadata:{value:function(){return this.audio.readyState>=HTMLMediaElement.HAVE_METADATA}},hasData:{value:function(){return this.audio.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA}},noSource:{value:function(){return this.audio.networkState===HTMLMediaElement.NETWORK_NO_SOURCE}},isPlaying:{value:function(){return!(this.audio.ended||this.audio.paused||!this.hasData())}},isEnded:{value:function(){return this.audio.ended}},isPaused:{value:function(){return this.audio.paused}},isMuted:{value:function(){return this.audio.muted}},isLooped:{value:function(){return this.audio.loop}},load:{value:function(){\"auto\"!==this.audio.preload&&(this.audio.preload=\"auto\"),this.audio.load()}},play:{value:function(){this.hasData()||this.load(),this.audio.play()}},pause:{value:function(){this.audio.pause()}},stop:{value:function(){this.audio.pause(),this.time=0}},mute:{value:function(){this.audio.muted=!0}},unmute:{value:function(){this.audio.muted=!1}},loop:{value:function(){this.audio.loop=!0}},unloop:{value:function(){this.audio.loop=!1}},fadeWithDuration:{value:function(e,t,r){null!==this._faderId&&(clearInterval(this._faderId),this._faderId=null),t=Math.clamp(t,0,1),r=Math.clamp(r,0,1),t!==r&&(this.volume=t,jQuery(this.audio).off(\"timeupdate.AudioWrapper:fadeWithDuration\").one(\"timeupdate.AudioWrapper:fadeWithDuration\",function(n){return function(){var a,i;r>t?(a=t,i=r):(a=r,i=t),e=Math.clamp(e,1,n.duration||5);var s=25,o=(r-t)/(e/(s/1e3));n._faderId=setInterval(function(){return n.isPlaying()?(n.volume=Math.clamp(n.volume+o,a,i),0===n.volume&&n.pause(),void(n.volume===r&&(clearInterval(n._faderId),n._faderId=null))):(clearInterval(n._faderId),void(n._faderId=null))},s)}}(this)),this.play())}},fade:{value:function(e,t){this.fadeWithDuration(5,e,t)}},fadeIn:{value:function(){this.fade(this.volume,1)}},fadeOut:{value:function(){this.fade(this.volume,0)}},onPlay:{value:function(e){\"function\"==typeof e?jQuery(this.audio).on(\"playing.AudioWrapper:onPlay\",e):jQuery(this.audio).off(\"playing.AudioWrapper:onPlay\")}},onePlay:{value:function(e){\"function\"==typeof e?jQuery(this.audio).one(\"playing.AudioWrapper:onePlay\",e):jQuery(this.audio).off(\"playing.AudioWrapper:onePlay\")}},onPause:{value:function(e){\"function\"==typeof e?jQuery(this.audio).on(\"pause.AudioWrapper:onPause\",e):jQuery(this.audio).off(\"pause.AudioWrapper:onPause\")}},onePause:{value:function(e){\"function\"==typeof e?jQuery(this.audio).one(\"pause.AudioWrapper:onePause\",e):jQuery(this.audio).off(\"pause.AudioWrapper:onePause\")}},onEnd:{value:function(e){\"function\"==typeof e?jQuery(this.audio).on(\"ended.AudioWrapper:onEnd\",e):jQuery(this.audio).off(\"ended.AudioWrapper:onEnd\");\n}},oneEnd:{value:function(e){\"function\"==typeof e?jQuery(this.audio).one(\"ended.AudioWrapper:oneEnd\",e):jQuery(this.audio).off(\"ended.AudioWrapper:oneEnd\")}},clone:{value:function(){return new AudioWrapper(this.audio.cloneNode(!0))}}}),Object.defineProperties(PRNGWrapper,{marshal:{value:function(e){if(!e||!e.hasOwnProperty(\"seed\")||!e.hasOwnProperty(\"pull\"))throw new Error(\"PRNG is missing required data\");return{seed:e.seed,pull:e.pull}}},unmarshal:{value:function(e){if(!e||!e.hasOwnProperty(\"seed\")||!e.hasOwnProperty(\"pull\"))throw new Error(\"PRNG object is missing required data\");for(var t=new PRNGWrapper(e.seed,!1),r=e.pull;r>0;--r)t.random();return t}}}),Object.defineProperties(StyleWrapper.prototype,{isEmpty:{value:function(){return 0===this.style.cssRules.length}},set:{value:function(e){this.clear(),this.add(e)}},add:{value:function(e){this.style.styleSheet?this.style.styleSheet.cssText+=e:this.style.appendChild(document.createTextNode(e))}},clear:{value:function(){this.style.styleSheet?this.style.styleSheet.cssText=\"\":removeChildren(this.style)}}}),Object.defineProperties(DebugView,{init:{value:function(){jQuery('<button id=\"debug-view-toggle\">'+strings.debugView.title+\"</button>\").ariaClick({label:strings.debugView.toggle},function(){DebugView.toggle()}).prependTo(\"#ui-bar-body\"),DebugView.enable()}},enable:{value:function(){jQuery(document.documentElement).addClass(\"debug-view\"),jQuery.event.trigger(\"tw:debugviewupdate\")}},disable:{value:function(){jQuery(document.documentElement).removeClass(\"debug-view\"),jQuery.event.trigger(\"tw:debugviewupdate\")}},toggle:{value:function(){jQuery(document.documentElement).toggleClass(\"debug-view\"),jQuery.event.trigger(\"tw:debugviewupdate\")}}}),Object.defineProperties(DebugView.prototype,{append:{value:function(e){return jQuery(this.view).append(e),this}},output:{get:function(){return this.view}},type:{get:function(){return this.view.getAttribute(\"data-type\")},set:function(e){this.view.setAttribute(\"data-type\",null!=e?e:\"\")}},name:{get:function(){return this.view.getAttribute(\"data-name\")},set:function(e){this.view.setAttribute(\"data-name\",null!=e?e:\"\")}},title:{get:function(){return this.view.title},set:function(e){this.view.title=e}},modes:{value:function(e){if(null==e){var t={};return this.view.className.splitOrEmpty(/\\s+/).forEach(function(e){\"debug\"!==e&&(t[e]=!0)}),t}if(\"object\"==typeof e)return Object.keys(e).forEach(function(t){this.classList[e[t]?\"add\":\"remove\"](t)},this.view),this;throw new Error(\"DebugView.prototype.modes options parameter must be an object or null/undefined\")}},remove:{value:function(){var e=jQuery(this.view);this.view.hasChildNodes()&&e.contents().appendTo(this.parent),e.remove(),jQuery(this.break).remove()}}});var Util=function(){function e(e){switch(typeof e){case\"number\":break;case\"string\":e=Number(e);break;default:return!1}return isFinite(e)&&!isNaN(e)}function t(e){return\"boolean\"==typeof e||\"string\"==typeof e&&(\"true\"===e||\"false\"===e)}function r(e){return String(e).trim().replace(/[^\\w\\s\\u2013\\u2014-]+/g,\"\").replace(/[_\\s\\u2013\\u2014-]+/g,\"-\").toLocaleLowerCase()}function n(e){if(null==e)return\"\";var t=/[&<>\"'`]/g,r=RegExp(t.source),n={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"`\":\"`\"};return e=String(e),e&&r.test(e)?e.replace(t,function(e){return n[e]}):e}function a(e){if(null==e)return\"\";var t=/&(?:amp|lt|gt|quot|apos|#39|#x27|#96|#x60);/g,r=RegExp(t.source),n={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\",\"'\":\"'\",\"'\":\"'\",\"`\":\"`\",\"`\":\"`\"};return e=String(e),e&&r.test(e)?e.replace(t,function(e){return n[e]}):e}function i(e){var t=/^([+-]?[0-9]+(?:\\.[0-9]+)?)\\s*(m?s)$/,r=t.exec(e);if(null===r)throw new Error('invalid time value: \"'+e+'\"');return\"ms\"===r[2]?Number(r[1]):1e3*Number(r[1])}function s(e){if(\"number\"!=typeof e||isNaN(e)||!isFinite(e)){var t;switch(typeof e){case\"string\":t='\"'+e+'\"';break;case\"number\":t=String(e);break;default:t=Object.prototype.toString.call(e)}throw new Error(\"invalid milliseconds: \"+t)}return e+\"ms\"}function o(e,t){for(var r,n=Object.prototype.toString,a=Array.isArray(e),i=[].concat(Object.keys(e),Object.keys(t)).sort().filter(function(e,t,r){return 0===t||r[t-1]!==e}),s={},o=0,l=i.length;l>o;++o){var c=i[o],d=e[c],h=t[c];if(e.hasOwnProperty(c))if(t.hasOwnProperty(c)){if(d===h)continue;if(typeof d==typeof h)if(\"function\"==typeof d)d.toString()!==h.toString()&&(s[c]=[u.Copy,h]);else if(\"object\"!=typeof d||null===d)s[c]=[u.Copy,h];else{var p=n.call(d),f=n.call(h);if(p===f)if(\"[object Date]\"===p)+d!==+h&&(s[c]=[u.CopyDate,+h]);else if(\"[object RegExp]\"===p)d.toString()!==h.toString()&&(s[c]=[u.Copy,clone(h)]);else{var g=Util.diff(d,h);null!==g&&(s[c]=g)}else s[c]=[u.Copy,clone(h)]}else s[c]=[u.Copy,\"object\"!=typeof h||null===h?h:clone(h)]}else if(a&&Util.isNumeric(c)){var m=+c;if(!r){r=\"\";do r+=\"~\";while(i.some(function(e){return e===this.val},{val:r}));s[r]=[u.SpliceArray,m,m]}m<s[r][1]&&(s[r][1]=m),m>s[r][2]&&(s[r][2]=m)}else s[c]=u.Delete;else s[c]=[u.Copy,\"object\"!=typeof h||null===h?h:clone(h)]}return 0!==Object.keys(s).length?s:null}function l(e,t){for(var r=Object.keys(t||{}),n=clone(e),a=0,i=r.length;i>a;++a){var s=r[a],o=t[s];if(o===u.Delete)delete n[s];else if(Array.isArray(o))switch(o[0]){case u.SpliceArray:n.splice(o[1],1+(o[2]-o[1]));break;case u.Copy:n[s]=clone(o[1]);break;case u.CopyDate:n[s]=new Date(o[1])}else n[s]=Util.patch(n[s],o)}return n}var u=Object.freeze({Delete:0,SpliceArray:1,Copy:2,CopyDate:3});return Object.freeze(Object.defineProperties({},{isNumeric:{value:e},isBoolean:{value:t},slugify:{value:r},escape:{value:n},unescape:{value:a},fromCSSTime:{value:i},toCSSTime:{value:s},diff:{value:o},patch:{value:l},random:{value:Math.random},entityEncode:{value:n},entityDecode:{value:a},evalExpression:{value:evalJavaScript},evalStatements:{value:evalJavaScript}}))}(),Wikifier=function(){function e(r,n){this.formatter=t||e.compileFormatters(),this.output=null!=r?r:document.createDocumentFragment(),this.source=n,this.nextMatch=0,this._rawArgs=\"\",this._nobr=[],this.subWikify(this.output),null==r&&\"function\"==typeof this.output.remove&&this.output.remove()}var t,r=/[\\u0150\\u0170]/g.test(\"Ő\");return Object.defineProperties(e.prototype,{subWikify:{value:function(e,t,r){var n=this.output;this.output=e;var a,i,s=t?new RegExp(\"(?:\"+t+\")\",r?\"gim\":\"gm\"):null;do{if(this.formatter.formatterRegExp.lastIndex=this.nextMatch,s&&(s.lastIndex=this.nextMatch),i=this.formatter.formatterRegExp.exec(this.source),a=s?s.exec(this.source):null,a&&(!i||a.index<=i.index))return a.index>this.nextMatch&&this.outputText(this.output,this.nextMatch,a.index),this.matchStart=a.index,this.matchLength=a[0].length,this.matchText=a[0],this.nextMatch=s.lastIndex,void(this.output=n);if(i){i.index>this.nextMatch&&this.outputText(this.output,this.nextMatch,i.index),this.matchStart=i.index,this.matchLength=i[0].length,this.matchText=i[0],this.nextMatch=this.formatter.formatterRegExp.lastIndex;for(var o=-1,l=1;l<i.length;++l)if(i[l]){o=l-1;break}if(-1!==o&&(this.formatter.formatters[o].handler(this),null!=TempState.break))break}}while(a||i);null==TempState.break?this.nextMatch<this.source.length&&(this.outputText(this.output,this.nextMatch,this.source.length),this.nextMatch=this.source.length):this.output.lastChild&&this.output.lastChild.nodeType===Node.ELEMENT_NODE&&\"BR\"===this.output.lastChild.nodeName.toUpperCase()&&removeElement(this.output.lastChild),this.output=n}},outputText:{value:function(e,t,r){insertText(e,this.source.substring(t,r))}},rawArgs:{value:function(){return this._rawArgs}},fullArgs:{value:function(){return e.parse(this.rawArgs())}}}),Object.defineProperties(e,{compileFormatters:{value:function(){for(var r=e.formatters,n=[],a=0,i=r.length;i>a;++a)n.push(\"(\"+r[a].match+\")\");return t={formatters:r,formatterRegExp:new RegExp(n.join(\"|\"),\"gm\")}}},parse:{value:function(t){for(var r,n=new RegExp(\"(?:(?:\\\"((?:(?:\\\\\\\\\\\")|[^\\\"])+)\\\")|(?:'((?:(?:\\\\\\\\')|[^'])+)')|((?:\\\"\\\")|(?:''))|([=+\\\\-*\\\\/%<>&\\\\|\\\\^~!?:,;\\\\(\\\\)\\\\[\\\\]{}]+)|([^\\\"'=+\\\\-*\\\\/%<>&\\\\|\\\\^~!?:,;\\\\(\\\\)\\\\[\\\\]{}\\\\s]+))\",\"g\"),a=new RegExp(\"^\"+e.textPrimitives.variable),i={$:\"State.variables.\",_:\"TempVariables.\",to:\"=\",eq:\"==\",neq:\"!=\",is:\"===\",isnot:\"!==\",gt:\">\",gte:\">=\",lt:\"<\",lte:\"<=\",and:\"&&\",or:\"||\",not:\"!\",def:'\"undefined\" !== typeof',ndef:'\"undefined\" === typeof'};null!==(r=n.exec(t));)if(r[5]){var s=r[5];if(\"$\"===s||\"_\"===s)continue;if(a.test(s))s=s[0];else if(\"is\"===s){var o=n.lastIndex,l=t.slice(o);/^\\s+not\\b/.test(l)&&(t=t.splice(o,l.search(/\\S/)),s=\"isnot\")}i.hasOwnProperty(s)&&(t=t.splice(r.index,s.length,i[s]),n.lastIndex+=i[s].length-s.length)}return t}},getValue:{value:function(t){var r,n=e.parseStoryVariable(t);if(null!==n){r=n.store;for(var a=n.names,i=0,s=a.length;s>i;++i){if(\"undefined\"==typeof r[a[i]]){r=undefined;break}r=r[a[i]]}}return r}},setValue:{value:function(t,r){var n=e.parseStoryVariable(t);if(null!==n){for(var a=n.store,i=n.names,s=i.pop(),o=0,l=i.length;l>o;++o){if(\"undefined\"==typeof a[i[o]]){a=undefined;break}a=a[i[o]]}if(a!==undefined)return a[s]=r,!0}return!1}},parseStoryVariable:{value:function(t){for(var r,n=new RegExp(\"^(?:\"+e.textPrimitives.variableSigil+\"(\"+e.textPrimitives.identifier+\")|\\\\.(\"+e.textPrimitives.identifier+\")|\\\\[(?:(?:\\\"((?:\\\\\\\\.|[^\\\"\\\\\\\\])+)\\\")|(?:'((?:\\\\\\\\.|[^'\\\\\\\\])+)')|(\"+e.textPrimitives.variableSigil+e.textPrimitives.identifierFirstChar+\".*)|(\\\\d+))\\\\])\"),a={store:\"$\"===t[0]?State.variables:TempVariables,names:[]};null!==(r=n.exec(t));)t=t.slice(r[0].length),r[1]?a.names.push(r[1]):r[2]?a.names.push(r[2]):r[3]?a.names.push(r[3]):r[4]?a.names.push(r[4]):r[5]?a.names.push(e.getValue(r[5])):r[6]&&a.names.push(Number(r[6]));return\"\"===t?a:null}},wikifyEval:{value:function(t){var r=document.createDocumentFragment();new e(r,t);var n=r.querySelector(\".error\");if(null!==n)throw new Error(n.textContent.replace(/^(?:(?:Uncaught\\s+)?Error:\\s+)+/,\"\"));return r}},createInternalLink:{value:function(e,t,r,n){var a=document.createElement(\"a\");return null!=t&&(a.setAttribute(\"data-passage\",t),Story.has(t)?(a.classList.add(\"link-internal\"),config.addVisitedLinkClass&&State.has(t)&&a.classList.add(\"link-visited\")):a.classList.add(\"link-broken\"),jQuery(a).ariaClick({one:!0},function(){\"function\"==typeof n&&n(),State.play(t)})),r&&insertText(a,r),e&&e.appendChild(a),a}},createExternalLink:{value:function(e,t,r){var n=insertElement(e,\"a\",null,\"link-external\",r);return n.target=\"_blank\",null!=t&&(n.href=t,n.setAttribute(\"tabindex\",0)),n}},isExternalLink:{value:function(t){if(Story.has(t))return!1;var r=new RegExp(\"^\"+e.textPrimitives.url,\"gim\");return r.test(t)||/[\\.\\/\\\\#]/.test(t)}},evalExpression:{value:evalTwineScript},evalStatements:{value:evalTwineScript}}),Object.defineProperty(e,\"textPrimitives\",{value:{}}),Object.defineProperty(e.textPrimitives,\"anyLetter\",{value:\"[0-9A-Z_a-z\\\\-\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00DE\\\\u00DF-\\\\u00F6\\\\u00F8-\\\\u00FF\"+(r?\"\\\\u0150\\\\u0170\\\\u0151\\\\u0171\":\"\")+\"]\"}),Object.defineProperty(e.textPrimitives,\"identifierFirstChar\",{value:\"[$A-Z_a-z]\"}),Object.defineProperty(e.textPrimitives,\"identifier\",{value:e.textPrimitives.identifierFirstChar+\"[$0-9A-Z_a-z]*\"}),Object.defineProperty(e.textPrimitives,\"variableSigil\",{value:\"[$_]\"}),Object.defineProperty(e.textPrimitives,\"variable\",{value:e.textPrimitives.variableSigil+e.textPrimitives.identifier}),Object.defineProperty(e.textPrimitives,\"inlineCSS\",{value:[\"(?:(\"+e.textPrimitives.anyLetter+\"+)\\\\(([^\\\\)\\\\|\\\\n]+)\\\\):)\",\"(?:(\"+e.textPrimitives.anyLetter+\"+):([^;\\\\|\\\\n]+);)\",\"(?:((?:\\\\.\"+e.textPrimitives.anyLetter+\"+)+);)\",\"(?:((?:#\"+e.textPrimitives.anyLetter+\"+)+);)\"].join(\"|\")}),Object.defineProperty(e.textPrimitives,\"url\",{value:\"(?:file|https?|mailto|ftp|javascript|irc|news|data):[^\\\\s'\\\"]+(?:/|\\\\b)\"}),Object.defineProperty(e,\"helpers\",{value:{}}),Object.defineProperties(e.helpers,{charFormat:{value:function(e){e.subWikify(insertElement(e.output,this.element),this.terminator)}},inlineCSS:{value:function(t){var r,n={styles:[],classes:[],id:\"\"},a=new RegExp(e.textPrimitives.inlineCSS,\"gm\");do{a.lastIndex=t.nextMatch;var i=a.exec(t.source);r=i&&i.index===t.nextMatch,r&&(i[1]?n.styles.push({style:e.helpers.cssToDOMName(i[1]),value:i[2].trim()}):i[3]?n.styles.push({style:e.helpers.cssToDOMName(i[3]),value:i[4].trim()}):i[5]?n.classes=n.classes.concat(i[5].slice(1).split(/\\./)):i[6]&&(n.id=i[6].slice(1).split(/#/).pop()),t.nextMatch=a.lastIndex)}while(r);return n}},cssToDOMName:{value:function(e){if(!e.contains(\"-\")){switch(e){case\"bgcolor\":e=\"backgroundColor\";break;case\"float\":e=\"cssFloat\"}return e}for(var t=e.split(\"-\"),r=1;r<t.length;++r)t[r]=t[r].slice(0,1).toUpperCase()+t[r].slice(1);return t.join(\"\")}},evalText:{value:function(e){var t;try{t=evalTwineScript(e),null==t||\"function\"==typeof t?t=e:(t=String(t),/\\[(?:object(?:\\s+[^\\]]+)?|native\\s+code)\\]/.test(t)&&(t=e))}catch(r){t=e}return t}},evalPassageId:{value:function(t){return null==t||Story.has(t)||(t=e.helpers.evalText(t)),t}},parseSquareBracketedMarkup:{value:function(e){var t,r,n,a,i=function(){return g>=e.source.length?h:e.source[g++]},s=function(){return g>=e.source.length?h:e.source[g]},o=function(t){return 1>t||g+t>=e.source.length?h:e.source[g+t]},l=function(){return{error:String.format.apply(null,arguments),pos:g}},u=function(){f=g},c=function(t){var r=e.source.slice(f,g).trim();if(\"\"===r)throw new Error(\"malformed wiki \"+(n?\"link\":\"image\")+\", empty \"+t+\" component\");\"link\"===t&&\"~\"===r[0]?(p.forceInternal=!0,p.link=r.slice(1)):p[t]=r,f=g},d=function(e){++g;e:for(;;){switch(s()){case\"\\\\\":++g;var t=s();if(t!==h&&\"\\n\"!==t)break;case h:case\"\\n\":return h;case e:break e}++g}return g},h=-1,p={},f=e.matchStart,g=f+1;if(a=s(),\"[\"===a)n=p.isLink=!0;else{switch(n=!1,a){case\"<\":p.align=\"left\",++g;break;case\">\":p.align=\"right\",++g}if(!/^[Ii][Mm][Gg]$/.test(e.source.slice(g,g+3)))return l(\"malformed square-bracketed wiki markup\");g+=3,p.isImage=!0}if(\"[\"!==i())return l(\"malformed wiki {0}\",n?\"link\":\"image\");t=1,r=0,u();try{e:for(;;){switch(a=s()){case h:case\"\\n\":return l(\"unterminated wiki {0}\",n?\"link\":\"image\");case'\"':if(d(a)===h)return l(\"unterminated double quoted string in wiki {0}\",n?\"link\":\"image\");break;case\"'\":if((4===r||3===r&&n)&&d(a)===h)return l(\"unterminated single quoted string in wiki {0}\",n?\"link\":\"image\");break;case\"|\":0===r&&(c(n?\"text\":\"title\"),++f,r=1);break;case\"-\":0===r&&\">\"===o(1)&&(c(n?\"text\":\"title\"),++g,f+=2,r=1);break;case\"<\":0===r&&\"-\"===o(1)&&(c(n?\"link\":\"source\"),++g,f+=2,r=2);break;case\"[\":if(-1===r)return l(\"unexpected left square bracket '['\");++t,1===t&&(u(),++f);break;case\"]\":if(--t,0===t){switch(r){case 0:case 1:c(n?\"link\":\"source\"),r=3;break;case 2:c(n?\"text\":\"title\"),r=3;break;case 3:n?(c(\"setter\"),r=-1):(c(\"link\"),r=4);break;case 4:c(\"setter\"),r=-1}if(++g,\"]\"===s()){++g;break e}--g}}++g}}catch(e){return l(e.message)}return p.pos=g,p}}}),Object.defineProperty(e,\"formatters\",{value:[{name:\"macro\",match:\"<<\",lookaheadRegExp:/<<(\\/?[A-Za-z][^>\\s]*|[=-])(?:\\s*)((?:(?:\\\"(?:\\\\.|[^\\\"\\\\])*\\\")|(?:\\'(?:\\\\.|[^\\'\\\\])*\\')|(?:\\[(?:[<>]?[Ii][Mm][Gg])?\\[[^\\r\\n]*?\\]\\]+)|[^>]|(?:>(?!>)))*)>>/gm,argsPattern:\"(?:\"+['(\"(?:\\\\\\\\.|[^\"\\\\\\\\])+\")',\"('(?:\\\\\\\\.|[^'\\\\\\\\])+')\",\"(\\\"\\\"|'')\",\"(\\\\[(?:[<>]?[Ii][Mm][Gg])?\\\\[[^\\\\r\\\\n]*?\\\\]\\\\]+)\",\"([^\\\"'`\\\\s]\\\\S*)\"].join(\"|\")+\")\",working:{source:\"\",name:\"\",handler:\"\",arguments:\"\",index:0},context:null,handler:function(e){var t=this.lookaheadRegExp.lastIndex=e.matchStart;if(this.parseTag(e)){var r=e.nextMatch,n=this.working.source,a=this.working.name,i=this.working.handler,s=this.working.arguments;try{var o=Macro.get(a);if(!o){if(Macro.tags.has(a)){var l=Macro.tags.get(a);return throwError(e.output,\"child tag <<\"+a+\">> was found outside of a call to its parent macro\"+(1===l.length?\"\":\"s\")+\" <<\"+l.join(\">>, <<\")+\">>\",e.source.slice(t,e.nextMatch))}return throwError(e.output,\"macro <<\"+a+\">> does not exist\",e.source.slice(t,e.nextMatch))}var u=null;if(o.hasOwnProperty(\"tags\")&&(u=this.parseBody(e,o),!u))return e.nextMatch=r,throwError(e.output,\"cannot find a closing tag for macro <<\"+a+\">>\",e.source.slice(t,e.nextMatch)+\"…\");if(\"function\"!=typeof o[i])return throwError(e.output,\"macro <<\"+a+'>> handler function \"'+i+'\" '+(o.hasOwnProperty(i)?\"is not a function\":\"does not exist\"),e.source.slice(t,e.nextMatch));var c=this.createArgs(s,o.hasOwnProperty(\"skipArgs\")&&!!o.skipArgs);if(o.hasOwnProperty(\"_MACRO_API\")){this.context=new MacroContext({parent:this.context,macro:o,name:a,args:c,payload:u,parser:e,source:n});try{o[i].call(this.context)}finally{this.context=this.context.parent}}else{var d=e._rawArgs;e._rawArgs=s,o[i](e.output,a,c,e,u),e._rawArgs=d}}catch(r){return throwError(e.output,\"cannot execute \"+(o&&o.isWidget?\"widget\":\"macro\")+\" <<\"+a+\">>: \"+r.message,e.source.slice(t,e.nextMatch))}finally{this.working.source=\"\",this.working.name=\"\",this.working.handler=\"\",this.working.arguments=\"\",this.working.index=0}}else e.outputText(e.output,e.matchStart,e.nextMatch)},parseTag:function(e){var t=this.lookaheadRegExp.exec(e.source);if(t&&t.index===e.matchStart&&t[1]){e.nextMatch=this.lookaheadRegExp.lastIndex,this.working.source=e.source.slice(t.index,this.lookaheadRegExp.lastIndex);var r=t[1].indexOf(\"::\");return-1!==r?(this.working.name=t[1].slice(0,r),this.working.handler=t[1].slice(r+2)):(this.working.name=t[1],this.working.handler=\"handler\"),this.working.arguments=t[2],this.working.index=t.index,!0}return!1},parseBody:function(e,t){for(var r=this.working.name,n=\"/\"+r,a=\"end\"+r,i=Array.isArray(t.tags)?t.tags:!1,s=-1,o=1,l=this.working.source,u=this.working.name,c=this.working.arguments,d=e.nextMatch,h=[],p=t.hasOwnProperty(\"skipArgs\")&&!!t.skipArgs;-1!==(e.matchStart=e.source.indexOf(this.match,e.nextMatch));)if(this.parseTag(e)){var f=this.working.source,g=this.working.name,m=this.working.arguments,v=this.working.index,y=e.nextMatch;switch(g){case r:++o;break;case a:case n:--o;break;default:if(1===o&&i)for(var b=0,w=i.length;w>b;++b)g===i[b]&&(h.push({source:l,name:u,arguments:c,args:this.createArgs(c,p),contents:e.source.slice(d,v)}),l=f,u=g,c=m,d=y)}if(0===o){h.push({source:l,name:u,arguments:c,args:this.createArgs(c,p),contents:e.source.slice(d,v)}),s=y;break}}else this.lookaheadRegExp.lastIndex=e.nextMatch=e.matchStart+this.match.length;return-1!==s?(e.nextMatch=s,h):null},createArgs:function(t,r){var n=r?[]:this.parseArgs(t);return Object.defineProperties(n,{raw:{value:t},full:{value:e.parse(t)}}),n},parseArgs:function(t){for(var r,n=new RegExp(this.argsPattern,\"gm\"),a=[],i=new RegExp(\"^\"+e.textPrimitives.variable);null!==(r=n.exec(t));){var s;if(r[1]){s=r[1];try{s=evalJavaScript(s)}catch(e){throw new Error(\"unable to parse macro argument '\"+s+\"': \"+e.message)}}else if(r[2]){s=r[2];try{s=evalJavaScript(s)}catch(e){throw new Error('unable to parse macro argument \"'+s+'\": '+e.message)}}else if(r[3])s=\"\";else if(r[4]){s=r[4];var o=e.helpers.parseSquareBracketedMarkup({source:s,matchStart:0});if(o.hasOwnProperty(\"error\"))throw new Error('unable to parse macro argument \"'+s+'\": '+o.error);if(o.pos<s.length)throw new Error('unable to parse macro argument \"'+s+'\": unexpected character(s) \"'+s.slice(o.pos)+'\" (pos: '+o.pos+\")\");o.isLink?(s={isLink:!0},s.count=o.hasOwnProperty(\"text\")?2:1,s.link=e.helpers.evalPassageId(o.link),s.text=o.hasOwnProperty(\"text\")?e.helpers.evalText(o.text):s.link,s.external=!o.forceInternal&&e.isExternalLink(s.link),s.setFn=o.hasOwnProperty(\"setter\")?function(e){return function(){evalTwineScript(e)}}(o.setter):null):o.isImage&&(s=function(e){var t={isImage:!0,source:e};if(\"data:\"!==e.slice(0,5)&&Story.has(e)){var r=Story.get(e);r.tags.contains(\"Twine.image\")&&(t.source=r.text,t.passage=r.title)}return t}(o.source),o.hasOwnProperty(\"align\")&&(s.align=o.align),o.hasOwnProperty(\"title\")&&(s.title=e.helpers.evalText(o.title)),o.hasOwnProperty(\"link\")&&(s.link=e.helpers.evalPassageId(o.link),s.external=!o.forceInternal&&e.isExternalLink(s.link)),s.setFn=o.hasOwnProperty(\"setter\")?function(e){return function(){evalTwineScript(e)}}(o.setter):null)}else if(r[5])if(s=r[5],i.test(s))s=e.getValue(s);else if(/^(?:settings|setup)[\\.\\[]/.test(s))try{s=evalTwineScript(s)}catch(e){throw new Error('unable to parse macro argument \"'+s+'\": '+e.message)}else if(/^(?:\\{.*\\}|\\[.*\\])$/.test(s))try{s=evalTwineScript(\"(\"+s+\")\")}catch(e){throw new Error('unable to parse macro argument \"'+s+'\": '+e.message)}else\"null\"===s?s=null:\"undefined\"===s?s=undefined:\"true\"===s?s=!0:\"false\"===s?s=!1:!isNaN(parseFloat(s))&&isFinite(s)&&(s=Number(s));a.push(s)}return a}},{name:\"prettyLink\",match:\"\\\\[\\\\[[^[]\",handler:function(t){var r=e.helpers.parseSquareBracketedMarkup(t);if(r.hasOwnProperty(\"error\"))return void t.outputText(t.output,t.matchStart,t.nextMatch);t.nextMatch=r.pos;var n=e.helpers.evalPassageId(r.link),a=r.hasOwnProperty(\"text\")?e.helpers.evalText(r.text):n,i=r.hasOwnProperty(\"setter\")?function(e){return function(){evalTwineScript(e)}}(r.setter):null,s=(config.debug?new DebugView(t.output,\"wiki-link\",\"[[link]]\",t.source.slice(t.matchStart,t.nextMatch)):t).output;r.forceInternal||!e.isExternalLink(n)?e.createInternalLink(s,n,a,i):e.createExternalLink(s,n,a)}},{name:\"urlLink\",match:e.textPrimitives.url,handler:function(t){t.outputText(e.createExternalLink(t.output,t.matchText),t.matchStart,t.nextMatch)}},{name:\"image\",match:\"\\\\[[<>]?[Ii][Mm][Gg]\\\\[\",handler:function(t){var r=e.helpers.parseSquareBracketedMarkup(t);if(r.hasOwnProperty(\"error\"))return void t.outputText(t.output,t.matchStart,t.nextMatch);t.nextMatch=r.pos;var n;config.debug&&(n=new DebugView(t.output,\"wiki-image\",r.hasOwnProperty(\"link\")?\"[img[][link]]\":\"[img[]]\",t.source.slice(t.matchStart,t.nextMatch)),n.modes({block:!0}));var a,i=(config.debug?n:t).output,s=r.hasOwnProperty(\"setter\")?function(e){return function(){evalTwineScript(e)}}(r.setter):null;if(r.hasOwnProperty(\"link\")){var o=e.helpers.evalPassageId(r.link);i=r.forceInternal||!e.isExternalLink(o)?e.createInternalLink(i,o,null,s):e.createExternalLink(i,o),i.classList.add(\"link-image\")}if(i=insertElement(i,\"img\"),a=e.helpers.evalPassageId(r.source),\"data:\"!==a.slice(0,5)&&Story.has(a)){var l=Story.get(a);l.tags.contains(\"Twine.image\")&&(i.setAttribute(\"data-passage\",l.title),a=l.text)}i.src=a,r.hasOwnProperty(\"title\")&&(i.title=e.helpers.evalText(r.title)),r.hasOwnProperty(\"align\")&&(i.align=r.align)}},{name:\"formatByChar\",match:\"''|//|__|\\\\^\\\\^|~~|==|\\\\{\\\\{\\\\{\",handler:function(e){switch(e.matchText){case\"''\":e.subWikify(insertElement(e.output,\"strong\"),\"''\");break;case\"//\":e.subWikify(insertElement(e.output,\"em\"),\"//\");break;case\"__\":e.subWikify(insertElement(e.output,\"u\"),\"__\");break;case\"^^\":e.subWikify(insertElement(e.output,\"sup\"),\"\\\\^\\\\^\");break;case\"~~\":e.subWikify(insertElement(e.output,\"sub\"),\"~~\");break;case\"==\":e.subWikify(insertElement(e.output,\"s\"),\"==\");break;case\"{{{\":var t=/\\{\\{\\{((?:.|\\n)*?)\\}\\}\\}/gm;t.lastIndex=e.matchStart;var r=t.exec(e.source);r&&r.index===e.matchStart&&(insertElement(e.output,\"code\",null,null,r[1]),e.nextMatch=t.lastIndex)}}},{name:\"monospacedByLine\",match:\"^\\\\{\\\\{\\\\{\\\\n\",lookahead:\"^\\\\{\\\\{\\\\{\\\\n((?:^[^\\\\n]*\\\\n)+?)(^\\\\}\\\\}\\\\}$\\\\n?)\",handler:function(e){var t=new RegExp(this.lookahead,\"gm\");t.lastIndex=e.matchStart;var r=t.exec(e.source);r&&r.index===e.matchStart&&(insertElement(e.output,\"pre\",null,null,r[1]),e.nextMatch=t.lastIndex)}},{name:\"customStyle\",match:\"@@\",terminator:\"@@\",blockRegExp:/\\s*\\n/gm,handler:function(t){var r=e.helpers.inlineCSS(t);this.blockRegExp.lastIndex=t.nextMatch;var n=this.blockRegExp.exec(t.source),a=n&&n.index===t.nextMatch,i=insertElement(t.output,a?\"div\":\"span\");if(0===r.styles.length&&0===r.classes.length&&\"\"===r.id)i.className=\"marked\";else{for(var s=0;s<r.styles.length;++s)i.style[r.styles[s].style]=r.styles[s].value;for(var s=0;s<r.classes.length;++s)i.classList.add(r.classes[s]);\"\"!==r.id&&(i.id=r.id)}a?(t.nextMatch+=n[0].length,t.subWikify(i,\"\\\\n?\"+this.terminator)):t.subWikify(i,this.terminator)}},{name:\"rawText\",match:'\"{3}|<nowiki>',lookaheadRegExp:/(?:\\\"{3}|<nowiki>)((?:.|\\n)*?)(?:\\\"{3}|<\\/nowiki>)/gm,handler:function(e){this.lookaheadRegExp.lastIndex=e.matchStart;var t=this.lookaheadRegExp.exec(e.source);t&&t.index===e.matchStart&&(insertElement(e.output,\"span\",null,null,t[1]),e.nextMatch=this.lookaheadRegExp.lastIndex)}},{name:\"rule\",match:\"^----+$\\\\n?|<hr ?/?>\\\\n?\",handler:function(e){insertElement(e.output,\"hr\")}},{name:\"emdash\",match:\"--\",handler:function(e){insertText(e.output,\"—\")}},{name:\"doubleDollarSign\",match:\"\\\\${2}\",handler:function(e){insertText(e.output,\"$\")}},{name:\"nakedVariable\",match:e.textPrimitives.variable+\"(?:(?:\\\\.\"+e.textPrimitives.identifier+\")|(?:\\\\[\\\\d+\\\\])|(?:\\\\[\\\"(?:\\\\\\\\.|[^\\\"\\\\\\\\])+\\\"\\\\])|(?:\\\\['(?:\\\\\\\\.|[^'\\\\\\\\])+'\\\\])|(?:\\\\[\"+e.textPrimitives.variable+\"\\\\]))*\",handler:function(t){var r=printableStringOrDefault(e.getValue(t.matchText),null);null===r?insertText(t.output,t.matchText):new e((config.debug?new DebugView(t.output,\"variable\",t.matchText,t.matchText):t).output,r)}},{name:\"heading\",match:\"^!{1,6}\",terminator:\"\\\\n\",handler:function(e){var t=function(e){for(var t=\"function\"==typeof window.getComputedStyle,r=e.length-1;r>=0;--r){var n=e[r];switch(n.nodeType){case Node.ELEMENT_NODE:var a=n.nodeName.toUpperCase();if(\"BR\"===a)return!0;var i=t?window.getComputedStyle(n,null):n.currentStyle;if(i&&i.display){if(\"none\"===i.display)continue;return\"block\"===i.display}switch(a){case\"ADDRESS\":case\"ARTICLE\":case\"ASIDE\":case\"BLOCKQUOTE\":case\"CENTER\":case\"DIV\":case\"DL\":case\"FIGURE\":case\"FOOTER\":case\"FORM\":case\"H1\":case\"H2\":case\"H3\":case\"H4\":case\"H5\":case\"H6\":case\"HEADER\":case\"HR\":case\"MAIN\":case\"NAV\":case\"OL\":case\"P\":case\"PRE\":case\"SECTION\":case\"TABLE\":case\"UL\":return!0}return!1;case Node.COMMENT_NODE:continue;default:return!1}}return!0}(e.output.childNodes);t?e.subWikify(insertElement(e.output,\"h\"+e.matchLength),this.terminator):insertText(e.output,e.matchText)}},{name:\"table\",match:\"^\\\\|(?:[^\\\\n]*)\\\\|(?:[fhck]?)$\",lookahead:\"^\\\\|([^\\\\n]*)\\\\|([fhck]?)$\",rowTerminator:\"\\\\|(?:[fhck]?)$\\\\n?\",cellPattern:\"(?:\\\\|([^\\\\n\\\\|]*)\\\\|)|(\\\\|[fhck]?$\\\\n?)\",cellTerminator:\"(?:\\\\x20*)\\\\|\",rowTypes:{c:\"caption\",h:\"thead\",\"\":\"tbody\",f:\"tfoot\"},handler:function(e){var t,r,n,a,i=insertElement(e.output,\"table\"),s=new RegExp(this.lookahead,\"gm\"),o=null,l=[],u=0;e.nextMatch=e.matchStart;do{s.lastIndex=e.nextMatch;var c=s.exec(e.source);a=c&&c.index===e.nextMatch,a&&(t=c[2],\"k\"===t?(i.className=c[1],e.nextMatch+=c[0].length+1):(t!==o&&(r=insertElement(i,this.rowTypes[t])),o=t,\"c\"===o?(0===u?r.setAttribute(\"align\",\"top\"):r.setAttribute(\"align\",\"bottom\"),e.nextMatch=e.nextMatch+1,e.subWikify(r,this.rowTerminator)):(n=insertElement(r,\"tr\"),this.rowHandler(e,n,l)),++u))}while(a)},rowHandler:function(t,r,n){var a,i=0,s=1,o=new RegExp(this.cellPattern,\"gm\");do{o.lastIndex=t.nextMatch;var l=o.exec(t.source);if(a=l&&l.index===t.nextMatch){if(\"~\"===l[1]){var u=n[i];u&&(++u.rowCount,u.element.setAttribute(\"rowSpan\",u.rowCount),u.element.setAttribute(\"rowspan\",u.rowCount),u.element.valign=\"center\"),t.nextMatch=l.index+l[0].length-1}else if(\">\"===l[1])++s,t.nextMatch=l.index+l[0].length-1;else{if(l[2]){t.nextMatch=l.index+l[0].length;break}var c,d=!1,h=!1;++t.nextMatch;for(var p=e.helpers.inlineCSS(t);\" \"===t.source.substr(t.nextMatch,1);)d=!0,++t.nextMatch;\"!\"===t.source.substr(t.nextMatch,1)?(c=insertElement(r,\"th\"),++t.nextMatch):c=insertElement(r,\"td\"),n[i]={rowCount:1,element:c},s>1&&(c.setAttribute(\"colSpan\",s),c.setAttribute(\"colspan\",s),s=1);for(var f=0;f<p.styles.length;++f)c.style[p.styles[f].style]=p.styles[f].value;for(var f=0;f<p.classes.length;++f)c.classList.add(p.classes[f]);\"\"!==p.id&&(c.id=p.id),t.subWikify(c,this.cellTerminator),\" \"===t.matchText.substr(t.matchText.length-2,1)&&(h=!0),d&&h?c.align=\"center\":d?c.align=\"right\":h&&(c.align=\"left\"),t.nextMatch=t.nextMatch-1}++i}}while(a)}},{name:\"list\",match:\"^(?:(?:\\\\*+)|(?:#+))\",lookahead:\"^(?:(\\\\*+)|(#+))\",terminator:\"\\\\n\",outerElement:\"ul\",itemElement:\"li\",handler:function(e){e.nextMatch=e.matchStart;var t,r,n,a,i=new RegExp(this.lookahead,\"gm\"),s=[e.output],o=null,l=0;do{i.lastIndex=e.nextMatch;var u=i.exec(e.source);if(n=u&&u.index===e.nextMatch){if(t=u[2]?\"ol\":\"ul\",r=u[0].length,e.nextMatch+=u[0].length,r>l)for(a=l;r>a;++a)s.push(insertElement(s[s.length-1],t));else if(l>r)for(a=l;a>r;--a)s.pop();else r===l&&t!==o&&(s.pop(),s.push(insertElement(s[s.length-1],t)));l=r,o=t,e.subWikify(insertElement(s[s.length-1],\"li\"),this.terminator)}}while(n)}},{name:\"quoteByBlock\",match:\"^<<<\\\\n\",terminator:\"^<<<\\\\n\",handler:function(e){e.subWikify(insertElement(e.output,\"blockquote\"),this.terminator)}},{name:\"quoteByLine\",match:\"^>+\",terminator:\"\\\\n\",element:\"blockquote\",handler:function(e){var t,r,n=new RegExp(this.match,\"gm\"),a=[e.output],i=0,s=e.matchLength;do{if(s>i)for(r=i;s>r;++r)a.push(insertElement(a[a.length-1],this.element));else if(i>s)for(r=i;r>s;--r)a.pop();i=s,e.subWikify(a[a.length-1],this.terminator),insertElement(a[a.length-1],\"br\"),n.lastIndex=e.nextMatch;var o=n.exec(e.source);t=o&&o.index===e.nextMatch,t&&(s=o[0].length,e.nextMatch+=o[0].length)}while(t)}},{name:\"html\",match:\"<[Hh][Tt][Mm][Ll]>\",lookaheadRegExp:/<[Hh][Tt][Mm][Ll]>((?:.|\\n)*?)<\\/[Hh][Tt][Mm][Ll]>/gm,handler:function(e){this.lookaheadRegExp.lastIndex=e.matchStart;var t=this.lookaheadRegExp.exec(e.source);if(t&&t.index===e.matchStart){e.nextMatch=this.lookaheadRegExp.lastIndex;var r=document.createDocumentFragment(),n=document.createElement(\"div\");for(n.innerHTML=t[1];n.firstChild;)r.appendChild(n.firstChild);e.output.appendChild(r)}}},{name:\"commentByBlock\",match:\"/(?:%|\\\\*)\",lookaheadRegExp:/\\/(%|\\*)((?:.|\\n)*?)\\1\\//gm,handler:function(e){this.lookaheadRegExp.lastIndex=e.matchStart;var t=this.lookaheadRegExp.exec(e.source);t&&t.index===e.matchStart&&(e.nextMatch=this.lookaheadRegExp.lastIndex)}},{name:\"htmlCommentByBlock\",match:\"<!--\",lookaheadRegExp:/<!--((?:.|\\\\n)*?)-->/gm,handler:function(e){this.lookaheadRegExp.lastIndex=e.matchStart;var t=this.lookaheadRegExp.exec(e.source);t&&t.index===e.matchStart&&(e.output.appendChild(document.createComment(t[1])),e.nextMatch=this.lookaheadRegExp.lastIndex)}},{name:\"lineContinuation\",match:\"\\\\\\\\[\\\\s\\\\u00a0\\\\u2028\\\\u2029]*?(?:\\\\n|$)\",handler:function(e){e.nextMatch=e.matchStart+e.matchLength}},{name:\"lineBreak\",match:\"\\\\n|<br ?/?>\",handler:function(e){0!==e._nobr.length&&e._nobr[0]||insertElement(e.output,\"br\")}},{name:\"htmlCharacterReference\",match:\"(?:(?:&#?[a-zA-Z0-9]{2,8};|.)(?:&#?(?:x0*(?:3[0-6][0-9a-fA-F]|1D[c-fC-F][0-9a-fA-F]|20[d-fD-F][0-9a-fA-F]|FE2[0-9a-fA-F])|0*(?:76[89]|7[7-9][0-9]|8[0-7][0-9]|761[6-9]|76[2-7][0-9]|84[0-3][0-9]|844[0-7]|6505[6-9]|6506[0-9]|6507[0-1]));)+|&#?[a-zA-Z0-9]{2,8};)\",handler:function(e){var t=document.createElement(\"span\");t.innerHTML=e.matchText,insertText(e.output,t.textContent),\"function\"==typeof t.remove&&t.remove()}},{name:\"htmlTag\",match:\"<\\\\w+(?:\\\\s+[^\\\\u0000-\\\\u001F\\\\u007F-\\\\u009F\\\\s\\\"'>\\\\/=]+(?:\\\\s*=\\\\s*(?:\\\"[^\\\"]*?\\\"|'[^']*?'|[^\\\\s\\\"'=<>`]+))?)*\\\\s*\\\\/?>\",tagPattern:\"<(\\\\w+)\",voidElements:[\"area\",\"base\",\"br\",\"col\",\"embed\",\"hr\",\"img\",\"input\",\"keygen\",\"link\",\"menuitem\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"],nobrElements:[\"colgroup\",\"datalist\",\"dl\",\"figure\",\"ol\",\"optgroup\",\"select\",\"table\",\"tbody\",\"tfoot\",\"thead\",\"tr\",\"ul\"],handler:function(e){var t=new RegExp(this.tagPattern).exec(e.matchText),r=t&&t[1],n=r&&r.toLowerCase();if(n){var a,i,s,o=this.voidElements.contains(n),l=this.nobrElements.contains(n);if(o||(a=\"<\\\\/\"+n+\"\\\\s*>\",i=new RegExp(a,\"gim\"),i.lastIndex=e.matchStart,s=i.exec(e.source)),o||s){var u,c=e.output,d=document.createElement(e.output.tagName);for(d.innerHTML=e.matchText;d.firstChild;)d=d.firstChild;if(d.hasAttribute(\"data-passage\")&&(this.processDataAttributes(d),config.debug&&(u=new DebugView(e.output,\"html-\"+n,n,e.matchText),u.modes({block:\"img\"===n,nonvoid:s}),c=u.output)),s){l?e._nobr.unshift(!0):0!==e._nobr.length&&e._nobr.unshift(!1);try{e.subWikify(d,a,!0),u&&jQuery(\".debug.block\",d).length>0&&u.modes({block:!0})}finally{0!==e._nobr.length&&e._nobr.shift()}}c.appendChild(d)}else throwError(e.output,'HTML tag \"'+r+'\" is not closed',e.matchText+\"…\");\n}},processDataAttributes:function(t){var r=t.getAttribute(\"data-passage\");if(null!=r){r=(\"string\"!=typeof r?String(r):r).trim();var n=e.helpers.evalPassageId(r);if(n!==r&&(r=n,t.setAttribute(\"data-passage\",n)),\"\"!==r)if(\"IMG\"===t.tagName.toUpperCase()){var a;\"data:\"!==r.slice(0,5)&&Story.has(r)&&(r=Story.get(r),r.tags.contains(\"Twine.image\")&&(a=r.text)),t.src=a}else{var i,s=t.getAttribute(\"data-setter\");null!=s&&(s=(\"string\"!=typeof s?String(s):s).trim(),\"\"!==s&&(i=function(e){return function(){evalTwineScript(e)}}(s))),Story.has(r)?(t.classList.add(\"link-internal\"),config.addVisitedLinkClass&&State.has(r)&&t.classList.add(\"link-visited\")):t.classList.add(\"link-broken\"),jQuery(t).ariaClick({one:!0},function(){\"function\"==typeof i&&i.call(this),State.play(r)})}}}}]}),e}(),Macro=function(){function e(t,r,a){if(Array.isArray(t))return void t.forEach(function(t){e(t,r,a)});if(n(t))throw new Error(\"cannot clobber existing macro <<\"+t+\">>\");if(l(t))throw new Error(\"cannot clobber child tag <<\"+t+\">> of parent macro\"+(1===d[t].length?\"\":\"s\")+\" <<\"+d[t].join(\">>, <<\")+\">>\");try{if(\"object\"==typeof r)c[t]=a?clone(r):r;else{if(!n(r))throw new Error(\"cannot create alias of nonexistent macro <<\"+r+\">>\");c[t]=a?clone(c[r]):c[r]}Object.defineProperty(c,t,{writable:!1}),c[t]._MACRO_API=!0}catch(e){throw\"TypeError\"===e.name?new Error(\"cannot clobber protected macro <<\"+t+\">>\"):new Error(\"unknown error when attempting to add macro <<\"+t+\">>: [\"+e.name+\"] \"+e.message)}if(c[t].hasOwnProperty(\"tags\"))if(null==c[t].tags)s(t);else{if(!Array.isArray(c[t].tags))throw new Error('bad value for \"tags\" property of macro <<'+t+\">>\");s(t,c[t].tags)}}function t(e){if(Array.isArray(e))return void e.forEach(function(e){t(e)});if(n(e)){c[e].hasOwnProperty(\"tags\")&&o(e);try{Object.defineProperty(c,e,{writable:!0}),delete c[e]}catch(t){throw new Error(\"unknown error removing macro <<\"+e+\">>: \"+t.message)}}else if(l(e))throw new Error(\"cannot remove child tag <<\"+e+\">> of parent macro <<\"+d[e]+\">>\")}function r(){return 0===Object.keys(c).length}function n(e){return c.hasOwnProperty(e)}function a(e){var t=null;return n(e)&&\"function\"==typeof c[e].handler?t=c[e]:macros.hasOwnProperty(e)&&\"function\"==typeof macros[e].handler&&(t=macros[e]),t}function i(e){e=e||\"init\",Object.keys(c).forEach(function(t){\"function\"==typeof c[t][e]&&c[t][e].call(c[t],t)}),Object.keys(macros).forEach(function(t){\"function\"==typeof macros[t][e]&¯os[t][e].call(macros[t],t)})}function s(e,t){if(!e)throw new Error(\"no parent specified\");Array.isArray(t)||(t=[]);for(var r=[\"/\"+e,\"end\"+e],a=[].concat(r,t),i=0;i<a.length;++i){var s=a[i];if(n(s))throw new Error(\"cannot register tag for an existing macro\");l(s)?d[s].contains(e)||(d[s].push(e),d[s].sort()):d[s]=[e]}}function o(e){if(!e)throw new Error(\"no parent specified\");Object.keys(d).forEach(function(t){var r=d[t].indexOf(e);-1!==r&&(1===d[t].length?delete d[t]:d[t].splice(r,1))})}function l(e){return d.hasOwnProperty(e)}function u(e){return l(e)?d[e]:null}var c={},d={};return Object.freeze(Object.defineProperties({},{add:{value:e},delete:{value:t},isEmpty:{value:r},has:{value:n},get:{value:a},init:{value:i},tags:{value:Object.freeze(Object.defineProperties({},{register:{value:s},unregister:{value:o},has:{value:l},get:{value:u}}))},evalStatements:{value:evalJavaScript}}))}(),MacroContext=function(){function e(e){if(e=Object.assign({parent:null,macro:null,name:\"\",args:null,payload:null,parser:null,source:\"\"},e),null===e.macro||\"\"===e.name||null===e.parser)throw new TypeError(\"context object missing required properties\");Object.defineProperties(this,{parent:{value:e.parent},self:{value:e.macro},name:{value:e.name},args:{value:e.args},payload:{value:e.payload},source:{value:e.source},parser:{value:e.parser},_output:{value:e.parser.output},_debugView:{writable:!0,value:null},_debugViewEnabled:{writable:!0,value:config.debug}})}return Object.defineProperties(e.prototype,{contextHas:{value:function(e){for(var t=this;null!==(t=t.parent);)if(e(t))return!0;return!1}},contextSelect:{value:function(e){for(var t=this;null!==(t=t.parent);)if(e(t))return t;return null}},contextSelectAll:{value:function(e){for(var t=this,r=[];null!==(t=t.parent);)e(t)&&r.push(t);return r}},createDebugView:{value:function(e,t){return this._debugView=new DebugView(this._output,\"macro\",e?e:this.name,t?t:this.source),null!==this.payload&&this.payload.length>0&&this._debugView.modes({nonvoid:!0}),this._debugViewEnabled=!0,this._debugView}},removeDebugView:{value:function(){null!==this._debugView&&(this._debugView.remove(),this._debugView=null),this._debugViewEnabled=!1}},debugView:{get:function(){return this._debugViewEnabled?null!==this._debugView?this._debugView:this.createDebugView():null}},output:{get:function(){return this._debugViewEnabled?this.debugView.output:this._output}},error:{value:function(e,t){return throwError(this._output,\"<<\"+this.name+\">>: \"+e,t?t:this.source)}}}),e}();!function(){function e(e,t,r){return function(){if(\"\"!==e){var n;try{\"undefined\"!=typeof t&&(State.variables.hasOwnProperty(\"args\")&&(n=State.variables.args),State.variables.args=t),Wikifier.wikifyEval(e)}finally{\"undefined\"!=typeof t&&(\"undefined\"!=typeof n?State.variables.args=n:delete State.variables.args)}}\"function\"==typeof r&&r.call(this)}}Macro.add(\"actions\",{handler:function(){var e=insertElement(this.output,\"ul\");e.classList.add(this.name),State.variables[\"#actions\"]||(State.variables[\"#actions\"]={});for(var t=0;t<this.args.length;++t){var r,n,a,i,s;\"object\"==typeof this.args[t]&&this.args[t].isImage?(a=document.createElement(\"img\"),a.src=this.args[t].source,this.args[t].hasOwnProperty(\"passage\")&&a.setAttribute(\"data-passage\",this.args[t].passage),this.args[t].hasOwnProperty(\"title\")&&(a.title=this.args[t].title),this.args[t].hasOwnProperty(\"align\")&&(a.align=this.args[t].align),r=this.args[t].link,i=this.args[t].setFn):\"object\"==typeof this.args[t]?(n=this.args[t].text,r=this.args[t].link,i=this.args[t].setFn):n=r=this.args[t],State.variables[\"#actions\"].hasOwnProperty(r)&&State.variables[\"#actions\"][r]||(s=Wikifier.createInternalLink(insertElement(e,\"li\"),r,null,function(e,t){return function(){State.variables[\"#actions\"][e]=!0,\"function\"==typeof t&&t()}}(r,i)),null==a?insertText(s,n):s.appendChild(a),s.classList.add(\"macro-\"+this.name))}}}),Macro.add([\"back\",\"return\"],{handler:function(){var e,t,r,n,a=-1;if(this.args.length>1)return this.error(\"too many arguments specified, check the documentation for details\");if(1===this.args.length&&(\"object\"==typeof this.args[0]?this.args[0].isImage?(r=document.createElement(\"img\"),r.src=this.args[0].source,this.args[0].hasOwnProperty(\"passage\")&&r.setAttribute(\"data-passage\",this.args[0].passage),this.args[0].hasOwnProperty(\"title\")&&(r.title=this.args[0].title),this.args[0].hasOwnProperty(\"align\")&&(r.align=this.args[0].align),this.args[0].hasOwnProperty(\"link\")&&(e=this.args[0].link)):1===this.args[0].count?e=this.args[0].link:(t=this.args[0].text,e=this.args[0].link):1===this.args.length&&(t=this.args[0])),null==e){for(var i=State.length-2;i>=0;--i)if(State.history[i].title!==State.passage){a=i,e=State.history[i].title;break}null==e&&\"\"!==State.expiredUnique&&(e=State.expiredUnique)}else{if(!Story.has(e))return this.error('passage \"'+e+'\" does not exist');if(\"back\"===this.name){for(var i=State.length-2;i>=0;--i)if(State.history[i].title===e){a=i;break}if(-1===a)return this.error('cannot find passage \"'+e+'\" in the current story history')}}return null==e?this.error(\"cannot find passage\"):(\"back\"!==this.name||-1!==a?(n=document.createElement(\"a\"),jQuery(n).addClass(\"link-internal\").ariaClick({one:!0},\"return\"===this.name?function(){State.play(e)}:function(){State.goTo(a)})):(n=document.createElement(\"span\"),n.classList.add(\"link-disabled\")),n.classList.add(\"macro-\"+this.name),null==r?insertText(n,null!=t?t:strings.macros[this.name].text):n.appendChild(r),void this.output.appendChild(n))}}),Macro.add(\"choice\",{handler:function(){if(0===this.args.length)return this.error(\"no passage specified\");var e,t,r,n,a,i=State.passage;if(1===this.args.length?\"object\"==typeof this.args[0]&&this.args[0].isImage?(r=document.createElement(\"img\"),r.src=this.args[0].source,this.args[0].hasOwnProperty(\"passage\")&&r.setAttribute(\"data-passage\",this.args[0].passage),this.args[0].hasOwnProperty(\"title\")&&(r.title=this.args[0].title),this.args[0].hasOwnProperty(\"align\")&&(r.align=this.args[0].align),e=this.args[0].link,n=this.args[0].setFn):\"object\"==typeof this.args[0]?(t=this.args[0].text,e=this.args[0].link,n=this.args[0].setFn):t=e=this.args[0]:(e=this.args[0],t=this.args[1]),State.variables.hasOwnProperty(\"#choice\")){if(State.variables[\"#choice\"].hasOwnProperty(i)&&State.variables[\"#choice\"][i])return a=insertElement(this.output,\"span\"),null==r?insertText(a,t):a.appendChild(r),a.classList.add(\"link-disabled\"),a.classList.add(\"macro-\"+this.name),void a.setAttribute(\"tabindex\",-1)}else State.variables[\"#choice\"]={};a=Wikifier.createInternalLink(this.output,e,null,function(){State.variables[\"#choice\"][i]=!0,\"function\"==typeof n&&n()}),null==r?insertText(a,t):a.appendChild(r),a.classList.add(\"macro-\"+this.name)}}),Macro.add(\"display\",{handler:function(){if(0===this.args.length)return this.error(\"no passage specified\");var e;if(e=\"object\"==typeof this.args[0]?this.args[0].link:this.args[0],!Story.has(e))return this.error('passage \"'+e+'\" does not exist');config.debug&&this.debugView.modes({block:!0});var t=this.output;e=Story.get(e),this.args[1]&&(t=insertElement(t,this.args[1],null,e.domId),t.classList.add(\"macro-\"+this.name),t.setAttribute(\"data-passage\",e.title)),new Wikifier(t,e.processText())}}),Macro.add(\"nobr\",{skipArgs:!0,tags:null,handler:function(){new Wikifier(this.output,this.payload[0].contents.replace(/^\\n+|\\n+$/g,\"\").replace(/\\n+/g,\" \"))}}),Macro.add([\"print\",\"=\",\"-\"],{skipArgs:!0,handler:function(){if(0===this.args.full.length)return this.error(\"no expression specified\");try{var e=printableStringOrDefault(evalJavaScript(this.args.full),null);null!==e&&new Wikifier(this.output,\"-\"===this.name?Util.escape(e):e)}catch(e){return this.error(\"bad evaluation: \"+e.message)}}}),Macro.add(\"silently\",{skipArgs:!0,tags:null,handler:function(){var e=document.createDocumentFragment();if(new Wikifier(e,this.payload[0].contents.trim()),config.debug)this.debugView.modes({hidden:!0}),this.output.appendChild(e);else{var t=[];if(Array.from(e.querySelectorAll(\".error\")).forEach(function(e){t.push(e.textContent)}),\"function\"==typeof e.remove&&e.remove(),t.length>0)return this.error(\"error\"+(1===t.length?\"\":\"s\")+\" within contents (\"+t.join(\"; \")+\")\",this.source+this.payload[0].contents+\"<</\"+this.name+\">>\")}}}),Macro.add(\"if\",{skipArgs:!0,tags:[\"elseif\",\"else\"],handler:function(){try{for(var e=0,t=this.payload.length,r=!1;t>e;++e){switch(this.payload[e].name){case\"else\":if(0!==this.payload[e].args.raw.length)return/^\\s*if\\b/i.test(this.payload[e].args.raw)?this.error('whitespace is not allowed between the \"else\" and \"if\" in <<elseif>> clause'+(e>0?\" (#\"+e+\")\":\"\")):this.error(\"<<else>> does not accept a conditional expression (perhaps you meant to use <<elseif>>), invalid: \"+this.payload[e].args.raw);break;default:if(0===this.payload[e].args.full.length)return this.error(\"no conditional expression specified for <<\"+this.payload[e].name+\">> clause\"+(e>0?\" (#\"+e+\")\":\"\"));if(config.macros.ifAssignmentError&&/[^!=&^|<>*\\/%+-]=[^=]/.test(this.payload[e].args.full))return this.error(\"assignment operator found within <<\"+this.payload[e].name+\">> clause\"+(e>0?\" (#\"+e+\")\":\"\")+\" (perhaps you meant to use an equality operator: ==, ===, eq, is), invalid: \"+this.payload[e].args.raw)}if(config.debug&&this.createDebugView(this.payload[e].name,this.payload[e].source).modes({nonvoid:!1}),\"else\"===this.payload[e].name||evalJavaScript(this.payload[e].args.full)){r=!0,new Wikifier(this.output,this.payload[e].contents);break}config.debug&&this.debugView.modes({hidden:!0,invalid:!0})}if(config.debug){for(++e;t>e;++e)this.createDebugView(this.payload[e].name,this.payload[e].source).modes({nonvoid:!1,hidden:!0,invalid:!0});this.createDebugView(\"/\"+this.name,\"<</\"+this.name+\">>\").modes({nonvoid:!1,hidden:!r,invalid:!r})}}catch(t){return this.error(\"bad conditional expression in <<\"+(0===e?\"if\":\"elseif\")+\">> clause\"+(e>0?\" (#\"+e+\")\":\"\")+\": \"+t.message)}}}),Macro.add(\"for\",{skipArgs:!0,tags:null,handler:function(){var e,t,r,n=this.args.full.trim(),a=this.payload[0].contents.replace(/\\n$/,\"\"),i=!0,s=config.macros.maxLoopIterations;if(0===n.length)n=!0;else if(-1!==n.indexOf(\";\")){if(null===(r=n.match(/^([^;]*?)\\s*;\\s*([^;]*?)\\s*;\\s*([^;]*?)$/)))return this.error(\"invalid 3-part syntax, format: init ; condition ; post\");e=r[1],n=r[2],t=r[3]}config.debug&&this.debugView.modes({block:!0});try{if(TempState.break=null,e)try{evalJavaScript(e)}catch(e){return this.error(\"bad init expression: \"+e.message)}for(;evalJavaScript(n);){if(--s<0)return this.error(\"exceeded configured maximum loop iterations (\"+config.macros.maxLoopIterations+\")\");if(new Wikifier(this.output,i?a.replace(/^\\n/,\"\"):a),i&&(i=!1),null!=TempState.break)if(1===TempState.break)TempState.break=null;else if(2===TempState.break){TempState.break=null;break}if(t)try{evalJavaScript(t)}catch(e){return this.error(\"bad post expression: \"+e.message)}}}catch(e){return this.error(\"bad conditional expression: \"+e.message)}finally{TempState.break=null}}}),Macro.add([\"break\",\"continue\"],{skipArgs:!0,handler:function(){return this.contextHas(function(e){return\"for\"===e.name})?(TempState.break=\"continue\"===this.name?1:2,void(config.debug&&this.debugView.modes({hidden:!0}))):this.error(\"must only be used in conjunction with its parent macro <<for>>\")}}),Macro.add(\"set\",{skipArgs:!0,handler:function(){if(0===this.args.full.length)return this.error(\"no expression specified\");try{evalJavaScript(this.args.full)}catch(e){return this.error(\"bad evaluation: \"+e.message)}config.debug&&this.debugView.modes({hidden:!0})}}),Macro.add(\"unset\",{skipArgs:!0,handler:function(){if(0===this.args.full.length)return this.error(\"no story/temporary variable list specified\");for(var e,t=new RegExp(\"(?:(State\\\\.variables)|(TempVariables))\\\\.(\"+Wikifier.textPrimitives.identifier+\")\",\"g\");null!==(e=t.exec(this.args.full));){var r=e[1]?State.variables:TempVariables,n=e[3];r.hasOwnProperty(n)&&delete r[n]}config.debug&&this.debugView.modes({hidden:!0})}}),Macro.add(\"remember\",{skipArgs:!0,handler:function(){if(0===this.args.full.length)return this.error(\"no expression specified\");try{evalJavaScript(this.args.full)}catch(e){return this.error(\"bad evaluation: \"+e.message)}for(var e,t=storage.get(\"remember\")||{},r=new RegExp(\"State\\\\.variables\\\\.(\"+Wikifier.textPrimitives.identifier+\")\",\"g\");null!==(e=r.exec(this.args.full));){var n=e[1];t[n]=State.variables[n]}return storage.set(\"remember\",t)?void(config.debug&&this.debugView.modes({hidden:!0})):this.error(\"unknown error, cannot remember: \"+this.args.raw)},init:function(){var e=storage.get(\"remember\");e&&Object.keys(e).forEach(function(t){State.variables[t]=e[t]})}}),Macro.add(\"forget\",{skipArgs:!0,handler:function(){if(0===this.args.full.length)return this.error(\"no story variable list specified\");for(var e,t=storage.get(\"remember\"),r=new RegExp(\"State\\\\.variables\\\\.(\"+Wikifier.textPrimitives.identifier+\")\",\"g\"),n=!1;null!==(e=r.exec(this.args.full));){var a=e[1];State.variables.hasOwnProperty(a)&&delete State.variables[a],t&&t.hasOwnProperty(a)&&(n=!0,delete t[a])}return n&&!storage.set(\"remember\",t)?this.error(\"unknown error, cannot update remember store\"):void(config.debug&&this.debugView.modes({hidden:!0}))}}),Macro.add(\"run\",\"set\"),Macro.add(\"script\",{skipArgs:!0,tags:null,handler:function(){var e=document.createDocumentFragment();try{evalJavaScript(this.payload[0].contents,e),config.debug&&this.createDebugView(this.name,this.source+this.payload[0].contents+\"<</\"+this.name+\">>\")}catch(e){return this.error(\"bad evaluation: \"+e.message,this.source+this.payload[0].contents+\"<</\"+this.name+\">>\")}e.hasChildNodes()&&this.output.appendChild(e)}}),Macro.add([\"button\",\"click\"],{tags:null,handler:function(){if(0===this.args.length)return this.error(\"no \"+(\"click\"===this.name?\"link\":\"button\")+\" text specified\");config.debug&&this.createDebugView(this.name,this.source+this.payload[0].contents+\"<</\"+this.name+\">>\");var t,r=function(){var e;return State.variables.hasOwnProperty(\"args\")&&this.contextHas(function(e){return e.self.isWidget})&&(e=State.variables.args),e}.call(this),n=document.createElement(\"click\"===this.name?\"a\":\"button\");if(\"object\"==typeof this.args[0]&&this.args[0].isImage){var a=insertElement(n,\"img\");a.src=this.args[0].source,this.args[0].hasOwnProperty(\"passage\")&&a.setAttribute(\"data-passage\",this.args[0].passage),this.args[0].hasOwnProperty(\"title\")&&(a.title=this.args[0].title),this.args[0].hasOwnProperty(\"align\")&&(a.align=this.args[0].align),t=this.args[0].link}else{var i;\"object\"==typeof this.args[0]?(i=this.args[0].text,t=this.args[0].link):(i=this.args[0],t=this.args.length>1?this.args[1]:undefined),insertText(n,i)}null!=t?(n.setAttribute(\"data-passage\",t),Story.has(t)?(n.classList.add(\"link-internal\"),config.addVisitedLinkClass&&State.has(t)&&n.classList.add(\"link-visited\")):n.classList.add(\"link-broken\")):n.classList.add(\"link-internal\"),n.classList.add(\"macro-\"+this.name),jQuery(n).ariaClick({namespace:\".macros\",one:null!=t},e(this.payload[0].contents.trim(),r,null!=t?function(){State.play(t)}:undefined)),this.output.appendChild(n)}}),Macro.add(\"checkbox\",{handler:function(){if(this.args.length<3){var e=[];return this.args.length<1&&e.push(\"story variable name\"),this.args.length<2&&e.push(\"unchecked value\"),this.args.length<3&&e.push(\"checked value\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}if(\"string\"!=typeof this.args[0]||\"$\"!==this.args[0].trim()[0])return this.error('story variable name \"'+this.args[0]+'\" is missing its sigil ($)');var t=this.args[0].trim(),r=Util.slugify(t),n=this.args[1],a=this.args[2],i=document.createElement(\"input\");jQuery(i).attr({id:this.name+\"-\"+r,name:this.name+\"-\"+r,type:\"checkbox\",tabindex:0}).addClass(\"macro-\"+this.name).on(\"change\",function(){Wikifier.setValue(t,this.checked?a:n)}).appendTo(this.output),this.args.length>3&&\"checked\"===this.args[3]?(i.checked=!0,Wikifier.setValue(t,a)):Wikifier.setValue(t,n)}}),Macro.add(\"radiobutton\",{handler:function(){if(this.args.length<2){var e=[];return this.args.length<1&&e.push(\"story variable name\"),this.args.length<2&&e.push(\"checked value\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}if(\"string\"!=typeof this.args[0]||\"$\"!==this.args[0].trim()[0])return this.error('story variable name \"'+this.args[0]+'\" is missing its sigil ($)');var t=this.args[0].trim(),r=Util.slugify(t),n=this.args[1],a=document.createElement(\"input\");TempState.hasOwnProperty(this.name)||(TempState[this.name]={},TempState[this.name][r]=0),jQuery(a).attr({id:this.name+\"-\"+r+\"-\"+TempState[this.name][r]++,name:this.name+\"-\"+r,type:\"radio\",tabindex:0}).addClass(\"macro-\"+this.name).on(\"change\",function(){this.checked&&Wikifier.setValue(t,n)}).appendTo(this.output),this.args.length>2&&\"checked\"===this.args[2]&&(a.checked=!0,Wikifier.setValue(t,n))}}),Macro.add(\"textarea\",{handler:function(){if(this.args.length<2){var e=[];return this.args.length<1&&e.push(\"story variable name\"),this.args.length<2&&e.push(\"default value\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}if(\"string\"!=typeof this.args[0]||\"$\"!==this.args[0].trim()[0])return this.error('story variable name \"'+this.args[0]+'\" is missing its sigil ($)');config.debug&&this.debugView.modes({block:!0});var t=this.args[0].trim(),r=Util.slugify(t),n=this.args[1],a=\"autofocus\"===this.args[2],i=document.createElement(\"textarea\");jQuery(i).attr({id:this.name+\"-\"+r,name:this.name+\"-\"+r,rows:4,tabindex:0}).addClass(\"macro-\"+this.name).on(\"change\",function(){Wikifier.setValue(t,this.value)}).appendTo(this.output),Wikifier.setValue(t,n),i.textContent=n,a&&(i.setAttribute(\"autofocus\",\"autofocus\"),postdisplay[\"#autofocus:\"+i.id]=function(e){setTimeout(function(){i.focus()},minDOMActionDelay),delete postdisplay[e]})}}),Macro.add(\"textbox\",{handler:function(){if(this.args.length<2){var e=[];return this.args.length<1&&e.push(\"story variable name\"),this.args.length<2&&e.push(\"default value\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}if(\"string\"!=typeof this.args[0]||\"$\"!==this.args[0].trim()[0])return this.error('story variable name \"'+this.args[0]+'\" is missing its sigil ($)');config.debug&&this.debugView.modes({block:!0});var t,r=this.args[0].trim(),n=Util.slugify(r),a=this.args[1],i=!1,s=document.createElement(\"input\");this.args.length>3?(t=this.args[2],i=\"autofocus\"===this.args[3]):this.args.length>2&&(\"autofocus\"===this.args[2]?i=!0:t=this.args[2]),jQuery(s).attr({id:this.name+\"-\"+n,name:this.name+\"-\"+n,type:\"text\",tabindex:0}).addClass(\"macro-\"+this.name).on(\"change\",function(){Wikifier.setValue(r,this.value)}).on(\"keypress\",function(e){13===e.which&&(e.preventDefault(),Wikifier.setValue(r,this.value),null!=t&&State.play(t))}).appendTo(this.output),Wikifier.setValue(r,a),s.value=a,i&&(s.setAttribute(\"autofocus\",\"autofocus\"),postdisplay[\"#autofocus:\"+s.id]=function(e){setTimeout(function(){s.focus()},minDOMActionDelay),delete postdisplay[e]})}}),Macro.add([\"addclass\",\"toggleclass\"],{handler:function(){if(this.args.length<2){var e=[];return this.args.length<1&&e.push(\"selector\"),this.args.length<2&&e.push(\"class names\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}var t=jQuery(this.args[0]);if(0===t.length)return this.error('no elements matched the selector \"'+this.args[0]+'\"');switch(this.name){case\"addclass\":t.addClass(this.args[1].trim());break;case\"toggleclass\":t.toggleClass(this.args[1].trim())}}}),Macro.add(\"removeclass\",{handler:function(){if(0===this.args.length)return this.error(\"no selector specified\");var e=jQuery(this.args[0]);return 0===e.length?this.error('no elements matched the selector \"'+this.args[0]+'\"'):void(this.args.length>1?e.removeClass(this.args[1].trim()):e.removeClass())}}),Macro.add(\"copy\",{handler:function(){if(0===this.args.length)return this.error(\"no selector specified\");var e=jQuery(this.args[0]);return 0===e.length?this.error('no elements matched the selector \"'+this.args[0]+'\"'):void jQuery(this.output).append(e.html())}}),Macro.add([\"append\",\"prepend\",\"replace\"],{tags:null,handler:function(){if(0===this.args.length)return this.error(\"no selector specified\");var e=jQuery(this.args[0]);if(0===e.length)return this.error('no elements matched the selector \"'+this.args[0]+'\"');if(\"replace\"===this.name&&e.empty(),\"\"!==this.payload[0].contents){var t=document.createDocumentFragment();switch(new Wikifier(t,this.payload[0].contents),this.name){case\"replace\":case\"append\":e.append(t);break;case\"prepend\":e.prepend(t)}}}}),Macro.add(\"remove\",{handler:function(){if(0===this.args.length)return this.error(\"no selector specified\");var e=jQuery(this.args[0]);return 0===e.length?this.error('no elements matched the selector \"'+this.args[0]+'\"'):void e.remove()}}),Macro.add(\"goto\",{handler:function(){if(0===this.args.length)return this.error(\"no passage specified\");var e;return e=\"object\"==typeof this.args[0]?this.args[0].link:this.args[0],Story.has(e)?void setTimeout(function(){State.play(e)},minDOMActionDelay):this.error('passage \"'+e+'\" does not exist')}}),Macro.add(\"timed\",{tags:[\"next\"],timers:new Set,handler:function(){if(0===this.args.length)return this.error(\"no time value specified in <<timed>>\");var e=[];try{e.push({name:this.name,source:this.source,delay:Math.max(minDOMActionDelay,Util.fromCSSTime(String(this.args[0]).trim())),content:this.payload[0].contents})}catch(e){return this.error(e.message+\" in <<timed>>\")}if(this.payload.length>1)try{var t,r;for(t=1,r=this.payload.length;r>t;++t)e.push({name:this.payload[t].name,source:this.payload[t].source,delay:0===this.payload[t].args.length?e[e.length-1].delay:Math.max(minDOMActionDelay,Util.fromCSSTime(String(this.payload[t].args[0]).trim())),content:this.payload[t].contents})}catch(e){return this.error(e.message+\" in <<next>> (#\"+t+\")\")}config.debug&&this.debugView.modes({block:!0}),this.self.registerTimeout(insertElement(this.output,\"span\",null,\"macro-\"+this.name),e,this.args.length>1&&/^(?:transition|t8n)$/.test(this.args[1]))},registerTimeout:function(e,t,r){var n=turns(),a=this.timers,i=null,s=t.shift(),o=function(){if(a.delete(i),n===turns()){var l=s;null!=(s=t.shift())&&(i=setTimeout(o,s.delay),a.add(i));var u=document.createDocumentFragment();new Wikifier(u,l.content);var c=e;config.debug&&\"next\"===l.name&&(c=new DebugView(e,\"macro\",l.name,l.source).output),r&&(c=insertElement(c,\"span\",null,\"macro-timed-insert\"),c.classList.add(\"macro-timed-in\")),c.appendChild(u),r&&setTimeout(function(){c.classList.remove(\"macro-timed-in\")},minDOMActionDelay)}};i=setTimeout(o,s.delay),a.add(i),prehistory.hasOwnProperty(\"#timed-timers-cleanup\")||(prehistory[\"#timed-timers-cleanup\"]=function(e){a.forEach(function(e){clearTimeout(e)}),a.clear(),delete prehistory[e]})}}),Macro.add(\"repeat\",{tags:null,timers:new Set,handler:function(){if(0===this.args.length)return this.error(\"no time value specified\");var e;try{e=Math.max(minDOMActionDelay,Util.fromCSSTime(String(this.args[0]).trim()))}catch(e){return this.error(e.message)}config.debug&&this.debugView.modes({block:!0}),this.self.registerInterval(insertElement(this.output,\"span\",null,\"macro-\"+this.name),this.payload[0].contents,e,this.args.length>1&&/^(?:transition|t8n)$/.test(this.args[1]))},registerInterval:function(e,t,r,n){var a=turns(),i=this.timers,s=null;s=setInterval(function(){if(a!==turns())return clearInterval(s),void i.delete(s);var r;try{TempState.break=null,TempState.hasOwnProperty(\"repeatTimerId\")&&(r=TempState.repeatTimerId),TempState.repeatTimerId=s;var o=document.createDocumentFragment();new Wikifier(o,t);var l=e;n&&(l=insertElement(l,\"span\",null,\"macro-repeat-insert\"),l.classList.add(\"macro-repeat-in\")),l.appendChild(o),n&&setTimeout(function(){l.classList.remove(\"macro-repeat-in\")},minDOMActionDelay)}finally{\"undefined\"!=typeof r?TempState.repeatTimerId=r:delete TempState.repeatTimerId,TempState.break=null}},r),i.add(s),prehistory.hasOwnProperty(\"#repeat-timers-cleanup\")||(prehistory[\"#repeat-timers-cleanup\"]=function(e){i.forEach(function(e){clearInterval(e)}),i.clear(),delete prehistory[e]})}}),Macro.add(\"stop\",{skipArgs:!0,handler:function(){if(!TempState.hasOwnProperty(\"repeatTimerId\"))return this.error(\"must only be used in conjunction with its parent macro <<repeat>>\");var e=Macro.get(\"repeat\").timers,t=TempState.repeatTimerId;clearInterval(t),e.delete(t),TempState.break=2,config.debug&&this.debugView.modes({hidden:!0})}}),Macro.add(\"widget\",{tags:null,handler:function(){if(0===this.args.length)return this.error(\"no widget name specified\");var e=this.args[0];if(Macro.has(e)){if(!Macro.get(e).isWidget)return this.error('cannot clobber existing macro \"'+e+'\"');Macro.delete(e)}try{Macro.add(e,{isWidget:!0,handler:function(e){return function(){var t;try{State.variables.hasOwnProperty(\"args\")&&(t=State.variables.args),State.variables.args=[];for(var r=0,n=this.args.length;n>r;++r)State.variables.args[r]=this.args[r];State.variables.args.raw=this.args.raw,State.variables.args.full=this.args.full;var a=document.createDocumentFragment(),i=[];if(new Wikifier(a,e),Array.from(a.querySelectorAll(\".error\")).forEach(function(e){i.push(e.textContent)}),0!==i.length)return this.error(\"error\"+(1===i.length?\"\":\"s\")+\" within widget contents (\"+i.join(\"; \")+\")\");this.output.appendChild(a)}catch(e){return this.error(\"cannot execute widget: \"+e.message)}finally{\"undefined\"!=typeof t?State.variables.args=t:delete State.variables.args}}}(this.payload[0].contents)}),config.debug&&this.createDebugView(this.name,this.source+this.payload[0].contents+\"<</\"+this.name+\">>\")}catch(t){return this.error('cannot create widget macro \"'+e+'\": '+t.message)}}}),Has.audio?(Macro.add(\"audio\",{handler:function(){if(this.args.length<2){var e=[];return this.args.length<1&&e.push(\"track ID\"),this.args.length<2&&e.push(\"actions\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}var t=Macro.get(\"cacheaudio\").tracks,r=this.args[0];if(!t.hasOwnProperty(r))return this.error(\"no track by ID: \"+r);for(var n,a,i,s,o,l,u,c,d=t[r],h=5,p=this.args.slice(1);p.length>0;){var f=p.shift();switch(f){case\"play\":case\"pause\":case\"stop\":n=f;break;case\"fadein\":n=\"fade\",l=1;break;case\"fadeout\":n=\"fade\",l=0;break;case\"fadeto\":if(0===p.length)return this.error(\"fadeto missing required level value\");if(n=\"fade\",c=p.shift(),l=parseFloat(c),isNaN(l)||!isFinite(l))return this.error(\"cannot parse fadeto: \"+c);break;case\"fadeoverto\":if(p.length<2){var e=[];return p.length<1&&e.push(\"seconds\"),p.length<2&&e.push(\"level\"),this.error(\"fadeoverto missing required \"+e.join(\" and \")+\" value\"+(e.length>1?\"s\":\"\"))}if(n=\"fade\",c=p.shift(),h=parseFloat(c),isNaN(h)||!isFinite(h))return this.error(\"cannot parse fadeoverto: \"+c);if(c=p.shift(),l=parseFloat(c),isNaN(l)||!isFinite(l))return this.error(\"cannot parse fadeoverto: \"+c);break;case\"volume\":if(0===p.length)return this.error(\"volume missing required level value\");if(c=p.shift(),a=parseFloat(c),isNaN(a)||!isFinite(a))return this.error(\"cannot parse volume: \"+c);break;case\"mute\":case\"unmute\":i=\"mute\"===f;break;case\"time\":if(0===p.length)return this.error(\"time missing required seconds value\");if(c=p.shift(),s=parseFloat(c),isNaN(s)||!isFinite(s))return this.error(\"cannot parse time: \"+c);break;case\"loop\":case\"unloop\":o=\"loop\"===f;break;case\"goto\":if(0===p.length)return this.error(\"goto missing required passage title\");if(c=p.shift(),u=\"object\"==typeof c?c.link:c,!Story.has(u))return this.error('passage \"'+u+'\" does not exist');break;default:return this.error(\"unknown action: \"+f)}}try{switch(null!=a&&(d.volume=a),null!=s&&(d.time=s),null!=i&&(i?d.mute():d.unmute()),null!=o&&(o?d.loop():d.unloop()),null!=u&&d.oneEnd(function(){State.play(u)}),n){case\"play\":d.play();break;case\"pause\":d.pause();break;case\"stop\":d.stop();break;case\"fade\":d.volume===l&&(0===l?d.volume=1:1===l&&(d.volume=0)),d.fadeWithDuration(h,d.volume,l)}config.debug&&this.createDebugView()}catch(e){return this.error(\"error playing audio: \"+e.message)}}}),Macro.add(\"stopallaudio\",{handler:function(){var e=Macro.get(\"cacheaudio\").tracks;Object.keys(e).forEach(function(t){e[t].stop()}),config.debug&&this.createDebugView()}}),Macro.add(\"cacheaudio\",{handler:function(){if(this.args.length<2){var e=[];return this.args.length<1&&e.push(\"track ID\"),this.args.length<2&&e.push(\"sources\"),this.error(\"no \"+e.join(\" or \")+\" specified\")}for(var t=this.self.types,r=this.self.canPlay,n=document.createElement(\"audio\"),a=this.args[0],i=/^.+?(?:\\.([^\\.\\/\\\\]+?))$/,s=1;s<this.args.length;++s){var o=this.args[s],l=i.exec(o);if(null!==l){var u=l[1].toLowerCase(),c=t.hasOwnProperty(u)?t[u]:\"audio/\"+u;if(r.hasOwnProperty(c)||(r[c]=\"\"!==n.canPlayType(c).replace(/^no$/i,\"\")),r[c]){var d=document.createElement(\"source\");d.src=o,d.type=c,n.appendChild(d)}}}n.hasChildNodes()&&(n.preload=\"auto\",this.self.tracks[a]=new AudioWrapper(n)),config.debug&&this.createDebugView()},types:Object.freeze({mp3:\"audio/mpeg; codecs=mp3\",ogg:\"audio/ogg; codecs=vorbis\",webm:\"audio/webm; codecs=vorbis\",wav:\"audio/wav; codecs=1\"}),canPlay:{},tracks:{}}),Macro.add(\"playlist\",{handler:function(){if(0===this.args.length)return this.error(\"no actions specified\");for(var e,t,r,n,a,i,s,o=this.self,l=5,u=this.args.slice(0);u.length>0;){var c=u.shift();switch(c){case\"play\":case\"pause\":case\"stop\":e=c;break;case\"fadein\":e=\"fade\",i=1;break;case\"fadeout\":e=\"fade\",i=0;break;case\"fadeto\":if(0===u.length)return this.error(\"fadeto missing required level value\");if(e=\"fade\",s=u.shift(),i=parseFloat(s),isNaN(i)||!isFinite(i))return this.error(\"cannot parse fadeto: \"+s);break;case\"fadeoverto\":if(u.length<2){var d=[];return u.length<1&&d.push(\"seconds\"),u.length<2&&d.push(\"level\"),this.error(\"fadeoverto missing required \"+d.join(\" and \")+\" value\"+(d.length>1?\"s\":\"\"))}if(e=\"fade\",\ns=u.shift(),l=parseFloat(s),isNaN(l)||!isFinite(l))return this.error(\"cannot parse fadeoverto: \"+s);if(s=u.shift(),i=parseFloat(s),isNaN(i)||!isFinite(i))return this.error(\"cannot parse fadeoverto: \"+s);break;case\"volume\":if(0===u.length)return this.error(\"volume missing required level value\");if(s=u.shift(),t=parseFloat(s),isNaN(t)||!isFinite(t))return this.error(\"cannot parse volume: \"+s);break;case\"mute\":case\"unmute\":r=\"mute\"===c;break;case\"loop\":case\"unloop\":n=\"loop\"===c;break;case\"shuffle\":case\"unshuffle\":a=\"shuffle\"===c;break;default:return this.error(\"unknown action: \"+c)}}try{switch(null!=t&&o.setVolume(t),null!=r&&(o.muted=r,r?o.mute():o.unmute()),null!=n&&(o.loop=n),null!=a&&(o.shuffle=a,o.buildList()),e){case\"play\":o.play();break;case\"pause\":o.pause();break;case\"stop\":o.stop();break;case\"fade\":o.volume===i&&(0===i?o.setVolume(1):1===i&&o.setVolume(0)),o.fade(l,i)}config.debug&&this.createDebugView()}catch(e){return this.error(\"error playing audio: \"+e.message)}},play:function(){0===this.list.length&&this.buildList(),(null===this.current||this.current.isEnded())&&this.next(),this.current.play()},pause:function(){null!==this.current&&this.current.pause()},stop:function(){null!==this.current&&this.current.stop()},fade:function(e,t){0===this.list.length&&this.buildList(),null===this.current||this.current.isEnded()?this.next():this.current.volume=this.volume,this.current.fadeWithDuration(e,this.current.volume,t),this.volume=t},mute:function(){null!==this.current&&this.current.mute()},unmute:function(){null!==this.current&&this.current.unmute()},next:function(){this.current=this.list.shift(),this.current.volume=this.volume},setVolume:function(e){this.volume=e,null!==this.current&&(this.current.volume=e)},onEnd:function(){var thisp=Macro.get(\"playlist\");if(0===thisp.list.length){if(!thisp.loop)return;thisp.buildList()}thisp.next(),thisp.muted&&thisp.mute(),thisp.current.play()},buildList:function(){this.list=this.tracks.slice(0),this.shuffle&&(this.list.shuffle(),this.list.length>1&&this.list[0]===this.current&&this.list.push(this.list.shift()))},tracks:[],list:[],current:null,volume:1,muted:!1,loop:!0,shuffle:!1}),Macro.add(\"setplaylist\",{handler:function(){if(0===this.args.length)return this.error(\"no track ID(s) specified\");for(var e=Macro.get(\"cacheaudio\").tracks,t=Macro.get(\"playlist\"),r=[],n=0;n<this.args.length;++n){var a=this.args[n];if(!e.hasOwnProperty(a))return this.error(\"no track by ID: \"+a);var i=e[a].clone();i.stop(),i.unloop(),i.unmute(),i.volume=1,jQuery(i.audio).off(\"ended\").on(\"ended.macros:playlist\",t.onEnd),r.push(i)}null!==t.current&&t.current.pause(),t.tracks=r,t.list=[],t.current=null,t.volume=1,t.muted=!1,t.loop=!0,t.shuffle=!1,config.debug&&this.createDebugView()}})):Macro.add([\"audio\",\"stopallaudio\",\"cacheaudio\",\"playlist\",\"setplaylist\"],{handler:function(){}})}();var Save=function(){function e(){if(\"cookie\"===storage.name)return n(),config.saves.autosave=undefined,config.saves.slots=0,!1;config.saves.slots<0&&(config.saves.slots=0);var e=r(),t=!1;Array.isArray(e)&&(e={autosave:null,slots:e},t=!0),config.saves.slots!==e.slots.length&&(config.saves.slots<e.slots.length?(e.slots.reverse(),e.slots=e.slots.filter(function(e){return null===e&&this.count>0?(--this.count,!1):!0},{count:e.slots.length-config.saves.slots}),e.slots.reverse()):config.saves.slots>e.slots.length&&S(e.slots,config.saves.slots-e.slots.length),t=!0);var a=function(e){e.hasOwnProperty(\"data\")?(delete e.mode,e.state={delta:State.deltaEncode(e.data)},delete e.data):e.state.hasOwnProperty(\"delta\")?e.state.hasOwnProperty(\"index\")||delete e.state.mode:(delete e.state.mode,e.state.delta=State.deltaEncode(e.state.history),delete e.state.history),e.state.index=e.state.delta.length-1,e.state.hasOwnProperty(\"rseed\")&&(e.state.seed=e.state.rseed,delete e.state.rseed,e.state.delta.forEach(function(e,t,r){r[t].hasOwnProperty(\"rcount\")&&(r[t].pull=r[t].rcount,delete r[t].rcount)}))};null!==e.autosave&&(e.autosave.hasOwnProperty(\"state\")&&e.autosave.state.hasOwnProperty(\"delta\")&&e.autosave.state.hasOwnProperty(\"index\")&&!e.autosave.state.hasOwnProperty(\"rseed\")||(a(e.autosave),t=!0));for(var i=0;i<e.slots.length;++i)null!==e.slots[i]&&(e.slots[i].hasOwnProperty(\"state\")&&e.slots[i].state.hasOwnProperty(\"delta\")&&e.slots[i].state.hasOwnProperty(\"index\")&&!e.slots[i].state.hasOwnProperty(\"rseed\")||(a(e.slots[i]),t=!0));return x(e)&&(storage.delete(\"saves\"),t=!1),t&&E(e),A=e.slots.length-1,!0}function t(){return{autosave:null,slots:S([],config.saves.slots)}}function r(){var e=storage.get(\"saves\");return null===e?t():e}function n(){return storage.delete(\"saves\"),!0}function a(){return i()||d()}function i(){return\"cookie\"!==storage.name&&\"undefined\"!=typeof config.saves.autosave}function s(){var e=r();return null===e.autosave?!1:!0}function o(){var e=r();return e.autosave}function l(){var e=r();return null===e.autosave?!1:j(e.autosave)}function u(e,t){if(\"function\"==typeof config.saves.isAllowed&&!config.saves.isAllowed())return!1;var n=r();return n.autosave=O(),n.autosave.title=e||Story.get(State.passage).description(),n.autosave.date=Date.now(),null!=t&&(n.autosave.metadata=t),E(n)}function c(){var e=r();return e.autosave=null,E(e)}function d(){return\"cookie\"!==storage.name&&-1!==A}function h(){return A+1}function p(){if(!d())return 0;for(var e=r(),t=0,n=0;n<e.slots.length;++n)null!==e.slots[n]&&++t;return t}function f(){return 0===p()}function g(e){if(0>e||e>A)return!1;var t=r();return e>=t.slots.length||null===t.slots[e]?!1:!0}function m(e){if(0>e||e>A)return null;var t=r();return e>=t.slots.length?null:t.slots[e]}function v(e){if(0>e||e>A)return!1;var t=r();return e>=t.slots.length||null===t.slots[e]?!1:j(t.slots[e])}function y(e,t,n){if(\"function\"==typeof config.saves.isAllowed&&!config.saves.isAllowed())return UI.alert(strings.saves.disallowed),!1;if(0>e||e>A)return!1;var a=r();return e>=a.slots.length?!1:(a.slots[e]=O(),a.slots[e].title=t||Story.get(State.passage).description(),a.slots[e].date=Date.now(),null!=n&&(a.slots[e].metadata=n),E(a))}function b(e){if(0>e||e>A)return!1;var t=r();return e>=t.slots.length?!1:(t.slots[e]=null,E(t))}function w(e){if(\"function\"==typeof config.saves.isAllowed&&!config.saves.isAllowed())return void UI.alert(strings.saves.disallowed);var t=(null==e?Story.domId:Util.slugify(e))+\".save\",r=LZString.compressToBase64(JSON.stringify(O()));saveAs(new Blob([r],{type:\"text/plain;charset=UTF-8\"}),t)}function k(e){var t=e.target.files[0],r=new FileReader;jQuery(r).on(\"load\",function(e){if(e.target.result){var r;try{r=JSON.parse(/\\.json$/i.test(t.name)||/^\\{/.test(e.target.result)?e.target.result:LZString.decompressFromBase64(e.target.result))}catch(e){}j(r)}}),r.readAsText(t)}function S(e,t){for(var r=0;t>r;++r)e.push(null);return e}function x(e){for(var t=!0,r=0;r<e.slots.length;++r)if(null!==e.slots[r]){t=!1;break}return null===e.autosave&&t}function E(e){return x(e)?(storage.delete(\"saves\"),!0):storage.set(\"saves\",e)}function O(){var e={id:config.saves.id,state:State.marshalForSave()};return config.saves.version&&(e.version=config.saves.version),\"function\"==typeof config.saves.onSave&&config.saves.onSave(e),e.state.delta=State.deltaEncode(e.state.history),delete e.state.history,e}function j(e){try{if(!e||!e.hasOwnProperty(\"id\")||!e.hasOwnProperty(\"state\"))throw new Error(strings.errors.saveMissingData);if(delete e.state.mode,e.state.hasOwnProperty(\"index\")||(e.state.index=e.state.delta.length-1),e.state.hasOwnProperty(\"rseed\")&&(e.state.seed=e.state.rseed,delete e.state.rseed,e.state.delta.forEach(function(e,t,r){r[t].hasOwnProperty(\"rcount\")&&(r[t].pull=r[t].rcount,delete r[t].rcount)})),e.state.history=State.deltaDecode(e.state.delta),delete e.state.delta,\"function\"==typeof config.saves.onLoad&&config.saves.onLoad(e),e.id!==config.saves.id)throw new Error(strings.errors.saveIdMismatch.replace(/%identity%/g,strings.identity));State.unmarshalForSave(e.state)}catch(e){return UI.alert(e.message[0].toUpperCase()+e.message.slice(1)+\".</p><p>\"+strings.aborting+\".\"),!1}return!0}var A=-1;return Object.freeze(Object.defineProperties({},{init:{value:e},get:{value:r},clear:{value:n},ok:{value:a},autosave:{value:Object.freeze(Object.defineProperties({},{ok:{value:i},has:{value:s},get:{value:o},load:{value:l},save:{value:u},delete:{value:c}}))},slots:{value:Object.freeze(Object.defineProperties({},{ok:{value:d},length:{get:h},isEmpty:{value:f},count:{value:p},has:{value:g},get:{value:m},load:{value:v},save:{value:y},delete:{value:b}}))},export:{value:w},import:{value:k}}))}(),Setting=function(){function e(){if(storage.has(\"options\")){var e=storage.get(\"options\");null!==e&&(window.SugarCube.settings=settings=Object.assign(r(),e)),n(),storage.delete(\"options\")}a(),g.forEach(function(e){if(e.hasOwnProperty(\"onInit\")){var thisp={name:e.name,value:settings[e.name],default:e.default};e.hasOwnProperty(\"list\")&&(thisp.list=e.list),e.onInit.call(thisp)}})}function t(){return Object.keys(settings).length>0?!g.some(function(e){return settings[e.name]!==e.default}):!0}function r(){return Object.create(null)}function n(){return 0===Object.keys(settings).length||t()?(storage.delete(\"settings\"),!0):storage.set(\"settings\",settings)}function a(){var e=r(),t=storage.get(\"settings\");g.forEach(function(e){settings[e.name]=e.default}),null!==t&&(window.SugarCube.settings=settings=Object.assign(e,t))}function i(){return window.SugarCube.settings=settings=r(),n()}function s(e){if(0===arguments.length)i(),g.forEach(function(e){settings[e.name]=e.default});else{if(null==e||!h(e))throw new Error('nonexistent setting \"'+e+'\"');settings[e]=p(e).default}return n()}function o(e,thisp){g.forEach(e,thisp)}function l(e,t,r){if(arguments.length<3){var n=[];throw arguments.length<1&&n.push(\"type\"),arguments.length<2&&n.push(\"name\"),arguments.length<3&&n.push(\"definition\"),new Error(\"missing parameters, no \"+n.join(\" or \")+\" specified\")}if(\"object\"!=typeof r)throw new TypeError(\"definition parameter must be an object\");if(h(t))throw new Error('cannot clobber existing setting \"'+t+'\"');var a={type:e,name:t,label:null==r.label?\"\":String(r.label).trim()};switch(e){case m.Toggle:a.default=!!r.default;break;case m.List:if(!r.hasOwnProperty(\"list\"))throw new Error(\"no list specified\");if(!Array.isArray(r.list))throw new TypeError(\"list must be an array\");if(0===r.list.length)throw new Error(\"list must not be empty\");if(a.list=Object.freeze(r.list),null==r.default)a.default=r.list[0];else{var i=r.list.indexOf(r.default);if(-1===i)throw new Error(\"list does not contain default\");a.default=r.list[i]}break;default:throw new Error(\"unknown Setting type: \"+e)}\"function\"==typeof r.onInit&&(a.onInit=Object.freeze(r.onInit)),\"function\"==typeof r.onChange&&(a.onChange=Object.freeze(r.onChange)),g.push(Object.freeze(a))}function u(){l.apply(null,[m.Toggle].concat(Array.from(arguments)))}function c(){l.apply(null,[m.List].concat(Array.from(arguments)))}function d(){return 0===g.length}function h(e){return g.some(function(t){return t.name===e})}function p(e){return g.find(function(t){return t.name===e})}function f(e){h(e)&&delete settings[e];for(var t=0;t<g.length;++t)if(g[t].name===e){g.splice(t,1),f(e);break}}var g=[],m=Object.freeze({Toggle:0,List:1});return Object.freeze(Object.defineProperties({},{Types:{value:m},init:{value:e},create:{value:r},save:{value:n},load:{value:a},clear:{value:i},reset:{value:s},forEach:{value:o},add:{value:l},addToggle:{value:u},addList:{value:c},isEmpty:{value:d},has:{value:h},get:{value:p},delete:{value:f}}))}(),UI=function(){function e(){jQuery(\"#init-no-js, #init-lacking\").remove(),I=document.createElement(\"style\"),I.id=\"style-outline-patch\",I.type=\"text/css\",document.head.appendChild(I),D=function(){var e;try{var t=document.createElement(\"p\");t.style.width=\"100%\",t.style.height=\"200px\";var r=document.createElement(\"div\");r.style.position=\"absolute\",r.style.left=\"0px\",r.style.top=\"0px\",r.style.width=\"100px\",r.style.height=\"100px\",r.style.visibility=\"hidden\",r.style.overflow=\"hidden\",r.appendChild(t),document.body.appendChild(r);var n=t.offsetWidth;r.style.overflow=\"auto\";var a=t.offsetWidth;n===a&&(a=r.clientWidth),document.body.removeChild(r),e=n-a}catch(e){}return e||17}();var e=document.getElementById(\"store-area\"),t=document.createDocumentFragment(),r=document.createElement(\"div\");for(r.innerHTML='<div id=\"ui-bar\"><div id=\"ui-bar-tray\">'+String.format('<button id=\"ui-bar-toggle\" tabindex=\"0\" title=\"{0}\" aria-label=\"{0}\"></button>',strings.uiBar.toggle)+'<div id=\"ui-bar-history\">'+String.format('<button id=\"history-backward\" tabindex=\"0\" title=\"{0}\" aria-label=\"{0}\"></button>',strings.uiBar.backward.replace(/%identity%/g,strings.identity))+String.format('<button id=\"history-jumpto\" tabindex=\"0\" title=\"{0}\" aria-label=\"{0}\"></button>',strings.uiBar.jumpto.replace(/%identity%/g,strings.identity))+String.format('<button id=\"history-forward\" tabindex=\"0\" title=\"{0}\" aria-label=\"{0}\"></button>',strings.uiBar.forward.replace(/%identity%/g,strings.identity))+'</div></div><div id=\"ui-bar-body\"><header id=\"title\" role=\"banner\"><div id=\"story-banner\"></div><h1 id=\"story-title\"></h1><div id=\"story-subtitle\"></div><div id=\"story-title-separator\"></div><p id=\"story-author\"></p></header><div id=\"story-caption\"></div><nav id=\"menu\" role=\"navigation\"><ul id=\"menu-story\"></ul><ul id=\"menu-core\"><li id=\"menu-item-saves\"><a tabindex=\"0\">'+strings.saves.title+'</a></li><li id=\"menu-item-settings\"><a tabindex=\"0\">'+strings.settings.title+'</a></li><li id=\"menu-item-restart\"><a tabindex=\"0\">'+strings.restart.title+'</a></li><li id=\"menu-item-share\"><a tabindex=\"0\">'+strings.share.title+'</a></li></ul></nav></div></div><div id=\"ui-overlay\" class=\"ui-close\"></div><div id=\"ui-dialog\" tabindex=\"0\" role=\"dialog\" aria-labelledby=\"ui-dialog-title\"><div id=\"ui-dialog-titlebar\"><h1 id=\"ui-dialog-title\"></h1><button id=\"ui-dialog-close\" class=\"ui-close\" tabindex=\"0\" aria-label=\"'+strings.close+'\"></button></div><div id=\"ui-dialog-body\"></div></div><div id=\"story\" role=\"main\"><div id=\"passages\"></div></div>';r.hasChildNodes();)t.appendChild(r.firstChild);O=t.querySelector(\"#ui-bar\"),j=t.querySelector(\"#ui-overlay\"),A=t.querySelector(\"#ui-dialog\"),P=t.querySelector(\"#ui-dialog-title\"),T=t.querySelector(\"#ui-dialog-close\"),C=t.querySelector(\"#ui-dialog-body\"),e.parentNode.insertBefore(t,e),jQuery(document).on(\"tw:historyupdate\",function(e,t){return function(){e.prop(\"disabled\",State.length<2),t.prop(\"disabled\",State.length===State.size)}}(jQuery(\"#history-backward\"),jQuery(\"#history-forward\"))).on(\"mousedown.outline-handler keydown.outline-handler\",function(e){switch(e.type){case\"mousedown\":n(!0);break;case\"keydown\":n(!1)}})}function t(){if(config.ui.stowBarInitially||jQuery(window).width()<=800){var e=jQuery(\"#ui-bar,#story\");e.addClass(\"no-transition\"),O.classList.add(\"stowed\"),setTimeout(function(){e.removeClass(\"no-transition\")},Math.max(minDOMActionDelay,100))}jQuery(\"#ui-bar-toggle\").ariaClick({label:strings.uiBar.toggle},function(){jQuery(O).toggleClass(\"stowed\")}),config.history.controls?(jQuery(\"#history-backward\").prop(\"disabled\",State.length<2).ariaClick({label:strings.uiBar.backward.replace(/%identity%/g,strings.identity)},function(){State.backward()}),(0===config.history.maxStates||config.history.maxStates>10)&&Story.lookup(\"tags\",\"bookmark\").length>0?jQuery(\"#history-jumpto\").ariaClick({label:strings.uiBar.jumpto.replace(/%identity%/g,strings.identity)},function(){UI.jumpto()}):jQuery(\"#history-jumpto\").remove(),jQuery(\"#history-forward\").prop(\"disabled\",State.length===State.size).ariaClick({label:strings.uiBar.forward.replace(/%identity%/g,strings.identity)},function(){State.forward()})):jQuery(\"#ui-bar-history\").remove(),jQuery(\"#story-title\").text(Story.title),Story.has(\"StoryCaption\")||jQuery(\"#story-caption\").remove(),Story.has(\"StoryMenu\")||jQuery(\"#menu-story\").remove(),config.ui.updateStoryElements||r(),w(\"#menu-item-saves a\",null,f).text(strings.saves.title),Setting.isEmpty()?jQuery(\"#menu-item-settings\").remove():w(\"#menu-item-settings a\",null,g).text(strings.settings.title),w(\"#menu-item-restart a\",null,p).text(strings.restart.title),Story.has(\"StoryShare\")?w(\"#menu-item-share a\",null,m).text(strings.share.title):jQuery(\"#menu-item-share\").remove(),\"complete\"===document.readyState&&document.documentElement.classList.remove(\"init-loading\"),document.addEventListener(\"readystatechange\",function(){\"complete\"===document.readyState?config.loadDelay>0?setTimeout(function(){document.documentElement.classList.remove(\"init-loading\")},Math.max(minDOMActionDelay,config.loadDelay)):document.documentElement.classList.remove(\"init-loading\"):document.documentElement.classList.add(\"init-loading\")},!1)}function r(){setPageElement(\"story-banner\",\"StoryBanner\"),setPageElement(\"story-subtitle\",\"StorySubtitle\"),setPageElement(\"story-author\",\"StoryAuthor\"),setPageElement(\"story-caption\",\"StoryCaption\");var e=document.getElementById(\"menu-story\");null!==e&&(removeChildren(e),Story.has(\"StoryMenu\")&&a(\"StoryMenu\",e))}function n(e){var t=new StyleWrapper(I);e?t.set(\"*:focus{outline:none}\"):t.clear()}function a(e,t){var r=config.debug;config.debug=!1,null==t&&(t=document.createElement(\"ul\"));var n=document.createDocumentFragment();if(new Wikifier(n,Story.get(e).processText().trim()),n.hasChildNodes())for(var a=null;n.hasChildNodes();){var i=n.firstChild;i.nodeType!==Node.ELEMENT_NODE||\"A\"!==i.nodeName.toUpperCase()?(n.removeChild(i),null!==a&&(a=null)):(null===a&&(a=document.createElement(\"li\"),t.appendChild(a)),a.appendChild(i))}return config.debug=r,t}function i(e,t,r){jQuery(b(\"Alert\",\"alert\")).append(\"<p>\"+e+'</p><ul class=\"buttons\"><li><button id=\"alert-ok\" class=\"ui-close\">'+(strings.alert.ok||strings.ok)+\"</button></li></ul>\"),k(t,r)}function s(){h(),k.apply(null,arguments)}function o(e){p(),k(e)}function l(){f(),k.apply(null,arguments)}function u(){g(),k.apply(null,arguments)}function c(){m(),k.apply(null,arguments)}function d(){return jQuery(b(strings.autoload.title,\"autoload\")).append(\"<p>\"+strings.autoload.prompt+'</p><ul class=\"buttons\"><li><button id=\"autoload-ok\" class=\"ui-close\">'+(strings.autoload.ok||strings.ok)+'</button></li><li><button id=\"autoload-cancel\" class=\"ui-close\">'+(strings.autoload.cancel||strings.cancel)+\"</button></li></ul>\"),jQuery(document.body).one(\"click.autoload\",\".ui-close\",function(e){\"autoload-ok\"===e.target.id&&Save.autosave.load()||State.play(config.passages.start)}),!0}function h(){var e=document.createElement(\"ul\");jQuery(b(strings.jumpto.title,\"jumpto list\")).append(e);for(var t=State.size-1;t>=0;--t)if(t!==State.activeIndex){var r=Story.get(State.history[t].title);if(r&&r.tags.contains(\"bookmark\")){var n=document.createElement(\"li\"),a=document.createElement(\"a\");jQuery(a).ariaClick({one:!0},function(e){return function(){State.goTo(e)}}(t)).addClass(\"ui-close\").text(strings.jumpto.turn+\" \"+(State.expired+t+1)+\": \"+r.description()),n.appendChild(a),e.appendChild(n)}}e.hasChildNodes()||jQuery(e).append(\"<li><a><i>\"+strings.jumpto.unavailable+\"</i></a></li>\")}function p(){return jQuery(b(strings.restart.title,\"restart\")).append(\"<p>\"+strings.restart.prompt+'</p><ul class=\"buttons\"><li><button id=\"restart-ok\" class=\"ui-close\">'+(strings.restart.ok||strings.ok)+'</button></li><li><button id=\"restart-cancel\" class=\"ui-close\">'+(strings.restart.cancel||strings.cancel)+\"</button></li></ul>\"),jQuery(\"#ui-dialog-body #restart-ok\").one(\"click\",function(){State.restart()}),!0}function f(){function e(e,t,r,n){var a=document.createElement(\"li\"),i=jQuery(document.createElement(\"button\"));return i.attr(\"id\",\"saves-\"+e).html(r),t&&i.addClass(t),n?i.ariaClick(n):i.prop(\"disabled\",!0),i.appendTo(a),a}function t(){function e(e,t,r,n,a){var i=jQuery(document.createElement(\"button\"));return i.attr(\"id\",\"saves-\"+e+\"-\"+n).addClass(e).html(r),t&&i.addClass(t),a?\"auto\"===n?i.ariaClick({label:r+\" \"+strings.saves.labelAuto},function(){a()}):i.ariaClick({label:r+\" \"+strings.saves.labelSlot+\" \"+(n+1)},function(){a(n)}):i.prop(\"disabled\",!0),i[0]}var t,r,n,a,i,s,o,l,u=Save.get(),c=document.createElement(\"tbody\");Save.autosave.ok()&&(t=document.createElement(\"tr\"),r=document.createElement(\"td\"),n=document.createElement(\"td\"),i=document.createElement(\"td\"),o=document.createElement(\"td\"),s=document.createElement(\"b\"),s.innerHTML=\"A\",s.title=strings.saves.labelAuto,r.appendChild(s),u.autosave?(a=e(\"load\",\"ui-close\",strings.saves.labelLoad,\"auto\",Save.autosave.load),n.appendChild(a),s=document.createElement(\"div\"),s.appendChild(document.createTextNode(u.autosave.title)),i.appendChild(s),s=document.createElement(\"div\"),s.classList.add(\"datestamp\"),u.autosave.date?s.innerHTML=strings.saves.savedOn+\" \"+new Date(u.autosave.date).toLocaleString():s.innerHTML=strings.saves.savedOn+\" <em>\"+strings.saves.unknownDate+\"</em>\",i.appendChild(s),l=e(\"delete\",null,strings.saves.labelDelete,\"auto\",function(){Save.autosave.delete(),f()}),o.appendChild(l)):(a=e(\"load\",null,strings.saves.labelLoad,\"auto\"),n.appendChild(a),s=document.createElement(\"i\"),s.innerHTML=strings.saves.emptySlot,i.appendChild(s),i.classList.add(\"empty\"),l=e(\"delete\",null,strings.saves.labelDelete,\"auto\"),o.appendChild(l)),t.appendChild(r),t.appendChild(n),t.appendChild(i),t.appendChild(o),c.appendChild(t));for(var d=0;d<u.slots.length;++d)t=document.createElement(\"tr\"),r=document.createElement(\"td\"),n=document.createElement(\"td\"),i=document.createElement(\"td\"),o=document.createElement(\"td\"),r.appendChild(document.createTextNode(d+1)),u.slots[d]?(a=e(\"load\",\"ui-close\",strings.saves.labelLoad,d,Save.slots.load),n.appendChild(a),s=document.createElement(\"div\"),s.appendChild(document.createTextNode(u.slots[d].title)),i.appendChild(s),s=document.createElement(\"div\"),s.classList.add(\"datestamp\"),u.slots[d].date?s.innerHTML=strings.saves.savedOn+\" \"+new Date(u.slots[d].date).toLocaleString():s.innerHTML=strings.saves.savedOn+\" <em>\"+strings.saves.unknownDate+\"</em>\",i.appendChild(s),l=e(\"delete\",null,strings.saves.labelDelete,d,function(e){Save.slots.delete(e),f(),x()}),o.appendChild(l)):(a=e(\"save\",\"ui-close\",strings.saves.labelSave,d,Save.slots.save),n.appendChild(a),s=document.createElement(\"i\"),s.innerHTML=strings.saves.emptySlot,i.appendChild(s),i.classList.add(\"empty\"),l=e(\"delete\",null,strings.saves.labelDelete,d),o.appendChild(l)),t.appendChild(r),t.appendChild(n),t.appendChild(i),t.appendChild(o),c.appendChild(t);var h=document.createElement(\"table\");return h.id=\"saves-list\",h.appendChild(c),h}var r,n,a=Save.ok(),s=Save.autosave.has()||!Save.slots.isEmpty();return b(strings.saves.title,\"saves\"),a&&(r=t(),r||(r=document.createElement(\"div\"),r.id=\"saves-list\",r.innerHTML=\"<i>\"+strings.saves.unavailable+\"</i>\"),C.appendChild(r)),a||Has.fileAPI?(n=document.createElement(\"ul\"),n.classList.add(\"buttons\"),Has.fileAPI&&(n.appendChild(e(\"export\",\"ui-close\",strings.saves.labelExport,Save.export)),n.appendChild(e(\"import\",null,strings.saves.labelImport,function(){jQuery(\"#saves-import-file\",C).trigger(\"click\")}))),a&&n.appendChild(e(\"clear\",null,strings.saves.labelClear,s?function(){Save.clear(),f(),x()}:null)),C.appendChild(n),Has.fileAPI&&C.appendChild(function(){var e=document.createElement(\"input\");return jQuery(e).css({display:\"block\",visibility:\"hidden\",position:\"fixed\",left:\"-9999px\",top:\"-9999px\",width:\"1px\",height:\"1px\"}).attr(\"type\",\"file\").attr(\"id\",\"saves-import-file\").attr(\"tabindex\",-1).attr(\"aria-hidden\",!0).on(\"change\",function(e){Save.import(e),S()}),e}()),!0):(i(strings.saves.incapable.replace(/%identity%/g,strings.identity)),!1)}function g(){return b(strings.settings.title,\"settings\"),Setting.forEach(function(e){var t,r=e.name,n=Util.slugify(r),a=document.createElement(\"div\"),i=document.createElement(\"label\"),s=document.createElement(\"div\");switch(a.appendChild(i),a.appendChild(s),a.id=\"setting-body-\"+n,i.id=\"setting-label-\"+n,new Wikifier(i,e.label),null==settings[r]&&(settings[r]=e.default),e.type){case Setting.Types.Toggle:t=document.createElement(\"button\"),settings[r]?jQuery(t).addClass(\"enabled\").text(strings.settings.on):jQuery(t).text(strings.settings.off),jQuery(t).ariaClick(function(){settings[r]?(jQuery(this).removeClass(\"enabled\").text(strings.settings.off),settings[r]=!1):(jQuery(this).addClass(\"enabled\").text(strings.settings.on),settings[r]=!0),Setting.save(),e.hasOwnProperty(\"onChange\")&&e.onChange.call({name:r,value:settings[r],default:e.default})});break;case Setting.Types.List:t=document.createElement(\"select\");for(var o=0;o<e.list.length;++o){var l=document.createElement(\"option\");jQuery(l).val(o).text(e.list[o]),t.appendChild(l)}jQuery(t).val(e.list.indexOf(settings[r])).attr(\"tabindex\",0).on(\"change\",function(){settings[r]=e.list[+this.value],Setting.save(),e.hasOwnProperty(\"onChange\")&&e.onChange.call({name:r,value:settings[r],default:e.default,list:e.list})})}t.id=\"setting-control-\"+n,s.appendChild(t),i.setAttribute(\"for\",t.id),C.appendChild(a)}),jQuery(C).append('<ul class=\"buttons\"><li><button id=\"settings-ok\" class=\"ui-close\">'+(strings.settings.ok||strings.ok)+'</button></li><li><button id=\"settings-reset\" class=\"ui-close\">'+strings.settings.reset+\"</button></li></ul>\"),jQuery(\"#ui-dialog-body #settings-reset\").one(\"click\",function(){Setting.reset(),window.location.reload()}),!0}function m(){return jQuery(b(strings.share.title,\"share list\")).append(a(\"StoryShare\")),!0}function v(e){return A.classList.contains(\"open\")&&(e?C.classList.contains(e):!0)}function y(){return C}function b(e,t){return jQuery(C).empty().removeClass(),null!=t&&jQuery(C).addClass(t),e=null==e?\"\":e+\"\",jQuery(P).empty().append(\"\"===e?\" \":e),C}function w(e,t,r,n,a){return jQuery(e).ariaClick(function(e){e.preventDefault(),\"function\"==typeof r&&r(e),k(t,a),\"function\"==typeof n&&n(e)})}function k(e,t){e=jQuery.extend({top:50},e),v()||(M=safeActiveElement()),jQuery(document.documentElement).addClass(\"ui-dialog-open\"),jQuery(j).addClass(\"open\"),null!==C.querySelector(\"img\")&&jQuery(C).imagesLoaded().always(function(e){return function(){x({data:e})}}(e.top)),jQuery(\"body>:not(script,#store-area,#ui-bar,#ui-overlay,#ui-dialog)\").attr(\"tabindex\",-3).attr(\"aria-hidden\",!0),jQuery(\"#ui-bar,#story\").find(\"[tabindex]:not([tabindex^=-])\").attr(\"tabindex\",-2).attr(\"aria-hidden\",!0);var r=E(e.top);jQuery(A).css(r).addClass(\"open\").focus(),jQuery(window).on(\"resize.ui-resize\",null,e.top,jQuery.throttle(40,x)),jQuery(document.body).on(\"click.ui-close\",\".ui-close\",t,S).on(\"keypress.ui-close\",\".ui-close\",function(e){(13===e.which||32===e.which)&&jQuery(this).trigger(\"click\")})}function S(e){jQuery(document.body).off(\".ui-close\"),jQuery(window).off(\"resize.ui-resize\"),jQuery(A).removeClass(\"open\").css({left:\"\",right:\"\",top:\"\",bottom:\"\"}),jQuery(\"#ui-bar,#story\").find(\"[tabindex=-2]\").removeAttr(\"aria-hidden\").attr(\"tabindex\",0),jQuery(\"body>[tabindex=-3]\").removeAttr(\"aria-hidden\").removeAttr(\"tabindex\"),jQuery(P).empty(),jQuery(C).empty().removeClass(),jQuery(j).removeClass(\"open\"),jQuery(document.documentElement).removeClass(\"ui-dialog-open\"),null!==M&&(jQuery(M).focus(),M=null),e&&\"function\"==typeof e.data&&e.data(e)}function x(e){var t=jQuery(A),r=e&&\"undefined\"!=typeof e.data?e.data:50;if(\"block\"===t.css(\"display\")){t.css({display:\"none\"});var n=E(r);t.css(jQuery.extend({display:\"\"},n))}}function E(e){null==e&&(e=50);var t=jQuery(window),r=jQuery(A),n={left:\"\",right:\"\",top:\"\",bottom:\"\"};r.css(n);var a=t.width()-r.outerWidth(!0)-1,i=t.height()-r.outerHeight(!0)-1;return 32+D>=a&&(i-=D),32+D>=i&&(a-=D),32>=a?n.left=n.right=16:n.left=n.right=~~(a/2),32>=i?n.top=n.bottom=16:i/2>e?n.top=e:n.top=n.bottom=~~(i/2),Object.keys(n).forEach(function(e){\"\"!==n[e]&&(n[e]+=\"px\")}),n}var O=null,j=null,A=null,P=null,T=null,C=null,M=null,I=null,D=0;return Object.freeze(Object.defineProperties({},{init:{value:e},start:{value:t},setStoryElements:{value:r},patchOutlines:{value:n},assembleLinkList:{value:a},alert:{value:i},jumpto:{value:s},restart:{value:o},saves:{value:l},settings:{value:u},share:{value:c},buildAutoload:{value:d},buildJumpto:{value:h},buildRestart:{value:p},buildSaves:{value:f},buildSettings:{value:g},buildShare:{value:m},isOpen:{value:v},body:{value:y},setup:{value:b},addClickHandler:{value:w},open:{value:k},close:{value:S},buildDialogAutoload:{value:d},buildDialogJumpto:{value:h},buildDialogRestart:{value:p},buildDialogSaves:{value:f},buildDialogSettings:{value:g},buildDialogShare:{value:m},buildLinkListFromPassage:{value:a}}))}(),Passage=function(){function e(e,t){Object.defineProperties(this,{title:{value:Util.unescape(e)},element:{value:t||null},tags:{value:Object.freeze(t&&t.hasAttribute(\"tags\")?t.getAttribute(\"tags\").trim().splitOrEmpty(/\\s+/).sort().filter(function(e,t,r){return 0===t||r[t-1]!==e}):[])}}),Object.defineProperties(this,{domId:{value:\"passage-\"+Util.slugify(this.title)},classes:{value:Object.freeze(0===this.tags.length?[]:function(e){var t;return t=/^(?:debug|nobr|passage|widget|twine\\..*)$/i,e.filter(function(e){return!t.test(e)}).map(function(e){return Util.slugify(e)})}(this.tags))}})}return Object.defineProperties(e.prototype,{className:{get:function(){return this.classes.join(\" \")}},text:{get:function(){return null==this.element?('<span class=\"error\" title=\"%passage%\">'+strings.errors.title+\": \"+strings.errors.nonexistentPassage+\"</span>\").replace(/%passage%/g,Util.escape(this.title)):this.element.textContent.replace(/\\r/g,\"\")}},description:{value:function(){if(null!=config.passages.descriptions)switch(typeof config.passages.descriptions){case\"boolean\":if(config.passages.descriptions)return this.title;break;case\"object\":if(config.passages.descriptions.hasOwnProperty(this.title))return config.passages.descriptions[this.title];break;case\"function\":var t=config.passages.descriptions.call(this);if(t)return t;break;default:throw new TypeError(\"config.passages.descriptions must be a boolean, object, or function\")}return null==this._excerpt?e.getExcerptFromText(this.text):this._excerpt}},processText:{value:function(){var e=this.text;return this.tags.contains(\"nobr\")&&(e=e.replace(/^\\n+|\\n+$/g,\"\").replace(/\\n+/g,\" \")),this.tags.contains(\"Twine.image\")&&(e=\"[img[\"+e+\"]]\"),e}},render:{value:function(){var t=insertElement(null,\"div\",this.domId,\"passage\");t.setAttribute(\"data-passage\",this.title),t.setAttribute(\"data-tags\",this.tags.join(\" \"));for(var r=0;r<this.classes.length;++r)document.body.classList.add(this.classes[r]),t.classList.add(this.classes[r]);return Object.keys(prerender).forEach(function(e){\"function\"==typeof prerender[e]&&prerender[e].call(this,t,e)},this),Story.has(\"PassageHeader\")&&new Wikifier(t,Story.get(\"PassageHeader\").processText()),new Wikifier(t,this.processText()),Story.has(\"PassageFooter\")&&new Wikifier(t,Story.get(\"PassageFooter\").processText()),config.cleanupWikifierOutput&&convertBreaksToParagraphs(t),Object.keys(postrender).forEach(function(e){\"function\"==typeof postrender[e]&&postrender[e].call(this,t,e)},this),this._excerpt=e.getExcerptFromNode(t),t}}}),Object.defineProperties(e,{getExcerptFromNode:{value:function(e,t){if(!e.hasChildNodes())return\"\";var r=new RegExp(\"(\\\\S+(?:\\\\s+\\\\S+){0,\"+(t>0?t-1:7)+\"})\"),n=e.textContent.trim();return\"\"!==n&&(n=n.replace(/\\s+/g,\" \").match(r)),n?n[1]+\"…\":\"…\"}},getExcerptFromText:{value:function(e,t){if(\"\"===e)return\"\";var r=new RegExp(\"(\\\\S+(?:\\\\s+\\\\S+){0,\"+(t>0?t-1:7)+\"})\"),n=e.replace(/<<.*?>>/g,\" \").replace(/<.*?>/g,\" \").trim().replace(/^\\s*\\|.*\\|.*?$/gm,\"\").replace(/\\[[<>]?img\\[[^\\]]*\\]\\]/g,\"\").replace(/\\[\\[([^|\\]]*)(?:|[^\\]]*)?\\]\\]/g,\"$1\").replace(/^\\s*!+(.*?)$/gm,\"$1\").replace(/\\'{2}|\\/{2}|_{2}|@{2}/g,\"\").trim().replace(/\\s+/g,\" \").match(r);return n?n[1]+\"…\":\"…\"}}}),e}(),Story=function(){function e(){for(var e=0;e<d.length;++e)addStyle(d[e].text);for(var e=0;e<h.length;++e)try{evalJavaScript(h[e].text)}catch(t){technicalAlert(h[e].title,t.message)}for(var e=0;e<p.length;++e)try{Wikifier.wikifyEval(p[e].processText())}catch(t){technicalAlert(p[e].title,t.message)}}function t(e){if(null==e||\"\"===e)throw new Error(\"story title cannot be null or empty\");document.title=l=Util.unescape(e),u=Util.slugify(l);\n}function r(){return l}function n(){return u}function a(e){switch(typeof e){case\"number\":e+=\"\";case\"string\":return c.hasOwnProperty(e);default:var t=typeof e;throw new TypeError(\"Story.has title parameter cannot be \"+(\"object\"===t?\"an \"+t:\"a \"+t))}}function i(e){switch(typeof e){case\"number\":e+=\"\";case\"string\":return c.hasOwnProperty(e)?c[e]:new Passage(e||\"(unknown)\");default:var t=typeof e;throw new TypeError(\"Story.get title parameter cannot be \"+(\"object\"===t?\"an \"+t:\"a \"+t))}}function s(e,t,r){r||(r=\"title\");for(var n=Object.keys(c),a=[],i=0;i<n.length;++i){var s=c[n[i]];if(s.hasOwnProperty(e))switch(typeof s[e]){case\"undefined\":break;case\"object\":for(var o=0,l=s[e].length;l>o;++o)if(s[e][o]==t){a.push(s);break}break;default:s[e]==t&&a.push(s)}}return a.sort(function(e,t){return e[r]==t[r]?0:e[r]<t[r]?-1:1}),a}var o,l=\"\",u=\"\",c={},d=[],h=[],p=[];return o=function(){var e=jQuery(\"#store-area>tw-storydata\"),r=e.attr(\"startnode\")||\"\";config.passages.start=null,config.debug=/\\bdebug\\b/.test(e.attr(\"options\")),e.children(\"style\").each(function(e){d.push(new Passage(\"tw-user-style-\"+e,this))}),e.children(\"script\").each(function(e){h.push(new Passage(\"tw-user-script-\"+e,this))}),e.children('tw-passagedata:not([tags~=\"Twine.private\"],[tags~=\"annotation\"])').each(function(){var e=jQuery(this),t=e.attr(\"pid\")||\"\",n=new Passage(e.attr(\"name\"),this);t===r&&\"\"!==r&&(config.passages.start=n.title),n.tags.contains(\"widget\")?p.push(n):c[n.title]=n}),t(Util.unescape(\"{{STORY_NAME}}\"))},Object.freeze(Object.defineProperties({},{passages:{value:c},styles:{value:d},scripts:{value:h},widgets:{value:p},load:{value:o},init:{value:e},title:{get:r},domId:{get:n},has:{value:a},get:{value:i},lookup:{value:s}}))}(),State=function(){function e(){if(Story.has(\"StoryInit\"))try{var e=Wikifier.wikifyEval(Story.get(\"StoryInit\").text);if(config.debug){var t=new DebugView(document.createDocumentFragment(),\"special\",\"StoryInit\",\"StoryInit\");t.modes({hidden:!0}),t.append(e),z=t.output}}catch(e){technicalAlert(\"StoryInit\",e.message)}if(config.history.hasOwnProperty(\"mode\"))throw new Error(\"config.history.mode has been deprecated and is no longer used by SugarCube, please remove it from your code\");if(config.history.hasOwnProperty(\"tracking\"))throw new Error(\"config.history.tracking has been deprecated, use config.history.maxStates instead\");if(config.history.maxStates=Math.max(0,Number(config.history.maxStates)),(isNaN(config.history.maxStates)||!isFinite(config.history.maxStates))&&(config.history.maxStates=150),1===config.history.maxStates&&(config.history.controls=!1),config.debug&&DebugView.init(),null==config.passages.start)throw new Error(\"starting passage not selected\");if(!Story.has(config.passages.start))throw new Error('starting passage (\"'+config.passages.start+'\") not found');if(!r()){var n=!0;switch(typeof config.saves.autoload){case\"boolean\":config.saves.autoload&&Save.autosave.ok()&&Save.autosave.has()&&(n=!Save.autosave.load());break;case\"string\":\"prompt\"===config.saves.autoload&&Save.autosave.ok()&&Save.autosave.has()&&(n=!1,UI.buildDialogAutoload(),UI.open());break;case\"function\":Save.autosave.ok()&&Save.autosave.has()&&config.saves.autoload()&&(n=!Save.autosave.load())}n&&R(config.passages.start)}}function t(){document.documentElement.classList.add(\"init-loading\"),window.scroll(0,0),session.delete(\"state\"),window.location.reload()}function r(){if(session.has(\"state\")){var e=session.get(\"state\");return null==e?!1:(a(e),!0)}return!1}function n(e){var t={index:W};return e?t.history=clone(Q):t.delta=M(Q),0!==F&&(t.expired=F),\"\"!==U&&(t.last=U),\"\"!==B&&(t.unique=B),null!==q&&(t.seed=q.seed),t}function a(e,t){if(null==e)throw new Error(\"state object is null or undefined\");if(!e.hasOwnProperty(t?\"history\":\"delta\")||0===e[t?\"history\":\"delta\"].length)throw new Error(\"state object has no history or history is empty\");if(!e.hasOwnProperty(\"index\"))throw new Error(\"state object has no index\");if(null!==q&&!e.hasOwnProperty(\"seed\"))throw new Error(\"state object has no seed, but PRNG is enabled\");if(null===q&&e.hasOwnProperty(\"seed\"))throw new Error(\"state object has seed, but PRNG is disabled\");Q=t?clone(e.history):I(e.delta),W=e.index,F=e.hasOwnProperty(\"expired\")?e.expired:0,U=e.hasOwnProperty(\"last\")?e.last:\"\",B=e.hasOwnProperty(\"unique\")?e.unique:\"\",H=null,e.hasOwnProperty(\"seed\")&&(q.seed=e.seed),m(W),_()}function i(){return n(!0)}function s(e){return a(e,!0)}function o(){return F}function l(){return U}function u(){return B}function c(){return H}function d(e,t){return{title:null==e?\"\":String(e),variables:null==t?{}:clone(t)}}function h(){return V}function p(){return W}function f(){return V.title}function g(){return V.variables}function m(e){if(null==e)throw new Error(\"moment activation attempted with null or undefined\");switch(typeof e){case\"object\":V=clone(e);break;case\"number\":if(w())throw new Error(\"moment activation attempted with index on empty history\");if(0>e||e>=b())throw new RangeError(\"moment activation attempted with out-of-bounds index; need [0, \"+(b()-1)+\"], got \"+e);V=clone(Q[e]);break;default:throw new TypeError('moment activation attempted with a \"'+typeof e+'\"; must be an object or valid history stack index')}return null!==q&&(q=PRNGWrapper.unmarshal({seed:q.seed,pull:V.pull})),session.set(\"state\",n()),jQuery.event.trigger(\"tw:historyupdate\"),V}function v(){return Q}function y(){return W+1}function b(){return Q.length}function w(){return 0===Q.length}function k(){return 0!==Q.length?Q[Q.length-1]:null}function S(){return 0!==Q.length?Q[0]:null}function x(e){return w()||0>e||e>W?null:Q[e]}function E(e){return w()?null:(e=1+(e?Math.abs(e):0),e>y()?null:Q[y()-e])}function O(e){if(w()||null==e||\"\"===e)return!1;for(var t=W;t>=0;--t)if(Q[t].title===e)return!0;return!1}function j(e){if(null==e)return y();if(y()<b()&&Q.splice(y(),b()-y()),Q.push(e),q&&(k().pull=q.pull),0!==config.history.maxStates)for(;b()>config.history.maxStates;)U=Q.shift().title,U!==S().title&&(B=U),++F;return W=b()-1,m(W),y()}function A(e){return null==e||0>e||e>=b()||e===W?!1:(W=e,m(W),_(),!0)}function P(e){return null==e||0===e?!1:A(W+e)}function T(){return P(-1)}function C(){return P(1)}function M(e){if(!Array.isArray(e))return null;if(0===e.length)return[];for(var t=[clone(e[0])],r=1,n=e.length;n>r;++r)t.push(Util.diff(e[r-1],e[r]));return t}function I(e){if(!Array.isArray(e))return null;if(0===e.length)return[];for(var t=[clone(e[0])],r=1,n=e.length;n>r;++r)t.push(Util.patch(t[r-1],e[r]));return t}function D(e,t){if(!w()){var r;throw r=\"the Story JavaScript\",new Error(\"State.initPRNG must be called during initialization, within either \"+r+\" or the StoryInit special passage\")}q=new PRNGWrapper(e,t),V.pull=q.pull}function L(){return q?q.random():Math.random()}function N(e,t,r){var n=!1;switch(r){case undefined:break;case\"replace\":case\"back\":n=!0;break;default:throw new Error('State.display option parameter called with obsolete value \"'+r+'\"; please notify the developer')}R(e,n)}function _(){return R(V.title,!0)}function R(e,t){TempState={},window.SugarCube.TempVariables=TempVariables={};var r,n,a=Story.get(e);if(Object.keys(prehistory).forEach(function(e){\"function\"==typeof prehistory[e]&&prehistory[e].call(this,e)},a),t||j(d(a.title,V.variables)),document.body.className&&(document.body.className=\"\"),Object.keys(predisplay).forEach(function(e){\"function\"==typeof predisplay[e]&&predisplay[e].call(this,e)},a),Story.has(\"PassageReady\"))try{r=Wikifier.wikifyEval(Story.get(\"PassageReady\").text)}catch(e){technicalAlert(\"PassageReady\",e.message)}var i=a.render();H=Date.now();var s=document.getElementById(\"passages\");if(s.hasChildNodes())if(\"number\"==typeof config.passages.transitionOut||\"string\"==typeof config.passages.transitionOut&&\"\"!==config.passages.transitionOut&&\"\"!==config.transitionEndEventName)for(var o=Array.from(s.childNodes),l=0;l<o.length;++l){var u=o[l];if(u.nodeType===Node.ELEMENT_NODE&&u.classList.contains(\"passage\")){if(u.classList.contains(\"passage-out\"))continue;u.id=\"out-\"+u.id,u.classList.add(\"passage-out\"),\"string\"==typeof config.passages.transitionOut?jQuery(u).on(config.transitionEndEventName,function(e){this.parentNode&&e.originalEvent.propertyName===config.passages.transitionOut&&this.parentNode.removeChild(this)}):setTimeout(function(){u.parentNode&&u.parentNode.removeChild(u)},Math.max(minDOMActionDelay,config.passages.transitionOut))}else u.parentNode.removeChild(u)}else removeChildren(s);if(i.classList.add(\"passage-in\"),s.appendChild(i),setTimeout(function(){i.classList.remove(\"passage-in\")},minDOMActionDelay),document.title=config.passages.displayTitles&&a.title!==config.passages.start?a.title+\" | \"+Story.title:Story.title,window.scroll(0,0),Story.has(\"PassageDone\"))try{n=Wikifier.wikifyEval(Story.get(\"PassageDone\").text)}catch(e){technicalAlert(\"PassageDone\",e.message)}if(Object.keys(postdisplay).forEach(function(e){\"function\"==typeof postdisplay[e]&&postdisplay[e].call(this,e)},a),config.ui.updateStoryElements&&UI.setStoryElements(),config.debug){var c;null!=r&&(c=new DebugView(document.createDocumentFragment(),\"special\",\"PassageReady\",\"PassageReady\"),c.modes({hidden:!0}),c.append(r),jQuery(i).prepend(c.output)),null!=n&&(c=new DebugView(document.createDocumentFragment(),\"special\",\"PassageDone\",\"PassageDone\"),c.modes({hidden:!0}),c.append(n),jQuery(i).append(c.output)),1===y()&&null!=z&&jQuery(i).prepend(z)}switch(UI.patchOutlines(!0),jQuery(\"#story\").find(\"a[href]:not(.link-external)\").addClass(\"link-external\").end().find(\"a,link,button,input,select,textarea\").not(\"[tabindex]\").attr(\"tabindex\",0),typeof config.saves.autosave){case\"boolean\":config.saves.autosave&&Save.autosave.save();break;case\"string\":a.tags.contains(config.saves.autosave)&&Save.autosave.save();break;case\"object\":Array.isArray(config.saves.autosave)&&a.tags.some(function(e){return config.saves.autosave.contains(e)})&&Save.autosave.save()}return i}var Q=[],V=d(),W=-1,F=0,U=\"\",B=\"\",H=null,q=null,z=null;return Object.freeze(Object.defineProperties({},{init:{value:e},restart:{value:t},marshalForSave:{value:i},unmarshalForSave:{value:s},expired:{get:o},expiredLast:{get:l},expiredUnique:{get:u},lastPlay:{get:c},active:{get:h},activeIndex:{get:p},passage:{get:f},variables:{get:g},history:{get:v},length:{get:y},size:{get:b},isEmpty:{value:w},top:{value:k},bottom:{value:S},index:{value:x},peek:{value:E},has:{value:O},goTo:{value:A},go:{value:P},backward:{value:T},forward:{value:C},deltaEncode:{value:M},deltaDecode:{value:I},initPRNG:{value:D},random:{value:L},display:{value:N},show:{value:_},play:{value:R}}))}(),History=State,visitedTag=visitedTags,version=Object.freeze({title:\"SugarCube\",major:2,minor:3,patch:1,prerelease:null,build:6748,date:new Date(\"2016-02-17T12:23:07.145Z\"),extensions:{},toString:function(){return this.major+\".\"+this.minor+\".\"+this.patch+(this.prerelease?\"-\"+this.prerelease:\"\")+\"+\"+this.build},short:function(){return this.title+\" (v\"+this.major+\".\"+this.minor+\".\"+this.patch+(this.prerelease?\"-\"+this.prerelease:\"\")+\")\"},long:function(){return this.title+\" v\"+this.toString()+\" (\"+this.date.toUTCString()+\")\"}}),config=Object.seal({debug:!1,addVisitedLinkClass:!1,cleanupWikifierOutput:!1,loadDelay:0,history:Object.seal({controls:!0,maxStates:150}),macros:Object.seal({ifAssignmentError:!0,maxLoopIterations:1e3}),passages:Object.seal({descriptions:undefined,displayTitles:!1,start:undefined,transitionOut:undefined}),saves:Object.seal({autoload:undefined,autosave:undefined,id:\"untitled-story\",isAllowed:undefined,onLoad:undefined,onSave:undefined,slots:8,version:undefined}),ui:Object.seal({stowBarInitially:!1,updateStoryElements:!0}),transitionEndEventName:function(){for(var e={transition:\"transitionend\",MSTransition:\"msTransitionEnd\",WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"transitionend\"},t=Object.keys(e),r=document.createElement(\"div\"),n=0;n<t.length;++n)if(r.style[t[n]]!==undefined)return e[t[n]];return\"\"}()}),minDOMActionDelay=40,TempState={},TempVariables={},macros={},tale=Story,state=State,storage={},session={},settings={},setup={},prehistory={},predisplay={},postdisplay={},prerender={},postrender={};window.SugarCube={},jQuery(function(){try{document.normalize&&document.normalize(),Story.load(),storage=new KeyValueStore(\"webStorage\",!0,Story.domId),session=new KeyValueStore(\"webStorage\",!1,Story.domId),config.saves.id=Story.domId,UI.init(),session.has(\"rcWarn\")||\"cookie\"!==storage.name||(session.set(\"rcWarn\",1),window.alert(strings.warnings.degraded.replace(/%identity%/g,strings.identity))),Story.init(),Save.init(),Setting.init(),Macro.init(),State.init(),UI.start()}catch(e){return fatalAlert(null,e.message)}window.SugarCube={Browser:Browser,DebugView:DebugView,Has:Has,Macro:Macro,Passage:Passage,Save:Save,Setting:Setting,State:State,Story:Story,TempVariables:TempVariables,UI:UI,Util:Util,Wikifier:Wikifier,config:config,macros:macros,session:session,settings:settings,setup:setup,storage:storage,version:version}})}(window,window.document,jQuery);}\n\t</script>\n</body>\n</html>\n"});